@alfalab/core-components-bank-card 4.3.2 → 4.3.3

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 CHANGED
@@ -3,6 +3,14 @@
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.3](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bank-card@4.3.2...@alfalab/core-components-bank-card@4.3.3) (2022-07-18)
7
+
8
+ **Note:** Version bump only for package @alfalab/core-components-bank-card
9
+
10
+
11
+
12
+
13
+
6
14
  ## [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
15
 
8
16
 
package/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_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"};
20
+ var styles = {"component":"bank-card__component_l0r8v","aspectRatioContainer":"bank-card__aspectRatioContainer_l0r8v","content":"bank-card__content_l0r8v","label":"bank-card__label_l0r8v","focused":"bank-card__focused_l0r8v","filled":"bank-card__filled_l0r8v","input":"bank-card__input_l0r8v","bankLogo":"bank-card__bankLogo_l0r8v","brandLogo":"bank-card__brandLogo_l0r8v","usePhoto":"bank-card__usePhoto_l0r8v"};
21
21
  require('./index.css')
22
22
 
23
23
  // prettier-ignore
package/esm/Component.js CHANGED
@@ -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_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"};
11
+ var styles = {"component":"bank-card__component_l0r8v","aspectRatioContainer":"bank-card__aspectRatioContainer_l0r8v","content":"bank-card__content_l0r8v","label":"bank-card__label_l0r8v","focused":"bank-card__focused_l0r8v","filled":"bank-card__filled_l0r8v","input":"bank-card__input_l0r8v","bankLogo":"bank-card__bankLogo_l0r8v","brandLogo":"bank-card__brandLogo_l0r8v","usePhoto":"bank-card__usePhoto_l0r8v"};
12
12
  require('./index.css')
13
13
 
14
14
  // prettier-ignore
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1hjxk */
1
+ /* hash: 11l5i */
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_1ahh6 {
26
+ .bank-card__component_l0r8v {
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_1ahh6 {
38
+ .bank-card__aspectRatioContainer_l0r8v {
39
39
  /* Эталонный размер 343x215 */
40
40
  padding-bottom: 62.6%;
41
41
  }
42
- .bank-card__content_1ahh6 {
42
+ .bank-card__content_l0r8v {
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_1ahh6 {
55
+ .bank-card__label_l0r8v {
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_1ahh6 {
63
+ .bank-card__label_l0r8v {
64
64
  font-size: 16px
65
65
  }
66
66
  }
67
- .bank-card__focused_1ahh6 .bank-card__label_1ahh6,
68
- .bank-card__filled_1ahh6 .bank-card__label_1ahh6 {
67
+ .bank-card__focused_l0r8v .bank-card__label_l0r8v,
68
+ .bank-card__filled_l0r8v .bank-card__label_l0r8v {
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_1ahh6 .bank-card__label_1ahh6,
74
- .bank-card__filled_1ahh6 .bank-card__label_1ahh6 {
73
+ .bank-card__focused_l0r8v .bank-card__label_l0r8v,
74
+ .bank-card__filled_l0r8v .bank-card__label_l0r8v {
75
75
  transform: translateY(-22px) scale(0.75)
76
76
  }
77
77
  }
78
- .bank-card__focused_1ahh6:before {
78
+ .bank-card__focused_l0r8v:before {
79
79
  transform: scale(1) !important;
80
80
  }
81
- .bank-card__input_1ahh6 {
81
+ .bank-card__input_l0r8v {
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_1ahh6 {
95
+ .bank-card__input_l0r8v {
96
96
  font-size: 16px
97
97
  }
98
98
  }
99
- .bank-card__bankLogo_1ahh6 {
99
+ .bank-card__bankLogo_l0r8v {
100
100
  position: absolute;
101
101
  top: 20px;
102
102
  left: 20px
103
103
  }
104
- .bank-card__bankLogo_1ahh6 svg {
104
+ .bank-card__bankLogo_l0r8v svg {
105
105
  max-height: 30px;
106
106
  width: auto;
107
107
  display: block
108
108
  }
109
- .bank-card__bankLogo_1ahh6 svg g {
109
+ .bank-card__bankLogo_l0r8v svg g {
110
110
  fill: var(--color-black);
111
111
  }
112
- .bank-card__brandLogo_1ahh6 {
112
+ .bank-card__brandLogo_l0r8v {
113
113
  position: absolute;
114
114
  bottom: 20px;
115
115
  right: 20px
116
116
  }
117
- .bank-card__brandLogo_1ahh6 svg {
117
+ .bank-card__brandLogo_l0r8v svg {
118
118
  display: block;
119
119
  fill: var(--color-black);
120
120
  }
121
- .bank-card__usePhoto_1ahh6 {
121
+ .bank-card__usePhoto_l0r8v {
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_1ahh6 svg {
139
+ .bank-card__usePhoto_l0r8v svg {
140
140
  fill: var(--color-black);
141
141
  display: block;
142
142
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1hjxk */
1
+ /* hash: 11l5i */
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_1ahh6 {
26
+ .bank-card__component_l0r8v {
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_1ahh6 {
38
+ .bank-card__aspectRatioContainer_l0r8v {
39
39
  /* Эталонный размер 343x215 */
40
40
  padding-bottom: 62.6%;
41
41
  }
42
- .bank-card__content_1ahh6 {
42
+ .bank-card__content_l0r8v {
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_1ahh6 {
55
+ .bank-card__label_l0r8v {
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_1ahh6 {
63
+ .bank-card__label_l0r8v {
64
64
  font-size: 16px
65
65
  }
66
66
  }
67
- .bank-card__focused_1ahh6 .bank-card__label_1ahh6,
68
- .bank-card__filled_1ahh6 .bank-card__label_1ahh6 {
67
+ .bank-card__focused_l0r8v .bank-card__label_l0r8v,
68
+ .bank-card__filled_l0r8v .bank-card__label_l0r8v {
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_1ahh6 .bank-card__label_1ahh6,
74
- .bank-card__filled_1ahh6 .bank-card__label_1ahh6 {
73
+ .bank-card__focused_l0r8v .bank-card__label_l0r8v,
74
+ .bank-card__filled_l0r8v .bank-card__label_l0r8v {
75
75
  transform: translateY(-22px) scale(0.75)
76
76
  }
77
77
  }
78
- .bank-card__focused_1ahh6:before {
78
+ .bank-card__focused_l0r8v:before {
79
79
  transform: scale(1) !important;
80
80
  }
81
- .bank-card__input_1ahh6 {
81
+ .bank-card__input_l0r8v {
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_1ahh6 {
95
+ .bank-card__input_l0r8v {
96
96
  font-size: 16px
97
97
  }
98
98
  }
99
- .bank-card__bankLogo_1ahh6 {
99
+ .bank-card__bankLogo_l0r8v {
100
100
  position: absolute;
101
101
  top: 20px;
102
102
  left: 20px
103
103
  }
104
- .bank-card__bankLogo_1ahh6 svg {
104
+ .bank-card__bankLogo_l0r8v svg {
105
105
  max-height: 30px;
106
106
  width: auto;
107
107
  display: block
108
108
  }
109
- .bank-card__bankLogo_1ahh6 svg g {
109
+ .bank-card__bankLogo_l0r8v svg g {
110
110
  fill: var(--color-black);
111
111
  }
112
- .bank-card__brandLogo_1ahh6 {
112
+ .bank-card__brandLogo_l0r8v {
113
113
  position: absolute;
114
114
  bottom: 20px;
115
115
  right: 20px
116
116
  }
117
- .bank-card__brandLogo_1ahh6 svg {
117
+ .bank-card__brandLogo_l0r8v svg {
118
118
  display: block;
119
119
  fill: var(--color-black);
120
120
  }
121
- .bank-card__usePhoto_1ahh6 {
121
+ .bank-card__usePhoto_l0r8v {
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_1ahh6 svg {
139
+ .bank-card__usePhoto_l0r8v 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_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"};
11
+ var styles = {"component":"bank-card__component_l0r8v","aspectRatioContainer":"bank-card__aspectRatioContainer_l0r8v","content":"bank-card__content_l0r8v","label":"bank-card__label_l0r8v","focused":"bank-card__focused_l0r8v","filled":"bank-card__filled_l0r8v","input":"bank-card__input_l0r8v","bankLogo":"bank-card__bankLogo_l0r8v","brandLogo":"bank-card__brandLogo_l0r8v","usePhoto":"bank-card__usePhoto_l0r8v"};
12
12
  require('./index.css')
13
13
 
14
14
  // prettier-ignore
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1hjxk */
1
+ /* hash: 11l5i */
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_1ahh6 {
26
+ .bank-card__component_l0r8v {
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_1ahh6 {
38
+ .bank-card__aspectRatioContainer_l0r8v {
39
39
  /* Эталонный размер 343x215 */
40
40
  padding-bottom: 62.6%;
41
41
  }
42
- .bank-card__content_1ahh6 {
42
+ .bank-card__content_l0r8v {
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_1ahh6 {
55
+ .bank-card__label_l0r8v {
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_1ahh6 {
63
+ .bank-card__label_l0r8v {
64
64
  font-size: 16px
65
65
  }
66
66
  }
67
- .bank-card__focused_1ahh6 .bank-card__label_1ahh6,
68
- .bank-card__filled_1ahh6 .bank-card__label_1ahh6 {
67
+ .bank-card__focused_l0r8v .bank-card__label_l0r8v,
68
+ .bank-card__filled_l0r8v .bank-card__label_l0r8v {
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_1ahh6 .bank-card__label_1ahh6,
74
- .bank-card__filled_1ahh6 .bank-card__label_1ahh6 {
73
+ .bank-card__focused_l0r8v .bank-card__label_l0r8v,
74
+ .bank-card__filled_l0r8v .bank-card__label_l0r8v {
75
75
  transform: translateY(-22px) scale(0.75)
76
76
  }
77
77
  }
78
- .bank-card__focused_1ahh6:before {
78
+ .bank-card__focused_l0r8v:before {
79
79
  transform: scale(1) !important;
80
80
  }
81
- .bank-card__input_1ahh6 {
81
+ .bank-card__input_l0r8v {
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_1ahh6 {
95
+ .bank-card__input_l0r8v {
96
96
  font-size: 16px
97
97
  }
98
98
  }
99
- .bank-card__bankLogo_1ahh6 {
99
+ .bank-card__bankLogo_l0r8v {
100
100
  position: absolute;
101
101
  top: 20px;
102
102
  left: 20px
103
103
  }
104
- .bank-card__bankLogo_1ahh6 svg {
104
+ .bank-card__bankLogo_l0r8v svg {
105
105
  max-height: 30px;
106
106
  width: auto;
107
107
  display: block
108
108
  }
109
- .bank-card__bankLogo_1ahh6 svg g {
109
+ .bank-card__bankLogo_l0r8v svg g {
110
110
  fill: var(--color-black);
111
111
  }
112
- .bank-card__brandLogo_1ahh6 {
112
+ .bank-card__brandLogo_l0r8v {
113
113
  position: absolute;
114
114
  bottom: 20px;
115
115
  right: 20px
116
116
  }
117
- .bank-card__brandLogo_1ahh6 svg {
117
+ .bank-card__brandLogo_l0r8v svg {
118
118
  display: block;
119
119
  fill: var(--color-black);
120
120
  }
121
- .bank-card__usePhoto_1ahh6 {
121
+ .bank-card__usePhoto_l0r8v {
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_1ahh6 svg {
139
+ .bank-card__usePhoto_l0r8v svg {
140
140
  fill: var(--color-black);
141
141
  display: block;
142
142
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-bank-card",
3
- "version": "4.3.2",
3
+ "version": "4.3.3",
4
4
  "description": "Bank card component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
7
  "main": "index.js",
8
8
  "module": "./esm/index.js",
9
9
  "scripts": {
10
- "postinstall": "node ./send-stats.js > /dev/null 2>&1 || exit 0"
10
+ "postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
11
11
  },
12
12
  "publishConfig": {
13
13
  "access": "public",
@@ -18,7 +18,7 @@
18
18
  "react-dom": "^16.9.0 || ^17.0.1"
19
19
  },
20
20
  "dependencies": {
21
- "@alfalab/core-components-masked-input": "^4.4.2",
21
+ "@alfalab/core-components-masked-input": "^4.4.3",
22
22
  "@alfalab/icons-classic": "^1.76.0",
23
23
  "@alfalab/icons-glyph": "^2.16.0",
24
24
  "@alfalab/icons-logotype": "^1.28.0",