@redneckz/wildless-cms-uni-blocks 0.14.232 → 0.14.234
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/bundle/bundle.umd.js +13 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +12 -0
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +3 -2
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +12 -0
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +3 -2
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +13 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +12 -0
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -2
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +12 -0
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -2
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +23 -0
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +7 -2
- package/package.json +1 -1
- package/src/components/Calculator/CreditCalculatorForm.tsx +23 -0
- package/src/components/ProductBlock/renderBackwardButton.tsx +7 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -527,11 +527,11 @@
|
|
|
527
527
|
const RegularButton = JSX(({ className = '', href, rel, target, ariaLabel, version, rounded, onClick, type, data, children, }) => (jsx("a", { className: getRegularButtonClasses({ className, version, rounded }), href: href, rel: rel, target: target, "aria-label": ariaLabel, role: href ? 'link' : 'button', onClick: onClick, type: type, ...dataAttributes(data), children: children })));
|
|
528
528
|
const DisabledButton = JSX(({ className, ariaLabel, version, rounded, children }) => (jsx("button", { type: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: -1, className: getDisabledButtonClasses({ className, rounded, version }), children: children })));
|
|
529
529
|
|
|
530
|
-
function renderBackwardButton(version, handleClick) {
|
|
530
|
+
function renderBackwardButton(version, handleClick, alwaysVisible = false) {
|
|
531
531
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
532
532
|
const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
|
|
533
533
|
const text = 'Вернуться назад';
|
|
534
|
-
return (jsxs("div", { className:
|
|
534
|
+
return (jsxs("div", { className: style(alwaysVisible ? 'flex' : 'hidden sm:flex', 'items-center gap-s'), children: [jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: jsx(Img, { className: "w-4 h-4", image: {
|
|
535
535
|
icon: 'ArrowLeftIcon',
|
|
536
536
|
iconVersion: iconVersion,
|
|
537
537
|
} }) }), jsx(LinkButton, { version: "link", className: "group-data-secondary:text-white/80", text: text, ariaLabel: text, onClick: handleClick, type: "button" })] }));
|
|
@@ -2366,6 +2366,16 @@
|
|
|
2366
2366
|
orientation: 'vertical',
|
|
2367
2367
|
...field('isAnnuity'),
|
|
2368
2368
|
});
|
|
2369
|
+
const { onChange: setMoneyValue } = field('moneyValue');
|
|
2370
|
+
const { onChange: setMonthsValue } = field('monthsValue');
|
|
2371
|
+
useEffect(() => {
|
|
2372
|
+
setMoneyValue &&
|
|
2373
|
+
setMoneyValue(clamp(userInputParams.moneyValue, calculatorParams.minSum, calculatorParams.maxSum));
|
|
2374
|
+
}, [calculatorParams.minSum, calculatorParams.maxSum]);
|
|
2375
|
+
useEffect(() => {
|
|
2376
|
+
setMonthsValue &&
|
|
2377
|
+
setMonthsValue(clamp(userInputParams.monthsValue, calculatorParams.minMonths, calculatorParams.maxMonths));
|
|
2378
|
+
}, [calculatorParams.minMonths, calculatorParams.maxMonths]);
|
|
2369
2379
|
return (jsx(CalculatorFormLayout, { className: className, inputChildren: jsxs("div", { children: [renderWantedSumInput({
|
|
2370
2380
|
title: 'Сумма кредита, ₽',
|
|
2371
2381
|
step: 500,
|
|
@@ -6005,7 +6015,7 @@
|
|
|
6005
6015
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6006
6016
|
});
|
|
6007
6017
|
|
|
6008
|
-
const packageVersion = "0.14.
|
|
6018
|
+
const packageVersion = "0.14.233";
|
|
6009
6019
|
|
|
6010
6020
|
exports.Blocks = Blocks;
|
|
6011
6021
|
exports.ContentPage = ContentPage;
|