@semcore/widget-empty 3.4.2 → 3.5.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 +6 -24
- package/LICENSE +21 -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 +8 -7
- 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.5.0] - 2022-10-06
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version minor update due to children dependencies update (`@semcore/illustration` [1.1.5 ~> 1.2.0]).
|
|
10
|
+
|
|
5
11
|
## [3.4.2] - 2022-09-27
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
@@ -36,24 +42,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
36
42
|
|
|
37
43
|
- Version patch update due to children dependencies update (`@semcore/utils` [3.37.0 ~> 3.37.1], `@semcore/flex-box` [4.5.10 ~> 4.5.11]).
|
|
38
44
|
|
|
39
|
-
## [3.2.3] - 2022-08-18
|
|
40
|
-
|
|
41
|
-
### Changed
|
|
42
|
-
|
|
43
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.36.0 ~> 3.37.0], `@semcore/flex-box` [4.5.9 ~> 4.5.10]).
|
|
44
|
-
|
|
45
|
-
## [3.2.2] - 2022-08-11
|
|
46
|
-
|
|
47
|
-
### Changed
|
|
48
|
-
|
|
49
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.35.1 ~> 3.36.0], `@semcore/flex-box` [4.5.8 ~> 4.5.9]).
|
|
50
|
-
|
|
51
|
-
## [3.2.1] - 2022-07-22
|
|
52
|
-
|
|
53
|
-
### Changed
|
|
54
|
-
|
|
55
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.34.0 ~> 3.35.0], `@semcore/flex-box` [4.5.6 ~> 4.5.7]).
|
|
56
|
-
|
|
57
45
|
## [3.2.0] - 2022-06-30
|
|
58
46
|
|
|
59
47
|
### Changed
|
|
@@ -72,12 +60,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
72
60
|
|
|
73
61
|
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.1 ~> 3.32.2], `@semcore/flex-box` [4.5.3 ~> 4.5.4]).
|
|
74
62
|
|
|
75
|
-
## [3.0.1] - 2022-05-19
|
|
76
|
-
|
|
77
|
-
### Changed
|
|
78
|
-
|
|
79
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.0 ~> 3.32.1], `@semcore/flex-box` [4.5.1 ~> 4.5.3]).
|
|
80
|
-
|
|
81
63
|
## [3.0.0] - 2022-05-17
|
|
82
64
|
|
|
83
65
|
### BREAK
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright ©, 2022, Semrush Inc. (written by Roman Lysov, Sergey Kobets, Mikhail Karachev, Julia Mnizhek, Elena Krasnopolskaia, Mikhail Sereniti).
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
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
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SWidgetEmpty_1yxj5_gg_ {\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-bottom: 16px;\n}\n\n.___SImage_1yxj5_gg_ {\n display: flex;\n align-items: flex-end;\n justify-content: center;\n margin-bottom: 12px;\n}\n\n.___STitle_1yxj5_gg_ {\n color: #6c6e79;\n}\n\n.___STitle_1yxj5_gg_ {\n font-size: 16px;\n line-height: 1.5;\n font-weight: bold;\n}\n\n.___SDescription_1yxj5_gg_ {\n text-align: center;\n font-size: 14px;\n line-height: 1.42;\n color: #6c6e79;\n max-width: 400px;\n}\n\n.___STitle_1yxj5_gg_ + .___SDescription_1yxj5_gg_ {\n margin-top: 4px;\n}\n\n.___SDescription_1yxj5_gg_ + .___SDescription_1yxj5_gg_ {\n margin-top: 8px;\n}\n"
|
|
52
52
|
/*__inner_css_end__*/
|
|
53
|
-
, "
|
|
53
|
+
, "1yxj5_gg_")
|
|
54
54
|
/*__reshadow_css_end__*/
|
|
55
55
|
, {
|
|
56
|
-
"__SWidgetEmpty": "
|
|
57
|
-
"__SImage": "
|
|
58
|
-
"__STitle": "
|
|
59
|
-
"__SDescription": "
|
|
56
|
+
"__SWidgetEmpty": "___SWidgetEmpty_1yxj5_gg_",
|
|
57
|
+
"__SImage": "___SImage_1yxj5_gg_",
|
|
58
|
+
"__STitle": "___STitle_1yxj5_gg_",
|
|
59
|
+
"__SDescription": "___SDescription_1yxj5_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
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SWidgetEmpty_1yxj5_gg_ {\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-bottom: 16px;\n}\n\n.___SImage_1yxj5_gg_ {\n display: flex;\n align-items: flex-end;\n justify-content: center;\n margin-bottom: 12px;\n}\n\n.___STitle_1yxj5_gg_ {\n color: #6c6e79;\n}\n\n.___STitle_1yxj5_gg_ {\n font-size: 16px;\n line-height: 1.5;\n font-weight: bold;\n}\n\n.___SDescription_1yxj5_gg_ {\n text-align: center;\n font-size: 14px;\n line-height: 1.42;\n color: #6c6e79;\n max-width: 400px;\n}\n\n.___STitle_1yxj5_gg_ + .___SDescription_1yxj5_gg_ {\n margin-top: 4px;\n}\n\n.___SDescription_1yxj5_gg_ + .___SDescription_1yxj5_gg_ {\n margin-top: 8px;\n}\n"
|
|
32
32
|
/*__inner_css_end__*/
|
|
33
|
-
, "
|
|
33
|
+
, "1yxj5_gg_")
|
|
34
34
|
/*__reshadow_css_end__*/
|
|
35
35
|
, {
|
|
36
|
-
"__SWidgetEmpty": "
|
|
37
|
-
"__SImage": "
|
|
38
|
-
"__STitle": "
|
|
39
|
-
"__SDescription": "
|
|
36
|
+
"__SWidgetEmpty": "___SWidgetEmpty_1yxj5_gg_",
|
|
37
|
+
"__SImage": "___SImage_1yxj5_gg_",
|
|
38
|
+
"__STitle": "___STitle_1yxj5_gg_",
|
|
39
|
+
"__SDescription": "___SDescription_1yxj5_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,20 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/widget-empty",
|
|
3
3
|
"description": "Semrush WidgetEmpty Component",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.5.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "build --source=js",
|
|
13
|
-
"test": "jest"
|
|
14
|
-
},
|
|
15
11
|
"dependencies": {
|
|
16
12
|
"@semcore/flex-box": "^4",
|
|
17
|
-
"@semcore/illustration": "1.
|
|
13
|
+
"@semcore/illustration": "1.2.0",
|
|
18
14
|
"@semcore/utils": "^3.27"
|
|
19
15
|
},
|
|
20
16
|
"peerDependencies": {
|
|
@@ -30,6 +26,11 @@
|
|
|
30
26
|
"directory": "semcore/widget-empty"
|
|
31
27
|
},
|
|
32
28
|
"devDependencies": {
|
|
29
|
+
"@types/react": "16.8 - 17",
|
|
33
30
|
"@semcore/jest-preset-ui": "1.0.0"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "pnpm semcore-builder --source=js",
|
|
34
|
+
"test": "jest"
|
|
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 };
|