@semcore/spin-container 6.0.11 → 6.0.12
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/SpinContainer.js +9 -9
- package/lib/cjs/index.d.js +2 -0
- package/lib/cjs/index.d.js.map +1 -0
- package/lib/es6/SpinContainer.js +9 -9
- package/lib/es6/index.d.js +2 -0
- package/lib/es6/index.d.js.map +1 -0
- package/package.json +3 -2
- 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
|
+
## [6.0.12] - 2022-10-04
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/utils` [3.37.1 ~> 3.37.2], `@semcore/spin` [4.0.10 ~> 4.0.11], `@semcore/flex-box` [4.5.11 ~> 4.5.12], `@semcore/animation` [1.5.10 ~> 1.5.11]).
|
|
10
|
+
|
|
5
11
|
## [6.0.11] - 2022-09-20
|
|
6
12
|
|
|
7
13
|
### Fixed
|
package/lib/cjs/SpinContainer.js
CHANGED
|
@@ -52,18 +52,18 @@ var style = (
|
|
|
52
52
|
/*__reshadow_css_start__*/
|
|
53
53
|
_core.sstyled.insert(
|
|
54
54
|
/*__inner_css_start__*/
|
|
55
|
-
".
|
|
55
|
+
".___SSpinContainer_1udbd_gg_{z-index:0;position:relative;display:block;overflow:hidden}.___SContent_1udbd_gg_{z-index:0;position:relative}.___SOverlay_1udbd_gg_{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0}.___SOverlay_1udbd_gg_._theme_invert_1udbd_gg_{background-color:rgba(25,27,35,.4)}.___SOverlay_1udbd_gg_._theme_dark_1udbd_gg_{background-color:hsla(0,0%,100%,.85)}.___SOverlay_1udbd_gg_._theme_custom_1udbd_gg_{background-color:var(--background_1udbd)}"
|
|
56
56
|
/*__inner_css_end__*/
|
|
57
|
-
, "
|
|
57
|
+
, "1udbd_gg_")
|
|
58
58
|
/*__reshadow_css_end__*/
|
|
59
59
|
, {
|
|
60
|
-
"__SSpinContainer": "
|
|
61
|
-
"__SContent": "
|
|
62
|
-
"__SOverlay": "
|
|
63
|
-
"_theme_invert": "
|
|
64
|
-
"_theme_dark": "
|
|
65
|
-
"_theme_custom": "
|
|
66
|
-
"--background": "--
|
|
60
|
+
"__SSpinContainer": "___SSpinContainer_1udbd_gg_",
|
|
61
|
+
"__SContent": "___SContent_1udbd_gg_",
|
|
62
|
+
"__SOverlay": "___SOverlay_1udbd_gg_",
|
|
63
|
+
"_theme_invert": "_theme_invert_1udbd_gg_",
|
|
64
|
+
"_theme_dark": "_theme_dark_1udbd_gg_",
|
|
65
|
+
"_theme_custom": "_theme_custom_1udbd_gg_",
|
|
66
|
+
"--background": "--background_1udbd"
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
var SpinContainerRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, ReturnEl, CProps } from '@semcore/core';\nimport { ISpinProps } from '@semcore/spin';\nimport { Box, IBoxProps } from '@semcore/flex-box';\n\nexport interface ISpinContainerProps extends IBoxProps, ISpinProps {\n /**\n * Color of container spinner; you can use your own color\n */\n background?: string;\n /** Duration of animation displaying in ms\n * @default 200\n */\n duration?: number;\n /**\n * Property responsible for displaying the spinner\n * */\n loading?: boolean;\n}\n\nexport interface ISpinContainerContext {\n getOverlayProps: PropGetterFn;\n}\n\nexport interface ISpinContainerOverlayProps extends IBoxProps {\n /**\n * Css background; you can use your own color\n */\n background?: string;\n}\n\ndeclare const SpinContainer: (<T>(\n props: CProps<ISpinContainerProps & T, ISpinContainerContext>,\n) => ReturnEl) & {\n Content: typeof Box;\n Overlay: <T>(props: ISpinContainerOverlayProps & T) => ReturnEl;\n};\n\nexport default SpinContainer;\n"],"mappings":""}
|
package/lib/es6/SpinContainer.js
CHANGED
|
@@ -30,18 +30,18 @@ var style = (
|
|
|
30
30
|
/*__reshadow_css_start__*/
|
|
31
31
|
_sstyled.insert(
|
|
32
32
|
/*__inner_css_start__*/
|
|
33
|
-
".
|
|
33
|
+
".___SSpinContainer_1udbd_gg_{z-index:0;position:relative;display:block;overflow:hidden}.___SContent_1udbd_gg_{z-index:0;position:relative}.___SOverlay_1udbd_gg_{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0}.___SOverlay_1udbd_gg_._theme_invert_1udbd_gg_{background-color:rgba(25,27,35,.4)}.___SOverlay_1udbd_gg_._theme_dark_1udbd_gg_{background-color:hsla(0,0%,100%,.85)}.___SOverlay_1udbd_gg_._theme_custom_1udbd_gg_{background-color:var(--background_1udbd)}"
|
|
34
34
|
/*__inner_css_end__*/
|
|
35
|
-
, "
|
|
35
|
+
, "1udbd_gg_")
|
|
36
36
|
/*__reshadow_css_end__*/
|
|
37
37
|
, {
|
|
38
|
-
"__SSpinContainer": "
|
|
39
|
-
"__SContent": "
|
|
40
|
-
"__SOverlay": "
|
|
41
|
-
"_theme_invert": "
|
|
42
|
-
"_theme_dark": "
|
|
43
|
-
"_theme_custom": "
|
|
44
|
-
"--background": "--
|
|
38
|
+
"__SSpinContainer": "___SSpinContainer_1udbd_gg_",
|
|
39
|
+
"__SContent": "___SContent_1udbd_gg_",
|
|
40
|
+
"__SOverlay": "___SOverlay_1udbd_gg_",
|
|
41
|
+
"_theme_invert": "_theme_invert_1udbd_gg_",
|
|
42
|
+
"_theme_dark": "_theme_dark_1udbd_gg_",
|
|
43
|
+
"_theme_custom": "_theme_custom_1udbd_gg_",
|
|
44
|
+
"--background": "--background_1udbd"
|
|
45
45
|
});
|
|
46
46
|
|
|
47
47
|
var SpinContainerRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, ReturnEl, CProps } from '@semcore/core';\nimport { ISpinProps } from '@semcore/spin';\nimport { Box, IBoxProps } from '@semcore/flex-box';\n\nexport interface ISpinContainerProps extends IBoxProps, ISpinProps {\n /**\n * Color of container spinner; you can use your own color\n */\n background?: string;\n /** Duration of animation displaying in ms\n * @default 200\n */\n duration?: number;\n /**\n * Property responsible for displaying the spinner\n * */\n loading?: boolean;\n}\n\nexport interface ISpinContainerContext {\n getOverlayProps: PropGetterFn;\n}\n\nexport interface ISpinContainerOverlayProps extends IBoxProps {\n /**\n * Css background; you can use your own color\n */\n background?: string;\n}\n\ndeclare const SpinContainer: (<T>(\n props: CProps<ISpinContainerProps & T, ISpinContainerContext>,\n) => ReturnEl) & {\n Content: typeof Box;\n Overlay: <T>(props: ISpinContainerOverlayProps & T) => ReturnEl;\n};\n\nexport default SpinContainer;\n"],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/spin-container",
|
|
3
3
|
"description": "Semrush SpinContainer Component",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.12",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"types": "lib/types/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
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": {
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"directory": "semcore/spin-container"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
+
"@types/react": "16.8 - 17",
|
|
34
35
|
"@semcore/jest-preset-ui": "1.0.0"
|
|
35
36
|
}
|
|
36
37
|
}
|
package/lib/cjs/index.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { PropGetterFn, ReturnEl, CProps } from '@semcore/core';
|
|
2
|
-
import { ISpinProps } from '@semcore/spin';
|
|
3
|
-
import { Box, IBoxProps } from '@semcore/flex-box';
|
|
4
|
-
|
|
5
|
-
export interface ISpinContainerProps extends IBoxProps, ISpinProps {
|
|
6
|
-
/**
|
|
7
|
-
* Color of container spinner; you can use your own color
|
|
8
|
-
*/
|
|
9
|
-
background?: string;
|
|
10
|
-
/** Duration of animation displaying in ms
|
|
11
|
-
* @default 200
|
|
12
|
-
*/
|
|
13
|
-
duration?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Property responsible for displaying the spinner
|
|
16
|
-
* */
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface ISpinContainerContext {
|
|
21
|
-
getOverlayProps: PropGetterFn;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface ISpinContainerOverlayProps extends IBoxProps {
|
|
25
|
-
/**
|
|
26
|
-
* Css background; you can use your own color
|
|
27
|
-
*/
|
|
28
|
-
background?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
declare const SpinContainer: (<T>(
|
|
32
|
-
props: CProps<ISpinContainerProps & T, ISpinContainerContext>,
|
|
33
|
-
) => ReturnEl) & {
|
|
34
|
-
Content: typeof Box;
|
|
35
|
-
Overlay: <T>(props: ISpinContainerOverlayProps & T) => ReturnEl;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default SpinContainer;
|
package/lib/es6/index.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { PropGetterFn, ReturnEl, CProps } from '@semcore/core';
|
|
2
|
-
import { ISpinProps } from '@semcore/spin';
|
|
3
|
-
import { Box, IBoxProps } from '@semcore/flex-box';
|
|
4
|
-
|
|
5
|
-
export interface ISpinContainerProps extends IBoxProps, ISpinProps {
|
|
6
|
-
/**
|
|
7
|
-
* Color of container spinner; you can use your own color
|
|
8
|
-
*/
|
|
9
|
-
background?: string;
|
|
10
|
-
/** Duration of animation displaying in ms
|
|
11
|
-
* @default 200
|
|
12
|
-
*/
|
|
13
|
-
duration?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Property responsible for displaying the spinner
|
|
16
|
-
* */
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface ISpinContainerContext {
|
|
21
|
-
getOverlayProps: PropGetterFn;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface ISpinContainerOverlayProps extends IBoxProps {
|
|
25
|
-
/**
|
|
26
|
-
* Css background; you can use your own color
|
|
27
|
-
*/
|
|
28
|
-
background?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
declare const SpinContainer: (<T>(
|
|
32
|
-
props: CProps<ISpinContainerProps & T, ISpinContainerContext>,
|
|
33
|
-
) => ReturnEl) & {
|
|
34
|
-
Content: typeof Box;
|
|
35
|
-
Overlay: <T>(props: ISpinContainerOverlayProps & T) => ReturnEl;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default SpinContainer;
|