oddsgate-ds 1.0.159 → 1.0.161

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 { ISeparator } from './Separator.interface';
2
1
  import React from 'react';
2
+ import { ISeparator } from './Separator.interface';
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;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.159",
3
+ "version": "1.0.161",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -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 { ISeparator } from './Separator.interface';
2
- import React from 'react';
3
- import { StyledSeparator } from './Separator.theme';
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
- style={{
9
- borderColor: color ? color : ``,
10
- borderTopWidth: height,
11
- borderStyle: type,
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,27 @@
1
- import styled, { css } from 'styled-components';
2
-
3
- import { ISeparator } from './Separator.interface';
1
+ import styled, { css } from "styled-components";
2
+ import { ISeparator } from "./Separator.interface";
4
3
 
5
4
  export const StyledSeparator = styled.div<ISeparator>`
6
5
  display: block;
7
6
  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
+ `}
8
26
  `;
9
27