oddsgate-ds 1.0.85 → 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.85",
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;
@@ -18,12 +18,20 @@ const ProductCard = ({
18
18
  const parts = title ? title.split(" ") : [];
19
19
  const half = parts ? parts.length / 2 : 0;
20
20
 
21
- const firstRowTitle = Array.prototype.join.call({
22
- ...parts,
23
- length: half,
24
- }, " ");
21
+ // const firstRowTitle = Array.prototype.join.call({
22
+ // ...parts,
23
+ // length: half,
24
+ // }, " ");
25
+ let firstRowTitle;
26
+ let secondRowTitle;
27
+
28
+ if(parts.length>1){
29
+ firstRowTitle = parts.slice(0, half).join(" ")
30
+ secondRowTitle = parts.slice(half, parts?.length).join(" ")
31
+ }else{
32
+ firstRowTitle = title;
33
+ }
25
34
 
26
- const secondRowTitle = parts.slice(half, parts?.length).join(" ")
27
35
 
28
36
  return (
29
37
  <StyledProductCard className={className} style={style}>
@@ -17,8 +17,8 @@ export const StyledProductCardWrapper = styled.div<IProductCard>`
17
17
  display:flex;
18
18
  flex-flow:column;
19
19
  align-items: center;
20
- gap: 1rem;
20
+ gap: 1.5rem;
21
21
  background-color: ${colors.primary50};
22
- padding: 3.2rem 2rem;
22
+ padding: 3rem 2rem;
23
23
  border-radius: 0 ${radius.lg};
24
24
  `;
@@ -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)
@@ -18,7 +18,7 @@ export const StyledTabsLinks = styled.a<ITabsItem>`
18
18
  width: 100%;
19
19
  color: ${colors.secondary50};
20
20
  background-color: ${colors.third10};
21
- padding: 8px 18px;
21
+ padding: 8px 26px;
22
22
  border-radius: 50px;
23
23
  transition: all 0.3s linear;
24
24
  cursor: pointer;
@@ -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;