@semcore/widget-empty 3.4.2 → 3.4.3
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/WidgetEmpty.js +6 -6
- package/lib/cjs/index.d.js +2 -0
- package/lib/cjs/index.d.js.map +1 -0
- package/lib/es6/WidgetEmpty.js +6 -6
- package/lib/es6/index.d.js +2 -0
- package/lib/es6/index.d.js.map +1 -0
- package/lib/types/index.d.ts +3 -4
- package/package.json +4 -3
- package/lib/cjs/index.d.ts +0 -38
- package/lib/es6/index.d.ts +0 -38
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [3.4.3] - 2022-10-04
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/flex-box` [4.5.11 ~> 4.5.12], `@semcore/illustration` [1.1.4 ~> 1.1.5], `@semcore/utils` [3.37.1 ~> 3.37.2]).
|
|
10
|
+
|
|
5
11
|
## [3.4.2] - 2022-09-27
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/lib/cjs/WidgetEmpty.js
CHANGED
|
@@ -48,15 +48,15 @@ var style = (
|
|
|
48
48
|
/*__reshadow_css_start__*/
|
|
49
49
|
_core.sstyled.insert(
|
|
50
50
|
/*__inner_css_start__*/
|
|
51
|
-
".
|
|
51
|
+
".___SWidgetEmpty_1st6h_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:16px}.___SImage_1st6h_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:12px}.___STitle_1st6h_gg_{color:#6c6e79}.___STitle_1st6h_gg_{font-size:16px;line-height:1.5;font-weight:700}.___SDescription_1st6h_gg_{text-align:center;font-size:14px;line-height:1.42;color:#6c6e79;max-width:400px}.___STitle_1st6h_gg_+.___SDescription_1st6h_gg_{margin-top:4px}.___SDescription_1st6h_gg_+.___SDescription_1st6h_gg_{margin-top:8px}"
|
|
52
52
|
/*__inner_css_end__*/
|
|
53
|
-
, "
|
|
53
|
+
, "1st6h_gg_")
|
|
54
54
|
/*__reshadow_css_end__*/
|
|
55
55
|
, {
|
|
56
|
-
"__SWidgetEmpty": "
|
|
57
|
-
"__SImage": "
|
|
58
|
-
"__STitle": "
|
|
59
|
-
"__SDescription": "
|
|
56
|
+
"__SWidgetEmpty": "___SWidgetEmpty_1st6h_gg_",
|
|
57
|
+
"__SImage": "___SImage_1st6h_gg_",
|
|
58
|
+
"__STitle": "___STitle_1st6h_gg_",
|
|
59
|
+
"__SDescription": "___SDescription_1st6h_gg_"
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
var getIconPath = function getIconPath(name) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { ComponentProps } from 'react';\nimport { CProps, ReturnEl } from '@semcore/core';\nimport { Box, IFlexProps } from '@semcore/flex-box';\nimport { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';\nimport { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\n\nexport type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;\n\nexport interface IWidgetEmptyProps extends IFlexProps {\n /**\n * URL before the icon or the whole component\n */\n icon?: React.ReactNode;\n}\n\nexport interface IWidgetErrorProps extends IWidgetEmptyProps, IWithI18nEnhanceProps {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n}\n\nexport interface IWidgetNoDataProps extends IWidgetEmptyProps, IWithI18nEnhanceProps {\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: (<T>(props: CProps<IWidgetEmptyProps> & T) => ReturnEl) & {\n Title: <T>(props: ComponentProps<typeof Box> & T) => ReturnEl;\n Description: <T>(props: ComponentProps<typeof Box> & T) => ReturnEl;\n};\n\nexport declare const NoData: <T>(props: CProps<IWidgetNoDataProps> & T) => ReturnEl;\nexport declare const Error: <T>(props: CProps<IWidgetErrorProps> & T) => ReturnEl;\nexport declare const getIconPath: (name: string) => string;\n\nexport default WidgetEmpty;\n"],"mappings":""}
|
package/lib/es6/WidgetEmpty.js
CHANGED
|
@@ -28,15 +28,15 @@ var style = (
|
|
|
28
28
|
/*__reshadow_css_start__*/
|
|
29
29
|
_sstyled.insert(
|
|
30
30
|
/*__inner_css_start__*/
|
|
31
|
-
".
|
|
31
|
+
".___SWidgetEmpty_1st6h_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:16px}.___SImage_1st6h_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:12px}.___STitle_1st6h_gg_{color:#6c6e79}.___STitle_1st6h_gg_{font-size:16px;line-height:1.5;font-weight:700}.___SDescription_1st6h_gg_{text-align:center;font-size:14px;line-height:1.42;color:#6c6e79;max-width:400px}.___STitle_1st6h_gg_+.___SDescription_1st6h_gg_{margin-top:4px}.___SDescription_1st6h_gg_+.___SDescription_1st6h_gg_{margin-top:8px}"
|
|
32
32
|
/*__inner_css_end__*/
|
|
33
|
-
, "
|
|
33
|
+
, "1st6h_gg_")
|
|
34
34
|
/*__reshadow_css_end__*/
|
|
35
35
|
, {
|
|
36
|
-
"__SWidgetEmpty": "
|
|
37
|
-
"__SImage": "
|
|
38
|
-
"__STitle": "
|
|
39
|
-
"__SDescription": "
|
|
36
|
+
"__SWidgetEmpty": "___SWidgetEmpty_1st6h_gg_",
|
|
37
|
+
"__SImage": "___SImage_1st6h_gg_",
|
|
38
|
+
"__STitle": "___STitle_1st6h_gg_",
|
|
39
|
+
"__SDescription": "___SDescription_1st6h_gg_"
|
|
40
40
|
});
|
|
41
41
|
export var getIconPath = function getIconPath(name) {
|
|
42
42
|
return getIllustrationPath(name);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { ComponentProps } from 'react';\nimport { CProps, ReturnEl } from '@semcore/core';\nimport { Box, IFlexProps } from '@semcore/flex-box';\nimport { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';\nimport { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\n\nexport type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;\n\nexport interface IWidgetEmptyProps extends IFlexProps {\n /**\n * URL before the icon or the whole component\n */\n icon?: React.ReactNode;\n}\n\nexport interface IWidgetErrorProps extends IWidgetEmptyProps, IWithI18nEnhanceProps {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n}\n\nexport interface IWidgetNoDataProps extends IWidgetEmptyProps, IWithI18nEnhanceProps {\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: (<T>(props: CProps<IWidgetEmptyProps> & T) => ReturnEl) & {\n Title: <T>(props: ComponentProps<typeof Box> & T) => ReturnEl;\n Description: <T>(props: ComponentProps<typeof Box> & T) => ReturnEl;\n};\n\nexport declare const NoData: <T>(props: CProps<IWidgetNoDataProps> & T) => ReturnEl;\nexport declare const Error: <T>(props: CProps<IWidgetErrorProps> & T) => ReturnEl;\nexport declare const getIconPath: (name: string) => string;\n\nexport default WidgetEmpty;\n"],"mappings":""}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -30,9 +30,8 @@ declare const WidgetEmpty: (<T>(props: CProps<IWidgetEmptyProps> & T) => ReturnE
|
|
|
30
30
|
Description: <T>(props: ComponentProps<typeof Box> & T) => ReturnEl;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
declare const NoData: <T>(props: CProps<IWidgetNoDataProps> & T) => ReturnEl;
|
|
34
|
-
declare const Error: <T>(props: CProps<IWidgetErrorProps> & T) => ReturnEl;
|
|
35
|
-
declare const getIconPath: (name: string) => string;
|
|
33
|
+
export declare const NoData: <T>(props: CProps<IWidgetNoDataProps> & T) => ReturnEl;
|
|
34
|
+
export declare const Error: <T>(props: CProps<IWidgetErrorProps> & T) => ReturnEl;
|
|
35
|
+
export declare const getIconPath: (name: string) => string;
|
|
36
36
|
|
|
37
37
|
export default WidgetEmpty;
|
|
38
|
-
export { getIconPath, NoData, Error };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/widget-empty",
|
|
3
3
|
"description": "Semrush WidgetEmpty Component",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.3",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "
|
|
12
|
+
"build": "pnpm semcore-builder --source=js",
|
|
13
13
|
"test": "jest"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@semcore/flex-box": "^4",
|
|
17
|
-
"@semcore/illustration": "1.1.
|
|
17
|
+
"@semcore/illustration": "1.1.5",
|
|
18
18
|
"@semcore/utils": "^3.27"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"directory": "semcore/widget-empty"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
+
"@types/react": "16.8 - 17",
|
|
33
34
|
"@semcore/jest-preset-ui": "1.0.0"
|
|
34
35
|
}
|
|
35
36
|
}
|
package/lib/cjs/index.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
3
|
-
import { Box, IFlexProps } from '@semcore/flex-box';
|
|
4
|
-
import { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';
|
|
5
|
-
import { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
6
|
-
|
|
7
|
-
export type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;
|
|
8
|
-
|
|
9
|
-
export interface IWidgetEmptyProps extends IFlexProps {
|
|
10
|
-
/**
|
|
11
|
-
* URL before the icon or the whole component
|
|
12
|
-
*/
|
|
13
|
-
icon?: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface IWidgetErrorProps extends IWidgetEmptyProps, IWithI18nEnhanceProps {
|
|
17
|
-
/** Error description. If it is absent, use the local default one */
|
|
18
|
-
description?: React.ReactNode;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IWidgetNoDataProps extends IWidgetEmptyProps, IWithI18nEnhanceProps {
|
|
22
|
-
/** Error description. If it is absent, use the local default one */
|
|
23
|
-
description?: React.ReactNode;
|
|
24
|
-
/* Data types */
|
|
25
|
-
type?: iconNamesWidgetEmpty;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
declare const WidgetEmpty: (<T>(props: CProps<IWidgetEmptyProps> & T) => ReturnEl) & {
|
|
29
|
-
Title: <T>(props: ComponentProps<typeof Box> & T) => ReturnEl;
|
|
30
|
-
Description: <T>(props: ComponentProps<typeof Box> & T) => ReturnEl;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
declare const NoData: <T>(props: CProps<IWidgetNoDataProps> & T) => ReturnEl;
|
|
34
|
-
declare const Error: <T>(props: CProps<IWidgetErrorProps> & T) => ReturnEl;
|
|
35
|
-
declare const getIconPath: (name: string) => string;
|
|
36
|
-
|
|
37
|
-
export default WidgetEmpty;
|
|
38
|
-
export { getIconPath, NoData, Error };
|
package/lib/es6/index.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { CProps, ReturnEl } from '@semcore/core';
|
|
3
|
-
import { Box, IFlexProps } from '@semcore/flex-box';
|
|
4
|
-
import { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';
|
|
5
|
-
import { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
6
|
-
|
|
7
|
-
export type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;
|
|
8
|
-
|
|
9
|
-
export interface IWidgetEmptyProps extends IFlexProps {
|
|
10
|
-
/**
|
|
11
|
-
* URL before the icon or the whole component
|
|
12
|
-
*/
|
|
13
|
-
icon?: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface IWidgetErrorProps extends IWidgetEmptyProps, IWithI18nEnhanceProps {
|
|
17
|
-
/** Error description. If it is absent, use the local default one */
|
|
18
|
-
description?: React.ReactNode;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IWidgetNoDataProps extends IWidgetEmptyProps, IWithI18nEnhanceProps {
|
|
22
|
-
/** Error description. If it is absent, use the local default one */
|
|
23
|
-
description?: React.ReactNode;
|
|
24
|
-
/* Data types */
|
|
25
|
-
type?: iconNamesWidgetEmpty;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
declare const WidgetEmpty: (<T>(props: CProps<IWidgetEmptyProps> & T) => ReturnEl) & {
|
|
29
|
-
Title: <T>(props: ComponentProps<typeof Box> & T) => ReturnEl;
|
|
30
|
-
Description: <T>(props: ComponentProps<typeof Box> & T) => ReturnEl;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
declare const NoData: <T>(props: CProps<IWidgetNoDataProps> & T) => ReturnEl;
|
|
34
|
-
declare const Error: <T>(props: CProps<IWidgetErrorProps> & T) => ReturnEl;
|
|
35
|
-
declare const getIconPath: (name: string) => string;
|
|
36
|
-
|
|
37
|
-
export default WidgetEmpty;
|
|
38
|
-
export { getIconPath, NoData, Error };
|