@redneckz/wildless-cms-uni-blocks 0.2.94 → 0.2.96
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 +54 -38
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/AccordionBlocks.d.ts +1 -2
- package/dist/components/Accordion/AccordionBlocks.js +2 -2
- package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.js +3 -6
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.js +7 -2
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/CreditCalculator/CreditCalculator.js +3 -3
- package/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Sitemap.js +1 -1
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +1 -1
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/dist/components/Gallery/GalleryCardInner.js +19 -0
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -0
- package/dist/components/Gallery/GalleryContainer.d.ts +13 -0
- package/dist/components/Gallery/GalleryContainer.js +16 -0
- package/dist/components/Gallery/GalleryContainer.js.map +1 -0
- package/dist/components/Gallery/GalleryContent.d.ts +8 -2
- package/dist/components/Gallery/GalleryInner.d.ts +1 -1
- package/dist/components/Gallery/GalleryInner.js +8 -36
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Gallery/constants.d.ts +6 -0
- package/dist/components/Gallery/constants.js +19 -0
- package/dist/components/Gallery/constants.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -1
- package/dist/ui-kit/BlockItem/BlockItem.js +4 -4
- package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +2 -2
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +2 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/SearchBar.js +1 -1
- package/dist/ui-kit/SearchBar.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/AccordionBlocks.d.ts +1 -2
- package/lib/components/Accordion/AccordionBlocks.js +1 -2
- package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.js +1 -1
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.js +7 -2
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/CreditCalculator/CreditCalculator.js +3 -3
- package/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Sitemap.js +1 -1
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +1 -1
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/lib/components/Gallery/GalleryCardInner.js +17 -0
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -0
- package/lib/components/Gallery/GalleryContainer.d.ts +13 -0
- package/lib/components/Gallery/GalleryContainer.js +14 -0
- package/lib/components/Gallery/GalleryContainer.js.map +1 -0
- package/lib/components/Gallery/GalleryContent.d.ts +8 -2
- package/lib/components/Gallery/GalleryInner.d.ts +1 -1
- package/lib/components/Gallery/GalleryInner.js +6 -34
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/Gallery/constants.d.ts +6 -0
- package/lib/components/Gallery/constants.js +17 -0
- package/lib/components/Gallery/constants.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -1
- package/lib/ui-kit/BlockItem/BlockItem.js +4 -4
- package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +2 -2
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +2 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/SearchBar.js +1 -1
- package/lib/ui-kit/SearchBar.js.map +1 -1
- package/package.json +4 -3
- package/src/components/Accordion/Accordion.fixture.tsx +5 -1
- package/src/components/Accordion/AccordionBlocks.tsx +1 -3
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/BaseTile/BaseTile.tsx +8 -3
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +31 -28
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +43 -53
- package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +9 -1
- package/src/components/CreditCalculator/CreditCalculator.tsx +11 -8
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
- package/src/components/Footer/Footer.fixture.tsx +265 -258
- package/src/components/Footer/Footer.tsx +3 -3
- package/src/components/Footer/Sitemap.tsx +1 -1
- package/src/components/Gallery/Gallery.fixture.tsx +52 -48
- package/src/components/Gallery/Gallery.mobile.tsx +1 -3
- package/src/components/Gallery/GalleryCardInner.tsx +53 -0
- package/src/components/Gallery/GalleryContainer.tsx +58 -0
- package/src/components/Gallery/GalleryContent.ts +8 -2
- package/src/components/Gallery/GalleryInner.tsx +15 -94
- package/src/components/Gallery/constants.ts +22 -0
- package/src/components/Headline/Headline.fixture.tsx +25 -3
- package/src/components/LikeControl/LikeControl.fixture.tsx +5 -1
- package/src/components/LinkDocs/LinkDocs.fixture.tsx +21 -4
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +12 -22
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
- package/src/components/PictureText/PictureText.fixture.tsx +5 -1
- package/src/components/Placeholder/Placeholder.fixture.tsx +5 -1
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +82 -76
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +96 -93
- package/src/components/ProductTile/ProductTile.fixture.tsx +4 -4
- package/src/components/PromoTile/PromoTile.fixture.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +21 -18
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +5 -16
- package/src/components/TariffsTable/TariffsTableContent.ts +5 -1
- package/src/components/TextBlock/TextBlock.fixture.tsx +62 -45
- package/src/components/Tile/Tile.fixture.tsx +11 -8
- package/src/setup-fixture.ts +1 -2
- package/src/ui-kit/BlockItem/BlockItem.tsx +4 -4
- package/src/ui-kit/Checkbox/Checkbox.tsx +7 -3
- package/src/ui-kit/InputRange/InputRange.tsx +7 -6
- package/src/ui-kit/SearchBar.tsx +3 -4
|
@@ -195,71 +195,61 @@ const columns2: Column[] = [
|
|
|
195
195
|
|
|
196
196
|
export default {
|
|
197
197
|
'with images': (
|
|
198
|
-
<div className="
|
|
199
|
-
<
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
/>
|
|
207
|
-
</div>
|
|
198
|
+
<div className="container grid grid-cols-12">
|
|
199
|
+
<ComparisonTable
|
|
200
|
+
className="col-span-12"
|
|
201
|
+
title="Другие дебетовые карты Россельхозбанка"
|
|
202
|
+
context={context}
|
|
203
|
+
rowHeaders={rowHeaders}
|
|
204
|
+
columns={Array(2).fill(columns).flat()}
|
|
205
|
+
/>
|
|
208
206
|
</div>
|
|
209
207
|
),
|
|
210
208
|
'with images and hidden rows': (
|
|
211
|
-
<div className="
|
|
212
|
-
<
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
/>
|
|
221
|
-
</div>
|
|
209
|
+
<div className="container grid grid-cols-12">
|
|
210
|
+
<ComparisonTable
|
|
211
|
+
className="col-span-12"
|
|
212
|
+
title="Другие дебетовые карты Россельхозбанка"
|
|
213
|
+
visibleRowLength={3}
|
|
214
|
+
context={context}
|
|
215
|
+
rowHeaders={rowHeaders}
|
|
216
|
+
columns={Array(2).fill(columns).flat()}
|
|
217
|
+
/>
|
|
222
218
|
</div>
|
|
223
219
|
),
|
|
224
220
|
'with images and colored first column': (
|
|
225
|
-
<div className="
|
|
226
|
-
<
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
/>
|
|
236
|
-
</div>
|
|
221
|
+
<div className="container grid grid-cols-12">
|
|
222
|
+
<ComparisonTable
|
|
223
|
+
className="col-span-12"
|
|
224
|
+
title="Другие дебетовые карты Россельхозбанка"
|
|
225
|
+
visibleRowLength={3}
|
|
226
|
+
isColoredFirstColumn={true}
|
|
227
|
+
context={context}
|
|
228
|
+
rowHeaders={rowHeaders}
|
|
229
|
+
columns={Array(2).fill(columns).flat()}
|
|
230
|
+
/>
|
|
237
231
|
</div>
|
|
238
232
|
),
|
|
239
233
|
'with icons': (
|
|
240
|
-
<div className="
|
|
241
|
-
<
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
/>
|
|
249
|
-
</div>
|
|
234
|
+
<div className="container grid grid-cols-12">
|
|
235
|
+
<ComparisonTable
|
|
236
|
+
className="col-span-12"
|
|
237
|
+
title="Другие вклады и сбережения"
|
|
238
|
+
context={context}
|
|
239
|
+
rowHeaders={rowHeaders2}
|
|
240
|
+
columns={Array(2).fill(columns2).flat()}
|
|
241
|
+
/>
|
|
250
242
|
</div>
|
|
251
243
|
),
|
|
252
244
|
'with icons and two cols': (
|
|
253
|
-
<div className="
|
|
254
|
-
<
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
/>
|
|
262
|
-
</div>
|
|
245
|
+
<div className="container grid grid-cols-12">
|
|
246
|
+
<ComparisonTable
|
|
247
|
+
className="col-span-12"
|
|
248
|
+
title="Другие вклады и сбережения"
|
|
249
|
+
context={context}
|
|
250
|
+
rowHeaders={rowHeaders2}
|
|
251
|
+
columns={columns2.slice(0, 2)}
|
|
252
|
+
/>
|
|
263
253
|
</div>
|
|
264
254
|
),
|
|
265
255
|
};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { CreditCalculator } from './CreditCalculator';
|
|
2
2
|
import { context } from '../../setup-fixture';
|
|
3
3
|
|
|
4
|
-
export default
|
|
4
|
+
export default (
|
|
5
|
+
<div className="container grid grid-cols-12">
|
|
6
|
+
<CreditCalculator
|
|
7
|
+
className="col-span-12"
|
|
8
|
+
context={context}
|
|
9
|
+
directoryName="credit-calculator-data"
|
|
10
|
+
/>
|
|
11
|
+
</div>
|
|
12
|
+
);
|
|
@@ -27,7 +27,7 @@ const STEP_MONEY = 1000;
|
|
|
27
27
|
const STEP_MONTHS = 1;
|
|
28
28
|
const DEFAULT_PAYMENT_TYPE = 'annuity';
|
|
29
29
|
|
|
30
|
-
const borderStyle = 'border-solid border-
|
|
30
|
+
const borderStyle = 'border-solid border-[3px] border-primary-main rounded-md';
|
|
31
31
|
|
|
32
32
|
export const CreditCalculator = JSX<CreditCalculatorProps>(
|
|
33
33
|
({ context, className, directoryName }) => {
|
|
@@ -72,10 +72,12 @@ export const CreditCalculator = JSX<CreditCalculatorProps>(
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
return (
|
|
75
|
-
<section className={`font-sans text-primary-text bg-white p-4 ${className}`}>
|
|
76
|
-
<div
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
<section className={`font-sans text-primary-text bg-white p-4 w-[847px] ${className || ''}`}>
|
|
76
|
+
<div
|
|
77
|
+
className={`box-border p-[49px] pr-[53px] flex flex-col justify-between ${borderStyle}`}
|
|
78
|
+
>
|
|
79
|
+
<div className="flex justify-between ">
|
|
80
|
+
<div className="grow mr-[42px] w-[465px]">
|
|
79
81
|
<InputRange
|
|
80
82
|
title="Желаемая сумма кредита, ₽"
|
|
81
83
|
items={[
|
|
@@ -89,6 +91,7 @@ export const CreditCalculator = JSX<CreditCalculatorProps>(
|
|
|
89
91
|
onChange={setMoneyValue}
|
|
90
92
|
/>
|
|
91
93
|
<InputRange
|
|
94
|
+
className="mt-[23px]"
|
|
92
95
|
title="Срок кредита, месяцев"
|
|
93
96
|
items={['Или выберите из предложенных вариантов ниже']}
|
|
94
97
|
min={minMonths}
|
|
@@ -106,14 +109,14 @@ export const CreditCalculator = JSX<CreditCalculatorProps>(
|
|
|
106
109
|
onChange={setIsAnnuityChecked}
|
|
107
110
|
/>
|
|
108
111
|
<Checkbox
|
|
109
|
-
className="mb-
|
|
112
|
+
className="mt-3 mb-7"
|
|
110
113
|
text="Комплексная страховая защита"
|
|
111
114
|
checked={isInsuranceChecked}
|
|
112
115
|
onChange={setIsInsuranceChecked}
|
|
113
116
|
/>
|
|
114
117
|
</div>
|
|
115
|
-
<div className="p-9 bg-primary-main rounded-md text-white">
|
|
116
|
-
<div className="text-base mb-
|
|
118
|
+
<div className="basis-[226px] shrink-0 box-border h-fit p-9 bg-primary-main rounded-md text-white">
|
|
119
|
+
<div className="text-base mb-[18px]">Наше предложение</div>
|
|
117
120
|
<div className="text-sm opacity-60">Ежемесячный платёж</div>
|
|
118
121
|
<div className="text-lg mb-3">
|
|
119
122
|
{addSpacesBetweenNumbers(Math.round(montlyPayment))} ₽
|