@ludo.ninja/components 2.0.9 → 2.0.11

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 (339) hide show
  1. package/build/api/graphql/index.js +3 -7
  2. package/build/api/server-assets/mutations/useDislikeAsset/index.js +7 -9
  3. package/build/api/server-assets/mutations/useLikeAsset/index.js +7 -9
  4. package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.js +14 -21
  5. package/build/api/server-assets/queries/useFetchAssets/index.js +11 -14
  6. package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +13 -15
  7. package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +11 -13
  8. package/build/api/server-collection/mutations/useDislikeCollection/index.js +7 -9
  9. package/build/api/server-collection/mutations/useLikeCollection/index.js +7 -9
  10. package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +19 -21
  11. package/build/api/server-experiences/queries/useFetchMyTasks/index.js +15 -20
  12. package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.js +9 -12
  13. package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +9 -13
  14. package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +9 -12
  15. package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.js +13 -16
  16. package/build/api/server-galleries/mutations/useCreateFavorites/index.js +5 -8
  17. package/build/api/server-galleries/mutations/useCreateGallery/index.js +5 -8
  18. package/build/api/server-galleries/mutations/useDeleteGallery/index.js +10 -12
  19. package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +9 -13
  20. package/build/api/server-galleries/mutations/useEditGallery/index.js +5 -7
  21. package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +13 -16
  22. package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +12 -15
  23. package/build/api/server-galleries/queries/useFetchGallery/index.js +11 -18
  24. package/build/api/server-galleries/queries/useFetchGalleryAssets/index.js +9 -12
  25. package/build/api/server-galleries/queries/useFetchMyFavorites/index.js +11 -17
  26. package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +13 -19
  27. package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +9 -11
  28. package/build/api/server-galleries/queries/useFetchUserFavorites/index.js +10 -16
  29. package/build/api/server-identities/mutations/useAddWalletElrond/index.js +10 -12
  30. package/build/api/server-identities/mutations/useAddWalletFlow/index.js +10 -12
  31. package/build/api/server-identities/mutations/useAddWalletMetamask/index.js +10 -12
  32. package/build/api/server-identities/mutations/useAddWalletSolana/index.js +10 -12
  33. package/build/api/server-identities/mutations/useAddWalletTezos/index.js +10 -12
  34. package/build/api/server-identities/mutations/useFollowProfile/index.js +13 -15
  35. package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +7 -9
  36. package/build/api/server-identities/mutations/useInviteCode/index.js +9 -11
  37. package/build/api/server-identities/mutations/useRemoveWallet/index.js +10 -12
  38. package/build/api/server-identities/mutations/useRevokeToken/index.js +5 -7
  39. package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +9 -11
  40. package/build/api/server-identities/mutations/useUnfollowProfile/index.js +13 -15
  41. package/build/api/server-identities/queries/useFetchProfile/index.js +19 -23
  42. package/build/api/server-identities/queries/useFetchUserWallets/index.js +4 -6
  43. package/build/api/server-medias/mutations/useDeleteUserpic/index.js +7 -9
  44. package/build/api/server-medias/mutations/useUploadUserpic/index.js +7 -9
  45. package/build/api/server-medias/queries/useFetchUserPic/index.js +8 -10
  46. package/build/api/server-opportunities/mutations/useDislikeOpportunity.js +8 -12
  47. package/build/api/server-opportunities/mutations/useLikeOpportunity.js +8 -12
  48. package/build/api/server-opportunities/mutations/useOpenOpportunity/index.js +8 -10
  49. package/build/api/server-opportunities/queries/useGetOpportunities.js +9 -13
  50. package/build/api/server-preferences/queries/fetchSearchResultSelections/index.js +6 -11
  51. package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +9 -13
  52. package/build/api/server-search/queries/useFetchAllCreations/index.js +15 -23
  53. package/build/api/server-search/queries/useFetchAssetsCount/index.js +2 -4
  54. package/build/api/server-search/queries/useFetchCollection/index.js +16 -23
  55. package/build/api/server-search/queries/useFetchCollections/index.js +16 -23
  56. package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +18 -24
  57. package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +16 -24
  58. package/build/api/server-search/queries/useFetchNetWorth/index.js +7 -9
  59. package/build/api/server-search/queries/useFindCreations/index.js +20 -28
  60. package/build/api/server-search/queries/useFindProfilesByName/index.js +14 -19
  61. package/build/api/server-search/queries/useFindShowcaseItems/index.js +1 -3
  62. package/build/api/server-search/queries/useFindUserCreations/index.js +16 -21
  63. package/build/api/server-search/queries/useFindUserShowcaseItems/index.js +1 -3
  64. package/build/api/subscriptions/SubscriberInviteNotification.js +18 -22
  65. package/build/components/assetPage/assetLikes/index.js +25 -30
  66. package/build/components/assetPage/assetNft/index.js +14 -21
  67. package/build/components/assetPage/audioVideoPlayer/Duration.js +5 -8
  68. package/build/components/assetPage/audioVideoPlayer/index.js +51 -81
  69. package/build/components/assetPage/category/index.js +18 -25
  70. package/build/components/assetPage/description/index.js +17 -24
  71. package/build/components/assetPage/index.js +11 -25
  72. package/build/components/assetPage/information/index.js +43 -50
  73. package/build/components/assetPage/marketPlaces/index.js +26 -33
  74. package/build/components/assetPage/media/AssetImage/index.js +52 -80
  75. package/build/components/assetPage/moreDropDown/index.js +47 -77
  76. package/build/components/assetPage/participants/index.js +64 -71
  77. package/build/components/assetPage/priceRank/index.js +38 -45
  78. package/build/components/assetPage/properties/index.js +19 -26
  79. package/build/components/assetPage/slider/index.js +44 -51
  80. package/build/components/assetPage/slider/slideItem.js +14 -21
  81. package/build/components/assetPage/slider/store.js +2 -5
  82. package/build/components/assetPage/tittle/index.js +32 -39
  83. package/build/components/assetPage/viewer3D/index.js +50 -58
  84. package/build/components/base/Meta/index.js +6 -11
  85. package/build/components/base/NoSSR/index.js +4 -9
  86. package/build/components/favoriteList/add/addCreationToFavoriteList/index.js +14 -19
  87. package/build/components/gallery/add/addCreationToGallery/index.js +20 -25
  88. package/build/components/headers/components/headerExperienceLabel/index.js +12 -17
  89. package/build/components/headers/components/headerUserPic/index.js +11 -16
  90. package/build/components/headers/header/index.js +17 -22
  91. package/build/components/headers/headerSearch/index.js +21 -26
  92. package/build/components/headers/headerSimple/index.js +14 -19
  93. package/build/components/linkTabs/index.js +14 -19
  94. package/build/components/linkTabs/linkTab/index.js +22 -27
  95. package/build/components/profile/profileSkeleton/index.js +10 -18
  96. package/build/components/search/SearchInputContainer.js +61 -91
  97. package/build/components/search/searchCloseMoreButtons/index.js +20 -25
  98. package/build/components/search/searchSimpleInput/index.js +37 -65
  99. package/build/components/search/searchSuggestions/index.js +32 -37
  100. package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.js +17 -22
  101. package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.js +20 -25
  102. package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +29 -34
  103. package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +28 -58
  104. package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +19 -24
  105. package/build/components/searchFiltersConnector/filters/applyResetBtns/index.js +11 -16
  106. package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.js +13 -18
  107. package/build/components/searchFiltersConnector/filters/index.js +38 -43
  108. package/build/components/searchFiltersConnector/filters/mobileFilters/index.js +5 -10
  109. package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.js +12 -17
  110. package/build/components/searchFiltersConnector/index.js +12 -19
  111. package/build/components/sidebar/data.js +18 -26
  112. package/build/components/sidebar/index.js +59 -87
  113. package/build/components/sidebar/initializer.js +4 -34
  114. package/build/components/sidebar/sidebarFilters/index.js +8 -13
  115. package/build/components/sidebar/sidebarInviteCodeLabel/index.js +14 -19
  116. package/build/components/toTopBtn/index.js +32 -39
  117. package/build/dto/AssetEntity/index.js +19 -24
  118. package/build/dto/AssetEntity/interface.js +1 -2
  119. package/build/dto/AssetEntity/views/AssetAudio/index.js +11 -16
  120. package/build/dto/AssetEntity/views/AssetImage/index.js +12 -17
  121. package/build/dto/AssetEntity/views/AssetObject/index.js +13 -18
  122. package/build/dto/AssetEntity/views/AssetOther/index.js +13 -18
  123. package/build/dto/AssetEntity/views/AssetScreenshot/index.js +12 -17
  124. package/build/dto/AssetEntity/views/AssetVideo/index.js +11 -16
  125. package/build/dto/AssetEntity/views/index.js +6 -16
  126. package/build/dto/Collection/CollectionCreationEntity/index.js +22 -27
  127. package/build/dto/Collection/CollectionCreationEntity/interface.js +1 -2
  128. package/build/dto/Collection/CollectionEntity/index.js +5 -7
  129. package/build/dto/Collection/CollectionEntity/interface.js +1 -2
  130. package/build/dto/CreationEntity/index.js +19 -24
  131. package/build/dto/CreationEntity/interface.js +1 -2
  132. package/build/dto/GalleryEntityV2/index.js +5 -10
  133. package/build/dto/GalleryEntityV2/interface.js +1 -2
  134. package/build/dto/Theme/interface.js +1 -5
  135. package/build/dto/common/ItemType/data.js +26 -28
  136. package/build/dto/common/ItemType/index.js +5 -7
  137. package/build/dto/common/ItemViews/CreationAudio/index.js +11 -16
  138. package/build/dto/common/ItemViews/CreationImage/index.js +12 -17
  139. package/build/dto/common/ItemViews/CreationObject/index.js +10 -15
  140. package/build/dto/common/ItemViews/CreationOther/index.js +11 -16
  141. package/build/dto/common/ItemViews/CreationVideo/index.js +11 -16
  142. package/build/dto/common/Media/Audio/index.js +9 -14
  143. package/build/dto/common/Media/Image/index.js +10 -15
  144. package/build/dto/common/Media/Object/index.js +9 -14
  145. package/build/dto/common/Media/Other/index.js +14 -19
  146. package/build/dto/common/Media/Screenshot/index.js +10 -15
  147. package/build/dto/common/Media/Urls/index.js +23 -38
  148. package/build/dto/common/Media/Video/index.js +9 -14
  149. package/build/dto/common/Media/index.js +3 -5
  150. package/build/dto/common/Media/interface.js +1 -2
  151. package/build/entities/user/type.js +1 -2
  152. package/build/fonts/FontsInitializeLayout.js +13 -16
  153. package/build/fonts/vars.js +1 -6
  154. package/build/hooks/apollo/index.js +8 -11
  155. package/build/hooks/audio/useMultiAudio/index.js +10 -12
  156. package/build/hooks/extension/useExtension/index.js +8 -10
  157. package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +33 -39
  158. package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +32 -39
  159. package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +32 -39
  160. package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +27 -34
  161. package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +26 -32
  162. package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +23 -29
  163. package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +27 -34
  164. package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +30 -36
  165. package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +11 -13
  166. package/build/hooks/likes/dynamic/useGetTableLikes.js +24 -30
  167. package/build/hooks/likes/index.js +27 -32
  168. package/build/hooks/likes/useGetLikesAsset.js +20 -24
  169. package/build/layouts/GlobalLayout.js +24 -31
  170. package/build/layouts/base/LWithRegularHeader/index.js +7 -12
  171. package/build/layouts/base/LWithRegularHeader/type.js +1 -2
  172. package/build/layouts/base/LWithSearchHeader/index.js +5 -10
  173. package/build/layouts/base/LWithSearchHeader/type.js +1 -2
  174. package/build/layouts/custom/mainLayout/index.js +8 -13
  175. package/build/layouts/custom/styles.js +15 -21
  176. package/build/layouts/pageTransitionLayout.js +6 -8
  177. package/build/layouts/pageWithLayout.js +1 -2
  178. package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +35 -42
  179. package/build/modules/gallery/api/useGetFavoriteGallery.js +11 -15
  180. package/build/modules/gallery/store.js +10 -16
  181. package/build/modules/gallery/ui/AllResults.js +7 -11
  182. package/build/modules/gallery/ui/Description.js +24 -31
  183. package/build/modules/gallery/ui/EditGallery.js +15 -22
  184. package/build/modules/gallery/ui/GalleryDeleteIcon.js +12 -19
  185. package/build/modules/gallery/ui/PlaceholderItemsGallery.js +21 -28
  186. package/build/modules/gallery/ui/STopSections.js +10 -16
  187. package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +25 -30
  188. package/build/modules/gallery/ui/chooseGalleryItems/index.js +47 -52
  189. package/build/modules/gallery/ui/createGalleryForm/index.js +31 -36
  190. package/build/modules/gallery/ui/editGalleryForm/index.js +40 -45
  191. package/build/modules/gallery/ui/itemsPreview/index.js +54 -61
  192. package/build/modules/gallery/useToGalleryAsset.js +15 -23
  193. package/build/modules/notifications/CreatorNotifications.js +10 -40
  194. package/build/modules/notifications/index.js +3 -6
  195. package/build/modules/opportunity/OpportunityCard.js +81 -88
  196. package/build/modules/opportunity/OpportunityDropDown.js +11 -18
  197. package/build/modules/opportunity/ShareIcon.js +2 -6
  198. package/build/modules/opportunity/encodeQuery.js +4 -10
  199. package/build/modules/opportunity/popup/CopyIcon.js +3 -5
  200. package/build/modules/opportunity/popup/FacebookIcon.js +3 -5
  201. package/build/modules/opportunity/popup/LinkedInIcon.js +3 -5
  202. package/build/modules/opportunity/popup/LogoXIcon.js +3 -5
  203. package/build/modules/opportunity/popup/OpportunityMenu.js +44 -51
  204. package/build/modules/opportunity/type.js +1 -2
  205. package/build/modules/sessionScroll/globalTabs.js +1 -4
  206. package/build/modules/sessionScroll/index.js +16 -23
  207. package/build/modules/sessionScroll/type.js +1 -2
  208. package/build/modules/sessionScroll/useVirtuosoInitialScroll.js +12 -16
  209. package/build/modules/user/auth/useAuthVerification.js +10 -37
  210. package/build/modules/user/auth/useSignIn.js +7 -11
  211. package/build/modules/user/auth/useSignOut.js +11 -18
  212. package/build/modules/user/profileData/profileDataInitialization.js +14 -18
  213. package/build/modules/user/store.js +9 -12
  214. package/build/modules/virtuoso/VirtuosoPageBuilder.js +36 -43
  215. package/build/modules/virtuoso/VirtuosoToTopBtn.js +8 -13
  216. package/build/modules/virtuoso/types.js +1 -2
  217. package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +4 -8
  218. package/build/modules/virtuoso/useVirtuosoData.js +6 -10
  219. package/build/store/env/index.js +4 -7
  220. package/build/store/index.js +4 -7
  221. package/build/store/media/index.js +4 -7
  222. package/build/store/media/types.js +1 -2
  223. package/build/store/ui/index.js +21 -24
  224. package/build/store/ui/types.js +1 -2
  225. package/build/store/ui/utils.js +4 -8
  226. package/build/styles/ScreenWidth.js +3 -6
  227. package/build/styles/animations/index.js +3 -6
  228. package/build/styles/colors/index.js +1 -38
  229. package/build/styles/globalStyles.js +5 -7
  230. package/build/styles/mixins/boxShadow.js +3 -5
  231. package/build/styles/mixins/boxTransform.js +3 -5
  232. package/build/styles/mixins/z-indexes.js +10 -13
  233. package/build/styles/typography/index.js +1 -13
  234. package/build/system/ActiveLink/ActiveLink.test.js +14 -19
  235. package/build/system/ActiveLink/index.js +10 -38
  236. package/build/system/Alert/index.js +6 -11
  237. package/build/system/Alert/type.js +1 -8
  238. package/build/system/BasicOverlay/index.js +5 -10
  239. package/build/system/Buttons/IconButton/index.js +2 -7
  240. package/build/system/Buttons/IconWithButton/index.js +2 -7
  241. package/build/system/Buttons/MainButton/index.js +2 -7
  242. package/build/system/Buttons/SecondaryButton/index.js +2 -7
  243. package/build/system/Cards/CardCheckbox/CardCheckbox.test.js +8 -13
  244. package/build/system/Cards/CardCheckbox/index.js +19 -24
  245. package/build/system/Cards/CardContent/CardCategory/CardCategory.test.js +11 -16
  246. package/build/system/Cards/CardContent/CardCategory/index.js +13 -18
  247. package/build/system/Cards/CardContent/CardContent.test.js +31 -36
  248. package/build/system/Cards/CardContent/CardLikes/CardLikes.test.js +11 -16
  249. package/build/system/Cards/CardContent/CardLikes/index.js +11 -16
  250. package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.js +20 -25
  251. package/build/system/Cards/CardContent/CardShowMore/index.js +34 -40
  252. package/build/system/Cards/CardContent/index.js +32 -37
  253. package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.js +35 -40
  254. package/build/system/Cards/CardMedia/CardAudio/index.js +18 -23
  255. package/build/system/Cards/CardMedia/CardImage/CardImage.test.js +14 -19
  256. package/build/system/Cards/CardMedia/CardImage/index.js +8 -13
  257. package/build/system/Cards/CardMedia/CardVideo/index.js +17 -22
  258. package/build/system/Cards/CardRank/index.js +32 -37
  259. package/build/system/Cards/CreationCard/CardHead.js +35 -42
  260. package/build/system/Cards/CreationCard/index.js +45 -76
  261. package/build/system/Cards/MultiMediaCard/index.js +30 -35
  262. package/build/system/Cards/Styles/Content.js +9 -14
  263. package/build/system/Cards/Styles/Head.js +8 -13
  264. package/build/system/Cards/Styles/Headicons.js +23 -28
  265. package/build/system/Cards/Styles/Image.js +8 -13
  266. package/build/system/Cards/Styles/Likes.js +14 -19
  267. package/build/system/Cards/Styles/MultiHead.js +11 -16
  268. package/build/system/Cards/Styles/Video.js +3 -8
  269. package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +14 -19
  270. package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +10 -15
  271. package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +17 -24
  272. package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +15 -20
  273. package/build/system/DropDown/DropDown.test.js +14 -19
  274. package/build/system/DropDown/index.js +12 -17
  275. package/build/system/Filters/helpers.js +1 -5
  276. package/build/system/Filters/type.js +2 -5
  277. package/build/system/Forms/Checkbox/Checkbox.test.js +13 -18
  278. package/build/system/Forms/Checkbox/index.js +16 -21
  279. package/build/system/Forms/DatePicker/index.js +46 -51
  280. package/build/system/Forms/ErrorLabel/ErrorLabel.test.js +11 -16
  281. package/build/system/Forms/ErrorLabel/index.js +10 -15
  282. package/build/system/Forms/Input/Input.test.js +13 -18
  283. package/build/system/Forms/Input/index.js +29 -35
  284. package/build/system/Forms/Input/type.js +1 -2
  285. package/build/system/Forms/Messages/index.js +1 -3
  286. package/build/system/Forms/RadioInput/index.js +12 -17
  287. package/build/system/Forms/Selects/DesktopSelect/index.js +41 -69
  288. package/build/system/Forms/Selects/DesktopSelect/type.js +1 -2
  289. package/build/system/Forms/Selects/MobileSelect/index.js +10 -15
  290. package/build/system/Forms/TextArea/TextArea.test.js +13 -18
  291. package/build/system/Forms/TextArea/index.js +26 -31
  292. package/build/system/Forms/index.js +5 -14
  293. package/build/system/Img/ExternalImage/index.js +11 -17
  294. package/build/system/Img/ImageInterceptor/ImageInterceptor.test.js +18 -23
  295. package/build/system/Img/ImageInterceptor/index.js +10 -40
  296. package/build/system/Img/Profilepic/index.js +12 -19
  297. package/build/system/Img/Userpic/UserPic.test.js +15 -20
  298. package/build/system/Img/Userpic/index.js +28 -33
  299. package/build/system/Img/index.js +3 -19
  300. package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.js +12 -17
  301. package/build/system/Labels/ExperienceLabel/index.js +27 -32
  302. package/build/system/Labels/InviteLabel/InviteLabel.test.js +10 -15
  303. package/build/system/Labels/InviteLabel/index.js +14 -19
  304. package/build/system/Labels/SkeletonLabel/index.js +2 -7
  305. package/build/system/Modals/Modal/Modal.test.js +11 -16
  306. package/build/system/Modals/Modal/index.js +24 -29
  307. package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +7 -37
  308. package/build/system/Modals/ModalSidebar/ModalSidebar.test.js +11 -16
  309. package/build/system/Modals/ModalSidebar/ModalSidebarPortal.js +5 -9
  310. package/build/system/Modals/ModalSidebar/index.js +23 -29
  311. package/build/system/Overlay/Overlay.test.js +11 -16
  312. package/build/system/Overlay/index.js +11 -16
  313. package/build/system/PageLoader/index.js +2 -7
  314. package/build/system/Palete/index.js +2 -7
  315. package/build/system/ShareIconResize.js +14 -21
  316. package/build/system/Tabs/TabNavLink/TabNavLink.test.js +15 -20
  317. package/build/system/Tabs/TabNavLink/index.js +17 -23
  318. package/build/system/Tabs/TabsNav/TabsNav.test.js +18 -23
  319. package/build/system/Tabs/TabsNav/index.js +7 -13
  320. package/build/system/Tabs/TabsNav/type.js +1 -2
  321. package/build/system/Tabs/TabsPanel/TabsPanel.test.js +13 -18
  322. package/build/system/Tabs/TabsPanel/index.js +5 -10
  323. package/build/system/index.js +6 -22
  324. package/build/system/theme.js +1 -7
  325. package/build/utils/3d.js +1 -5
  326. package/build/utils/adaptive/check4k.js +5 -9
  327. package/build/utils/adaptive/scale.js +5 -9
  328. package/build/utils/auth/index.js +3 -7
  329. package/build/utils/copyBtn/index.js +23 -30
  330. package/build/utils/env/index.js +1 -5
  331. package/build/utils/extractItemIds.js +3 -9
  332. package/build/utils/getDimensionsImage.js +1 -5
  333. package/build/utils/getPageSizeAssets.js +4 -8
  334. package/build/utils/imageProportionsSize/index.js +1 -5
  335. package/build/utils/screen/index.js +24 -30
  336. package/build/utils/seacrhTabs.js +1 -4
  337. package/build/utils/ssrFunctions/index.js +9 -15
  338. package/build/utils/ui/index.js +1 -5
  339. package/package.json +2 -3
@@ -1,36 +1,30 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CardHead = void 0;
7
- const jsx_runtime_1 = require("react/jsx-runtime");
8
- const router_1 = require("next/router");
9
- const addCreationToFavoriteList_1 = __importDefault(require("../../../components/favoriteList/add/addCreationToFavoriteList"));
10
- const CollectionCreationEntity_1 = __importDefault(require("../../../dto/Collection/CollectionCreationEntity"));
11
- const ItemType_1 = require("../../../dto/common/ItemType");
12
- const store_1 = require("../../../modules/user/store");
13
- const env_1 = require("../../../store/env");
14
- const ui_1 = require("../../../store/ui");
15
- const ScreenWidth_1 = require("../../../styles/ScreenWidth");
16
- const CardRank_1 = __importDefault(require("../CardRank"));
17
- const Headicons_1 = __importDefault(require("../Styles/Headicons"));
18
- const auth_1 = require("../../../utils/auth");
19
- const screen_1 = require("../../../utils/screen");
20
- const addToFavListIcon_svg_1 = __importDefault(require("../../../public/cards/addToFavListIcon"));
21
- const addToGalleryIcon_svg_1 = __importDefault(require("../../../public/cards/addToGalleryIcon"));
22
- const heart_svg_1 = __importDefault(require("../../../public/cards/heart"));
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useRouter } from 'next/router';
3
+ import AddCreationToFavoriteList from "../../../components/favoriteList/add/addCreationToFavoriteList";
4
+ import CollectionCreationEntity from "../../../dto/Collection/CollectionCreationEntity";
5
+ import { LabelKeys } from "../../../dto/common/ItemType";
6
+ import { useUserStore } from "../../../modules/user/store";
7
+ import { useEnvStore } from "../../../store/env";
8
+ import { useUiStore } from "../../../store/ui";
9
+ import { ScreenWidth } from "../../../styles/ScreenWidth";
10
+ import CardRank from "../CardRank";
11
+ import StyledHeadIcons from "../Styles/Headicons";
12
+ import { useRedirectToLoginWindow } from "../../../utils/auth";
13
+ import { useWindowDimensionsWithServerInitial } from "../../../utils/screen";
14
+ import AddToFavListIcon from "../../../public/cards/addToFavListIcon";
15
+ import AddToGalleryIcon from "../../../public/cards/addToGalleryIcon";
16
+ import AddToLikesIcon from "../../../public/cards/heart";
23
17
  // Component
24
- const CardHead = ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteLikeFromCard, isUserProfile, isDisabled, isShowCheckbox, currentMyGalleryId, }) => {
25
- const redirectToLoginWindow = (0, auth_1.useRedirectToLoginWindow)();
26
- const isProd = (0, env_1.useEnvStore)((state) => state.isProd);
27
- const openModalSidebarPortal = (0, ui_1.useUiStore)((state) => state.openModalSidebarPortal);
28
- const isSignedIn = (0, store_1.useUserStore)((state) => state.isSignedIn);
18
+ export const CardHead = ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteLikeFromCard, isUserProfile, isDisabled, isShowCheckbox, currentMyGalleryId, }) => {
19
+ const redirectToLoginWindow = useRedirectToLoginWindow();
20
+ const isProd = useEnvStore((state) => state.isProd);
21
+ const openModalSidebarPortal = useUiStore((state) => state.openModalSidebarPortal);
22
+ const isSignedIn = useUserStore((state) => state.isSignedIn);
29
23
  const isLicked = isIconLiked && isSignedIn;
30
- const { windowDimensions } = (0, screen_1.useWindowDimensionsWithServerInitial)();
24
+ const { windowDimensions } = useWindowDimensionsWithServerInitial();
31
25
  const isMobile = !!(windowDimensions?.windowWidth &&
32
- windowDimensions.windowWidth <= ScreenWidth_1.ScreenWidth.DESKTOP);
33
- const router = (0, router_1.useRouter)();
26
+ windowDimensions.windowWidth <= ScreenWidth.DESKTOP);
27
+ const router = useRouter();
34
28
  const isGallery = router.pathname.includes('gallery');
35
29
  const handleClick = async (e, type) => {
36
30
  e.preventDefault();
@@ -39,38 +33,37 @@ const CardHead = ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteL
39
33
  redirectToLoginWindow();
40
34
  }
41
35
  else if (type === 'fav-list') {
42
- openModalSidebarPortal((0, jsx_runtime_1.jsx)(addCreationToFavoriteList_1.default, { ids: [
43
- creation instanceof CollectionCreationEntity_1.default
36
+ openModalSidebarPortal(_jsx(AddCreationToFavoriteList, { ids: [
37
+ creation instanceof CollectionCreationEntity
44
38
  ? `${creation.getItemType() + '.' + creation.getCreationId()}`
45
39
  : creation.getCreationId(),
46
40
  ], currentMyGalleryId: currentMyGalleryId }));
47
41
  }
48
42
  else if (type === 'likes') {
49
43
  if (!isLicked) {
50
- await addLikeToCard(creation instanceof CollectionCreationEntity_1.default &&
51
- creation.getItemType() !== ItemType_1.LabelKeys.collection
44
+ await addLikeToCard(creation instanceof CollectionCreationEntity &&
45
+ creation.getItemType() !== LabelKeys.collection
52
46
  ? creation.getCollectionCreationId()
53
47
  : creation.getItemId());
54
48
  }
55
49
  else {
56
- await deleteLikeFromCard(creation instanceof CollectionCreationEntity_1.default &&
57
- creation.getItemType() !== ItemType_1.LabelKeys.collection
50
+ await deleteLikeFromCard(creation instanceof CollectionCreationEntity &&
51
+ creation.getItemType() !== LabelKeys.collection
58
52
  ? creation.getCollectionCreationId()
59
53
  : creation.getItemId());
60
54
  }
61
55
  }
62
56
  };
63
57
  const renderLikeButton = () => {
64
- if ([ItemType_1.LabelKeys.asset, ItemType_1.LabelKeys.collection].includes(creation.getItemType())) {
65
- return ((0, jsx_runtime_1.jsx)("div", { className: `icon like ${isLicked ? 'liked' : ''}`, onClick: (e) => handleClick(e, 'likes'), children: (0, jsx_runtime_1.jsx)(heart_svg_1.default, {}) }));
58
+ if ([LabelKeys.asset, LabelKeys.collection].includes(creation.getItemType())) {
59
+ return (_jsx("div", { className: `icon like ${isLicked ? 'liked' : ''}`, onClick: (e) => handleClick(e, 'likes'), children: _jsx(AddToLikesIcon, {}) }));
66
60
  }
67
61
  };
68
- return ((0, jsx_runtime_1.jsxs)(Headicons_1.default, { isMobile: isMobile, style: isDisabled
62
+ return (_jsxs(StyledHeadIcons, { isMobile: isMobile, style: isDisabled
69
63
  ? {
70
64
  pointerEvents: 'none',
71
65
  }
72
- : {}, children: [(0, jsx_runtime_1.jsx)("div", { className: 'rank', children: (0, jsx_runtime_1.jsx)(CardRank_1.default, { rank: creation.getRank() }) }), !isProd() && !isShowCheckbox && ((0, jsx_runtime_1.jsxs)("div", { className: "icons", children: [(0, jsx_runtime_1.jsx)("div", { className: "icon", onClick: (e) => handleClick(e, isRegularCard || !isUserProfile || isGallery
66
+ : {}, children: [_jsx("div", { className: 'rank', children: _jsx(CardRank, { rank: creation.getRank() }) }), !isProd() && !isShowCheckbox && (_jsxs("div", { className: "icons", children: [_jsx("div", { className: "icon", onClick: (e) => handleClick(e, isRegularCard || !isUserProfile || isGallery
73
67
  ? 'fav-list'
74
- : 'gallery'), children: isRegularCard || !isUserProfile || isGallery ? ((0, jsx_runtime_1.jsx)(addToFavListIcon_svg_1.default, {})) : ((0, jsx_runtime_1.jsx)(addToGalleryIcon_svg_1.default, {})) }), renderLikeButton()] }))] }));
68
+ : 'gallery'), children: isRegularCard || !isUserProfile || isGallery ? (_jsx(AddToFavListIcon, {})) : (_jsx(AddToGalleryIcon, {})) }), renderLikeButton()] }))] }));
75
69
  };
76
- exports.CardHead = CardHead;
@@ -1,73 +1,44 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.CreationCard = exports.CreationCardWithCheckboxState = void 0;
30
- const jsx_runtime_1 = require("react/jsx-runtime");
31
- const react_1 = __importDefault(require("react"));
32
- const link_1 = __importDefault(require("next/link"));
33
- const react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
34
- const styled_components_1 = __importStar(require("styled-components"));
35
- const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
36
- const env_1 = require("../../../store/env");
37
- const ScreenWidth_1 = require("../../../styles/ScreenWidth");
38
- const colors_1 = require("../../../styles/colors");
39
- const boxShadow_1 = __importDefault(require("../../../styles/mixins/boxShadow"));
40
- const boxTransform_1 = __importDefault(require("../../../styles/mixins/boxTransform"));
41
- const index_1 = require("../../index");
42
- const CardCheckbox_1 = __importDefault(require("../CardCheckbox"));
43
- const CardContent_1 = __importDefault(require("../CardContent"));
44
- const CardCategory_1 = __importDefault(require("../CardContent/CardCategory"));
45
- const CardLikes_1 = __importDefault(require("../CardContent/CardLikes"));
46
- const CardHead_1 = require("./CardHead");
47
- const Head_1 = __importDefault(require("../Styles/Head"));
48
- const Headicons_1 = __importDefault(require("../Styles/Headicons"));
49
- const likes_1 = __importDefault(require("../../../hooks/likes"));
50
- const useToGalleryAsset_1 = require("../../../modules/gallery/useToGalleryAsset");
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import Link from 'next/link';
4
+ import Skeleton from 'react-loading-skeleton';
5
+ import styled, { css } from 'styled-components';
6
+ import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
7
+ import { useEnvStore } from "../../../store/env";
8
+ import { mediaQuery } from "../../../styles/ScreenWidth";
9
+ import { WhiteColor } from "../../../styles/colors";
10
+ import BoxShadow from "../../../styles/mixins/boxShadow";
11
+ import BoxTransform from "../../../styles/mixins/boxTransform";
12
+ import { Flex } from "../../index";
13
+ import CardCheckBox from "../CardCheckbox";
14
+ import CardContent from "../CardContent";
15
+ import CardCategory from "../CardContent/CardCategory";
16
+ import CardLikes from "../CardContent/CardLikes";
17
+ import { CardHead } from "./CardHead";
18
+ import StyledCardHead from "../Styles/Head";
19
+ import StyledHeadIcons from "../Styles/Headicons";
20
+ import useLikes from "../../../hooks/likes";
21
+ import { getIsActiveCreation, useToGalleryStore, } from "../../../modules/gallery/useToGalleryAsset";
51
22
  // Styles
52
- const StyledRegularCard = styled_components_1.default.div `
23
+ const StyledRegularCard = styled.div `
53
24
  position: relative;
54
- background-color: ${colors_1.WhiteColor};
25
+ background-color: ${WhiteColor};
55
26
  border-radius: 6px;
56
- ${boxShadow_1.default};
57
- ${boxTransform_1.default};
58
- // ${(props) => (props.isNeedTransform ? null : boxTransform_1.default)}
27
+ ${BoxShadow};
28
+ ${BoxTransform};
29
+ // ${(props) => (props.isNeedTransform ? null : BoxTransform)}
59
30
 
60
31
  min-height: ${(props) => (props.isNeedHeight ? '346px' : '')};
61
32
 
62
33
  ${(props) => props.isShowCheckbox
63
- ? (0, styled_components_1.css) `
64
- ${Headicons_1.default} {
34
+ ? css `
35
+ ${StyledHeadIcons} {
65
36
  transition: 0.2s opacity ease-in;
66
37
  opacity: 1 !important;
67
38
  }
68
39
  `
69
- : (0, styled_components_1.css) `
70
- &:hover ${Headicons_1.default} {
40
+ : css `
41
+ &:hover ${StyledHeadIcons} {
71
42
  transition: 0.2s opacity ease-in;
72
43
  opacity: 1 !important;
73
44
  }
@@ -78,35 +49,34 @@ const StyledRegularCard = styled_components_1.default.div `
78
49
  flex-direction: column;
79
50
  }
80
51
 
81
- ${ScreenWidth_1.mediaQuery.maxWidthTablet} {
52
+ ${mediaQuery.maxWidthTablet} {
82
53
  width: 164px;
83
54
  min-height: ${(props) => (props.isNeedHeight ? '258px' : '')};
84
55
  }
85
56
 
86
- ${ScreenWidth_1.mediaQuery.mobile} {
57
+ ${mediaQuery.mobile} {
87
58
  width: 154px;
88
59
  min-height: ${(props) => (props.isNeedHeight ? '244px' : '')};
89
60
  }
90
61
 
91
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
92
- border-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
62
+ ${mediaQuery.minWidthFourK} {
63
+ border-radius: ${adaptiveValueCalc(6)};
93
64
 
94
- min-height: ${(props) => props.isNeedHeight ? (0, _4k_1.adaptiveValueCalc)(346) : ''};
65
+ min-height: ${(props) => props.isNeedHeight ? adaptiveValueCalc(346) : ''};
95
66
  }
96
67
  `;
97
68
  // Component
98
- const CreationCardWithCheckboxState = (props) => {
99
- const { toggleCreationToGallery, isActiveGalleryMode, creationsToGallery } = (0, useToGalleryAsset_1.useToGalleryStore)((state) => ({
69
+ export const CreationCardWithCheckboxState = (props) => {
70
+ const { toggleCreationToGallery, isActiveGalleryMode, creationsToGallery } = useToGalleryStore((state) => ({
100
71
  toggleCreationToGallery: state.toggleCreationToGallery,
101
72
  isActiveGalleryMode: state.isActiveGalleryMode,
102
73
  creationsToGallery: state.creationsToGallery,
103
74
  }));
104
- return ((0, jsx_runtime_1.jsx)(exports.CreationCard, { ...props, isShowCheckbox: isActiveGalleryMode, isActiveCheckbox: (0, useToGalleryAsset_1.getIsActiveCreation)(creationsToGallery, props.creation), toggleCreationToGallery: toggleCreationToGallery }));
75
+ return (_jsx(CreationCard, { ...props, isShowCheckbox: isActiveGalleryMode, isActiveCheckbox: getIsActiveCreation(creationsToGallery, props.creation), toggleCreationToGallery: toggleCreationToGallery }));
105
76
  };
106
- exports.CreationCardWithCheckboxState = CreationCardWithCheckboxState;
107
- const CreationCard = ({ creationName, creation, isNeedHeight, likesDynamicInfo, toolsForRemove, isMobile, isLoadingLikes, isNeedShowMoreButton, isUserProfile, isRegularCard = true, isShowCheckbox, isActiveCheckbox, toggleCreationToGallery, currentMyGalleryId, }) => {
108
- const isProd = (0, env_1.useEnvStore)((state) => state.isProd);
109
- const { likes, addLike, deleteLike } = (0, likes_1.default)({
77
+ export const CreationCard = ({ creationName, creation, isNeedHeight, likesDynamicInfo, toolsForRemove, isMobile, isLoadingLikes, isNeedShowMoreButton, isUserProfile, isRegularCard = true, isShowCheckbox, isActiveCheckbox, toggleCreationToGallery, currentMyGalleryId, }) => {
78
+ const isProd = useEnvStore((state) => state.isProd);
79
+ const { likes, addLike, deleteLike } = useLikes({
110
80
  defaultLikesCount: likesDynamicInfo?.likesNum || creation.getLikes(),
111
81
  defaultIsLiked: likesDynamicInfo?.isLikedByUser || creation.getIsLiked(),
112
82
  itemType: creation.getItemType(),
@@ -115,10 +85,9 @@ const CreationCard = ({ creationName, creation, isNeedHeight, likesDynamicInfo,
115
85
  });
116
86
  // Todo cardLink
117
87
  const isHide = isProd();
118
- const HideLink = isHide ? react_1.default.Fragment : link_1.default;
119
- return ((0, jsx_runtime_1.jsxs)(StyledRegularCard, { isNeedHeight: isNeedHeight, isNeedTransform: isNeedShowMoreButton, isShowCheckbox: isShowCheckbox, children: [isShowCheckbox && ((0, jsx_runtime_1.jsx)(CardCheckbox_1.default, { isActiveCheckbox: !!isActiveCheckbox, onChange: () => {
88
+ const HideLink = isHide ? React.Fragment : Link;
89
+ return (_jsxs(StyledRegularCard, { isNeedHeight: isNeedHeight, isNeedTransform: isNeedShowMoreButton, isShowCheckbox: isShowCheckbox, children: [isShowCheckbox && (_jsx(CardCheckBox, { isActiveCheckbox: !!isActiveCheckbox, onChange: () => {
120
90
  toggleCreationToGallery?.(creation);
121
- } })), (0, jsx_runtime_1.jsxs)(HideLink, { className: "linkRegularCard", href: creation.getCreationLink(), children: [(0, jsx_runtime_1.jsxs)(Head_1.default, { children: [creation.detectMediaType().displaySingleMedia(), (0, jsx_runtime_1.jsx)(CardHead_1.CardHead, { isRegularCard: !!isRegularCard, isIconLiked: likes.isLiked, creation: creation, addLikeToCard: addLike, deleteLikeFromCard: deleteLike, isUserProfile: isUserProfile || false, isDisabled: !!isLoadingLikes, isShowCheckbox: isShowCheckbox, currentMyGalleryId: currentMyGalleryId })] }), (0, jsx_runtime_1.jsx)(CardContent_1.default, { creationName: creationName, firstName: creation.getCreatorAddress(), secondName: creation.getName(), cuttedSecondName: creation.getCuttedSecondName(!isMobile), itemId: creation.getItemId(), isNeedShowMoreButton: isNeedShowMoreButton || false, href: creation.getCreationLink(), children: (0, jsx_runtime_1.jsxs)(index_1.Flex, { alignItems: "end", justifyContent: 'space-between', children: [(0, jsx_runtime_1.jsx)(CardCategory_1.default, { label: creation.getLabel() }), !isProd() &&
122
- (isLoadingLikes ? ((0, jsx_runtime_1.jsx)(react_loading_skeleton_1.default, { style: { borderRadius: '3px' }, height: "100%", width: "30px" })) : ((0, jsx_runtime_1.jsx)(CardLikes_1.default, { isLiked: likes.isLiked, likes: likes.likesCount })))] }) })] })] }));
91
+ } })), _jsxs(HideLink, { className: "linkRegularCard", href: creation.getCreationLink(), children: [_jsxs(StyledCardHead, { children: [creation.detectMediaType().displaySingleMedia(), _jsx(CardHead, { isRegularCard: !!isRegularCard, isIconLiked: likes.isLiked, creation: creation, addLikeToCard: addLike, deleteLikeFromCard: deleteLike, isUserProfile: isUserProfile || false, isDisabled: !!isLoadingLikes, isShowCheckbox: isShowCheckbox, currentMyGalleryId: currentMyGalleryId })] }), _jsx(CardContent, { creationName: creationName, firstName: creation.getCreatorAddress(), secondName: creation.getName(), cuttedSecondName: creation.getCuttedSecondName(!isMobile), itemId: creation.getItemId(), isNeedShowMoreButton: isNeedShowMoreButton || false, href: creation.getCreationLink(), children: _jsxs(Flex, { alignItems: "end", justifyContent: 'space-between', children: [_jsx(CardCategory, { label: creation.getLabel() }), !isProd() &&
92
+ (isLoadingLikes ? (_jsx(Skeleton, { style: { borderRadius: '3px' }, height: "100%", width: "30px" })) : (_jsx(CardLikes, { isLiked: likes.isLiked, likes: likes.likesCount })))] }) })] })] }));
123
93
  };
124
- exports.CreationCard = CreationCard;
@@ -1,30 +1,25 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const link_1 = __importDefault(require("next/link"));
8
- const styled_components_1 = __importDefault(require("styled-components"));
9
- const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
10
- const ScreenWidth_1 = require("../../../styles/ScreenWidth");
11
- const colors_1 = require("../../../styles/colors");
12
- const boxShadow_1 = __importDefault(require("../../../styles/mixins/boxShadow"));
13
- const boxTransform_1 = __importDefault(require("../../../styles/mixins/boxTransform"));
14
- const CardContent_1 = __importDefault(require("../CardContent"));
15
- const CardLikes_1 = __importDefault(require("../CardContent/CardLikes"));
16
- const MultiHead_1 = __importDefault(require("../Styles/MultiHead"));
17
- const index_1 = require("../../index");
18
- const defaultImage_svg_1 = __importDefault(require("../../../public/gallery/defaultImage"));
19
- const CardCategory_1 = __importDefault(require("../CardContent/CardCategory"));
20
- const CardImage_1 = __importDefault(require("../CardMedia/CardImage"));
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Link from 'next/link';
3
+ import styled from 'styled-components';
4
+ import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
5
+ import { mediaQuery } from "../../../styles/ScreenWidth";
6
+ import { WhiteColor } from "../../../styles/colors";
7
+ import BoxShadow from "../../../styles/mixins/boxShadow";
8
+ import BoxTransform from "../../../styles/mixins/boxTransform";
9
+ import CardContent from "../CardContent";
10
+ import CardLikes from "../CardContent/CardLikes";
11
+ import StyledMultiHead from "../Styles/MultiHead";
12
+ import { Flex } from "../../index";
13
+ import DefaultGalleryIcon from "../../../public/gallery/defaultImage";
14
+ import CardCategory from '../CardContent/CardCategory';
15
+ import CardImage from '../CardMedia/CardImage';
21
16
  // Styles
22
- const StyledMultiCard = styled_components_1.default.div `
17
+ const StyledMultiCard = styled.div `
23
18
  position: relative;
24
- background-color: ${colors_1.WhiteColor};
19
+ background-color: ${WhiteColor};
25
20
  border-radius: 6px;
26
- ${boxShadow_1.default};
27
- ${boxTransform_1.default};
21
+ ${BoxShadow};
22
+ ${BoxTransform};
28
23
  @media (max-width: 1200px) {
29
24
  height: max-content;
30
25
  }
@@ -69,21 +64,21 @@ const StyledMultiCard = styled_components_1.default.div `
69
64
  }
70
65
  }
71
66
 
72
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
73
- border-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
67
+ ${mediaQuery.minWidthFourK} {
68
+ border-radius: ${adaptiveValueCalc(6)};
74
69
  .media {
75
70
  & img {
76
- border-radius: ${(0, _4k_1.adaptiveValueCalc)(3)};
71
+ border-radius: ${adaptiveValueCalc(3)};
77
72
  }
78
73
  & video {
79
- border-radius: ${(0, _4k_1.adaptiveValueCalc)(3)};
74
+ border-radius: ${adaptiveValueCalc(3)};
80
75
  }
81
76
  }
82
77
 
83
78
  .media.digital {
84
79
  & svg {
85
- width: ${(0, _4k_1.adaptiveValueCalc)(20)};
86
- height: ${(0, _4k_1.adaptiveValueCalc)(20)};
80
+ width: ${adaptiveValueCalc(20)};
81
+ height: ${adaptiveValueCalc(20)};
87
82
  }
88
83
  }
89
84
  }
@@ -91,7 +86,7 @@ const StyledMultiCard = styled_components_1.default.div `
91
86
  // Component
92
87
  const MultiMediaCard = ({ gallery, assets, collections, }) => {
93
88
  const mediaTemplate = (mediaKey, media) => {
94
- return ((0, jsx_runtime_1.jsx)("div", { className: media.type?.name === 'CardVideo' || media.type?.name === 'CardAudio'
89
+ return (_jsx("div", { className: media.type?.name === 'CardVideo' || media.type?.name === 'CardAudio'
95
90
  ? 'media digital'
96
91
  : 'media', children: media }, mediaKey));
97
92
  };
@@ -114,17 +109,17 @@ const MultiMediaCard = ({ gallery, assets, collections, }) => {
114
109
  cardsMedia.push(mediaTemplate(i, asset.detectMediaType().displaySingleMedia()));
115
110
  }
116
111
  else if (collection) {
117
- cardsMedia.push(mediaTemplate(i, (0, jsx_runtime_1.jsx)(CardImage_1.default, { alt: `${collection.getName()} ${collection.getAddress() || ''}`, imgSrc: collection.getOriginalUrls()?.[0] ?? '', errorImg: '/noContent/noContent.svg' })));
112
+ cardsMedia.push(mediaTemplate(i, _jsx(CardImage, { alt: `${collection.getName()} ${collection.getAddress() || ''}`, imgSrc: collection.getOriginalUrls()?.[0] ?? '', errorImg: '/noContent/noContent.svg' })));
118
113
  }
119
114
  else {
120
- cardsMedia.push(mediaTemplate(i, (0, jsx_runtime_1.jsx)(defaultImage_svg_1.default, {})));
115
+ cardsMedia.push(mediaTemplate(i, _jsx(DefaultGalleryIcon, {})));
121
116
  }
122
117
  }
123
118
  return cardsMedia;
124
119
  };
125
120
  const secondName = gallery.getGalleryUsername() !== '' ? gallery.getGalleryUsername() : '';
126
121
  // const userCreationAddresses = gallery?.getGalleryCreations()[0]?.getOwnersAddresses();
127
- return ((0, jsx_runtime_1.jsx)(StyledMultiCard, { children: (0, jsx_runtime_1.jsxs)(link_1.default, { href: gallery.getCreationLink(), children: [(0, jsx_runtime_1.jsx)(MultiHead_1.default, { children: renderMedia() }), (0, jsx_runtime_1.jsx)(CardContent_1.default, { firstName: gallery.getGalleryName(), secondName: secondName, wallets: gallery.getGalleryUserWallets(), isNeedShowMoreButton: false, itemId: gallery.getGalleryId(), children: (0, jsx_runtime_1.jsxs)(index_1.Flex, { alignItems: "flex-end", justifyContent: 'space-between', children: [(0, jsx_runtime_1.jsx)(CardCategory_1.default, { label: gallery.getLabel() }), (0, jsx_runtime_1.jsx)(CardLikes_1.default, { isLiked: false, likes: 0 })] }) })] }) }));
122
+ return (_jsx(StyledMultiCard, { children: _jsxs(Link, { href: gallery.getCreationLink(), children: [_jsx(StyledMultiHead, { children: renderMedia() }), _jsx(CardContent, { firstName: gallery.getGalleryName(), secondName: secondName, wallets: gallery.getGalleryUserWallets(), isNeedShowMoreButton: false, itemId: gallery.getGalleryId(), children: _jsxs(Flex, { alignItems: "flex-end", justifyContent: 'space-between', children: [_jsx(CardCategory, { label: gallery.getLabel() }), _jsx(CardLikes, { isLiked: false, likes: 0 })] }) })] }) }));
128
123
  };
129
124
  // Export
130
- exports.default = MultiMediaCard;
125
+ export default MultiMediaCard;
@@ -1,13 +1,8 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
1
  // Styles
7
- const styled_components_1 = __importDefault(require("styled-components"));
8
- const colors_1 = require("../../../styles/colors");
9
- const typography_1 = require("../../../styles/typography");
10
- const StyledContentCard = styled_components_1.default.div `
2
+ import styled from 'styled-components';
3
+ import { BlackColor, TextGrayColor } from "../../../styles/colors";
4
+ import { MainText, TextSmall } from "../../../styles/typography";
5
+ const StyledContentCard = styled.div `
11
6
  display: flex;
12
7
  flex-direction: column;
13
8
  padding: 12px 16px;
@@ -19,13 +14,13 @@ const StyledContentCard = styled_components_1.default.div `
19
14
 
20
15
  &Artist {
21
16
  .artist_name {
22
- ${typography_1.TextSmall};
23
- color: ${colors_1.TextGrayColor};
17
+ ${TextSmall};
18
+ color: ${TextGrayColor};
24
19
  line-height: 1.39em;
25
20
  }
26
21
  .art_name {
27
- ${typography_1.MainText};
28
- color: ${colors_1.BlackColor};
22
+ ${MainText};
23
+ color: ${BlackColor};
29
24
  line-height: 1.47em;
30
25
  margin-bottom: 0;
31
26
  }
@@ -37,4 +32,4 @@ const StyledContentCard = styled_components_1.default.div `
37
32
  padding: 12px;
38
33
  }
39
34
  `;
40
- exports.default = StyledContentCard;
35
+ export default StyledContentCard;
@@ -1,13 +1,8 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const styled_components_1 = __importDefault(require("styled-components"));
7
- const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
8
- const ScreenWidth_1 = require("../../../styles/ScreenWidth");
1
+ import styled from 'styled-components';
2
+ import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
3
+ import { mediaQuery } from "../../../styles/ScreenWidth";
9
4
  // Styles
10
- const StyledCardHead = styled_components_1.default.div `
5
+ const StyledCardHead = styled.div `
11
6
  position: relative;
12
7
  height: 252px;
13
8
  width: 252px;
@@ -37,9 +32,9 @@ const StyledCardHead = styled_components_1.default.div `
37
32
  width: 154px;
38
33
  }
39
34
 
40
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
41
- height: ${(0, _4k_1.adaptiveValueCalc)(252)};
42
- width: ${(0, _4k_1.adaptiveValueCalc)(252)};
35
+ ${mediaQuery.minWidthFourK} {
36
+ height: ${adaptiveValueCalc(252)};
37
+ width: ${adaptiveValueCalc(252)};
43
38
  }
44
39
  `;
45
- exports.default = StyledCardHead;
40
+ export default StyledCardHead;
@@ -1,14 +1,9 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
1
  // Styles
7
- const styled_components_1 = __importDefault(require("styled-components"));
8
- const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
9
- const ScreenWidth_1 = require("../../../styles/ScreenWidth");
10
- const colors_1 = require("../../../styles/colors");
11
- const StyledHeadIcons = styled_components_1.default.div `
2
+ import styled from 'styled-components';
3
+ import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
4
+ import { mediaQuery } from "../../../styles/ScreenWidth";
5
+ import { BlackColor, TextDarkGrayColor, WhiteColor } from "../../../styles/colors";
6
+ const StyledHeadIcons = styled.div `
12
7
  transition: 0.2s opacity ease-out;
13
8
  opacity: 0;
14
9
 
@@ -42,7 +37,7 @@ const StyledHeadIcons = styled_components_1.default.div `
42
37
  display: flex;
43
38
  align-items: center;
44
39
  justify-content: center;
45
- background: ${colors_1.WhiteColor};
40
+ background: ${WhiteColor};
46
41
  border-radius: 6px;
47
42
  width: ${(props) => (props.isMobile ? '24px' : '36px')};
48
43
  height: ${(props) => (props.isMobile ? '24px' : '36px')};
@@ -56,7 +51,7 @@ const StyledHeadIcons = styled_components_1.default.div `
56
51
  height: ${(props) => (props.isMobile ? '12px' : '18px')};
57
52
 
58
53
  path {
59
- fill: ${colors_1.TextDarkGrayColor};
54
+ fill: ${TextDarkGrayColor};
60
55
  transition: fill 0.2s;
61
56
  }
62
57
  }
@@ -66,7 +61,7 @@ const StyledHeadIcons = styled_components_1.default.div `
66
61
  transition: transform 0.2s;
67
62
 
68
63
  path {
69
- fill: ${colors_1.BlackColor};
64
+ fill: ${BlackColor};
70
65
  transition: fill 0.2s;
71
66
  }
72
67
  }
@@ -82,40 +77,40 @@ const StyledHeadIcons = styled_components_1.default.div `
82
77
  }
83
78
  }
84
79
 
85
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
80
+ ${mediaQuery.minWidthFourK} {
86
81
  &:before {
87
- height: ${(0, _4k_1.adaptiveValueCalc)(100)};
88
- border-top-left-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
89
- border-top-right-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
82
+ height: ${adaptiveValueCalc(100)};
83
+ border-top-left-radius: ${adaptiveValueCalc(6)};
84
+ border-top-right-radius: ${adaptiveValueCalc(6)};
90
85
  }
91
86
 
92
87
  .rank {
93
- top: ${(0, _4k_1.adaptiveValueCalc)(16)};
94
- left: ${(0, _4k_1.adaptiveValueCalc)(16)};
88
+ top: ${adaptiveValueCalc(16)};
89
+ left: ${adaptiveValueCalc(16)};
95
90
  }
96
91
 
97
92
  .icons {
98
- top: ${(0, _4k_1.adaptiveValueCalc)(16)};
99
- right: ${(0, _4k_1.adaptiveValueCalc)(7)};
93
+ top: ${adaptiveValueCalc(16)};
94
+ right: ${adaptiveValueCalc(7)};
100
95
  }
101
96
 
102
97
  .icon {
103
- border-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
104
- width: ${(props) => (props.isMobile ? '24px' : (0, _4k_1.adaptiveValueCalc)(36))};
105
- height: ${(props) => (props.isMobile ? '24px' : (0, _4k_1.adaptiveValueCalc)(36))};
98
+ border-radius: ${adaptiveValueCalc(6)};
99
+ width: ${(props) => (props.isMobile ? '24px' : adaptiveValueCalc(36))};
100
+ height: ${(props) => (props.isMobile ? '24px' : adaptiveValueCalc(36))};
106
101
 
107
102
  svg {
108
- width: ${(props) => (props.isMobile ? '13px' : (0, _4k_1.adaptiveValueCalc)(20))};
109
- height: ${(props) => (props.isMobile ? '12px' : (0, _4k_1.adaptiveValueCalc)(18))};
103
+ width: ${(props) => (props.isMobile ? '13px' : adaptiveValueCalc(20))};
104
+ height: ${(props) => (props.isMobile ? '12px' : adaptiveValueCalc(18))};
110
105
  }
111
106
  }
112
107
 
113
108
  .icon.like {
114
- margin-left: ${(0, _4k_1.adaptiveValueCalc)(12)};
109
+ margin-left: ${adaptiveValueCalc(12)};
115
110
  }
116
111
  }
117
112
  `;
118
113
  StyledHeadIcons.defaultProps = {
119
114
  isMobile: false,
120
115
  };
121
- exports.default = StyledHeadIcons;
116
+ export default StyledHeadIcons;
@@ -1,12 +1,7 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const styled_components_1 = __importDefault(require("styled-components"));
7
- const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
8
- const ScreenWidth_1 = require("../../../styles/ScreenWidth");
9
- const StyledImg = styled_components_1.default.img `
1
+ import styled from 'styled-components';
2
+ import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
3
+ import { mediaQuery } from "../../../styles/ScreenWidth";
4
+ const StyledImg = styled.img `
10
5
  display: block;
11
6
  width: 100%;
12
7
  height: 100%;
@@ -16,9 +11,9 @@ const StyledImg = styled_components_1.default.img `
16
11
  opacity: ${(props) => (props.isLoading ? '0' : '1')};
17
12
  transition: opacity ease-in 0.3s;
18
13
 
19
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
20
- border-top-left-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
21
- border-top-right-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
14
+ ${mediaQuery.minWidthFourK} {
15
+ border-top-left-radius: ${adaptiveValueCalc(6)};
16
+ border-top-right-radius: ${adaptiveValueCalc(6)};
22
17
  }
23
18
  `;
24
- exports.default = StyledImg;
19
+ export default StyledImg;