@semcore/widget-empty 4.44.0-prerelease.1 → 4.44.0-prerelease.5
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/lib/cjs/Error/index.js +9 -12
- 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 +9 -12
- 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 +23 -29
- 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/cjs/style/widget-empty.shadow.css +2 -2
- package/lib/es6/Error/index.js +6 -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 +6 -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 +18 -20
- 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/es6/style/widget-empty.shadow.css +2 -2
- package/lib/esm/Error/index.mjs +8 -10
- package/lib/esm/Error/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/NoData/index.mjs +8 -10
- package/lib/esm/NoData/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/WidgetEmpty.mjs +23 -26
- package/lib/esm/style/widget-empty.shadow.css +2 -2
- package/lib/types/index.d.ts +5 -11
- package/package.json +5 -5
package/lib/cjs/Error/index.js
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
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 _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
|
|
11
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
-
var _core =
|
|
14
|
+
var _core = require("@semcore/core");
|
|
15
|
+
var _i18nEnhance = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/i18nEnhance"));
|
|
15
16
|
var _react = _interopRequireDefault(require("react"));
|
|
16
17
|
var _WidgetEmpty = _interopRequireWildcard(require("../WidgetEmpty"));
|
|
17
|
-
var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
|
|
18
18
|
var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
|
|
19
19
|
var Error = /*#__PURE__*/function (_Component) {
|
|
20
|
-
(0, _inherits2["default"])(Error, _Component);
|
|
21
|
-
var _super = (0, _createSuper2["default"])(Error);
|
|
22
20
|
function Error() {
|
|
23
21
|
(0, _classCallCheck2["default"])(this, Error);
|
|
24
|
-
return
|
|
22
|
+
return (0, _callSuper2["default"])(this, Error, arguments);
|
|
25
23
|
}
|
|
26
|
-
(0,
|
|
24
|
+
(0, _inherits2["default"])(Error, _Component);
|
|
25
|
+
return (0, _createClass2["default"])(Error, [{
|
|
27
26
|
key: "render",
|
|
28
27
|
value: function render() {
|
|
29
28
|
var _ref = this.asProps;
|
|
@@ -36,7 +35,6 @@ var Error = /*#__PURE__*/function (_Component) {
|
|
|
36
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));
|
|
37
36
|
}
|
|
38
37
|
}]);
|
|
39
|
-
return Error;
|
|
40
38
|
}(_core.Component);
|
|
41
39
|
(0, _defineProperty2["default"])(Error, "displayName", 'WidgetError');
|
|
42
40
|
(0, _defineProperty2["default"])(Error, "defaultProps", {
|
|
@@ -44,6 +42,5 @@ var Error = /*#__PURE__*/function (_Component) {
|
|
|
44
42
|
locale: 'en'
|
|
45
43
|
});
|
|
46
44
|
(0, _defineProperty2["default"])(Error, "enhance", [(0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages)]);
|
|
47
|
-
var _default = (0, _core
|
|
48
|
-
exports["default"] = _default;
|
|
45
|
+
var _default = exports["default"] = (0, _core.createComponent)(Error);
|
|
49
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_core","
|
|
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,WAAAG,WAAA,mBAAAH,KAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,UAAA,aAAAL,KAAA,EAAAC,UAAA;EAAA,WAAAK,aAAA,aAAAN,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,MAAA,YAAAoB,aAAA,CAAcC,uBAAW,MAAAzB,KAAA,CAAA0B,WAAA;QAAA,QAAQ,IAAAC,wBAAW,EAAC,SAAS;MAAC,GAAAT,IAAA,gBACrDd,MAAA,YAAAoB,aAAA,CAACnB,YAAA,WAAW,CAACuB,KAAK,QAAEL,WAAW,CAAC,OAAO,CAAqB,CAAC,eAC7DnB,MAAA,YAAAoB,aAAA,CAACnB,YAAA,WAAW,CAACwB,WAAW,QACrBP,WAAW,IAAIC,WAAW,CAAC,aAAa,CAClB,CAAC,eAC1BnB,MAAA,YAAAoB,aAAA,CAACH,QAAQ,MAAE,CACP,CAAC;IAEX;EAAC;AAAA,EArBiBS,eAAS;AAAA,IAAAC,gBAAA,aAAvBvB,KAAK,iBACY,aAAa;AAAA,IAAAuB,gBAAA,aAD9BvB,KAAK,kBAEa;EACpBwB,IAAI,EAAEC,8CAAiB;EACvBC,MAAM,EAAE;AACV,CAAC;AAAA,IAAAH,gBAAA,aALGvB,KAAK,aAOQ,CAAC,IAAA2B,uBAAW,EAACF,8CAAiB,CAAC,CAAC;AAAA,IAAAG,QAAA,GAAAC,OAAA,cAiBpC,IAAAC,qBAAe,EAAC9B,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,28 @@
|
|
|
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 _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
|
|
11
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
-
var _core =
|
|
14
|
+
var _core = require("@semcore/core");
|
|
15
|
+
var _i18nEnhance = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/i18nEnhance"));
|
|
15
16
|
var _react = _interopRequireDefault(require("react"));
|
|
16
17
|
var _WidgetEmpty = _interopRequireWildcard(require("../WidgetEmpty"));
|
|
17
|
-
var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
|
|
18
18
|
var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
|
|
19
19
|
var NoData = /*#__PURE__*/function (_Component) {
|
|
20
|
-
(0, _inherits2["default"])(NoData, _Component);
|
|
21
|
-
var _super = (0, _createSuper2["default"])(NoData);
|
|
22
20
|
function NoData() {
|
|
23
21
|
(0, _classCallCheck2["default"])(this, NoData);
|
|
24
|
-
return
|
|
22
|
+
return (0, _callSuper2["default"])(this, NoData, arguments);
|
|
25
23
|
}
|
|
26
|
-
(0,
|
|
24
|
+
(0, _inherits2["default"])(NoData, _Component);
|
|
25
|
+
return (0, _createClass2["default"])(NoData, [{
|
|
27
26
|
key: "render",
|
|
28
27
|
value: function render() {
|
|
29
28
|
var _ref = this.asProps;
|
|
@@ -37,7 +36,6 @@ var NoData = /*#__PURE__*/function (_Component) {
|
|
|
37
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));
|
|
38
37
|
}
|
|
39
38
|
}]);
|
|
40
|
-
return NoData;
|
|
41
39
|
}(_core.Component);
|
|
42
40
|
(0, _defineProperty2["default"])(NoData, "displayName", 'WidgetNoData');
|
|
43
41
|
(0, _defineProperty2["default"])(NoData, "enhance", [(0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages)]);
|
|
@@ -46,6 +44,5 @@ var NoData = /*#__PURE__*/function (_Component) {
|
|
|
46
44
|
locale: 'en',
|
|
47
45
|
type: 'other-data'
|
|
48
46
|
});
|
|
49
|
-
var _default = (0, _core
|
|
50
|
-
exports["default"] = _default;
|
|
47
|
+
var _default = exports["default"] = (0, _core.createComponent)(NoData);
|
|
51
48
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_core","
|
|
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,UAAA,aAAAL,MAAA,EAAAC,UAAA;EAAA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");
|
|
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,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -9,41 +8,38 @@ exports.getIconPath = exports["default"] = void 0;
|
|
|
9
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
+
var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
|
|
12
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
14
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
14
|
+
var _core = require("@semcore/core");
|
|
15
|
+
var _baseComponents = require("@semcore/base-components");
|
|
16
|
+
var _isNode = _interopRequireDefault(require("@semcore/core/lib/utils/isNode"));
|
|
18
17
|
var _illustration = require("@semcore/illustration");
|
|
19
|
-
var
|
|
20
|
-
var _isNode = _interopRequireDefault(require("@semcore/utils/lib/isNode"));
|
|
18
|
+
var _react = _interopRequireDefault(require("react"));
|
|
21
19
|
/*!__reshadow-styles__:"./style/widget-empty.shadow.css"*/
|
|
22
|
-
var style = (
|
|
20
|
+
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SWidgetEmpty_yz1ej_gg_{flex-direction:column;justify-content:center;align-items:center}.___SImage_yz1ej_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___STitle_yz1ej_gg_{text-align:center;color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}@supports (color:color(display-p3 0 0 0%)){.___STitle_yz1ej_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_yz1ej_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SDescription_yz1ej_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));max-width:400px}@supports (color:color(display-p3 0 0 0%)){.___SDescription_yz1ej_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SDescription_yz1ej_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___STitle_yz1ej_gg_+.___SDescription_yz1ej_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_yz1ej_gg_+.___SDescription_yz1ej_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}", /*__inner_css_end__*/"yz1ej_gg_"),
|
|
23
21
|
/*__reshadow_css_end__*/
|
|
24
22
|
{
|
|
25
|
-
"__SWidgetEmpty": "
|
|
26
|
-
"__SImage": "
|
|
27
|
-
"__STitle": "
|
|
28
|
-
"__SDescription": "
|
|
23
|
+
"__SWidgetEmpty": "___SWidgetEmpty_yz1ej_gg_",
|
|
24
|
+
"__SImage": "___SImage_yz1ej_gg_",
|
|
25
|
+
"__STitle": "___STitle_yz1ej_gg_",
|
|
26
|
+
"__SDescription": "___SDescription_yz1ej_gg_"
|
|
29
27
|
});
|
|
30
|
-
var getIconPath = function getIconPath(name) {
|
|
28
|
+
var getIconPath = exports.getIconPath = function getIconPath(name) {
|
|
31
29
|
return (0, _illustration.getIllustrationPath)(name);
|
|
32
30
|
};
|
|
33
|
-
exports.getIconPath = getIconPath;
|
|
34
31
|
var WidgetEmpty = /*#__PURE__*/function (_Component) {
|
|
35
|
-
(0, _inherits2["default"])(WidgetEmpty, _Component);
|
|
36
|
-
var _super = (0, _createSuper2["default"])(WidgetEmpty);
|
|
37
32
|
function WidgetEmpty() {
|
|
38
33
|
(0, _classCallCheck2["default"])(this, WidgetEmpty);
|
|
39
|
-
return
|
|
34
|
+
return (0, _callSuper2["default"])(this, WidgetEmpty, arguments);
|
|
40
35
|
}
|
|
41
|
-
(0,
|
|
36
|
+
(0, _inherits2["default"])(WidgetEmpty, _Component);
|
|
37
|
+
return (0, _createClass2["default"])(WidgetEmpty, [{
|
|
42
38
|
key: "render",
|
|
43
39
|
value: function render() {
|
|
44
40
|
var _ref = this.asProps,
|
|
45
41
|
_ref4;
|
|
46
|
-
var SWidgetEmpty =
|
|
42
|
+
var SWidgetEmpty = _baseComponents.Flex;
|
|
47
43
|
var _this$asProps = this.asProps,
|
|
48
44
|
Children = _this$asProps.Children,
|
|
49
45
|
icon = _this$asProps.icon,
|
|
@@ -59,27 +55,25 @@ var WidgetEmpty = /*#__PURE__*/function (_Component) {
|
|
|
59
55
|
})) : icon), /*#__PURE__*/_react["default"].createElement(Children, _ref4.cn("Children", {})));
|
|
60
56
|
}
|
|
61
57
|
}]);
|
|
62
|
-
return WidgetEmpty;
|
|
63
58
|
}(_core.Component);
|
|
64
59
|
(0, _defineProperty2["default"])(WidgetEmpty, "displayName", 'WidgetEmpty');
|
|
65
60
|
(0, _defineProperty2["default"])(WidgetEmpty, "style", style);
|
|
66
|
-
|
|
61
|
+
function Title(props) {
|
|
67
62
|
var _ref2 = arguments[0],
|
|
68
63
|
_ref5;
|
|
69
|
-
var STitle =
|
|
64
|
+
var STitle = _baseComponents.Box;
|
|
70
65
|
var styles = props.styles;
|
|
71
66
|
return _ref5 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(STitle, _ref5.cn("STitle", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref2))));
|
|
72
|
-
}
|
|
73
|
-
|
|
67
|
+
}
|
|
68
|
+
function Description(props) {
|
|
74
69
|
var _ref3 = arguments[0],
|
|
75
70
|
_ref6;
|
|
76
|
-
var SDescription =
|
|
71
|
+
var SDescription = _baseComponents.Box;
|
|
77
72
|
var styles = props.styles;
|
|
78
73
|
return _ref6 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SDescription, _ref6.cn("SDescription", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref3))));
|
|
79
|
-
}
|
|
80
|
-
var _default = (0, _core
|
|
74
|
+
}
|
|
75
|
+
var _default = exports["default"] = (0, _core.createComponent)(WidgetEmpty, {
|
|
81
76
|
Title: Title,
|
|
82
77
|
Description: Description
|
|
83
78
|
});
|
|
84
|
-
exports["default"] = _default;
|
|
85
79
|
//# sourceMappingURL=WidgetEmpty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetEmpty.js","names":["_core","
|
|
1
|
+
{"version":3,"file":"WidgetEmpty.js","names":["_core","require","_baseComponents","_isNode","_interopRequireDefault","_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 { 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,IA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],"sources":["../../src/index.d.ts"],"sourcesContent":["import {
|
|
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");
|
|
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":[]}
|
|
@@ -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 {
|
|
@@ -15,6 +14,7 @@ SImage {
|
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
STitle {
|
|
17
|
+
text-align: center;
|
|
18
18
|
color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
19
19
|
font-size: var(--intergalactic-fs-300, 16px);
|
|
20
20
|
line-height: var(--intergalactic-lh-300, 150%);
|
|
@@ -36,4 +36,4 @@ STitle+SDescription {
|
|
|
36
36
|
|
|
37
37
|
SDescription+SDescription {
|
|
38
38
|
margin-top: var(--intergalactic-spacing-2x, 8px);
|
|
39
|
-
}
|
|
39
|
+
}
|
package/lib/es6/Error/index.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
import _callSuper from "@babel/runtime/helpers/callSuper";
|
|
3
4
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
5
5
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
6
6
|
import { assignProps as _assignProps } from "@semcore/core";
|
|
7
|
+
import { createComponent, Component, Root } from '@semcore/core';
|
|
8
|
+
import i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
7
9
|
import React from 'react';
|
|
8
10
|
import WidgetEmpty, { getIconPath } from '../WidgetEmpty';
|
|
9
|
-
import createComponent, { Component, Root } from '@semcore/core';
|
|
10
|
-
import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
11
11
|
import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
12
12
|
var Error = /*#__PURE__*/function (_Component) {
|
|
13
|
-
_inherits(Error, _Component);
|
|
14
|
-
var _super = _createSuper(Error);
|
|
15
13
|
function Error() {
|
|
16
14
|
_classCallCheck(this, Error);
|
|
17
|
-
return
|
|
15
|
+
return _callSuper(this, Error, arguments);
|
|
18
16
|
}
|
|
19
|
-
|
|
17
|
+
_inherits(Error, _Component);
|
|
18
|
+
return _createClass(Error, [{
|
|
20
19
|
key: "render",
|
|
21
20
|
value: function render() {
|
|
22
21
|
var _ref = this.asProps;
|
|
@@ -29,7 +28,6 @@ var Error = /*#__PURE__*/function (_Component) {
|
|
|
29
28
|
}, _ref), /*#__PURE__*/React.createElement(WidgetEmpty.Title, null, getI18nText('title')), /*#__PURE__*/React.createElement(WidgetEmpty.Description, null, description || getI18nText('description')), /*#__PURE__*/React.createElement(Children, null));
|
|
30
29
|
}
|
|
31
30
|
}]);
|
|
32
|
-
return Error;
|
|
33
31
|
}(Component);
|
|
34
32
|
_defineProperty(Error, "displayName", 'WidgetError');
|
|
35
33
|
_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,21 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
import _callSuper from "@babel/runtime/helpers/callSuper";
|
|
3
4
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
5
5
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
6
6
|
import { assignProps as _assignProps } from "@semcore/core";
|
|
7
|
+
import { createComponent, Component, Root } from '@semcore/core';
|
|
8
|
+
import i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
7
9
|
import React from 'react';
|
|
8
10
|
import WidgetEmpty, { getIconPath } from '../WidgetEmpty';
|
|
9
|
-
import createComponent, { Component, Root } from '@semcore/core';
|
|
10
|
-
import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
11
11
|
import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
12
12
|
var NoData = /*#__PURE__*/function (_Component) {
|
|
13
|
-
_inherits(NoData, _Component);
|
|
14
|
-
var _super = _createSuper(NoData);
|
|
15
13
|
function NoData() {
|
|
16
14
|
_classCallCheck(this, NoData);
|
|
17
|
-
return
|
|
15
|
+
return _callSuper(this, NoData, arguments);
|
|
18
16
|
}
|
|
19
|
-
|
|
17
|
+
_inherits(NoData, _Component);
|
|
18
|
+
return _createClass(NoData, [{
|
|
20
19
|
key: "render",
|
|
21
20
|
value: function render() {
|
|
22
21
|
var _ref = this.asProps;
|
|
@@ -30,7 +29,6 @@ var NoData = /*#__PURE__*/function (_Component) {
|
|
|
30
29
|
}, _ref), /*#__PURE__*/React.createElement(WidgetEmpty.Title, null, getI18nText('title')), /*#__PURE__*/React.createElement(WidgetEmpty.Description, null, description || getI18nText('description')), /*#__PURE__*/React.createElement(Children, null));
|
|
31
30
|
}
|
|
32
31
|
}]);
|
|
33
|
-
return NoData;
|
|
34
32
|
}(Component);
|
|
35
33
|
_defineProperty(NoData, "displayName", 'WidgetNoData');
|
|
36
34
|
_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 </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BACW,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,37 @@
|
|
|
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 _callSuper from "@babel/runtime/helpers/callSuper";
|
|
4
5
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
|
-
import { sstyled as _sstyled } from "@semcore/
|
|
7
|
+
import { sstyled as _sstyled } from "@semcore/core";
|
|
8
8
|
import { assignProps as _assignProps3 } from "@semcore/core";
|
|
9
9
|
import { assignProps as _assignProps2 } from "@semcore/core";
|
|
10
10
|
import { assignProps as _assignProps } from "@semcore/core";
|
|
11
|
-
import
|
|
12
|
-
import createComponent,
|
|
11
|
+
import { Box, Flex } from '@semcore/base-components';
|
|
12
|
+
import { createComponent, Component, sstyled, Root } from '@semcore/core';
|
|
13
|
+
import isNode from '@semcore/core/lib/utils/isNode';
|
|
13
14
|
import { getIllustrationPath } from '@semcore/illustration';
|
|
14
|
-
import
|
|
15
|
-
import isNode from '@semcore/utils/lib/isNode';
|
|
15
|
+
import React from 'react';
|
|
16
16
|
/*!__reshadow-styles__:"./style/widget-empty.shadow.css"*/
|
|
17
|
-
var style = (
|
|
17
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SWidgetEmpty_yz1ej_gg_{flex-direction:column;justify-content:center;align-items:center}.___SImage_yz1ej_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___STitle_yz1ej_gg_{text-align:center;color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}@supports (color:color(display-p3 0 0 0%)){.___STitle_yz1ej_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_yz1ej_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SDescription_yz1ej_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));max-width:400px}@supports (color:color(display-p3 0 0 0%)){.___SDescription_yz1ej_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SDescription_yz1ej_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___STitle_yz1ej_gg_+.___SDescription_yz1ej_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_yz1ej_gg_+.___SDescription_yz1ej_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}", /*__inner_css_end__*/"yz1ej_gg_"),
|
|
18
18
|
/*__reshadow_css_end__*/
|
|
19
19
|
{
|
|
20
|
-
"__SWidgetEmpty": "
|
|
21
|
-
"__SImage": "
|
|
22
|
-
"__STitle": "
|
|
23
|
-
"__SDescription": "
|
|
20
|
+
"__SWidgetEmpty": "___SWidgetEmpty_yz1ej_gg_",
|
|
21
|
+
"__SImage": "___SImage_yz1ej_gg_",
|
|
22
|
+
"__STitle": "___STitle_yz1ej_gg_",
|
|
23
|
+
"__SDescription": "___SDescription_yz1ej_gg_"
|
|
24
24
|
});
|
|
25
25
|
export var getIconPath = function getIconPath(name) {
|
|
26
26
|
return getIllustrationPath(name);
|
|
27
27
|
};
|
|
28
28
|
var WidgetEmpty = /*#__PURE__*/function (_Component) {
|
|
29
|
-
_inherits(WidgetEmpty, _Component);
|
|
30
|
-
var _super = _createSuper(WidgetEmpty);
|
|
31
29
|
function WidgetEmpty() {
|
|
32
30
|
_classCallCheck(this, WidgetEmpty);
|
|
33
|
-
return
|
|
31
|
+
return _callSuper(this, WidgetEmpty, arguments);
|
|
34
32
|
}
|
|
35
|
-
|
|
33
|
+
_inherits(WidgetEmpty, _Component);
|
|
34
|
+
return _createClass(WidgetEmpty, [{
|
|
36
35
|
key: "render",
|
|
37
36
|
value: function render() {
|
|
38
37
|
var _ref = this.asProps,
|
|
@@ -53,24 +52,23 @@ var WidgetEmpty = /*#__PURE__*/function (_Component) {
|
|
|
53
52
|
})) : icon), /*#__PURE__*/React.createElement(Children, _ref4.cn("Children", {})));
|
|
54
53
|
}
|
|
55
54
|
}]);
|
|
56
|
-
return WidgetEmpty;
|
|
57
55
|
}(Component);
|
|
58
56
|
_defineProperty(WidgetEmpty, "displayName", 'WidgetEmpty');
|
|
59
57
|
_defineProperty(WidgetEmpty, "style", style);
|
|
60
|
-
|
|
58
|
+
function Title(props) {
|
|
61
59
|
var _ref2 = arguments[0],
|
|
62
60
|
_ref5;
|
|
63
61
|
var STitle = Box;
|
|
64
62
|
var styles = props.styles;
|
|
65
63
|
return _ref5 = sstyled(styles), /*#__PURE__*/React.createElement(STitle, _ref5.cn("STitle", _objectSpread({}, _assignProps2({}, _ref2))));
|
|
66
|
-
}
|
|
67
|
-
|
|
64
|
+
}
|
|
65
|
+
function Description(props) {
|
|
68
66
|
var _ref3 = arguments[0],
|
|
69
67
|
_ref6;
|
|
70
68
|
var SDescription = Box;
|
|
71
69
|
var styles = props.styles;
|
|
72
70
|
return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(SDescription, _ref6.cn("SDescription", _objectSpread({}, _assignProps3({}, _ref3))));
|
|
73
|
-
}
|
|
71
|
+
}
|
|
74
72
|
export default createComponent(WidgetEmpty, {
|
|
75
73
|
Title: Title,
|
|
76
74
|
Description: Description
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetEmpty.js","names":["
|
|
1
|
+
{"version":3,"file":"WidgetEmpty.js","names":["Box","Flex","createComponent","Component","sstyled","Root","isNode","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 { 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":";;;;;;;;;;AAAA,SAASA,GAAG,EAAEC,IAAI,QAAQ,0BAA0B;AACpD,SAASC,eAAe,EAAEC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,OAAOC,MAAM,MAAM,gCAAgC;AACnD,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,IAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAI1B,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,IAAI;EAAA,OAAKN,mBAAmB,CAACM,IAAI,CAAC;AAAA;AAAC,IAEzDC,WAAW,0BAAAC,UAAA;EAAA,SAAAD,YAAA;IAAAE,eAAA,OAAAF,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ACpB,IAAMC,MAAM,GAE2B3C,GAAG;EAD1C,IAAQ+B,MAAM,GAAKQ,KAAK,CAAhBR,MAAM;EACd,OAAAW,KAAA,GAAOtC,OAAO,CAAC2B,MAAM,CAAC,eAACvB,KAAA,CAAAyB,aAAA,CAACU,MAAM,EAAAD,KAAA,CAAAR,EAAA,WAAAC,aAAA,KAAAS,aAAA,KAAAJ,KAAA,GAAe,CAAC;AAChD;AAEA,SAASK,WAAWA,CAACN,KAAK,EAAE;EAAA,IAAAO,KAAA,GAAAL,YAAA;IAAAM,KAAA;EAC1B,IAAMC,YAAY,GAE2BhD,GAAG;EADhD,IAAQ+B,MAAM,GAAKQ,KAAK,CAAhBR,MAAM;EACd,OAAAgB,KAAA,GAAO3C,OAAO,CAAC2B,MAAM,CAAC,eAACvB,KAAA,CAAAyB,aAAA,CAACe,YAAY,EAAAD,KAAA,CAAAb,EAAA,iBAAAC,aAAA,KAAAc,aAAA,KAAAH,KAAA,GAAe,CAAC;AACtD;AAEA,eAAe5C,eAAe,CAACY,WAAW,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 {
|
|
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/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":[]}
|
|
@@ -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 {
|
|
@@ -15,6 +14,7 @@ SImage {
|
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
STitle {
|
|
17
|
+
text-align: center;
|
|
18
18
|
color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
19
19
|
font-size: var(--intergalactic-fs-300, 16px);
|
|
20
20
|
line-height: var(--intergalactic-lh-300, 150%);
|
|
@@ -36,4 +36,4 @@ STitle+SDescription {
|
|
|
36
36
|
|
|
37
37
|
SDescription+SDescription {
|
|
38
38
|
margin-top: var(--intergalactic-spacing-2x, 8px);
|
|
39
|
-
}
|
|
39
|
+
}
|
package/lib/esm/Error/index.mjs
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
3
4
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
-
import
|
|
6
|
+
import { assignProps, Component, createComponent } from "@semcore/core";
|
|
7
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
7
8
|
import React from "react";
|
|
8
9
|
import WidgetEmpty, { getIconPath } from "../WidgetEmpty.mjs";
|
|
9
|
-
import i18nEnhance from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
10
10
|
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
11
|
-
var Error = /* @__PURE__ */ function(_Component) {
|
|
12
|
-
_inherits(Error2, _Component);
|
|
13
|
-
var _super = _createSuper(Error2);
|
|
11
|
+
var Error = /* @__PURE__ */ (function(_Component) {
|
|
14
12
|
function Error2() {
|
|
15
13
|
_classCallCheck(this, Error2);
|
|
16
|
-
return
|
|
14
|
+
return _callSuper(this, Error2, arguments);
|
|
17
15
|
}
|
|
18
|
-
|
|
16
|
+
_inherits(Error2, _Component);
|
|
17
|
+
return _createClass(Error2, [{
|
|
19
18
|
key: "render",
|
|
20
19
|
value: function render() {
|
|
21
20
|
var _ref = this.asProps;
|
|
@@ -25,8 +24,7 @@ var Error = /* @__PURE__ */ function(_Component) {
|
|
|
25
24
|
}, _ref), /* @__PURE__ */ React.createElement(WidgetEmpty.Title, null, getI18nText("title")), /* @__PURE__ */ React.createElement(WidgetEmpty.Description, null, description || getI18nText("description")), /* @__PURE__ */ React.createElement(Children, null));
|
|
26
25
|
}
|
|
27
26
|
}]);
|
|
28
|
-
|
|
29
|
-
}(Component);
|
|
27
|
+
})(Component);
|
|
30
28
|
_defineProperty(Error, "displayName", "WidgetError");
|
|
31
29
|
_defineProperty(Error, "defaultProps", {
|
|
32
30
|
i18n: 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/NoData/index.mjs
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
3
4
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
-
import
|
|
6
|
+
import { assignProps, Component, createComponent } from "@semcore/core";
|
|
7
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
7
8
|
import React from "react";
|
|
8
9
|
import WidgetEmpty, { getIconPath } from "../WidgetEmpty.mjs";
|
|
9
|
-
import i18nEnhance from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
10
10
|
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
11
|
-
var NoData = /* @__PURE__ */ function(_Component) {
|
|
12
|
-
_inherits(NoData2, _Component);
|
|
13
|
-
var _super = _createSuper(NoData2);
|
|
11
|
+
var NoData = /* @__PURE__ */ (function(_Component) {
|
|
14
12
|
function NoData2() {
|
|
15
13
|
_classCallCheck(this, NoData2);
|
|
16
|
-
return
|
|
14
|
+
return _callSuper(this, NoData2, arguments);
|
|
17
15
|
}
|
|
18
|
-
|
|
16
|
+
_inherits(NoData2, _Component);
|
|
17
|
+
return _createClass(NoData2, [{
|
|
19
18
|
key: "render",
|
|
20
19
|
value: function render() {
|
|
21
20
|
var _ref = this.asProps;
|
|
@@ -25,8 +24,7 @@ var NoData = /* @__PURE__ */ function(_Component) {
|
|
|
25
24
|
}, _ref), /* @__PURE__ */ React.createElement(WidgetEmpty.Title, null, getI18nText("title")), /* @__PURE__ */ React.createElement(WidgetEmpty.Description, null, description || getI18nText("description")), /* @__PURE__ */ React.createElement(Children, null));
|
|
26
25
|
}
|
|
27
26
|
}]);
|
|
28
|
-
|
|
29
|
-
}(Component);
|
|
27
|
+
})(Component);
|
|
30
28
|
_defineProperty(NoData, "displayName", "WidgetNoData");
|
|
31
29
|
_defineProperty(NoData, "enhance", [i18nEnhance(localizedMessages)]);
|
|
32
30
|
_defineProperty(NoData, "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/WidgetEmpty.mjs
CHANGED
|
@@ -1,49 +1,47 @@
|
|
|
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 _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
4
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import { sstyled } from "@semcore/
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import { sstyled, assignProps, Component, createComponent } from "@semcore/core";
|
|
8
|
+
import { Flex, Box } from "@semcore/base-components";
|
|
9
|
+
import isNode from "@semcore/core/lib/utils/isNode";
|
|
10
10
|
import { getIllustrationPath } from "@semcore/illustration";
|
|
11
|
-
import
|
|
12
|
-
import isNode from "@semcore/utils/lib/isNode";
|
|
11
|
+
import React from "react";
|
|
13
12
|
/*!__reshadow-styles__:"./style/widget-empty.shadow.css"*/
|
|
14
13
|
var style = (
|
|
15
14
|
/*__reshadow_css_start__*/
|
|
16
15
|
(sstyled.insert(
|
|
17
16
|
/*__inner_css_start__*/
|
|
18
|
-
".
|
|
17
|
+
".___SWidgetEmpty_yz1ej_gg_{flex-direction:column;justify-content:center;align-items:center}.___SImage_yz1ej_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___STitle_yz1ej_gg_{text-align:center;color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}@supports (color:color(display-p3 0 0 0%)){.___STitle_yz1ej_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_yz1ej_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SDescription_yz1ej_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));max-width:400px}@supports (color:color(display-p3 0 0 0%)){.___SDescription_yz1ej_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SDescription_yz1ej_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___STitle_yz1ej_gg_+.___SDescription_yz1ej_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_yz1ej_gg_+.___SDescription_yz1ej_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}",
|
|
19
18
|
/*__inner_css_end__*/
|
|
20
|
-
"
|
|
19
|
+
"yz1ej_gg_"
|
|
21
20
|
), /*__reshadow_css_end__*/
|
|
22
21
|
{
|
|
23
|
-
"__SWidgetEmpty": "
|
|
24
|
-
"__SImage": "
|
|
25
|
-
"__STitle": "
|
|
26
|
-
"__SDescription": "
|
|
22
|
+
"__SWidgetEmpty": "___SWidgetEmpty_yz1ej_gg_",
|
|
23
|
+
"__SImage": "___SImage_yz1ej_gg_",
|
|
24
|
+
"__STitle": "___STitle_yz1ej_gg_",
|
|
25
|
+
"__SDescription": "___SDescription_yz1ej_gg_"
|
|
27
26
|
})
|
|
28
27
|
);
|
|
29
28
|
var getIconPath = function getIconPath2(name) {
|
|
30
29
|
return getIllustrationPath(name);
|
|
31
30
|
};
|
|
32
|
-
var WidgetEmpty = /* @__PURE__ */ function(_Component) {
|
|
33
|
-
_inherits(WidgetEmpty2, _Component);
|
|
34
|
-
var _super = _createSuper(WidgetEmpty2);
|
|
31
|
+
var WidgetEmpty = /* @__PURE__ */ (function(_Component) {
|
|
35
32
|
function WidgetEmpty2() {
|
|
36
33
|
_classCallCheck(this, WidgetEmpty2);
|
|
37
|
-
return
|
|
34
|
+
return _callSuper(this, WidgetEmpty2, arguments);
|
|
38
35
|
}
|
|
39
|
-
|
|
36
|
+
_inherits(WidgetEmpty2, _Component);
|
|
37
|
+
return _createClass(WidgetEmpty2, [{
|
|
40
38
|
key: "render",
|
|
41
39
|
value: function render() {
|
|
42
40
|
var _ref = this.asProps, _ref4;
|
|
43
41
|
var SWidgetEmpty = Flex;
|
|
44
42
|
var _this$asProps = this.asProps, Children = _this$asProps.Children, icon = _this$asProps.icon, styles = _this$asProps.styles;
|
|
45
43
|
var SImage = "div";
|
|
46
|
-
return _ref4 = sstyled
|
|
44
|
+
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SWidgetEmpty, _ref4.cn("SWidgetEmpty", _objectSpread({}, assignProps({
|
|
47
45
|
"role": "status"
|
|
48
46
|
}, _ref))), isNode(icon) && /* @__PURE__ */ React.createElement(SImage, _ref4.cn("SImage", {
|
|
49
47
|
"aria-hidden": "true"
|
|
@@ -53,22 +51,21 @@ var WidgetEmpty = /* @__PURE__ */ function(_Component) {
|
|
|
53
51
|
})) : icon), /* @__PURE__ */ React.createElement(Children, _ref4.cn("Children", {})));
|
|
54
52
|
}
|
|
55
53
|
}]);
|
|
56
|
-
|
|
57
|
-
}(Component);
|
|
54
|
+
})(Component);
|
|
58
55
|
_defineProperty(WidgetEmpty, "displayName", "WidgetEmpty");
|
|
59
56
|
_defineProperty(WidgetEmpty, "style", style);
|
|
60
|
-
|
|
57
|
+
function Title(props) {
|
|
61
58
|
var _ref2 = arguments[0], _ref5;
|
|
62
59
|
var STitle = Box;
|
|
63
60
|
var styles = props.styles;
|
|
64
|
-
return _ref5 = sstyled
|
|
65
|
-
}
|
|
66
|
-
|
|
61
|
+
return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(STitle, _ref5.cn("STitle", _objectSpread({}, assignProps({}, _ref2))));
|
|
62
|
+
}
|
|
63
|
+
function Description(props) {
|
|
67
64
|
var _ref3 = arguments[0], _ref6;
|
|
68
65
|
var SDescription = Box;
|
|
69
66
|
var styles = props.styles;
|
|
70
|
-
return _ref6 = sstyled
|
|
71
|
-
}
|
|
67
|
+
return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SDescription, _ref6.cn("SDescription", _objectSpread({}, assignProps({}, _ref3))));
|
|
68
|
+
}
|
|
72
69
|
const WidgetEmpty$1 = createComponent(WidgetEmpty, {
|
|
73
70
|
Title,
|
|
74
71
|
Description
|
|
@@ -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 {
|
|
@@ -15,6 +14,7 @@ SImage {
|
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
STitle {
|
|
17
|
+
text-align: center;
|
|
18
18
|
color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
19
19
|
font-size: var(--intergalactic-fs-300, 16px);
|
|
20
20
|
line-height: var(--intergalactic-lh-300, 150%);
|
|
@@ -36,4 +36,4 @@ STitle+SDescription {
|
|
|
36
36
|
|
|
37
37
|
SDescription+SDescription {
|
|
38
38
|
margin-top: var(--intergalactic-spacing-2x, 8px);
|
|
39
|
-
}
|
|
39
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { Box, FlexProps } from '@semcore/base-components';
|
|
2
|
+
import type { Intergalactic } from '@semcore/core';
|
|
3
|
+
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
4
|
+
import type { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';
|
|
5
5
|
|
|
6
6
|
export type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;
|
|
7
7
|
|
|
8
|
-
/** @deprecated */
|
|
9
|
-
export interface IWidgetEmptyProps extends WidgetEmptyProps, UnknownProperties {}
|
|
10
8
|
export type WidgetEmptyProps = FlexProps & {
|
|
11
9
|
/**
|
|
12
10
|
* URL before the icon or the whole component
|
|
@@ -14,21 +12,17 @@ export type WidgetEmptyProps = FlexProps & {
|
|
|
14
12
|
icon?: React.ReactNode;
|
|
15
13
|
};
|
|
16
14
|
|
|
17
|
-
/** @deprecated */
|
|
18
|
-
export interface IWidgetErrorProps extends WidgetErrorProps, UnknownProperties {}
|
|
19
15
|
export type WidgetErrorProps = WidgetEmptyProps &
|
|
20
16
|
WithI18nEnhanceProps & {
|
|
21
17
|
/** Error description. If it is absent, use the local default one */
|
|
22
18
|
description?: React.ReactNode;
|
|
23
19
|
};
|
|
24
20
|
|
|
25
|
-
/** @deprecated */
|
|
26
|
-
export interface IWidgetNoDataProps extends WidgetNoDataProps, UnknownProperties {}
|
|
27
21
|
export type WidgetNoDataProps = WidgetEmptyProps &
|
|
28
22
|
WithI18nEnhanceProps & {
|
|
29
23
|
/** Error description. If it is absent, use the local default one */
|
|
30
24
|
description?: React.ReactNode;
|
|
31
|
-
|
|
25
|
+
/** Data types */
|
|
32
26
|
type?: iconNamesWidgetEmpty;
|
|
33
27
|
};
|
|
34
28
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/widget-empty",
|
|
3
3
|
"description": "Semrush WidgetEmpty Component",
|
|
4
|
-
"version": "4.44.0-prerelease.
|
|
4
|
+
"version": "4.44.0-prerelease.5",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/flex-box": "5.42.0-prerelease.
|
|
18
|
-
"@semcore/illustration": "2.45.0-prerelease.
|
|
19
|
-
"@semcore/utils": "4.49.0-prerelease.
|
|
17
|
+
"@semcore/flex-box": "5.42.0-prerelease.5",
|
|
18
|
+
"@semcore/illustration": "2.45.0-prerelease.5",
|
|
19
|
+
"@semcore/utils": "4.49.0-prerelease.5"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@semcore/core": "^2.40.0-prerelease.
|
|
22
|
+
"@semcore/core": "^2.40.0-prerelease.5",
|
|
23
23
|
"react": "16.8 - 18",
|
|
24
24
|
"react-dom": "16.8 - 18"
|
|
25
25
|
},
|