oddsgate-ds 1.0.56 → 1.0.58

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.56",
3
+ "version": "1.0.58",
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;
@@ -8,7 +8,7 @@ const Marquee = ({ text, className, onClick, ...props }: IMarquee) => {
8
8
  return (
9
9
  <StyledMarquee className={cn(className)} onClick={onClick} {...props}>
10
10
  <div>
11
- <Heading size="display" tag="span" className='text-uppercase'>
11
+ <Heading size="display" tag="span" className='fw-bold text-uppercase'>
12
12
  {text} {text} {text}
13
13
  </Heading>
14
14
  </div>
package/declaration.d.ts DELETED
@@ -1,4 +0,0 @@
1
- declare module '*.scss' {
2
- const classes: {[key: string]: string};
3
- export default classes;
4
- }
@@ -1,11 +0,0 @@
1
- version: '3.7'
2
- services:
3
- storybook:
4
- image: node
5
- restart: unless-stopped
6
- ports:
7
- - 6006:6006
8
- volumes:
9
- - .:/var/www
10
- working_dir: /var/www
11
- command: sh -c 'yarn install && yarn storybook'