@npm_leadtech/legal-lib-components 5.39.12 → 5.40.0
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 +203 -95
- package/dist/images/svg/back-element-sign-01.svg +9 -0
- package/dist/images/svg/back-element-sign-02.svg +9 -0
- package/dist/images/svg/back-element-sign-03.svg +9 -0
- package/dist/src/components/atoms/Radio/Radio.d.ts +2 -2
- package/dist/src/components/atoms/Radio/Radio.js +15 -16
- package/dist/src/components/atoms/Radio/Radio.scss +183 -105
- package/dist/src/components/atoms/Radio/Radio.tsx +34 -38
- package/dist/src/components/atoms/Radio/RadioProps.types.d.ts +3 -9
- package/dist/src/components/atoms/Radio/RadioProps.types.js +1 -6
- package/dist/src/components/atoms/Radio/RadioProps.types.ts +3 -10
- package/dist/src/components/atoms/Radio/index.d.ts +1 -1
- package/dist/src/components/atoms/Radio/index.js +0 -1
- package/dist/src/components/atoms/Radio/index.ts +1 -1
- package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.js +7 -2
- package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.styled.js +15 -0
- package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.styled.ts +15 -0
- package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.tsx +11 -4
- package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItemProps.types.d.ts +1 -0
- package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItemProps.types.ts +1 -0
- package/dist/src/components/molecules/Feedback/Feedback.js +1 -1
- package/dist/src/components/molecules/Feedback/Feedback.tsx +2 -2
- package/dist/src/components/molecules/Feedback/FeedbackProps.types.d.ts +2 -2
- package/dist/src/components/molecules/Feedback/FeedbackProps.types.ts +2 -2
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +2 -2
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +4 -6
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types.d.ts +1 -3
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types.ts +1 -3
- package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaList.js +2 -2
- package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaList.tsx +2 -2
- package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaListProps.types.d.ts +1 -0
- package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaListProps.types.ts +1 -0
- package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.d.ts +4 -0
- package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.js +7 -0
- package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.styled.js +28 -0
- package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.styled.ts +29 -0
- package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.tsx +19 -0
- package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContentProps.types.d.ts +7 -0
- package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContentProps.types.js +1 -0
- package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContentProps.types.ts +8 -0
- package/dist/src/components/organisms/JumbotronEsignatureContent/index.d.ts +2 -0
- package/dist/src/components/organisms/JumbotronEsignatureContent/index.js +1 -0
- package/dist/src/components/organisms/JumbotronEsignatureContent/index.ts +2 -0
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.js +2 -2
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.tsx +2 -2
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContentProps.types.d.ts +2 -1
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContentProps.types.ts +2 -1
- package/dist/src/components/organisms/index.d.ts +1 -0
- package/dist/src/components/organisms/index.js +1 -0
- package/dist/src/components/organisms/index.ts +1 -0
- package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPage.d.ts +3 -0
- package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPage.js +5 -0
- package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPage.tsx +15 -0
- package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.d.ts +7 -0
- package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.js +1 -0
- package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.ts +8 -0
- package/dist/src/components/pages/EsignatureLandingPage/index.d.ts +2 -0
- package/dist/src/components/pages/EsignatureLandingPage/index.js +2 -0
- package/dist/src/components/pages/EsignatureLandingPage/index.ts +2 -0
- package/dist/src/components/pages/index.d.ts +1 -0
- package/dist/src/components/pages/index.js +1 -0
- package/dist/src/components/pages/index.ts +1 -0
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.js +20 -2
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.styled.js +19 -0
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.styled.ts +19 -0
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.tsx +43 -6
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSectionProps.types.d.ts +3 -2
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSectionProps.types.ts +3 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -1,63 +1,110 @@
|
|
|
1
1
|
@import '../../../globalStyles/variables.scss';
|
|
2
2
|
@import '../../../globalStyles/mediaqueries.scss';
|
|
3
3
|
|
|
4
|
-
@mixin
|
|
4
|
+
@mixin regularStyles {
|
|
5
5
|
.e-radio__inner {
|
|
6
6
|
display: flex;
|
|
7
|
-
flex-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
.e-radio-label {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
gap: 0.5rem;
|
|
7
|
+
flex-flow: row wrap;
|
|
8
|
+
width: 100%;
|
|
9
|
+
margin-left: 1.5rem;
|
|
14
10
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
label {
|
|
12
|
+
margin-bottom: 0.25rem;
|
|
13
|
+
flex-basis: 100%;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
color: var(--neutral-main);
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
position: relative;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
18
23
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
border-radius: 16px;
|
|
23
|
-
top: -4px;
|
|
24
|
-
left: -2px;
|
|
25
|
-
position: relative;
|
|
26
|
-
background-color: var(--others-white);
|
|
27
|
-
content: '';
|
|
28
|
-
display: inline-block;
|
|
29
|
-
visibility: visible;
|
|
30
|
-
border: 1px solid var(--neutral-neutral-1);
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
}
|
|
24
|
+
input {
|
|
25
|
+
position: absolute;
|
|
26
|
+
left: -9999px;
|
|
33
27
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
&:not(:checked):hover + label {
|
|
29
|
+
&:before {
|
|
30
|
+
background-color: var(--primary-main-light-5);
|
|
37
31
|
}
|
|
32
|
+
}
|
|
38
33
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
border: 5px solid var(--primary-main);
|
|
43
|
-
}
|
|
44
|
-
.e-radio-label__label {
|
|
45
|
-
color: var(--primary-main);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
34
|
+
&:checked:hover + label {
|
|
35
|
+
&:before {
|
|
36
|
+
background-color: var(--primary-main);
|
|
48
37
|
}
|
|
38
|
+
}
|
|
49
39
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
40
|
+
&:checked + label {
|
|
41
|
+
color: var(--primary-main);
|
|
42
|
+
text-shadow:
|
|
43
|
+
-0.02ex 0 get-color(primary),
|
|
44
|
+
0.02ex 0 var(--primary-main);
|
|
45
|
+
|
|
46
|
+
&:before {
|
|
47
|
+
content: '';
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 2px;
|
|
50
|
+
left: -23px;
|
|
51
|
+
height: 1.25rem;
|
|
52
|
+
width: 1.25rem;
|
|
53
|
+
background-color: var(--primary-main);
|
|
54
|
+
border: 1px solid var(--primary-main);
|
|
55
|
+
border-radius: 50%;
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:after {
|
|
60
|
+
content: '';
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 0.5rem;
|
|
63
|
+
left: -17px;
|
|
64
|
+
display: block;
|
|
65
|
+
height: 0.5rem;
|
|
66
|
+
width: 0.5rem;
|
|
67
|
+
background: currentColor;
|
|
68
|
+
border-radius: 50%;
|
|
69
|
+
opacity: 1;
|
|
70
|
+
transform: scale(1);
|
|
71
|
+
color: #fff;
|
|
72
|
+
transition: all 0.1s;
|
|
56
73
|
}
|
|
57
74
|
}
|
|
58
75
|
|
|
59
|
-
|
|
60
|
-
|
|
76
|
+
+ label {
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
font-size: 16px;
|
|
79
|
+
|
|
80
|
+
&:before {
|
|
81
|
+
content: '';
|
|
82
|
+
position: absolute;
|
|
83
|
+
left: -23px;
|
|
84
|
+
top: 2px;
|
|
85
|
+
height: 1.25rem;
|
|
86
|
+
width: 1.25rem;
|
|
87
|
+
border-radius: 50%;
|
|
88
|
+
background-color: transparent;
|
|
89
|
+
border: 1px solid var(--neutral-main);
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:after {
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: 0.5rem;
|
|
96
|
+
left: -17px;
|
|
97
|
+
display: block;
|
|
98
|
+
height: 0.5rem;
|
|
99
|
+
width: 0.5rem;
|
|
100
|
+
opacity: 0;
|
|
101
|
+
transform: scale(0);
|
|
102
|
+
color: var(--others-white);
|
|
103
|
+
transition: all 0.1s;
|
|
104
|
+
content: '';
|
|
105
|
+
bottom: 0.5rem;
|
|
106
|
+
border-radius: 50%;
|
|
107
|
+
}
|
|
61
108
|
}
|
|
62
109
|
}
|
|
63
110
|
}
|
|
@@ -131,69 +178,62 @@
|
|
|
131
178
|
}
|
|
132
179
|
|
|
133
180
|
@mixin iconStyles {
|
|
134
|
-
.
|
|
135
|
-
display:
|
|
136
|
-
flex-flow: row wrap;
|
|
137
|
-
margin-top: 1.5rem;
|
|
181
|
+
.radio-icon {
|
|
182
|
+
display: none;
|
|
138
183
|
}
|
|
184
|
+
@include portrait-tablets {
|
|
185
|
+
.e-radio__inner {
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-flow: row wrap;
|
|
188
|
+
margin-top: 1.5rem;
|
|
189
|
+
}
|
|
139
190
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
191
|
+
.radio-item-container {
|
|
192
|
+
display: flex;
|
|
193
|
+
width: 47%;
|
|
194
|
+
border: 1px solid black;
|
|
195
|
+
min-width: 80px;
|
|
196
|
+
min-height: 3.5rem;
|
|
197
|
+
margin-bottom: 0.5rem;
|
|
198
|
+
border-radius: var(--global-border-radius);
|
|
199
|
+
border-color: var(--neutral-neutral-4);
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
}
|
|
151
202
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
203
|
+
.radio-item-container:not(:nth-child(2n + 0)) {
|
|
204
|
+
margin-right: 0.5rem;
|
|
205
|
+
}
|
|
155
206
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
207
|
+
.radio-item-input {
|
|
208
|
+
position: absolute;
|
|
209
|
+
visibility: hidden;
|
|
210
|
+
}
|
|
160
211
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
212
|
+
.radio-item-container.active {
|
|
213
|
+
border: 2px solid var(--primary-main-dark-1);
|
|
214
|
+
background-color: var(--neutral-neutral-5);
|
|
215
|
+
}
|
|
165
216
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
217
|
+
.radio-item-container:hover {
|
|
218
|
+
background-color: var(--neutral-neutral-5);
|
|
219
|
+
font-weight: bold;
|
|
220
|
+
}
|
|
170
221
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
222
|
+
.e-radio-label {
|
|
223
|
+
display: flex;
|
|
224
|
+
align-items: center;
|
|
225
|
+
padding: 0.25rem 1rem;
|
|
226
|
+
width: 100%;
|
|
227
|
+
}
|
|
177
228
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
229
|
+
.radio-icon {
|
|
230
|
+
display: block;
|
|
231
|
+
margin-right: 1rem;
|
|
232
|
+
}
|
|
181
233
|
}
|
|
182
234
|
}
|
|
183
235
|
|
|
184
236
|
.e-radio {
|
|
185
|
-
.label {
|
|
186
|
-
color: var(--neutral-neutral-1);
|
|
187
|
-
margin-bottom: 1rem;
|
|
188
|
-
display: block;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
&.default {
|
|
192
|
-
@include defaultStyles;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
// por aqui
|
|
196
|
-
|
|
197
237
|
label:first-child:not(.e-radio-label) {
|
|
198
238
|
font-weight: bold;
|
|
199
239
|
}
|
|
@@ -202,6 +242,17 @@
|
|
|
202
242
|
width: 100%;
|
|
203
243
|
}
|
|
204
244
|
|
|
245
|
+
&.--regular {
|
|
246
|
+
@media (max-width: #{$xs}) {
|
|
247
|
+
@include regularStyles;
|
|
248
|
+
}
|
|
249
|
+
&:not(.--icons) {
|
|
250
|
+
@media (min-width: #{$xs}) {
|
|
251
|
+
@include regularStyles;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
205
256
|
&.--tabs {
|
|
206
257
|
@media (max-width: #{$xs}) {
|
|
207
258
|
@include tabsStyles;
|
|
@@ -214,19 +265,21 @@
|
|
|
214
265
|
}
|
|
215
266
|
|
|
216
267
|
&.--icons {
|
|
217
|
-
@include
|
|
218
|
-
@include defaultStyles();
|
|
219
|
-
}
|
|
220
|
-
.radio-icon {
|
|
221
|
-
display: none;
|
|
222
|
-
}
|
|
223
|
-
@include portrait-tablets {
|
|
224
|
-
@include iconStyles;
|
|
225
|
-
}
|
|
268
|
+
@include iconStyles;
|
|
226
269
|
}
|
|
227
270
|
|
|
228
271
|
&.--is-invalid,
|
|
229
272
|
&.--group-invalid {
|
|
273
|
+
&.--regular {
|
|
274
|
+
input {
|
|
275
|
+
& + label {
|
|
276
|
+
&:before {
|
|
277
|
+
border-color: var(--error-main);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
230
283
|
&.--tabs,
|
|
231
284
|
&.--group-invalid {
|
|
232
285
|
.e-radio__inner {
|
|
@@ -248,6 +301,10 @@
|
|
|
248
301
|
}
|
|
249
302
|
}
|
|
250
303
|
|
|
304
|
+
.radio-group__label {
|
|
305
|
+
color: var(--neutral-neutral-1);
|
|
306
|
+
}
|
|
307
|
+
|
|
251
308
|
.e-radio.radio--small.--tabs {
|
|
252
309
|
input + label {
|
|
253
310
|
font-size: 0.875rem;
|
|
@@ -259,3 +316,24 @@
|
|
|
259
316
|
margin-bottom: 0;
|
|
260
317
|
}
|
|
261
318
|
}
|
|
319
|
+
|
|
320
|
+
.e-radio.radio--narrow.--regular {
|
|
321
|
+
.e-radio__inner {
|
|
322
|
+
margin-top: 0.5rem;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.e-radio.--regular.radio--regular--bare {
|
|
327
|
+
.e-radio__inner {
|
|
328
|
+
display: inline-block;
|
|
329
|
+
margin-right: auto;
|
|
330
|
+
text-align: left;
|
|
331
|
+
width: auto;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.e-radio-label,
|
|
335
|
+
.e-radio-label__label {
|
|
336
|
+
display: block;
|
|
337
|
+
margin-bottom: 0.75rem;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
@@ -1,39 +1,35 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React, { type FC } from 'react'
|
|
2
2
|
|
|
3
|
-
import { RadioFormat, type RadioProps } from './RadioProps.types'
|
|
4
3
|
import IconImage from '../IconImage/IconImage'
|
|
4
|
+
import { type RadioProps } from './RadioProps.types'
|
|
5
5
|
// import './Radio.scss'
|
|
6
6
|
|
|
7
|
-
const Radio:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
if (!validate) value += ' --is-invalid'
|
|
25
|
-
if (!isValidGroup) value += ' --group-invalid'
|
|
26
|
-
return value
|
|
27
|
-
})
|
|
7
|
+
const Radio: FC<RadioProps> = (props) => {
|
|
8
|
+
const optionalClassNames = {
|
|
9
|
+
small: 'radio--small',
|
|
10
|
+
narrow: 'radio--narrow',
|
|
11
|
+
regularBare: 'radio--regular--bare'
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const additionalClassNames = Object.keys(optionalClassNames)
|
|
15
|
+
.filter((attribute) => props[attribute])
|
|
16
|
+
.map((key) => optionalClassNames[key])
|
|
17
|
+
.join(' ')
|
|
18
|
+
|
|
19
|
+
const classNames = `e-radio ${props.class} ${!props.validate ? '--is-invalid' : ''} ${
|
|
20
|
+
!props.isValidGroup ? '--group-invalid' : ''
|
|
21
|
+
} ${additionalClassNames}`
|
|
22
|
+
const TooltipObject = props.tooltip ? <p className='tooltip-form sans-serif --small'>{props.tooltip}</p> : ''
|
|
23
|
+
|
|
28
24
|
return (
|
|
29
|
-
<div className={
|
|
30
|
-
<label htmlFor={name} className='
|
|
31
|
-
{label}
|
|
25
|
+
<div className={classNames}>
|
|
26
|
+
<label htmlFor={props.name} className='radio-group__label'>
|
|
27
|
+
{props.label}
|
|
32
28
|
</label>
|
|
33
29
|
<div className={'e-radio__inner'}>
|
|
34
|
-
{items
|
|
30
|
+
{props.items?.map((radio) => {
|
|
35
31
|
return (
|
|
36
|
-
<div className={`radio-item-container ${radio.value === value ? 'active' : ''}`} key={radio.value}>
|
|
32
|
+
<div className={`radio-item-container ${radio.value === props.value ? 'active' : ''}`} key={radio.value}>
|
|
37
33
|
<label className='e-radio-label' key={radio.value}>
|
|
38
34
|
{radio.iconName !== undefined && radio.iconName !== '' && (
|
|
39
35
|
<IconImage givenClass='radio-icon' iconName={radio.iconName} />
|
|
@@ -41,27 +37,27 @@ const Radio: React.FC<RadioProps> = ({
|
|
|
41
37
|
<input
|
|
42
38
|
type='radio'
|
|
43
39
|
className='radio-item-input'
|
|
44
|
-
id={`${name}_${radio.value}`}
|
|
45
|
-
name={name}
|
|
46
|
-
onChange={onChange}
|
|
40
|
+
id={`${props.name}_${radio.value}`}
|
|
41
|
+
name={props.name}
|
|
42
|
+
onChange={props.onChange}
|
|
47
43
|
value={radio.value}
|
|
48
|
-
checked={radio.value === value}
|
|
49
|
-
disabled={disabled}
|
|
44
|
+
checked={radio.value === props.value}
|
|
45
|
+
disabled={props.disabled}
|
|
50
46
|
/>
|
|
51
47
|
<label
|
|
52
|
-
className='e-radio-label__label
|
|
53
|
-
htmlFor={`${name}_${radio.value}`}
|
|
54
|
-
data-qa={`${name}_${radio.value}`}
|
|
48
|
+
className='e-radio-label__label'
|
|
49
|
+
htmlFor={`${props.name}_${radio.value}`}
|
|
50
|
+
data-qa={`${props.name}_${radio.value}`}
|
|
55
51
|
>
|
|
56
52
|
{radio.label}
|
|
57
53
|
</label>
|
|
58
|
-
|
|
54
|
+
<div>{props.help}</div>
|
|
59
55
|
</label>
|
|
60
56
|
</div>
|
|
61
57
|
)
|
|
62
58
|
})}
|
|
63
59
|
</div>
|
|
64
|
-
{
|
|
60
|
+
{TooltipObject}
|
|
65
61
|
</div>
|
|
66
62
|
)
|
|
67
63
|
}
|
|
@@ -1,24 +1,18 @@
|
|
|
1
1
|
export interface RadioProps {
|
|
2
2
|
id?: string;
|
|
3
|
-
name
|
|
3
|
+
name?: string;
|
|
4
4
|
class?: string;
|
|
5
|
-
format?: RadioFormat;
|
|
6
5
|
value?: string;
|
|
7
6
|
tooltip?: string;
|
|
8
|
-
label
|
|
7
|
+
label?: string;
|
|
9
8
|
help?: string;
|
|
10
9
|
validate?: boolean;
|
|
11
10
|
isValidGroup?: boolean;
|
|
12
11
|
disabled?: boolean;
|
|
13
|
-
items
|
|
12
|
+
items?: {
|
|
14
13
|
value: string;
|
|
15
14
|
label: string;
|
|
16
15
|
iconName?: string;
|
|
17
16
|
}[];
|
|
18
17
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
19
18
|
}
|
|
20
|
-
export declare enum RadioFormat {
|
|
21
|
-
Default = "default",
|
|
22
|
-
Tabs = "--tabs",
|
|
23
|
-
Icons = "--icons"
|
|
24
|
-
}
|
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
export interface RadioProps {
|
|
2
2
|
id?: string
|
|
3
|
-
name
|
|
3
|
+
name?: string
|
|
4
4
|
class?: string
|
|
5
|
-
format?: RadioFormat
|
|
6
5
|
value?: string
|
|
7
6
|
tooltip?: string
|
|
8
|
-
label
|
|
7
|
+
label?: string
|
|
9
8
|
help?: string
|
|
10
9
|
validate?: boolean
|
|
11
10
|
isValidGroup?: boolean
|
|
12
11
|
disabled?: boolean
|
|
13
|
-
items
|
|
12
|
+
items?: { value: string; label: string; iconName?: string }[]
|
|
14
13
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void
|
|
15
14
|
}
|
|
16
|
-
|
|
17
|
-
export enum RadioFormat {
|
|
18
|
-
Default = 'default',
|
|
19
|
-
Tabs = '--tabs',
|
|
20
|
-
Icons = '--icons'
|
|
21
|
-
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Radio } from './Radio';
|
|
2
|
-
export
|
|
2
|
+
export { type RadioProps } from './RadioProps.types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Radio } from './Radio'
|
|
2
|
-
export
|
|
2
|
+
export { type RadioProps } from './RadioProps.types'
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { TagRatafiaItemStyled } from './TagRatafiaItem.styled';
|
|
3
|
-
export const TagRatafiaItem = ({ icon, description }) => {
|
|
4
|
-
|
|
3
|
+
export const TagRatafiaItem = ({ icon, description, type = 'ratafia' }) => {
|
|
4
|
+
const typeClasses = {
|
|
5
|
+
esignature: 'tag-esignature-item',
|
|
6
|
+
ratafia: 'tag-ratafia-item'
|
|
7
|
+
};
|
|
8
|
+
const styleClasses = typeClasses[type];
|
|
9
|
+
return (_jsxs(TagRatafiaItemStyled, { className: styleClasses, children: [icon !== null && _jsx("div", { className: `${styleClasses}__icon'`, children: icon }), _jsx("span", { className: `sans-serif --small ${styleClasses}__description`, itemProp: 'text', children: description })] }));
|
|
5
10
|
};
|
|
6
11
|
export default TagRatafiaItem;
|
|
@@ -9,6 +9,10 @@ export const TagRatafiaItemStyled = styled.div `
|
|
|
9
9
|
gap: 0.25rem;
|
|
10
10
|
padding: 0.25rem 0.5rem;
|
|
11
11
|
|
|
12
|
+
&.tag-esignature-item {
|
|
13
|
+
background: var(--primary-main-dark-1);
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
.tag-ratafia-item {
|
|
13
17
|
&__icon {
|
|
14
18
|
height: 16px;
|
|
@@ -19,4 +23,15 @@ export const TagRatafiaItemStyled = styled.div `
|
|
|
19
23
|
color: var(--primary-main-dark-2);
|
|
20
24
|
}
|
|
21
25
|
}
|
|
26
|
+
|
|
27
|
+
.tag-esignature-item {
|
|
28
|
+
&__icon {
|
|
29
|
+
height: 16px;
|
|
30
|
+
width: 16px;
|
|
31
|
+
}
|
|
32
|
+
&__description {
|
|
33
|
+
font-weight: 700;
|
|
34
|
+
color: var(--primary-main-light-6);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
22
37
|
`;
|
|
@@ -10,6 +10,10 @@ export const TagRatafiaItemStyled = styled.div`
|
|
|
10
10
|
gap: 0.25rem;
|
|
11
11
|
padding: 0.25rem 0.5rem;
|
|
12
12
|
|
|
13
|
+
&.tag-esignature-item {
|
|
14
|
+
background: var(--primary-main-dark-1);
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
.tag-ratafia-item {
|
|
14
18
|
&__icon {
|
|
15
19
|
height: 16px;
|
|
@@ -20,4 +24,15 @@ export const TagRatafiaItemStyled = styled.div`
|
|
|
20
24
|
color: var(--primary-main-dark-2);
|
|
21
25
|
}
|
|
22
26
|
}
|
|
27
|
+
|
|
28
|
+
.tag-esignature-item {
|
|
29
|
+
&__icon {
|
|
30
|
+
height: 16px;
|
|
31
|
+
width: 16px;
|
|
32
|
+
}
|
|
33
|
+
&__description {
|
|
34
|
+
font-weight: 700;
|
|
35
|
+
color: var(--primary-main-light-6);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
23
38
|
`
|
|
@@ -3,11 +3,18 @@ import React from 'react'
|
|
|
3
3
|
import { type TagRatafiaItemProps } from './TagRatafiaItemProps.types'
|
|
4
4
|
import { TagRatafiaItemStyled } from './TagRatafiaItem.styled'
|
|
5
5
|
|
|
6
|
-
export const TagRatafiaItem: React.FC<TagRatafiaItemProps> = ({ icon, description }) => {
|
|
6
|
+
export const TagRatafiaItem: React.FC<TagRatafiaItemProps> = ({ icon, description, type = 'ratafia' }) => {
|
|
7
|
+
const typeClasses = {
|
|
8
|
+
esignature: 'tag-esignature-item',
|
|
9
|
+
ratafia: 'tag-ratafia-item'
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const styleClasses = typeClasses[type]
|
|
13
|
+
|
|
7
14
|
return (
|
|
8
|
-
<TagRatafiaItemStyled className={
|
|
9
|
-
{icon !== null && <div className={'
|
|
10
|
-
<span className=
|
|
15
|
+
<TagRatafiaItemStyled className={styleClasses}>
|
|
16
|
+
{icon !== null && <div className={`${styleClasses}__icon'`}>{icon}</div>}
|
|
17
|
+
<span className={`sans-serif --small ${styleClasses}__description`} itemProp='text'>
|
|
11
18
|
{description}
|
|
12
19
|
</span>
|
|
13
20
|
</TagRatafiaItemStyled>
|
|
@@ -14,7 +14,7 @@ const themes = {
|
|
|
14
14
|
icon: _jsx(Done24pxOutline, {})
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
const Feedback = ({ theme = 'success', title, text, button, cancel, large
|
|
17
|
+
const Feedback = ({ theme = 'success', title, text, button, cancel, large, fluid, imgSrc = '', dataQa = '' }) => {
|
|
18
18
|
const currentTheme = themes[theme] ?? {};
|
|
19
19
|
if (Object.keys(currentTheme).length === 0 && imgSrc.length === 0) {
|
|
20
20
|
return null;
|