@semcore/feature-popover 3.0.21 → 3.0.22

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,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.0.22] - 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/animation` [1.5.10 ~> 1.5.11]).
10
+
5
11
  ## [3.0.21] - 2022-09-29
6
12
 
7
13
  ### Changed
@@ -60,28 +60,28 @@ var style = (
60
60
  /*__reshadow_css_start__*/
61
61
  _core.sstyled.insert(
62
62
  /*__inner_css_start__*/
63
- ".___SFeaturePopover_1kzbz_gg_{padding-top:16px;padding-right:32px;padding-bottom:16px;padding-left:16px;border-radius:6px;box-sizing:border-box;background-color:#fce081;color:#191b23;box-shadow:0 1px 12px rgba(25,27,35,.15)}.___SClose_1kzbz_gg_{position:absolute;right:0;top:0;padding:8px;cursor:pointer;color:#191b23;font-size:0}@-webkit-keyframes showTrigger_1kzbz{0%{opacity:0}to{opacity:1}}@keyframes showTrigger_1kzbz{0%{opacity:0}to{opacity:1}}@-webkit-keyframes scaleSizeAndHide_1kzbz{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}@keyframes scaleSizeAndHide_1kzbz{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SSpot_1kzbz_gg_{position:absolute;bottom:-4px;right:-4px;-webkit-animation-name:showTrigger_1kzbz;animation-name:showTrigger_1kzbz;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-animation-delay:.4s;animation-delay:.4s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1kzbz_gg_:before{content:\"\";position:absolute;top:0;left:0;transform-origin:50%;-webkit-animation-name:scaleSizeAndHide_1kzbz;animation-name:scaleSizeAndHide_1kzbz;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:.5s;animation-delay:.5s;background-color:#fce081;border-radius:50%;width:12px;height:12px}.___SSpot_1kzbz_gg_:after{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px;background-color:#fce081}@media (prefers-reduced-motion){.___SSpot_1kzbz_gg_{-webkit-animation-name:none;animation-name:none}.___SSpot_1kzbz_gg_:before{-webkit-animation-name:none;animation-name:none}}"
63
+ ".___SFeaturePopover_1bset_gg_{padding-top:16px;padding-right:32px;padding-bottom:16px;padding-left:16px;border-radius:6px;box-sizing:border-box;background-color:#fce081;color:#191b23;box-shadow:0 1px 12px rgba(25,27,35,.15)}.___SClose_1bset_gg_{position:absolute;right:0;top:0;padding:8px;cursor:pointer;color:#191b23;font-size:0}@keyframes showTrigger_1bset{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1bset{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SSpot_1bset_gg_{position:absolute;bottom:-4px;right:-4px;animation-name:showTrigger_1bset;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1bset_gg_:before{content:\"\";position:absolute;top:0;left:0;transform-origin:50%;animation-name:scaleSizeAndHide_1bset;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s;background-color:#fce081;border-radius:50%;width:12px;height:12px}.___SSpot_1bset_gg_:after{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px;background-color:#fce081}@media (prefers-reduced-motion){.___SSpot_1bset_gg_{animation-name:none}.___SSpot_1bset_gg_:before{animation-name:none}}"
64
64
  /*__inner_css_end__*/
65
- , "1kzbz_gg_")
65
+ , "1bset_gg_")
66
66
  /*__reshadow_css_end__*/
67
67
  , {
68
- "__SFeaturePopover": "___SFeaturePopover_1kzbz_gg_",
69
- "__SClose": "___SClose_1kzbz_gg_",
70
- "@showTrigger": "showTrigger_1kzbz",
71
- "@scaleSizeAndHide": "scaleSizeAndHide_1kzbz",
72
- "__SSpot": "___SSpot_1kzbz_gg_"
68
+ "__SFeaturePopover": "___SFeaturePopover_1bset_gg_",
69
+ "__SClose": "___SClose_1bset_gg_",
70
+ "@showTrigger": "showTrigger_1bset",
71
+ "@scaleSizeAndHide": "scaleSizeAndHide_1bset",
72
+ "__SSpot": "___SSpot_1bset_gg_"
73
73
  });
74
74
  var stylePopper = (
75
75
  /*__reshadow_css_start__*/
76
76
  _core.sstyled.insert(
77
77
  /*__inner_css_start__*/
78
- "@-webkit-keyframes enter_1cwch{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes enter_1cwch{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes exit_1cwch{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}@keyframes exit_1cwch{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}"
78
+ "@keyframes enter_1hxpx{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1hxpx{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}"
79
79
  /*__inner_css_end__*/
80
- , "1cwch_gg_")
80
+ , "1hxpx_gg_")
81
81
  /*__reshadow_css_end__*/
82
82
  , {
83
- "@enter": "enter_1cwch",
84
- "@exit": "exit_1cwch"
83
+ "@enter": "enter_1hxpx",
84
+ "@exit": "exit_1hxpx"
85
85
  });
86
86
 
87
87
  var FeaturePopover = /*#__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, CProps, ReturnEl } from '@semcore/core';\nimport Popper, { IPopperContext, IPopperPopperProps, IPopperProps } from '@semcore/popper';\nimport { Box } from '@semcore/flex-box';\n\nexport interface IFeaturePopoverPopperProps extends IPopperPopperProps {\n /**\n * The property responsible for the visibility of the closing icon\n * @default false\n */\n closeIcon?: boolean;\n /** Animation display duration in `ms`\n * @default 200\n */\n duration?: number;\n}\n\nexport interface IFeaturePopoverContext extends IPopperContext {\n getSpotProps: PropGetterFn;\n}\n\ndeclare const FeaturePopover: ((\n props: CProps<IPopperProps, IFeaturePopoverContext>,\n) => ReturnEl) & {\n Trigger: typeof Popper.Trigger;\n Popper: <T>(props: IFeaturePopoverPopperProps & T) => ReturnEl;\n Spot: typeof Box;\n};\n\nexport default FeaturePopover;\n"],"mappings":""}
@@ -33,28 +33,28 @@ var style = (
33
33
  /*__reshadow_css_start__*/
34
34
  _sstyled.insert(
35
35
  /*__inner_css_start__*/
36
- ".___SFeaturePopover_1kzbz_gg_{padding-top:16px;padding-right:32px;padding-bottom:16px;padding-left:16px;border-radius:6px;box-sizing:border-box;background-color:#fce081;color:#191b23;box-shadow:0 1px 12px rgba(25,27,35,.15)}.___SClose_1kzbz_gg_{position:absolute;right:0;top:0;padding:8px;cursor:pointer;color:#191b23;font-size:0}@-webkit-keyframes showTrigger_1kzbz{0%{opacity:0}to{opacity:1}}@keyframes showTrigger_1kzbz{0%{opacity:0}to{opacity:1}}@-webkit-keyframes scaleSizeAndHide_1kzbz{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}@keyframes scaleSizeAndHide_1kzbz{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SSpot_1kzbz_gg_{position:absolute;bottom:-4px;right:-4px;-webkit-animation-name:showTrigger_1kzbz;animation-name:showTrigger_1kzbz;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-animation-delay:.4s;animation-delay:.4s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1kzbz_gg_:before{content:\"\";position:absolute;top:0;left:0;transform-origin:50%;-webkit-animation-name:scaleSizeAndHide_1kzbz;animation-name:scaleSizeAndHide_1kzbz;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:.5s;animation-delay:.5s;background-color:#fce081;border-radius:50%;width:12px;height:12px}.___SSpot_1kzbz_gg_:after{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px;background-color:#fce081}@media (prefers-reduced-motion){.___SSpot_1kzbz_gg_{-webkit-animation-name:none;animation-name:none}.___SSpot_1kzbz_gg_:before{-webkit-animation-name:none;animation-name:none}}"
36
+ ".___SFeaturePopover_1bset_gg_{padding-top:16px;padding-right:32px;padding-bottom:16px;padding-left:16px;border-radius:6px;box-sizing:border-box;background-color:#fce081;color:#191b23;box-shadow:0 1px 12px rgba(25,27,35,.15)}.___SClose_1bset_gg_{position:absolute;right:0;top:0;padding:8px;cursor:pointer;color:#191b23;font-size:0}@keyframes showTrigger_1bset{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1bset{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SSpot_1bset_gg_{position:absolute;bottom:-4px;right:-4px;animation-name:showTrigger_1bset;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1bset_gg_:before{content:\"\";position:absolute;top:0;left:0;transform-origin:50%;animation-name:scaleSizeAndHide_1bset;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s;background-color:#fce081;border-radius:50%;width:12px;height:12px}.___SSpot_1bset_gg_:after{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px;background-color:#fce081}@media (prefers-reduced-motion){.___SSpot_1bset_gg_{animation-name:none}.___SSpot_1bset_gg_:before{animation-name:none}}"
37
37
  /*__inner_css_end__*/
38
- , "1kzbz_gg_")
38
+ , "1bset_gg_")
39
39
  /*__reshadow_css_end__*/
40
40
  , {
41
- "__SFeaturePopover": "___SFeaturePopover_1kzbz_gg_",
42
- "__SClose": "___SClose_1kzbz_gg_",
43
- "@showTrigger": "showTrigger_1kzbz",
44
- "@scaleSizeAndHide": "scaleSizeAndHide_1kzbz",
45
- "__SSpot": "___SSpot_1kzbz_gg_"
41
+ "__SFeaturePopover": "___SFeaturePopover_1bset_gg_",
42
+ "__SClose": "___SClose_1bset_gg_",
43
+ "@showTrigger": "showTrigger_1bset",
44
+ "@scaleSizeAndHide": "scaleSizeAndHide_1bset",
45
+ "__SSpot": "___SSpot_1bset_gg_"
46
46
  });
47
47
  var stylePopper = (
48
48
  /*__reshadow_css_start__*/
49
49
  sstyled.insert(
50
50
  /*__inner_css_start__*/
51
- "@-webkit-keyframes enter_1cwch{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes enter_1cwch{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes exit_1cwch{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}@keyframes exit_1cwch{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}"
51
+ "@keyframes enter_1hxpx{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1hxpx{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}"
52
52
  /*__inner_css_end__*/
53
- , "1cwch_gg_")
53
+ , "1hxpx_gg_")
54
54
  /*__reshadow_css_end__*/
55
55
  , {
56
- "@enter": "enter_1cwch",
57
- "@exit": "exit_1cwch"
56
+ "@enter": "enter_1hxpx",
57
+ "@exit": "exit_1hxpx"
58
58
  });
59
59
 
60
60
  var FeaturePopover = /*#__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, CProps, ReturnEl } from '@semcore/core';\nimport Popper, { IPopperContext, IPopperPopperProps, IPopperProps } from '@semcore/popper';\nimport { Box } from '@semcore/flex-box';\n\nexport interface IFeaturePopoverPopperProps extends IPopperPopperProps {\n /**\n * The property responsible for the visibility of the closing icon\n * @default false\n */\n closeIcon?: boolean;\n /** Animation display duration in `ms`\n * @default 200\n */\n duration?: number;\n}\n\nexport interface IFeaturePopoverContext extends IPopperContext {\n getSpotProps: PropGetterFn;\n}\n\ndeclare const FeaturePopover: ((\n props: CProps<IPopperProps, IFeaturePopoverContext>,\n) => ReturnEl) & {\n Trigger: typeof Popper.Trigger;\n Popper: <T>(props: IFeaturePopoverPopperProps & T) => ReturnEl;\n Spot: typeof Box;\n};\n\nexport default FeaturePopover;\n"],"mappings":""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/feature-popover",
3
3
  "description": "Semrush FeaturePopover Component",
4
- "version": "3.0.21",
4
+ "version": "3.0.22",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "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": "build --source=js",
12
+ "build": "pnpm semcore-builder --source=js",
13
13
  "test": "jest"
14
14
  },
15
15
  "dependencies": {
@@ -32,6 +32,7 @@
32
32
  "directory": "semcore/feature-popover"
33
33
  },
34
34
  "devDependencies": {
35
+ "@types/react": "16.8 - 17",
35
36
  "@semcore/jest-preset-ui": "1.0.0"
36
37
  }
37
38
  }
@@ -1,29 +0,0 @@
1
- import { PropGetterFn, CProps, ReturnEl } from '@semcore/core';
2
- import Popper, { IPopperContext, IPopperPopperProps, IPopperProps } from '@semcore/popper';
3
- import { Box } from '@semcore/flex-box';
4
-
5
- export interface IFeaturePopoverPopperProps extends IPopperPopperProps {
6
- /**
7
- * The property responsible for the visibility of the closing icon
8
- * @default false
9
- */
10
- closeIcon?: boolean;
11
- /** Animation display duration in `ms`
12
- * @default 200
13
- */
14
- duration?: number;
15
- }
16
-
17
- export interface IFeaturePopoverContext extends IPopperContext {
18
- getSpotProps: PropGetterFn;
19
- }
20
-
21
- declare const FeaturePopover: ((
22
- props: CProps<IPopperProps, IFeaturePopoverContext>,
23
- ) => ReturnEl) & {
24
- Trigger: typeof Popper.Trigger;
25
- Popper: <T>(props: IFeaturePopoverPopperProps & T) => ReturnEl;
26
- Spot: typeof Box;
27
- };
28
-
29
- export default FeaturePopover;
@@ -1,29 +0,0 @@
1
- import { PropGetterFn, CProps, ReturnEl } from '@semcore/core';
2
- import Popper, { IPopperContext, IPopperPopperProps, IPopperProps } from '@semcore/popper';
3
- import { Box } from '@semcore/flex-box';
4
-
5
- export interface IFeaturePopoverPopperProps extends IPopperPopperProps {
6
- /**
7
- * The property responsible for the visibility of the closing icon
8
- * @default false
9
- */
10
- closeIcon?: boolean;
11
- /** Animation display duration in `ms`
12
- * @default 200
13
- */
14
- duration?: number;
15
- }
16
-
17
- export interface IFeaturePopoverContext extends IPopperContext {
18
- getSpotProps: PropGetterFn;
19
- }
20
-
21
- declare const FeaturePopover: ((
22
- props: CProps<IPopperProps, IFeaturePopoverContext>,
23
- ) => ReturnEl) & {
24
- Trigger: typeof Popper.Trigger;
25
- Popper: <T>(props: IFeaturePopoverPopperProps & T) => ReturnEl;
26
- Spot: typeof Box;
27
- };
28
-
29
- export default FeaturePopover;