@semcore/widget-empty 4.44.0-prerelease.0 → 16.0.0-prerelease.0
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 +20 -2
- 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 +11 -11
- 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 +11 -9
- 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 +67 -53
- package/lib/esm/index.mjs +7 -7
- package/lib/esm/style/widget-empty.shadow.css +39 -0
- package/lib/types/index.d.ts +1 -1
- package/package.json +4 -7
package/lib/esm/WidgetEmpty.mjs
CHANGED
|
@@ -1,64 +1,78 @@
|
|
|
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
|
|
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
|
+
/*!__reshadow-styles__:"./style/widget-empty.shadow.css"*/
|
|
13
|
+
var style = (
|
|
14
14
|
/*__reshadow_css_start__*/
|
|
15
|
-
(
|
|
15
|
+
(sstyled.insert(
|
|
16
16
|
/*__inner_css_start__*/
|
|
17
|
-
".
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
".___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)}",
|
|
18
|
+
/*__inner_css_end__*/
|
|
19
|
+
"rymi7_gg_"
|
|
20
|
+
), /*__reshadow_css_end__*/
|
|
21
|
+
{
|
|
22
|
+
"__SWidgetEmpty": "___SWidgetEmpty_rymi7_gg_",
|
|
23
|
+
"__SImage": "___SImage_rymi7_gg_",
|
|
24
|
+
"__STitle": "___STitle_rymi7_gg_",
|
|
25
|
+
"__SDescription": "___SDescription_rymi7_gg_"
|
|
24
26
|
})
|
|
25
|
-
)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
);
|
|
28
|
+
var getIconPath = function getIconPath2(name) {
|
|
29
|
+
return getIllustrationPath(name);
|
|
30
|
+
};
|
|
31
|
+
var WidgetEmpty = /* @__PURE__ */ function(_Component) {
|
|
32
|
+
_inherits(WidgetEmpty2, _Component);
|
|
33
|
+
var _super = _createSuper(WidgetEmpty2);
|
|
34
|
+
function WidgetEmpty2() {
|
|
35
|
+
_classCallCheck(this, WidgetEmpty2);
|
|
36
|
+
return _super.apply(this, arguments);
|
|
32
37
|
}
|
|
33
|
-
|
|
38
|
+
_createClass(WidgetEmpty2, [{
|
|
34
39
|
key: "render",
|
|
35
|
-
value: function() {
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
value: function render() {
|
|
41
|
+
var _ref = this.asProps, _ref4;
|
|
42
|
+
var SWidgetEmpty = Flex;
|
|
43
|
+
var _this$asProps = this.asProps, Children = _this$asProps.Children, icon = _this$asProps.icon, styles = _this$asProps.styles;
|
|
44
|
+
var SImage = "div";
|
|
45
|
+
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SWidgetEmpty, _ref4.cn("SWidgetEmpty", _objectSpread({}, assignProps({
|
|
46
|
+
"role": "status"
|
|
47
|
+
}, _ref))), isNode(icon) && /* @__PURE__ */ React.createElement(SImage, _ref4.cn("SImage", {
|
|
40
48
|
"aria-hidden": "true"
|
|
41
|
-
}), typeof
|
|
42
|
-
src:
|
|
43
|
-
alt: ""
|
|
44
|
-
})) :
|
|
49
|
+
}), typeof icon === "string" ? /* @__PURE__ */ React.createElement("img", _ref4.cn("img", {
|
|
50
|
+
"src": icon,
|
|
51
|
+
"alt": ""
|
|
52
|
+
})) : icon), /* @__PURE__ */ React.createElement(Children, _ref4.cn("Children", {})));
|
|
45
53
|
}
|
|
46
|
-
}])
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var
|
|
55
|
-
return
|
|
54
|
+
}]);
|
|
55
|
+
return WidgetEmpty2;
|
|
56
|
+
}(Component);
|
|
57
|
+
_defineProperty(WidgetEmpty, "displayName", "WidgetEmpty");
|
|
58
|
+
_defineProperty(WidgetEmpty, "style", style);
|
|
59
|
+
var Title = function Title2(props) {
|
|
60
|
+
var _ref2 = arguments[0], _ref5;
|
|
61
|
+
var STitle = Box;
|
|
62
|
+
var styles = props.styles;
|
|
63
|
+
return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(STitle, _ref5.cn("STitle", _objectSpread({}, assignProps({}, _ref2))));
|
|
64
|
+
};
|
|
65
|
+
var Description = function Description2(props) {
|
|
66
|
+
var _ref3 = arguments[0], _ref6;
|
|
67
|
+
var SDescription = Box;
|
|
68
|
+
var styles = props.styles;
|
|
69
|
+
return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SDescription, _ref6.cn("SDescription", _objectSpread({}, assignProps({}, _ref3))));
|
|
56
70
|
};
|
|
57
|
-
const
|
|
58
|
-
Title
|
|
59
|
-
Description
|
|
71
|
+
const WidgetEmpty$1 = createComponent(WidgetEmpty, {
|
|
72
|
+
Title,
|
|
73
|
+
Description
|
|
60
74
|
});
|
|
61
75
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
76
|
+
WidgetEmpty$1 as default,
|
|
77
|
+
getIconPath
|
|
64
78
|
};
|
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
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
SWidgetEmpty {
|
|
2
|
+
flex-direction: column;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
5
|
+
margin-bottom: var(--intergalactic-spacing-4x, 16px);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
SImage {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: flex-end;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
margin-bottom: var(--intergalactic-spacing-3x, 12px);
|
|
13
|
+
width: 80px;
|
|
14
|
+
height: 80px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
STitle {
|
|
18
|
+
color: var(--intergalactic-text-secondary, #6c6e79);
|
|
19
|
+
font-size: var(--intergalactic-fs-300, 16px);
|
|
20
|
+
line-height: var(--intergalactic-lh-300, 150%);
|
|
21
|
+
font-weight: var(--intergalactic-bold, 700);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
SDescription {
|
|
25
|
+
text-align: center;
|
|
26
|
+
text-wrap: balance;
|
|
27
|
+
font-size: var(--intergalactic-fs-200, 14px);
|
|
28
|
+
line-height: var(--intergalactic-lh-200, 142%);
|
|
29
|
+
color: var(--intergalactic-text-secondary, #6c6e79);
|
|
30
|
+
max-width: 400px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
STitle+SDescription {
|
|
34
|
+
margin-top: var(--intergalactic-spacing-1x, 4px);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
SDescription+SDescription {
|
|
38
|
+
margin-top: var(--intergalactic-spacing-2x, 8px);
|
|
39
|
+
}
|
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.0",
|
|
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.0",
|
|
18
|
+
"@semcore/illustration": "16.0.0-prerelease.0"
|
|
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.0"
|
|
25
22
|
},
|
|
26
23
|
"repository": {
|
|
27
24
|
"type": "git",
|