@redneckz/wildless-cms-uni-blocks 0.14.227 → 0.14.229
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 +4 -2
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/sprites.svg +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +3 -1
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +3 -1
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +3 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +3 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +4 -0
- package/package.json +1 -1
- package/src/components/CardTransfer/CardTransfer.tsx +4 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -2712,6 +2712,8 @@
|
|
|
2712
2712
|
const DEFAULT_TITLE = 'Укажите сумму перевода';
|
|
2713
2713
|
const DEFAULT_LABEL = 'Сумма перевода';
|
|
2714
2714
|
const DEFAULT_PLACEHOLDER = '1500';
|
|
2715
|
+
const MAX_AMOUNT = 300000;
|
|
2716
|
+
const MIN_AMOUNT = 1;
|
|
2715
2717
|
const FORM_URL_MAP = {
|
|
2716
2718
|
private: 'https://old.rshb.ru/p2p/',
|
|
2717
2719
|
business: 'https://old.rshb.ru/smallbusiness/p2p/',
|
|
@@ -2725,7 +2727,7 @@
|
|
|
2725
2727
|
useEffect(() => {
|
|
2726
2728
|
setDisabled(amount <= 0);
|
|
2727
2729
|
}, [amount]);
|
|
2728
|
-
return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "h3", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-[468px]", method: "POST", action: FORM_URL_MAP[formType], children: [jsx(CurrencyInput, { valid: !isDisabled, placeholder: placeholder, label: label, ...field('amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: amount }), button?.text ? (jsx(Button, { className: "w-full mt-lg", type: "submit", disabled: isDisabled, children: button.text })) : null] })] }));
|
|
2730
|
+
return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "h3", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-[468px]", method: "POST", action: FORM_URL_MAP[formType], children: [jsx(CurrencyInput, { valid: !isDisabled, placeholder: placeholder, label: label, max: MAX_AMOUNT, min: MIN_AMOUNT, ...field('amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: amount }), button?.text ? (jsx(Button, { className: "w-full mt-lg", type: "submit", disabled: isDisabled, children: button.text })) : null] })] }));
|
|
2729
2731
|
});
|
|
2730
2732
|
|
|
2731
2733
|
const mapChildren = (mapper) => (children) => {
|
|
@@ -5992,7 +5994,7 @@
|
|
|
5992
5994
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
5993
5995
|
});
|
|
5994
5996
|
|
|
5995
|
-
const packageVersion = "0.14.
|
|
5997
|
+
const packageVersion = "0.14.228";
|
|
5996
5998
|
|
|
5997
5999
|
exports.Blocks = Blocks;
|
|
5998
6000
|
exports.ContentPage = ContentPage;
|