oddsgate-ds 1.0.158 → 1.0.160
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/public/assets/dots.svg +53 -0
- package/package.json +1 -1
- package/public/assets/dots.svg +53 -0
- package/dist/cjs/types/components/atoms/SpacerOld/Spacer.component.d.ts +0 -4
- package/dist/cjs/types/components/atoms/SpacerOld/Spacer.interface.d.ts +0 -10
- package/dist/cjs/types/components/atoms/SpacerOld/Spacer.theme.d.ts +0 -3
- package/dist/cjs/types/components/atoms/SpacerOld/index.d.ts +0 -1
- package/dist/esm/types/components/atoms/SpacerOld/Spacer.component.d.ts +0 -4
- package/dist/esm/types/components/atoms/SpacerOld/Spacer.interface.d.ts +0 -10
- package/dist/esm/types/components/atoms/SpacerOld/Spacer.theme.d.ts +0 -3
- package/dist/esm/types/components/atoms/SpacerOld/index.d.ts +0 -1
- package/src/components/atoms/SpacerOld/Spacer.component.tsx +0 -27
- package/src/components/atoms/SpacerOld/Spacer.interface.ts +0 -11
- package/src/components/atoms/SpacerOld/Spacer.stories.tsx +0 -28
- package/src/components/atoms/SpacerOld/Spacer.theme.ts +0 -7
- package/src/components/atoms/SpacerOld/index.ts +0 -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="#D57E00">
|
|
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="#D57E00">
|
|
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,10 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Spacer.component";
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Spacer.component";
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ISpacer } from './Spacer.interface'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import { StyledSpacer } from './Spacer.theme'
|
|
4
|
-
|
|
5
|
-
const Spacer = ({
|
|
6
|
-
id,
|
|
7
|
-
color,
|
|
8
|
-
customHeight,
|
|
9
|
-
height,
|
|
10
|
-
className,
|
|
11
|
-
...props
|
|
12
|
-
}: ISpacer) => {
|
|
13
|
-
return (
|
|
14
|
-
<StyledSpacer
|
|
15
|
-
id={id}
|
|
16
|
-
className={className}
|
|
17
|
-
style={{
|
|
18
|
-
backgroundColor: color ? color : ``,
|
|
19
|
-
height: customHeight ? customHeight : `var(--space-${String(height)})`
|
|
20
|
-
}}
|
|
21
|
-
aria-hidden="true"
|
|
22
|
-
{...props}
|
|
23
|
-
/>
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default Spacer
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { spaces } from '@/styles/variables';
|
|
3
|
-
|
|
4
|
-
export type ISpacer = {
|
|
5
|
-
id?: string
|
|
6
|
-
color?: string
|
|
7
|
-
height?: keyof typeof spaces | string | number
|
|
8
|
-
customHeight?: string
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: CSSProperties
|
|
11
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
-
|
|
3
|
-
import { ISpacer } from '../Spacer/Spacer.interface'
|
|
4
|
-
import React from 'react'
|
|
5
|
-
import Spacer from '../Spacer/Spacer.component'
|
|
6
|
-
|
|
7
|
-
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
8
|
-
export default {
|
|
9
|
-
title: 'Components/Spacer',
|
|
10
|
-
component: Spacer,
|
|
11
|
-
tags: ['autodocs'],
|
|
12
|
-
argTypes: {
|
|
13
|
-
height: {
|
|
14
|
-
control: 'text'
|
|
15
|
-
},
|
|
16
|
-
color: {
|
|
17
|
-
control: 'color'
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
} as Meta
|
|
21
|
-
|
|
22
|
-
export const Simple: StoryObj<ISpacer> = {
|
|
23
|
-
render: args => <Spacer {...args} />,
|
|
24
|
-
args: {
|
|
25
|
-
customHeight: '50px',
|
|
26
|
-
color: '#000'
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Spacer.component";
|