@ludo.ninja/components 1.9.4 → 1.9.5
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.
- package/dist/components/CreationCard/{CardHead.jsx → CardHead.js} +15 -22
- package/dist/components/CreationCard/{index.jsx → index.js} +24 -19
- package/dist/components/addWalletsRedirectPage/{index.jsx → index.js} +11 -18
- package/dist/components/banner/{index.jsx → index.js} +17 -23
- package/dist/components/base/Meta/index.js +60 -0
- package/dist/components/base/NoSSR/{index.jsx → index.js} +1 -1
- package/dist/components/collectionPage/collectionLike/{index.jsx → index.js} +5 -9
- package/dist/components/deleteDialog/{index.jsx → index.js} +14 -19
- package/dist/components/favoriteList/add/addAssetToFavoriteList/{index.jsx → index.js} +2 -4
- package/dist/components/favoriteList/add/addCollectionToFavoriteList/{index.jsx → index.js} +1 -3
- package/dist/components/favoriteList/add/addCreationToFavoriteList/{index.jsx → index.js} +2 -4
- package/dist/components/filters/applyResetBtns/{index.jsx → index.js} +5 -8
- package/dist/components/filters/galleriesFiltersForm/{index.jsx → index.js} +5 -14
- package/dist/components/filters/{index.jsx → index.js} +27 -35
- package/dist/components/filters/mobileFilters/{index.jsx → index.js} +1 -1
- package/dist/components/filters/setsFiltersForm/{index.jsx → index.js} +4 -11
- package/dist/components/forms/form/{index.jsx → index.js} +35 -45
- package/dist/components/forms/formsNavigation/{index.jsx → index.js} +6 -14
- package/dist/components/forms/formsTemplate/{index.jsx → index.js} +3 -4
- package/dist/components/gallery/add/addAssetToGallery/{index.jsx → index.js} +2 -4
- package/dist/components/gallery/add/addCreationToGallery/{index.jsx → index.js} +7 -8
- package/dist/components/gradientLabel/{index.jsx → index.js} +1 -1
- package/dist/components/headers/components/headerExperienceLabel/{index.jsx → index.js} +2 -3
- package/dist/components/headers/components/headerUserPic/{index.jsx → index.js} +2 -3
- package/dist/components/headers/header/{index.jsx → index.js} +6 -6
- package/dist/components/headers/headerSearch/{index.jsx → index.js} +7 -7
- package/dist/components/headers/headerSimple/{index.jsx → index.js} +4 -6
- package/dist/components/inviteCodesForms/getEarlyAccessForm/{index.jsx → index.js} +17 -27
- package/dist/components/inviteCodesForms/joinWaitListForm/{index.jsx → index.js} +11 -22
- package/dist/components/inviteCodesPage/components/inviteCodes/{index.jsx → index.js} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/{index.jsx → index.js} +3 -4
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/{index.jsx → index.js} +6 -7
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/{index.jsx → index.js} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/{index.jsx → index.js} +1 -1
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/{index.jsx → index.js} +4 -9
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/{index.jsx → index.js} +1 -3
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/{index.jsx → index.js} +17 -27
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.js +17 -0
- package/dist/components/inviteCodesPage/wrappers/unusedCodes/{index.jsx → index.js} +4 -6
- package/dist/components/inviteCodesPage/wrappers/usedCodes/{index.jsx → index.js} +6 -9
- package/dist/components/linkTabs/{index.jsx → index.js} +1 -3
- package/dist/components/linkTabs/linkTab/{index.jsx → index.js} +4 -6
- package/dist/components/myWallets/{index.jsx → index.js} +4 -5
- package/dist/components/myWallets/myWalletItem/{index.jsx → index.js} +22 -29
- package/dist/components/navigation/{index.jsx → index.js} +11 -29
- package/dist/components/profile/MultiversXAudit/{MultiversXAudit.jsx → MultiversXAudit.js} +10 -15
- package/dist/components/profile/{ProfileTabs.jsx → ProfileTabs.js} +20 -22
- package/dist/components/profile/aboutText/{index.jsx → index.js} +16 -25
- package/dist/components/profile/addToGalleryBtns/{index.jsx → index.js} +6 -9
- package/dist/components/profile/followersSocial/followers/{index.jsx → index.js} +3 -4
- package/dist/components/profile/followersSocial/{index.jsx → index.js} +6 -7
- package/dist/components/profile/followersSocial/social/{index.jsx → index.js} +7 -9
- package/dist/components/profile/info/{index.jsx → index.js} +8 -11
- package/dist/components/profile/interests/{index.jsx → index.js} +14 -29
- package/dist/components/profile/pageHead/index.js +51 -0
- package/dist/components/profile/profileSkeleton/{index.jsx → index.js} +9 -15
- package/dist/components/profile/profileUserCards/{index.jsx → index.js} +1 -1
- package/dist/components/profile/profileUserCards/profileUserCard/{index.jsx → index.js} +21 -26
- package/dist/components/profile/rank/{index.jsx → index.js} +7 -15
- package/dist/components/profile/stats/{index.jsx → index.js} +4 -12
- package/dist/components/profile/wallets/{index.jsx → index.js} +20 -28
- package/dist/components/profile/wrapper/{index.jsx → index.js} +4 -12
- package/dist/components/registrationPage/registrationSelectBox/{index.jsx → index.js} +2 -3
- package/dist/components/registrationPage/registrationSelection/{index.jsx → index.js} +15 -29
- package/dist/components/rewards/FAQ/{index.jsx → index.js} +12 -20
- package/dist/components/rewards/clarifications/{index.jsx → index.js} +15 -25
- package/dist/components/rewards/logoBottom/{index.jsx → index.js} +5 -6
- package/dist/components/rewards/prograssBar/{index.jsx → index.js} +3 -5
- package/dist/components/rewards/seasonBanner/{index.jsx → index.js} +2 -3
- package/dist/components/rewards/taskExpTab/{index.jsx → index.js} +19 -31
- package/dist/components/rewards/tasksGrid/{index.jsx → index.js} +3 -6
- package/dist/components/rewards/userExp/{index.jsx → index.js} +23 -29
- package/dist/components/search/{SearchInputContainer.jsx → SearchInputContainer.js} +96 -98
- package/dist/components/search/{index.jsx → index.js} +10 -12
- package/dist/components/search/searchCategories/{index.jsx → index.js} +6 -10
- package/dist/components/search/searchCloseMoreButtons/{index.jsx → index.js} +12 -15
- package/dist/components/search/searchResultCaption/{index.jsx → index.js} +3 -6
- package/dist/components/search/searchSelectsGalleries/{index.jsx → index.js} +14 -30
- package/dist/components/search/searchSelectsSets/{index.jsx → index.js} +14 -27
- package/dist/components/search/searchSimpleInput/{index.jsx → index.js} +9 -11
- package/dist/components/search/searchSuggestions/index.js +117 -0
- package/dist/components/search/searchSuggestions/searchSuggestionsCaption/{index.jsx → index.js} +3 -4
- package/dist/components/search/searchSuggestions/searchSuggestionsFooter/{index.jsx → index.js} +6 -7
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/{index.jsx → index.js} +11 -18
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/{index.jsx → index.js} +7 -14
- package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/{index.jsx → index.js} +5 -3
- package/dist/components/shareDialog/index.js +73 -0
- package/dist/components/showcaseAssets/showcaseSort/{index.jsx → index.js} +4 -6
- package/dist/components/sidebar/{data.jsx → data.js} +8 -8
- package/dist/components/sidebar/{index.jsx → index.js} +16 -23
- package/dist/components/sidebar/{initializer.jsx → initializer.js} +1 -1
- package/dist/components/sidebar/sidebarFilters/{index.jsx → index.js} +6 -9
- package/dist/components/sidebar/sidebarInviteCodeLabel/{index.jsx → index.js} +3 -4
- package/dist/components/socialButtons/{data.jsx → data.js} +6 -6
- package/dist/components/socialButtons/icons/discord.js +7 -0
- package/dist/components/socialButtons/icons/facebook.js +8 -0
- package/dist/components/socialButtons/icons/instagram.js +9 -0
- package/dist/components/socialButtons/icons/medium.js +7 -0
- package/dist/components/socialButtons/icons/telegram.js +7 -0
- package/dist/components/socialButtons/icons/twitter.js +7 -0
- package/dist/components/socialButtons/{index.jsx → index.js} +5 -8
- package/dist/components/tabs/icons/bell.js +9 -0
- package/dist/components/tabs/icons/profile.js +9 -0
- package/dist/components/tabs/icons/secure.js +8 -0
- package/dist/components/tabs/{index.jsx → index.js} +10 -13
- package/dist/components/toTopBtn/{index.jsx → index.js} +5 -7
- package/dist/dto/AssetEntity/views/AssetAudio/{index.jsx → index.js} +1 -1
- package/dist/dto/AssetEntity/views/AssetImage/{index.jsx → index.js} +2 -2
- package/dist/dto/AssetEntity/views/AssetObject/{index.jsx → index.js} +3 -3
- package/dist/dto/AssetEntity/views/AssetOther/{index.jsx → index.js} +3 -3
- package/dist/dto/AssetEntity/views/AssetScreenshot/{index.jsx → index.js} +2 -2
- package/dist/dto/AssetEntity/views/AssetVideo/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationAudio/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationImage/{index.jsx → index.js} +2 -2
- package/dist/dto/common/ItemViews/CreationObject/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationOther/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationVideo/{index.jsx → index.js} +1 -1
- package/dist/dto/common/Media/Audio/{index.jsx → index.js} +3 -3
- package/dist/dto/common/Media/Image/{index.jsx → index.js} +4 -4
- package/dist/dto/common/Media/Object/{index.jsx → index.js} +3 -3
- package/dist/dto/common/Media/Other/{index.jsx → index.js} +3 -3
- package/dist/dto/common/Media/Screenshot/{index.jsx → index.js} +4 -4
- package/dist/dto/common/Media/Video/{index.jsx → index.js} +3 -3
- package/dist/fonts/{FontsInitializeLayout.jsx → FontsInitializeLayout.js} +1 -4
- package/dist/hooks/searchFiltersConnector/{index.jsx → index.js} +33 -35
- package/dist/hooks/useToGalleryAsset/{index.jsx → index.js} +1 -1
- package/dist/layouts/{GlobalLayout.jsx → GlobalLayout.js} +15 -16
- package/dist/layouts/base/LWithRegularHeader/{index.jsx → index.js} +4 -5
- package/dist/layouts/base/LWithSearchHeader/{index.jsx → index.js} +4 -5
- package/dist/layouts/base/LWithSimpleHeader/{index.jsx → index.js} +4 -5
- package/dist/layouts/base/LWithoutHeader/{index.jsx → index.js} +3 -4
- package/dist/layouts/custom/accountLayout/{index.jsx → index.js} +6 -11
- package/dist/layouts/custom/formsLayout/{index.jsx → index.js} +3 -5
- package/dist/layouts/custom/mainLayout/{index.jsx → index.js} +5 -8
- package/dist/layouts/custom/searchLayout/{index.jsx → index.js} +5 -8
- package/dist/layouts/custom/simpleLayout/{index.jsx → index.js} +5 -8
- package/dist/layouts/pageTransitionLayout.js +24 -0
- package/dist/modules/notifications/{CreatorNotifications.jsx → CreatorNotifications.js} +1 -3
- package/dist/modules/user/profileData/{profileDataInitialization.jsx → profileDataInitialization.js} +1 -1
- package/dist/modules/virtuoso/{VirtuosoPageBuilder.jsx → VirtuosoPageBuilder.js} +18 -23
- package/dist/modules/virtuoso/{VirtuosoToTopBtn.jsx → VirtuosoToTopBtn.js} +1 -1
- package/dist/pages/index.js +16 -0
- package/dist/system/ActiveLink/{index.jsx → index.js} +14 -5
- package/dist/system/Alert/{index.jsx → index.js} +1 -1
- package/dist/system/BasicOverlay/{index.jsx → index.js} +1 -1
- package/dist/system/Cards/CardCheckbox/{index.jsx → index.js} +4 -6
- package/dist/system/Cards/CardContent/CardCategory/{index.jsx → index.js} +3 -5
- package/dist/system/Cards/CardContent/CardLikes/{index.jsx → index.js} +7 -11
- package/dist/system/Cards/CardContent/CardShowMore/{index.jsx → index.js} +5 -8
- package/dist/system/Cards/CardContent/{index.jsx → index.js} +16 -30
- package/dist/system/Cards/CardHeadIcons/{index.jsx → index.js} +15 -22
- package/dist/system/Cards/CardMedia/CardAudio/{index.jsx → index.js} +4 -5
- package/dist/system/Cards/CardMedia/CardImage/{index.jsx → index.js} +4 -5
- package/dist/system/Cards/CardMedia/CardVideo/{index.jsx → index.js} +9 -11
- package/dist/system/Cards/CardRank/{index.jsx → index.js} +6 -12
- package/dist/system/Cards/CardsGrid/{index.jsx → index.js} +8 -13
- package/dist/system/Cards/HideLink/index.js +27 -0
- package/dist/system/Cards/MultiMediaCard/{index.jsx → index.js} +11 -17
- package/dist/system/Cards/RegularCard/{index.jsx → index.js} +11 -17
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsError/{index.jsx → index.js} +3 -6
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/{index.jsx → index.js} +3 -4
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/{index.jsx → index.js} +9 -15
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/{index.jsx → index.js} +4 -8
- package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/{index.jsx → index.js} +2 -3
- package/dist/system/CardsHolderWithSkeleton/{index.jsx → index.js} +3 -6
- package/dist/system/DropDown/{DropDown.test.jsx → DropDown.test.js} +7 -11
- package/dist/system/DropDown/{index.jsx → index.js} +10 -13
- package/dist/system/Forms/Checkbox/{Checkbox.test.jsx → Checkbox.test.js} +13 -2
- package/dist/system/Forms/Checkbox/{index.jsx → index.js} +23 -15
- package/dist/system/Forms/DatePicker/{index.jsx → index.js} +6 -7
- package/dist/system/Forms/ErrorLabel/{ErrorLabel.test.jsx → ErrorLabel.test.js} +2 -2
- package/dist/system/Forms/ErrorLabel/{index.jsx → index.js} +1 -1
- package/dist/system/Forms/Input/{Input.test.jsx → Input.test.js} +2 -2
- package/dist/system/Forms/Input/{index.jsx → index.js} +15 -5
- package/dist/system/Forms/RadioInput/{index.jsx → index.js} +16 -6
- package/dist/system/Forms/Selects/DesktopSelect/{index.jsx → index.js} +21 -11
- package/dist/system/Forms/Selects/MobileSelect/{index.jsx → index.js} +1 -3
- package/dist/system/Forms/TextArea/{index.jsx → index.js} +15 -5
- package/dist/system/Img/ExternalImage/{index.jsx → index.js} +12 -1
- package/dist/system/Img/ImageInterceptor/{ImageInterceptor.test.jsx → ImageInterceptor.test.js} +10 -14
- package/dist/system/Img/ImageInterceptor/{index.jsx → index.js} +4 -5
- package/dist/system/Img/Profilepic/{index.jsx → index.js} +8 -9
- package/dist/system/Img/Userpic/{UserPic.test.jsx → UserPic.test.js} +6 -8
- package/dist/system/Img/Userpic/{index.jsx → index.js} +10 -13
- package/dist/system/Labels/ExperienceLabel/{ExperienceLabel.test.jsx → ExperienceLabel.test.js} +16 -6
- package/dist/system/Labels/ExperienceLabel/{index.jsx → index.js} +6 -5
- package/dist/system/Labels/InviteLabel/{InviteLabel.test.jsx → InviteLabel.test.js} +15 -5
- package/dist/system/Labels/InviteLabel/{index.jsx → index.js} +3 -4
- package/dist/system/Modals/Modal/{Modal.test.jsx → Modal.test.js} +2 -2
- package/dist/system/Modals/Modal/{index.jsx → index.js} +3 -4
- package/dist/system/Modals/ModalSidebar/{CreatorModalSidebarPortal.jsx → CreatorModalSidebarPortal.js} +1 -1
- package/dist/system/Modals/ModalSidebar/{ModalSidebar.test.jsx → ModalSidebar.test.js} +2 -2
- package/dist/system/Modals/ModalSidebar/{ModalSidebarPortal.jsx → ModalSidebarPortal.js} +4 -6
- package/dist/system/Modals/ModalSidebar/{index.jsx → index.js} +3 -4
- package/dist/system/Overlay/{Overlay.test.jsx → Overlay.test.js} +2 -3
- package/dist/system/Overlay/{index.jsx → index.js} +2 -3
- package/dist/system/{ShareIconResize.jsx → ShareIconResize.js} +5 -6
- package/dist/system/Tabs/TabNavLink/{TabNavLink.test.jsx → TabNavLink.test.js} +3 -3
- package/dist/system/Tabs/TabNavLink/{index.jsx → index.js} +1 -3
- package/dist/system/Tabs/TabsNav/{TabsNav.test.jsx → TabsNav.test.js} +4 -4
- package/dist/system/Tabs/TabsNav/{index.jsx → index.js} +2 -2
- package/dist/system/Tabs/TabsPanel/{TabsPanel.test.jsx → TabsPanel.test.js} +8 -12
- package/dist/system/Tabs/TabsPanel/{index.jsx → index.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/copyBtn/{index.jsx → index.js} +4 -7
- package/package.json +1 -1
- package/dist/components/base/Meta/index.jsx +0 -64
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.jsx +0 -18
- package/dist/components/profile/pageHead/index.jsx +0 -52
- package/dist/components/search/searchSuggestions/index.jsx +0 -124
- package/dist/components/shareDialog/index.jsx +0 -91
- package/dist/components/socialButtons/icons/discord.jsx +0 -8
- package/dist/components/socialButtons/icons/facebook.jsx +0 -9
- package/dist/components/socialButtons/icons/instagram.jsx +0 -10
- package/dist/components/socialButtons/icons/medium.jsx +0 -8
- package/dist/components/socialButtons/icons/telegram.jsx +0 -8
- package/dist/components/socialButtons/icons/twitter.jsx +0 -8
- package/dist/components/tabs/icons/bell.jsx +0 -10
- package/dist/components/tabs/icons/profile.jsx +0 -10
- package/dist/components/tabs/icons/secure.jsx +0 -9
- package/dist/layouts/pageTransitionLayout.jsx +0 -27
- package/dist/pages/index.jsx +0 -18
- package/dist/system/Cards/HideLink/index.jsx +0 -22
- /package/dist/components/headers/components/MobileToggle/{index.jsx → index.js} +0 -0
- /package/dist/components/inviteCodesPage/components/{index.jsx → index.js} +0 -0
- /package/dist/components/inviteCodesPage/wrappers/{index.jsx → index.js} +0 -0
- /package/dist/components/profile/jsonLd/{index.jsx → index.js} +0 -0
- /package/dist/components/registrationPage/{index.jsx → index.js} +0 -0
- /package/dist/components/rewards/rewardsButton/{index.jsx → index.js} +0 -0
- /package/dist/dto/common/ItemType/{index.jsx → index.js} +0 -0
- /package/dist/dto/common/Media/{index.jsx → index.js} +0 -0
- /package/dist/hooks/apollo/{index.jsx → index.js} +0 -0
- /package/dist/hooks/audio/useMultiAudio/{index.jsx → index.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useFindCollectionsAndLikes.jsx → useFindCollectionsAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useFindCreationsAndLikes.jsx → useFindCreationsAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCollectionInfoAndLikes.jsx → useGetCollectionInfoAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikes.jsx → useGetCreationsAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikesByType.jsx → useGetCreationsAndLikesByType.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetMixedLikesFavoriteList.jsx → useGetMixedLikesFavoriteList.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetTableLikes.jsx → useGetTableLikes.js} +0 -0
- /package/dist/modules/notifications/{index.jsx → index.js} +0 -0
- /package/dist/modules/user/{store.jsx → store.js} +0 -0
- /package/dist/styles/animations/{index.jsx → index.js} +0 -0
- /package/dist/styles/{globalStyles.jsx → globalStyles.js} +0 -0
- /package/dist/styles/mixins/{boxShadow.jsx → boxShadow.js} +0 -0
- /package/dist/styles/mixins/{boxTransform.jsx → boxTransform.js} +0 -0
- /package/dist/styles/mixins/{z-indexes.jsx → z-indexes.js} +0 -0
- /package/dist/styles/typography/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/IconButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/IconWithButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/MainButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/SecondaryButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Flex/{index.jsx → index.js} +0 -0
- /package/dist/system/Labels/SkeletonLabel/{index.jsx → index.js} +0 -0
- /package/dist/system/PageLoader/{index.jsx → index.js} +0 -0
- /package/dist/system/Palete/{index.jsx → index.js} +0 -0
- /package/dist/system/Text/{index.jsx → index.js} +0 -0
- /package/dist/utils/extractItemIds/{index.jsx → index.js} +0 -0
- /package/dist/utils/imageProportionsSize/{index.jsx → index.js} +0 -0
- /package/dist/utils/ui/{index.jsx → index.js} +0 -0
|
@@ -23,10 +23,9 @@ var Modal = function () {
|
|
|
23
23
|
}); }), contentModals = _a.contentModals, isModalOpen = _a.isModalOpen, closeModal = _a.closeModal, stylesModals = _a.stylesModals;
|
|
24
24
|
if (!isModalOpen)
|
|
25
25
|
return null;
|
|
26
|
-
return (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</StyledModal>);
|
|
26
|
+
return (react_1.default.createElement(StyledModal, { style: stylesModals ? stylesModals : undefined },
|
|
27
|
+
react_1.default.createElement("img", { src: "/modal/close.svg", alt: "close", width: 24, height: 24, className: 'modalCloseIcon', onClick: closeModal }),
|
|
28
|
+
react_1.default.createElement("div", { className: "modalContent" }, contentModals)));
|
|
30
29
|
};
|
|
31
30
|
exports.default = Modal;
|
|
32
31
|
var templateObject_1;
|
|
@@ -43,6 +43,6 @@ var CreatorModalSidebarPortal = function () {
|
|
|
43
43
|
if (!isOpenModalSidebarPortal) {
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
|
-
return (
|
|
46
|
+
return (React.createElement(ModalSidebarPortal, { closeModal: closeModalSidebarPortal, component: contentModals }));
|
|
47
47
|
};
|
|
48
48
|
exports.CreatorModalSidebarPortal = CreatorModalSidebarPortal;
|
|
@@ -15,12 +15,12 @@ describe('Modal Component', function () {
|
|
|
15
15
|
var closeModalMock = jest.fn();
|
|
16
16
|
// Mock the useUiStore hook
|
|
17
17
|
ui_1.useUiStore.mockReturnValue({
|
|
18
|
-
contentModals:
|
|
18
|
+
contentModals: react_1.default.createElement("div", null, "test open"),
|
|
19
19
|
isModalSidebarOpen: true,
|
|
20
20
|
closeModalSidebar: closeModalMock,
|
|
21
21
|
});
|
|
22
22
|
// Render the Modal component
|
|
23
|
-
(0, react_2.render)(
|
|
23
|
+
(0, react_2.render)(react_1.default.createElement(index_1.default, null));
|
|
24
24
|
// Check if the modal content is in the document
|
|
25
25
|
var labelElement = react_2.screen.getByText('test open');
|
|
26
26
|
expect(labelElement).toBeInTheDocument();
|
|
@@ -11,11 +11,9 @@ var ModalSidebar_1 = require("@/system/Modals/ModalSidebar");
|
|
|
11
11
|
// minimize dom tree for optimize virtualization
|
|
12
12
|
var ModalSidebarPortal = function (_a) {
|
|
13
13
|
var component = _a.component, closeModal = _a.closeModal;
|
|
14
|
-
return (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
</ModalSidebar_1.StyledModalSidebar>
|
|
19
|
-
</utils_1.PortalCreator>);
|
|
14
|
+
return (react_1.default.createElement(utils_1.PortalCreator, null,
|
|
15
|
+
react_1.default.createElement(ModalSidebar_1.StyledModalSidebar, null,
|
|
16
|
+
react_1.default.createElement("img", { src: "/modal/close.svg", alt: "close", width: 24, height: 24, className: 'modalCloseIcon', onClick: closeModal }),
|
|
17
|
+
react_1.default.createElement("div", { className: "modalContent" }, component))));
|
|
20
18
|
};
|
|
21
19
|
exports.ModalSidebarPortal = ModalSidebarPortal;
|
|
@@ -23,10 +23,9 @@ var ModalSidebar = function () {
|
|
|
23
23
|
}); }), contentModals = _a.contentModals, isModalSidebarOpen = _a.isModalSidebarOpen, closeModalSidebar = _a.closeModalSidebar;
|
|
24
24
|
if (!isModalSidebarOpen)
|
|
25
25
|
return null;
|
|
26
|
-
return (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</exports.StyledModalSidebar>);
|
|
26
|
+
return (react_1.default.createElement(exports.StyledModalSidebar, null,
|
|
27
|
+
react_1.default.createElement("img", { src: "/modal/close.svg", alt: "close", width: 24, height: 24, className: 'modalCloseIcon', onClick: closeModalSidebar }),
|
|
28
|
+
react_1.default.createElement("div", { className: "modalContent" }, contentModals)));
|
|
30
29
|
};
|
|
31
30
|
exports.default = ModalSidebar;
|
|
32
31
|
var templateObject_1;
|
|
@@ -17,9 +17,8 @@ describe('Overlay Component', function () {
|
|
|
17
17
|
isOverlayActive: false,
|
|
18
18
|
};
|
|
19
19
|
var renderComponent = function () {
|
|
20
|
-
return (0, react_2.render)(
|
|
21
|
-
|
|
22
|
-
</div>);
|
|
20
|
+
return (0, react_2.render)(react_1.default.createElement("div", { "data-testid": 'dialog' },
|
|
21
|
+
react_1.default.createElement(Overlay_1.default, null)));
|
|
23
22
|
};
|
|
24
23
|
beforeEach(function () {
|
|
25
24
|
ui_1.useUiStore.mockReturnValue(mockUseUiStore);
|
|
@@ -20,9 +20,8 @@ var Overlay = function () {
|
|
|
20
20
|
closeOverlay: state.closeOverlay,
|
|
21
21
|
isOverlayActive: state.isOverlayActive,
|
|
22
22
|
}); }), closeOverlay = _a.closeOverlay, isOverlayActive = _a.isOverlayActive;
|
|
23
|
-
return (
|
|
24
|
-
|
|
25
|
-
</StyledOverlay>);
|
|
23
|
+
return (react_1.default.createElement(StyledOverlay, { isActive: isOverlayActive, onClick: closeOverlay },
|
|
24
|
+
react_1.default.createElement("div", { className: 'blur' })));
|
|
26
25
|
};
|
|
27
26
|
// Export
|
|
28
27
|
exports.default = Overlay;
|
|
@@ -16,12 +16,11 @@ var share_svg_1 = __importDefault(require("@/public/iconButton/share.svg"));
|
|
|
16
16
|
var SIcon = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", " {\n width: ", ";\n height: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", " {\n width: ", ";\n height: ", ";\n }\n"])), styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(19), (0, _4k_1.adaptiveValueCalc)(20));
|
|
17
17
|
var ShareIconResize = function () {
|
|
18
18
|
var windowDimensions = (0, utils_1.useWindowDimensionsWithServerInitial)().windowDimensions;
|
|
19
|
-
return (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</SIcon>);
|
|
19
|
+
return (React.createElement(SIcon, null,
|
|
20
|
+
React.createElement(share_svg_1.default, { style: (0, utils_1.getAdaptiveScale)({
|
|
21
|
+
windowDimensions: windowDimensions,
|
|
22
|
+
currentSize: 1,
|
|
23
|
+
}) })));
|
|
25
24
|
};
|
|
26
25
|
exports.ShareIconResize = ShareIconResize;
|
|
27
26
|
var templateObject_1;
|
|
@@ -14,7 +14,7 @@ var tabNavLink = { label: 'Tab 1', value: 'tab1', id: 1 };
|
|
|
14
14
|
var setActiveTab = jest.fn();
|
|
15
15
|
describe('TabsNavLink Component', function () {
|
|
16
16
|
test('renders tab link with correct label', function () {
|
|
17
|
-
(0, react_2.render)(
|
|
17
|
+
(0, react_2.render)(react_1.default.createElement(TabNavLink_1.default, { tabNavLink: tabNavLink, activeNavLink: false }));
|
|
18
18
|
var tabLink = react_2.screen.getByText('Tab 1');
|
|
19
19
|
expect(tabLink).toBeInTheDocument();
|
|
20
20
|
expect(tabLink).toHaveStyleRule('color', colors_1.TextDarkGrayColor);
|
|
@@ -23,7 +23,7 @@ describe('TabsNavLink Component', function () {
|
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
test('renders tab link with active style', function () {
|
|
26
|
-
(0, react_2.render)(
|
|
26
|
+
(0, react_2.render)(react_1.default.createElement(TabNavLink_1.default, { tabNavLink: tabNavLink, activeNavLink: true }));
|
|
27
27
|
var tabLink = react_2.screen.getByText('Tab 1');
|
|
28
28
|
expect(tabLink).toBeInTheDocument();
|
|
29
29
|
expect(tabLink).toHaveStyleRule('color', colors_1.BlackColor);
|
|
@@ -32,7 +32,7 @@ describe('TabsNavLink Component', function () {
|
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
test('calls setActiveTab when clicked', function () {
|
|
35
|
-
(0, react_2.render)(
|
|
35
|
+
(0, react_2.render)(react_1.default.createElement(TabNavLink_1.default, { tabNavLink: tabNavLink, activeNavLink: false, setActiveTab: setActiveTab }));
|
|
36
36
|
var tabLink = react_2.screen.getByText('Tab 1');
|
|
37
37
|
react_2.fireEvent.click(tabLink);
|
|
38
38
|
expect(setActiveTab).toHaveBeenCalledWith(tabNavLink);
|
|
@@ -19,9 +19,7 @@ exports.StyledTabsNavLink = styled_components_1.default.div(templateObject_1 ||
|
|
|
19
19
|
// Component
|
|
20
20
|
var TabsNavLink = function (_a) {
|
|
21
21
|
var tabNavLink = _a.tabNavLink, activeNavLink = _a.activeNavLink, setActiveTab = _a.setActiveTab;
|
|
22
|
-
return (
|
|
23
|
-
{tabNavLink.label}
|
|
24
|
-
</exports.StyledTabsNavLink>);
|
|
22
|
+
return (react_1.default.createElement(exports.StyledTabsNavLink, { isActive: activeNavLink, onClick: function () { return (setActiveTab ? setActiveTab(tabNavLink) : null); } }, tabNavLink.label));
|
|
25
23
|
};
|
|
26
24
|
// Export
|
|
27
25
|
exports.default = TabsNavLink;
|
|
@@ -18,24 +18,24 @@ var activeTab = { id: 1, label: 'Tab 1' };
|
|
|
18
18
|
var setActiveTab = jest.fn();
|
|
19
19
|
describe('TabsNav Component', function () {
|
|
20
20
|
test('renders all tabs correctly', function () {
|
|
21
|
-
(0, react_2.render)(
|
|
21
|
+
(0, react_2.render)(react_1.default.createElement(TabsNav_1.default, { tabsData: tabsData, activeTab: activeTab }));
|
|
22
22
|
var tab1 = react_2.screen.getByText('Tab 1');
|
|
23
23
|
var tab2 = react_2.screen.getByText('Tab 2');
|
|
24
24
|
expect(tab1).toBeInTheDocument();
|
|
25
25
|
expect(tab2).toBeInTheDocument();
|
|
26
26
|
});
|
|
27
27
|
test('applies active styles to the active tab', function () {
|
|
28
|
-
(0, react_2.render)(
|
|
28
|
+
(0, react_2.render)(react_1.default.createElement(TabsNav_1.default, { tabsData: tabsData, activeTab: activeTab, setActiveTab: setActiveTab }));
|
|
29
29
|
var activeTabElement = react_2.screen.getByText('Tab 1');
|
|
30
30
|
expect(activeTabElement).toHaveStyleRule('color', colors_1.BlackColor);
|
|
31
31
|
});
|
|
32
32
|
test('applies inactive styles to inactive tabs', function () {
|
|
33
|
-
(0, react_2.render)(
|
|
33
|
+
(0, react_2.render)(react_1.default.createElement(TabsNav_1.default, { tabsData: tabsData, activeTab: activeTab, setActiveTab: setActiveTab }));
|
|
34
34
|
var inactiveTabElement = react_2.screen.getByText('Tab 2');
|
|
35
35
|
expect(inactiveTabElement).toHaveStyleRule('color', colors_1.TextDarkGrayColor);
|
|
36
36
|
});
|
|
37
37
|
test('calls setActiveTab when a tab is clicked', function () {
|
|
38
|
-
(0, react_2.render)(
|
|
38
|
+
(0, react_2.render)(react_1.default.createElement(TabsNav_1.default, { tabsData: tabsData, activeTab: activeTab, setActiveTab: setActiveTab }));
|
|
39
39
|
var tab2 = react_2.screen.getByText('Tab 2');
|
|
40
40
|
react_2.fireEvent.click(tab2);
|
|
41
41
|
expect(setActiveTab).toHaveBeenCalledWith(tabsData[1]);
|
|
@@ -18,10 +18,10 @@ var TabsNav = function (_a) {
|
|
|
18
18
|
var tabsData = _a.tabsData, activeTab = _a.activeTab, setActiveTab = _a.setActiveTab;
|
|
19
19
|
var renderSortItems = function () {
|
|
20
20
|
return tabsData.map(function (data) {
|
|
21
|
-
return (
|
|
21
|
+
return (react_1.default.createElement(TabNavLink_1.default, { key: data.id, activeNavLink: (activeTab === null || activeTab === void 0 ? void 0 : activeTab.id) === data.id, tabNavLink: data, setActiveTab: setActiveTab }));
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
return
|
|
24
|
+
return react_1.default.createElement(exports.StyledTabsNav, null, renderSortItems());
|
|
25
25
|
};
|
|
26
26
|
// Export
|
|
27
27
|
exports.default = TabsNav;
|
|
@@ -10,29 +10,25 @@ require("jest-styled-components");
|
|
|
10
10
|
var TabsPanel_1 = __importDefault(require("../TabsPanel"));
|
|
11
11
|
describe('TabPanel Component', function () {
|
|
12
12
|
test('renders children when isActive is true', function () {
|
|
13
|
-
(0, react_2.render)(
|
|
14
|
-
|
|
15
|
-
</TabsPanel_1.default>);
|
|
13
|
+
(0, react_2.render)(react_1.default.createElement(TabsPanel_1.default, { isActive: true },
|
|
14
|
+
react_1.default.createElement("div", null, "Content")));
|
|
16
15
|
var content = react_2.screen.getByText('Content');
|
|
17
16
|
expect(content).toBeInTheDocument();
|
|
18
17
|
});
|
|
19
18
|
test('does not render children when isActive is false', function () {
|
|
20
|
-
(0, react_2.render)(
|
|
21
|
-
|
|
22
|
-
</TabsPanel_1.default>);
|
|
19
|
+
(0, react_2.render)(react_1.default.createElement(TabsPanel_1.default, { isActive: false },
|
|
20
|
+
react_1.default.createElement("div", null, "Content")));
|
|
23
21
|
var content = react_2.screen.queryByText('Content');
|
|
24
22
|
expect(content).not.toBeInTheDocument();
|
|
25
23
|
});
|
|
26
24
|
test('applies correct styles based on isActive prop', function () {
|
|
27
25
|
var _a;
|
|
28
|
-
var rerender = (0, react_2.render)(
|
|
29
|
-
|
|
30
|
-
</TabsPanel_1.default>).rerender;
|
|
26
|
+
var rerender = (0, react_2.render)(react_1.default.createElement(TabsPanel_1.default, { isActive: true },
|
|
27
|
+
react_1.default.createElement("div", null, "Content"))).rerender;
|
|
31
28
|
var activePanel = react_2.screen.getByText('Content').parentElement;
|
|
32
29
|
expect(activePanel).toHaveStyleRule('display', 'block');
|
|
33
|
-
rerender(
|
|
34
|
-
|
|
35
|
-
</TabsPanel_1.default>);
|
|
30
|
+
rerender(react_1.default.createElement(TabsPanel_1.default, { isActive: false },
|
|
31
|
+
react_1.default.createElement("div", null, "Content")));
|
|
36
32
|
var inactivePanel = (_a = react_2.screen.queryByText('Content')) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
37
33
|
if (inactivePanel) {
|
|
38
34
|
expect(inactivePanel).toHaveStyleRule('display', 'none');
|
|
@@ -14,7 +14,7 @@ var StyledTabPanel = styled_components_1.default.div(templateObject_1 || (templa
|
|
|
14
14
|
// Component
|
|
15
15
|
var TabPanel = function (_a) {
|
|
16
16
|
var isActive = _a.isActive, children = _a.children;
|
|
17
|
-
return (
|
|
17
|
+
return (react_1.default.createElement(StyledTabPanel, { isActive: isActive }, isActive && children));
|
|
18
18
|
};
|
|
19
19
|
// Export
|
|
20
20
|
exports.default = TabPanel;
|