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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/Separator/Separator.component.d.ts +2 -2
- package/dist/cjs/types/components/atoms/Separator/Separator.interface.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/Separator/Separator.component.d.ts +2 -2
- package/dist/esm/types/components/atoms/Separator/Separator.interface.d.ts +1 -0
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
- package/src/components/atoms/Separator/Separator.component.tsx +6 -5
- package/src/components/atoms/Separator/Separator.interface.tsx +1 -0
- package/src/components/atoms/Separator/Separator.stories.tsx +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { ISeparator } from './Separator.interface';
|
|
3
|
-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const Separator: ({ type, color, height, margin, ...props }: ISeparator) => React.JSX.Element;
|
|
4
4
|
export default Separator;
|
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: ({
|
|
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,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 = ({
|
|
5
|
+
const Separator = ({ type, color, height, margin, ...props }: ISeparator) => {
|
|
7
6
|
return (
|
|
8
7
|
<StyledSeparator
|
|
8
|
+
|
|
9
9
|
style={{
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
borderColor: color ? color : ``,
|
|
11
|
+
borderWidth: height,
|
|
12
|
+
borderStyle: type,
|
|
12
13
|
margin: margin ? margin : ''
|
|
13
14
|
}}
|
|
14
15
|
{...props}
|