@alfalab/core-components-bank-card 4.2.3 → 4.2.4

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/Component.js CHANGED
@@ -17,7 +17,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
17
17
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
19
19
 
20
- var styles = {"component":"bank-card__component_fqbvj","aspectRatioContainer":"bank-card__aspectRatioContainer_fqbvj","content":"bank-card__content_fqbvj","label":"bank-card__label_fqbvj","focused":"bank-card__focused_fqbvj","filled":"bank-card__filled_fqbvj","input":"bank-card__input_fqbvj","bankLogo":"bank-card__bankLogo_fqbvj","brandLogo":"bank-card__brandLogo_fqbvj","usePhoto":"bank-card__usePhoto_fqbvj"};
20
+ var styles = {"component":"bank-card__component_16z6i","aspectRatioContainer":"bank-card__aspectRatioContainer_16z6i","content":"bank-card__content_16z6i","label":"bank-card__label_16z6i","focused":"bank-card__focused_16z6i","filled":"bank-card__filled_16z6i","input":"bank-card__input_16z6i","bankLogo":"bank-card__bankLogo_16z6i","brandLogo":"bank-card__brandLogo_16z6i","usePhoto":"bank-card__usePhoto_16z6i"};
21
21
  require('./index.css')
22
22
 
23
23
  // prettier-ignore
@@ -8,7 +8,7 @@ import { MastercardLIcon } from '@alfalab/icons-logotype/MastercardLIcon';
8
8
  import { MirXxlIcon } from '@alfalab/icons-logotype/MirXxlIcon';
9
9
  import { validateCardNumber } from './utils.js';
10
10
 
11
- var styles = {"component":"bank-card__component_fqbvj","aspectRatioContainer":"bank-card__aspectRatioContainer_fqbvj","content":"bank-card__content_fqbvj","label":"bank-card__label_fqbvj","focused":"bank-card__focused_fqbvj","filled":"bank-card__filled_fqbvj","input":"bank-card__input_fqbvj","bankLogo":"bank-card__bankLogo_fqbvj","brandLogo":"bank-card__brandLogo_fqbvj","usePhoto":"bank-card__usePhoto_fqbvj"};
11
+ var styles = {"component":"bank-card__component_16z6i","aspectRatioContainer":"bank-card__aspectRatioContainer_16z6i","content":"bank-card__content_16z6i","label":"bank-card__label_16z6i","focused":"bank-card__focused_16z6i","filled":"bank-card__filled_16z6i","input":"bank-card__input_16z6i","bankLogo":"bank-card__bankLogo_16z6i","brandLogo":"bank-card__brandLogo_16z6i","usePhoto":"bank-card__usePhoto_16z6i"};
12
12
  require('./index.css')
13
13
 
14
14
  // prettier-ignore
@@ -1,4 +1,4 @@
1
- /* hash: 1pskk */
1
+ /* hash: 1e3vl */
2
2
  :root {
3
3
  --color-black: #000;
4
4
  --color-black-60: rgba(0, 0, 0, 0.6);
@@ -23,7 +23,7 @@
23
23
  :root {
24
24
  --border-radius-l: 12px;
25
25
  }
26
- .bank-card__component_fqbvj {
26
+ .bank-card__component_16z6i {
27
27
  /* TODO: как это будет собираться и работать в webView */
28
28
 
29
29
  /* focus */
@@ -35,11 +35,11 @@
35
35
 
36
36
  font-family: var(--font-family-styrene);
37
37
  }
38
- .bank-card__aspectRatioContainer_fqbvj {
38
+ .bank-card__aspectRatioContainer_16z6i {
39
39
  /* Эталонный размер 343x215 */
40
40
  padding-bottom: 62.6%;
41
41
  }
42
- .bank-card__content_fqbvj {
42
+ .bank-card__content_16z6i {
43
43
  position: absolute;
44
44
  top: 0;
45
45
  right: 0;
@@ -52,7 +52,7 @@
52
52
  border-radius: var(--border-radius-l);
53
53
  box-sizing: border-box;
54
54
  }
55
- .bank-card__label_fqbvj {
55
+ .bank-card__label_16z6i {
56
56
  left: 0;
57
57
  transform: translateY(-1px);
58
58
  color: var(--color-black-60);
@@ -60,25 +60,25 @@
60
60
  line-height: 24px
61
61
  }
62
62
  @media (max-width: 360px) {
63
- .bank-card__label_fqbvj {
63
+ .bank-card__label_16z6i {
64
64
  font-size: 16px
65
65
  }
66
66
  }
67
- .bank-card__focused_fqbvj .bank-card__label_fqbvj,
68
- .bank-card__filled_fqbvj .bank-card__label_fqbvj {
67
+ .bank-card__focused_16z6i .bank-card__label_16z6i,
68
+ .bank-card__filled_16z6i .bank-card__label_16z6i {
69
69
  color: var(--color-black);
70
70
  transform: translateY(-19px) scale(0.6)
71
71
  }
72
72
  @media (max-width: 360px) {
73
- .bank-card__focused_fqbvj .bank-card__label_fqbvj,
74
- .bank-card__filled_fqbvj .bank-card__label_fqbvj {
73
+ .bank-card__focused_16z6i .bank-card__label_16z6i,
74
+ .bank-card__filled_16z6i .bank-card__label_16z6i {
75
75
  transform: translateY(-22px) scale(0.75)
76
76
  }
77
77
  }
78
- .bank-card__focused_fqbvj:before {
78
+ .bank-card__focused_16z6i:before {
79
79
  transform: scale(1) !important;
80
80
  }
81
- .bank-card__input_fqbvj {
81
+ .bank-card__input_16z6i {
82
82
  font-size: 20px;
83
83
  line-height: 24px;
84
84
  font-weight: 400;
@@ -92,33 +92,33 @@
92
92
  padding-left: 0 !important
93
93
  }
94
94
  @media (max-width: 360px) {
95
- .bank-card__input_fqbvj {
95
+ .bank-card__input_16z6i {
96
96
  font-size: 16px
97
97
  }
98
98
  }
99
- .bank-card__bankLogo_fqbvj {
99
+ .bank-card__bankLogo_16z6i {
100
100
  position: absolute;
101
101
  top: 20px;
102
102
  left: 20px
103
103
  }
104
- .bank-card__bankLogo_fqbvj svg {
104
+ .bank-card__bankLogo_16z6i svg {
105
105
  max-height: 30px;
106
106
  width: auto;
107
107
  display: block
108
108
  }
109
- .bank-card__bankLogo_fqbvj svg g {
109
+ .bank-card__bankLogo_16z6i svg g {
110
110
  fill: var(--color-black);
111
111
  }
112
- .bank-card__brandLogo_fqbvj {
112
+ .bank-card__brandLogo_16z6i {
113
113
  position: absolute;
114
114
  bottom: 20px;
115
115
  right: 20px
116
116
  }
117
- .bank-card__brandLogo_fqbvj svg {
117
+ .bank-card__brandLogo_16z6i svg {
118
118
  display: block;
119
119
  fill: var(--color-black);
120
120
  }
121
- .bank-card__usePhoto_fqbvj {
121
+ .bank-card__usePhoto_16z6i {
122
122
  display: block;
123
123
  margin: 0;
124
124
  padding: 0;
@@ -136,7 +136,7 @@
136
136
  /* В макете иконка прилегает к правому краю поля, а по дизайн-системе там должен быть отступ */
137
137
  margin-right: calc(var(--gap-s) * -1)
138
138
  }
139
- .bank-card__usePhoto_fqbvj svg {
139
+ .bank-card__usePhoto_16z6i svg {
140
140
  fill: var(--color-black);
141
141
  display: block;
142
142
  }
package/dist/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1pskk */
1
+ /* hash: 1e3vl */
2
2
  :root {
3
3
  --color-black: #000;
4
4
  --color-black-60: rgba(0, 0, 0, 0.6);
@@ -23,7 +23,7 @@
23
23
  :root {
24
24
  --border-radius-l: 12px;
25
25
  }
26
- .bank-card__component_fqbvj {
26
+ .bank-card__component_16z6i {
27
27
  /* TODO: как это будет собираться и работать в webView */
28
28
 
29
29
  /* focus */
@@ -35,11 +35,11 @@
35
35
 
36
36
  font-family: var(--font-family-styrene);
37
37
  }
38
- .bank-card__aspectRatioContainer_fqbvj {
38
+ .bank-card__aspectRatioContainer_16z6i {
39
39
  /* Эталонный размер 343x215 */
40
40
  padding-bottom: 62.6%;
41
41
  }
42
- .bank-card__content_fqbvj {
42
+ .bank-card__content_16z6i {
43
43
  position: absolute;
44
44
  top: 0;
45
45
  right: 0;
@@ -52,7 +52,7 @@
52
52
  border-radius: var(--border-radius-l);
53
53
  box-sizing: border-box;
54
54
  }
55
- .bank-card__label_fqbvj {
55
+ .bank-card__label_16z6i {
56
56
  left: 0;
57
57
  transform: translateY(-1px);
58
58
  color: var(--color-black-60);
@@ -60,25 +60,25 @@
60
60
  line-height: 24px
61
61
  }
62
62
  @media (max-width: 360px) {
63
- .bank-card__label_fqbvj {
63
+ .bank-card__label_16z6i {
64
64
  font-size: 16px
65
65
  }
66
66
  }
67
- .bank-card__focused_fqbvj .bank-card__label_fqbvj,
68
- .bank-card__filled_fqbvj .bank-card__label_fqbvj {
67
+ .bank-card__focused_16z6i .bank-card__label_16z6i,
68
+ .bank-card__filled_16z6i .bank-card__label_16z6i {
69
69
  color: var(--color-black);
70
70
  transform: translateY(-19px) scale(0.6)
71
71
  }
72
72
  @media (max-width: 360px) {
73
- .bank-card__focused_fqbvj .bank-card__label_fqbvj,
74
- .bank-card__filled_fqbvj .bank-card__label_fqbvj {
73
+ .bank-card__focused_16z6i .bank-card__label_16z6i,
74
+ .bank-card__filled_16z6i .bank-card__label_16z6i {
75
75
  transform: translateY(-22px) scale(0.75)
76
76
  }
77
77
  }
78
- .bank-card__focused_fqbvj:before {
78
+ .bank-card__focused_16z6i:before {
79
79
  transform: scale(1) !important;
80
80
  }
81
- .bank-card__input_fqbvj {
81
+ .bank-card__input_16z6i {
82
82
  font-size: 20px;
83
83
  line-height: 24px;
84
84
  font-weight: 400;
@@ -92,33 +92,33 @@
92
92
  padding-left: 0 !important
93
93
  }
94
94
  @media (max-width: 360px) {
95
- .bank-card__input_fqbvj {
95
+ .bank-card__input_16z6i {
96
96
  font-size: 16px
97
97
  }
98
98
  }
99
- .bank-card__bankLogo_fqbvj {
99
+ .bank-card__bankLogo_16z6i {
100
100
  position: absolute;
101
101
  top: 20px;
102
102
  left: 20px
103
103
  }
104
- .bank-card__bankLogo_fqbvj svg {
104
+ .bank-card__bankLogo_16z6i svg {
105
105
  max-height: 30px;
106
106
  width: auto;
107
107
  display: block
108
108
  }
109
- .bank-card__bankLogo_fqbvj svg g {
109
+ .bank-card__bankLogo_16z6i svg g {
110
110
  fill: var(--color-black);
111
111
  }
112
- .bank-card__brandLogo_fqbvj {
112
+ .bank-card__brandLogo_16z6i {
113
113
  position: absolute;
114
114
  bottom: 20px;
115
115
  right: 20px
116
116
  }
117
- .bank-card__brandLogo_fqbvj svg {
117
+ .bank-card__brandLogo_16z6i svg {
118
118
  display: block;
119
119
  fill: var(--color-black);
120
120
  }
121
- .bank-card__usePhoto_fqbvj {
121
+ .bank-card__usePhoto_16z6i {
122
122
  display: block;
123
123
  margin: 0;
124
124
  padding: 0;
@@ -136,7 +136,7 @@
136
136
  /* В макете иконка прилегает к правому краю поля, а по дизайн-системе там должен быть отступ */
137
137
  margin-right: calc(var(--gap-s) * -1)
138
138
  }
139
- .bank-card__usePhoto_fqbvj svg {
139
+ .bank-card__usePhoto_16z6i svg {
140
140
  fill: var(--color-black);
141
141
  display: block;
142
142
  }
@@ -8,7 +8,7 @@ import { MastercardLIcon } from '@alfalab/icons-logotype/MastercardLIcon';
8
8
  import { MirXxlIcon } from '@alfalab/icons-logotype/MirXxlIcon';
9
9
  import { validateCardNumber } from './utils.js';
10
10
 
11
- var styles = {"component":"bank-card__component_fqbvj","aspectRatioContainer":"bank-card__aspectRatioContainer_fqbvj","content":"bank-card__content_fqbvj","label":"bank-card__label_fqbvj","focused":"bank-card__focused_fqbvj","filled":"bank-card__filled_fqbvj","input":"bank-card__input_fqbvj","bankLogo":"bank-card__bankLogo_fqbvj","brandLogo":"bank-card__brandLogo_fqbvj","usePhoto":"bank-card__usePhoto_fqbvj"};
11
+ var styles = {"component":"bank-card__component_16z6i","aspectRatioContainer":"bank-card__aspectRatioContainer_16z6i","content":"bank-card__content_16z6i","label":"bank-card__label_16z6i","focused":"bank-card__focused_16z6i","filled":"bank-card__filled_16z6i","input":"bank-card__input_16z6i","bankLogo":"bank-card__bankLogo_16z6i","brandLogo":"bank-card__brandLogo_16z6i","usePhoto":"bank-card__usePhoto_16z6i"};
12
12
  require('./index.css')
13
13
 
14
14
  // prettier-ignore
@@ -1,4 +1,4 @@
1
- /* hash: 1pskk */
1
+ /* hash: 1e3vl */
2
2
  :root {
3
3
  --color-black: #000;
4
4
  --color-black-60: rgba(0, 0, 0, 0.6);
@@ -23,7 +23,7 @@
23
23
  :root {
24
24
  --border-radius-l: 12px;
25
25
  }
26
- .bank-card__component_fqbvj {
26
+ .bank-card__component_16z6i {
27
27
  /* TODO: как это будет собираться и работать в webView */
28
28
 
29
29
  /* focus */
@@ -35,11 +35,11 @@
35
35
 
36
36
  font-family: var(--font-family-styrene);
37
37
  }
38
- .bank-card__aspectRatioContainer_fqbvj {
38
+ .bank-card__aspectRatioContainer_16z6i {
39
39
  /* Эталонный размер 343x215 */
40
40
  padding-bottom: 62.6%;
41
41
  }
42
- .bank-card__content_fqbvj {
42
+ .bank-card__content_16z6i {
43
43
  position: absolute;
44
44
  top: 0;
45
45
  right: 0;
@@ -52,7 +52,7 @@
52
52
  border-radius: var(--border-radius-l);
53
53
  box-sizing: border-box;
54
54
  }
55
- .bank-card__label_fqbvj {
55
+ .bank-card__label_16z6i {
56
56
  left: 0;
57
57
  transform: translateY(-1px);
58
58
  color: var(--color-black-60);
@@ -60,25 +60,25 @@
60
60
  line-height: 24px
61
61
  }
62
62
  @media (max-width: 360px) {
63
- .bank-card__label_fqbvj {
63
+ .bank-card__label_16z6i {
64
64
  font-size: 16px
65
65
  }
66
66
  }
67
- .bank-card__focused_fqbvj .bank-card__label_fqbvj,
68
- .bank-card__filled_fqbvj .bank-card__label_fqbvj {
67
+ .bank-card__focused_16z6i .bank-card__label_16z6i,
68
+ .bank-card__filled_16z6i .bank-card__label_16z6i {
69
69
  color: var(--color-black);
70
70
  transform: translateY(-19px) scale(0.6)
71
71
  }
72
72
  @media (max-width: 360px) {
73
- .bank-card__focused_fqbvj .bank-card__label_fqbvj,
74
- .bank-card__filled_fqbvj .bank-card__label_fqbvj {
73
+ .bank-card__focused_16z6i .bank-card__label_16z6i,
74
+ .bank-card__filled_16z6i .bank-card__label_16z6i {
75
75
  transform: translateY(-22px) scale(0.75)
76
76
  }
77
77
  }
78
- .bank-card__focused_fqbvj:before {
78
+ .bank-card__focused_16z6i:before {
79
79
  transform: scale(1) !important;
80
80
  }
81
- .bank-card__input_fqbvj {
81
+ .bank-card__input_16z6i {
82
82
  font-size: 20px;
83
83
  line-height: 24px;
84
84
  font-weight: 400;
@@ -92,33 +92,33 @@
92
92
  padding-left: 0 !important
93
93
  }
94
94
  @media (max-width: 360px) {
95
- .bank-card__input_fqbvj {
95
+ .bank-card__input_16z6i {
96
96
  font-size: 16px
97
97
  }
98
98
  }
99
- .bank-card__bankLogo_fqbvj {
99
+ .bank-card__bankLogo_16z6i {
100
100
  position: absolute;
101
101
  top: 20px;
102
102
  left: 20px
103
103
  }
104
- .bank-card__bankLogo_fqbvj svg {
104
+ .bank-card__bankLogo_16z6i svg {
105
105
  max-height: 30px;
106
106
  width: auto;
107
107
  display: block
108
108
  }
109
- .bank-card__bankLogo_fqbvj svg g {
109
+ .bank-card__bankLogo_16z6i svg g {
110
110
  fill: var(--color-black);
111
111
  }
112
- .bank-card__brandLogo_fqbvj {
112
+ .bank-card__brandLogo_16z6i {
113
113
  position: absolute;
114
114
  bottom: 20px;
115
115
  right: 20px
116
116
  }
117
- .bank-card__brandLogo_fqbvj svg {
117
+ .bank-card__brandLogo_16z6i svg {
118
118
  display: block;
119
119
  fill: var(--color-black);
120
120
  }
121
- .bank-card__usePhoto_fqbvj {
121
+ .bank-card__usePhoto_16z6i {
122
122
  display: block;
123
123
  margin: 0;
124
124
  padding: 0;
@@ -136,7 +136,7 @@
136
136
  /* В макете иконка прилегает к правому краю поля, а по дизайн-системе там должен быть отступ */
137
137
  margin-right: calc(var(--gap-s) * -1)
138
138
  }
139
- .bank-card__usePhoto_fqbvj svg {
139
+ .bank-card__usePhoto_16z6i svg {
140
140
  fill: var(--color-black);
141
141
  display: block;
142
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-bank-card",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "description": "Bank card component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -20,11 +20,11 @@
20
20
  "react-dom": "^16.9.0 || ^17.0.1"
21
21
  },
22
22
  "dependencies": {
23
- "@alfalab/core-components-masked-input": "^4.3.3",
23
+ "@alfalab/core-components-masked-input": "^4.3.4",
24
24
  "@alfalab/icons-classic": "^1.76.0",
25
25
  "@alfalab/icons-glyph": "^2.16.0",
26
26
  "@alfalab/icons-logotype": "^1.28.0",
27
27
  "classnames": "2.2.6"
28
28
  },
29
- "gitHead": "a185c42cf9dbfd14311fd756c696fa116214e289"
29
+ "gitHead": "58219580dfde816f9c68057ea574691476eb5315"
30
30
  }