@redneckz/wildless-cms-uni-blocks 0.14.49 → 0.14.51
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/bin/migration-scripts/0.14.31.js +66 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +47 -58
- 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/bundle/model/JSXBlock.d.ts +2 -2
- package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/dist/components/Blocks.js +0 -4
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -4
- package/dist/components/Blocks.mobile.js.map +1 -1
- 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/ProductBlock/ProductBlock.js +1 -13
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- 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/model/JSXBlock.d.ts +2 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/dist/ui-kit/BaseTile/BaseTile.js +16 -5
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/lib/components/Blocks.js +0 -4
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- 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/ProductBlock/ProductBlock.fixture.d.ts +1 -0
- package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +2 -0
- package/lib/components/ProductBlock/ProductBlock.js +2 -14
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- 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/model/JSXBlock.d.ts +2 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/lib/ui-kit/BaseTile/BaseTile.js +16 -5
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +47 -58
- 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/bundle/model/JSXBlock.d.ts +2 -2
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- 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/ProductBlock/ProductBlock.js +1 -13
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- 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/model/JSXBlock.d.ts +2 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +16 -5
- package/mobile/dist/ui-kit/BaseTile/BaseTile.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/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- 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/ProductBlock/ProductBlock.js +2 -14
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- 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/model/JSXBlock.d.ts +2 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +16 -5
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/src/common.css +4 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
- package/mobile/src/components/Blocks.ts +0 -4
- 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/ProductBlock/ProductBlock.tsx +13 -32
- 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/model/JSXBlock.ts +2 -2
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +5 -1
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +48 -35
- package/package.json +1 -1
- package/src/common.css +4 -0
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -4
- 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/DepositFiltration/DepositFiltration.fixture.mobile.tsx +5 -5
- package/src/components/DepositFiltration/DepositFiltration.fixture.tsx +5 -5
- package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +15 -15
- package/src/components/LinkDocs/LinkDocs.tsx +3 -0
- package/src/components/LinkDocs/LinkDocsContent.ts +10 -5
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.mobile.tsx +8 -8
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.tsx +8 -8
- package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +41 -0
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +40 -0
- package/src/components/ProductBlock/ProductBlock.tsx +13 -32
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.mobile.tsx +9 -9
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +11 -11
- 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/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +3 -3
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +9 -10
- package/src/model/EmptyOptionType.ts +1 -3
- package/src/model/JSXBlock.ts +2 -2
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +5 -1
- package/src/ui-kit/BaseTile/BaseTile.tsx +48 -35
- package/bundle/components/ProductTile/ProductTile.d.ts +0 -5
- package/bundle/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/bundle/components/Tile/Tile.d.ts +0 -5
- package/bundle/components/Tile/TileContent.d.ts +0 -6
- package/dist/components/ProductTile/ProductTile.d.ts +0 -5
- package/dist/components/ProductTile/ProductTile.js +0 -9
- package/dist/components/ProductTile/ProductTile.js.map +0 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/dist/components/ProductTile/ProductTileContent.js +0 -2
- package/dist/components/ProductTile/ProductTileContent.js.map +0 -1
- package/dist/components/Tile/Tile.d.ts +0 -5
- package/dist/components/Tile/Tile.js +0 -8
- package/dist/components/Tile/Tile.js.map +0 -1
- package/dist/components/Tile/TileContent.d.ts +0 -6
- package/dist/components/Tile/TileContent.js +0 -2
- package/dist/components/Tile/TileContent.js.map +0 -1
- package/lib/components/ProductTile/ProductTile.d.ts +0 -5
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +0 -17
- package/lib/components/ProductTile/ProductTile.fixture.mobile.d.ts +0 -16
- package/lib/components/ProductTile/ProductTile.js +0 -7
- package/lib/components/ProductTile/ProductTile.js.map +0 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/lib/components/ProductTile/ProductTileContent.js +0 -2
- package/lib/components/ProductTile/ProductTileContent.js.map +0 -1
- package/lib/components/Tile/Tile.d.ts +0 -5
- package/lib/components/Tile/Tile.fixture.d.ts +0 -15
- package/lib/components/Tile/Tile.fixture.mobile.d.ts +0 -9
- package/lib/components/Tile/Tile.js +0 -6
- package/lib/components/Tile/Tile.js.map +0 -1
- package/lib/components/Tile/TileContent.d.ts +0 -6
- package/lib/components/Tile/TileContent.js +0 -2
- package/lib/components/Tile/TileContent.js.map +0 -1
- package/mobile/bundle/components/ProductTile/ProductTile.d.ts +0 -5
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/mobile/bundle/components/Tile/Tile.d.ts +0 -5
- package/mobile/bundle/components/Tile/TileContent.d.ts +0 -6
- package/mobile/dist/components/ProductTile/ProductTile.d.ts +0 -5
- package/mobile/dist/components/ProductTile/ProductTile.js +0 -9
- package/mobile/dist/components/ProductTile/ProductTile.js.map +0 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/mobile/dist/components/ProductTile/ProductTileContent.js +0 -2
- package/mobile/dist/components/ProductTile/ProductTileContent.js.map +0 -1
- package/mobile/dist/components/Tile/Tile.d.ts +0 -5
- package/mobile/dist/components/Tile/Tile.js +0 -8
- package/mobile/dist/components/Tile/Tile.js.map +0 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +0 -6
- package/mobile/dist/components/Tile/TileContent.js +0 -2
- package/mobile/dist/components/Tile/TileContent.js.map +0 -1
- package/mobile/lib/components/ProductTile/ProductTile.d.ts +0 -5
- package/mobile/lib/components/ProductTile/ProductTile.js +0 -7
- package/mobile/lib/components/ProductTile/ProductTile.js.map +0 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/mobile/lib/components/ProductTile/ProductTileContent.js +0 -2
- package/mobile/lib/components/ProductTile/ProductTileContent.js.map +0 -1
- package/mobile/lib/components/Tile/Tile.d.ts +0 -5
- package/mobile/lib/components/Tile/Tile.js +0 -6
- package/mobile/lib/components/Tile/Tile.js.map +0 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +0 -6
- package/mobile/lib/components/Tile/TileContent.js +0 -2
- package/mobile/lib/components/Tile/TileContent.js.map +0 -1
- package/mobile/src/components/ProductTile/ProductTile.example.json +0 -44
- package/mobile/src/components/ProductTile/ProductTile.tsx +0 -40
- package/mobile/src/components/ProductTile/ProductTile.ui.json +0 -17
- package/mobile/src/components/ProductTile/ProductTileContent.ts +0 -10
- package/mobile/src/components/Tile/Tile.example.json +0 -28
- package/mobile/src/components/Tile/Tile.tsx +0 -23
- package/mobile/src/components/Tile/Tile.ui.json +0 -17
- package/mobile/src/components/Tile/TileContent.ts +0 -7
- package/src/components/ProductTile/ProductTile.example.json +0 -44
- package/src/components/ProductTile/ProductTile.fixture.mobile.tsx +0 -217
- package/src/components/ProductTile/ProductTile.fixture.tsx +0 -227
- package/src/components/ProductTile/ProductTile.tsx +0 -40
- package/src/components/ProductTile/ProductTile.ui.json +0 -17
- package/src/components/ProductTile/ProductTileContent.ts +0 -10
- package/src/components/Tile/Tile.example.json +0 -28
- package/src/components/Tile/Tile.fixture.mobile.tsx +0 -48
- package/src/components/Tile/Tile.fixture.tsx +0 -146
- package/src/components/Tile/Tile.tsx +0 -23
- package/src/components/Tile/Tile.ui.json +0 -17
- package/src/components/Tile/TileContent.ts +0 -7
|
@@ -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) {
|
|
@@ -4,7 +4,7 @@ import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOpti
|
|
|
4
4
|
import { type Picture } from '../../model/Picture';
|
|
5
5
|
import { Blocks } from '../Blocks';
|
|
6
6
|
import { type LinkDocsContent } from '../LinkDocs/LinkDocsContent';
|
|
7
|
-
import {
|
|
7
|
+
import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
|
|
8
8
|
import { RICH_TEXT_SEPARATOR } from '../RichTextBlock/RichTextBlock.fixture';
|
|
9
9
|
import { type TextBlockContent } from '../TextBlock/TextBlockContent';
|
|
10
10
|
import { VerticalLayout } from './VerticalLayout';
|
|
@@ -50,8 +50,8 @@ export default {
|
|
|
50
50
|
block={{
|
|
51
51
|
type: 'VerticalLayout',
|
|
52
52
|
blocks: [
|
|
53
|
-
{ type: '
|
|
54
|
-
{ type: '
|
|
53
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
54
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
55
55
|
],
|
|
56
56
|
}}
|
|
57
57
|
options={options}
|
|
@@ -5,8 +5,8 @@ import { Headline } from '../Headline/Headline';
|
|
|
5
5
|
import { HorizontalLayout } from '../HorizontalLayout/HorizontalLayout';
|
|
6
6
|
import { type LinkDocsContent } from '../LinkDocs/LinkDocsContent';
|
|
7
7
|
import { ProductBlock } from '../ProductBlock/ProductBlock';
|
|
8
|
+
import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
|
|
8
9
|
import { type ProductBlockContent } from '../ProductBlock/ProductBlockContent';
|
|
9
|
-
import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
|
|
10
10
|
import { RICH_TEXT_SEPARATOR } from '../RichTextBlock/RichTextBlock.fixture';
|
|
11
11
|
import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture';
|
|
12
12
|
import { VerticalLayout } from './VerticalLayout';
|
|
@@ -78,8 +78,8 @@ export default {
|
|
|
78
78
|
block={{
|
|
79
79
|
type: 'VerticalLayout',
|
|
80
80
|
blocks: [
|
|
81
|
-
{ type: '
|
|
82
|
-
{ type: '
|
|
81
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
82
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
83
83
|
],
|
|
84
84
|
}}
|
|
85
85
|
options={options}
|
|
@@ -94,8 +94,8 @@ export default {
|
|
|
94
94
|
block={{
|
|
95
95
|
type: 'VerticalLayout',
|
|
96
96
|
blocks: [
|
|
97
|
-
{ type: '
|
|
98
|
-
{ type: '
|
|
97
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
98
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
99
99
|
],
|
|
100
100
|
}}
|
|
101
101
|
options={options}
|
|
@@ -111,8 +111,8 @@ export default {
|
|
|
111
111
|
block={{
|
|
112
112
|
type: 'VerticalLayout',
|
|
113
113
|
blocks: [
|
|
114
|
-
{ type: '
|
|
115
|
-
{ type: '
|
|
114
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
115
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
116
116
|
],
|
|
117
117
|
}}
|
|
118
118
|
options={options}
|
|
@@ -129,15 +129,14 @@ export default {
|
|
|
129
129
|
block={{
|
|
130
130
|
type: 'VerticalLayout',
|
|
131
131
|
blocks: [
|
|
132
|
-
{ type: '
|
|
133
|
-
{ type: '
|
|
132
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
133
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
134
134
|
],
|
|
135
135
|
}}
|
|
136
136
|
options={options}
|
|
137
137
|
/>
|
|
138
138
|
</div>
|
|
139
139
|
),
|
|
140
|
-
|
|
141
140
|
rollup: (
|
|
142
141
|
<div className="container grid grid-cols-12">
|
|
143
142
|
<VerticalLayout
|
package/src/model/JSXBlock.ts
CHANGED
|
@@ -9,9 +9,9 @@ import { type VNode } from './VNode';
|
|
|
9
9
|
/**
|
|
10
10
|
* @title Внутренний отступ
|
|
11
11
|
* @default ""
|
|
12
|
-
* @enumNames ["По умолчанию", "Большой", "Средний", "Маленький", "Оч. маленький", "Нулевой"]
|
|
12
|
+
* @enumNames ["По умолчанию", "Оч. Большой", "Большой", "Средний", "Маленький", "Оч. маленький", "Нулевой"]
|
|
13
13
|
*/
|
|
14
|
-
export type UniBlockPadding = '' | 'p-3xl' | 'p-xl' | 'p-m' | 'p-xs' | 'p-0';
|
|
14
|
+
export type UniBlockPadding = '' | 'p-6xl' | 'p-3xl' | 'p-xl' | 'p-m' | 'p-xs' | 'p-0';
|
|
15
15
|
|
|
16
16
|
export interface UniBlockContent {
|
|
17
17
|
version?: BlockVersion;
|
|
@@ -14,7 +14,9 @@ import { Tags } from '../Tags/Tags';
|
|
|
14
14
|
import { type TextAlign } from '../Text/TextProps';
|
|
15
15
|
import { type BaseProductTileContent } from './BaseProductTileContent';
|
|
16
16
|
|
|
17
|
-
interface BaseProductTileProps extends UniBlockProps, BaseProductTileContent {
|
|
17
|
+
interface BaseProductTileProps extends UniBlockProps, BaseProductTileContent {
|
|
18
|
+
backwardButton?: boolean;
|
|
19
|
+
}
|
|
18
20
|
|
|
19
21
|
export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
20
22
|
({
|
|
@@ -43,6 +45,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
43
45
|
isImageAlwaysOnRight,
|
|
44
46
|
isImageSecondary = false,
|
|
45
47
|
} = {},
|
|
48
|
+
backwardButton,
|
|
46
49
|
children,
|
|
47
50
|
}) => {
|
|
48
51
|
const img = image?.src ? <Img image={image} /> : null;
|
|
@@ -62,6 +65,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
62
65
|
imageAlign={imageAlign}
|
|
63
66
|
isImageAlwaysOnRight={isImageAlwaysOnRight}
|
|
64
67
|
buttons={renderButtonsSection(buttons)}
|
|
68
|
+
backwardButton={backwardButton}
|
|
65
69
|
>
|
|
66
70
|
<div className="flex flex-col sm:gap-xl gap-4xl">
|
|
67
71
|
{filteredBenefits?.length ? (
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { renderBackwardButton } from '../../components/ProductBlock/renderBackwardButton';
|
|
4
|
+
import { useRouter } from '../../hooks/useRouter';
|
|
2
5
|
import { type Align } from '../../model/Align';
|
|
3
6
|
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
4
7
|
import { type VNode } from '../../model/VNode';
|
|
5
8
|
import { style } from '../../utils/style';
|
|
9
|
+
import { type PreventableEvent } from '../PreventableEvent';
|
|
6
10
|
|
|
7
11
|
interface BaseTileProps extends UniBlockProps {
|
|
8
12
|
title?: VNode;
|
|
@@ -13,6 +17,7 @@ interface BaseTileProps extends UniBlockProps {
|
|
|
13
17
|
buttons?: VNode;
|
|
14
18
|
isImageAlwaysOnRight?: boolean;
|
|
15
19
|
isImageSecondary?: boolean;
|
|
20
|
+
backwardButton?: boolean;
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
const imageAlignmentMap: Record<Align, string> = {
|
|
@@ -24,6 +29,7 @@ const imageAlignmentMap: Record<Align, string> = {
|
|
|
24
29
|
export const BaseTile = JSX<BaseTileProps>(
|
|
25
30
|
({
|
|
26
31
|
className,
|
|
32
|
+
version = 'primary',
|
|
27
33
|
defaultPadding,
|
|
28
34
|
padding,
|
|
29
35
|
title = '',
|
|
@@ -34,55 +40,62 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
34
40
|
imageAlign,
|
|
35
41
|
isImageAlwaysOnRight = false,
|
|
36
42
|
isImageSecondary = false,
|
|
43
|
+
backwardButton,
|
|
37
44
|
children,
|
|
38
|
-
}) =>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
className={
|
|
49
|
-
'grow relative flex flex-col @xl:flex-row gap-3xl',
|
|
50
|
-
leftImage ? 'self-start' : '',
|
|
51
|
-
)}
|
|
52
|
-
>
|
|
53
|
-
{renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' })}
|
|
45
|
+
}) => {
|
|
46
|
+
const router = useRouter();
|
|
47
|
+
const handleClick = useCallback((ev?: PreventableEvent) => {
|
|
48
|
+
ev?.preventDefault();
|
|
49
|
+
router.back();
|
|
50
|
+
}, []);
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<div className={getStyle(padding, defaultPadding, className)}>
|
|
54
|
+
{backwardButton ? renderBackwardButton(version, handleClick) : null}
|
|
55
|
+
{title ? <div className="relative">{title}</div> : null}
|
|
54
56
|
<div
|
|
55
57
|
className={style(
|
|
56
|
-
'
|
|
57
|
-
|
|
58
|
-
leftImage ? '' : 'grow',
|
|
58
|
+
'grow relative flex flex-col @xl:flex-row gap-3xl',
|
|
59
|
+
leftImage ? 'self-start' : '',
|
|
59
60
|
)}
|
|
60
61
|
>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
{
|
|
62
|
+
{renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' })}
|
|
63
|
+
<div
|
|
64
|
+
className={style(
|
|
65
|
+
'grid gap-3xl',
|
|
66
|
+
rightImage ? '@xl:grid-cols-2' : '',
|
|
67
|
+
leftImage ? '' : 'grow',
|
|
68
|
+
)}
|
|
69
|
+
>
|
|
70
|
+
<div className="grow space-y-lg min-w-fit">
|
|
71
|
+
{insetTitle}
|
|
72
|
+
{children}
|
|
73
|
+
</div>
|
|
74
|
+
{renderImageContainer(rightImage, {
|
|
75
|
+
className: style(
|
|
76
|
+
'@xl:justify-self-end @xl:col-start-2',
|
|
77
|
+
buttons ? rowSpanStyle(isImageAlwaysOnRight) : '',
|
|
78
|
+
positionStyle(isImageAlwaysOnRight),
|
|
79
|
+
imageSecondaryStyle(isImageSecondary),
|
|
80
|
+
),
|
|
81
|
+
imageAlign,
|
|
82
|
+
})}
|
|
83
|
+
{renderButtons(buttons)}
|
|
64
84
|
</div>
|
|
65
|
-
{renderImageContainer(rightImage, {
|
|
66
|
-
className: style(
|
|
67
|
-
'@xl:justify-self-end @xl:col-start-2',
|
|
68
|
-
buttons ? rowSpanStyle(isImageAlwaysOnRight) : '',
|
|
69
|
-
positionStyle(isImageAlwaysOnRight),
|
|
70
|
-
imageSecondaryStyle(isImageSecondary),
|
|
71
|
-
),
|
|
72
|
-
imageAlign,
|
|
73
|
-
})}
|
|
74
|
-
{renderButtons(buttons)}
|
|
75
85
|
</div>
|
|
76
86
|
</div>
|
|
77
|
-
|
|
78
|
-
|
|
87
|
+
);
|
|
88
|
+
},
|
|
79
89
|
);
|
|
80
90
|
|
|
91
|
+
const getStyle = (padding = '', defaultPadding = '', className = '') =>
|
|
92
|
+
style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className);
|
|
93
|
+
|
|
81
94
|
const rowSpanStyle = (isImageAlwaysOnRight: boolean) =>
|
|
82
95
|
isImageAlwaysOnRight ? 'row-span-2' : '@xl:row-span-2';
|
|
83
96
|
|
|
84
97
|
const positionStyle = (isImageAlwaysOnRight: boolean) =>
|
|
85
|
-
isImageAlwaysOnRight ? '
|
|
98
|
+
isImageAlwaysOnRight ? 'col-start-2 self-center' : '';
|
|
86
99
|
|
|
87
100
|
const renderButtons = (buttons: VNode) =>
|
|
88
101
|
buttons ? <div className="self-end">{buttons}</div> : null;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type ProductTileContent } from './ProductTileContent';
|
|
3
|
-
export interface ProductTileProps extends ProductTileContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const ProductTile: import("@redneckz/uni-jsx").UNIComponent<ProductTileProps, any, any>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type AdditionalDescriptionProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
|
|
4
|
-
/**
|
|
5
|
-
* @title Продуктовая плитка
|
|
6
|
-
*/
|
|
7
|
-
export declare type ProductTileContent = UniBlockContent & BaseProductTileContent & AdditionalDescriptionProps;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type TileContent } from './TileContent';
|
|
3
|
-
export interface TileProps extends TileContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const Tile: import("@redneckz/uni-jsx").UNIComponent<TileProps, any, any>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type ProductTileContent } from './ProductTileContent';
|
|
3
|
-
export interface ProductTileProps extends ProductTileContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const ProductTile: import("@redneckz/uni-jsx").UNIComponent<ProductTileProps, any, any>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.ProductTile = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const BaseProductTile_1 = require("../../ui-kit/BaseProductTile/BaseProductTile");
|
|
6
|
-
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
|
-
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
8
|
-
exports.ProductTile = (0, uni_jsx_1.JSX)(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, isFullWidthTitle = true, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: className, padding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(BaseProductTile_1.BaseProductTile, { className: "h-full", defaultPadding: "p-4xl sm:p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isImageSecondary: true, ...imageOptions }, isFullWidthTitle: isFullWidthTitle, ...rest, children: additionalDescription ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
|
|
9
|
-
//# sourceMappingURL=ProductTile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,kFAA+E;AAC/E,4DAAyD;AACzD,gEAA6D;AAKhD,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,EACT,OAAO,EACP,eAAe,GAAG,GAAG,EACrB,iBAAiB,GAAG,IAAI,EACxB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,GAAG,IAAI,EACvB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,uBAAC,iCAAe,IACd,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,eAAe,EAC9B,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,EACzD,gBAAgB,EAAE,gBAAgB,KAC9B,IAAI,YAEP,qBAAqB,CAAC,CAAC,CAAC,CACvB,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,wCAAwC,YACtF,qBAAqB,GACZ,CACb,CAAC,CAAC,CAAC,IAAI,GACQ,GACL,CAChB,CACF,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type AdditionalDescriptionProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
|
|
4
|
-
/**
|
|
5
|
-
* @title Продуктовая плитка
|
|
6
|
-
*/
|
|
7
|
-
export declare type ProductTileContent = UniBlockContent & BaseProductTileContent & AdditionalDescriptionProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTileContent.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTileContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type TileContent } from './TileContent';
|
|
3
|
-
export interface TileProps extends TileContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const Tile: import("@redneckz/uni-jsx").UNIComponent<TileProps, any, any>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.Tile = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const BaseProductTile_1 = require("../../ui-kit/BaseProductTile/BaseProductTile");
|
|
6
|
-
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
|
-
exports.Tile = (0, uni_jsx_1.JSX)(({ className, padding, headlineVersion = 'S', listItemSize = 'M', ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: className, padding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(BaseProductTile_1.BaseProductTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, headlineVersion: headlineVersion, listItemSize: listItemSize, isFullWidthTitle: false, ...rest }) })));
|
|
8
|
-
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,kFAA+E;AAC/E,4DAAyD;AAK5C,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,GAAG,EAAE,YAAY,GAAG,GAAG,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC9E,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,uBAAC,iCAAe,IACd,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,MAAM,EACrB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,KAAK,KACnB,IAAI,GACR,GACW,CAChB,CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TileContent.js","sourceRoot":"","sources":["../../../src/components/Tile/TileContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type ProductTileContent } from './ProductTileContent';
|
|
3
|
-
export interface ProductTileProps extends ProductTileContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const ProductTile: import("@redneckz/uni-jsx").UNIComponent<ProductTileProps, any, any>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import '../../setup-fixture';
|
|
3
|
-
import { type ProductTileContent } from './ProductTileContent';
|
|
4
|
-
export declare const PRODUCT_TILE: ProductTileContent;
|
|
5
|
-
export declare const PRODUCT_PENSION_TILE: ProductTileContent;
|
|
6
|
-
declare const _default: {
|
|
7
|
-
default: JSX.Element;
|
|
8
|
-
secondary: JSX.Element;
|
|
9
|
-
pension: JSX.Element;
|
|
10
|
-
'long-title-benefits-without-image': JSX.Element;
|
|
11
|
-
'credit-card': JSX.Element;
|
|
12
|
-
'pension-credit': JSX.Element;
|
|
13
|
-
'with-add-desc': JSX.Element;
|
|
14
|
-
'stretching with long description': JSX.Element;
|
|
15
|
-
'credit-card-reverse': JSX.Element;
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import '../../setup-fixture';
|
|
3
|
-
import { type ProductTileContent } from './ProductTileContent';
|
|
4
|
-
export declare const PRODUCT_TILE: ProductTileContent;
|
|
5
|
-
export declare const PRODUCT_PENSION_TILE: ProductTileContent;
|
|
6
|
-
declare const _default: {
|
|
7
|
-
default: JSX.Element;
|
|
8
|
-
secondary: JSX.Element;
|
|
9
|
-
pension: JSX.Element;
|
|
10
|
-
'long-title-benefits-without-image': JSX.Element;
|
|
11
|
-
'credit-card': JSX.Element;
|
|
12
|
-
'pension-credit': JSX.Element;
|
|
13
|
-
'with-add-desc': JSX.Element;
|
|
14
|
-
'stretching with long description': JSX.Element;
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile.js';
|
|
4
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
5
|
-
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
|
|
6
|
-
export const ProductTile = JSX(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, isFullWidthTitle = true, ...rest }) => (_jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: _jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-4xl sm:p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isImageSecondary: true, ...imageOptions }, isFullWidthTitle: isFullWidthTitle, ...rest, children: additionalDescription ? (_jsx(Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
|
|
7
|
-
//# sourceMappingURL=ProductTile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAK7D,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EACC,SAAS,EACT,OAAO,EACP,eAAe,GAAG,GAAG,EACrB,iBAAiB,GAAG,IAAI,EACxB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,GAAG,IAAI,EACvB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,KAAC,eAAe,IACd,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,eAAe,EAC9B,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,EACzD,gBAAgB,EAAE,gBAAgB,KAC9B,IAAI,YAEP,qBAAqB,CAAC,CAAC,CAAC,CACvB,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,wCAAwC,YACtF,qBAAqB,GACZ,CACb,CAAC,CAAC,CAAC,IAAI,GACQ,GACL,CAChB,CACF,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type AdditionalDescriptionProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
|
|
4
|
-
/**
|
|
5
|
-
* @title Продуктовая плитка
|
|
6
|
-
*/
|
|
7
|
-
export declare type ProductTileContent = UniBlockContent & BaseProductTileContent & AdditionalDescriptionProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTileContent.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTileContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type TileContent } from './TileContent';
|
|
3
|
-
export interface TileProps extends TileContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const Tile: import("@redneckz/uni-jsx").UNIComponent<TileProps, any, any>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import '../../setup-fixture';
|
|
3
|
-
import { type TileContent } from './TileContent';
|
|
4
|
-
export declare const TILE: TileContent;
|
|
5
|
-
export declare const TILE_PREMIUM: TileContent;
|
|
6
|
-
declare const _default: {
|
|
7
|
-
default: JSX.Element;
|
|
8
|
-
mortgage: JSX.Element;
|
|
9
|
-
'credit-card': JSX.Element;
|
|
10
|
-
premium: JSX.Element;
|
|
11
|
-
ecosystem: JSX.Element;
|
|
12
|
-
tags: JSX.Element;
|
|
13
|
-
'direction left': JSX.Element;
|
|
14
|
-
};
|
|
15
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import '../../setup-fixture';
|
|
3
|
-
import { type TileContent } from './TileContent';
|
|
4
|
-
export declare const TILE: TileContent;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
default: JSX.Element;
|
|
7
|
-
rightImage: JSX.Element;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile.js';
|
|
4
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
5
|
-
export const Tile = JSX(({ className, padding, headlineVersion = 'S', listItemSize = 'M', ...rest }) => (_jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: _jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, headlineVersion: headlineVersion, listItemSize: listItemSize, isFullWidthTitle: false, ...rest }) })));
|
|
6
|
-
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKzD,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,GAAG,EAAE,YAAY,GAAG,GAAG,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC9E,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,KAAC,eAAe,IACd,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,MAAM,EACrB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,KAAK,KACnB,IAAI,GACR,GACW,CAChB,CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TileContent.js","sourceRoot":"","sources":["../../../src/components/Tile/TileContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type ProductTileContent } from './ProductTileContent';
|
|
3
|
-
export interface ProductTileProps extends ProductTileContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const ProductTile: import("@redneckz/uni-jsx").UNIComponent<ProductTileProps, any, any>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type AdditionalDescriptionProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
|
|
4
|
-
/**
|
|
5
|
-
* @title Продуктовая плитка
|
|
6
|
-
*/
|
|
7
|
-
export declare type ProductTileContent = UniBlockContent & BaseProductTileContent & AdditionalDescriptionProps;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type TileContent } from './TileContent';
|
|
3
|
-
export interface TileProps extends TileContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const Tile: import("@redneckz/uni-jsx").UNIComponent<TileProps, any, any>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type ProductTileContent } from './ProductTileContent';
|
|
3
|
-
export interface ProductTileProps extends ProductTileContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const ProductTile: import("@redneckz/uni-jsx").UNIComponent<ProductTileProps, any, any>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.ProductTile = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const BaseProductTile_1 = require("../../ui-kit/BaseProductTile/BaseProductTile");
|
|
6
|
-
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
|
-
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
8
|
-
exports.ProductTile = (0, uni_jsx_1.JSX)(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, isFullWidthTitle = true, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: className, padding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(BaseProductTile_1.BaseProductTile, { className: "h-full", defaultPadding: "p-4xl sm:p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isImageSecondary: true, ...imageOptions }, isFullWidthTitle: isFullWidthTitle, ...rest, children: additionalDescription ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
|
|
9
|
-
//# sourceMappingURL=ProductTile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,kFAA+E;AAC/E,4DAAyD;AACzD,gEAA6D;AAKhD,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,EACT,OAAO,EACP,eAAe,GAAG,GAAG,EACrB,iBAAiB,GAAG,IAAI,EACxB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,GAAG,IAAI,EACvB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,uBAAC,iCAAe,IACd,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,eAAe,EAC9B,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,EACzD,gBAAgB,EAAE,gBAAgB,KAC9B,IAAI,YAEP,qBAAqB,CAAC,CAAC,CAAC,CACvB,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,wCAAwC,YACtF,qBAAqB,GACZ,CACb,CAAC,CAAC,CAAC,IAAI,GACQ,GACL,CAChB,CACF,CAAC"}
|