oddsgate-ds 1.0.53 → 1.0.57

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.53",
3
+ "version": "1.0.57",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -7,7 +7,7 @@ const Button = ({
7
7
  id,
8
8
  as = 'a',
9
9
  children,
10
- variant,
10
+ variant = "primary",
11
11
  mode,
12
12
  outlined,
13
13
  leftIcon,
@@ -42,7 +42,7 @@ const Button = ({
42
42
  {variant === "primary" ? (
43
43
  <>
44
44
  {children && <span>{children}</span>}
45
- <Icon icon={"icon-arrow-right"} />
45
+ {!rightIcon && !leftIcon && (<Icon icon={"icon-arrow-right"} />)}
46
46
  </>
47
47
  ) : (
48
48
  <>
@@ -99,22 +99,26 @@ export const StyledButton = styled.a<IButtonSC>`
99
99
  `;
100
100
  case "link":
101
101
  return css`
102
- ${fontSize('h5')};
103
- text-transform:uppercase;
102
+ ${fontSize('h5')};
103
+ text-transform:uppercase;
104
104
 
105
- ${props.$mode === "light" ? `
106
- color: ${colors.third50};
105
+ ${props.$mode === "light" ? `
106
+ color: ${colors.third50};
107
107
 
108
- &:hover{
108
+ &:hover{
109
+ color: ${colors.secondary50};
110
+ }
111
+ ` : `
109
112
  color: ${colors.secondary50};
110
- }
111
- ` : `
112
- color: ${colors.secondary50};
113
113
 
114
- &:hover{
115
- color: ${colors.primary50};
116
- }
117
- `}
114
+ &:hover{
115
+ color: ${colors.primary50};
116
+ }
117
+ `}
118
+ `;
119
+ case "icon":
120
+ return css`
121
+
118
122
  `;
119
123
  }
120
124
  }}
@@ -59,14 +59,12 @@ export const StyledFieldContainer = styled.div<IFormField>`
59
59
  input,
60
60
  textarea,
61
61
  select {
62
- ${fontSize('h4')};
63
- font-weight: 700;
64
- text-transform:uppercase;
62
+ ${fontSize('h5')};
65
63
 
66
64
  border-radius: 50px;
67
65
  border: 0;
68
66
 
69
- padding: 12px;
67
+ padding: 1rem 2rem;
70
68
  color: ${colors.secondary90};
71
69
  background: ${colors.secondary50};
72
70
  outline: none;
@@ -3,128 +3,17 @@ import { IMarquee } from './Marquee.interface'
3
3
  import React from 'react'
4
4
  import { StyledMarquee } from './Marquee.theme'
5
5
  import cn from 'classnames'
6
- import styled from 'styled-components'
7
6
 
8
7
  const Marquee = ({ text, className, onClick, ...props }: IMarquee) => {
9
8
  return (
10
- <Div3>
11
- <Img
12
- loading="lazy"
13
- srcSet="..."
14
- />
15
- <Div4>
16
- <Div5>
17
- <Div6>
18
- Transports
19
- <br />& Infrastructers{" "}
20
- </Div6>
21
- <Div7>
22
- <Img2
23
- loading="lazy"
24
- srcSet="..."
25
- />
26
- </Div7>
27
- </Div5>
28
- </Div4>
29
- </Div3>
30
- );
9
+ <StyledMarquee className={cn(className)} onClick={onClick} {...props}>
10
+ <div>
11
+ <Heading size="display" tag="span" className='fw-bold text-uppercase'>
12
+ {text} {text} {text}
13
+ </Heading>
14
+ </div>
15
+ </StyledMarquee>
16
+ )
31
17
  }
32
18
 
33
- const Div = styled.div`
34
- display: flex;
35
- flex-direction: column;
36
- `;
37
-
38
- const Div2 = styled.div`
39
- align-items: flex-start;
40
- align-self: end;
41
- display: flex;
42
- margin-top: 100px;
43
- width: 417px;
44
- max-width: 100%;
45
- flex-grow: 1;
46
- flex-direction: column;
47
- `;
48
-
49
- const Div3 = styled.div`
50
- disply: flex;
51
- flex-direction: column;
52
- border-radius: 10px;
53
- align-self: stretch;
54
- position: relative;
55
- display: flex;
56
- aspect-ratio: 1.2337278106508875;
57
- flex-grow: 1;
58
- padding-top: 8px;
59
- padding-right: 17px;
60
- padding-bottom: 16px;
61
- padding-left: 16px;
62
- `;
63
-
64
- const Img = styled.img`
65
- position: absolute;
66
- height: 100%;
67
- width: 100%;
68
- object-fit: cover;
69
- object-position: center;
70
- `;
71
-
72
- const Div4 = styled.div`
73
- position: relative;
74
- justify-content: flex-end;
75
- align-items: flex-end;
76
- border-bottom: 1px solid var(--White, #fff);
77
- align-self: stretch;
78
- display: flex;
79
- padding-top: 40px;
80
- padding-bottom: 24px;
81
- flex-direction: column;
82
- `;
83
-
84
- const Div5 = styled.div`
85
- align-self: stretch;
86
- display: flex;
87
- margin-top: 192px;
88
- align-items: flex-start;
89
- justify-content: space-between;
90
- gap: 20px;
91
- `;
92
-
93
- const Div6 = styled.div`
94
- align-self: start;
95
- color: #fff;
96
- font-feature-settings: "clig" off, "liga" off;
97
- font-family: Noto Sans, sans-serif;
98
- font-size: 24px;
99
- font-weight: 300;
100
- line-height: 120%;
101
- max-width: 324px;
102
- flex-grow: 1;
103
- flex-basis: auto;
104
- `;
105
-
106
- const Div7 = styled.div`
107
- justify-content: center;
108
- align-items: center;
109
- border-radius: 100px;
110
- background-color: var(--Soft-Green, #f2f1ef);
111
- align-self: start;
112
- display: flex;
113
- margin-top: 18px;
114
- width: 40px;
115
- max-width: 100%;
116
- padding-top: 3px;
117
- padding-right: 3px;
118
- padding-bottom: 3px;
119
- padding-left: 3px;
120
- flex-direction: column;
121
- `;
122
-
123
- const Img2 = styled.img`
124
- aspect-ratio: 1;
125
- object-fit: cover;
126
- object-position: center;
127
- width: 34px;
128
- `;
129
-
130
19
  export default Marquee
@@ -8,13 +8,12 @@ import React from 'react'
8
8
  export default {
9
9
  title: 'Components/Marquee',
10
10
  component: Marquee,
11
- tags: ['autodocs'],
12
11
  argTypes: {}
13
12
  } as Meta
14
13
 
15
14
  export const Simple: StoryObj<IMarquee> = {
16
15
  render: args => <Marquee {...args} />,
17
16
  args: {
18
- text: 'People • Sustainability • Efficiency • Innovation'
17
+ text: "People • Sustainability • Efficiency • Innovation"
19
18
  }
20
19
  }
@@ -15,9 +15,7 @@ export const StyledMarquee = styled.div<IMarquee>`
15
15
  --move-initial: calc(-25% + var(--offset));
16
16
  --move-final: calc(-50% + var(--offset));
17
17
 
18
- color: ${colors.white};
19
- background-color: ${colors.primary50};
20
- border-radius: ${radius.md};
18
+ color: ${colors.primary50};
21
19
 
22
20
  padding: 8px 0;
23
21
 
@@ -27,7 +25,7 @@ export const StyledMarquee = styled.div<IMarquee>`
27
25
  width: fit-content;
28
26
  white-space: nowrap;
29
27
  transform: translate3d(var(--move-initial), 0, 0);
30
- animation: marquee 5s linear infinite;
28
+ animation: marquee 15s linear infinite;
31
29
  }
32
30
 
33
31
  @keyframes marquee {
@@ -292,6 +292,4 @@ const GlobalStyles = createGlobalStyle`
292
292
 
293
293
  ${Object.keys(utilities).map((util, i) => `${generateUtilities(util, '')}`)}
294
294
  `
295
-
296
-
297
295
  export default GlobalStyles;
package/types.d.ts DELETED
@@ -1,79 +0,0 @@
1
- declare const pxToRem: (size: number) => string;
2
- declare const fontName = "MD Nichrome";
3
- declare const alternativeFont = "Red Hat Display";
4
- declare const gutter: string;
5
- declare const desktop_width = "1620";
6
- declare const tablet_width = "768";
7
- declare const mobile_width = "375";
8
- declare const responsiveMedia = "980px";
9
- declare const mobileMedia = "360px";
10
- declare const easeOutExpo = "cubic-bezier(.32,.94,.6,1);";
11
- type IBreakpoints = {
12
- $xs?: string;
13
- $sm?: string;
14
- $md?: string;
15
- $lg?: string;
16
- $xl?: string;
17
- $xxl?: string;
18
- };
19
- declare const colors: Record<string, string>;
20
- declare const spaces: Record<string, string>;
21
- declare const spacesNegative: Record<string, string>;
22
- declare const typography: Record<string, Record<string, unknown>>;
23
- declare const radius: Record<string, string>;
24
- declare const shadows: Record<string, string>;
25
- declare const zIndexes: Record<string, string>;
26
- declare const grid_conf: {
27
- gridSize: number;
28
- gutter: number;
29
- mediaQuery: string;
30
- container: IBreakpoints;
31
- breakpoints: IBreakpoints;
32
- };
33
-
34
- type variables_IBreakpoints = IBreakpoints;
35
- declare const variables_alternativeFont: typeof alternativeFont;
36
- declare const variables_colors: typeof colors;
37
- declare const variables_desktop_width: typeof desktop_width;
38
- declare const variables_easeOutExpo: typeof easeOutExpo;
39
- declare const variables_fontName: typeof fontName;
40
- declare const variables_grid_conf: typeof grid_conf;
41
- declare const variables_gutter: typeof gutter;
42
- declare const variables_mobileMedia: typeof mobileMedia;
43
- declare const variables_mobile_width: typeof mobile_width;
44
- declare const variables_pxToRem: typeof pxToRem;
45
- declare const variables_radius: typeof radius;
46
- declare const variables_responsiveMedia: typeof responsiveMedia;
47
- declare const variables_shadows: typeof shadows;
48
- declare const variables_spaces: typeof spaces;
49
- declare const variables_spacesNegative: typeof spacesNegative;
50
- declare const variables_tablet_width: typeof tablet_width;
51
- declare const variables_typography: typeof typography;
52
- declare const variables_zIndexes: typeof zIndexes;
53
- declare namespace variables {
54
- export {
55
- variables_IBreakpoints as IBreakpoints,
56
- variables_alternativeFont as alternativeFont,
57
- variables_colors as colors,
58
- variables_desktop_width as desktop_width,
59
- variables_easeOutExpo as easeOutExpo,
60
- variables_fontName as fontName,
61
- variables_grid_conf as grid_conf,
62
- variables_gutter as gutter,
63
- variables_mobileMedia as mobileMedia,
64
- variables_mobile_width as mobile_width,
65
- variables_pxToRem as pxToRem,
66
- variables_radius as radius,
67
- variables_responsiveMedia as responsiveMedia,
68
- variables_shadows as shadows,
69
- variables_spaces as spaces,
70
- variables_spacesNegative as spacesNegative,
71
- variables_tablet_width as tablet_width,
72
- variables_typography as typography,
73
- variables_zIndexes as zIndexes,
74
- };
75
- }
76
-
77
- declare function export_default(): void;
78
-
79
- export { export_default as default, variables };