@alfalab/core-components-bank-card 4.3.0 → 4.3.2
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 +20 -0
- package/{dist/Component.d.ts → Component.d.ts} +0 -0
- package/{dist/Component.js → Component.js} +1 -1
- package/{dist/cssm → cssm}/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/Component.js +1 -1
- package/{dist/cssm → cssm}/index.d.ts +0 -0
- package/{dist/cssm → cssm}/index.js +1 -1
- package/{dist/cssm → cssm}/index.module.css +0 -0
- package/{dist/cssm → cssm}/utils.d.ts +0 -0
- package/{dist/cssm → cssm}/utils.js +0 -0
- package/{dist/esm → esm}/Component.d.ts +0 -0
- package/{dist/esm → esm}/Component.js +2 -2
- package/{dist → esm}/index.css +20 -20
- package/{dist/esm → esm}/index.d.ts +0 -0
- package/{dist/esm → esm}/index.js +1 -1
- package/{dist/esm → esm}/utils.d.ts +0 -0
- package/{dist/esm → esm}/utils.js +0 -0
- package/{dist/modern/index.css → index.css} +20 -20
- package/{dist/index.d.ts → index.d.ts} +0 -0
- package/{dist/index.js → index.js} +0 -0
- package/{dist/modern → modern}/Component.d.ts +0 -0
- package/{dist/modern → modern}/Component.js +2 -2
- package/{dist/esm → modern}/index.css +20 -20
- package/{dist/modern → modern}/index.d.ts +0 -0
- package/{dist/modern → modern}/index.js +1 -1
- package/{dist/modern → modern}/utils.d.ts +0 -0
- package/{dist/modern → modern}/utils.js +0 -0
- package/package.json +8 -11
- /package/{dist/send-stats.js → send-stats.js} +0 -0
- /package/{dist/utils.d.ts → utils.d.ts} +0 -0
- /package/{dist/utils.js → utils.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.3.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bank-card@4.3.1...@alfalab/core-components-bank-card@4.3.2) (2022-07-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* bump packages version ([#153](https://github.com/core-ds/core-components/issues/153)) ([fd3e082](https://github.com/core-ds/core-components/commit/fd3e08205672129cdce04e1000c673f2cd9c10da))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [4.3.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bank-card@4.3.0...@alfalab/core-components-bank-card@4.3.1) (2022-07-14)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @alfalab/core-components-bank-card
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [4.3.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bank-card@4.2.7...@alfalab/core-components-bank-card@4.3.0) (2022-06-28)
|
|
7
26
|
|
|
8
27
|
|
|
@@ -467,4 +486,5 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
467
486
|
|
|
468
487
|
## [3.2.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bank-card@3.2.0...@alfalab/core-components-bank-card@3.2.1) (2021-02-18)
|
|
469
488
|
|
|
489
|
+
|
|
470
490
|
**Note:** Version bump only for package @alfalab/core-components-bank-card
|
|
File without changes
|
|
@@ -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-
|
|
20
|
+
var styles = {"component":"bank-card__component_1ahh6","aspectRatioContainer":"bank-card__aspectRatioContainer_1ahh6","content":"bank-card__content_1ahh6","label":"bank-card__label_1ahh6","focused":"bank-card__focused_1ahh6","filled":"bank-card__filled_1ahh6","input":"bank-card__input_1ahh6","bankLogo":"bank-card__bankLogo_1ahh6","brandLogo":"bank-card__brandLogo_1ahh6","usePhoto":"bank-card__usePhoto_1ahh6"};
|
|
21
21
|
require('./index.css')
|
|
22
22
|
|
|
23
23
|
// prettier-ignore
|
|
File without changes
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var cn = require('classnames');
|
|
7
|
-
var coreComponentsMaskedInput = require('@alfalab/core-components-masked-input/
|
|
7
|
+
var coreComponentsMaskedInput = require('@alfalab/core-components-masked-input/cssm');
|
|
8
8
|
var BankAlfaLColorIcon = require('@alfalab/icons-classic/BankAlfaLColorIcon');
|
|
9
9
|
var CameraMIcon = require('@alfalab/icons-glyph/CameraMIcon');
|
|
10
10
|
var VisaXxlIcon = require('@alfalab/icons-logotype/VisaXxlIcon');
|
|
File without changes
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('react');
|
|
6
6
|
require('classnames');
|
|
7
|
-
require('@alfalab/core-components-masked-input/
|
|
7
|
+
require('@alfalab/core-components-masked-input/cssm');
|
|
8
8
|
require('@alfalab/icons-classic/BankAlfaLColorIcon');
|
|
9
9
|
require('@alfalab/icons-glyph/CameraMIcon');
|
|
10
10
|
require('@alfalab/icons-logotype/VisaXxlIcon');
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { MaskedInput } from '@alfalab/core-components-masked-input/
|
|
3
|
+
import { MaskedInput } from '@alfalab/core-components-masked-input/esm';
|
|
4
4
|
import { BankAlfaLColorIcon } from '@alfalab/icons-classic/BankAlfaLColorIcon';
|
|
5
5
|
import { CameraMIcon } from '@alfalab/icons-glyph/CameraMIcon';
|
|
6
6
|
import { VisaXxlIcon } from '@alfalab/icons-logotype/VisaXxlIcon';
|
|
@@ -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-
|
|
11
|
+
var styles = {"component":"bank-card__component_1ahh6","aspectRatioContainer":"bank-card__aspectRatioContainer_1ahh6","content":"bank-card__content_1ahh6","label":"bank-card__label_1ahh6","focused":"bank-card__focused_1ahh6","filled":"bank-card__filled_1ahh6","input":"bank-card__input_1ahh6","bankLogo":"bank-card__bankLogo_1ahh6","brandLogo":"bank-card__brandLogo_1ahh6","usePhoto":"bank-card__usePhoto_1ahh6"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
// prettier-ignore
|
package/{dist → esm}/index.css
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hjxk */
|
|
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-
|
|
26
|
+
.bank-card__component_1ahh6 {
|
|
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-
|
|
38
|
+
.bank-card__aspectRatioContainer_1ahh6 {
|
|
39
39
|
/* Эталонный размер 343x215 */
|
|
40
40
|
padding-bottom: 62.6%;
|
|
41
41
|
}
|
|
42
|
-
.bank-
|
|
42
|
+
.bank-card__content_1ahh6 {
|
|
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-
|
|
55
|
+
.bank-card__label_1ahh6 {
|
|
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-
|
|
63
|
+
.bank-card__label_1ahh6 {
|
|
64
64
|
font-size: 16px
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
.bank-
|
|
68
|
-
.bank-
|
|
67
|
+
.bank-card__focused_1ahh6 .bank-card__label_1ahh6,
|
|
68
|
+
.bank-card__filled_1ahh6 .bank-card__label_1ahh6 {
|
|
69
69
|
color: var(--color-black);
|
|
70
70
|
transform: translateY(-19px) scale(0.6)
|
|
71
71
|
}
|
|
72
72
|
@media (max-width: 360px) {
|
|
73
|
-
.bank-
|
|
74
|
-
.bank-
|
|
73
|
+
.bank-card__focused_1ahh6 .bank-card__label_1ahh6,
|
|
74
|
+
.bank-card__filled_1ahh6 .bank-card__label_1ahh6 {
|
|
75
75
|
transform: translateY(-22px) scale(0.75)
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
.bank-
|
|
78
|
+
.bank-card__focused_1ahh6:before {
|
|
79
79
|
transform: scale(1) !important;
|
|
80
80
|
}
|
|
81
|
-
.bank-
|
|
81
|
+
.bank-card__input_1ahh6 {
|
|
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-
|
|
95
|
+
.bank-card__input_1ahh6 {
|
|
96
96
|
font-size: 16px
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
.bank-
|
|
99
|
+
.bank-card__bankLogo_1ahh6 {
|
|
100
100
|
position: absolute;
|
|
101
101
|
top: 20px;
|
|
102
102
|
left: 20px
|
|
103
103
|
}
|
|
104
|
-
.bank-
|
|
104
|
+
.bank-card__bankLogo_1ahh6 svg {
|
|
105
105
|
max-height: 30px;
|
|
106
106
|
width: auto;
|
|
107
107
|
display: block
|
|
108
108
|
}
|
|
109
|
-
.bank-
|
|
109
|
+
.bank-card__bankLogo_1ahh6 svg g {
|
|
110
110
|
fill: var(--color-black);
|
|
111
111
|
}
|
|
112
|
-
.bank-
|
|
112
|
+
.bank-card__brandLogo_1ahh6 {
|
|
113
113
|
position: absolute;
|
|
114
114
|
bottom: 20px;
|
|
115
115
|
right: 20px
|
|
116
116
|
}
|
|
117
|
-
.bank-
|
|
117
|
+
.bank-card__brandLogo_1ahh6 svg {
|
|
118
118
|
display: block;
|
|
119
119
|
fill: var(--color-black);
|
|
120
120
|
}
|
|
121
|
-
.bank-
|
|
121
|
+
.bank-card__usePhoto_1ahh6 {
|
|
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-
|
|
139
|
+
.bank-card__usePhoto_1ahh6 svg {
|
|
140
140
|
fill: var(--color-black);
|
|
141
141
|
display: block;
|
|
142
142
|
}
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import '@alfalab/core-components-masked-input/
|
|
3
|
+
import '@alfalab/core-components-masked-input/esm';
|
|
4
4
|
import '@alfalab/icons-classic/BankAlfaLColorIcon';
|
|
5
5
|
import '@alfalab/icons-glyph/CameraMIcon';
|
|
6
6
|
import '@alfalab/icons-logotype/VisaXxlIcon';
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hjxk */
|
|
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-
|
|
26
|
+
.bank-card__component_1ahh6 {
|
|
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-
|
|
38
|
+
.bank-card__aspectRatioContainer_1ahh6 {
|
|
39
39
|
/* Эталонный размер 343x215 */
|
|
40
40
|
padding-bottom: 62.6%;
|
|
41
41
|
}
|
|
42
|
-
.bank-
|
|
42
|
+
.bank-card__content_1ahh6 {
|
|
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-
|
|
55
|
+
.bank-card__label_1ahh6 {
|
|
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-
|
|
63
|
+
.bank-card__label_1ahh6 {
|
|
64
64
|
font-size: 16px
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
.bank-
|
|
68
|
-
.bank-
|
|
67
|
+
.bank-card__focused_1ahh6 .bank-card__label_1ahh6,
|
|
68
|
+
.bank-card__filled_1ahh6 .bank-card__label_1ahh6 {
|
|
69
69
|
color: var(--color-black);
|
|
70
70
|
transform: translateY(-19px) scale(0.6)
|
|
71
71
|
}
|
|
72
72
|
@media (max-width: 360px) {
|
|
73
|
-
.bank-
|
|
74
|
-
.bank-
|
|
73
|
+
.bank-card__focused_1ahh6 .bank-card__label_1ahh6,
|
|
74
|
+
.bank-card__filled_1ahh6 .bank-card__label_1ahh6 {
|
|
75
75
|
transform: translateY(-22px) scale(0.75)
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
.bank-
|
|
78
|
+
.bank-card__focused_1ahh6:before {
|
|
79
79
|
transform: scale(1) !important;
|
|
80
80
|
}
|
|
81
|
-
.bank-
|
|
81
|
+
.bank-card__input_1ahh6 {
|
|
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-
|
|
95
|
+
.bank-card__input_1ahh6 {
|
|
96
96
|
font-size: 16px
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
.bank-
|
|
99
|
+
.bank-card__bankLogo_1ahh6 {
|
|
100
100
|
position: absolute;
|
|
101
101
|
top: 20px;
|
|
102
102
|
left: 20px
|
|
103
103
|
}
|
|
104
|
-
.bank-
|
|
104
|
+
.bank-card__bankLogo_1ahh6 svg {
|
|
105
105
|
max-height: 30px;
|
|
106
106
|
width: auto;
|
|
107
107
|
display: block
|
|
108
108
|
}
|
|
109
|
-
.bank-
|
|
109
|
+
.bank-card__bankLogo_1ahh6 svg g {
|
|
110
110
|
fill: var(--color-black);
|
|
111
111
|
}
|
|
112
|
-
.bank-
|
|
112
|
+
.bank-card__brandLogo_1ahh6 {
|
|
113
113
|
position: absolute;
|
|
114
114
|
bottom: 20px;
|
|
115
115
|
right: 20px
|
|
116
116
|
}
|
|
117
|
-
.bank-
|
|
117
|
+
.bank-card__brandLogo_1ahh6 svg {
|
|
118
118
|
display: block;
|
|
119
119
|
fill: var(--color-black);
|
|
120
120
|
}
|
|
121
|
-
.bank-
|
|
121
|
+
.bank-card__usePhoto_1ahh6 {
|
|
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-
|
|
139
|
+
.bank-card__usePhoto_1ahh6 svg {
|
|
140
140
|
fill: var(--color-black);
|
|
141
141
|
display: block;
|
|
142
142
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { MaskedInput } from '@alfalab/core-components-masked-input/
|
|
3
|
+
import { MaskedInput } from '@alfalab/core-components-masked-input/modern';
|
|
4
4
|
import { BankAlfaLColorIcon } from '@alfalab/icons-classic/BankAlfaLColorIcon';
|
|
5
5
|
import { CameraMIcon } from '@alfalab/icons-glyph/CameraMIcon';
|
|
6
6
|
import { VisaXxlIcon } from '@alfalab/icons-logotype/VisaXxlIcon';
|
|
@@ -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-
|
|
11
|
+
var styles = {"component":"bank-card__component_1ahh6","aspectRatioContainer":"bank-card__aspectRatioContainer_1ahh6","content":"bank-card__content_1ahh6","label":"bank-card__label_1ahh6","focused":"bank-card__focused_1ahh6","filled":"bank-card__filled_1ahh6","input":"bank-card__input_1ahh6","bankLogo":"bank-card__bankLogo_1ahh6","brandLogo":"bank-card__brandLogo_1ahh6","usePhoto":"bank-card__usePhoto_1ahh6"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
// prettier-ignore
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hjxk */
|
|
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-
|
|
26
|
+
.bank-card__component_1ahh6 {
|
|
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-
|
|
38
|
+
.bank-card__aspectRatioContainer_1ahh6 {
|
|
39
39
|
/* Эталонный размер 343x215 */
|
|
40
40
|
padding-bottom: 62.6%;
|
|
41
41
|
}
|
|
42
|
-
.bank-
|
|
42
|
+
.bank-card__content_1ahh6 {
|
|
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-
|
|
55
|
+
.bank-card__label_1ahh6 {
|
|
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-
|
|
63
|
+
.bank-card__label_1ahh6 {
|
|
64
64
|
font-size: 16px
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
.bank-
|
|
68
|
-
.bank-
|
|
67
|
+
.bank-card__focused_1ahh6 .bank-card__label_1ahh6,
|
|
68
|
+
.bank-card__filled_1ahh6 .bank-card__label_1ahh6 {
|
|
69
69
|
color: var(--color-black);
|
|
70
70
|
transform: translateY(-19px) scale(0.6)
|
|
71
71
|
}
|
|
72
72
|
@media (max-width: 360px) {
|
|
73
|
-
.bank-
|
|
74
|
-
.bank-
|
|
73
|
+
.bank-card__focused_1ahh6 .bank-card__label_1ahh6,
|
|
74
|
+
.bank-card__filled_1ahh6 .bank-card__label_1ahh6 {
|
|
75
75
|
transform: translateY(-22px) scale(0.75)
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
.bank-
|
|
78
|
+
.bank-card__focused_1ahh6:before {
|
|
79
79
|
transform: scale(1) !important;
|
|
80
80
|
}
|
|
81
|
-
.bank-
|
|
81
|
+
.bank-card__input_1ahh6 {
|
|
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-
|
|
95
|
+
.bank-card__input_1ahh6 {
|
|
96
96
|
font-size: 16px
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
.bank-
|
|
99
|
+
.bank-card__bankLogo_1ahh6 {
|
|
100
100
|
position: absolute;
|
|
101
101
|
top: 20px;
|
|
102
102
|
left: 20px
|
|
103
103
|
}
|
|
104
|
-
.bank-
|
|
104
|
+
.bank-card__bankLogo_1ahh6 svg {
|
|
105
105
|
max-height: 30px;
|
|
106
106
|
width: auto;
|
|
107
107
|
display: block
|
|
108
108
|
}
|
|
109
|
-
.bank-
|
|
109
|
+
.bank-card__bankLogo_1ahh6 svg g {
|
|
110
110
|
fill: var(--color-black);
|
|
111
111
|
}
|
|
112
|
-
.bank-
|
|
112
|
+
.bank-card__brandLogo_1ahh6 {
|
|
113
113
|
position: absolute;
|
|
114
114
|
bottom: 20px;
|
|
115
115
|
right: 20px
|
|
116
116
|
}
|
|
117
|
-
.bank-
|
|
117
|
+
.bank-card__brandLogo_1ahh6 svg {
|
|
118
118
|
display: block;
|
|
119
119
|
fill: var(--color-black);
|
|
120
120
|
}
|
|
121
|
-
.bank-
|
|
121
|
+
.bank-card__usePhoto_1ahh6 {
|
|
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-
|
|
139
|
+
.bank-card__usePhoto_1ahh6 svg {
|
|
140
140
|
fill: var(--color-black);
|
|
141
141
|
display: block;
|
|
142
142
|
}
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import '@alfalab/core-components-masked-input/
|
|
3
|
+
import '@alfalab/core-components-masked-input/modern';
|
|
4
4
|
import '@alfalab/icons-classic/BankAlfaLColorIcon';
|
|
5
5
|
import '@alfalab/icons-glyph/CameraMIcon';
|
|
6
6
|
import '@alfalab/icons-logotype/VisaXxlIcon';
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-bank-card",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"description": "Bank card component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"main": "
|
|
8
|
-
"module": "./
|
|
9
|
-
"files": [
|
|
10
|
-
"dist"
|
|
11
|
-
],
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"module": "./esm/index.js",
|
|
12
9
|
"scripts": {
|
|
13
|
-
"postinstall": "node ./
|
|
10
|
+
"postinstall": "node ./send-stats.js > /dev/null 2>&1 || exit 0"
|
|
14
11
|
},
|
|
15
12
|
"publishConfig": {
|
|
16
|
-
"access": "public"
|
|
13
|
+
"access": "public",
|
|
14
|
+
"directory": "dist"
|
|
17
15
|
},
|
|
18
16
|
"peerDependencies": {
|
|
19
17
|
"react": "^16.9.0 || ^17.0.1",
|
|
20
18
|
"react-dom": "^16.9.0 || ^17.0.1"
|
|
21
19
|
},
|
|
22
20
|
"dependencies": {
|
|
23
|
-
"@alfalab/core-components-masked-input": "^4.4.
|
|
21
|
+
"@alfalab/core-components-masked-input": "^4.4.2",
|
|
24
22
|
"@alfalab/icons-classic": "^1.76.0",
|
|
25
23
|
"@alfalab/icons-glyph": "^2.16.0",
|
|
26
24
|
"@alfalab/icons-logotype": "^1.28.0",
|
|
27
25
|
"classnames": "^2.2.6"
|
|
28
|
-
}
|
|
29
|
-
"gitHead": "dcd5c0c8e25b7c374ff9311505ccf738a82e22c0"
|
|
26
|
+
}
|
|
30
27
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|