@cloud-ru/uikit-product-mobile-layout 2.1.14 → 2.2.1
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,33 @@
|
|
|
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
|
+
## 2.2.1 (2026-07-21)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@cloud-ru/uikit-product-card-predefined@1.2.8]($PUBLIC_PROJECT_URL/blob/master/packages/card-predefined/CHANGELOG.md)
|
|
10
|
+
* [@cloud-ru/uikit-product-icons@17.7.0]($PUBLIC_PROJECT_URL/blob/master/packages/icons/CHANGELOG.md)
|
|
11
|
+
* [@cloud-ru/uikit-product-layout@2.0.17]($PUBLIC_PROJECT_URL/blob/master/packages/layout/CHANGELOG.md)
|
|
12
|
+
* [@cloud-ru/uikit-product-mobile-dropdown@2.1.19]($PUBLIC_PROJECT_URL/blob/master/packages/mobile-dropdown/CHANGELOG.md)
|
|
13
|
+
* [@cloud-ru/uikit-product-mobile-modal@2.2.2]($PUBLIC_PROJECT_URL/blob/master/packages/mobile-modal/CHANGELOG.md)
|
|
14
|
+
* [@cloud-ru/uikit-product-mobile-tooltip@1.1.17]($PUBLIC_PROJECT_URL/blob/master/packages/mobile-tooltip/CHANGELOG.md)
|
|
15
|
+
* [@cloud-ru/uikit-product-page-layout@2.3.1]($PUBLIC_PROJECT_URL/blob/master/packages/page-layout/CHANGELOG.md)
|
|
16
|
+
* [@cloud-ru/uikit-product-quota@2.1.10]($PUBLIC_PROJECT_URL/blob/master/packages/quota/CHANGELOG.md)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# 2.2.0 (2026-07-17)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **FF-8766:** add view for additional button on PageForm ([2b06914](https://github.com/cloud-ru-tech/uikit-product/commit/2b069144004d50625bd520b694bbfa05a294413c))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## 2.1.14 (2026-07-09)
|
|
7
34
|
|
|
8
35
|
### Only dependencies have been changed
|
|
@@ -41,11 +41,14 @@ exports.BUTTON_SECONDARY_VARIANT = {
|
|
|
41
41
|
Back: 'back',
|
|
42
42
|
};
|
|
43
43
|
function MobilePageForm(_a) {
|
|
44
|
-
var _b, _c;
|
|
44
|
+
var _b, _c, _d;
|
|
45
45
|
var { children, title, subHeader, className, footer, stepper, priceSummary, sideBlock } = _a, rest = __rest(_a, ["children", "title", "subHeader", "className", "footer", "stepper", "priceSummary", "sideBlock"]);
|
|
46
46
|
const PrimaryButton = (0, hooks_1.useButtonWithTooltip)({ Button: button_1.ButtonFilled, tooltip: footer === null || footer === void 0 ? void 0 : footer.buttonPrimary.tooltip });
|
|
47
47
|
const SecondaryButton = (0, hooks_1.useButtonWithTooltip)({ Button: button_1.ButtonOutline, tooltip: (_b = footer === null || footer === void 0 ? void 0 : footer.buttonSecondary) === null || _b === void 0 ? void 0 : _b.tooltip });
|
|
48
|
-
const AdditionalButton = (0, hooks_1.useButtonWithTooltip)({
|
|
48
|
+
const AdditionalButton = (0, hooks_1.useButtonWithTooltip)({
|
|
49
|
+
Button: ((_c = footer === null || footer === void 0 ? void 0 : footer.buttonAdditional) === null || _c === void 0 ? void 0 : _c.view) === 'outline' ? button_1.ButtonOutline : button_1.ButtonSimple,
|
|
50
|
+
tooltip: (_d = footer === null || footer === void 0 ? void 0 : footer.buttonAdditional) === null || _d === void 0 ? void 0 : _d.tooltip,
|
|
51
|
+
});
|
|
49
52
|
const [openPriceSummary, setOpenPriceSummary] = (0, react_1.useState)(false);
|
|
50
53
|
const [openMore, setOpenMore] = (0, react_1.useState)(false);
|
|
51
54
|
const [openMoreContentIndex, setOpenMoreContentIndex] = (0, react_1.useState)(undefined);
|
|
@@ -34,11 +34,14 @@ export const BUTTON_SECONDARY_VARIANT = {
|
|
|
34
34
|
Back: 'back',
|
|
35
35
|
};
|
|
36
36
|
export function MobilePageForm(_a) {
|
|
37
|
-
var _b, _c;
|
|
37
|
+
var _b, _c, _d;
|
|
38
38
|
var { children, title, subHeader, className, footer, stepper, priceSummary, sideBlock } = _a, rest = __rest(_a, ["children", "title", "subHeader", "className", "footer", "stepper", "priceSummary", "sideBlock"]);
|
|
39
39
|
const PrimaryButton = useButtonWithTooltip({ Button: ButtonFilled, tooltip: footer === null || footer === void 0 ? void 0 : footer.buttonPrimary.tooltip });
|
|
40
40
|
const SecondaryButton = useButtonWithTooltip({ Button: ButtonOutline, tooltip: (_b = footer === null || footer === void 0 ? void 0 : footer.buttonSecondary) === null || _b === void 0 ? void 0 : _b.tooltip });
|
|
41
|
-
const AdditionalButton = useButtonWithTooltip({
|
|
41
|
+
const AdditionalButton = useButtonWithTooltip({
|
|
42
|
+
Button: ((_c = footer === null || footer === void 0 ? void 0 : footer.buttonAdditional) === null || _c === void 0 ? void 0 : _c.view) === 'outline' ? ButtonOutline : ButtonSimple,
|
|
43
|
+
tooltip: (_d = footer === null || footer === void 0 ? void 0 : footer.buttonAdditional) === null || _d === void 0 ? void 0 : _d.tooltip,
|
|
44
|
+
});
|
|
42
45
|
const [openPriceSummary, setOpenPriceSummary] = useState(false);
|
|
43
46
|
const [openMore, setOpenMore] = useState(false);
|
|
44
47
|
const [openMoreContentIndex, setOpenMoreContentIndex] = useState(undefined);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/uikit-product-mobile-layout",
|
|
3
3
|
"title": "Mobile Layout",
|
|
4
|
-
"version": "2.1
|
|
4
|
+
"version": "2.2.1",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
7
7
|
"*.woff",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
},
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@cloud-ru/uikit-product-card-predefined": "1.2.
|
|
40
|
-
"@cloud-ru/uikit-product-icons": "17.
|
|
41
|
-
"@cloud-ru/uikit-product-layout": "2.0.
|
|
42
|
-
"@cloud-ru/uikit-product-mobile-dropdown": "2.1.
|
|
43
|
-
"@cloud-ru/uikit-product-mobile-modal": "2.2.
|
|
44
|
-
"@cloud-ru/uikit-product-mobile-tooltip": "1.1.
|
|
45
|
-
"@cloud-ru/uikit-product-page-layout": "2.
|
|
46
|
-
"@cloud-ru/uikit-product-quota": "2.1.
|
|
39
|
+
"@cloud-ru/uikit-product-card-predefined": "1.2.8",
|
|
40
|
+
"@cloud-ru/uikit-product-icons": "17.7.0",
|
|
41
|
+
"@cloud-ru/uikit-product-layout": "2.0.17",
|
|
42
|
+
"@cloud-ru/uikit-product-mobile-dropdown": "2.1.19",
|
|
43
|
+
"@cloud-ru/uikit-product-mobile-modal": "2.2.2",
|
|
44
|
+
"@cloud-ru/uikit-product-mobile-tooltip": "1.1.17",
|
|
45
|
+
"@cloud-ru/uikit-product-page-layout": "2.3.1",
|
|
46
|
+
"@cloud-ru/uikit-product-quota": "2.1.10",
|
|
47
47
|
"@cloud-ru/uikit-product-utils": "9.1.0",
|
|
48
48
|
"@snack-uikit/button": "0.19.7",
|
|
49
49
|
"@snack-uikit/card": "0.20.20",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@cloud-ru/uikit-product-locale": "*"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "0ba8fab8e570a50b497bfcf5dfc83ddf9eef91ac"
|
|
60
60
|
}
|
|
@@ -45,7 +45,10 @@ export function MobilePageForm({
|
|
|
45
45
|
}: PageFormProps) {
|
|
46
46
|
const PrimaryButton = useButtonWithTooltip({ Button: ButtonFilled, tooltip: footer?.buttonPrimary.tooltip });
|
|
47
47
|
const SecondaryButton = useButtonWithTooltip({ Button: ButtonOutline, tooltip: footer?.buttonSecondary?.tooltip });
|
|
48
|
-
const AdditionalButton = useButtonWithTooltip({
|
|
48
|
+
const AdditionalButton = useButtonWithTooltip({
|
|
49
|
+
Button: footer?.buttonAdditional?.view === 'outline' ? ButtonOutline : ButtonSimple,
|
|
50
|
+
tooltip: footer?.buttonAdditional?.tooltip,
|
|
51
|
+
});
|
|
49
52
|
|
|
50
53
|
const [openPriceSummary, setOpenPriceSummary] = useState<boolean>(false);
|
|
51
54
|
const [openMore, setOpenMore] = useState<boolean>(false);
|