@redneckz/wildless-cms-uni-blocks 0.14.150 → 0.14.152
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/bundle.umd.js +1 -1
- package/bundle/bundle.umd.min.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +2 -0
- package/mobile/bundle/bundle.umd.js +1 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/src/components/UnitBlock/UnitBlock.example.json +7 -1
- package/mobile/src/components/UnitBlock/UnitBlock.ui.json +1 -1
- package/package.json +1 -1
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +34 -0
- package/src/components/UnitBlock/UnitBlock.example.json +7 -1
- package/src/components/UnitBlock/UnitBlock.ui.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{
|
|
1
|
+
{}
|
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
1
2
|
import { type Picture } from '../../model/Picture';
|
|
2
3
|
import '../../setup-fixture';
|
|
3
4
|
import { type ComplexBenefitContent } from '../../ui-kit/BenefitItem/BenefitItemContent';
|
|
4
5
|
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
6
|
+
import { Blocks } from '../Blocks';
|
|
5
7
|
import { ProductBlock } from './ProductBlock';
|
|
6
8
|
import { type ProductBlockContent } from './ProductBlockContent';
|
|
7
9
|
|
|
@@ -125,6 +127,16 @@ const PRODUCT_BLOCK_WITH_BACK_BUTTON: ProductBlockContent = {
|
|
|
125
127
|
image,
|
|
126
128
|
};
|
|
127
129
|
|
|
130
|
+
const options = {
|
|
131
|
+
blocksRegistry: Blocks,
|
|
132
|
+
} as BlockRendererOptions;
|
|
133
|
+
|
|
134
|
+
const UNIT_BLOCK_DATA = {
|
|
135
|
+
prefix: 'от',
|
|
136
|
+
unit: 5,
|
|
137
|
+
suffix: 'баллов',
|
|
138
|
+
};
|
|
139
|
+
|
|
128
140
|
export default {
|
|
129
141
|
'primary with back button': (
|
|
130
142
|
<div className="container grid grid-cols-12">
|
|
@@ -284,4 +296,26 @@ export default {
|
|
|
284
296
|
/>
|
|
285
297
|
</div>
|
|
286
298
|
),
|
|
299
|
+
'with nested unit block': (
|
|
300
|
+
<div className="container grid grid-cols-12">
|
|
301
|
+
<ProductBlock
|
|
302
|
+
className="col-span-6"
|
|
303
|
+
options={options}
|
|
304
|
+
title="300 приветственных баллов"
|
|
305
|
+
description="За операции оплаты товаров и услуг на общую сумму 1000 рублей"
|
|
306
|
+
block={{ blocks: [{ type: 'UnitBlock', content: UNIT_BLOCK_DATA }] }}
|
|
307
|
+
/>
|
|
308
|
+
</div>
|
|
309
|
+
),
|
|
310
|
+
'with nested unit block full width': (
|
|
311
|
+
<div className="container grid grid-cols-12">
|
|
312
|
+
<ProductBlock
|
|
313
|
+
className="col-span-12"
|
|
314
|
+
options={options}
|
|
315
|
+
title="300 приветственных баллов"
|
|
316
|
+
description="За операции оплаты товаров и услуг на общую сумму 1000 рублей"
|
|
317
|
+
block={{ blocks: [{ type: 'UnitBlock', content: UNIT_BLOCK_DATA }] }}
|
|
318
|
+
/>
|
|
319
|
+
</div>
|
|
320
|
+
),
|
|
287
321
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{
|
|
1
|
+
{}
|