@redneckz/wildless-cms-uni-blocks 0.8.20 → 0.8.21
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 +83 -40
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/CreditCalculatorForm.d.ts +0 -2
- package/bundle/components/Calculator/constants.d.ts +2 -2
- package/bundle/components/Calculator/renderInterestPayment.d.ts +9 -1
- package/bundle/components/Calculator/renderPaymentType.d.ts +12 -0
- package/bundle/components/Calculator/renderRegistrationType.d.ts +10 -0
- package/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
- package/bundle/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
- package/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
- package/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.d.ts +0 -2
- package/dist/components/Calculator/CreditCalculatorForm.js +7 -15
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +13 -1
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/constants.d.ts +2 -2
- package/dist/components/Calculator/constants.js +6 -7
- package/dist/components/Calculator/constants.js.map +1 -1
- package/dist/components/Calculator/rangeHelpers.js +1 -1
- package/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/dist/components/Calculator/renderInterestPayment.d.ts +9 -1
- package/dist/components/Calculator/renderInterestPayment.js +2 -2
- package/dist/components/Calculator/renderInterestPayment.js.map +1 -1
- package/dist/components/Calculator/renderPaymentType.d.ts +12 -0
- package/dist/components/Calculator/renderPaymentType.js +22 -0
- package/dist/components/Calculator/renderPaymentType.js.map +1 -0
- package/dist/components/Calculator/renderRegistrationType.d.ts +10 -0
- package/dist/components/Calculator/renderRegistrationType.js +22 -0
- package/dist/components/Calculator/renderRegistrationType.js.map +1 -0
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
- package/dist/components/Calculator/useCreditCalculatorParams.js +2 -4
- package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
- package/dist/components/Calculator/useDepositCalculatorParams.js +2 -1
- package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/dist/components/Footer/Contacts.js +1 -1
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/Sitemap.js +7 -5
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.d.ts +0 -2
- package/lib/components/Calculator/CreditCalculatorForm.js +6 -14
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +13 -1
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/constants.d.ts +2 -2
- package/lib/components/Calculator/constants.js +6 -7
- package/lib/components/Calculator/constants.js.map +1 -1
- package/lib/components/Calculator/rangeHelpers.js +1 -1
- package/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/lib/components/Calculator/renderInterestPayment.d.ts +9 -1
- package/lib/components/Calculator/renderInterestPayment.js +2 -2
- package/lib/components/Calculator/renderInterestPayment.js.map +1 -1
- package/lib/components/Calculator/renderPaymentType.d.ts +12 -0
- package/lib/components/Calculator/renderPaymentType.js +19 -0
- package/lib/components/Calculator/renderPaymentType.js.map +1 -0
- package/lib/components/Calculator/renderRegistrationType.d.ts +10 -0
- package/lib/components/Calculator/renderRegistrationType.js +19 -0
- package/lib/components/Calculator/renderRegistrationType.js.map +1 -0
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
- package/lib/components/Calculator/useCreditCalculatorParams.js +2 -4
- package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
- package/lib/components/Calculator/useDepositCalculatorParams.js +2 -1
- package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/lib/components/Footer/Contacts.js +1 -1
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/Sitemap.js +7 -5
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +2 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/CreditCalculatorForm.d.ts +0 -2
- package/mobile/bundle/components/Calculator/constants.d.ts +2 -2
- package/mobile/bundle/components/Calculator/renderInterestPayment.d.ts +9 -1
- package/mobile/bundle/components/Calculator/renderPaymentType.d.ts +12 -0
- package/mobile/bundle/components/Calculator/renderRegistrationType.d.ts +10 -0
- package/mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
- package/mobile/bundle/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
- package/mobile/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
- package/mobile/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +0 -2
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +7 -15
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +13 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/constants.d.ts +2 -2
- package/mobile/dist/components/Calculator/constants.js +6 -7
- package/mobile/dist/components/Calculator/constants.js.map +1 -1
- package/mobile/dist/components/Calculator/rangeHelpers.js +1 -1
- package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/dist/components/Calculator/renderInterestPayment.d.ts +9 -1
- package/mobile/dist/components/Calculator/renderInterestPayment.js +2 -2
- package/mobile/dist/components/Calculator/renderInterestPayment.js.map +1 -1
- package/mobile/dist/components/Calculator/renderPaymentType.d.ts +12 -0
- package/mobile/dist/components/Calculator/renderPaymentType.js +22 -0
- package/mobile/dist/components/Calculator/renderPaymentType.js.map +1 -0
- package/mobile/dist/components/Calculator/renderRegistrationType.d.ts +10 -0
- package/mobile/dist/components/Calculator/renderRegistrationType.js +22 -0
- package/mobile/dist/components/Calculator/renderRegistrationType.js.map +1 -0
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +2 -4
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +2 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.js +1 -1
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/Sitemap.js +7 -5
- package/mobile/dist/components/Footer/Sitemap.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +0 -2
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +6 -14
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +13 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/constants.d.ts +2 -2
- package/mobile/lib/components/Calculator/constants.js +6 -7
- package/mobile/lib/components/Calculator/constants.js.map +1 -1
- package/mobile/lib/components/Calculator/rangeHelpers.js +1 -1
- package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/lib/components/Calculator/renderInterestPayment.d.ts +9 -1
- package/mobile/lib/components/Calculator/renderInterestPayment.js +2 -2
- package/mobile/lib/components/Calculator/renderInterestPayment.js.map +1 -1
- package/mobile/lib/components/Calculator/renderPaymentType.d.ts +12 -0
- package/mobile/lib/components/Calculator/renderPaymentType.js +19 -0
- package/mobile/lib/components/Calculator/renderPaymentType.js.map +1 -0
- package/mobile/lib/components/Calculator/renderRegistrationType.d.ts +10 -0
- package/mobile/lib/components/Calculator/renderRegistrationType.js +19 -0
- package/mobile/lib/components/Calculator/renderRegistrationType.js.map +1 -0
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +2 -4
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +2 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.js +1 -1
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/Sitemap.js +7 -5
- package/mobile/lib/components/Footer/Sitemap.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +9 -8
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +8 -22
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +22 -8
- package/mobile/src/components/Calculator/constants.ts +6 -7
- package/mobile/src/components/Calculator/rangeHelpers.ts +1 -1
- package/mobile/src/components/Calculator/renderInterestPayment.tsx +21 -9
- package/mobile/src/components/Calculator/renderPaymentType.tsx +49 -0
- package/mobile/src/components/Calculator/renderRegistrationType.tsx +51 -0
- package/mobile/src/components/Calculator/useBusinessDepositCalculatorParams.ts +4 -3
- package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +3 -8
- package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +4 -2
- package/mobile/src/components/Footer/Contacts.tsx +1 -1
- package/mobile/src/components/Footer/Sitemap.tsx +10 -5
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +9 -2
- package/package.json +1 -1
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +9 -8
- package/src/components/Calculator/CreditCalculatorForm.tsx +8 -22
- package/src/components/Calculator/DepositCalculatorForm.tsx +22 -8
- package/src/components/Calculator/constants.ts +6 -7
- package/src/components/Calculator/rangeHelpers.ts +1 -1
- package/src/components/Calculator/renderInterestPayment.tsx +21 -9
- package/src/components/Calculator/renderPaymentType.tsx +49 -0
- package/src/components/Calculator/renderRegistrationType.tsx +51 -0
- package/src/components/Calculator/useBusinessDepositCalculatorParams.ts +4 -3
- package/src/components/Calculator/useCreditCalculatorParams.ts +3 -8
- package/src/components/Calculator/useDepositCalculatorParams.ts +4 -2
- package/src/components/Footer/Contacts.tsx +1 -1
- package/src/components/Footer/Sitemap.tsx +10 -5
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +22 -5
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +9 -2
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { ListOrientation } from '../../model/ListOrientation';
|
|
3
|
+
interface InterestPaymentProps {
|
|
4
|
+
isMonthlyInterestPayment: boolean;
|
|
5
|
+
callback?: (value: boolean) => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
orientation?: ListOrientation;
|
|
8
|
+
}
|
|
9
|
+
export declare function renderInterestPayment({ isMonthlyInterestPayment, callback, title, orientation, }: InterestPaymentProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -13,7 +13,7 @@ const depositTypeItems = [
|
|
|
13
13
|
text: 'В конце срока',
|
|
14
14
|
},
|
|
15
15
|
];
|
|
16
|
-
export function renderInterestPayment(isMonthlyInterestPayment, callback, title) {
|
|
17
|
-
return (_jsxs("div", { children: [title ? (_jsx(Text, { color: "text-secondary-text", font: "font-light", children: title })) : null, _jsx("div", {
|
|
16
|
+
export function renderInterestPayment({ isMonthlyInterestPayment, callback, title, orientation = 'horizontal', }) {
|
|
17
|
+
return (_jsxs("div", { children: [title ? (_jsx("div", { className: "mb-3", children: _jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, _jsx("div", { children: _jsx(RadioButtonGroup, { orientation: orientation, items: depositTypeItems, checkedItem: isMonthlyInterestPayment ? EVERY_MONTH : AT_END_TERM, onChange: (text) => callback && callback(text === EVERY_MONTH) }) })] }));
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=renderInterestPayment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderInterestPayment.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderInterestPayment.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"renderInterestPayment.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderInterestPayment.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,WAAW,GAAG,YAAY,CAAC;AACjC,MAAM,WAAW,GAAG,WAAW,CAAC;AAEhC,MAAM,gBAAgB,GAAG;IACvB;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,YAAY;KACnB;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,eAAe;KACtB;CACF,CAAC;AASF,MAAM,UAAU,qBAAqB,CAAC,EACpC,wBAAwB,EACxB,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,YAAY,GACL;IACrB,OAAO,CACL,0BACG,KAAK,CAAC,CAAC,CAAC,CACP,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,YAChD,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EAER,wBACE,KAAC,gBAAgB,IACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,wBAAwB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,EACjE,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW,CAAC,GACtE,GACE,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListOrientation } from '../../model/ListOrientation';
|
|
3
|
+
export declare const ANNUITY = "annuity";
|
|
4
|
+
export declare const DIFFERENTIAL = "differential";
|
|
5
|
+
interface PaymentTypeProps {
|
|
6
|
+
isAnnuity: boolean;
|
|
7
|
+
callback?: (value: boolean) => void;
|
|
8
|
+
title?: string;
|
|
9
|
+
orientation?: ListOrientation;
|
|
10
|
+
}
|
|
11
|
+
export declare function renderPaymentType({ isAnnuity, callback, title, orientation, }: PaymentTypeProps): JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { RadioButtonGroup } from '../../ui-kit/RadioButtonGroup/RadioButtonGroup.js';
|
|
3
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
4
|
+
export const ANNUITY = 'annuity';
|
|
5
|
+
export const DIFFERENTIAL = 'differential';
|
|
6
|
+
const paymentTypeItems = [
|
|
7
|
+
{
|
|
8
|
+
id: ANNUITY,
|
|
9
|
+
text: 'Аннуитетный',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
id: DIFFERENTIAL,
|
|
13
|
+
text: 'Дифференцированный',
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
export function renderPaymentType({ isAnnuity, callback, title, orientation = 'horizontal', }) {
|
|
17
|
+
return (_jsxs("div", { children: [title ? (_jsx("div", { className: "mb-3", children: _jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, _jsx(RadioButtonGroup, { orientation: orientation, items: paymentTypeItems, checkedItem: isAnnuity ? ANNUITY : DIFFERENTIAL, onChange: (text) => callback && callback(text === ANNUITY) })] }));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=renderPaymentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderPaymentType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderPaymentType.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAC;AAE3C,MAAM,gBAAgB,GAAG;IACvB;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,aAAa;KACpB;IACD;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,oBAAoB;KAC3B;CACF,CAAC;AASF,MAAM,UAAU,iBAAiB,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,YAAY,GACT;IACjB,OAAO,CACL,0BACG,KAAK,CAAC,CAAC,CAAC,CACP,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,YAChD,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,gBAAgB,IACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,EAC/C,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,OAAO,CAAC,GAClE,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListOrientation } from '../../model/ListOrientation';
|
|
3
|
+
interface RegistrationTypeProps {
|
|
4
|
+
isRemoteRegistration: boolean;
|
|
5
|
+
callback?: (value: boolean) => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
orientation?: ListOrientation;
|
|
8
|
+
}
|
|
9
|
+
export declare function renderRegistrationType({ isRemoteRegistration, callback, title, orientation, }: RegistrationTypeProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { RadioButtonGroup } from '../../ui-kit/RadioButtonGroup/RadioButtonGroup.js';
|
|
3
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
4
|
+
const REMOTE_REGISTRATION = 'remote';
|
|
5
|
+
const OFFICE_REGISTRATION = 'office';
|
|
6
|
+
const registrationTypeItems = [
|
|
7
|
+
{
|
|
8
|
+
id: OFFICE_REGISTRATION,
|
|
9
|
+
text: 'Офис Банка',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
id: REMOTE_REGISTRATION,
|
|
13
|
+
text: 'Дистанционно',
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
export function renderRegistrationType({ isRemoteRegistration, callback, title, orientation = 'horizontal', }) {
|
|
17
|
+
return (_jsxs("div", { children: [title ? (_jsx("div", { className: "mb-3", children: _jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, _jsx("div", { children: _jsx(RadioButtonGroup, { orientation: orientation, items: registrationTypeItems, checkedItem: isRemoteRegistration ? REMOTE_REGISTRATION : OFFICE_REGISTRATION, onChange: (text) => callback && callback(text === REMOTE_REGISTRATION) }) })] }));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=renderRegistrationType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderRegistrationType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRegistrationType.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AACrC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAErC,MAAM,qBAAqB,GAAG;IAC5B;QACE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,YAAY;KACnB;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,cAAc;KACrB;CACF,CAAC;AASF,MAAM,UAAU,sBAAsB,CAAC,EACrC,oBAAoB,EACpB,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,YAAY,GACJ;IACtB,OAAO,CACL,0BACG,KAAK,CAAC,CAAC,CAAC,CACP,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,YAChD,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,wBACE,KAAC,gBAAgB,IACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,qBAAqB,EAC5B,WAAW,EAAE,oBAAoB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,EAC7E,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC,GAC9E,GACE,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export interface BusinessCommonDepositParams {
|
|
2
|
+
isMonthlyInterestPayment: boolean;
|
|
3
3
|
isReplenished: boolean;
|
|
4
4
|
isPartialWithdrawal: boolean;
|
|
5
5
|
isSmallBusiness: boolean;
|
|
@@ -20,6 +20,7 @@ export interface BusinessDepositCalculatorParams extends BusinessDepositCalculat
|
|
|
20
20
|
income?: number;
|
|
21
21
|
finalSum?: number;
|
|
22
22
|
isDisabledOperatingDeposit?: boolean;
|
|
23
|
+
isShowUnknownRate?: boolean;
|
|
23
24
|
}
|
|
24
25
|
export declare type BusinessDepositCalculatorData = {
|
|
25
26
|
rows: BusinessDepositCalculatorSourceBookParams[];
|
|
@@ -11,7 +11,7 @@ export const useBusinessDepositCalculatorParams = (userInputParams, sourceBookDi
|
|
|
11
11
|
...DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS,
|
|
12
12
|
...userInputParams,
|
|
13
13
|
isDisabledOperatingDeposit,
|
|
14
|
-
|
|
14
|
+
isShowUnknownRate: true,
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
const businessDepositCalculatorSourceBookParams = data?.rows?.find((_) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBusinessDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useBusinessDepositCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,EACtB,0CAA0C,GAC3C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"useBusinessDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/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;AACH,CAAC,CAAC"}
|
|
@@ -8,9 +8,7 @@ export interface CreditCalculatorSourceBookParams extends CommonCreditParams {
|
|
|
8
8
|
maxSum: number;
|
|
9
9
|
minMonths: number;
|
|
10
10
|
maxMonths: number;
|
|
11
|
-
|
|
12
|
-
rateTopRange: number;
|
|
13
|
-
sumBorder: number;
|
|
11
|
+
rate: number;
|
|
14
12
|
}
|
|
15
13
|
export interface CreditCalculatorUserInputParams extends CommonCreditParams {
|
|
16
14
|
isAnnuity: boolean;
|
|
@@ -19,7 +17,6 @@ export interface CreditCalculatorUserInputParams extends CommonCreditParams {
|
|
|
19
17
|
}
|
|
20
18
|
export interface CreditCalculatorParams extends CreditCalculatorSourceBookParams, CreditCalculatorUserInputParams {
|
|
21
19
|
monthlyPayment: number;
|
|
22
|
-
finalRate: number;
|
|
23
20
|
}
|
|
24
21
|
export declare type CreditCalculatorData = {
|
|
25
22
|
rows: CreditCalculatorSourceBookParams[];
|
|
@@ -12,16 +12,14 @@ export const useCreditCalculatorParams = (userInputParams, sourceBookDir) => {
|
|
|
12
12
|
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
|
|
13
13
|
checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], _));
|
|
14
14
|
}) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
|
|
15
|
-
const {
|
|
16
|
-
const
|
|
17
|
-
const monthlyPayment = getMonthlyPayment(finalRate, userInputParams);
|
|
15
|
+
const { rate } = creditCalculatorSourceBookParams;
|
|
16
|
+
const monthlyPayment = getMonthlyPayment(rate, userInputParams);
|
|
18
17
|
const sourceBookRows = data?.rows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
|
|
19
18
|
return {
|
|
20
19
|
...creditCalculatorSourceBookParams,
|
|
21
20
|
...getRangeByKeys(['minSum', 'maxSum'], sourceBookRows),
|
|
22
21
|
...getRangeByKeys(['minMonths', 'maxMonths'], sourceBookRows),
|
|
23
22
|
...userInputParams,
|
|
24
|
-
finalRate,
|
|
25
23
|
monthlyPayment,
|
|
26
24
|
};
|
|
27
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useCreditCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"useCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useCreditCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AA+B5D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,eAAgD,EAChD,aAAsB,EACE,EAAE;IAC1B,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,eAAe,CAAC;IAElG,MAAM,IAAI,GAAG,mBAAmB,CAAuB,aAAa,IAAI,uBAAuB,CAAC,CAAC;IACjG,MAAM,gCAAgC,GACpC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QACrB,OAAO,CACL,WAAW,KAAK,CAAC,CAAC,WAAW;YAC7B,cAAc,KAAK,CAAC,CAAC,cAAc;YACnC,eAAe,KAAK,CAAC,CAAC,eAAe;YACrC,gBAAgB,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;YACrD,gBAAgB,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,CAAC,CAAC,CAC7D,CAAC;IACJ,CAAC,CAAC,IAAI,gCAAgC,CAAC;IAEzC,MAAM,EAAE,IAAI,EAAE,GAAG,gCAAgC,CAAC;IAClD,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAChE,MAAM,cAAc,GAAG,IAAI,EAAE,IAAI,IAAI,CAAC,gCAAgC,CAAC,CAAC;IAExE,OAAO;QACL,GAAG,gCAAgC;QACnC,GAAG,cAAc,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,cAAc,CAAC;QACvD,GAAG,cAAc,CAAC,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,cAAc,CAAC;QAC7D,GAAG,eAAe;QAClB,cAAc;KACf,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -2,9 +2,10 @@ import { DEFAULT_DEPOSIT_CALCULATOR_PARAMS, DEPOSIT_CALC_DEFAULT_DIR } from './c
|
|
|
2
2
|
import { checkRangeByKeys, getRangeByKeys } from './rangeHelpers.js';
|
|
3
3
|
import { useCalculatorParams } from './useCalculatorParams.js';
|
|
4
4
|
export const useDepositCalculatorParams = (userInputParams, sourceBookDir) => {
|
|
5
|
-
const { isMonthlyInterestPayment, moneyValue, monthsValue } = userInputParams;
|
|
5
|
+
const { isMonthlyInterestPayment, isRemoteRegistration, moneyValue, monthsValue } = userInputParams;
|
|
6
6
|
const data = useCalculatorParams(sourceBookDir || DEPOSIT_CALC_DEFAULT_DIR);
|
|
7
7
|
const depositCalculatorSourceBookParams = data?.rows?.find((_) => isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
|
|
8
|
+
isRemoteRegistration === _.isRemoteRegistration &&
|
|
8
9
|
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
|
|
9
10
|
checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], _)) || DEFAULT_DEPOSIT_CALCULATOR_PARAMS;
|
|
10
11
|
const { rate } = depositCalculatorSourceBookParams;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useDepositCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"useDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useDepositCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AA+B5D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,eAAiD,EACjD,aAAsB,EACG,EAAE;IAC3B,MAAM,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,UAAU,EAAE,WAAW,EAAE,GAC/E,eAAe,CAAC;IAElB,MAAM,IAAI,GAAG,mBAAmB,CAC9B,aAAa,IAAI,wBAAwB,CAC1C,CAAC;IAEF,MAAM,iCAAiC,GACrC,IAAI,EAAE,IAAI,EAAE,IAAI,CACd,CAAC,CAAC,EAAE,EAAE,CACJ,wBAAwB,KAAK,CAAC,CAAC,wBAAwB;QACvD,oBAAoB,KAAK,CAAC,CAAC,oBAAoB;QAC/C,gBAAgB,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;QACrD,gB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
3
3
|
import { Button } from '../../ui-kit/Button/Button.js';
|
|
4
|
-
export const Contacts = JSX(({ className = '', items, hasButton }) => (_jsxs("div", { className: className, children: [items?.length ? items.map(renderContact) : null, hasButton ? (_jsx(Button, { version: "primary", className: "mb-6 w-full", href: "/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
|
|
4
|
+
export const Contacts = JSX(({ className = '', items, hasButton }) => (_jsxs("div", { className: className, children: [items?.length ? items.map(renderContact) : null, hasButton ? (_jsx(Button, { version: "primary", className: "mb-6 w-full", href: "https://www.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
|
|
5
5
|
const renderContact = (item, index) => {
|
|
6
6
|
const { type, text, description } = item;
|
|
7
7
|
return (_jsxs("div", { className: "mb-4", children: [_jsx("div", { children: renderText(type, text) }), _jsx("div", { className: "mt-1 text-s-light text-secondary-text", children: description })] }, String(index)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Contacts.js","sourceRoot":"","sources":["../../../src/components/Footer/Contacts.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AASpD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAgB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CACnF,eAAK,SAAS,EAAE,SAAS,aACtB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GA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U,GAAG,CAAC,IAAyB,EAAE,IAAI,GAAG,EAAE,EAAE,EAAE;IAC1D,QAAQ,IAAI,EAAE;QACZ,KAAK,KAAK;YACR,OAAO,CACL,YACE,SAAS,EAAC,gEAAgE,EAC1E,IAAI,EAAE,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,YAE7B,IAAI,GACH,CACL,CAAC;QACJ,KAAK,OAAO;YACV,OAAO,CACL,YAAG,SAAS,EAAC,8CAA8C,EAAC,IAAI,EAAE,UAAU,IAAI,EAAE,YAC/E,IAAI,GACH,CACL,CAAC;QACJ;YACE,OAAO,yBAAO,IAAI,GAAQ,CAAC;KAC9B;AACH,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -3,18 +3,20 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { useLink } from '../../hooks/useLink.js';
|
|
4
4
|
import { projectSettings } from '../../ProjectSettings.js';
|
|
5
5
|
import { useSWRResource } from '../../services/sitemap/useSWRResource.js';
|
|
6
|
+
import { joinPath } from '../../utils/url.js';
|
|
6
7
|
export const Sitemap = JSX(({ className = '', fallback }) => {
|
|
7
|
-
const link = useLink();
|
|
8
|
+
const link = useLink(true);
|
|
8
9
|
const sitemap = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
|
|
9
10
|
return (_jsx("div", { className: `flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${className}`, children: sitemap.topItems?.map((_, i) => renderColumn(link(_), i)) }));
|
|
10
11
|
});
|
|
11
12
|
const renderColumn = (menuItem, index) => {
|
|
12
13
|
const { text, items, href, target, onClick } = menuItem;
|
|
13
|
-
return (_jsxs("div", { className: "flex flex-col w-1/5 last:w-1/4 gap-3.5", children: [_jsx("a", { className: "block leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items?.map((_, i) => (_jsx(ColumnItem, { ..._, index: i }, String(i))))] }, String(index)));
|
|
14
|
+
return (_jsxs("div", { className: "flex flex-col w-1/5 last:w-1/4 gap-3.5", children: [_jsx("a", { className: "block leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items?.map((_, i) => (_jsx(ColumnItem, { ..._, basePath: href, index: i }, String(i))))] }, String(index)));
|
|
14
15
|
};
|
|
15
|
-
const ColumnItem = JSX(({ text, index, ...rest }) => {
|
|
16
|
-
const
|
|
16
|
+
const ColumnItem = JSX(({ text, index, basePath, ...rest }) => {
|
|
17
|
+
const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
|
|
18
|
+
const link = useLink(isAnotherPortal);
|
|
17
19
|
const { href, target, onClick } = link(rest);
|
|
18
|
-
return (_jsx("a", { className: "block text-l-light text-secondary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
|
|
20
|
+
return (_jsx("a", { className: "block text-l-light text-secondary-text hover:text-primary-main no-underline", href: isAnotherPortal ? joinPath(basePath, href) : href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
|
|
19
21
|
});
|
|
20
22
|
//# sourceMappingURL=Sitemap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../../src/components/Footer/Sitemap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../../src/components/Footer/Sitemap.ts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AAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,IAA1C,MAAM,CAAC,CAAC,CAAC,CAAqC,CAChE,CAAC,KAXM,MAAM,CAAC,KAAK,CAAC,CAYjB,CACP,CAAC;AACJ,CAAC,CAAC;AAOF,MAAM,UAAU,GAAG,GAAG,CAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7E,MAAM,eAAe,GACnB,eAAe,CAAC,SAAS,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAElG,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IACtC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAE7C,OAAO,CACL,YACE,SAAS,EAAC,6EAA6E,EACvF,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EACvD,MAAM,EAAE,MAAM,IAAI,OAAO,EACzB,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ListOrientation } from '../../model/ListOrientation';
|
|
1
2
|
export interface RadioButtonItem {
|
|
2
3
|
id: string;
|
|
3
4
|
text?: string;
|
|
@@ -6,6 +7,7 @@ interface RadioButtonGroupProps {
|
|
|
6
7
|
items?: RadioButtonItem[];
|
|
7
8
|
checkedItem?: string;
|
|
8
9
|
onChange?: (id: string) => void;
|
|
10
|
+
orientation?: ListOrientation;
|
|
9
11
|
}
|
|
10
12
|
export declare const RadioButtonGroup: import("@redneckz/uni-jsx").UNIComponent<RadioButtonGroupProps, any, any>;
|
|
11
13
|
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { Checkbox } from '../Checkbox/Checkbox.js';
|
|
4
|
-
|
|
4
|
+
const orientationStyleMap = {
|
|
5
|
+
horizontal: 'gap-10',
|
|
6
|
+
vertical: 'flex-col gap-3',
|
|
7
|
+
};
|
|
8
|
+
export const RadioButtonGroup = JSX(({ items, checkedItem, onChange: onChangeCheckedItem, orientation = 'horizontal' }) => (_jsx("div", { className: `flex ${orientationStyleMap[orientation]}`, children: items?.map(({ id, text }) => (_jsx(Checkbox, { isRadio: true, text: text, checked: checkedItem === id, onChange: () => onChangeCheckedItem && onChangeCheckedItem(id) }, String(id)))) })));
|
|
5
9
|
//# sourceMappingURL=RadioButtonGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButtonGroup.js","sourceRoot":"","sources":["../../../src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"RadioButtonGroup.js","sourceRoot":"","sources":["../../../src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAchD,MAAM,mBAAmB,GAAoC;IAC3D,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,gBAAgB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,mBAAmB,EAAE,WAAW,GAAG,YAAY,EAAE,EAAE,EAAE,CAAC,CACrF,cAAK,SAAS,EAAE,QAAQ,mBAAmB,CAAC,WAAW,CAAC,EAAE,YACvD,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5B,KAAC,QAAQ,IAEP,OAAO,QACP,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,KAAK,EAAE,EAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,mBAAmB,IAAI,mBAAmB,CAAC,EAAE,CAAC,IAJzD,MAAM,CAAC,EAAE,CAAC,CAKf,CACH,CAAC,GACE,CACP,CACF,CAAC"}
|
|
@@ -990,7 +990,7 @@
|
|
|
990
990
|
return (jsx("div", { className: `col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${className}`, children: href ? (jsxs("div", { className: "flex", children: [jsx("div", { className: "flex justify-center align-middle rounded-md bg-primary-main w-12 h-12", children: jsx(Logo, { className: "w-8", bgColor: "transparent", showTitle: true }) }), jsxs("a", { href: href, target: "_blank", className: "flex flex-col justify-center pl-3", children: [jsx("div", { className: "text-s font-medium mb-[3px]", children: title }), jsx("div", { className: "text-s text-secondary-text", children: description })] })] })) : null }));
|
|
991
991
|
});
|
|
992
992
|
|
|
993
|
-
const Contacts = JSX(({ className = '', items, hasButton }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContact) : null, hasButton ? (jsx(Button, { version: "primary", className: "mb-6 w-full", href: "/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
|
|
993
|
+
const Contacts = JSX(({ className = '', items, hasButton }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContact) : null, hasButton ? (jsx(Button, { version: "primary", className: "mb-6 w-full", href: "https://www.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
|
|
994
994
|
const renderContact = (item, index) => {
|
|
995
995
|
const { type, text, description } = item;
|
|
996
996
|
return (jsxs("div", { className: "mb-4", children: [jsx("div", { children: renderText(type, text) }), jsx("div", { className: "mt-1 text-s-light text-secondary-text", children: description })] }, String(index)));
|
|
@@ -1676,7 +1676,7 @@
|
|
|
1676
1676
|
return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
|
|
1677
1677
|
}
|
|
1678
1678
|
|
|
1679
|
-
const packageVersion = "0.8.
|
|
1679
|
+
const packageVersion = "0.8.21";
|
|
1680
1680
|
|
|
1681
1681
|
exports.Blocks = Blocks;
|
|
1682
1682
|
exports.ContentPage = ContentPage;
|