@redneckz/wildless-cms-uni-blocks 0.14.998 → 0.14.999
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +7 -7
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
- package/bundle/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
- package/bundle/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
- package/dist/components/CalculatorRko/CalculatorRko.js +2 -2
- package/dist/components/CalculatorRko/CalculatorRko.js.map +1 -1
- package/dist/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
- package/dist/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
- package/dist/components/RkoTariffCardsTable/RkoTariffCard.js +2 -2
- package/dist/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
- package/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js +2 -2
- package/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/dist/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
- package/lib/components/CalculatorRko/CalculatorRko.js +2 -2
- package/lib/components/CalculatorRko/CalculatorRko.js.map +1 -1
- package/lib/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
- package/lib/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
- package/lib/components/RkoTariffCardsTable/RkoTariffCard.js +2 -2
- package/lib/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
- package/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js +2 -2
- package/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/lib/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
- package/mobile/bundle/bundle.umd.js +7 -7
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
- package/mobile/bundle/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
- package/mobile/bundle/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
- package/mobile/dist/components/CalculatorRko/CalculatorRko.js +2 -2
- package/mobile/dist/components/CalculatorRko/CalculatorRko.js.map +1 -1
- package/mobile/dist/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCard.js +2 -2
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js +2 -2
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
- package/mobile/lib/components/CalculatorRko/CalculatorRko.js +2 -2
- package/mobile/lib/components/CalculatorRko/CalculatorRko.js.map +1 -1
- package/mobile/lib/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCard.js +2 -2
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js +2 -2
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
- package/mobile/src/components/CalculatorRko/CalculatorRko.tsx +14 -2
- package/mobile/src/components/CalculatorRko/CalculatorRkoContent.ts +2 -0
- package/mobile/src/components/RkoTariffCardsTable/RkoTariffCard.tsx +3 -3
- package/mobile/src/components/RkoTariffCardsTable/RkoTariffCardsTable.tsx +6 -2
- package/mobile/src/components/RkoTariffCardsTable/RkoTariffCardsTableContent.ts +1 -2
- package/package.json +1 -1
- package/src/components/CalculatorRko/CalculatorRko.fixture.tsx +1 -0
- package/src/components/CalculatorRko/CalculatorRko.tsx +14 -2
- package/src/components/CalculatorRko/CalculatorRkoContent.ts +2 -0
- package/src/components/RkoTariffCardsTable/RkoTariffCard.tsx +3 -3
- package/src/components/RkoTariffCardsTable/RkoTariffCardsTable.fixture.mobile.tsx +0 -11
- package/src/components/RkoTariffCardsTable/RkoTariffCardsTable.fixture.tsx +0 -11
- package/src/components/RkoTariffCardsTable/RkoTariffCardsTable.tsx +6 -2
- package/src/components/RkoTariffCardsTable/RkoTariffCardsTableContent.ts +1 -2
- package/src/icons/IconName.ts +4 -4
package/bundle/bundle.umd.js
CHANGED
|
@@ -9252,7 +9252,7 @@
|
|
|
9252
9252
|
return isBest ? (jsx("div", { className: "absolute block rounded-xl min-h-xs flex justify-center align-center bg-orange py-1 px-2 lg:ml-xl top-[-10px]", children: jsx(Text, { size: "text-xs", children: "\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C" }) })) : null;
|
|
9253
9253
|
};
|
|
9254
9254
|
|
|
9255
|
-
const RkoTariffCard = JSX(({ tariffName, tariffDesc, className, transferLegalCountCommission, flTransferSumCommission, cashInSumCommission, accountServiceFee, cashOutSumCommission, totalCommission, currency, isBest = false, commissionTypes, }) => {
|
|
9255
|
+
const RkoTariffCard = JSX(({ tariffName, tariffDesc, className, transferLegalCountCommission, flTransferSumCommission, cashInSumCommission, accountServiceFee, cashOutSumCommission, totalCommission, currency, isBest = false, commissionTypes, openDepositBtnLink, }) => {
|
|
9256
9256
|
const [isUnfolded, { toggle }] = useBool(false);
|
|
9257
9257
|
const tariffData = {
|
|
9258
9258
|
accountServiceFee,
|
|
@@ -9276,10 +9276,10 @@
|
|
|
9276
9276
|
commissionTypes,
|
|
9277
9277
|
isBest,
|
|
9278
9278
|
})
|
|
9279
|
-
: renderDesktopCard(commissions, currency), jsx("div", { className: "flex flex-wrap @xl:flex-nowrap gap-lg sm:gap-m w-full @lg:w-auto col-span-2", children: jsx(LinkButton, { version: isBest ? 'secondary' : 'primary', className: style('basis-full @lg:basis-auto w-full'), text: "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0441\u0447\u0451\u0442", href:
|
|
9279
|
+
: renderDesktopCard(commissions, currency), jsx("div", { className: "flex flex-wrap @xl:flex-nowrap gap-lg sm:gap-m w-full @lg:w-auto col-span-2", children: jsx(LinkButton, { version: isBest ? 'secondary' : 'primary', className: style('basis-full @lg:basis-auto w-full'), text: "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0441\u0447\u0451\u0442", href: openDepositBtnLink, onClick: handleOpenDepositClick }) }), renderRecommendedLabel(isBest)] }));
|
|
9280
9280
|
});
|
|
9281
9281
|
|
|
9282
|
-
const RkoTariffCardsTable = JSX(({ items = [], currency = RKO_DEFAULT_CURRENCY,
|
|
9282
|
+
const RkoTariffCardsTable = JSX(({ items = [], currency = RKO_DEFAULT_CURRENCY, openDepositBtnLink = '', }) => {
|
|
9283
9283
|
const isMobileMode = useMobileMode();
|
|
9284
9284
|
const commissionTypes = getSortedCommissionTypes(items) ?? [];
|
|
9285
9285
|
const columnsCount = commissionTypes.length + 4; // 2 на "Название тарифа" и 2 на кнопку
|
|
@@ -9289,7 +9289,7 @@
|
|
|
9289
9289
|
: renderRkoTariffsTableHeader({
|
|
9290
9290
|
params: commissionTypes,
|
|
9291
9291
|
className: tableLayoutStyle,
|
|
9292
|
-
}), items.map((item, index) => (jsx("div", { children: jsx(RkoTariffCard, { ...item, className: tableLayoutStyle, currency: currency,
|
|
9292
|
+
}), items.map((item, index) => (jsx("div", { children: jsx(RkoTariffCard, { ...item, className: tableLayoutStyle, currency: currency, openDepositBtnLink: openDepositBtnLink, commissionTypes: commissionTypes }) }, index)))] }));
|
|
9293
9293
|
});
|
|
9294
9294
|
|
|
9295
9295
|
const filterByClientType = (data, clientType) => {
|
|
@@ -9487,7 +9487,7 @@
|
|
|
9487
9487
|
|
|
9488
9488
|
const CalculatorRko = UniBlock(
|
|
9489
9489
|
// eslint-disable-next-line max-lines-per-function
|
|
9490
|
-
({ className = '', title, calcSource, footnote, clientType = 'standard', ...rest }) => {
|
|
9490
|
+
({ className = '', title, calcSource, footnote, clientType = 'standard', openDepositBtnLink, ...rest }) => {
|
|
9491
9491
|
const [tariffs, setTariffs] = useState([]);
|
|
9492
9492
|
const [userInputParams, { field }] = useForm({
|
|
9493
9493
|
transferLegalCount: RKO_DEFAULT_TRANSFER_LEGAL_COUNT,
|
|
@@ -9532,7 +9532,7 @@
|
|
|
9532
9532
|
max: calcParams[`max${capitalize(config.key)}`],
|
|
9533
9533
|
...field(config.key),
|
|
9534
9534
|
value: calcParams[config.key],
|
|
9535
|
-
}) }, index)))] }), jsx("div", { className: style(CalculatorStyle.result), children: renderFootnote(footnote) })] }) }), jsxs(BlockWrapper, { className: style('flex flex-col gap-4xl items-center', className), defaultPadding: "p-4xl pt-0", ...rest, children: [renderHeading$1(), tariffs ? (jsx(RkoTariffCardsTable, { items: tariffs, currency: RKO_DEFAULT_CURRENCY })) : (jsx(Loader, { position: "static" }))] })] }));
|
|
9535
|
+
}) }, index)))] }), jsx("div", { className: style(CalculatorStyle.result), children: renderFootnote(footnote) })] }) }), jsxs(BlockWrapper, { className: style('flex flex-col gap-4xl items-center', className), defaultPadding: "p-4xl pt-0", ...rest, children: [renderHeading$1(), tariffs ? (jsx(RkoTariffCardsTable, { items: tariffs, currency: RKO_DEFAULT_CURRENCY, openDepositBtnLink: openDepositBtnLink })) : (jsx(Loader, { position: "static" }))] })] }));
|
|
9536
9536
|
});
|
|
9537
9537
|
const renderHeading$1 = () => (jsx(Text, { size: "text-h6", font: "font-medium", align: "text-center", className: "block lg:mb-0 mb-m", children: "\u0420\u0430\u0441\u0447\u0435\u0442\u044B \u0437\u0430 \u043E\u0434\u0438\u043D \u043C\u0435\u0441\u044F\u0446 \u043F\u043E \u0432\u0432\u0435\u0434\u0435\u043D\u043D\u044B\u043C \u0432\u044B\u0448\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C" }));
|
|
9538
9538
|
|
|
@@ -14138,7 +14138,7 @@
|
|
|
14138
14138
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14139
14139
|
});
|
|
14140
14140
|
|
|
14141
|
-
const packageVersion = "0.14.
|
|
14141
|
+
const packageVersion = "0.14.998";
|
|
14142
14142
|
|
|
14143
14143
|
exports.Blocks = Blocks;
|
|
14144
14144
|
exports.ContentPage = ContentPage;
|