tabexseriescomponents 0.0.73 → 0.0.74
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 +337 -225
- package/dist/index.esm.js +343 -231
- package/dist/index.umd.js +340 -229
- package/package.json +1 -1
- package/src-aya/Contexts/LanguageContext.jsx +0 -369
- package/src-aya/Contexts/ProductsCardsSectionContext.jsx +0 -28
- package/src-aya/StylesJS/Customstyles.js +0 -235
- package/src-aya/TabexComponents/Cards/Card20/Card20.jsx +0 -288
- package/src-aya/TabexComponents/Cards/Card21/Card21.jsx +0 -386
- package/src-aya/TabexComponents/Cards/Card22/Card22.jsx +0 -289
- package/src-aya/TabexComponents/Cards/Card23/Card23.jsx +0 -355
- package/src-aya/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -393
- package/src-aya/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -168
- package/src-aya/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -243
- package/src-aya/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -202
- package/src-aya/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -174
- package/src-aya/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -182
- package/src-aya/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -158
- package/src-aya/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -189
- package/src-aya/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -150
- package/src-aya/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -271
- package/src-aya/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -538
- package/src-aya/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -491
- package/src-aya/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -469
- package/src-aya/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
- package/src-aya/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -272
- package/src-aya/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -295
- package/src-aya/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -289
- package/src-aya/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
- package/src-aya/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -288
- package/src-aya/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -328
- package/src-aya/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -509
- package/src-aya/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -272
- package/src-aya/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
- package/src-aya/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -133
- package/src-aya/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -125
- package/src-aya/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -292
- package/src-aya/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -336
- package/src-aya/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -429
- package/src-aya/TabexComponents/Footer/Footer1/Footer1.jsx +0 -416
- package/src-aya/TabexComponents/Footer/Footer2/Footer2.jsx +0 -381
- package/src-aya/TabexComponents/Footer/Footer3/Footer3.jsx +0 -302
- package/src-aya/TabexComponents/Footer/Footer4/Footer4.jsx +0 -437
- package/src-aya/TabexComponents/Footer/Footer5/Footer5.jsx +0 -488
- package/src-aya/TabexComponents/Footer/Footer6/Footer6.jsx +0 -286
- package/src-aya/TabexComponents/Footer/Footer7/Footer7.jsx +0 -370
- package/src-aya/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -231
- package/src-aya/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/src-aya/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -822
- package/src-aya/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -841
- package/src-aya/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -677
- package/src-aya/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -707
- package/src-aya/TabexComponents/Headers/Header4/Header4.jsx +0 -614
- package/src-aya/TabexComponents/Headers/Header6/Header6.jsx +0 -631
- package/src-aya/TabexComponents/Headers/Header8/Header8.jsx +0 -815
- package/src-aya/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -709
- package/src-aya/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -770
- package/src-aya/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -669
- package/src-aya/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -919
- package/src-aya/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -687
- package/src-aya/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -813
- package/src-aya/TabexComponents/Headers/Subheader/Subheader.jsx +0 -248
- package/src-aya/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -926
- package/src-aya/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -168
- package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -346
- package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -304
- package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
- package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -271
- package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -130
- package/src-aya/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -200
- package/src-aya/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -153
- package/src-aya/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
- package/src-aya/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -409
- package/src-aya/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -768
- package/src-aya/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -483
- package/src-aya/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.jsx +0 -663
- package/src-aya/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
- package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Arrows.js +0 -94
- package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Cardsection10.js +0 -741
- package/src-aya/TabexComponents/Sections/Cards/Cardsection100/Cardsection10.js +0 -430
- package/src-aya/TabexComponents/Sections/Cards/Cardsection100/burger.jpg +0 -0
- package/src-aya/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -473
- package/src-aya/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -523
- package/src-aya/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -502
- package/src-aya/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -276
- package/src-aya/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -160
- package/src-aya/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -176
- package/src-aya/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -139
- package/src-aya/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -140
- package/src-aya/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -201
- package/src-aya/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -125
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -139
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -215
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -202
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +0 -91
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -277
- package/src-aya/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -260
- package/src-aya/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -458
- package/src-aya/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -216
- package/src-aya/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
- package/src-aya/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
- package/src-aya/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
- package/src-aya/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
- package/src-aya/TabexComponents/StaticPages/Login/Login.jsx +0 -283
- package/src-aya/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
- package/src-aya/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1271
- package/src-aya/TabexComponents/StaticPages/Policies/Policies.jsx +0 -353
- package/src-aya/TabexComponents/StaticPages/Productinfo/Iteminfo.js +0 -1287
- package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.js +0 -710
- package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1457
- package/src-aya/TabexComponents/StaticPages/Productinfo/Serviceinfo.js +0 -804
- package/src-aya/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -206
- package/src-aya/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -791
- package/src-aya/TabexComponents/StaticPages/Signup/Signup.jsx +0 -155
- package/src-aya/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -279
- package/src-aya/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -1048
- package/src-aya/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -606
- package/src-aya/assets/images/appstore.png +0 -0
- package/src-aya/assets/images/cod.png +0 -0
- package/src-aya/assets/images/egyptflag.png +0 -0
- package/src-aya/assets/images/fawry.png +0 -0
- package/src-aya/assets/images/googleplay.png +0 -0
- package/src-aya/assets/images/payment.png +0 -0
- package/src-aya/assets/images/paymob.png +0 -0
- package/src-aya/assets/images/paypal.png +0 -0
- package/src-aya/assets/images/shoppingcart.png +0 -0
- package/src-aya/assets/images/usflag.png +0 -0
- package/src-aya/assets/images/visa.png +0 -0
- package/src-aya/assets/images/whatsapp.png +0 -0
- package/src-aya/button.jsx +0 -40
- package/src-aya/index.jsx +0 -222
- package/src-aya/styles/Home.module.css +0 -129
- package/src-aya/styles/cards/Categorcycard_fullimage.module.css +0 -10
- package/src-aya/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
- package/src-aya/styles/cards/Categorycard_withshapes.module.css +0 -189
- package/src-aya/styles/cards/ModernCardWithQuantityButton.module.css +0 -34
- package/src-aya/styles/cards/Productcard6.module.css +0 -9
- package/src-aya/styles/cards/Productcard_with_circularbg.module.css +0 -137
- package/src-aya/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
- package/src-aya/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
- package/src-aya/styles/cards/categorycard.module.css +0 -85
- package/src-aya/styles/cards/categorycard3.module.css +0 -50
- package/src-aya/styles/cards/categorycardwithtext.module.css +0 -40
- package/src-aya/styles/cards/productcard_animatedbuttons.module.css +0 -127
- package/src-aya/styles/cards/productcard_with_textonhover.module.css +0 -12
- package/src-aya/styles/cards/productccard_with_imageontopleft.module.css +0 -85
- package/src-aya/styles/general/bootstrap.css +0 -4562
- package/src-aya/styles/general/dropdown.css +0 -206
- package/src-aya/styles/general/editorbardropdown.module.css +0 -94
- package/src-aya/styles/general/filter.module.css +0 -108
- package/src-aya/styles/general/form.module.css +0 -273
- package/src-aya/styles/general/general.module.css +0 -861
- package/src-aya/styles/general/image-gallery.css +0 -481
- package/src-aya/styles/general/react-accessible-accordion.module.css +0 -52
- package/src-aya/styles/general/react-phone-input-2.module.css +0 -927
- package/src-aya/styles/general/scrollbtn.module.css +0 -22
- package/src-aya/styles/general/slick.module.css +0 -166
- package/src-aya/styles/general/tabs.module.css +0 -110
- package/src-aya/styles/general/workplaceeditor.module.css +0 -328
- package/src-aya/styles/globals.css +0 -26
- package/src-aya/styles/headers/CTAHeader.module.css +0 -40
- package/src-aya/styles/headers/CategoryFeaturingHeader.module.css +0 -61
- package/src-aya/styles/headers/Gotoheader.module.css +0 -91
- package/src-aya/styles/headers/Header7.module.css +0 -50
- package/src-aya/styles/headers/Header_threesectionslogocentered.module.css +0 -96
- package/src-aya/styles/headers/Sideheader.module.css +0 -108
- package/src-aya/styles/headers/classicheader.module.css +0 -16
- package/src-aya/styles/headers/classicheaderstyles.module.css +0 -16
- package/src-aya/styles/headers/dropdown.css +0 -0
- package/src-aya/styles/headers/header4.module.css +0 -175
- package/src-aya/styles/headers/header5.module.css +0 -30
- package/src-aya/styles/headers/header6.module.css +0 -102
- package/src-aya/styles/headers/header_contactinfo.module.css +0 -66
- package/src-aya/styles/headers/headerresturant.module.css +0 -89
- package/src-aya/styles/headers/modernheader.module.css +0 -72
- package/src-aya/styles/headers/stylishheader.module.css +0 -24
- package/src-aya/styles/headers/subheader.module.css +0 -114
- package/src-aya/styles/headers/threetieredheader.module.css +0 -91
- package/src-aya/styles/sections/BackgroundImageWithTopContent.css +0 -4
- package/src-aya/styles/sections/Backgroundimage1.module.css +0 -17
- package/src-aya/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
- package/src-aya/styles/sections/Section_with_rightbgcont.module.css +0 -49
- package/src-aya/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
- package/src-aya/styles/sections/Slideshow_with_squarebg.module.css +0 -39
- package/src-aya/styles/staticpages/accordion.module.css +0 -9
- package/src-aya/styles/staticpages/cart.module.css +0 -108
- package/src-aya/styles/staticpages/dropdown.css +0 -196
- package/src-aya/styles/staticpages/filter.module.css +0 -139
- package/src-aya/styles/staticpages/image-gallery.css +0 -481
- package/src-aya/styles/staticpages/login.module.css +0 -113
- package/src-aya/styles/staticpages/productinfo.module.css +0 -54
- package/src-aya/styles/staticpages/shop.module.css +0 -191
- package/src-aya/styles/staticpages/signup.module.css +0 -206
- package/src-aya/styles/staticpages/staticroutersidenav.module.css +0 -129
- package/src-aya/styles/staticpages/viewcart.module.css +0 -129
- package/src-aya/styles/staticpages/wishlist.module.css +0 -29
- package/src-aya/styles.rar +0 -0
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
import headerstyles from '../../../styles/headers/subheader.module.css';
|
|
3
|
-
import { css } from 'glamor';
|
|
4
|
-
import { MdOutlineLayersClear } from 'react-icons/md';
|
|
5
|
-
const Subheader = (props) => {
|
|
6
|
-
const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
7
|
-
const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
8
|
-
const fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
|
|
9
|
-
const routingcountext = props.actions.routingcountext;
|
|
10
|
-
const langdetect = props.actions.langdetect;
|
|
11
|
-
const lang = props.actions.lang;
|
|
12
|
-
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
13
|
-
const templatepropcontext = props.actions.templatepropcontext;
|
|
14
|
-
const history = props.actions.history;
|
|
15
|
-
const [showdownheadermenu, setshowdownheadermenu] = useState(false);
|
|
16
|
-
const [Choosenindex, setChoosenindex] = useState('');
|
|
17
|
-
const [sectionproperties, setsectionproperties] = useState({});
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
|
|
20
|
-
tempFetchQueriesEngineContext.categories = true;
|
|
21
|
-
setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
|
|
22
|
-
}, []);
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
if (props.sectionpropertiesprops != undefined) {
|
|
25
|
-
setsectionproperties({ ...props?.sectionpropertiesprops });
|
|
26
|
-
}
|
|
27
|
-
}, [props.sectionpropertiesprops]);
|
|
28
|
-
|
|
29
|
-
const header_cssstyles = {
|
|
30
|
-
parentcollection: css({
|
|
31
|
-
color: sectionproperties.subheader_collectiontitle_fontColor,
|
|
32
|
-
fontSize: sectionproperties.subheader_collectiontitle_fontSize + 'px',
|
|
33
|
-
textTransform: sectionproperties.subheader_collectiontitle_textTransform,
|
|
34
|
-
fontWeight: sectionproperties.subheader_collectiontitle_textfontweight,
|
|
35
|
-
transition: '.3s',
|
|
36
|
-
':hover': {
|
|
37
|
-
color: sectionproperties.subheader_collectiontitle_coloronhover,
|
|
38
|
-
},
|
|
39
|
-
}),
|
|
40
|
-
subheader_category: css({
|
|
41
|
-
// Title: Category Name Styles
|
|
42
|
-
color: sectionproperties.subheader_categorytitle_fontColor,
|
|
43
|
-
fontSize: sectionproperties.subheader_categorytitle_fontSize + 'px',
|
|
44
|
-
textTransform: sectionproperties.subheader_categorytitle_textTransform,
|
|
45
|
-
fontWeight: sectionproperties.subheader_categorytitle_textfontweight,
|
|
46
|
-
transition: '.3s',
|
|
47
|
-
':hover': {
|
|
48
|
-
color: sectionproperties.subheader_categorytitle_coloronhover,
|
|
49
|
-
},
|
|
50
|
-
}),
|
|
51
|
-
subheader_collectiontitle: css({
|
|
52
|
-
color: sectionproperties.collectionsectiontextcolor,
|
|
53
|
-
fontSize: sectionproperties.collectionsectiontextfontsize + 'px',
|
|
54
|
-
textTransform: sectionproperties.collectionsectiontexttransform,
|
|
55
|
-
fontWeight: sectionproperties.collectionsectiontextfontweight,
|
|
56
|
-
transition: '.3s',
|
|
57
|
-
':hover': {
|
|
58
|
-
color: sectionproperties.collectionsectiontextcoloronhover,
|
|
59
|
-
},
|
|
60
|
-
}),
|
|
61
|
-
dropdownmenu: css({
|
|
62
|
-
// Title: Subheader Dropdown Styles
|
|
63
|
-
background: sectionproperties.subheader_dropdown_bgcolor,
|
|
64
|
-
border: sectionproperties.subheader_dropdown_borderWidth + 'px solid ' + sectionproperties.subheader_dropdown_borderColor,
|
|
65
|
-
borderRadius: sectionproperties.subheader_dropdown_borderRadius + 'px',
|
|
66
|
-
boxShadow: sectionproperties.subheader_dropdown_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.subheader_dropdown_shadowColor : '',
|
|
67
|
-
}),
|
|
68
|
-
};
|
|
69
|
-
return (
|
|
70
|
-
<div
|
|
71
|
-
class={
|
|
72
|
-
props.subheaderpropertiesprops?.subheaderpositionprops == 'in nav'
|
|
73
|
-
? `${headerstyles.sub_outercontainer}` + ' ml-0 mr-0 '
|
|
74
|
-
: `${headerstyles.sub_outercontainer}` + ' row ml-0 mr-0 w-100 mt-md-3 pl-sm-2 pr-sm-2 '
|
|
75
|
-
}
|
|
76
|
-
style={{
|
|
77
|
-
background: sectionproperties.subheaderbgtransparent == 'Transparent' ? 'transparent' : sectionproperties.subheaderbg,
|
|
78
|
-
zIndex: 200,
|
|
79
|
-
flex: 1,
|
|
80
|
-
paddingLeft: langdetect == 'en' ? sectionproperties.subheader_paddingLeft + 'px' : sectionproperties.subheader_paddingRight + 'px',
|
|
81
|
-
paddingRight: langdetect == 'en' ? sectionproperties.subheader_paddingRight + 'px' : sectionproperties.subheader_paddingLeft + 'px',
|
|
82
|
-
}}
|
|
83
|
-
>
|
|
84
|
-
{sectionproperties != undefined && sectionproperties.length != 0 && (
|
|
85
|
-
<div class={`${headerstyles.sub_container}` + ' w-100 p-md-0 '}>
|
|
86
|
-
{fetchCategoriesQueryContext.isSuccess && fetchCategoriesQueryContext.data.data.status && (
|
|
87
|
-
<div
|
|
88
|
-
class={` ${headerstyles.subheader}` + ' row w-100 m-0 d-flex flex-row align-items-center w-sm-100 '}
|
|
89
|
-
style={{
|
|
90
|
-
position: 'relative',
|
|
91
|
-
}}
|
|
92
|
-
>
|
|
93
|
-
{props?.subheaderpositionprops == 'Full Width' && (
|
|
94
|
-
<div
|
|
95
|
-
class="col-lg 12 p-0 allcentered"
|
|
96
|
-
style={{
|
|
97
|
-
background: sectionproperties.subheaderbgtransparent == 'Transparent' ? 'transparent' : sectionproperties.subheaderbg,
|
|
98
|
-
}}
|
|
99
|
-
>
|
|
100
|
-
<div
|
|
101
|
-
style={{
|
|
102
|
-
background: sectionproperties.upperseparatorbgcolor,
|
|
103
|
-
width: sectionproperties.upperseparatorwidth + '%',
|
|
104
|
-
height: sectionproperties.upperseparatorheight + 'px',
|
|
105
|
-
}}
|
|
106
|
-
/>
|
|
107
|
-
</div>
|
|
108
|
-
)}
|
|
109
|
-
<div
|
|
110
|
-
class="col-lg-12 m-auto d-flex flex-column align-items-center justify-content-center p-0"
|
|
111
|
-
style={{
|
|
112
|
-
borderBottom: sectionproperties.separator_borderwidth + 'px solid ' + sectionproperties.separator_bgcolor,
|
|
113
|
-
paddingTop: sectionproperties.subheader_margintop + 'px',
|
|
114
|
-
paddingBottom: sectionproperties.subheader_marginbottom + 'px',
|
|
115
|
-
}}
|
|
116
|
-
>
|
|
117
|
-
<div
|
|
118
|
-
class={`${headerstyles.nav__item}` + ' scrollhorizontal flex-row align-items-center w-md-100 justify-content-md-center '}
|
|
119
|
-
style={{
|
|
120
|
-
zIndex: 1000,
|
|
121
|
-
justifyContent: props.subheaderpropertiesprops?.subheadercontentpositionprops == 'center' ? 'center' : langdetect == 'en' ? 'start' : 'end',
|
|
122
|
-
}}
|
|
123
|
-
>
|
|
124
|
-
{props?.subheaderpropertiesprops?.subheaderpositionprops == 'in nav' &&
|
|
125
|
-
templatepropcontext?.pagesnprop?.map((item, index) => {
|
|
126
|
-
if (item.isnavigation == 1 && item.isactive == 1) {
|
|
127
|
-
return (
|
|
128
|
-
<div
|
|
129
|
-
onClick={() => {
|
|
130
|
-
history.push(item.navigationroute);
|
|
131
|
-
}}
|
|
132
|
-
class="scrollhorizontalcard"
|
|
133
|
-
style={{
|
|
134
|
-
marginLeft: langdetect == 'ar' ? props?.subheaderpropertiesprops?.paddingLeftprops : 0,
|
|
135
|
-
marginRight: langdetect == 'en' ? props?.subheaderpropertiesprops?.paddingRightprops : 0,
|
|
136
|
-
}}
|
|
137
|
-
>
|
|
138
|
-
<p
|
|
139
|
-
class={`${headerstyles.link} ${header_cssstyles.subheader_category}` + ' mb-0 p-0 ml-md-3 mr-md-3 '}
|
|
140
|
-
onClick={() => {
|
|
141
|
-
templatepropcontext?.pagesnprop.forEach(function (pageitem, pageindex) {
|
|
142
|
-
pageitem.isselected = false;
|
|
143
|
-
});
|
|
144
|
-
templatepropcontext.pagesnprop[index].isselected = true;
|
|
145
|
-
}}
|
|
146
|
-
>
|
|
147
|
-
{langdetect == 'en' ? item.pagename : item.pagename_ar}
|
|
148
|
-
</p>
|
|
149
|
-
</div>
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
|
-
})}
|
|
153
|
-
{fetchCategoriesQueryContext?.data?.data?.categories.map((item, index) => (
|
|
154
|
-
<p
|
|
155
|
-
class={`${headerstyles.link} ${header_cssstyles.subheader_category}` + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard '}
|
|
156
|
-
onClick={() => {}}
|
|
157
|
-
onMouseEnter={() => {
|
|
158
|
-
setshowdownheadermenu(true);
|
|
159
|
-
setChoosenindex(index);
|
|
160
|
-
}}
|
|
161
|
-
style={{
|
|
162
|
-
marginLeft: langdetect == 'ar' ? props.subheaderpropertiesprops?.paddingLeftprops : 0,
|
|
163
|
-
marginRight: langdetect == 'en' ? props.subheaderpropertiesprops?.paddingRightprops : 0,
|
|
164
|
-
}}
|
|
165
|
-
>
|
|
166
|
-
{langdetect == 'en' ? item.title_en : item.title_ar}
|
|
167
|
-
</p>
|
|
168
|
-
))}
|
|
169
|
-
</div>
|
|
170
|
-
</div>
|
|
171
|
-
{Choosenindex.length != 0 && fetchCategoriesQueryContext?.data?.data?.categories[Choosenindex]?.parentcolletions?.length != 0 && (
|
|
172
|
-
<div
|
|
173
|
-
class={
|
|
174
|
-
`${headerstyles.dropmenu} ${header_cssstyles.dropdownmenu} ${showdownheadermenu ? 'd-flex' : 'd-none'}` +
|
|
175
|
-
' col-lg-12 ml-auto mr-auto flex-row justify-content-center align-items-center '
|
|
176
|
-
}
|
|
177
|
-
onMouseLeave={() => {
|
|
178
|
-
setshowdownheadermenu(false);
|
|
179
|
-
}}
|
|
180
|
-
style={{
|
|
181
|
-
width: '95%',
|
|
182
|
-
zIndex: 2000,
|
|
183
|
-
position: props.subheaderpropertiesprops?.subheaderpositionprops == 'in nav' ? 'absolute' : '',
|
|
184
|
-
top: props.subheaderpropertiesprops?.subheaderpositionprops == 'in nav' ? 20 : '',
|
|
185
|
-
}}
|
|
186
|
-
>
|
|
187
|
-
<div class="row m-0 w-100 d-flex pl-2 pr-2 pt-3 pb-3">
|
|
188
|
-
{fetchCategoriesQueryContext?.data?.data?.categories[Choosenindex]?.parentcolletions?.length == 0 && (
|
|
189
|
-
<div class="col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5">
|
|
190
|
-
<MdOutlineLayersClear size={30} />
|
|
191
|
-
<p class="font-16 font-weight-500 m-0 p-0">{langdetect == 'en' ? 'No collections' : 'لا توجد مجموعات'}</p>
|
|
192
|
-
</div>
|
|
193
|
-
)}
|
|
194
|
-
{fetchCategoriesQueryContext?.data?.data?.categories[Choosenindex]?.parentcolletions.map((item, index) => (
|
|
195
|
-
<div class="col-lg-3 pl-2 pr-2 col-md-6 col-sm-12 mb-md-4" style={{ cursor: 'pointer' }}>
|
|
196
|
-
<div class="row w-100 m-0 d-flex flex-column justify-content-center mb-2">
|
|
197
|
-
<div
|
|
198
|
-
class="col-lg-12 p-0 mb-2"
|
|
199
|
-
onClick={() => {
|
|
200
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.parentcollectionid);
|
|
201
|
-
}}
|
|
202
|
-
>
|
|
203
|
-
<p
|
|
204
|
-
class={`${header_cssstyles.parentcollection}` + ' wordbreak m-0 p-0 '}
|
|
205
|
-
style={{
|
|
206
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
207
|
-
}}
|
|
208
|
-
>
|
|
209
|
-
{langdetect == 'en' ? item.title_en : item.title_ar}
|
|
210
|
-
</p>
|
|
211
|
-
</div>
|
|
212
|
-
{item.collections.map((item, index) => (
|
|
213
|
-
<div
|
|
214
|
-
class="col-lg-12 p-0 mb-2"
|
|
215
|
-
onClick={() => {
|
|
216
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
217
|
-
}}
|
|
218
|
-
>
|
|
219
|
-
<p
|
|
220
|
-
class={`${header_cssstyles.subheader_collectiontitle}` + ' wordbreak m-0 p-0 '}
|
|
221
|
-
style={{
|
|
222
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
223
|
-
}}
|
|
224
|
-
>
|
|
225
|
-
{langdetect == 'en' ? item.title_en : item.title_ar}
|
|
226
|
-
</p>
|
|
227
|
-
</div>
|
|
228
|
-
))}
|
|
229
|
-
{(index != item.collections.length) != 0 && (
|
|
230
|
-
<div class="col-lg-12 p-0 d-none d-sm-block">
|
|
231
|
-
<hr class="mt-3 mb-0" />
|
|
232
|
-
</div>
|
|
233
|
-
)}
|
|
234
|
-
</div>
|
|
235
|
-
</div>
|
|
236
|
-
))}
|
|
237
|
-
</div>
|
|
238
|
-
</div>
|
|
239
|
-
)}
|
|
240
|
-
</div>
|
|
241
|
-
)}
|
|
242
|
-
</div>
|
|
243
|
-
)}
|
|
244
|
-
</div>
|
|
245
|
-
);
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
export default Subheader;
|