oddsgate-ds 1.0.83 → 1.0.86

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.83",
3
+ "version": "1.0.86",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -7,6 +7,7 @@ import { IEventsCard } from './EventsCard.interface';
7
7
  export const StyledEventsCard = styled(Card) <IEventsCard>`
8
8
  padding: 1rem;
9
9
  border-radius: ${radius.md};
10
+ text-align: left;
10
11
  transition: all 0.3s;
11
12
 
12
13
  picture{
@@ -18,12 +18,22 @@ 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
+ }
34
+
35
+ console.log(parts, half);
25
36
 
26
- const secondRowTitle = parts.slice(half, parts?.length).join(" ")
27
37
 
28
38
  return (
29
39
  <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
  `;
@@ -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;