oddsgate-ds 1.0.162 → 1.0.164
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/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/Separator/Separator.component.d.ts +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/Separator/Separator.component.d.ts +1 -1
- package/dist/public/assets/dots.svg +53 -0
- package/package.json +1 -1
- package/public/assets/dots.svg +53 -0
- package/src/components/atoms/Separator/Separator.component.tsx +8 -10
- package/src/components/atoms/Separator/Separator.theme.ts +20 -1
|
@@ -0,0 +1,53 @@
|
|
|
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>
|
package/package.json
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
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,19 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import styled, { css } from 'styled-components'
|
|
3
|
+
import { ISeparator } from './Separator.interface'
|
|
4
|
+
import { StyledSeparator } from './Separator.theme'
|
|
4
5
|
|
|
5
6
|
const Separator = ({ type, color, height, margin, ...props }: ISeparator) => {
|
|
6
7
|
return (
|
|
7
8
|
<StyledSeparator
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
margin: margin ? margin : ''
|
|
13
|
-
}}
|
|
9
|
+
type={type}
|
|
10
|
+
color={color}
|
|
11
|
+
height={height}
|
|
12
|
+
margin={margin}
|
|
14
13
|
{...props}
|
|
15
14
|
/>
|
|
16
15
|
)
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
export default Separator
|
|
@@ -1,9 +1,28 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
2
|
|
|
3
3
|
import { ISeparator } from './Separator.interface';
|
|
4
4
|
|
|
5
5
|
export const StyledSeparator = styled.div<ISeparator>`
|
|
6
6
|
display: block;
|
|
7
7
|
width: 100%;
|
|
8
|
+
${({ type, color, height, margin }) => css`
|
|
9
|
+
border-style: ${type || 'solid'};
|
|
10
|
+
border-color: ${color || 'black'};
|
|
11
|
+
border-width: 0 0 ${height || 1} 0;
|
|
12
|
+
margin: ${margin || 0};
|
|
13
|
+
|
|
14
|
+
${type === 'dotted' &&
|
|
15
|
+
css`
|
|
16
|
+
border-style: dotted;
|
|
17
|
+
border-image-source: url('./assets/dots.svg');
|
|
18
|
+
border-image-source: -webkit-image-set(url('/assets/dots.svg'));
|
|
19
|
+
border-image-slice: 33% 33%;
|
|
20
|
+
border-image-repeat: round;
|
|
21
|
+
|
|
22
|
+
svg{
|
|
23
|
+
fill: red;
|
|
24
|
+
}
|
|
25
|
+
`}
|
|
26
|
+
`}
|
|
8
27
|
`;
|
|
9
28
|
|