oddsgate-ds 1.0.23 → 1.0.24
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/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/Dropdown/Dropdown.theme.ts +29 -10
- package/src/components/organisms/Cover/Cover.component.tsx +2 -2
- package/src/components/organisms/Tabs/Tabs.theme.ts +5 -0
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { IDropdown, IDropdownContainer, IDropdownItem, IDropdownTitle } from './Dropdown.interface';
|
|
2
|
-
import { colors, responsiveMedia, shadows } from '@/styles/variables';
|
|
2
|
+
import { colors, radius, responsiveMedia, shadows } from '@/styles/variables';
|
|
3
3
|
import styled, { css } from 'styled-components';
|
|
4
4
|
|
|
5
|
+
import { fontSize } from '@/styles/utilities';
|
|
6
|
+
|
|
5
7
|
export const StyledDropdown = styled.div<IDropdown>`
|
|
6
8
|
position: relative;
|
|
7
9
|
display: inline-flex;
|
|
@@ -10,12 +12,26 @@ export const StyledDropdown = styled.div<IDropdown>`
|
|
|
10
12
|
export const StyledDropdownTitle = styled.div<IDropdownTitle>`
|
|
11
13
|
display: flex;
|
|
12
14
|
align-items: center;
|
|
15
|
+
|
|
16
|
+
color: ${colors.primary50};
|
|
17
|
+
background-color: ${colors.secondary50};
|
|
18
|
+
|
|
19
|
+
${fontSize('h5')};
|
|
20
|
+
padding: 10px 20px;
|
|
21
|
+
border-radius: 50px;
|
|
22
|
+
text-transform:uppercase;
|
|
23
|
+
|
|
13
24
|
transition: color 0.15s ease-in-out;
|
|
14
25
|
cursor: pointer;
|
|
15
26
|
|
|
27
|
+
&:hover{
|
|
28
|
+
color: ${colors.secondary50};
|
|
29
|
+
background-color: ${colors.primary50};
|
|
30
|
+
}
|
|
31
|
+
|
|
16
32
|
${({ open }) => open && `
|
|
17
|
-
color: ${colors.
|
|
18
|
-
|
|
33
|
+
color: ${colors.secondary50};
|
|
34
|
+
background-color: ${colors.primary50};
|
|
19
35
|
`}
|
|
20
36
|
`;
|
|
21
37
|
|
|
@@ -26,25 +42,28 @@ export const StyledDropdownContainer = styled.ul<IDropdownContainer>`
|
|
|
26
42
|
left: 0;
|
|
27
43
|
|
|
28
44
|
margin-top: 12px;
|
|
29
|
-
padding
|
|
30
|
-
background: ${colors.
|
|
45
|
+
padding: 20px;
|
|
46
|
+
background: ${colors.secondary50};
|
|
31
47
|
box-shadow: ${shadows.sm};
|
|
48
|
+
border-radius: ${radius.md};
|
|
49
|
+
|
|
50
|
+
min-width: 18rem;
|
|
32
51
|
|
|
33
52
|
opacity: ${props => props.open ? 1 : 0};
|
|
34
53
|
pointer-events: ${props => props.open ? "auto" : "none"};
|
|
35
54
|
|
|
55
|
+
transform: ${props => props.open ? "rotate(0deg) translateY(0)" : "rotate(8deg) translateY(30px)"}; ;
|
|
56
|
+
|
|
36
57
|
z-index: 1;
|
|
37
|
-
transition:
|
|
58
|
+
transition: all 0.35s ease-in-out;
|
|
38
59
|
`;
|
|
39
60
|
export const StyledDropdownItem = styled.li<IDropdownItem>`
|
|
40
61
|
display:flex;
|
|
41
|
-
|
|
62
|
+
gap: 8px;
|
|
42
63
|
align-items: center;
|
|
43
|
-
width: 100%;
|
|
44
|
-
padding: 8px 18px;
|
|
45
64
|
cursor: pointer;
|
|
46
65
|
|
|
47
66
|
&:hover {
|
|
48
|
-
color: ${colors.
|
|
67
|
+
color: ${colors.primary50}
|
|
49
68
|
}
|
|
50
69
|
`;
|
|
@@ -33,11 +33,11 @@ const Cover = ({
|
|
|
33
33
|
style={{ ...style, minHeight: minHeight || undefined }}
|
|
34
34
|
>
|
|
35
35
|
{imageElement}
|
|
36
|
-
{overlayColor && overlayOpacity
|
|
36
|
+
{overlayColor && overlayOpacity ? (
|
|
37
37
|
<StyledCoverOverlay
|
|
38
38
|
style={{ backgroundColor: overlayColor, opacity: overlayOpacity }}
|
|
39
39
|
></StyledCoverOverlay>
|
|
40
|
-
)}
|
|
40
|
+
) : (<></>)}
|
|
41
41
|
<StyledCoverContent>{children}</StyledCoverContent>
|
|
42
42
|
</StyledCover>
|
|
43
43
|
)
|
|
@@ -32,6 +32,10 @@ export const StyledTabsLinks = styled.a<ITabsItem>`
|
|
|
32
32
|
&:hover{
|
|
33
33
|
background-color: ${colors.primary50};
|
|
34
34
|
}
|
|
35
|
+
|
|
36
|
+
${({ $active }) => $active && `
|
|
37
|
+
background-color: ${colors.primary50};
|
|
38
|
+
`}
|
|
35
39
|
`
|
|
36
40
|
|
|
37
41
|
|
|
@@ -66,6 +70,7 @@ export const StyledTabs = styled.div<ITabs>`
|
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
${StyledTabsMenu}{
|
|
73
|
+
flex-flow: column;
|
|
69
74
|
justify-content: flex-start;
|
|
70
75
|
}
|
|
71
76
|
}
|