@npm_leadtech/legal-lib-components 5.42.5 → 5.42.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/css/styles.css +98 -49
- package/dist/src/components/atoms/CardPane/CardPane.styled.js +1 -0
- package/dist/src/components/atoms/CardPane/CardPane.styled.ts +1 -0
- package/dist/src/components/atoms/IconImage/IconImage.d.ts +2 -2
- package/dist/src/components/atoms/IconImage/IconImage.js +5 -1
- package/dist/src/components/atoms/IconImage/IconImage.tsx +8 -10
- package/dist/src/components/atoms/Radio/Radio.scss +59 -53
- package/dist/src/components/atoms/Radio/Radio.tsx +1 -1
- package/dist/src/components/atoms/Radio/RadioProps.types.d.ts +1 -1
- package/dist/src/components/atoms/Radio/RadioProps.types.js +1 -1
- package/dist/src/components/atoms/Radio/RadioProps.types.ts +1 -1
- package/package.json +1 -1
package/dist/css/styles.css
CHANGED
|
@@ -1783,6 +1783,9 @@ h2.react-datepicker__current-month {
|
|
|
1783
1783
|
align-items: center;
|
|
1784
1784
|
gap: 0.5rem;
|
|
1785
1785
|
}
|
|
1786
|
+
.e-radio.default .e-radio__inner .radio-item-container .e-radio-label .radio-item-input {
|
|
1787
|
+
visibility: hidden;
|
|
1788
|
+
}
|
|
1786
1789
|
.e-radio.default .e-radio__inner .radio-item-container .e-radio-label input[type=radio]:after {
|
|
1787
1790
|
width: 16px;
|
|
1788
1791
|
height: 16px;
|
|
@@ -1814,58 +1817,12 @@ h2.react-datepicker__current-month {
|
|
|
1814
1817
|
gap: 0.5rem;
|
|
1815
1818
|
}
|
|
1816
1819
|
}
|
|
1817
|
-
.e-radio.icons .e-radio__inner {
|
|
1818
|
-
width: 100%;
|
|
1819
|
-
display: flex;
|
|
1820
|
-
flex-wrap: wrap;
|
|
1821
|
-
gap: 0.5rem;
|
|
1822
|
-
}
|
|
1823
|
-
.e-radio.icons .e-radio__inner .radio-item-container {
|
|
1824
|
-
width: 100%;
|
|
1825
|
-
}
|
|
1826
|
-
.e-radio.icons .e-radio__inner .radio-item-container .e-radio-label {
|
|
1827
|
-
display: flex;
|
|
1828
|
-
padding: 8px 15px;
|
|
1829
|
-
align-items: center;
|
|
1830
|
-
gap: 16px;
|
|
1831
|
-
border-radius: 4px;
|
|
1832
|
-
border: 1px solid var(--neutral-neutral-4);
|
|
1833
|
-
background: var(--others-white);
|
|
1834
|
-
cursor: pointer;
|
|
1835
|
-
}
|
|
1836
|
-
.e-radio.icons .e-radio__inner .radio-item-container .e-radio-label:hover {
|
|
1837
|
-
background: var(--neutral-neutral-5);
|
|
1838
|
-
}
|
|
1839
|
-
.e-radio.icons .e-radio__inner .radio-item-container .e-radio-label .radio-icon {
|
|
1840
|
-
width: 24px;
|
|
1841
|
-
height: 24px;
|
|
1842
|
-
padding: 1px;
|
|
1843
|
-
}
|
|
1844
|
-
.e-radio.icons .e-radio__inner .radio-item-container .e-radio-label .radio-item-input {
|
|
1845
|
-
position: absolute;
|
|
1846
|
-
visibility: hidden;
|
|
1847
|
-
}
|
|
1848
|
-
.e-radio.icons .e-radio__inner .radio-item-container .e-radio-label .e-radio-label__label {
|
|
1849
|
-
font-size: 14px;
|
|
1850
|
-
}
|
|
1851
|
-
.e-radio.icons .e-radio__inner .radio-item-container.active .e-radio-label {
|
|
1852
|
-
border: 2px solid var(--primary-main-dark-2);
|
|
1853
|
-
background: var(--neutral-neutral-5);
|
|
1854
|
-
}
|
|
1855
|
-
.e-radio.icons .e-radio__inner .radio-item-container.active .e-radio-label .e-radio-label__label {
|
|
1856
|
-
font-weight: bold;
|
|
1857
|
-
}
|
|
1858
|
-
@media (min-width: 575px) {
|
|
1859
|
-
.e-radio.icons .e-radio__inner .radio-item-container {
|
|
1860
|
-
max-width: 960px;
|
|
1861
|
-
}
|
|
1862
|
-
.e-radio.icons .e-radio__inner .radio-item-container .e-radio-label {
|
|
1863
|
-
padding: 16px 15px;
|
|
1864
|
-
}
|
|
1865
|
-
}
|
|
1866
1820
|
.e-radio label:first-child:not(.e-radio-label) {
|
|
1867
1821
|
font-weight: bold;
|
|
1868
1822
|
}
|
|
1823
|
+
.e-radio .radio-item-container {
|
|
1824
|
+
width: 100%;
|
|
1825
|
+
}
|
|
1869
1826
|
@media (max-width: 575px) {
|
|
1870
1827
|
.e-radio.--tabs .e-radio__inner {
|
|
1871
1828
|
display: flex;
|
|
@@ -1982,6 +1939,98 @@ h2.react-datepicker__current-month {
|
|
|
1982
1939
|
width: 100%;
|
|
1983
1940
|
}
|
|
1984
1941
|
}
|
|
1942
|
+
@media (max-width: 575px) {
|
|
1943
|
+
.e-radio.--icons .e-radio__inner {
|
|
1944
|
+
display: flex;
|
|
1945
|
+
flex-direction: column;
|
|
1946
|
+
gap: 1rem;
|
|
1947
|
+
}
|
|
1948
|
+
.e-radio.--icons .e-radio__inner .radio-item-container .e-radio-label {
|
|
1949
|
+
display: flex;
|
|
1950
|
+
align-items: center;
|
|
1951
|
+
gap: 0.5rem;
|
|
1952
|
+
}
|
|
1953
|
+
.e-radio.--icons .e-radio__inner .radio-item-container .e-radio-label .radio-item-input {
|
|
1954
|
+
visibility: hidden;
|
|
1955
|
+
}
|
|
1956
|
+
.e-radio.--icons .e-radio__inner .radio-item-container .e-radio-label input[type=radio]:after {
|
|
1957
|
+
width: 16px;
|
|
1958
|
+
height: 16px;
|
|
1959
|
+
border-radius: 16px;
|
|
1960
|
+
top: -4px;
|
|
1961
|
+
left: -2px;
|
|
1962
|
+
position: relative;
|
|
1963
|
+
background-color: var(--others-white);
|
|
1964
|
+
content: "";
|
|
1965
|
+
display: inline-block;
|
|
1966
|
+
visibility: visible;
|
|
1967
|
+
border: 1px solid var(--neutral-neutral-1);
|
|
1968
|
+
cursor: pointer;
|
|
1969
|
+
}
|
|
1970
|
+
.e-radio.--icons .e-radio__inner .radio-item-container .e-radio-label .e-radio-label__label {
|
|
1971
|
+
cursor: pointer;
|
|
1972
|
+
}
|
|
1973
|
+
.e-radio.--icons .e-radio__inner .radio-item-container.active .e-radio-label input[type=radio]:after {
|
|
1974
|
+
border: 5px solid var(--primary-main);
|
|
1975
|
+
}
|
|
1976
|
+
.e-radio.--icons .e-radio__inner .radio-item-container.active .e-radio-label .e-radio-label__label {
|
|
1977
|
+
color: var(--primary-main);
|
|
1978
|
+
}
|
|
1979
|
+
.e-radio.--icons .e-radio__inner .radio-item-container:hover .e-radio-label input[type=radio]:after {
|
|
1980
|
+
background-color: var(--primary-main-light-5);
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
@media (max-width: 575px) and (min-width: 575px) {
|
|
1984
|
+
.e-radio.--icons .e-radio__inner {
|
|
1985
|
+
gap: 0.5rem;
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
.e-radio.--icons .radio-icon {
|
|
1989
|
+
display: none;
|
|
1990
|
+
}
|
|
1991
|
+
@media (min-width: 575px) {
|
|
1992
|
+
.e-radio.--icons .e-radio__inner {
|
|
1993
|
+
display: flex;
|
|
1994
|
+
flex-flow: row wrap;
|
|
1995
|
+
margin-top: 1.5rem;
|
|
1996
|
+
}
|
|
1997
|
+
.e-radio.--icons .radio-item-container {
|
|
1998
|
+
display: flex;
|
|
1999
|
+
width: 47%;
|
|
2000
|
+
border: 1px solid black;
|
|
2001
|
+
min-width: 80px;
|
|
2002
|
+
min-height: 3.5rem;
|
|
2003
|
+
margin-bottom: 0.5rem;
|
|
2004
|
+
border-radius: var(--global-border-radius);
|
|
2005
|
+
border-color: var(--neutral-neutral-4);
|
|
2006
|
+
cursor: pointer;
|
|
2007
|
+
}
|
|
2008
|
+
.e-radio.--icons .radio-item-container:not(:nth-child(2n+0)) {
|
|
2009
|
+
margin-right: 0.5rem;
|
|
2010
|
+
}
|
|
2011
|
+
.e-radio.--icons .radio-item-input {
|
|
2012
|
+
position: absolute;
|
|
2013
|
+
visibility: hidden;
|
|
2014
|
+
}
|
|
2015
|
+
.e-radio.--icons .radio-item-container.active {
|
|
2016
|
+
border: 2px solid var(--primary-main-dark-1);
|
|
2017
|
+
background-color: var(--neutral-neutral-5);
|
|
2018
|
+
}
|
|
2019
|
+
.e-radio.--icons .radio-item-container:hover {
|
|
2020
|
+
background-color: var(--neutral-neutral-5);
|
|
2021
|
+
font-weight: bold;
|
|
2022
|
+
}
|
|
2023
|
+
.e-radio.--icons .e-radio-label {
|
|
2024
|
+
display: flex;
|
|
2025
|
+
align-items: center;
|
|
2026
|
+
padding: 0.25rem 1rem;
|
|
2027
|
+
width: 100%;
|
|
2028
|
+
}
|
|
2029
|
+
.e-radio.--icons .radio-icon {
|
|
2030
|
+
display: block;
|
|
2031
|
+
margin-right: 1rem;
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
1985
2034
|
.e-radio.--is-invalid.--tabs .e-radio__inner,
|
|
1986
2035
|
.e-radio.--is-invalid.--group-invalid .e-radio__inner,
|
|
1987
2036
|
.e-radio.--group-invalid.--tabs .e-radio__inner,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
const IconImage = ({ iconName, baseSrcUrl = undefined, givenClass, iconFormat = 'svg' }) => {
|
|
3
|
-
|
|
3
|
+
if (baseSrcUrl === undefined) {
|
|
4
|
+
baseSrcUrl = `${process.env.ASSETS_URL}/`;
|
|
5
|
+
}
|
|
6
|
+
const iconUrl = `${baseSrcUrl}${iconName}.${iconFormat}`;
|
|
7
|
+
return _jsx("img", { className: givenClass, src: iconUrl, alt: '', role: 'img' });
|
|
4
8
|
};
|
|
5
9
|
export default IconImage;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React, { type FC } from 'react'
|
|
2
2
|
|
|
3
3
|
import { type IconImageProps } from './IconImageProps.types'
|
|
4
4
|
|
|
5
|
-
const IconImage:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/>
|
|
13
|
-
)
|
|
5
|
+
const IconImage: FC<IconImageProps> = ({ iconName, baseSrcUrl = undefined, givenClass, iconFormat = 'svg' }) => {
|
|
6
|
+
if (baseSrcUrl === undefined) {
|
|
7
|
+
baseSrcUrl = `${process.env.ASSETS_URL}/`
|
|
8
|
+
}
|
|
9
|
+
const iconUrl = `${baseSrcUrl}${iconName}.${iconFormat}`
|
|
10
|
+
|
|
11
|
+
return <img className={givenClass} src={iconUrl} alt='' role='img' />
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
export default IconImage
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
align-items: center;
|
|
13
13
|
gap: 0.5rem;
|
|
14
14
|
|
|
15
|
+
.radio-item-input {
|
|
16
|
+
visibility: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
15
19
|
input[type='radio']:after {
|
|
16
20
|
width: 16px;
|
|
17
21
|
height: 16px;
|
|
@@ -128,62 +132,52 @@
|
|
|
128
132
|
|
|
129
133
|
@mixin iconStyles {
|
|
130
134
|
.e-radio__inner {
|
|
131
|
-
width: 100%;
|
|
132
135
|
display: flex;
|
|
133
|
-
flex-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
width: 100%;
|
|
137
|
-
.e-radio-label {
|
|
138
|
-
display: flex;
|
|
139
|
-
padding: 8px 15px;
|
|
140
|
-
align-items: center;
|
|
141
|
-
gap: 16px;
|
|
142
|
-
border-radius: 4px;
|
|
143
|
-
border: 1px solid var(--neutral-neutral-4);
|
|
144
|
-
background: var(--others-white);
|
|
145
|
-
cursor: pointer;
|
|
146
|
-
|
|
147
|
-
&:hover {
|
|
148
|
-
background: var(--neutral-neutral-5);
|
|
149
|
-
}
|
|
136
|
+
flex-flow: row wrap;
|
|
137
|
+
margin-top: 1.5rem;
|
|
138
|
+
}
|
|
150
139
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
140
|
+
.radio-item-container {
|
|
141
|
+
display: flex;
|
|
142
|
+
width: 47%;
|
|
143
|
+
border: 1px solid black;
|
|
144
|
+
min-width: 80px;
|
|
145
|
+
min-height: 3.5rem;
|
|
146
|
+
margin-bottom: 0.5rem;
|
|
147
|
+
border-radius: var(--global-border-radius);
|
|
148
|
+
border-color: var(--neutral-neutral-4);
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
}
|
|
156
151
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
152
|
+
.radio-item-container:not(:nth-child(2n + 0)) {
|
|
153
|
+
margin-right: 0.5rem;
|
|
154
|
+
}
|
|
161
155
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
156
|
+
.radio-item-input {
|
|
157
|
+
position: absolute;
|
|
158
|
+
visibility: hidden;
|
|
159
|
+
}
|
|
166
160
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
161
|
+
.radio-item-container.active {
|
|
162
|
+
border: 2px solid var(--primary-main-dark-1);
|
|
163
|
+
background-color: var(--neutral-neutral-5);
|
|
164
|
+
}
|
|
171
165
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
}
|
|
166
|
+
.radio-item-container:hover {
|
|
167
|
+
background-color: var(--neutral-neutral-5);
|
|
168
|
+
font-weight: bold;
|
|
169
|
+
}
|
|
178
170
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
171
|
+
.e-radio-label {
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
padding: 0.25rem 1rem;
|
|
175
|
+
width: 100%;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.radio-icon {
|
|
179
|
+
display: block;
|
|
180
|
+
margin-right: 1rem;
|
|
187
181
|
}
|
|
188
182
|
}
|
|
189
183
|
|
|
@@ -198,16 +192,16 @@
|
|
|
198
192
|
@include defaultStyles;
|
|
199
193
|
}
|
|
200
194
|
|
|
201
|
-
&.icons {
|
|
202
|
-
@include iconStyles;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
195
|
// por aqui
|
|
206
196
|
|
|
207
197
|
label:first-child:not(.e-radio-label) {
|
|
208
198
|
font-weight: bold;
|
|
209
199
|
}
|
|
210
200
|
|
|
201
|
+
.radio-item-container {
|
|
202
|
+
width: 100%;
|
|
203
|
+
}
|
|
204
|
+
|
|
211
205
|
&.--tabs {
|
|
212
206
|
@media (max-width: #{$xs}) {
|
|
213
207
|
@include tabsStyles;
|
|
@@ -219,6 +213,18 @@
|
|
|
219
213
|
}
|
|
220
214
|
}
|
|
221
215
|
|
|
216
|
+
&.--icons {
|
|
217
|
+
@include mobile {
|
|
218
|
+
@include defaultStyles();
|
|
219
|
+
}
|
|
220
|
+
.radio-icon {
|
|
221
|
+
display: none;
|
|
222
|
+
}
|
|
223
|
+
@include portrait-tablets {
|
|
224
|
+
@include iconStyles;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
222
228
|
&.--is-invalid,
|
|
223
229
|
&.--group-invalid {
|
|
224
230
|
&.--tabs,
|
|
@@ -30,7 +30,7 @@ const Radio: React.FC<RadioProps> = ({
|
|
|
30
30
|
<label htmlFor={name} className='sans-serif --medium --bold-weight label'>
|
|
31
31
|
{label}
|
|
32
32
|
</label>
|
|
33
|
-
<div className='e-radio__inner'>
|
|
33
|
+
<div className={'e-radio__inner'}>
|
|
34
34
|
{items.map((radio) => {
|
|
35
35
|
return (
|
|
36
36
|
<div className={`radio-item-container ${radio.value === value ? 'active' : ''}`} key={radio.value}>
|