@redneckz/wildless-cms-uni-blocks 0.5.13 → 0.5.14
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 +14 -18
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Blocks.d.ts +2 -1
- package/bundle/components/OtherProducts/OtherProducts.d.ts +2 -1
- package/bundle/components/OtherProducts/OtherProductsContent.d.ts +1 -21
- package/bundle/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
- package/bundle/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
- package/dist/components/Blocks.d.ts +2 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/ContentPage/renderBlock.js +7 -6
- package/dist/components/ContentPage/renderBlock.js.map +1 -1
- package/dist/components/OtherProducts/OtherProducts.d.ts +2 -1
- package/dist/components/OtherProducts/OtherProducts.js +2 -4
- package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -21
- package/dist/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
- package/dist/components/OtherProductsItem/OtherProductsItem.js +11 -0
- package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
- package/dist/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
- package/dist/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
- package/dist/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
- package/dist/ui-kit/Foldable/FoldableSection.js +1 -1
- package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/lib/components/Blocks.d.ts +2 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/ContentPage/renderBlock.js +7 -6
- package/lib/components/ContentPage/renderBlock.js.map +1 -1
- package/lib/components/OtherProducts/OtherProducts.d.ts +2 -1
- package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +1 -0
- package/lib/components/OtherProducts/OtherProducts.js +2 -4
- package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -21
- package/lib/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
- package/lib/components/OtherProductsItem/OtherProductsItem.fixture.d.ts +5 -0
- package/lib/components/OtherProductsItem/OtherProductsItem.js +9 -0
- package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
- package/lib/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
- package/lib/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
- package/lib/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
- package/lib/ui-kit/Foldable/FoldableSection.js +1 -1
- package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +8 -7
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/OtherProducts/OtherProducts.d.ts +2 -1
- package/mobile/bundle/components/OtherProducts/OtherProductsContent.d.ts +1 -21
- package/mobile/bundle/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
- package/mobile/bundle/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
- package/mobile/dist/components/ContentPage/renderBlock.js +7 -6
- package/mobile/dist/components/ContentPage/renderBlock.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.d.ts +2 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.js +2 -4
- package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -21
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +11 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js +1 -1
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/mobile/lib/components/ContentPage/renderBlock.js +7 -6
- package/mobile/lib/components/ContentPage/renderBlock.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.d.ts +2 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.js +2 -4
- package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -21
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.d.ts +6 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +9 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.d.ts +14 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js +1 -1
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/mobile/src/components/ContentPage/renderBlock.tsx +14 -9
- package/mobile/src/components/OtherProducts/OtherProducts.example.json +1 -54
- package/mobile/src/components/OtherProducts/OtherProducts.tsx +13 -24
- package/mobile/src/components/OtherProducts/OtherProducts.ui.json +1 -76
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +1 -22
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.example.json +3 -0
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +39 -0
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.ui.json +1 -0
- package/mobile/src/components/OtherProductsItem/OtherProductsItemContent.ts +17 -0
- package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +1 -1
- package/package.json +1 -1
- package/src/components/Blocks.ts +2 -0
- package/src/components/ContentPage/renderBlock.tsx +14 -9
- package/src/components/OtherProducts/OtherProducts.example.json +1 -54
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +77 -126
- package/src/components/OtherProducts/OtherProducts.tsx +13 -24
- package/src/components/OtherProducts/OtherProducts.ui.json +1 -76
- package/src/components/OtherProducts/OtherProductsContent.ts +1 -22
- package/src/components/OtherProductsItem/OtherProductsItem.example.json +3 -0
- package/src/components/OtherProductsItem/OtherProductsItem.fixture.tsx +5 -0
- package/src/components/OtherProductsItem/OtherProductsItem.tsx +39 -0
- package/src/components/OtherProductsItem/OtherProductsItem.ui.json +1 -0
- package/src/components/OtherProductsItem/OtherProductsItemContent.ts +17 -0
- package/src/ui-kit/Foldable/FoldableSection.tsx +1 -1
- package/bundle/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/dist/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/dist/components/OtherProducts/OtherProductsItem.js +0 -17
- package/dist/components/OtherProducts/OtherProductsItem.js.map +0 -1
- package/lib/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/lib/components/OtherProducts/OtherProductsItem.js +0 -15
- package/lib/components/OtherProducts/OtherProductsItem.js.map +0 -1
- package/mobile/bundle/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/mobile/dist/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js +0 -17
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +0 -1
- package/mobile/lib/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js +0 -15
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +0 -1
- package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +0 -52
- package/src/components/OtherProducts/OtherProductsItem.tsx +0 -52
|
@@ -1,156 +1,107 @@
|
|
|
1
1
|
import { context } from '../../react/setup-fixture';
|
|
2
|
+
import { Gallery } from '../Gallery/Gallery';
|
|
2
3
|
import { defaultProps as GALLERY } from '../Gallery/Gallery.fixture';
|
|
4
|
+
import { Headline } from '../Headline/Headline';
|
|
3
5
|
import { HEADLINE } from '../Headline/Headline.fixture';
|
|
6
|
+
import { LinkDocs } from '../LinkDocs/LinkDocs';
|
|
4
7
|
import { linkDocsContentExample } from '../LinkDocs/linkDocsContentExample';
|
|
8
|
+
import { MiniGallery } from '../MiniGallery/MiniGallery';
|
|
5
9
|
import { defaultProps as MINI_GALLERY } from '../MiniGallery/MiniGallery.fixture';
|
|
10
|
+
import { OtherProductsItem } from '../OtherProductsItem/OtherProductsItem';
|
|
11
|
+
import { PictureText } from '../PictureText/PictureText';
|
|
6
12
|
import { PICTURE_TEXT } from '../PictureText/PictureText.fixture';
|
|
13
|
+
import { ProductBlock } from '../ProductBlock/ProductBlock';
|
|
7
14
|
import { PRODUCT_BLOCK } from '../ProductBlock/ProductBlock.fixture';
|
|
15
|
+
import { ProductTile } from '../ProductTile/ProductTile';
|
|
8
16
|
import { PRODUCT_PENSION_TILE, PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
|
|
17
|
+
import { TextBlock } from '../TextBlock/TextBlock';
|
|
9
18
|
import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture';
|
|
19
|
+
import { Tile } from '../Tile/Tile';
|
|
10
20
|
import { TILE, TILE_PREMIUM } from '../Tile/Tile.fixture';
|
|
11
|
-
import type { OtherProductsProps } from './OtherProducts';
|
|
12
21
|
import { OtherProducts } from './OtherProducts';
|
|
13
22
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
LinkDocsBlockListDef,
|
|
18
|
-
MiniGalleryBlockListDef,
|
|
19
|
-
PictureTextBlockListDef,
|
|
20
|
-
ProductBlockBlockListDef,
|
|
21
|
-
ProductTileBlockListDef,
|
|
22
|
-
TextBlockBlockListDef,
|
|
23
|
-
TileBlockListDef,
|
|
24
|
-
} from '../../ui-kit/BlocksList/BlocksListProps';
|
|
23
|
+
const TEXT_BLOCK_OTHER_BLOCK = (
|
|
24
|
+
<TextBlock context={context} className="col-span-12" {...TEXT_BLOCK} />
|
|
25
|
+
);
|
|
25
26
|
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...TEXT_BLOCK,
|
|
30
|
-
};
|
|
27
|
+
const PRODUCT_BLOCK_OTHER_BLOCK = (
|
|
28
|
+
<ProductBlock context={context} className="col-span-6" {...PRODUCT_BLOCK} />
|
|
29
|
+
);
|
|
31
30
|
|
|
32
|
-
const
|
|
33
|
-
blockListType: 'ProductBlock',
|
|
34
|
-
style: ['col-span-6'],
|
|
35
|
-
...PRODUCT_BLOCK,
|
|
36
|
-
};
|
|
31
|
+
const TILES_OTHER_BLOCK = <Tile context={context} className="col-span-12" {...TILE} />;
|
|
37
32
|
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
...TILE,
|
|
42
|
-
};
|
|
33
|
+
const TILES_PREMIUM_OTHER_BLOCK = (
|
|
34
|
+
<Tile context={context} className="col-span-6" {...TILE_PREMIUM} />
|
|
35
|
+
);
|
|
43
36
|
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
...TILE_PREMIUM,
|
|
48
|
-
};
|
|
37
|
+
const PRODUCT_TILES_OTHER_BLOCK = (
|
|
38
|
+
<ProductTile context={context} className="col-span-6" {...PRODUCT_TILE} />
|
|
39
|
+
);
|
|
49
40
|
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
...PRODUCT_TILE,
|
|
54
|
-
};
|
|
41
|
+
const PRODUCT_PENSION_TILES_OTHER_BLOCK = (
|
|
42
|
+
<ProductTile context={context} className="col-span-6" {...PRODUCT_PENSION_TILE} />
|
|
43
|
+
);
|
|
55
44
|
|
|
56
|
-
const
|
|
57
|
-
blockListType: 'ProductTile',
|
|
58
|
-
style: ['col-span-6'],
|
|
59
|
-
...PRODUCT_PENSION_TILE,
|
|
60
|
-
};
|
|
45
|
+
const HEADLINE_OTHER_BLOCK = <Headline context={context} className="col-span-12" {...HEADLINE} />;
|
|
61
46
|
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
...HEADLINE,
|
|
66
|
-
};
|
|
47
|
+
const PICTURE_TEXT_OTHER_BLOCK = (
|
|
48
|
+
<PictureText context={context} className="col-span-12" {...PICTURE_TEXT} />
|
|
49
|
+
);
|
|
67
50
|
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
...PICTURE_TEXT,
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const LINK_DOCS_OTHER_BLOCK: LinkDocsBlockListDef = {
|
|
75
|
-
blockListType: 'LinkDocs',
|
|
76
|
-
style: ['col-span-12'],
|
|
77
|
-
...linkDocsContentExample,
|
|
78
|
-
};
|
|
51
|
+
const LINK_DOCS_OTHER_BLOCK = (
|
|
52
|
+
<LinkDocs context={context} className="col-span-12" {...linkDocsContentExample} />
|
|
53
|
+
);
|
|
79
54
|
|
|
80
|
-
const GALLERY_OTHER_BLOCK
|
|
81
|
-
blockListType: 'Gallery',
|
|
82
|
-
style: ['col-span-12'],
|
|
83
|
-
...GALLERY,
|
|
84
|
-
};
|
|
55
|
+
const GALLERY_OTHER_BLOCK = <Gallery className="col-span-12" {...GALLERY} />;
|
|
85
56
|
|
|
86
|
-
const MINI_GALLERY_OTHER_BLOCK
|
|
87
|
-
blockListType: 'MiniGallery',
|
|
88
|
-
style: ['col-span-12'],
|
|
89
|
-
...MINI_GALLERY,
|
|
90
|
-
};
|
|
57
|
+
const MINI_GALLERY_OTHER_BLOCK = <MiniGallery className="col-span-12" {...MINI_GALLERY} />;
|
|
91
58
|
|
|
92
|
-
const
|
|
93
|
-
context
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
label: 'OtherProducts №1 Tiles',
|
|
98
|
-
blocks: [
|
|
99
|
-
TILES_PREMIUM_OTHER_BLOCK,
|
|
100
|
-
TILES_PREMIUM_OTHER_BLOCK,
|
|
101
|
-
TILES_OTHER_BLOCK,
|
|
102
|
-
TILES_OTHER_BLOCK,
|
|
103
|
-
],
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
label: 'OtherProducts №2 Product_Tiles',
|
|
107
|
-
blocks: [
|
|
108
|
-
PRODUCT_TILES_OTHER_BLOCK,
|
|
109
|
-
PRODUCT_TILES_OTHER_BLOCK,
|
|
110
|
-
PRODUCT_PENSION_TILES_OTHER_BLOCK,
|
|
111
|
-
PRODUCT_PENSION_TILES_OTHER_BLOCK,
|
|
112
|
-
],
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
label: 'OtherProducts №3 Product_Block',
|
|
116
|
-
blocks: [PRODUCT_BLOCK_OTHER_BLOCK, PRODUCT_BLOCK_OTHER_BLOCK],
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
label: 'OtherProducts №4 Text_Block',
|
|
120
|
-
blocks: [
|
|
121
|
-
TEXT_BLOCK_OTHER_BLOCK,
|
|
122
|
-
TEXT_BLOCK_OTHER_BLOCK,
|
|
123
|
-
TEXT_BLOCK_OTHER_BLOCK,
|
|
124
|
-
TEXT_BLOCK_OTHER_BLOCK,
|
|
125
|
-
],
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
label: 'OtherProducts №5 Picture_Text',
|
|
129
|
-
blocks: [PICTURE_TEXT_OTHER_BLOCK],
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
label: 'OtherProducts №6 Headline',
|
|
133
|
-
blocks: [HEADLINE_OTHER_BLOCK],
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
label: 'OtherProducts №7 Link_Docs',
|
|
137
|
-
blocks: [LINK_DOCS_OTHER_BLOCK],
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
label: 'OtherProducts №8 Gallery',
|
|
141
|
-
blocks: [GALLERY_OTHER_BLOCK, GALLERY_OTHER_BLOCK],
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
label: 'OtherProducts №9 Mini_Gallery',
|
|
145
|
-
blocks: [MINI_GALLERY_OTHER_BLOCK, MINI_GALLERY_OTHER_BLOCK],
|
|
146
|
-
},
|
|
147
|
-
],
|
|
148
|
-
};
|
|
59
|
+
export const OTHER_PRODUCTS_ITEM = (
|
|
60
|
+
<OtherProductsItem context={context} label="OtherProducts №1 Tiles">
|
|
61
|
+
{[TILES_PREMIUM_OTHER_BLOCK, TILES_PREMIUM_OTHER_BLOCK, TILES_OTHER_BLOCK, TILES_OTHER_BLOCK]}
|
|
62
|
+
</OtherProductsItem>
|
|
63
|
+
);
|
|
149
64
|
|
|
150
65
|
export default {
|
|
151
66
|
default: (
|
|
152
67
|
<div className="container grid grid-cols-12">
|
|
153
|
-
<OtherProducts className="col-span-12"
|
|
68
|
+
<OtherProducts context={context} className="col-span-12">
|
|
69
|
+
{OTHER_PRODUCTS_ITEM}
|
|
70
|
+
<OtherProductsItem context={context} label="OtherProducts №2 Product_Tiles">
|
|
71
|
+
{[
|
|
72
|
+
PRODUCT_TILES_OTHER_BLOCK,
|
|
73
|
+
PRODUCT_TILES_OTHER_BLOCK,
|
|
74
|
+
PRODUCT_PENSION_TILES_OTHER_BLOCK,
|
|
75
|
+
PRODUCT_PENSION_TILES_OTHER_BLOCK,
|
|
76
|
+
]}
|
|
77
|
+
</OtherProductsItem>
|
|
78
|
+
<OtherProductsItem context={context} label="OtherProducts №3 Product_Block">
|
|
79
|
+
{[PRODUCT_BLOCK_OTHER_BLOCK, PRODUCT_BLOCK_OTHER_BLOCK]}
|
|
80
|
+
</OtherProductsItem>
|
|
81
|
+
<OtherProductsItem context={context} label="OtherProducts №4 Text_Block">
|
|
82
|
+
{[
|
|
83
|
+
TEXT_BLOCK_OTHER_BLOCK,
|
|
84
|
+
TEXT_BLOCK_OTHER_BLOCK,
|
|
85
|
+
TEXT_BLOCK_OTHER_BLOCK,
|
|
86
|
+
TEXT_BLOCK_OTHER_BLOCK,
|
|
87
|
+
]}
|
|
88
|
+
</OtherProductsItem>
|
|
89
|
+
<OtherProductsItem context={context} label="OtherProducts №5 Picture_Text">
|
|
90
|
+
{[PICTURE_TEXT_OTHER_BLOCK]}
|
|
91
|
+
</OtherProductsItem>
|
|
92
|
+
<OtherProductsItem context={context} label="OtherProducts №6 Headline">
|
|
93
|
+
{[HEADLINE_OTHER_BLOCK]}
|
|
94
|
+
</OtherProductsItem>
|
|
95
|
+
<OtherProductsItem context={context} label="OtherProducts №7 Link_Docs">
|
|
96
|
+
{[LINK_DOCS_OTHER_BLOCK]}
|
|
97
|
+
</OtherProductsItem>
|
|
98
|
+
<OtherProductsItem context={context} label="OtherProducts №8 Gallery">
|
|
99
|
+
{[GALLERY_OTHER_BLOCK, GALLERY_OTHER_BLOCK]}
|
|
100
|
+
</OtherProductsItem>
|
|
101
|
+
<OtherProductsItem context={context} label="OtherProducts №9 Mini_Gallery">
|
|
102
|
+
{[MINI_GALLERY_OTHER_BLOCK, MINI_GALLERY_OTHER_BLOCK]}
|
|
103
|
+
</OtherProductsItem>
|
|
104
|
+
</OtherProducts>
|
|
154
105
|
</div>
|
|
155
106
|
),
|
|
156
107
|
};
|
|
@@ -1,32 +1,21 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { JSXBlock } from '../../model/BlocksRegistry';
|
|
2
3
|
import type { UniBlockProps } from '../../model/ContentPageDef';
|
|
3
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
5
|
import type { OtherProductsContent } from './OtherProductsContent';
|
|
5
|
-
import { OtherProductsItem } from './OtherProductsItem';
|
|
6
6
|
|
|
7
7
|
export interface OtherProductsProps extends OtherProductsContent, UniBlockProps {}
|
|
8
8
|
|
|
9
9
|
export const OtherProducts = JSX<OtherProductsProps>(
|
|
10
|
-
({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{...item}
|
|
23
|
-
dataTheme={colorPalette}
|
|
24
|
-
context={context}
|
|
25
|
-
/>
|
|
26
|
-
))}
|
|
27
|
-
</div>
|
|
28
|
-
) : null}
|
|
29
|
-
</BlockWrapper>
|
|
30
|
-
);
|
|
31
|
-
},
|
|
32
|
-
);
|
|
10
|
+
({ context, className = '', children, ...rest }) => (
|
|
11
|
+
<BlockWrapper
|
|
12
|
+
context={context}
|
|
13
|
+
className={`font-sans text-primary-text ${className}`}
|
|
14
|
+
{...rest}
|
|
15
|
+
>
|
|
16
|
+
{children ? <div className="box-border1">{children}</div> : null}
|
|
17
|
+
</BlockWrapper>
|
|
18
|
+
),
|
|
19
|
+
) as JSXBlock<OtherProductsProps>;
|
|
20
|
+
|
|
21
|
+
OtherProducts.childrenTypes = ['OtherProductsItem'];
|
|
@@ -1,76 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"blockItems": {
|
|
4
|
-
"items": {
|
|
5
|
-
"blocks": {
|
|
6
|
-
"items": {
|
|
7
|
-
"blockListType": {
|
|
8
|
-
"ui:widget": "hidden"
|
|
9
|
-
},
|
|
10
|
-
"image": {
|
|
11
|
-
"ui:field": "picture"
|
|
12
|
-
},
|
|
13
|
-
"benefitList": {
|
|
14
|
-
"items": {
|
|
15
|
-
"description": {
|
|
16
|
-
"benefitType": {
|
|
17
|
-
"ui:widget": "hidden"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"icon": {
|
|
21
|
-
"ui:field": "icon"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"style": {
|
|
26
|
-
"ui:field": "style"
|
|
27
|
-
},
|
|
28
|
-
"benefits": {
|
|
29
|
-
"items": {
|
|
30
|
-
"icon": {
|
|
31
|
-
"ui:field": "icon"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"buttons": {
|
|
36
|
-
"items": {
|
|
37
|
-
"icon": {
|
|
38
|
-
"ui:field": "icon"
|
|
39
|
-
},
|
|
40
|
-
"iconRight": {
|
|
41
|
-
"ui:field": "icon"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"icon": {
|
|
46
|
-
"ui:field": "icon"
|
|
47
|
-
},
|
|
48
|
-
"backwardButton": {
|
|
49
|
-
"icon": {
|
|
50
|
-
"ui:field": "icon"
|
|
51
|
-
},
|
|
52
|
-
"iconRight": {
|
|
53
|
-
"ui:field": "icon"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"cards": {
|
|
57
|
-
"items": {
|
|
58
|
-
"image": {
|
|
59
|
-
"ui:field": "picture"
|
|
60
|
-
},
|
|
61
|
-
"button": {
|
|
62
|
-
"icon": {
|
|
63
|
-
"ui:field": "icon"
|
|
64
|
-
},
|
|
65
|
-
"iconRight": {
|
|
66
|
-
"ui:field": "icon"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
1
|
+
{}
|
|
@@ -1,27 +1,6 @@
|
|
|
1
|
-
import type { ColorPalette } from '../../model/ContentPageDef';
|
|
2
1
|
import type { TitleProps } from '../../model/HeadlineType';
|
|
3
|
-
import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @title Элемент списка
|
|
7
|
-
*/
|
|
8
|
-
export interface BlockItemCommonProps {
|
|
9
|
-
/**
|
|
10
|
-
* @title Название
|
|
11
|
-
* @default Список
|
|
12
|
-
*/
|
|
13
|
-
label?: string;
|
|
14
|
-
/** @title Отображать в раскрытом виде */
|
|
15
|
-
isUnfolded?: boolean;
|
|
16
|
-
/** @title Блоки */
|
|
17
|
-
blocks?: BlockDef[];
|
|
18
|
-
}
|
|
19
2
|
|
|
20
3
|
/**
|
|
21
4
|
* @title Другие продукты
|
|
22
5
|
*/
|
|
23
|
-
export type OtherProductsContent = TitleProps
|
|
24
|
-
/** @title Список */
|
|
25
|
-
blockItems?: BlockItemCommonProps[];
|
|
26
|
-
colorPalette?: ColorPalette;
|
|
27
|
-
};
|
|
6
|
+
export type OtherProductsContent = TitleProps;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { JSXBlock } from '../../model/BlocksRegistry';
|
|
3
|
+
import type { UniBlockProps } from '../../model/ContentPageDef';
|
|
4
|
+
import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
|
|
5
|
+
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
6
|
+
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
7
|
+
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
8
|
+
import type { OtherProductsItemContent } from './OtherProductsItemContent';
|
|
9
|
+
|
|
10
|
+
export interface OtherProductsItemProps extends OtherProductsItemContent, UniBlockProps {}
|
|
11
|
+
|
|
12
|
+
const icons: IconName[] = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
13
|
+
|
|
14
|
+
export const OtherProductsItem = JSX<OtherProductsItemProps>(
|
|
15
|
+
({ className, label = '', colorPalette, isUnfolded: unfoldedByDefault, children }) => (
|
|
16
|
+
<div className={`border-0 border-b border-solid border-main-divider ${className}`}>
|
|
17
|
+
<Foldable
|
|
18
|
+
unfoldedByDefault={unfoldedByDefault}
|
|
19
|
+
renderFoldableSection={({ isUnfolded }) => (
|
|
20
|
+
<div className="box-border">
|
|
21
|
+
<FoldableSection className="grid grid-cols-12 gap-1 border-box" isUnfolded={isUnfolded}>
|
|
22
|
+
{children}
|
|
23
|
+
</FoldableSection>
|
|
24
|
+
</div>
|
|
25
|
+
)}
|
|
26
|
+
renderFoldButton={({ isUnfolded, onToggle }) => (
|
|
27
|
+
<DefaultFoldButton
|
|
28
|
+
label={label}
|
|
29
|
+
icon={icons[Number(isUnfolded)]}
|
|
30
|
+
dataTheme={colorPalette}
|
|
31
|
+
onClick={onToggle}
|
|
32
|
+
/>
|
|
33
|
+
)}
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
),
|
|
37
|
+
) as JSXBlock<OtherProductsItemProps>;
|
|
38
|
+
|
|
39
|
+
OtherProductsItem.childrenTypes = []; // All types of blocks are suitable
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ColorPalette } from '../../model/ContentPageDef';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @title Элемент списка
|
|
5
|
+
*/
|
|
6
|
+
export interface OtherProductsItemContent {
|
|
7
|
+
/**
|
|
8
|
+
* @title Название
|
|
9
|
+
* @default Список
|
|
10
|
+
*/
|
|
11
|
+
label?: string;
|
|
12
|
+
|
|
13
|
+
/** @title Отображать в раскрытом виде */
|
|
14
|
+
isUnfolded?: boolean;
|
|
15
|
+
|
|
16
|
+
colorPalette?: ColorPalette;
|
|
17
|
+
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ColorPalette, UniBlockProps } from '../../model/ContentPageDef';
|
|
2
|
-
import type { BlockItemCommonProps } from './OtherProductsContent';
|
|
3
|
-
export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
|
|
4
|
-
dataTheme?: ColorPalette;
|
|
5
|
-
}
|
|
6
|
-
export declare const OtherProductsItem: import("@redneckz/uni-jsx").UNIComponent<BlockItemProps, any, any>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ColorPalette, UniBlockProps } from '../../model/ContentPageDef';
|
|
2
|
-
import type { BlockItemCommonProps } from './OtherProductsContent';
|
|
3
|
-
export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
|
|
4
|
-
dataTheme?: ColorPalette;
|
|
5
|
-
}
|
|
6
|
-
export declare const OtherProductsItem: import("@redneckz/uni-jsx").UNIComponent<BlockItemProps, any, any>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.OtherProductsItem = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const renderBlocksList_1 = require("../../ui-kit/BlocksList/renderBlocksList");
|
|
6
|
-
const DefaultFoldButton_1 = require("../../ui-kit/Foldable/DefaultFoldButton");
|
|
7
|
-
const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
|
|
8
|
-
const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
|
|
9
|
-
const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
10
|
-
exports.OtherProductsItem = (0, uni_jsx_1.JSX)(({ label = '', blocks, context, dataTheme, isUnfolded: unfoldedByDefault }) => {
|
|
11
|
-
const foldableBlocks = (0, renderBlocksList_1.renderBlocksList)({
|
|
12
|
-
context,
|
|
13
|
-
blocks,
|
|
14
|
-
});
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "\u02DDborder-0 border-b border-solid border-main-divider", children: blocks?.length ? ((0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { unfoldedByDefault: unfoldedByDefault, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)("div", { className: "box-border", children: (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "grid grid-cols-12 gap-1 border-box", isUnfolded: isUnfolded, children: foldableBlocks }) })), renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { label: label, icon: icons[Number(isUnfolded)], dataTheme: dataTheme, onClick: onToggle })) })) : null }));
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=OtherProductsItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OtherProductsItem.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProductsItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,+EAA4E;AAC5E,+EAA4E;AAC5E,6DAA0D;AAC1D,2EAAwE;AAQxE,MAAM,KAAK,GAAe,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAE9C,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,EAAE,EAAE;IAC5E,MAAM,cAAc,GAAG,IAAA,mCAAgB,EAAC;QACtC,OAAO;QACP,MAAM;KACP,CAAY,CAAC;IAEd,OAAO,CACL,gCAAK,SAAS,EAAC,0DAAqD,YACjE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,iBAAiB,EACpC,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,gCAAK,SAAS,EAAC,YAAY,YACzB,uBAAC,iCAAe,IACd,SAAS,EAAC,oCAAoC,EAC9C,UAAU,EAAE,UAAU,YAErB,cAAc,GACC,GACd,CACP,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,uBAAC,qCAAiB,IAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,CACH,CAAC,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ColorPalette, UniBlockProps } from '../../model/ContentPageDef';
|
|
2
|
-
import type { BlockItemCommonProps } from './OtherProductsContent';
|
|
3
|
-
export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
|
|
4
|
-
dataTheme?: ColorPalette;
|
|
5
|
-
}
|
|
6
|
-
export declare const OtherProductsItem: import("@redneckz/uni-jsx").UNIComponent<BlockItemProps, any, any>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { renderBlocksList } from '../../ui-kit/BlocksList/renderBlocksList.js';
|
|
4
|
-
import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton.js';
|
|
5
|
-
import { Foldable } from '../../ui-kit/Foldable/Foldable.js';
|
|
6
|
-
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection.js';
|
|
7
|
-
const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
8
|
-
export const OtherProductsItem = JSX(({ label = '', blocks, context, dataTheme, isUnfolded: unfoldedByDefault }) => {
|
|
9
|
-
const foldableBlocks = renderBlocksList({
|
|
10
|
-
context,
|
|
11
|
-
blocks,
|
|
12
|
-
});
|
|
13
|
-
return (_jsx("div", { className: "\u02DDborder-0 border-b border-solid border-main-divider", children: blocks?.length ? (_jsx(Foldable, { unfoldedByDefault: unfoldedByDefault, renderFoldableSection: ({ isUnfolded }) => (_jsx("div", { className: "box-border", children: _jsx(FoldableSection, { className: "grid grid-cols-12 gap-1 border-box", isUnfolded: isUnfolded, children: foldableBlocks }) })), renderFoldButton: ({ isUnfolded, onToggle }) => (_jsx(DefaultFoldButton, { label: label, icon: icons[Number(isUnfolded)], dataTheme: dataTheme, onClick: onToggle })) })) : null }));
|
|
14
|
-
});
|
|
15
|
-
//# sourceMappingURL=OtherProductsItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OtherProductsItem.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProductsItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAQxE,MAAM,KAAK,GAAe,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAE3D,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,EAAE,EAAE;IAC5E,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACtC,OAAO;QACP,MAAM;KACP,CAAY,CAAC;IAEd,OAAO,CACL,cAAK,SAAS,EAAC,0DAAqD,YACjE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,KAAC,QAAQ,IACP,iBAAiB,EAAE,iBAAiB,EACpC,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,cAAK,SAAS,EAAC,YAAY,YACzB,KAAC,eAAe,IACd,SAAS,EAAC,oCAAoC,EAC9C,UAAU,EAAE,UAAU,YAErB,cAAc,GACC,GACd,CACP,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,KAAC,iBAAiB,IAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,CACH,CAAC,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ColorPalette, UniBlockProps } from '../../model/ContentPageDef';
|
|
2
|
-
import type { BlockItemCommonProps } from './OtherProductsContent';
|
|
3
|
-
export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
|
|
4
|
-
dataTheme?: ColorPalette;
|
|
5
|
-
}
|
|
6
|
-
export declare const OtherProductsItem: import("@redneckz/uni-jsx").UNIComponent<BlockItemProps, any, any>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ColorPalette, UniBlockProps } from '../../model/ContentPageDef';
|
|
2
|
-
import type { BlockItemCommonProps } from './OtherProductsContent';
|
|
3
|
-
export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
|
|
4
|
-
dataTheme?: ColorPalette;
|
|
5
|
-
}
|
|
6
|
-
export declare const OtherProductsItem: import("@redneckz/uni-jsx").UNIComponent<BlockItemProps, any, any>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.OtherProductsItem = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const renderBlocksList_1 = require("../../ui-kit/BlocksList/renderBlocksList");
|
|
6
|
-
const DefaultFoldButton_1 = require("../../ui-kit/Foldable/DefaultFoldButton");
|
|
7
|
-
const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
|
|
8
|
-
const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
|
|
9
|
-
const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
10
|
-
exports.OtherProductsItem = (0, uni_jsx_1.JSX)(({ label = '', blocks, context, dataTheme, isUnfolded: unfoldedByDefault }) => {
|
|
11
|
-
const foldableBlocks = (0, renderBlocksList_1.renderBlocksList)({
|
|
12
|
-
context,
|
|
13
|
-
blocks,
|
|
14
|
-
});
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "\u02DDborder-0 border-b border-solid border-main-divider", children: blocks?.length ? ((0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { unfoldedByDefault: unfoldedByDefault, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)("div", { className: "box-border", children: (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "grid grid-cols-12 gap-1 border-box", isUnfolded: isUnfolded, children: foldableBlocks }) })), renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { label: label, icon: icons[Number(isUnfolded)], dataTheme: dataTheme, onClick: onToggle })) })) : null }));
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=OtherProductsItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OtherProductsItem.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProductsItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,+EAA4E;AAC5E,+EAA4E;AAC5E,6DAA0D;AAC1D,2EAAwE;AAQxE,MAAM,KAAK,GAAe,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAE9C,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,EAAE,EAAE;IAC5E,MAAM,cAAc,GAAG,IAAA,mCAAgB,EAAC;QACtC,OAAO;QACP,MAAM;KACP,CAAY,CAAC;IAEd,OAAO,CACL,gCAAK,SAAS,EAAC,0DAAqD,YACjE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,iBAAiB,EACpC,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,gCAAK,SAAS,EAAC,YAAY,YACzB,uBAAC,iCAAe,IACd,SAAS,EAAC,oCAAoC,EAC9C,UAAU,EAAE,UAAU,YAErB,cAAc,GACC,GACd,CACP,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,uBAAC,qCAAiB,IAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,CACH,CAAC,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ColorPalette, UniBlockProps } from '../../model/ContentPageDef';
|
|
2
|
-
import type { BlockItemCommonProps } from './OtherProductsContent';
|
|
3
|
-
export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
|
|
4
|
-
dataTheme?: ColorPalette;
|
|
5
|
-
}
|
|
6
|
-
export declare const OtherProductsItem: import("@redneckz/uni-jsx").UNIComponent<BlockItemProps, any, any>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { renderBlocksList } from '../../ui-kit/BlocksList/renderBlocksList.js';
|
|
4
|
-
import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton.js';
|
|
5
|
-
import { Foldable } from '../../ui-kit/Foldable/Foldable.js';
|
|
6
|
-
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection.js';
|
|
7
|
-
const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
8
|
-
export const OtherProductsItem = JSX(({ label = '', blocks, context, dataTheme, isUnfolded: unfoldedByDefault }) => {
|
|
9
|
-
const foldableBlocks = renderBlocksList({
|
|
10
|
-
context,
|
|
11
|
-
blocks,
|
|
12
|
-
});
|
|
13
|
-
return (_jsx("div", { className: "\u02DDborder-0 border-b border-solid border-main-divider", children: blocks?.length ? (_jsx(Foldable, { unfoldedByDefault: unfoldedByDefault, renderFoldableSection: ({ isUnfolded }) => (_jsx("div", { className: "box-border", children: _jsx(FoldableSection, { className: "grid grid-cols-12 gap-1 border-box", isUnfolded: isUnfolded, children: foldableBlocks }) })), renderFoldButton: ({ isUnfolded, onToggle }) => (_jsx(DefaultFoldButton, { label: label, icon: icons[Number(isUnfolded)], dataTheme: dataTheme, onClick: onToggle })) })) : null }));
|
|
14
|
-
});
|
|
15
|
-
//# sourceMappingURL=OtherProductsItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OtherProductsItem.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProductsItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAQxE,MAAM,KAAK,GAAe,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAE3D,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,EAAE,EAAE;IAC5E,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACtC,OAAO;QACP,MAAM;KACP,CAAY,CAAC;IAEd,OAAO,CACL,cAAK,SAAS,EAAC,0DAAqD,YACjE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,KAAC,QAAQ,IACP,iBAAiB,EAAE,iBAAiB,EACpC,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,cAAK,SAAS,EAAC,YAAY,YACzB,KAAC,eAAe,IACd,SAAS,EAAC,oCAAoC,EAC9C,UAAU,EAAE,UAAU,YAErB,cAAc,GACC,GACd,CACP,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,KAAC,iBAAiB,IAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,CACH,CAAC,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|