@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
@@ -94,7 +94,7 @@ export const BaseTile = JSX<BaseTileProps>(
94
94
 
95
95
  const renderMiddleContent = (insetTitle: VNode, children: VNode) =>
96
96
  insetTitle || children ? (
97
- <div className="grow space-y-lg min-w-fit">
97
+ <div className="grow space-y-lg w-fit">
98
98
  {insetTitle}
99
99
  {children}
100
100
  </div>
@@ -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,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
- import { type SizeVersion } from '../../model/SizeVersion';
2
- export declare const cardStyleMap: Record<SizeVersion, string>;
@@ -1 +0,0 @@
1
- export declare const titleSize = "XS";
@@ -1 +0,0 @@
1
- export declare const titleSize = "XS";
@@ -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,5 +0,0 @@
1
- import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
2
- /**
3
- * @title Депозитарий
4
- */
5
- export declare type DepositoryContent = UniBlockContent;
@@ -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,2 +0,0 @@
1
- import { type DepositoryDataItem } from './useDepository';
2
- export declare const DepositoryItem: import("@redneckz/uni-jsx").UNIComponent<DepositoryDataItem, any, any>;
@@ -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,2 +0,0 @@
1
- import { type UnitProps } from './UnitProps';
2
- export declare const Unit: import("@redneckz/uni-jsx").UNIComponent<UnitProps, any, any>;
@@ -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,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,16 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.CarouselCard = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
- const renderButtonsSection_1 = require("../../ui-kit/LinkButton/renderButtonsSection");
7
- const style_1 = require("../../utils/style");
8
- const Headline_1 = require("../Headline/Headline");
9
- const titleSize_1 = require("./titleSize");
10
- const layerBaseStyle = 'z-10 border border-solid w-full h-full';
11
- const layerStyle = (0, style_1.style)(layerBaseStyle, 'absolute hidden @xl:block border-transparent');
12
- exports.CarouselCard = (0, uni_jsx_1.JSX)(({ className, title, description, button, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('sm:pl-6xl sm:pb-4xl @container-normal', className), defaultPadding: "p-0", ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative h-full", children: [(0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(layerStyle, 'top-9 right-12 bg-green-dark') }), (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(layerStyle, 'top-6 right-8 bg-green') }), (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(layerStyle, 'top-3 right-4 bg-green-light') }), (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-more-light'), children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: titleSize_1.titleSize, align: "text-left", isEmbedded: true }), (0, renderButtonsSection_1.renderButtonsSection)([button], {
13
- className: 'mt-m sm:mt-6xl sm:justify-center',
14
- isVertical: true,
15
- })] })] }) })));
16
- //# sourceMappingURL=CarouselCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CarouselCard.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/CarouselCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AACzD,uFAAoF;AAEpF,6CAA0C;AAC1C,mDAAgD;AAEhD,2CAAwC;AAIxC,MAAM,cAAc,GAAG,wCAAwC,CAAC;AAChE,MAAM,UAAU,GAAG,IAAA,aAAK,EAAC,cAAc,EAAE,8CAA8C,CAAC,CAAC;AAE5E,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACtD,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,uCAAuC,EAAE,SAAS,CAAC,EACpE,cAAc,EAAC,KAAK,KAChB,IAAI,YAER,iCAAK,SAAS,EAAC,iBAAiB,aAC9B,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,UAAU,EAAE,8BAA8B,CAAC,GAAI,EACrE,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,UAAU,EAAE,wBAAwB,CAAC,GAAI,EAC/D,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,UAAU,EAAE,8BAA8B,CAAC,GAAI,EACrE,iCACE,SAAS,EAAE,IAAA,aAAK,EACd,cAAc,EACd,+EAA+E,CAChF,aAED,uBAAC,mBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,qBAAS,EAC1B,KAAK,EAAC,WAAW,EACjB,UAAU,EAAE,IAAI,GAChB,EACD,IAAA,2CAAoB,EAAC,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
- Object.defineProperty(exports, "__esModule", { value: true });
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,7 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.cardStyleMap = void 0;
3
- exports.cardStyleMap = {
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
- };
7
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/constants.ts"],"names":[],"mappings":";;AAEa,QAAA,YAAY,GAAgC;IACvD,MAAM,EAAE,0DAA0D;IAClE,KAAK,EAAE,yDAAyD;CACjE,CAAC"}
@@ -1 +0,0 @@
1
- export declare const titleSize = "XS";
@@ -1,4 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.titleSize = void 0;
3
- exports.titleSize = 'XS';
4
- //# sourceMappingURL=titleSize.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"titleSize.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/titleSize.tsx"],"names":[],"mappings":";;AAAa,QAAA,SAAS,GAAG,IAAI,CAAC"}
@@ -1 +0,0 @@
1
- export declare const titleSize = "XS";
@@ -1,4 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.titleSize = void 0;
3
- exports.titleSize = 'XS';
4
- //# sourceMappingURL=titleSize.mobile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"titleSize.mobile.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/titleSize.mobile.tsx"],"names":[],"mappings":";;AAAa,QAAA,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,42 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.Depository = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
5
- const useForm_1 = require("../../hooks/useForm/useForm");
6
- const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
7
- const NotFound_1 = require("../../ui-kit/NotFound/NotFound");
8
- const Pagination_1 = require("../../ui-kit/Pagination/Pagination");
9
- const Text_1 = require("../../ui-kit/Text/Text");
10
- const UniBlock_1 = require("../../UniBlock/UniBlock");
11
- const style_1 = require("../../utils/style");
12
- const DepositoryFilter_1 = require("./DepositoryFilter");
13
- const DepositoryItem_1 = require("./DepositoryItem");
14
- const useDepository_1 = require("./useDepository");
15
- const DEFAULT_ITEMS_COUNT = 10;
16
- const initialFiltrationState = {
17
- startDate: undefined,
18
- endDate: undefined,
19
- query: '',
20
- };
21
- exports.Depository = (0, UniBlock_1.UniBlock)(({ className, ...rest }) => {
22
- const [currentPage, setCurrentPage] = (0, hooks_1.useState)(0);
23
- const [itemCount, setItemCount] = (0, hooks_1.useState)(DEFAULT_ITEMS_COUNT);
24
- const [filtrationState, { field, reset }] = (0, useForm_1.useForm)(initialFiltrationState);
25
- const { totalPages = 0, items = [] } = (0, useDepository_1.useDepository)({
26
- size: itemCount,
27
- page: currentPage,
28
- ...filtrationState,
29
- });
30
- const handleChangePage = (0, hooks_1.useCallback)((page) => setCurrentPage(page - 1), []);
31
- const handleItemCountChange = (0, hooks_1.useCallback)((count) => {
32
- if (itemCount !== count) {
33
- setItemCount(count);
34
- setCurrentPage(0);
35
- }
36
- else {
37
- setItemCount(count);
38
- }
39
- }, []);
40
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)(className, 'container p-6xl'), ...rest, children: [(0, jsx_runtime_1.jsx)(DepositoryFilter_1.DepositoryFilter, { filtrationState: filtrationState, field: field, onClearFilter: reset }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col", children: [(0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-12 pb-lg border-gray border-opacity-50 border-b", children: [(0, jsx_runtime_1.jsx)("div", { className: "col-span-4 @lg:col-span-2 hidden @lg:block", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", color: "text-secondary-text", children: "\u0414\u0430\u0442\u0430" }) }), (0, jsx_runtime_1.jsx)("span", { className: "col-span-8 @lg:col-span-10 hidden @lg:block", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", color: "text-secondary-text", children: "\u0422\u0435\u043C\u0430" }) })] }), items.length ? (items.map((params) => (0, jsx_runtime_1.jsx)(DepositoryItem_1.DepositoryItem, { ...params }, String(params.publicId)))) : ((0, jsx_runtime_1.jsx)(NotFound_1.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" })), (0, jsx_runtime_1.jsx)(Pagination_1.Pagination, { currentPage: currentPage + 1, onPageChange: handleChangePage, totalPages: totalPages, itemCount: itemCount, onItemCountChange: handleItemCountChange })] })] }));
41
- });
42
- //# sourceMappingURL=Depository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Depository.js","sourceRoot":"","sources":["../../../src/components/Depository/Depository.tsx"],"names":[],"mappings":";;;AAAA,uDAAoE;AACpE,yDAAsD;AACtD,4DAAyD;AACzD,6DAA0D;AAC1D,mEAAgE;AAChE,iDAA8C;AAC9C,sDAAmD;AAEnD,6CAA0C;AAE1C,yDAAsD;AACtD,qDAAkD;AAClD,mDAAgD;AAEhD,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B,MAAM,sBAAsB,GAA8B;IACxD,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,EAAE;CACV,CAAC;AAUW,QAAA,UAAU,GAAG,IAAA,mBAAQ,EAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAClD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,mBAAmB,CAAC,CAAC;IAChE,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,sBAAsB,CAAC,CAAC;IAE5E,MAAM,EAAE,UAAU,GAAG,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,IAAA,6BAAa,EAAC;QACnD,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,WAAW;QACjB,GAAG,eAAe;KACnB,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,CAAC,IAAY,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAErF,MAAM,qBAAqB,GAAG,IAAA,mBAAW,EAAC,CAAC,KAAa,EAAE,EAAE;QAC1D,IAAI,SAAS,KAAK,KAAK,EAAE;YACvB,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,cAAc,CAAC,CAAC,CAAC,CAAC;SACnB;aAAM;YACL,YAAY,CAAC,KAAK,CAAC,CAAC;SACrB;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,wBAAC,2BAAY,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,SAAS,EAAE,iBAAiB,CAAC,KAAM,IAAI,aACpE,uBAAC,mCAAgB,IAAC,eAAe,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,GAAI,EAC1F,iCAAK,SAAS,EAAC,eAAe,aAC5B,iCAAK,SAAS,EAAC,gEAAgE,aAC7E,gCAAK,SAAS,EAAC,4CAA4C,YACzD,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,qBAAqB,yCAExC,GACH,EACN,iCAAM,SAAS,EAAC,6CAA6C,YAC3D,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,qBAAqB,yCAExC,GACF,IACH,EACL,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,uBAAC,+BAAc,OAAmC,MAAM,IAAnC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAgB,CAAC,CACpF,CAAC,CAAC,CAAC,CACF,uBAAC,mBAAQ,IAAC,KAAK,EAAC,8FAAmB,EAAC,WAAW,EAAC,0JAA6B,GAAG,CACjF,EACD,uBAAC,uBAAU,IACT,WAAW,EAAE,WAAW,GAAG,CAAC,EAC5B,YAAY,EAAE,gBAAgB,EAC9B,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,qBAAqB,GACxC,IACE,IACO,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -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
- Object.defineProperty(exports, "__esModule", { value: true });
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,9 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.DepositoryFilter = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Button_1 = require("../../ui-kit/Button/Button");
6
- const DatePicker_1 = require("../../ui-kit/DatePicker/DatePicker");
7
- const SearchInput_1 = require("../../ui-kit/SearchDialog/SearchInput");
8
- exports.DepositoryFilter = (0, uni_jsx_1.JSX)(({ field, onClearFilter, filtrationState }) => ((0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-12 mb-3xl @lg:space-x-xl", children: [(0, jsx_runtime_1.jsx)(SearchInput_1.SearchInput, { className: "col-span-12 @lg:col-span-4 mt-auto", placeholder: "\u041F\u043E\u0438\u0441\u043A", ...field('query') }), (0, jsx_runtime_1.jsx)(DatePicker_1.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') }), (0, jsx_runtime_1.jsx)(DatePicker_1.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') }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-12 @lg:col-span-2 mt-8 @lg:mt-auto", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { type: "reset", className: "w-full", version: "secondary", onClick: onClearFilter, children: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C" }) })] })));
9
- //# sourceMappingURL=DepositoryFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DepositoryFilter.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryFilter.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAAoD;AACpD,mEAAgE;AAChE,uEAAoE;AASvD,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAC7C,iCAAK,SAAS,EAAC,yCAAyC,aACtD,uBAAC,yBAAW,IACV,SAAS,EAAC,oCAAoC,EAC9C,WAAW,EAAC,gCAAO,KACf,KAAK,CAAC,OAAO,CAAC,GAClB,EACF,uBAAC,uBAAU,IACT,SAAS,EAAC,0CAA0C,EACpD,KAAK,EAAC,mDAAW,EACjB,OAAO,EAAE,eAAe,CAAC,OAAO,KAC5B,KAAK,CAAC,WAAW,CAAC,GACtB,EACF,uBAAC,uBAAU,IACT,SAAS,EAAC,0CAA0C,EACpD,KAAK,EAAC,mDAAW,EACjB,OAAO,EAAE,eAAe,CAAC,SAAS,KAC9B,KAAK,CAAC,SAAS,CAAC,GACpB,EACF,gCAAK,SAAS,EAAC,6CAA6C,YAC1D,uBAAC,eAAM,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,15 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.DepositoryItem = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const apiBaseUrl_1 = require("../../api/apiBaseUrl");
6
- const useLink_1 = require("../../hooks/useLink");
7
- const RoundedIcon_1 = require("../../ui-kit/Icon/RoundedIcon");
8
- const Text_1 = require("../../ui-kit/Text/Text");
9
- const formatDate_1 = require("../../utils/formatDate");
10
- exports.DepositoryItem = (0, uni_jsx_1.JSX)(({ title, timestamp, publicId }) => {
11
- const link = (0, useLink_1.useLink)();
12
- const { href } = link({ href: `${apiBaseUrl_1.API_BASE_URI}/depository/${publicId}/file` });
13
- return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-3 items-center py-lg border-gray border-opacity-50 border-b", children: [(0, jsx_runtime_1.jsx)(RoundedIcon_1.RoundedIcon, { className: "shrink-0", icon: "DocDownloadIcon", iconVersion: "black" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-x-6xl lg:flex-row lg:items-center", children: [timestamp ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", "font-weight": "font-light", children: (0, formatDate_1.formatDate)(timestamp) })) : null, (0, jsx_runtime_1.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));
14
- });
15
- //# sourceMappingURL=DepositoryItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DepositoryItem.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAAoD;AACpD,iDAA8C;AAC9C,+DAA4D;AAC5D,iDAA8C;AAC9C,uDAAoD;AAGvC,QAAA,cAAc,GAAG,IAAA,aAAG,EAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAsB,EAAE,EAAE;IACvF,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,yBAAY,eAAe,QAAQ,OAAO,EAAE,CAAC,CAAC;IAE/E,OAAO,CACL,iCACE,SAAS,EAAC,sEAAsE,aAGhF,uBAAC,yBAAW,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAC,iBAAiB,EAAC,WAAW,EAAC,OAAO,GAAG,EAC/E,iCAAK,SAAS,EAAC,qDAAqD,aACjE,SAAS,CAAC,CAAC,CAAC,CACX,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,iBAAa,YAAY,YACzC,IAAA,uBAAU,EAAC,SAAS,CAAC,GACjB,CACR,CAAC,CAAC,CAAC,IAAI,EACR,8BAAG,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,22 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.useDepository = void 0;
3
- const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
4
- const apiBaseUrl_1 = require("../../api/apiBaseUrl");
5
- const fetchJSON_1 = require("../../utils/fetchJSON");
6
- const formatDate_1 = require("../../utils/formatDate");
7
- const DEPOSITARY_URL = `${apiBaseUrl_1.API_BASE_URI}/depository`;
8
- const useDepository = ({ size, page, query, startDate, endDate }) => {
9
- const formatStartDate = startDate ? (0, formatDate_1.formatDate)(startDate, true) : '';
10
- const formatEndDate = endDate ? (0, formatDate_1.formatDate)(endDate, true) : '';
11
- const searchParams = new URLSearchParams(DEPOSITARY_URL);
12
- searchParams.set('page', String(page));
13
- searchParams.set('size', String(size));
14
- searchParams.set('query', query);
15
- searchParams.set('timestampStart', formatStartDate);
16
- searchParams.set('timestampEnd', formatEndDate);
17
- const queryString = `?${searchParams.toString()}`;
18
- const { data } = (0, useAsyncData_1.useAsyncData)(DEPOSITARY_URL + queryString, fetchJSON_1.fetchJSONUnsafe);
19
- return { items: data?.content, totalPages: data?.totalPages };
20
- };
21
- exports.useDepository = useDepository;
22
- //# sourceMappingURL=useDepository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDepository.js","sourceRoot":"","sources":["../../../src/components/Depository/useDepository.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AACxE,qDAAoD;AACpD,qDAAkF;AAClF,uDAAoD;AAoBpD,MAAM,cAAc,GAAG,GAAG,yBAAY,aAAa,CAAC;AAE7C,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,IAAA,uBAAU,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACrE,MAAM,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC,IAAA,uBAAU,EAAC,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,IAAA,2BAAY,EAC3B,cAAc,GAAG,WAAW,EAC5B,2BAAsD,CACvD,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AAChE,CAAC,CAAC;AApBW,QAAA,aAAa,iBAoBxB"}
@@ -1,2 +0,0 @@
1
- import { type UnitProps } from './UnitProps';
2
- export declare const Unit: import("@redneckz/uni-jsx").UNIComponent<UnitProps, any, any>;
@@ -1,9 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.Unit = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Text_1 = require("../Text/Text");
6
- exports.Unit = (0, uni_jsx_1.JSX)(({ prefix, unit, suffix }) => ((0, jsx_runtime_1.jsxs)("div", { className: "w-full flex items-end", children: [prefix ? ((0, jsx_runtime_1.jsx)("div", { className: "gradient-color-text", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h2", children: prefix }) })) : null, unit ? (
7
- // -mb-n добавлен для выравнивания unit относительно prefix и suffix, тк шрифт font-mohave неправильно высчитывает line-height
8
- (0, jsx_runtime_1.jsx)("div", { className: "-mb-6 @xl:-mb-4", children: (0, jsx_runtime_1.jsx)("span", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: unit }) })) : null, suffix ? ((0, jsx_runtime_1.jsx)("div", { className: "gradient-color-text", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h2", children: suffix }) })) : null] })));
9
- //# sourceMappingURL=Unit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Unit.js","sourceRoot":"","sources":["../../../src/ui-kit/Unit/Unit.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uCAAoC;AAGvB,QAAA,IAAI,GAAG,IAAA,aAAG,EAAY,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAC/D,iCAAK,SAAS,EAAC,uBAAuB,aACnC,MAAM,CAAC,CAAC,CAAC,CACR,gCAAK,SAAS,EAAC,qBAAqB,YAClC,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,YAAE,MAAM,GAAQ,GAChC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC;QACN,8HAA8H;QAC9H,gCAAK,SAAS,EAAC,iBAAiB,YAC9B,iCAAM,SAAS,EAAC,sEAAsE,YACnF,IAAI,GACA,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,CAAC,CAAC,CACR,gCAAK,SAAS,EAAC,qBAAqB,YAClC,uBAAC,WAAI,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
- Object.defineProperty(exports, "__esModule", { value: true });
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,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,11 +0,0 @@
1
- import '../../setup-fixture';
2
- import { type CarouselCardContent } from './CarouselCardContent';
3
- export declare const CARD: CarouselCardContent;
4
- export declare const CARD_NEW: CarouselCardContent;
5
- export declare const CARD_MINI: CarouselCardContent;
6
- declare const _default: {
7
- default: any;
8
- new: any;
9
- mini: any;
10
- };
11
- export default _default;
@@ -1,7 +0,0 @@
1
- import '../../setup-fixture';
2
- import { type CarouselCardContent } from './CarouselCardContent';
3
- export declare const CARD: CarouselCardContent;
4
- declare const _default: {
5
- default: any;
6
- };
7
- export default _default;
@@ -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 +0,0 @@
1
- export declare const titleSize = "XS";
@@ -1,2 +0,0 @@
1
- export const titleSize = 'XS';
2
- //# sourceMappingURL=titleSize.mobile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"titleSize.mobile.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/titleSize.mobile.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,5 +0,0 @@
1
- import '../../setup-fixture';
2
- declare const _default: {
3
- default: any;
4
- };
5
- export default _default;
@@ -1,5 +0,0 @@
1
- import '../../setup-fixture';
2
- declare const _default: {
3
- default: any;
4
- };
5
- export default _default;