@redneckz/wildless-cms-uni-blocks 0.14.842 → 0.14.843

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 (227) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +14 -127
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Blocks.js +0 -4
  5. package/dist/components/Blocks.js.map +1 -1
  6. package/dist/components/Blocks.mobile.js +0 -4
  7. package/dist/components/Blocks.mobile.js.map +1 -1
  8. package/lib/common.css +1 -1
  9. package/lib/components/Blocks.js +0 -4
  10. package/lib/components/Blocks.js.map +1 -1
  11. package/lib/components/Blocks.mobile.js +0 -4
  12. package/lib/components/Blocks.mobile.js.map +1 -1
  13. package/lib/components/Carousel/Carousel.fixture.d.ts +0 -2
  14. package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +0 -1
  15. package/mobile/bundle/bundle.umd.js +7 -127
  16. package/mobile/bundle/bundle.umd.min.js +1 -1
  17. package/mobile/dist/components/Blocks.js +0 -4
  18. package/mobile/dist/components/Blocks.js.map +1 -1
  19. package/mobile/lib/common.css +1 -1
  20. package/mobile/lib/components/Blocks.js +0 -4
  21. package/mobile/lib/components/Blocks.js.map +1 -1
  22. package/mobile/src/components/Blocks.ts +0 -4
  23. package/package.json +2 -2
  24. package/src/components/Blocks.mobile.ts +0 -4
  25. package/src/components/Blocks.ts +0 -4
  26. package/src/components/Carousel/Carousel.fixture.mobile.tsx +0 -16
  27. package/src/components/Carousel/Carousel.fixture.tsx +0 -35
  28. package/bundle/components/CarouselCard/CarouselCard.d.ts +0 -5
  29. package/bundle/components/CarouselCard/CarouselCardContent.d.ts +0 -11
  30. package/bundle/components/CarouselCard/constants.d.ts +0 -2
  31. package/bundle/components/CarouselCard/titleSize.d.ts +0 -1
  32. package/bundle/components/CarouselCard/titleSize.mobile.d.ts +0 -1
  33. package/bundle/components/Depository/Depository.d.ts +0 -11
  34. package/bundle/components/Depository/DepositoryContent.d.ts +0 -5
  35. package/bundle/components/Depository/DepositoryFilter.d.ts +0 -9
  36. package/bundle/components/Depository/DepositoryItem.d.ts +0 -2
  37. package/bundle/components/Depository/useDepository.d.ts +0 -15
  38. package/bundle/ui-kit/Unit/Unit.d.ts +0 -2
  39. package/bundle/ui-kit/Unit/UnitProps.d.ts +0 -8
  40. package/dist/components/CarouselCard/CarouselCard.d.ts +0 -5
  41. package/dist/components/CarouselCard/CarouselCard.js +0 -16
  42. package/dist/components/CarouselCard/CarouselCard.js.map +0 -1
  43. package/dist/components/CarouselCard/CarouselCardContent.d.ts +0 -11
  44. package/dist/components/CarouselCard/CarouselCardContent.js +0 -2
  45. package/dist/components/CarouselCard/CarouselCardContent.js.map +0 -1
  46. package/dist/components/CarouselCard/constants.d.ts +0 -2
  47. package/dist/components/CarouselCard/constants.js +0 -7
  48. package/dist/components/CarouselCard/constants.js.map +0 -1
  49. package/dist/components/CarouselCard/titleSize.d.ts +0 -1
  50. package/dist/components/CarouselCard/titleSize.js +0 -4
  51. package/dist/components/CarouselCard/titleSize.js.map +0 -1
  52. package/dist/components/CarouselCard/titleSize.mobile.d.ts +0 -1
  53. package/dist/components/CarouselCard/titleSize.mobile.js +0 -4
  54. package/dist/components/CarouselCard/titleSize.mobile.js.map +0 -1
  55. package/dist/components/Depository/Depository.d.ts +0 -11
  56. package/dist/components/Depository/Depository.js +0 -42
  57. package/dist/components/Depository/Depository.js.map +0 -1
  58. package/dist/components/Depository/DepositoryContent.d.ts +0 -5
  59. package/dist/components/Depository/DepositoryContent.js +0 -2
  60. package/dist/components/Depository/DepositoryContent.js.map +0 -1
  61. package/dist/components/Depository/DepositoryFilter.d.ts +0 -9
  62. package/dist/components/Depository/DepositoryFilter.js +0 -9
  63. package/dist/components/Depository/DepositoryFilter.js.map +0 -1
  64. package/dist/components/Depository/DepositoryItem.d.ts +0 -2
  65. package/dist/components/Depository/DepositoryItem.js +0 -15
  66. package/dist/components/Depository/DepositoryItem.js.map +0 -1
  67. package/dist/components/Depository/useDepository.d.ts +0 -15
  68. package/dist/components/Depository/useDepository.js +0 -22
  69. package/dist/components/Depository/useDepository.js.map +0 -1
  70. package/dist/ui-kit/Unit/Unit.d.ts +0 -2
  71. package/dist/ui-kit/Unit/Unit.js +0 -9
  72. package/dist/ui-kit/Unit/Unit.js.map +0 -1
  73. package/dist/ui-kit/Unit/UnitProps.d.ts +0 -8
  74. package/dist/ui-kit/Unit/UnitProps.js +0 -2
  75. package/dist/ui-kit/Unit/UnitProps.js.map +0 -1
  76. package/lib/components/CarouselCard/CarouselCard.d.ts +0 -5
  77. package/lib/components/CarouselCard/CarouselCard.fixture.d.ts +0 -11
  78. package/lib/components/CarouselCard/CarouselCard.fixture.mobile.d.ts +0 -7
  79. package/lib/components/CarouselCard/CarouselCard.js +0 -14
  80. package/lib/components/CarouselCard/CarouselCard.js.map +0 -1
  81. package/lib/components/CarouselCard/CarouselCardContent.d.ts +0 -11
  82. package/lib/components/CarouselCard/CarouselCardContent.js +0 -2
  83. package/lib/components/CarouselCard/CarouselCardContent.js.map +0 -1
  84. package/lib/components/CarouselCard/constants.d.ts +0 -2
  85. package/lib/components/CarouselCard/constants.js +0 -5
  86. package/lib/components/CarouselCard/constants.js.map +0 -1
  87. package/lib/components/CarouselCard/titleSize.d.ts +0 -1
  88. package/lib/components/CarouselCard/titleSize.js +0 -2
  89. package/lib/components/CarouselCard/titleSize.js.map +0 -1
  90. package/lib/components/CarouselCard/titleSize.mobile.d.ts +0 -1
  91. package/lib/components/CarouselCard/titleSize.mobile.js +0 -2
  92. package/lib/components/CarouselCard/titleSize.mobile.js.map +0 -1
  93. package/lib/components/Depository/Depository.d.ts +0 -11
  94. package/lib/components/Depository/Depository.fixture.d.ts +0 -5
  95. package/lib/components/Depository/Depository.fixture.mobile.d.ts +0 -5
  96. package/lib/components/Depository/Depository.js +0 -40
  97. package/lib/components/Depository/Depository.js.map +0 -1
  98. package/lib/components/Depository/DepositoryContent.d.ts +0 -5
  99. package/lib/components/Depository/DepositoryContent.js +0 -2
  100. package/lib/components/Depository/DepositoryContent.js.map +0 -1
  101. package/lib/components/Depository/DepositoryFilter.d.ts +0 -9
  102. package/lib/components/Depository/DepositoryFilter.js +0 -7
  103. package/lib/components/Depository/DepositoryFilter.js.map +0 -1
  104. package/lib/components/Depository/DepositoryItem.d.ts +0 -2
  105. package/lib/components/Depository/DepositoryItem.js +0 -13
  106. package/lib/components/Depository/DepositoryItem.js.map +0 -1
  107. package/lib/components/Depository/useDepository.d.ts +0 -15
  108. package/lib/components/Depository/useDepository.js +0 -19
  109. package/lib/components/Depository/useDepository.js.map +0 -1
  110. package/lib/ui-kit/Unit/Unit.d.ts +0 -2
  111. package/lib/ui-kit/Unit/Unit.js +0 -7
  112. package/lib/ui-kit/Unit/Unit.js.map +0 -1
  113. package/lib/ui-kit/Unit/UnitProps.d.ts +0 -8
  114. package/lib/ui-kit/Unit/UnitProps.js +0 -2
  115. package/lib/ui-kit/Unit/UnitProps.js.map +0 -1
  116. package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +0 -5
  117. package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +0 -11
  118. package/mobile/bundle/components/CarouselCard/constants.d.ts +0 -2
  119. package/mobile/bundle/components/CarouselCard/titleSize.d.ts +0 -1
  120. package/mobile/bundle/components/Depository/Depository.d.ts +0 -11
  121. package/mobile/bundle/components/Depository/DepositoryContent.d.ts +0 -5
  122. package/mobile/bundle/components/Depository/DepositoryFilter.d.ts +0 -9
  123. package/mobile/bundle/components/Depository/DepositoryItem.d.ts +0 -2
  124. package/mobile/bundle/components/Depository/useDepository.d.ts +0 -15
  125. package/mobile/bundle/ui-kit/Unit/Unit.d.ts +0 -2
  126. package/mobile/bundle/ui-kit/Unit/UnitProps.d.ts +0 -8
  127. package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +0 -5
  128. package/mobile/dist/components/CarouselCard/CarouselCard.js +0 -16
  129. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +0 -1
  130. package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +0 -11
  131. package/mobile/dist/components/CarouselCard/CarouselCardContent.js +0 -2
  132. package/mobile/dist/components/CarouselCard/CarouselCardContent.js.map +0 -1
  133. package/mobile/dist/components/CarouselCard/constants.d.ts +0 -2
  134. package/mobile/dist/components/CarouselCard/constants.js +0 -7
  135. package/mobile/dist/components/CarouselCard/constants.js.map +0 -1
  136. package/mobile/dist/components/CarouselCard/titleSize.d.ts +0 -1
  137. package/mobile/dist/components/CarouselCard/titleSize.js +0 -4
  138. package/mobile/dist/components/CarouselCard/titleSize.js.map +0 -1
  139. package/mobile/dist/components/Depository/Depository.d.ts +0 -11
  140. package/mobile/dist/components/Depository/Depository.js +0 -42
  141. package/mobile/dist/components/Depository/Depository.js.map +0 -1
  142. package/mobile/dist/components/Depository/DepositoryContent.d.ts +0 -5
  143. package/mobile/dist/components/Depository/DepositoryContent.js +0 -2
  144. package/mobile/dist/components/Depository/DepositoryContent.js.map +0 -1
  145. package/mobile/dist/components/Depository/DepositoryFilter.d.ts +0 -9
  146. package/mobile/dist/components/Depository/DepositoryFilter.js +0 -9
  147. package/mobile/dist/components/Depository/DepositoryFilter.js.map +0 -1
  148. package/mobile/dist/components/Depository/DepositoryItem.d.ts +0 -2
  149. package/mobile/dist/components/Depository/DepositoryItem.js +0 -15
  150. package/mobile/dist/components/Depository/DepositoryItem.js.map +0 -1
  151. package/mobile/dist/components/Depository/useDepository.d.ts +0 -15
  152. package/mobile/dist/components/Depository/useDepository.js +0 -22
  153. package/mobile/dist/components/Depository/useDepository.js.map +0 -1
  154. package/mobile/dist/ui-kit/Unit/Unit.d.ts +0 -2
  155. package/mobile/dist/ui-kit/Unit/Unit.js +0 -9
  156. package/mobile/dist/ui-kit/Unit/Unit.js.map +0 -1
  157. package/mobile/dist/ui-kit/Unit/UnitProps.d.ts +0 -8
  158. package/mobile/dist/ui-kit/Unit/UnitProps.js +0 -2
  159. package/mobile/dist/ui-kit/Unit/UnitProps.js.map +0 -1
  160. package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +0 -5
  161. package/mobile/lib/components/CarouselCard/CarouselCard.js +0 -14
  162. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +0 -1
  163. package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +0 -11
  164. package/mobile/lib/components/CarouselCard/CarouselCardContent.js +0 -2
  165. package/mobile/lib/components/CarouselCard/CarouselCardContent.js.map +0 -1
  166. package/mobile/lib/components/CarouselCard/constants.d.ts +0 -2
  167. package/mobile/lib/components/CarouselCard/constants.js +0 -5
  168. package/mobile/lib/components/CarouselCard/constants.js.map +0 -1
  169. package/mobile/lib/components/CarouselCard/titleSize.d.ts +0 -1
  170. package/mobile/lib/components/CarouselCard/titleSize.js +0 -2
  171. package/mobile/lib/components/CarouselCard/titleSize.js.map +0 -1
  172. package/mobile/lib/components/Depository/Depository.d.ts +0 -11
  173. package/mobile/lib/components/Depository/Depository.js +0 -40
  174. package/mobile/lib/components/Depository/Depository.js.map +0 -1
  175. package/mobile/lib/components/Depository/DepositoryContent.d.ts +0 -5
  176. package/mobile/lib/components/Depository/DepositoryContent.js +0 -2
  177. package/mobile/lib/components/Depository/DepositoryContent.js.map +0 -1
  178. package/mobile/lib/components/Depository/DepositoryFilter.d.ts +0 -9
  179. package/mobile/lib/components/Depository/DepositoryFilter.js +0 -7
  180. package/mobile/lib/components/Depository/DepositoryFilter.js.map +0 -1
  181. package/mobile/lib/components/Depository/DepositoryItem.d.ts +0 -2
  182. package/mobile/lib/components/Depository/DepositoryItem.js +0 -13
  183. package/mobile/lib/components/Depository/DepositoryItem.js.map +0 -1
  184. package/mobile/lib/components/Depository/useDepository.d.ts +0 -15
  185. package/mobile/lib/components/Depository/useDepository.js +0 -19
  186. package/mobile/lib/components/Depository/useDepository.js.map +0 -1
  187. package/mobile/lib/ui-kit/Unit/Unit.d.ts +0 -2
  188. package/mobile/lib/ui-kit/Unit/Unit.js +0 -7
  189. package/mobile/lib/ui-kit/Unit/Unit.js.map +0 -1
  190. package/mobile/lib/ui-kit/Unit/UnitProps.d.ts +0 -8
  191. package/mobile/lib/ui-kit/Unit/UnitProps.js +0 -2
  192. package/mobile/lib/ui-kit/Unit/UnitProps.js.map +0 -1
  193. package/mobile/src/components/CarouselCard/CarouselCard.example.json +0 -14
  194. package/mobile/src/components/CarouselCard/CarouselCard.tsx +0 -47
  195. package/mobile/src/components/CarouselCard/CarouselCard.ui.json +0 -1
  196. package/mobile/src/components/CarouselCard/CarouselCardContent.ts +0 -13
  197. package/mobile/src/components/CarouselCard/constants.ts +0 -6
  198. package/mobile/src/components/CarouselCard/titleSize.tsx +0 -1
  199. package/mobile/src/components/Depository/Depository.example.json +0 -6
  200. package/mobile/src/components/Depository/Depository.tsx +0 -84
  201. package/mobile/src/components/Depository/Depository.ui.json +0 -1
  202. package/mobile/src/components/Depository/DepositoryContent.ts +0 -6
  203. package/mobile/src/components/Depository/DepositoryFilter.tsx +0 -41
  204. package/mobile/src/components/Depository/DepositoryItem.tsx +0 -31
  205. package/mobile/src/components/Depository/useDepository.ts +0 -46
  206. package/mobile/src/ui-kit/Unit/Unit.tsx +0 -26
  207. package/mobile/src/ui-kit/Unit/UnitProps.ts +0 -8
  208. package/src/components/CarouselCard/CarouselCard.example.json +0 -14
  209. package/src/components/CarouselCard/CarouselCard.fixture.mobile.tsx +0 -28
  210. package/src/components/CarouselCard/CarouselCard.fixture.tsx +0 -53
  211. package/src/components/CarouselCard/CarouselCard.tsx +0 -47
  212. package/src/components/CarouselCard/CarouselCard.ui.json +0 -1
  213. package/src/components/CarouselCard/CarouselCardContent.ts +0 -13
  214. package/src/components/CarouselCard/constants.ts +0 -6
  215. package/src/components/CarouselCard/titleSize.mobile.tsx +0 -1
  216. package/src/components/CarouselCard/titleSize.tsx +0 -1
  217. package/src/components/Depository/Depository.example.json +0 -6
  218. package/src/components/Depository/Depository.fixture.mobile.tsx +0 -12
  219. package/src/components/Depository/Depository.fixture.tsx +0 -12
  220. package/src/components/Depository/Depository.tsx +0 -84
  221. package/src/components/Depository/Depository.ui.json +0 -1
  222. package/src/components/Depository/DepositoryContent.ts +0 -6
  223. package/src/components/Depository/DepositoryFilter.tsx +0 -41
  224. package/src/components/Depository/DepositoryItem.tsx +0 -31
  225. package/src/components/Depository/useDepository.ts +0 -46
  226. package/src/ui-kit/Unit/Unit.tsx +0 -26
  227. package/src/ui-kit/Unit/UnitProps.ts +0 -8
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { Button } from '../../ui-kit/Button/Button.js';
4
- import { DatePicker } from '../../ui-kit/DatePicker/DatePicker.js';
5
- import { SearchInput } from '../../ui-kit/SearchDialog/SearchInput.js';
6
- export const DepositoryFilter = JSX(({ field, onClearFilter, filtrationState }) => (_jsxs("div", { className: "grid grid-cols-12 mb-3xl @lg:space-x-xl", children: [_jsx(SearchInput, { className: "col-span-12 @lg:col-span-4 mt-auto", placeholder: "\u041F\u043E\u0438\u0441\u043A", ...field('query') }), _jsx(DatePicker, { className: "col-span-12 @lg:col-span-3 mt-4 @lg:mt-0", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u043E\u0442", maxDate: filtrationState.endDate, ...field('startDate') }), _jsx(DatePicker, { className: "col-span-12 @lg:col-span-3 mt-4 @lg:mt-0", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u0434\u043E", minDate: filtrationState.startDate, ...field('endDate') }), _jsx("div", { className: "col-span-12 @lg:col-span-2 mt-8 @lg:mt-auto", children: _jsx(Button, { type: "reset", className: "w-full", version: "secondary", onClick: onClearFilter, children: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C" }) })] })));
7
- //# sourceMappingURL=DepositoryFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DepositoryFilter.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryFilter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AASpE,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAC7C,eAAK,SAAS,EAAC,yCAAyC,aACtD,KAAC,WAAW,IACV,SAAS,EAAC,oCAAoC,EAC9C,WAAW,EAAC,gCAAO,KACf,KAAK,CAAC,OAAO,CAAC,GAClB,EACF,KAAC,UAAU,IACT,SAAS,EAAC,0CAA0C,EACpD,KAAK,EAAC,mDAAW,EACjB,OAAO,EAAE,eAAe,CAAC,OAAO,KAC5B,KAAK,CAAC,WAAW,CAAC,GACtB,EACF,KAAC,UAAU,IACT,SAAS,EAAC,0CAA0C,EACpD,KAAK,EAAC,mDAAW,EACjB,OAAO,EAAE,eAAe,CAAC,SAAS,KAC9B,KAAK,CAAC,SAAS,CAAC,GACpB,EACF,cAAK,SAAS,EAAC,6CAA6C,YAC1D,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,QAAQ,EAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,aAAa,iEAEzE,GACL,IACF,CACP,CACF,CAAC"}
@@ -1,2 +0,0 @@
1
- import { type DepositoryDataItem } from './useDepository';
2
- export declare const DepositoryItem: import("@redneckz/uni-jsx").UNIComponent<DepositoryDataItem, any, any>;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { API_BASE_URI } from '../../api/apiBaseUrl.js';
4
- import { useLink } from '../../hooks/useLink.js';
5
- import { RoundedIcon } from '../../ui-kit/Icon/RoundedIcon.js';
6
- import { Text } from '../../ui-kit/Text/Text.js';
7
- import { formatDate } from '../../utils/formatDate.js';
8
- export const DepositoryItem = JSX(({ title, timestamp, publicId }) => {
9
- const link = useLink();
10
- const { href } = link({ href: `${API_BASE_URI}/depository/${publicId}/file` });
11
- return (_jsxs("div", { className: "flex gap-3 items-center py-lg border-gray border-opacity-50 border-b", children: [_jsx(RoundedIcon, { className: "shrink-0", icon: "DocDownloadIcon", iconVersion: "black" }), _jsxs("div", { className: "flex flex-col gap-x-6xl lg:flex-row lg:items-center", children: [timestamp ? (_jsx(Text, { size: "text-m", "font-weight": "font-light", children: formatDate(timestamp) })) : null, _jsx("a", { className: "text-h6 hover:text-primary-active", href: href, download: true, "aria-label": "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: title })] })] }, publicId));
12
- });
13
- //# sourceMappingURL=DepositoryItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DepositoryItem.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGpD,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAsB,EAAE,EAAE;IACvF,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,YAAY,eAAe,QAAQ,OAAO,EAAE,CAAC,CAAC;IAE/E,OAAO,CACL,eACE,SAAS,EAAC,sEAAsE,aAGhF,KAAC,WAAW,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAC,iBAAiB,EAAC,WAAW,EAAC,OAAO,GAAG,EAC/E,eAAK,SAAS,EAAC,qDAAqD,aACjE,SAAS,CAAC,CAAC,CAAC,CACX,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,iBAAa,YAAY,YACzC,UAAU,CAAC,SAAS,CAAC,GACjB,CACR,CAAC,CAAC,CAAC,IAAI,EACR,YAAG,SAAS,EAAC,mCAAmC,EAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,sBAAY,4CAAS,YACvF,KAAK,GACJ,IACA,KAZD,QAAQ,CAaT,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,15 +0,0 @@
1
- import { type DepositoryFiltrationState } from './Depository';
2
- export interface DepositoryDataItem {
3
- publicId?: number;
4
- timestamp?: string;
5
- title?: number;
6
- }
7
- interface UseDepositoryParams extends DepositoryFiltrationState {
8
- size: number;
9
- page: number;
10
- }
11
- export declare const useDepository: ({ size, page, query, startDate, endDate }: UseDepositoryParams) => {
12
- items: DepositoryDataItem[] | undefined;
13
- totalPages: number | undefined;
14
- };
15
- export {};
@@ -1,19 +0,0 @@
1
- import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
2
- import { API_BASE_URI } from '../../api/apiBaseUrl.js';
3
- import { fetchJSONUnsafe } from '../../utils/fetchJSON.js';
4
- import { formatDate } from '../../utils/formatDate.js';
5
- const DEPOSITARY_URL = `${API_BASE_URI}/depository`;
6
- export const useDepository = ({ size, page, query, startDate, endDate }) => {
7
- const formatStartDate = startDate ? formatDate(startDate, true) : '';
8
- const formatEndDate = endDate ? formatDate(endDate, true) : '';
9
- const searchParams = new URLSearchParams(DEPOSITARY_URL);
10
- searchParams.set('page', String(page));
11
- searchParams.set('size', String(size));
12
- searchParams.set('query', query);
13
- searchParams.set('timestampStart', formatStartDate);
14
- searchParams.set('timestampEnd', formatEndDate);
15
- const queryString = `?${searchParams.toString()}`;
16
- const { data } = useAsyncData(DEPOSITARY_URL + queryString, fetchJSONUnsafe);
17
- return { items: data?.content, totalPages: data?.totalPages };
18
- };
19
- //# sourceMappingURL=useDepository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDepository.js","sourceRoot":"","sources":["../../../src/components/Depository/useDepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,eAAe,EAA4B,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAoBpD,MAAM,cAAc,GAAG,GAAG,YAAY,aAAa,CAAC;AAEpD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAuB,EAAE,EAAE;IAC9F,MAAM,eAAe,GAAG,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACrE,MAAM,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAE/D,MAAM,YAAY,GAAG,IAAI,eAAe,CAAC,cAAc,CAAC,CAAC;IAEzD,YAAY,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,YAAY,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,YAAY,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACjC,YAAY,CAAC,GAAG,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;IACpD,YAAY,CAAC,GAAG,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;IAEhD,MAAM,WAAW,GAAG,IAAI,YAAY,CAAC,QAAQ,EAAE,EAAE,CAAC;IAElD,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAC3B,cAAc,GAAG,WAAW,EAC5B,eAAsD,CACvD,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AAChE,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import { type UnitProps } from './UnitProps';
2
- export declare const Unit: import("@redneckz/uni-jsx").UNIComponent<UnitProps, any, any>;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { Text } from '../Text/Text.js';
4
- export const Unit = JSX(({ prefix, unit, suffix }) => (_jsxs("div", { className: "w-full flex items-end", children: [prefix ? (_jsx("div", { className: "gradient-color-text", children: _jsx(Text, { size: "text-h2", children: prefix }) })) : null, unit ? (
5
- // -mb-n добавлен для выравнивания unit относительно prefix и suffix, тк шрифт font-mohave неправильно высчитывает line-height
6
- _jsx("div", { className: "-mb-6 @xl:-mb-4", children: _jsx("span", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: unit }) })) : null, suffix ? (_jsx("div", { className: "gradient-color-text", children: _jsx(Text, { size: "text-h2", children: suffix }) })) : null] })));
7
- //# sourceMappingURL=Unit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Unit.js","sourceRoot":"","sources":["../../../src/ui-kit/Unit/Unit.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAY,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAC/D,eAAK,SAAS,EAAC,uBAAuB,aACnC,MAAM,CAAC,CAAC,CAAC,CACR,cAAK,SAAS,EAAC,qBAAqB,YAClC,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,YAAE,MAAM,GAAQ,GAChC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC;QACN,8HAA8H;QAC9H,cAAK,SAAS,EAAC,iBAAiB,YAC9B,eAAM,SAAS,EAAC,sEAAsE,YACnF,IAAI,GACA,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,CAAC,CAAC,CACR,cAAK,SAAS,EAAC,qBAAqB,YAClC,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,YAAE,MAAM,GAAQ,GAChC,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- export interface UnitProps {
2
- /** @title Префикс */
3
- prefix?: string;
4
- /** @title Значение */
5
- unit?: number;
6
- /** @title Суффикс */
7
- suffix?: string;
8
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=UnitProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnitProps.js","sourceRoot":"","sources":["../../../src/ui-kit/Unit/UnitProps.ts"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- {
2
- "content": {
3
- "version": "primary",
4
- "padding": "",
5
- "title": "Заголовок",
6
- "description": "Описание",
7
- "button": {
8
- "href": "",
9
- "text": "Подробнее",
10
- "target": "_self",
11
- "version": "primary"
12
- }
13
- }
14
- }
@@ -1,47 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { BlockWrapper } from '../../ui-kit/BlockWrapper';
3
- import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
4
- import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
5
- import { style } from '../../utils/style';
6
- import { Headline } from '../Headline/Headline';
7
- import { type CarouselCardContent } from './CarouselCardContent';
8
- import { titleSize } from './titleSize';
9
-
10
- export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {}
11
-
12
- const layerBaseStyle = 'z-10 border border-solid w-full h-full';
13
- const layerStyle = style(layerBaseStyle, 'absolute hidden @xl:block border-transparent');
14
-
15
- export const CarouselCard = JSX<CarouselCardProps>(
16
- ({ className, title, description, button, ...rest }) => (
17
- <BlockWrapper
18
- className={style('sm:pl-6xl sm:pb-4xl @container-normal', className)}
19
- defaultPadding="p-0"
20
- {...rest}
21
- >
22
- <div className="relative h-full">
23
- <div className={style(layerStyle, 'top-9 right-12 bg-green-dark')} />
24
- <div className={style(layerStyle, 'top-6 right-8 bg-green')} />
25
- <div className={style(layerStyle, 'top-3 right-4 bg-green-light')} />
26
- <div
27
- className={style(
28
- layerBaseStyle,
29
- 'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-more-light',
30
- )}
31
- >
32
- <Headline
33
- title={title}
34
- description={description}
35
- headlineVersion={titleSize}
36
- align="text-left"
37
- isEmbedded={true}
38
- />
39
- {renderButtonsSection([button], {
40
- className: 'mt-m sm:mt-6xl sm:justify-center',
41
- isVertical: true,
42
- })}
43
- </div>
44
- </div>
45
- </BlockWrapper>
46
- ),
47
- );
@@ -1,13 +0,0 @@
1
- import { type HeadlineCommonProps } from '../../model/HeadlineType';
2
- import { type SizeVersion } from '../../model/SizeVersion';
3
- import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
4
- import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
5
-
6
- /**
7
- * @title Карточка карусели
8
- */
9
- export type CarouselCardContent = UniBlockContent &
10
- HeadlineCommonProps & {
11
- button?: LinkButtonContent;
12
- carouselVersion?: SizeVersion;
13
- };
@@ -1,6 +0,0 @@
1
- import { type SizeVersion } from '../../model/SizeVersion';
2
-
3
- export const cardStyleMap: Record<SizeVersion, string> = {
4
- normal: 'min-w-full justify-center items-center m-2xl col-span-12',
5
- small: 'min-w-auto justify-center items-center m-4xl col-span-4',
6
- };
@@ -1 +0,0 @@
1
- export const titleSize = 'XS';
@@ -1,6 +0,0 @@
1
- {
2
- "content": {
3
- "version": "primary",
4
- "padding": ""
5
- }
6
- }
@@ -1,84 +0,0 @@
1
- import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
2
- import { useForm } from '../../hooks/useForm/useForm';
3
- import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
- import { NotFound } from '../../ui-kit/NotFound/NotFound';
5
- import { Pagination } from '../../ui-kit/Pagination/Pagination';
6
- import { Text } from '../../ui-kit/Text/Text';
7
- import { UniBlock } from '../../UniBlock/UniBlock';
8
- import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
9
- import { style } from '../../utils/style';
10
- import { type DepositoryContent } from './DepositoryContent';
11
- import { DepositoryFilter } from './DepositoryFilter';
12
- import { DepositoryItem } from './DepositoryItem';
13
- import { useDepository } from './useDepository';
14
-
15
- const DEFAULT_ITEMS_COUNT = 10;
16
-
17
- const initialFiltrationState: DepositoryFiltrationState = {
18
- startDate: undefined,
19
- endDate: undefined,
20
- query: '',
21
- };
22
-
23
- export interface DepositoryFiltrationState {
24
- startDate: Date | undefined;
25
- endDate: Date | undefined;
26
- query: string;
27
- }
28
-
29
- interface DepositoryProps extends DepositoryContent, UniBlockProps {}
30
-
31
- export const Depository = UniBlock<DepositoryProps>(({ className, ...rest }) => {
32
- const [currentPage, setCurrentPage] = useState(0);
33
- const [itemCount, setItemCount] = useState(DEFAULT_ITEMS_COUNT);
34
- const [filtrationState, { field, reset }] = useForm(initialFiltrationState);
35
-
36
- const { totalPages = 0, items = [] } = useDepository({
37
- size: itemCount,
38
- page: currentPage,
39
- ...filtrationState,
40
- });
41
-
42
- const handleChangePage = useCallback((page: number) => setCurrentPage(page - 1), []);
43
-
44
- const handleItemCountChange = useCallback((count: number) => {
45
- if (itemCount !== count) {
46
- setItemCount(count);
47
- setCurrentPage(0);
48
- } else {
49
- setItemCount(count);
50
- }
51
- }, []);
52
-
53
- return (
54
- <BlockWrapper className={style(className, 'container p-6xl')} {...rest}>
55
- <DepositoryFilter filtrationState={filtrationState} field={field} onClearFilter={reset} />
56
- <div className="flex flex-col">
57
- <div className="grid grid-cols-12 pb-lg border-gray border-opacity-50 border-b">
58
- <div className="col-span-4 @lg:col-span-2 hidden @lg:block">
59
- <Text size="text-m" color="text-secondary-text">
60
- Дата
61
- </Text>
62
- </div>
63
- <span className="col-span-8 @lg:col-span-10 hidden @lg:block">
64
- <Text size="text-m" color="text-secondary-text">
65
- Тема
66
- </Text>
67
- </span>
68
- </div>
69
- {items.length ? (
70
- items.map((params) => <DepositoryItem key={String(params.publicId)} {...params} />)
71
- ) : (
72
- <NotFound title="Ничего не найдено" description="Попробуйте очистить фильтры" />
73
- )}
74
- <Pagination
75
- currentPage={currentPage + 1}
76
- onPageChange={handleChangePage}
77
- totalPages={totalPages}
78
- itemCount={itemCount}
79
- onItemCountChange={handleItemCountChange}
80
- />
81
- </div>
82
- </BlockWrapper>
83
- );
84
- });
@@ -1,6 +0,0 @@
1
- import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
2
-
3
- /**
4
- * @title Депозитарий
5
- */
6
- export type DepositoryContent = UniBlockContent;
@@ -1,41 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { type FormFieldRegisterer } from '../../hooks/useForm/useForm';
3
- import { Button } from '../../ui-kit/Button/Button';
4
- import { DatePicker } from '../../ui-kit/DatePicker/DatePicker';
5
- import { SearchInput } from '../../ui-kit/SearchDialog/SearchInput';
6
- import { type DepositoryFiltrationState } from './Depository';
7
-
8
- interface DepositoryFilterProps {
9
- filtrationState: DepositoryFiltrationState;
10
- field: FormFieldRegisterer<any>;
11
- onClearFilter: () => void;
12
- }
13
-
14
- export const DepositoryFilter = JSX<DepositoryFilterProps>(
15
- ({ field, onClearFilter, filtrationState }) => (
16
- <div className="grid grid-cols-12 mb-3xl @lg:space-x-xl">
17
- <SearchInput
18
- className="col-span-12 @lg:col-span-4 mt-auto"
19
- placeholder="Поиск"
20
- {...field('query')}
21
- />
22
- <DatePicker
23
- className="col-span-12 @lg:col-span-3 mt-4 @lg:mt-0"
24
- label="Период от"
25
- maxDate={filtrationState.endDate}
26
- {...field('startDate')}
27
- />
28
- <DatePicker
29
- className="col-span-12 @lg:col-span-3 mt-4 @lg:mt-0"
30
- label="Период до"
31
- minDate={filtrationState.startDate}
32
- {...field('endDate')}
33
- />
34
- <div className="col-span-12 @lg:col-span-2 mt-8 @lg:mt-auto">
35
- <Button type="reset" className="w-full" version="secondary" onClick={onClearFilter}>
36
- Очистить
37
- </Button>
38
- </div>
39
- </div>
40
- ),
41
- );
@@ -1,31 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { API_BASE_URI } from '../../api/apiBaseUrl';
3
- import { useLink } from '../../hooks/useLink';
4
- import { RoundedIcon } from '../../ui-kit/Icon/RoundedIcon';
5
- import { Text } from '../../ui-kit/Text/Text';
6
- import { formatDate } from '../../utils/formatDate';
7
- import { type DepositoryDataItem } from './useDepository';
8
-
9
- export const DepositoryItem = JSX(({ title, timestamp, publicId }: DepositoryDataItem) => {
10
- const link = useLink();
11
- const { href } = link({ href: `${API_BASE_URI}/depository/${publicId}/file` });
12
-
13
- return (
14
- <div
15
- className="flex gap-3 items-center py-lg border-gray border-opacity-50 border-b"
16
- key={publicId}
17
- >
18
- <RoundedIcon className="shrink-0" icon="DocDownloadIcon" iconVersion="black" />
19
- <div className="flex flex-col gap-x-6xl lg:flex-row lg:items-center">
20
- {timestamp ? (
21
- <Text size="text-m" font-weight="font-light">
22
- {formatDate(timestamp)}
23
- </Text>
24
- ) : null}
25
- <a className="text-h6 hover:text-primary-active" href={href} download aria-label="Скачать">
26
- {title}
27
- </a>
28
- </div>
29
- </div>
30
- );
31
- });
@@ -1,46 +0,0 @@
1
- import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
2
- import { API_BASE_URI } from '../../api/apiBaseUrl';
3
- import { fetchJSONUnsafe, type FetchJSONUnsafeType } from '../../utils/fetchJSON';
4
- import { formatDate } from '../../utils/formatDate';
5
- import { type DepositoryFiltrationState } from './Depository';
6
-
7
- export interface DepositoryDataItem {
8
- publicId?: number;
9
- timestamp?: string;
10
- title?: number;
11
- }
12
-
13
- interface DepositoryData {
14
- content?: DepositoryDataItem[];
15
- totalPages?: number;
16
- totalElements?: number;
17
- }
18
-
19
- interface UseDepositoryParams extends DepositoryFiltrationState {
20
- size: number;
21
- page: number;
22
- }
23
-
24
- const DEPOSITARY_URL = `${API_BASE_URI}/depository`;
25
-
26
- export const useDepository = ({ size, page, query, startDate, endDate }: UseDepositoryParams) => {
27
- const formatStartDate = startDate ? formatDate(startDate, true) : '';
28
- const formatEndDate = endDate ? formatDate(endDate, true) : '';
29
-
30
- const searchParams = new URLSearchParams(DEPOSITARY_URL);
31
-
32
- searchParams.set('page', String(page));
33
- searchParams.set('size', String(size));
34
- searchParams.set('query', query);
35
- searchParams.set('timestampStart', formatStartDate);
36
- searchParams.set('timestampEnd', formatEndDate);
37
-
38
- const queryString = `?${searchParams.toString()}`;
39
-
40
- const { data } = useAsyncData(
41
- DEPOSITARY_URL + queryString,
42
- fetchJSONUnsafe as FetchJSONUnsafeType<DepositoryData>,
43
- );
44
-
45
- return { items: data?.content, totalPages: data?.totalPages };
46
- };
@@ -1,26 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { Text } from '../Text/Text';
3
- import { type UnitProps } from './UnitProps';
4
-
5
- export const Unit = JSX<UnitProps>(({ prefix, unit, suffix }) => (
6
- <div className="w-full flex items-end">
7
- {prefix ? (
8
- <div className="gradient-color-text">
9
- <Text size="text-h2">{prefix}</Text>
10
- </div>
11
- ) : null}
12
- {unit ? (
13
- // -mb-n добавлен для выравнивания unit относительно prefix и suffix, тк шрифт font-mohave неправильно высчитывает line-height
14
- <div className="-mb-6 @xl:-mb-4">
15
- <span className="font-mohave text-title-large sm:text-title-extra gradient-color-text">
16
- {unit}
17
- </span>
18
- </div>
19
- ) : null}
20
- {suffix ? (
21
- <div className="gradient-color-text">
22
- <Text size="text-h2">{suffix}</Text>
23
- </div>
24
- ) : null}
25
- </div>
26
- ));
@@ -1,8 +0,0 @@
1
- export interface UnitProps {
2
- /** @title Префикс */
3
- prefix?: string;
4
- /** @title Значение */
5
- unit?: number;
6
- /** @title Суффикс */
7
- suffix?: string;
8
- }
@@ -1,14 +0,0 @@
1
- {
2
- "content": {
3
- "version": "primary",
4
- "padding": "",
5
- "title": "Заголовок",
6
- "description": "Описание",
7
- "button": {
8
- "href": "",
9
- "text": "Подробнее",
10
- "target": "_self",
11
- "version": "primary"
12
- }
13
- }
14
- }
@@ -1,28 +0,0 @@
1
- import '../../setup-fixture';
2
-
3
- import { type LinkButtonProps } from '../../ui-kit/LinkButton/LinkButtonProps';
4
- import { CarouselCard } from './CarouselCard';
5
- import { type CarouselCardContent } from './CarouselCardContent';
6
-
7
- const button: LinkButtonProps = {
8
- text: 'Подробнее',
9
- href: '/credit-cards',
10
- version: 'primary',
11
- };
12
-
13
- export const CARD: CarouselCardContent = {
14
- title: 'Контакты и реквизиты',
15
- description:
16
- 'АО «Россельхозбанк» занимает второе место в России по размеру филиальной сети — 66 филиалов во всех регионах страны',
17
- button,
18
- carouselVersion: 'normal',
19
- version: 'primary',
20
- };
21
-
22
- export default {
23
- default: (
24
- <div className="@container container grid grid-cols-12">
25
- <CarouselCard className="col-span-12" {...CARD} />
26
- </div>
27
- ),
28
- };
@@ -1,53 +0,0 @@
1
- import '../../setup-fixture';
2
-
3
- import { type LinkButtonProps } from '../../ui-kit/LinkButton/LinkButtonProps';
4
- import { CarouselCard } from './CarouselCard';
5
- import { type CarouselCardContent } from './CarouselCardContent';
6
-
7
- const button: LinkButtonProps = {
8
- text: 'Подробнее',
9
- href: '/credit-cards',
10
- version: 'secondary',
11
- };
12
-
13
- export const CARD: CarouselCardContent = {
14
- title: 'Хочешь попасть на практику в РСХБ?',
15
- description: 'Стажировка в Россельхозбанке — это возможность реализовать смелые идеи и проекты.',
16
- button,
17
- carouselVersion: 'normal',
18
- version: 'primary',
19
- };
20
-
21
- export const CARD_NEW: CarouselCardContent = {
22
- title: 'РСХБ?',
23
- description: 'Стажировка в Россельхозбанке — это возможность реализовать смелые идеи и проекты.',
24
- button,
25
- carouselVersion: 'normal',
26
- version: 'primary',
27
- };
28
-
29
- export const CARD_MINI: CarouselCardContent = {
30
- title: 'Хочешь попасть на практику в РСХБ?',
31
- description: 'Стажировка в Россельхозбанке — это возможность реализовать смелые идеи и проекты.',
32
- button,
33
- carouselVersion: 'small',
34
- version: 'primary',
35
- };
36
-
37
- export default {
38
- default: (
39
- <div className="@container container grid grid-cols-12">
40
- <CarouselCard className="col-span-12" {...CARD} />
41
- </div>
42
- ),
43
- new: (
44
- <div className="@container container grid grid-cols-12">
45
- <CarouselCard className="col-span-12" {...CARD_NEW} />
46
- </div>
47
- ),
48
- mini: (
49
- <div className="@container container grid grid-cols-12">
50
- <CarouselCard className="col-span-4" {...CARD_MINI} />
51
- </div>
52
- ),
53
- };
@@ -1,47 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { BlockWrapper } from '../../ui-kit/BlockWrapper';
3
- import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
4
- import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
5
- import { style } from '../../utils/style';
6
- import { Headline } from '../Headline/Headline';
7
- import { type CarouselCardContent } from './CarouselCardContent';
8
- import { titleSize } from './titleSize';
9
-
10
- export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {}
11
-
12
- const layerBaseStyle = 'z-10 border border-solid w-full h-full';
13
- const layerStyle = style(layerBaseStyle, 'absolute hidden @xl:block border-transparent');
14
-
15
- export const CarouselCard = JSX<CarouselCardProps>(
16
- ({ className, title, description, button, ...rest }) => (
17
- <BlockWrapper
18
- className={style('sm:pl-6xl sm:pb-4xl @container-normal', className)}
19
- defaultPadding="p-0"
20
- {...rest}
21
- >
22
- <div className="relative h-full">
23
- <div className={style(layerStyle, 'top-9 right-12 bg-green-dark')} />
24
- <div className={style(layerStyle, 'top-6 right-8 bg-green')} />
25
- <div className={style(layerStyle, 'top-3 right-4 bg-green-light')} />
26
- <div
27
- className={style(
28
- layerBaseStyle,
29
- 'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-more-light',
30
- )}
31
- >
32
- <Headline
33
- title={title}
34
- description={description}
35
- headlineVersion={titleSize}
36
- align="text-left"
37
- isEmbedded={true}
38
- />
39
- {renderButtonsSection([button], {
40
- className: 'mt-m sm:mt-6xl sm:justify-center',
41
- isVertical: true,
42
- })}
43
- </div>
44
- </div>
45
- </BlockWrapper>
46
- ),
47
- );
@@ -1,13 +0,0 @@
1
- import { type HeadlineCommonProps } from '../../model/HeadlineType';
2
- import { type SizeVersion } from '../../model/SizeVersion';
3
- import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
4
- import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
5
-
6
- /**
7
- * @title Карточка карусели
8
- */
9
- export type CarouselCardContent = UniBlockContent &
10
- HeadlineCommonProps & {
11
- button?: LinkButtonContent;
12
- carouselVersion?: SizeVersion;
13
- };
@@ -1,6 +0,0 @@
1
- import { type SizeVersion } from '../../model/SizeVersion';
2
-
3
- export const cardStyleMap: Record<SizeVersion, string> = {
4
- normal: 'min-w-full justify-center items-center m-2xl col-span-12',
5
- small: 'min-w-auto justify-center items-center m-4xl col-span-4',
6
- };