@doyourjob/gravity-ui-page-constructor 5.31.115 → 5.31.116
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QAProps, TitleItemProps, TitleTextSize } from '../../models';
|
|
2
|
-
export declare function getArrowSize(size: TitleTextSize, isMobile: boolean): 16 |
|
|
2
|
+
export declare function getArrowSize(size: TitleTextSize, isMobile: boolean): 16 | 13 | 22 | 24 | 26 | 38 | 20;
|
|
3
3
|
export interface TitleItemFullProps extends TitleItemProps, QAProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
onClick?: () => void;
|
|
@@ -21,7 +21,8 @@ function parseHighlightTableBlock(transformer, content) {
|
|
|
21
21
|
return Object.assign(Object.assign({}, (content || {})), { content: rows.map((row) => row.map((col) => transformer(col))) });
|
|
22
22
|
}
|
|
23
23
|
function parseExtendedFeaturesItems(transformer, items) {
|
|
24
|
-
return items.map((item) => (Object.assign(Object.assign({}, item), { title:
|
|
24
|
+
return items.map((item) => (Object.assign(Object.assign({}, item), { title: typeof item.title === 'object'
|
|
25
|
+
? Object.assign(Object.assign({}, item.title), { text: transformer(item.title.text) }) : transformer(item.title) })));
|
|
25
26
|
}
|
|
26
27
|
function parseHighlightTableBlockLegend(transformer, legend) {
|
|
27
28
|
return legend.map((item) => transformer(item));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QAProps, TitleItemProps, TitleTextSize } from '../../models';
|
|
2
2
|
import './TitleItem.css';
|
|
3
|
-
export declare function getArrowSize(size: TitleTextSize, isMobile: boolean): 16 |
|
|
3
|
+
export declare function getArrowSize(size: TitleTextSize, isMobile: boolean): 16 | 13 | 22 | 24 | 26 | 38 | 20;
|
|
4
4
|
export interface TitleItemFullProps extends TitleItemProps, QAProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
onClick?: () => void;
|
|
@@ -18,7 +18,8 @@ function parseHighlightTableBlock(transformer, content) {
|
|
|
18
18
|
return Object.assign(Object.assign({}, (content || {})), { content: rows.map((row) => row.map((col) => transformer(col))) });
|
|
19
19
|
}
|
|
20
20
|
function parseExtendedFeaturesItems(transformer, items) {
|
|
21
|
-
return items.map((item) => (Object.assign(Object.assign({}, item), { title:
|
|
21
|
+
return items.map((item) => (Object.assign(Object.assign({}, item), { title: typeof item.title === 'object'
|
|
22
|
+
? Object.assign(Object.assign({}, item.title), { text: transformer(item.title.text) }) : transformer(item.title) })));
|
|
22
23
|
}
|
|
23
24
|
function parseHighlightTableBlockLegend(transformer, legend) {
|
|
24
25
|
return legend.map((item) => transformer(item));
|
package/package.json
CHANGED
|
@@ -31,7 +31,8 @@ function parseHighlightTableBlock(transformer, content) {
|
|
|
31
31
|
return Object.assign(Object.assign({}, (content || {})), { content: rows.map((row) => row.map((col) => transformer(col))) });
|
|
32
32
|
}
|
|
33
33
|
function parseExtendedFeaturesItems(transformer, items) {
|
|
34
|
-
return items.map((item) => (Object.assign(Object.assign({}, item), { title:
|
|
34
|
+
return items.map((item) => (Object.assign(Object.assign({}, item), { title: typeof item.title === 'object'
|
|
35
|
+
? Object.assign(Object.assign({}, item.title), { text: transformer(item.title.text) }) : transformer(item.title) })));
|
|
35
36
|
}
|
|
36
37
|
function parseHighlightTableBlockLegend(transformer, legend) {
|
|
37
38
|
return legend.map((item) => transformer(item));
|