@npm_leadtech/legal-lib-components 7.22.5 → 7.22.6
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/dist/src/components/atoms/DropdownInput/DropdownInput.js +3 -3
- package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.js +9 -8
- package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.ts +9 -8
- package/dist/src/components/atoms/DropdownInput/DropdownInput.tsx +3 -3
- package/package.json +1 -1
|
@@ -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:
|
|
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:
|
|
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:
|
|
30
|
+
border-bottom: none;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.dropdown_input__container__icon {
|
|
34
|
-
color: var(--
|
|
34
|
+
color: var(--neutral-neutral-3);
|
|
35
35
|
|
|
36
36
|
svg {
|
|
37
|
-
fill: var(--
|
|
38
|
-
stroke: var(--
|
|
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:
|
|
70
|
+
fill: var(--neutral-neutral-3);
|
|
71
71
|
|
|
72
72
|
@media ${device['landscape-tablets']} {
|
|
73
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
31
|
+
border-bottom: none;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.dropdown_input__container__icon {
|
|
35
|
-
color: var(--
|
|
35
|
+
color: var(--neutral-neutral-3);
|
|
36
36
|
|
|
37
37
|
svg {
|
|
38
|
-
fill: var(--
|
|
39
|
-
stroke: var(--
|
|
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:
|
|
71
|
+
fill: var(--neutral-neutral-3);
|
|
72
72
|
|
|
73
73
|
@media ${device['landscape-tablets']} {
|
|
74
|
-
|
|
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
|