@alfalab/core-components-pure-cell 3.0.3 → 4.0.0

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.
Files changed (187) hide show
  1. package/component-3f45f3c4.d.ts +5 -7
  2. package/{component-7b340665.d.ts → component-e81848a4.d.ts} +0 -0
  3. package/{component-7b340665.js → component-e81848a4.js} +11 -10
  4. package/component.js +4 -3
  5. package/components/addon/component.d.ts +1 -1
  6. package/components/addon/component.js +4 -7
  7. package/components/addon/index.css +15 -8
  8. package/components/addon/index.js +1 -1
  9. package/components/amount/component.d.ts +2 -6
  10. package/components/amount/component.js +6 -6
  11. package/components/amount/index.css +2 -2
  12. package/components/amount/index.js +2 -1
  13. package/components/amount-title/component.d.ts +1 -9
  14. package/components/amount-title/component.js +5 -5
  15. package/components/amount-title/index.css +3 -3
  16. package/components/amount-title/index.js +2 -1
  17. package/components/category/component.d.ts +5 -0
  18. package/components/category/component.js +5 -4
  19. package/components/category/index.css +8 -4
  20. package/components/category/index.js +1 -1
  21. package/components/content/component.js +4 -3
  22. package/components/content/index.css +3 -3
  23. package/components/content/index.d.ts +1 -1
  24. package/components/content/index.js +4 -3
  25. package/components/footer/component.js +2 -2
  26. package/components/footer/index.css +4 -4
  27. package/components/footer/index.js +1 -1
  28. package/components/footer-button/component.d.ts +5 -0
  29. package/components/footer-button/component.js +15 -5
  30. package/components/footer-button/index.css +2 -2
  31. package/components/footer-button/index.d.ts +1 -1
  32. package/components/footer-button/index.js +3 -2
  33. package/components/footer-text/component.js +1 -1
  34. package/components/footer-text/index.js +1 -1
  35. package/components/graphics/component.js +2 -2
  36. package/components/graphics/index.css +2 -2
  37. package/components/graphics/index.js +1 -1
  38. package/components/main/component.js +4 -3
  39. package/components/main/index.css +4 -4
  40. package/components/main/index.d.ts +1 -1
  41. package/components/main/index.js +4 -3
  42. package/components/text/component.js +4 -3
  43. package/components/text/index.css +10 -8
  44. package/components/text/index.d.ts +1 -1
  45. package/components/text/index.js +4 -3
  46. package/components/typesProps.d.ts +2 -2
  47. package/cssm/{component-d3306cf3.d.ts → component-0839382a.d.ts} +0 -0
  48. package/cssm/{component-d3306cf3.js → component-0839382a.js} +6 -5
  49. package/cssm/component-3f45f3c4.d.ts +11 -13
  50. package/cssm/component.js +3 -2
  51. package/cssm/components/addon/component.d.ts +1 -1
  52. package/cssm/components/addon/component.js +2 -5
  53. package/cssm/components/addon/index.module.css +8 -1
  54. package/cssm/components/amount/component.d.ts +2 -6
  55. package/cssm/components/amount/component.js +4 -4
  56. package/cssm/components/amount/index.js +1 -0
  57. package/cssm/components/amount-title/component.d.ts +1 -9
  58. package/cssm/components/amount-title/component.js +3 -3
  59. package/cssm/components/amount-title/index.js +1 -0
  60. package/cssm/components/category/component.d.ts +5 -0
  61. package/cssm/components/category/component.js +3 -2
  62. package/cssm/components/category/index.module.css +4 -0
  63. package/cssm/components/content/component.js +3 -2
  64. package/cssm/components/content/index.d.ts +1 -1
  65. package/cssm/components/content/index.js +3 -2
  66. package/cssm/components/footer-button/component.d.ts +5 -0
  67. package/cssm/components/footer-button/component.js +14 -6
  68. package/cssm/components/footer-button/index.d.ts +1 -1
  69. package/cssm/components/footer-button/index.js +2 -1
  70. package/cssm/components/main/component.js +3 -2
  71. package/cssm/components/main/index.d.ts +1 -1
  72. package/cssm/components/main/index.js +3 -2
  73. package/cssm/components/text/component.js +3 -2
  74. package/cssm/components/text/index.d.ts +1 -1
  75. package/cssm/components/text/index.js +3 -2
  76. package/cssm/components/text/index.module.css +4 -2
  77. package/cssm/components/typesProps.d.ts +2 -2
  78. package/cssm/index.js +3 -2
  79. package/{esm/component-ef452835.d.ts → cssm/tslib.es6-ce870b46.d.ts} +1 -5
  80. package/{component-80973026.js → cssm/tslib.es6-ce870b46.js} +0 -17
  81. package/esm/component-3f45f3c4.d.ts +5 -7
  82. package/esm/{component-922dd03a.d.ts → component-92010732.d.ts} +0 -0
  83. package/esm/{component-922dd03a.js → component-92010732.js} +8 -7
  84. package/esm/component.js +4 -3
  85. package/esm/components/addon/component.d.ts +1 -1
  86. package/esm/components/addon/component.js +4 -7
  87. package/esm/components/addon/index.css +15 -8
  88. package/esm/components/addon/index.js +1 -1
  89. package/esm/components/amount/component.d.ts +2 -6
  90. package/esm/components/amount/component.js +6 -6
  91. package/esm/components/amount/index.css +2 -2
  92. package/esm/components/amount/index.js +2 -1
  93. package/esm/components/amount-title/component.d.ts +1 -9
  94. package/esm/components/amount-title/component.js +5 -5
  95. package/esm/components/amount-title/index.css +3 -3
  96. package/esm/components/amount-title/index.js +2 -1
  97. package/esm/components/category/component.d.ts +5 -0
  98. package/esm/components/category/component.js +5 -4
  99. package/esm/components/category/index.css +8 -4
  100. package/esm/components/category/index.js +1 -1
  101. package/esm/components/content/component.js +4 -3
  102. package/esm/components/content/index.css +3 -3
  103. package/esm/components/content/index.d.ts +1 -1
  104. package/esm/components/content/index.js +4 -3
  105. package/esm/components/footer/component.js +2 -2
  106. package/esm/components/footer/index.css +4 -4
  107. package/esm/components/footer/index.js +1 -1
  108. package/esm/components/footer-button/component.d.ts +5 -0
  109. package/esm/components/footer-button/component.js +14 -4
  110. package/esm/components/footer-button/index.css +2 -2
  111. package/esm/components/footer-button/index.d.ts +1 -1
  112. package/esm/components/footer-button/index.js +3 -2
  113. package/esm/components/footer-text/component.js +1 -1
  114. package/esm/components/footer-text/index.js +1 -1
  115. package/esm/components/graphics/component.js +2 -2
  116. package/esm/components/graphics/index.css +2 -2
  117. package/esm/components/graphics/index.js +1 -1
  118. package/esm/components/main/component.js +4 -3
  119. package/esm/components/main/index.css +4 -4
  120. package/esm/components/main/index.d.ts +1 -1
  121. package/esm/components/main/index.js +4 -3
  122. package/esm/components/text/component.js +4 -3
  123. package/esm/components/text/index.css +10 -8
  124. package/esm/components/text/index.d.ts +1 -1
  125. package/esm/components/text/index.js +4 -3
  126. package/esm/components/typesProps.d.ts +2 -2
  127. package/esm/{getDataTestId-181163b5.d.ts → getDataTestId-a5ad08de.d.ts} +0 -0
  128. package/esm/{getDataTestId-181163b5.js → getDataTestId-a5ad08de.js} +0 -0
  129. package/esm/index.css +19 -19
  130. package/esm/index.js +4 -3
  131. package/{cssm/component-22ece846.d.ts → esm/tslib.es6-1c2475cc.d.ts} +1 -5
  132. package/esm/{component-ef452835.js → tslib.es6-1c2475cc.js} +1 -13
  133. package/{getDataTestId-3a7e2404.d.ts → getDataTestId-874edbee.d.ts} +0 -0
  134. package/{getDataTestId-3a7e2404.js → getDataTestId-874edbee.js} +0 -0
  135. package/index.css +19 -19
  136. package/index.js +4 -3
  137. package/modern/{component-99f95ea2.d.ts → component-0aebd563.d.ts} +0 -0
  138. package/modern/{component-99f95ea2.js → component-0aebd563.js} +6 -6
  139. package/modern/component-3f45f3c4.d.ts +5 -7
  140. package/modern/component.js +2 -2
  141. package/modern/components/addon/component.d.ts +1 -1
  142. package/modern/components/addon/component.js +3 -5
  143. package/modern/components/addon/index.css +15 -8
  144. package/modern/components/addon/index.js +1 -1
  145. package/modern/components/amount/component.d.ts +2 -6
  146. package/modern/components/amount/component.js +5 -6
  147. package/modern/components/amount/index.css +2 -2
  148. package/modern/components/amount/index.js +1 -1
  149. package/modern/components/amount-title/component.d.ts +1 -9
  150. package/modern/components/amount-title/component.js +4 -5
  151. package/modern/components/amount-title/index.css +3 -3
  152. package/modern/components/amount-title/index.js +1 -1
  153. package/modern/components/category/component.d.ts +5 -0
  154. package/modern/components/category/component.js +5 -4
  155. package/modern/components/category/index.css +8 -4
  156. package/modern/components/category/index.js +1 -1
  157. package/modern/components/content/component.js +2 -2
  158. package/modern/components/content/index.css +3 -3
  159. package/modern/components/content/index.d.ts +1 -1
  160. package/modern/components/content/index.js +2 -2
  161. package/modern/components/footer/component.js +2 -2
  162. package/modern/components/footer/index.css +4 -4
  163. package/modern/components/footer/index.js +1 -1
  164. package/modern/components/footer-button/component.js +2 -2
  165. package/modern/components/footer-button/index.css +2 -2
  166. package/modern/components/footer-button/index.js +1 -1
  167. package/modern/components/footer-text/component.js +1 -1
  168. package/modern/components/footer-text/index.js +1 -1
  169. package/modern/components/graphics/component.js +2 -2
  170. package/modern/components/graphics/index.css +2 -2
  171. package/modern/components/graphics/index.js +1 -1
  172. package/modern/components/main/component.js +2 -2
  173. package/modern/components/main/index.css +4 -4
  174. package/modern/components/main/index.d.ts +1 -1
  175. package/modern/components/main/index.js +2 -2
  176. package/modern/components/text/component.js +2 -2
  177. package/modern/components/text/index.css +10 -8
  178. package/modern/components/text/index.d.ts +1 -1
  179. package/modern/components/text/index.js +2 -2
  180. package/modern/components/typesProps.d.ts +2 -2
  181. package/modern/{getDataTestId-60d7e355.d.ts → getDataTestId-997a290e.d.ts} +0 -0
  182. package/modern/{getDataTestId-60d7e355.js → getDataTestId-997a290e.js} +0 -0
  183. package/modern/index.css +19 -19
  184. package/modern/index.js +2 -2
  185. package/package.json +2 -2
  186. package/{component-80973026.d.ts → tslib.es6-37028810.d.ts} +1 -5
  187. package/{cssm/component-22ece846.js → tslib.es6-37028810.js} +0 -16
@@ -1,18 +1,19 @@
1
- import '../../component-ef452835.js';
1
+ import '../../tslib.es6-1c2475cc.js';
2
2
  import 'react';
3
3
  import 'react-merge-refs';
4
4
  import 'classnames';
5
5
  import '@alfalab/hooks';
6
6
  import '@alfalab/core-components-comment/esm';
7
- import '../../getDataTestId-181163b5.js';
7
+ import '../../getDataTestId-a5ad08de.js';
8
8
  import '../addon/component.js';
9
9
  import '@alfalab/core-components-typography/esm';
10
10
  import '@alfalab/core-components-amount/esm';
11
11
  import '../amount/component.js';
12
12
  import '../amount-title/component.js';
13
13
  import '../category/component.js';
14
- export { T as Text } from '../../component-922dd03a.js';
14
+ export { T as Text } from '../../component-92010732.js';
15
15
  import '../footer/component.js';
16
16
  import '@alfalab/core-components-button/esm';
17
+ import '../footer-button/component.js';
17
18
  import '../footer-text/component.js';
18
19
  import '../graphics/component.js';
@@ -16,7 +16,7 @@ type AmountProps = {
16
16
  /**
17
17
  * Количество минорных единиц в валюте
18
18
  */
19
- minority: number;
19
+ minority?: number;
20
20
  /**
21
21
  * Делает минорную часть полупрозрачной
22
22
  */
@@ -24,7 +24,7 @@ type AmountProps = {
24
24
  /**
25
25
  * Количество минорных единиц в валюте для Клика
26
26
  */
27
- minorUnits: number;
27
+ minorUnits?: number;
28
28
  /**
29
29
  * default - не отображаем копейки, если их значение 0
30
30
  * withZeroMinorPart - отображаем копейки, даже если их значение равно 0
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1wugr */
1
+ /* hash: 1u4gi */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  }
@@ -19,21 +19,21 @@
19
19
  :root {
20
20
  --focus-color: var(--color-light-border-link);
21
21
  }
22
- .pure-cell__component_1hstz {
22
+ .pure-cell__component_15qoi {
23
23
  text-align: unset;
24
24
  }
25
- .pure-cell__horizontal_1hstz {
25
+ .pure-cell__horizontal_15qoi {
26
26
  display: flex;
27
27
  width: 100%;
28
28
  grid-column-gap: var(--gap-m);
29
29
  }
30
- .pure-cell__vertical_1hstz {
30
+ .pure-cell__vertical_15qoi {
31
31
  display: flex;
32
32
  align-items: center;
33
33
  flex-direction: column;
34
34
  grid-row-gap: var(--gap-s);
35
35
  }
36
- .pure-cell__button_1hstz {
36
+ .pure-cell__button_15qoi {
37
37
  font-family: inherit;
38
38
  background: none;
39
39
  border: 0;
@@ -42,50 +42,50 @@
42
42
  transition: opacity 0.15s ease-in-out;
43
43
  padding: 0
44
44
  }
45
- .pure-cell__button_1hstz:hover {
45
+ .pure-cell__button_15qoi:hover {
46
46
  opacity: 0.8;
47
47
  }
48
- .pure-cell__button_1hstz:active {
48
+ .pure-cell__button_15qoi:active {
49
49
  opacity: 0.6;
50
50
  }
51
- .pure-cell__link_1hstz {
51
+ .pure-cell__link_15qoi {
52
52
  text-decoration: none;
53
53
  color: inherit;
54
54
  cursor: pointer;
55
55
  transition: opacity 0.15s ease-in-out
56
56
  }
57
- .pure-cell__link_1hstz:hover {
57
+ .pure-cell__link_15qoi:hover {
58
58
  opacity: 0.8;
59
59
  }
60
- .pure-cell__link_1hstz:active {
60
+ .pure-cell__link_15qoi:active {
61
61
  opacity: 0.6;
62
62
  }
63
- .pure-cell__none_1hstz {
63
+ .pure-cell__none_15qoi {
64
64
  padding: 0;
65
65
  }
66
- .pure-cell__airy_1hstz {
66
+ .pure-cell__airy_15qoi {
67
67
  padding: var(--gap-m) 0;
68
68
  }
69
- .pure-cell__defaultPadding_1hstz {
69
+ .pure-cell__defaultPadding_15qoi {
70
70
  padding: var(--gap-s) 0;
71
71
  }
72
- .pure-cell__compact_1hstz {
72
+ .pure-cell__compact_15qoi {
73
73
  padding: var(--gap-xs) 0;
74
74
  }
75
- .pure-cell__tiny_1hstz {
75
+ .pure-cell__tiny_15qoi {
76
76
  padding: var(--gap-2xs) 0;
77
77
  }
78
- .pure-cell__left_1hstz {
78
+ .pure-cell__left_15qoi {
79
79
  padding-left: var(--gap-m);
80
80
  }
81
- .pure-cell__right_1hstz {
81
+ .pure-cell__right_15qoi {
82
82
  padding-right: var(--gap-m);
83
83
  }
84
- .pure-cell__both_1hstz {
84
+ .pure-cell__both_15qoi {
85
85
  padding-right: var(--gap-m);
86
86
  padding-left: var(--gap-m);
87
87
  }
88
- .pure-cell__focused_1hstz {
88
+ .pure-cell__focused_15qoi {
89
89
  outline: 2px solid var(--focus-color);
90
90
  outline-offset: 2px;
91
91
  }
package/esm/index.js CHANGED
@@ -1,18 +1,19 @@
1
- import './component-ef452835.js';
1
+ import './tslib.es6-1c2475cc.js';
2
2
  import 'react';
3
3
  import 'react-merge-refs';
4
4
  import 'classnames';
5
5
  import '@alfalab/hooks';
6
6
  import '@alfalab/core-components-comment/esm';
7
- import './getDataTestId-181163b5.js';
7
+ import './getDataTestId-a5ad08de.js';
8
8
  import './components/addon/component.js';
9
9
  import '@alfalab/core-components-typography/esm';
10
10
  import '@alfalab/core-components-amount/esm';
11
11
  import './components/amount/component.js';
12
12
  import './components/amount-title/component.js';
13
13
  import './components/category/component.js';
14
- export { P as PureCell } from './component-922dd03a.js';
14
+ export { P as PureCell } from './component-92010732.js';
15
15
  import './components/footer/component.js';
16
16
  import '@alfalab/core-components-button/esm';
17
+ import './components/footer-button/component.js';
17
18
  import './components/footer-text/component.js';
18
19
  import './components/graphics/component.js';
@@ -1,6 +1,3 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { ButtonProps } from "@alfalab/core-components-button";
4
1
  declare function __extends(d: any, b: any): void;
5
2
  declare function __rest(s: any, e: any): {};
6
3
  declare function __decorate(decorators: any, target: any, key: any, desc: any, ...args: any[]): any;
@@ -32,5 +29,4 @@ declare function __classPrivateFieldGet(receiver: any, privateMap: any): any;
32
29
  declare function __classPrivateFieldSet(receiver: any, privateMap: any, value: any): any;
33
30
  declare function __assign(...args: any[]): any;
34
31
  declare function __createBinding(o: any, m: any, k: any, k2: any): void;
35
- declare const FooterButton: React.FC<ButtonProps>;
36
- export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding, FooterButton };
32
+ export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding };
@@ -1,7 +1,3 @@
1
- import React from 'react';
2
- import { g as getDataTestId } from './getDataTestId-181163b5.js';
3
- import { Button } from '@alfalab/core-components-button/esm';
4
-
5
1
  /*! *****************************************************************************
6
2
  Copyright (c) Microsoft Corporation.
7
3
 
@@ -41,12 +37,4 @@ function __rest(s, e) {
41
37
  return t;
42
38
  }
43
39
 
44
- var styles = {"component":"pure-cell__component_1cy0p"};
45
- require('./components/footer-button/index.css')
46
-
47
- var FooterButton = function (_a) {
48
- var children = _a.children, dataTestId = _a.dataTestId, props = __rest(_a, ["children", "dataTestId"]);
49
- return (React.createElement(Button, __assign({}, props, { size: 'xxs', dataTestId: getDataTestId(dataTestId, 'button'), className: styles.component }), children));
50
- };
51
-
52
- export { FooterButton as F, __rest as _, __assign as a };
40
+ export { __rest as _, __assign as a };
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1wugr */
1
+ /* hash: 1u4gi */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  }
@@ -19,21 +19,21 @@
19
19
  :root {
20
20
  --focus-color: var(--color-light-border-link);
21
21
  }
22
- .pure-cell__component_1hstz {
22
+ .pure-cell__component_15qoi {
23
23
  text-align: unset;
24
24
  }
25
- .pure-cell__horizontal_1hstz {
25
+ .pure-cell__horizontal_15qoi {
26
26
  display: flex;
27
27
  width: 100%;
28
28
  grid-column-gap: var(--gap-m);
29
29
  }
30
- .pure-cell__vertical_1hstz {
30
+ .pure-cell__vertical_15qoi {
31
31
  display: flex;
32
32
  align-items: center;
33
33
  flex-direction: column;
34
34
  grid-row-gap: var(--gap-s);
35
35
  }
36
- .pure-cell__button_1hstz {
36
+ .pure-cell__button_15qoi {
37
37
  font-family: inherit;
38
38
  background: none;
39
39
  border: 0;
@@ -42,50 +42,50 @@
42
42
  transition: opacity 0.15s ease-in-out;
43
43
  padding: 0
44
44
  }
45
- .pure-cell__button_1hstz:hover {
45
+ .pure-cell__button_15qoi:hover {
46
46
  opacity: 0.8;
47
47
  }
48
- .pure-cell__button_1hstz:active {
48
+ .pure-cell__button_15qoi:active {
49
49
  opacity: 0.6;
50
50
  }
51
- .pure-cell__link_1hstz {
51
+ .pure-cell__link_15qoi {
52
52
  text-decoration: none;
53
53
  color: inherit;
54
54
  cursor: pointer;
55
55
  transition: opacity 0.15s ease-in-out
56
56
  }
57
- .pure-cell__link_1hstz:hover {
57
+ .pure-cell__link_15qoi:hover {
58
58
  opacity: 0.8;
59
59
  }
60
- .pure-cell__link_1hstz:active {
60
+ .pure-cell__link_15qoi:active {
61
61
  opacity: 0.6;
62
62
  }
63
- .pure-cell__none_1hstz {
63
+ .pure-cell__none_15qoi {
64
64
  padding: 0;
65
65
  }
66
- .pure-cell__airy_1hstz {
66
+ .pure-cell__airy_15qoi {
67
67
  padding: var(--gap-m) 0;
68
68
  }
69
- .pure-cell__defaultPadding_1hstz {
69
+ .pure-cell__defaultPadding_15qoi {
70
70
  padding: var(--gap-s) 0;
71
71
  }
72
- .pure-cell__compact_1hstz {
72
+ .pure-cell__compact_15qoi {
73
73
  padding: var(--gap-xs) 0;
74
74
  }
75
- .pure-cell__tiny_1hstz {
75
+ .pure-cell__tiny_15qoi {
76
76
  padding: var(--gap-2xs) 0;
77
77
  }
78
- .pure-cell__left_1hstz {
78
+ .pure-cell__left_15qoi {
79
79
  padding-left: var(--gap-m);
80
80
  }
81
- .pure-cell__right_1hstz {
81
+ .pure-cell__right_15qoi {
82
82
  padding-right: var(--gap-m);
83
83
  }
84
- .pure-cell__both_1hstz {
84
+ .pure-cell__both_15qoi {
85
85
  padding-right: var(--gap-m);
86
86
  padding-left: var(--gap-m);
87
87
  }
88
- .pure-cell__focused_1hstz {
88
+ .pure-cell__focused_15qoi {
89
89
  outline: 2px solid var(--focus-color);
90
90
  outline-offset: 2px;
91
91
  }
package/index.js CHANGED
@@ -2,22 +2,23 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./component-80973026.js');
5
+ require('./tslib.es6-37028810.js');
6
6
  require('react');
7
7
  require('react-merge-refs');
8
8
  require('classnames');
9
9
  require('@alfalab/hooks');
10
10
  require('@alfalab/core-components-comment');
11
- require('./getDataTestId-3a7e2404.js');
11
+ require('./getDataTestId-874edbee.js');
12
12
  require('./components/addon/component.js');
13
13
  require('@alfalab/core-components-typography');
14
14
  require('@alfalab/core-components-amount');
15
15
  require('./components/amount/component.js');
16
16
  require('./components/amount-title/component.js');
17
17
  require('./components/category/component.js');
18
- var components_content_component = require('./component-7b340665.js');
18
+ var components_content_component = require('./component-e81848a4.js');
19
19
  require('./components/footer/component.js');
20
20
  require('@alfalab/core-components-button');
21
+ require('./components/footer-button/component.js');
21
22
  require('./components/footer-text/component.js');
22
23
  require('./components/graphics/component.js');
23
24
 
@@ -3,7 +3,7 @@ import mergeRefs from 'react-merge-refs';
3
3
  import cn from 'classnames';
4
4
  import { useFocus } from '@alfalab/hooks';
5
5
  import { Comment } from '@alfalab/core-components-comment/modern';
6
- import { g as getDataTestId } from './getDataTestId-60d7e355.js';
6
+ import { g as getDataTestId } from './getDataTestId-997a290e.js';
7
7
  import { Addon } from './components/addon/component.js';
8
8
  import { Typography } from '@alfalab/core-components-typography/modern';
9
9
  import { Amount } from './components/amount/component.js';
@@ -14,7 +14,7 @@ import { FooterButton } from './components/footer-button/component.js';
14
14
  import { FooterText } from './components/footer-text/component.js';
15
15
  import { Graphics } from './components/graphics/component.js';
16
16
 
17
- var styles = {"component":"pure-cell__component_swkbf","horizontal":"pure-cell__horizontal_swkbf"};
17
+ var styles = {"component":"pure-cell__component_1s3xh","horizontal":"pure-cell__horizontal_1s3xh"};
18
18
  require('./components/content/index.css')
19
19
 
20
20
  const Content = ({ children, dataTestId }) => {
@@ -22,7 +22,7 @@ const Content = ({ children, dataTestId }) => {
22
22
  return (React.createElement("section", { className: cn(styles.component, { [styles.horizontal]: direction === 'horizontal' }), "data-test-id": getDataTestId(dataTestId, 'content') }, children));
23
23
  };
24
24
 
25
- var styles$1 = {"component":"pure-cell__component_1iei5","vertical":"pure-cell__vertical_1iei5","reverse":"pure-cell__reverse_1iei5"};
25
+ var styles$1 = {"component":"pure-cell__component_ikr9m","vertical":"pure-cell__vertical_ikr9m","reverse":"pure-cell__reverse_ikr9m"};
26
26
  require('./components/main/index.css')
27
27
 
28
28
  const Main = ({ children, isReverse, dataTestId }) => {
@@ -32,7 +32,7 @@ const Main = ({ children, isReverse, dataTestId }) => {
32
32
  }), "data-test-id": getDataTestId(dataTestId, 'main') }, children));
33
33
  };
34
34
 
35
- var styles$2 = {"horizontal":"pure-cell__horizontal_174je","rowLimit1":"pure-cell__rowLimit1_174je","rowLimit2":"pure-cell__rowLimit2_174je","component":"pure-cell__component_174je","vertical":"pure-cell__vertical_174je","title":"pure-cell__title_174je"};
35
+ var styles$2 = {"horizontal":"pure-cell__horizontal_1vazz","rowLimit1":"pure-cell__rowLimit1_1vazz","rowLimit2":"pure-cell__rowLimit2_1vazz","component":"pure-cell__component_1vazz","vertical":"pure-cell__vertical_1vazz","title":"pure-cell__title_1vazz","value":"pure-cell__value_1vazz"};
36
36
  require('./components/text/index.css')
37
37
 
38
38
  const Text = ({ children, value, rowLimit, view = 'component', titleColor, valueColor, dataTestId, }) => {
@@ -42,10 +42,10 @@ const Text = ({ children, value, rowLimit, view = 'component', titleColor, value
42
42
  [styles$2.vertical]: direction !== 'horizontal',
43
43
  }) },
44
44
  React.createElement("span", { className: styles$2.title }, typeof children === 'string' ? (React.createElement(Typography.Text, { view: view, color: titleColor, className: className, "data-test-id": getDataTestId(dataTestId, 'text') }, children)) : (children)),
45
- React.createElement("span", null, typeof value === 'string' ? (React.createElement(Typography.Text, { view: view, color: valueColor, className: className, "data-test-id": getDataTestId(dataTestId, 'text') }, value)) : (value))));
45
+ value !== undefined && (React.createElement("span", { className: styles$2.value }, typeof value === 'string' ? (React.createElement(Typography.Text, { view: view, color: valueColor, className: className, "data-test-id": getDataTestId(dataTestId, 'text') }, value)) : (value)))));
46
46
  };
47
47
 
48
- var styles$3 = {"component":"pure-cell__component_1hstz","horizontal":"pure-cell__horizontal_1hstz","vertical":"pure-cell__vertical_1hstz","button":"pure-cell__button_1hstz","link":"pure-cell__link_1hstz","none":"pure-cell__none_1hstz","airy":"pure-cell__airy_1hstz","defaultPadding":"pure-cell__defaultPadding_1hstz","compact":"pure-cell__compact_1hstz","tiny":"pure-cell__tiny_1hstz","left":"pure-cell__left_1hstz","right":"pure-cell__right_1hstz","both":"pure-cell__both_1hstz","focused":"pure-cell__focused_1hstz"};
48
+ var styles$3 = {"component":"pure-cell__component_15qoi","horizontal":"pure-cell__horizontal_15qoi","vertical":"pure-cell__vertical_15qoi","button":"pure-cell__button_15qoi","link":"pure-cell__link_15qoi","none":"pure-cell__none_15qoi","airy":"pure-cell__airy_15qoi","defaultPadding":"pure-cell__defaultPadding_15qoi","compact":"pure-cell__compact_15qoi","tiny":"pure-cell__tiny_15qoi","left":"pure-cell__left_15qoi","right":"pure-cell__right_15qoi","both":"pure-cell__both_15qoi","focused":"pure-cell__focused_15qoi"};
49
49
  require('./index.css')
50
50
 
51
51
  const PureCellContext = React.createContext({});
@@ -70,19 +70,16 @@ declare const PureCell: React.ForwardRefExoticComponent<(Partial<AnchorPureCellP
70
70
  dataTestId?: string | undefined;
71
71
  }>;
72
72
  Amount: React.FC<{
73
- amount: import("./components/typesProps").AmountProps;
74
73
  weight?: "bold" | "normal" | undefined;
75
- view?: "primary-small" | "component" | undefined;
74
+ textView?: "primary-small" | "component" | undefined;
76
75
  color?: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative" | undefined;
77
76
  dataTestId?: string | undefined;
78
- }>;
77
+ } & import("./components/typesProps").AmountProps>;
79
78
  AmountTitle: React.FC<{
80
- amount: import("./components/typesProps").AmountProps;
81
79
  color?: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative" | undefined;
82
- dataTestId?: string | undefined;
83
- }>;
80
+ } & import("./components/typesProps").AmountProps>;
84
81
  Addon: React.FC<{
85
- verticalAlign?: "center" | undefined;
82
+ verticalAlign?: "top" | "center" | "bottom" | undefined;
86
83
  addonPadding?: "default" | "none" | undefined;
87
84
  children: import("./components/types").AddonElement;
88
85
  dataTestId?: string | undefined;
@@ -98,6 +95,7 @@ declare const PureCell: React.ForwardRefExoticComponent<(Partial<AnchorPureCellP
98
95
  Category: React.FC<{
99
96
  categoryName: string;
100
97
  categoryPercent?: number | undefined;
98
+ rightAddons?: React.ReactNode;
101
99
  dataTestId?: string | undefined;
102
100
  }>;
103
101
  };
@@ -3,14 +3,14 @@ import 'react-merge-refs';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
5
5
  import '@alfalab/core-components-comment/modern';
6
- import './getDataTestId-60d7e355.js';
6
+ import './getDataTestId-997a290e.js';
7
7
  import './components/addon/component.js';
8
8
  import '@alfalab/core-components-typography/modern';
9
9
  import '@alfalab/core-components-amount/modern';
10
10
  import './components/amount/component.js';
11
11
  import './components/amount-title/component.js';
12
12
  import './components/category/component.js';
13
- export { P as PureCell, a as PureCellContext } from './component-99f95ea2.js';
13
+ export { P as PureCell, a as PureCellContext } from './component-0aebd563.js';
14
14
  import './components/footer/component.js';
15
15
  import '@alfalab/core-components-button/modern';
16
16
  import './components/footer-button/component.js';
@@ -5,7 +5,7 @@ type Props = {
5
5
  /**
6
6
  * Вертикальное выравнивание
7
7
  */
8
- verticalAlign?: 'center';
8
+ verticalAlign?: 'top' | 'center' | 'bottom';
9
9
  /**
10
10
  * Горизонтальные отступы
11
11
  */
@@ -1,12 +1,10 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import { g as getDataTestId } from '../../getDataTestId-60d7e355.js';
3
+ import { g as getDataTestId } from '../../getDataTestId-997a290e.js';
4
4
 
5
- var styles = {"component":"pure-cell__component_xobk0","none":"pure-cell__none_xobk0","default":"pure-cell__default_xobk0","addonPadding":"pure-cell__addonPadding_xobk0","center":"pure-cell__center_xobk0"};
5
+ var styles = {"component":"pure-cell__component_lm63d","none":"pure-cell__none_lm63d","default":"pure-cell__default_lm63d","addonPadding":"pure-cell__addonPadding_lm63d","top":"pure-cell__top_lm63d","center":"pure-cell__center_lm63d","bottom":"pure-cell__bottom_lm63d"};
6
6
  require('./index.css')
7
7
 
8
- const Addon = ({ children, verticalAlign, addonPadding = 'default', dataTestId, }) => (React.createElement("section", { className: cn(styles.component, styles[addonPadding], {
9
- [styles.center]: verticalAlign,
10
- }), "data-test-id": getDataTestId(dataTestId, 'addon') }, children));
8
+ const Addon = ({ children, verticalAlign = 'top', addonPadding = 'default', dataTestId, }) => (React.createElement("section", { className: cn(styles.component, styles[addonPadding], styles[verticalAlign]), "data-test-id": getDataTestId(dataTestId, 'addon') }, children));
11
9
 
12
10
  export { Addon };
@@ -1,4 +1,4 @@
1
- /* hash: 1ng5l */
1
+ /* hash: 1kq5c */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,22 +10,29 @@
10
10
  :root {
11
11
  --gap-m: 16px;
12
12
  }
13
- .pure-cell__component_xobk0 {
13
+ .pure-cell__component_lm63d {
14
14
  display: flex;
15
- flex-direction: column
15
+ flex-direction: column;
16
+ align-items: flex-end
16
17
  }
17
- .pure-cell__component_xobk0 > * {
18
+ .pure-cell__component_lm63d > * {
18
19
  justify-content: flex-end;
19
20
  }
20
- .pure-cell__component_xobk0.pure-cell__none_xobk0 {
21
+ .pure-cell__component_lm63d.pure-cell__none_lm63d {
21
22
  padding-left: 0;
22
23
  }
23
- .pure-cell__component_xobk0.pure-cell__default_xobk0 {
24
+ .pure-cell__component_lm63d.pure-cell__default_lm63d {
24
25
  padding-left: var(--gap-m);
25
26
  }
26
- .pure-cell__component_xobk0.pure-cell__addonPadding_xobk0 {
27
+ .pure-cell__component_lm63d.pure-cell__addonPadding_lm63d {
27
28
  padding-left: var(--gap-m);
28
29
  }
29
- .pure-cell__component_xobk0.pure-cell__center_xobk0 {
30
+ .pure-cell__component_lm63d.pure-cell__top_lm63d {
31
+ align-self: flex-start;
32
+ }
33
+ .pure-cell__component_lm63d.pure-cell__center_lm63d {
30
34
  align-self: center;
31
35
  }
36
+ .pure-cell__component_lm63d.pure-cell__bottom_lm63d {
37
+ align-self: flex-end;
38
+ }
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- import '../../getDataTestId-60d7e355.js';
3
+ import '../../getDataTestId-997a290e.js';
4
4
  export { Addon } from './component.js';
@@ -3,10 +3,6 @@ import React from 'react';
3
3
  import { Color } from "@alfalab/core-components-typography";
4
4
  import { AmountProps as AmountType } from "../typesProps";
5
5
  type Props = {
6
- /**
7
- * Props свойственные для компонента Amount
8
- */
9
- amount: AmountType;
10
6
  /**
11
7
  * Начертание шрифта денежного значения
12
8
  */
@@ -14,7 +10,7 @@ type Props = {
14
10
  /**
15
11
  * Размер денежного значения
16
12
  */
17
- view?: 'component' | 'primary-small';
13
+ textView?: 'component' | 'primary-small';
18
14
  /**
19
15
  * Цвет денежного значения
20
16
  */
@@ -23,6 +19,6 @@ type Props = {
23
19
  * Идентификатор для систем автоматизированного тестирования
24
20
  */
25
21
  dataTestId?: string;
26
- };
22
+ } & AmountType;
27
23
  declare const Amount: React.FC<Props>;
28
24
  export { Amount };
@@ -1,16 +1,15 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import { g as getDataTestId } from '../../getDataTestId-60d7e355.js';
3
+ import { g as getDataTestId } from '../../getDataTestId-997a290e.js';
4
4
  import { Typography } from '@alfalab/core-components-typography/modern';
5
5
  import { Amount as Amount$1 } from '@alfalab/core-components-amount/modern';
6
6
 
7
- var styles = {"component":"pure-cell__component_oo1kr"};
7
+ var styles = {"component":"pure-cell__component_1ohsg"};
8
8
  require('./index.css')
9
9
 
10
- const Amount = ({ amount, weight = 'normal', view = 'component', color = 'primary', dataTestId, }) => {
11
- const { value, currency, minority, minorUnits, rightAddons, showPlus, className, transparentMinor, view: viewAmount, } = amount;
12
- return (React.createElement(Typography.Text, { view: view, dataTestId: getDataTestId(dataTestId, 'amount-text'), className: cn(styles.component), color: color },
13
- React.createElement(Amount$1, { minority: minority === undefined ? minorUnits : minority, value: value, transparentMinor: transparentMinor, bold: weight === 'bold' ? 'full' : 'none', rightAddons: rightAddons, showPlus: showPlus, className: className, currency: currency, dataTestId: getDataTestId(dataTestId, 'amount'), view: viewAmount })));
10
+ const Amount = ({ weight = 'normal', textView = 'component', color = 'primary', minority, minorUnits = 100, dataTestId, ...restProps }) => {
11
+ return (React.createElement(Typography.Text, { view: textView, dataTestId: getDataTestId(dataTestId, 'amount-text'), className: cn(styles.component), color: color },
12
+ React.createElement(Amount$1, Object.assign({ minority: minority || minorUnits, bold: weight === 'bold' ? 'full' : 'none', dataTestId: getDataTestId(dataTestId, 'amount') }, restProps))));
14
13
  };
15
14
 
16
15
  export { Amount };
@@ -1,4 +1,4 @@
1
- /* hash: 172fu */
1
+ /* hash: alrxs */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,7 +10,7 @@
10
10
  :root {
11
11
  --gap-3xs: 2px;
12
12
  }
13
- .pure-cell__component_oo1kr {
13
+ .pure-cell__component_1ohsg {
14
14
  padding: var(--gap-3xs) 0;
15
15
  display: flex;
16
16
  }
@@ -1,6 +1,6 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- import '../../getDataTestId-60d7e355.js';
3
+ import '../../getDataTestId-997a290e.js';
4
4
  import '@alfalab/core-components-typography/modern';
5
5
  import '@alfalab/core-components-amount/modern';
6
6
  export { Amount } from './component.js';
@@ -3,18 +3,10 @@ import React from 'react';
3
3
  import { Color } from "@alfalab/core-components-typography";
4
4
  import { AmountProps as AmountType } from "../typesProps";
5
5
  type Props = {
6
- /**
7
- * Props свойственные для компонента Amount
8
- */
9
- amount: AmountType;
10
6
  /**
11
7
  * Цвет денежного значения
12
8
  */
13
9
  color?: Color;
14
- /**
15
- * Идентификатор для систем автоматизированного тестирования
16
- */
17
- dataTestId?: string;
18
- };
10
+ } & AmountType;
19
11
  declare const AmountTitle: React.FC<Props>;
20
12
  export { AmountTitle };
@@ -1,16 +1,15 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import { g as getDataTestId } from '../../getDataTestId-60d7e355.js';
3
+ import { g as getDataTestId } from '../../getDataTestId-997a290e.js';
4
4
  import { Typography } from '@alfalab/core-components-typography/modern';
5
5
  import { Amount } from '@alfalab/core-components-amount/modern';
6
6
 
7
- var styles = {"component":"pure-cell__component_k73fl","weight":"pure-cell__weight_k73fl"};
7
+ var styles = {"component":"pure-cell__component_18dk0","weight":"pure-cell__weight_18dk0"};
8
8
  require('./index.css')
9
9
 
10
- const AmountTitle = ({ amount, color = 'primary', dataTestId }) => {
11
- const { value, currency, minority, minorUnits, rightAddons, showPlus, className } = amount;
10
+ const AmountTitle = ({ minority, minorUnits = 100, className, color = 'primary', dataTestId, ...restProps }) => {
12
11
  return (React.createElement(Typography.Title, { tag: 'h4', view: 'small', dataTestId: getDataTestId(dataTestId, 'amount-title'), className: styles.component, color: color },
13
- React.createElement(Amount, { minority: minority === undefined ? minorUnits : minority, value: value, rightAddons: rightAddons, showPlus: showPlus, className: cn(styles.weight, className), currency: currency, dataTestId: getDataTestId(dataTestId, 'core-amount-title'), view: 'withZeroMinorPart' })));
12
+ React.createElement(Amount, Object.assign({ minority: minority || minorUnits, className: cn(styles.weight, className), dataTestId: getDataTestId(dataTestId, 'core-amount-title') }, restProps, { bold: 'none' }))));
14
13
  };
15
14
 
16
15
  export { AmountTitle };