@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.
@@ -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,
@@ -80,6 +80,7 @@ export const CardPaneStyled = styled.div `
80
80
  }
81
81
  &.pane--title--button {
82
82
  cursor: pointer;
83
+ color: var(--primary-main);
83
84
  }
84
85
  }
85
86
  &--description {
@@ -81,6 +81,7 @@ export const CardPaneStyled = styled.div`
81
81
  }
82
82
  &.pane--title--button {
83
83
  cursor: pointer;
84
+ color: var(--primary-main);
84
85
  }
85
86
  }
86
87
  &--description {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { type FC } from 'react';
2
2
  import { type IconImageProps } from './IconImageProps.types';
3
- declare const IconImage: React.FC<IconImageProps>;
3
+ declare const IconImage: FC<IconImageProps>;
4
4
  export default IconImage;
@@ -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
- return (_jsx("img", { className: givenClass, src: `${baseSrcUrl ?? process.env.ASSETS_URL + '/'}${iconName}.${iconFormat}`, alt: '', role: 'img' }));
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: React.FC<IconImageProps> = ({ iconName, baseSrcUrl = undefined, givenClass, iconFormat = 'svg' }) => {
6
- return (
7
- <img
8
- className={givenClass}
9
- src={`${baseSrcUrl ?? process.env.ASSETS_URL + '/'}${iconName}.${iconFormat}`}
10
- alt=''
11
- role='img'
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-wrap: wrap;
134
- gap: 0.5rem;
135
- .radio-item-container {
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
- .radio-icon {
152
- width: 24px;
153
- height: 24px;
154
- padding: 1px;
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
- .radio-item-input {
158
- position: absolute;
159
- visibility: hidden;
160
- }
152
+ .radio-item-container:not(:nth-child(2n + 0)) {
153
+ margin-right: 0.5rem;
154
+ }
161
155
 
162
- .e-radio-label__label {
163
- font-size: 14px;
164
- }
165
- }
156
+ .radio-item-input {
157
+ position: absolute;
158
+ visibility: hidden;
159
+ }
166
160
 
167
- &.active {
168
- .e-radio-label {
169
- border: 2px solid var(--primary-main-dark-2);
170
- background: var(--neutral-neutral-5);
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
- .e-radio-label__label {
173
- font-weight: bold;
174
- }
175
- }
176
- }
177
- }
166
+ .radio-item-container:hover {
167
+ background-color: var(--neutral-neutral-5);
168
+ font-weight: bold;
169
+ }
178
170
 
179
- @include portrait-tablets {
180
- .radio-item-container {
181
- max-width: $md;
182
- .e-radio-label {
183
- padding: 16px 15px;
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}>
@@ -20,5 +20,5 @@ export interface RadioProps {
20
20
  export declare enum RadioFormat {
21
21
  Default = "default",
22
22
  Tabs = "--tabs",
23
- Icons = "icons"
23
+ Icons = "--icons"
24
24
  }
@@ -2,5 +2,5 @@ export var RadioFormat;
2
2
  (function (RadioFormat) {
3
3
  RadioFormat["Default"] = "default";
4
4
  RadioFormat["Tabs"] = "--tabs";
5
- RadioFormat["Icons"] = "icons";
5
+ RadioFormat["Icons"] = "--icons";
6
6
  })(RadioFormat || (RadioFormat = {}));
@@ -17,5 +17,5 @@ export interface RadioProps {
17
17
  export enum RadioFormat {
18
18
  Default = 'default',
19
19
  Tabs = '--tabs',
20
- Icons = 'icons'
20
+ Icons = '--icons'
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.42.5",
3
+ "version": "5.42.6",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",