oddsgate-ds 1.0.71 → 1.0.72

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';
3
- declare const Separator: ({ color, margin, height, ...props }: ISeparator) => React.JSX.Element;
2
+ import React from 'react';
3
+ declare const Separator: ({ type, color, height, margin, ...props }: ISeparator) => React.JSX.Element;
4
4
  export default Separator;
@@ -1,6 +1,7 @@
1
1
  import { CSSProperties } from 'react';
2
2
  export type ISeparator = {
3
3
  color?: string;
4
+ type?: string;
4
5
  margin?: string;
5
6
  height?: string;
6
7
  className?: string;
package/dist/types.d.ts CHANGED
@@ -169,13 +169,14 @@ declare const Spacer: ({ id, color, customHeight, height, className, ...props }:
169
169
 
170
170
  type ISeparator = {
171
171
  color?: string;
172
+ type?: string;
172
173
  margin?: string;
173
174
  height?: string;
174
175
  className?: string;
175
176
  style?: CSSProperties;
176
177
  };
177
178
 
178
- declare const Separator: ({ color, margin, height, ...props }: ISeparator) => React__default.JSX.Element;
179
+ declare const Separator: ({ type, color, height, margin, ...props }: ISeparator) => React__default.JSX.Element;
179
180
 
180
181
  interface IFlexBase {
181
182
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,14 +1,15 @@
1
- import React from 'react';
2
-
3
1
  import { ISeparator } from './Separator.interface';
2
+ import React from 'react';
4
3
  import { StyledSeparator } from './Separator.theme';
5
4
 
6
- const Separator = ({ color, margin, height, ...props }: ISeparator) => {
5
+ const Separator = ({ type, color, height, margin, ...props }: ISeparator) => {
7
6
  return (
8
7
  <StyledSeparator
8
+
9
9
  style={{
10
- backgroundColor: color ? color : ``,
11
- height: height,
10
+ borderColor: color ? color : ``,
11
+ borderWidth: height,
12
+ borderStyle: type,
12
13
  margin: margin ? margin : ''
13
14
  }}
14
15
  {...props}
@@ -2,6 +2,7 @@ import { CSSProperties } from 'react';
2
2
 
3
3
  export type ISeparator = {
4
4
  color?: string
5
+ type?: string
5
6
  margin?: string,
6
7
  height?: string
7
8
  className?: string;
@@ -23,6 +23,7 @@ export const Simple: StoryObj<ISeparator> = {
23
23
  render: args => <Separator {...args} />,
24
24
  args: {
25
25
  height: '5px',
26
- color: '#000'
26
+ color: '#000',
27
+ type: 'solid'
27
28
  }
28
29
  }