oddsgate-ds 1.0.161 → 1.0.163

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.
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
1
  import { ISeparator } from './Separator.interface';
2
+ import React from 'react';
3
3
  declare const Separator: ({ type, color, height, margin, ...props }: ISeparator) => React.JSX.Element;
4
4
  export default Separator;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { ISeparator } from "./Separator.interface";
2
+ import { ISeparator } from './Separator.interface';
3
3
  export declare const StyledSeparator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ISeparator>> & string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.161",
3
+ "version": "1.0.163",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,17 +1,19 @@
1
- import React from 'react'
2
- import styled, { css } from 'styled-components'
3
- import { ISeparator } from './Separator.interface'
4
- import { StyledSeparator } from './Separator.theme'
1
+ import { ISeparator } from './Separator.interface';
2
+ import React from 'react';
3
+ import { StyledSeparator } from './Separator.theme';
5
4
 
6
5
  const Separator = ({ type, color, height, margin, ...props }: ISeparator) => {
7
6
  return (
8
7
  <StyledSeparator
9
- type={type}
10
- color={color}
11
- height={height}
12
- margin={margin}
8
+ style={{
9
+ borderColor: color ? color : ``,
10
+ borderTopWidth: height,
11
+ borderStyle: type,
12
+ margin: margin ? margin : ''
13
+ }}
13
14
  {...props}
14
15
  />
15
16
  )
16
17
  }
18
+
17
19
  export default Separator
@@ -1,27 +1,9 @@
1
- import styled, { css } from "styled-components";
2
- import { ISeparator } from "./Separator.interface";
1
+ import styled, { css } from 'styled-components';
2
+
3
+ import { ISeparator } from './Separator.interface';
3
4
 
4
5
  export const StyledSeparator = styled.div<ISeparator>`
5
6
  display: block;
6
7
  width: 100%;
7
- ${({ type, color, height, margin }) => css`
8
- border-style: ${type || 'solid'};
9
- border-color: ${color || 'black'};
10
- border-width: 0 0 ${height || 1} 0;
11
- margin: ${margin || 0};
12
-
13
- ${type === 'dotted' &&
14
- css`
15
- border-style: dotted;
16
- border-image-source: url('./assets/dots.svg');
17
- border-image-source: -webkit-image-set(url('/assets/dots.svg') 1x);
18
- border-image-slice: 33% 33%;
19
- border-image-repeat: round;
20
-
21
- svg{
22
- fill: red;
23
- }
24
- `}
25
- `}
26
8
  `;
27
9
 
@@ -1,4 +1,7 @@
1
- import { StyledProductCard, StyledProductCardWrapper } from './ProductCard.theme'
1
+ import {
2
+ StyledProductCard,
3
+ StyledProductCardWrapper
4
+ } from './ProductCard.theme'
2
5
 
3
6
  import Heading from '@/components/atoms/Heading'
4
7
  import { IProductCard } from './ProductCard.interface'
@@ -15,25 +18,23 @@ const ProductCard = ({
15
18
  style,
16
19
  ...props
17
20
  }: IProductCard) => {
18
-
19
- const parts = title ? title.split(" ") : [];
20
- const half = parts ? parts.length / 2 : 0;
21
+ const parts = title ? title.split(' ') : []
22
+ const half = parts ? parts.length / 2 : 0
21
23
 
22
24
  // const firstRowTitle = Array.prototype.join.call({
23
25
  // ...parts,
24
26
  // length: half,
25
27
  // }, " ");
26
- let firstRowTitle;
27
- let secondRowTitle;
28
+ let firstRowTitle
29
+ let secondRowTitle
28
30
 
29
31
  if (parts.length > 1) {
30
- firstRowTitle = parts.slice(0, half).join(" ")
31
- secondRowTitle = parts.slice(half, parts?.length).join(" ")
32
+ firstRowTitle = parts.slice(0, half).join(' ')
33
+ secondRowTitle = parts.slice(half, parts?.length).join(' ')
32
34
  } else {
33
- firstRowTitle = title;
35
+ firstRowTitle = title
34
36
  }
35
37
 
36
-
37
38
  return (
38
39
  <StyledProductCard className={className} style={style}>
39
40
  <StyledProductCardWrapper>
@@ -45,7 +46,11 @@ const ProductCard = ({
45
46
  &nbsp;{secondRowTitle}&nbsp;
46
47
  </Heading>
47
48
  </StyledProductCardWrapper>
48
- {description && <RichText tag='p' className='color-secondary50 mt-4'>{description}</RichText>}
49
+ {description && (
50
+ <RichText tag="p" className="color-secondary50 mt-8">
51
+ {description}
52
+ </RichText>
53
+ )}
49
54
 
50
55
  {linkElement}
51
56
  </StyledProductCard>
@@ -1,53 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg width="25px" height="25px" viewBox="0 0 25 25" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
- <!-- Generator: Sketch 3.2.2 (9983) - http://www.bohemiancoding.com/sketch -->
4
- <title>dots</title>
5
- <desc>Created with Sketch.</desc>
6
- <defs></defs>
7
- <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
- <g id="Artboard-1" sketch:type="MSArtboardGroup" transform="translate(-140.000000, -154.000000)" fill="#440E3F">
9
- <g id="dots" sketch:type="MSLayerGroup" transform="translate(140.000000, 154.000000)">
10
- <g id="dot" sketch:type="MSShapeGroup">
11
- <g>
12
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
13
- </g>
14
- </g>
15
- <g id="dot" transform="translate(0.000000, 20.000000)" sketch:type="MSShapeGroup">
16
- <g>
17
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
18
- </g>
19
- </g>
20
- <g id="dot" transform="translate(0.000000, 10.000000)" sketch:type="MSShapeGroup">
21
- <g>
22
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
23
- </g>
24
- </g>
25
- <g id="dot" transform="translate(10.000000, 0.000000)" sketch:type="MSShapeGroup">
26
- <g>
27
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
28
- </g>
29
- </g>
30
- <g id="dot" transform="translate(10.000000, 20.000000)" sketch:type="MSShapeGroup">
31
- <g>
32
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
33
- </g>
34
- </g>
35
- <g id="dot" transform="translate(20.000000, 0.000000)" sketch:type="MSShapeGroup">
36
- <g>
37
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
38
- </g>
39
- </g>
40
- <g id="dot" transform="translate(20.000000, 20.000000)" sketch:type="MSShapeGroup">
41
- <g>
42
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
43
- </g>
44
- </g>
45
- <g id="dot" transform="translate(20.000000, 10.000000)" sketch:type="MSShapeGroup">
46
- <g>
47
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
48
- </g>
49
- </g>
50
- </g>
51
- </g>
52
- </g>
53
- </svg>
@@ -1,53 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg width="25px" height="25px" viewBox="0 0 25 25" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
- <!-- Generator: Sketch 3.2.2 (9983) - http://www.bohemiancoding.com/sketch -->
4
- <title>dots</title>
5
- <desc>Created with Sketch.</desc>
6
- <defs></defs>
7
- <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
- <g id="Artboard-1" sketch:type="MSArtboardGroup" transform="translate(-140.000000, -154.000000)" fill="#440E3F">
9
- <g id="dots" sketch:type="MSLayerGroup" transform="translate(140.000000, 154.000000)">
10
- <g id="dot" sketch:type="MSShapeGroup">
11
- <g>
12
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
13
- </g>
14
- </g>
15
- <g id="dot" transform="translate(0.000000, 20.000000)" sketch:type="MSShapeGroup">
16
- <g>
17
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
18
- </g>
19
- </g>
20
- <g id="dot" transform="translate(0.000000, 10.000000)" sketch:type="MSShapeGroup">
21
- <g>
22
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
23
- </g>
24
- </g>
25
- <g id="dot" transform="translate(10.000000, 0.000000)" sketch:type="MSShapeGroup">
26
- <g>
27
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
28
- </g>
29
- </g>
30
- <g id="dot" transform="translate(10.000000, 20.000000)" sketch:type="MSShapeGroup">
31
- <g>
32
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
33
- </g>
34
- </g>
35
- <g id="dot" transform="translate(20.000000, 0.000000)" sketch:type="MSShapeGroup">
36
- <g>
37
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
38
- </g>
39
- </g>
40
- <g id="dot" transform="translate(20.000000, 20.000000)" sketch:type="MSShapeGroup">
41
- <g>
42
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
43
- </g>
44
- </g>
45
- <g id="dot" transform="translate(20.000000, 10.000000)" sketch:type="MSShapeGroup">
46
- <g>
47
- <circle cx="2.5" cy="2.5" r="2.5"></circle>
48
- </g>
49
- </g>
50
- </g>
51
- </g>
52
- </g>
53
- </svg>