@meduza/ui-kit-2 0.1.93 → 0.1.94

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.93",
2
+ "version": "0.1.94",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -5,17 +5,18 @@
5
5
  z-index: 10;
6
6
 
7
7
  display: block;
8
- overflow: hidden;
9
8
 
10
9
  margin: calc(15rem / 16) -20px;
11
10
  padding: 42px 20px 50px;
11
+ overflow: hidden;
12
+
13
+ font-family: $secondaryFont;
12
14
 
13
15
  text-decoration: none;
14
16
 
15
- outline-width: 0;
16
17
  background-color: #f66861;
17
18
 
18
- font-family: $secondaryFont;
19
+ outline-width: 0;
19
20
 
20
21
  @media $mobile {
21
22
  margin: 25px 0 20px;
@@ -33,15 +34,15 @@
33
34
  max-width: 852px;
34
35
  margin: 0 auto;
35
36
 
36
- transform: translateZ(0);
37
+ color: #fff;
37
38
  text-align: center;
38
39
 
39
- color: #fff;
40
+ transform: translateZ(0);
40
41
  }
41
42
 
42
43
  .title {
43
- font-size: 20px;
44
44
  font-weight: 700;
45
+ font-size: 20px;
45
46
  line-height: 25px;
46
47
 
47
48
  @media $mobile {
@@ -53,9 +54,10 @@
53
54
  .text {
54
55
  margin: 0;
55
56
 
56
- font-family: $primaryFont;
57
- font-size: 21px;
58
57
  font-weight: normal;
58
+ font-size: 21px;
59
+
60
+ font-family: $primaryFont;
59
61
  line-height: 25px;
60
62
 
61
63
  @media $mobile {
@@ -66,8 +68,8 @@
66
68
 
67
69
  .cta {
68
70
  display: flex;
69
- align-items: center;
70
71
  flex-flow: column nowrap;
72
+ align-items: center;
71
73
  justify-content: center;
72
74
 
73
75
  margin-top: 45px;
@@ -80,25 +82,25 @@
80
82
  .cta a {
81
83
  display: block;
82
84
 
83
- text-align: center;
84
- text-decoration: none;
85
- letter-spacing: 1px;
86
- text-transform: uppercase;
87
-
88
85
  color: rgba(246, 104, 97, 1);
86
+ font-weight: 600;
89
87
 
90
88
  font-size: 11px;
91
- font-weight: 600;
92
89
  line-height: 16px;
90
+ letter-spacing: 1px;
91
+
92
+ text-align: center;
93
+ text-transform: uppercase;
94
+ text-decoration: none;
93
95
  }
94
96
 
95
97
  .cta a::after {
96
98
  position: absolute;
97
- z-index: 1;
98
99
  top: 0;
99
100
  right: 0;
100
101
  bottom: 0;
101
102
  left: 0;
103
+ z-index: 1;
102
104
 
103
105
  content: '';
104
106
  }
@@ -114,19 +116,21 @@
114
116
 
115
117
  .ctaInner::after {
116
118
  position: absolute;
117
- z-index: -1;
118
119
  top: 0;
119
120
  right: 0;
120
121
  bottom: 0;
121
122
  left: 0;
123
+ z-index: -1;
122
124
 
123
- content: '';
124
- transition: opacity 250ms ease;
125
+ background-color: #eafe0b;
125
126
 
126
127
  border-radius: 40px;
127
- background-color: #eafe0b;
128
128
 
129
129
  filter: blur(10px);
130
+
131
+ transition: opacity 250ms ease;
132
+
133
+ content: '';
130
134
  }
131
135
 
132
136
  .center {
@@ -10,5 +10,4 @@ export interface MaterialNoteProps {
10
10
  type: string
11
11
  }
12
12
  styleContext?: string | string[]
13
- lang?: 'ru' | 'en'
14
13
  }
@@ -3,13 +3,10 @@ import { MaterialNoteProps } from './MaterialNote.types'
3
3
  import makeStyleContext from '../utils/makeStyleContext'
4
4
  import { makeClassName, ClassNames } from '../utils/makeClassName'
5
5
 
6
- import { DonatesTeaser } from '../DonatesTeaser'
7
-
8
6
  import styles from './MaterialNote.module.css'
9
7
 
10
8
  export const MaterialNote: React.FC<MaterialNoteProps> = ({
11
9
  block: { data },
12
- lang,
13
10
  styleContext
14
11
  }) => {
15
12
  let classNames: ClassNames = [[styles.root, true]]
@@ -20,7 +17,6 @@ export const MaterialNote: React.FC<MaterialNoteProps> = ({
20
17
 
21
18
  return (
22
19
  <>
23
- <DonatesTeaser styleContext={styleContext} lang={lang} />
24
20
  <div data-testid="material-note" className={makeClassName(classNames)}>
25
21
  {data &&
26
22
  data.map((item) => (
@@ -360,6 +360,10 @@
360
360
  "length": 84,
361
361
  "id": "15-51cb069a4b41ba245b0db5b47b7a6a4726589fb8f87ce86871c71a999c4f4230"
362
362
  },
363
+ {
364
+ "type": "dotanes",
365
+ "id": "16-4f353cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
366
+ },
363
367
  {
364
368
  "type": "material_note",
365
369
  "id": "17-4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
@@ -16,6 +16,7 @@ import { MetaContainer } from '../Meta/MetaContainer'
16
16
  import { Table } from '../Table'
17
17
  import { MaterialNote } from '../MaterialNote'
18
18
  import { SensitiveBlock } from '../SensitiveBlock'
19
+ import { DonatesTeaser } from '../DonatesTeaser'
19
20
 
20
21
  export const RenderBlocks: React.FC<RenderBlocksProps> = ({
21
22
  block,
@@ -119,14 +120,11 @@ export const RenderBlocks: React.FC<RenderBlocksProps> = ({
119
120
  case 'grouped':
120
121
  return <GroupedBlock block={block} styleContext={styleContext} />
121
122
 
123
+ case 'dotanes':
124
+ return <DonatesTeaser styleContext={styleContext} lang={lang} />
125
+
122
126
  case 'material_note':
123
- return (
124
- <MaterialNote
125
- block={block}
126
- lang={block.lang}
127
- styleContext={styleContext}
128
- />
129
- )
127
+ return <MaterialNote block={block} styleContext={styleContext} />
130
128
 
131
129
  default: {
132
130
  return null