@redneckz/wildless-cms-uni-blocks 0.14.1 → 0.14.3
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 +27 -26
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/bundle/ui-kit/ClientOnly.d.ts +1 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
- package/bundle/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
- package/bundle/ui-kit/SwipeListControl/isShowDots.mobile.d.ts +1 -0
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinkButton.js +2 -2
- package/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +1 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/Footer/Contacts.js +1 -1
- package/dist/components/Header/HeaderSubMenu.js +2 -1
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +3 -2
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
- package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/dist/components/StickyBottomMenu/RenderMenuItems.js +1 -2
- package/dist/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +2 -2
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/dist/ui-kit/ClientOnly.d.ts +1 -0
- package/dist/ui-kit/ClientOnly.js +7 -0
- package/dist/ui-kit/ClientOnly.js.map +1 -0
- package/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
- package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.js +4 -4
- package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
- package/dist/ui-kit/SwipeListControl/isShowDots.js +4 -0
- package/dist/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/isShowDots.mobile.d.ts +1 -0
- package/dist/ui-kit/SwipeListControl/isShowDots.mobile.js +4 -0
- package/dist/ui-kit/SwipeListControl/isShowDots.mobile.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinkButton.js +2 -2
- package/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +1 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/Footer/Contacts.js +1 -1
- package/lib/components/Header/HeaderSubMenu.js +2 -1
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +3 -2
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
- package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/lib/components/StickyBottomMenu/RenderMenuItems.js +1 -2
- package/lib/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +3 -3
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.d.ts +1 -0
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.mobile.d.ts +8 -0
- package/lib/ui-kit/ClientOnly.d.ts +1 -0
- package/lib/ui-kit/ClientOnly.js +5 -0
- package/lib/ui-kit/ClientOnly.js.map +1 -0
- package/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
- package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.js +4 -4
- package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
- package/lib/ui-kit/SwipeListControl/isShowDots.js +2 -0
- package/lib/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/isShowDots.mobile.d.ts +1 -0
- package/lib/ui-kit/SwipeListControl/isShowDots.mobile.js +2 -0
- package/lib/ui-kit/SwipeListControl/isShowDots.mobile.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +40 -45
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/mobile/bundle/ui-kit/ClientOnly.d.ts +1 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
- package/mobile/bundle/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
- package/mobile/dist/components/Carousel/Carousel.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +2 -2
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.js +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js +2 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +3 -2
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/RenderMenuItems.js +1 -2
- package/mobile/dist/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +2 -2
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/dist/ui-kit/ClientOnly.d.ts +1 -0
- package/mobile/dist/ui-kit/ClientOnly.js +7 -0
- package/mobile/dist/ui-kit/ClientOnly.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js +4 -4
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/isShowDots.js +4 -0
- package/mobile/dist/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +2 -2
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.js +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js +2 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +3 -2
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/RenderMenuItems.js +1 -2
- package/mobile/lib/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +3 -3
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/lib/ui-kit/ClientOnly.d.ts +1 -0
- package/mobile/lib/ui-kit/ClientOnly.js +5 -0
- package/mobile/lib/ui-kit/ClientOnly.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js +4 -4
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/isShowDots.js +2 -0
- package/mobile/lib/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
- package/mobile/src/components/Carousel/Carousel.tsx +1 -0
- package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +2 -2
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
- package/mobile/src/components/Footer/Contacts.tsx +1 -1
- package/mobile/src/components/Header/HeaderSubMenu.tsx +6 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +19 -6
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +8 -14
- package/mobile/src/components/StickyBottomMenu/RenderMenuItems.tsx +5 -11
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +6 -4
- package/mobile/src/ui-kit/ClientOnly.tsx +6 -0
- package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +2 -2
- package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +10 -6
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +11 -2
- package/mobile/src/ui-kit/SwipeListControl/isShowDots.tsx +1 -0
- package/package.json +1 -1
- package/src/components/Carousel/Carousel.tsx +1 -0
- package/src/components/CarouselLinks/CarouselLinkButton.tsx +2 -2
- package/src/components/ContentPage/ContentPage.tsx +2 -2
- package/src/components/Footer/Contacts.tsx +1 -1
- package/src/components/Header/HeaderSubMenu.tsx +6 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +19 -6
- package/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
- package/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +8 -14
- package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +1 -1
- package/src/components/StickyBottomMenu/RenderMenuItems.tsx +5 -11
- package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +6 -4
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.mobile.tsx +66 -0
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +19 -0
- package/src/ui-kit/Button/Button.fixture.tsx +22 -22
- package/src/ui-kit/ClientOnly.tsx +6 -0
- package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +2 -2
- package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +2 -2
- package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
- package/src/ui-kit/Sitemap/Sitemap.tsx +10 -6
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -1
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +11 -2
- package/src/ui-kit/SwipeListControl/isShowDots.mobile.tsx +1 -0
- package/src/ui-kit/SwipeListControl/isShowDots.tsx +1 -0
- package/src/ui-kit/TopItem/TopItem.fixture.tsx +2 -2
- package/bundle/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
- package/bundle/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +0 -3
- package/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
- package/bundle/components/OfficesAtmsMap/renderDay.d.ts +0 -1
- package/dist/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
- package/dist/components/MobileAppTile/buttonsConditionStyle.js +0 -6
- package/dist/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
- package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +0 -3
- package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.js +0 -13
- package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.js.map +0 -1
- package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
- package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js +0 -2
- package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +0 -1
- package/dist/components/OfficesAtmsMap/renderDay.d.ts +0 -1
- package/dist/components/OfficesAtmsMap/renderDay.js +0 -2
- package/dist/components/OfficesAtmsMap/renderDay.js.map +0 -1
- package/lib/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
- package/lib/components/MobileAppTile/buttonsConditionStyle.js +0 -3
- package/lib/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
- package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +0 -2
- package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.js +0 -10
- package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.js.map +0 -1
- package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
- package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js +0 -2
- package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +0 -1
- package/lib/components/OfficesAtmsMap/renderDay.d.ts +0 -1
- package/lib/components/OfficesAtmsMap/renderDay.js +0 -2
- package/lib/components/OfficesAtmsMap/renderDay.js.map +0 -1
- package/mobile/bundle/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
- package/mobile/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
- package/mobile/bundle/components/OfficesAtmsMap/renderDay.d.ts +0 -1
- package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
- package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.js +0 -13
- package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
- package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
- package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js +0 -2
- package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +0 -1
- package/mobile/dist/components/OfficesAtmsMap/renderDay.d.ts +0 -1
- package/mobile/dist/components/OfficesAtmsMap/renderDay.js +0 -2
- package/mobile/dist/components/OfficesAtmsMap/renderDay.js.map +0 -1
- package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
- package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.js +0 -10
- package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
- package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
- package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js +0 -2
- package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +0 -1
- package/mobile/lib/components/OfficesAtmsMap/renderDay.d.ts +0 -1
- package/mobile/lib/components/OfficesAtmsMap/renderDay.js +0 -2
- package/mobile/lib/components/OfficesAtmsMap/renderDay.js.map +0 -1
- package/mobile/src/components/MobileAppTile/buttonsConditionStyle.tsx +0 -12
- package/mobile/src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx +0 -2
- package/mobile/src/components/OfficesAtmsMap/renderDay.tsx +0 -2
- package/src/components/MobileAppTile/buttonsConditionStyle.mobile.tsx +0 -12
- package/src/components/MobileAppTile/buttonsConditionStyle.tsx +0 -5
- package/src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx +0 -2
- package/src/components/OfficesAtmsMap/renderDay.tsx +0 -2
|
@@ -6,6 +6,7 @@ import type { UniBlockProps } from '../../model/JSXBlock';
|
|
|
6
6
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
7
|
import { Button } from '../../ui-kit/Button/Button';
|
|
8
8
|
import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
|
|
9
|
+
import { ClientOnly } from '../../ui-kit/ClientOnly';
|
|
9
10
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
10
11
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
11
12
|
import { Img } from '../../ui-kit/Img/Img';
|
|
@@ -39,12 +40,9 @@ const FILTRATION_LABELS = {
|
|
|
39
40
|
billAcceptorEnable: 'Прием наличных',
|
|
40
41
|
};
|
|
41
42
|
|
|
42
|
-
const
|
|
43
|
+
const FILTRATION_PREDICATES = {
|
|
43
44
|
safeBoxCaseVolumes: (item: Branch) => Boolean(item.safeBoxCaseVolumes),
|
|
44
45
|
workingSaturday: (item: Branch) => Boolean(item.workSchedule?.workingSaturday),
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const FILTRATION_ATMS_PREDICATES = {
|
|
48
46
|
terminalTypeAtms: (item: Atm) => item.terminalType?.toLowerCase() === 'банкомат',
|
|
49
47
|
terminalTypeTerm: (item: Atm) => item.terminalType?.toLowerCase() === 'терминал',
|
|
50
48
|
workAllTime: (item: Atm) => item.workTime?.toLowerCase() === 'круглосуточно',
|
|
@@ -95,7 +93,9 @@ export const OfficesAtmsMap = JSX<OfficesAtmsMapProps>(({ data, className = '',
|
|
|
95
93
|
{renderFiltrationForm(Object.keys(initialState), { field, reset })}
|
|
96
94
|
</div>
|
|
97
95
|
<div className="h-[600px]">
|
|
98
|
-
<
|
|
96
|
+
<ClientOnly>
|
|
97
|
+
<YandexMap points={points} className="h-full" />
|
|
98
|
+
</ClientOnly>
|
|
99
99
|
</div>
|
|
100
100
|
</div>
|
|
101
101
|
{filteredOfficesAtmsData.map(dataType === 'offices' ? renderOfficeCard : renderAtmCard)}
|
|
@@ -106,17 +106,11 @@ export const OfficesAtmsMap = JSX<OfficesAtmsMapProps>(({ data, className = '',
|
|
|
106
106
|
const filterOfficesAtms = (data: Branch[] | Atm[], filtrationState: Record<string, boolean>) => {
|
|
107
107
|
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
108
108
|
|
|
109
|
-
return
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
return (data as Array<Branch | Atm>).filter((item) =>
|
|
110
|
+
truthyFilters.every((filterName) => FILTRATION_PREDICATES[filterName](item)),
|
|
111
|
+
);
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
const filterOffices = (filters: string[]) => (item: Branch) =>
|
|
115
|
-
filters.every((filterName) => FILTRATION_BRANCHES_PREDICATES[filterName](item));
|
|
116
|
-
|
|
117
|
-
const filterAtms = (filters: string[]) => (item: Atm) =>
|
|
118
|
-
filters.every((filterName) => FILTRATION_ATMS_PREDICATES[filterName](item));
|
|
119
|
-
|
|
120
114
|
const getTitle = (name = '', dataType = 'offices') =>
|
|
121
115
|
dataType === 'offices' ? `Офисы филиала ${name}` : `Банкоматы филиала ${name}`;
|
|
122
116
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { MenuItemProps } from './StickyBottomMenuProps';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
3
|
import { RenderItem } from './RenderItem';
|
|
5
4
|
import { useActiveRoute } from '../../hooks/useActiveRoute';
|
|
6
5
|
|
|
@@ -13,15 +12,10 @@ export const RenderMenuItems = JSX<RenderMenuItems>(({ menuItems, onClick }) =>
|
|
|
13
12
|
const [activeIndex] = useActiveRoute(menuItems);
|
|
14
13
|
|
|
15
14
|
return (
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
{menuItems.map((_, i) => (
|
|
22
|
-
<RenderItem key={String(i)} isActive={i === activeIndex} item={_} onClick={onClick} />
|
|
23
|
-
))}
|
|
24
|
-
</div>
|
|
25
|
-
</BlockWrapper>
|
|
15
|
+
<div className="ml-auto container bg-white flex justify-center shadow-blue-gray">
|
|
16
|
+
{menuItems.map((_, i) => (
|
|
17
|
+
<RenderItem key={String(i)} isActive={i === activeIndex} item={_} onClick={onClick} />
|
|
18
|
+
))}
|
|
19
|
+
</div>
|
|
26
20
|
);
|
|
27
21
|
});
|
|
@@ -2,10 +2,10 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { projectSettings } from '../../ProjectSettings';
|
|
4
4
|
import { useSWRResource } from '../../hooks/useSWRResource';
|
|
5
|
-
import { BurgerMenuDialog } from './BurgerMenuDialog';
|
|
6
5
|
import type { MenuItemProps, StickyBottomMenuProps } from './StickyBottomMenuProps';
|
|
7
6
|
import { RenderMenuItems } from './RenderMenuItems';
|
|
8
7
|
import { useBurgerMenuDialog } from './useBurgerMenuDialog';
|
|
8
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
9
9
|
|
|
10
10
|
export const StickyBottomMenu = JSX<StickyBottomMenuProps>(({ ...rest }) => {
|
|
11
11
|
const { menuItems = [] } = useSWRResource<StickyBottomMenuProps>(
|
|
@@ -35,9 +35,11 @@ export const StickyBottomMenu = JSX<StickyBottomMenuProps>(({ ...rest }) => {
|
|
|
35
35
|
);
|
|
36
36
|
|
|
37
37
|
return (
|
|
38
|
-
<
|
|
38
|
+
<BlockWrapper
|
|
39
|
+
className="fixed bottom-0 left-0 right-0 my-0 mx-auto w-full bg-transparent z-[100]"
|
|
40
|
+
padding="p-0"
|
|
41
|
+
>
|
|
39
42
|
{<RenderMenuItems menuItems={menuItemsWithButton} onClick={toggle} />}
|
|
40
|
-
|
|
41
|
-
</div>
|
|
43
|
+
</BlockWrapper>
|
|
42
44
|
);
|
|
43
45
|
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
|
|
3
|
+
import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
4
|
+
import { Blocks } from '../Blocks';
|
|
5
|
+
import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
|
|
6
|
+
import { SwipeListControlBlock } from './SwipeListControlBlock';
|
|
7
|
+
|
|
8
|
+
const options = {
|
|
9
|
+
blocksRegistry: Blocks,
|
|
10
|
+
} as BlockRendererOptions;
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
default: (
|
|
14
|
+
<div className="container grid grid-cols-12">
|
|
15
|
+
<SwipeListControlBlock
|
|
16
|
+
className="col-span-12"
|
|
17
|
+
block={{
|
|
18
|
+
type: 'SwipeListControlBlock',
|
|
19
|
+
blocks: [
|
|
20
|
+
{ type: 'ProductTile', content: PRODUCT_TILE },
|
|
21
|
+
{ type: 'ProductTile', content: PRODUCT_TILE },
|
|
22
|
+
{ type: 'ProductTile', content: PRODUCT_TILE },
|
|
23
|
+
{ type: 'ProductTile', content: PRODUCT_TILE },
|
|
24
|
+
],
|
|
25
|
+
}}
|
|
26
|
+
showDots={true}
|
|
27
|
+
listType="vertical-list"
|
|
28
|
+
options={options}
|
|
29
|
+
/>
|
|
30
|
+
</div>
|
|
31
|
+
),
|
|
32
|
+
secondary: (
|
|
33
|
+
<div className="container grid grid-cols-12">
|
|
34
|
+
<SwipeListControlBlock
|
|
35
|
+
className="col-span-12"
|
|
36
|
+
block={{
|
|
37
|
+
type: 'SwipeListControlBlock',
|
|
38
|
+
blocks: [
|
|
39
|
+
{ type: 'ProductTile', content: { ...PRODUCT_TILE, version: '' } },
|
|
40
|
+
{ type: 'ProductTile', content: { ...PRODUCT_TILE, version: '' } },
|
|
41
|
+
],
|
|
42
|
+
}}
|
|
43
|
+
listType="vertical-list"
|
|
44
|
+
options={options}
|
|
45
|
+
version="secondary"
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
48
|
+
),
|
|
49
|
+
transparent: (
|
|
50
|
+
<div className="container grid grid-cols-12">
|
|
51
|
+
<SwipeListControlBlock
|
|
52
|
+
className="col-span-12"
|
|
53
|
+
block={{
|
|
54
|
+
type: 'SwipeListControlBlock',
|
|
55
|
+
blocks: [
|
|
56
|
+
{ type: 'ProductTile', content: { ...PRODUCT_TILE, version: '' } },
|
|
57
|
+
{ type: 'ProductTile', content: { ...PRODUCT_TILE, version: '' } },
|
|
58
|
+
],
|
|
59
|
+
}}
|
|
60
|
+
listType="vertical-list"
|
|
61
|
+
options={options}
|
|
62
|
+
version="transparent"
|
|
63
|
+
/>
|
|
64
|
+
</div>
|
|
65
|
+
),
|
|
66
|
+
};
|
|
@@ -60,4 +60,23 @@ export default {
|
|
|
60
60
|
/>
|
|
61
61
|
</div>
|
|
62
62
|
),
|
|
63
|
+
showDots: (
|
|
64
|
+
<div className="container grid grid-cols-12">
|
|
65
|
+
<SwipeListControlBlock
|
|
66
|
+
className="col-span-12"
|
|
67
|
+
showDots={true}
|
|
68
|
+
block={{
|
|
69
|
+
type: 'SwipeListControlBlock',
|
|
70
|
+
blocks: [
|
|
71
|
+
{ type: 'ProductTile', content: PRODUCT_TILE },
|
|
72
|
+
{ type: 'ProductTile', content: PRODUCT_TILE },
|
|
73
|
+
{ type: 'ProductTile', content: PRODUCT_TILE },
|
|
74
|
+
{ type: 'ProductTile', content: PRODUCT_TILE },
|
|
75
|
+
],
|
|
76
|
+
}}
|
|
77
|
+
listType="vertical-list"
|
|
78
|
+
options={options}
|
|
79
|
+
/>
|
|
80
|
+
</div>
|
|
81
|
+
),
|
|
63
82
|
};
|
|
@@ -9,17 +9,17 @@ export default {
|
|
|
9
9
|
<div>
|
|
10
10
|
<p>Private clients</p>
|
|
11
11
|
<div className="flex gap-xl" data-theme="pc">
|
|
12
|
-
<Button href="https://
|
|
13
|
-
<Button href="https://
|
|
14
|
-
<Button href="https://
|
|
12
|
+
<Button href="https://old.rshb.ru/" target="_blank" text="Primary" version="primary" />
|
|
13
|
+
<Button href="https://old.rshb.ru/" target="_blank" text="Link" version="secondary" />
|
|
14
|
+
<Button href="https://old.rshb.ru/" target="_blank" text="Secondary" version="link" />
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
17
|
<div>
|
|
18
18
|
<p>Business clients</p>
|
|
19
19
|
<div className="flex gap-xl" data-theme="bc">
|
|
20
|
-
<Button href="https://
|
|
20
|
+
<Button href="https://old.rshb.ru/" target="_blank" text="Primary" version="primary" />
|
|
21
21
|
<Button
|
|
22
|
-
href="https://
|
|
22
|
+
href="https://old.rshb.ru/"
|
|
23
23
|
target="_blank"
|
|
24
24
|
text="Secondary"
|
|
25
25
|
version="secondary"
|
|
@@ -29,9 +29,9 @@ export default {
|
|
|
29
29
|
<div>
|
|
30
30
|
<p>Ecosystem own</p>
|
|
31
31
|
<div className="flex gap-xl" data-theme="eo">
|
|
32
|
-
<Button href="https://
|
|
32
|
+
<Button href="https://old.rshb.ru/" target="_blank" text="Primary" version="primary" />
|
|
33
33
|
<Button
|
|
34
|
-
href="https://
|
|
34
|
+
href="https://old.rshb.ru/"
|
|
35
35
|
target="_blank"
|
|
36
36
|
text="Secondary"
|
|
37
37
|
version="secondary"
|
|
@@ -42,14 +42,14 @@ export default {
|
|
|
42
42
|
<p>Disabled</p>
|
|
43
43
|
<div className="flex gap-xl">
|
|
44
44
|
<Button
|
|
45
|
-
href="https://
|
|
45
|
+
href="https://old.rshb.ru/"
|
|
46
46
|
target="_blank"
|
|
47
47
|
text="Primary"
|
|
48
48
|
version="primary"
|
|
49
49
|
disabled
|
|
50
50
|
/>
|
|
51
51
|
<Button
|
|
52
|
-
href="https://
|
|
52
|
+
href="https://old.rshb.ru/"
|
|
53
53
|
target="_blank"
|
|
54
54
|
text="Secondary"
|
|
55
55
|
version="secondary"
|
|
@@ -61,7 +61,7 @@ export default {
|
|
|
61
61
|
<p>With Icon</p>
|
|
62
62
|
<div className="flex gap-xl" data-theme="pc">
|
|
63
63
|
<Button
|
|
64
|
-
href="https://
|
|
64
|
+
href="https://old.rshb.ru/"
|
|
65
65
|
target="_blank"
|
|
66
66
|
aboveText="Доступно в"
|
|
67
67
|
appendLeft={
|
|
@@ -74,7 +74,7 @@ export default {
|
|
|
74
74
|
version="secondary"
|
|
75
75
|
/>
|
|
76
76
|
<Button
|
|
77
|
-
href="https://
|
|
77
|
+
href="https://old.rshb.ru/"
|
|
78
78
|
target="_blank"
|
|
79
79
|
aboveText="Загрузите в"
|
|
80
80
|
appendLeft={
|
|
@@ -87,7 +87,7 @@ export default {
|
|
|
87
87
|
/>
|
|
88
88
|
|
|
89
89
|
<Button
|
|
90
|
-
href="https://
|
|
90
|
+
href="https://old.rshb.ru/"
|
|
91
91
|
target="_blank"
|
|
92
92
|
appendRight={
|
|
93
93
|
<div>
|
|
@@ -104,14 +104,14 @@ export default {
|
|
|
104
104
|
<div className="flex gap-xl" data-theme="pc">
|
|
105
105
|
<Button
|
|
106
106
|
rounded
|
|
107
|
-
href="https://
|
|
107
|
+
href="https://old.rshb.ru/"
|
|
108
108
|
target="_blank"
|
|
109
109
|
version="secondary"
|
|
110
110
|
appendLeft={<Img image={{ icon: 'PlayMarketIcon' }} width="20" height="21" />}
|
|
111
111
|
/>
|
|
112
112
|
<Button
|
|
113
113
|
rounded
|
|
114
|
-
href="https://
|
|
114
|
+
href="https://old.rshb.ru/"
|
|
115
115
|
target="_blank"
|
|
116
116
|
version="secondary"
|
|
117
117
|
appendLeft={<Img image={{ icon: 'AppleIcon' }} width="18" height="20" />}
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
123
123
|
'primary (Private clients)': (
|
|
124
124
|
<div data-theme="pc">
|
|
125
125
|
<Button
|
|
126
|
-
href="https://
|
|
126
|
+
href="https://old.rshb.ru/"
|
|
127
127
|
target="_blank"
|
|
128
128
|
text="Оформить кредит"
|
|
129
129
|
version="primary"
|
|
@@ -133,7 +133,7 @@ export default {
|
|
|
133
133
|
'secondary (Private clients)': (
|
|
134
134
|
<div data-theme="pc">
|
|
135
135
|
<Button
|
|
136
|
-
href="https://
|
|
136
|
+
href="https://old.rshb.ru/"
|
|
137
137
|
target="_blank"
|
|
138
138
|
text="Оформить кредит"
|
|
139
139
|
version="secondary"
|
|
@@ -143,7 +143,7 @@ export default {
|
|
|
143
143
|
'primary (Business clients)': (
|
|
144
144
|
<div data-theme="bc">
|
|
145
145
|
<Button
|
|
146
|
-
href="https://
|
|
146
|
+
href="https://old.rshb.ru/"
|
|
147
147
|
target="_blank"
|
|
148
148
|
text="Оформить кредит"
|
|
149
149
|
version="primary"
|
|
@@ -153,7 +153,7 @@ export default {
|
|
|
153
153
|
'secondary (Business clients)': (
|
|
154
154
|
<div data-theme="bc">
|
|
155
155
|
<Button
|
|
156
|
-
href="https://
|
|
156
|
+
href="https://old.rshb.ru/"
|
|
157
157
|
target="_blank"
|
|
158
158
|
text="Оформить кредит"
|
|
159
159
|
version="secondary"
|
|
@@ -163,7 +163,7 @@ export default {
|
|
|
163
163
|
'primary (Ecosystem own)': (
|
|
164
164
|
<div data-theme="eo">
|
|
165
165
|
<Button
|
|
166
|
-
href="https://
|
|
166
|
+
href="https://old.rshb.ru/"
|
|
167
167
|
target="_blank"
|
|
168
168
|
text="Оформить кредит"
|
|
169
169
|
version="primary"
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
173
173
|
'secondary (Ecosystem own)': (
|
|
174
174
|
<div data-theme="eo">
|
|
175
175
|
<Button
|
|
176
|
-
href="https://
|
|
176
|
+
href="https://old.rshb.ru/"
|
|
177
177
|
target="_blank"
|
|
178
178
|
text="Оформить кредит"
|
|
179
179
|
version="secondary"
|
|
@@ -182,7 +182,7 @@ export default {
|
|
|
182
182
|
),
|
|
183
183
|
'primary (disabled)': (
|
|
184
184
|
<Button
|
|
185
|
-
href="https://
|
|
185
|
+
href="https://old.rshb.ru/"
|
|
186
186
|
target="_blank"
|
|
187
187
|
text="Оформить кредит"
|
|
188
188
|
version="primary"
|
|
@@ -191,7 +191,7 @@ export default {
|
|
|
191
191
|
),
|
|
192
192
|
'secondary (disabled)': (
|
|
193
193
|
<Button
|
|
194
|
-
href="https://
|
|
194
|
+
href="https://old.rshb.ru/"
|
|
195
195
|
target="_blank"
|
|
196
196
|
text="Оформить кредит"
|
|
197
197
|
version="secondary"
|
|
@@ -3,6 +3,6 @@ import '../../setup-fixture';
|
|
|
3
3
|
import { HeaderItem } from './HeaderItem';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
default: <HeaderItem href="https://
|
|
7
|
-
active: <HeaderItem href="https://
|
|
6
|
+
default: <HeaderItem href="https://old.rshb.ru/" target="_blank" text="Россельхозбанк" />,
|
|
7
|
+
active: <HeaderItem href="https://old.rshb.ru/" target="_blank" text="Россельхозбанк" active />,
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { RowsData } from './InnerTableProps';
|
|
2
1
|
import { style } from '../../utils/style';
|
|
3
2
|
import { getHorizontalShift } from './getHorizontalShift';
|
|
3
|
+
import type { RowsData } from './InnerTableProps';
|
|
4
4
|
|
|
5
5
|
export const renderInnerTableRow =
|
|
6
6
|
(activeColumnIndex: number) => (rowData: RowsData[], rowIdx: number) => {
|
|
@@ -18,7 +18,7 @@ export const renderInnerTableRow =
|
|
|
18
18
|
return (
|
|
19
19
|
<div key={String(rowIdx)} className="flex border-main-divider border-b border-solid h-full">
|
|
20
20
|
{headerColumn?.data ? (
|
|
21
|
-
<div className="text-xl font-light min-w-56 py-lg">{headerColumn.data}</div>
|
|
21
|
+
<div className="text-xl font-light w-56 min-w-56 py-lg">{headerColumn.data}</div>
|
|
22
22
|
) : null}
|
|
23
23
|
<div className="flex flex-grow overflow-hidden">
|
|
24
24
|
<div
|
|
@@ -21,8 +21,14 @@ export const Sitemap = JSX<SitemapProps>(({ className, topItems }) => {
|
|
|
21
21
|
);
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
+
const FOOTER_AREA_KEY = 'footer';
|
|
25
|
+
|
|
24
26
|
const renderColumn = (menuItem: TopMenuItemProps & { onClick: () => void }, index: number) => {
|
|
25
|
-
const { text, items, href, target, onClick } = menuItem;
|
|
27
|
+
const { text, items = [], href, target, onClick } = menuItem;
|
|
28
|
+
|
|
29
|
+
const visibleSubItems = items.filter(
|
|
30
|
+
(_) => !_.displayArea || _.displayArea.toLowerCase() === FOOTER_AREA_KEY,
|
|
31
|
+
);
|
|
26
32
|
|
|
27
33
|
return (
|
|
28
34
|
<div key={String(index)} className="flex flex-col gap-s w-1/4">
|
|
@@ -34,11 +40,9 @@ const renderColumn = (menuItem: TopMenuItemProps & { onClick: () => void }, inde
|
|
|
34
40
|
>
|
|
35
41
|
{text || `Раздел ${index}`}
|
|
36
42
|
</a>
|
|
37
|
-
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<ColumnItem key={String(i)} {..._} basePath={appendSlash(href)} index={i} />
|
|
41
|
-
))}
|
|
43
|
+
{visibleSubItems.map((_, i) => (
|
|
44
|
+
<ColumnItem key={String(i)} {..._} basePath={appendSlash(href)} index={i} />
|
|
45
|
+
))}
|
|
42
46
|
</div>
|
|
43
47
|
);
|
|
44
48
|
};
|
|
@@ -5,6 +5,7 @@ import { SwipeListContainer } from './SwipeListContainer';
|
|
|
5
5
|
import type { SwipeListControlContent } from './SwipeListControlContent';
|
|
6
6
|
import { SwipeListControlDots } from './SwipeListControlDots';
|
|
7
7
|
import { useSwipeListScroll } from './useSwipeListScroll';
|
|
8
|
+
import { isShowDots } from './isShowDots';
|
|
8
9
|
|
|
9
10
|
const DEFAULT_GAP = 14;
|
|
10
11
|
|
|
@@ -29,7 +30,7 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
|
|
|
29
30
|
version,
|
|
30
31
|
gap = DEFAULT_GAP,
|
|
31
32
|
padding = DEFAULT_PADDING,
|
|
32
|
-
showDots =
|
|
33
|
+
showDots = isShowDots,
|
|
33
34
|
minHeight,
|
|
34
35
|
children,
|
|
35
36
|
onVisibleIndicesChange,
|
|
@@ -19,6 +19,7 @@ const dotStyle =
|
|
|
19
19
|
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
20
20
|
|
|
21
21
|
export interface SwipeListControlDotsProps {
|
|
22
|
+
className?: string;
|
|
22
23
|
containerRef?: { current: HTMLDivElement | null };
|
|
23
24
|
activeIndex?: number;
|
|
24
25
|
dotCount?: number;
|
|
@@ -27,7 +28,14 @@ export interface SwipeListControlDotsProps {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export const SwipeListControlDots = JSX<SwipeListControlDotsProps>(
|
|
30
|
-
({
|
|
31
|
+
({
|
|
32
|
+
className = '',
|
|
33
|
+
containerRef,
|
|
34
|
+
activeIndex,
|
|
35
|
+
dotCount = 0,
|
|
36
|
+
listType = 'horizontal-list',
|
|
37
|
+
version,
|
|
38
|
+
}) => {
|
|
31
39
|
const handleClick = (idx: number) => {
|
|
32
40
|
if (idx !== activeIndex && containerRef?.current) {
|
|
33
41
|
containerRef.current.children[idx]?.scrollIntoView({
|
|
@@ -40,9 +48,10 @@ export const SwipeListControlDots = JSX<SwipeListControlDotsProps>(
|
|
|
40
48
|
return dotCount ? (
|
|
41
49
|
<div
|
|
42
50
|
className={style(
|
|
43
|
-
'flex gap-xs
|
|
51
|
+
'flex gap-xs',
|
|
44
52
|
containerStyles[listType],
|
|
45
53
|
version ? 'group' : '',
|
|
54
|
+
className,
|
|
46
55
|
)}
|
|
47
56
|
{...(version ? { 'data-ver': version } : {})}
|
|
48
57
|
>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const isShowDots = true;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const isShowDots = false;
|
|
@@ -3,6 +3,6 @@ import '../../setup-fixture';
|
|
|
3
3
|
import { TopItem } from './TopItem';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
default: <TopItem href="https://
|
|
7
|
-
active: <TopItem href="https://
|
|
6
|
+
default: <TopItem href="https://old.rshb.ru/" target="_blank" text="Экосистема Своё" />,
|
|
7
|
+
active: <TopItem href="https://old.rshb.ru/" target="_blank" text="Экосистема Своё" active />,
|
|
8
8
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.buttonsConditionStyle = void 0;
|
|
3
|
-
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
4
|
-
const buttonsConditionStyle = (buttons) => (0, renderButtonsSection_1.renderButtonsSection)(buttons, { isVertical: false });
|
|
5
|
-
exports.buttonsConditionStyle = buttonsConditionStyle;
|
|
6
|
-
//# sourceMappingURL=buttonsConditionStyle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buttonsConditionStyle.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/buttonsConditionStyle.tsx"],"names":[],"mappings":";;AAAA,mFAAgF;AAGzE,MAAM,qBAAqB,GAAG,CAAC,OAAsB,EAAE,EAAE,CAC9D,IAAA,2CAAoB,EAAC,OAAO,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC;AAD1C,QAAA,qBAAqB,yBACqB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.buttonsConditionStyle = void 0;
|
|
3
|
-
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
4
|
-
const style_1 = require("../../utils/style");
|
|
5
|
-
const buttonsConditionStyle = (buttons) => {
|
|
6
|
-
const buttonsLengthMoreThanTwo = buttons.length > 2;
|
|
7
|
-
return (0, renderButtonsSection_1.renderButtonsSection)(buttons, {
|
|
8
|
-
className: (0, style_1.style)(buttonsLengthMoreThanTwo ? 'w-full' : 'flex-nowrap'),
|
|
9
|
-
isVertical: buttonsLengthMoreThanTwo,
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
exports.buttonsConditionStyle = buttonsConditionStyle;
|
|
13
|
-
//# sourceMappingURL=buttonsConditionStyle.mobile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buttonsConditionStyle.mobile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/buttonsConditionStyle.mobile.tsx"],"names":[],"mappings":";;AAAA,mFAAgF;AAEhF,6CAA0C;AAEnC,MAAM,qBAAqB,GAAG,CAAC,OAAsB,EAAE,EAAE;IAC9D,MAAM,wBAAwB,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;IAEpD,OAAO,IAAA,2CAAoB,EAAC,OAAO,EAAE;QACnC,SAAS,EAAE,IAAA,aAAK,EAAC,wBAAwB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC;QACrE,UAAU,EAAE,wBAAwB;KACrC,CAAC,CAAC;AACL,CAAC,CAAC;AAPW,QAAA,qBAAqB,yBAOhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderCurrentDaySchedule.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderDay.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderDay.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buttonsConditionStyle.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/buttonsConditionStyle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAGhF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,OAAsB,EAAE,EAAE,CAC9D,oBAAoB,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC"}
|