oddsgate-ds 1.0.86 → 1.0.87

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -3,7 +3,6 @@ import { css, styled } from 'styled-components';
3
3
  import { IImageWrapper } from './ImageWrapper.interface';
4
4
 
5
5
  export const StyledImageWrapper = styled.picture<IImageWrapper>`
6
-
7
6
  & picture{
8
7
  position: relative;
9
8
  }
@@ -48,4 +47,4 @@ export const Overlay = styled.div`
48
47
  bottom: 0;
49
48
  left: 0;
50
49
  right: 0;
51
- `
50
+ `
@@ -15,7 +15,7 @@ export const StyledIconBox = styled.div<IIconBox>`
15
15
  height: 32px;
16
16
 
17
17
  color: ${colors.primary50};
18
- background: ${colors.primary10};
18
+ background: ${colors.secondary50};
19
19
  border-radius: 50px;
20
20
 
21
21
  text-align:center;
@@ -32,8 +32,6 @@ const ProductCard = ({
32
32
  firstRowTitle = title;
33
33
  }
34
34
 
35
- console.log(parts, half);
36
-
37
35
 
38
36
  return (
39
37
  <StyledProductCard className={className} style={style}>
@@ -35,7 +35,7 @@ export const StyledModal = styled.div<IShareModal>`
35
35
 
36
36
  &:hover {
37
37
  & > div {
38
- background: ${colors.primary10}
38
+ background: ${colors.primary50}
39
39
  }
40
40
  };
41
41
 
@@ -149,7 +149,7 @@ const CircularSlider = ({
149
149
 
150
150
 
151
151
  for (let i = 0; i < slides.length; i++) {
152
- slides[i].addEventListener('click', rotateSlider);
152
+ slides[i].addEventListener('click', rotateSlider, {passive: true});
153
153
  };
154
154
 
155
155
  window.addEventListener('resize', sliderResize)
@@ -11,7 +11,7 @@ export default function clickOutSideToClose(
11
11
  }
12
12
 
13
13
  useEffect(() => {
14
- document.addEventListener('mouseup', handleClickOutside)
14
+ document.addEventListener('mouseup', handleClickOutside, {passive: true})
15
15
  return () => document.removeEventListener('mouseup', handleClickOutside)
16
16
  }, [ref])
17
17
  }
@@ -10,7 +10,6 @@ export const useInterval = (callback, delay) => {
10
10
 
11
11
  useEffect(() => {
12
12
  function tick() {
13
- console.log("tou2");
14
13
  if (savedCallback && savedCallback.current) {
15
14
  const result = (savedCallback as unknown as any).current();
16
15
  if (result === true) {// if callback returs true, clear timeout;