oddsgate-ds 1.0.195 → 1.0.197

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.195",
3
+ "version": "1.0.197",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -18,12 +18,12 @@ const LegalLinks = ({
18
18
  // If the link has children, render as dropdown
19
19
  if (link.children && link.children.length > 0) {
20
20
  return (
21
- <li key={`legalLink-${link.label}-${index}`}>
21
+ <li key={`dropdown-${link.label}-${index}`}>
22
22
  <LegalLinksDropdown title={link.label} className="font-epilogue">
23
23
  {link.children.map((childLink, childIndex) => {
24
24
  if (!childLink.label || !childLink.url) return null
25
25
  return (
26
- <LegalLinksDropdownItem key={`childLink-${childLink.url}-${childIndex}`}>
26
+ <LegalLinksDropdownItem key={`child-${childLink.label}-${childLink.url}-${index}-${childIndex}`}>
27
27
  <a
28
28
  href={childLink.url}
29
29
  target="_blank"
@@ -45,7 +45,7 @@ const LegalLinks = ({
45
45
  if (!link.url) return <></>
46
46
 
47
47
  return (
48
- <li key={`legalLink-${link.url}-${index}`}>
48
+ <li key={`link-${link.label}-${link.url}-${index}`}>
49
49
  <a
50
50
  href={link.url}
51
51
  target="_blank"
@@ -49,7 +49,9 @@ export const StyledLegalLinksDropdownTitle = styled.span`
49
49
  }
50
50
  `
51
51
 
52
- export const StyledLegalLinksDropdownContainer = styled.ul<ILegalLinksDropdownContainer>`
52
+ export const StyledLegalLinksDropdownContainer = styled.ul.withConfig({
53
+ shouldForwardProp: (prop) => prop !== 'openUpward' && prop !== 'isVisible',
54
+ })<ILegalLinksDropdownContainer>`
53
55
  position: absolute;
54
56
  ${props => (props.openUpward ? 'bottom: 100%;' : 'top: 100%;')}
55
57
  left: 0%;
@@ -169,7 +171,9 @@ export const StyledLegalLinksDropdownItem = styled.li<ILegalLinksDropdownItem>`
169
171
  }
170
172
  `
171
173
 
172
- export const StyledLegalLinksDropdownIcon = styled.span<{ isOpen?: boolean }>`
174
+ export const StyledLegalLinksDropdownIcon = styled.span.withConfig({
175
+ shouldForwardProp: (prop) => prop !== 'isOpen',
176
+ })<{ isOpen?: boolean }>`
173
177
  font-size: 10px;
174
178
  display: flex;
175
179
  align-items: center;