oddsgate-ds 1.0.157 → 1.0.158
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 +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/Spacer/Spacer.component.d.ts +1 -1
- package/dist/cjs/types/components/atoms/Spacer/Spacer.interface.d.ts +10 -0
- package/dist/cjs/types/components/atoms/Spacer/Spacer.theme.d.ts +2 -2
- package/dist/cjs/types/components/atoms/SpacerOld/Spacer.component.d.ts +4 -0
- package/dist/cjs/types/components/atoms/SpacerOld/Spacer.interface.d.ts +10 -0
- package/dist/cjs/types/components/atoms/SpacerOld/Spacer.theme.d.ts +3 -0
- package/dist/cjs/types/components/atoms/SpacerOld/index.d.ts +1 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/Spacer/Spacer.component.d.ts +1 -1
- package/dist/esm/types/components/atoms/Spacer/Spacer.interface.d.ts +10 -0
- package/dist/esm/types/components/atoms/Spacer/Spacer.theme.d.ts +2 -2
- package/dist/esm/types/components/atoms/SpacerOld/Spacer.component.d.ts +4 -0
- package/dist/esm/types/components/atoms/SpacerOld/Spacer.interface.d.ts +10 -0
- package/dist/esm/types/components/atoms/SpacerOld/Spacer.theme.d.ts +3 -0
- package/dist/esm/types/components/atoms/SpacerOld/index.d.ts +1 -0
- package/dist/types.d.ts +5 -1
- package/package.json +1 -1
- package/src/components/atoms/Spacer/Spacer.component.tsx +20 -13
- package/src/components/atoms/Spacer/Spacer.interface.ts +14 -1
- package/src/components/atoms/Spacer/Spacer.stories.tsx +86 -15
- package/src/components/atoms/Spacer/Spacer.theme.ts +30 -4
- package/src/components/atoms/SpacerOld/Spacer.component.tsx +27 -0
- package/src/components/atoms/SpacerOld/Spacer.interface.ts +11 -0
- package/src/components/atoms/SpacerOld/Spacer.stories.tsx +28 -0
- package/src/components/atoms/SpacerOld/Spacer.theme.ts +7 -0
- package/src/components/atoms/SpacerOld/index.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ISpacer } from './Spacer.interface';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const Spacer: ({ id, color, customHeight, height, className,
|
|
3
|
+
declare const Spacer: ({ id, color, customHeight, customHeightTablet, customHeightMobile, height, className, gradient }: ISpacer) => React.JSX.Element;
|
|
4
4
|
export default Spacer;
|
|
@@ -2,9 +2,19 @@ import { CSSProperties } from 'react';
|
|
|
2
2
|
import { spaces } from '@/styles/variables';
|
|
3
3
|
export type ISpacer = {
|
|
4
4
|
id?: string;
|
|
5
|
+
anchor?: string;
|
|
5
6
|
color?: string;
|
|
6
7
|
height?: keyof typeof spaces | string | number;
|
|
7
8
|
customHeight?: string;
|
|
9
|
+
customHeightTablet?: string;
|
|
10
|
+
customHeightMobile?: string;
|
|
8
11
|
className?: string;
|
|
9
12
|
style?: CSSProperties;
|
|
13
|
+
gradient?: string;
|
|
14
|
+
};
|
|
15
|
+
export type ISCSpacer = {
|
|
16
|
+
$color: ISpacer['color'];
|
|
17
|
+
$height: ISpacer['height'];
|
|
18
|
+
$customHeightTablet: ISpacer['customHeightTablet'];
|
|
19
|
+
$customHeightMobile: ISpacer['customHeightMobile'];
|
|
10
20
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare const StyledSpacer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
2
|
+
import { ISCSpacer } from "./Spacer.interface";
|
|
3
|
+
export declare const StyledSpacer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ISCSpacer>> & string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { spaces } from '@/styles/variables';
|
|
3
|
+
export type ISpacer = {
|
|
4
|
+
id?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
height?: keyof typeof spaces | string | number;
|
|
7
|
+
customHeight?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ISpacer } from './Spacer.interface';
|
|
3
|
+
export declare const StyledSpacer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ISpacer>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Spacer.component";
|