@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
|
@@ -94,4 +94,4 @@
|
|
|
94
94
|
<symbol id="WalletAddIcon" viewBox="0 0 24 24" fill="none" ><path d="M14.5 15.44h-5M12 13v5" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22H8.1c-.24 0-.48-.02-.71-.05-3.18-.21-4.88-1.91-5.09-5.09-.03-.23-.05-.47-.05-.71V14.2c0-2.01 1.22-3.74 2.96-4.49.6-.25 1.24-.39 1.92-.39h9.76c.49 0 .97.07 1.41.2 2 .6 3.46 2.47 3.46 4.67v1.95c0 .2-.01.4-.02.6-.19 3.5-2.14 5.26-5.84 5.26" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="m12.9 2.52-.03.07-2.9 6.73H7.12c-.68 0-1.33.14-1.92.39l1.75-4.18.04-.1.07-.16c.02-.06.04-.12.07-.17 1.31-3.03 2.79-3.72 5.77-2.58Z" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M18.29 9.52c-.45-.14-.93-.2-1.41-.2H9.97l2.9-6.73.03-.07c.15.05.29.12.44.18l2.21.93c1.23.51 2.09 1.04 2.61 1.68.1.12.18.23.25.36.09.14.16.28.2.43.04.09.07.18.09.26.27.84.11 1.87-.41 3.16ZM6.95 5.53 5.2 9.71a4.894 4.894 0 0 0-2.96 4.49v-2.93c0-2.84 2.02-5.21 4.71-5.74Z" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M21.76 11.27v2.93c0-2.2-1.46-4.07-3.46-4.67.52-1.3.67-2.32.42-3.17-.02-.09-.05-.18-.09-.26 1.86.96 3.13 2.93 3.13 5.17Z" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
|
|
95
95
|
<symbol id="WalletIcon" viewBox="0 0 24 24" fill="none" ><path d="M10.75 16.86v2.03c0 1.72-1.6 3.11-3.57 3.11-1.97 0-3.58-1.39-3.58-3.11v-2.03c0 1.72 1.6 2.94 3.58 2.94 1.97 0 3.57-1.23 3.57-2.94Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M10.75 14.11c0 .5-.14.96-.38 1.36-.59.97-1.8 1.58-3.2 1.58-1.4 0-2.61-.62-3.2-1.58-.24-.4-.38-.86-.38-1.36 0-.86.4-1.63 1.04-2.19.65-.57 1.54-.91 2.53-.91.99 0 1.88.35 2.53.91.66.55 1.06 1.33 1.06 2.19Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M10.75 14.11v2.75c0 1.72-1.6 2.94-3.57 2.94-1.97 0-3.58-1.23-3.58-2.94v-2.75C3.6 12.39 5.2 11 7.18 11c.99 0 1.88.35 2.53.91.64.56 1.04 1.34 1.04 2.2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 10.97v2.06c0 .55-.44 1-1 1.02h-1.96c-1.08 0-2.07-.79-2.16-1.87-.06-.63.18-1.22.6-1.63.37-.38.88-.6 1.44-.6H21c.56.02 1 .47 1 1.02Z" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 3.5c.26 0 .51.01.75.05C19.33 3.85 21 5.76 21 8.5v1.45h-2.08c-.56 0-1.07.22-1.44.6-.42.41-.66 1-.6 1.63.09 1.08 1.08 1.87 2.16 1.87H21v1.45c0 3-2 5-5 5h-2.5M2 10.5v-2c0-2.72 1.64-4.62 4.19-4.94.26-.04.53-.06.81-.06h5" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
|
|
96
96
|
<symbol id="WalletWithMoneyIcon" viewBox="0 0 24 24" fill="none" ><path d="M20 12.063V11a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-1.063" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="m5 7 8.571-5L15 4.308M10 7l8-4 2 2.91" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.56 18H21a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-7a1 1 0 0 0-1 1v3" stroke="#000" stroke-width="2" stroke-linecap="round"/></symbol>
|
|
97
|
-
<symbol id="YoutubeIcon" viewBox="0 0 20 20" fill="none" ><path d="M10 2.3C.172 2.3 0 3.176 0 10c0 6.827.172 7.7 10 7.7s10-.873 10-7.7c0-6.825-.172-7.7-10-7.7Zm3.205 8.035-4.49 2.096c-.393.182-.715-.022-.715-.456V8.027c0-.433.322-.638.715-.456l4.49 2.096c.393.184.393.484 0 .668Z" fill="currentColor"/></symbol
|
|
97
|
+
<symbol id="YoutubeIcon" viewBox="0 0 20 20" fill="none" ><path d="M10 2.3C.172 2.3 0 3.176 0 10c0 6.827.172 7.7 10 7.7s10-.873 10-7.7c0-6.825-.172-7.7-10-7.7Zm3.205 8.035-4.49 2.096c-.393.182-.715-.022-.715-.456V8.027c0-.433.322-.638.715-.456l4.49 2.096c.393.184.393.484 0 .668Z" fill="currentColor"/></symbol></svg>
|
|
@@ -12,6 +12,8 @@ const style_1 = require("../../utils/style");
|
|
|
12
12
|
const DEFAULT_TITLE = 'Укажите сумму перевода';
|
|
13
13
|
const DEFAULT_LABEL = 'Сумма перевода';
|
|
14
14
|
const DEFAULT_PLACEHOLDER = '1500';
|
|
15
|
+
const MAX_AMOUNT = 300000;
|
|
16
|
+
const MIN_AMOUNT = 1;
|
|
15
17
|
const FORM_URL_MAP = {
|
|
16
18
|
private: 'https://old.rshb.ru/p2p/',
|
|
17
19
|
business: 'https://old.rshb.ru/smallbusiness/p2p/',
|
|
@@ -25,6 +27,6 @@ exports.CardTransfer = (0, uni_jsx_1.JSX)(({ className = '', title = DEFAULT_TIT
|
|
|
25
27
|
(0, hooks_1.useEffect)(() => {
|
|
26
28
|
setDisabled(amount <= 0);
|
|
27
29
|
}, [amount]);
|
|
28
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "h3", title: title })) : null, (0, jsx_runtime_1.jsxs)("form", { className: "w-full xl:max-w-[468px]", method: "POST", action: FORM_URL_MAP[formType], children: [(0, jsx_runtime_1.jsx)(CurrencyInput_1.CurrencyInput, { valid: !isDisabled, placeholder: placeholder, label: label, ...field('amount', { parse: Number, format: String }) }), (0, jsx_runtime_1.jsx)("input", { type: "hidden", name: "amount", value: amount }), button?.text ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "w-full mt-lg", type: "submit", disabled: isDisabled, children: button.text })) : null] })] }));
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "h3", title: title })) : null, (0, jsx_runtime_1.jsxs)("form", { className: "w-full xl:max-w-[468px]", method: "POST", action: FORM_URL_MAP[formType], children: [(0, jsx_runtime_1.jsx)(CurrencyInput_1.CurrencyInput, { valid: !isDisabled, placeholder: placeholder, label: label, max: MAX_AMOUNT, min: MIN_AMOUNT, ...field('amount', { parse: Number, format: String }) }), (0, jsx_runtime_1.jsx)("input", { type: "hidden", name: "amount", value: amount }), button?.text ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "w-full mt-lg", type: "submit", disabled: isDisabled, children: button.text })) : null] })] }));
|
|
29
31
|
});
|
|
30
32
|
//# sourceMappingURL=CardTransfer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardTransfer.js","sourceRoot":"","sources":["../../../src/components/CardTransfer/CardTransfer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,iDAA8C;AAC9C,4DAAyD;AACzD,uDAAoD;AACpD,4EAAyE;AACzE,0DAAuD;AAEvD,6CAA0C;AAG1C,MAAM,aAAa,GAAG,wBAAwB,CAAC;AAC/C,MAAM,aAAa,GAAG,gBAAgB,CAAC;AACvC,MAAM,mBAAmB,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"CardTransfer.js","sourceRoot":"","sources":["../../../src/components/CardTransfer/CardTransfer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,iDAA8C;AAC9C,4DAAyD;AACzD,uDAAoD;AACpD,4EAAyE;AACzE,0DAAuD;AAEvD,6CAA0C;AAG1C,MAAM,aAAa,GAAG,wBAAwB,CAAC;AAC/C,MAAM,aAAa,GAAG,gBAAgB,CAAC;AACvC,MAAM,mBAAmB,GAAG,MAAM,CAAC;AACnC,MAAM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AK,EAAE,KAAK,EACZ,GAAG,EAAE,UAAU,EACf,GAAG,EAAE,UAAU,KACX,KAAK,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,GACtD,EACF,kCAAO,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,MAAM,GAAI,EACnD,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CACd,uBAAC,eAAM,IAAC,SAAS,EAAC,cAAc,EAAC,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,UAAU,YAChE,MAAM,CAAC,IAAI,GACL,CACV,CAAC,CAAC,CAAC,IAAI,IACH,IACM,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -10,6 +10,8 @@ import { style } from '../../utils/style.js';
|
|
|
10
10
|
const DEFAULT_TITLE = 'Укажите сумму перевода';
|
|
11
11
|
const DEFAULT_LABEL = 'Сумма перевода';
|
|
12
12
|
const DEFAULT_PLACEHOLDER = '1500';
|
|
13
|
+
const MAX_AMOUNT = 300000;
|
|
14
|
+
const MIN_AMOUNT = 1;
|
|
13
15
|
const FORM_URL_MAP = {
|
|
14
16
|
private: 'https://old.rshb.ru/p2p/',
|
|
15
17
|
business: 'https://old.rshb.ru/smallbusiness/p2p/',
|
|
@@ -23,6 +25,6 @@ export const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label
|
|
|
23
25
|
useEffect(() => {
|
|
24
26
|
setDisabled(amount <= 0);
|
|
25
27
|
}, [amount]);
|
|
26
|
-
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] })] }));
|
|
28
|
+
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] })] }));
|
|
27
29
|
});
|
|
28
30
|
//# sourceMappingURL=CardTransfer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardTransfer.js","sourceRoot":"","sources":["../../../src/components/CardTransfer/CardTransfer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,aAAa,GAAG,wBAAwB,CAAC;AAC/C,MAAM,aAAa,GAAG,gBAAgB,CAAC;AACvC,MAAM,mBAAmB,GA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';
|
|
2875
2875
|
const DEFAULT_PLACEHOLDER = '1500';
|
|
2876
|
+
const MAX_AMOUNT = 300000;
|
|
2877
|
+
const MIN_AMOUNT = 1;
|
|
2876
2878
|
const FORM_URL_MAP = {
|
|
2877
2879
|
private: 'https://old.rshb.ru/p2p/',
|
|
2878
2880
|
business: 'https://old.rshb.ru/smallbusiness/p2p/',
|
|
@@ -2886,7 +2888,7 @@
|
|
|
2886
2888
|
useEffect(() => {
|
|
2887
2889
|
setDisabled(amount <= 0);
|
|
2888
2890
|
}, [amount]);
|
|
2889
|
-
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] })] }));
|
|
2891
|
+
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] })] }));
|
|
2890
2892
|
});
|
|
2891
2893
|
|
|
2892
2894
|
const useCarouselControls = (props, initialIndex = 0) => {
|
|
@@ -5618,7 +5620,7 @@
|
|
|
5618
5620
|
|
|
5619
5621
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
5620
5622
|
|
|
5621
|
-
const packageVersion = "0.14.
|
|
5623
|
+
const packageVersion = "0.14.228";
|
|
5622
5624
|
|
|
5623
5625
|
exports.Blocks = Blocks;
|
|
5624
5626
|
exports.ContentPage = ContentPage;
|