@semcore/spin-container 6.0.11 → 6.1.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 CHANGED
@@ -2,71 +2,29 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [6.0.11] - 2022-09-20
6
-
7
- ### Fixed
8
-
9
- - Added essential accessibility attributes.
10
-
11
- ## [6.0.10] - 2022-08-30
12
-
13
- ### Changed
14
-
15
- - Version patch update due to children dependencies update (`@semcore/utils` [3.37.0 ~> 3.37.1], `@semcore/spin` [4.0.8 ~> 4.0.9], `@semcore/flex-box` [4.5.10 ~> 4.5.11], `@semcore/animation` [1.5.9 ~> 1.5.10]).
16
-
17
- ## [6.0.9] - 2022-08-29
18
-
19
- ### Changed
20
-
21
- - Version patch update due to children dependencies update (`@semcore/animation` [1.5.8 ~> 1.5.9]).
22
-
23
- ## [6.0.8] - 2022-08-18
24
-
25
- ### Changed
26
-
27
- - Version patch update due to children dependencies update (`@semcore/utils` [3.36.0 ~> 3.37.0], `@semcore/spin` [4.0.7 ~> 4.0.8], `@semcore/flex-box` [4.5.9 ~> 4.5.10], `@semcore/animation` [1.5.7 ~> 1.5.8]).
28
-
29
- ## [6.0.7] - 2022-08-11
30
-
31
- ### Changed
32
-
33
- - Version patch update due to children dependencies update (`@semcore/utils` [3.35.1 ~> 3.36.0], `@semcore/spin` [4.0.6 ~> 4.0.7], `@semcore/flex-box` [4.5.8 ~> 4.5.9], `@semcore/animation` [1.5.6 ~> 1.5.7]).
34
-
35
- ## [6.0.6] - 2022-08-01
36
-
37
- ### Changed
38
-
39
- - Version patch update due to children dependencies update (`@semcore/utils` [3.35.0 ~> 3.35.1], `@semcore/spin` [4.0.5 ~> 4.0.6], `@semcore/flex-box` [4.5.7 ~> 4.5.8], `@semcore/animation` [1.5.5 ~> 1.5.6]).
40
-
41
- ## [6.0.5] - 2022-07-22
42
-
43
- ### Changed
44
-
45
- - Version patch update due to children dependencies update (`@semcore/utils` [3.34.0 ~> 3.35.0], `@semcore/spin` [4.0.4 ~> 4.0.5], `@semcore/flex-box` [4.5.6 ~> 4.5.7], `@semcore/animation` [1.5.4 ~> 1.5.5]).
46
-
47
- ## [6.0.4] - 2022-07-07
5
+ ## [6.1.0] - 2022-10-10
48
6
 
49
7
  ### Changed
50
8
 
51
- - Version patch update due to children dependencies update (`@semcore/utils` [3.33.0 ~> 3.34.0], `@semcore/spin` [4.0.3 ~> 4.0.4], `@semcore/flex-box` [4.5.5 ~> 4.5.6], `@semcore/animation` [1.5.3 ~> 1.5.4]).
9
+ - Added support for React 18 🔥
52
10
 
53
- ## [6.0.3] - 2022-06-02
11
+ ## [6.0.12] - 2022-10-04
54
12
 
55
13
  ### Changed
56
14
 
57
- - Version patch update due to children dependencies update (`@semcore/utils` [3.32.2 ~> 3.33.0], `@semcore/spin` [4.0.2 ~> 4.0.3], `@semcore/flex-box` [4.5.4 ~> 4.5.5], `@semcore/animation` [1.5.2 ~> 1.5.3]).
15
+ - 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]).
58
16
 
59
- ## [6.0.2] - 2022-05-31
17
+ ## [6.0.11] - 2022-09-20
60
18
 
61
- ### Changed
19
+ ### Fixed
62
20
 
63
- - Version patch update due to children dependencies update (`@semcore/utils` [3.32.1 ~> 3.32.2], `@semcore/spin` [4.0.1 ~> 4.0.2], `@semcore/flex-box` [4.5.3 ~> 4.5.4], `@semcore/animation` [1.5.1 ~> 1.5.2]).
21
+ - Added essential accessibility attributes.
64
22
 
65
- ## [6.0.1] - 2022-05-19
23
+ ## [6.0.10] - 2022-08-30
66
24
 
67
25
  ### Changed
68
26
 
69
- - Version patch update due to children dependencies update (`@semcore/utils` [3.32.0 ~> 3.32.1], `@semcore/spin` [4.0.0 ~> 4.0.1], `@semcore/flex-box` [4.5.1 ~> 4.5.3], `@semcore/animation` [1.5.0 ~> 1.5.1]).
27
+ - Version patch update due to children dependencies update (`@semcore/utils` [3.37.0 ~> 3.37.1], `@semcore/spin` [4.0.8 ~> 4.0.9], `@semcore/flex-box` [4.5.10 ~> 4.5.11], `@semcore/animation` [1.5.9 ~> 1.5.10]).
70
28
 
71
29
  ## [6.0.0] - 2022-05-17
72
30
 
@@ -86,18 +44,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
86
44
 
87
45
  - Version patch update due to children dependencies update (`@semcore/animation` [1.5.0 ~> 1.5.0]).
88
46
 
89
- ## [5.0.4] - 2022-03-14
90
-
91
- ### Changed
92
-
93
- - Version patch update due to children dependencies update (`@semcore/utils` [3.31.2 ~> 3.31.2], `@semcore/spin` [3.4.0 ~> 3.4.1], `@semcore/flex-box` [4.5.0 ~> 4.5.1], `@semcore/animation` [1.4.1 ~> 1.4.2]).
94
-
95
- ## [5.0.3] - 2022-03-05
96
-
97
- ### Changed
98
-
99
- - Version patch update due to children dependencies update (`@semcore/animation` [1.4.0 ~> 1.4.1]).
100
-
101
47
  ## [5.0.2] - 2021-02-28
102
48
 
103
49
  ### Fixed
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.
@@ -52,18 +52,18 @@ var style = (
52
52
  /*__reshadow_css_start__*/
53
53
  _core.sstyled.insert(
54
54
  /*__inner_css_start__*/
55
- ".___SSpinContainer_1lenr_gg_{z-index:0;position:relative;display:block;overflow:hidden}.___SContent_1lenr_gg_{z-index:0;position:relative}.___SOverlay_1lenr_gg_{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0}.___SOverlay_1lenr_gg_._theme_invert_1lenr_gg_{background-color:rgba(25,27,35,.4)}.___SOverlay_1lenr_gg_._theme_dark_1lenr_gg_{background-color:hsla(0,0%,100%,.85)}.___SOverlay_1lenr_gg_._theme_custom_1lenr_gg_{background-color:var(--background_1lenr)}"
55
+ ":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.___SSpinContainer_124lo_gg_ {\n z-index: 0;\n position: relative;\n display: block;\n overflow: hidden;\n}\n\n.___SContent_124lo_gg_ {\n z-index: 0;\n position: relative;\n}\n\n.___SOverlay_124lo_gg_ {\n z-index: 1;\n display: flex;\n width: 100%;\n height: 100%;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.___SOverlay_124lo_gg_._theme_invert_124lo_gg_ {\n background-color: rgba(25, 27, 35, 0.4);\n}\n\n.___SOverlay_124lo_gg_._theme_dark_124lo_gg_ {\n background-color: rgba(255, 255, 255, 0.85);\n}\n\n.___SOverlay_124lo_gg_._theme_custom_124lo_gg_ {\n background-color: var(--background_124lo);\n}\n"
56
56
  /*__inner_css_end__*/
57
- , "1lenr_gg_")
57
+ , "124lo_gg_")
58
58
  /*__reshadow_css_end__*/
59
59
  , {
60
- "__SSpinContainer": "___SSpinContainer_1lenr_gg_",
61
- "__SContent": "___SContent_1lenr_gg_",
62
- "__SOverlay": "___SOverlay_1lenr_gg_",
63
- "_theme_invert": "_theme_invert_1lenr_gg_",
64
- "_theme_dark": "_theme_dark_1lenr_gg_",
65
- "_theme_custom": "_theme_custom_1lenr_gg_",
66
- "--background": "--background_1lenr"
60
+ "__SSpinContainer": "___SSpinContainer_124lo_gg_",
61
+ "__SContent": "___SContent_124lo_gg_",
62
+ "__SOverlay": "___SOverlay_124lo_gg_",
63
+ "_theme_invert": "_theme_invert_124lo_gg_",
64
+ "_theme_dark": "_theme_dark_124lo_gg_",
65
+ "_theme_custom": "_theme_custom_124lo_gg_",
66
+ "--background": "--background_124lo"
67
67
  });
68
68
 
69
69
  var SpinContainerRoot = /*#__PURE__*/function (_Component) {
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.d.js.map
@@ -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":""}
@@ -30,18 +30,18 @@ var style = (
30
30
  /*__reshadow_css_start__*/
31
31
  _sstyled.insert(
32
32
  /*__inner_css_start__*/
33
- ".___SSpinContainer_1lenr_gg_{z-index:0;position:relative;display:block;overflow:hidden}.___SContent_1lenr_gg_{z-index:0;position:relative}.___SOverlay_1lenr_gg_{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0}.___SOverlay_1lenr_gg_._theme_invert_1lenr_gg_{background-color:rgba(25,27,35,.4)}.___SOverlay_1lenr_gg_._theme_dark_1lenr_gg_{background-color:hsla(0,0%,100%,.85)}.___SOverlay_1lenr_gg_._theme_custom_1lenr_gg_{background-color:var(--background_1lenr)}"
33
+ ":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.___SSpinContainer_124lo_gg_ {\n z-index: 0;\n position: relative;\n display: block;\n overflow: hidden;\n}\n\n.___SContent_124lo_gg_ {\n z-index: 0;\n position: relative;\n}\n\n.___SOverlay_124lo_gg_ {\n z-index: 1;\n display: flex;\n width: 100%;\n height: 100%;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.___SOverlay_124lo_gg_._theme_invert_124lo_gg_ {\n background-color: rgba(25, 27, 35, 0.4);\n}\n\n.___SOverlay_124lo_gg_._theme_dark_124lo_gg_ {\n background-color: rgba(255, 255, 255, 0.85);\n}\n\n.___SOverlay_124lo_gg_._theme_custom_124lo_gg_ {\n background-color: var(--background_124lo);\n}\n"
34
34
  /*__inner_css_end__*/
35
- , "1lenr_gg_")
35
+ , "124lo_gg_")
36
36
  /*__reshadow_css_end__*/
37
37
  , {
38
- "__SSpinContainer": "___SSpinContainer_1lenr_gg_",
39
- "__SContent": "___SContent_1lenr_gg_",
40
- "__SOverlay": "___SOverlay_1lenr_gg_",
41
- "_theme_invert": "_theme_invert_1lenr_gg_",
42
- "_theme_dark": "_theme_dark_1lenr_gg_",
43
- "_theme_custom": "_theme_custom_1lenr_gg_",
44
- "--background": "--background_1lenr"
38
+ "__SSpinContainer": "___SSpinContainer_124lo_gg_",
39
+ "__SContent": "___SContent_124lo_gg_",
40
+ "__SOverlay": "___SOverlay_124lo_gg_",
41
+ "_theme_invert": "_theme_invert_124lo_gg_",
42
+ "_theme_dark": "_theme_dark_124lo_gg_",
43
+ "_theme_custom": "_theme_custom_124lo_gg_",
44
+ "--background": "--background_124lo"
45
45
  });
46
46
 
47
47
  var SpinContainerRoot = /*#__PURE__*/function (_Component) {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.js.map
@@ -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,17 +1,13 @@
1
1
  {
2
2
  "name": "@semcore/spin-container",
3
3
  "description": "Semrush SpinContainer Component",
4
- "version": "6.0.11",
4
+ "version": "6.1.0",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "types": "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/utils": "^3.31",
17
13
  "@semcore/spin": "^4",
@@ -20,7 +16,7 @@
20
16
  },
21
17
  "peerDependencies": {
22
18
  "@semcore/core": "^1.11",
23
- "react": "16.8 - 17"
19
+ "react": "16.8 - 18"
24
20
  },
25
21
  "jest": {
26
22
  "preset": "@semcore/jest-preset-ui"
@@ -31,6 +27,11 @@
31
27
  "directory": "semcore/spin-container"
32
28
  },
33
29
  "devDependencies": {
30
+ "@types/react": "18.0.21",
34
31
  "@semcore/jest-preset-ui": "1.0.0"
32
+ },
33
+ "scripts": {
34
+ "build": "pnpm semcore-builder --source=js",
35
+ "test": "jest"
35
36
  }
36
- }
37
+ }
@@ -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;
@@ -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;