@alfalab/core-components-pure-cell 6.0.5 → 6.0.6

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 (88) hide show
  1. package/component.d.ts +1 -0
  2. package/components/addon/index.css +12 -12
  3. package/components/addon/index.module.css.js +1 -1
  4. package/components/amount/index.css +3 -3
  5. package/components/amount/index.module.css.js +1 -1
  6. package/components/amount-title/index.css +13 -13
  7. package/components/amount-title/index.module.css.js +1 -1
  8. package/components/category/index.css +4 -4
  9. package/components/category/index.module.css.js +1 -1
  10. package/components/content/index.css +2 -2
  11. package/components/content/index.module.css.js +1 -1
  12. package/components/footer/component.d.ts +4 -0
  13. package/components/footer/component.js +2 -2
  14. package/components/footer/component.js.map +1 -1
  15. package/components/footer/index.css +3 -3
  16. package/components/footer/index.module.css.js +1 -1
  17. package/components/footer-button/index.css +1 -1
  18. package/components/footer-button/index.module.css.js +1 -1
  19. package/components/graphics/index.css +19 -19
  20. package/components/graphics/index.module.css.js +1 -1
  21. package/components/main/index.css +6 -6
  22. package/components/main/index.module.css.js +1 -1
  23. package/components/text/index.css +6 -6
  24. package/components/text/index.module.css.js +1 -1
  25. package/cssm/component.d.ts +1 -0
  26. package/cssm/components/footer/component.d.ts +4 -0
  27. package/cssm/components/footer/component.js +2 -2
  28. package/cssm/components/footer/component.js.map +1 -1
  29. package/esm/component.d.ts +1 -0
  30. package/esm/components/addon/index.css +12 -12
  31. package/esm/components/addon/index.module.css.js +1 -1
  32. package/esm/components/amount/index.css +3 -3
  33. package/esm/components/amount/index.module.css.js +1 -1
  34. package/esm/components/amount-title/index.css +13 -13
  35. package/esm/components/amount-title/index.module.css.js +1 -1
  36. package/esm/components/category/index.css +4 -4
  37. package/esm/components/category/index.module.css.js +1 -1
  38. package/esm/components/content/index.css +2 -2
  39. package/esm/components/content/index.module.css.js +1 -1
  40. package/esm/components/footer/component.d.ts +4 -0
  41. package/esm/components/footer/component.js +2 -2
  42. package/esm/components/footer/component.js.map +1 -1
  43. package/esm/components/footer/index.css +3 -3
  44. package/esm/components/footer/index.module.css.js +1 -1
  45. package/esm/components/footer-button/index.css +1 -1
  46. package/esm/components/footer-button/index.module.css.js +1 -1
  47. package/esm/components/graphics/index.css +19 -19
  48. package/esm/components/graphics/index.module.css.js +1 -1
  49. package/esm/components/main/index.css +6 -6
  50. package/esm/components/main/index.module.css.js +1 -1
  51. package/esm/components/text/index.css +6 -6
  52. package/esm/components/text/index.module.css.js +1 -1
  53. package/esm/index.css +28 -28
  54. package/esm/index.module.css.js +1 -1
  55. package/index.css +28 -28
  56. package/index.module.css.js +1 -1
  57. package/modern/component.d.ts +1 -0
  58. package/modern/components/addon/index.css +12 -12
  59. package/modern/components/addon/index.module.css.js +1 -1
  60. package/modern/components/amount/index.css +3 -3
  61. package/modern/components/amount/index.module.css.js +1 -1
  62. package/modern/components/amount-title/index.css +13 -13
  63. package/modern/components/amount-title/index.module.css.js +1 -1
  64. package/modern/components/category/index.css +4 -4
  65. package/modern/components/category/index.module.css.js +1 -1
  66. package/modern/components/content/index.css +2 -2
  67. package/modern/components/content/index.module.css.js +1 -1
  68. package/modern/components/footer/component.d.ts +4 -0
  69. package/modern/components/footer/component.js +2 -2
  70. package/modern/components/footer/component.js.map +1 -1
  71. package/modern/components/footer/index.css +3 -3
  72. package/modern/components/footer/index.module.css.js +1 -1
  73. package/modern/components/footer-button/index.css +1 -1
  74. package/modern/components/footer-button/index.module.css.js +1 -1
  75. package/modern/components/graphics/index.css +19 -19
  76. package/modern/components/graphics/index.module.css.js +1 -1
  77. package/modern/components/main/index.css +6 -6
  78. package/modern/components/main/index.module.css.js +1 -1
  79. package/modern/components/text/index.css +6 -6
  80. package/modern/components/text/index.module.css.js +1 -1
  81. package/modern/index.css +28 -28
  82. package/modern/index.module.css.js +1 -1
  83. package/moderncssm/component.d.ts +1 -0
  84. package/moderncssm/components/footer/component.d.ts +4 -0
  85. package/moderncssm/components/footer/component.js +2 -2
  86. package/moderncssm/components/footer/component.js.map +1 -1
  87. package/package.json +2 -2
  88. package/src/components/footer/component.tsx +12 -2
@@ -5,23 +5,23 @@
5
5
  --gap-2: var(--gap-3xs);
6
6
  --gap-16: var(--gap-m);
7
7
  }
8
- .pure-cell__horizontal_1620s {
8
+ .pure-cell__horizontal_qhgxg {
9
9
  padding: var(--gap-2) var(--gap-0);
10
10
  }
11
- .pure-cell__rowLimit1_1620s {
11
+ .pure-cell__rowLimit1_qhgxg {
12
12
  -webkit-line-clamp: 1;
13
13
  display: -webkit-box;
14
14
  -webkit-box-orient: vertical;
15
15
  overflow: hidden;
16
16
  word-break: break-all;
17
17
  }
18
- .pure-cell__rowLimit2_1620s {
18
+ .pure-cell__rowLimit2_qhgxg {
19
19
  -webkit-line-clamp: 2;
20
20
  display: -webkit-box;
21
21
  -webkit-box-orient: vertical;
22
22
  overflow: hidden;
23
23
  }
24
- .pure-cell__component_1620s {
24
+ .pure-cell__component_qhgxg {
25
25
  display: flex;
26
26
  flex-direction: row;
27
27
  flex-wrap: nowrap;
@@ -29,10 +29,10 @@
29
29
  margin: var(--gap-2) var(--gap-0);
30
30
  word-break: break-word;
31
31
  }
32
- .pure-cell__component_1620s .pure-cell__vertical_1620s {
32
+ .pure-cell__component_qhgxg .pure-cell__vertical_qhgxg {
33
33
  justify-content: center;
34
34
  }
35
- .pure-cell__title_1620s + .pure-cell__value_1620s {
35
+ .pure-cell__title_qhgxg + .pure-cell__value_qhgxg {
36
36
  margin-left: var(--gap-16);
37
37
  flex-shrink: 0;
38
38
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"horizontal":"pure-cell__horizontal_1620s","rowLimit1":"pure-cell__rowLimit1_1620s","rowLimit2":"pure-cell__rowLimit2_1620s","component":"pure-cell__component_1620s","vertical":"pure-cell__vertical_1620s","title":"pure-cell__title_1620s","value":"pure-cell__value_1620s"};
3
+ const styles = {"horizontal":"pure-cell__horizontal_qhgxg","rowLimit1":"pure-cell__rowLimit1_qhgxg","rowLimit2":"pure-cell__rowLimit2_qhgxg","component":"pure-cell__component_qhgxg","vertical":"pure-cell__vertical_qhgxg","title":"pure-cell__title_qhgxg","value":"pure-cell__value_qhgxg"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
package/modern/index.css CHANGED
@@ -18,20 +18,20 @@
18
18
  :root {
19
19
  --focus-color: var(--color-light-status-info);
20
20
  }
21
- .pure-cell__component_1wfkv {
21
+ .pure-cell__component_d7f57 {
22
22
  text-align: inherit;
23
23
  box-sizing: border-box;
24
24
  }
25
- .pure-cell__horizontal_1wfkv {
25
+ .pure-cell__horizontal_d7f57 {
26
26
  display: flex;
27
27
  width: 100%;
28
28
  }
29
- .pure-cell__vertical_1wfkv {
29
+ .pure-cell__vertical_d7f57 {
30
30
  display: flex;
31
31
  align-items: center;
32
32
  flex-direction: column;
33
33
  }
34
- .pure-cell__button_1wfkv {
34
+ .pure-cell__button_d7f57 {
35
35
  font-family: inherit;
36
36
  background: none;
37
37
  border: 0;
@@ -40,80 +40,80 @@
40
40
  transition: opacity 0.15s ease-in-out;
41
41
  padding: var(--gap-0);
42
42
  }
43
- .pure-cell__button_1wfkv.pure-cell__hover_1wfkv {
43
+ .pure-cell__button_d7f57.pure-cell__hover_d7f57 {
44
44
  opacity: 0.8;
45
45
  }
46
- .pure-cell__button_1wfkv.pure-cell__active_1wfkv {
46
+ .pure-cell__button_d7f57.pure-cell__active_d7f57 {
47
47
  opacity: 0.6;
48
48
  }
49
- .pure-cell__link_1wfkv {
49
+ .pure-cell__link_d7f57 {
50
50
  text-decoration: none;
51
51
  color: inherit;
52
52
  cursor: pointer;
53
53
  transition: opacity 0.15s ease-in-out;
54
54
  }
55
- .pure-cell__link_1wfkv.pure-cell__hover_1wfkv {
55
+ .pure-cell__link_d7f57.pure-cell__hover_d7f57 {
56
56
  opacity: 0.8;
57
57
  }
58
- .pure-cell__link_1wfkv.pure-cell__active_1wfkv {
58
+ .pure-cell__link_d7f57.pure-cell__active_d7f57 {
59
59
  opacity: 0.6;
60
60
  }
61
- .pure-cell__none_1wfkv {
61
+ .pure-cell__none_d7f57 {
62
62
  padding: var(--gap-0);
63
63
  }
64
- .pure-cell__airy_1wfkv {
64
+ .pure-cell__airy_d7f57 {
65
65
  padding: var(--gap-16) var(--gap-0);
66
66
  }
67
- .pure-cell__default_1wfkv {
67
+ .pure-cell__default_d7f57 {
68
68
  padding: var(--gap-12) var(--gap-0);
69
69
  }
70
- .pure-cell__compact_1wfkv {
70
+ .pure-cell__compact_d7f57 {
71
71
  padding: var(--gap-8) var(--gap-0);
72
72
  }
73
- .pure-cell__tiny_1wfkv {
73
+ .pure-cell__tiny_d7f57 {
74
74
  padding: var(--gap-4) var(--gap-0);
75
75
  }
76
- .pure-cell__noneTop_1wfkv {
76
+ .pure-cell__noneTop_d7f57 {
77
77
  padding-top: var(--gap-0);
78
78
  }
79
- .pure-cell__airyTop_1wfkv {
79
+ .pure-cell__airyTop_d7f57 {
80
80
  padding-top: var(--gap-16);
81
81
  }
82
- .pure-cell__defaultTop_1wfkv {
82
+ .pure-cell__defaultTop_d7f57 {
83
83
  padding-top: var(--gap-12);
84
84
  }
85
- .pure-cell__compactTop_1wfkv {
85
+ .pure-cell__compactTop_d7f57 {
86
86
  padding-top: var(--gap-8);
87
87
  }
88
- .pure-cell__tinyTop_1wfkv {
88
+ .pure-cell__tinyTop_d7f57 {
89
89
  padding-top: var(--gap-4);
90
90
  }
91
- .pure-cell__noneBottom_1wfkv {
91
+ .pure-cell__noneBottom_d7f57 {
92
92
  padding-bottom: var(--gap-0);
93
93
  }
94
- .pure-cell__airyBottom_1wfkv {
94
+ .pure-cell__airyBottom_d7f57 {
95
95
  padding-bottom: var(--gap-16);
96
96
  }
97
- .pure-cell__defaultBottom_1wfkv {
97
+ .pure-cell__defaultBottom_d7f57 {
98
98
  padding-bottom: var(--gap-12);
99
99
  }
100
- .pure-cell__compactBottom_1wfkv {
100
+ .pure-cell__compactBottom_d7f57 {
101
101
  padding-bottom: var(--gap-8);
102
102
  }
103
- .pure-cell__tinyBottom_1wfkv {
103
+ .pure-cell__tinyBottom_d7f57 {
104
104
  padding-bottom: var(--gap-4);
105
105
  }
106
- .pure-cell__left_1wfkv {
106
+ .pure-cell__left_d7f57 {
107
107
  padding-left: var(--gap-16);
108
108
  }
109
- .pure-cell__right_1wfkv {
109
+ .pure-cell__right_d7f57 {
110
110
  padding-right: var(--gap-16);
111
111
  }
112
- .pure-cell__both_1wfkv {
112
+ .pure-cell__both_d7f57 {
113
113
  padding-right: var(--gap-16);
114
114
  padding-left: var(--gap-16);
115
115
  }
116
- .pure-cell__focused_1wfkv {
116
+ .pure-cell__focused_d7f57 {
117
117
  outline: 2px solid var(--focus-color);
118
118
  outline-offset: 2px;
119
119
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"pure-cell__component_1wfkv","horizontal":"pure-cell__horizontal_1wfkv","vertical":"pure-cell__vertical_1wfkv","button":"pure-cell__button_1wfkv","hover":"pure-cell__hover_1wfkv","active":"pure-cell__active_1wfkv","link":"pure-cell__link_1wfkv","none":"pure-cell__none_1wfkv","airy":"pure-cell__airy_1wfkv","default":"pure-cell__default_1wfkv","compact":"pure-cell__compact_1wfkv","tiny":"pure-cell__tiny_1wfkv","noneTop":"pure-cell__noneTop_1wfkv","airyTop":"pure-cell__airyTop_1wfkv","defaultTop":"pure-cell__defaultTop_1wfkv","compactTop":"pure-cell__compactTop_1wfkv","tinyTop":"pure-cell__tinyTop_1wfkv","noneBottom":"pure-cell__noneBottom_1wfkv","airyBottom":"pure-cell__airyBottom_1wfkv","defaultBottom":"pure-cell__defaultBottom_1wfkv","compactBottom":"pure-cell__compactBottom_1wfkv","tinyBottom":"pure-cell__tinyBottom_1wfkv","left":"pure-cell__left_1wfkv","right":"pure-cell__right_1wfkv","both":"pure-cell__both_1wfkv","focused":"pure-cell__focused_1wfkv"};
3
+ const styles = {"component":"pure-cell__component_d7f57","horizontal":"pure-cell__horizontal_d7f57","vertical":"pure-cell__vertical_d7f57","button":"pure-cell__button_d7f57","hover":"pure-cell__hover_d7f57","active":"pure-cell__active_d7f57","link":"pure-cell__link_d7f57","none":"pure-cell__none_d7f57","airy":"pure-cell__airy_d7f57","default":"pure-cell__default_d7f57","compact":"pure-cell__compact_d7f57","tiny":"pure-cell__tiny_d7f57","noneTop":"pure-cell__noneTop_d7f57","airyTop":"pure-cell__airyTop_d7f57","defaultTop":"pure-cell__defaultTop_d7f57","compactTop":"pure-cell__compactTop_d7f57","tinyTop":"pure-cell__tinyTop_d7f57","noneBottom":"pure-cell__noneBottom_d7f57","airyBottom":"pure-cell__airyBottom_d7f57","defaultBottom":"pure-cell__defaultBottom_d7f57","compactBottom":"pure-cell__compactBottom_d7f57","tinyBottom":"pure-cell__tinyBottom_d7f57","left":"pure-cell__left_d7f57","right":"pure-cell__right_d7f57","both":"pure-cell__both_d7f57","focused":"pure-cell__focused_d7f57"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -113,6 +113,7 @@ declare const PureCell: React.ForwardRefExoticComponent<PureCellProps & React.Re
113
113
  children: import("./components/types").FooterElement;
114
114
  footerPadding?: "default" | "none";
115
115
  dataTestId?: string;
116
+ className?: string;
116
117
  }>;
117
118
  ExtraSubtitle: React.FC<import("./components/footer-text").FooterTextProps>;
118
119
  FooterButton: React.ForwardRefExoticComponent<(Omit<import("@alfalab/core-components-button").ButtonProps, "dataTestId"> & {
@@ -14,6 +14,10 @@ type Props = {
14
14
  * Используется модификатор -footer
15
15
  */
16
16
  dataTestId?: string;
17
+ /**
18
+ * Дополнительный класс
19
+ */
20
+ className?: string;
17
21
  };
18
22
  export declare const Footer: React.FC<Props>;
19
23
  export {};
@@ -4,9 +4,9 @@ import { getDataTestId } from '@alfalab/core-components-shared/moderncssm';
4
4
  import { PureCellContext } from '../../context.js';
5
5
  import styles from './index.module.css';
6
6
 
7
- const Footer = ({ children, footerPadding = 'default', dataTestId }) => {
7
+ const Footer = ({ children, footerPadding = 'default', dataTestId, className, }) => {
8
8
  const pureCellContext = useContext(PureCellContext);
9
- return (React.createElement("footer", { className: cn(styles.component, styles[footerPadding]), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer') }, children));
9
+ return (React.createElement("footer", { className: cn(styles.component, styles[footerPadding], className), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer') }, children));
10
10
  };
11
11
 
12
12
  export { Footer };
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/components/footer/component.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../context';\nimport { type FooterElement } from '../types';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Компоненты\n */\n children: FooterElement;\n\n /**\n * Вертикальные отступы\n */\n footerPadding?: 'default' | 'none';\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -footer\n */\n dataTestId?: string;\n};\n\nexport const Footer: React.FC<Props> = ({ children, footerPadding = 'default', dataTestId }) => {\n const pureCellContext = useContext(PureCellContext);\n\n return (\n <footer\n className={cn(styles.component, styles[footerPadding])}\n data-test-id={getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer')}\n >\n {children}\n </footer>\n );\n};\n"],"names":[],"mappings":";;;;;;AA4BO,MAAM,MAAM,GAAoB,CAAC,EAAE,QAAQ,EAAE,aAAa,GAAG,SAAS,EAAE,UAAU,EAAE,KAAI;AAC3F,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;AAEnD,IAAA,QACI,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,EACxC,cAAA,EAAA,aAAa,CAAC,UAAU,IAAI,eAAe,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAA,EAE9E,QAAQ,CACJ;AAEjB;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/footer/component.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../context';\nimport { type FooterElement } from '../types';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Компоненты\n */\n children: FooterElement;\n\n /**\n * Вертикальные отступы\n */\n footerPadding?: 'default' | 'none';\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -footer\n */\n dataTestId?: string;\n\n /**\n * Дополнительный класс\n */\n className?: string;\n};\n\nexport const Footer: React.FC<Props> = ({\n children,\n footerPadding = 'default',\n dataTestId,\n className,\n}) => {\n const pureCellContext = useContext(PureCellContext);\n\n return (\n <footer\n className={cn(styles.component, styles[footerPadding], className)}\n data-test-id={getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer')}\n >\n {children}\n </footer>\n );\n};\n"],"names":[],"mappings":";;;;;;AAiCa,MAAA,MAAM,GAAoB,CAAC,EACpC,QAAQ,EACR,aAAa,GAAG,SAAS,EACzB,UAAU,EACV,SAAS,GACZ,KAAI;AACD,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;AAEnD,IAAA,QACI,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC,EAAA,cAAA,EACnD,aAAa,CAAC,UAAU,IAAI,eAAe,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAA,EAE9E,QAAQ,CACJ;AAEjB;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-pure-cell",
3
- "version": "6.0.5",
3
+ "version": "6.0.6",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -29,6 +29,6 @@
29
29
  "access": "public",
30
30
  "directory": "dist"
31
31
  },
32
- "themesVersion": "15.0.2",
32
+ "themesVersion": "15.0.4",
33
33
  "varsVersion": "11.0.2"
34
34
  }
@@ -24,14 +24,24 @@ type Props = {
24
24
  * Используется модификатор -footer
25
25
  */
26
26
  dataTestId?: string;
27
+
28
+ /**
29
+ * Дополнительный класс
30
+ */
31
+ className?: string;
27
32
  };
28
33
 
29
- export const Footer: React.FC<Props> = ({ children, footerPadding = 'default', dataTestId }) => {
34
+ export const Footer: React.FC<Props> = ({
35
+ children,
36
+ footerPadding = 'default',
37
+ dataTestId,
38
+ className,
39
+ }) => {
30
40
  const pureCellContext = useContext(PureCellContext);
31
41
 
32
42
  return (
33
43
  <footer
34
- className={cn(styles.component, styles[footerPadding])}
44
+ className={cn(styles.component, styles[footerPadding], className)}
35
45
  data-test-id={getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer')}
36
46
  >
37
47
  {children}