@alfalab/core-components-modal 2.0.5 → 3.0.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/CHANGELOG.md +67 -0
- package/dist/Component.desktop.js +4 -6
- package/dist/Component.mobile.js +4 -6
- package/dist/Component.responsive.js +2 -2
- package/dist/components/closer/Component.js +2 -2
- package/dist/components/closer/index.css +8 -8
- package/dist/components/content/Component.desktop.js +2 -2
- package/dist/components/content/Component.mobile.js +2 -2
- package/dist/components/content/desktop.css +37 -12
- package/dist/components/content/mobile.css +32 -7
- package/dist/components/footer/Component.desktop.js +2 -2
- package/dist/components/footer/Component.js +1 -1
- package/dist/components/footer/Component.mobile.js +2 -2
- package/dist/components/footer/desktop.css +37 -12
- package/dist/components/footer/layout.css +25 -25
- package/dist/components/footer/mobile.css +32 -7
- package/dist/components/header/Component.desktop.js +2 -2
- package/dist/components/header/Component.js +1 -1
- package/dist/components/header/Component.mobile.js +2 -2
- package/dist/components/header/desktop.css +41 -16
- package/dist/components/header/mobile.css +36 -11
- package/dist/cssm/Component.desktop.js +1 -3
- package/dist/cssm/Component.mobile.js +1 -3
- package/dist/desktop.css +8 -8
- package/dist/desktop.js +2 -2
- package/dist/esm/Component.desktop.js +4 -6
- package/dist/esm/Component.mobile.js +4 -6
- package/dist/esm/Component.responsive.js +2 -2
- package/dist/esm/components/closer/Component.js +2 -2
- package/dist/esm/components/closer/index.css +8 -8
- package/dist/esm/components/content/Component.desktop.js +2 -2
- package/dist/esm/components/content/Component.mobile.js +2 -2
- package/dist/esm/components/content/desktop.css +37 -12
- package/dist/esm/components/content/mobile.css +32 -7
- package/dist/esm/components/footer/Component.desktop.js +2 -2
- package/dist/esm/components/footer/Component.js +1 -1
- package/dist/esm/components/footer/Component.mobile.js +2 -2
- package/dist/esm/components/footer/desktop.css +37 -12
- package/dist/esm/components/footer/layout.css +25 -25
- package/dist/esm/components/footer/mobile.css +32 -7
- package/dist/esm/components/header/Component.desktop.js +2 -2
- package/dist/esm/components/header/Component.js +1 -1
- package/dist/esm/components/header/Component.mobile.js +2 -2
- package/dist/esm/components/header/desktop.css +41 -16
- package/dist/esm/components/header/mobile.css +36 -11
- package/dist/esm/desktop.css +8 -8
- package/dist/esm/desktop.js +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/mobile.css +2 -2
- package/dist/esm/mobile.js +2 -2
- package/dist/esm/responsive.js +2 -2
- package/dist/esm/transitions.css +8 -8
- package/dist/esm/transitions.module-83319c83.js +4 -0
- package/dist/esm/{tslib.es6-cdea4155.d.ts → tslib.es6-95890331.d.ts} +0 -0
- package/dist/esm/{tslib.es6-cdea4155.js → tslib.es6-95890331.js} +0 -0
- package/dist/index.js +2 -2
- package/dist/mobile.css +2 -2
- package/dist/mobile.js +2 -2
- package/dist/modern/Component.desktop.js +3 -2
- package/dist/modern/Component.mobile.js +3 -2
- package/dist/modern/Component.responsive.js +1 -1
- package/dist/modern/components/closer/Component.js +1 -1
- package/dist/modern/components/closer/index.css +8 -8
- package/dist/modern/components/content/Component.desktop.js +1 -1
- package/dist/modern/components/content/Component.mobile.js +1 -1
- package/dist/modern/components/content/desktop.css +37 -12
- package/dist/modern/components/content/mobile.css +32 -7
- package/dist/modern/components/footer/Component.desktop.js +1 -1
- package/dist/modern/components/footer/Component.js +1 -1
- package/dist/modern/components/footer/Component.mobile.js +1 -1
- package/dist/modern/components/footer/desktop.css +37 -12
- package/dist/modern/components/footer/layout.css +25 -25
- package/dist/modern/components/footer/mobile.css +32 -7
- package/dist/modern/components/header/Component.desktop.js +1 -1
- package/dist/modern/components/header/Component.mobile.js +1 -1
- package/dist/modern/components/header/desktop.css +41 -16
- package/dist/modern/components/header/mobile.css +36 -11
- package/dist/modern/desktop.css +8 -8
- package/dist/modern/desktop.js +1 -1
- package/dist/modern/index.js +1 -1
- package/dist/modern/mobile.css +2 -2
- package/dist/modern/mobile.js +1 -1
- package/dist/modern/responsive.js +1 -1
- package/dist/modern/transitions.css +8 -8
- package/dist/modern/transitions.module-83319c83.js +4 -0
- package/dist/responsive.js +2 -2
- package/dist/transitions.css +8 -8
- package/dist/transitions.module-4040e9db.js +6 -0
- package/dist/{tslib.es6-c4e6739b.d.ts → tslib.es6-e5662dff.d.ts} +0 -0
- package/dist/{tslib.es6-c4e6739b.js → tslib.es6-e5662dff.js} +0 -0
- package/package.json +4 -4
- package/dist/esm/transitions.module-68f2aaa9.js +0 -4
- package/dist/modern/transitions.module-68f2aaa9.js +0 -4
- package/dist/transitions.module-0bd5d941.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1siai */
|
|
2
2
|
:root {
|
|
3
3
|
}:root {
|
|
4
4
|
}:root {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
/* scroll */
|
|
36
36
|
--modal-header-highlight-box-shadow: var(--shadow-s);
|
|
37
37
|
--modal-header-highlight-background: var(--color-light-bg-primary);
|
|
38
|
-
}.
|
|
38
|
+
}.modal__header_19ym3 {
|
|
39
39
|
width: 100%;
|
|
40
40
|
box-sizing: border-box;
|
|
41
41
|
display: flex;
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
justify-content: flex-end;
|
|
44
44
|
transition: box-shadow 0.2s ease, background 0.2s ease;
|
|
45
45
|
background: var(--modal-header-background);
|
|
46
|
-
}.
|
|
46
|
+
}.modal__highlighted_19ym3 {
|
|
47
47
|
background: var(--modal-header-highlight-background);
|
|
48
48
|
box-shadow: var(--modal-header-highlight-box-shadow);
|
|
49
|
-
}.
|
|
49
|
+
}.modal__sticky_19ym3 {
|
|
50
50
|
position: sticky;
|
|
51
|
-
}.
|
|
51
|
+
}.modal__content_19ym3 {
|
|
52
52
|
font-size: 24px;
|
|
53
53
|
line-height: 32px;
|
|
54
54
|
font-weight: 500;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
font-family: var(--font-family-styrene);
|
|
57
57
|
flex-grow: 1;
|
|
58
58
|
margin: var(--gap-xs) var(--gap-m) var(--gap-xs) 0;
|
|
59
|
-
}.
|
|
59
|
+
}.modal__title_19ym3 {
|
|
60
60
|
word-break: break-word;
|
|
61
61
|
}
|
|
62
62
|
:root {
|
|
@@ -209,6 +209,8 @@
|
|
|
209
209
|
--color-dark-border-secondary-inverted: #6d7986;
|
|
210
210
|
--color-dark-border-tertiary: #233549;
|
|
211
211
|
--color-dark-border-tertiary-inverted: #b6bcc3;
|
|
212
|
+
--color-dark-border-underline: #6d7986;
|
|
213
|
+
--color-dark-border-underline-inverted: #b6bcc3;
|
|
212
214
|
--color-dark-graphic-accent: #ef3124;
|
|
213
215
|
--color-dark-graphic-attention: #e58933;
|
|
214
216
|
--color-dark-graphic-link: #007aff;
|
|
@@ -221,6 +223,7 @@
|
|
|
221
223
|
--color-dark-graphic-secondary-inverted: #233549;
|
|
222
224
|
--color-dark-graphic-tertiary: #6d7986;
|
|
223
225
|
--color-dark-specialbg-component: #485767;
|
|
226
|
+
--color-dark-specialbg-component-inverted: rgba(11, 31, 53, 0.07);
|
|
224
227
|
--color-dark-specialbg-nulled: rgba(11, 31, 53, 0);
|
|
225
228
|
--color-dark-specialbg-primary-grouped: #0b1f35;
|
|
226
229
|
--color-dark-specialbg-secondary-grouped: #233549;
|
|
@@ -265,6 +268,8 @@
|
|
|
265
268
|
--color-light-border-secondary-inverted: #b6bcc3;
|
|
266
269
|
--color-light-border-tertiary: #f3f4f5;
|
|
267
270
|
--color-light-border-tertiary-inverted: #6d7986;
|
|
271
|
+
--color-light-border-underline: #b6bcc3;
|
|
272
|
+
--color-light-border-underline-inverted: #6d7986;
|
|
268
273
|
--color-light-graphic-accent: #ef3124;
|
|
269
274
|
--color-light-graphic-attention: #e58933;
|
|
270
275
|
--color-light-graphic-link: #007aff;
|
|
@@ -329,12 +334,15 @@
|
|
|
329
334
|
--color-dark-bg-neutral-tint-10: rgb(90, 104, 118);
|
|
330
335
|
--color-dark-bg-neutral-tint-15: rgb(99, 112, 126);
|
|
331
336
|
--color-dark-bg-neutral-tint-30: rgb(127, 137, 149);
|
|
337
|
+
--color-dark-bg-neutral-shade-15: rgb(61, 74, 88);
|
|
338
|
+
--color-dark-bg-primary-alpha-8: rgba(11, 31, 53, 0.08);
|
|
332
339
|
--color-dark-bg-primary-inverted-alpha-3: rgba(255, 255, 255, 0.03);
|
|
333
340
|
--color-dark-bg-primary-inverted-alpha-7: rgba(255, 255, 255, 0.07);
|
|
334
341
|
--color-dark-bg-primary-inverted-alpha-10: rgba(255, 255, 255, 0.1);
|
|
335
342
|
--color-dark-bg-primary-inverted-alpha-15: rgba(255, 255, 255, 0.15);
|
|
336
343
|
--color-dark-bg-primary-inverted-alpha-20: rgba(255, 255, 255, 0.2);
|
|
337
344
|
--color-dark-bg-primary-inverted-alpha-40: rgba(255, 255, 255, 0.4);
|
|
345
|
+
--color-dark-bg-primary-inverted-alpha-50: rgba(255, 255, 255, 0.5);
|
|
338
346
|
--color-dark-bg-secondary-inverted-alpha-7: rgba(182, 188, 195, 0.07);
|
|
339
347
|
--color-dark-bg-secondary-inverted-alpha-15: rgba(182, 188, 195, 0.15);
|
|
340
348
|
--color-dark-bg-tertiary-tint-7: rgb(74, 89, 104);
|
|
@@ -360,6 +368,7 @@
|
|
|
360
368
|
--color-dark-specialbg-component-tint-7: rgb(85, 99, 114);
|
|
361
369
|
--color-dark-specialbg-component-tint-10: rgb(90, 104, 118);
|
|
362
370
|
--color-dark-specialbg-component-tint-30: rgb(127, 137, 149);
|
|
371
|
+
--color-dark-specialbg-component-inverted-shade-15: rgba(9, 26, 45, 0.2095);
|
|
363
372
|
--color-dark-text-link-shade-30: rgb(0, 85, 179);
|
|
364
373
|
--color-dark-text-link-shade-50: rgb(0, 61, 128);
|
|
365
374
|
--color-dark-text-link-tint-20: rgb(51, 149, 255);
|
|
@@ -369,10 +378,15 @@
|
|
|
369
378
|
--color-dark-text-primary-shade-50: rgb(128, 128, 128);
|
|
370
379
|
--color-dark-text-primary-tint-20: rgb(255, 255, 255);
|
|
371
380
|
--color-dark-text-primary-tint-40: rgb(255, 255, 255);
|
|
381
|
+
--color-dark-text-primary-inverted-alpha-40: rgba(11, 31, 53, 0.4);
|
|
382
|
+
--color-dark-text-primary-inverted-shade-30: rgb(8, 22, 37);
|
|
383
|
+
--color-dark-text-primary-inverted-shade-50: rgb(6, 16, 26);
|
|
372
384
|
--color-dark-text-secondary-shade-30: rgb(127, 132, 136);
|
|
373
385
|
--color-dark-text-secondary-shade-50: rgb(91, 94, 98);
|
|
374
386
|
--color-dark-text-secondary-tint-20: rgb(197, 201, 207);
|
|
375
387
|
--color-dark-text-secondary-tint-40: rgb(211, 215, 219);
|
|
388
|
+
--color-dark-text-secondary-inverted-shade-30: rgb(76, 85, 94);
|
|
389
|
+
--color-dark-text-secondary-inverted-shade-50: rgb(55, 61, 67);
|
|
376
390
|
--color-light-bg-accent-alpha-30: rgba(239, 49, 36, 0.3);
|
|
377
391
|
--color-light-bg-accent-shade-7: rgb(222, 46, 33);
|
|
378
392
|
--color-light-bg-accent-shade-10: rgb(215, 44, 32);
|
|
@@ -383,12 +397,15 @@
|
|
|
383
397
|
--color-light-bg-neutral-shade-10: rgb(197, 200, 203);
|
|
384
398
|
--color-light-bg-neutral-shade-15: rgb(186, 189, 191);
|
|
385
399
|
--color-light-bg-neutral-shade-30: rgb(153, 155, 157);
|
|
400
|
+
--color-light-bg-neutral-tint-15: rgb(224, 227, 230);
|
|
401
|
+
--color-light-bg-primary-alpha-8: rgba(255, 255, 255, 0.08);
|
|
386
402
|
--color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
|
|
387
403
|
--color-light-bg-primary-inverted-alpha-7: rgba(11, 31, 53, 0.07);
|
|
388
404
|
--color-light-bg-primary-inverted-alpha-10: rgba(11, 31, 53, 0.1);
|
|
389
405
|
--color-light-bg-primary-inverted-alpha-15: rgba(11, 31, 53, 0.15);
|
|
390
406
|
--color-light-bg-primary-inverted-alpha-20: rgba(11, 31, 53, 0.2);
|
|
391
407
|
--color-light-bg-primary-inverted-alpha-40: rgba(11, 31, 53, 0.4);
|
|
408
|
+
--color-light-bg-primary-inverted-alpha-50: rgba(11, 31, 53, 0.5);
|
|
392
409
|
--color-light-bg-secondary-inverted-alpha-7: rgba(35, 53, 73, 0.07);
|
|
393
410
|
--color-light-bg-secondary-inverted-alpha-15: rgba(35, 53, 73, 0.15);
|
|
394
411
|
--color-light-bg-tertiary-shade-7: rgb(215, 217, 219);
|
|
@@ -414,6 +431,7 @@
|
|
|
414
431
|
--color-light-specialbg-component-shade-7: rgba(10, 29, 49, 0.1351);
|
|
415
432
|
--color-light-specialbg-component-shade-10: rgba(10, 28, 48, 0.163);
|
|
416
433
|
--color-light-specialbg-component-shade-30: rgba(8, 22, 37, 0.349);
|
|
434
|
+
--color-light-specialbg-component-inverted-tint-15: rgba(255, 255, 255, 0.2775);
|
|
417
435
|
--color-light-text-link-tint-30: rgb(77, 162, 255);
|
|
418
436
|
--color-light-text-link-tint-50: rgb(128, 189, 255);
|
|
419
437
|
--color-light-text-link-shade-20: rgb(0, 98, 204);
|
|
@@ -423,10 +441,17 @@
|
|
|
423
441
|
--color-light-text-primary-tint-50: rgb(133, 143, 154);
|
|
424
442
|
--color-light-text-primary-shade-20: rgb(9, 25, 42);
|
|
425
443
|
--color-light-text-primary-shade-40: rgb(7, 19, 32);
|
|
444
|
+
--color-light-text-primary-inverted-alpha-40: rgba(255, 255, 255, 0.4);
|
|
445
|
+
--color-light-text-primary-inverted-tint-30: rgb(255, 255, 255);
|
|
446
|
+
--color-light-text-primary-inverted-tint-50: rgb(255, 255, 255);
|
|
426
447
|
--color-light-text-secondary-tint-30: rgb(135, 145, 156);
|
|
427
448
|
--color-light-text-secondary-tint-50: rgb(170, 177, 185);
|
|
428
449
|
--color-light-text-secondary-shade-20: rgb(67, 78, 91);
|
|
429
450
|
--color-light-text-secondary-shade-40: rgb(50, 59, 68);
|
|
451
|
+
--color-light-text-secondary-inverted-tint-30: rgb(204, 208, 213);
|
|
452
|
+
--color-light-text-secondary-inverted-tint-50: rgb(219, 222, 225);
|
|
453
|
+
--color-static-bg-primary-dark-alpha-10: rgba(0, 0, 0, 0.1);
|
|
454
|
+
--color-static-bg-primary-dark-alpha-20: rgba(0, 0, 0, 0.2);
|
|
430
455
|
}
|
|
431
456
|
:root {
|
|
432
457
|
--color-dynamic-primary-dark: rgba(0, 0, 0, 0.8);
|
|
@@ -589,7 +614,7 @@
|
|
|
589
614
|
--modal-footer-highlight-box-shadow: var(--shadow-s-up);
|
|
590
615
|
--modal-footer-highlight-background: var(--color-light-bg-primary);
|
|
591
616
|
}
|
|
592
|
-
.
|
|
617
|
+
.modal__header_edvqs {
|
|
593
618
|
|
|
594
619
|
text-align: center;
|
|
595
620
|
flex-direction: row-reverse;
|
|
@@ -597,13 +622,13 @@
|
|
|
597
622
|
padding-right: var(--gap-4xl);
|
|
598
623
|
padding-left: 0;
|
|
599
624
|
}
|
|
600
|
-
.
|
|
625
|
+
.modal__sticky_edvqs {
|
|
601
626
|
|
|
602
627
|
top: 0;
|
|
603
628
|
}
|
|
604
|
-
.
|
|
629
|
+
.modal__highlighted_edvqs {
|
|
605
630
|
}
|
|
606
|
-
.
|
|
631
|
+
.modal__content_edvqs {
|
|
607
632
|
}
|
|
608
|
-
.
|
|
633
|
+
.modal__title_edvqs {
|
|
609
634
|
}
|
|
@@ -50,9 +50,7 @@ var ModalDesktopComponent = React.forwardRef(function (_a, ref) {
|
|
|
50
50
|
}, [fixedPosition, transitionProps]);
|
|
51
51
|
return (React__default['default'].createElement(coreComponentsBaseModal.BaseModal, tslib_es6.__assign({}, restProps, { ref: mergeRefs__default['default']([ref, modalRef]), wrapperClassName: cn__default['default'](styles__default['default'].wrapper, wrapperClassName, (_b = {},
|
|
52
52
|
_b[styles__default['default'].fullscreen] = fullscreen,
|
|
53
|
-
_b)), className: cn__default['default'](styles__default['default'].component, className, !fullscreen && styles__default['default'][size]), backdropProps: {
|
|
54
|
-
invisible: fullscreen,
|
|
55
|
-
}, transitionProps: tslib_es6.__assign(tslib_es6.__assign({ classNames: transitions__default['default'] }, transitionProps), { onEntered: handleEntered }) }), React__default['default'].Children.map(children, function (child) {
|
|
53
|
+
_b)), className: cn__default['default'](styles__default['default'].component, className, !fullscreen && styles__default['default'][size]), backdropProps: tslib_es6.__assign(tslib_es6.__assign({}, restProps.backdropProps), { invisible: fullscreen }), transitionProps: tslib_es6.__assign(tslib_es6.__assign({ classNames: transitions__default['default'] }, transitionProps), { onEntered: handleEntered }) }), React__default['default'].Children.map(children, function (child) {
|
|
56
54
|
return React.isValidElement(child)
|
|
57
55
|
? React.cloneElement(child, { size: child.props.size || size, fullscreen: fullscreen })
|
|
58
56
|
: child;
|
|
@@ -37,9 +37,7 @@ var ModalMobileComponent = React.forwardRef(function (_a, ref) {
|
|
|
37
37
|
['s', '(max-width: 375px)'],
|
|
38
38
|
['m', '(min-width: 376px)'],
|
|
39
39
|
], 's')[0];
|
|
40
|
-
return (React__default['default'].createElement(coreComponentsBaseModal.BaseModal, tslib_es6.__assign({}, restProps, { ref: ref, transitionProps: tslib_es6.__assign({ classNames: transitions__default['default'] }, restProps.transitionProps), className: cn__default['default'](className, styles__default['default'].component), backdropProps: {
|
|
41
|
-
invisible: true,
|
|
42
|
-
} }), React__default['default'].Children.map(children, function (child) {
|
|
40
|
+
return (React__default['default'].createElement(coreComponentsBaseModal.BaseModal, tslib_es6.__assign({}, restProps, { ref: ref, transitionProps: tslib_es6.__assign({ classNames: transitions__default['default'] }, restProps.transitionProps), className: cn__default['default'](className, styles__default['default'].component), backdropProps: tslib_es6.__assign(tslib_es6.__assign({}, restProps.backdropProps), { invisible: true }) }), React__default['default'].Children.map(children, function (child) {
|
|
43
41
|
return React.isValidElement(child)
|
|
44
42
|
? React.cloneElement(child, { size: child.props.size || size, fullscreen: true })
|
|
45
43
|
: child;
|
package/dist/desktop.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1isac */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -30,29 +30,29 @@
|
|
|
30
30
|
|
|
31
31
|
/* scroll */
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.modal__wrapper_gl44z {
|
|
34
34
|
padding-top: var(--modal-vertical-padding);
|
|
35
35
|
padding-bottom: var(--modal-vertical-padding);
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.modal__component_gl44z {
|
|
38
38
|
width: 100%;
|
|
39
39
|
max-width: 100%;
|
|
40
40
|
border-radius: var(--modal-border-radius);
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.modal__fullscreen_gl44z {
|
|
43
43
|
padding-top: 0;
|
|
44
44
|
padding-bottom: 0
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.modal__fullscreen_gl44z .modal__component_gl44z {
|
|
47
47
|
flex: 1;
|
|
48
48
|
border-radius: 0;
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.modal__s_gl44z {
|
|
51
51
|
width: var(--modal-s-width);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.modal__m_gl44z {
|
|
54
54
|
width: var(--modal-m-width);
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.modal__l_gl44z {
|
|
57
57
|
width: var(--modal-l-width);
|
|
58
58
|
}
|
package/dist/desktop.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-e5662dff.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/core-components-base-modal');
|
|
@@ -17,7 +17,7 @@ require('./components/content/Component.desktop.js');
|
|
|
17
17
|
require('./components/footer/Component.js');
|
|
18
18
|
require('./components/footer/Component.desktop.js');
|
|
19
19
|
var Component_desktop = require('./Component.desktop.js');
|
|
20
|
-
require('./transitions.module-
|
|
20
|
+
require('./transitions.module-4040e9db.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-95890331.js';
|
|
2
2
|
import React, { forwardRef, useRef, useCallback, isValidElement, cloneElement } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { BaseModal } from '@alfalab/core-components-base-modal/dist/esm';
|
|
@@ -12,9 +12,9 @@ import './components/content/Component.js';
|
|
|
12
12
|
import { ContentDesktop } from './components/content/Component.desktop.js';
|
|
13
13
|
import './components/footer/Component.js';
|
|
14
14
|
import { FooterDesktop } from './components/footer/Component.desktop.js';
|
|
15
|
-
import { t as transitions } from './transitions.module-
|
|
15
|
+
import { t as transitions } from './transitions.module-83319c83.js';
|
|
16
16
|
|
|
17
|
-
var styles = {"wrapper":"
|
|
17
|
+
var styles = {"wrapper":"modal__wrapper_gl44z","component":"modal__component_gl44z","fullscreen":"modal__fullscreen_gl44z","s":"modal__s_gl44z","m":"modal__m_gl44z","l":"modal__l_gl44z"};
|
|
18
18
|
require('./desktop.css')
|
|
19
19
|
|
|
20
20
|
var ModalDesktopComponent = forwardRef(function (_a, ref) {
|
|
@@ -35,9 +35,7 @@ var ModalDesktopComponent = forwardRef(function (_a, ref) {
|
|
|
35
35
|
}, [fixedPosition, transitionProps]);
|
|
36
36
|
return (React.createElement(BaseModal, __assign({}, restProps, { ref: mergeRefs([ref, modalRef]), wrapperClassName: cn(styles.wrapper, wrapperClassName, (_b = {},
|
|
37
37
|
_b[styles.fullscreen] = fullscreen,
|
|
38
|
-
_b)), className: cn(styles.component, className, !fullscreen && styles[size]), backdropProps: {
|
|
39
|
-
invisible: fullscreen,
|
|
40
|
-
}, transitionProps: __assign(__assign({ classNames: transitions }, transitionProps), { onEntered: handleEntered }) }), React.Children.map(children, function (child) {
|
|
38
|
+
_b)), className: cn(styles.component, className, !fullscreen && styles[size]), backdropProps: __assign(__assign({}, restProps.backdropProps), { invisible: fullscreen }), transitionProps: __assign(__assign({ classNames: transitions }, transitionProps), { onEntered: handleEntered }) }), React.Children.map(children, function (child) {
|
|
41
39
|
return isValidElement(child)
|
|
42
40
|
? cloneElement(child, { size: child.props.size || size, fullscreen: fullscreen })
|
|
43
41
|
: child;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-95890331.js';
|
|
2
2
|
import React, { forwardRef, isValidElement, cloneElement } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { BaseModal } from '@alfalab/core-components-base-modal/dist/esm';
|
|
@@ -8,13 +8,13 @@ import { Closer } from './components/closer/Component.js';
|
|
|
8
8
|
import './components/header/Component.js';
|
|
9
9
|
import './components/content/Component.js';
|
|
10
10
|
import './components/footer/Component.js';
|
|
11
|
-
import { t as transitions } from './transitions.module-
|
|
11
|
+
import { t as transitions } from './transitions.module-83319c83.js';
|
|
12
12
|
import { useMedia } from '@alfalab/hooks';
|
|
13
13
|
import { HeaderMobile } from './components/header/Component.mobile.js';
|
|
14
14
|
import { ContentMobile } from './components/content/Component.mobile.js';
|
|
15
15
|
import { FooterMobile } from './components/footer/Component.mobile.js';
|
|
16
16
|
|
|
17
|
-
var styles = {"component":"
|
|
17
|
+
var styles = {"component":"modal__component_1cidc"};
|
|
18
18
|
require('./mobile.css')
|
|
19
19
|
|
|
20
20
|
var ModalMobileComponent = forwardRef(function (_a, ref) {
|
|
@@ -23,9 +23,7 @@ var ModalMobileComponent = forwardRef(function (_a, ref) {
|
|
|
23
23
|
['s', '(max-width: 375px)'],
|
|
24
24
|
['m', '(min-width: 376px)'],
|
|
25
25
|
], 's')[0];
|
|
26
|
-
return (React.createElement(BaseModal, __assign({}, restProps, { ref: ref, transitionProps: __assign({ classNames: transitions }, restProps.transitionProps), className: cn(className, styles.component), backdropProps: {
|
|
27
|
-
invisible: true,
|
|
28
|
-
} }), React.Children.map(children, function (child) {
|
|
26
|
+
return (React.createElement(BaseModal, __assign({}, restProps, { ref: ref, transitionProps: __assign({ classNames: transitions }, restProps.transitionProps), className: cn(className, styles.component), backdropProps: __assign(__assign({}, restProps.backdropProps), { invisible: true }) }), React.Children.map(children, function (child) {
|
|
29
27
|
return isValidElement(child)
|
|
30
28
|
? cloneElement(child, { size: child.props.size || size, fullscreen: true })
|
|
31
29
|
: child;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-95890331.js';
|
|
2
2
|
import React, { forwardRef, useMemo, useContext } from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/core-components-base-modal/dist/esm';
|
|
@@ -13,7 +13,7 @@ import './components/content/Component.desktop.js';
|
|
|
13
13
|
import './components/footer/Component.js';
|
|
14
14
|
import './components/footer/Component.desktop.js';
|
|
15
15
|
import { ModalDesktop } from './Component.desktop.js';
|
|
16
|
-
import './transitions.module-
|
|
16
|
+
import './transitions.module-83319c83.js';
|
|
17
17
|
import { useMedia } from '@alfalab/hooks';
|
|
18
18
|
import './components/header/Component.mobile.js';
|
|
19
19
|
import './components/content/Component.mobile.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-95890331.js';
|
|
2
2
|
import React, { useContext, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import '@alfalab/core-components-base-modal/dist/esm';
|
|
5
5
|
import { ModalContext } from '../../Context.js';
|
|
6
6
|
import { Button } from '@alfalab/core-components-button/dist/esm';
|
|
7
7
|
|
|
8
|
-
var styles = {"closer":"
|
|
8
|
+
var styles = {"closer":"modal__closer_uf5dn","left":"modal__left_uf5dn","right":"modal__right_uf5dn","fullscreen":"modal__fullscreen_uf5dn"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Closer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1iq3c */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
/* scroll */
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.modal__closer_uf5dn {
|
|
28
28
|
width: 48px;
|
|
29
29
|
height: 48px;
|
|
30
30
|
background-image: var(--modal-closer-icon);
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
flex-shrink: 0;
|
|
34
34
|
transition: opacity 0.2s ease-out
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.modal__closer_uf5dn:hover {
|
|
37
37
|
opacity: 0.7;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.modal__closer_uf5dn:active {
|
|
40
40
|
opacity: 0.5;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
43
|
-
.
|
|
42
|
+
.modal__left_uf5dn,
|
|
43
|
+
.modal__right_uf5dn {
|
|
44
44
|
position: sticky;
|
|
45
45
|
top: calc(var(--modal-vertical-padding) * -1);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.modal__right_uf5dn {
|
|
48
48
|
margin-left: auto;
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.modal__fullscreen_uf5dn {
|
|
51
51
|
top: 0;
|
|
52
52
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-95890331.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import '@alfalab/core-components-base-modal/dist/esm';
|
|
5
5
|
import '../../Context.js';
|
|
6
6
|
import { Content } from './Component.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"content":"
|
|
8
|
+
var styles = {"content":"modal__content_cj0al modal__content_djrnp","flex":"modal__flex_cj0al modal__flex_djrnp","s":"modal__s_cj0al","m":"modal__m_cj0al","l":"modal__l_cj0al","fullscreen":"modal__fullscreen_cj0al"};
|
|
9
9
|
require('./desktop.css')
|
|
10
10
|
|
|
11
11
|
var ContentDesktop = function (_a) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-95890331.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/core-components-base-modal/dist/esm';
|
|
5
5
|
import '../../Context.js';
|
|
6
6
|
import { Content } from './Component.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"content":"
|
|
8
|
+
var styles = {"content":"modal__content_17l4p modal__content_djrnp","flex":"modal__flex_17l4p modal__flex_djrnp"};
|
|
9
9
|
require('./mobile.css')
|
|
10
10
|
|
|
11
11
|
var ContentMobile = function (props) { return (React.createElement(Content, __assign({ styles: styles }, props))); };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1mgj1 */
|
|
2
2
|
:root {
|
|
3
3
|
}:root {
|
|
4
4
|
}:root {
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
/* sticky */
|
|
35
35
|
|
|
36
36
|
/* scroll */
|
|
37
|
-
}.
|
|
37
|
+
}.modal__content_djrnp {
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
width: 100%
|
|
40
|
-
}.
|
|
40
|
+
}.modal__content_djrnp:first-child {
|
|
41
41
|
padding-top: var(--modal-content-no-header-top-padding);
|
|
42
|
-
}.
|
|
42
|
+
}.modal__content_djrnp:last-child {
|
|
43
43
|
padding-bottom: var(--modal-content-no-footer-bottom-padding);
|
|
44
|
-
}.
|
|
44
|
+
}.modal__flex_djrnp {
|
|
45
45
|
flex: 1 1 auto;
|
|
46
46
|
}
|
|
47
47
|
:root {
|
|
@@ -194,6 +194,8 @@
|
|
|
194
194
|
--color-dark-border-secondary-inverted: #6d7986;
|
|
195
195
|
--color-dark-border-tertiary: #233549;
|
|
196
196
|
--color-dark-border-tertiary-inverted: #b6bcc3;
|
|
197
|
+
--color-dark-border-underline: #6d7986;
|
|
198
|
+
--color-dark-border-underline-inverted: #b6bcc3;
|
|
197
199
|
--color-dark-graphic-accent: #ef3124;
|
|
198
200
|
--color-dark-graphic-attention: #e58933;
|
|
199
201
|
--color-dark-graphic-link: #007aff;
|
|
@@ -206,6 +208,7 @@
|
|
|
206
208
|
--color-dark-graphic-secondary-inverted: #233549;
|
|
207
209
|
--color-dark-graphic-tertiary: #6d7986;
|
|
208
210
|
--color-dark-specialbg-component: #485767;
|
|
211
|
+
--color-dark-specialbg-component-inverted: rgba(11, 31, 53, 0.07);
|
|
209
212
|
--color-dark-specialbg-nulled: rgba(11, 31, 53, 0);
|
|
210
213
|
--color-dark-specialbg-primary-grouped: #0b1f35;
|
|
211
214
|
--color-dark-specialbg-secondary-grouped: #233549;
|
|
@@ -250,6 +253,8 @@
|
|
|
250
253
|
--color-light-border-secondary-inverted: #b6bcc3;
|
|
251
254
|
--color-light-border-tertiary: #f3f4f5;
|
|
252
255
|
--color-light-border-tertiary-inverted: #6d7986;
|
|
256
|
+
--color-light-border-underline: #b6bcc3;
|
|
257
|
+
--color-light-border-underline-inverted: #6d7986;
|
|
253
258
|
--color-light-graphic-accent: #ef3124;
|
|
254
259
|
--color-light-graphic-attention: #e58933;
|
|
255
260
|
--color-light-graphic-link: #007aff;
|
|
@@ -314,12 +319,15 @@
|
|
|
314
319
|
--color-dark-bg-neutral-tint-10: rgb(90, 104, 118);
|
|
315
320
|
--color-dark-bg-neutral-tint-15: rgb(99, 112, 126);
|
|
316
321
|
--color-dark-bg-neutral-tint-30: rgb(127, 137, 149);
|
|
322
|
+
--color-dark-bg-neutral-shade-15: rgb(61, 74, 88);
|
|
323
|
+
--color-dark-bg-primary-alpha-8: rgba(11, 31, 53, 0.08);
|
|
317
324
|
--color-dark-bg-primary-inverted-alpha-3: rgba(255, 255, 255, 0.03);
|
|
318
325
|
--color-dark-bg-primary-inverted-alpha-7: rgba(255, 255, 255, 0.07);
|
|
319
326
|
--color-dark-bg-primary-inverted-alpha-10: rgba(255, 255, 255, 0.1);
|
|
320
327
|
--color-dark-bg-primary-inverted-alpha-15: rgba(255, 255, 255, 0.15);
|
|
321
328
|
--color-dark-bg-primary-inverted-alpha-20: rgba(255, 255, 255, 0.2);
|
|
322
329
|
--color-dark-bg-primary-inverted-alpha-40: rgba(255, 255, 255, 0.4);
|
|
330
|
+
--color-dark-bg-primary-inverted-alpha-50: rgba(255, 255, 255, 0.5);
|
|
323
331
|
--color-dark-bg-secondary-inverted-alpha-7: rgba(182, 188, 195, 0.07);
|
|
324
332
|
--color-dark-bg-secondary-inverted-alpha-15: rgba(182, 188, 195, 0.15);
|
|
325
333
|
--color-dark-bg-tertiary-tint-7: rgb(74, 89, 104);
|
|
@@ -345,6 +353,7 @@
|
|
|
345
353
|
--color-dark-specialbg-component-tint-7: rgb(85, 99, 114);
|
|
346
354
|
--color-dark-specialbg-component-tint-10: rgb(90, 104, 118);
|
|
347
355
|
--color-dark-specialbg-component-tint-30: rgb(127, 137, 149);
|
|
356
|
+
--color-dark-specialbg-component-inverted-shade-15: rgba(9, 26, 45, 0.2095);
|
|
348
357
|
--color-dark-text-link-shade-30: rgb(0, 85, 179);
|
|
349
358
|
--color-dark-text-link-shade-50: rgb(0, 61, 128);
|
|
350
359
|
--color-dark-text-link-tint-20: rgb(51, 149, 255);
|
|
@@ -354,10 +363,15 @@
|
|
|
354
363
|
--color-dark-text-primary-shade-50: rgb(128, 128, 128);
|
|
355
364
|
--color-dark-text-primary-tint-20: rgb(255, 255, 255);
|
|
356
365
|
--color-dark-text-primary-tint-40: rgb(255, 255, 255);
|
|
366
|
+
--color-dark-text-primary-inverted-alpha-40: rgba(11, 31, 53, 0.4);
|
|
367
|
+
--color-dark-text-primary-inverted-shade-30: rgb(8, 22, 37);
|
|
368
|
+
--color-dark-text-primary-inverted-shade-50: rgb(6, 16, 26);
|
|
357
369
|
--color-dark-text-secondary-shade-30: rgb(127, 132, 136);
|
|
358
370
|
--color-dark-text-secondary-shade-50: rgb(91, 94, 98);
|
|
359
371
|
--color-dark-text-secondary-tint-20: rgb(197, 201, 207);
|
|
360
372
|
--color-dark-text-secondary-tint-40: rgb(211, 215, 219);
|
|
373
|
+
--color-dark-text-secondary-inverted-shade-30: rgb(76, 85, 94);
|
|
374
|
+
--color-dark-text-secondary-inverted-shade-50: rgb(55, 61, 67);
|
|
361
375
|
--color-light-bg-accent-alpha-30: rgba(239, 49, 36, 0.3);
|
|
362
376
|
--color-light-bg-accent-shade-7: rgb(222, 46, 33);
|
|
363
377
|
--color-light-bg-accent-shade-10: rgb(215, 44, 32);
|
|
@@ -368,12 +382,15 @@
|
|
|
368
382
|
--color-light-bg-neutral-shade-10: rgb(197, 200, 203);
|
|
369
383
|
--color-light-bg-neutral-shade-15: rgb(186, 189, 191);
|
|
370
384
|
--color-light-bg-neutral-shade-30: rgb(153, 155, 157);
|
|
385
|
+
--color-light-bg-neutral-tint-15: rgb(224, 227, 230);
|
|
386
|
+
--color-light-bg-primary-alpha-8: rgba(255, 255, 255, 0.08);
|
|
371
387
|
--color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
|
|
372
388
|
--color-light-bg-primary-inverted-alpha-7: rgba(11, 31, 53, 0.07);
|
|
373
389
|
--color-light-bg-primary-inverted-alpha-10: rgba(11, 31, 53, 0.1);
|
|
374
390
|
--color-light-bg-primary-inverted-alpha-15: rgba(11, 31, 53, 0.15);
|
|
375
391
|
--color-light-bg-primary-inverted-alpha-20: rgba(11, 31, 53, 0.2);
|
|
376
392
|
--color-light-bg-primary-inverted-alpha-40: rgba(11, 31, 53, 0.4);
|
|
393
|
+
--color-light-bg-primary-inverted-alpha-50: rgba(11, 31, 53, 0.5);
|
|
377
394
|
--color-light-bg-secondary-inverted-alpha-7: rgba(35, 53, 73, 0.07);
|
|
378
395
|
--color-light-bg-secondary-inverted-alpha-15: rgba(35, 53, 73, 0.15);
|
|
379
396
|
--color-light-bg-tertiary-shade-7: rgb(215, 217, 219);
|
|
@@ -399,6 +416,7 @@
|
|
|
399
416
|
--color-light-specialbg-component-shade-7: rgba(10, 29, 49, 0.1351);
|
|
400
417
|
--color-light-specialbg-component-shade-10: rgba(10, 28, 48, 0.163);
|
|
401
418
|
--color-light-specialbg-component-shade-30: rgba(8, 22, 37, 0.349);
|
|
419
|
+
--color-light-specialbg-component-inverted-tint-15: rgba(255, 255, 255, 0.2775);
|
|
402
420
|
--color-light-text-link-tint-30: rgb(77, 162, 255);
|
|
403
421
|
--color-light-text-link-tint-50: rgb(128, 189, 255);
|
|
404
422
|
--color-light-text-link-shade-20: rgb(0, 98, 204);
|
|
@@ -408,10 +426,17 @@
|
|
|
408
426
|
--color-light-text-primary-tint-50: rgb(133, 143, 154);
|
|
409
427
|
--color-light-text-primary-shade-20: rgb(9, 25, 42);
|
|
410
428
|
--color-light-text-primary-shade-40: rgb(7, 19, 32);
|
|
429
|
+
--color-light-text-primary-inverted-alpha-40: rgba(255, 255, 255, 0.4);
|
|
430
|
+
--color-light-text-primary-inverted-tint-30: rgb(255, 255, 255);
|
|
431
|
+
--color-light-text-primary-inverted-tint-50: rgb(255, 255, 255);
|
|
411
432
|
--color-light-text-secondary-tint-30: rgb(135, 145, 156);
|
|
412
433
|
--color-light-text-secondary-tint-50: rgb(170, 177, 185);
|
|
413
434
|
--color-light-text-secondary-shade-20: rgb(67, 78, 91);
|
|
414
435
|
--color-light-text-secondary-shade-40: rgb(50, 59, 68);
|
|
436
|
+
--color-light-text-secondary-inverted-tint-30: rgb(204, 208, 213);
|
|
437
|
+
--color-light-text-secondary-inverted-tint-50: rgb(219, 222, 225);
|
|
438
|
+
--color-static-bg-primary-dark-alpha-10: rgba(0, 0, 0, 0.1);
|
|
439
|
+
--color-static-bg-primary-dark-alpha-20: rgba(0, 0, 0, 0.2);
|
|
415
440
|
}
|
|
416
441
|
:root {
|
|
417
442
|
--color-dynamic-primary-dark: rgba(0, 0, 0, 0.8);
|
|
@@ -574,20 +599,20 @@
|
|
|
574
599
|
--modal-footer-highlight-box-shadow: var(--shadow-s-up);
|
|
575
600
|
--modal-footer-highlight-background: var(--color-light-bg-primary);
|
|
576
601
|
}
|
|
577
|
-
.
|
|
602
|
+
.modal__content_cj0al {
|
|
578
603
|
}
|
|
579
|
-
.
|
|
604
|
+
.modal__flex_cj0al {
|
|
580
605
|
}
|
|
581
|
-
.
|
|
606
|
+
.modal__s_cj0al {
|
|
582
607
|
padding: var(--modal-s-content-paddings);
|
|
583
608
|
}
|
|
584
|
-
.
|
|
609
|
+
.modal__m_cj0al {
|
|
585
610
|
padding: var(--modal-m-content-paddings);
|
|
586
611
|
}
|
|
587
|
-
.
|
|
588
|
-
.
|
|
612
|
+
.modal__l_cj0al,
|
|
613
|
+
.modal__fullscreen_cj0al {
|
|
589
614
|
padding: var(--modal-l-content-paddings)
|
|
590
615
|
}
|
|
591
|
-
.
|
|
616
|
+
.modal__l_cj0al:last-child, .modal__fullscreen_cj0al:last-child {
|
|
592
617
|
padding-bottom: var(--modal-l-content-no-footer-bottom-padding);
|
|
593
618
|
}
|