oddsgate-ds 1.0.79 → 1.0.81

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.79",
3
+ "version": "1.0.81",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -20,7 +20,7 @@ export const FormField = ({
20
20
  {label && (
21
21
  <label
22
22
  htmlFor={itemID}
23
- className="d-blocks h4 color-secondary90 fw-bold text-uppercase mb-2"
23
+ className="d-blocks h5 color-primary50 fw-bold text-uppercase mb-2"
24
24
  >
25
25
  {label}
26
26
  </label>
@@ -65,7 +65,7 @@ export const StyledFieldContainer = styled.div<IFormField>`
65
65
  border: 0;
66
66
 
67
67
  padding: 1rem 2rem;
68
- color: ${colors.secondary90};
68
+ color: ${colors.third10};
69
69
  background: ${colors.secondary50};
70
70
  outline: none;
71
71
  width: 100%;
@@ -19,6 +19,6 @@ export const StyledProductCardWrapper = styled.div<IProductCard>`
19
19
  align-items: center;
20
20
  gap: 1rem;
21
21
  background-color: ${colors.primary50};
22
- padding: 2rem;
22
+ padding: 3rem 2rem;
23
23
  border-radius: 0 ${radius.lg};
24
24
  `;
@@ -1,4 +1,4 @@
1
- import React, { useRef, useState } from 'react'
1
+ import React, { useEffect, useRef, useState } from 'react'
2
2
  import {
3
3
  StyledTabs,
4
4
  StyledTabsContent,
@@ -17,10 +17,6 @@ const Tabs = ({ id, title, menu, vertical, className, style }: ITabs) => {
17
17
  if (item?.onClick) item?.onClick()
18
18
 
19
19
  setActive(index);
20
-
21
- // setTimeout(() => {
22
- // document.querySelector(`.tabs-menu`).style.height = "auto";
23
- // }, 350)
24
20
  }
25
21
 
26
22
  const setTabsHeight = () => {
@@ -33,7 +29,15 @@ const Tabs = ({ id, title, menu, vertical, className, style }: ITabs) => {
33
29
  tabsContent.current.style.height = `${Math.max(...heights)}px`;
34
30
  }
35
31
 
36
- setTabsHeight();
32
+ useEffect(()=>{
33
+ setTabsHeight();
34
+ window.addEventListener('resize', setTabsHeight);
35
+
36
+ return () => {
37
+ window.removeEventListener('resize', setTabsHeight);
38
+ }
39
+ }, [])
40
+
37
41
 
38
42
  return (
39
43
  <StyledTabs id={id} vertical={vertical} className={className} style={style}>
@@ -41,7 +41,6 @@ export const colors = <Record<string, string>>{
41
41
 
42
42
  secondary10: '#FDFDF1',
43
43
  secondary50: '#FFFECC',
44
- secondary90: '#82816C',
45
44
 
46
45
  third10: '#440D3F',
47
46
  third50: '#2C0929',