@redneckz/wildless-cms-uni-blocks 0.14.742 → 0.14.743

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 (258) hide show
  1. package/bundle/bundle.umd.js +109 -153
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/OfficesAtmsMap/{renderFiltrationForm.d.ts → FiltrationForm.d.ts} +2 -2
  4. package/bundle/components/OfficesAtmsMap/FoldableCardContent.d.ts +1 -0
  5. package/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
  6. package/bundle/ui-kit/BaseFiltration/GridBlocks.d.ts +8 -0
  7. package/bundle/ui-kit/Button/IconButton.d.ts +10 -0
  8. package/bundle/ui-kit/Foldable/Foldable.d.ts +0 -6
  9. package/bundle/utils/capitalize.d.ts +1 -0
  10. package/bundle/utils/dataAttributes.d.ts +2 -2
  11. package/dist/components/ApplicationLeadForm/GroupedConsents.js +6 -7
  12. package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  13. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -5
  14. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  15. package/{lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts → dist/components/OfficesAtmsMap/FiltrationForm.d.ts} +2 -2
  16. package/dist/components/OfficesAtmsMap/FiltrationForm.js +24 -0
  17. package/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -0
  18. package/dist/components/OfficesAtmsMap/FoldableCardContent.d.ts +1 -0
  19. package/dist/components/OfficesAtmsMap/FoldableCardContent.js +13 -0
  20. package/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -0
  21. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -8
  22. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  23. package/dist/components/OfficesAtmsMap/renderAtmCard.js +6 -12
  24. package/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  25. package/dist/components/OfficesAtmsMap/renderFoldButton.js +2 -4
  26. package/dist/components/OfficesAtmsMap/renderFoldButton.js.map +1 -1
  27. package/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
  28. package/dist/components/OfficesAtmsMap/renderOfficeCard.js +5 -29
  29. package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  30. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +3 -11
  31. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  32. package/dist/components/RollupItem/RollupItem.js +17 -13
  33. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  34. package/dist/components/TariffsTable/TariffsTable.js +3 -1
  35. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  36. package/dist/ui-kit/BaseFiltration/FilteredBlocks.js +2 -2
  37. package/dist/ui-kit/BaseFiltration/FilteredBlocks.js.map +1 -1
  38. package/dist/ui-kit/BaseFiltration/GridBlocks.d.ts +8 -0
  39. package/dist/ui-kit/BaseFiltration/{renderGridBlocks.js → GridBlocks.js} +8 -7
  40. package/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -0
  41. package/dist/ui-kit/Button/IconButton.d.ts +10 -0
  42. package/dist/ui-kit/Button/IconButton.js +13 -0
  43. package/dist/ui-kit/Button/IconButton.js.map +1 -0
  44. package/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -5
  45. package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  46. package/dist/ui-kit/Foldable/Foldable.d.ts +0 -6
  47. package/dist/ui-kit/Foldable/Foldable.js +3 -10
  48. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  49. package/dist/utils/capitalize.d.ts +1 -0
  50. package/dist/utils/capitalize.js +5 -0
  51. package/dist/utils/capitalize.js.map +1 -0
  52. package/dist/utils/dataAttributes.d.ts +2 -2
  53. package/dist/utils/dataAttributes.js +1 -6
  54. package/dist/utils/dataAttributes.js.map +1 -1
  55. package/lib/common.css +1 -1
  56. package/lib/components/ApplicationLeadForm/GroupedConsents.js +7 -8
  57. package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  58. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -5
  59. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  60. package/{dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts → lib/components/OfficesAtmsMap/FiltrationForm.d.ts} +2 -2
  61. package/lib/components/OfficesAtmsMap/FiltrationForm.js +21 -0
  62. package/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -0
  63. package/lib/components/OfficesAtmsMap/FoldableCardContent.d.ts +1 -0
  64. package/lib/components/OfficesAtmsMap/FoldableCardContent.js +11 -0
  65. package/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -0
  66. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -8
  67. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  68. package/lib/components/OfficesAtmsMap/renderAtmCard.js +6 -12
  69. package/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  70. package/lib/components/OfficesAtmsMap/renderFoldButton.js +3 -5
  71. package/lib/components/OfficesAtmsMap/renderFoldButton.js.map +1 -1
  72. package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
  73. package/lib/components/OfficesAtmsMap/renderOfficeCard.js +5 -29
  74. package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  75. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +3 -11
  76. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  77. package/lib/components/RollupItem/RollupItem.js +18 -14
  78. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  79. package/lib/components/TariffsTable/TariffsTable.js +3 -1
  80. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  81. package/lib/ui-kit/BaseFiltration/FilteredBlocks.js +3 -3
  82. package/lib/ui-kit/BaseFiltration/FilteredBlocks.js.map +1 -1
  83. package/lib/ui-kit/BaseFiltration/GridBlocks.d.ts +8 -0
  84. package/{mobile/lib/ui-kit/BaseFiltration/renderGridBlocks.js → lib/ui-kit/BaseFiltration/GridBlocks.js} +7 -5
  85. package/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -0
  86. package/lib/ui-kit/Button/IconButton.d.ts +10 -0
  87. package/lib/ui-kit/Button/IconButton.js +11 -0
  88. package/lib/ui-kit/Button/IconButton.js.map +1 -0
  89. package/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -5
  90. package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  91. package/lib/ui-kit/Foldable/Foldable.d.ts +0 -6
  92. package/lib/ui-kit/Foldable/Foldable.js +4 -11
  93. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  94. package/lib/utils/capitalize.d.ts +1 -0
  95. package/lib/utils/capitalize.js +2 -0
  96. package/lib/utils/capitalize.js.map +1 -0
  97. package/lib/utils/dataAttributes.d.ts +2 -2
  98. package/lib/utils/dataAttributes.js +1 -6
  99. package/lib/utils/dataAttributes.js.map +1 -1
  100. package/mobile/bundle/bundle.umd.js +109 -153
  101. package/mobile/bundle/bundle.umd.min.js +1 -1
  102. package/mobile/bundle/components/OfficesAtmsMap/{renderFiltrationForm.d.ts → FiltrationForm.d.ts} +2 -2
  103. package/mobile/bundle/components/OfficesAtmsMap/FoldableCardContent.d.ts +1 -0
  104. package/mobile/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
  105. package/mobile/bundle/ui-kit/BaseFiltration/GridBlocks.d.ts +8 -0
  106. package/mobile/bundle/ui-kit/Button/IconButton.d.ts +10 -0
  107. package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +0 -6
  108. package/mobile/bundle/utils/capitalize.d.ts +1 -0
  109. package/mobile/bundle/utils/dataAttributes.d.ts +2 -2
  110. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +6 -7
  111. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  112. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -5
  113. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  114. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.d.ts +13 -0
  115. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js +24 -0
  116. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -0
  117. package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.d.ts +1 -0
  118. package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js +13 -0
  119. package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -0
  120. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -8
  121. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  122. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js +6 -12
  123. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  124. package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js +2 -4
  125. package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js.map +1 -1
  126. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
  127. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +5 -29
  128. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  129. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +3 -11
  130. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  131. package/mobile/dist/components/RollupItem/RollupItem.js +17 -13
  132. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  133. package/mobile/dist/components/TariffsTable/TariffsTable.js +3 -1
  134. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  135. package/mobile/dist/ui-kit/BaseFiltration/FilteredBlocks.js +2 -2
  136. package/mobile/dist/ui-kit/BaseFiltration/FilteredBlocks.js.map +1 -1
  137. package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.d.ts +8 -0
  138. package/mobile/dist/ui-kit/BaseFiltration/{renderGridBlocks.js → GridBlocks.js} +8 -7
  139. package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -0
  140. package/mobile/dist/ui-kit/Button/IconButton.d.ts +10 -0
  141. package/mobile/dist/ui-kit/Button/IconButton.js +13 -0
  142. package/mobile/dist/ui-kit/Button/IconButton.js.map +1 -0
  143. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -5
  144. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  145. package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +0 -6
  146. package/mobile/dist/ui-kit/Foldable/Foldable.js +3 -10
  147. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  148. package/mobile/dist/utils/capitalize.d.ts +1 -0
  149. package/mobile/dist/utils/capitalize.js +5 -0
  150. package/mobile/dist/utils/capitalize.js.map +1 -0
  151. package/mobile/dist/utils/dataAttributes.d.ts +2 -2
  152. package/mobile/dist/utils/dataAttributes.js +1 -6
  153. package/mobile/dist/utils/dataAttributes.js.map +1 -1
  154. package/mobile/lib/common.css +1 -1
  155. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +7 -8
  156. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  157. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -5
  158. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  159. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.d.ts +13 -0
  160. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js +21 -0
  161. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -0
  162. package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.d.ts +1 -0
  163. package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js +11 -0
  164. package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -0
  165. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -8
  166. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  167. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js +6 -12
  168. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  169. package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js +3 -5
  170. package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js.map +1 -1
  171. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
  172. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +5 -29
  173. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  174. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +3 -11
  175. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  176. package/mobile/lib/components/RollupItem/RollupItem.js +18 -14
  177. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  178. package/mobile/lib/components/TariffsTable/TariffsTable.js +3 -1
  179. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  180. package/mobile/lib/ui-kit/BaseFiltration/FilteredBlocks.js +3 -3
  181. package/mobile/lib/ui-kit/BaseFiltration/FilteredBlocks.js.map +1 -1
  182. package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.d.ts +8 -0
  183. package/{lib/ui-kit/BaseFiltration/renderGridBlocks.js → mobile/lib/ui-kit/BaseFiltration/GridBlocks.js} +7 -5
  184. package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -0
  185. package/mobile/lib/ui-kit/Button/IconButton.d.ts +10 -0
  186. package/mobile/lib/ui-kit/Button/IconButton.js +11 -0
  187. package/mobile/lib/ui-kit/Button/IconButton.js.map +1 -0
  188. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -5
  189. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  190. package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +0 -6
  191. package/mobile/lib/ui-kit/Foldable/Foldable.js +4 -11
  192. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  193. package/mobile/lib/utils/capitalize.d.ts +1 -0
  194. package/mobile/lib/utils/capitalize.js +2 -0
  195. package/mobile/lib/utils/capitalize.js.map +1 -0
  196. package/mobile/lib/utils/dataAttributes.d.ts +2 -2
  197. package/mobile/lib/utils/dataAttributes.js +1 -6
  198. package/mobile/lib/utils/dataAttributes.js.map +1 -1
  199. package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +26 -44
  200. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +21 -36
  201. package/mobile/src/components/OfficesAtmsMap/FiltrationForm.tsx +79 -0
  202. package/mobile/src/components/OfficesAtmsMap/FoldableCardContent.tsx +16 -0
  203. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +7 -9
  204. package/mobile/src/components/OfficesAtmsMap/renderAtmCard.tsx +12 -27
  205. package/mobile/src/components/OfficesAtmsMap/renderFoldButton.tsx +6 -12
  206. package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +9 -56
  207. package/mobile/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +4 -21
  208. package/mobile/src/components/RollupItem/RollupItem.tsx +29 -27
  209. package/mobile/src/components/TariffsTable/TariffsTable.tsx +10 -9
  210. package/mobile/src/ui-kit/BaseFiltration/FilteredBlocks.tsx +2 -2
  211. package/mobile/src/ui-kit/BaseFiltration/{renderGridBlocks.tsx → GridBlocks.tsx} +29 -32
  212. package/mobile/src/ui-kit/Button/IconButton.tsx +36 -0
  213. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +7 -12
  214. package/mobile/src/ui-kit/Foldable/Foldable.tsx +7 -37
  215. package/mobile/src/utils/capitalize.ts +2 -0
  216. package/mobile/src/utils/dataAttributes.ts +1 -7
  217. package/package.json +1 -1
  218. package/src/components/ApplicationLeadForm/GroupedConsents.tsx +26 -44
  219. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +21 -36
  220. package/src/components/OfficesAtmsMap/FiltrationForm.tsx +79 -0
  221. package/src/components/OfficesAtmsMap/FoldableCardContent.tsx +16 -0
  222. package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +7 -9
  223. package/src/components/OfficesAtmsMap/renderAtmCard.tsx +12 -27
  224. package/src/components/OfficesAtmsMap/renderFoldButton.tsx +6 -12
  225. package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +9 -56
  226. package/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +4 -21
  227. package/src/components/RollupItem/RollupItem.tsx +29 -27
  228. package/src/components/TariffsTable/TariffsTable.tsx +10 -9
  229. package/src/icons/IconName.ts +4 -4
  230. package/src/ui-kit/BaseFiltration/FilteredBlocks.tsx +2 -2
  231. package/src/ui-kit/BaseFiltration/{renderGridBlocks.tsx → GridBlocks.tsx} +29 -32
  232. package/src/ui-kit/Button/IconButton.tsx +36 -0
  233. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +7 -12
  234. package/src/ui-kit/Foldable/Foldable.tsx +7 -37
  235. package/src/utils/capitalize.ts +2 -0
  236. package/src/utils/dataAttributes.ts +1 -7
  237. package/bundle/ui-kit/BaseFiltration/renderGridBlocks.d.ts +0 -9
  238. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +0 -26
  239. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +0 -1
  240. package/dist/ui-kit/BaseFiltration/renderGridBlocks.d.ts +0 -9
  241. package/dist/ui-kit/BaseFiltration/renderGridBlocks.js.map +0 -1
  242. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +0 -22
  243. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +0 -1
  244. package/lib/ui-kit/BaseFiltration/renderGridBlocks.d.ts +0 -9
  245. package/lib/ui-kit/BaseFiltration/renderGridBlocks.js.map +0 -1
  246. package/mobile/bundle/ui-kit/BaseFiltration/renderGridBlocks.d.ts +0 -9
  247. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +0 -13
  248. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +0 -26
  249. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +0 -1
  250. package/mobile/dist/ui-kit/BaseFiltration/renderGridBlocks.d.ts +0 -9
  251. package/mobile/dist/ui-kit/BaseFiltration/renderGridBlocks.js.map +0 -1
  252. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +0 -13
  253. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +0 -22
  254. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +0 -1
  255. package/mobile/lib/ui-kit/BaseFiltration/renderGridBlocks.d.ts +0 -9
  256. package/mobile/lib/ui-kit/BaseFiltration/renderGridBlocks.js.map +0 -1
  257. package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +0 -87
  258. package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +0 -87
@@ -0,0 +1,8 @@
1
+ import { type BlockDef } from '../../model/ContentPageDef';
2
+ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
3
+ import { type GridSection } from './BaseFiltrationContent';
4
+ interface GridBlocksProps extends GridSection, UniBlockProps {
5
+ blocksToRender?: BlockDef[];
6
+ }
7
+ export declare const GridBlocks: import("@redneckz/uni-jsx").UNIComponent<GridBlocksProps, any, any>;
8
+ export {};
@@ -1,4 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
2
4
  import { renderBlocksList } from '../../BlockRenderer/renderBlockList.js';
3
5
  import { AdTile } from '../../components/AdTile/AdTile.js';
4
6
  import { isOdd } from '../../utils/isOdd.js';
@@ -6,12 +8,12 @@ import { style } from '../../utils/style.js';
6
8
  import { DefaultFoldButton } from '../Foldable/DefaultFoldButton.js';
7
9
  import { Foldable } from '../Foldable/Foldable.js';
8
10
  import { FoldableSection } from '../Foldable/FoldableSection.js';
9
- const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
10
11
  const resultsGridStyle = 'space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs';
11
- export const renderGridBlocks = ({ topItemsCount = 0, label = '', block, blocksToRender = [], ...rest }) => {
12
+ export const GridBlocks = JSX(({ topItemsCount = 0, label = '', block, blocksToRender = [], ...rest }) => {
12
13
  const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
13
14
  ? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
14
15
  : [blocksToRender, []];
15
- return (_jsxs("div", { className: style('space-y-2xs', { hidden: !blocksToRender.length }), children: [_jsxs("div", { className: style(resultsGridStyle), children: [renderBlocksList(visibleBlocks, { ...rest.options, parent: block }), isOdd(visibleBlocks.length) ? _jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), _jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (_jsxs(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: [renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }), isOdd(hiddenBlocks.length) ? _jsx(AdTile, { className: "col-span-6", ...rest }) : null] })), renderFoldButton: ({ isUnfolded, onToggle }) => (_jsx(DefaultFoldButton, { className: style({ hidden: topItemsCount < 1 }), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] }));
16
- };
17
- //# sourceMappingURL=renderGridBlocks.js.map
16
+ const [isUnfolded, { toggle }] = useBool(false);
17
+ return (_jsxs("div", { className: style('space-y-2xs', { hidden: !blocksToRender.length }), children: [_jsxs("div", { className: style(resultsGridStyle), children: [renderBlocksList(visibleBlocks, { ...rest.options, parent: block }), isOdd(visibleBlocks.length) ? _jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), _jsxs(Foldable, { children: [_jsxs(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: [renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }), isOdd(hiddenBlocks.length) ? _jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), _jsx(DefaultFoldButton, { className: style({ hidden: topItemsCount < 1 }), dataTheme: rest.options?.page?.colorPalette, disabled: !hiddenBlocks?.length, label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: toggle })] })] }));
18
+ });
19
+ //# sourceMappingURL=GridBlocks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridBlocks.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseFiltration/GridBlocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAGxD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,MAAM,gBAAgB,GAAG,yDAAyD,CAAC;AAMnF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAC3B,CAAC,EAAE,aAAa,GAAG,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzE,MAAM,CAAC,aAAa,EAAE,YAAY,CAAC,GACjC,aAAa,GAAG,CAAC;QACf,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,aAAa,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAC/E,CAAC,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAE3B,MAAM,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAEhD,OAAO,CACL,eAAK,SAAS,EAAE,KAAK,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,aACtE,eAAK,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,aACpC,gBAAgB,CAAC,aAAa,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EACnE,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,SAAS,EAAC,YAAY,KAAK,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,IAC7E,EACN,MAAC,QAAQ,eACP,MAAC,eAAe,IAAC,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,EAAE,UAAU,EAAE,UAAU,aACxE,gBAAgB,CAAC,YAAY,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAClE,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,SAAS,EAAC,YAAY,KAAK,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,IAChE,EAClB,KAAC,iBAAiB,IAChB,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,aAAa,GAAG,CAAC,EAAE,CAAC,EAC/C,SAAS,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,YAAY,EAC3C,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,EAC/B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAClD,OAAO,EAAE,MAAM,GACf,IACO,IACP,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { IconName } from '../../icons/IconName';
2
+ import { type AspectsDef } from '../../model/AspectsProps';
3
+ export interface IconButtonProps {
4
+ className?: string;
5
+ name: IconName;
6
+ text?: string;
7
+ data?: AspectsDef[];
8
+ onClick?: () => void;
9
+ }
10
+ export declare const IconButton: import("@redneckz/uni-jsx").UNIComponent<IconButtonProps, any, any>;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
4
+ import { Icon } from '../../ui-kit/Icon/Icon.js';
5
+ import { getAspectsAttributes } from '../../utils/dataAttributes.js';
6
+ import { style } from '../../utils/style.js';
7
+ export const IconButton = JSX(({ className, name, text, data, onClick }) => {
8
+ const aspectsAttrs = useMemo(() => getAspectsAttributes(data), [data]);
9
+ return (_jsxs("button", { className: style('text-primary-main flex justify-between items-center border-none px-m', text ? 'pt-lg' : 'py-2xs', className), type: "button", ...aspectsAttrs, onClick: onClick, children: [text ? _jsx("div", { className: "pr-m", children: text }) : null, _jsx(Icon, { className: "text-primary-text", name: name, width: "16", height: "16" })] }));
10
+ });
11
+ //# sourceMappingURL=IconButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/IconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAGtD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAU1C,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAkB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;IAC1F,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEvE,OAAO,CACL,kBACE,SAAS,EAAE,KAAK,CACd,sEAAsE,EACtE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EACzB,SAAS,CACV,EACD,IAAI,EAAC,QAAQ,KAET,YAAY,EAChB,OAAO,EAAE,OAAO,aAEf,IAAI,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,MAAM,YAAE,IAAI,GAAO,CAAC,CAAC,CAAC,IAAI,EACjD,KAAC,IAAI,IAAC,SAAS,EAAC,mBAAmB,EAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,IAClE,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -10,9 +10,5 @@ export const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme =
10
10
  icon,
11
11
  iconVersion: 'white',
12
12
  }, className: "my-auto", width: "20", height: "20" })) : null })));
13
- export const renderDefaultFoldButton = ({ isUnfolded, onToggle }) => {
14
- const labels = ['Развернуть', 'Скрыть'];
15
- const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
16
- return (_jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
17
- };
13
+ export const renderDefaultFoldButton = ({ isUnfolded, onToggle }) => (_jsx(DefaultFoldButton, { icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', label: isUnfolded ? 'Скрыть' : 'Развернуть', onClick: onToggle }));
18
14
  //# sourceMappingURL=DefaultFoldButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultFoldButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/DefaultFoldButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAY5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,EAAE,QAAQ,GAAG,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAChF,KAAC,YAAY,IACX,GAAG,EAAC,QAAQ,EACZ,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,gBACN,SAAS,EACrB,cAAc,EAAC,QAAQ,EACvB,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,KAAK,CACd,iFAAiF,EACjF,QAAQ;QACN,CAAC,CAAC,0DAA0D;QAC5D,CAAC,CAAC,kDAAkD,EACtD,SAAS,CACV,EACD,QAAQ,EAAE,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,YAAE,KAAK,GAAQ,EAC7C,QAAQ,EACN,IAAI,CAAC,CAAC,CAAC,CACL,KAAC,GAAG,IACF,KAAK,EAAE;YACL,IAAI;YACJ,WAAW,EAAE,OAAO;SACrB,EACD,SAAS,EAAC,SAAS,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,CAAC,CAAC,CAAC,IAAI,GAEV,CACH,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAqB,EAAE,EAAE;IACrF,MAAM,MAAM,GAAG,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACxC,MAAM,KAAK,GAAe,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;IAE3D,OAAO,CACL,KAAC,iBAAiB,IAChB,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EACjC,OAAO,EAAE,QAAQ,GACjB,CACH,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"DefaultFoldButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/DefaultFoldButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAY5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,EAAE,QAAQ,GAAG,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAChF,KAAC,YAAY,IACX,GAAG,EAAC,QAAQ,EACZ,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,gBACN,SAAS,EACrB,cAAc,EAAC,QAAQ,EACvB,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,KAAK,CACd,iFAAiF,EACjF,QAAQ;QACN,CAAC,CAAC,0DAA0D;QAC5D,CAAC,CAAC,kDAAkD,EACtD,SAAS,CACV,EACD,QAAQ,EAAE,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,YAAE,KAAK,GAAQ,EAC7C,QAAQ,EACN,IAAI,CAAC,CAAC,CAAC,CACL,KAAC,GAAG,IACF,KAAK,EAAE;YACL,IAAI;YACJ,WAAW,EAAE,OAAO;SACrB,EACD,SAAS,EAAC,SAAS,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,CAAC,CAAC,CAAC,IAAI,GAEV,CACH,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAqB,EAAE,EAAE,CAAC,CACtF,KAAC,iBAAiB,IAChB,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAClD,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,EAC3C,OAAO,EAAE,QAAQ,GACjB,CACH,CAAC"}
@@ -1,10 +1,4 @@
1
- import { type VNode } from '../../model/VNode';
2
- import { type FoldablePartProps } from './FoldablePartProps';
3
1
  export interface FoldableProps {
4
2
  className?: string;
5
- unfoldedByDefault?: boolean;
6
- isFoldButtonOnTop?: boolean;
7
- renderFoldableSection: (props: FoldablePartProps) => VNode;
8
- renderFoldButton?: ((props: FoldablePartProps) => VNode) | null;
9
3
  }
10
4
  export declare const Foldable: import("@redneckz/uni-jsx").UNIComponent<FoldableProps, any, any>;
@@ -1,13 +1,6 @@
1
- import { jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
4
- export const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
5
- const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
6
- const onToggle = useCallback(() => {
7
- setIsUnfolded((_) => !_);
8
- }, []);
9
- const sectionNode = renderFoldableSection({ isUnfolded, onToggle });
10
- const buttonNode = renderFoldButton ? renderFoldButton({ isUnfolded, onToggle }) : null;
11
- return isFoldButtonOnTop ? (_jsxs("div", { className: className, role: "group", children: [buttonNode, sectionNode] })) : (_jsxs("div", { className: className, role: "group", children: [sectionNode, buttonNode] }));
12
- });
3
+ import { style } from '../../utils/style.js';
4
+ // TODO Не особо полезно, в итоге
5
+ export const Foldable = JSX(({ className, children }) => (_jsx("div", { className: style(className), role: "group", children: children })));
13
6
  //# sourceMappingURL=Foldable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Foldable.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/Foldable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAYpE,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,iBAAiB,GAAG,KAAK,EACzB,iBAAiB,GAAG,KAAK,EACzB,qBAAqB,EACrB,gBAAgB,GACjB,EAAE,EAAE;IACH,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IAEhE,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE;QAChC,aAAa,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,WAAW,GAAG,qBAAqB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC;IACpE,MAAM,UAAU,GAAG,gBAAgB,CAAC,CAAC,CAAC,gBAAgB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAExF,OAAO,iBAAiB,CAAC,CAAC,CAAC,CACzB,eAAK,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,OAAO,aACpC,UAAU,EACV,WAAW,IACR,CACP,CAAC,CAAC,CAAC,CACF,eAAK,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,OAAO,aACpC,WAAW,EACX,UAAU,IACP,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"Foldable.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/Foldable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAM1C,iCAAiC;AACjC,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACtE,cAAK,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,IAAI,EAAC,OAAO,YAC3C,QAAQ,GACL,CACP,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const capitalize: (text?: string) => string;
@@ -0,0 +1,2 @@
1
+ export const capitalize = (text) => text ? `${text.charAt(0).toUpperCase()}${text.slice(1)}` : '';
2
+ //# sourceMappingURL=capitalize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capitalize.js","sourceRoot":"","sources":["../../src/utils/capitalize.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAa,EAAU,EAAE,CAClD,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type AspectsDef } from '../model/AspectsProps';
2
2
  export declare const getAspectsAttributes: (data?: AspectsDef[]) => {
3
- 'data-aspects'?: undefined;
4
- } | {
5
3
  'data-aspects': string;
4
+ } | {
5
+ 'data-aspects'?: undefined;
6
6
  };
@@ -1,11 +1,6 @@
1
1
  export const getAspectsAttributes = (data) => {
2
- if (!Array.isArray(data) || !data.length) {
3
- return {};
4
- }
5
2
  try {
6
- return {
7
- 'data-aspects': JSON.stringify(data),
8
- };
3
+ return Array.isArray(data) && data.length ? { 'data-aspects': JSON.stringify(data) } : {};
9
4
  }
10
5
  catch (_) {
11
6
  return {};
@@ -1 +1 @@
1
- {"version":3,"file":"dataAttributes.js","sourceRoot":"","sources":["../../src/utils/dataAttributes.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAmB,EAAE,EAAE;IAC1D,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QACxC,OAAO,EAAE,CAAC;KACX;IAED,IAAI;QACF,OAAO;YACL,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;SACrC,CAAC;KACH;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,EAAE,CAAC;KACX;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"dataAttributes.js","sourceRoot":"","sources":["../../src/utils/dataAttributes.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAmB,EAAE,EAAE;IAC1D,IAAI;QACF,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC3F;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,EAAE,CAAC;KACX;AACH,CAAC,CAAC"}