@semcore/widget-empty 16.0.1 → 16.0.2-prerelease.1
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 +6 -0
- package/README.md +1 -31
- package/lib/cjs/Error/index.js +11 -11
- package/lib/cjs/Error/index.js.map +1 -1
- package/lib/cjs/Error/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/Error/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/NoData/index.js +11 -11
- package/lib/cjs/NoData/index.js.map +1 -1
- package/lib/cjs/NoData/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/NoData/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/WidgetEmpty.js +18 -19
- package/lib/cjs/WidgetEmpty.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/es6/Error/index.js +9 -8
- package/lib/es6/Error/index.js.map +1 -1
- package/lib/es6/Error/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/Error/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/NoData/index.js +9 -8
- package/lib/es6/NoData/index.js.map +1 -1
- package/lib/es6/NoData/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/NoData/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/WidgetEmpty.js +15 -14
- package/lib/es6/WidgetEmpty.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/esm/Error/index.mjs +10 -7
- package/lib/esm/Error/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/NoData/index.mjs +10 -7
- package/lib/esm/NoData/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/WidgetEmpty.mjs +18 -15
- package/lib/types/index.d.ts +4 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [16.0.2] - 2025-06-13
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/flex-box` [16.0.1 ~> 16.0.2], `@semcore/illustration` [16.0.2 ~> 16.0.3], `@semcore/base-components` [16.0.1 ~> 16.0.2]).
|
|
10
|
+
|
|
5
11
|
## [16.0.1] - 2025-05-30
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/README.md
CHANGED
|
@@ -13,40 +13,10 @@
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
|
-
npm install
|
|
16
|
+
npm install @semcore/widget-empty
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
## Usage
|
|
20
19
|
|
|
21
|
-
```jsx
|
|
22
|
-
import WidgetEmpty, { NoData, Error } from 'intergalactic/widget-empty';
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
<details>
|
|
26
|
-
<summary>Alternative installation and use</summary>
|
|
27
|
-
|
|
28
|
-
**We do not recommend this usage path due to possible dependency and update issues.**
|
|
29
|
-
|
|
30
|
-
### Install
|
|
31
|
-
|
|
32
|
-
You can only install one package from the design system
|
|
33
|
-
|
|
34
|
-
```sh
|
|
35
|
-
npm install @semcore/widget-empty @semcore/core
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
`@semcore/core` - _is the basic package by which we create our components, and it contains all of the common logic
|
|
39
|
-
of the components that is discussed below. There should only be one version of the package in the project._
|
|
40
|
-
|
|
41
|
-
### Usage
|
|
42
|
-
|
|
43
|
-
You can use the package the same way but without `/ui/` in the import path.
|
|
44
|
-
|
|
45
|
-
```jsx
|
|
46
|
-
import Accordion from '@semcore/widget-empty';
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
</details>
|
|
50
20
|
|
|
51
21
|
## 👤 Author
|
|
52
22
|
|
package/lib/cjs/Error/index.js
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
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
8
|
exports["default"] = void 0;
|
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
|
+
var _isNativeReflectConstruct2 = _interopRequireDefault(require("@babel/runtime/helpers/isNativeReflectConstruct"));
|
|
13
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
11
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
13
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
16
|
var _core = require("@semcore/core");
|
|
17
|
+
var _i18nEnhance = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/i18nEnhance"));
|
|
15
18
|
var _react = _interopRequireDefault(require("react"));
|
|
16
19
|
var _WidgetEmpty = _interopRequireWildcard(require("../WidgetEmpty"));
|
|
17
|
-
var _i18nEnhance = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/i18nEnhance"));
|
|
18
20
|
var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
|
|
21
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, (0, _isNativeReflectConstruct2["default"])() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
19
22
|
var Error = /*#__PURE__*/function (_Component) {
|
|
20
|
-
(0, _inherits2["default"])(Error, _Component);
|
|
21
|
-
var _super = (0, _createSuper2["default"])(Error);
|
|
22
23
|
function Error() {
|
|
23
24
|
(0, _classCallCheck2["default"])(this, Error);
|
|
24
|
-
return
|
|
25
|
+
return _callSuper(this, Error, arguments);
|
|
25
26
|
}
|
|
26
|
-
(0,
|
|
27
|
+
(0, _inherits2["default"])(Error, _Component);
|
|
28
|
+
return (0, _createClass2["default"])(Error, [{
|
|
27
29
|
key: "render",
|
|
28
30
|
value: function render() {
|
|
29
31
|
var _ref = this.asProps;
|
|
@@ -36,7 +38,6 @@ var Error = /*#__PURE__*/function (_Component) {
|
|
|
36
38
|
}, _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
39
|
}
|
|
38
40
|
}]);
|
|
39
|
-
return Error;
|
|
40
41
|
}(_core.Component);
|
|
41
42
|
(0, _defineProperty2["default"])(Error, "displayName", 'WidgetError');
|
|
42
43
|
(0, _defineProperty2["default"])(Error, "defaultProps", {
|
|
@@ -44,6 +45,5 @@ var Error = /*#__PURE__*/function (_Component) {
|
|
|
44
45
|
locale: 'en'
|
|
45
46
|
});
|
|
46
47
|
(0, _defineProperty2["default"])(Error, "enhance", [(0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages)]);
|
|
47
|
-
var _default = (0, _core.createComponent)(Error);
|
|
48
|
-
exports["default"] = _default;
|
|
48
|
+
var _default = exports["default"] = (0, _core.createComponent)(Error);
|
|
49
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_core","require","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_core","require","_i18nEnhance","_interopRequireDefault","_react","_WidgetEmpty","_interopRequireWildcard","_intergalacticDynamicLocales","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct2","Reflect","construct","constructor","apply","Error","_Component","_classCallCheck2","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,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;IAEX;EAAC;AAAA,EArBiBS,eAAS;AAAA,IAAAC,gBAAA,aAAvBtB,KAAK,iBACY,aAAa;AAAA,IAAAsB,gBAAA,aAD9BtB,KAAK,kBAEa;EACpBuB,IAAI,EAAEC,8CAAiB;EACvBC,MAAM,EAAE;AACV,CAAC;AAAA,IAAAH,gBAAA,aALGtB,KAAK,aAOQ,CAAC,IAAA0B,uBAAW,EAACF,8CAAiB,CAAC,CAAC;AAAA,IAAAG,QAAA,GAAAC,OAAA,cAiBpC,IAAAC,qBAAe,EAAC7B,KAAK,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -13,14 +13,14 @@ var _it = _interopRequireDefault(require("./it.json"));
|
|
|
13
13
|
var _ja = _interopRequireDefault(require("./ja.json"));
|
|
14
14
|
var _ko = _interopRequireDefault(require("./ko.json"));
|
|
15
15
|
var _nl = _interopRequireDefault(require("./nl.json"));
|
|
16
|
+
var _pl = _interopRequireDefault(require("./pl.json"));
|
|
16
17
|
var _pt = _interopRequireDefault(require("./pt.json"));
|
|
17
18
|
var _ru = _interopRequireDefault(require("./ru.json"));
|
|
19
|
+
var _sv = _interopRequireDefault(require("./sv.json"));
|
|
18
20
|
var _tr = _interopRequireDefault(require("./tr.json"));
|
|
19
21
|
var _vi = _interopRequireDefault(require("./vi.json"));
|
|
20
22
|
var _zh = _interopRequireDefault(require("./zh.json"));
|
|
21
|
-
var
|
|
22
|
-
var _sv = _interopRequireDefault(require("./sv.json"));
|
|
23
|
-
var localizedMessages = {
|
|
23
|
+
var localizedMessages = exports.localizedMessages = {
|
|
24
24
|
de: _de["default"],
|
|
25
25
|
en: _en["default"],
|
|
26
26
|
es: _es["default"],
|
|
@@ -37,5 +37,4 @@ var localizedMessages = {
|
|
|
37
37
|
pl: _pl["default"],
|
|
38
38
|
sv: _sv["default"]
|
|
39
39
|
};
|
|
40
|
-
exports.localizedMessages = localizedMessages;
|
|
41
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","_pt","_ru","_tr","_vi","_zh","
|
|
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":[]}
|
package/lib/cjs/NoData/index.js
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
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
8
|
exports["default"] = void 0;
|
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
|
+
var _isNativeReflectConstruct2 = _interopRequireDefault(require("@babel/runtime/helpers/isNativeReflectConstruct"));
|
|
13
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
11
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
13
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
16
|
var _core = require("@semcore/core");
|
|
17
|
+
var _i18nEnhance = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/i18nEnhance"));
|
|
15
18
|
var _react = _interopRequireDefault(require("react"));
|
|
16
19
|
var _WidgetEmpty = _interopRequireWildcard(require("../WidgetEmpty"));
|
|
17
|
-
var _i18nEnhance = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/i18nEnhance"));
|
|
18
20
|
var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
|
|
21
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, (0, _isNativeReflectConstruct2["default"])() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
19
22
|
var NoData = /*#__PURE__*/function (_Component) {
|
|
20
|
-
(0, _inherits2["default"])(NoData, _Component);
|
|
21
|
-
var _super = (0, _createSuper2["default"])(NoData);
|
|
22
23
|
function NoData() {
|
|
23
24
|
(0, _classCallCheck2["default"])(this, NoData);
|
|
24
|
-
return
|
|
25
|
+
return _callSuper(this, NoData, arguments);
|
|
25
26
|
}
|
|
26
|
-
(0,
|
|
27
|
+
(0, _inherits2["default"])(NoData, _Component);
|
|
28
|
+
return (0, _createClass2["default"])(NoData, [{
|
|
27
29
|
key: "render",
|
|
28
30
|
value: function render() {
|
|
29
31
|
var _ref = this.asProps;
|
|
@@ -37,7 +39,6 @@ var NoData = /*#__PURE__*/function (_Component) {
|
|
|
37
39
|
}, _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));
|
|
38
40
|
}
|
|
39
41
|
}]);
|
|
40
|
-
return NoData;
|
|
41
42
|
}(_core.Component);
|
|
42
43
|
(0, _defineProperty2["default"])(NoData, "displayName", 'WidgetNoData');
|
|
43
44
|
(0, _defineProperty2["default"])(NoData, "enhance", [(0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages)]);
|
|
@@ -46,6 +47,5 @@ var NoData = /*#__PURE__*/function (_Component) {
|
|
|
46
47
|
locale: 'en',
|
|
47
48
|
type: 'other-data'
|
|
48
49
|
});
|
|
49
|
-
var _default = (0, _core.createComponent)(NoData);
|
|
50
|
-
exports["default"] = _default;
|
|
50
|
+
var _default = exports["default"] = (0, _core.createComponent)(NoData);
|
|
51
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_core","require","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_core","require","_i18nEnhance","_interopRequireDefault","_react","_WidgetEmpty","_interopRequireWildcard","_intergalacticDynamicLocales","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct2","Reflect","construct","constructor","apply","NoData","_Component","_classCallCheck2","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,SAAAO,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,aAAAF,CAAA,OAAAG,2BAAA,aAAAJ,CAAA,MAAAK,0BAAA,iBAAAC,OAAA,CAAAC,SAAA,CAAAN,CAAA,EAAAC,CAAA,YAAAC,gBAAA,aAAAH,CAAA,EAAAQ,WAAA,IAAAP,CAAA,CAAAQ,KAAA,CAAAT,CAAA,EAAAE,CAAA;AAAA,IAE7EQ,MAAM,0BAAAC,UAAA;EAAA,SAAAD,OAAA;IAAA,IAA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AM,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -13,14 +13,14 @@ var _it = _interopRequireDefault(require("./it.json"));
|
|
|
13
13
|
var _ja = _interopRequireDefault(require("./ja.json"));
|
|
14
14
|
var _ko = _interopRequireDefault(require("./ko.json"));
|
|
15
15
|
var _nl = _interopRequireDefault(require("./nl.json"));
|
|
16
|
+
var _pl = _interopRequireDefault(require("./pl.json"));
|
|
16
17
|
var _pt = _interopRequireDefault(require("./pt.json"));
|
|
17
18
|
var _ru = _interopRequireDefault(require("./ru.json"));
|
|
19
|
+
var _sv = _interopRequireDefault(require("./sv.json"));
|
|
18
20
|
var _tr = _interopRequireDefault(require("./tr.json"));
|
|
19
21
|
var _vi = _interopRequireDefault(require("./vi.json"));
|
|
20
22
|
var _zh = _interopRequireDefault(require("./zh.json"));
|
|
21
|
-
var
|
|
22
|
-
var _sv = _interopRequireDefault(require("./sv.json"));
|
|
23
|
-
var localizedMessages = {
|
|
23
|
+
var localizedMessages = exports.localizedMessages = {
|
|
24
24
|
de: _de["default"],
|
|
25
25
|
en: _en["default"],
|
|
26
26
|
es: _es["default"],
|
|
@@ -37,5 +37,4 @@ var localizedMessages = {
|
|
|
37
37
|
pl: _pl["default"],
|
|
38
38
|
sv: _sv["default"]
|
|
39
39
|
};
|
|
40
|
-
exports.localizedMessages = localizedMessages;
|
|
41
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","_pt","_ru","_tr","_vi","_zh","
|
|
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":[]}
|
package/lib/cjs/WidgetEmpty.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -8,35 +8,36 @@ exports.getIconPath = exports["default"] = void 0;
|
|
|
8
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
|
+
var _isNativeReflectConstruct2 = _interopRequireDefault(require("@babel/runtime/helpers/isNativeReflectConstruct"));
|
|
13
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
11
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
13
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
16
|
var _core = require("@semcore/core");
|
|
15
|
-
var _react = _interopRequireDefault(require("react"));
|
|
16
|
-
var _illustration = require("@semcore/illustration");
|
|
17
|
-
var _flexBox = require("@semcore/flex-box");
|
|
18
17
|
var _isNode = _interopRequireDefault(require("@semcore/core/lib/utils/isNode"));
|
|
18
|
+
var _flexBox = require("@semcore/flex-box");
|
|
19
|
+
var _illustration = require("@semcore/illustration");
|
|
20
|
+
var _react = _interopRequireDefault(require("react"));
|
|
21
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, (0, _isNativeReflectConstruct2["default"])() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
19
22
|
/*!__reshadow-styles__:"./style/widget-empty.shadow.css"*/
|
|
20
|
-
var style = (
|
|
23
|
+
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SWidgetEmpty_1f24j_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_1f24j_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_1f24j_gg_,.___STitle_1f24j_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_1f24j_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_1f24j_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_1f24j_gg_+.___SDescription_1f24j_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_1f24j_gg_+.___SDescription_1f24j_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}", /*__inner_css_end__*/"1f24j_gg_"),
|
|
21
24
|
/*__reshadow_css_end__*/
|
|
22
25
|
{
|
|
23
|
-
"__SWidgetEmpty": "
|
|
24
|
-
"__SImage": "
|
|
25
|
-
"__STitle": "
|
|
26
|
-
"__SDescription": "
|
|
26
|
+
"__SWidgetEmpty": "___SWidgetEmpty_1f24j_gg_",
|
|
27
|
+
"__SImage": "___SImage_1f24j_gg_",
|
|
28
|
+
"__STitle": "___STitle_1f24j_gg_",
|
|
29
|
+
"__SDescription": "___SDescription_1f24j_gg_"
|
|
27
30
|
});
|
|
28
|
-
var getIconPath = function getIconPath(name) {
|
|
31
|
+
var getIconPath = exports.getIconPath = function getIconPath(name) {
|
|
29
32
|
return (0, _illustration.getIllustrationPath)(name);
|
|
30
33
|
};
|
|
31
|
-
exports.getIconPath = getIconPath;
|
|
32
34
|
var WidgetEmpty = /*#__PURE__*/function (_Component) {
|
|
33
|
-
(0, _inherits2["default"])(WidgetEmpty, _Component);
|
|
34
|
-
var _super = (0, _createSuper2["default"])(WidgetEmpty);
|
|
35
35
|
function WidgetEmpty() {
|
|
36
36
|
(0, _classCallCheck2["default"])(this, WidgetEmpty);
|
|
37
|
-
return
|
|
37
|
+
return _callSuper(this, WidgetEmpty, arguments);
|
|
38
38
|
}
|
|
39
|
-
(0,
|
|
39
|
+
(0, _inherits2["default"])(WidgetEmpty, _Component);
|
|
40
|
+
return (0, _createClass2["default"])(WidgetEmpty, [{
|
|
40
41
|
key: "render",
|
|
41
42
|
value: function render() {
|
|
42
43
|
var _ref = this.asProps,
|
|
@@ -57,7 +58,6 @@ var WidgetEmpty = /*#__PURE__*/function (_Component) {
|
|
|
57
58
|
})) : icon), /*#__PURE__*/_react["default"].createElement(Children, _ref4.cn("Children", {})));
|
|
58
59
|
}
|
|
59
60
|
}]);
|
|
60
|
-
return WidgetEmpty;
|
|
61
61
|
}(_core.Component);
|
|
62
62
|
(0, _defineProperty2["default"])(WidgetEmpty, "displayName", 'WidgetEmpty');
|
|
63
63
|
(0, _defineProperty2["default"])(WidgetEmpty, "style", style);
|
|
@@ -75,9 +75,8 @@ var Description = function Description(props) {
|
|
|
75
75
|
var styles = props.styles;
|
|
76
76
|
return _ref6 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SDescription, _ref6.cn("SDescription", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref3))));
|
|
77
77
|
};
|
|
78
|
-
var _default = (0, _core.createComponent)(WidgetEmpty, {
|
|
78
|
+
var _default = exports["default"] = (0, _core.createComponent)(WidgetEmpty, {
|
|
79
79
|
Title: Title,
|
|
80
80
|
Description: Description
|
|
81
81
|
});
|
|
82
|
-
exports["default"] = _default;
|
|
83
82
|
//# sourceMappingURL=WidgetEmpty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetEmpty.js","names":["_core","require","
|
|
1
|
+
{"version":3,"file":"WidgetEmpty.js","names":["_core","require","_isNode","_interopRequireDefault","_flexBox","_illustration","_react","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct2","Reflect","construct","constructor","apply","style","sstyled","insert","getIconPath","exports","name","getIllustrationPath","WidgetEmpty","_Component","_classCallCheck2","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,SAAAM,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,aAAAF,CAAA,OAAAG,2BAAA,aAAAJ,CAAA,MAAAK,0BAAA,iBAAAC,OAAA,CAAAC,SAAA,CAAAN,CAAA,EAAAC,CAAA,YAAAC,gBAAA,aAAAH,CAAA,EAAAQ,WAAA,IAAAP,CAAA,CAAAQ,KAAA,CAAAT,CAAA,EAAAE,CAAA;AAAA;AAAA,IAAAQ,KAAA,8BAAAlB,KAAA,CAAAmB,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAInB,IAAMC,WAAW,GAAAC,OAAA,CAAAD,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B;EAAC;AAAA,EAnBuBI,eAAS;AAAA,IAAAC,gBAAA,aAA7BzB,WAAW,iBACM,aAAa;AAAA,IAAAyB,gBAAA,aAD9BzB,WAAW,WAEAP,KAAK;AAoBtB,IAAMiC,KAAK,GAAG,SAARA,KAAKA,CAAIC,KAAK,EAAK;EAAA,IAAAC,KAAA,GAAAC,YAAA;IAAAC,KAAA;EACvB,IAAMC,MAAM,GAE2BC,YAAG;EAD1C,IAAQf,MAAM,GAAKU,KAAK,CAAhBV,MAAM;EACd,OAAAa,KAAA,GAAO,IAAApC,aAAO,EAACuB,MAAM,CAAC,eAACpC,MAAA,YAAAsC,aAAA,CAACY,MAAM,EAAAD,KAAA,CAAAV,EAAA,eAAAC,cAAA,qBAAA9C,KAAA,CAAA+C,WAAA,MAAAM,KAAA,GAAe,CAAC;AAChD,CAAC;AAED,IAAMK,WAAW,GAAG,SAAdA,WAAWA,CAAIN,KAAK,EAAK;EAAA,IAAAO,KAAA,GAAAL,YAAA;IAAAM,KAAA;EAC7B,IAAMC,YAAY,GAE2BJ,YAAG;EADhD,IAAQf,MAAM,GAAKU,KAAK,CAAhBV,MAAM;EACd,OAAAkB,KAAA,GAAO,IAAAzC,aAAO,EAACuB,MAAM,CAAC,eAACpC,MAAA,YAAAsC,aAAA,CAACiB,YAAY,EAAAD,KAAA,CAAAf,EAAA,qBAAAC,cAAA,qBAAA9C,KAAA,CAAA+C,WAAA,MAAAY,KAAA,GAAe,CAAC;AACtD,CAAC;AAAC,IAAAG,QAAA,GAAAxC,OAAA,cAEa,IAAAyC,qBAAe,EAACtC,WAAW,EAAE;EAC1C0B,KAAK,EAALA,KAAK;EACLO,WAAW,EAAXA;AACF,CAAC,CAAC","ignoreList":[]}
|
package/lib/cjs/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { Intergalactic, UnknownProperties } from '@semcore/core';\nimport {
|
|
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":[]}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
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
|
});
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -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"}
|
|
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":[]}
|
package/lib/es6/Error/index.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
4
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/isNativeReflectConstruct";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
3
6
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
5
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
6
8
|
import { assignProps as _assignProps } from "@semcore/core";
|
|
7
|
-
|
|
8
|
-
import WidgetEmpty, { getIconPath } from '../WidgetEmpty';
|
|
9
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
10
|
import { createComponent, Component, Root } from '@semcore/core';
|
|
10
11
|
import i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import WidgetEmpty, { getIconPath } from '../WidgetEmpty';
|
|
11
14
|
import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
12
15
|
var Error = /*#__PURE__*/function (_Component) {
|
|
13
|
-
_inherits(Error, _Component);
|
|
14
|
-
var _super = _createSuper(Error);
|
|
15
16
|
function Error() {
|
|
16
17
|
_classCallCheck(this, Error);
|
|
17
|
-
return
|
|
18
|
+
return _callSuper(this, Error, arguments);
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
_inherits(Error, _Component);
|
|
21
|
+
return _createClass(Error, [{
|
|
20
22
|
key: "render",
|
|
21
23
|
value: function render() {
|
|
22
24
|
var _ref = this.asProps;
|
|
@@ -29,7 +31,6 @@ var Error = /*#__PURE__*/function (_Component) {
|
|
|
29
31
|
}, _ref), /*#__PURE__*/React.createElement(WidgetEmpty.Title, null, getI18nText('title')), /*#__PURE__*/React.createElement(WidgetEmpty.Description, null, description || getI18nText('description')), /*#__PURE__*/React.createElement(Children, null));
|
|
30
32
|
}
|
|
31
33
|
}]);
|
|
32
|
-
return Error;
|
|
33
34
|
}(Component);
|
|
34
35
|
_defineProperty(Error, "displayName", 'WidgetError');
|
|
35
36
|
_defineProperty(Error, "defaultProps", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["createComponent","Component","Root","i18nEnhance","React","WidgetEmpty","getIconPath","localizedMessages","Error","_Component","_classCallCheck","_callSuper","arguments","_inherits","_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 { 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,SAASA,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,WAAW,IAAIC,WAAW,QAAQ,gBAAgB;AACzD,SAASC,iBAAiB,QAAQ,gDAAgD;AAAC,IAE7EC,KAAK,0BAAAC,UAAA;EAAA,SAAAD,MAAA;IAAAE,eAAA,OAAAF,KAAA;IAAA,OAAAG,UAAA,OAAAH,KAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,KAAA,EAAAC,UAAA;EAAA,OAAAK,YAAA,CAAAN,KAAA;IAAAO,GAAA;IAAAC,KAAA,EAST,SAAAC,MAAMA,CAAA,EAAG;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,oBACEnB,KAAA,CAAAoB,aAAA,CAAcnB,WAAW,EAAAoB,YAAA;QAAA,QAAQnB,WAAW,CAAC,SAAS;MAAC,GAAAY,IAAA,gBACrDd,KAAA,CAAAoB,aAAA,CAACnB,WAAW,CAACqB,KAAK,QAAEH,WAAW,CAAC,OAAO,CAAqB,CAAC,eAC7DnB,KAAA,CAAAoB,aAAA,CAACnB,WAAW,CAACsB,WAAW,QACrBL,WAAW,IAAIC,WAAW,CAAC,aAAa,CAClB,CAAC,eAC1BnB,KAAA,CAAAoB,aAAA,CAACH,QAAQ,MAAE,CACP,CAAC;IAEX;EAAC;AAAA,EArBiBpB,SAAS;AAAA2B,eAAA,CAAvBpB,KAAK,iBACY,aAAa;AAAAoB,eAAA,CAD9BpB,KAAK,kBAEa;EACpBqB,IAAI,EAAEtB,iBAAiB;EACvBuB,MAAM,EAAE;AACV,CAAC;AAAAF,eAAA,CALGpB,KAAK,aAOQ,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAiBnD,eAAeP,eAAe,CAACQ,KAAK,CAAC","ignoreList":[]}
|
|
@@ -6,13 +6,13 @@ import it from './it.json';
|
|
|
6
6
|
import ja from './ja.json';
|
|
7
7
|
import ko from './ko.json';
|
|
8
8
|
import nl from './nl.json';
|
|
9
|
+
import pl from './pl.json';
|
|
9
10
|
import pt from './pt.json';
|
|
10
11
|
import ru from './ru.json';
|
|
12
|
+
import sv from './sv.json';
|
|
11
13
|
import tr from './tr.json';
|
|
12
14
|
import vi from './vi.json';
|
|
13
15
|
import zh from './zh.json';
|
|
14
|
-
import pl from './pl.json';
|
|
15
|
-
import sv from './sv.json';
|
|
16
16
|
export var localizedMessages = {
|
|
17
17
|
de: de,
|
|
18
18
|
en: en,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","
|
|
1
|
+
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","ru","sv","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 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,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;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,IAAMC,iBAAiB,GAAG;EAC/Bf,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;EACFE,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFE,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFN,EAAE,EAAFA,EAAE;EACFG,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
|
package/lib/es6/NoData/index.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
4
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/isNativeReflectConstruct";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
3
6
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
5
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
6
8
|
import { assignProps as _assignProps } from "@semcore/core";
|
|
7
|
-
|
|
8
|
-
import WidgetEmpty, { getIconPath } from '../WidgetEmpty';
|
|
9
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
10
|
import { createComponent, Component, Root } from '@semcore/core';
|
|
10
11
|
import i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import WidgetEmpty, { getIconPath } from '../WidgetEmpty';
|
|
11
14
|
import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
12
15
|
var NoData = /*#__PURE__*/function (_Component) {
|
|
13
|
-
_inherits(NoData, _Component);
|
|
14
|
-
var _super = _createSuper(NoData);
|
|
15
16
|
function NoData() {
|
|
16
17
|
_classCallCheck(this, NoData);
|
|
17
|
-
return
|
|
18
|
+
return _callSuper(this, NoData, arguments);
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
_inherits(NoData, _Component);
|
|
21
|
+
return _createClass(NoData, [{
|
|
20
22
|
key: "render",
|
|
21
23
|
value: function render() {
|
|
22
24
|
var _ref = this.asProps;
|
|
@@ -30,7 +32,6 @@ var NoData = /*#__PURE__*/function (_Component) {
|
|
|
30
32
|
}, _ref), /*#__PURE__*/React.createElement(WidgetEmpty.Title, null, getI18nText('title')), /*#__PURE__*/React.createElement(WidgetEmpty.Description, null, description || getI18nText('description')), /*#__PURE__*/React.createElement(Children, null));
|
|
31
33
|
}
|
|
32
34
|
}]);
|
|
33
|
-
return NoData;
|
|
34
35
|
}(Component);
|
|
35
36
|
_defineProperty(NoData, "displayName", 'WidgetNoData');
|
|
36
37
|
_defineProperty(NoData, "enhance", [i18nEnhance(localizedMessages)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["createComponent","Component","Root","i18nEnhance","React","WidgetEmpty","getIconPath","localizedMessages","NoData","_Component","_classCallCheck","_callSuper","arguments","_inherits","_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 { 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,SAASA,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,WAAW,IAAIC,WAAW,QAAQ,gBAAgB;AACzD,SAASC,iBAAiB,QAAQ,gDAAgD;AAAC,IAE7EC,MAAM,0BAAAC,UAAA;EAAA,SAAAD,OAAA;IAAAE,eAAA,OAAAF,MAAA;IAAA,OAAAG,UAAA,OAAAH,MAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,MAAA,EAAAC,UAAA;EAAA,OAAAK,YAAA,CAAAN,MAAA;IAAAO,GAAA;IAAAC,KAAA,EASV,SAAAC,MAAMA,CAAA,EAAG;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,IAAAC,aAAA,GAAqD,IAAI,CAACD,OAAO;QAAzDE,QAAQ,GAAAD,aAAA,CAARC,QAAQ;QAAEC,IAAI,GAAAF,aAAA,CAAJE,IAAI;QAAEC,WAAW,GAAAH,aAAA,CAAXG,WAAW;QAAEC,WAAW,GAAAJ,aAAA,CAAXI,WAAW;MAEhD,oBACEpB,KAAA,CAAAqB,aAAA,CAAcpB,WAAW,EAAAqB,YAAA;QAAA,QAAQpB,WAAW,CAACgB,IAAI;MAAC,GAAAJ,IAAA,gBAChDd,KAAA,CAAAqB,aAAA,CAACpB,WAAW,CAACsB,KAAK,QAAEH,WAAW,CAAC,OAAO,CAAqB,CAAC,eAC7DpB,KAAA,CAAAqB,aAAA,CAACpB,WAAW,CAACuB,WAAW,QACrBL,WAAW,IAAIC,WAAW,CAAC,aAAa,CAClB,CAAC,eAC1BpB,KAAA,CAAAqB,aAAA,CAACJ,QAAQ,MAAE,CACP,CAAC;IAEX;EAAC;AAAA,EArBkBpB,SAAS;AAAA4B,eAAA,CAAxBrB,MAAM,iBACW,cAAc;AAAAqB,eAAA,CAD/BrB,MAAM,aAEO,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAsB,eAAA,CAF7CrB,MAAM,kBAGY;EACpBsB,IAAI,EAAEvB,iBAAiB;EACvBwB,MAAM,EAAE,IAAI;EACZT,IAAI,EAAE;AACR,CAAC;AAiBH,eAAetB,eAAe,CAACQ,MAAM,CAAC","ignoreList":[]}
|
|
@@ -6,13 +6,13 @@ import it from './it.json';
|
|
|
6
6
|
import ja from './ja.json';
|
|
7
7
|
import ko from './ko.json';
|
|
8
8
|
import nl from './nl.json';
|
|
9
|
+
import pl from './pl.json';
|
|
9
10
|
import pt from './pt.json';
|
|
10
11
|
import ru from './ru.json';
|
|
12
|
+
import sv from './sv.json';
|
|
11
13
|
import tr from './tr.json';
|
|
12
14
|
import vi from './vi.json';
|
|
13
15
|
import zh from './zh.json';
|
|
14
|
-
import pl from './pl.json';
|
|
15
|
-
import sv from './sv.json';
|
|
16
16
|
export var localizedMessages = {
|
|
17
17
|
de: de,
|
|
18
18
|
en: en,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","
|
|
1
|
+
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","ru","sv","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 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,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;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,IAAMC,iBAAiB,GAAG;EAC/Bf,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;EACFE,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFE,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFN,EAAE,EAAFA,EAAE;EACFG,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
|
package/lib/es6/WidgetEmpty.js
CHANGED
|
@@ -1,38 +1,40 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/isNativeReflectConstruct";
|
|
6
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
4
7
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
6
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
9
|
import { sstyled as _sstyled } from "@semcore/core";
|
|
8
10
|
import { assignProps as _assignProps3 } from "@semcore/core";
|
|
9
11
|
import { assignProps as _assignProps2 } from "@semcore/core";
|
|
10
12
|
import { assignProps as _assignProps } from "@semcore/core";
|
|
11
|
-
|
|
13
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
14
|
import { createComponent, Component, sstyled, Root } from '@semcore/core';
|
|
13
|
-
import { getIllustrationPath } from '@semcore/illustration';
|
|
14
|
-
import { Box, Flex } from '@semcore/flex-box';
|
|
15
15
|
import isNode from '@semcore/core/lib/utils/isNode';
|
|
16
|
+
import { Box, Flex } from '@semcore/flex-box';
|
|
17
|
+
import { getIllustrationPath } from '@semcore/illustration';
|
|
18
|
+
import React from 'react';
|
|
16
19
|
/*!__reshadow-styles__:"./style/widget-empty.shadow.css"*/
|
|
17
|
-
var style = (
|
|
20
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SWidgetEmpty_1f24j_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_1f24j_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_1f24j_gg_,.___STitle_1f24j_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_1f24j_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_1f24j_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_1f24j_gg_+.___SDescription_1f24j_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_1f24j_gg_+.___SDescription_1f24j_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}", /*__inner_css_end__*/"1f24j_gg_"),
|
|
18
21
|
/*__reshadow_css_end__*/
|
|
19
22
|
{
|
|
20
|
-
"__SWidgetEmpty": "
|
|
21
|
-
"__SImage": "
|
|
22
|
-
"__STitle": "
|
|
23
|
-
"__SDescription": "
|
|
23
|
+
"__SWidgetEmpty": "___SWidgetEmpty_1f24j_gg_",
|
|
24
|
+
"__SImage": "___SImage_1f24j_gg_",
|
|
25
|
+
"__STitle": "___STitle_1f24j_gg_",
|
|
26
|
+
"__SDescription": "___SDescription_1f24j_gg_"
|
|
24
27
|
});
|
|
25
28
|
export var getIconPath = function getIconPath(name) {
|
|
26
29
|
return getIllustrationPath(name);
|
|
27
30
|
};
|
|
28
31
|
var WidgetEmpty = /*#__PURE__*/function (_Component) {
|
|
29
|
-
_inherits(WidgetEmpty, _Component);
|
|
30
|
-
var _super = _createSuper(WidgetEmpty);
|
|
31
32
|
function WidgetEmpty() {
|
|
32
33
|
_classCallCheck(this, WidgetEmpty);
|
|
33
|
-
return
|
|
34
|
+
return _callSuper(this, WidgetEmpty, arguments);
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
+
_inherits(WidgetEmpty, _Component);
|
|
37
|
+
return _createClass(WidgetEmpty, [{
|
|
36
38
|
key: "render",
|
|
37
39
|
value: function render() {
|
|
38
40
|
var _ref = this.asProps,
|
|
@@ -53,7 +55,6 @@ var WidgetEmpty = /*#__PURE__*/function (_Component) {
|
|
|
53
55
|
})) : icon), /*#__PURE__*/React.createElement(Children, _ref4.cn("Children", {})));
|
|
54
56
|
}
|
|
55
57
|
}]);
|
|
56
|
-
return WidgetEmpty;
|
|
57
58
|
}(Component);
|
|
58
59
|
_defineProperty(WidgetEmpty, "displayName", 'WidgetEmpty');
|
|
59
60
|
_defineProperty(WidgetEmpty, "style", style);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetEmpty.js","names":["
|
|
1
|
+
{"version":3,"file":"WidgetEmpty.js","names":["createComponent","Component","sstyled","Root","isNode","Box","Flex","getIllustrationPath","React","style","_sstyled","insert","getIconPath","name","WidgetEmpty","_Component","_classCallCheck","_callSuper","arguments","_inherits","_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 { 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, {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AAW,EAAE;EAC1CwB,KAAK,EAALA,KAAK;EACLO,WAAW,EAAXA;AACF,CAAC,CAAC","ignoreList":[]}
|
package/lib/es6/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { Intergalactic, UnknownProperties } from '@semcore/core';\nimport {
|
|
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":[]}
|
package/lib/es6/index.js.map
CHANGED
|
@@ -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,OAAO,QAAQ,eAAe;AACvC,cAAc,eAAe;AAE7B,SAASA,OAAO,IAAIC,MAAM,QAAQ,UAAU;AAE5C,SAASD,OAAO,IAAIE,KAAK,QAAQ,SAAS"}
|
|
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","ignoreList":[]}
|
package/lib/esm/Error/index.mjs
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
3
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
8
|
import { createComponent, assignProps, Component } from "@semcore/core";
|
|
9
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
7
10
|
import React from "react";
|
|
8
11
|
import WidgetEmpty, { getIconPath } from "../WidgetEmpty.mjs";
|
|
9
|
-
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
10
12
|
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
13
|
+
function _callSuper(t, o, e) {
|
|
14
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
15
|
+
}
|
|
11
16
|
var Error = /* @__PURE__ */ function(_Component) {
|
|
12
|
-
_inherits(Error2, _Component);
|
|
13
|
-
var _super = _createSuper(Error2);
|
|
14
17
|
function Error2() {
|
|
15
18
|
_classCallCheck(this, Error2);
|
|
16
|
-
return
|
|
19
|
+
return _callSuper(this, Error2, arguments);
|
|
17
20
|
}
|
|
18
|
-
|
|
21
|
+
_inherits(Error2, _Component);
|
|
22
|
+
return _createClass(Error2, [{
|
|
19
23
|
key: "render",
|
|
20
24
|
value: function render() {
|
|
21
25
|
var _ref = this.asProps;
|
|
@@ -25,7 +29,6 @@ var Error = /* @__PURE__ */ function(_Component) {
|
|
|
25
29
|
}, _ref), /* @__PURE__ */ React.createElement(WidgetEmpty.Title, null, getI18nText("title")), /* @__PURE__ */ React.createElement(WidgetEmpty.Description, null, description || getI18nText("description")), /* @__PURE__ */ React.createElement(Children, null));
|
|
26
30
|
}
|
|
27
31
|
}]);
|
|
28
|
-
return Error2;
|
|
29
32
|
}(Component);
|
|
30
33
|
_defineProperty(Error, "displayName", "WidgetError");
|
|
31
34
|
_defineProperty(Error, "defaultProps", {
|
|
@@ -6,13 +6,13 @@ import it from "./it.json.mjs";
|
|
|
6
6
|
import ja from "./ja.json.mjs";
|
|
7
7
|
import ko from "./ko.json.mjs";
|
|
8
8
|
import nl from "./nl.json.mjs";
|
|
9
|
+
import pl from "./pl.json.mjs";
|
|
9
10
|
import pt from "./pt.json.mjs";
|
|
10
11
|
import ru from "./ru.json.mjs";
|
|
12
|
+
import sv from "./sv.json.mjs";
|
|
11
13
|
import tr from "./tr.json.mjs";
|
|
12
14
|
import vi from "./vi.json.mjs";
|
|
13
15
|
import zh from "./zh.json.mjs";
|
|
14
|
-
import pl from "./pl.json.mjs";
|
|
15
|
-
import sv from "./sv.json.mjs";
|
|
16
16
|
var localizedMessages = {
|
|
17
17
|
de,
|
|
18
18
|
en,
|
package/lib/esm/NoData/index.mjs
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
3
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
8
|
import { createComponent, assignProps, Component } from "@semcore/core";
|
|
9
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
7
10
|
import React from "react";
|
|
8
11
|
import WidgetEmpty, { getIconPath } from "../WidgetEmpty.mjs";
|
|
9
|
-
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
10
12
|
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
13
|
+
function _callSuper(t, o, e) {
|
|
14
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
15
|
+
}
|
|
11
16
|
var NoData = /* @__PURE__ */ function(_Component) {
|
|
12
|
-
_inherits(NoData2, _Component);
|
|
13
|
-
var _super = _createSuper(NoData2);
|
|
14
17
|
function NoData2() {
|
|
15
18
|
_classCallCheck(this, NoData2);
|
|
16
|
-
return
|
|
19
|
+
return _callSuper(this, NoData2, arguments);
|
|
17
20
|
}
|
|
18
|
-
|
|
21
|
+
_inherits(NoData2, _Component);
|
|
22
|
+
return _createClass(NoData2, [{
|
|
19
23
|
key: "render",
|
|
20
24
|
value: function render() {
|
|
21
25
|
var _ref = this.asProps;
|
|
@@ -25,7 +29,6 @@ var NoData = /* @__PURE__ */ function(_Component) {
|
|
|
25
29
|
}, _ref), /* @__PURE__ */ React.createElement(WidgetEmpty.Title, null, getI18nText("title")), /* @__PURE__ */ React.createElement(WidgetEmpty.Description, null, description || getI18nText("description")), /* @__PURE__ */ React.createElement(Children, null));
|
|
26
30
|
}
|
|
27
31
|
}]);
|
|
28
|
-
return NoData2;
|
|
29
32
|
}(Component);
|
|
30
33
|
_defineProperty(NoData, "displayName", "WidgetNoData");
|
|
31
34
|
_defineProperty(NoData, "enhance", [i18nEnhance(localizedMessages)]);
|
|
@@ -6,13 +6,13 @@ import it from "./it.json.mjs";
|
|
|
6
6
|
import ja from "./ja.json.mjs";
|
|
7
7
|
import ko from "./ko.json.mjs";
|
|
8
8
|
import nl from "./nl.json.mjs";
|
|
9
|
+
import pl from "./pl.json.mjs";
|
|
9
10
|
import pt from "./pt.json.mjs";
|
|
10
11
|
import ru from "./ru.json.mjs";
|
|
12
|
+
import sv from "./sv.json.mjs";
|
|
11
13
|
import tr from "./tr.json.mjs";
|
|
12
14
|
import vi from "./vi.json.mjs";
|
|
13
15
|
import zh from "./zh.json.mjs";
|
|
14
|
-
import pl from "./pl.json.mjs";
|
|
15
|
-
import sv from "./sv.json.mjs";
|
|
16
16
|
var localizedMessages = {
|
|
17
17
|
de,
|
|
18
18
|
en,
|
package/lib/esm/WidgetEmpty.mjs
CHANGED
|
@@ -1,41 +1,45 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
6
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
4
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
9
|
import { createComponent, sstyled, assignProps, Component } from "@semcore/core";
|
|
8
|
-
import React from "react";
|
|
9
|
-
import { getIllustrationPath } from "@semcore/illustration";
|
|
10
|
-
import { Flex, Box } from "@semcore/flex-box";
|
|
11
10
|
import isNode from "@semcore/core/lib/utils/isNode";
|
|
11
|
+
import { Flex, Box } from "@semcore/flex-box";
|
|
12
|
+
import { getIllustrationPath } from "@semcore/illustration";
|
|
13
|
+
import React from "react";
|
|
14
|
+
function _callSuper(t, o, e) {
|
|
15
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
16
|
+
}
|
|
12
17
|
/*!__reshadow-styles__:"./style/widget-empty.shadow.css"*/
|
|
13
18
|
var style = (
|
|
14
19
|
/*__reshadow_css_start__*/
|
|
15
20
|
(sstyled.insert(
|
|
16
21
|
/*__inner_css_start__*/
|
|
17
|
-
".
|
|
22
|
+
".___SWidgetEmpty_1f24j_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_1f24j_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_1f24j_gg_,.___STitle_1f24j_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_1f24j_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_1f24j_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_1f24j_gg_+.___SDescription_1f24j_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_1f24j_gg_+.___SDescription_1f24j_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}",
|
|
18
23
|
/*__inner_css_end__*/
|
|
19
|
-
"
|
|
24
|
+
"1f24j_gg_"
|
|
20
25
|
), /*__reshadow_css_end__*/
|
|
21
26
|
{
|
|
22
|
-
"__SWidgetEmpty": "
|
|
23
|
-
"__SImage": "
|
|
24
|
-
"__STitle": "
|
|
25
|
-
"__SDescription": "
|
|
27
|
+
"__SWidgetEmpty": "___SWidgetEmpty_1f24j_gg_",
|
|
28
|
+
"__SImage": "___SImage_1f24j_gg_",
|
|
29
|
+
"__STitle": "___STitle_1f24j_gg_",
|
|
30
|
+
"__SDescription": "___SDescription_1f24j_gg_"
|
|
26
31
|
})
|
|
27
32
|
);
|
|
28
33
|
var getIconPath = function getIconPath2(name) {
|
|
29
34
|
return getIllustrationPath(name);
|
|
30
35
|
};
|
|
31
36
|
var WidgetEmpty = /* @__PURE__ */ function(_Component) {
|
|
32
|
-
_inherits(WidgetEmpty2, _Component);
|
|
33
|
-
var _super = _createSuper(WidgetEmpty2);
|
|
34
37
|
function WidgetEmpty2() {
|
|
35
38
|
_classCallCheck(this, WidgetEmpty2);
|
|
36
|
-
return
|
|
39
|
+
return _callSuper(this, WidgetEmpty2, arguments);
|
|
37
40
|
}
|
|
38
|
-
|
|
41
|
+
_inherits(WidgetEmpty2, _Component);
|
|
42
|
+
return _createClass(WidgetEmpty2, [{
|
|
39
43
|
key: "render",
|
|
40
44
|
value: function render() {
|
|
41
45
|
var _ref = this.asProps, _ref4;
|
|
@@ -52,7 +56,6 @@ var WidgetEmpty = /* @__PURE__ */ function(_Component) {
|
|
|
52
56
|
})) : icon), /* @__PURE__ */ React.createElement(Children, _ref4.cn("Children", {})));
|
|
53
57
|
}
|
|
54
58
|
}]);
|
|
55
|
-
return WidgetEmpty2;
|
|
56
59
|
}(Component);
|
|
57
60
|
_defineProperty(WidgetEmpty, "displayName", "WidgetEmpty");
|
|
58
61
|
_defineProperty(WidgetEmpty, "style", style);
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Intergalactic, UnknownProperties } from '@semcore/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { Intergalactic, UnknownProperties } from '@semcore/core';
|
|
2
|
+
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
+
import type { Box, FlexProps } from '@semcore/flex-box';
|
|
4
|
+
import type { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';
|
|
5
5
|
|
|
6
6
|
export type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/widget-empty",
|
|
3
3
|
"description": "Semrush WidgetEmpty Component",
|
|
4
|
-
"version": "16.0.1",
|
|
4
|
+
"version": "16.0.2-prerelease.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/flex-box": "16.0.1",
|
|
18
|
-
"@semcore/illustration": "16.0.
|
|
17
|
+
"@semcore/flex-box": "16.0.2-prerelease.1",
|
|
18
|
+
"@semcore/illustration": "16.0.3-prerelease.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@semcore/base-components": "^16.0.
|
|
21
|
+
"@semcore/base-components": "^16.0.2-prerelease.1"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"directory": "semcore/widget-empty"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@
|
|
29
|
+
"@semcore/core": "16.0.0",
|
|
30
30
|
"@semcore/testing-utils": "1.0.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|