@semcore/widget-empty 3.12.3 → 4.0.0-beta.1
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 +3 -3
- package/lib/cjs/WidgetEmpty.js +5 -5
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/es6/WidgetEmpty.js +5 -5
- package/lib/es6/index.d.js.map +1 -1
- package/lib/types/index.d.ts +28 -21
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [
|
|
5
|
+
## [4.0.0] - 2023-07-15
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Break
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
- Strict, backward incompatible typings.
|
|
10
10
|
|
|
11
11
|
## [3.12.2] - 2023-06-27
|
|
12
12
|
|
package/lib/cjs/WidgetEmpty.js
CHANGED
|
@@ -18,11 +18,11 @@ var _illustration = require("@semcore/illustration");
|
|
|
18
18
|
var _flexBox = require("@semcore/flex-box");
|
|
19
19
|
var _isNode = _interopRequireDefault(require("@semcore/utils/lib/isNode"));
|
|
20
20
|
/*__reshadow-styles__:"./style/widget-empty.shadow.css"*/
|
|
21
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
22
|
-
"__SWidgetEmpty": "
|
|
23
|
-
"__SImage": "
|
|
24
|
-
"__STitle": "
|
|
25
|
-
"__SDescription": "
|
|
21
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SWidgetEmpty_ahdbc_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_ahdbc_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px)}.___SDescription_ahdbc_gg_,.___STitle_ahdbc_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_ahdbc_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_ahdbc_gg_{text-align:center;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_ahdbc_gg_+.___SDescription_ahdbc_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_ahdbc_gg_+.___SDescription_ahdbc_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}" /*__inner_css_end__*/, "ahdbc_gg_") /*__reshadow_css_end__*/, {
|
|
22
|
+
"__SWidgetEmpty": "___SWidgetEmpty_ahdbc_gg_",
|
|
23
|
+
"__SImage": "___SImage_ahdbc_gg_",
|
|
24
|
+
"__STitle": "___STitle_ahdbc_gg_",
|
|
25
|
+
"__SDescription": "___SDescription_ahdbc_gg_"
|
|
26
26
|
});
|
|
27
27
|
var getIconPath = function getIconPath(name) {
|
|
28
28
|
return (0, _illustration.getIllustrationPath)(name);
|
package/lib/cjs/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 { Intergalactic, UnknownProperties } from '@semcore/core';\nimport { Box, FlexProps } from '@semcore/flex-box';\nimport { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';\nimport { WithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\n\nexport type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;\n\n/** @deprecated */\nexport interface IWidgetEmptyProps extends WidgetEmptyProps, UnknownProperties {}\nexport type WidgetEmptyProps = FlexProps & {\n /**\n * URL before the icon or the whole component\n */\n icon?: React.ReactNode;\n};\n\n/** @deprecated */\nexport interface IWidgetErrorProps extends WidgetErrorProps, UnknownProperties {}\nexport type WidgetErrorProps = WidgetEmptyProps &\n WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n };\n\n/** @deprecated */\nexport interface IWidgetNoDataProps extends WidgetNoDataProps, UnknownProperties {}\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":""}
|
package/lib/es6/WidgetEmpty.js
CHANGED
|
@@ -14,11 +14,11 @@ import { getIllustrationPath } from '@semcore/illustration';
|
|
|
14
14
|
import { Box, Flex } from '@semcore/flex-box';
|
|
15
15
|
import isNode from '@semcore/utils/lib/isNode';
|
|
16
16
|
/*__reshadow-styles__:"./style/widget-empty.shadow.css"*/
|
|
17
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
18
|
-
"__SWidgetEmpty": "
|
|
19
|
-
"__SImage": "
|
|
20
|
-
"__STitle": "
|
|
21
|
-
"__SDescription": "
|
|
17
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SWidgetEmpty_ahdbc_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_ahdbc_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px)}.___SDescription_ahdbc_gg_,.___STitle_ahdbc_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_ahdbc_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_ahdbc_gg_{text-align:center;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_ahdbc_gg_+.___SDescription_ahdbc_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_ahdbc_gg_+.___SDescription_ahdbc_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}" /*__inner_css_end__*/, "ahdbc_gg_") /*__reshadow_css_end__*/, {
|
|
18
|
+
"__SWidgetEmpty": "___SWidgetEmpty_ahdbc_gg_",
|
|
19
|
+
"__SImage": "___SImage_ahdbc_gg_",
|
|
20
|
+
"__STitle": "___STitle_ahdbc_gg_",
|
|
21
|
+
"__SDescription": "___SDescription_ahdbc_gg_"
|
|
22
22
|
});
|
|
23
23
|
export var getIconPath = function getIconPath(name) {
|
|
24
24
|
return getIllustrationPath(name);
|
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 { Intergalactic, UnknownProperties } from '@semcore/core';\nimport { Box, FlexProps } from '@semcore/flex-box';\nimport { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';\nimport { WithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\n\nexport type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;\n\n/** @deprecated */\nexport interface IWidgetEmptyProps extends WidgetEmptyProps, UnknownProperties {}\nexport type WidgetEmptyProps = FlexProps & {\n /**\n * URL before the icon or the whole component\n */\n icon?: React.ReactNode;\n};\n\n/** @deprecated */\nexport interface IWidgetErrorProps extends WidgetErrorProps, UnknownProperties {}\nexport type WidgetErrorProps = WidgetEmptyProps &\n WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n };\n\n/** @deprecated */\nexport interface IWidgetNoDataProps extends WidgetNoDataProps, UnknownProperties {}\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":""}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,37 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Box, IFlexProps } from '@semcore/flex-box';
|
|
1
|
+
import { Intergalactic, UnknownProperties } from '@semcore/core';
|
|
2
|
+
import { Box, FlexProps } from '@semcore/flex-box';
|
|
4
3
|
import { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';
|
|
5
|
-
import {
|
|
4
|
+
import { WithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
6
5
|
|
|
7
6
|
export type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
/** @deprecated */
|
|
9
|
+
export interface IWidgetEmptyProps extends WidgetEmptyProps, UnknownProperties {}
|
|
10
|
+
export type WidgetEmptyProps = FlexProps & {
|
|
10
11
|
/**
|
|
11
12
|
* URL before the icon or the whole component
|
|
12
13
|
*/
|
|
13
14
|
icon?: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
+
};
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
/** @deprecated */
|
|
18
|
+
export interface IWidgetErrorProps extends WidgetErrorProps, UnknownProperties {}
|
|
19
|
+
export type WidgetErrorProps = WidgetEmptyProps &
|
|
20
|
+
WithI18nEnhanceProps & {
|
|
21
|
+
/** Error description. If it is absent, use the local default one */
|
|
22
|
+
description?: React.ReactNode;
|
|
23
|
+
};
|
|
20
24
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
/** @deprecated */
|
|
26
|
+
export interface IWidgetNoDataProps extends WidgetNoDataProps, UnknownProperties {}
|
|
27
|
+
export type WidgetNoDataProps = WidgetEmptyProps &
|
|
28
|
+
WithI18nEnhanceProps & {
|
|
29
|
+
/** Error description. If it is absent, use the local default one */
|
|
30
|
+
description?: React.ReactNode;
|
|
31
|
+
/* Data types */
|
|
32
|
+
type?: iconNamesWidgetEmpty;
|
|
33
|
+
};
|
|
27
34
|
|
|
28
|
-
declare const WidgetEmpty:
|
|
29
|
-
Title:
|
|
30
|
-
Description:
|
|
35
|
+
declare const WidgetEmpty: Intergalactic.Component<'div', WidgetEmptyProps> & {
|
|
36
|
+
Title: typeof Box;
|
|
37
|
+
Description: typeof Box;
|
|
31
38
|
};
|
|
32
39
|
|
|
33
|
-
export declare const NoData: <
|
|
34
|
-
export declare const Error: <
|
|
40
|
+
export declare const NoData: Intergalactic.Component<'div', WidgetNoDataProps>;
|
|
41
|
+
export declare const Error: Intergalactic.Component<'div', WidgetErrorProps>;
|
|
35
42
|
export declare const getIconPath: (name: string) => string;
|
|
36
43
|
|
|
37
44
|
export default WidgetEmpty;
|
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": "4.0.0-beta.1",
|
|
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
|
"dependencies": {
|
|
12
|
-
"@semcore/flex-box": "
|
|
13
|
-
"@semcore/illustration": "
|
|
14
|
-
"@semcore/utils": "
|
|
12
|
+
"@semcore/flex-box": "5.0.0-beta.1",
|
|
13
|
+
"@semcore/illustration": "2.0.0-beta.1",
|
|
14
|
+
"@semcore/utils": "4.0.0-beta.1"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@semcore/core": "
|
|
17
|
+
"@semcore/core": "2.0.0-beta.1",
|
|
18
18
|
"react": "16.8 - 18",
|
|
19
19
|
"react-dom": "16.8 - 18"
|
|
20
20
|
},
|