@semcore/widget-empty 4.43.1 → 16.0.0-prerelease.10
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/lib/cjs/Error/index.js +3 -3
- package/lib/cjs/Error/index.js.map +1 -1
- package/lib/cjs/NoData/index.js +3 -3
- package/lib/cjs/NoData/index.js.map +1 -1
- package/lib/cjs/WidgetEmpty.js +8 -10
- package/lib/cjs/WidgetEmpty.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/es6/Error/index.js +2 -2
- package/lib/es6/Error/index.js.map +1 -1
- package/lib/es6/NoData/index.js +2 -2
- package/lib/es6/NoData/index.js.map +1 -1
- package/lib/es6/WidgetEmpty.js +8 -8
- package/lib/es6/WidgetEmpty.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/esm/Error/index.mjs +32 -29
- package/lib/esm/Error/translations/__intergalactic-dynamic-locales.mjs +32 -32
- package/lib/esm/Error/translations/de.json.mjs +8 -6
- package/lib/esm/Error/translations/en.json.mjs +8 -6
- package/lib/esm/Error/translations/es.json.mjs +8 -6
- package/lib/esm/Error/translations/fr.json.mjs +8 -6
- package/lib/esm/Error/translations/it.json.mjs +8 -6
- package/lib/esm/Error/translations/ja.json.mjs +8 -6
- package/lib/esm/Error/translations/ko.json.mjs +8 -6
- package/lib/esm/Error/translations/nl.json.mjs +8 -6
- package/lib/esm/Error/translations/pl.json.mjs +8 -6
- package/lib/esm/Error/translations/pt.json.mjs +8 -6
- package/lib/esm/Error/translations/ru.json.mjs +8 -6
- package/lib/esm/Error/translations/sv.json.mjs +8 -6
- package/lib/esm/Error/translations/tr.json.mjs +8 -6
- package/lib/esm/Error/translations/vi.json.mjs +8 -6
- package/lib/esm/Error/translations/zh.json.mjs +8 -6
- package/lib/esm/NoData/index.mjs +32 -29
- package/lib/esm/NoData/translations/__intergalactic-dynamic-locales.mjs +32 -32
- package/lib/esm/NoData/translations/de.json.mjs +8 -6
- package/lib/esm/NoData/translations/en.json.mjs +8 -6
- package/lib/esm/NoData/translations/es.json.mjs +8 -6
- package/lib/esm/NoData/translations/fr.json.mjs +8 -6
- package/lib/esm/NoData/translations/it.json.mjs +8 -6
- package/lib/esm/NoData/translations/ja.json.mjs +8 -6
- package/lib/esm/NoData/translations/ko.json.mjs +8 -6
- package/lib/esm/NoData/translations/nl.json.mjs +8 -6
- package/lib/esm/NoData/translations/pl.json.mjs +8 -6
- package/lib/esm/NoData/translations/pt.json.mjs +8 -6
- package/lib/esm/NoData/translations/ru.json.mjs +8 -6
- package/lib/esm/NoData/translations/sv.json.mjs +8 -6
- package/lib/esm/NoData/translations/tr.json.mjs +8 -6
- package/lib/esm/NoData/translations/vi.json.mjs +8 -6
- package/lib/esm/NoData/translations/zh.json.mjs +8 -6
- package/lib/esm/WidgetEmpty.mjs +63 -52
- package/lib/esm/index.mjs +7 -7
- package/lib/types/index.d.ts +1 -1
- package/package.json +4 -7
package/lib/esm/WidgetEmpty.mjs
CHANGED
|
@@ -1,64 +1,75 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { sstyled
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
var P = (
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
+
import { 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
|
+
import isNode from "@semcore/core/lib/utils/isNode";
|
|
12
|
+
var style = (
|
|
14
13
|
/*__reshadow_css_start__*/
|
|
15
|
-
(
|
|
14
|
+
(sstyled.insert(
|
|
16
15
|
/*__inner_css_start__*/
|
|
17
|
-
".
|
|
18
|
-
"
|
|
16
|
+
".___SWidgetEmpty_rymi7_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_rymi7_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_rymi7_gg_,.___STitle_rymi7_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_rymi7_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_rymi7_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_rymi7_gg_+.___SDescription_rymi7_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_rymi7_gg_+.___SDescription_rymi7_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}",
|
|
17
|
+
"rymi7_gg_"
|
|
19
18
|
), {
|
|
20
|
-
__SWidgetEmpty: "
|
|
21
|
-
__SImage: "
|
|
22
|
-
__STitle: "
|
|
23
|
-
__SDescription: "
|
|
19
|
+
"__SWidgetEmpty": "___SWidgetEmpty_rymi7_gg_",
|
|
20
|
+
"__SImage": "___SImage_rymi7_gg_",
|
|
21
|
+
"__STitle": "___STitle_rymi7_gg_",
|
|
22
|
+
"__SDescription": "___SDescription_rymi7_gg_"
|
|
24
23
|
})
|
|
25
|
-
)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
);
|
|
25
|
+
var getIconPath = function getIconPath2(name) {
|
|
26
|
+
return getIllustrationPath(name);
|
|
27
|
+
};
|
|
28
|
+
var WidgetEmpty = /* @__PURE__ */ function(_Component) {
|
|
29
|
+
_inherits(WidgetEmpty2, _Component);
|
|
30
|
+
var _super = _createSuper(WidgetEmpty2);
|
|
31
|
+
function WidgetEmpty2() {
|
|
32
|
+
_classCallCheck(this, WidgetEmpty2);
|
|
33
|
+
return _super.apply(this, arguments);
|
|
32
34
|
}
|
|
33
|
-
|
|
35
|
+
_createClass(WidgetEmpty2, [{
|
|
34
36
|
key: "render",
|
|
35
|
-
value: function() {
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
value: function render() {
|
|
38
|
+
var _ref = this.asProps, _ref4;
|
|
39
|
+
var SWidgetEmpty = Flex;
|
|
40
|
+
var _this$asProps = this.asProps, Children = _this$asProps.Children, icon = _this$asProps.icon, styles = _this$asProps.styles;
|
|
41
|
+
var SImage = "div";
|
|
42
|
+
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SWidgetEmpty, _ref4.cn("SWidgetEmpty", _objectSpread({}, assignProps({
|
|
43
|
+
"role": "status"
|
|
44
|
+
}, _ref))), isNode(icon) && /* @__PURE__ */ React.createElement(SImage, _ref4.cn("SImage", {
|
|
40
45
|
"aria-hidden": "true"
|
|
41
|
-
}), typeof
|
|
42
|
-
src:
|
|
43
|
-
alt: ""
|
|
44
|
-
})) :
|
|
46
|
+
}), typeof icon === "string" ? /* @__PURE__ */ React.createElement("img", _ref4.cn("img", {
|
|
47
|
+
"src": icon,
|
|
48
|
+
"alt": ""
|
|
49
|
+
})) : icon), /* @__PURE__ */ React.createElement(Children, _ref4.cn("Children", {})));
|
|
45
50
|
}
|
|
46
|
-
}])
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var
|
|
55
|
-
return
|
|
51
|
+
}]);
|
|
52
|
+
return WidgetEmpty2;
|
|
53
|
+
}(Component);
|
|
54
|
+
_defineProperty(WidgetEmpty, "displayName", "WidgetEmpty");
|
|
55
|
+
_defineProperty(WidgetEmpty, "style", style);
|
|
56
|
+
var Title = function Title2(props) {
|
|
57
|
+
var _ref2 = arguments[0], _ref5;
|
|
58
|
+
var STitle = Box;
|
|
59
|
+
var styles = props.styles;
|
|
60
|
+
return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(STitle, _ref5.cn("STitle", _objectSpread({}, assignProps({}, _ref2))));
|
|
61
|
+
};
|
|
62
|
+
var Description = function Description2(props) {
|
|
63
|
+
var _ref3 = arguments[0], _ref6;
|
|
64
|
+
var SDescription = Box;
|
|
65
|
+
var styles = props.styles;
|
|
66
|
+
return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SDescription, _ref6.cn("SDescription", _objectSpread({}, assignProps({}, _ref3))));
|
|
56
67
|
};
|
|
57
|
-
const
|
|
58
|
-
Title
|
|
59
|
-
Description
|
|
68
|
+
const WidgetEmpty$1 = createComponent(WidgetEmpty, {
|
|
69
|
+
Title,
|
|
70
|
+
Description
|
|
60
71
|
});
|
|
61
72
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
73
|
+
WidgetEmpty$1 as default,
|
|
74
|
+
getIconPath
|
|
64
75
|
};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
1
|
+
import { default as default2, getIconPath } from "./WidgetEmpty.mjs";
|
|
2
|
+
import { default as default3 } from "./NoData/index.mjs";
|
|
3
|
+
import { default as default4 } from "./Error/index.mjs";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
default4 as Error,
|
|
6
|
+
default3 as NoData,
|
|
7
|
+
default2 as default,
|
|
8
|
+
getIconPath
|
|
9
9
|
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Intergalactic, UnknownProperties } from '@semcore/core';
|
|
2
2
|
import { Box, FlexProps } from '@semcore/flex-box';
|
|
3
3
|
import { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';
|
|
4
|
-
import { WithI18nEnhanceProps } from '@semcore/
|
|
4
|
+
import { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
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": "
|
|
4
|
+
"version": "16.0.0-prerelease.10",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,14 +14,11 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/flex-box": "
|
|
18
|
-
"@semcore/illustration": "
|
|
19
|
-
"@semcore/utils": "4.48.1"
|
|
17
|
+
"@semcore/flex-box": "16.0.0-prerelease.10",
|
|
18
|
+
"@semcore/illustration": "16.0.0-prerelease.10"
|
|
20
19
|
},
|
|
21
20
|
"peerDependencies": {
|
|
22
|
-
"@semcore/
|
|
23
|
-
"react": "16.8 - 18",
|
|
24
|
-
"react-dom": "16.8 - 18"
|
|
21
|
+
"@semcore/base-components": "^16.0.0-prerelease.10"
|
|
25
22
|
},
|
|
26
23
|
"repository": {
|
|
27
24
|
"type": "git",
|