@redneckz/wildless-cms-uni-blocks 0.14.50 → 0.14.52
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 +23 -27
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/bundle/components/Bonus/BonusContent.d.ts +7 -3
- package/bundle/components/Calculator/CalculatorContent.d.ts +14 -5
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/bundle/model/EmptyOptionType.d.ts +1 -3
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/dist/components/Bonus/Bonus.js +1 -1
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Bonus/BonusContent.d.ts +7 -3
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +14 -5
- package/dist/components/LinkDocs/LinkDocs.js +3 -0
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/dist/components/TariffsTable/TariffsTableCell.js +1 -8
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/dist/components/TariffsTable/TariffsTableRenderCell.js +14 -14
- package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/dist/model/EmptyOptionType.d.ts +1 -3
- package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/lib/components/Bonus/Bonus.js +1 -1
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Bonus/BonusContent.d.ts +7 -3
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +14 -5
- package/lib/components/LinkDocs/LinkDocs.js +3 -0
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/lib/components/TariffsTable/TariffsTableCell.js +2 -9
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -1
- package/lib/components/TariffsTable/TariffsTableRenderCell.js +13 -12
- package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/lib/model/EmptyOptionType.d.ts +1 -3
- package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +23 -27
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/mobile/bundle/components/Bonus/BonusContent.d.ts +7 -3
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +14 -5
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/mobile/bundle/model/EmptyOptionType.d.ts +1 -3
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/mobile/dist/components/Bonus/Bonus.js +1 -1
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Bonus/BonusContent.d.ts +7 -3
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -5
- package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -0
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -8
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +14 -14
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/mobile/dist/model/EmptyOptionType.d.ts +1 -3
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/mobile/lib/components/Bonus/Bonus.js +1 -1
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Bonus/BonusContent.d.ts +7 -3
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -5
- package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -0
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -9
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +13 -12
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/mobile/lib/model/EmptyOptionType.d.ts +1 -3
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
- package/mobile/src/components/Bonus/Bonus.tsx +1 -1
- package/mobile/src/components/Bonus/BonusContent.ts +8 -3
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -1
- package/mobile/src/components/Calculator/CalculatorContent.ts +16 -5
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +3 -0
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +10 -5
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +14 -11
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +8 -3
- package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +22 -18
- package/mobile/src/model/EmptyOptionType.ts +1 -3
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
- package/package.json +1 -1
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
- package/src/components/Bonus/Bonus.tsx +1 -1
- package/src/components/Bonus/BonusContent.ts +8 -3
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -1
- package/src/components/Calculator/CalculatorContent.ts +16 -5
- package/src/components/LinkDocs/LinkDocs.tsx +3 -0
- package/src/components/LinkDocs/LinkDocsContent.ts +10 -5
- package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
- package/src/components/TariffsTable/TariffsTableCell.tsx +14 -11
- package/src/components/TariffsTable/TariffsTableContent.ts +8 -3
- package/src/components/TariffsTable/TariffsTableRenderCell.tsx +22 -18
- package/src/model/EmptyOptionType.ts +1 -3
- package/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
- package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
1
2
|
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
3
|
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
3
4
|
import { EmbeddableCellData } from './EmbeddableCellData';
|
|
@@ -22,16 +23,22 @@ interface CellProps {
|
|
|
22
23
|
displayTable: (props: TariffsTableInnerContent) => void;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
export
|
|
26
|
+
export interface RenderCellInnerProps extends TariffTableCellInnerProps {
|
|
27
|
+
cell: CellDef;
|
|
28
|
+
fieldIdx: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const RenderCellInner = JSX<RenderCellInnerProps>(
|
|
26
32
|
({
|
|
33
|
+
cell,
|
|
34
|
+
fieldIdx,
|
|
27
35
|
rowIdx,
|
|
28
36
|
cellIdx,
|
|
29
37
|
setTableInner,
|
|
30
38
|
tableInner,
|
|
31
39
|
openTableInnerIdx,
|
|
32
40
|
setOpenTableInnerIdx,
|
|
33
|
-
}
|
|
34
|
-
(cell: CellDef, i: number) => {
|
|
41
|
+
}) => {
|
|
35
42
|
const [isVisible, setVisibility] = useState(true);
|
|
36
43
|
|
|
37
44
|
useEffect(() => {
|
|
@@ -46,21 +53,18 @@ export const renderCellInner =
|
|
|
46
53
|
setTableInner(props);
|
|
47
54
|
};
|
|
48
55
|
|
|
49
|
-
return (
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
</div>
|
|
62
|
-
);
|
|
63
|
-
};
|
|
56
|
+
return renderCell({
|
|
57
|
+
cell,
|
|
58
|
+
cellProps: {
|
|
59
|
+
rowIdx,
|
|
60
|
+
cellIdx,
|
|
61
|
+
fieldIdx,
|
|
62
|
+
displayTable,
|
|
63
|
+
isVisible,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
);
|
|
64
68
|
|
|
65
69
|
const renderCell = ({ cell, cellProps }: RenderCellProps) => {
|
|
66
70
|
if (!cell) {
|
|
@@ -55,8 +55,8 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
55
55
|
{title ? <div className="relative">{title}</div> : null}
|
|
56
56
|
<div
|
|
57
57
|
className={style(
|
|
58
|
-
'grow relative flex flex-col @xl:flex-row gap-3xl',
|
|
59
|
-
leftImage ? 'self-start' : '',
|
|
58
|
+
'grow relative flex flex-col @xl:flex-row gap-3xl w-full',
|
|
59
|
+
leftImage ? 'self-start @xl:w-auto' : '',
|
|
60
60
|
)}
|
|
61
61
|
>
|
|
62
62
|
{renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' })}
|
|
@@ -39,7 +39,7 @@ const renderButton =
|
|
|
39
39
|
return text || icon?.icon ? (
|
|
40
40
|
<Button
|
|
41
41
|
key={index ? String(index) : ''}
|
|
42
|
-
className={style('basis-full lg:basis-auto', buttonClassName)}
|
|
42
|
+
className={style('basis-full @lg:basis-auto', buttonClassName)}
|
|
43
43
|
appendLeft={renderButtonIcon({ ...icon, iconVersion })}
|
|
44
44
|
appendRight={renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion })}
|
|
45
45
|
version={version}
|