oddsgate-ds 1.0.30 → 1.0.31

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 { IFlex } from './Flex.interface';
3
- declare const Flex: ({ direction, align, justify, wrap, children, className, ...props }: IFlex) => React.JSX.Element;
2
+ import React from 'react';
3
+ declare const Flex: ({ direction, align, justify, wrap, gap, children, className, ...props }: IFlex) => React.JSX.Element;
4
4
  export default Flex;
@@ -11,11 +11,13 @@ export interface IFlex extends IFlexBase {
11
11
  align?: flexAlign;
12
12
  justify?: flexJustify;
13
13
  wrap?: 'wrap' | 'nowrap';
14
+ gap?: string;
14
15
  }
15
16
  export interface IFlexSC extends IFlexBase {
16
17
  $direction?: 'row' | 'column';
17
18
  $align?: flexAlign;
18
19
  $justify?: flexJustify;
19
20
  $wrap?: 'wrap' | 'nowrap';
21
+ $gap?: string;
20
22
  }
21
23
  export {};
package/dist/types.d.ts CHANGED
@@ -186,9 +186,10 @@ interface IFlex extends IFlexBase {
186
186
  align?: flexAlign;
187
187
  justify?: flexJustify;
188
188
  wrap?: 'wrap' | 'nowrap';
189
+ gap?: string;
189
190
  }
190
191
 
191
- declare const Flex: ({ direction, align, justify, wrap, children, className, ...props }: IFlex) => React__default.JSX.Element;
192
+ declare const Flex: ({ direction, align, justify, wrap, gap, children, className, ...props }: IFlex) => React__default.JSX.Element;
192
193
 
193
194
  type IIcon = {
194
195
  icon?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,4 +1,5 @@
1
1
  import { IButton } from './Button.interface'
2
+ import Icon from '../Icon/Icon.component'
2
3
  import React from 'react'
3
4
  import { StyledButton } from './Button.theme'
4
5
 
@@ -38,9 +39,10 @@ const Button = ({
38
39
  className={className}
39
40
  {...props}
40
41
  >
41
- {leftIcon}
42
+ {/* {leftIcon} */}
42
43
  {children && <span>{children}</span>}
43
- {rightIcon}
44
+ <Icon icon={"icon-arrow-right"} />
45
+ {/* {rightIcon} */}
44
46
  </StyledButton>
45
47
  )
46
48
  }
@@ -5,6 +5,7 @@ import { IButtonSC } from './Button.interface';
5
5
  import { fontSize } from '@/styles/utilities';
6
6
 
7
7
  export const StyledButton = styled.a<IButtonSC>`
8
+ position: relative;
8
9
  display: inline-flex;
9
10
  vertical-align: middle;
10
11
  justify-content: center;
@@ -36,7 +37,7 @@ export const StyledButton = styled.a<IButtonSC>`
36
37
  case "primary": default:
37
38
  return css`
38
39
  ${fontSize('h4')};
39
- padding: 28px 36px;
40
+ padding: 2rem 2.8rem;
40
41
  border-radius: 50px;
41
42
  text-transform:uppercase;
42
43
 
@@ -44,26 +45,38 @@ export const StyledButton = styled.a<IButtonSC>`
44
45
  color: ${colors.primary50};
45
46
  background-color: ${colors.secondary50};
46
47
 
47
- &:hover{
48
- color: ${colors.secondary50};
49
- background-color: ${colors.primary50};
50
- }
51
48
  ` : `
52
49
  color: ${colors.secondary50};
53
50
  background-color: ${colors.primary50};
51
+ `}
52
+
53
+ & span{
54
+ transition: all 0.3s ease;
55
+ }
56
+ & i{
57
+ position: absolute;
58
+ top: 50%;
59
+ right: 1.8rem;
60
+ opacity: 0;
61
+ transform: scale(0) translateX(-4px) translateY(-50%);
62
+ }
54
63
 
55
- &:hover{
56
- color: ${colors.primary50};
57
- background-color: ${colors.secondary50};
64
+ &:hover{
65
+ & span{
66
+ transform: translateX(-1rem);
58
67
  }
59
- `}
68
+ & i{
69
+ opacity: 1;
70
+ transform: scale(1) translateX(0) translateY(-50%);
71
+ }
72
+ }
60
73
  `;
61
74
  case "secondary":
62
75
  return css`
63
76
  ${fontSize('h5')};
64
77
  font-weight: 700;
65
78
  text-transform:uppercase;
66
- padding: 10px 20px;
79
+ padding: 0.8rem 1.6rem;
67
80
  border-radius: 50px;
68
81
 
69
82
  ${props.$mode === "light" ? `
@@ -1,14 +1,13 @@
1
+ import { IFlex } from './Flex.interface';
1
2
  import React from 'react';
2
-
3
3
  import { StyledFlex } from '@/components/atoms/Flex/Flex.theme';
4
4
 
5
- import { IFlex } from './Flex.interface';
6
-
7
5
  const Flex = ({
8
6
  direction,
9
7
  align,
10
8
  justify,
11
9
  wrap,
10
+ gap,
12
11
  children,
13
12
  className,
14
13
  ...props
@@ -19,6 +18,7 @@ const Flex = ({
19
18
  $align={align}
20
19
  $justify={justify}
21
20
  $wrap={wrap}
21
+ $gap={gap}
22
22
  className={className}
23
23
  {...props}
24
24
  >
@@ -13,10 +13,12 @@ export interface IFlex extends IFlexBase{
13
13
  align?: flexAlign,
14
14
  justify?: flexJustify,
15
15
  wrap?: 'wrap' | 'nowrap',
16
+ gap?: string,
16
17
  }
17
18
  export interface IFlexSC extends IFlexBase {
18
19
  $direction?: 'row' | 'column',
19
20
  $align?: flexAlign,
20
21
  $justify?: flexJustify,
21
22
  $wrap?: 'wrap' | 'nowrap',
23
+ $gap?: string,
22
24
  }
@@ -8,4 +8,5 @@ export const StyledFlex = styled.div<IFlexSC>`
8
8
  align-items: ${props => props.$align ? props.$align : "center"};
9
9
  justify-content: ${props => props.$justify ? props.$justify : "start"};
10
10
  flex-wrap: ${props => props.$wrap ? props.$wrap : "wrap"};
11
+ gap: ${props => props.$gap ? props.$gap : ""};
11
12
  `;
@@ -6,6 +6,7 @@ import { colors } from '@/styles/variables';
6
6
  export const StyledSocialLinks = styled.ul<ISocialLinks>`
7
7
  display: inline-flex;
8
8
  align-items: center;
9
+ flex-flow: row wrap;
9
10
  gap: 12px;
10
11
 
11
12
  & li{
@@ -40,7 +40,7 @@ export const AccordionItem = ({
40
40
  }}
41
41
  >
42
42
  <span>{title}</span>
43
- <Icon className={active ? 'icon-arrowUp' : 'icon-arrowDown'} />
43
+ <Icon className={active ? 'icon-arrowDown' : 'icon-arrowUp'} />
44
44
  </StyledAccordionTitle>
45
45
  <StyledAccordionContent
46
46
  ref={contentEl}
@@ -52,7 +52,7 @@ export const StyledAccordionContent = styled.div<IAccordionItem>`
52
52
  export const StyledAccordionItem = styled.li<IAccordionItem>`
53
53
  position: relative;
54
54
  width: 100%;
55
- padding: 1rem 2.4rem;
55
+ padding: 2rem 2.4rem;
56
56
  border-radius: 50px;
57
57
  color: ${colors.third50};
58
58
  background-color: ${colors.secondary50};
@@ -87,7 +87,6 @@ const CircularSlider = ({
87
87
  }
88
88
 
89
89
  const sliderResize = () => {
90
- console.log(slider?.current?.getBoundingClientRect().width);
91
90
  let radius,
92
91
  w = slider?.current ? slider?.current?.getBoundingClientRect().width : 0,
93
92
  h = slider?.current ? slider?.current.getBoundingClientRect().height : 0;
@@ -50,7 +50,9 @@ const Tabs = ({ id, title, menu, vertical, className, style }: ITabs) => {
50
50
  $active={index === active}
51
51
  className='h4'
52
52
  >
53
- {item.content}
53
+
54
+ <div>{item.content}</div>
55
+ <Heading tag='span' size='h3' className='color-secondary50 fw-bold mt-5'>{item.label}</Heading>
54
56
  </StyledTabsContent>
55
57
  )
56
58
  })}
@@ -41,14 +41,34 @@ export const StyledTabsLinks = styled.a<ITabsItem>`
41
41
 
42
42
  export const StyledTabsContent = styled.div<ITabsItem>`
43
43
  display: none;
44
+ flex-flow: row wrap;
44
45
 
45
46
  background-color: ${colors.primary50};
46
47
  border-radius: 48px 0;
47
48
  padding: 36px;
48
49
 
50
+ min-height: 50rem;
51
+
49
52
  opacity: 0;
50
53
  transform: translateY(40px);
51
54
 
55
+ & > span{
56
+ display: flex;
57
+ align-items:center;
58
+ align-self: flex-end;
59
+ gap: 1rem;
60
+
61
+ width: 100%;
62
+
63
+ &:before{
64
+ content:'';
65
+ width: 3rem;
66
+ height: 3rem;
67
+ border-radius: 100%;
68
+ background-color: ${colors.third50};
69
+ }
70
+ }
71
+
52
72
  @keyframes fadeIn{
53
73
  from { display: none; }
54
74
  to { transform: translateY(0px); opacity: 1;}
@@ -56,7 +76,7 @@ export const StyledTabsContent = styled.div<ITabsItem>`
56
76
 
57
77
  ${({ $active }) => $active && `
58
78
  animation: 0.8s fadeIn forwards;
59
- display: block;
79
+ display: flex;
60
80
  `}
61
81
 
62
82
  `