@meduza/ui-kit-2 1.4.7-b → 1.4.8
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/Tag/Tag.types.d.ts +1 -1
- package/dist/ui-kit-2.cjs.development.js +17 -12
- 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 +17 -12
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +132 -17
- package/dist/ui-kit.css +132 -17
- package/package.json +13 -13
- 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/Meta/Meta.module.css +8 -0
- package/src/Meta/Meta.stories.tsx +0 -1
- package/src/RelatedRichBlock/RelatedRichBlock.module.css +54 -16
- package/src/RelatedRichBlock/index.tsx +2 -2
- package/src/RichTitle/RichTitle.module.css +20 -0
- package/src/Tag/Tag.module.css +4 -0
- package/src/Tag/Tag.types.ts +1 -0
- package/src/types.ts +1 -7
package/dist/ui-kit-game.css
CHANGED
|
@@ -1293,6 +1293,10 @@
|
|
|
1293
1293
|
color: inherit;
|
|
1294
1294
|
}
|
|
1295
1295
|
|
|
1296
|
+
.Tag-module_overlay__Xw8fF {
|
|
1297
|
+
color: color-mix(in srgb, var(--overlayColor, #fff) 80%, transparent);
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1296
1300
|
@media only screen and (min-width: 40.625em) {
|
|
1297
1301
|
|
|
1298
1302
|
.Tag-module_is1to1__V-fH5,
|
|
@@ -2395,6 +2399,10 @@
|
|
|
2395
2399
|
fill: currentColor;
|
|
2396
2400
|
}
|
|
2397
2401
|
|
|
2402
|
+
.Meta-module_overlay__ZRKZy {
|
|
2403
|
+
color: color-mix(in srgb, var(--overlayColor, #fff) 70%, transparent);
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2398
2406
|
.Meta-module_dark__tLQNJ,
|
|
2399
2407
|
.Meta-module_isDark__xSl1J {
|
|
2400
2408
|
color: rgba(0, 0, 0, 0.4);
|
|
@@ -2431,6 +2439,10 @@
|
|
|
2431
2439
|
color: #757575;
|
|
2432
2440
|
}
|
|
2433
2441
|
|
|
2442
|
+
.Meta-module_richRelated__fIo0x {
|
|
2443
|
+
color: rgba(0, 0, 0, 0.4);
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2434
2446
|
.Meta-module_isInBookRelated__Ohidg {
|
|
2435
2447
|
opacity: 0.5;
|
|
2436
2448
|
}
|
|
@@ -3254,6 +3266,29 @@
|
|
|
3254
3266
|
}
|
|
3255
3267
|
}
|
|
3256
3268
|
|
|
3269
|
+
.RichTitle-module_root__U5XQu.RichTitle-module_richRelated__cvt3o {
|
|
3270
|
+
margin: 0;
|
|
3271
|
+
|
|
3272
|
+
font-size: 18px;
|
|
3273
|
+
line-height: 1.3;
|
|
3274
|
+
letter-spacing: normal;
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
.RichTitle-module_root__U5XQu.RichTitle-module_richRelated__cvt3o span {
|
|
3278
|
+
margin-top: 0;
|
|
3279
|
+
padding-top: 0;
|
|
3280
|
+
|
|
3281
|
+
font-size: 16px;
|
|
3282
|
+
line-height: 1.3;
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
@media only screen and (min-width: 40.625em) {
|
|
3286
|
+
|
|
3287
|
+
.RichTitle-module_root__U5XQu.RichTitle-module_richRelated__cvt3o span {
|
|
3288
|
+
font-size: 18px;
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3257
3292
|
.RichTitle-module_isInBookRelated__LcCPV {
|
|
3258
3293
|
margin: 6px 0 20px;
|
|
3259
3294
|
}
|
|
@@ -5522,6 +5557,34 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
|
|
|
5522
5557
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
5523
5558
|
}
|
|
5524
5559
|
|
|
5560
|
+
.Cover-module_isOnImage__J296p {
|
|
5561
|
+
--overlayColor: var(--titleColor, #fff);
|
|
5562
|
+
}
|
|
5563
|
+
|
|
5564
|
+
.Cover-module_isOnImage__J296p .Cover-module_image__frrrH::after {
|
|
5565
|
+
position: absolute;
|
|
5566
|
+
top: 0;
|
|
5567
|
+
right: 0;
|
|
5568
|
+
bottom: 0;
|
|
5569
|
+
left: 0;
|
|
5570
|
+
z-index: 1;
|
|
5571
|
+
|
|
5572
|
+
background-image: var(--titleGradient, none);
|
|
5573
|
+
|
|
5574
|
+
content: '';
|
|
5575
|
+
}
|
|
5576
|
+
|
|
5577
|
+
.Cover-module_isOnImage__J296p .Cover-module_body__eJpUI {
|
|
5578
|
+
top: 0;
|
|
5579
|
+
|
|
5580
|
+
justify-content: var(--titlePosition, flex-end);
|
|
5581
|
+
|
|
5582
|
+
padding-top: 20px;
|
|
5583
|
+
|
|
5584
|
+
color: var(--titleColor, #fff);
|
|
5585
|
+
text-shadow: none;
|
|
5586
|
+
}
|
|
5587
|
+
|
|
5525
5588
|
.Cover-module_control__WP0G3 {
|
|
5526
5589
|
position: absolute;
|
|
5527
5590
|
right: 49px;
|
|
@@ -6028,11 +6091,12 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
|
|
|
6028
6091
|
|
|
6029
6092
|
display: flex;
|
|
6030
6093
|
flex-flow: column nowrap;
|
|
6031
|
-
gap:
|
|
6094
|
+
gap: 30px;
|
|
6032
6095
|
|
|
6033
|
-
padding:
|
|
6096
|
+
padding: 12px 20px 20px;
|
|
6034
6097
|
overflow: hidden;
|
|
6035
6098
|
|
|
6099
|
+
color: #000;
|
|
6036
6100
|
text-decoration: none;
|
|
6037
6101
|
|
|
6038
6102
|
background-color: #f7f7f7;
|
|
@@ -6043,38 +6107,74 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
|
|
|
6043
6107
|
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
|
|
6044
6108
|
}
|
|
6045
6109
|
|
|
6046
|
-
|
|
6110
|
+
.RelatedRichBlock-module_root__-SEe7 {
|
|
6111
|
+
margin: 16px -20px;
|
|
6112
|
+
}
|
|
6047
6113
|
|
|
6048
|
-
|
|
6049
|
-
|
|
6114
|
+
@media only screen and (min-width: 40.625em) {
|
|
6115
|
+
|
|
6116
|
+
.RelatedRichBlock-module_root__-SEe7 {
|
|
6117
|
+
margin-top: 25px;
|
|
6118
|
+
margin-bottom: 25px;
|
|
6050
6119
|
}
|
|
6051
6120
|
}
|
|
6052
6121
|
|
|
6053
|
-
.RelatedRichBlock-module_root__-SEe7 {
|
|
6054
|
-
margin:
|
|
6122
|
+
.RelatedRichBlock-module_root__-SEe7:first-child {
|
|
6123
|
+
margin-top: 0;
|
|
6124
|
+
}
|
|
6125
|
+
|
|
6126
|
+
.RelatedRichBlock-module_root__-SEe7:last-child {
|
|
6127
|
+
margin-bottom: 0;
|
|
6128
|
+
}
|
|
6129
|
+
|
|
6130
|
+
.RelatedRichBlock-module_isInCard__F3ip3 {
|
|
6131
|
+
margin-right: -11px;
|
|
6132
|
+
margin-left: -11px;
|
|
6055
6133
|
}
|
|
6056
6134
|
|
|
6057
6135
|
@media only screen and (min-width: 40.625em) {
|
|
6058
6136
|
|
|
6059
|
-
.RelatedRichBlock-
|
|
6060
|
-
margin:
|
|
6137
|
+
.RelatedRichBlock-module_isInCard__F3ip3 {
|
|
6138
|
+
margin-right: 0;
|
|
6139
|
+
margin-left: 0;
|
|
6061
6140
|
}
|
|
6062
6141
|
}
|
|
6063
6142
|
|
|
6064
6143
|
.RelatedRichBlock-module_content__iyMrN {
|
|
6065
6144
|
display: flex;
|
|
6066
|
-
flex-flow:
|
|
6145
|
+
flex-flow: column nowrap;
|
|
6067
6146
|
gap: 20px;
|
|
6068
6147
|
}
|
|
6069
6148
|
|
|
6149
|
+
@media only screen and (min-width: 40.625em) {
|
|
6150
|
+
|
|
6151
|
+
.RelatedRichBlock-module_content__iyMrN {
|
|
6152
|
+
flex-flow: row nowrap;
|
|
6153
|
+
}
|
|
6154
|
+
}
|
|
6155
|
+
|
|
6070
6156
|
.RelatedRichBlock-module_cover__3gnIx {
|
|
6071
6157
|
flex-shrink: 0;
|
|
6072
|
-
width:
|
|
6158
|
+
width: 100%;
|
|
6159
|
+
}
|
|
6160
|
+
|
|
6161
|
+
@media only screen and (min-width: 40.625em) {
|
|
6162
|
+
|
|
6163
|
+
.RelatedRichBlock-module_cover__3gnIx {
|
|
6164
|
+
width: 200px;
|
|
6073
6165
|
}
|
|
6166
|
+
}
|
|
6074
6167
|
|
|
6075
6168
|
.RelatedRichBlock-module_body__XhS0U {
|
|
6076
6169
|
display: flex;
|
|
6077
6170
|
flex-flow: column nowrap;
|
|
6171
|
+
gap: 16px;
|
|
6172
|
+
|
|
6173
|
+
transition: color 0.15s;
|
|
6174
|
+
}
|
|
6175
|
+
|
|
6176
|
+
.RelatedRichBlock-module_root__-SEe7:hover .RelatedRichBlock-module_body__XhS0U {
|
|
6177
|
+
color: #5c5c5c;
|
|
6078
6178
|
}
|
|
6079
6179
|
|
|
6080
6180
|
.RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx {
|
|
@@ -6090,21 +6190,36 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
|
|
|
6090
6190
|
}
|
|
6091
6191
|
|
|
6092
6192
|
.RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx > div {
|
|
6093
|
-
width:
|
|
6094
|
-
height:
|
|
6193
|
+
width: 180px;
|
|
6194
|
+
height: 180px;
|
|
6095
6195
|
}
|
|
6096
6196
|
|
|
6197
|
+
@media only screen and (min-width: 40.625em) {
|
|
6198
|
+
|
|
6199
|
+
.RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx > div {
|
|
6200
|
+
width: 100px;
|
|
6201
|
+
height: 100px;
|
|
6202
|
+
}
|
|
6203
|
+
}
|
|
6204
|
+
|
|
6097
6205
|
.RelatedRichBlock-module_tag__c18sv {
|
|
6098
|
-
|
|
6206
|
+
display: flex;
|
|
6207
|
+
|
|
6208
|
+
color: #7f7f7f;
|
|
6099
6209
|
}
|
|
6100
6210
|
|
|
6101
6211
|
.RelatedRichBlock-module_center__KANd- {
|
|
6102
|
-
width: 100%;
|
|
6103
6212
|
max-width: 650px;
|
|
6104
|
-
margin-right: auto;
|
|
6105
|
-
margin-left: auto;
|
|
6106
6213
|
}
|
|
6107
6214
|
|
|
6215
|
+
@media only screen and (min-width: 32em) {
|
|
6216
|
+
|
|
6217
|
+
.RelatedRichBlock-module_center__KANd- {
|
|
6218
|
+
margin-right: auto;
|
|
6219
|
+
margin-left: auto;
|
|
6220
|
+
}
|
|
6221
|
+
}
|
|
6222
|
+
|
|
6108
6223
|
/* Display */
|
|
6109
6224
|
|
|
6110
6225
|
@media only screen and (min-width: 32em) {
|
package/dist/ui-kit.css
CHANGED
|
@@ -1293,6 +1293,10 @@
|
|
|
1293
1293
|
color: inherit;
|
|
1294
1294
|
}
|
|
1295
1295
|
|
|
1296
|
+
.Tag-module_overlay__Xw8fF {
|
|
1297
|
+
color: color-mix(in srgb, var(--overlayColor, #fff) 80%, transparent);
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1296
1300
|
@media only screen and (min-width: 64em) {
|
|
1297
1301
|
|
|
1298
1302
|
.Tag-module_is1to1__V-fH5,
|
|
@@ -2395,6 +2399,10 @@
|
|
|
2395
2399
|
fill: currentColor;
|
|
2396
2400
|
}
|
|
2397
2401
|
|
|
2402
|
+
.Meta-module_overlay__ZRKZy {
|
|
2403
|
+
color: color-mix(in srgb, var(--overlayColor, #fff) 70%, transparent);
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2398
2406
|
.Meta-module_dark__tLQNJ,
|
|
2399
2407
|
.Meta-module_isDark__xSl1J {
|
|
2400
2408
|
color: rgba(0, 0, 0, 0.4);
|
|
@@ -2431,6 +2439,10 @@
|
|
|
2431
2439
|
color: #757575;
|
|
2432
2440
|
}
|
|
2433
2441
|
|
|
2442
|
+
.Meta-module_richRelated__fIo0x {
|
|
2443
|
+
color: rgba(0, 0, 0, 0.4);
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2434
2446
|
.Meta-module_isInBookRelated__Ohidg {
|
|
2435
2447
|
opacity: 0.5;
|
|
2436
2448
|
}
|
|
@@ -3254,6 +3266,29 @@
|
|
|
3254
3266
|
}
|
|
3255
3267
|
}
|
|
3256
3268
|
|
|
3269
|
+
.RichTitle-module_root__U5XQu.RichTitle-module_richRelated__cvt3o {
|
|
3270
|
+
margin: 0;
|
|
3271
|
+
|
|
3272
|
+
font-size: 18px;
|
|
3273
|
+
line-height: 1.3;
|
|
3274
|
+
letter-spacing: normal;
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
.RichTitle-module_root__U5XQu.RichTitle-module_richRelated__cvt3o span {
|
|
3278
|
+
margin-top: 0;
|
|
3279
|
+
padding-top: 0;
|
|
3280
|
+
|
|
3281
|
+
font-size: 16px;
|
|
3282
|
+
line-height: 1.3;
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
@media only screen and (min-width: 64em) {
|
|
3286
|
+
|
|
3287
|
+
.RichTitle-module_root__U5XQu.RichTitle-module_richRelated__cvt3o span {
|
|
3288
|
+
font-size: 18px;
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3257
3292
|
.RichTitle-module_isInBookRelated__LcCPV {
|
|
3258
3293
|
margin: 6px 0 20px;
|
|
3259
3294
|
}
|
|
@@ -5522,6 +5557,34 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
|
|
|
5522
5557
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
5523
5558
|
}
|
|
5524
5559
|
|
|
5560
|
+
.Cover-module_isOnImage__J296p {
|
|
5561
|
+
--overlayColor: var(--titleColor, #fff);
|
|
5562
|
+
}
|
|
5563
|
+
|
|
5564
|
+
.Cover-module_isOnImage__J296p .Cover-module_image__frrrH::after {
|
|
5565
|
+
position: absolute;
|
|
5566
|
+
top: 0;
|
|
5567
|
+
right: 0;
|
|
5568
|
+
bottom: 0;
|
|
5569
|
+
left: 0;
|
|
5570
|
+
z-index: 1;
|
|
5571
|
+
|
|
5572
|
+
background-image: var(--titleGradient, none);
|
|
5573
|
+
|
|
5574
|
+
content: '';
|
|
5575
|
+
}
|
|
5576
|
+
|
|
5577
|
+
.Cover-module_isOnImage__J296p .Cover-module_body__eJpUI {
|
|
5578
|
+
top: 0;
|
|
5579
|
+
|
|
5580
|
+
justify-content: var(--titlePosition, flex-end);
|
|
5581
|
+
|
|
5582
|
+
padding-top: 20px;
|
|
5583
|
+
|
|
5584
|
+
color: var(--titleColor, #fff);
|
|
5585
|
+
text-shadow: none;
|
|
5586
|
+
}
|
|
5587
|
+
|
|
5525
5588
|
.Cover-module_control__WP0G3 {
|
|
5526
5589
|
position: absolute;
|
|
5527
5590
|
right: 49px;
|
|
@@ -6028,11 +6091,12 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
|
|
|
6028
6091
|
|
|
6029
6092
|
display: flex;
|
|
6030
6093
|
flex-flow: column nowrap;
|
|
6031
|
-
gap:
|
|
6094
|
+
gap: 30px;
|
|
6032
6095
|
|
|
6033
|
-
padding:
|
|
6096
|
+
padding: 12px 20px 20px;
|
|
6034
6097
|
overflow: hidden;
|
|
6035
6098
|
|
|
6099
|
+
color: #000;
|
|
6036
6100
|
text-decoration: none;
|
|
6037
6101
|
|
|
6038
6102
|
background-color: #f7f7f7;
|
|
@@ -6043,38 +6107,74 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
|
|
|
6043
6107
|
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
|
|
6044
6108
|
}
|
|
6045
6109
|
|
|
6046
|
-
|
|
6110
|
+
.RelatedRichBlock-module_root__-SEe7 {
|
|
6111
|
+
margin: 16px -20px;
|
|
6112
|
+
}
|
|
6047
6113
|
|
|
6048
|
-
|
|
6049
|
-
|
|
6114
|
+
@media only screen and (min-width: 48em) {
|
|
6115
|
+
|
|
6116
|
+
.RelatedRichBlock-module_root__-SEe7 {
|
|
6117
|
+
margin-top: 25px;
|
|
6118
|
+
margin-bottom: 25px;
|
|
6050
6119
|
}
|
|
6051
6120
|
}
|
|
6052
6121
|
|
|
6053
|
-
.RelatedRichBlock-module_root__-SEe7 {
|
|
6054
|
-
margin:
|
|
6122
|
+
.RelatedRichBlock-module_root__-SEe7:first-child {
|
|
6123
|
+
margin-top: 0;
|
|
6124
|
+
}
|
|
6125
|
+
|
|
6126
|
+
.RelatedRichBlock-module_root__-SEe7:last-child {
|
|
6127
|
+
margin-bottom: 0;
|
|
6128
|
+
}
|
|
6129
|
+
|
|
6130
|
+
.RelatedRichBlock-module_isInCard__F3ip3 {
|
|
6131
|
+
margin-right: -11px;
|
|
6132
|
+
margin-left: -11px;
|
|
6055
6133
|
}
|
|
6056
6134
|
|
|
6057
6135
|
@media only screen and (min-width: 48em) {
|
|
6058
6136
|
|
|
6059
|
-
.RelatedRichBlock-
|
|
6060
|
-
margin:
|
|
6137
|
+
.RelatedRichBlock-module_isInCard__F3ip3 {
|
|
6138
|
+
margin-right: 0;
|
|
6139
|
+
margin-left: 0;
|
|
6061
6140
|
}
|
|
6062
6141
|
}
|
|
6063
6142
|
|
|
6064
6143
|
.RelatedRichBlock-module_content__iyMrN {
|
|
6065
6144
|
display: flex;
|
|
6066
|
-
flex-flow:
|
|
6145
|
+
flex-flow: column nowrap;
|
|
6067
6146
|
gap: 20px;
|
|
6068
6147
|
}
|
|
6069
6148
|
|
|
6149
|
+
@media only screen and (min-width: 48em) {
|
|
6150
|
+
|
|
6151
|
+
.RelatedRichBlock-module_content__iyMrN {
|
|
6152
|
+
flex-flow: row nowrap;
|
|
6153
|
+
}
|
|
6154
|
+
}
|
|
6155
|
+
|
|
6070
6156
|
.RelatedRichBlock-module_cover__3gnIx {
|
|
6071
6157
|
flex-shrink: 0;
|
|
6072
|
-
width:
|
|
6158
|
+
width: 100%;
|
|
6159
|
+
}
|
|
6160
|
+
|
|
6161
|
+
@media only screen and (min-width: 48em) {
|
|
6162
|
+
|
|
6163
|
+
.RelatedRichBlock-module_cover__3gnIx {
|
|
6164
|
+
width: 200px;
|
|
6073
6165
|
}
|
|
6166
|
+
}
|
|
6074
6167
|
|
|
6075
6168
|
.RelatedRichBlock-module_body__XhS0U {
|
|
6076
6169
|
display: flex;
|
|
6077
6170
|
flex-flow: column nowrap;
|
|
6171
|
+
gap: 16px;
|
|
6172
|
+
|
|
6173
|
+
transition: color 0.15s;
|
|
6174
|
+
}
|
|
6175
|
+
|
|
6176
|
+
.RelatedRichBlock-module_root__-SEe7:hover .RelatedRichBlock-module_body__XhS0U {
|
|
6177
|
+
color: #5c5c5c;
|
|
6078
6178
|
}
|
|
6079
6179
|
|
|
6080
6180
|
.RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx {
|
|
@@ -6090,21 +6190,36 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
|
|
|
6090
6190
|
}
|
|
6091
6191
|
|
|
6092
6192
|
.RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx > div {
|
|
6093
|
-
width:
|
|
6094
|
-
height:
|
|
6193
|
+
width: 180px;
|
|
6194
|
+
height: 180px;
|
|
6095
6195
|
}
|
|
6096
6196
|
|
|
6197
|
+
@media only screen and (min-width: 48em) {
|
|
6198
|
+
|
|
6199
|
+
.RelatedRichBlock-module_isCard__wkMw- .RelatedRichBlock-module_cover__3gnIx > div {
|
|
6200
|
+
width: 100px;
|
|
6201
|
+
height: 100px;
|
|
6202
|
+
}
|
|
6203
|
+
}
|
|
6204
|
+
|
|
6097
6205
|
.RelatedRichBlock-module_tag__c18sv {
|
|
6098
|
-
|
|
6206
|
+
display: flex;
|
|
6207
|
+
|
|
6208
|
+
color: #7f7f7f;
|
|
6099
6209
|
}
|
|
6100
6210
|
|
|
6101
6211
|
.RelatedRichBlock-module_center__KANd- {
|
|
6102
|
-
width: 100%;
|
|
6103
6212
|
max-width: 650px;
|
|
6104
|
-
margin-right: auto;
|
|
6105
|
-
margin-left: auto;
|
|
6106
6213
|
}
|
|
6107
6214
|
|
|
6215
|
+
@media only screen and (min-width: 32em) {
|
|
6216
|
+
|
|
6217
|
+
.RelatedRichBlock-module_center__KANd- {
|
|
6218
|
+
margin-right: auto;
|
|
6219
|
+
margin-left: auto;
|
|
6220
|
+
}
|
|
6221
|
+
}
|
|
6222
|
+
|
|
6108
6223
|
/* Display */
|
|
6109
6224
|
|
|
6110
6225
|
@media only screen and (min-width: 32em) {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.4.
|
|
2
|
+
"version": "1.4.8",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"description": "UIKit for Meduza",
|
|
5
5
|
"repository": "https://github.com/meduza-corp/ui-kit-2.git",
|
|
@@ -15,6 +15,17 @@
|
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=16"
|
|
17
17
|
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"start": "dts watch --tsconfig ./tsconfig.build.json --mode development",
|
|
20
|
+
"build": "dts build --tsconfig ./tsconfig.build.json --mode production && node build.sh",
|
|
21
|
+
"generate": "plop --plopfile generators/index.js",
|
|
22
|
+
"test": "dts test --passWithNoTests",
|
|
23
|
+
"test:watch": "dts test --watch",
|
|
24
|
+
"test:coverage": "dts test --coverage",
|
|
25
|
+
"lint": "eslint src",
|
|
26
|
+
"storybook": "storybook dev -p 6006",
|
|
27
|
+
"build-storybook": "storybook build"
|
|
28
|
+
},
|
|
18
29
|
"peerDependencies": {
|
|
19
30
|
"dayjs": "^1.10.3",
|
|
20
31
|
"react": ">=16",
|
|
@@ -117,16 +128,5 @@
|
|
|
117
128
|
},
|
|
118
129
|
"dependencies": {
|
|
119
130
|
"embla-carousel-react": "^8.6.0"
|
|
120
|
-
},
|
|
121
|
-
"scripts": {
|
|
122
|
-
"start": "dts watch --tsconfig ./tsconfig.build.json --mode development",
|
|
123
|
-
"build": "dts build --tsconfig ./tsconfig.build.json --mode production && node build.sh",
|
|
124
|
-
"generate": "plop --plopfile generators/index.js",
|
|
125
|
-
"test": "dts test --passWithNoTests",
|
|
126
|
-
"test:watch": "dts test --watch",
|
|
127
|
-
"test:coverage": "dts test --coverage",
|
|
128
|
-
"lint": "eslint src",
|
|
129
|
-
"storybook": "storybook dev -p 6006",
|
|
130
|
-
"build-storybook": "storybook build"
|
|
131
131
|
}
|
|
132
|
-
}
|
|
132
|
+
}
|
|
@@ -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>
|
package/src/Meta/Meta.module.css
CHANGED
|
@@ -67,6 +67,10 @@
|
|
|
67
67
|
fill: currentColor;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
.overlay {
|
|
71
|
+
color: color-mix(in srgb, var(--overlayColor, #fff) 70%, transparent);
|
|
72
|
+
}
|
|
73
|
+
|
|
70
74
|
.dark,
|
|
71
75
|
.isDark {
|
|
72
76
|
color: rgba(0, 0, 0, 0.4);
|
|
@@ -96,6 +100,10 @@
|
|
|
96
100
|
color: #757575;
|
|
97
101
|
}
|
|
98
102
|
|
|
103
|
+
.richRelated {
|
|
104
|
+
color: rgba(0, 0, 0, 0.4);
|
|
105
|
+
}
|
|
106
|
+
|
|
99
107
|
.isInBookRelated {
|
|
100
108
|
opacity: 0.5;
|
|
101
109
|
}
|
|
@@ -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'
|