@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.
Files changed (253) hide show
  1. package/bundle/bundle.umd.js +27 -26
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  4. package/bundle/ui-kit/ClientOnly.d.ts +1 -0
  5. package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
  6. package/bundle/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
  7. package/bundle/ui-kit/SwipeListControl/isShowDots.mobile.d.ts +1 -0
  8. package/dist/components/Carousel/Carousel.js +1 -1
  9. package/dist/components/Carousel/Carousel.js.map +1 -1
  10. package/dist/components/CarouselLinks/CarouselLinkButton.js +2 -2
  11. package/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  12. package/dist/components/ContentPage/ContentPage.js +1 -1
  13. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  14. package/dist/components/Footer/Contacts.js +1 -1
  15. package/dist/components/Header/HeaderSubMenu.js +2 -1
  16. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  17. package/dist/components/MobileAppTile/MobileAppTile.js +3 -2
  18. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  19. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  20. package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
  21. package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
  22. package/dist/components/StickyBottomMenu/RenderMenuItems.js +1 -2
  23. package/dist/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
  24. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +2 -2
  25. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  26. package/dist/ui-kit/ClientOnly.d.ts +1 -0
  27. package/dist/ui-kit/ClientOnly.js +7 -0
  28. package/dist/ui-kit/ClientOnly.js.map +1 -0
  29. package/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  30. package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  31. package/dist/ui-kit/Sitemap/Sitemap.js +4 -4
  32. package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  33. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
  34. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  35. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
  36. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
  37. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  38. package/dist/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
  39. package/dist/ui-kit/SwipeListControl/isShowDots.js +4 -0
  40. package/dist/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
  41. package/dist/ui-kit/SwipeListControl/isShowDots.mobile.d.ts +1 -0
  42. package/dist/ui-kit/SwipeListControl/isShowDots.mobile.js +4 -0
  43. package/dist/ui-kit/SwipeListControl/isShowDots.mobile.js.map +1 -0
  44. package/lib/common.css +1 -1
  45. package/lib/components/Carousel/Carousel.js +1 -1
  46. package/lib/components/Carousel/Carousel.js.map +1 -1
  47. package/lib/components/CarouselLinks/CarouselLinkButton.js +2 -2
  48. package/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  49. package/lib/components/ContentPage/ContentPage.js +1 -1
  50. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  51. package/lib/components/Footer/Contacts.js +1 -1
  52. package/lib/components/Header/HeaderSubMenu.js +2 -1
  53. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  54. package/lib/components/MobileAppTile/MobileAppTile.js +3 -2
  55. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  56. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  57. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
  58. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
  59. package/lib/components/StickyBottomMenu/RenderMenuItems.js +1 -2
  60. package/lib/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
  61. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +3 -3
  62. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  63. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.d.ts +1 -0
  64. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.mobile.d.ts +8 -0
  65. package/lib/ui-kit/ClientOnly.d.ts +1 -0
  66. package/lib/ui-kit/ClientOnly.js +5 -0
  67. package/lib/ui-kit/ClientOnly.js.map +1 -0
  68. package/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  69. package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  70. package/lib/ui-kit/Sitemap/Sitemap.js +4 -4
  71. package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  72. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
  73. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  74. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
  75. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
  76. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  77. package/lib/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
  78. package/lib/ui-kit/SwipeListControl/isShowDots.js +2 -0
  79. package/lib/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
  80. package/lib/ui-kit/SwipeListControl/isShowDots.mobile.d.ts +1 -0
  81. package/lib/ui-kit/SwipeListControl/isShowDots.mobile.js +2 -0
  82. package/lib/ui-kit/SwipeListControl/isShowDots.mobile.js.map +1 -0
  83. package/mobile/bundle/bundle.umd.js +40 -45
  84. package/mobile/bundle/bundle.umd.min.js +1 -1
  85. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  86. package/mobile/bundle/ui-kit/ClientOnly.d.ts +1 -0
  87. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
  88. package/mobile/bundle/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
  89. package/mobile/dist/components/Carousel/Carousel.js +1 -1
  90. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  91. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +2 -2
  92. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  93. package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
  94. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  95. package/mobile/dist/components/Footer/Contacts.js +1 -1
  96. package/mobile/dist/components/Header/HeaderSubMenu.js +2 -1
  97. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  98. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +3 -2
  99. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  100. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  101. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
  102. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
  103. package/mobile/dist/components/StickyBottomMenu/RenderMenuItems.js +1 -2
  104. package/mobile/dist/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
  105. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +2 -2
  106. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  107. package/mobile/dist/ui-kit/ClientOnly.d.ts +1 -0
  108. package/mobile/dist/ui-kit/ClientOnly.js +7 -0
  109. package/mobile/dist/ui-kit/ClientOnly.js.map +1 -0
  110. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  111. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  112. package/mobile/dist/ui-kit/Sitemap/Sitemap.js +4 -4
  113. package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  114. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
  115. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  116. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
  117. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
  118. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  119. package/mobile/dist/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
  120. package/mobile/dist/ui-kit/SwipeListControl/isShowDots.js +4 -0
  121. package/mobile/dist/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
  122. package/mobile/lib/common.css +1 -1
  123. package/mobile/lib/components/Carousel/Carousel.js +1 -1
  124. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  125. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +2 -2
  126. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  127. package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
  128. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  129. package/mobile/lib/components/Footer/Contacts.js +1 -1
  130. package/mobile/lib/components/Header/HeaderSubMenu.js +2 -1
  131. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  132. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +3 -2
  133. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  134. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  135. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
  136. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
  137. package/mobile/lib/components/StickyBottomMenu/RenderMenuItems.js +1 -2
  138. package/mobile/lib/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
  139. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +3 -3
  140. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  141. package/mobile/lib/ui-kit/ClientOnly.d.ts +1 -0
  142. package/mobile/lib/ui-kit/ClientOnly.js +5 -0
  143. package/mobile/lib/ui-kit/ClientOnly.js.map +1 -0
  144. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  145. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  146. package/mobile/lib/ui-kit/Sitemap/Sitemap.js +4 -4
  147. package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  148. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
  149. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  150. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
  151. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
  152. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  153. package/mobile/lib/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
  154. package/mobile/lib/ui-kit/SwipeListControl/isShowDots.js +2 -0
  155. package/mobile/lib/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
  156. package/mobile/src/components/Carousel/Carousel.tsx +1 -0
  157. package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +2 -2
  158. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
  159. package/mobile/src/components/Footer/Contacts.tsx +1 -1
  160. package/mobile/src/components/Header/HeaderSubMenu.tsx +6 -1
  161. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +19 -6
  162. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  163. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +8 -14
  164. package/mobile/src/components/StickyBottomMenu/RenderMenuItems.tsx +5 -11
  165. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +6 -4
  166. package/mobile/src/ui-kit/ClientOnly.tsx +6 -0
  167. package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +2 -2
  168. package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +10 -6
  169. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -1
  170. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +11 -2
  171. package/mobile/src/ui-kit/SwipeListControl/isShowDots.tsx +1 -0
  172. package/package.json +1 -1
  173. package/src/components/Carousel/Carousel.tsx +1 -0
  174. package/src/components/CarouselLinks/CarouselLinkButton.tsx +2 -2
  175. package/src/components/ContentPage/ContentPage.tsx +2 -2
  176. package/src/components/Footer/Contacts.tsx +1 -1
  177. package/src/components/Header/HeaderSubMenu.tsx +6 -1
  178. package/src/components/MobileAppTile/MobileAppTile.tsx +19 -6
  179. package/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  180. package/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +8 -14
  181. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +1 -1
  182. package/src/components/StepsBlock/StepsBlock.fixture.tsx +1 -1
  183. package/src/components/StickyBottomMenu/RenderMenuItems.tsx +5 -11
  184. package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +6 -4
  185. package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.mobile.tsx +66 -0
  186. package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +19 -0
  187. package/src/ui-kit/Button/Button.fixture.tsx +22 -22
  188. package/src/ui-kit/ClientOnly.tsx +6 -0
  189. package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +2 -2
  190. package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +2 -2
  191. package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
  192. package/src/ui-kit/Sitemap/Sitemap.tsx +10 -6
  193. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -1
  194. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +11 -2
  195. package/src/ui-kit/SwipeListControl/isShowDots.mobile.tsx +1 -0
  196. package/src/ui-kit/SwipeListControl/isShowDots.tsx +1 -0
  197. package/src/ui-kit/TopItem/TopItem.fixture.tsx +2 -2
  198. package/bundle/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
  199. package/bundle/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +0 -3
  200. package/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
  201. package/bundle/components/OfficesAtmsMap/renderDay.d.ts +0 -1
  202. package/dist/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
  203. package/dist/components/MobileAppTile/buttonsConditionStyle.js +0 -6
  204. package/dist/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
  205. package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +0 -3
  206. package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.js +0 -13
  207. package/dist/components/MobileAppTile/buttonsConditionStyle.mobile.js.map +0 -1
  208. package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
  209. package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js +0 -2
  210. package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +0 -1
  211. package/dist/components/OfficesAtmsMap/renderDay.d.ts +0 -1
  212. package/dist/components/OfficesAtmsMap/renderDay.js +0 -2
  213. package/dist/components/OfficesAtmsMap/renderDay.js.map +0 -1
  214. package/lib/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
  215. package/lib/components/MobileAppTile/buttonsConditionStyle.js +0 -3
  216. package/lib/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
  217. package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.d.ts +0 -2
  218. package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.js +0 -10
  219. package/lib/components/MobileAppTile/buttonsConditionStyle.mobile.js.map +0 -1
  220. package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
  221. package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js +0 -2
  222. package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +0 -1
  223. package/lib/components/OfficesAtmsMap/renderDay.d.ts +0 -1
  224. package/lib/components/OfficesAtmsMap/renderDay.js +0 -2
  225. package/lib/components/OfficesAtmsMap/renderDay.js.map +0 -1
  226. package/mobile/bundle/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
  227. package/mobile/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
  228. package/mobile/bundle/components/OfficesAtmsMap/renderDay.d.ts +0 -1
  229. package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
  230. package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.js +0 -13
  231. package/mobile/dist/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
  232. package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
  233. package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js +0 -2
  234. package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +0 -1
  235. package/mobile/dist/components/OfficesAtmsMap/renderDay.d.ts +0 -1
  236. package/mobile/dist/components/OfficesAtmsMap/renderDay.js +0 -2
  237. package/mobile/dist/components/OfficesAtmsMap/renderDay.js.map +0 -1
  238. package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.d.ts +0 -3
  239. package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.js +0 -10
  240. package/mobile/lib/components/MobileAppTile/buttonsConditionStyle.js.map +0 -1
  241. package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +0 -1
  242. package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js +0 -2
  243. package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +0 -1
  244. package/mobile/lib/components/OfficesAtmsMap/renderDay.d.ts +0 -1
  245. package/mobile/lib/components/OfficesAtmsMap/renderDay.js +0 -2
  246. package/mobile/lib/components/OfficesAtmsMap/renderDay.js.map +0 -1
  247. package/mobile/src/components/MobileAppTile/buttonsConditionStyle.tsx +0 -12
  248. package/mobile/src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx +0 -2
  249. package/mobile/src/components/OfficesAtmsMap/renderDay.tsx +0 -2
  250. package/src/components/MobileAppTile/buttonsConditionStyle.mobile.tsx +0 -12
  251. package/src/components/MobileAppTile/buttonsConditionStyle.tsx +0 -5
  252. package/src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx +0 -2
  253. package/src/components/OfficesAtmsMap/renderDay.tsx +0 -2
@@ -4,6 +4,7 @@ import { style } from '../../utils/style.js';
4
4
  import { SwipeListContainer } from './SwipeListContainer.js';
5
5
  import { SwipeListControlDots } from './SwipeListControlDots.js';
6
6
  import { useSwipeListScroll } from './useSwipeListScroll.js';
7
+ import { isShowDots } from './isShowDots.js';
7
8
  const DEFAULT_GAP = 14;
8
9
  /*
9
10
  Horizontal padding used on a container above SwipeListControl.
@@ -11,7 +12,7 @@ const DEFAULT_GAP = 14;
11
12
  and get rid of a clipping effect caused by overflow: hidden.
12
13
  */
13
14
  const DEFAULT_PADDING = 16;
14
- export const SwipeListControl = JSX(({ className, version, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, minHeight, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
15
+ export const SwipeListControl = JSX(({ className, version, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = isShowDots, minHeight, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
15
16
  const itemCount = Array.isArray(children) ? children.length : 0;
16
17
  const [containerRef, scroll] = useSwipeListScroll({
17
18
  itemCount,
@@ -1 +1 @@
1
- {"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,CAAC,CAAC;IAEhE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,kBAAkB,CAAiB;QAChE,SAAS;QACT,sBAAsB;KACvB,CAAC,CAAC;IACH,MAAM,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC,mBAAmB,CAAC;IAEjD,OAAO,CACL,eAAK,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,QAAQ,KAAK,eAAe,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,aACrF,KAAC,kBAAkB,IACjB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,CAAC,EACnB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,sBAAsB,EAAE,MAAM,CAAC,0BAA0B,EACzD,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACU,EACpB,QAAQ,CAAC,CAAC,CAAC,CACV,KAAC,oBAAoB,IACnB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,SAAS,EACnB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { SwipeListControlType } from './SwipeListControlContent';
3
3
  export interface SwipeListControlDotsProps {
4
+ className?: string;
4
5
  containerRef?: {
5
6
  current: HTMLDivElement | null;
6
7
  };
@@ -11,7 +11,7 @@ const activeDotStyles = {
11
11
  };
12
12
  const dotStyle = 'cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white';
13
13
  const inactiveDotStyle = 'w-2 h-2 opacity-30';
14
- export const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version }) => {
14
+ export const SwipeListControlDots = JSX(({ className = '', containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version, }) => {
15
15
  const handleClick = (idx) => {
16
16
  if (idx !== activeIndex && containerRef?.current) {
17
17
  containerRef.current.children[idx]?.scrollIntoView({
@@ -20,6 +20,6 @@ export const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount =
20
20
  });
21
21
  }
22
22
  };
23
- return dotCount ? (_jsx("div", { className: style('flex gap-xs @lg:hidden', containerStyles[listType], version ? 'group' : ''), ...(version ? { 'data-ver': version } : {}), children: new Array(dotCount).fill(null).map((_, idx) => (_jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
23
+ return dotCount ? (_jsx("div", { className: style('flex gap-xs', containerStyles[listType], version ? 'group' : '', className), ...(version ? { 'data-ver': version } : {}), children: new Array(dotCount).fill(null).map((_, idx) => (_jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
24
24
  });
25
25
  //# sourceMappingURL=SwipeListControlDots.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListControlDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlDots.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,eAAe,GAAyC;IAC5D,iBAAiB,EAAE,qBAAqB;IACxC,eAAe,EAAE,sDAAsD;CACxE,CAAC;AAEF,MAAM,eAAe,GAAyC;IAC5D,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;CACvB,CAAC;AAEF,MAAM,QAAQ,GACZ,yIAAyI,CAAC;AAE5I,MAAM,gBAA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AAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAW,EAAE,EAAE,CAAC,CACtD,cAEE,SAAS,EAAE,GAAG,QAAQ,IACpB,GAAG,KAAK,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,gBACpD,EAAE,EACF,IAAI,EAAC,QAAQ,uBAEb,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,IAN1B,MAAM,CAAC,GAAG,CAAC,CAOhB,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const isShowDots = true;
@@ -0,0 +1,2 @@
1
+ export const isShowDots = true;
2
+ //# sourceMappingURL=isShowDots.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isShowDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/isShowDots.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC"}
@@ -68,6 +68,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
68
68
  />
69
69
  </div>
70
70
  <SwipeListControlDots
71
+ className="@lg:hidden"
71
72
  containerRef={containerRef}
72
73
  activeIndex={dotsActiveIndex}
73
74
  dotCount={count}
@@ -2,8 +2,8 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useLink } from '../../hooks/useLink';
3
3
  import type { LinkProps } from '../../model/LinkProps';
4
4
  import { Img } from '../../ui-kit/Img/Img';
5
- import { style } from '../../utils/style';
6
5
  import { Text } from '../../ui-kit/Text/Text';
6
+ import { style } from '../../utils/style';
7
7
 
8
8
  const LINK_CLASS_NAME = `absolute border
9
9
  bg-white flex justify-between group-hover/link:text-primary-main`;
@@ -30,7 +30,7 @@ export const CarouselLinkButton = JSX<CarouselLinkButtonProps>(
30
30
  <a
31
31
  className={style(
32
32
  LINK_CLASS_NAME,
33
- 'sm:rounded-md rounded-none w-full px-xl py-lg whitespace-nowrap',
33
+ 'sm:rounded-md rounded-none w-full px-xl py-lg whitespace-nowrap z-10',
34
34
  )}
35
35
  role="link"
36
36
  {...adjustedProps}
@@ -35,8 +35,8 @@ export const ContentPage: JSXBlock<ContentPageProps> = JSX<ContentPageProps>(
35
35
  useBlockRouterProvider();
36
36
 
37
37
  return (
38
- <div data-theme={colorPalette}>
39
- <section className={style('relative @container', pageStyle, className)}>
38
+ <div className="@container" data-theme={colorPalette}>
39
+ <section className={style('relative', pageStyle, className)}>
40
40
  {slots?.header ? (
41
41
  <div className="relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]">
42
42
  {renderBlocksList(slots?.header, { ...options, slotName: 'header' })}
@@ -14,7 +14,7 @@ export const Contacts = JSX<ContactsProps>(({ className = '', items }) => (
14
14
  <Button
15
15
  version="primary"
16
16
  className="w-full"
17
- href="https://www.rshb.ru/feedback/question/"
17
+ href="https://old.rshb.ru/feedback/question/"
18
18
  target="_blank"
19
19
  ariaLabel="Обратная связь"
20
20
  text="Обратная связь"
@@ -22,6 +22,8 @@ export interface HeaderSubMenuProps {
22
22
  internetBankUrl?: string;
23
23
  }
24
24
 
25
+ const HEADER_AREA_KEY = 'header';
26
+
25
27
  export const HeaderSubMenu = JSX<HeaderSubMenuProps>(
26
28
  ({ subItems = [], version, internetBankUrl }) => {
27
29
  const iconVersion: IconVersion = version === 'transparent' ? 'white' : 'black';
@@ -29,7 +31,10 @@ export const HeaderSubMenu = JSX<HeaderSubMenuProps>(
29
31
  const router = useRouter();
30
32
 
31
33
  const visibleSubItems = useMemo(
32
- () => subItems.filter((item) => !item.displayArea || item.displayArea === 'Header'),
34
+ () =>
35
+ subItems.filter(
36
+ (item) => !item.displayArea || item.displayArea.toLowerCase() === HEADER_AREA_KEY,
37
+ ),
33
38
  [subItems],
34
39
  );
35
40
  const activeSubItem = findActiveSubItem(router)(subItems);
@@ -2,13 +2,13 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  import { BaseTile } from '../../ui-kit/BaseTile/BaseTile';
4
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
+ import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
5
6
  import { Heading } from '../../ui-kit/Heading/Heading';
6
7
  import { Img } from '../../ui-kit/Img/Img';
7
8
  import { style } from '../../utils/style';
8
9
  import type { MobileAppTileContent } from './MobileAppTileContent';
9
10
  import { renderDescription } from './renderDescription';
10
11
  import { renderList } from './renderList';
11
- import { buttonsConditionStyle } from './buttonsConditionStyle';
12
12
 
13
13
  export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {}
14
14
 
@@ -30,6 +30,8 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
30
30
  }) => {
31
31
  const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
32
32
 
33
+ const img = image?.src ? <Img className="hidden lg:block" image={image} /> : null;
34
+
33
35
  return (
34
36
  <BlockWrapper
35
37
  className={style('min-h-80', className)}
@@ -50,17 +52,28 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
50
52
  />
51
53
  ) : null
52
54
  }
53
- rightImage={image?.src ? <Img className="hidden lg:block" image={image} /> : null}
54
- buttons={buttonsConditionStyle(buttons)}
55
+ rightImage={img}
56
+ buttons={renderButtonsSection(buttons)}
55
57
  >
56
58
  {renderDescription(description)}
57
- <div className="flex flex-1 flex-wrap gap-m items-center">
59
+ <div
60
+ className={style(
61
+ 'gap-m',
62
+ 'flex flex-1 flex-col',
63
+ 'flex-col items-start @4xl:flex-row @4xl:items-center',
64
+ )}
65
+ >
66
+ {renderList(items, listItemSize)}
58
67
  {qr?.src ? (
59
- <div className={style('flex justify-center bg-white rounded-md', containerStyle)}>
68
+ <div
69
+ className={style(
70
+ 'flex justify-center bg-white rounded-md @4xl:-order-1',
71
+ containerStyle,
72
+ )}
73
+ >
60
74
  <Img className="w-fit" image={qr} />
61
75
  </div>
62
76
  ) : null}
63
- {renderList(items, listItemSize)}
64
77
  {image?.src ? <Img className="lg:hidden" image={image} /> : null}
65
78
  </div>
66
79
  </BaseTile>
@@ -1,10 +1,10 @@
1
1
  import type { HeadlineCommonProps } from '../../model/HeadlineType';
2
2
  import type { UniBlockContent } from '../../model/JSXBlock';
3
3
  import type { Picture } from '../../model/Picture';
4
+ import type { ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
4
5
  import type { HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
5
6
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
6
7
  import type { ListContent } from '../../ui-kit/List/ListContent';
7
- import type { ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
8
8
 
9
9
  /**
10
10
  * @title Мобильное приложение
@@ -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 FILTRATION_BRANCHES_PREDICATES = {
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
- <YandexMap points={points} className="h-full" />
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 'name' in data
110
- ? (data as Branch[]).filter(filterOffices(truthyFilters))
111
- : (data as Atm[]).filter(filterAtms(truthyFilters));
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
- <BlockWrapper
17
- className="fixed bottom-0 left-0 right-0 my-0 mx-auto w-full bg-transparent z-[100]"
18
- padding="p-0"
19
- >
20
- <div className="ml-auto container bg-white flex justify-center shadow-blue-gray">
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
- <div className="contents">
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
- {isBurgerMenuDialogOpen ? <BurgerMenuDialog /> : null}
41
- </div>
43
+ </BlockWrapper>
42
44
  );
43
45
  });
@@ -0,0 +1,6 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { isSSR } from '@redneckz/uni-jsx/lib/hooks/vue/isSSR';
3
+
4
+ const isClient = !isSSR();
5
+
6
+ export const ClientOnly = JSX(({ children }) => (isClient ? children : null));
@@ -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
- {items
38
- ?.filter((_) => !_.displayArea || _.displayArea === 'Footer')
39
- .map((_, i) => (
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 = true,
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
- ({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version }) => {
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 @lg:hidden',
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -68,6 +68,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
68
68
  />
69
69
  </div>
70
70
  <SwipeListControlDots
71
+ className="@lg:hidden"
71
72
  containerRef={containerRef}
72
73
  activeIndex={dotsActiveIndex}
73
74
  dotCount={count}
@@ -2,8 +2,8 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useLink } from '../../hooks/useLink';
3
3
  import type { LinkProps } from '../../model/LinkProps';
4
4
  import { Img } from '../../ui-kit/Img/Img';
5
- import { style } from '../../utils/style';
6
5
  import { Text } from '../../ui-kit/Text/Text';
6
+ import { style } from '../../utils/style';
7
7
 
8
8
  const LINK_CLASS_NAME = `absolute border
9
9
  bg-white flex justify-between group-hover/link:text-primary-main`;
@@ -30,7 +30,7 @@ export const CarouselLinkButton = JSX<CarouselLinkButtonProps>(
30
30
  <a
31
31
  className={style(
32
32
  LINK_CLASS_NAME,
33
- 'sm:rounded-md rounded-none w-full px-xl py-lg whitespace-nowrap',
33
+ 'sm:rounded-md rounded-none w-full px-xl py-lg whitespace-nowrap z-10',
34
34
  )}
35
35
  role="link"
36
36
  {...adjustedProps}
@@ -35,8 +35,8 @@ export const ContentPage: JSXBlock<ContentPageProps> = JSX<ContentPageProps>(
35
35
  useBlockRouterProvider();
36
36
 
37
37
  return (
38
- <div data-theme={colorPalette}>
39
- <section className={style('relative @container', pageStyle, className)}>
38
+ <div className="@container" data-theme={colorPalette}>
39
+ <section className={style('relative', pageStyle, className)}>
40
40
  {slots?.header ? (
41
41
  <div className="relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]">
42
42
  {renderBlocksList(slots?.header, { ...options, slotName: 'header' })}
@@ -14,7 +14,7 @@ export const Contacts = JSX<ContactsProps>(({ className = '', items }) => (
14
14
  <Button
15
15
  version="primary"
16
16
  className="w-full"
17
- href="https://www.rshb.ru/feedback/question/"
17
+ href="https://old.rshb.ru/feedback/question/"
18
18
  target="_blank"
19
19
  ariaLabel="Обратная связь"
20
20
  text="Обратная связь"
@@ -22,6 +22,8 @@ export interface HeaderSubMenuProps {
22
22
  internetBankUrl?: string;
23
23
  }
24
24
 
25
+ const HEADER_AREA_KEY = 'header';
26
+
25
27
  export const HeaderSubMenu = JSX<HeaderSubMenuProps>(
26
28
  ({ subItems = [], version, internetBankUrl }) => {
27
29
  const iconVersion: IconVersion = version === 'transparent' ? 'white' : 'black';
@@ -29,7 +31,10 @@ export const HeaderSubMenu = JSX<HeaderSubMenuProps>(
29
31
  const router = useRouter();
30
32
 
31
33
  const visibleSubItems = useMemo(
32
- () => subItems.filter((item) => !item.displayArea || item.displayArea === 'Header'),
34
+ () =>
35
+ subItems.filter(
36
+ (item) => !item.displayArea || item.displayArea.toLowerCase() === HEADER_AREA_KEY,
37
+ ),
33
38
  [subItems],
34
39
  );
35
40
  const activeSubItem = findActiveSubItem(router)(subItems);
@@ -2,13 +2,13 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  import { BaseTile } from '../../ui-kit/BaseTile/BaseTile';
4
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
+ import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
5
6
  import { Heading } from '../../ui-kit/Heading/Heading';
6
7
  import { Img } from '../../ui-kit/Img/Img';
7
8
  import { style } from '../../utils/style';
8
9
  import type { MobileAppTileContent } from './MobileAppTileContent';
9
10
  import { renderDescription } from './renderDescription';
10
11
  import { renderList } from './renderList';
11
- import { buttonsConditionStyle } from './buttonsConditionStyle';
12
12
 
13
13
  export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {}
14
14
 
@@ -30,6 +30,8 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
30
30
  }) => {
31
31
  const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
32
32
 
33
+ const img = image?.src ? <Img className="hidden lg:block" image={image} /> : null;
34
+
33
35
  return (
34
36
  <BlockWrapper
35
37
  className={style('min-h-80', className)}
@@ -50,17 +52,28 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
50
52
  />
51
53
  ) : null
52
54
  }
53
- rightImage={image?.src ? <Img className="hidden lg:block" image={image} /> : null}
54
- buttons={buttonsConditionStyle(buttons)}
55
+ rightImage={img}
56
+ buttons={renderButtonsSection(buttons)}
55
57
  >
56
58
  {renderDescription(description)}
57
- <div className="flex flex-1 flex-wrap gap-m items-center">
59
+ <div
60
+ className={style(
61
+ 'gap-m',
62
+ 'flex flex-1 flex-col',
63
+ 'flex-col items-start @4xl:flex-row @4xl:items-center',
64
+ )}
65
+ >
66
+ {renderList(items, listItemSize)}
58
67
  {qr?.src ? (
59
- <div className={style('flex justify-center bg-white rounded-md', containerStyle)}>
68
+ <div
69
+ className={style(
70
+ 'flex justify-center bg-white rounded-md @4xl:-order-1',
71
+ containerStyle,
72
+ )}
73
+ >
60
74
  <Img className="w-fit" image={qr} />
61
75
  </div>
62
76
  ) : null}
63
- {renderList(items, listItemSize)}
64
77
  {image?.src ? <Img className="lg:hidden" image={image} /> : null}
65
78
  </div>
66
79
  </BaseTile>
@@ -1,10 +1,10 @@
1
1
  import type { HeadlineCommonProps } from '../../model/HeadlineType';
2
2
  import type { UniBlockContent } from '../../model/JSXBlock';
3
3
  import type { Picture } from '../../model/Picture';
4
+ import type { ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
4
5
  import type { HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
5
6
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
6
7
  import type { ListContent } from '../../ui-kit/List/ListContent';
7
- import type { ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
8
8
 
9
9
  /**
10
10
  * @title Мобильное приложение