@redneckz/wildless-cms-uni-blocks 0.14.392 → 0.14.394
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 +17 -15
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/Calculator/CalculatorValueBlock.d.ts +2 -0
- package/bundle/ui-kit/Calculator/Rate.d.ts +2 -0
- package/bundle/ui-kit/Calculator/renderRate.d.ts +1 -1
- package/dist/components/CalculatorBonus/CalculatorBonus.js +10 -9
- package/dist/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +2 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/ui-kit/Calculator/CalculatorValueBlock.d.ts +2 -0
- package/dist/ui-kit/Calculator/CalculatorValueBlock.js +1 -1
- package/dist/ui-kit/Calculator/CalculatorValueBlock.js.map +1 -1
- package/dist/ui-kit/Calculator/Rate.d.ts +2 -0
- package/dist/ui-kit/Calculator/Rate.js +1 -1
- package/dist/ui-kit/Calculator/Rate.js.map +1 -1
- package/dist/ui-kit/Calculator/renderFootnote.js +1 -1
- package/dist/ui-kit/Calculator/renderFootnote.js.map +1 -1
- package/dist/ui-kit/Calculator/renderRate.d.ts +1 -1
- package/dist/ui-kit/Calculator/renderRate.js +1 -1
- package/dist/ui-kit/Calculator/renderRate.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/CalculatorBonus/CalculatorBonus.js +10 -9
- package/lib/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +2 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/ui-kit/Calculator/CalculatorValueBlock.d.ts +2 -0
- package/lib/ui-kit/Calculator/CalculatorValueBlock.js +1 -1
- package/lib/ui-kit/Calculator/CalculatorValueBlock.js.map +1 -1
- package/lib/ui-kit/Calculator/Rate.d.ts +2 -0
- package/lib/ui-kit/Calculator/Rate.js +1 -1
- package/lib/ui-kit/Calculator/Rate.js.map +1 -1
- package/lib/ui-kit/Calculator/renderFootnote.js +1 -1
- package/lib/ui-kit/Calculator/renderFootnote.js.map +1 -1
- package/lib/ui-kit/Calculator/renderRate.d.ts +1 -1
- package/lib/ui-kit/Calculator/renderRate.js +1 -1
- package/lib/ui-kit/Calculator/renderRate.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +17 -15
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/Calculator/CalculatorValueBlock.d.ts +2 -0
- package/mobile/bundle/ui-kit/Calculator/Rate.d.ts +2 -0
- package/mobile/bundle/ui-kit/Calculator/renderRate.d.ts +1 -1
- package/mobile/dist/components/CalculatorBonus/CalculatorBonus.js +10 -9
- package/mobile/dist/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js +2 -1
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorValueBlock.d.ts +2 -0
- package/mobile/dist/ui-kit/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/Rate.d.ts +2 -0
- package/mobile/dist/ui-kit/Calculator/Rate.js +1 -1
- package/mobile/dist/ui-kit/Calculator/Rate.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/renderFootnote.js +1 -1
- package/mobile/dist/ui-kit/Calculator/renderFootnote.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/renderRate.d.ts +1 -1
- package/mobile/dist/ui-kit/Calculator/renderRate.js +1 -1
- package/mobile/dist/ui-kit/Calculator/renderRate.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/CalculatorBonus/CalculatorBonus.js +10 -9
- package/mobile/lib/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js +2 -1
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorValueBlock.d.ts +2 -0
- package/mobile/lib/ui-kit/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/Rate.d.ts +2 -0
- package/mobile/lib/ui-kit/Calculator/Rate.js +1 -1
- package/mobile/lib/ui-kit/Calculator/Rate.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/renderFootnote.js +1 -1
- package/mobile/lib/ui-kit/Calculator/renderFootnote.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/renderRate.d.ts +1 -1
- package/mobile/lib/ui-kit/Calculator/renderRate.js +1 -1
- package/mobile/lib/ui-kit/Calculator/renderRate.js.map +1 -1
- package/mobile/src/components/CalculatorBonus/CalculatorBonus.tsx +17 -10
- package/mobile/src/components/Footer/SocialMedia.tsx +4 -1
- package/mobile/src/ui-kit/Calculator/CalculatorValueBlock.tsx +13 -2
- package/mobile/src/ui-kit/Calculator/Rate.tsx +12 -2
- package/mobile/src/ui-kit/Calculator/renderFootnote.tsx +1 -1
- package/mobile/src/ui-kit/Calculator/renderRate.tsx +10 -1
- package/package.json +1 -1
- package/src/components/CalculatorBonus/CalculatorBonus.tsx +17 -10
- package/src/components/Footer/SocialMedia.tsx +4 -1
- package/src/ui-kit/Calculator/CalculatorValueBlock.tsx +13 -2
- package/src/ui-kit/Calculator/Rate.tsx +12 -2
- package/src/ui-kit/Calculator/renderFootnote.tsx +1 -1
- package/src/ui-kit/Calculator/renderRate.tsx +10 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -2509,17 +2509,17 @@
|
|
|
2509
2509
|
};
|
|
2510
2510
|
|
|
2511
2511
|
const calculatorValueBlockStyle = 'flex justify-between @xl:flex-col';
|
|
2512
|
-
const CalculatorValueBlock = JSX(({ className, title, value, fractionDigits, fixed, prefix, postfix }) => (jsxs("div", { className: style(calculatorValueBlockStyle, className), children: [title ? (jsx(Text, { size: "text-l", font: "font-light", color:
|
|
2512
|
+
const CalculatorValueBlock = JSX(({ className, title, value, fractionDigits, fixed, prefix, postfix, color = 'text-secondary-text', }) => (jsxs("div", { className: style(calculatorValueBlockStyle, className), children: [title ? (jsx(Text, { size: "text-l", font: "font-light", color: color, children: title })) : null, value ? (jsx("div", { children: jsx(Text, { size: "text-h3", children: [prefix, toLocalNumberFormat(fractionDigits, { fixed })(value), postfix]
|
|
2513
2513
|
.filter(Boolean)
|
|
2514
2514
|
.join(' ') }) })) : (jsx("div", { children: jsx(Text, { size: "text-h3", children: "-" }) }))] })));
|
|
2515
2515
|
|
|
2516
|
-
const renderFootnote = (text, key) => text ? (jsx(Paragraph, { size: "text-
|
|
2516
|
+
const renderFootnote = (text, key) => text ? (jsx(Paragraph, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: text }, String(key))) : null;
|
|
2517
2517
|
|
|
2518
|
-
const Rate = JSX(({ rate = 0, title = 'Ставка', unit, fractionDigits = 2, depositeName, isShowDepositeName }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color:
|
|
2518
|
+
const Rate = JSX(({ rate = 0, title = 'Ставка', unit, fractionDigits = 2, depositeName, isShowDepositeName, color = 'text-secondary-text', }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: color, children: title }), jsxs("div", { className: "relative", children: [jsxs("div", { className: "flex justify-start gradient-color-text", children: [jsx("span", { className: "font-mohave text-title-huge -mt-m tracking-[-15px]", children: toLocalNumberFormat(fractionDigits, { fixed: true })(rate) }), unit ? jsx("span", { className: "text-7xl", children: unit }) : null] }), depositeName && isShowDepositeName ? (jsx("div", { className: "absolute bottom-2 w-full text-left whitespace-nowrap", children: depositeName })) : null] })] })));
|
|
2519
2519
|
|
|
2520
2520
|
const UnknownRate = JSX(({ title = 'Ставка', isUnavailableByTerm = false }) => (jsxs("div", { className: "space-y-s", children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsx(Icon, { className: "w-10 h-10 @5xl:h-auto @5xl:w-40", name: "PercentIcon" }), jsx("div", { className: "w-64", children: isUnavailableByTerm ? (jsxs(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: ["\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u043D\u0430\u044F \u0441\u0442\u0430\u0432\u043A\u0430 \u0434\u043B\u044F \u0441\u0440\u043E\u043A\u0430 ", jsx("strong", { children: "1-30 \u0434\u043D\u0435\u0439" }), " \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0432 \u0411\u0430\u043D\u043A"] })) : (jsx(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u0443\u044E \u0441\u0443\u043C\u043C\u0443 \u0438\u043B\u0438 \u0441\u0440\u043E\u043A" })) })] })));
|
|
2521
2521
|
|
|
2522
|
-
const renderRate = ({ title = 'Ставка', rate = 0, unit = '%', fractionDigits = 2, isUnknownRateShown = true, ...rest }) => isUnknownRateShown && rate === 0 ? (jsx(UnknownRate, { title: title, ...rest })) : (jsxs("div", { children: [jsx("div", { className: "hidden @xl:block", children: jsx(Rate, { title: title, rate: rate, unit: unit, fractionDigits: fractionDigits, ...rest }) }), jsx("div", { className: "@xl:hidden", children: jsx(CalculatorValueBlock, { title: title, value: rate, postfix: unit, fractionDigits: fractionDigits, fixed: true, ...rest }) })] }));
|
|
2522
|
+
const renderRate = ({ title = 'Ставка', rate = 0, unit = '%', fractionDigits = 2, isUnknownRateShown = true, color = 'text-secondary-text', ...rest }) => isUnknownRateShown && rate === 0 ? (jsx(UnknownRate, { title: title, ...rest })) : (jsxs("div", { children: [jsx("div", { className: "hidden @xl:block", children: jsx(Rate, { title: title, rate: rate, unit: unit, fractionDigits: fractionDigits, color: color, ...rest }) }), jsx("div", { className: "@xl:hidden", children: jsx(CalculatorValueBlock, { title: title, value: rate, postfix: unit, fractionDigits: fractionDigits, fixed: true, color: color, ...rest }) })] }));
|
|
2523
2523
|
|
|
2524
2524
|
const DEFAULT_MONEY_STEP = 1000;
|
|
2525
2525
|
function renderWantedSumInput({ isShowItems = true, step = DEFAULT_MONEY_STEP, ...rest }) {
|
|
@@ -2597,15 +2597,16 @@
|
|
|
2597
2597
|
step: 500,
|
|
2598
2598
|
isShowItems: false,
|
|
2599
2599
|
...field('restExpenseValue'),
|
|
2600
|
-
})] }), monthBonus >= 0
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2600
|
+
})] }), jsx("div", { className: "mb-s", children: monthBonus >= 0
|
|
2601
|
+
? renderRate({
|
|
2602
|
+
title: 'Баллов за месяц',
|
|
2603
|
+
rate: monthBonus,
|
|
2604
|
+
fractionDigits: 0,
|
|
2605
|
+
isUnknownRateShown: false,
|
|
2606
|
+
unit: '',
|
|
2607
|
+
color: 'text-primary-text',
|
|
2608
|
+
})
|
|
2609
|
+
: null }), jsxs("div", { className: CalculatorStyle.result, children: [yearBonus >= 0 ? (jsx(CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus, color: "text-primary-text" })) : null, renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
|
|
2609
2610
|
});
|
|
2610
2611
|
|
|
2611
2612
|
const MONTHS_IN_YEAR = 12;
|
|
@@ -3372,11 +3373,12 @@
|
|
|
3372
3373
|
});
|
|
3373
3374
|
const buttonClassName = style('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : 'basis-auto', getStretchedStyle(stretched));
|
|
3374
3375
|
return (jsxs("div", { className: style('flex flex-col gap-m xl:gap-xs', className), children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
|
|
3375
|
-
className:
|
|
3376
|
+
className: getClassName(hasText ?? false, stretched ?? false),
|
|
3376
3377
|
buttonClassName,
|
|
3377
3378
|
}) }), children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null] }));
|
|
3378
3379
|
});
|
|
3379
3380
|
const getStretchedStyle = (stretched = false) => (stretched ? 'flex-1 justify-center' : '');
|
|
3381
|
+
const getClassName = (hasText, stretched) => style(hasText || stretched ? 'basis-full' : '', stretched ? 'flex-nowrap' : '');
|
|
3380
3382
|
|
|
3381
3383
|
const ImageAlwaysOnRight = true;
|
|
3382
3384
|
|
|
@@ -6272,7 +6274,7 @@
|
|
|
6272
6274
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6273
6275
|
});
|
|
6274
6276
|
|
|
6275
|
-
const packageVersion = "0.14.
|
|
6277
|
+
const packageVersion = "0.14.393";
|
|
6276
6278
|
|
|
6277
6279
|
exports.Blocks = Blocks;
|
|
6278
6280
|
exports.ContentPage = ContentPage;
|