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

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 (247) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +16 -129
  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/dist/components/Headline/Headline.js +1 -1
  9. package/dist/components/Headline/Headline.js.map +1 -1
  10. package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  11. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  12. package/lib/common.css +1 -1
  13. package/lib/components/Blocks.js +0 -4
  14. package/lib/components/Blocks.js.map +1 -1
  15. package/lib/components/Blocks.mobile.js +0 -4
  16. package/lib/components/Blocks.mobile.js.map +1 -1
  17. package/lib/components/Carousel/Carousel.fixture.d.ts +0 -2
  18. package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +0 -1
  19. package/lib/components/Headline/Headline.js +1 -1
  20. package/lib/components/Headline/Headline.js.map +1 -1
  21. package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  22. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  23. package/mobile/bundle/bundle.umd.js +9 -129
  24. package/mobile/bundle/bundle.umd.min.js +1 -1
  25. package/mobile/dist/components/Blocks.js +0 -4
  26. package/mobile/dist/components/Blocks.js.map +1 -1
  27. package/mobile/dist/components/Headline/Headline.js +1 -1
  28. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  29. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  30. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  31. package/mobile/lib/common.css +1 -1
  32. package/mobile/lib/components/Blocks.js +0 -4
  33. package/mobile/lib/components/Blocks.js.map +1 -1
  34. package/mobile/lib/components/Headline/Headline.js +1 -1
  35. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  36. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  37. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  38. package/mobile/src/components/Blocks.ts +0 -4
  39. package/mobile/src/components/Headline/Headline.tsx +1 -1
  40. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
  41. package/package.json +2 -2
  42. package/src/components/Blocks.mobile.ts +0 -4
  43. package/src/components/Blocks.ts +0 -4
  44. package/src/components/Carousel/Carousel.fixture.mobile.tsx +0 -16
  45. package/src/components/Carousel/Carousel.fixture.tsx +0 -35
  46. package/src/components/Headline/Headline.tsx +1 -1
  47. package/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
  48. package/bundle/components/CarouselCard/CarouselCard.d.ts +0 -5
  49. package/bundle/components/CarouselCard/CarouselCardContent.d.ts +0 -11
  50. package/bundle/components/CarouselCard/constants.d.ts +0 -2
  51. package/bundle/components/CarouselCard/titleSize.d.ts +0 -1
  52. package/bundle/components/CarouselCard/titleSize.mobile.d.ts +0 -1
  53. package/bundle/components/Depository/Depository.d.ts +0 -11
  54. package/bundle/components/Depository/DepositoryContent.d.ts +0 -5
  55. package/bundle/components/Depository/DepositoryFilter.d.ts +0 -9
  56. package/bundle/components/Depository/DepositoryItem.d.ts +0 -2
  57. package/bundle/components/Depository/useDepository.d.ts +0 -15
  58. package/bundle/ui-kit/Unit/Unit.d.ts +0 -2
  59. package/bundle/ui-kit/Unit/UnitProps.d.ts +0 -8
  60. package/dist/components/CarouselCard/CarouselCard.d.ts +0 -5
  61. package/dist/components/CarouselCard/CarouselCard.js +0 -16
  62. package/dist/components/CarouselCard/CarouselCard.js.map +0 -1
  63. package/dist/components/CarouselCard/CarouselCardContent.d.ts +0 -11
  64. package/dist/components/CarouselCard/CarouselCardContent.js +0 -2
  65. package/dist/components/CarouselCard/CarouselCardContent.js.map +0 -1
  66. package/dist/components/CarouselCard/constants.d.ts +0 -2
  67. package/dist/components/CarouselCard/constants.js +0 -7
  68. package/dist/components/CarouselCard/constants.js.map +0 -1
  69. package/dist/components/CarouselCard/titleSize.d.ts +0 -1
  70. package/dist/components/CarouselCard/titleSize.js +0 -4
  71. package/dist/components/CarouselCard/titleSize.js.map +0 -1
  72. package/dist/components/CarouselCard/titleSize.mobile.d.ts +0 -1
  73. package/dist/components/CarouselCard/titleSize.mobile.js +0 -4
  74. package/dist/components/CarouselCard/titleSize.mobile.js.map +0 -1
  75. package/dist/components/Depository/Depository.d.ts +0 -11
  76. package/dist/components/Depository/Depository.js +0 -42
  77. package/dist/components/Depository/Depository.js.map +0 -1
  78. package/dist/components/Depository/DepositoryContent.d.ts +0 -5
  79. package/dist/components/Depository/DepositoryContent.js +0 -2
  80. package/dist/components/Depository/DepositoryContent.js.map +0 -1
  81. package/dist/components/Depository/DepositoryFilter.d.ts +0 -9
  82. package/dist/components/Depository/DepositoryFilter.js +0 -9
  83. package/dist/components/Depository/DepositoryFilter.js.map +0 -1
  84. package/dist/components/Depository/DepositoryItem.d.ts +0 -2
  85. package/dist/components/Depository/DepositoryItem.js +0 -15
  86. package/dist/components/Depository/DepositoryItem.js.map +0 -1
  87. package/dist/components/Depository/useDepository.d.ts +0 -15
  88. package/dist/components/Depository/useDepository.js +0 -22
  89. package/dist/components/Depository/useDepository.js.map +0 -1
  90. package/dist/ui-kit/Unit/Unit.d.ts +0 -2
  91. package/dist/ui-kit/Unit/Unit.js +0 -9
  92. package/dist/ui-kit/Unit/Unit.js.map +0 -1
  93. package/dist/ui-kit/Unit/UnitProps.d.ts +0 -8
  94. package/dist/ui-kit/Unit/UnitProps.js +0 -2
  95. package/dist/ui-kit/Unit/UnitProps.js.map +0 -1
  96. package/lib/components/CarouselCard/CarouselCard.d.ts +0 -5
  97. package/lib/components/CarouselCard/CarouselCard.fixture.d.ts +0 -11
  98. package/lib/components/CarouselCard/CarouselCard.fixture.mobile.d.ts +0 -7
  99. package/lib/components/CarouselCard/CarouselCard.js +0 -14
  100. package/lib/components/CarouselCard/CarouselCard.js.map +0 -1
  101. package/lib/components/CarouselCard/CarouselCardContent.d.ts +0 -11
  102. package/lib/components/CarouselCard/CarouselCardContent.js +0 -2
  103. package/lib/components/CarouselCard/CarouselCardContent.js.map +0 -1
  104. package/lib/components/CarouselCard/constants.d.ts +0 -2
  105. package/lib/components/CarouselCard/constants.js +0 -5
  106. package/lib/components/CarouselCard/constants.js.map +0 -1
  107. package/lib/components/CarouselCard/titleSize.d.ts +0 -1
  108. package/lib/components/CarouselCard/titleSize.js +0 -2
  109. package/lib/components/CarouselCard/titleSize.js.map +0 -1
  110. package/lib/components/CarouselCard/titleSize.mobile.d.ts +0 -1
  111. package/lib/components/CarouselCard/titleSize.mobile.js +0 -2
  112. package/lib/components/CarouselCard/titleSize.mobile.js.map +0 -1
  113. package/lib/components/Depository/Depository.d.ts +0 -11
  114. package/lib/components/Depository/Depository.fixture.d.ts +0 -5
  115. package/lib/components/Depository/Depository.fixture.mobile.d.ts +0 -5
  116. package/lib/components/Depository/Depository.js +0 -40
  117. package/lib/components/Depository/Depository.js.map +0 -1
  118. package/lib/components/Depository/DepositoryContent.d.ts +0 -5
  119. package/lib/components/Depository/DepositoryContent.js +0 -2
  120. package/lib/components/Depository/DepositoryContent.js.map +0 -1
  121. package/lib/components/Depository/DepositoryFilter.d.ts +0 -9
  122. package/lib/components/Depository/DepositoryFilter.js +0 -7
  123. package/lib/components/Depository/DepositoryFilter.js.map +0 -1
  124. package/lib/components/Depository/DepositoryItem.d.ts +0 -2
  125. package/lib/components/Depository/DepositoryItem.js +0 -13
  126. package/lib/components/Depository/DepositoryItem.js.map +0 -1
  127. package/lib/components/Depository/useDepository.d.ts +0 -15
  128. package/lib/components/Depository/useDepository.js +0 -19
  129. package/lib/components/Depository/useDepository.js.map +0 -1
  130. package/lib/ui-kit/Unit/Unit.d.ts +0 -2
  131. package/lib/ui-kit/Unit/Unit.js +0 -7
  132. package/lib/ui-kit/Unit/Unit.js.map +0 -1
  133. package/lib/ui-kit/Unit/UnitProps.d.ts +0 -8
  134. package/lib/ui-kit/Unit/UnitProps.js +0 -2
  135. package/lib/ui-kit/Unit/UnitProps.js.map +0 -1
  136. package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +0 -5
  137. package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +0 -11
  138. package/mobile/bundle/components/CarouselCard/constants.d.ts +0 -2
  139. package/mobile/bundle/components/CarouselCard/titleSize.d.ts +0 -1
  140. package/mobile/bundle/components/Depository/Depository.d.ts +0 -11
  141. package/mobile/bundle/components/Depository/DepositoryContent.d.ts +0 -5
  142. package/mobile/bundle/components/Depository/DepositoryFilter.d.ts +0 -9
  143. package/mobile/bundle/components/Depository/DepositoryItem.d.ts +0 -2
  144. package/mobile/bundle/components/Depository/useDepository.d.ts +0 -15
  145. package/mobile/bundle/ui-kit/Unit/Unit.d.ts +0 -2
  146. package/mobile/bundle/ui-kit/Unit/UnitProps.d.ts +0 -8
  147. package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +0 -5
  148. package/mobile/dist/components/CarouselCard/CarouselCard.js +0 -16
  149. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +0 -1
  150. package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +0 -11
  151. package/mobile/dist/components/CarouselCard/CarouselCardContent.js +0 -2
  152. package/mobile/dist/components/CarouselCard/CarouselCardContent.js.map +0 -1
  153. package/mobile/dist/components/CarouselCard/constants.d.ts +0 -2
  154. package/mobile/dist/components/CarouselCard/constants.js +0 -7
  155. package/mobile/dist/components/CarouselCard/constants.js.map +0 -1
  156. package/mobile/dist/components/CarouselCard/titleSize.d.ts +0 -1
  157. package/mobile/dist/components/CarouselCard/titleSize.js +0 -4
  158. package/mobile/dist/components/CarouselCard/titleSize.js.map +0 -1
  159. package/mobile/dist/components/Depository/Depository.d.ts +0 -11
  160. package/mobile/dist/components/Depository/Depository.js +0 -42
  161. package/mobile/dist/components/Depository/Depository.js.map +0 -1
  162. package/mobile/dist/components/Depository/DepositoryContent.d.ts +0 -5
  163. package/mobile/dist/components/Depository/DepositoryContent.js +0 -2
  164. package/mobile/dist/components/Depository/DepositoryContent.js.map +0 -1
  165. package/mobile/dist/components/Depository/DepositoryFilter.d.ts +0 -9
  166. package/mobile/dist/components/Depository/DepositoryFilter.js +0 -9
  167. package/mobile/dist/components/Depository/DepositoryFilter.js.map +0 -1
  168. package/mobile/dist/components/Depository/DepositoryItem.d.ts +0 -2
  169. package/mobile/dist/components/Depository/DepositoryItem.js +0 -15
  170. package/mobile/dist/components/Depository/DepositoryItem.js.map +0 -1
  171. package/mobile/dist/components/Depository/useDepository.d.ts +0 -15
  172. package/mobile/dist/components/Depository/useDepository.js +0 -22
  173. package/mobile/dist/components/Depository/useDepository.js.map +0 -1
  174. package/mobile/dist/ui-kit/Unit/Unit.d.ts +0 -2
  175. package/mobile/dist/ui-kit/Unit/Unit.js +0 -9
  176. package/mobile/dist/ui-kit/Unit/Unit.js.map +0 -1
  177. package/mobile/dist/ui-kit/Unit/UnitProps.d.ts +0 -8
  178. package/mobile/dist/ui-kit/Unit/UnitProps.js +0 -2
  179. package/mobile/dist/ui-kit/Unit/UnitProps.js.map +0 -1
  180. package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +0 -5
  181. package/mobile/lib/components/CarouselCard/CarouselCard.js +0 -14
  182. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +0 -1
  183. package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +0 -11
  184. package/mobile/lib/components/CarouselCard/CarouselCardContent.js +0 -2
  185. package/mobile/lib/components/CarouselCard/CarouselCardContent.js.map +0 -1
  186. package/mobile/lib/components/CarouselCard/constants.d.ts +0 -2
  187. package/mobile/lib/components/CarouselCard/constants.js +0 -5
  188. package/mobile/lib/components/CarouselCard/constants.js.map +0 -1
  189. package/mobile/lib/components/CarouselCard/titleSize.d.ts +0 -1
  190. package/mobile/lib/components/CarouselCard/titleSize.js +0 -2
  191. package/mobile/lib/components/CarouselCard/titleSize.js.map +0 -1
  192. package/mobile/lib/components/Depository/Depository.d.ts +0 -11
  193. package/mobile/lib/components/Depository/Depository.js +0 -40
  194. package/mobile/lib/components/Depository/Depository.js.map +0 -1
  195. package/mobile/lib/components/Depository/DepositoryContent.d.ts +0 -5
  196. package/mobile/lib/components/Depository/DepositoryContent.js +0 -2
  197. package/mobile/lib/components/Depository/DepositoryContent.js.map +0 -1
  198. package/mobile/lib/components/Depository/DepositoryFilter.d.ts +0 -9
  199. package/mobile/lib/components/Depository/DepositoryFilter.js +0 -7
  200. package/mobile/lib/components/Depository/DepositoryFilter.js.map +0 -1
  201. package/mobile/lib/components/Depository/DepositoryItem.d.ts +0 -2
  202. package/mobile/lib/components/Depository/DepositoryItem.js +0 -13
  203. package/mobile/lib/components/Depository/DepositoryItem.js.map +0 -1
  204. package/mobile/lib/components/Depository/useDepository.d.ts +0 -15
  205. package/mobile/lib/components/Depository/useDepository.js +0 -19
  206. package/mobile/lib/components/Depository/useDepository.js.map +0 -1
  207. package/mobile/lib/ui-kit/Unit/Unit.d.ts +0 -2
  208. package/mobile/lib/ui-kit/Unit/Unit.js +0 -7
  209. package/mobile/lib/ui-kit/Unit/Unit.js.map +0 -1
  210. package/mobile/lib/ui-kit/Unit/UnitProps.d.ts +0 -8
  211. package/mobile/lib/ui-kit/Unit/UnitProps.js +0 -2
  212. package/mobile/lib/ui-kit/Unit/UnitProps.js.map +0 -1
  213. package/mobile/src/components/CarouselCard/CarouselCard.example.json +0 -14
  214. package/mobile/src/components/CarouselCard/CarouselCard.tsx +0 -47
  215. package/mobile/src/components/CarouselCard/CarouselCard.ui.json +0 -1
  216. package/mobile/src/components/CarouselCard/CarouselCardContent.ts +0 -13
  217. package/mobile/src/components/CarouselCard/constants.ts +0 -6
  218. package/mobile/src/components/CarouselCard/titleSize.tsx +0 -1
  219. package/mobile/src/components/Depository/Depository.example.json +0 -6
  220. package/mobile/src/components/Depository/Depository.tsx +0 -84
  221. package/mobile/src/components/Depository/Depository.ui.json +0 -1
  222. package/mobile/src/components/Depository/DepositoryContent.ts +0 -6
  223. package/mobile/src/components/Depository/DepositoryFilter.tsx +0 -41
  224. package/mobile/src/components/Depository/DepositoryItem.tsx +0 -31
  225. package/mobile/src/components/Depository/useDepository.ts +0 -46
  226. package/mobile/src/ui-kit/Unit/Unit.tsx +0 -26
  227. package/mobile/src/ui-kit/Unit/UnitProps.ts +0 -8
  228. package/src/components/CarouselCard/CarouselCard.example.json +0 -14
  229. package/src/components/CarouselCard/CarouselCard.fixture.mobile.tsx +0 -28
  230. package/src/components/CarouselCard/CarouselCard.fixture.tsx +0 -53
  231. package/src/components/CarouselCard/CarouselCard.tsx +0 -47
  232. package/src/components/CarouselCard/CarouselCard.ui.json +0 -1
  233. package/src/components/CarouselCard/CarouselCardContent.ts +0 -13
  234. package/src/components/CarouselCard/constants.ts +0 -6
  235. package/src/components/CarouselCard/titleSize.mobile.tsx +0 -1
  236. package/src/components/CarouselCard/titleSize.tsx +0 -1
  237. package/src/components/Depository/Depository.example.json +0 -6
  238. package/src/components/Depository/Depository.fixture.mobile.tsx +0 -12
  239. package/src/components/Depository/Depository.fixture.tsx +0 -12
  240. package/src/components/Depository/Depository.tsx +0 -84
  241. package/src/components/Depository/Depository.ui.json +0 -1
  242. package/src/components/Depository/DepositoryContent.ts +0 -6
  243. package/src/components/Depository/DepositoryFilter.tsx +0 -41
  244. package/src/components/Depository/DepositoryItem.tsx +0 -31
  245. package/src/components/Depository/useDepository.ts +0 -46
  246. package/src/ui-kit/Unit/Unit.tsx +0 -26
  247. package/src/ui-kit/Unit/UnitProps.ts +0 -8
@@ -1,5 +0,0 @@
1
- import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
2
- import { type CarouselCardContent } from './CarouselCardContent';
3
- export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {
4
- }
5
- export declare const CarouselCard: import("@redneckz/uni-jsx").UNIComponent<CarouselCardProps, any, any>;
@@ -1,14 +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 { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
4
- import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection.js';
5
- import { style } from '../../utils/style.js';
6
- import { Headline } from '../Headline/Headline.js';
7
- import { titleSize } from './titleSize.js';
8
- const layerBaseStyle = 'z-10 border border-solid w-full h-full';
9
- const layerStyle = style(layerBaseStyle, 'absolute hidden @xl:block border-transparent');
10
- export const CarouselCard = JSX(({ className, title, description, button, ...rest }) => (_jsx(BlockWrapper, { className: style('sm:pl-6xl sm:pb-4xl @container-normal', className), defaultPadding: "p-0", ...rest, children: _jsxs("div", { className: "relative h-full", children: [_jsx("div", { className: style(layerStyle, 'top-9 right-12 bg-green-dark') }), _jsx("div", { className: style(layerStyle, 'top-6 right-8 bg-green') }), _jsx("div", { className: style(layerStyle, 'top-3 right-4 bg-green-light') }), _jsxs("div", { className: style(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-more-light'), children: [_jsx(Headline, { title: title, description: description, headlineVersion: titleSize, align: "text-left", isEmbedded: true }), renderButtonsSection([button], {
11
- className: 'mt-m sm:mt-6xl sm:justify-center',
12
- isVertical: true,
13
- })] })] }) })));
14
- //# sourceMappingURL=CarouselCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CarouselCard.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/CarouselCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAEpF,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIxC,MAAM,cAAc,GAAG,wCAAwC,CAAC;AAChE,MAAM,UAAU,GAAG,KAAK,CAAC,cAAc,EAAE,8CAA8C,CAAC,CAAC;AAEzF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACtD,KAAC,YAAY,IACX,SAAS,EAAE,KAAK,CAAC,uCAAuC,EAAE,SAAS,CAAC,EACpE,cAAc,EAAC,KAAK,KAChB,IAAI,YAER,eAAK,SAAS,EAAC,iBAAiB,aAC9B,cAAK,SAAS,EAAE,KAAK,CAAC,UAAU,EAAE,8BAA8B,CAAC,GAAI,EACrE,cAAK,SAAS,EAAE,KAAK,CAAC,UAAU,EAAE,wBAAwB,CAAC,GAAI,EAC/D,cAAK,SAAS,EAAE,KAAK,CAAC,UAAU,EAAE,8BAA8B,CAAC,GAAI,EACrE,eACE,SAAS,EAAE,KAAK,CACd,cAAc,EACd,+EAA+E,CAChF,aAED,KAAC,QAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,SAAS,EAC1B,KAAK,EAAC,WAAW,EACjB,UAAU,EAAE,IAAI,GAChB,EACD,oBAAoB,CAAC,CAAC,MAAM,CAAC,EAAE;wBAC9B,SAAS,EAAE,kCAAkC;wBAC7C,UAAU,EAAE,IAAI;qBACjB,CAAC,IACE,IACF,GACO,CAChB,CACF,CAAC"}
@@ -1,11 +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
- * @title Карточка карусели
7
- */
8
- export declare type CarouselCardContent = UniBlockContent & HeadlineCommonProps & {
9
- button?: LinkButtonContent;
10
- carouselVersion?: SizeVersion;
11
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=CarouselCardContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CarouselCardContent.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/CarouselCardContent.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { type SizeVersion } from '../../model/SizeVersion';
2
- export declare const cardStyleMap: Record<SizeVersion, string>;
@@ -1,5 +0,0 @@
1
- export const cardStyleMap = {
2
- normal: 'min-w-full justify-center items-center m-2xl col-span-12',
3
- small: 'min-w-auto justify-center items-center m-4xl col-span-4',
4
- };
5
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAgC;IACvD,MAAM,EAAE,0DAA0D;IAClE,KAAK,EAAE,yDAAyD;CACjE,CAAC"}
@@ -1 +0,0 @@
1
- export declare const titleSize = "XS";
@@ -1,2 +0,0 @@
1
- export const titleSize = 'XS';
2
- //# sourceMappingURL=titleSize.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"titleSize.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/titleSize.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC"}
@@ -1,11 +0,0 @@
1
- import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
2
- import { type DepositoryContent } from './DepositoryContent';
3
- export interface DepositoryFiltrationState {
4
- startDate: Date | undefined;
5
- endDate: Date | undefined;
6
- query: string;
7
- }
8
- interface DepositoryProps extends DepositoryContent, UniBlockProps {
9
- }
10
- export declare const Depository: import("../../UniBlock/UniBlock").UniBlockComponent<DepositoryProps>;
11
- export {};
@@ -1,40 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
- import { useForm } from '../../hooks/useForm/useForm.js';
4
- import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
5
- import { NotFound } from '../../ui-kit/NotFound/NotFound.js';
6
- import { Pagination } from '../../ui-kit/Pagination/Pagination.js';
7
- import { Text } from '../../ui-kit/Text/Text.js';
8
- import { UniBlock } from '../../UniBlock/UniBlock.js';
9
- import { style } from '../../utils/style.js';
10
- import { DepositoryFilter } from './DepositoryFilter.js';
11
- import { DepositoryItem } from './DepositoryItem.js';
12
- import { useDepository } from './useDepository.js';
13
- const DEFAULT_ITEMS_COUNT = 10;
14
- const initialFiltrationState = {
15
- startDate: undefined,
16
- endDate: undefined,
17
- query: '',
18
- };
19
- export const Depository = UniBlock(({ className, ...rest }) => {
20
- const [currentPage, setCurrentPage] = useState(0);
21
- const [itemCount, setItemCount] = useState(DEFAULT_ITEMS_COUNT);
22
- const [filtrationState, { field, reset }] = useForm(initialFiltrationState);
23
- const { totalPages = 0, items = [] } = useDepository({
24
- size: itemCount,
25
- page: currentPage,
26
- ...filtrationState,
27
- });
28
- const handleChangePage = useCallback((page) => setCurrentPage(page - 1), []);
29
- const handleItemCountChange = useCallback((count) => {
30
- if (itemCount !== count) {
31
- setItemCount(count);
32
- setCurrentPage(0);
33
- }
34
- else {
35
- setItemCount(count);
36
- }
37
- }, []);
38
- return (_jsxs(BlockWrapper, { className: style(className, 'container p-6xl'), ...rest, children: [_jsx(DepositoryFilter, { filtrationState: filtrationState, field: field, onClearFilter: reset }), _jsxs("div", { className: "flex flex-col", children: [_jsxs("div", { className: "grid grid-cols-12 pb-lg border-gray border-opacity-50 border-b", children: [_jsx("div", { className: "col-span-4 @lg:col-span-2 hidden @lg:block", children: _jsx(Text, { size: "text-m", color: "text-secondary-text", children: "\u0414\u0430\u0442\u0430" }) }), _jsx("span", { className: "col-span-8 @lg:col-span-10 hidden @lg:block", children: _jsx(Text, { size: "text-m", color: "text-secondary-text", children: "\u0422\u0435\u043C\u0430" }) })] }), items.length ? (items.map((params) => _jsx(DepositoryItem, { ...params }, String(params.publicId)))) : (_jsx(NotFound, { title: "\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E", description: "\u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B" })), _jsx(Pagination, { currentPage: currentPage + 1, onPageChange: handleChangePage, totalPages: totalPages, itemCount: itemCount, onItemCountChange: handleItemCountChange })] })] }));
39
- });
40
- //# sourceMappingURL=Depository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Depository.js","sourceRoot":"","sources":["../../../src/components/Depository/Depository.tsx"],"names":[],"mappings":"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"}
@@ -1,5 +0,0 @@
1
- import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
2
- /**
3
- * @title Депозитарий
4
- */
5
- export declare type DepositoryContent = UniBlockContent;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=DepositoryContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DepositoryContent.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryContent.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- import { type FormFieldRegisterer } from '../../hooks/useForm/useForm';
2
- import { type DepositoryFiltrationState } from './Depository';
3
- interface DepositoryFilterProps {
4
- filtrationState: DepositoryFiltrationState;
5
- field: FormFieldRegisterer<any>;
6
- onClearFilter: () => void;
7
- }
8
- export declare const DepositoryFilter: import("@redneckz/uni-jsx").UNIComponent<DepositoryFilterProps, any, any>;
9
- export {};
@@ -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
- };