@ludo.ninja/components 2.0.10 → 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 +1 -1
@@ -1,45 +1,16 @@
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.AudioVideoPlayer = exports.ReactPlayerWrapper = void 0;
30
- const jsx_runtime_1 = require("react/jsx-runtime");
31
- const react_1 = require("react");
32
- const image_1 = __importDefault(require("next/image"));
33
- const react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
34
- const react_player_1 = __importDefault(require("react-player"));
35
- const screenfull_1 = __importDefault(require("screenfull"));
36
- const styled_components_1 = __importStar(require("styled-components"));
37
- const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
38
- const ScreenWidth_1 = require("../../../styles/ScreenWidth");
39
- const colors_1 = require("../../../styles/colors");
40
- const index_1 = require("../../../system/index");
41
- const Duration_1 = __importDefault(require("./Duration"));
42
- exports.ReactPlayerWrapper = styled_components_1.default.div `
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Component } from 'react';
3
+ import Image from 'next/image';
4
+ import Skeleton from 'react-loading-skeleton';
5
+ import ReactPlayer from 'react-player';
6
+ import screenfull from 'screenfull';
7
+ import styled, { css } from 'styled-components';
8
+ import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
9
+ import { mediaQuery } from "../../../styles/ScreenWidth";
10
+ import { BlackColor } from "../../../styles/colors";
11
+ import { Flex } from "../../../system/index";
12
+ import Duration from './Duration';
13
+ export const ReactPlayerWrapper = styled.div `
43
14
  position: relative;
44
15
  width: 510px;
45
16
  height: ${(props) => (props.playerType === 'audio' ? '280px' : 'auto')};
@@ -54,14 +25,14 @@ exports.ReactPlayerWrapper = styled_components_1.default.div `
54
25
  border-radius: 16px;
55
26
  overflow: hidden;
56
27
 
57
- ${ScreenWidth_1.mediaQuery.desktop} {
28
+ ${mediaQuery.desktop} {
58
29
  height: ${(props) => (props.playerType === 'audio' ? '180px' : 'auto')};
59
30
  align-items: flex-start;
60
31
  width: 335px;
61
32
  margin-right: 30px;
62
33
  }
63
34
 
64
- ${ScreenWidth_1.mediaQuery.tablet} {
35
+ ${mediaQuery.tablet} {
65
36
  margin-right: 0;
66
37
  }
67
38
 
@@ -71,24 +42,24 @@ exports.ReactPlayerWrapper = styled_components_1.default.div `
71
42
  border-radius: 16px;
72
43
  overflow: hidden;
73
44
  ${(props) => props.isFullscreenMode
74
- ? (0, styled_components_1.css) `
45
+ ? css `
75
46
  width: 100% !important;
76
47
  `
77
48
  : ''}
78
49
  }
79
50
 
80
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
81
- width: ${(0, _4k_1.adaptiveValueCalc)(510)};
82
- height: ${(props) => props.playerType === 'audio' ? (0, _4k_1.adaptiveValueCalc)(280) : 'auto'};
83
- margin-right: ${(0, _4k_1.adaptiveValueCalc)(60)};
84
- border-radius: ${(0, _4k_1.adaptiveValueCalc)(16)};
51
+ ${mediaQuery.minWidthFourK} {
52
+ width: ${adaptiveValueCalc(510)};
53
+ height: ${(props) => props.playerType === 'audio' ? adaptiveValueCalc(280) : 'auto'};
54
+ margin-right: ${adaptiveValueCalc(60)};
55
+ border-radius: ${adaptiveValueCalc(16)};
85
56
 
86
57
  .player {
87
- border-radius: ${(0, _4k_1.adaptiveValueCalc)(16)};
58
+ border-radius: ${adaptiveValueCalc(16)};
88
59
  }
89
60
  }
90
61
  `;
91
- const InputRangeVolume = styled_components_1.default.div `
62
+ const InputRangeVolume = styled.div `
92
63
  width: 100%;
93
64
  display: flex;
94
65
  justify-content: center;
@@ -106,35 +77,35 @@ const InputRangeVolume = styled_components_1.default.div `
106
77
  height: 5px;
107
78
  background: #ebf0fc;
108
79
 
109
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
110
- height: ${(0, _4k_1.adaptiveValueCalc)(5)};
80
+ ${mediaQuery.minWidthFourK} {
81
+ height: ${adaptiveValueCalc(5)};
111
82
  }
112
83
  }
113
84
  `;
114
- const InputRangeSound = (0, styled_components_1.default)(InputRangeVolume) `
85
+ const InputRangeSound = styled(InputRangeVolume) `
115
86
  width: 70px;
116
87
 
117
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
118
- width: ${(0, _4k_1.adaptiveValueCalc)(70)};
88
+ ${mediaQuery.minWidthFourK} {
89
+ width: ${adaptiveValueCalc(70)};
119
90
  }
120
91
 
121
92
  &:before {
122
93
  background: #b0b2c0;
123
94
  }
124
95
  `;
125
- const FlexHelper = (0, styled_components_1.default)(index_1.Flex) `
96
+ const FlexHelper = styled(Flex) `
126
97
  justify-content: space-between;
127
98
  padding: 25px;
128
99
 
129
- ${ScreenWidth_1.mediaQuery.desktop} {
100
+ ${mediaQuery.desktop} {
130
101
  padding: 20px;
131
102
  }
132
103
 
133
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
134
- padding: ${(0, _4k_1.adaptiveValueCalc)(25)};
104
+ ${mediaQuery.minWidthFourK} {
105
+ padding: ${adaptiveValueCalc(25)};
135
106
  }
136
107
  `;
137
- const InputRange = styled_components_1.default.input `
108
+ const InputRange = styled.input `
138
109
  width: 100%;
139
110
  -webkit-appearance: none;
140
111
  position: relative;
@@ -153,19 +124,19 @@ const InputRange = styled_components_1.default.input `
153
124
  &::-webkit-slider-runnable-track {
154
125
  background: #909999;
155
126
  height: 5px;
156
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
157
- height: ${(0, _4k_1.adaptiveValueCalc)(5)};
127
+ ${mediaQuery.minWidthFourK} {
128
+ height: ${adaptiveValueCalc(5)};
158
129
  }
159
130
  }
160
131
  `;
161
- const Controls = styled_components_1.default.div `
132
+ const Controls = styled.div `
162
133
  width: 100%;
163
134
  display: flex;
164
135
  flex-direction: column;
165
136
  position: absolute;
166
137
  bottom: 0;
167
138
  `;
168
- const ControlButton = styled_components_1.default.button `
139
+ const ControlButton = styled.button `
169
140
  padding: 0;
170
141
  background: transparent;
171
142
  position: relative;
@@ -187,12 +158,12 @@ const ControlButton = styled_components_1.default.button `
187
158
  width: 36px;
188
159
  height: 36px;
189
160
  border-radius: 50%;
190
- background: ${colors_1.BlackColor};
161
+ background: ${BlackColor};
191
162
  opacity: 0.5;
192
163
  z-index: -1;
193
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
194
- height: ${(0, _4k_1.adaptiveValueCalc)(36)};
195
- width: ${(0, _4k_1.adaptiveValueCalc)(36)};
164
+ ${mediaQuery.minWidthFourK} {
165
+ height: ${adaptiveValueCalc(36)};
166
+ width: ${adaptiveValueCalc(36)};
196
167
  }
197
168
  }
198
169
 
@@ -204,13 +175,13 @@ const ControlButton = styled_components_1.default.button `
204
175
  img {
205
176
  width: 15px;
206
177
  height: 15px;
207
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
208
- height: ${(0, _4k_1.adaptiveValueCalc)(15)};
209
- width: ${(0, _4k_1.adaptiveValueCalc)(15)};
178
+ ${mediaQuery.minWidthFourK} {
179
+ height: ${adaptiveValueCalc(15)};
180
+ width: ${adaptiveValueCalc(15)};
210
181
  }
211
182
  }
212
183
  `;
213
- class AudioVideoPlayer extends react_1.Component {
184
+ export class AudioVideoPlayer extends Component {
214
185
  player;
215
186
  constructor(props) {
216
187
  super(props);
@@ -276,33 +247,32 @@ class AudioVideoPlayer extends react_1.Component {
276
247
  };
277
248
  handleClickFullscreen = () => {
278
249
  const elem = document.getElementById('video-player');
279
- screenfull_1.default.toggle(elem);
250
+ screenfull.toggle(elem);
280
251
  };
281
252
  handleErrors = () => {
282
253
  this.setState({ error: true });
283
254
  };
284
255
  renderLoadButton = (url, label) => {
285
- return (0, jsx_runtime_1.jsx)("button", { onClick: () => this.load(url), children: label });
256
+ return _jsx("button", { onClick: () => this.load(url), children: label });
286
257
  };
287
258
  ref = (player) => {
288
259
  this.player = player;
289
260
  };
290
261
  updateIsFullscreenMode = () => {
291
262
  this.setState({
292
- isFullscreenMode: screenfull_1.default.isFullscreen,
263
+ isFullscreenMode: screenfull.isFullscreen,
293
264
  });
294
265
  };
295
266
  componentDidMount() {
296
- screenfull_1.default.on('change', this.updateIsFullscreenMode);
267
+ screenfull.on('change', this.updateIsFullscreenMode);
297
268
  }
298
269
  componentWillUnmount() {
299
- screenfull_1.default.off('change', this.updateIsFullscreenMode);
270
+ screenfull.off('change', this.updateIsFullscreenMode);
300
271
  }
301
272
  render() {
302
273
  const { url, playing, light, volume, muted, played, duration, playedSeconds, error, isFullscreenMode, } = this.state;
303
274
  if (!url)
304
275
  return null;
305
- return ((0, jsx_runtime_1.jsx)(exports.ReactPlayerWrapper, { id: 'video-player', playerType: this.props.playerType, poster: this.props.poster, isFullscreenMode: isFullscreenMode, children: this.props.isLoading ? ((0, jsx_runtime_1.jsx)(react_loading_skeleton_1.default, { style: { position: 'absolute', left: 0, top: 0 }, height: "100%", width: "100%" })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: error && this.props.playerType !== 'audio' ? ((0, jsx_runtime_1.jsx)(image_1.default, { width: 508, height: 216, alt: 'audioPlaceholder', src: `/assetPage/audioPlaceholder.svg` })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !error && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_player_1.default, { className: "player", id: this.props.playerType, url: url, playing: playing, light: light, volume: volume, playsinline: true, muted: muted, ref: this.ref, controls: false, onPlay: this.handlePlay, onPause: this.handlePause, onError: this.handleErrors, onProgress: this.handleProgress, onDuration: this.handleDuration }), (0, jsx_runtime_1.jsxs)(Controls, { children: [(0, jsx_runtime_1.jsxs)(index_1.Flex, { p: "0 15px 5px", justifyContent: "space-between", children: [(0, jsx_runtime_1.jsx)(Duration_1.default, { seconds: playedSeconds }), (0, jsx_runtime_1.jsx)(Duration_1.default, { seconds: duration })] }), (0, jsx_runtime_1.jsx)(InputRangeVolume, { value: played, children: (0, jsx_runtime_1.jsx)(InputRange, { type: "range", min: 0, max: 0.99, step: "any", value: played, onMouseDown: this.handleSeekMouseDown, onChange: this.handleSeekChange, onMouseUp: this.handleSeekMouseUp }) }), (0, jsx_runtime_1.jsxs)(FlexHelper, { children: [(0, jsx_runtime_1.jsxs)(index_1.Flex, { children: [(0, jsx_runtime_1.jsx)(ControlButton, { style: { marginRight: '45px' }, onClick: this.handlePlayPause, children: (0, jsx_runtime_1.jsx)(image_1.default, { width: 15, height: 15, alt: playing ? 'Play' : 'pause', src: `/assetPage/${playing ? 'pause' : 'play'}.svg` }) }), (0, jsx_runtime_1.jsx)(ControlButton, { style: { marginRight: '20px' }, onClick: this.handleToggleMuted, children: (0, jsx_runtime_1.jsx)(image_1.default, { width: 15, height: 15, alt: 'sound-volume', src: `/assetPage/${volume ? 'soundOn' : 'soundOf'}.svg` }) }), (0, jsx_runtime_1.jsx)(InputRangeSound, { value: volume, children: (0, jsx_runtime_1.jsx)(InputRange, { type: "range", min: 0, max: 1, step: "any", value: volume, onChange: this.handleVolumeChange }) })] }), Boolean(this.props.playerType === 'audio') || ((0, jsx_runtime_1.jsx)(ControlButton, { onClick: this.handleClickFullscreen, children: (0, jsx_runtime_1.jsx)(image_1.default, { width: 15, height: 15, alt: 'fullScreen', src: `/assetPage/fullScreen.svg` }) }))] })] })] })) })) })) }));
276
+ return (_jsx(ReactPlayerWrapper, { id: 'video-player', playerType: this.props.playerType, poster: this.props.poster, isFullscreenMode: isFullscreenMode, children: this.props.isLoading ? (_jsx(Skeleton, { style: { position: 'absolute', left: 0, top: 0 }, height: "100%", width: "100%" })) : (_jsx(_Fragment, { children: error && this.props.playerType !== 'audio' ? (_jsx(Image, { width: 508, height: 216, alt: 'audioPlaceholder', src: `/assetPage/audioPlaceholder.svg` })) : (_jsx(_Fragment, { children: !error && (_jsxs(_Fragment, { children: [_jsx(ReactPlayer, { className: "player", id: this.props.playerType, url: url, playing: playing, light: light, volume: volume, playsinline: true, muted: muted, ref: this.ref, controls: false, onPlay: this.handlePlay, onPause: this.handlePause, onError: this.handleErrors, onProgress: this.handleProgress, onDuration: this.handleDuration }), _jsxs(Controls, { children: [_jsxs(Flex, { p: "0 15px 5px", justifyContent: "space-between", children: [_jsx(Duration, { seconds: playedSeconds }), _jsx(Duration, { seconds: duration })] }), _jsx(InputRangeVolume, { value: played, children: _jsx(InputRange, { type: "range", min: 0, max: 0.99, step: "any", value: played, onMouseDown: this.handleSeekMouseDown, onChange: this.handleSeekChange, onMouseUp: this.handleSeekMouseUp }) }), _jsxs(FlexHelper, { children: [_jsxs(Flex, { children: [_jsx(ControlButton, { style: { marginRight: '45px' }, onClick: this.handlePlayPause, children: _jsx(Image, { width: 15, height: 15, alt: playing ? 'Play' : 'pause', src: `/assetPage/${playing ? 'pause' : 'play'}.svg` }) }), _jsx(ControlButton, { style: { marginRight: '20px' }, onClick: this.handleToggleMuted, children: _jsx(Image, { width: 15, height: 15, alt: 'sound-volume', src: `/assetPage/${volume ? 'soundOn' : 'soundOf'}.svg` }) }), _jsx(InputRangeSound, { value: volume, children: _jsx(InputRange, { type: "range", min: 0, max: 1, step: "any", value: volume, onChange: this.handleVolumeChange }) })] }), Boolean(this.props.playerType === 'audio') || (_jsx(ControlButton, { onClick: this.handleClickFullscreen, children: _jsx(Image, { width: 15, height: 15, alt: 'fullScreen', src: `/assetPage/fullScreen.svg` }) }))] })] })] })) })) })) }));
306
277
  }
307
278
  }
308
- exports.AudioVideoPlayer = AudioVideoPlayer;
@@ -1,18 +1,12 @@
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.Category = void 0;
7
- const jsx_runtime_1 = require("react/jsx-runtime");
8
- const link_1 = __importDefault(require("next/link"));
9
- const styled_components_1 = __importDefault(require("styled-components"));
10
- const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
11
- const ScreenWidth_1 = require("../../../styles/ScreenWidth");
12
- const index_1 = require("../../../system/index");
13
- const vars_1 = require("../../../fonts/vars");
1
+ import { jsx as _jsx } 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 { Box, Text } from "../../../system/index";
7
+ import { poppinsFontVarCss } from "../../../fonts/vars";
14
8
  // Styles
15
- const StyledBox = (0, styled_components_1.default)(index_1.Box) `
9
+ const StyledBox = styled(Box) `
16
10
  text-align: center;
17
11
  width: max-content;
18
12
  background: ${({ theme }) => theme.colors.buttonInactive};
@@ -24,32 +18,31 @@ const StyledBox = (0, styled_components_1.default)(index_1.Box) `
24
18
  background: ${({ theme }) => theme.colors.accentHoverBg};
25
19
  }
26
20
 
27
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
28
- padding: ${(0, _4k_1.adaptiveValueCalc)(8)} ${(0, _4k_1.adaptiveValueCalc)(16)};
29
- border-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
21
+ ${mediaQuery.minWidthFourK} {
22
+ padding: ${adaptiveValueCalc(8)} ${adaptiveValueCalc(16)};
23
+ border-radius: ${adaptiveValueCalc(6)};
30
24
  }
31
25
  `;
32
- const StyledText = (0, styled_components_1.default)(index_1.Text) `
33
- font-family: ${vars_1.poppinsFontVarCss.css};
26
+ const StyledText = styled(Text) `
27
+ font-family: ${poppinsFontVarCss.css};
34
28
 
35
29
  font-weight: 500;
36
30
  font-size: 1.5em;
37
31
  line-height: 1.46;
38
32
  color: ${({ theme }) => theme.colors.primaryText};
39
33
 
40
- ${ScreenWidth_1.mediaQuery.mobile} {
34
+ ${mediaQuery.mobile} {
41
35
  font-size: 1.4em;
42
36
  line-height: 1.42;
43
37
  }
44
38
 
45
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
46
- font-size: ${(0, _4k_1.adaptiveValueCalc)(15)};
39
+ ${mediaQuery.minWidthFourK} {
40
+ font-size: ${adaptiveValueCalc(15)};
47
41
  }
48
42
  `;
49
- const Category = ({ asset }) => {
43
+ export const Category = ({ asset }) => {
50
44
  //update
51
45
  const category = asset.getCategory() ?? 'all';
52
46
  const categoryLabel = asset.getCategoryLabel() ?? 'All';
53
- return ((0, jsx_runtime_1.jsx)(link_1.default, { style: { display: 'block', width: 'max-content' }, href: `/search/nfts?category=${category}`, children: (0, jsx_runtime_1.jsx)(StyledBox, { children: (0, jsx_runtime_1.jsx)(StyledText, { children: categoryLabel }) }) }));
47
+ return (_jsx(Link, { style: { display: 'block', width: 'max-content' }, href: `/search/nfts?category=${category}`, children: _jsx(StyledBox, { children: _jsx(StyledText, { children: categoryLabel }) }) }));
54
48
  };
55
- exports.Category = Category;
@@ -1,43 +1,36 @@
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.Description = void 0;
7
- const jsx_runtime_1 = require("react/jsx-runtime");
8
- const react_hyphen_1 = __importDefault(require("react-hyphen"));
9
- const styled_components_1 = __importDefault(require("styled-components"));
10
- const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
11
- const ScreenWidth_1 = require("../../../styles/ScreenWidth");
12
- const colors_1 = require("../../../styles/colors");
13
- const index_1 = require("../../../system/index");
14
- const SH3 = (0, styled_components_1.default)(index_1.H3) `
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Hyphenated from 'react-hyphen';
3
+ import styled from 'styled-components';
4
+ import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
5
+ import { mediaQuery } from "../../../styles/ScreenWidth";
6
+ import { TextGrayColor } from "../../../styles/colors";
7
+ import { Flex, H3 } from "../../../system/index";
8
+ const SH3 = styled(H3) `
15
9
  margin-top: 20px;
16
10
  margin-bottom: 5px;
17
11
 
18
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
19
- margin-top: ${(0, _4k_1.adaptiveValueCalc)(20)};
20
- margin-bottom: ${(0, _4k_1.adaptiveValueCalc)(5)};
12
+ ${mediaQuery.minWidthFourK} {
13
+ margin-top: ${adaptiveValueCalc(20)};
14
+ margin-bottom: ${adaptiveValueCalc(5)};
21
15
  }
22
16
  `;
23
- const SFlex = (0, styled_components_1.default)(index_1.Flex) `
17
+ const SFlex = styled(Flex) `
24
18
  .text {
25
19
  font-size: 14px;
26
- color: ${colors_1.TextGrayColor};
20
+ color: ${TextGrayColor};
27
21
 
28
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
29
- font-size: ${(0, _4k_1.adaptiveValueCalc)(14)};
22
+ ${mediaQuery.minWidthFourK} {
23
+ font-size: ${adaptiveValueCalc(14)};
30
24
  }
31
25
  }
32
26
  `;
33
- const Description = ({ description }) => {
27
+ export const Description = ({ description }) => {
34
28
  if (!description)
35
29
  return null;
36
- return ((0, jsx_runtime_1.jsxs)(SFlex, { className: "description", flexDirection: "column", children: [(0, jsx_runtime_1.jsx)(SH3, { children: "Description" }), (0, jsx_runtime_1.jsx)(react_hyphen_1.default, { children: (0, jsx_runtime_1.jsx)("div", {
30
+ return (_jsxs(SFlex, { className: "description", flexDirection: "column", children: [_jsx(SH3, { children: "Description" }), _jsx(Hyphenated, { children: _jsx("div", {
37
31
  // style={{
38
32
  // color: TextGrayColor,
39
33
  // fontSize: '14px',
40
34
  // }}
41
35
  className: "text", dangerouslySetInnerHTML: { __html: description } }) })] }));
42
36
  };
43
- exports.Description = Description;
@@ -1,25 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Viewer3D = exports.AudioVideoPlayer = exports.CollectionSlider = exports.MarketPlaces = exports.Description = exports.Information = exports.Properties = exports.PriceRank = exports.AssetMedia = exports.Title = exports.Participants = void 0;
4
- var participants_1 = require("./participants");
5
- Object.defineProperty(exports, "Participants", { enumerable: true, get: function () { return participants_1.Participants; } });
6
- var tittle_1 = require("./tittle");
7
- Object.defineProperty(exports, "Title", { enumerable: true, get: function () { return tittle_1.Title; } });
8
- var assetNft_1 = require("./assetNft");
9
- Object.defineProperty(exports, "AssetMedia", { enumerable: true, get: function () { return assetNft_1.AssetMedia; } });
10
- var priceRank_1 = require("./priceRank");
11
- Object.defineProperty(exports, "PriceRank", { enumerable: true, get: function () { return priceRank_1.PriceRank; } });
12
- var properties_1 = require("./properties");
13
- Object.defineProperty(exports, "Properties", { enumerable: true, get: function () { return properties_1.Properties; } });
14
- var information_1 = require("./information");
15
- Object.defineProperty(exports, "Information", { enumerable: true, get: function () { return information_1.Information; } });
16
- var description_1 = require("./description");
17
- Object.defineProperty(exports, "Description", { enumerable: true, get: function () { return description_1.Description; } });
18
- var marketPlaces_1 = require("./marketPlaces");
19
- Object.defineProperty(exports, "MarketPlaces", { enumerable: true, get: function () { return marketPlaces_1.MarketPlaces; } });
20
- var slider_1 = require("./slider");
21
- Object.defineProperty(exports, "CollectionSlider", { enumerable: true, get: function () { return slider_1.CollectionSlider; } });
22
- var audioVideoPlayer_1 = require("./audioVideoPlayer");
23
- Object.defineProperty(exports, "AudioVideoPlayer", { enumerable: true, get: function () { return audioVideoPlayer_1.AudioVideoPlayer; } });
24
- var viewer3D_1 = require("./viewer3D");
25
- Object.defineProperty(exports, "Viewer3D", { enumerable: true, get: function () { return viewer3D_1.Viewer3D; } });
1
+ export { Participants } from './participants';
2
+ export { Title } from './tittle';
3
+ export { AssetMedia } from './assetNft';
4
+ export { PriceRank } from './priceRank';
5
+ export { Properties } from './properties';
6
+ export { Information } from './information';
7
+ export { Description } from './description';
8
+ export { MarketPlaces } from './marketPlaces';
9
+ export { CollectionSlider } from './slider';
10
+ export { AudioVideoPlayer } from './audioVideoPlayer';
11
+ export { Viewer3D } from './viewer3D';
@@ -1,44 +1,38 @@
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.Information = void 0;
7
- const jsx_runtime_1 = require("react/jsx-runtime");
8
- const link_1 = __importDefault(require("next/link"));
9
- const moment_1 = __importDefault(require("moment"));
10
- const styled_components_1 = __importDefault(require("styled-components"));
11
- const colors_1 = require("@ludo.ninja/ui/build/styles/colors");
12
- const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
13
- const utils_1 = require("@ludo.ninja/utils");
14
- const env_1 = require("../../../store/env");
15
- const ScreenWidth_1 = require("../../../styles/ScreenWidth");
16
- const colors_2 = require("../../../styles/colors");
17
- const index_1 = require("../../../system/index");
18
- const copyBtn_1 = require("../../../utils/copyBtn");
19
- const screen_1 = require("../../../utils/screen");
20
- const vars_1 = require("../../../fonts/vars");
21
- const StyledImage = styled_components_1.default.img `
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Link from 'next/link';
3
+ import moment from 'moment';
4
+ import styled from 'styled-components';
5
+ import { BlackColor } from '@ludo.ninja/ui/build/styles/colors';
6
+ import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
7
+ import { shortenedText } from '@ludo.ninja/utils';
8
+ import { useEnvStore } from "../../../store/env";
9
+ import { mediaQuery } from "../../../styles/ScreenWidth";
10
+ import { AccentColor, TextGrayColor } from "../../../styles/colors";
11
+ import { Flex, H5 } from "../../../system/index";
12
+ import { CopyButton } from "../../../utils/copyBtn";
13
+ import { useWindowDimensions } from "../../../utils/screen";
14
+ import { poppinsFontVarCss } from "../../../fonts/vars";
15
+ const StyledImage = styled.img `
22
16
  border-radius: 50%;
23
17
  width: 16px;
24
18
  height: 16px;
25
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
26
- width: ${(0, _4k_1.adaptiveValueCalc)(16)};
27
- height: ${(0, _4k_1.adaptiveValueCalc)(16)};
19
+ ${mediaQuery.minWidthFourK} {
20
+ width: ${adaptiveValueCalc(16)};
21
+ height: ${adaptiveValueCalc(16)};
28
22
  }
29
23
  `;
30
- const BoxOverflow = styled_components_1.default.div `
24
+ const BoxOverflow = styled.div `
31
25
  text-align: right;
32
26
  white-space: nowrap;
33
27
  width: 90px;
34
28
  overflow: hidden;
35
29
  text-overflow: ellipsis;
36
30
 
37
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
38
- width: ${(0, _4k_1.adaptiveValueCalc)(90)};
31
+ ${mediaQuery.minWidthFourK} {
32
+ width: ${adaptiveValueCalc(90)};
39
33
  }
40
34
  `;
41
- const FlexOverflow = (0, styled_components_1.default)(index_1.Flex) `
35
+ const FlexOverflow = styled(Flex) `
42
36
  justify-content: space-between;
43
37
  gap: 8px;
44
38
  margin-bottom: 8px;
@@ -47,16 +41,16 @@ const FlexOverflow = (0, styled_components_1.default)(index_1.Flex) `
47
41
  white-space: nowrap;
48
42
  }
49
43
 
50
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
51
- gap: ${(0, _4k_1.adaptiveValueCalc)(8)};
52
- margin-bottom: ${(0, _4k_1.adaptiveValueCalc)(8)};
44
+ ${mediaQuery.minWidthFourK} {
45
+ gap: ${adaptiveValueCalc(8)};
46
+ margin-bottom: ${adaptiveValueCalc(8)};
53
47
  }
54
48
  `;
55
- const OverflowH5 = (0, styled_components_1.default)(index_1.H5) `
49
+ const OverflowH5 = styled(H5) `
56
50
  text-overflow: ellipsis;
57
51
  overflow: hidden;
58
52
  `;
59
- const SBlockchain = (0, styled_components_1.default)(index_1.Flex) `
53
+ const SBlockchain = styled(Flex) `
60
54
  text-align: center;
61
55
  align-items: center;
62
56
  width: max-content;
@@ -67,8 +61,8 @@ const SBlockchain = (0, styled_components_1.default)(index_1.Flex) `
67
61
  gap: 6px;
68
62
 
69
63
  p {
70
- color: ${colors_1.BlackColor};
71
- font-family: ${vars_1.poppinsFontVarCss.css};
64
+ color: ${BlackColor};
65
+ font-family: ${poppinsFontVarCss.css};
72
66
  font-size: 15px;
73
67
  font-weight: 500;
74
68
  line-height: 22px;
@@ -78,25 +72,25 @@ const SBlockchain = (0, styled_components_1.default)(index_1.Flex) `
78
72
  background: ${({ theme }) => theme.colors.accentHoverBg};
79
73
  }
80
74
 
81
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
82
- padding: ${(0, _4k_1.adaptiveValueCalc)(4)} ${(0, _4k_1.adaptiveValueCalc)(8)};
83
- border-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
84
- gap: ${(0, _4k_1.adaptiveValueCalc)(6)};
75
+ ${mediaQuery.minWidthFourK} {
76
+ padding: ${adaptiveValueCalc(4)} ${adaptiveValueCalc(8)};
77
+ border-radius: ${adaptiveValueCalc(6)};
78
+ gap: ${adaptiveValueCalc(6)};
85
79
 
86
80
  p {
87
- font-size: ${(0, _4k_1.adaptiveValueCalc)(15)};
88
- line-height: ${(0, _4k_1.adaptiveValueCalc)(22)};
81
+ font-size: ${adaptiveValueCalc(15)};
82
+ line-height: ${adaptiveValueCalc(22)};
89
83
  }
90
84
  }
91
85
  `;
92
- const SFlex = (0, styled_components_1.default)(index_1.Flex) `
86
+ const SFlex = styled(Flex) `
93
87
  margin-bottom: 8px;
94
88
 
95
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
96
- margin-bottom: ${(0, _4k_1.adaptiveValueCalc)(8)};
89
+ ${mediaQuery.minWidthFourK} {
90
+ margin-bottom: ${adaptiveValueCalc(8)};
97
91
  }
98
92
  `;
99
- const Information = ({ asset }) => {
93
+ export const Information = ({ asset }) => {
100
94
  const tokenId = asset.getTokenId();
101
95
  const splittedAssetId = asset.getSplitedAssetId();
102
96
  const address = asset.getAddress();
@@ -104,14 +98,13 @@ const Information = ({ asset }) => {
104
98
  const blockTimestamp = asset.getBlockTimestamp();
105
99
  const id = tokenId ? tokenId : splittedAssetId;
106
100
  const idTittle = tokenId ? 'Token ID' : 'ID';
107
- const { deviceType } = (0, screen_1.useWindowDimensions)();
101
+ const { deviceType } = useWindowDimensions();
108
102
  const isDesktop = deviceType === 'isDesktop';
109
103
  const styleOverflow = isDesktop
110
104
  ? { overflow: 'hidden' }
111
105
  : undefined;
112
- const getStaticENVDomain = (0, env_1.useEnvStore)((state) => state.getStaticDomain);
113
- return ((0, jsx_runtime_1.jsxs)(index_1.Flex, { flexDirection: "column", justifyContent: "space-between", children: [(0, jsx_runtime_1.jsxs)(SFlex, { justifyContent: "space-between", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_2.TextGrayColor, children: "Blockchain" }), (0, jsx_runtime_1.jsx)(link_1.default, { href: `/search/nfts?blockchain=${blockChain.getBlockChainPrivateLabel()}`, children: (0, jsx_runtime_1.jsxs)(SBlockchain, { children: [(0, jsx_runtime_1.jsx)("p", { children: blockChain.getBlockChainPublicLabel() }), (0, jsx_runtime_1.jsx)(StyledImage, { width: 16, height: 16, src: blockChain.getBlockChainIconRegular({
106
+ const getStaticENVDomain = useEnvStore((state) => state.getStaticDomain);
107
+ return (_jsxs(Flex, { flexDirection: "column", justifyContent: "space-between", children: [_jsxs(SFlex, { justifyContent: "space-between", alignItems: "center", children: [_jsx(H5, { color: TextGrayColor, children: "Blockchain" }), _jsx(Link, { href: `/search/nfts?blockchain=${blockChain.getBlockChainPrivateLabel()}`, children: _jsxs(SBlockchain, { children: [_jsx("p", { children: blockChain.getBlockChainPublicLabel() }), _jsx(StyledImage, { width: 16, height: 16, src: blockChain.getBlockChainIconRegular({
114
108
  domain: getStaticENVDomain(),
115
- }), alt: blockChain.getBlockChainPublicLabel() })] }) })] }), address && ((0, jsx_runtime_1.jsxs)(FlexOverflow, { children: [(0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_2.TextGrayColor, children: "Contract Address" }), (0, jsx_runtime_1.jsx)(copyBtn_1.CopyButton, { value: address, style: styleOverflow, children: isDesktop ? ((0, jsx_runtime_1.jsx)(OverflowH5, { color: colors_2.AccentColor, title: address, children: address })) : ((0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_2.AccentColor, title: address, children: (0, utils_1.shortenedText)(address) })) })] })), (0, jsx_runtime_1.jsxs)(FlexOverflow, { children: [(0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_2.TextGrayColor, children: idTittle }), (0, jsx_runtime_1.jsx)(copyBtn_1.CopyButton, { value: id, style: styleOverflow, children: isDesktop ? ((0, jsx_runtime_1.jsx)(OverflowH5, { color: colors_2.AccentColor, title: id, children: id })) : ((0, jsx_runtime_1.jsx)(BoxOverflow, { children: (0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_2.AccentColor, title: id, children: (0, jsx_runtime_1.jsx)(BoxOverflow, { children: id }) }) })) })] }), blockTimestamp && ((0, jsx_runtime_1.jsxs)(SFlex, { justifyContent: "space-between", children: [(0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_2.TextGrayColor, children: "Added on" }), (0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_2.TextGrayColor, children: (0, moment_1.default)(blockTimestamp * 1000).format('LL') })] }))] }));
109
+ }), alt: blockChain.getBlockChainPublicLabel() })] }) })] }), address && (_jsxs(FlexOverflow, { children: [_jsx(H5, { color: TextGrayColor, children: "Contract Address" }), _jsx(CopyButton, { value: address, style: styleOverflow, children: isDesktop ? (_jsx(OverflowH5, { color: AccentColor, title: address, children: address })) : (_jsx(H5, { color: AccentColor, title: address, children: shortenedText(address) })) })] })), _jsxs(FlexOverflow, { children: [_jsx(H5, { color: TextGrayColor, children: idTittle }), _jsx(CopyButton, { value: id, style: styleOverflow, children: isDesktop ? (_jsx(OverflowH5, { color: AccentColor, title: id, children: id })) : (_jsx(BoxOverflow, { children: _jsx(H5, { color: AccentColor, title: id, children: _jsx(BoxOverflow, { children: id }) }) })) })] }), blockTimestamp && (_jsxs(SFlex, { justifyContent: "space-between", children: [_jsx(H5, { color: TextGrayColor, children: "Added on" }), _jsx(H5, { color: TextGrayColor, children: moment(blockTimestamp * 1000).format('LL') })] }))] }));
116
110
  };
117
- exports.Information = Information;