@solcre-org/core-ui 2.12.40 → 2.12.42

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.
@@ -54,6 +54,12 @@
54
54
  pointer-events: none;
55
55
  }
56
56
 
57
+ .c-link__underlined{
58
+ text-decoration: underline;
59
+ text-underline-offset: 0.2em;
60
+ }
61
+
62
+
57
63
 
58
64
  /* Context */
59
65
 
@@ -2,7 +2,7 @@
2
2
  /** COMPONENT: MODAL
3
3
  /* ******************************************** */
4
4
 
5
- .c-modal{
5
+ .c-modal {
6
6
  --_color: var(--color-neutral-700);
7
7
  --_bg: var(--color-neutral-100);
8
8
  --_fz: var(--fz-100);
@@ -13,8 +13,8 @@
13
13
  --_holder-br: var(--app-br, 8px);
14
14
  --_holder-min-w: 45rem;
15
15
  --_holder-max-w: 60rem;
16
- --_holder-w: clamp(var(--_holder-min-w),32vw,var(--_holder-max-w));
17
- --_overlay-bg: var(--app-popup-overlay, hsl(var(--color-alternative-800-hsl)/70%) );
16
+ --_holder-w: clamp(var(--_holder-min-w), 32vw, var(--_holder-max-w));
17
+ --_overlay-bg: var(--app-popup-overlay, hsl(var(--color-alternative-800-hsl)/70%));
18
18
  --_header-py: 1.6rem;
19
19
  --_bottom-gap-x: 1.5rem;
20
20
  --_bottom-py: 1.6rem;
@@ -31,7 +31,7 @@
31
31
  --_separator-line-color: var(--color-neutral-400);
32
32
 
33
33
  --label-mb: .7em;
34
-
34
+
35
35
  position: fixed;
36
36
  top: 0;
37
37
  left: 0;
@@ -45,7 +45,7 @@
45
45
  display: none;
46
46
  }
47
47
 
48
- .c-modal__overlay{
48
+ .c-modal__overlay {
49
49
  background: var(--_overlay-bg);
50
50
  opacity: var(--_overlay-op);
51
51
  position: absolute;
@@ -57,7 +57,7 @@
57
57
  /* opacity: 0; */
58
58
  }
59
59
 
60
- .c-modal__holder{
60
+ .c-modal__holder {
61
61
  position: absolute;
62
62
  right: var(--_ouside-padding);
63
63
  top: var(--_ouside-padding);
@@ -77,24 +77,26 @@
77
77
 
78
78
  .c-modal__header,
79
79
  .c-modal__body,
80
- .c-modal__bottom{
80
+ .c-modal__bottom {
81
81
  padding: var(--_holder-py) var(--_holder-px);
82
82
  }
83
83
 
84
84
  .c-modal__header {
85
85
  display: flex;
86
86
  padding-block: var(--_header-py);
87
- align-items: center;
87
+ align-items: flex-start;
88
88
  justify-content: space-between;
89
89
  border-bottom: var(--_separator-line-w) solid var(--_separator-line-color);
90
90
  height: fit-content;
91
91
  }
92
92
 
93
- .c-modal__close{
93
+ .c-modal__close {
94
94
  color: var(--_close-color);
95
+ border: none;
96
+ margin-right: -0.3em;
95
97
  }
96
98
 
97
- .c-modal__body{
99
+ .c-modal__body {
98
100
  position: relative;
99
101
  overflow: hidden;
100
102
  overflow-y: auto;
@@ -105,102 +107,108 @@ body:has(.c-modal.is-visible) {
105
107
  overflow: hidden;
106
108
  }
107
109
 
108
- /* .c-modal__body::before{
109
- content: "";
110
- position: absolute;
111
- bottom: 0;
112
- width: 100%;
113
- background: linear-gradient(360deg, hsl(var(--color-neutral-100-hsl) / 100%), hsl(var(--color-neutral-100-hsl) / 0%));
114
- height: 5rem;
115
- z-index: 1;
116
- } */
117
-
118
- .c-modal__body .c-form__group + .c-form__group{
110
+ .c-modal__body .c-form__group+.c-form__group {
119
111
  margin-top: var(--_group-separator);
120
112
  }
121
113
 
122
- .c-modal__body .c-form-input{
114
+ .c-modal__body .c-form-input {
123
115
  width: 100%;
124
116
  }
125
117
 
126
- .c-modal__bottom{
118
+ .c-modal__bottom {
127
119
  padding-block: var(--_bottom-py);
128
120
  border-top: var(--_separator-line-w) solid var(--_separator-line-color);
129
121
  height: fit-content;
130
122
  min-height: var(--_bottom-min-height);
131
123
  }
132
124
 
133
- .c-modal__title{
125
+ .c-modal__title {
134
126
  font-size: var(--_title-fz);
135
127
  font-weight: var(--_title-fw);
136
128
  color: var(--_title-color);
137
129
  }
138
130
 
139
- .c-mody__text{
140
- --text-color: var(--_color);
131
+ .c-modal__title small{
132
+ opacity: .6;
141
133
  }
142
134
 
143
- .c-modal__icon{
135
+ .c-modal__icon {
144
136
  font-size: var(--_icon-fz);
145
137
  color: var(--_title-color);
146
138
  }
147
139
 
148
- :root .c-modal__icon + .c-modal__title{
140
+ :root .c-modal__icon+.c-modal__title {
149
141
  margin-top: calc(var(--_sepatarion-y)*.8);
150
142
  }
151
143
 
152
- :root .c-modal__bottom{
144
+ :root .c-modal__bottom {
153
145
  display: flex;
154
146
  justify-content: space-between;
155
147
  gap: 0 var(--_bottom-gap-x);
156
148
  align-items: center;
157
149
  }
158
150
 
159
- .c-modal.is-visible{
151
+ .c-modal.is-visible {
160
152
  display: flex;
161
153
  }
162
154
 
163
- .c-modal.is-visible .c-modal__holder{
164
- animation: showmodal var(--_modal-animation-in) var(--easeOutCubic) forwards;
155
+ .c-modal.is-visible .c-modal__overlay {
156
+ animation: showOverlay var(--_modal-animation-in) var(--easeOutCubic) forwards;
165
157
  }
166
158
 
167
- .c-modal.is-visible .c-modal__overlay{
168
- animation: showOverlay var(--_modal-animation-in) var(--easeOutCubic) forwards;
159
+ .c-modal.is-closing .c-modal__overlay {
160
+ animation: hideOverlay var(--_modal-animation-out) ease-out forwards;
169
161
  }
170
162
 
163
+ @keyframes showmodal {
164
+ 0% {
165
+ opacity: 0;
166
+ transform: translate3d(5rem, 0, 0);
167
+ }
171
168
 
172
- .c-modal.is-closing .c-modal__holder{
173
- animation: hidemodal var(--_modal-animation-out) ease-out forwards;
169
+ 100% {
170
+ opacity: 1;
171
+ transform: translate3d(0, 0, 0);
172
+ }
174
173
  }
175
174
 
176
- .c-modal.is-closing .c-modal__overlay{
177
- animation: hideOverlay var(--_modal-animation-out) ease-out forwards;
175
+ @keyframes hidemodal {
176
+ 0% {
177
+ opacity: 1;
178
+ transform: translate3d(0, 0, 0);
179
+ }
180
+
181
+ 100% {
182
+ opacity: 0;
183
+ transform: translate3d(5rem, 0, 0);
184
+ }
178
185
  }
179
186
 
180
- @keyframes showmodal {
187
+ @keyframes showmodalMobile {
181
188
  0% {
182
189
  opacity: 0;
183
- transform: translate3d(5rem,0,0);
190
+ transform: translate3d(0, 100%, 0);
184
191
  }
185
192
 
186
193
  100% {
187
194
  opacity: 1;
188
- transform: translate3d(0,0,0);
195
+ transform: translate3d(0, 0, 0);
189
196
  }
190
197
  }
191
198
 
192
- @keyframes hidemodal {
199
+ @keyframes hidemodalMobile {
193
200
  0% {
194
201
  opacity: 1;
195
- transform: translate3d(0,0,0);
202
+ transform: translate3d(0, 0, 0);
196
203
  }
197
204
 
198
205
  100% {
199
206
  opacity: 0;
200
- transform: translate3d(5rem,0,0);
207
+ transform: translate3d(0, 100%, 0);
201
208
  }
202
209
  }
203
210
 
211
+
204
212
  @keyframes showOverlay {
205
213
  0% {
206
214
  opacity: 0;
@@ -224,7 +232,7 @@ body:has(.c-modal.is-visible) {
224
232
 
225
233
  /* modal--alt */
226
234
 
227
- .c-modal--alt .c-modal__holder{
235
+ .c-modal--alt .c-modal__holder {
228
236
  right: 0;
229
237
  top: 0;
230
238
  height: 100%;
@@ -235,33 +243,72 @@ body:has(.c-modal.is-visible) {
235
243
 
236
244
  /* ********************** MEDIA HOVER ********************** */
237
245
 
238
- @media (hover: hover) {
246
+ @media (hover: hover) {
239
247
 
240
- .c-modal__close:is(:hover,:focus-visible){
248
+ .c-modal__close:is(:hover, :focus-visible) {
241
249
  color: var(--color-hover);
242
250
  transition: color var(--trs-duration-700) ease-out;
243
251
  }
244
252
 
245
253
  }
246
254
 
255
+ /* ********************** ONLY MOBILE ********************** */
247
256
 
248
- /* ********************** MOBILE & TABLET ********************** */
249
-
250
- @media (max-width: 61.1875rem) /* up to 979px */ {
257
+ @media (max-width: 47.9375rem)
258
+ /* up to 767px */
259
+ {
251
260
 
252
- .c-modal{
253
- --_holder-px: var(--wrapper-x);
261
+ .c-modal {
262
+ --_holder-px: calc(var(--wrapper-x)*1.2);
254
263
  --_holder-w: calc(100% - var(--_ouside-padding)*2);
255
- --_header-py: 1.2rem;
256
-
257
- }
264
+ --_header-py: 1.8rem;
265
+
266
+ }
267
+
268
+ .c-modal.is-visible .c-modal__holder {
269
+ animation: showmodalMobile var(--_modal-animation-in) var(--easeOutCubic) forwards;
270
+ }
271
+
272
+ .c-modal.is-closing .c-modal__holder {
273
+ animation: hidemodalMobile var(--_modal-animation-out) ease-out forwards;
274
+ }
275
+
276
+ .c-modal__holder {
277
+ height: auto;
278
+ top: auto;
279
+ left: 0;
280
+ right: 0;
281
+ bottom: 0;
282
+ width: 100%;
283
+ max-height: 100vh;
284
+ max-height: 100svh;
285
+ border-radius: 0;
286
+ transform: translate3d(0, 100%, 0);
287
+ }
288
+
289
+ .c-modal__header,
290
+ .c-modal__bottom {
291
+ border: none;
292
+ }
293
+
294
+ .c-modal__body{
295
+ padding-top: 0;
296
+ }
258
297
 
259
298
  }
260
299
 
261
300
 
301
+ /* ********************** MOBILE & TABLET ********************** */
302
+
303
+ @media (max-width: 61.1875rem)
304
+ /* up to 979px */
305
+ {}
306
+
307
+
262
308
  /* ********************** SHORT MOBILE ********************** */
263
309
 
264
- @media (max-width: 22.4375rem) { /* 359px */
310
+ @media (max-width: 22.4375rem) {
311
+ /* 359px */
265
312
  }
266
313
 
267
314
 
@@ -270,16 +317,18 @@ body:has(.c-modal.is-visible) {
270
317
 
271
318
  /* ********************** TALL MOBILE PORTRAIT ********************** */
272
319
 
273
- @media (max-width: 47.9375rem) and (min-height: 45.625rem) { /* 767px, 730px */
320
+ @media (max-width: 47.9375rem) and (min-height: 45.625rem) {
321
+ /* 767px, 730px */
274
322
  }
275
323
 
276
-
324
+
277
325
 
278
326
 
279
327
 
280
328
  /* ********************** MOBILE LANDSCAPE ********************** */
281
329
 
282
- @media (orientation: landscape) and (min-width: 31.25rem) and (max-width: 47.9375rem) { /* 500px, 767px */
330
+ @media (orientation: landscape) and (min-width: 31.25rem) and (max-width: 47.9375rem) {
331
+ /* 500px, 767px */
283
332
  }
284
333
 
285
334
 
@@ -288,17 +337,33 @@ body:has(.c-modal.is-visible) {
288
337
 
289
338
  /* ********************** de Mobile a TABLET ********************** */
290
339
 
291
- @media (min-width: 48rem) { /* 768px */
292
- }
293
- @media (min-width: 48rem) and (orientation: portrait) {
340
+ @media (min-width: 48rem) {
341
+ /* 768px */
342
+
343
+
344
+ .c-modal.is-visible .c-modal__holder {
345
+ animation: showmodal var(--_modal-animation-in) var(--easeOutCubic) forwards;
346
+ }
347
+
348
+ .c-modal.is-closing .c-modal__holder {
349
+ animation: hidemodal var(--_modal-animation-out) ease-out forwards;
350
+ }
351
+
352
+ .c-modal__close {
353
+ margin-right: -0.8em;
354
+ }
294
355
  }
295
356
 
357
+ @media (min-width: 48rem) and (orientation: portrait) {}
358
+
296
359
 
297
360
 
298
361
 
299
362
  /* ********************** de Tablet a DESKTOP ********************** */
300
363
 
301
- @media (min-width: 61.25rem) { /* 980px */
364
+ @media (min-width: 61.25rem) {
365
+ /* 980px */
366
+
302
367
  }
303
368
 
304
369
 
@@ -306,9 +371,12 @@ body:has(.c-modal.is-visible) {
306
371
 
307
372
  /* ********************** de Desktop a DESKTOP 2 ********************** */
308
373
 
309
- @media (min-width: 75rem) { /* 1200px */
374
+ @media (min-width: 75rem) {
375
+ /* 1200px */
310
376
  }
311
- @media (min-width: 75rem) and (min-height: 45rem) { /* 1200, 720 */
377
+
378
+ @media (min-width: 75rem) and (min-height: 45rem) {
379
+ /* 1200, 720 */
312
380
  }
313
381
 
314
382
 
@@ -316,13 +384,16 @@ body:has(.c-modal.is-visible) {
316
384
 
317
385
  /* ********************** de Desktop 2 a HD ********************** */
318
386
 
319
- @media (min-width: 87.5rem) { /* 1400px */
387
+ @media (min-width: 87.5rem) {
388
+ /* 1400px */
320
389
 
321
- .c-modal{
390
+ .c-modal {
322
391
  --_ouside-padding: 1.6rem;
323
392
  }
324
393
  }
325
- @media (min-width: 87.5rem) and (min-height: 49.375rem) { /* 1400px, 790px */
394
+
395
+ @media (min-width: 87.5rem) and (min-height: 49.375rem) {
396
+ /* 1400px, 790px */
326
397
  }
327
398
 
328
399
 
@@ -330,15 +401,22 @@ body:has(.c-modal.is-visible) {
330
401
 
331
402
  /* ********************** de Hd a FULL HD ********************** */
332
403
 
333
- @media (min-width: 100rem) { /* 1600px */
404
+ @media (min-width: 100rem) {
405
+ /* 1600px */
334
406
  }
335
407
 
336
- @media (min-width: 100rem) and (min-height: 49.375rem) { /* 1600px, 790px */
408
+ @media (min-width: 100rem) and (min-height: 49.375rem) {
409
+ /* 1600px, 790px */
337
410
  }
338
- @media (min-width: 100rem) and (min-height: 56.25rem) { /* 1600px, 900px */
411
+
412
+ @media (min-width: 100rem) and (min-height: 56.25rem) {
413
+ /* 1600px, 900px */
339
414
  }
340
415
 
341
- @media (min-width: 112.5rem) { /* 1800px */
416
+ @media (min-width: 112.5rem) {
417
+ /* 1800px */
342
418
  }
343
- @media (min-width: 112.5rem) and (min-height: 56.25rem) { /* 1800px, 900px */
419
+
420
+ @media (min-width: 112.5rem) and (min-height: 56.25rem) {
421
+ /* 1800px, 900px */
344
422
  }
@@ -50,6 +50,16 @@
50
50
  pointer-events: none;
51
51
  opacity: .4;
52
52
  }
53
+ /* SOLCRE: Estilos de error en TABS */
54
+ .c-tabs__link.has-error{
55
+ color: var(--color-context-error);
56
+ border-color: var(--color-context-error);
57
+ }
58
+
59
+ .c-tabs__link.has-error.is-active{
60
+ color: var(--color-context-error);
61
+ box-shadow: 0 var(--_line-w) 0 0 var(--color-context-error);
62
+ }
53
63
 
54
64
  .c-tabs__link [class*="icon-"]{
55
65
  font-size: 1.1em;
@@ -109,7 +109,15 @@
109
109
  "noResults": "No se encontraron resultados",
110
110
  "typeToSearch": "Escribe para buscar"
111
111
  }
112
- }
112
+ },
113
+ "unsavedChanges": {
114
+ "title": "Unsaved changes",
115
+ "message": "You have unsaved changes. Are you sure you want to close the modal?",
116
+ "confirm": "Close without saving",
117
+ "cancel": "Continue editing"
118
+ },
119
+ "validationErrors": "Please fix the validation errors before saving.",
120
+ "stepErrors": "Please fix the validation errors before proceeding to the next step."
113
121
  },
114
122
  "dashboard": {
115
123
  "title": "Panel de Control",
@@ -101,7 +101,7 @@
101
101
  "save": "Guardar",
102
102
  "close": "Cerrar",
103
103
  "noData": "No se encontraron datos...",
104
- "createTitle": "Crear",
104
+ "createTitle": "Agregar",
105
105
  "next": "Siguiente",
106
106
  "previous": "Anterior",
107
107
  "field": {
@@ -115,7 +115,9 @@
115
115
  "message": "Tienes cambios sin guardar. ¿Estás seguro de que quieres cerrar el modal?",
116
116
  "confirm": "Cerrar sin guardar",
117
117
  "cancel": "Continuar editando"
118
- }
118
+ },
119
+ "validationErrors": "Por favor, corrige los errores de validación antes de guardar.",
120
+ "stepErrors": "Por favor, corrige los errores de validación antes de continuar al siguiente paso."
119
121
  },
120
122
  "dashboard": {
121
123
  "title": "Panel de Control",