@ludo.ninja/components 1.0.6 → 1.0.8

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 (809) hide show
  1. package/dist/api/graphql/index.js +4 -4
  2. package/dist/api/server-assets/mutations/useDislikeAsset/index.js +185 -72
  3. package/dist/api/server-assets/mutations/useLikeAsset/index.js +182 -73
  4. package/dist/api/server-assets/queries/useFetchAssetByBlockchain/index.js +200 -73
  5. package/dist/api/server-assets/queries/useFetchAssets/index.js +34 -22
  6. package/dist/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +44 -27
  7. package/dist/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +32 -22
  8. package/dist/api/server-collection/mutations/useDislikeCollection/index.js +184 -71
  9. package/dist/api/server-collection/mutations/useLikeCollection/index.js +184 -71
  10. package/dist/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +124 -71
  11. package/dist/api/server-experiences/queries/useFetchMyTasks/index.js +49 -35
  12. package/dist/api/server-galleries/mutations/useAddAssetsToGallery/index.js +189 -75
  13. package/dist/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +167 -60
  14. package/dist/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +191 -74
  15. package/dist/api/server-galleries/mutations/useAddCreationsToGallery/index.js +197 -80
  16. package/dist/api/server-galleries/mutations/useCreateFavorites/index.js +177 -63
  17. package/dist/api/server-galleries/mutations/useCreateGallery/index.js +177 -63
  18. package/dist/api/server-galleries/mutations/useDeleteGallery/index.js +188 -79
  19. package/dist/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +185 -76
  20. package/dist/api/server-galleries/mutations/useEditGallery/index.js +164 -55
  21. package/dist/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +199 -86
  22. package/dist/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +194 -81
  23. package/dist/api/server-galleries/queries/useFetchGallery/index.js +39 -31
  24. package/dist/api/server-galleries/queries/useFetchGalleryAssets/index.js +256 -103
  25. package/dist/api/server-galleries/queries/useFetchMyFavorites/index.js +245 -108
  26. package/dist/api/server-galleries/queries/useFetchMyGalleries/index.js +250 -112
  27. package/dist/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +235 -86
  28. package/dist/api/server-galleries/queries/useFetchUserFavorites/index.js +254 -119
  29. package/dist/api/server-identities/mutations/useAddWalletElrond/index.js +53 -30
  30. package/dist/api/server-identities/mutations/useAddWalletFlow/index.js +184 -66
  31. package/dist/api/server-identities/mutations/useAddWalletMetamask/index.js +219 -76
  32. package/dist/api/server-identities/mutations/useAddWalletSolana/index.js +193 -71
  33. package/dist/api/server-identities/mutations/useAddWalletTezos/index.js +184 -66
  34. package/dist/api/server-identities/mutations/useFollowProfile/index.js +56 -31
  35. package/dist/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +184 -71
  36. package/dist/api/server-identities/mutations/useInviteCode/index.js +192 -65
  37. package/dist/api/server-identities/mutations/useRemoveWallet/index.js +50 -35
  38. package/dist/api/server-identities/mutations/useRevokeToken/index.js +160 -59
  39. package/dist/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +193 -65
  40. package/dist/api/server-identities/mutations/useUnfollowProfile/index.js +58 -30
  41. package/dist/api/server-identities/queries/useFetchProfile/index.js +85 -61
  42. package/dist/api/server-identities/queries/useFetchUserWallets/index.js +35 -15
  43. package/dist/api/server-identities/queries/useGetMyInviteCodes/index.js +43 -27
  44. package/dist/api/server-medias/mutations/useDeleteUserpic/index.js +28 -13
  45. package/dist/api/server-medias/mutations/useUploadUserpic/index.js +181 -60
  46. package/dist/api/server-medias/queries/useFetchUserPic/index.js +43 -31
  47. package/dist/api/server-opportunities/mutations/useDislikeOpportunity.js +171 -65
  48. package/dist/api/server-opportunities/mutations/useLikeOpportunity.js +171 -65
  49. package/dist/api/server-opportunities/mutations/useOpenOpportunity/index.js +171 -65
  50. package/dist/api/server-opportunities/queries/useGetOpportunities.js +25 -16
  51. package/dist/api/server-preferences/mutations/useSaveUserExpectations/index.jsx +199 -75
  52. package/dist/api/server-preferences/mutations/useSaveUserInterests/index.js +199 -75
  53. package/dist/api/server-preferences/queries/fetchSearchResultSelections/index.js +26 -19
  54. package/dist/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +235 -76
  55. package/dist/api/server-preferences/queries/useFetchExpectations/index.js +20 -14
  56. package/dist/api/server-preferences/queries/useFetchInterests/index.js +20 -14
  57. package/dist/api/server-preferences/queries/useFetchSearchResultTimeSelection/index.js +35 -27
  58. package/dist/api/server-preferences/queries/useFetchUserInterests/index.js +21 -14
  59. package/dist/api/server-preferences/queries/useSearchResultBlockchainSelections/index.js +38 -28
  60. package/dist/api/server-preferences/queries/useSearchResultCategorySelections/index.js +35 -27
  61. package/dist/api/server-preferences/queries/useSearchResultStatusSelections/index.js +36 -28
  62. package/dist/api/server-preferences/queries/useSearchResultTypeSelections/index.js +59 -33
  63. package/dist/api/server-search/queries/useFetchAllCreations/index.js +304 -150
  64. package/dist/api/server-search/queries/useFetchAssetsCount/index.js +20 -20
  65. package/dist/api/server-search/queries/useFetchCollection/index.js +56 -42
  66. package/dist/api/server-search/queries/useFetchCollections/index.js +299 -141
  67. package/dist/api/server-search/queries/useFetchDynamicCollectionData/index.js +342 -178
  68. package/dist/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +66 -41
  69. package/dist/api/server-search/queries/useFetchNetWorth/index.js +23 -16
  70. package/dist/api/server-search/queries/useFindCreations/index.js +331 -162
  71. package/dist/api/server-search/queries/useFindProfilesByName/index.js +77 -49
  72. package/dist/api/server-search/queries/useFindShowcaseItems/index.js +32 -32
  73. package/dist/api/server-search/queries/useFindUserCreations/index.js +315 -151
  74. package/dist/api/server-search/queries/useFindUserShowcaseItems/index.js +30 -30
  75. package/dist/api/subscriptions/SubscriberInviteNotification.jsx +49 -29
  76. package/dist/components/CreationCard/CardHead.jsx +277 -103
  77. package/dist/components/CreationCard/index.jsx +211 -32
  78. package/dist/components/addWalletsRedirectPage/index.jsx +66 -15
  79. package/dist/components/assetJSONLD.jsx +24 -24
  80. package/dist/components/assetPage/assetLikes/index.jsx +98 -43
  81. package/dist/components/assetPage/assetNft/index.jsx +61 -19
  82. package/dist/components/assetPage/assetWrapper/index.jsx +170 -35
  83. package/dist/components/assetPage/audioVideoPlayer/Duration.jsx +17 -12
  84. package/dist/components/assetPage/audioVideoPlayer/index.jsx +462 -149
  85. package/dist/components/assetPage/category/index.jsx +89 -16
  86. package/dist/components/assetPage/description/index.jsx +70 -17
  87. package/dist/components/assetPage/detailsAccordeon/index.jsx +81 -18
  88. package/dist/components/assetPage/figCaption/index.jsx +445 -147
  89. package/dist/components/assetPage/information/index.jsx +194 -42
  90. package/dist/components/assetPage/marketPlaces/index.jsx +109 -20
  91. package/dist/components/assetPage/media/AssetImage/index.jsx +256 -54
  92. package/dist/components/assetPage/moreDropDown/index.jsx +224 -38
  93. package/dist/components/assetPage/participants/index.jsx +404 -91
  94. package/dist/components/assetPage/priceRank/index.jsx +177 -24
  95. package/dist/components/assetPage/properties/index.jsx +90 -17
  96. package/dist/components/assetPage/slider/index.jsx +183 -49
  97. package/dist/components/assetPage/slider/slideItem.jsx +48 -7
  98. package/dist/components/assetPage/slider/store.js +9 -6
  99. package/dist/components/assetPage/tittle/index.jsx +134 -31
  100. package/dist/components/assetPage/viewer3D/index.jsx +216 -51
  101. package/dist/components/banner/index.jsx +71 -20
  102. package/dist/components/base/Meta/index.jsx +139 -48
  103. package/dist/components/base/NoSSR/index.jsx +10 -2
  104. package/dist/components/collectionPage/collectionLike/index.jsx +57 -23
  105. package/dist/components/deleteDialog/index.jsx +306 -78
  106. package/dist/components/editProfile/Cropper/index.jsx +235 -73
  107. package/dist/components/editProfile/UserPicProfile/index.jsx +462 -206
  108. package/dist/components/favoriteList/add/addAssetToFavoriteList/index.jsx +195 -57
  109. package/dist/components/favoriteList/add/addCollectionToFavoriteList/index.jsx +197 -55
  110. package/dist/components/favoriteList/add/addCreationToFavoriteList/index.jsx +197 -57
  111. package/dist/components/filters/applyResetBtns/index.jsx +55 -10
  112. package/dist/components/filters/galleriesFiltersForm/index.jsx +137 -51
  113. package/dist/components/filters/index.jsx +189 -57
  114. package/dist/components/filters/mobileFilters/index.jsx +26 -7
  115. package/dist/components/filters/setsFiltersForm/index.jsx +113 -43
  116. package/dist/components/forms/form/index.jsx +289 -92
  117. package/dist/components/forms/formsNavigation/index.jsx +146 -34
  118. package/dist/components/forms/formsTemplate/index.jsx +930 -697
  119. package/dist/components/forms/types/index.js +7 -7
  120. package/dist/components/gallery/add/addAssetToGallery/index.jsx +196 -57
  121. package/dist/components/gallery/add/addCreationToGallery/index.jsx +240 -69
  122. package/dist/components/gradientLabel/index.jsx +37 -6
  123. package/dist/components/headers/components/MobileToggle/index.jsx +1 -1
  124. package/dist/components/headers/components/headerExperienceLabel/index.jsx +43 -13
  125. package/dist/components/headers/components/headerUserPic/index.jsx +48 -11
  126. package/dist/components/headers/header/index.jsx +49 -14
  127. package/dist/components/headers/headerSearch/index.jsx +58 -19
  128. package/dist/components/headers/headerSimple/index.jsx +49 -13
  129. package/dist/components/inviteCodesForms/getEarlyAccessForm/index.jsx +326 -148
  130. package/dist/components/inviteCodesForms/joinWaitListForm/index.jsx +271 -103
  131. package/dist/components/inviteCodesForms/styles/index.js +75 -11
  132. package/dist/components/inviteCodesPage/components/index.jsx +1 -0
  133. package/dist/components/inviteCodesPage/components/inviteCodes/index.jsx +25 -9
  134. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/index.jsx +48 -9
  135. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/index.jsx +28 -11
  136. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/index.jsx +30 -11
  137. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/index.jsx +21 -6
  138. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/index.jsx +32 -9
  139. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/index.jsx +29 -9
  140. package/dist/components/inviteCodesPage/wrappers/index.jsx +1 -0
  141. package/dist/components/inviteCodesPage/wrappers/resumeCodes/index.jsx +137 -22
  142. package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.jsx +22 -6
  143. package/dist/components/inviteCodesPage/wrappers/unusedCodes/index.jsx +40 -16
  144. package/dist/components/inviteCodesPage/wrappers/usedCodes/index.jsx +51 -21
  145. package/dist/components/linkTabs/index.jsx +56 -8
  146. package/dist/components/linkTabs/linkTab/index.jsx +83 -10
  147. package/dist/components/myWallets/index.jsx +56 -15
  148. package/dist/components/myWallets/myWalletItem/index.jsx +359 -90
  149. package/dist/components/navigation/index.jsx +156 -25
  150. package/dist/components/profile/MultiversXAudit/MultiversXAudit.jsx +243 -109
  151. package/dist/components/profile/ProfileTabs.jsx +61 -34
  152. package/dist/components/profile/aboutText/index.jsx +240 -53
  153. package/dist/components/profile/addToGalleryBtns/index.jsx +114 -16
  154. package/dist/components/profile/followersSocial/followers/index.jsx +70 -10
  155. package/dist/components/profile/followersSocial/index.jsx +37 -13
  156. package/dist/components/profile/followersSocial/social/index.jsx +80 -27
  157. package/dist/components/profile/info/index.jsx +86 -22
  158. package/dist/components/profile/interests/data.js +17 -16
  159. package/dist/components/profile/interests/index.jsx +149 -33
  160. package/dist/components/profile/jsonLd/index.jsx +14 -3
  161. package/dist/components/profile/pageHead/index.jsx +106 -35
  162. package/dist/components/profile/profileSkeleton/index.jsx +51 -17
  163. package/dist/components/profile/profileUserCards/index.jsx +26 -7
  164. package/dist/components/profile/profileUserCards/profileUserCard/index.jsx +340 -101
  165. package/dist/components/profile/rank/index.jsx +78 -11
  166. package/dist/components/profile/stats/index.jsx +46 -9
  167. package/dist/components/profile/wallets/index.jsx +142 -34
  168. package/dist/components/profile/wrapper/index.jsx +16 -8
  169. package/dist/components/registrationPage/index.jsx +1 -0
  170. package/dist/components/registrationPage/registrationSelectBox/index.jsx +91 -10
  171. package/dist/components/registrationPage/registrationSelection/index.jsx +99 -33
  172. package/dist/components/rewards/FAQ/index.jsx +281 -77
  173. package/dist/components/rewards/clarifications/index.jsx +98 -23
  174. package/dist/components/rewards/logoBottom/index.jsx +46 -12
  175. package/dist/components/rewards/prograssBar/index.jsx +66 -12
  176. package/dist/components/rewards/rewardsButton/index.jsx +78 -6
  177. package/dist/components/rewards/seasonBanner/index.jsx +86 -11
  178. package/dist/components/rewards/taskExpTab/index.jsx +200 -30
  179. package/dist/components/rewards/tasksGrid/index.jsx +360 -117
  180. package/dist/components/rewards/userExp/index.jsx +256 -32
  181. package/dist/components/search/SearchInputContainer.jsx +476 -190
  182. package/dist/components/search/index.jsx +350 -37
  183. package/dist/components/search/searchCategories/index.jsx +75 -38
  184. package/dist/components/search/searchCloseMoreButtons/index.jsx +131 -35
  185. package/dist/components/search/searchResultCaption/index.jsx +71 -13
  186. package/dist/components/search/searchSelectsGalleries/index.jsx +103 -23
  187. package/dist/components/search/searchSelectsSets/index.jsx +101 -23
  188. package/dist/components/search/searchSimpleInput/index.jsx +201 -31
  189. package/dist/components/search/searchSuggestions/index.jsx +273 -68
  190. package/dist/components/search/searchSuggestions/searchSuggestionsCaption/index.jsx +59 -8
  191. package/dist/components/search/searchSuggestions/searchSuggestionsFooter/index.jsx +65 -8
  192. package/dist/components/search/searchSuggestions/searchSuggestionsItem/index.jsx +111 -25
  193. package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.jsx +124 -21
  194. package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/index.jsx +67 -8
  195. package/dist/components/shareDialog/index.jsx +277 -34
  196. package/dist/components/showcaseAssets/showcaseSort/data.js +23 -23
  197. package/dist/components/showcaseAssets/showcaseSort/index.jsx +48 -10
  198. package/dist/components/sidebar/data.jsx +83 -62
  199. package/dist/components/sidebar/index.jsx +278 -75
  200. package/dist/components/sidebar/initializer.jsx +13 -3
  201. package/dist/components/sidebar/sidebarFilters/index.jsx +42 -9
  202. package/dist/components/sidebar/sidebarInviteCodeLabel/index.jsx +95 -18
  203. package/dist/components/socialButtons/data.jsx +44 -30
  204. package/dist/components/socialButtons/icons/discord.jsx +14 -3
  205. package/dist/components/socialButtons/icons/facebook.jsx +15 -4
  206. package/dist/components/socialButtons/icons/instagram.jsx +19 -5
  207. package/dist/components/socialButtons/icons/medium.jsx +14 -3
  208. package/dist/components/socialButtons/icons/telegram.jsx +14 -3
  209. package/dist/components/socialButtons/icons/twitter.jsx +14 -3
  210. package/dist/components/socialButtons/index.jsx +63 -15
  211. package/dist/components/tabs/icons/bell.jsx +14 -5
  212. package/dist/components/tabs/icons/profile.jsx +23 -5
  213. package/dist/components/tabs/icons/secure.jsx +21 -4
  214. package/dist/components/tabs/index.jsx +95 -35
  215. package/dist/components/toTopBtn/index.jsx +112 -36
  216. package/dist/dto/AssetEntity/index.js +249 -194
  217. package/dist/dto/AssetEntity/views/AssetAudio/index.jsx +67 -27
  218. package/dist/dto/AssetEntity/views/AssetImage/index.jsx +79 -38
  219. package/dist/dto/AssetEntity/views/AssetObject/index.jsx +86 -58
  220. package/dist/dto/AssetEntity/views/AssetOther/index.jsx +87 -42
  221. package/dist/dto/AssetEntity/views/AssetScreenshot/index.jsx +81 -38
  222. package/dist/dto/AssetEntity/views/AssetVideo/index.jsx +67 -27
  223. package/dist/dto/AssetEntity/views/index.js +1 -0
  224. package/dist/dto/Collection/CollectionCreationEntity/index.js +161 -145
  225. package/dist/dto/Collection/CollectionEntity/index.js +87 -69
  226. package/dist/dto/CreationEntity/index.js +167 -152
  227. package/dist/dto/GalleryEntityV2/index.js +77 -65
  228. package/dist/dto/common/ItemType/data.js +41 -33
  229. package/dist/dto/common/ItemType/index.jsx +27 -27
  230. package/dist/dto/common/ItemViews/CreationAudio/index.jsx +68 -27
  231. package/dist/dto/common/ItemViews/CreationImage/index.jsx +72 -38
  232. package/dist/dto/common/ItemViews/CreationObject/index.jsx +66 -32
  233. package/dist/dto/common/ItemViews/CreationOther/index.jsx +67 -27
  234. package/dist/dto/common/ItemViews/CreationVideo/index.jsx +67 -27
  235. package/dist/dto/common/Media/Audio/index.jsx +76 -43
  236. package/dist/dto/common/Media/Image/index.jsx +78 -51
  237. package/dist/dto/common/Media/Object/index.jsx +77 -50
  238. package/dist/dto/common/Media/Other/index.jsx +100 -70
  239. package/dist/dto/common/Media/Screenshot/index.jsx +78 -51
  240. package/dist/dto/common/Media/Urls/index.js +110 -71
  241. package/dist/dto/common/Media/Video/index.jsx +76 -43
  242. package/dist/dto/common/Media/index.jsx +41 -34
  243. package/dist/fonts/FontsInitializeLayout.jsx +96 -24
  244. package/dist/fonts/vars.js +4 -1
  245. package/dist/hooks/apollo/index.jsx +14 -4
  246. package/dist/hooks/audio/useMultiAudio/index.jsx +63 -46
  247. package/dist/hooks/extension/useExtension/index.js +182 -62
  248. package/dist/hooks/favorites/useGetFavoriteGallaryCreations/index.js +346 -172
  249. package/dist/hooks/favorites/useGetUserFevoritesCreations/index.js +421 -247
  250. package/dist/hooks/galleries/useGetUserGalleriesCreations/index.js +397 -231
  251. package/dist/hooks/likes/dynamic/useFindCollectionsAndLikes.jsx +385 -196
  252. package/dist/hooks/likes/dynamic/useFindCreationsAndLikes.jsx +371 -185
  253. package/dist/hooks/likes/dynamic/useGetCollectionInfoAndLikes.jsx +364 -186
  254. package/dist/hooks/likes/dynamic/useGetCreationsAndLikes.jsx +374 -200
  255. package/dist/hooks/likes/dynamic/useGetCreationsAndLikesByType.jsx +393 -212
  256. package/dist/hooks/likes/dynamic/useGetMixedLikesFavoriteList.jsx +81 -42
  257. package/dist/hooks/likes/dynamic/useGetTableLikes.jsx +121 -98
  258. package/dist/hooks/likes/index.js +308 -153
  259. package/dist/hooks/likes/useGetLikesAsset.js +305 -140
  260. package/dist/hooks/useToGalleryAsset/index.jsx +109 -65
  261. package/dist/layouts/GlobalLayout.jsx +23 -10
  262. package/dist/layouts/base/LWithRegularHeader/index.jsx +29 -11
  263. package/dist/layouts/base/LWithSearchHeader/index.jsx +10 -6
  264. package/dist/layouts/base/LWithSimpleHeader/index.jsx +10 -6
  265. package/dist/layouts/base/LWithoutHeader/index.jsx +32 -10
  266. package/dist/layouts/custom/accountLayout/index.jsx +7 -3
  267. package/dist/layouts/custom/formsLayout/index.jsx +7 -3
  268. package/dist/layouts/custom/mainLayout/index.jsx +9 -3
  269. package/dist/layouts/custom/searchLayout/index.jsx +6 -3
  270. package/dist/layouts/custom/simpleLayout/index.jsx +9 -3
  271. package/dist/layouts/custom/styles.js +66 -6
  272. package/dist/layouts/pageTransitionLayout.jsx +29 -18
  273. package/dist/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +447 -257
  274. package/dist/modules/gallery/api/useGetFavoriteGallery.js +49 -30
  275. package/dist/modules/gallery/store.js +231 -106
  276. package/dist/modules/gallery/ui/AllResults.jsx +12 -4
  277. package/dist/modules/gallery/ui/Description.jsx +98 -32
  278. package/dist/modules/gallery/ui/EditGallery.jsx +242 -82
  279. package/dist/modules/gallery/ui/GalleryDeleteIcon.jsx +38 -13
  280. package/dist/modules/gallery/ui/PlaceholderItemsGallery.jsx +71 -10
  281. package/dist/modules/gallery/ui/STopSections.js +43 -5
  282. package/dist/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.jsx +107 -21
  283. package/dist/modules/gallery/ui/chooseGalleryItems/index.jsx +255 -71
  284. package/dist/modules/gallery/ui/createGalleryForm/index.jsx +323 -115
  285. package/dist/modules/gallery/ui/editGalleryForm/index.jsx +360 -129
  286. package/dist/modules/gallery/ui/itemsPreview/index.jsx +329 -153
  287. package/dist/modules/notifications/CreatorNotifications.jsx +25 -7
  288. package/dist/modules/notifications/index.jsx +1 -0
  289. package/dist/modules/sessionScroll/globalTabs.js +45 -45
  290. package/dist/modules/sessionScroll/index.js +43 -32
  291. package/dist/modules/sessionScroll/useVirtuosoInitialScroll.js +76 -50
  292. package/dist/modules/user/auth/useAuthVerification.js +201 -87
  293. package/dist/modules/user/auth/useSignIn.js +26 -13
  294. package/dist/modules/user/auth/useSignOut.js +171 -64
  295. package/dist/modules/user/profileData/profileDataInitialization.jsx +53 -41
  296. package/dist/modules/user/store.jsx +61 -40
  297. package/dist/modules/virtuoso/VirtuosoPageBuilder.jsx +204 -110
  298. package/dist/modules/virtuoso/VirtuosoToTopBtn.jsx +34 -27
  299. package/dist/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +23 -20
  300. package/dist/modules/virtuoso/useVirtuosoData.js +56 -41
  301. package/dist/pages/index.jsx +8 -5
  302. package/dist/store/index.js +5 -2
  303. package/dist/store/media/index.js +75 -51
  304. package/dist/store/ui/index.js +310 -141
  305. package/dist/store/ui/utils.js +32 -25
  306. package/dist/styles/ScreenWidth.js +23 -18
  307. package/dist/styles/animations/index.jsx +34 -6
  308. package/dist/styles/colors/index.jsx +36 -1
  309. package/dist/styles/globalStyles.jsx +43 -9
  310. package/dist/styles/mixins/boxShadow.jsx +24 -4
  311. package/dist/styles/mixins/boxTransform.jsx +24 -4
  312. package/dist/styles/typography/index.jsx +11 -1
  313. package/dist/system/ActiveLink/index.jsx +43 -25
  314. package/dist/system/Alert/index.jsx +11 -5
  315. package/dist/system/Alert/type.js +6 -1
  316. package/dist/system/BasicOverlay/index.jsx +25 -6
  317. package/dist/system/Buttons/IconButton/index.jsx +1 -0
  318. package/dist/system/Buttons/IconWithButton/index.jsx +1 -0
  319. package/dist/system/Buttons/IconWithButton/themes.js +1 -1
  320. package/dist/system/Buttons/MainButton/index.jsx +1 -0
  321. package/dist/system/Buttons/MainButton/themes.js +1 -1
  322. package/dist/system/Buttons/SecondaryButton/index.jsx +1 -0
  323. package/dist/system/Cards/CardCheckbox/index.jsx +69 -11
  324. package/dist/system/Cards/CardContent/CardCategory/index.jsx +60 -10
  325. package/dist/system/Cards/CardContent/CardLikes/index.jsx +43 -13
  326. package/dist/system/Cards/CardContent/CardShowMore/index.jsx +109 -17
  327. package/dist/system/Cards/CardContent/index.jsx +122 -31
  328. package/dist/system/Cards/CardHeadIcons/index.jsx +276 -107
  329. package/dist/system/Cards/CardMedia/CardAudio/index.jsx +95 -48
  330. package/dist/system/Cards/CardMedia/CardImage/index.jsx +34 -9
  331. package/dist/system/Cards/CardMedia/CardVideo/index.jsx +79 -40
  332. package/dist/system/Cards/CardRank/index.jsx +130 -14
  333. package/dist/system/Cards/CardsGrid/index.jsx +99 -35
  334. package/dist/system/Cards/MultiMediaCard/index.jsx +152 -50
  335. package/dist/system/Cards/RegularCard/index.jsx +128 -27
  336. package/dist/system/Cards/Styles/Content.js +36 -5
  337. package/dist/system/Cards/Styles/Head.js +34 -5
  338. package/dist/system/Cards/Styles/Headicons.js +105 -6
  339. package/dist/system/Cards/Styles/Image.js +39 -5
  340. package/dist/system/Cards/Styles/Likes.js +56 -5
  341. package/dist/system/Cards/Styles/MultiHead.js +43 -5
  342. package/dist/system/Cards/Styles/Video.js +23 -5
  343. package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.jsx +197 -61
  344. package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.jsx +38 -9
  345. package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.jsx +62 -16
  346. package/dist/system/CardsHolderWithSkeleton/CardsHolder/index.jsx +97 -22
  347. package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/index.jsx +49 -9
  348. package/dist/system/CardsHolderWithSkeleton/index.jsx +47 -7
  349. package/dist/system/DropDown/DropDown.test.jsx +43 -30
  350. package/dist/system/DropDown/index.jsx +62 -21
  351. package/dist/system/Filters/helpers.js +17 -3
  352. package/dist/system/Filters/type.js +5 -5
  353. package/dist/system/Flex/index.jsx +1 -1
  354. package/dist/system/Forms/Checkbox/Checkbox.test.jsx +60 -55
  355. package/dist/system/Forms/Checkbox/index.jsx +93 -22
  356. package/dist/system/Forms/DatePicker/index.jsx +161 -20
  357. package/dist/system/Forms/ErrorLabel/ErrorLabel.test.jsx +17 -14
  358. package/dist/system/Forms/ErrorLabel/index.jsx +38 -7
  359. package/dist/system/Forms/Input/Input.test.jsx +48 -36
  360. package/dist/system/Forms/Input/index.jsx +121 -16
  361. package/dist/system/Forms/Messages/index.js +58 -57
  362. package/dist/system/Forms/RadioInput/index.jsx +78 -17
  363. package/dist/system/Forms/Selects/DesktopSelect/index.jsx +352 -95
  364. package/dist/system/Forms/Selects/MobileSelect/index.jsx +53 -20
  365. package/dist/system/Forms/TextArea/index.jsx +113 -15
  366. package/dist/system/Forms/index.js +1 -0
  367. package/dist/system/Img/ExternalImage/index.jsx +40 -7
  368. package/dist/system/Img/ImageInterceptor/ImageInterceptor.test.jsx +70 -41
  369. package/dist/system/Img/ImageInterceptor/index.jsx +60 -20
  370. package/dist/system/Img/Profilepic/index.jsx +52 -21
  371. package/dist/system/Img/Userpic/UserPic.test.jsx +73 -50
  372. package/dist/system/Img/Userpic/index.jsx +142 -44
  373. package/dist/system/Labels/ExperienceLabel/ExperienceLabel.test.jsx +46 -41
  374. package/dist/system/Labels/ExperienceLabel/index.jsx +111 -18
  375. package/dist/system/Labels/InviteLabel/InviteLabel.test.jsx +41 -36
  376. package/dist/system/Labels/InviteLabel/index.jsx +67 -17
  377. package/dist/system/Labels/SkeletonLabel/index.jsx +1 -0
  378. package/dist/system/Modals/Modal/Modal.test.jsx +26 -22
  379. package/dist/system/Modals/Modal/index.jsx +84 -12
  380. package/dist/system/Modals/ModalSidebar/CreatorModalSidebarPortal.jsx +21 -7
  381. package/dist/system/Modals/ModalSidebar/ModalSidebar.test.jsx +25 -21
  382. package/dist/system/Modals/ModalSidebar/ModalSidebarPortal.jsx +20 -7
  383. package/dist/system/Modals/ModalSidebar/index.jsx +80 -12
  384. package/dist/system/Overlay/Overlay.test.jsx +39 -33
  385. package/dist/system/Overlay/index.jsx +57 -9
  386. package/dist/system/PageLoader/index.jsx +1 -0
  387. package/dist/system/Palete/index.jsx +1 -0
  388. package/dist/system/ShareIconResize.jsx +48 -12
  389. package/dist/system/Tabs/TabNavLink/TabNavLink.test.jsx +32 -22
  390. package/dist/system/Tabs/TabNavLink/index.jsx +67 -8
  391. package/dist/system/Tabs/TabsNav/TabsNav.test.jsx +47 -25
  392. package/dist/system/Tabs/TabsNav/index.jsx +45 -12
  393. package/dist/system/Tabs/TabsPanel/TabsPanel.test.jsx +39 -25
  394. package/dist/system/Tabs/TabsPanel/index.jsx +28 -7
  395. package/dist/system/Text/index.jsx +1 -1
  396. package/dist/system/theme.js +5 -1
  397. package/dist/types/api/graphql/index.d.ts +7 -2
  398. package/dist/types/api/server-assets/mutations/useDislikeAsset/index.d.ts +6 -3
  399. package/dist/types/api/server-assets/mutations/useLikeAsset/index.d.ts +4 -3
  400. package/dist/types/api/server-assets/queries/useFetchAssets/index.d.ts +14 -5
  401. package/dist/types/api/server-assets/queries/useFetchDynamicAssetLikes/index.d.ts +8 -5
  402. package/dist/types/api/server-assets/queries/useFetchDynamicAssetsLikes/index.d.ts +7 -4
  403. package/dist/types/api/server-collection/mutations/useDislikeCollection/index.d.ts +6 -3
  404. package/dist/types/api/server-collection/mutations/useLikeCollection/index.d.ts +6 -3
  405. package/dist/types/api/server-experiences/queries/useFetchMyTasks/index.d.ts +36 -20
  406. package/dist/types/api/server-galleries/mutations/useAddAssetsToGallery/index.d.ts +7 -3
  407. package/dist/types/api/server-galleries/mutations/useAddChangeGalleryBanner/index.d.ts +7 -1
  408. package/dist/types/api/server-galleries/mutations/useAddCollectionsToGallery/index.d.ts +7 -3
  409. package/dist/types/api/server-galleries/mutations/useAddCreationsToGallery/index.d.ts +7 -3
  410. package/dist/types/api/server-galleries/mutations/useCreateFavorites/index.d.ts +8 -2
  411. package/dist/types/api/server-galleries/mutations/useCreateGallery/index.d.ts +8 -2
  412. package/dist/types/api/server-galleries/mutations/useDeleteGallery/index.d.ts +7 -4
  413. package/dist/types/api/server-galleries/mutations/useDeleteGalleryBanner/index.d.ts +5 -2
  414. package/dist/types/api/server-galleries/mutations/useEditGallery/index.d.ts +8 -1
  415. package/dist/types/api/server-galleries/mutations/useRemoveAssetFromGallery/index.d.ts +7 -3
  416. package/dist/types/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.d.ts +7 -3
  417. package/dist/types/api/server-galleries/queries/useFetchGallery/index.d.ts +20 -9
  418. package/dist/types/api/server-galleries/queries/useFetchGalleryAssets/index.d.ts +18 -15
  419. package/dist/types/api/server-galleries/queries/useFetchMyFavorites/index.d.ts +7 -5
  420. package/dist/types/api/server-galleries/queries/useFetchMyGalleries/index.d.ts +7 -5
  421. package/dist/types/api/server-galleries/queries/useFetchSubscribedGalleries/index.d.ts +10 -7
  422. package/dist/types/api/server-galleries/queries/useFetchUserFavorites/index.d.ts +13 -7
  423. package/dist/types/api/server-identities/mutations/useAddWalletElrond/index.d.ts +8 -2
  424. package/dist/types/api/server-identities/mutations/useAddWalletFlow/index.d.ts +5 -1
  425. package/dist/types/api/server-identities/mutations/useAddWalletMetamask/index.d.ts +11 -3
  426. package/dist/types/api/server-identities/mutations/useAddWalletSolana/index.d.ts +5 -1
  427. package/dist/types/api/server-identities/mutations/useAddWalletTezos/index.d.ts +5 -1
  428. package/dist/types/api/server-identities/mutations/useFollowProfile/index.d.ts +13 -4
  429. package/dist/types/api/server-identities/mutations/useGenerateNewInviteCodes/index.d.ts +6 -3
  430. package/dist/types/api/server-identities/mutations/useRevokeToken/index.d.ts +1 -1
  431. package/dist/types/api/server-identities/mutations/useUnfollowProfile/index.d.ts +13 -4
  432. package/dist/types/api/server-identities/queries/useFetchProfile/index.d.ts +23 -10
  433. package/dist/types/api/server-identities/queries/useGetMyInviteCodes/index.d.ts +5 -4
  434. package/dist/types/api/server-medias/mutations/useDeleteUserpic/index.d.ts +12 -3
  435. package/dist/types/api/server-medias/mutations/useUploadUserpic/index.d.ts +3 -1
  436. package/dist/types/api/server-opportunities/mutations/useDislikeOpportunity.d.ts +4 -1
  437. package/dist/types/api/server-opportunities/mutations/useLikeOpportunity.d.ts +4 -1
  438. package/dist/types/api/server-opportunities/mutations/useOpenOpportunity/index.d.ts +4 -1
  439. package/dist/types/api/server-opportunities/queries/useGetOpportunities.d.ts +41 -2
  440. package/dist/types/api/server-preferences/mutations/useSaveUserExpectations/index.d.ts +1 -1
  441. package/dist/types/api/server-preferences/mutations/useSaveUserInterests/index.d.ts +1 -1
  442. package/dist/types/api/server-preferences/queries/fetchSearchResultSelections/queryData.d.ts +16 -7
  443. package/dist/types/api/server-preferences/queries/useFetchSearchResultTimeSelection/index.d.ts +14 -7
  444. package/dist/types/api/server-preferences/queries/useFetchUserInterests/index.d.ts +4 -3
  445. package/dist/types/api/server-preferences/queries/useSearchResultBlockchainSelections/index.d.ts +15 -8
  446. package/dist/types/api/server-preferences/queries/useSearchResultCategorySelections/index.d.ts +16 -7
  447. package/dist/types/api/server-preferences/queries/useSearchResultStatusSelections/index.d.ts +17 -8
  448. package/dist/types/api/server-preferences/queries/useSearchResultTypeSelections/index.d.ts +17 -8
  449. package/dist/types/api/server-search/queries/useFetchAssetsCount/index.d.ts +4 -4
  450. package/dist/types/api/server-search/queries/useFetchCollection/index.d.ts +25 -11
  451. package/dist/types/api/server-search/queries/useFetchCollections/index.d.ts +23 -13
  452. package/dist/types/api/server-search/queries/useFetchDynamicCollectionData/index.d.ts +13 -9
  453. package/dist/types/api/server-search/queries/useFetchNetWorth/index.d.ts +4 -3
  454. package/dist/types/api/subscriptions/SubscriberInviteNotification.d.ts +3 -1
  455. package/dist/types/components/CreationCard/CardHead.d.ts +22 -10
  456. package/dist/types/components/CreationCard/index.d.ts +39 -18
  457. package/dist/types/components/addWalletsRedirectPage/index.d.ts +5 -2
  458. package/dist/types/components/assetPage/assetLikes/index.d.ts +9 -4
  459. package/dist/types/components/assetPage/assetNft/index.d.ts +5 -1
  460. package/dist/types/components/assetPage/assetWrapper/index.d.ts +12 -5
  461. package/dist/types/components/assetPage/audioVideoPlayer/Duration.d.ts +2 -1
  462. package/dist/types/components/assetPage/audioVideoPlayer/index.d.ts +99 -87
  463. package/dist/types/components/assetPage/category/index.d.ts +5 -2
  464. package/dist/types/components/assetPage/description/index.d.ts +5 -1
  465. package/dist/types/components/assetPage/detailsAccordeon/index.d.ts +6 -2
  466. package/dist/types/components/assetPage/figCaption/index.d.ts +6 -2
  467. package/dist/types/components/assetPage/information/index.d.ts +6 -2
  468. package/dist/types/components/assetPage/marketPlaces/index.d.ts +6 -2
  469. package/dist/types/components/assetPage/media/AssetImage/index.d.ts +13 -6
  470. package/dist/types/components/assetPage/moreDropDown/index.d.ts +5 -4
  471. package/dist/types/components/assetPage/participants/index.d.ts +12 -5
  472. package/dist/types/components/assetPage/priceRank/index.d.ts +11 -5
  473. package/dist/types/components/assetPage/properties/index.d.ts +5 -1
  474. package/dist/types/components/assetPage/slider/index.d.ts +7 -2
  475. package/dist/types/components/assetPage/slider/slideItem.d.ts +8 -3
  476. package/dist/types/components/assetPage/slider/store.d.ts +7 -5
  477. package/dist/types/components/assetPage/tittle/index.d.ts +12 -5
  478. package/dist/types/components/assetPage/viewer3D/index.d.ts +10 -4
  479. package/dist/types/components/banner/index.d.ts +1 -0
  480. package/dist/types/components/base/Meta/index.d.ts +1 -1
  481. package/dist/types/components/base/NoSSR/index.d.ts +3 -2
  482. package/dist/types/components/collectionPage/collectionLike/index.d.ts +9 -4
  483. package/dist/types/components/deleteDialog/index.d.ts +11 -5
  484. package/dist/types/components/editProfile/Cropper/index.d.ts +13 -15
  485. package/dist/types/components/editProfile/UserPicProfile/index.d.ts +5 -2
  486. package/dist/types/components/favoriteList/add/addAssetToFavoriteList/index.d.ts +2 -1
  487. package/dist/types/components/favoriteList/add/addCollectionToFavoriteList/index.d.ts +2 -1
  488. package/dist/types/components/favoriteList/add/addCreationToFavoriteList/index.d.ts +3 -2
  489. package/dist/types/components/filters/applyResetBtns/index.d.ts +7 -3
  490. package/dist/types/components/filters/galleriesFiltersForm/index.d.ts +16 -7
  491. package/dist/types/components/filters/index.d.ts +23 -7
  492. package/dist/types/components/filters/mobileFilters/index.d.ts +5 -2
  493. package/dist/types/components/filters/setsFiltersForm/index.d.ts +14 -6
  494. package/dist/types/components/forms/form/index.d.ts +10 -8
  495. package/dist/types/components/forms/formsNavigation/index.d.ts +1 -0
  496. package/dist/types/components/forms/formsTemplate/index.d.ts +9 -6
  497. package/dist/types/components/forms/types/index.d.ts +34 -22
  498. package/dist/types/components/gallery/add/addAssetToGallery/index.d.ts +2 -1
  499. package/dist/types/components/gallery/add/addCreationToGallery/index.d.ts +1 -0
  500. package/dist/types/components/gradientLabel/index.d.ts +1 -0
  501. package/dist/types/components/headers/components/headerExperienceLabel/index.d.ts +5 -3
  502. package/dist/types/components/headers/components/headerUserPic/index.d.ts +5 -2
  503. package/dist/types/components/headers/header/index.d.ts +1 -0
  504. package/dist/types/components/headers/headerSearch/index.d.ts +1 -0
  505. package/dist/types/components/headers/headerSimple/index.d.ts +1 -0
  506. package/dist/types/components/inviteCodesForms/getEarlyAccessForm/index.d.ts +1 -0
  507. package/dist/types/components/inviteCodesForms/joinWaitListForm/index.d.ts +1 -0
  508. package/dist/types/components/inviteCodesForms/styles/index.d.ts +55 -5
  509. package/dist/types/components/inviteCodesPage/components/index.d.ts +1 -0
  510. package/dist/types/components/inviteCodesPage/components/inviteCodes/index.d.ts +7 -3
  511. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCode/index.d.ts +8 -3
  512. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/index.d.ts +1 -0
  513. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/index.d.ts +9 -4
  514. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/index.d.ts +1 -0
  515. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/index.d.ts +6 -2
  516. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/index.d.ts +5 -2
  517. package/dist/types/components/inviteCodesPage/wrappers/index.d.ts +1 -0
  518. package/dist/types/components/inviteCodesPage/wrappers/resumeCodes/index.d.ts +11 -5
  519. package/dist/types/components/inviteCodesPage/wrappers/resumeCodes/loader/index.d.ts +1 -0
  520. package/dist/types/components/inviteCodesPage/wrappers/unusedCodes/index.d.ts +8 -3
  521. package/dist/types/components/inviteCodesPage/wrappers/usedCodes/index.d.ts +8 -3
  522. package/dist/types/components/linkTabs/index.d.ts +9 -4
  523. package/dist/types/components/linkTabs/linkTab/index.d.ts +11 -5
  524. package/dist/types/components/myWallets/index.d.ts +1 -0
  525. package/dist/types/components/myWallets/myWalletItem/index.d.ts +14 -6
  526. package/dist/types/components/navigation/index.d.ts +4 -3
  527. package/dist/types/components/profile/MultiversXAudit/MultiversXAudit.d.ts +1 -1
  528. package/dist/types/components/profile/ProfileTabs.d.ts +11 -5
  529. package/dist/types/components/profile/aboutText/index.d.ts +21 -2
  530. package/dist/types/components/profile/addToGalleryBtns/index.d.ts +5 -2
  531. package/dist/types/components/profile/followersSocial/followers/index.d.ts +7 -3
  532. package/dist/types/components/profile/followersSocial/index.d.ts +11 -2
  533. package/dist/types/components/profile/followersSocial/social/index.d.ts +5 -1
  534. package/dist/types/components/profile/info/index.d.ts +6 -2
  535. package/dist/types/components/profile/interests/data.d.ts +1 -0
  536. package/dist/types/components/profile/interests/index.d.ts +1 -0
  537. package/dist/types/components/profile/interests/type.d.ts +3 -2
  538. package/dist/types/components/profile/jsonLd/index.d.ts +6 -2
  539. package/dist/types/components/profile/pageHead/index.d.ts +8 -3
  540. package/dist/types/components/profile/profileSkeleton/index.d.ts +5 -2
  541. package/dist/types/components/profile/profileUserCards/index.d.ts +5 -2
  542. package/dist/types/components/profile/profileUserCards/profileUserCard/index.d.ts +16 -7
  543. package/dist/types/components/profile/rank/index.d.ts +5 -1
  544. package/dist/types/components/profile/stats/index.d.ts +5 -1
  545. package/dist/types/components/profile/wallets/index.d.ts +1 -0
  546. package/dist/types/components/profile/wrapper/index.d.ts +10 -4
  547. package/dist/types/components/registrationPage/index.d.ts +1 -0
  548. package/dist/types/components/registrationPage/registrationSelectBox/index.d.ts +5 -4
  549. package/dist/types/components/registrationPage/registrationSelection/index.d.ts +12 -10
  550. package/dist/types/components/rewards/FAQ/index.d.ts +1 -0
  551. package/dist/types/components/rewards/clarifications/index.d.ts +8 -6
  552. package/dist/types/components/rewards/logoBottom/index.d.ts +1 -1
  553. package/dist/types/components/rewards/prograssBar/index.d.ts +9 -5
  554. package/dist/types/components/rewards/rewardsButton/index.d.ts +11 -1
  555. package/dist/types/components/rewards/seasonBanner/index.d.ts +5 -3
  556. package/dist/types/components/rewards/taskExpTab/index.d.ts +21 -10
  557. package/dist/types/components/rewards/tasksGrid/index.d.ts +6 -3
  558. package/dist/types/components/rewards/userExp/index.d.ts +17 -8
  559. package/dist/types/components/search/SearchInputContainer.d.ts +35 -21
  560. package/dist/types/components/search/index.d.ts +1 -0
  561. package/dist/types/components/search/searchCategories/index.d.ts +1 -0
  562. package/dist/types/components/search/searchCategories/type.d.ts +2 -2
  563. package/dist/types/components/search/searchCloseMoreButtons/index.d.ts +14 -9
  564. package/dist/types/components/search/searchResultCaption/index.d.ts +9 -4
  565. package/dist/types/components/search/searchSelectsGalleries/index.d.ts +12 -5
  566. package/dist/types/components/search/searchSelectsSets/index.d.ts +10 -4
  567. package/dist/types/components/search/searchSimpleInput/index.d.ts +5 -2
  568. package/dist/types/components/search/searchSuggestions/index.d.ts +9 -6
  569. package/dist/types/components/search/searchSuggestions/searchSuggestionsCaption/index.d.ts +3 -2
  570. package/dist/types/components/search/searchSuggestions/searchSuggestionsFooter/index.d.ts +1 -0
  571. package/dist/types/components/search/searchSuggestions/searchSuggestionsItem/index.d.ts +7 -6
  572. package/dist/types/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.d.ts +1 -0
  573. package/dist/types/components/search/searchSuggestions/searchSuggestionsNotFound/index.d.ts +5 -2
  574. package/dist/types/components/shareDialog/index.d.ts +33 -29
  575. package/dist/types/components/showcaseAssets/showcaseSort/data.d.ts +1 -0
  576. package/dist/types/components/showcaseAssets/showcaseSort/index.d.ts +10 -4
  577. package/dist/types/components/sidebar/data.d.ts +23 -15
  578. package/dist/types/components/sidebar/index.d.ts +1 -0
  579. package/dist/types/components/sidebar/initializer.d.ts +1 -1
  580. package/dist/types/components/sidebar/sidebarFilters/index.d.ts +9 -4
  581. package/dist/types/components/sidebar/sidebarInviteCodeLabel/index.d.ts +1 -0
  582. package/dist/types/components/socialButtons/data.d.ts +1 -0
  583. package/dist/types/components/socialButtons/icons/discord.d.ts +1 -1
  584. package/dist/types/components/socialButtons/icons/facebook.d.ts +1 -1
  585. package/dist/types/components/socialButtons/icons/instagram.d.ts +1 -1
  586. package/dist/types/components/socialButtons/icons/medium.d.ts +1 -1
  587. package/dist/types/components/socialButtons/icons/telegram.d.ts +1 -1
  588. package/dist/types/components/socialButtons/icons/twitter.d.ts +1 -1
  589. package/dist/types/components/socialButtons/index.d.ts +1 -0
  590. package/dist/types/components/socialButtons/type.d.ts +4 -4
  591. package/dist/types/components/tabs/icons/bell.d.ts +2 -2
  592. package/dist/types/components/tabs/icons/profile.d.ts +2 -2
  593. package/dist/types/components/tabs/icons/secure.d.ts +2 -2
  594. package/dist/types/components/tabs/index.d.ts +1 -0
  595. package/dist/types/components/toTopBtn/index.d.ts +5 -2
  596. package/dist/types/dto/AssetEntity/index.d.ts +62 -55
  597. package/dist/types/dto/AssetEntity/interface.d.ts +39 -32
  598. package/dist/types/dto/AssetEntity/views/AssetAudio/index.d.ts +11 -3
  599. package/dist/types/dto/AssetEntity/views/AssetImage/index.d.ts +13 -4
  600. package/dist/types/dto/AssetEntity/views/AssetObject/index.d.ts +14 -5
  601. package/dist/types/dto/AssetEntity/views/AssetOther/index.d.ts +14 -5
  602. package/dist/types/dto/AssetEntity/views/AssetScreenshot/index.d.ts +13 -4
  603. package/dist/types/dto/AssetEntity/views/AssetVideo/index.d.ts +11 -3
  604. package/dist/types/dto/AssetEntity/views/index.d.ts +1 -0
  605. package/dist/types/dto/Collection/CollectionCreationEntity/index.d.ts +39 -37
  606. package/dist/types/dto/Collection/CollectionCreationEntity/interface.d.ts +20 -18
  607. package/dist/types/dto/Collection/CollectionEntity/index.d.ts +33 -27
  608. package/dist/types/dto/Collection/CollectionEntity/interface.d.ts +18 -13
  609. package/dist/types/dto/CreationEntity/index.d.ts +43 -41
  610. package/dist/types/dto/CreationEntity/interface.d.ts +26 -24
  611. package/dist/types/dto/GalleryEntityV2/index.d.ts +27 -25
  612. package/dist/types/dto/GalleryEntityV2/interface.d.ts +13 -11
  613. package/dist/types/dto/common/ItemType/data.d.ts +1 -0
  614. package/dist/types/dto/common/ItemType/index.d.ts +31 -31
  615. package/dist/types/dto/common/ItemViews/CreationAudio/index.d.ts +11 -3
  616. package/dist/types/dto/common/ItemViews/CreationImage/index.d.ts +13 -4
  617. package/dist/types/dto/common/ItemViews/CreationObject/index.d.ts +10 -2
  618. package/dist/types/dto/common/ItemViews/CreationOther/index.d.ts +11 -3
  619. package/dist/types/dto/common/ItemViews/CreationVideo/index.d.ts +11 -3
  620. package/dist/types/dto/common/Media/Audio/index.d.ts +15 -7
  621. package/dist/types/dto/common/Media/Image/index.d.ts +16 -7
  622. package/dist/types/dto/common/Media/Object/index.d.ts +16 -7
  623. package/dist/types/dto/common/Media/Other/index.d.ts +16 -7
  624. package/dist/types/dto/common/Media/Screenshot/index.d.ts +16 -7
  625. package/dist/types/dto/common/Media/Urls/index.d.ts +49 -16
  626. package/dist/types/dto/common/Media/Video/index.d.ts +15 -7
  627. package/dist/types/dto/common/Media/index.d.ts +30 -21
  628. package/dist/types/dto/common/Media/interface.d.ts +21 -20
  629. package/dist/types/entities/user/type.d.ts +8 -3
  630. package/dist/types/fonts/FontsInitializeLayout.d.ts +6 -3
  631. package/dist/types/fonts/vars.d.ts +4 -1
  632. package/dist/types/hooks/extension/useExtension/index.d.ts +4 -4
  633. package/dist/types/hooks/favorites/useGetFavoriteGallaryCreations/index.d.ts +23 -16
  634. package/dist/types/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +28 -17
  635. package/dist/types/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +26 -17
  636. package/dist/types/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +18 -11
  637. package/dist/types/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +18 -13
  638. package/dist/types/hooks/likes/dynamic/useGetTableLikes.d.ts +19 -9
  639. package/dist/types/hooks/likes/index.d.ts +20 -12
  640. package/dist/types/hooks/likes/useGetLikesAsset.d.ts +20 -8
  641. package/dist/types/hooks/useToGalleryAsset/index.d.ts +21 -12
  642. package/dist/types/layouts/GlobalLayout.d.ts +5 -2
  643. package/dist/types/layouts/base/LWithRegularHeader/index.d.ts +1 -0
  644. package/dist/types/layouts/base/LWithRegularHeader/type.d.ts +3 -1
  645. package/dist/types/layouts/base/LWithSearchHeader/index.d.ts +1 -0
  646. package/dist/types/layouts/base/LWithSearchHeader/type.d.ts +3 -1
  647. package/dist/types/layouts/base/LWithSimpleHeader/index.d.ts +1 -0
  648. package/dist/types/layouts/base/LWithSimpleHeader/type.d.ts +3 -1
  649. package/dist/types/layouts/base/LWithoutHeader/index.d.ts +1 -0
  650. package/dist/types/layouts/custom/accountLayout/index.d.ts +1 -0
  651. package/dist/types/layouts/custom/formsLayout/index.d.ts +1 -0
  652. package/dist/types/layouts/custom/mainLayout/index.d.ts +1 -0
  653. package/dist/types/layouts/custom/searchLayout/index.d.ts +1 -0
  654. package/dist/types/layouts/custom/simpleLayout/index.d.ts +1 -0
  655. package/dist/types/layouts/custom/styles.d.ts +22 -2
  656. package/dist/types/layouts/pageTransitionLayout.d.ts +2 -1
  657. package/dist/types/layouts/pageWithLayout.d.ts +10 -3
  658. package/dist/types/modules/gallery/api/useGetFavoriteGallery.d.ts +6 -4
  659. package/dist/types/modules/gallery/store.d.ts +21 -17
  660. package/dist/types/modules/gallery/ui/AllResults.d.ts +5 -2
  661. package/dist/types/modules/gallery/ui/Description.d.ts +7 -3
  662. package/dist/types/modules/gallery/ui/EditGallery.d.ts +18 -7
  663. package/dist/types/modules/gallery/ui/GalleryDeleteIcon.d.ts +7 -3
  664. package/dist/types/modules/gallery/ui/PlaceholderItemsGallery.d.ts +1 -1
  665. package/dist/types/modules/gallery/ui/STopSections.d.ts +11 -1
  666. package/dist/types/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.d.ts +10 -4
  667. package/dist/types/modules/gallery/ui/chooseGalleryItems/index.d.ts +15 -10
  668. package/dist/types/modules/gallery/ui/createGalleryForm/index.d.ts +25 -8
  669. package/dist/types/modules/gallery/ui/editGalleryForm/index.d.ts +13 -6
  670. package/dist/types/modules/gallery/ui/itemsPreview/index.d.ts +27 -13
  671. package/dist/types/modules/notifications/CreatorNotifications.d.ts +1 -1
  672. package/dist/types/modules/notifications/index.d.ts +18 -15
  673. package/dist/types/modules/sessionScroll/globalTabs.d.ts +10 -9
  674. package/dist/types/modules/sessionScroll/index.d.ts +9 -6
  675. package/dist/types/modules/sessionScroll/type.d.ts +5 -5
  676. package/dist/types/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +14 -6
  677. package/dist/types/modules/user/auth/useSignIn.d.ts +1 -0
  678. package/dist/types/modules/user/profileData/profileDataInitialization.d.ts +3 -1
  679. package/dist/types/modules/user/store.d.ts +38 -22
  680. package/dist/types/modules/virtuoso/VirtuosoPageBuilder.d.ts +32 -14
  681. package/dist/types/modules/virtuoso/VirtuosoToTopBtn.d.ts +9 -5
  682. package/dist/types/modules/virtuoso/types.d.ts +3 -2
  683. package/dist/types/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.d.ts +1 -1
  684. package/dist/types/modules/virtuoso/useVirtuosoData.d.ts +16 -8
  685. package/dist/types/pages/index.d.ts +1 -1
  686. package/dist/types/store/index.d.ts +13 -5
  687. package/dist/types/store/media/index.d.ts +4 -1
  688. package/dist/types/store/media/types.d.ts +7 -7
  689. package/dist/types/store/ui/index.d.ts +4 -1
  690. package/dist/types/store/ui/types.d.ts +32 -27
  691. package/dist/types/store/ui/utils.d.ts +7 -2
  692. package/dist/types/styles/ScreenWidth.d.ts +18 -18
  693. package/dist/types/styles/animations/index.d.ts +2 -2
  694. package/dist/types/styles/colors/index.d.ts +36 -1
  695. package/dist/types/styles/globalStyles.d.ts +3 -1
  696. package/dist/types/styles/mixins/boxShadow.d.ts +1 -1
  697. package/dist/types/styles/mixins/boxTransform.d.ts +1 -1
  698. package/dist/types/styles/typography/index.d.ts +11 -1
  699. package/dist/types/system/ActiveLink/index.d.ts +10 -5
  700. package/dist/types/system/Alert/index.d.ts +1 -1
  701. package/dist/types/system/Alert/type.d.ts +10 -2
  702. package/dist/types/system/BasicOverlay/index.d.ts +1 -0
  703. package/dist/types/system/Buttons/IconButton/index.d.ts +1 -0
  704. package/dist/types/system/Buttons/IconWithButton/index.d.ts +1 -0
  705. package/dist/types/system/Buttons/MainButton/index.d.ts +1 -0
  706. package/dist/types/system/Buttons/SecondaryButton/index.d.ts +1 -0
  707. package/dist/types/system/Cards/CardCheckbox/index.d.ts +7 -3
  708. package/dist/types/system/Cards/CardContent/CardCategory/index.d.ts +6 -2
  709. package/dist/types/system/Cards/CardContent/CardLikes/index.d.ts +7 -3
  710. package/dist/types/system/Cards/CardContent/CardShowMore/index.d.ts +18 -5
  711. package/dist/types/system/Cards/CardContent/index.d.ts +27 -13
  712. package/dist/types/system/Cards/CardHeadIcons/index.d.ts +24 -10
  713. package/dist/types/system/Cards/CardMedia/CardAudio/index.d.ts +11 -5
  714. package/dist/types/system/Cards/CardMedia/CardImage/index.d.ts +9 -4
  715. package/dist/types/system/Cards/CardMedia/CardVideo/index.d.ts +9 -4
  716. package/dist/types/system/Cards/CardRank/index.d.ts +2 -3
  717. package/dist/types/system/Cards/CardsGrid/index.d.ts +19 -9
  718. package/dist/types/system/Cards/MultiMediaCard/index.d.ts +10 -4
  719. package/dist/types/system/Cards/RegularCard/index.d.ts +28 -14
  720. package/dist/types/system/Cards/Styles/Content.d.ts +11 -1
  721. package/dist/types/system/Cards/Styles/Head.d.ts +11 -1
  722. package/dist/types/system/Cards/Styles/Headicons.d.ts +13 -3
  723. package/dist/types/system/Cards/Styles/Image.d.ts +13 -3
  724. package/dist/types/system/Cards/Styles/Likes.d.ts +13 -3
  725. package/dist/types/system/Cards/Styles/MultiHead.d.ts +11 -1
  726. package/dist/types/system/Cards/Styles/Video.d.ts +11 -1
  727. package/dist/types/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.d.ts +5 -2
  728. package/dist/types/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.d.ts +5 -2
  729. package/dist/types/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.d.ts +5 -2
  730. package/dist/types/system/CardsHolderWithSkeleton/CardsHolder/index.d.ts +20 -13
  731. package/dist/types/system/CardsHolderWithSkeleton/CardsHolderLoader/index.d.ts +1 -0
  732. package/dist/types/system/CardsHolderWithSkeleton/index.d.ts +27 -20
  733. package/dist/types/system/DropDown/index.d.ts +11 -5
  734. package/dist/types/system/Filters/helpers.d.ts +14 -4
  735. package/dist/types/system/Filters/type.d.ts +10 -9
  736. package/dist/types/system/Forms/Checkbox/index.d.ts +16 -14
  737. package/dist/types/system/Forms/DatePicker/index.d.ts +9 -7
  738. package/dist/types/system/Forms/ErrorLabel/index.d.ts +3 -2
  739. package/dist/types/system/Forms/Input/index.d.ts +22 -9
  740. package/dist/types/system/Forms/Input/type.d.ts +3 -3
  741. package/dist/types/system/Forms/Messages/index.d.ts +57 -57
  742. package/dist/types/system/Forms/RadioInput/index.d.ts +20 -9
  743. package/dist/types/system/Forms/Selects/DesktopSelect/index.d.ts +15 -6
  744. package/dist/types/system/Forms/Selects/DesktopSelect/type.d.ts +3 -3
  745. package/dist/types/system/Forms/Selects/MobileSelect/index.d.ts +15 -7
  746. package/dist/types/system/Forms/TextArea/index.d.ts +10 -7
  747. package/dist/types/system/Forms/index.d.ts +1 -0
  748. package/dist/types/system/Img/ExternalImage/index.d.ts +11 -4
  749. package/dist/types/system/Img/ImageInterceptor/index.d.ts +25 -13
  750. package/dist/types/system/Img/Profilepic/index.d.ts +6 -4
  751. package/dist/types/system/Img/Userpic/index.d.ts +13 -6
  752. package/dist/types/system/Labels/ExperienceLabel/index.d.ts +9 -4
  753. package/dist/types/system/Labels/InviteLabel/index.d.ts +9 -4
  754. package/dist/types/system/Labels/SkeletonLabel/index.d.ts +1 -0
  755. package/dist/types/system/Modals/Modal/index.d.ts +1 -0
  756. package/dist/types/system/Modals/ModalSidebar/CreatorModalSidebarPortal.d.ts +3 -1
  757. package/dist/types/system/Modals/ModalSidebar/ModalSidebarPortal.d.ts +7 -3
  758. package/dist/types/system/Modals/ModalSidebar/index.d.ts +12 -1
  759. package/dist/types/system/Overlay/index.d.ts +1 -0
  760. package/dist/types/system/PageLoader/index.d.ts +1 -0
  761. package/dist/types/system/Palete/index.d.ts +1 -0
  762. package/dist/types/system/ShareIconResize.d.ts +1 -1
  763. package/dist/types/system/Tabs/TabNavLink/index.d.ts +18 -6
  764. package/dist/types/system/Tabs/TabsNav/index.d.ts +16 -4
  765. package/dist/types/system/Tabs/TabsNav/type.d.ts +3 -3
  766. package/dist/types/system/Tabs/TabsPanel/index.d.ts +3 -2
  767. package/dist/types/system/theme.d.ts +5 -1
  768. package/dist/types/utils/3d.d.ts +7 -3
  769. package/dist/types/utils/adaptive/check4k.d.ts +7 -3
  770. package/dist/types/utils/adaptive/scale.d.ts +14 -8
  771. package/dist/types/utils/copyBtn/index.d.ts +8 -3
  772. package/dist/types/utils/env/isProd/index.d.ts +1 -3
  773. package/dist/types/utils/env/type.d.ts +3 -3
  774. package/dist/types/utils/extractItemIds/index.d.ts +4 -1
  775. package/dist/types/utils/getDimensionsImage.d.ts +2 -2
  776. package/dist/types/utils/getPageSizeAssets.d.ts +6 -3
  777. package/dist/types/utils/imageProportionsSize/index.d.ts +7 -3
  778. package/dist/types/utils/index.d.ts +5 -1
  779. package/dist/types/utils/screen/index.d.ts +9 -9
  780. package/dist/types/utils/ssrFunctions/index.d.ts +21 -13
  781. package/dist/types/utils/ui/index.d.ts +7 -4
  782. package/dist/utils/3d.js +17 -13
  783. package/dist/utils/adaptive/check4k.js +14 -9
  784. package/dist/utils/adaptive/scale.js +19 -11
  785. package/dist/utils/auth/index.js +7 -1
  786. package/dist/utils/copyBtn/index.jsx +223 -63
  787. package/dist/utils/env/index.js +28 -13
  788. package/dist/utils/env/isProd/index.js +3 -2
  789. package/dist/utils/env/type.js +3 -3
  790. package/dist/utils/extractItemIds/index.jsx +6 -5
  791. package/dist/utils/getDimensionsImage.js +169 -67
  792. package/dist/utils/getPageSizeAssets.js +19 -10
  793. package/dist/utils/imageProportionsSize/index.jsx +27 -17
  794. package/dist/utils/index.js +5 -1
  795. package/dist/utils/screen/index.js +95 -67
  796. package/dist/utils/ssrFunctions/index.js +41 -27
  797. package/dist/utils/ui/index.jsx +4 -2
  798. package/package.json +1 -1
  799. package/src/hooks/index.ts +1 -1
  800. package/src/hooks/likes/useGetLikesAsset.ts +24 -20
  801. package/src/index.ts +0 -1
  802. package/src/modules/index.ts +3 -0
  803. package/src/modules/sessionScroll/index.ts +2 -0
  804. package/src/modules/user/auth/index.ts +1 -0
  805. package/src/modules/user/index.ts +3 -0
  806. package/src/modules/user/profileData/index.ts +1 -0
  807. package/src/modules/virtuoso/index.ts +0 -2
  808. package/src/system/Tabs/index.ts +1 -3
  809. package/src/system/index.ts +0 -2
@@ -1,35 +1,106 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
1
  import React, { useState } from 'react';
2
+
6
3
  import styled from 'styled-components';
7
- import { AccentColor, BorderColorLight, TextGrayColor, WhiteColor, } from '@/styles/colors';
4
+
5
+ import {
6
+ AccentColor,
7
+ BorderColorLight,
8
+ TextGrayColor,
9
+ WhiteColor,
10
+ } from '@/styles/colors';
11
+
8
12
  import BasicErrorLabel from '@/system/Forms/ErrorLabel';
9
13
  import { StyledInput } from '@/system/Forms/Input';
10
- var BasicCheckbox = styled.label(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 6px;\n padding-left: 25px;\n padding-bottom: 2px;\n margin: 14px 0;\n font-size: 15px;\n font-weight: 400;\n color: ", ";\n width: 100%;\n position: relative;\n cursor: pointer;\n\n .input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n\n &:checked ~ .checkmark {\n background-color: ", ";\n background-image: url('/checkboxArrow.svg');\n background-position: center;\n background-repeat: no-repeat;\n border-color: transparent;\n }\n }\n\n .checkmark {\n position: absolute;\n left: 0;\n height: 18px;\n width: 18px;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: 6px;\n }\n"], ["\n display: flex;\n align-items: center;\n gap: 6px;\n padding-left: 25px;\n padding-bottom: 2px;\n margin: 14px 0;\n font-size: 15px;\n font-weight: 400;\n color: ", ";\n width: 100%;\n position: relative;\n cursor: pointer;\n\n .input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n\n &:checked ~ .checkmark {\n background-color: ", ";\n background-image: url('/checkboxArrow.svg');\n background-position: center;\n background-repeat: no-repeat;\n border-color: transparent;\n }\n }\n\n .checkmark {\n position: absolute;\n left: 0;\n height: 18px;\n width: 18px;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: 6px;\n }\n"])), TextGrayColor, AccentColor, WhiteColor, BorderColorLight);
14
+
15
+ var __makeTemplateObject =
16
+ (this && this.__makeTemplateObject) ||
17
+ function (cooked, raw) {
18
+ if (Object.defineProperty) {
19
+ Object.defineProperty(cooked, 'raw', { value: raw });
20
+ } else {
21
+ cooked.raw = raw;
22
+ }
23
+ return cooked;
24
+ };
25
+
26
+ var BasicCheckbox = styled.label(
27
+ templateObject_1 ||
28
+ (templateObject_1 = __makeTemplateObject(
29
+ [
30
+ '\n display: flex;\n align-items: center;\n gap: 6px;\n padding-left: 25px;\n padding-bottom: 2px;\n margin: 14px 0;\n font-size: 15px;\n font-weight: 400;\n color: ',
31
+ ';\n width: 100%;\n position: relative;\n cursor: pointer;\n\n .input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n\n &:checked ~ .checkmark {\n background-color: ',
32
+ ";\n background-image: url('/checkboxArrow.svg');\n background-position: center;\n background-repeat: no-repeat;\n border-color: transparent;\n }\n }\n\n .checkmark {\n position: absolute;\n left: 0;\n height: 18px;\n width: 18px;\n background-color: ",
33
+ ';\n border: 2px solid ',
34
+ ';\n border-radius: 6px;\n }\n',
35
+ ],
36
+ [
37
+ '\n display: flex;\n align-items: center;\n gap: 6px;\n padding-left: 25px;\n padding-bottom: 2px;\n margin: 14px 0;\n font-size: 15px;\n font-weight: 400;\n color: ',
38
+ ';\n width: 100%;\n position: relative;\n cursor: pointer;\n\n .input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n\n &:checked ~ .checkmark {\n background-color: ',
39
+ ";\n background-image: url('/checkboxArrow.svg');\n background-position: center;\n background-repeat: no-repeat;\n border-color: transparent;\n }\n }\n\n .checkmark {\n position: absolute;\n left: 0;\n height: 18px;\n width: 18px;\n background-color: ",
40
+ ';\n border: 2px solid ',
41
+ ';\n border-radius: 6px;\n }\n',
42
+ ]
43
+ )),
44
+ TextGrayColor,
45
+ AccentColor,
46
+ WhiteColor,
47
+ BorderColorLight
48
+ );
11
49
  var CheckboxInput = function (_a) {
12
- var data = _a.data, label = _a.label, register = _a.register, error = _a.error, className = _a.className, value = _a.value, withInput = _a.withInput, innerTextInputRef = _a.innerTextInputRef;
13
- var _b = useState(true), textInputDisabled = _b[0], setTextInputDisables = _b[1];
14
- var renderError = function () {
15
- if (error === null || error === void 0 ? void 0 : error.isNeedShowError) {
16
- return <BasicErrorLabel>{error === null || error === void 0 ? void 0 : error.message}</BasicErrorLabel>;
17
- }
18
- };
19
- return (<>
50
+ var data = _a.data,
51
+ label = _a.label,
52
+ register = _a.register,
53
+ error = _a.error,
54
+ className = _a.className,
55
+ value = _a.value,
56
+ withInput = _a.withInput,
57
+ innerTextInputRef = _a.innerTextInputRef;
58
+ var _b = useState(true),
59
+ textInputDisabled = _b[0],
60
+ setTextInputDisables = _b[1];
61
+ var renderError = function () {
62
+ if (error === null || error === void 0 ? void 0 : error.isNeedShowError) {
63
+ return (
64
+ <BasicErrorLabel>
65
+ {error === null || error === void 0 ? void 0 : error.message}
66
+ </BasicErrorLabel>
67
+ );
68
+ }
69
+ };
70
+ return (
71
+ <>
20
72
  <>
21
- <BasicCheckbox className={className} status={error === null || error === void 0 ? void 0 : error.isNeedShowError}>
22
- <input {...register} onChange={function (e) {
23
- setTextInputDisables(!e.target.checked);
24
- register.onChange(e);
25
- }} className="input" type="checkbox" name={data.name} value={value}/>
26
- <p className="checkmark"/>
73
+ <BasicCheckbox
74
+ className={className}
75
+ status={
76
+ error === null || error === void 0 ? void 0 : error.isNeedShowError
77
+ }
78
+ >
79
+ <input
80
+ {...register}
81
+ onChange={function (e) {
82
+ setTextInputDisables(!e.target.checked);
83
+ register.onChange(e);
84
+ }}
85
+ className="input"
86
+ type="checkbox"
87
+ name={data.name}
88
+ value={value}
89
+ />
90
+ <p className="checkmark" />
27
91
  {label}
28
- {withInput && (<StyledInput status={false} {...innerTextInputRef} disabled={textInputDisabled}/>)}
92
+ {withInput && (
93
+ <StyledInput
94
+ status={false}
95
+ {...innerTextInputRef}
96
+ disabled={textInputDisabled}
97
+ />
98
+ )}
29
99
  </BasicCheckbox>
30
100
  </>
31
101
  {renderError()}
32
- </>);
102
+ </>
103
+ );
33
104
  };
34
105
  export default CheckboxInput;
35
106
  var templateObject_1;
@@ -1,39 +1,180 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
1
  import React from 'react';
2
+
6
3
  import 'react-calendar/dist/Calendar.css';
7
4
  import ReactDatePicker from 'react-date-picker';
8
5
  import 'react-date-picker/dist/DatePicker.css';
9
6
  import { Controller } from 'react-hook-form';
10
7
  import styled from 'styled-components';
11
- import { AccentColor, InactiveButtonColor, ProgressColorMedium, TextDarkGrayColor, } from '@ludo.ninja/ui/build/styles/colors';
8
+
9
+ import {
10
+ AccentColor,
11
+ InactiveButtonColor,
12
+ ProgressColorMedium,
13
+ TextDarkGrayColor,
14
+ } from '@ludo.ninja/ui/build/styles/colors';
12
15
  import BoxShadow from '@ludo.ninja/ui/build/styles/mixins/boxShadow';
13
16
  import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
17
+
14
18
  import { mediaQuery } from '@/styles/ScreenWidth';
15
- import { BlackColor, BorderColorLight, ProgressColorMinimum, TextGrayColor, WhiteColor, } from '@/styles/colors';
19
+ import {
20
+ BlackColor,
21
+ BorderColorLight,
22
+ ProgressColorMinimum,
23
+ TextGrayColor,
24
+ WhiteColor,
25
+ } from '@/styles/colors';
16
26
  import { MainText } from '@/styles/typography';
27
+
17
28
  import { dmsansFontVarCss } from '@/fonts/vars';
29
+
18
30
  import CalendarIcon from '@/public/calendar.svg';
19
31
  import CloseIcon from '@/public/close20.svg';
32
+
20
33
  import BasicErrorLabel from '../ErrorLabel';
34
+
35
+ var __makeTemplateObject =
36
+ (this && this.__makeTemplateObject) ||
37
+ function (cooked, raw) {
38
+ if (Object.defineProperty) {
39
+ Object.defineProperty(cooked, 'raw', { value: raw });
40
+ } else {
41
+ cooked.raw = raw;
42
+ }
43
+ return cooked;
44
+ };
45
+
21
46
  // Styles
22
- var StyledReactDatePicker = styled(ReactDatePicker)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n ", ";\n width: 100%;\n height: 46px;\n border-radius: 6px;\n border: 1px solid\n ", ";\n background: ", ";\n color: ", ";\n outline: none;\n padding: 8px 12px;\n\n .react-date-picker__wrapper {\n border: none;\n\n .react-date-picker__inputGroup {\n padding: 0;\n }\n\n .react-date-picker__inputGroup__input:focus-visible {\n outline: none;\n }\n\n .react-date-picker__button {\n padding: 4px;\n border-radius: 50%;\n\n &:hover {\n background: ", ";\n }\n }\n\n .react-date-picker__clear-button {\n svg path {\n stroke: ", ";\n }\n }\n }\n\n .react-calendar {\n padding: 4px;\n width: 280px;\n border-radius: 6px;\n border: 1px solid ", ";\n box-shadow: 0 10px 32px -16px rgba(0, 0, 0, 0.6);\n font-family: ", ";\n\n button {\n border-radius: 30px;\n border: 1px solid white;\n }\n\n .react-calendar__tile--hasActive {\n background: #76baff;\n }\n\n .react-calendar__tile--now {\n ", ";\n background: ", ";\n\n &:hover {\n background: ", ";\n }\n }\n\n .react-calendar__tile--active,\n .react-calendar__tile--hasActive {\n ", ";\n background: ", ";\n color: ", ";\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n }\n\n .react-calendar__year-view .react-calendar__tile,\n .react-calendar__decade-view .react-calendar__tile,\n .react-calendar__century-view .react-calendar__tile {\n padding: 8px 0;\n }\n }\n\n ::placeholder {\n color: ", ";\n opacity: 1;\n }\n\n :-ms-input-placeholder {\n color: ", ";\n }\n\n ::-ms-input-placeholder {\n color: ", ";\n }\n\n ", " {\n height: ", ";\n border-radius: ", ";\n border: ", " solid\n ", ";\n padding: ", ";\n }\n"], ["\n font-family: ", ";\n ", ";\n width: 100%;\n height: 46px;\n border-radius: 6px;\n border: 1px solid\n ", ";\n background: ", ";\n color: ", ";\n outline: none;\n padding: 8px 12px;\n\n .react-date-picker__wrapper {\n border: none;\n\n .react-date-picker__inputGroup {\n padding: 0;\n }\n\n .react-date-picker__inputGroup__input:focus-visible {\n outline: none;\n }\n\n .react-date-picker__button {\n padding: 4px;\n border-radius: 50%;\n\n &:hover {\n background: ", ";\n }\n }\n\n .react-date-picker__clear-button {\n svg path {\n stroke: ", ";\n }\n }\n }\n\n .react-calendar {\n padding: 4px;\n width: 280px;\n border-radius: 6px;\n border: 1px solid ", ";\n box-shadow: 0 10px 32px -16px rgba(0, 0, 0, 0.6);\n font-family: ", ";\n\n button {\n border-radius: 30px;\n border: 1px solid white;\n }\n\n .react-calendar__tile--hasActive {\n background: #76baff;\n }\n\n .react-calendar__tile--now {\n ", ";\n background: ", ";\n\n &:hover {\n background: ", ";\n }\n }\n\n .react-calendar__tile--active,\n .react-calendar__tile--hasActive {\n ", ";\n background: ", ";\n color: ", ";\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n }\n\n .react-calendar__year-view .react-calendar__tile,\n .react-calendar__decade-view .react-calendar__tile,\n .react-calendar__century-view .react-calendar__tile {\n padding: 8px 0;\n }\n }\n\n ::placeholder {\n color: ", ";\n opacity: 1;\n }\n\n :-ms-input-placeholder {\n color: ", ";\n }\n\n ::-ms-input-placeholder {\n color: ", ";\n }\n\n ", " {\n height: ", ";\n border-radius: ", ";\n border: ", " solid\n ", ";\n padding: ", ";\n }\n"])), dmsansFontVarCss.css, MainText, function (props) { return (props.status ? ProgressColorMinimum : BorderColorLight); }, WhiteColor, BlackColor, InactiveButtonColor, TextDarkGrayColor, BorderColorLight, dmsansFontVarCss.css, BoxShadow, ProgressColorMedium, ProgressColorMedium, BoxShadow, AccentColor, WhiteColor, AccentColor, WhiteColor, TextGrayColor, TextGrayColor, TextGrayColor, mediaQuery.minWidthFourK, adaptiveValueCalc(46), adaptiveValueCalc(6), adaptiveValueCalc(1), function (props) { return (props.status ? ProgressColorMinimum : BorderColorLight); }, adaptiveValueCalc(12));
47
+ var StyledReactDatePicker = styled(ReactDatePicker)(
48
+ templateObject_1 ||
49
+ (templateObject_1 = __makeTemplateObject(
50
+ [
51
+ '\n font-family: ',
52
+ ';\n ',
53
+ ';\n width: 100%;\n height: 46px;\n border-radius: 6px;\n border: 1px solid\n ',
54
+ ';\n background: ',
55
+ ';\n color: ',
56
+ ';\n outline: none;\n padding: 8px 12px;\n\n .react-date-picker__wrapper {\n border: none;\n\n .react-date-picker__inputGroup {\n padding: 0;\n }\n\n .react-date-picker__inputGroup__input:focus-visible {\n outline: none;\n }\n\n .react-date-picker__button {\n padding: 4px;\n border-radius: 50%;\n\n &:hover {\n background: ',
57
+ ';\n }\n }\n\n .react-date-picker__clear-button {\n svg path {\n stroke: ',
58
+ ';\n }\n }\n }\n\n .react-calendar {\n padding: 4px;\n width: 280px;\n border-radius: 6px;\n border: 1px solid ',
59
+ ';\n box-shadow: 0 10px 32px -16px rgba(0, 0, 0, 0.6);\n font-family: ',
60
+ ';\n\n button {\n border-radius: 30px;\n border: 1px solid white;\n }\n\n .react-calendar__tile--hasActive {\n background: #76baff;\n }\n\n .react-calendar__tile--now {\n ',
61
+ ';\n background: ',
62
+ ';\n\n &:hover {\n background: ',
63
+ ';\n }\n }\n\n .react-calendar__tile--active,\n .react-calendar__tile--hasActive {\n ',
64
+ ';\n background: ',
65
+ ';\n color: ',
66
+ ';\n\n &:hover {\n background: ',
67
+ ';\n color: ',
68
+ ';\n }\n }\n\n .react-calendar__year-view .react-calendar__tile,\n .react-calendar__decade-view .react-calendar__tile,\n .react-calendar__century-view .react-calendar__tile {\n padding: 8px 0;\n }\n }\n\n ::placeholder {\n color: ',
69
+ ';\n opacity: 1;\n }\n\n :-ms-input-placeholder {\n color: ',
70
+ ';\n }\n\n ::-ms-input-placeholder {\n color: ',
71
+ ';\n }\n\n ',
72
+ ' {\n height: ',
73
+ ';\n border-radius: ',
74
+ ';\n border: ',
75
+ ' solid\n ',
76
+ ';\n padding: ',
77
+ ';\n }\n',
78
+ ],
79
+ [
80
+ '\n font-family: ',
81
+ ';\n ',
82
+ ';\n width: 100%;\n height: 46px;\n border-radius: 6px;\n border: 1px solid\n ',
83
+ ';\n background: ',
84
+ ';\n color: ',
85
+ ';\n outline: none;\n padding: 8px 12px;\n\n .react-date-picker__wrapper {\n border: none;\n\n .react-date-picker__inputGroup {\n padding: 0;\n }\n\n .react-date-picker__inputGroup__input:focus-visible {\n outline: none;\n }\n\n .react-date-picker__button {\n padding: 4px;\n border-radius: 50%;\n\n &:hover {\n background: ',
86
+ ';\n }\n }\n\n .react-date-picker__clear-button {\n svg path {\n stroke: ',
87
+ ';\n }\n }\n }\n\n .react-calendar {\n padding: 4px;\n width: 280px;\n border-radius: 6px;\n border: 1px solid ',
88
+ ';\n box-shadow: 0 10px 32px -16px rgba(0, 0, 0, 0.6);\n font-family: ',
89
+ ';\n\n button {\n border-radius: 30px;\n border: 1px solid white;\n }\n\n .react-calendar__tile--hasActive {\n background: #76baff;\n }\n\n .react-calendar__tile--now {\n ',
90
+ ';\n background: ',
91
+ ';\n\n &:hover {\n background: ',
92
+ ';\n }\n }\n\n .react-calendar__tile--active,\n .react-calendar__tile--hasActive {\n ',
93
+ ';\n background: ',
94
+ ';\n color: ',
95
+ ';\n\n &:hover {\n background: ',
96
+ ';\n color: ',
97
+ ';\n }\n }\n\n .react-calendar__year-view .react-calendar__tile,\n .react-calendar__decade-view .react-calendar__tile,\n .react-calendar__century-view .react-calendar__tile {\n padding: 8px 0;\n }\n }\n\n ::placeholder {\n color: ',
98
+ ';\n opacity: 1;\n }\n\n :-ms-input-placeholder {\n color: ',
99
+ ';\n }\n\n ::-ms-input-placeholder {\n color: ',
100
+ ';\n }\n\n ',
101
+ ' {\n height: ',
102
+ ';\n border-radius: ',
103
+ ';\n border: ',
104
+ ' solid\n ',
105
+ ';\n padding: ',
106
+ ';\n }\n',
107
+ ]
108
+ )),
109
+ dmsansFontVarCss.css,
110
+ MainText,
111
+ function (props) {
112
+ return props.status ? ProgressColorMinimum : BorderColorLight;
113
+ },
114
+ WhiteColor,
115
+ BlackColor,
116
+ InactiveButtonColor,
117
+ TextDarkGrayColor,
118
+ BorderColorLight,
119
+ dmsansFontVarCss.css,
120
+ BoxShadow,
121
+ ProgressColorMedium,
122
+ ProgressColorMedium,
123
+ BoxShadow,
124
+ AccentColor,
125
+ WhiteColor,
126
+ AccentColor,
127
+ WhiteColor,
128
+ TextGrayColor,
129
+ TextGrayColor,
130
+ TextGrayColor,
131
+ mediaQuery.minWidthFourK,
132
+ adaptiveValueCalc(46),
133
+ adaptiveValueCalc(6),
134
+ adaptiveValueCalc(1),
135
+ function (props) {
136
+ return props.status ? ProgressColorMinimum : BorderColorLight;
137
+ },
138
+ adaptiveValueCalc(12)
139
+ );
23
140
  var DatePicker = function (_a) {
24
- var name = _a.name, control = _a.control, error = _a.error;
25
- var renderError = function () {
26
- if (error.isNeedShowError) {
27
- return <BasicErrorLabel>{error.message}</BasicErrorLabel>;
28
- }
29
- };
30
- return (<Controller name={name} control={control} render={function (_a) {
31
- var field = _a.field;
32
- return (<>
33
- <StyledReactDatePicker onChange={field.onChange} onBlur={field.onBlur} value={field.value} disableCalendar={field.disabled} name={field.name} status={error.isNeedShowError} dayPlaceholder={'dd'} monthPlaceholder={'mm'} yearPlaceholder={'yy'} format={'dd.MM.yyyy'} locale={'en'} clearIcon={field.value ? <CloseIcon /> : null} calendarIcon={<CalendarIcon />}/>
34
- {renderError()}
35
- </>);
36
- }}/>);
141
+ var name = _a.name,
142
+ control = _a.control,
143
+ error = _a.error;
144
+ var renderError = function () {
145
+ if (error.isNeedShowError) {
146
+ return <BasicErrorLabel>{error.message}</BasicErrorLabel>;
147
+ }
148
+ };
149
+ return (
150
+ <Controller
151
+ name={name}
152
+ control={control}
153
+ render={function (_a) {
154
+ var field = _a.field;
155
+ return (
156
+ <>
157
+ <StyledReactDatePicker
158
+ onChange={field.onChange}
159
+ onBlur={field.onBlur}
160
+ value={field.value}
161
+ disableCalendar={field.disabled}
162
+ name={field.name}
163
+ status={error.isNeedShowError}
164
+ dayPlaceholder={'dd'}
165
+ monthPlaceholder={'mm'}
166
+ yearPlaceholder={'yy'}
167
+ format={'dd.MM.yyyy'}
168
+ locale={'en'}
169
+ clearIcon={field.value ? <CloseIcon /> : null}
170
+ calendarIcon={<CalendarIcon />}
171
+ />
172
+ {renderError()}
173
+ </>
174
+ );
175
+ }}
176
+ />
177
+ );
37
178
  };
38
179
  export default DatePicker;
39
180
  var templateObject_1;
@@ -1,22 +1,25 @@
1
1
  import React from 'react';
2
+
2
3
  import '@testing-library/jest-dom';
3
4
  import { render, screen } from '@testing-library/react';
5
+
4
6
  import ErrorLabel from '@/system/Forms/ErrorLabel';
7
+
5
8
  describe('ErrorLabel Component', function () {
6
- test('renders correctly with given children and id', function () {
7
- React.act(function () {
8
- render(<ErrorLabel id="test-id">Test Label</ErrorLabel>);
9
- });
10
- var labelElement = screen.getByText('Test Label');
11
- expect(labelElement).toBeInTheDocument();
12
- expect(labelElement).toHaveAttribute('for', 'test-id');
9
+ test('renders correctly with given children and id', function () {
10
+ React.act(function () {
11
+ render(<ErrorLabel id="test-id">Test Label</ErrorLabel>);
13
12
  });
14
- test('renders correctly without id', function () {
15
- React.act(function () {
16
- render(<ErrorLabel>Test Label Without ID</ErrorLabel>);
17
- });
18
- var labelElement = screen.getByText('Test Label Without ID');
19
- expect(labelElement).toBeInTheDocument();
20
- expect(labelElement).not.toHaveAttribute('for');
13
+ var labelElement = screen.getByText('Test Label');
14
+ expect(labelElement).toBeInTheDocument();
15
+ expect(labelElement).toHaveAttribute('for', 'test-id');
16
+ });
17
+ test('renders correctly without id', function () {
18
+ React.act(function () {
19
+ render(<ErrorLabel>Test Label Without ID</ErrorLabel>);
21
20
  });
21
+ var labelElement = screen.getByText('Test Label Without ID');
22
+ expect(labelElement).toBeInTheDocument();
23
+ expect(labelElement).not.toHaveAttribute('for');
24
+ });
22
25
  });
@@ -1,15 +1,46 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
1
  import React from 'react';
2
+
6
3
  import styled from 'styled-components';
4
+
7
5
  import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
6
+
8
7
  import { mediaQuery } from '@/styles/ScreenWidth';
9
- var StyledLabel = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n user-select: none;\n padding-top: 8px;\n color: #f4205f;\n font-size: 13px;\n font-weight: 400;\n\n ", " {\n padding-top: ", ";\n font-size: ", ";\n }\n"], ["\n user-select: none;\n padding-top: 8px;\n color: #f4205f;\n font-size: 13px;\n font-weight: 400;\n\n ", " {\n padding-top: ", ";\n font-size: ", ";\n }\n"])), mediaQuery.minWidthFourK, adaptiveValueCalc(8), adaptiveValueCalc(13));
8
+
9
+ var __makeTemplateObject =
10
+ (this && this.__makeTemplateObject) ||
11
+ function (cooked, raw) {
12
+ if (Object.defineProperty) {
13
+ Object.defineProperty(cooked, 'raw', { value: raw });
14
+ } else {
15
+ cooked.raw = raw;
16
+ }
17
+ return cooked;
18
+ };
19
+
20
+ var StyledLabel = styled.div(
21
+ templateObject_1 ||
22
+ (templateObject_1 = __makeTemplateObject(
23
+ [
24
+ '\n user-select: none;\n padding-top: 8px;\n color: #f4205f;\n font-size: 13px;\n font-weight: 400;\n\n ',
25
+ ' {\n padding-top: ',
26
+ ';\n font-size: ',
27
+ ';\n }\n',
28
+ ],
29
+ [
30
+ '\n user-select: none;\n padding-top: 8px;\n color: #f4205f;\n font-size: 13px;\n font-weight: 400;\n\n ',
31
+ ' {\n padding-top: ',
32
+ ';\n font-size: ',
33
+ ';\n }\n',
34
+ ]
35
+ )),
36
+ mediaQuery.minWidthFourK,
37
+ adaptiveValueCalc(8),
38
+ adaptiveValueCalc(13)
39
+ );
10
40
  var BasicErrorLabel = function (_a) {
11
- var children = _a.children, id = _a.id;
12
- return <StyledLabel htmlFor={id}>{children}</StyledLabel>;
41
+ var children = _a.children,
42
+ id = _a.id;
43
+ return <StyledLabel htmlFor={id}>{children}</StyledLabel>;
13
44
  };
14
45
  export default BasicErrorLabel;
15
46
  var templateObject_1;
@@ -1,52 +1,64 @@
1
1
  import React from 'react';
2
+
2
3
  import '@testing-library/jest-dom';
3
4
  import { render, screen } from '@testing-library/react';
5
+
4
6
  import { ProgressColorMinimum } from '@/styles/colors';
7
+
5
8
  import Input from '@/system/Forms/Input';
6
- jest.mock('../ErrorLabel', function () { return ({
9
+
10
+ jest.mock('../ErrorLabel', function () {
11
+ return {
7
12
  __esModule: true,
8
13
  default: function (_a) {
9
- var children = _a.children;
10
- return (<div data-testid="error-label">{children}</div>);
14
+ var children = _a.children;
15
+ return <div data-testid="error-label">{children}</div>;
11
16
  },
12
- }); });
17
+ };
18
+ });
13
19
  var mockRegister = {
14
- name: 'test-input',
15
- onBlur: jest.fn(),
16
- onChange: jest.fn(),
17
- ref: jest.fn(),
20
+ name: 'test-input',
21
+ onBlur: jest.fn(),
22
+ onChange: jest.fn(),
23
+ ref: jest.fn(),
18
24
  };
19
25
  var mockData = {
20
- name: 'test-input',
21
- placeHolder: 'Enter text...',
22
- labelText: 'Test Input',
26
+ name: 'test-input',
27
+ placeHolder: 'Enter text...',
28
+ labelText: 'Test Input',
23
29
  };
24
30
  var renderComponent = function (error) {
25
- return render(<Input data={mockData} register={mockRegister} error={error}/>);
31
+ return render(
32
+ <Input data={mockData} register={mockRegister} error={error} />
33
+ );
26
34
  };
27
35
  describe('Input Component', function () {
28
- test('renders input element with correct attributes', function () {
29
- renderComponent({ isNeedShowError: false, message: undefined });
30
- var inputElement = screen.getByPlaceholderText('Enter text...');
31
- expect(inputElement).toBeInTheDocument();
32
- expect(inputElement.name).toBe('test-input');
33
- expect(inputElement.id).toBe('test-input');
34
- });
35
- test('applies error styles when there is an error', function () {
36
- renderComponent({ isNeedShowError: true, message: 'Error message' });
37
- var inputElement = screen.getByPlaceholderText('Enter text...');
38
- expect(inputElement).toHaveStyle("border-color: ".concat(ProgressColorMinimum));
39
- expect(screen.getByTestId('error-label')).toHaveTextContent('Error message');
40
- });
41
- test('does not render error label when there is no error', function () {
42
- renderComponent({ isNeedShowError: false, message: undefined });
43
- var errorLabel = screen.queryByTestId('error-label');
44
- expect(errorLabel).toBeNull();
45
- });
46
- test('renders error label when there is an error', function () {
47
- renderComponent({ isNeedShowError: true, message: 'Error message' });
48
- var errorLabel = screen.getByTestId('error-label');
49
- expect(errorLabel).toBeInTheDocument();
50
- expect(errorLabel).toHaveTextContent('Error message');
51
- });
36
+ test('renders input element with correct attributes', function () {
37
+ renderComponent({ isNeedShowError: false, message: undefined });
38
+ var inputElement = screen.getByPlaceholderText('Enter text...');
39
+ expect(inputElement).toBeInTheDocument();
40
+ expect(inputElement.name).toBe('test-input');
41
+ expect(inputElement.id).toBe('test-input');
42
+ });
43
+ test('applies error styles when there is an error', function () {
44
+ renderComponent({ isNeedShowError: true, message: 'Error message' });
45
+ var inputElement = screen.getByPlaceholderText('Enter text...');
46
+ expect(inputElement).toHaveStyle(
47
+ 'border-color: '.concat(ProgressColorMinimum)
48
+ );
49
+ expect(screen.getByTestId('error-label')).toHaveTextContent(
50
+ 'Error message'
51
+ );
52
+ });
53
+ test('does not render error label when there is no error', function () {
54
+ renderComponent({ isNeedShowError: false, message: undefined });
55
+ var errorLabel = screen.queryByTestId('error-label');
56
+ expect(errorLabel).toBeNull();
57
+ });
58
+ test('renders error label when there is an error', function () {
59
+ renderComponent({ isNeedShowError: true, message: 'Error message' });
60
+ var errorLabel = screen.getByTestId('error-label');
61
+ expect(errorLabel).toBeInTheDocument();
62
+ expect(errorLabel).toHaveTextContent('Error message');
63
+ });
52
64
  });