@meduza/ui-kit-2 1.4.7 → 1.4.9
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/Cover/Cover.types.d.ts +1 -0
- package/dist/ui-kit-2.cjs.development.js +13 -8
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +13 -8
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +43 -13
- package/dist/ui-kit.css +43 -13
- package/package.json +1 -1
- package/src/Cover/Cover.module.css +28 -0
- package/src/Cover/Cover.types.ts +1 -0
- package/src/Cover/index.tsx +17 -5
- package/src/EmbedBlock/EmbedBlock.module.css +15 -13
- package/src/GroupedBlock/index.tsx +2 -2
- package/src/Meta/Meta.stories.tsx +0 -1
- package/src/types.ts +1 -7
package/dist/ui-kit-game.css
CHANGED
|
@@ -2518,8 +2518,9 @@
|
|
|
2518
2518
|
max-width: 650px;
|
|
2519
2519
|
margin: 0 auto;
|
|
2520
2520
|
|
|
2521
|
-
border-radius: 2px;
|
|
2522
2521
|
background: #fff;
|
|
2522
|
+
|
|
2523
|
+
border-radius: 2px;
|
|
2523
2524
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
2524
2525
|
}
|
|
2525
2526
|
|
|
@@ -2579,7 +2580,9 @@
|
|
|
2579
2580
|
}
|
|
2580
2581
|
|
|
2581
2582
|
.EmbedBlock-module_super_full__-h382 {
|
|
2582
|
-
max-width:
|
|
2583
|
+
max-width: 1335px;
|
|
2584
|
+
margin-right: auto;
|
|
2585
|
+
margin-left: auto;
|
|
2583
2586
|
}
|
|
2584
2587
|
|
|
2585
2588
|
@media only screen and (min-width: 32em) {
|
|
@@ -2631,20 +2634,20 @@
|
|
|
2631
2634
|
bottom: 0;
|
|
2632
2635
|
left: 0;
|
|
2633
2636
|
|
|
2634
|
-
content: '';
|
|
2635
|
-
pointer-events: none;
|
|
2636
|
-
|
|
2637
2637
|
background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle fill-opacity='.5' fill='%23000' cx='35' cy='35' r='35'/%3E%3Cpath d='M35 66.75c2.816 0 5.585-.367 8.256-1.084.667-.18 1.062-.865.883-1.532-.18-.666-.866-1.062-1.533-.883-2.46.662-5.01 1-7.607 1-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25zm15.946-4.29c2.41-1.4 4.624-3.114 6.587-5.092.487-.49.484-1.282-.006-1.768s-1.282-.484-1.768.006c-1.81 1.823-3.852 3.403-6.07 4.694-.598.347-.8 1.113-.453 1.71.347.596 1.112.798 1.71.45zm11.632-11.716c1.382-2.417 2.442-5.007 3.147-7.713.174-.667-.226-1.35-.894-1.524-.667-.174-1.35.227-1.524.895-.65 2.492-1.625 4.877-2.898 7.102-.343.6-.135 1.363.464 1.706.6.343 1.363.135 1.706-.464zm4.172-15.912c-.015-2.816-.397-5.583-1.128-8.25-.183-.666-.87-1.058-1.537-.875-.665.183-1.057.87-.874 1.536.675 2.457 1.026 5.006 1.04 7.602.003.69.566 1.247 1.256 1.243.69-.003 1.247-.566 1.244-1.256zM62.376 18.91c-1.414-2.402-3.14-4.608-5.128-6.56-.492-.485-1.283-.478-1.767.015-.483.492-.476 1.284.016 1.767 1.833 1.8 3.423 3.834 4.726 6.046.35.595 1.117.793 1.712.443.594-.35.793-1.116.442-1.71zM50.598 7.34c-2.424-1.37-5.02-2.416-7.73-3.107-.668-.17-1.35.233-1.52.902-.17.67.234 1.35.903 1.52 2.496.637 4.886 1.6 7.118 2.86.6.34 1.363.13 1.703-.472.34-.602.13-1.364-.472-1.704zM34.665 3.25c-2.815.03-5.58.425-8.244 1.17-.664.187-1.052.877-.865 1.542.186.664.875 1.052 1.54.866 2.454-.687 5-1.052 7.596-1.078.69-.008 1.245-.573 1.238-1.263-.007-.692-.573-1.245-1.263-1.238zm-15.903 4.46c-2.393 1.426-4.59 3.163-6.533 5.162-.482.495-.47 1.287.024 1.768.496.48 1.287.47 1.768-.026 1.79-1.842 3.815-3.443 6.02-4.758.594-.354.788-1.12.434-1.714-.353-.593-1.12-.787-1.714-.433zM7.256 19.55c-1.357 2.43-2.39 5.032-3.065 7.745-.166.67.242 1.348.912 1.515.67.167 1.348-.24 1.515-.91.623-2.5 1.573-4.894 2.822-7.133.335-.603.12-1.365-.484-1.7-.603-.338-1.364-.122-1.7.48zM3.254 35.5c.043 2.813.454 5.577 1.214 8.237.19.663.882 1.047 1.545.857.664-.19 1.05-.88.86-1.545-.7-2.45-1.08-4.995-1.12-7.59-.01-.69-.578-1.24-1.27-1.23-.69.01-1.24.58-1.23 1.27zm4.543 15.88c1.44 2.385 3.188 4.573 5.197 6.505.497.478 1.29.463 1.767-.035.48-.497.464-1.29-.033-1.767-1.85-1.78-3.463-3.797-4.79-5.995-.356-.59-1.125-.78-1.716-.425-.59.357-.78 1.125-.423 1.716zm11.9 11.444c2.44 1.343 5.046 2.36 7.763 3.023.67.162 1.347-.25 1.51-.92.164-.67-.247-1.347-.918-1.51-2.502-.61-4.902-1.547-7.147-2.784-.605-.333-1.365-.113-1.698.492-.334.604-.114 1.365.49 1.698z' fill='%23FFF' fill-rule='nonzero'/%3E%3Cpath d='M19.838 34.99c0 4.39 3.297 7.265 7.35 7.265 2.437 0 4.39-1.008 5.776-2.54v-5.25h-6.636v2.162h4.178v2.184c-.63.59-1.89 1.26-3.317 1.26-2.774.002-4.832-2.14-4.832-5.08s2.058-5.062 4.83-5.062c1.576 0 2.9.82 3.634 1.87l2.015-1.134c-1.134-1.617-2.92-2.92-5.65-2.92-4.052 0-7.35 2.857-7.35 7.245zm15.487 6.992h2.457V27.977h-2.456v14.007zm5.24 0h2.457v-6.047h6.992v-2.163h-6.992V30.14l7.14-.002v-2.163h-9.597v14.008z' fill='%23FFF'/%3E%3C/g%3E%3C/svg%3E");
|
|
2638
2638
|
background-repeat: no-repeat;
|
|
2639
2639
|
background-position: center;
|
|
2640
2640
|
background-size: 70px 70px;
|
|
2641
|
+
|
|
2642
|
+
content: '';
|
|
2643
|
+
pointer-events: none;
|
|
2641
2644
|
}
|
|
2642
2645
|
|
|
2643
2646
|
.EmbedBlock-module_control__9bJUa {
|
|
2644
2647
|
position: absolute;
|
|
2645
|
-
z-index: 10;
|
|
2646
2648
|
right: -8px;
|
|
2647
2649
|
bottom: 12px;
|
|
2650
|
+
z-index: 10;
|
|
2648
2651
|
|
|
2649
2652
|
width: 28px;
|
|
2650
2653
|
height: 28px;
|
|
@@ -2652,12 +2655,13 @@
|
|
|
2652
2655
|
padding: 0;
|
|
2653
2656
|
|
|
2654
2657
|
color: #fff;
|
|
2655
|
-
|
|
2656
|
-
border-radius: 14px;
|
|
2658
|
+
|
|
2657
2659
|
background-color: rgba(0, 0, 0, 0.7);
|
|
2658
2660
|
background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E %3Cg fill='%23FEFEFE' fill-rule='evenodd' opacity='.7'%3E %3Cpath d='M12.726 16H3.275A3.276 3.276 0 0 1 0 12.725v-9.45A3.276 3.276 0 0 1 3.275 0h9.45A3.275 3.275 0 0 1 16 3.275v9.45A3.275 3.275 0 0 1 12.726 16zm0-2c.703 0 1.274-.571 1.274-1.275v-9.45C14 2.571 13.429 2 12.726 2H3.275C2.57 2 2 2.571 2 3.275v9.45C2 13.429 2.57 14 3.275 14h9.45z' fill-rule='nonzero'/%3E %3Cpath d='M4.97 8.307l7.046 7.046a.5.5 0 0 0 .708-.707l-7.4-7.4a.5.5 0 0 0-.708 0l-3.97 3.97a.5.5 0 0 0 .708.707L4.97 8.307z' fill-rule='nonzero'/%3E %3Cpath d='M10.875 5.832l3.771 3.771a.5.5 0 0 0 .707-.707l-4.125-4.125a.5.5 0 0 0-.707 0l-4.19 4.19a.5.5 0 1 0 .707.707l3.837-3.836z' fill-rule='nonzero'/%3E %3Cpath d='M5.865 4.269a.894.894 0 1 1-1.787 0 .894.894 0 0 1 1.787 0'/%3E %3C/g%3E %3C/svg%3E");
|
|
2659
2661
|
background-repeat: no-repeat;
|
|
2660
2662
|
background-position: center;
|
|
2663
|
+
border-width: 0;
|
|
2664
|
+
border-radius: 14px;
|
|
2661
2665
|
box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.15);
|
|
2662
2666
|
}
|
|
2663
2667
|
|
|
@@ -2707,9 +2711,8 @@
|
|
|
2707
2711
|
|
|
2708
2712
|
.EmbedBlock-module_isInCard__WnLHG:not(.EmbedBlock-module_cc__Gyw44):last-child .EmbedBlock-module_figure__fNZB-,
|
|
2709
2713
|
.EmbedBlock-module_isInSlide__BtdnY:not(.EmbedBlock-module_cc__Gyw44):last-child .EmbedBlock-module_figure__fNZB- {
|
|
2710
|
-
overflow: hidden;
|
|
2711
|
-
|
|
2712
2714
|
margin-bottom: -16px;
|
|
2715
|
+
overflow: hidden;
|
|
2713
2716
|
|
|
2714
2717
|
border-radius: 0 0 8px 8px;
|
|
2715
2718
|
}
|
|
@@ -2724,9 +2727,8 @@
|
|
|
2724
2727
|
|
|
2725
2728
|
.EmbedBlock-module_isInCard__WnLHG.EmbedBlock-module_isInSensitiveBlock__nYajZ:not(.EmbedBlock-module_cc__Gyw44) .EmbedBlock-module_figure__fNZB-,
|
|
2726
2729
|
.EmbedBlock-module_isInSlide__BtdnY.EmbedBlock-module_isInSensitiveBlock__nYajZ:not(.EmbedBlock-module_cc__Gyw44) .EmbedBlock-module_figure__fNZB- {
|
|
2727
|
-
overflow: visible;
|
|
2728
|
-
|
|
2729
2730
|
margin-bottom: 0;
|
|
2731
|
+
overflow: visible;
|
|
2730
2732
|
|
|
2731
2733
|
border-radius: 0;
|
|
2732
2734
|
}
|
|
@@ -2811,8 +2813,8 @@
|
|
|
2811
2813
|
|
|
2812
2814
|
.EmbedBlock-module_xs__PNHGz {
|
|
2813
2815
|
display: flex;
|
|
2814
|
-
align-items: center;
|
|
2815
2816
|
flex-flow: row nowrap;
|
|
2817
|
+
align-items: center;
|
|
2816
2818
|
}
|
|
2817
2819
|
}
|
|
2818
2820
|
|
|
@@ -5557,6 +5559,34 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
|
|
|
5557
5559
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
5558
5560
|
}
|
|
5559
5561
|
|
|
5562
|
+
.Cover-module_isOnImage__J296p {
|
|
5563
|
+
--overlayColor: var(--titleColor, #fff);
|
|
5564
|
+
}
|
|
5565
|
+
|
|
5566
|
+
.Cover-module_isOnImage__J296p .Cover-module_image__frrrH::after {
|
|
5567
|
+
position: absolute;
|
|
5568
|
+
top: 0;
|
|
5569
|
+
right: 0;
|
|
5570
|
+
bottom: 0;
|
|
5571
|
+
left: 0;
|
|
5572
|
+
z-index: 1;
|
|
5573
|
+
|
|
5574
|
+
background-image: var(--titleGradient, none);
|
|
5575
|
+
|
|
5576
|
+
content: '';
|
|
5577
|
+
}
|
|
5578
|
+
|
|
5579
|
+
.Cover-module_isOnImage__J296p .Cover-module_body__eJpUI {
|
|
5580
|
+
top: 0;
|
|
5581
|
+
|
|
5582
|
+
justify-content: var(--titlePosition, flex-end);
|
|
5583
|
+
|
|
5584
|
+
padding-top: 20px;
|
|
5585
|
+
|
|
5586
|
+
color: var(--titleColor, #fff);
|
|
5587
|
+
text-shadow: none;
|
|
5588
|
+
}
|
|
5589
|
+
|
|
5560
5590
|
.Cover-module_control__WP0G3 {
|
|
5561
5591
|
position: absolute;
|
|
5562
5592
|
right: 49px;
|
package/dist/ui-kit.css
CHANGED
|
@@ -2518,8 +2518,9 @@
|
|
|
2518
2518
|
max-width: 650px;
|
|
2519
2519
|
margin: 0 auto;
|
|
2520
2520
|
|
|
2521
|
-
border-radius: 2px;
|
|
2522
2521
|
background: #fff;
|
|
2522
|
+
|
|
2523
|
+
border-radius: 2px;
|
|
2523
2524
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
2524
2525
|
}
|
|
2525
2526
|
|
|
@@ -2579,7 +2580,9 @@
|
|
|
2579
2580
|
}
|
|
2580
2581
|
|
|
2581
2582
|
.EmbedBlock-module_super_full__-h382 {
|
|
2582
|
-
max-width:
|
|
2583
|
+
max-width: 1335px;
|
|
2584
|
+
margin-right: auto;
|
|
2585
|
+
margin-left: auto;
|
|
2583
2586
|
}
|
|
2584
2587
|
|
|
2585
2588
|
@media only screen and (min-width: 32em) {
|
|
@@ -2631,20 +2634,20 @@
|
|
|
2631
2634
|
bottom: 0;
|
|
2632
2635
|
left: 0;
|
|
2633
2636
|
|
|
2634
|
-
content: '';
|
|
2635
|
-
pointer-events: none;
|
|
2636
|
-
|
|
2637
2637
|
background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle fill-opacity='.5' fill='%23000' cx='35' cy='35' r='35'/%3E%3Cpath d='M35 66.75c2.816 0 5.585-.367 8.256-1.084.667-.18 1.062-.865.883-1.532-.18-.666-.866-1.062-1.533-.883-2.46.662-5.01 1-7.607 1-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25zm15.946-4.29c2.41-1.4 4.624-3.114 6.587-5.092.487-.49.484-1.282-.006-1.768s-1.282-.484-1.768.006c-1.81 1.823-3.852 3.403-6.07 4.694-.598.347-.8 1.113-.453 1.71.347.596 1.112.798 1.71.45zm11.632-11.716c1.382-2.417 2.442-5.007 3.147-7.713.174-.667-.226-1.35-.894-1.524-.667-.174-1.35.227-1.524.895-.65 2.492-1.625 4.877-2.898 7.102-.343.6-.135 1.363.464 1.706.6.343 1.363.135 1.706-.464zm4.172-15.912c-.015-2.816-.397-5.583-1.128-8.25-.183-.666-.87-1.058-1.537-.875-.665.183-1.057.87-.874 1.536.675 2.457 1.026 5.006 1.04 7.602.003.69.566 1.247 1.256 1.243.69-.003 1.247-.566 1.244-1.256zM62.376 18.91c-1.414-2.402-3.14-4.608-5.128-6.56-.492-.485-1.283-.478-1.767.015-.483.492-.476 1.284.016 1.767 1.833 1.8 3.423 3.834 4.726 6.046.35.595 1.117.793 1.712.443.594-.35.793-1.116.442-1.71zM50.598 7.34c-2.424-1.37-5.02-2.416-7.73-3.107-.668-.17-1.35.233-1.52.902-.17.67.234 1.35.903 1.52 2.496.637 4.886 1.6 7.118 2.86.6.34 1.363.13 1.703-.472.34-.602.13-1.364-.472-1.704zM34.665 3.25c-2.815.03-5.58.425-8.244 1.17-.664.187-1.052.877-.865 1.542.186.664.875 1.052 1.54.866 2.454-.687 5-1.052 7.596-1.078.69-.008 1.245-.573 1.238-1.263-.007-.692-.573-1.245-1.263-1.238zm-15.903 4.46c-2.393 1.426-4.59 3.163-6.533 5.162-.482.495-.47 1.287.024 1.768.496.48 1.287.47 1.768-.026 1.79-1.842 3.815-3.443 6.02-4.758.594-.354.788-1.12.434-1.714-.353-.593-1.12-.787-1.714-.433zM7.256 19.55c-1.357 2.43-2.39 5.032-3.065 7.745-.166.67.242 1.348.912 1.515.67.167 1.348-.24 1.515-.91.623-2.5 1.573-4.894 2.822-7.133.335-.603.12-1.365-.484-1.7-.603-.338-1.364-.122-1.7.48zM3.254 35.5c.043 2.813.454 5.577 1.214 8.237.19.663.882 1.047 1.545.857.664-.19 1.05-.88.86-1.545-.7-2.45-1.08-4.995-1.12-7.59-.01-.69-.578-1.24-1.27-1.23-.69.01-1.24.58-1.23 1.27zm4.543 15.88c1.44 2.385 3.188 4.573 5.197 6.505.497.478 1.29.463 1.767-.035.48-.497.464-1.29-.033-1.767-1.85-1.78-3.463-3.797-4.79-5.995-.356-.59-1.125-.78-1.716-.425-.59.357-.78 1.125-.423 1.716zm11.9 11.444c2.44 1.343 5.046 2.36 7.763 3.023.67.162 1.347-.25 1.51-.92.164-.67-.247-1.347-.918-1.51-2.502-.61-4.902-1.547-7.147-2.784-.605-.333-1.365-.113-1.698.492-.334.604-.114 1.365.49 1.698z' fill='%23FFF' fill-rule='nonzero'/%3E%3Cpath d='M19.838 34.99c0 4.39 3.297 7.265 7.35 7.265 2.437 0 4.39-1.008 5.776-2.54v-5.25h-6.636v2.162h4.178v2.184c-.63.59-1.89 1.26-3.317 1.26-2.774.002-4.832-2.14-4.832-5.08s2.058-5.062 4.83-5.062c1.576 0 2.9.82 3.634 1.87l2.015-1.134c-1.134-1.617-2.92-2.92-5.65-2.92-4.052 0-7.35 2.857-7.35 7.245zm15.487 6.992h2.457V27.977h-2.456v14.007zm5.24 0h2.457v-6.047h6.992v-2.163h-6.992V30.14l7.14-.002v-2.163h-9.597v14.008z' fill='%23FFF'/%3E%3C/g%3E%3C/svg%3E");
|
|
2638
2638
|
background-repeat: no-repeat;
|
|
2639
2639
|
background-position: center;
|
|
2640
2640
|
background-size: 70px 70px;
|
|
2641
|
+
|
|
2642
|
+
content: '';
|
|
2643
|
+
pointer-events: none;
|
|
2641
2644
|
}
|
|
2642
2645
|
|
|
2643
2646
|
.EmbedBlock-module_control__9bJUa {
|
|
2644
2647
|
position: absolute;
|
|
2645
|
-
z-index: 10;
|
|
2646
2648
|
right: -8px;
|
|
2647
2649
|
bottom: 12px;
|
|
2650
|
+
z-index: 10;
|
|
2648
2651
|
|
|
2649
2652
|
width: 28px;
|
|
2650
2653
|
height: 28px;
|
|
@@ -2652,12 +2655,13 @@
|
|
|
2652
2655
|
padding: 0;
|
|
2653
2656
|
|
|
2654
2657
|
color: #fff;
|
|
2655
|
-
|
|
2656
|
-
border-radius: 14px;
|
|
2658
|
+
|
|
2657
2659
|
background-color: rgba(0, 0, 0, 0.7);
|
|
2658
2660
|
background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E %3Cg fill='%23FEFEFE' fill-rule='evenodd' opacity='.7'%3E %3Cpath d='M12.726 16H3.275A3.276 3.276 0 0 1 0 12.725v-9.45A3.276 3.276 0 0 1 3.275 0h9.45A3.275 3.275 0 0 1 16 3.275v9.45A3.275 3.275 0 0 1 12.726 16zm0-2c.703 0 1.274-.571 1.274-1.275v-9.45C14 2.571 13.429 2 12.726 2H3.275C2.57 2 2 2.571 2 3.275v9.45C2 13.429 2.57 14 3.275 14h9.45z' fill-rule='nonzero'/%3E %3Cpath d='M4.97 8.307l7.046 7.046a.5.5 0 0 0 .708-.707l-7.4-7.4a.5.5 0 0 0-.708 0l-3.97 3.97a.5.5 0 0 0 .708.707L4.97 8.307z' fill-rule='nonzero'/%3E %3Cpath d='M10.875 5.832l3.771 3.771a.5.5 0 0 0 .707-.707l-4.125-4.125a.5.5 0 0 0-.707 0l-4.19 4.19a.5.5 0 1 0 .707.707l3.837-3.836z' fill-rule='nonzero'/%3E %3Cpath d='M5.865 4.269a.894.894 0 1 1-1.787 0 .894.894 0 0 1 1.787 0'/%3E %3C/g%3E %3C/svg%3E");
|
|
2659
2661
|
background-repeat: no-repeat;
|
|
2660
2662
|
background-position: center;
|
|
2663
|
+
border-width: 0;
|
|
2664
|
+
border-radius: 14px;
|
|
2661
2665
|
box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.15);
|
|
2662
2666
|
}
|
|
2663
2667
|
|
|
@@ -2707,9 +2711,8 @@
|
|
|
2707
2711
|
|
|
2708
2712
|
.EmbedBlock-module_isInCard__WnLHG:not(.EmbedBlock-module_cc__Gyw44):last-child .EmbedBlock-module_figure__fNZB-,
|
|
2709
2713
|
.EmbedBlock-module_isInSlide__BtdnY:not(.EmbedBlock-module_cc__Gyw44):last-child .EmbedBlock-module_figure__fNZB- {
|
|
2710
|
-
overflow: hidden;
|
|
2711
|
-
|
|
2712
2714
|
margin-bottom: -16px;
|
|
2715
|
+
overflow: hidden;
|
|
2713
2716
|
|
|
2714
2717
|
border-radius: 0 0 8px 8px;
|
|
2715
2718
|
}
|
|
@@ -2724,9 +2727,8 @@
|
|
|
2724
2727
|
|
|
2725
2728
|
.EmbedBlock-module_isInCard__WnLHG.EmbedBlock-module_isInSensitiveBlock__nYajZ:not(.EmbedBlock-module_cc__Gyw44) .EmbedBlock-module_figure__fNZB-,
|
|
2726
2729
|
.EmbedBlock-module_isInSlide__BtdnY.EmbedBlock-module_isInSensitiveBlock__nYajZ:not(.EmbedBlock-module_cc__Gyw44) .EmbedBlock-module_figure__fNZB- {
|
|
2727
|
-
overflow: visible;
|
|
2728
|
-
|
|
2729
2730
|
margin-bottom: 0;
|
|
2731
|
+
overflow: visible;
|
|
2730
2732
|
|
|
2731
2733
|
border-radius: 0;
|
|
2732
2734
|
}
|
|
@@ -2811,8 +2813,8 @@
|
|
|
2811
2813
|
|
|
2812
2814
|
.EmbedBlock-module_xs__PNHGz {
|
|
2813
2815
|
display: flex;
|
|
2814
|
-
align-items: center;
|
|
2815
2816
|
flex-flow: row nowrap;
|
|
2817
|
+
align-items: center;
|
|
2816
2818
|
}
|
|
2817
2819
|
}
|
|
2818
2820
|
|
|
@@ -5557,6 +5559,34 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
|
|
|
5557
5559
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
5558
5560
|
}
|
|
5559
5561
|
|
|
5562
|
+
.Cover-module_isOnImage__J296p {
|
|
5563
|
+
--overlayColor: var(--titleColor, #fff);
|
|
5564
|
+
}
|
|
5565
|
+
|
|
5566
|
+
.Cover-module_isOnImage__J296p .Cover-module_image__frrrH::after {
|
|
5567
|
+
position: absolute;
|
|
5568
|
+
top: 0;
|
|
5569
|
+
right: 0;
|
|
5570
|
+
bottom: 0;
|
|
5571
|
+
left: 0;
|
|
5572
|
+
z-index: 1;
|
|
5573
|
+
|
|
5574
|
+
background-image: var(--titleGradient, none);
|
|
5575
|
+
|
|
5576
|
+
content: '';
|
|
5577
|
+
}
|
|
5578
|
+
|
|
5579
|
+
.Cover-module_isOnImage__J296p .Cover-module_body__eJpUI {
|
|
5580
|
+
top: 0;
|
|
5581
|
+
|
|
5582
|
+
justify-content: var(--titlePosition, flex-end);
|
|
5583
|
+
|
|
5584
|
+
padding-top: 20px;
|
|
5585
|
+
|
|
5586
|
+
color: var(--titleColor, #fff);
|
|
5587
|
+
text-shadow: none;
|
|
5588
|
+
}
|
|
5589
|
+
|
|
5560
5590
|
.Cover-module_control__WP0G3 {
|
|
5561
5591
|
position: absolute;
|
|
5562
5592
|
right: 49px;
|
package/package.json
CHANGED
|
@@ -51,6 +51,34 @@
|
|
|
51
51
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
.isOnImage {
|
|
55
|
+
--overlayColor: var(--titleColor, #fff);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.isOnImage .image::after {
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 0;
|
|
61
|
+
right: 0;
|
|
62
|
+
bottom: 0;
|
|
63
|
+
left: 0;
|
|
64
|
+
z-index: 1;
|
|
65
|
+
|
|
66
|
+
background-image: var(--titleGradient, none);
|
|
67
|
+
|
|
68
|
+
content: '';
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.isOnImage .body {
|
|
72
|
+
top: 0;
|
|
73
|
+
|
|
74
|
+
justify-content: var(--titlePosition, flex-end);
|
|
75
|
+
|
|
76
|
+
padding-top: 20px;
|
|
77
|
+
|
|
78
|
+
color: var(--titleColor, #fff);
|
|
79
|
+
text-shadow: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
54
82
|
.control {
|
|
55
83
|
position: absolute;
|
|
56
84
|
right: 49px;
|
package/src/Cover/Cover.types.ts
CHANGED
package/src/Cover/index.tsx
CHANGED
|
@@ -18,22 +18,30 @@ export const Cover: React.FC<CoverProps> = ({
|
|
|
18
18
|
cover: { credit, caption, urls, mobile_ratio: mobileRatio, gradients, cc }
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
styleContext
|
|
21
|
+
styleContext,
|
|
22
|
+
titleStyle
|
|
22
23
|
}) => {
|
|
23
24
|
const [isPopoverShown, setIsPopoverShown] = useState(false)
|
|
24
25
|
|
|
25
26
|
const style: React.CSSProperties = {}
|
|
26
27
|
|
|
28
|
+
const isOnImage = !!titleStyle
|
|
29
|
+
const contexts = Array.isArray(styleContext)
|
|
30
|
+
? styleContext
|
|
31
|
+
: [styleContext].filter(Boolean)
|
|
32
|
+
const blockStyleContext = isOnImage ? [...contexts, 'overlay'] : styleContext
|
|
33
|
+
|
|
27
34
|
let classNames: ClassNames = [
|
|
28
35
|
[styles.root, true],
|
|
29
|
-
[styles[onlyOn], !!onlyOn && !!styles[onlyOn]]
|
|
36
|
+
[styles[onlyOn], !!onlyOn && !!styles[onlyOn]],
|
|
37
|
+
[styles.isOnImage, isOnImage]
|
|
30
38
|
]
|
|
31
39
|
|
|
32
40
|
if (styleContext) {
|
|
33
41
|
classNames = makeStyleContext(classNames, styleContext, styles)
|
|
34
42
|
}
|
|
35
43
|
|
|
36
|
-
if (gradients) {
|
|
44
|
+
if (gradients && !isOnImage) {
|
|
37
45
|
const theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light']
|
|
38
46
|
|
|
39
47
|
classNames = makeStyleContext(classNames, theme, styles)
|
|
@@ -53,7 +61,11 @@ export const Cover: React.FC<CoverProps> = ({
|
|
|
53
61
|
)
|
|
54
62
|
|
|
55
63
|
return (
|
|
56
|
-
<div
|
|
64
|
+
<div
|
|
65
|
+
data-testid="cover"
|
|
66
|
+
className={makeClassName(classNames)}
|
|
67
|
+
style={titleStyle}
|
|
68
|
+
>
|
|
57
69
|
<div className={styles.image}>
|
|
58
70
|
<Image optimized={urls} ratio={mobileRatio} display="narrow" />
|
|
59
71
|
</div>
|
|
@@ -62,7 +74,7 @@ export const Cover: React.FC<CoverProps> = ({
|
|
|
62
74
|
<RenderBlocks
|
|
63
75
|
key={item.id}
|
|
64
76
|
block={item}
|
|
65
|
-
styleContext={
|
|
77
|
+
styleContext={blockStyleContext}
|
|
66
78
|
/>
|
|
67
79
|
))}
|
|
68
80
|
</div>
|
|
@@ -41,8 +41,9 @@
|
|
|
41
41
|
max-width: 650px;
|
|
42
42
|
margin: 0 auto;
|
|
43
43
|
|
|
44
|
-
border-radius: 2px;
|
|
45
44
|
background: #fff;
|
|
45
|
+
|
|
46
|
+
border-radius: 2px;
|
|
46
47
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
47
48
|
}
|
|
48
49
|
|
|
@@ -95,7 +96,9 @@
|
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
.super_full {
|
|
98
|
-
max-width:
|
|
99
|
+
max-width: 1335px;
|
|
100
|
+
margin-right: auto;
|
|
101
|
+
margin-left: auto;
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
.super_full .figure {
|
|
@@ -142,20 +145,20 @@
|
|
|
142
145
|
bottom: 0;
|
|
143
146
|
left: 0;
|
|
144
147
|
|
|
145
|
-
content: '';
|
|
146
|
-
pointer-events: none;
|
|
147
|
-
|
|
148
148
|
background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle fill-opacity='.5' fill='%23000' cx='35' cy='35' r='35'/%3E%3Cpath d='M35 66.75c2.816 0 5.585-.367 8.256-1.084.667-.18 1.062-.865.883-1.532-.18-.666-.866-1.062-1.533-.883-2.46.662-5.01 1-7.607 1-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25zm15.946-4.29c2.41-1.4 4.624-3.114 6.587-5.092.487-.49.484-1.282-.006-1.768s-1.282-.484-1.768.006c-1.81 1.823-3.852 3.403-6.07 4.694-.598.347-.8 1.113-.453 1.71.347.596 1.112.798 1.71.45zm11.632-11.716c1.382-2.417 2.442-5.007 3.147-7.713.174-.667-.226-1.35-.894-1.524-.667-.174-1.35.227-1.524.895-.65 2.492-1.625 4.877-2.898 7.102-.343.6-.135 1.363.464 1.706.6.343 1.363.135 1.706-.464zm4.172-15.912c-.015-2.816-.397-5.583-1.128-8.25-.183-.666-.87-1.058-1.537-.875-.665.183-1.057.87-.874 1.536.675 2.457 1.026 5.006 1.04 7.602.003.69.566 1.247 1.256 1.243.69-.003 1.247-.566 1.244-1.256zM62.376 18.91c-1.414-2.402-3.14-4.608-5.128-6.56-.492-.485-1.283-.478-1.767.015-.483.492-.476 1.284.016 1.767 1.833 1.8 3.423 3.834 4.726 6.046.35.595 1.117.793 1.712.443.594-.35.793-1.116.442-1.71zM50.598 7.34c-2.424-1.37-5.02-2.416-7.73-3.107-.668-.17-1.35.233-1.52.902-.17.67.234 1.35.903 1.52 2.496.637 4.886 1.6 7.118 2.86.6.34 1.363.13 1.703-.472.34-.602.13-1.364-.472-1.704zM34.665 3.25c-2.815.03-5.58.425-8.244 1.17-.664.187-1.052.877-.865 1.542.186.664.875 1.052 1.54.866 2.454-.687 5-1.052 7.596-1.078.69-.008 1.245-.573 1.238-1.263-.007-.692-.573-1.245-1.263-1.238zm-15.903 4.46c-2.393 1.426-4.59 3.163-6.533 5.162-.482.495-.47 1.287.024 1.768.496.48 1.287.47 1.768-.026 1.79-1.842 3.815-3.443 6.02-4.758.594-.354.788-1.12.434-1.714-.353-.593-1.12-.787-1.714-.433zM7.256 19.55c-1.357 2.43-2.39 5.032-3.065 7.745-.166.67.242 1.348.912 1.515.67.167 1.348-.24 1.515-.91.623-2.5 1.573-4.894 2.822-7.133.335-.603.12-1.365-.484-1.7-.603-.338-1.364-.122-1.7.48zM3.254 35.5c.043 2.813.454 5.577 1.214 8.237.19.663.882 1.047 1.545.857.664-.19 1.05-.88.86-1.545-.7-2.45-1.08-4.995-1.12-7.59-.01-.69-.578-1.24-1.27-1.23-.69.01-1.24.58-1.23 1.27zm4.543 15.88c1.44 2.385 3.188 4.573 5.197 6.505.497.478 1.29.463 1.767-.035.48-.497.464-1.29-.033-1.767-1.85-1.78-3.463-3.797-4.79-5.995-.356-.59-1.125-.78-1.716-.425-.59.357-.78 1.125-.423 1.716zm11.9 11.444c2.44 1.343 5.046 2.36 7.763 3.023.67.162 1.347-.25 1.51-.92.164-.67-.247-1.347-.918-1.51-2.502-.61-4.902-1.547-7.147-2.784-.605-.333-1.365-.113-1.698.492-.334.604-.114 1.365.49 1.698z' fill='%23FFF' fill-rule='nonzero'/%3E%3Cpath d='M19.838 34.99c0 4.39 3.297 7.265 7.35 7.265 2.437 0 4.39-1.008 5.776-2.54v-5.25h-6.636v2.162h4.178v2.184c-.63.59-1.89 1.26-3.317 1.26-2.774.002-4.832-2.14-4.832-5.08s2.058-5.062 4.83-5.062c1.576 0 2.9.82 3.634 1.87l2.015-1.134c-1.134-1.617-2.92-2.92-5.65-2.92-4.052 0-7.35 2.857-7.35 7.245zm15.487 6.992h2.457V27.977h-2.456v14.007zm5.24 0h2.457v-6.047h6.992v-2.163h-6.992V30.14l7.14-.002v-2.163h-9.597v14.008z' fill='%23FFF'/%3E%3C/g%3E%3C/svg%3E");
|
|
149
149
|
background-repeat: no-repeat;
|
|
150
150
|
background-position: center;
|
|
151
151
|
background-size: 70px 70px;
|
|
152
|
+
|
|
153
|
+
content: '';
|
|
154
|
+
pointer-events: none;
|
|
152
155
|
}
|
|
153
156
|
|
|
154
157
|
.control {
|
|
155
158
|
position: absolute;
|
|
156
|
-
z-index: 10;
|
|
157
159
|
right: -8px;
|
|
158
160
|
bottom: 12px;
|
|
161
|
+
z-index: 10;
|
|
159
162
|
|
|
160
163
|
width: 28px;
|
|
161
164
|
height: 28px;
|
|
@@ -163,12 +166,13 @@
|
|
|
163
166
|
padding: 0;
|
|
164
167
|
|
|
165
168
|
color: #fff;
|
|
166
|
-
|
|
167
|
-
border-radius: 14px;
|
|
169
|
+
|
|
168
170
|
background-color: rgba(0, 0, 0, 0.7);
|
|
169
171
|
background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E %3Cg fill='%23FEFEFE' fill-rule='evenodd' opacity='.7'%3E %3Cpath d='M12.726 16H3.275A3.276 3.276 0 0 1 0 12.725v-9.45A3.276 3.276 0 0 1 3.275 0h9.45A3.275 3.275 0 0 1 16 3.275v9.45A3.275 3.275 0 0 1 12.726 16zm0-2c.703 0 1.274-.571 1.274-1.275v-9.45C14 2.571 13.429 2 12.726 2H3.275C2.57 2 2 2.571 2 3.275v9.45C2 13.429 2.57 14 3.275 14h9.45z' fill-rule='nonzero'/%3E %3Cpath d='M4.97 8.307l7.046 7.046a.5.5 0 0 0 .708-.707l-7.4-7.4a.5.5 0 0 0-.708 0l-3.97 3.97a.5.5 0 0 0 .708.707L4.97 8.307z' fill-rule='nonzero'/%3E %3Cpath d='M10.875 5.832l3.771 3.771a.5.5 0 0 0 .707-.707l-4.125-4.125a.5.5 0 0 0-.707 0l-4.19 4.19a.5.5 0 1 0 .707.707l3.837-3.836z' fill-rule='nonzero'/%3E %3Cpath d='M5.865 4.269a.894.894 0 1 1-1.787 0 .894.894 0 0 1 1.787 0'/%3E %3C/g%3E %3C/svg%3E");
|
|
170
172
|
background-repeat: no-repeat;
|
|
171
173
|
background-position: center;
|
|
174
|
+
border-width: 0;
|
|
175
|
+
border-radius: 14px;
|
|
172
176
|
box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.15);
|
|
173
177
|
}
|
|
174
178
|
|
|
@@ -205,9 +209,8 @@
|
|
|
205
209
|
|
|
206
210
|
.isInCard:not(.cc):last-child .figure,
|
|
207
211
|
.isInSlide:not(.cc):last-child .figure {
|
|
208
|
-
overflow: hidden;
|
|
209
|
-
|
|
210
212
|
margin-bottom: -16px;
|
|
213
|
+
overflow: hidden;
|
|
211
214
|
|
|
212
215
|
border-radius: 0 0 8px 8px;
|
|
213
216
|
|
|
@@ -218,9 +221,8 @@
|
|
|
218
221
|
|
|
219
222
|
.isInCard.isInSensitiveBlock:not(.cc) .figure,
|
|
220
223
|
.isInSlide.isInSensitiveBlock:not(.cc) .figure {
|
|
221
|
-
overflow: visible;
|
|
222
|
-
|
|
223
224
|
margin-bottom: 0;
|
|
225
|
+
overflow: visible;
|
|
224
226
|
|
|
225
227
|
border-radius: 0;
|
|
226
228
|
}
|
|
@@ -292,8 +294,8 @@
|
|
|
292
294
|
.xs {
|
|
293
295
|
@media $contentWidth {
|
|
294
296
|
display: flex;
|
|
295
|
-
align-items: center;
|
|
296
297
|
flex-flow: row nowrap;
|
|
298
|
+
align-items: center;
|
|
297
299
|
}
|
|
298
300
|
}
|
|
299
301
|
|
|
@@ -22,9 +22,9 @@ export const GroupedBlock: React.FC<GroupedBlockProps> = ({
|
|
|
22
22
|
|
|
23
23
|
const normalizedBoxesWidth = block.data.map((item) => {
|
|
24
24
|
const width =
|
|
25
|
-
(item.data && item.data.width) || (item.item && item.item.data.
|
|
25
|
+
(item.data && item.data.width) || (item.item && item.item.data.width)
|
|
26
26
|
const height =
|
|
27
|
-
(item.data && item.data.height) || (item.item && item.item.data.
|
|
27
|
+
(item.data && item.data.height) || (item.item && item.item.data.height)
|
|
28
28
|
return width / (height / maxHeight)
|
|
29
29
|
})
|
|
30
30
|
|
|
@@ -4,7 +4,6 @@ import { MetaItem } from '../MetaItem'
|
|
|
4
4
|
import { MetaItemLive } from '../MetaItemLive'
|
|
5
5
|
import { DocumentItemsCount } from '../DocumentItemsCount'
|
|
6
6
|
import { Timestamp } from '../Timestamp'
|
|
7
|
-
import { SvgSymbol } from '../SvgSymbol'
|
|
8
7
|
import { PreviewWrapper } from '../_storybook/PreviewWrapper'
|
|
9
8
|
|
|
10
9
|
import styles from './Meta.stories.module.css'
|
package/src/types.ts
CHANGED
|
@@ -5,13 +5,7 @@ export interface OptimizedImageItem {
|
|
|
5
5
|
'2x_webp': string
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export type CallToActions =
|
|
9
|
-
| 'fb'
|
|
10
|
-
| 'tw'
|
|
11
|
-
| 'tg'
|
|
12
|
-
| 'reaction'
|
|
13
|
-
| 'pdf'
|
|
14
|
-
| 'cross'
|
|
8
|
+
export type CallToActions = 'fb' | 'tw' | 'tg' | 'reaction' | 'pdf' | 'cross'
|
|
15
9
|
|
|
16
10
|
export type LightboxImage = {
|
|
17
11
|
original: string
|