@gravity-ui/page-constructor 1.25.0 → 1.25.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 +14 -0
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +4 -4
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +1 -1
- package/build/cjs/navigation/utils.js +3 -1
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +4 -4
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +1 -1
- package/build/esm/navigation/utils.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.25.2](https://github.com/gravity-ui/page-constructor/compare/v1.25.1...v1.25.2) (2023-03-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **ExtendedFeatures:** label position fixed ([#175](https://github.com/gravity-ui/page-constructor/issues/175)) ([fb8d206](https://github.com/gravity-ui/page-constructor/commit/fb8d206ad2378564a1dc7a7295f02da13ae66df1))
|
|
9
|
+
|
|
10
|
+
## [1.25.1](https://github.com/gravity-ui/page-constructor/compare/v1.25.0...v1.25.1) (2023-03-20)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* cannot read stopPropagation of undefined in navigation utils ([#221](https://github.com/gravity-ui/page-constructor/issues/221)) ([e20904a](https://github.com/gravity-ui/page-constructor/commit/e20904abfcc14339be777747a4c26187dba8cd58))
|
|
16
|
+
|
|
3
17
|
## [1.25.0](https://github.com/gravity-ui/page-constructor/compare/v1.24.0...v1.25.0) (2023-03-14)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -21,7 +21,7 @@ unpredictable css rules order in build */
|
|
|
21
21
|
line-height: var(--yc-text-header-1-line-height);
|
|
22
22
|
color: var(--pc-text-header-color);
|
|
23
23
|
font-weight: var(--yc-text-accent-font-weight);
|
|
24
|
-
display:
|
|
24
|
+
display: block;
|
|
25
25
|
position: relative;
|
|
26
26
|
margin-bottom: 8px;
|
|
27
27
|
}
|
|
@@ -42,13 +42,13 @@ unpredictable css rules order in build */
|
|
|
42
42
|
font-size: var(--yc-text-caption-2-font-size);
|
|
43
43
|
line-height: var(--yc-text-caption-2-line-height);
|
|
44
44
|
position: relative;
|
|
45
|
-
top:
|
|
45
|
+
top: -3px;
|
|
46
46
|
height: 16px;
|
|
47
47
|
margin-left: 8px;
|
|
48
|
-
padding:
|
|
48
|
+
padding: 1.5px 5px 2px;
|
|
49
49
|
color: var(--yc-color-base-background);
|
|
50
50
|
background-color: var(--yc-my-color-brand-normal);
|
|
51
|
-
border-radius:
|
|
51
|
+
border-radius: 4px;
|
|
52
52
|
}
|
|
53
53
|
.pc-ExtendedFeaturesBlock__item-text, .pc-ExtendedFeaturesBlock__item-link {
|
|
54
54
|
font-size: var(--yc-text-body-2-font-size);
|
|
@@ -33,7 +33,7 @@ const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DEFAULT_S
|
|
|
33
33
|
react_1.default.createElement("div", { className: b('container') },
|
|
34
34
|
itemTitle && (react_1.default.createElement("h5", { className: b('item-title') },
|
|
35
35
|
react_1.default.createElement(components_1.HTML, null, itemTitle),
|
|
36
|
-
label && (react_1.default.createElement("
|
|
36
|
+
label && (react_1.default.createElement("span", { className: b('item-label') }, label)))),
|
|
37
37
|
react_1.default.createElement(sub_blocks_1.Content, { text: text, links: itemLinks, size: "s", colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo }))));
|
|
38
38
|
})))));
|
|
39
39
|
};
|
|
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getItemClickHandler = void 0;
|
|
4
4
|
const getItemClickHandler = ({ column, index, onActiveItemChange, activeItemId }) => (e) => {
|
|
5
5
|
const id = `${column}-${index}`;
|
|
6
|
-
e
|
|
6
|
+
if (e) {
|
|
7
|
+
e.stopPropagation();
|
|
8
|
+
}
|
|
7
9
|
onActiveItemChange(id === activeItemId ? undefined : `${column}-${index}`);
|
|
8
10
|
};
|
|
9
11
|
exports.getItemClickHandler = getItemClickHandler;
|
|
@@ -21,7 +21,7 @@ unpredictable css rules order in build */
|
|
|
21
21
|
line-height: var(--yc-text-header-1-line-height);
|
|
22
22
|
color: var(--pc-text-header-color);
|
|
23
23
|
font-weight: var(--yc-text-accent-font-weight);
|
|
24
|
-
display:
|
|
24
|
+
display: block;
|
|
25
25
|
position: relative;
|
|
26
26
|
margin-bottom: 8px;
|
|
27
27
|
}
|
|
@@ -42,13 +42,13 @@ unpredictable css rules order in build */
|
|
|
42
42
|
font-size: var(--yc-text-caption-2-font-size);
|
|
43
43
|
line-height: var(--yc-text-caption-2-line-height);
|
|
44
44
|
position: relative;
|
|
45
|
-
top:
|
|
45
|
+
top: -3px;
|
|
46
46
|
height: 16px;
|
|
47
47
|
margin-left: 8px;
|
|
48
|
-
padding:
|
|
48
|
+
padding: 1.5px 5px 2px;
|
|
49
49
|
color: var(--yc-color-base-background);
|
|
50
50
|
background-color: var(--yc-my-color-brand-normal);
|
|
51
|
-
border-radius:
|
|
51
|
+
border-radius: 4px;
|
|
52
52
|
}
|
|
53
53
|
.pc-ExtendedFeaturesBlock__item-text, .pc-ExtendedFeaturesBlock__item-link {
|
|
54
54
|
font-size: var(--yc-text-body-2-font-size);
|
|
@@ -30,7 +30,7 @@ export const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DE
|
|
|
30
30
|
React.createElement("div", { className: b('container') },
|
|
31
31
|
itemTitle && (React.createElement("h5", { className: b('item-title') },
|
|
32
32
|
React.createElement(HTML, null, itemTitle),
|
|
33
|
-
label && (React.createElement("
|
|
33
|
+
label && (React.createElement("span", { className: b('item-label') }, label)))),
|
|
34
34
|
React.createElement(Content, { text: text, links: itemLinks, size: "s", colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo }))));
|
|
35
35
|
})))));
|
|
36
36
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export const getItemClickHandler = ({ column, index, onActiveItemChange, activeItemId }) => (e) => {
|
|
2
2
|
const id = `${column}-${index}`;
|
|
3
|
-
e
|
|
3
|
+
if (e) {
|
|
4
|
+
e.stopPropagation();
|
|
5
|
+
}
|
|
4
6
|
onActiveItemChange(id === activeItemId ? undefined : `${column}-${index}`);
|
|
5
7
|
};
|