tabexseriescomponents 0.0.217 → 0.0.220
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/index.cjs.js +1044 -780
- package/dist/index.esm.js +1044 -780
- package/dist/index.umd.js +1042 -778
- package/library.zip +0 -0
- package/package.json +2 -1
- package/srcold/Contexts/LanguageContext.jsx +390 -0
- package/srcold/Contexts/ProductsCardsSectionContext.jsx +34 -0
- package/srcold/StylesJS/Customstyles.js +236 -0
- package/srcold/TabexComponents/Cards/Card20/Card20.jsx +282 -0
- package/srcold/TabexComponents/Cards/Card21/Card21.jsx +388 -0
- package/srcold/TabexComponents/Cards/Card22/Card22.jsx +287 -0
- package/srcold/TabexComponents/Cards/Card23/Card23.jsx +403 -0
- package/srcold/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +395 -0
- package/srcold/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +70 -0
- package/srcold/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +211 -0
- package/srcold/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +220 -0
- package/srcold/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +230 -0
- package/srcold/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +198 -0
- package/srcold/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +170 -0
- package/srcold/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +181 -0
- package/srcold/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +161 -0
- package/srcold/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +180 -0
- package/srcold/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +487 -0
- package/srcold/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +123 -0
- package/srcold/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +192 -0
- package/srcold/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +270 -0
- package/srcold/TabexComponents/Cards/MenuCard/MenuCard.jsx +543 -0
- package/srcold/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +467 -0
- package/srcold/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +469 -0
- package/srcold/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +445 -0
- package/srcold/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +304 -0
- package/srcold/TabexComponents/Cards/Productcard6/Productcard6.jsx +256 -0
- package/srcold/TabexComponents/Cards/Productcard7/Productcard7.jsx +278 -0
- package/srcold/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +443 -0
- package/srcold/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +275 -0
- package/srcold/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +315 -0
- package/srcold/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +301 -0
- package/srcold/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +419 -0
- package/srcold/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +524 -0
- package/srcold/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +275 -0
- package/srcold/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
- package/srcold/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +136 -0
- package/srcold/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +179 -0
- package/srcold/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +291 -0
- package/srcold/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +339 -0
- package/srcold/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +338 -0
- package/srcold/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +515 -0
- package/srcold/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +184 -0
- package/srcold/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +475 -0
- package/srcold/TabexComponents/Footer/Footer1/Footer1.jsx +448 -0
- package/srcold/TabexComponents/Footer/Footer2/Footer2.jsx +383 -0
- package/srcold/TabexComponents/Footer/Footer3/Footer3.jsx +394 -0
- package/srcold/TabexComponents/Footer/Footer4/Footer4.jsx +699 -0
- package/srcold/TabexComponents/Footer/Footer5/Footer5.jsx +523 -0
- package/srcold/TabexComponents/Footer/Footer6/Footer6.jsx +301 -0
- package/srcold/TabexComponents/Footer/Footer7/Footer7.jsx +415 -0
- package/srcold/TabexComponents/Footer/Footer8/Footer8.jsx +454 -0
- package/srcold/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +329 -0
- package/srcold/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +274 -0
- package/srcold/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/srcold/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +880 -0
- package/srcold/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +870 -0
- package/srcold/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +688 -0
- package/srcold/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +720 -0
- package/srcold/TabexComponents/Headers/Header4/Header4.jsx +621 -0
- package/srcold/TabexComponents/Headers/Header8/Header8.jsx +824 -0
- package/srcold/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +730 -0
- package/srcold/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +762 -0
- package/srcold/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +706 -0
- package/srcold/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +900 -0
- package/srcold/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +841 -0
- package/srcold/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +988 -0
- package/srcold/TabexComponents/Headers/Headerresponsive/HeaderresponsiveNew.jsx +1081 -0
- package/srcold/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +988 -0
- package/srcold/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +917 -0
- package/srcold/TabexComponents/Headers/Modernheader/Modernheader.jsx +693 -0
- package/srcold/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +952 -0
- package/srcold/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +636 -0
- package/srcold/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +853 -0
- package/srcold/TabexComponents/Headers/Subheader/Subheader copy.jsx +373 -0
- package/srcold/TabexComponents/Headers/Subheader/Subheader.jsx +515 -0
- package/srcold/TabexComponents/Headers/Subheader/SubheaderDropdown.jsx +190 -0
- package/srcold/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +483 -0
- package/srcold/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +1005 -0
- package/srcold/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +1020 -0
- package/srcold/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader .jsx +843 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +448 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +346 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +304 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +301 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +271 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +174 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +200 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +263 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +143 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +248 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +394 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +406 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +246 -0
- package/srcold/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +1220 -0
- package/srcold/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +480 -0
- package/srcold/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +718 -0
- package/srcold/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +406 -0
- package/srcold/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +652 -0
- package/srcold/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +635 -0
- package/srcold/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +495 -0
- package/srcold/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +383 -0
- package/srcold/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +250 -0
- package/srcold/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +160 -0
- package/srcold/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +256 -0
- package/srcold/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +329 -0
- package/srcold/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +266 -0
- package/srcold/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +371 -0
- package/srcold/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +140 -0
- package/srcold/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +374 -0
- package/srcold/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +339 -0
- package/srcold/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +303 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +224 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +147 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +139 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +634 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +324 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +525 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +569 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +475 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +369 -0
- package/srcold/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +392 -0
- package/srcold/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +213 -0
- package/srcold/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +467 -0
- package/srcold/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +181 -0
- package/srcold/TabexComponents/StaticPages/Checkout/Checkout.jsx +1280 -0
- package/srcold/TabexComponents/StaticPages/Filter/Filter copy.jsx +1392 -0
- package/srcold/TabexComponents/StaticPages/Filter/Filter.jsx +1399 -0
- package/srcold/TabexComponents/StaticPages/Filter/FilterOriginal.jsx +1132 -0
- package/srcold/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +60 -0
- package/srcold/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +50 -0
- package/srcold/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
- package/srcold/TabexComponents/StaticPages/Login/Login.jsx +469 -0
- package/srcold/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +143 -0
- package/srcold/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1329 -0
- package/srcold/TabexComponents/StaticPages/Policies/Policies.jsx +306 -0
- package/srcold/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +1334 -0
- package/srcold/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +715 -0
- package/srcold/TabexComponents/StaticPages/Productinfo/Service_itemtype copy.jsx +361 -0
- package/srcold/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +361 -0
- package/srcold/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +501 -0
- package/srcold/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +145 -0
- package/srcold/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +227 -0
- package/srcold/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +832 -0
- package/srcold/TabexComponents/StaticPages/Signup/Signup.jsx +154 -0
- package/srcold/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +280 -0
- package/srcold/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +671 -0
- package/srcold/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +538 -0
- package/srcold/assets/images/appstore.png +0 -0
- package/srcold/assets/images/cod.png +0 -0
- package/srcold/assets/images/egyptflag.png +0 -0
- package/srcold/assets/images/fawry.png +0 -0
- package/srcold/assets/images/googleplay.png +0 -0
- package/srcold/assets/images/ksa.png +0 -0
- package/srcold/assets/images/mastercard.png +0 -0
- package/srcold/assets/images/payment.png +0 -0
- package/srcold/assets/images/paymob.png +0 -0
- package/srcold/assets/images/paypal.png +0 -0
- package/srcold/assets/images/shoppingcart.png +0 -0
- package/srcold/assets/images/usflag.png +0 -0
- package/srcold/assets/images/visa.png +0 -0
- package/srcold/assets/images/whatsapp.png +0 -0
- package/srcold/button.jsx +40 -0
- package/srcold/index.jsx +283 -0
- package/srcold/styles/Home.module.css +129 -0
- package/srcold/styles/cards/Categorcycard_fullimage.module.css +10 -0
- package/srcold/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
- package/srcold/styles/cards/Categorycard_withshapes.module.css +189 -0
- package/srcold/styles/cards/ModernCardWithQuantityButton.module.css +30 -0
- package/srcold/styles/cards/Productcard6.module.css +9 -0
- package/srcold/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
- package/srcold/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
- package/srcold/styles/cards/UserCardWithSocialMediaOnHover.module.css +65 -0
- package/srcold/styles/cards/categorycard.module.css +85 -0
- package/srcold/styles/cards/categorycard3.module.css +50 -0
- package/srcold/styles/cards/categorycardwithtext.module.css +40 -0
- package/srcold/styles/cards/productcard_animatedbuttons.module.css +130 -0
- package/srcold/styles/cards/productcard_with_textonhover.module.css +18 -0
- package/srcold/styles/cards/productcard_withtextonimage.module.css +0 -0
- package/srcold/styles/cards/productccard_with_imageontopleft.module.css +85 -0
- package/srcold/styles/general/bootstrap.css +4727 -0
- package/srcold/styles/general/dropdown.css +206 -0
- package/srcold/styles/general/editorbardropdown.module.css +94 -0
- package/srcold/styles/general/filter.module.css +108 -0
- package/srcold/styles/general/form.module.css +273 -0
- package/srcold/styles/general/general.module.css +872 -0
- package/srcold/styles/general/image-gallery.css +531 -0
- package/srcold/styles/general/react-accessible-accordion.module.css +52 -0
- package/srcold/styles/general/react-phone-input-2.module.css +927 -0
- package/srcold/styles/general/scrollbtn.module.css +22 -0
- package/srcold/styles/general/slick.module.css +166 -0
- package/srcold/styles/general/tabs.module.css +119 -0
- package/srcold/styles/general/workplaceeditor.module.css +328 -0
- package/srcold/styles/globals.css +26 -0
- package/srcold/styles/headers/CTAHeader.module.css +40 -0
- package/srcold/styles/headers/CategoryFeaturingHeader.module.css +61 -0
- package/srcold/styles/headers/Gotoheader.module.css +81 -0
- package/srcold/styles/headers/Header7.module.css +50 -0
- package/srcold/styles/headers/HeaderWithAdSlider.module.css +86 -0
- package/srcold/styles/headers/HeaderWithSearchOnCenter.module.css +101 -0
- package/srcold/styles/headers/HeaderWithUtilityBar.module.css +46 -0
- package/srcold/styles/headers/Header_threesectionslogocentered.module.css +84 -0
- package/srcold/styles/headers/NewHeader.module.css +101 -0
- package/srcold/styles/headers/SearchFocusedHeader.module.css +62 -0
- package/srcold/styles/headers/Sideheader.module.css +108 -0
- package/srcold/styles/headers/Simpleheader.module.css +102 -0
- package/srcold/styles/headers/classicheader.module.css +16 -0
- package/srcold/styles/headers/classicheaderstyles.module.css +9 -0
- package/srcold/styles/headers/dropdown.css +0 -0
- package/srcold/styles/headers/header4.module.css +175 -0
- package/srcold/styles/headers/header5.module.css +30 -0
- package/srcold/styles/headers/header_contactinfo.module.css +53 -0
- package/srcold/styles/headers/headerresturant.module.css +89 -0
- package/srcold/styles/headers/modernheader.module.css +72 -0
- package/srcold/styles/headers/stylishheader.module.css +24 -0
- package/srcold/styles/headers/subheader.module.css +114 -0
- package/srcold/styles/headers/threetieredheader.module.css +91 -0
- package/srcold/styles/sections/BackgroundImageWithTopContent.css +4 -0
- package/srcold/styles/sections/Backgroundimage1.module.css +17 -0
- package/srcold/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
- package/srcold/styles/sections/Section_with_rightbgcont.module.css +49 -0
- package/srcold/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
- package/srcold/styles/sections/Slideshow_with_squarebg.module.css +39 -0
- package/srcold/styles/staticpages/accordion.module.css +9 -0
- package/srcold/styles/staticpages/cart.module.css +108 -0
- package/srcold/styles/staticpages/dropdown.css +196 -0
- package/srcold/styles/staticpages/filter.module.css +139 -0
- package/srcold/styles/staticpages/image-gallery.css +481 -0
- package/srcold/styles/staticpages/login.module.css +113 -0
- package/srcold/styles/staticpages/productinfo.module.css +54 -0
- package/srcold/styles/staticpages/shop.module.css +191 -0
- package/srcold/styles/staticpages/signup.module.css +206 -0
- package/srcold/styles/staticpages/staticroutersidenav.module.css +129 -0
- package/srcold/styles/staticpages/viewcart.module.css +129 -0
- package/srcold/styles/staticpages/wishlist.module.css +29 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
import generalstyles from '../../../styles/general/general.module.css';
|
|
3
|
+
import CustomerInformationForm from './CustomerInformationForm.jsx';
|
|
4
|
+
import { css } from 'glamor';
|
|
5
|
+
import { CircularProgress } from 'react-cssfx-loading';
|
|
6
|
+
const Signup = (props) => {
|
|
7
|
+
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
8
|
+
const CurrentSrcTypeContext = props.actions.CurrentSrcTypeContext;
|
|
9
|
+
const routingcountext = props.actions.routingcountext;
|
|
10
|
+
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
11
|
+
const SocialLoginMutationContext = props.actions.SocialLoginMutationContext;
|
|
12
|
+
const lang = props.actions.lang;
|
|
13
|
+
const langdetect = props.actions.langdetect;
|
|
14
|
+
const templatepropcontext = props.actions.templatepropcontext;
|
|
15
|
+
const authdetailsContext = props.actions.authdetailsContext;
|
|
16
|
+
const actions = props.actions;
|
|
17
|
+
const [CurrentPageId, setCurrentPageId] = useState('');
|
|
18
|
+
|
|
19
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
if (authdetailsContext.loggedin) {
|
|
22
|
+
routingcountext('');
|
|
23
|
+
}
|
|
24
|
+
}, []);
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
var cartindex = templatepropcontext?.pagesnprop.findIndex((x) => x.staticpageid == '6218bccb7f4f7');
|
|
27
|
+
if (cartindex >= 0) {
|
|
28
|
+
setCurrentPageId(cartindex);
|
|
29
|
+
}
|
|
30
|
+
}, []);
|
|
31
|
+
// useEffect(() => {
|
|
32
|
+
// var secpropobj = {};
|
|
33
|
+
// templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
|
|
34
|
+
// secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
35
|
+
// });
|
|
36
|
+
// setsectionproperties({ ...secpropobj });
|
|
37
|
+
// }, [CurrentPageId]);
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
if (StatePagePropertiesContext != null && StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
|
|
40
|
+
var secpropobj = {};
|
|
41
|
+
StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
|
|
42
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
43
|
+
});
|
|
44
|
+
setsectionproperties({ ...secpropobj });
|
|
45
|
+
}
|
|
46
|
+
}, [StatePagePropertiesContext]);
|
|
47
|
+
const loginstyles2 = {
|
|
48
|
+
loginbtn: css({
|
|
49
|
+
color: sectionproperties.login_btn_color,
|
|
50
|
+
fontSize: sectionproperties.login_btn_fontSize + 'px',
|
|
51
|
+
textTransform: sectionproperties.login_btn_texttransform,
|
|
52
|
+
fontWeight: sectionproperties.login_btn_fontweight,
|
|
53
|
+
textDecoration: 'underline',
|
|
54
|
+
transition: '.3s',
|
|
55
|
+
':hover': {
|
|
56
|
+
color: sectionproperties.login_btn_coloronhover,
|
|
57
|
+
},
|
|
58
|
+
}),
|
|
59
|
+
logininputLabel: css({
|
|
60
|
+
color: sectionproperties.form_labelcolor,
|
|
61
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
62
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
63
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
64
|
+
}),
|
|
65
|
+
signupbtn: css({
|
|
66
|
+
background: sectionproperties.signup_btnbgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.signup_btnbgcolor,
|
|
67
|
+
width: sectionproperties.signup_btn_width + 'px',
|
|
68
|
+
height: sectionproperties.signup_btn_height + 'px',
|
|
69
|
+
borderRadius: sectionproperties.signup_btn_borderBottomLeftRadius + 'px',
|
|
70
|
+
color: sectionproperties.signup_btn_color,
|
|
71
|
+
fontSize: sectionproperties.signup_btn_fontSize + 'px',
|
|
72
|
+
textTransform: sectionproperties.signup_btn_texttransform,
|
|
73
|
+
fontWeight: sectionproperties.signup_btn_fontweight,
|
|
74
|
+
boxShadow: sectionproperties.signup_btn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.signup_btn_shadowcolor : '',
|
|
75
|
+
border: sectionproperties.signup_btn_borderwidth + 'px solid ' + sectionproperties.signup_btn_bordercolor,
|
|
76
|
+
opacity: sectionproperties.signup_btn_opacity,
|
|
77
|
+
transition: '.3s',
|
|
78
|
+
':hover': {
|
|
79
|
+
color: sectionproperties.signup_btn_coloronhover,
|
|
80
|
+
background: sectionproperties.signup_btnbgcoloroonhover,
|
|
81
|
+
opacity: sectionproperties.signup_btn_opacityonhover,
|
|
82
|
+
},
|
|
83
|
+
}),
|
|
84
|
+
form_control: css({
|
|
85
|
+
backgroundImage: 'linear-gradient(to top, #eac435 2px, rgba(156, 39, 176, 0) 2px), linear-gradient(to top, #d2d2d2 1px, rgba(210, 210, 210, 0) 1px)',
|
|
86
|
+
}),
|
|
87
|
+
};
|
|
88
|
+
return (
|
|
89
|
+
<div className="col-lg-12 d-flex align-items-center justify-content-center pt-3 pb-3 pt-md-3 ">
|
|
90
|
+
<div className={'row m-0 w-100 pl-3 pr-3 d-flex align-items-center justify-content-center pl-md-3 pr-md-3 p-sm-0'}>
|
|
91
|
+
<div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center">
|
|
92
|
+
<p
|
|
93
|
+
className="m-0 p-0"
|
|
94
|
+
style={{
|
|
95
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
96
|
+
color: sectionproperties.sectionTitleColor,
|
|
97
|
+
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
98
|
+
}}
|
|
99
|
+
>
|
|
100
|
+
{langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
|
|
101
|
+
</p>
|
|
102
|
+
</div>
|
|
103
|
+
<div className="row m-0 w-100 mb-2">
|
|
104
|
+
<div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-md-2">
|
|
105
|
+
<p
|
|
106
|
+
className="m-0 p-0"
|
|
107
|
+
style={{
|
|
108
|
+
color: sectionproperties.formRightTextColor1,
|
|
109
|
+
fontSize: sectionproperties.formRightTextFontSize1 + 'px',
|
|
110
|
+
fontWeight: sectionproperties.formRightTextFontWeight1,
|
|
111
|
+
}}
|
|
112
|
+
>
|
|
113
|
+
{langdetect == 'en' ? sectionproperties.formRightText1 : sectionproperties.formRightText1_ar}
|
|
114
|
+
</p>
|
|
115
|
+
<p
|
|
116
|
+
className={`${loginstyles2.loginbtn} ` + ' ml-2 mr-2 mb-0 p-0 cursor-pointer '}
|
|
117
|
+
onClick={() => {
|
|
118
|
+
routingcountext(StaticPagesLinksContext.Login);
|
|
119
|
+
}}
|
|
120
|
+
>
|
|
121
|
+
{lang.login}
|
|
122
|
+
</p>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
<div className="col-lg-12 p-sm-0">
|
|
126
|
+
<div className={`${generalstyles.card}` + ' p-0 ml-3 mr-3 m-md-0 '} style={{ border: 'none', boxShadow: 'none' }}>
|
|
127
|
+
<div className=" row m-0 w-100 ">
|
|
128
|
+
<div
|
|
129
|
+
className="col-lg-12 col-md-12 col-sm-12 pt-4 pb-4 d-flex align-items-stretch"
|
|
130
|
+
style={{
|
|
131
|
+
background: sectionproperties.formLeftbgColor,
|
|
132
|
+
borderTopRightRadius: sectionproperties.formLeft_bordertoprightradius + 'px',
|
|
133
|
+
borderTopLeftRadius: sectionproperties.formLeft_bordertopleftradius + 'px',
|
|
134
|
+
borderBottomRightRadius: sectionproperties.formLeft_borderbottomrightadius + 'px',
|
|
135
|
+
borderBottomLeftRadius: sectionproperties.formLeft_borderbottomleftadius + 'px',
|
|
136
|
+
}}
|
|
137
|
+
>
|
|
138
|
+
{!SocialLoginMutationContext.isLoading && (
|
|
139
|
+
<CustomerInformationForm formtype="add" sectionpropertiesprops={sectionproperties} srcfromprops={'signup'} actions={actions} />
|
|
140
|
+
)}
|
|
141
|
+
{SocialLoginMutationContext.isLoading && (
|
|
142
|
+
<div className="w-100 d-flex m-auto mx-auto justify-content-center align-items-center">
|
|
143
|
+
<CircularProgress color="black" width="40px" height="40px" duration="1s" />
|
|
144
|
+
</div>
|
|
145
|
+
)}
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
);
|
|
153
|
+
};
|
|
154
|
+
export default Signup;
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
import { NavItem } from 'react-bootstrap';
|
|
3
|
+
import staticroutersidenav from '../../../styles/staticpages/staticroutersidenav.module.css';
|
|
4
|
+
import { css } from 'glamor';
|
|
5
|
+
import { AiOutlineSecurityScan } from '@react-icons/all-files/ai/AiOutlineSecurityScan';
|
|
6
|
+
import { FaStar } from '@react-icons/all-files/fa/FaStar';
|
|
7
|
+
import { FiShoppingCart } from '@react-icons/all-files/fi/FiShoppingCart';
|
|
8
|
+
import { AiOutlineUser } from '@react-icons/all-files/ai/AiOutlineUser';
|
|
9
|
+
|
|
10
|
+
const Staticpagesrouter = (props) => {
|
|
11
|
+
const [currentchecked, setcurrentchecked] = useState(props.currentpageprops);
|
|
12
|
+
const [CurrentPageId, setCurrentPageId] = useState('');
|
|
13
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
14
|
+
const templatepropcontext = props.actions.templatepropcontext;
|
|
15
|
+
const lang = props.actions.lang;
|
|
16
|
+
const langdetect = props.actions.langdetect;
|
|
17
|
+
const routingcountext = props.actions.routingcountext;
|
|
18
|
+
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
19
|
+
const authdetailsContext = props.actions.authdetailsContext;
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
var cartindex = templatepropcontext.pagesnprop.findIndex((x) => x.staticpageid == '623dbf7ccdc8b');
|
|
22
|
+
if (cartindex >= 0) {
|
|
23
|
+
setCurrentPageId(cartindex);
|
|
24
|
+
}
|
|
25
|
+
}, []);
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
if (CurrentPageId.length != 0) {
|
|
28
|
+
var secpropobj = {};
|
|
29
|
+
templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
|
|
30
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
31
|
+
});
|
|
32
|
+
setsectionproperties({ ...secpropobj });
|
|
33
|
+
}
|
|
34
|
+
}, [CurrentPageId]);
|
|
35
|
+
const styles = {
|
|
36
|
+
generalbtn: css({
|
|
37
|
+
position: 'relative',
|
|
38
|
+
color: sectionproperties.cartBtnTextcolor,
|
|
39
|
+
fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
40
|
+
textTransform: sectionproperties.cartBtnTexttransform,
|
|
41
|
+
height: sectionproperties.cartBtnHeight + 'px',
|
|
42
|
+
width: sectionproperties.cartBtnWidth + 'px',
|
|
43
|
+
background: currentchecked == 'viewcart' ? sectionproperties.generalbtn_bgColoronhover : sectionproperties.cartBtnbgColor,
|
|
44
|
+
borderRadius: sectionproperties.cart_btn_borderTopLeftRadius + 'px',
|
|
45
|
+
fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
46
|
+
transition: '.3s',
|
|
47
|
+
':hover': {
|
|
48
|
+
background: sectionproperties.cartBtnbgColoronhover,
|
|
49
|
+
color: sectionproperties.cartBtnTextcoloronhover,
|
|
50
|
+
},
|
|
51
|
+
}),
|
|
52
|
+
sidebar_item: css({
|
|
53
|
+
color: sectionproperties.navigationtextcolor,
|
|
54
|
+
background: sectionproperties.navcontbg_color,
|
|
55
|
+
borderRadius: sectionproperties.navcontborderbl + 'px',
|
|
56
|
+
':hover': {
|
|
57
|
+
color: sectionproperties.navigationtextcoloronhover,
|
|
58
|
+
background: sectionproperties.navcontbgcoloronhover,
|
|
59
|
+
},
|
|
60
|
+
':after': {
|
|
61
|
+
left: langdetect == 'en' ? '' : 0,
|
|
62
|
+
right: langdetect == 'en' ? 0 : '',
|
|
63
|
+
},
|
|
64
|
+
':hover:after': {
|
|
65
|
+
background: sectionproperties.navigationtextcoloronhover,
|
|
66
|
+
left: langdetect == 'en' ? '' : 0,
|
|
67
|
+
right: langdetect == 'en' ? 0 : '',
|
|
68
|
+
},
|
|
69
|
+
}),
|
|
70
|
+
sidenav_page_name: css({
|
|
71
|
+
fontSize: sectionproperties.navigationtextfontsize + 'px',
|
|
72
|
+
fontWeight: sectionproperties.navigationtextfontweight,
|
|
73
|
+
textTransform: sectionproperties.navigationtexttextransform,
|
|
74
|
+
}),
|
|
75
|
+
// sidenav_icon_cont: css({
|
|
76
|
+
// width: sectionproperties.iconcontainerwidth + 'px',
|
|
77
|
+
// height: sectionproperties.iconcontainerheight + 'px',
|
|
78
|
+
// borderRadius: sectionproperties.iconcontainerborderbl + 'px',
|
|
79
|
+
// color: sectionproperties.iconcontainercolor,
|
|
80
|
+
// background: sectionproperties.iconcontainerbg,
|
|
81
|
+
// ':hover': {
|
|
82
|
+
// background: sectionproperties.navigationtextcoloronhover,
|
|
83
|
+
// },
|
|
84
|
+
// }),
|
|
85
|
+
sidenav_active: css({
|
|
86
|
+
// color: sectionproperties.navigationtextactivecolor,
|
|
87
|
+
background: sectionproperties.activepagebgcolor,
|
|
88
|
+
':after': {
|
|
89
|
+
backgroundColor: sectionproperties.navigationtextactivecolor,
|
|
90
|
+
},
|
|
91
|
+
}),
|
|
92
|
+
activeicon: css({
|
|
93
|
+
background: sectionproperties.navigationtextactivecolor,
|
|
94
|
+
}),
|
|
95
|
+
sidenavtext_active: css({
|
|
96
|
+
color: sectionproperties.navigationtextactivecolor,
|
|
97
|
+
}),
|
|
98
|
+
};
|
|
99
|
+
const [tabsarray, settabsarray] = useState([
|
|
100
|
+
{
|
|
101
|
+
tabname: lang.accountinformation,
|
|
102
|
+
route: StaticPagesLinksContext.accountinfo,
|
|
103
|
+
ischecked: currentchecked == 'accountinfo' ? true : false,
|
|
104
|
+
icon: (
|
|
105
|
+
<i className="h-100 d-flex align-items-center justify-content-center">
|
|
106
|
+
<AiOutlineUser size={15} />
|
|
107
|
+
</i>
|
|
108
|
+
),
|
|
109
|
+
Isvisible: authdetailsContext?.loggedin,
|
|
110
|
+
shown: true,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
tabname: lang.previousorders,
|
|
114
|
+
route: StaticPagesLinksContext.Ordershistory,
|
|
115
|
+
ischecked: currentchecked == 'previousorders' ? true : false,
|
|
116
|
+
icon: (
|
|
117
|
+
<i className="h-100 d-flex align-items-center justify-content-center">
|
|
118
|
+
<FiShoppingCart />
|
|
119
|
+
</i>
|
|
120
|
+
),
|
|
121
|
+
Isvisible: authdetailsContext.loggedin,
|
|
122
|
+
shown: true,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
tabname: lang.policies,
|
|
126
|
+
route: StaticPagesLinksContext.Policies,
|
|
127
|
+
ischecked: currentchecked == 'Policies' ? true : false,
|
|
128
|
+
icon: (
|
|
129
|
+
<i className="h-100 d-flex align-items-center justify-content-center">
|
|
130
|
+
<AiOutlineSecurityScan />
|
|
131
|
+
</i>
|
|
132
|
+
),
|
|
133
|
+
Isvisible: true,
|
|
134
|
+
shown: true,
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
route: StaticPagesLinksContext.Wishlist,
|
|
138
|
+
tabname: lang.wishlist,
|
|
139
|
+
ischecked: currentchecked == 'Wishlist' ? true : false,
|
|
140
|
+
icon: (
|
|
141
|
+
<i className="h-100 d-flex align-items-center justify-content-center">
|
|
142
|
+
<FaStar />
|
|
143
|
+
</i>
|
|
144
|
+
),
|
|
145
|
+
Isvisible: true,
|
|
146
|
+
shown: true,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
route: StaticPagesLinksContext.viewcart,
|
|
150
|
+
tabname: lang.viewcart,
|
|
151
|
+
ischecked: currentchecked == 'Viewcart' ? true : false,
|
|
152
|
+
icon: (
|
|
153
|
+
<i className="h-100 d-flex align-items-center justify-content-center">
|
|
154
|
+
<FaStar />
|
|
155
|
+
</i>
|
|
156
|
+
),
|
|
157
|
+
Isvisible: true,
|
|
158
|
+
shown: sectionproperties.cartBtnShow == 'Show' ? true : false,
|
|
159
|
+
},
|
|
160
|
+
]);
|
|
161
|
+
|
|
162
|
+
return (
|
|
163
|
+
<div className="row ml-0 mr-0 w-100">
|
|
164
|
+
<div className="col-lg-12 p-0">
|
|
165
|
+
{sectionproperties.length != 0 && (
|
|
166
|
+
<div className="row ml-0 mr-0 w-100">
|
|
167
|
+
{/* {navigationstyle == 'Side Navigation' && (
|
|
168
|
+
<div className="col-lg-12 p-0">
|
|
169
|
+
<div className={staticroutersidenav.vertical_nav_menu + ' w-100 pb-3 pl-3 pr-3 p-md-0 '}>
|
|
170
|
+
{tabsarray.map((item, index) => {
|
|
171
|
+
var activeclass = '';
|
|
172
|
+
var activeclass2 = '';
|
|
173
|
+
var activeicon = '';
|
|
174
|
+
if (item.ischecked) {
|
|
175
|
+
activeclass = styles.sidenav_active;
|
|
176
|
+
activeclass2 = staticroutersidenav.sidenav_active;
|
|
177
|
+
activeicon = styles.activeicon;
|
|
178
|
+
}
|
|
179
|
+
if (item.Isvisible && item.shown) {
|
|
180
|
+
return (
|
|
181
|
+
<div
|
|
182
|
+
className="row m-0 w-100 "
|
|
183
|
+
onClick={() => {
|
|
184
|
+
routingcountext(item.route);
|
|
185
|
+
}}
|
|
186
|
+
>
|
|
187
|
+
<li className="col-lg-12 col-md-12 col-sm-12 d-flex justify-content-start align-items-center p-0 w-100 ">
|
|
188
|
+
<li
|
|
189
|
+
className={
|
|
190
|
+
`${staticroutersidenav.sidebar_item} ${styles.sidebar_item} ${activeclass} ${activeclass2}` +
|
|
191
|
+
' w-100 d-flex justify-content-start align-items-center '
|
|
192
|
+
}
|
|
193
|
+
>
|
|
194
|
+
<p
|
|
195
|
+
className={
|
|
196
|
+
langdetect == 'en'
|
|
197
|
+
? `${styles.sidenav_icon_cont} ${staticroutersidenav.sidenav_icon_cont} ${activeicon}` + ' mr-2 p-0 m-0 '
|
|
198
|
+
: `${styles.sidenav_icon_cont} ${staticroutersidenav.sidenav_icon_cont} ${activeicon}` + ' ml-2 p-0 m-0 '
|
|
199
|
+
}
|
|
200
|
+
>
|
|
201
|
+
{item.icon}
|
|
202
|
+
</p>
|
|
203
|
+
<p className={`${styles.sidenav_page_name} ${staticroutersidenav.sidenav_page_name}` + ' p-0 m-0 '}>{item.tabname}</p>
|
|
204
|
+
</li>
|
|
205
|
+
</li>
|
|
206
|
+
<div className="col-lg-12">
|
|
207
|
+
<hr className="mt-2 mb-2" />
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
})}
|
|
213
|
+
</div>
|
|
214
|
+
<div className="col-lg-12 p-0 d-flex align-items-center justify-content-center mt-3">
|
|
215
|
+
<div
|
|
216
|
+
onClick={() => {
|
|
217
|
+
routingcountext(StaticPagesLinksContext.viewcart);
|
|
218
|
+
}}
|
|
219
|
+
>
|
|
220
|
+
<button className={`${styles.generalbtn}` + ' d-flex align-items-center justify-content-center '}>
|
|
221
|
+
<FiShoppingCart size={18} className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
|
|
222
|
+
{langdetect == 'en' ? 'My Cart' : 'حقيبة التسوق'}
|
|
223
|
+
</button>
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
)} */}
|
|
228
|
+
{/* {navigationstyle == 'Upper Navigation' && ( */}
|
|
229
|
+
<div className="col-lg-12 d-flex justify-content-center p-0">
|
|
230
|
+
<div className={staticroutersidenav.horizontal_nav_menu + ' row m-0 w-100 justify-content-center justify-content-between '}>
|
|
231
|
+
{tabsarray.map((item, index) => {
|
|
232
|
+
var activeclass = '';
|
|
233
|
+
var lastchild = '';
|
|
234
|
+
var textactiveclass = '';
|
|
235
|
+
if (item.ischecked) {
|
|
236
|
+
activeclass = styles.sidenav_active;
|
|
237
|
+
textactiveclass = styles.sidenavtext_active;
|
|
238
|
+
}
|
|
239
|
+
if (index == tabsarray.length - 1) {
|
|
240
|
+
lastchild = staticroutersidenav.sidebar_itemlastchild;
|
|
241
|
+
}
|
|
242
|
+
if (item.Isvisible && item.shown) {
|
|
243
|
+
return (
|
|
244
|
+
<div
|
|
245
|
+
onClick={() => {
|
|
246
|
+
routingcountext(item.route);
|
|
247
|
+
}}
|
|
248
|
+
className={
|
|
249
|
+
langdetect == 'en'
|
|
250
|
+
? `${staticroutersidenav.sidebar_item} ${styles.sidebar_item} ${activeclass} ${lastchild}` +
|
|
251
|
+
' justify-content-center align-items-center mr-3 mb-3 cursor-pointer '
|
|
252
|
+
: `${staticroutersidenav.sidebar_item} ${styles.sidebar_item} ${activeclass} ${lastchild}` +
|
|
253
|
+
' justify-content-center align-items-center ml-3 mb-3 cursor-pointer '
|
|
254
|
+
}
|
|
255
|
+
style={{ flex: 1, height: '55px' }}
|
|
256
|
+
>
|
|
257
|
+
<p
|
|
258
|
+
className={
|
|
259
|
+
`${styles.sidenav_page_name} ${staticroutersidenav.sidenav_page_name} ${textactiveclass}` +
|
|
260
|
+
' p-0 d-flex justify-content-center align-items-center h-100 text-uppercase wordbreak-noellipsis '
|
|
261
|
+
}
|
|
262
|
+
style={{ fontSize: '13px' }}
|
|
263
|
+
>
|
|
264
|
+
{item.tabname}
|
|
265
|
+
</p>
|
|
266
|
+
</div>
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
})}
|
|
270
|
+
</div>
|
|
271
|
+
</div>
|
|
272
|
+
{/* )} */}
|
|
273
|
+
</div>
|
|
274
|
+
)}
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
);
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export default Staticpagesrouter;
|