@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
|
@@ -3,7 +3,7 @@ import '../../setup-fixture';
|
|
|
3
3
|
import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
4
4
|
import { Blocks } from '../Blocks';
|
|
5
5
|
import { type LinkDocsContent } from '../LinkDocs/LinkDocsContent';
|
|
6
|
-
import {
|
|
6
|
+
import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
|
|
7
7
|
import { HorizontalLayout } from './HorizontalLayout';
|
|
8
8
|
|
|
9
9
|
export const linkDocsExample: LinkDocsContent = {
|
|
@@ -27,8 +27,8 @@ export default {
|
|
|
27
27
|
block={{
|
|
28
28
|
type: 'HorizontalLayout',
|
|
29
29
|
blocks: [
|
|
30
|
-
{ type: '
|
|
31
|
-
{ type: '
|
|
30
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
|
|
31
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
|
|
32
32
|
],
|
|
33
33
|
}}
|
|
34
34
|
options={options}
|
|
@@ -43,8 +43,8 @@ export default {
|
|
|
43
43
|
block={{
|
|
44
44
|
type: 'HorizontalLayout',
|
|
45
45
|
blocks: [
|
|
46
|
-
{ type: '
|
|
47
|
-
{ type: '
|
|
46
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
|
|
47
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
|
|
48
48
|
],
|
|
49
49
|
}}
|
|
50
50
|
options={options}
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
className="col-span-12"
|
|
59
59
|
block={{
|
|
60
60
|
type: 'HorizontalLayout',
|
|
61
|
-
blocks: [{ type: '
|
|
61
|
+
blocks: [{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE }],
|
|
62
62
|
}}
|
|
63
63
|
options={options}
|
|
64
64
|
/>
|
|
@@ -71,9 +71,9 @@ export default {
|
|
|
71
71
|
block={{
|
|
72
72
|
type: 'HorizontalLayout',
|
|
73
73
|
blocks: [
|
|
74
|
-
{ type: '
|
|
75
|
-
{ type: '
|
|
76
|
-
{ type: '
|
|
74
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-4'] },
|
|
75
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-4'] },
|
|
76
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-4'] },
|
|
77
77
|
],
|
|
78
78
|
}}
|
|
79
79
|
options={options}
|
|
@@ -90,12 +90,12 @@ export default {
|
|
|
90
90
|
block={{
|
|
91
91
|
type: 'HorizontalLayout',
|
|
92
92
|
blocks: [
|
|
93
|
-
{ type: '
|
|
94
|
-
{ type: '
|
|
95
|
-
{ type: '
|
|
96
|
-
{ type: '
|
|
97
|
-
{ type: '
|
|
98
|
-
{ type: '
|
|
93
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
|
|
94
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
|
|
95
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
|
|
96
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
|
|
97
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
|
|
98
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
|
|
99
99
|
],
|
|
100
100
|
}}
|
|
101
101
|
options={options}
|
|
@@ -61,6 +61,9 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
61
61
|
|
|
62
62
|
const renderLinkDocItem =
|
|
63
63
|
(router: Router, icon: Picture) => (docBlockDef: DocBlockDef, i: number) => {
|
|
64
|
+
if (docBlockDef?.docType === '') {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
64
67
|
const href =
|
|
65
68
|
docBlockDef?.docType === 'Attachment'
|
|
66
69
|
? adjustHref(router)(docBlockDef?.attachment?.src)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type Attachment } from '../../model/Attachment';
|
|
2
|
-
import { type EmptyOption } from '../../model/EmptyOptionType';
|
|
3
2
|
import { type AlignProps, type HeadlineCommonProps } from '../../model/HeadlineType';
|
|
4
3
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
5
4
|
import { type LinkProps, type Target } from '../../model/LinkProps';
|
|
@@ -32,25 +31,31 @@ export interface AttachmentDoc {
|
|
|
32
31
|
|
|
33
32
|
/**
|
|
34
33
|
* @title Ссылка на документ
|
|
35
|
-
* @default {"docType": "Link"}
|
|
36
34
|
*/
|
|
37
35
|
export type LinkDocDef = LinkDoc & {
|
|
36
|
+
/** @default "Link" */
|
|
38
37
|
docType: 'Link';
|
|
39
38
|
};
|
|
40
39
|
|
|
41
40
|
/**
|
|
42
41
|
* @title Файл
|
|
43
|
-
* @default {"docType": "Attachment"}
|
|
44
42
|
*/
|
|
45
43
|
export type AttachmentDocDef = AttachmentDoc & {
|
|
44
|
+
/** @default "Attachment" */
|
|
46
45
|
docType: 'Attachment';
|
|
47
46
|
};
|
|
48
47
|
|
|
48
|
+
/** @title Не выбрано * */
|
|
49
|
+
export type EmptyDocType = {
|
|
50
|
+
/** @default "" */
|
|
51
|
+
docType: '';
|
|
52
|
+
};
|
|
53
|
+
|
|
49
54
|
/**
|
|
50
55
|
* @title Документ
|
|
51
|
-
* @default
|
|
56
|
+
* @default {"docType": ""}
|
|
52
57
|
*/
|
|
53
|
-
export type DocBlockDef =
|
|
58
|
+
export type DocBlockDef = EmptyDocType | LinkDocDef | AttachmentDocDef;
|
|
54
59
|
|
|
55
60
|
/**
|
|
56
61
|
* @title Список документов
|
|
@@ -2,7 +2,7 @@ import '../../setup-fixture';
|
|
|
2
2
|
|
|
3
3
|
import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
4
4
|
import { Blocks } from '../Blocks';
|
|
5
|
-
import {
|
|
5
|
+
import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
|
|
6
6
|
import { MortgageFiltration } from './MortgageFiltration';
|
|
7
7
|
import {
|
|
8
8
|
type MortgageFiltrationContent,
|
|
@@ -46,7 +46,7 @@ const CATEGORY_SALARY = {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
const generateBlock = (...presets: any[]) => ({
|
|
49
|
-
type: '
|
|
49
|
+
type: 'ProductBlock',
|
|
50
50
|
style: ['col-span-6'],
|
|
51
51
|
content: { ...presets.reduce((acc, p) => ({ ...acc, ...p })) },
|
|
52
52
|
});
|
|
@@ -155,42 +155,42 @@ export default {
|
|
|
155
155
|
type: 'MortgageFiltration',
|
|
156
156
|
blocks: [
|
|
157
157
|
generateBlock(
|
|
158
|
-
|
|
158
|
+
PRODUCT_BLOCK_WITH_IMAGE,
|
|
159
159
|
PROPERTY_APARTMENT,
|
|
160
160
|
STAGE_IN_PROGRESS,
|
|
161
161
|
EXTRA_MORTGAGE,
|
|
162
162
|
CATEGORY_IT,
|
|
163
163
|
),
|
|
164
164
|
generateBlock(
|
|
165
|
-
|
|
165
|
+
PRODUCT_BLOCK_WITH_IMAGE,
|
|
166
166
|
PROPERTY_APARTMENT,
|
|
167
167
|
STAGE_BUILT,
|
|
168
168
|
EXTRA_CHILDREN,
|
|
169
169
|
CATEGORY_SALARY,
|
|
170
170
|
),
|
|
171
171
|
generateBlock(
|
|
172
|
-
|
|
172
|
+
PRODUCT_BLOCK_WITH_IMAGE,
|
|
173
173
|
PROPERTY_FLAT,
|
|
174
174
|
STAGE_IN_PROGRESS,
|
|
175
175
|
EXTRA_MORTGAGE,
|
|
176
176
|
CATEGORY_SALARY,
|
|
177
177
|
),
|
|
178
178
|
generateBlock(
|
|
179
|
-
|
|
179
|
+
PRODUCT_BLOCK_WITH_IMAGE,
|
|
180
180
|
PROPERTY_FLAT,
|
|
181
181
|
STAGE_BUILT,
|
|
182
182
|
EXTRA_MORTGAGE,
|
|
183
183
|
CATEGORY_SALARY,
|
|
184
184
|
),
|
|
185
185
|
generateBlock(
|
|
186
|
-
|
|
186
|
+
PRODUCT_BLOCK_WITH_IMAGE,
|
|
187
187
|
PROPERTY_APARTMENT,
|
|
188
188
|
STAGE_BUILT,
|
|
189
189
|
EXTRA_CHILDREN,
|
|
190
190
|
CATEGORY_IT,
|
|
191
191
|
),
|
|
192
192
|
generateBlock(
|
|
193
|
-
|
|
193
|
+
PRODUCT_BLOCK_WITH_IMAGE,
|
|
194
194
|
PROPERTY_HOUSE,
|
|
195
195
|
STAGE_BUILT,
|
|
196
196
|
EXTRA_MORTGAGE,
|
|
@@ -2,7 +2,7 @@ import '../../setup-fixture';
|
|
|
2
2
|
|
|
3
3
|
import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
4
4
|
import { Blocks } from '../Blocks';
|
|
5
|
-
import {
|
|
5
|
+
import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
|
|
6
6
|
import { MortgageFiltration } from './MortgageFiltration';
|
|
7
7
|
import {
|
|
8
8
|
type MortgageFiltrationContent,
|
|
@@ -46,7 +46,7 @@ const CATEGORY_SALARY = {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
const generateBlock = (...presets: any[]) => ({
|
|
49
|
-
type: '
|
|
49
|
+
type: 'ProductBlock',
|
|
50
50
|
style: ['col-span-6'],
|
|
51
51
|
content: { ...presets.reduce((acc, p) => ({ ...acc, ...p })) },
|
|
52
52
|
});
|
|
@@ -155,42 +155,42 @@ export default {
|
|
|
155
155
|
type: 'MortgageFiltration',
|
|
156
156
|
blocks: [
|
|
157
157
|
generateBlock(
|
|
158
|
-
|
|
158
|
+
PRODUCT_BLOCK_WITH_IMAGE,
|
|
159
159
|
PROPERTY_APARTMENT,
|
|
160
160
|
STAGE_IN_PROGRESS,
|
|
161
161
|
EXTRA_MORTGAGE,
|
|
162
162
|
CATEGORY_IT,
|
|
163
163
|
),
|
|
164
164
|
generateBlock(
|
|
165
|
-
|
|
165
|
+
PRODUCT_BLOCK_WITH_IMAGE,
|
|
166
166
|
PROPERTY_APARTMENT,
|
|
167
167
|
STAGE_BUILT,
|
|
168
168
|
EXTRA_CHILDREN,
|
|
169
169
|
CATEGORY_SALARY,
|
|
170
170
|
),
|
|
171
171
|
generateBlock(
|
|
172
|
-
|
|
172
|
+
PRODUCT_BLOCK_WITH_IMAGE,
|
|
173
173
|
PROPERTY_FLAT,
|
|
174
174
|
STAGE_IN_PROGRESS,
|
|
175
175
|
EXTRA_MORTGAGE,
|
|
176
176
|
CATEGORY_SALARY,
|
|
177
177
|
),
|
|
178
178
|
generateBlock(
|
|
179
|
-
|
|
179
|
+
PRODUCT_BLOCK_WITH_IMAGE,
|
|
180
180
|
PROPERTY_FLAT,
|
|
181
181
|
STAGE_BUILT,
|
|
182
182
|
EXTRA_MORTGAGE,
|
|
183
183
|
CATEGORY_SALARY,
|
|
184
184
|
),
|
|
185
185
|
generateBlock(
|
|
186
|
-
|
|
186
|
+
PRODUCT_BLOCK_WITH_IMAGE,
|
|
187
187
|
PROPERTY_APARTMENT,
|
|
188
188
|
STAGE_BUILT,
|
|
189
189
|
EXTRA_CHILDREN,
|
|
190
190
|
CATEGORY_IT,
|
|
191
191
|
),
|
|
192
192
|
generateBlock(
|
|
193
|
-
|
|
193
|
+
PRODUCT_BLOCK_WITH_IMAGE,
|
|
194
194
|
PROPERTY_HOUSE,
|
|
195
195
|
STAGE_BUILT,
|
|
196
196
|
EXTRA_MORTGAGE,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type EmptyOption } from '../../model/EmptyOptionType';
|
|
2
1
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
2
|
import { type Picture } from '../../model/Picture';
|
|
4
3
|
|
|
@@ -31,11 +30,17 @@ export type AtmsDef = {
|
|
|
31
30
|
list?: ItemList[];
|
|
32
31
|
};
|
|
33
32
|
|
|
33
|
+
/** @title Не выбрано * */
|
|
34
|
+
export type EmptyOfficesAtmsBlock = {
|
|
35
|
+
/** @default "" */
|
|
36
|
+
dataType: '';
|
|
37
|
+
};
|
|
38
|
+
|
|
34
39
|
/**
|
|
35
40
|
* @title Данные
|
|
36
|
-
* @default
|
|
41
|
+
* @default { "dataType": "" }
|
|
37
42
|
*/
|
|
38
|
-
export type OfficesAtmsBlockDef =
|
|
43
|
+
export type OfficesAtmsBlockDef = EmptyOfficesAtmsBlock | OfficesDef | AtmsDef;
|
|
39
44
|
|
|
40
45
|
/**
|
|
41
46
|
* @title Блок офисов и банкоматов
|
|
@@ -3,6 +3,7 @@ import '../../setup-fixture';
|
|
|
3
3
|
import { type ComplexBenefitContent } from '../../ui-kit/BenefitItem/BenefitItemContent';
|
|
4
4
|
import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
5
5
|
import { ProductBlock } from './ProductBlock';
|
|
6
|
+
import { type ProductBlockContent } from './ProductBlockContent';
|
|
6
7
|
|
|
7
8
|
const title = 'Кредит до 5 000 000 Р\nбез залога и поручителей';
|
|
8
9
|
const description =
|
|
@@ -50,6 +51,12 @@ const benefits: ComplexBenefitContent[] = [
|
|
|
50
51
|
},
|
|
51
52
|
];
|
|
52
53
|
|
|
54
|
+
const benefit: ComplexBenefitContent = {
|
|
55
|
+
type: 'default',
|
|
56
|
+
label: 'до 5 млн Р',
|
|
57
|
+
description: 'Кредитный лимит',
|
|
58
|
+
};
|
|
59
|
+
|
|
53
60
|
const buttons: ButtonContent[] = [
|
|
54
61
|
{
|
|
55
62
|
href: 'https://rshb.ru',
|
|
@@ -73,6 +80,40 @@ const items = [
|
|
|
73
80
|
|
|
74
81
|
const props = { title, description, image, buttons };
|
|
75
82
|
|
|
83
|
+
export const PRODUCT_BLOCK_WITH_IMAGE: ProductBlockContent = {
|
|
84
|
+
title: 'Акция! “Кредит На все, что хочется!”',
|
|
85
|
+
headlineVersion: 'S',
|
|
86
|
+
description: 'Потребительский кредит на любые цели, без залога и поручительства',
|
|
87
|
+
benefits: [
|
|
88
|
+
benefit,
|
|
89
|
+
{ ...benefit, label: 'от 12,5%', description: 'Процентная ставка' },
|
|
90
|
+
{
|
|
91
|
+
...benefit,
|
|
92
|
+
label: 'до 5 лет',
|
|
93
|
+
description: 'Срок кредитования',
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
buttons: [
|
|
97
|
+
{
|
|
98
|
+
text: 'Подробнее',
|
|
99
|
+
href: '/credit-cards',
|
|
100
|
+
version: 'secondary',
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
image: {
|
|
104
|
+
src: 'card-with-diamond.png',
|
|
105
|
+
alt: 'Кредиты в РСХБ',
|
|
106
|
+
format: 'webp',
|
|
107
|
+
size: {
|
|
108
|
+
height: 200,
|
|
109
|
+
width: 200,
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
isTabularBenefits: true,
|
|
113
|
+
isFullWidthTitle: true,
|
|
114
|
+
imageOptions: { isImageSecondary: true },
|
|
115
|
+
};
|
|
116
|
+
|
|
76
117
|
export default {
|
|
77
118
|
default: (
|
|
78
119
|
<div className="container grid grid-cols-12">
|
|
@@ -36,6 +36,12 @@ const benefits: ComplexBenefitContent[] = [
|
|
|
36
36
|
},
|
|
37
37
|
];
|
|
38
38
|
|
|
39
|
+
const benefit: ComplexBenefitContent = {
|
|
40
|
+
type: 'default',
|
|
41
|
+
label: 'до 5 млн Р',
|
|
42
|
+
description: 'Кредитный лимит',
|
|
43
|
+
};
|
|
44
|
+
|
|
39
45
|
const buttons: ButtonContent[] = [
|
|
40
46
|
{
|
|
41
47
|
href: 'https://rshb.ru',
|
|
@@ -66,6 +72,40 @@ const items = [
|
|
|
66
72
|
'Расходы для бизнеса на УСН 15% позволят снизить налоговую базу',
|
|
67
73
|
];
|
|
68
74
|
|
|
75
|
+
export const PRODUCT_BLOCK_WITH_IMAGE: ProductBlockContent = {
|
|
76
|
+
title: 'Акция! “Кредит На все, что хочется!”',
|
|
77
|
+
headlineVersion: 'S',
|
|
78
|
+
description: 'Потребительский кредит на любые цели, без залога и поручительства',
|
|
79
|
+
benefits: [
|
|
80
|
+
benefit,
|
|
81
|
+
{ ...benefit, label: 'от 12,5%', description: 'Процентная ставка' },
|
|
82
|
+
{
|
|
83
|
+
...benefit,
|
|
84
|
+
label: 'до 5 лет',
|
|
85
|
+
description: 'Срок кредитования',
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
buttons: [
|
|
89
|
+
{
|
|
90
|
+
text: 'Подробнее',
|
|
91
|
+
href: '/credit-cards',
|
|
92
|
+
version: 'secondary',
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
image: {
|
|
96
|
+
src: 'card-with-diamond.png',
|
|
97
|
+
alt: 'Кредиты в РСХБ',
|
|
98
|
+
format: 'webp',
|
|
99
|
+
size: {
|
|
100
|
+
height: 242,
|
|
101
|
+
width: 242,
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
isTabularBenefits: true,
|
|
105
|
+
isFullWidthTitle: true,
|
|
106
|
+
imageOptions: { isImageSecondary: true },
|
|
107
|
+
};
|
|
108
|
+
|
|
69
109
|
export const PRODUCT_BLOCK: ProductBlockContent = {
|
|
70
110
|
title: 'Оплата проходит в 180 странах мира',
|
|
71
111
|
headlineVersion: 'L',
|
|
@@ -1,44 +1,25 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { useRouter } from '../../hooks/useRouter';
|
|
4
2
|
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
5
3
|
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
|
|
6
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
|
-
import { type PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
8
5
|
import { getBorderStyle } from '../../utils/getBorderStyle';
|
|
9
6
|
import { style } from '../../utils/style';
|
|
10
7
|
import { type ProductBlockContent } from './ProductBlockContent';
|
|
11
|
-
import { renderBackwardButton } from './renderBackwardButton';
|
|
12
8
|
|
|
13
9
|
export interface ProductBlockProps extends UniBlockProps, ProductBlockContent {}
|
|
14
10
|
|
|
15
11
|
export const ProductBlock = JSX<ProductBlockProps>(
|
|
16
|
-
({ className, padding,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
)}
|
|
30
|
-
defaultPadding="p-6xl"
|
|
31
|
-
padding={padding}
|
|
32
|
-
{...rest}
|
|
33
|
-
>
|
|
34
|
-
{backwardButton
|
|
35
|
-
? renderBackwardButton(
|
|
36
|
-
!rest.version || rest.version === 'primary' ? 'primary' : 'white',
|
|
37
|
-
handleClick,
|
|
38
|
-
)
|
|
39
|
-
: null}
|
|
40
|
-
<BaseProductTile className="grow h-full" {...rest} />
|
|
41
|
-
</BlockWrapper>
|
|
42
|
-
);
|
|
43
|
-
},
|
|
12
|
+
({ className, padding, showBorder, ...rest }) => (
|
|
13
|
+
<BlockWrapper
|
|
14
|
+
className={style(
|
|
15
|
+
'overflow-hidden flex flex-col gap-3xl box-border',
|
|
16
|
+
getBorderStyle(showBorder),
|
|
17
|
+
className,
|
|
18
|
+
)}
|
|
19
|
+
padding="p-0"
|
|
20
|
+
{...rest}
|
|
21
|
+
>
|
|
22
|
+
<BaseProductTile defaultPadding="p-6xl" padding={padding} className="grow h-full" {...rest} />
|
|
23
|
+
</BlockWrapper>
|
|
24
|
+
),
|
|
44
25
|
);
|
|
@@ -2,7 +2,7 @@ import '../../setup-fixture';
|
|
|
2
2
|
|
|
3
3
|
import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
4
4
|
import { Blocks } from '../Blocks';
|
|
5
|
-
import {
|
|
5
|
+
import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
|
|
6
6
|
import { SwipeListControlBlock } from './SwipeListControlBlock';
|
|
7
7
|
|
|
8
8
|
const options = {
|
|
@@ -17,10 +17,10 @@ export default {
|
|
|
17
17
|
block={{
|
|
18
18
|
type: 'SwipeListControlBlock',
|
|
19
19
|
blocks: [
|
|
20
|
-
{ type: '
|
|
21
|
-
{ type: '
|
|
22
|
-
{ type: '
|
|
23
|
-
{ type: '
|
|
20
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
21
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
22
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
23
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
24
24
|
],
|
|
25
25
|
}}
|
|
26
26
|
showDots={true}
|
|
@@ -36,8 +36,8 @@ export default {
|
|
|
36
36
|
block={{
|
|
37
37
|
type: 'SwipeListControlBlock',
|
|
38
38
|
blocks: [
|
|
39
|
-
{ type: '
|
|
40
|
-
{ type: '
|
|
39
|
+
{ type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
|
|
40
|
+
{ type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
|
|
41
41
|
],
|
|
42
42
|
}}
|
|
43
43
|
listType="vertical-list"
|
|
@@ -53,8 +53,8 @@ export default {
|
|
|
53
53
|
block={{
|
|
54
54
|
type: 'SwipeListControlBlock',
|
|
55
55
|
blocks: [
|
|
56
|
-
{ type: '
|
|
57
|
-
{ type: '
|
|
56
|
+
{ type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
|
|
57
|
+
{ type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
|
|
58
58
|
],
|
|
59
59
|
}}
|
|
60
60
|
listType="vertical-list"
|
|
@@ -2,7 +2,7 @@ import '../../setup-fixture';
|
|
|
2
2
|
|
|
3
3
|
import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
4
4
|
import { Blocks } from '../Blocks';
|
|
5
|
-
import {
|
|
5
|
+
import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
|
|
6
6
|
import { SwipeListControlBlock } from './SwipeListControlBlock';
|
|
7
7
|
|
|
8
8
|
const options = {
|
|
@@ -17,8 +17,8 @@ export default {
|
|
|
17
17
|
block={{
|
|
18
18
|
type: 'SwipeListControlBlock',
|
|
19
19
|
blocks: [
|
|
20
|
-
{ type: '
|
|
21
|
-
{ type: '
|
|
20
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
21
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
22
22
|
],
|
|
23
23
|
}}
|
|
24
24
|
listType="vertical-list"
|
|
@@ -33,8 +33,8 @@ export default {
|
|
|
33
33
|
block={{
|
|
34
34
|
type: 'SwipeListControlBlock',
|
|
35
35
|
blocks: [
|
|
36
|
-
{ type: '
|
|
37
|
-
{ type: '
|
|
36
|
+
{ type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
|
|
37
|
+
{ type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
|
|
38
38
|
],
|
|
39
39
|
}}
|
|
40
40
|
listType="vertical-list"
|
|
@@ -50,8 +50,8 @@ export default {
|
|
|
50
50
|
block={{
|
|
51
51
|
type: 'SwipeListControlBlock',
|
|
52
52
|
blocks: [
|
|
53
|
-
{ type: '
|
|
54
|
-
{ type: '
|
|
53
|
+
{ type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
|
|
54
|
+
{ type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
|
|
55
55
|
],
|
|
56
56
|
}}
|
|
57
57
|
listType="vertical-list"
|
|
@@ -68,10 +68,10 @@ export default {
|
|
|
68
68
|
block={{
|
|
69
69
|
type: 'SwipeListControlBlock',
|
|
70
70
|
blocks: [
|
|
71
|
-
{ type: '
|
|
72
|
-
{ type: '
|
|
73
|
-
{ type: '
|
|
74
|
-
{ type: '
|
|
71
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
72
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
73
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
74
|
+
{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
|
|
75
75
|
],
|
|
76
76
|
}}
|
|
77
77
|
listType="vertical-list"
|
|
@@ -2,7 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
4
4
|
import { type CellDef } from './TariffsTableContent';
|
|
5
|
-
import {
|
|
5
|
+
import { RenderCellInner } from './TariffsTableRenderCell';
|
|
6
6
|
|
|
7
7
|
export interface TariffTableContentProps {
|
|
8
8
|
openTableInnerIdx?: number;
|
|
@@ -30,16 +30,19 @@ export const TariffsTableCell = JSX<TariffsTableCellProps>(
|
|
|
30
30
|
return (
|
|
31
31
|
<div className="w-80 flex-grow flex flex-col gap-m @4xl:gap-lg" role="cell">
|
|
32
32
|
{cells?.length
|
|
33
|
-
? cells.map(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
? cells.map((_, i) => (
|
|
34
|
+
<RenderCellInner
|
|
35
|
+
key={String(i)}
|
|
36
|
+
cell={_}
|
|
37
|
+
fieldIdx={i}
|
|
38
|
+
rowIdx={rowIdx}
|
|
39
|
+
cellIdx={cellIdx}
|
|
40
|
+
setTableInner={setTableInner}
|
|
41
|
+
tableInner={tableInner}
|
|
42
|
+
openTableInnerIdx={openTableInnerIdx}
|
|
43
|
+
setOpenTableInnerIdx={setOpenTableInnerIdx}
|
|
44
|
+
/>
|
|
45
|
+
))
|
|
43
46
|
: null}
|
|
44
47
|
</div>
|
|
45
48
|
);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type EmptyOption } from '../../model/EmptyOptionType';
|
|
2
1
|
import { type DescriptionProps, type LabelProps, type TitleProps } from '../../model/HeadlineType';
|
|
3
2
|
import { type UniBlockContent, type UniBlockProps } from '../../model/JSXBlock';
|
|
4
3
|
import { type IconProps } from '../../model/Picture';
|
|
@@ -89,12 +88,18 @@ export type InnerTableBlockDef = TariffsTableInnerContent & {
|
|
|
89
88
|
tableCellType: 'Table';
|
|
90
89
|
};
|
|
91
90
|
|
|
91
|
+
/** @title Не выбрано * */
|
|
92
|
+
export type EmptyCellType = {
|
|
93
|
+
/** @default "" */
|
|
94
|
+
tableCellType: '';
|
|
95
|
+
};
|
|
96
|
+
|
|
92
97
|
/**
|
|
93
98
|
* @title Содержимое ячейки
|
|
94
|
-
* @default
|
|
99
|
+
* @default { "tableCellType": "" }
|
|
95
100
|
*/
|
|
96
101
|
export type CellDef =
|
|
97
|
-
|
|
|
102
|
+
| EmptyCellType
|
|
98
103
|
| ImageCellDef
|
|
99
104
|
| ButtonsCellDef
|
|
100
105
|
| LabelDescriptionCellDef
|