@npm_leadtech/legal-lib-components 7.22.5 → 7.22.7

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,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /* eslint-disable jsx-a11y/click-events-have-key-events */
2
3
  /* eslint-disable jsx-a11y/no-static-element-interactions */
3
4
  import React, { forwardRef, useState } from 'react';
4
5
  import { DropdownInputStyled } from './DropdownInput.styled';
@@ -13,10 +14,9 @@ export const DropdownInput = forwardRef(({ onChange, results, className = '', na
13
14
  };
14
15
  return (_jsxs(DropdownInputStyled, { className: `dropdown_input ${className}`, children: [_jsxs("div", { className: 'dropdown_input__container', children: [_jsx("input", { ref: ref, className: `dropdown_input__container__text_input ${icon ? 'with-icon' : ''}`, type: 'text', name: `dropdown_input_${name}`, placeholder: placeholder, value: searchTerm, onChange: (e) => {
15
16
  updateInput(e);
16
- } }), _jsxs("div", { className: `dropdown_input__container__icon ${searchTerm ? 'active' : ''}`, children: [icon &&
17
+ } }), _jsxs("div", { className: `dropdown_input__container__icon ${searchTerm ? 'active' : ''}`, onClick: onClose, children: [icon &&
17
18
  React.cloneElement(icon, {
18
- className: 'dropdown_input__container__icon__main',
19
- onClick: onClose
19
+ className: 'dropdown_input__container__icon__main'
20
20
  }), searchTerm && (_jsx("div", { className: 'icon-cross main-color dropdown_input__container__icon__clear', onClick: () => {
21
21
  resetInput();
22
22
  }, onKeyDown: () => {
@@ -5,7 +5,7 @@ export const DropdownInputStyled = styled.div `
5
5
  padding: 1.5rem;
6
6
 
7
7
  @media ${device['landscape-tablets']} {
8
- padding: 1rem 2rem;
8
+ padding: 16px 24px;
9
9
  }
10
10
 
11
11
  a {
@@ -20,22 +20,22 @@ export const DropdownInputStyled = styled.div `
20
20
 
21
21
  @media ${device['landscape-tablets']} {
22
22
  border-top: 2px solid transparent;
23
- border-bottom: 2px solid transparent;
23
+ border-bottom: none;
24
24
  }
25
25
 
26
26
  &:focus-within {
27
27
  border-bottom: 2px var(--neutral-neutral-4) solid;
28
28
 
29
29
  @media ${device['landscape-tablets']} {
30
- border-bottom: 2px var(--neutral-neutral-4) solid;
30
+ border-bottom: none;
31
31
  }
32
32
 
33
33
  .dropdown_input__container__icon {
34
- color: var(--primary-main);
34
+ color: var(--neutral-neutral-3);
35
35
 
36
36
  svg {
37
- fill: var(--primary-main);
38
- stroke: var(--primary-main);
37
+ fill: var(--neutral-neutral-3);
38
+ stroke: var(--neutral-neutral-3);
39
39
  }
40
40
  }
41
41
  }
@@ -67,10 +67,10 @@ export const DropdownInputStyled = styled.div `
67
67
  top: 0;
68
68
  height: 100%;
69
69
  color: var(--neutral-neutral-3);
70
- fill: currentColor;
70
+ fill: var(--neutral-neutral-3);
71
71
 
72
72
  @media ${device['landscape-tablets']} {
73
- pointer-events: none;
73
+ cursor: pointer;
74
74
  }
75
75
 
76
76
  .dropdown_input__container__icon__main {
@@ -82,6 +82,7 @@ export const DropdownInputStyled = styled.div `
82
82
 
83
83
  path {
84
84
  transition: all 0.25s;
85
+ fill: var(--neutral-neutral-3);
85
86
  }
86
87
  }
87
88
 
@@ -6,7 +6,7 @@ export const DropdownInputStyled = styled.div`
6
6
  padding: 1.5rem;
7
7
 
8
8
  @media ${device['landscape-tablets']} {
9
- padding: 1rem 2rem;
9
+ padding: 16px 24px;
10
10
  }
11
11
 
12
12
  a {
@@ -21,22 +21,22 @@ export const DropdownInputStyled = styled.div`
21
21
 
22
22
  @media ${device['landscape-tablets']} {
23
23
  border-top: 2px solid transparent;
24
- border-bottom: 2px solid transparent;
24
+ border-bottom: none;
25
25
  }
26
26
 
27
27
  &:focus-within {
28
28
  border-bottom: 2px var(--neutral-neutral-4) solid;
29
29
 
30
30
  @media ${device['landscape-tablets']} {
31
- border-bottom: 2px var(--neutral-neutral-4) solid;
31
+ border-bottom: none;
32
32
  }
33
33
 
34
34
  .dropdown_input__container__icon {
35
- color: var(--primary-main);
35
+ color: var(--neutral-neutral-3);
36
36
 
37
37
  svg {
38
- fill: var(--primary-main);
39
- stroke: var(--primary-main);
38
+ fill: var(--neutral-neutral-3);
39
+ stroke: var(--neutral-neutral-3);
40
40
  }
41
41
  }
42
42
  }
@@ -68,10 +68,10 @@ export const DropdownInputStyled = styled.div`
68
68
  top: 0;
69
69
  height: 100%;
70
70
  color: var(--neutral-neutral-3);
71
- fill: currentColor;
71
+ fill: var(--neutral-neutral-3);
72
72
 
73
73
  @media ${device['landscape-tablets']} {
74
- pointer-events: none;
74
+ cursor: pointer;
75
75
  }
76
76
 
77
77
  .dropdown_input__container__icon__main {
@@ -83,6 +83,7 @@ export const DropdownInputStyled = styled.div`
83
83
 
84
84
  path {
85
85
  transition: all 0.25s;
86
+ fill: var(--neutral-neutral-3);
86
87
  }
87
88
  }
88
89
 
@@ -1,3 +1,4 @@
1
+ /* eslint-disable jsx-a11y/click-events-have-key-events */
1
2
  /* eslint-disable jsx-a11y/no-static-element-interactions */
2
3
  import React, { forwardRef, useState } from 'react'
3
4
 
@@ -31,11 +32,10 @@ export const DropdownInput = forwardRef<HTMLInputElement, DropdownInputProps>(
31
32
  updateInput(e)
32
33
  }}
33
34
  />
34
- <div className={`dropdown_input__container__icon ${searchTerm ? 'active' : ''}`}>
35
+ <div className={`dropdown_input__container__icon ${searchTerm ? 'active' : ''}`} onClick={onClose}>
35
36
  {icon &&
36
37
  React.cloneElement(icon, {
37
- className: 'dropdown_input__container__icon__main',
38
- onClick: onClose
38
+ className: 'dropdown_input__container__icon__main'
39
39
  })}
40
40
  {searchTerm && (
41
41
  <div
@@ -16,7 +16,7 @@ export const SearchBarStyled = styled.div `
16
16
  z-index: 10000;
17
17
  width: 400px;
18
18
  max-width: 90vw;
19
- background: none;
19
+ background: transparent;
20
20
 
21
21
  .modal_searchbar__content {
22
22
  background-color: var(--neutral-white);
@@ -17,7 +17,7 @@ export const SearchBarStyled = styled.div`
17
17
  z-index: 10000;
18
18
  width: 400px;
19
19
  max-width: 90vw;
20
- background: none;
20
+ background: transparent;
21
21
 
22
22
  .modal_searchbar__content {
23
23
  background-color: var(--neutral-white);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.22.5",
3
+ "version": "7.22.7",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",