@alfalab/core-components-bank-card 4.3.4 → 4.4.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 +35 -0
- package/{Component.d.ts → dist/Component.d.ts} +0 -0
- package/{Component.js → dist/Component.js} +1 -1
- package/{cssm → dist/cssm}/Component.d.ts +0 -0
- package/{cssm → dist/cssm}/Component.js +1 -1
- package/{cssm → dist/cssm}/index.d.ts +0 -0
- package/{cssm → dist/cssm}/index.js +1 -1
- package/{cssm → dist/cssm}/index.module.css +7 -0
- package/{cssm → dist/cssm}/utils.d.ts +0 -0
- package/{cssm → dist/cssm}/utils.js +0 -0
- package/{esm → dist/esm}/Component.d.ts +0 -0
- package/{esm → dist/esm}/Component.js +2 -2
- package/{index.css → dist/esm/index.css} +27 -20
- package/{esm → dist/esm}/index.d.ts +0 -0
- package/{esm → dist/esm}/index.js +1 -1
- package/{esm → dist/esm}/utils.d.ts +0 -0
- package/{esm → dist/esm}/utils.js +0 -0
- package/{modern → dist}/index.css +27 -20
- package/{index.d.ts → dist/index.d.ts} +0 -0
- package/{index.js → dist/index.js} +0 -0
- package/{modern → dist/modern}/Component.d.ts +0 -0
- package/{modern → dist/modern}/Component.js +2 -2
- package/{esm → dist/modern}/index.css +27 -20
- package/{modern → dist/modern}/index.d.ts +0 -0
- package/{modern → dist/modern}/index.js +1 -1
- package/{modern → dist/modern}/utils.d.ts +0 -0
- package/{modern → dist/modern}/utils.js +0 -0
- package/{send-stats.js → dist/send-stats.js} +0 -0
- package/{utils.d.ts → dist/utils.d.ts} +0 -0
- package/{utils.js → dist/utils.js} +0 -0
- package/package.json +14 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
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.4.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bank-card@4.4.1...@alfalab/core-components-bank-card@4.4.2) (2022-08-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* returned dist directory ([#199](https://github.com/core-ds/core-components/issues/199)) ([fabc15e](https://github.com/core-ds/core-components/commit/fabc15effa1457ca65ec7238206f1b1fc2a2a613))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [4.4.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bank-card@4.4.0...@alfalab/core-components-bank-card@4.4.1) (2022-08-11)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @alfalab/core-components-bank-card
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [4.4.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bank-card@4.3.4...@alfalab/core-components-bank-card@4.4.0) (2022-08-04)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* purgecss fixes ([#179](https://github.com/core-ds/core-components/issues/179)) ([ca52bab](https://github.com/core-ds/core-components/commit/ca52bab7ca82dd45c5693e46fbcec493943b3bbb))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* react 18 support ([#159](https://github.com/core-ds/core-components/issues/159)) ([2e6693c](https://github.com/core-ds/core-components/commit/2e6693c62f534e333aadb7d3fff4ffd78ac84c63))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [4.3.4](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bank-card@4.3.3...@alfalab/core-components-bank-card@4.3.4) (2022-07-25)
|
|
7
42
|
|
|
8
43
|
**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_eh7qu","aspectRatioContainer":"bank-card__aspectRatioContainer_eh7qu","content":"bank-card__content_eh7qu","label":"bank-card__label_eh7qu","focused":"bank-card__focused_eh7qu","filled":"bank-card__filled_eh7qu","input":"bank-card__input_eh7qu","bankLogo":"bank-card__bankLogo_eh7qu","brandLogo":"bank-card__brandLogo_eh7qu","usePhoto":"bank-card__usePhoto_eh7qu"};
|
|
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/cssm');
|
|
7
|
+
var coreComponentsMaskedInput = require('@alfalab/core-components-masked-input/dist/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/cssm');
|
|
7
|
+
require('@alfalab/core-components-masked-input/dist/cssm');
|
|
8
8
|
require('@alfalab/icons-classic/BankAlfaLColorIcon');
|
|
9
9
|
require('@alfalab/icons-glyph/CameraMIcon');
|
|
10
10
|
require('@alfalab/icons-logotype/VisaXxlIcon');
|
|
@@ -24,10 +24,17 @@
|
|
|
24
24
|
}
|
|
25
25
|
.component {
|
|
26
26
|
/* TODO: как это будет собираться и работать в webView */
|
|
27
|
+
--form-control-border-radius: 0;
|
|
28
|
+
--form-control-border-bottom: 1px solid var(--color-black-60);
|
|
29
|
+
--form-control-bg-color: transparent;
|
|
27
30
|
|
|
28
31
|
/* focus */
|
|
32
|
+
--form-control-focus-border-bottom: 1px solid var(--color-black);
|
|
29
33
|
|
|
30
34
|
/* hover */
|
|
35
|
+
--form-control-hover-bg-color: transparent;
|
|
36
|
+
--form-control-focus-bg-color: transparent;
|
|
37
|
+
--form-control-font-family: var(--font-family-styrene);
|
|
31
38
|
|
|
32
39
|
position: relative;
|
|
33
40
|
max-width: 343px;
|
|
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/esm';
|
|
3
|
+
import { MaskedInput } from '@alfalab/core-components-masked-input/dist/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_eh7qu","aspectRatioContainer":"bank-card__aspectRatioContainer_eh7qu","content":"bank-card__content_eh7qu","label":"bank-card__label_eh7qu","focused":"bank-card__focused_eh7qu","filled":"bank-card__filled_eh7qu","input":"bank-card__input_eh7qu","bankLogo":"bank-card__bankLogo_eh7qu","brandLogo":"bank-card__brandLogo_eh7qu","usePhoto":"bank-card__usePhoto_eh7qu"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
// prettier-ignore
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: x1swn */
|
|
2
2
|
:root {
|
|
3
3
|
--color-black: #000;
|
|
4
4
|
--color-black-60: rgba(0, 0, 0, 0.6);
|
|
@@ -23,23 +23,30 @@
|
|
|
23
23
|
:root {
|
|
24
24
|
--border-radius-l: 12px;
|
|
25
25
|
}
|
|
26
|
-
.bank-
|
|
26
|
+
.bank-card__component_eh7qu {
|
|
27
27
|
/* TODO: как это будет собираться и работать в webView */
|
|
28
|
+
--form-control-border-radius: 0;
|
|
29
|
+
--form-control-border-bottom: 1px solid var(--color-black-60);
|
|
30
|
+
--form-control-bg-color: transparent;
|
|
28
31
|
|
|
29
32
|
/* focus */
|
|
33
|
+
--form-control-focus-border-bottom: 1px solid var(--color-black);
|
|
30
34
|
|
|
31
35
|
/* hover */
|
|
36
|
+
--form-control-hover-bg-color: transparent;
|
|
37
|
+
--form-control-focus-bg-color: transparent;
|
|
38
|
+
--form-control-font-family: var(--font-family-styrene);
|
|
32
39
|
|
|
33
40
|
position: relative;
|
|
34
41
|
max-width: 343px;
|
|
35
42
|
|
|
36
43
|
font-family: var(--font-family-styrene);
|
|
37
44
|
}
|
|
38
|
-
.bank-
|
|
45
|
+
.bank-card__aspectRatioContainer_eh7qu {
|
|
39
46
|
/* Эталонный размер 343x215 */
|
|
40
47
|
padding-bottom: 62.6%;
|
|
41
48
|
}
|
|
42
|
-
.bank-
|
|
49
|
+
.bank-card__content_eh7qu {
|
|
43
50
|
position: absolute;
|
|
44
51
|
top: 0;
|
|
45
52
|
right: 0;
|
|
@@ -52,7 +59,7 @@
|
|
|
52
59
|
border-radius: var(--border-radius-l);
|
|
53
60
|
box-sizing: border-box;
|
|
54
61
|
}
|
|
55
|
-
.bank-
|
|
62
|
+
.bank-card__label_eh7qu {
|
|
56
63
|
left: 0;
|
|
57
64
|
transform: translateY(-1px);
|
|
58
65
|
color: var(--color-black-60);
|
|
@@ -60,25 +67,25 @@
|
|
|
60
67
|
line-height: 24px
|
|
61
68
|
}
|
|
62
69
|
@media (max-width: 360px) {
|
|
63
|
-
.bank-
|
|
70
|
+
.bank-card__label_eh7qu {
|
|
64
71
|
font-size: 16px
|
|
65
72
|
}
|
|
66
73
|
}
|
|
67
|
-
.bank-
|
|
68
|
-
.bank-
|
|
74
|
+
.bank-card__focused_eh7qu .bank-card__label_eh7qu,
|
|
75
|
+
.bank-card__filled_eh7qu .bank-card__label_eh7qu {
|
|
69
76
|
color: var(--color-black);
|
|
70
77
|
transform: translateY(-19px) scale(0.6)
|
|
71
78
|
}
|
|
72
79
|
@media (max-width: 360px) {
|
|
73
|
-
.bank-
|
|
74
|
-
.bank-
|
|
80
|
+
.bank-card__focused_eh7qu .bank-card__label_eh7qu,
|
|
81
|
+
.bank-card__filled_eh7qu .bank-card__label_eh7qu {
|
|
75
82
|
transform: translateY(-22px) scale(0.75)
|
|
76
83
|
}
|
|
77
84
|
}
|
|
78
|
-
.bank-
|
|
85
|
+
.bank-card__focused_eh7qu:before {
|
|
79
86
|
transform: scale(1) !important;
|
|
80
87
|
}
|
|
81
|
-
.bank-
|
|
88
|
+
.bank-card__input_eh7qu {
|
|
82
89
|
font-size: 20px;
|
|
83
90
|
line-height: 24px;
|
|
84
91
|
font-weight: 400;
|
|
@@ -92,33 +99,33 @@
|
|
|
92
99
|
padding-left: 0 !important
|
|
93
100
|
}
|
|
94
101
|
@media (max-width: 360px) {
|
|
95
|
-
.bank-
|
|
102
|
+
.bank-card__input_eh7qu {
|
|
96
103
|
font-size: 16px
|
|
97
104
|
}
|
|
98
105
|
}
|
|
99
|
-
.bank-
|
|
106
|
+
.bank-card__bankLogo_eh7qu {
|
|
100
107
|
position: absolute;
|
|
101
108
|
top: 20px;
|
|
102
109
|
left: 20px
|
|
103
110
|
}
|
|
104
|
-
.bank-
|
|
111
|
+
.bank-card__bankLogo_eh7qu svg {
|
|
105
112
|
max-height: 30px;
|
|
106
113
|
width: auto;
|
|
107
114
|
display: block
|
|
108
115
|
}
|
|
109
|
-
.bank-
|
|
116
|
+
.bank-card__bankLogo_eh7qu svg g {
|
|
110
117
|
fill: var(--color-black);
|
|
111
118
|
}
|
|
112
|
-
.bank-
|
|
119
|
+
.bank-card__brandLogo_eh7qu {
|
|
113
120
|
position: absolute;
|
|
114
121
|
bottom: 20px;
|
|
115
122
|
right: 20px
|
|
116
123
|
}
|
|
117
|
-
.bank-
|
|
124
|
+
.bank-card__brandLogo_eh7qu svg {
|
|
118
125
|
display: block;
|
|
119
126
|
fill: var(--color-black);
|
|
120
127
|
}
|
|
121
|
-
.bank-
|
|
128
|
+
.bank-card__usePhoto_eh7qu {
|
|
122
129
|
display: block;
|
|
123
130
|
margin: 0;
|
|
124
131
|
padding: 0;
|
|
@@ -136,7 +143,7 @@
|
|
|
136
143
|
/* В макете иконка прилегает к правому краю поля, а по дизайн-системе там должен быть отступ */
|
|
137
144
|
margin-right: calc(var(--gap-s) * -1)
|
|
138
145
|
}
|
|
139
|
-
.bank-
|
|
146
|
+
.bank-card__usePhoto_eh7qu svg {
|
|
140
147
|
fill: var(--color-black);
|
|
141
148
|
display: block;
|
|
142
149
|
}
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import '@alfalab/core-components-masked-input/esm';
|
|
3
|
+
import '@alfalab/core-components-masked-input/dist/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: x1swn */
|
|
2
2
|
:root {
|
|
3
3
|
--color-black: #000;
|
|
4
4
|
--color-black-60: rgba(0, 0, 0, 0.6);
|
|
@@ -23,23 +23,30 @@
|
|
|
23
23
|
:root {
|
|
24
24
|
--border-radius-l: 12px;
|
|
25
25
|
}
|
|
26
|
-
.bank-
|
|
26
|
+
.bank-card__component_eh7qu {
|
|
27
27
|
/* TODO: как это будет собираться и работать в webView */
|
|
28
|
+
--form-control-border-radius: 0;
|
|
29
|
+
--form-control-border-bottom: 1px solid var(--color-black-60);
|
|
30
|
+
--form-control-bg-color: transparent;
|
|
28
31
|
|
|
29
32
|
/* focus */
|
|
33
|
+
--form-control-focus-border-bottom: 1px solid var(--color-black);
|
|
30
34
|
|
|
31
35
|
/* hover */
|
|
36
|
+
--form-control-hover-bg-color: transparent;
|
|
37
|
+
--form-control-focus-bg-color: transparent;
|
|
38
|
+
--form-control-font-family: var(--font-family-styrene);
|
|
32
39
|
|
|
33
40
|
position: relative;
|
|
34
41
|
max-width: 343px;
|
|
35
42
|
|
|
36
43
|
font-family: var(--font-family-styrene);
|
|
37
44
|
}
|
|
38
|
-
.bank-
|
|
45
|
+
.bank-card__aspectRatioContainer_eh7qu {
|
|
39
46
|
/* Эталонный размер 343x215 */
|
|
40
47
|
padding-bottom: 62.6%;
|
|
41
48
|
}
|
|
42
|
-
.bank-
|
|
49
|
+
.bank-card__content_eh7qu {
|
|
43
50
|
position: absolute;
|
|
44
51
|
top: 0;
|
|
45
52
|
right: 0;
|
|
@@ -52,7 +59,7 @@
|
|
|
52
59
|
border-radius: var(--border-radius-l);
|
|
53
60
|
box-sizing: border-box;
|
|
54
61
|
}
|
|
55
|
-
.bank-
|
|
62
|
+
.bank-card__label_eh7qu {
|
|
56
63
|
left: 0;
|
|
57
64
|
transform: translateY(-1px);
|
|
58
65
|
color: var(--color-black-60);
|
|
@@ -60,25 +67,25 @@
|
|
|
60
67
|
line-height: 24px
|
|
61
68
|
}
|
|
62
69
|
@media (max-width: 360px) {
|
|
63
|
-
.bank-
|
|
70
|
+
.bank-card__label_eh7qu {
|
|
64
71
|
font-size: 16px
|
|
65
72
|
}
|
|
66
73
|
}
|
|
67
|
-
.bank-
|
|
68
|
-
.bank-
|
|
74
|
+
.bank-card__focused_eh7qu .bank-card__label_eh7qu,
|
|
75
|
+
.bank-card__filled_eh7qu .bank-card__label_eh7qu {
|
|
69
76
|
color: var(--color-black);
|
|
70
77
|
transform: translateY(-19px) scale(0.6)
|
|
71
78
|
}
|
|
72
79
|
@media (max-width: 360px) {
|
|
73
|
-
.bank-
|
|
74
|
-
.bank-
|
|
80
|
+
.bank-card__focused_eh7qu .bank-card__label_eh7qu,
|
|
81
|
+
.bank-card__filled_eh7qu .bank-card__label_eh7qu {
|
|
75
82
|
transform: translateY(-22px) scale(0.75)
|
|
76
83
|
}
|
|
77
84
|
}
|
|
78
|
-
.bank-
|
|
85
|
+
.bank-card__focused_eh7qu:before {
|
|
79
86
|
transform: scale(1) !important;
|
|
80
87
|
}
|
|
81
|
-
.bank-
|
|
88
|
+
.bank-card__input_eh7qu {
|
|
82
89
|
font-size: 20px;
|
|
83
90
|
line-height: 24px;
|
|
84
91
|
font-weight: 400;
|
|
@@ -92,33 +99,33 @@
|
|
|
92
99
|
padding-left: 0 !important
|
|
93
100
|
}
|
|
94
101
|
@media (max-width: 360px) {
|
|
95
|
-
.bank-
|
|
102
|
+
.bank-card__input_eh7qu {
|
|
96
103
|
font-size: 16px
|
|
97
104
|
}
|
|
98
105
|
}
|
|
99
|
-
.bank-
|
|
106
|
+
.bank-card__bankLogo_eh7qu {
|
|
100
107
|
position: absolute;
|
|
101
108
|
top: 20px;
|
|
102
109
|
left: 20px
|
|
103
110
|
}
|
|
104
|
-
.bank-
|
|
111
|
+
.bank-card__bankLogo_eh7qu svg {
|
|
105
112
|
max-height: 30px;
|
|
106
113
|
width: auto;
|
|
107
114
|
display: block
|
|
108
115
|
}
|
|
109
|
-
.bank-
|
|
116
|
+
.bank-card__bankLogo_eh7qu svg g {
|
|
110
117
|
fill: var(--color-black);
|
|
111
118
|
}
|
|
112
|
-
.bank-
|
|
119
|
+
.bank-card__brandLogo_eh7qu {
|
|
113
120
|
position: absolute;
|
|
114
121
|
bottom: 20px;
|
|
115
122
|
right: 20px
|
|
116
123
|
}
|
|
117
|
-
.bank-
|
|
124
|
+
.bank-card__brandLogo_eh7qu svg {
|
|
118
125
|
display: block;
|
|
119
126
|
fill: var(--color-black);
|
|
120
127
|
}
|
|
121
|
-
.bank-
|
|
128
|
+
.bank-card__usePhoto_eh7qu {
|
|
122
129
|
display: block;
|
|
123
130
|
margin: 0;
|
|
124
131
|
padding: 0;
|
|
@@ -136,7 +143,7 @@
|
|
|
136
143
|
/* В макете иконка прилегает к правому краю поля, а по дизайн-системе там должен быть отступ */
|
|
137
144
|
margin-right: calc(var(--gap-s) * -1)
|
|
138
145
|
}
|
|
139
|
-
.bank-
|
|
146
|
+
.bank-card__usePhoto_eh7qu svg {
|
|
140
147
|
fill: var(--color-black);
|
|
141
148
|
display: block;
|
|
142
149
|
}
|
|
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/modern';
|
|
3
|
+
import { MaskedInput } from '@alfalab/core-components-masked-input/dist/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_eh7qu","aspectRatioContainer":"bank-card__aspectRatioContainer_eh7qu","content":"bank-card__content_eh7qu","label":"bank-card__label_eh7qu","focused":"bank-card__focused_eh7qu","filled":"bank-card__filled_eh7qu","input":"bank-card__input_eh7qu","bankLogo":"bank-card__bankLogo_eh7qu","brandLogo":"bank-card__brandLogo_eh7qu","usePhoto":"bank-card__usePhoto_eh7qu"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
// prettier-ignore
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: x1swn */
|
|
2
2
|
:root {
|
|
3
3
|
--color-black: #000;
|
|
4
4
|
--color-black-60: rgba(0, 0, 0, 0.6);
|
|
@@ -23,23 +23,30 @@
|
|
|
23
23
|
:root {
|
|
24
24
|
--border-radius-l: 12px;
|
|
25
25
|
}
|
|
26
|
-
.bank-
|
|
26
|
+
.bank-card__component_eh7qu {
|
|
27
27
|
/* TODO: как это будет собираться и работать в webView */
|
|
28
|
+
--form-control-border-radius: 0;
|
|
29
|
+
--form-control-border-bottom: 1px solid var(--color-black-60);
|
|
30
|
+
--form-control-bg-color: transparent;
|
|
28
31
|
|
|
29
32
|
/* focus */
|
|
33
|
+
--form-control-focus-border-bottom: 1px solid var(--color-black);
|
|
30
34
|
|
|
31
35
|
/* hover */
|
|
36
|
+
--form-control-hover-bg-color: transparent;
|
|
37
|
+
--form-control-focus-bg-color: transparent;
|
|
38
|
+
--form-control-font-family: var(--font-family-styrene);
|
|
32
39
|
|
|
33
40
|
position: relative;
|
|
34
41
|
max-width: 343px;
|
|
35
42
|
|
|
36
43
|
font-family: var(--font-family-styrene);
|
|
37
44
|
}
|
|
38
|
-
.bank-
|
|
45
|
+
.bank-card__aspectRatioContainer_eh7qu {
|
|
39
46
|
/* Эталонный размер 343x215 */
|
|
40
47
|
padding-bottom: 62.6%;
|
|
41
48
|
}
|
|
42
|
-
.bank-
|
|
49
|
+
.bank-card__content_eh7qu {
|
|
43
50
|
position: absolute;
|
|
44
51
|
top: 0;
|
|
45
52
|
right: 0;
|
|
@@ -52,7 +59,7 @@
|
|
|
52
59
|
border-radius: var(--border-radius-l);
|
|
53
60
|
box-sizing: border-box;
|
|
54
61
|
}
|
|
55
|
-
.bank-
|
|
62
|
+
.bank-card__label_eh7qu {
|
|
56
63
|
left: 0;
|
|
57
64
|
transform: translateY(-1px);
|
|
58
65
|
color: var(--color-black-60);
|
|
@@ -60,25 +67,25 @@
|
|
|
60
67
|
line-height: 24px
|
|
61
68
|
}
|
|
62
69
|
@media (max-width: 360px) {
|
|
63
|
-
.bank-
|
|
70
|
+
.bank-card__label_eh7qu {
|
|
64
71
|
font-size: 16px
|
|
65
72
|
}
|
|
66
73
|
}
|
|
67
|
-
.bank-
|
|
68
|
-
.bank-
|
|
74
|
+
.bank-card__focused_eh7qu .bank-card__label_eh7qu,
|
|
75
|
+
.bank-card__filled_eh7qu .bank-card__label_eh7qu {
|
|
69
76
|
color: var(--color-black);
|
|
70
77
|
transform: translateY(-19px) scale(0.6)
|
|
71
78
|
}
|
|
72
79
|
@media (max-width: 360px) {
|
|
73
|
-
.bank-
|
|
74
|
-
.bank-
|
|
80
|
+
.bank-card__focused_eh7qu .bank-card__label_eh7qu,
|
|
81
|
+
.bank-card__filled_eh7qu .bank-card__label_eh7qu {
|
|
75
82
|
transform: translateY(-22px) scale(0.75)
|
|
76
83
|
}
|
|
77
84
|
}
|
|
78
|
-
.bank-
|
|
85
|
+
.bank-card__focused_eh7qu:before {
|
|
79
86
|
transform: scale(1) !important;
|
|
80
87
|
}
|
|
81
|
-
.bank-
|
|
88
|
+
.bank-card__input_eh7qu {
|
|
82
89
|
font-size: 20px;
|
|
83
90
|
line-height: 24px;
|
|
84
91
|
font-weight: 400;
|
|
@@ -92,33 +99,33 @@
|
|
|
92
99
|
padding-left: 0 !important
|
|
93
100
|
}
|
|
94
101
|
@media (max-width: 360px) {
|
|
95
|
-
.bank-
|
|
102
|
+
.bank-card__input_eh7qu {
|
|
96
103
|
font-size: 16px
|
|
97
104
|
}
|
|
98
105
|
}
|
|
99
|
-
.bank-
|
|
106
|
+
.bank-card__bankLogo_eh7qu {
|
|
100
107
|
position: absolute;
|
|
101
108
|
top: 20px;
|
|
102
109
|
left: 20px
|
|
103
110
|
}
|
|
104
|
-
.bank-
|
|
111
|
+
.bank-card__bankLogo_eh7qu svg {
|
|
105
112
|
max-height: 30px;
|
|
106
113
|
width: auto;
|
|
107
114
|
display: block
|
|
108
115
|
}
|
|
109
|
-
.bank-
|
|
116
|
+
.bank-card__bankLogo_eh7qu svg g {
|
|
110
117
|
fill: var(--color-black);
|
|
111
118
|
}
|
|
112
|
-
.bank-
|
|
119
|
+
.bank-card__brandLogo_eh7qu {
|
|
113
120
|
position: absolute;
|
|
114
121
|
bottom: 20px;
|
|
115
122
|
right: 20px
|
|
116
123
|
}
|
|
117
|
-
.bank-
|
|
124
|
+
.bank-card__brandLogo_eh7qu svg {
|
|
118
125
|
display: block;
|
|
119
126
|
fill: var(--color-black);
|
|
120
127
|
}
|
|
121
|
-
.bank-
|
|
128
|
+
.bank-card__usePhoto_eh7qu {
|
|
122
129
|
display: block;
|
|
123
130
|
margin: 0;
|
|
124
131
|
padding: 0;
|
|
@@ -136,7 +143,7 @@
|
|
|
136
143
|
/* В макете иконка прилегает к правому краю поля, а по дизайн-системе там должен быть отступ */
|
|
137
144
|
margin-right: calc(var(--gap-s) * -1)
|
|
138
145
|
}
|
|
139
|
-
.bank-
|
|
146
|
+
.bank-card__usePhoto_eh7qu svg {
|
|
140
147
|
fill: var(--color-black);
|
|
141
148
|
display: block;
|
|
142
149
|
}
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import '@alfalab/core-components-masked-input/modern';
|
|
3
|
+
import '@alfalab/core-components-masked-input/dist/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-bank-card",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.2",
|
|
4
4
|
"description": "Bank card component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"main": "index.js",
|
|
8
|
-
"module": "./esm/index.js",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"module": "./dist/esm/index.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
9
12
|
"scripts": {
|
|
10
|
-
"postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
|
|
13
|
+
"postinstall": "node -e \"if (require('fs').existsSync('./dist/send-stats.js')){require('./dist/send-stats.js')} \""
|
|
11
14
|
},
|
|
12
15
|
"publishConfig": {
|
|
13
|
-
"access": "public"
|
|
14
|
-
"directory": "dist"
|
|
16
|
+
"access": "public"
|
|
15
17
|
},
|
|
16
18
|
"peerDependencies": {
|
|
17
|
-
"react": "^16.9.0 || ^17.0.1",
|
|
18
|
-
"react-dom": "^16.9.0 || ^17.0.1"
|
|
19
|
+
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
|
|
20
|
+
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
19
21
|
},
|
|
20
22
|
"dependencies": {
|
|
21
|
-
"@alfalab/core-components-masked-input": "^4.
|
|
23
|
+
"@alfalab/core-components-masked-input": "^4.5.2",
|
|
22
24
|
"@alfalab/icons-classic": "^1.76.0",
|
|
23
25
|
"@alfalab/icons-glyph": "^2.16.0",
|
|
24
26
|
"@alfalab/icons-logotype": "^1.28.0",
|
|
25
|
-
"classnames": "^2.
|
|
26
|
-
}
|
|
27
|
+
"classnames": "^2.3.1"
|
|
28
|
+
},
|
|
29
|
+
"gitHead": "4d6c8965d07839e339b370bb7c92bd7f9e24b1f3"
|
|
27
30
|
}
|