tabexseriescomponents 0.0.63 → 0.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/dist/index.cjs.js +6859 -6478
  2. package/dist/index.esm.js +6862 -6481
  3. package/dist/index.umd.js +6862 -6482
  4. package/package.json +1 -1
  5. package/srcOLD/Contexts/LanguageContext.jsx +347 -0
  6. package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +28 -0
  7. package/srcOLD/StylesJS/Customstyles.js +235 -0
  8. package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +214 -0
  9. package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +258 -0
  10. package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +206 -0
  11. package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +176 -0
  12. package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +207 -0
  13. package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
  14. package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +193 -0
  15. package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +158 -0
  16. package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +286 -0
  17. package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +558 -0
  18. package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +486 -0
  19. package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +300 -0
  20. package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +288 -0
  21. package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +307 -0
  22. package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +295 -0
  23. package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +325 -0
  24. package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +290 -0
  25. package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +303 -0
  26. package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +466 -0
  27. package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +282 -0
  28. package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +298 -0
  29. package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +139 -0
  30. package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +135 -0
  31. package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +304 -0
  32. package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +291 -0
  33. package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
  34. package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +382 -0
  35. package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +308 -0
  36. package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +438 -0
  37. package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +495 -0
  38. package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +295 -0
  39. package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +373 -0
  40. package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +238 -0
  41. package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  42. package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
  43. package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  44. package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  45. package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  46. package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  47. package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  48. package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  49. package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  50. package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  51. package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  52. package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
  53. package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  54. package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +724 -0
  55. package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +687 -0
  56. package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +632 -0
  57. package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +669 -0
  58. package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +882 -0
  59. package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +754 -0
  60. package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +798 -0
  61. package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +686 -0
  62. package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +938 -0
  63. package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +706 -0
  64. package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +821 -0
  65. package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +228 -0
  66. package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +251 -0
  67. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
  68. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
  69. package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +138 -0
  70. package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +160 -0
  71. package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
  72. package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +784 -0
  73. package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +861 -0
  74. package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +496 -0
  75. package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
  76. package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
  77. package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +552 -0
  78. package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
  79. package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
  80. package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
  81. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +284 -0
  82. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
  83. package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
  84. package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
  85. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
  86. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
  87. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
  88. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +201 -0
  89. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +414 -0
  90. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +270 -0
  91. package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +175 -0
  92. package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +275 -0
  93. package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
  94. package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +146 -0
  95. package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
  96. package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
  97. package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
  98. package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  99. package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +299 -0
  100. package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
  101. package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1285 -0
  102. package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +358 -0
  103. package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1506 -0
  104. package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +225 -0
  105. package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +788 -0
  106. package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
  107. package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +295 -0
  108. package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
  109. package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +629 -0
  110. package/srcOLD/assets/images/cod.png +0 -0
  111. package/srcOLD/assets/images/egyptflag.png +0 -0
  112. package/srcOLD/assets/images/fawry.png +0 -0
  113. package/srcOLD/assets/images/payment.png +0 -0
  114. package/srcOLD/assets/images/paymob.png +0 -0
  115. package/srcOLD/assets/images/paypal.png +0 -0
  116. package/srcOLD/assets/images/shoppingcart.png +0 -0
  117. package/srcOLD/assets/images/usflag.png +0 -0
  118. package/srcOLD/assets/images/visa.png +0 -0
  119. package/srcOLD/assets/images/whatsapp.png +0 -0
  120. package/srcOLD/button.jsx +40 -0
  121. package/srcOLD/index.jsx +175 -0
  122. package/srcOLD/styles/Home.module.css +129 -0
  123. package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +10 -0
  124. package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  125. package/srcOLD/styles/cards/Categorycard_withshapes.module.css +189 -0
  126. package/srcOLD/styles/cards/Productcard6.module.css +9 -0
  127. package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +137 -0
  128. package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  129. package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  130. package/srcOLD/styles/cards/categorycard.module.css +102 -0
  131. package/srcOLD/styles/cards/categorycard3.module.css +51 -0
  132. package/srcOLD/styles/cards/categorycardwithtext.module.css +40 -0
  133. package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +104 -0
  134. package/srcOLD/styles/cards/productcard_with_textonhover.module.css +12 -0
  135. package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  136. package/srcOLD/styles/general/bootstrap.css +4420 -0
  137. package/srcOLD/styles/general/dropdown.css +199 -0
  138. package/srcOLD/styles/general/editorbardropdown.module.css +94 -0
  139. package/srcOLD/styles/general/filter.module.css +108 -0
  140. package/srcOLD/styles/general/form.module.css +273 -0
  141. package/srcOLD/styles/general/general.module.css +709 -0
  142. package/srcOLD/styles/general/image-gallery.css +481 -0
  143. package/srcOLD/styles/general/react-accessible-accordion.module.css +52 -0
  144. package/srcOLD/styles/general/react-phone-input-2.module.css +927 -0
  145. package/srcOLD/styles/general/scrollbtn.module.css +22 -0
  146. package/srcOLD/styles/general/slick.module.css +166 -0
  147. package/srcOLD/styles/general/tabs.module.css +110 -0
  148. package/srcOLD/styles/general/workplaceeditor.module.css +328 -0
  149. package/srcOLD/styles/globals.css +26 -0
  150. package/srcOLD/styles/headers/Allinoneheader.module.css +91 -0
  151. package/srcOLD/styles/headers/Header7.module.css +50 -0
  152. package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +97 -0
  153. package/srcOLD/styles/headers/Sideheader.module.css +108 -0
  154. package/srcOLD/styles/headers/classicheaderstyles.module.css +16 -0
  155. package/srcOLD/styles/headers/dropdown.css +0 -0
  156. package/srcOLD/styles/headers/header4.module.css +175 -0
  157. package/srcOLD/styles/headers/header5.module.css +30 -0
  158. package/srcOLD/styles/headers/header6.module.css +117 -0
  159. package/srcOLD/styles/headers/header_contactinfo.module.css +78 -0
  160. package/srcOLD/styles/headers/headerresturant.module.css +89 -0
  161. package/srcOLD/styles/headers/headerstyles.module.css +24 -0
  162. package/srcOLD/styles/headers/modernheader.module.css +78 -0
  163. package/srcOLD/styles/headers/subheader.module.css +114 -0
  164. package/srcOLD/styles/sections/Backgroundimage1.module.css +17 -0
  165. package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  166. package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +49 -0
  167. package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  168. package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  169. package/srcOLD/styles/staticpages/accordion.module.css +9 -0
  170. package/srcOLD/styles/staticpages/cart.module.css +108 -0
  171. package/srcOLD/styles/staticpages/dropdown.css +196 -0
  172. package/srcOLD/styles/staticpages/filter.module.css +139 -0
  173. package/srcOLD/styles/staticpages/login.module.css +146 -0
  174. package/srcOLD/styles/staticpages/productinfo.module.css +54 -0
  175. package/srcOLD/styles/staticpages/shop.module.css +191 -0
  176. package/srcOLD/styles/staticpages/signup.module.css +206 -0
  177. package/srcOLD/styles/staticpages/staticroutersidenav.module.css +129 -0
  178. package/srcOLD/styles/staticpages/viewcart.module.css +129 -0
  179. package/srcOLD/styles/staticpages/wishlist.module.css +29 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {
@@ -0,0 +1,347 @@
1
+ import React, { Component } from 'react';
2
+ import Cookies from 'universal-cookie';
3
+ export const LanguageContext = React.createContext();
4
+ export class LanguageProvider extends Component {
5
+ constructor(props) {
6
+ super(props);
7
+ this.state = {
8
+ lang: {
9
+ en: {
10
+ workinghours: 'Working Hours',
11
+ english: 'English',
12
+ arabic: 'Arabic',
13
+
14
+ hello: 'Hello',
15
+
16
+ // Static Pages
17
+ orderhistory: 'Previous orders',
18
+ policies: 'Policies',
19
+ wishlist: 'Wishlist',
20
+ mywishlist: 'My wishlist',
21
+ accountinformation: 'Account information',
22
+ account: 'Account',
23
+ viewcart: 'View cart',
24
+ cart: 'Cart',
25
+ myshoppingcart: 'My shopping cart',
26
+ previousorders: 'Previous orders',
27
+ checkout: 'Checkout',
28
+ mycart: 'My cart',
29
+ login: 'Login',
30
+ signup: 'Signup',
31
+
32
+ // General
33
+ inprogress: 'In progress',
34
+ status: 'Status',
35
+ excludingdelivery: 'Excluding delivery',
36
+ stayconnected: 'Stay connected',
37
+ availability: 'Availability',
38
+ available: 'Available',
39
+ limitedquantity: 'Limited quantity',
40
+ securepayment: 'Secure payment',
41
+ trustedshipping: 'Trusted shipping',
42
+ callus: 'CALL US',
43
+ returnpolicy: 'Return policy',
44
+ shippingpolicy: 'Shipping policy',
45
+ deliverto: 'Deliver to',
46
+ support247: 'Support 24/7',
47
+ select: 'Select',
48
+ usefullinks: 'Useful links',
49
+ helpcenter: 'Help center',
50
+ loggedinas: 'Logged in as',
51
+
52
+ // Buttons
53
+ logout: 'Logout',
54
+ addtocart: 'Add to cart',
55
+ addtofavorites: 'Add to favorites',
56
+ removefromfav: 'Remove from favorites',
57
+ description: 'Description',
58
+ showmore: 'Show more',
59
+ remove: 'Remove',
60
+ shopbycategory: 'shop by category',
61
+ confirmorder: 'Confirm Order',
62
+ continuetopayment: 'Continue To Payment',
63
+ doyouhavepromocode: 'Do you have a promo code?',
64
+ loginwithfacebook: 'Sign in with facebook',
65
+ orsigninwith: 'Or Sign in with',
66
+ orsignupwith: 'Or Sign up with',
67
+
68
+ // Products
69
+ price: 'Price',
70
+ relatedproducts: 'Related products',
71
+ qty: 'QTY',
72
+ emptyshoppingcart: 'Your shopping cart is empty',
73
+ shopnow: 'Shop now',
74
+ total: 'Total',
75
+ otherinformation: 'Other information',
76
+ productname: 'Product name',
77
+ quantity: 'Quantity',
78
+
79
+ // Orders
80
+ orderid: 'Order ID',
81
+ numberofproducts: 'Number of products',
82
+ checkyourorder: 'Check your order',
83
+
84
+ // Placeholders
85
+ searchproducts: 'Search for products...',
86
+ choosecity: 'Choose city',
87
+ choosestategov: 'Choose state/governorate',
88
+ choosecountry: 'Choose country',
89
+ giftcarddicountcode: 'Gift Card Or Discount Code...',
90
+ nosearchresults: 'No search results',
91
+ sale: 'Sale',
92
+
93
+ //
94
+ nofavoriteproducts: 'Your wishlist is empty',
95
+
96
+ // Notifications
97
+ loggedoutsuccess: 'Logged out successfully',
98
+ addedtocartsuccess: 'Cart is updated successfully',
99
+ promocodeapplied: 'Promo code is applied.',
100
+ promocoderemoved: 'Promo code is removed',
101
+ countryandstateupdatedsuccess: 'Country and state are updated successfully',
102
+ orderaddedsuccess: 'Order is added successfully',
103
+ addedtowishlist: 'Product is added to your wishlist',
104
+ productrmovedfromwishlist: 'Product is removed from your wishlist',
105
+ fillthemissingfields: 'Please complete the missing fields',
106
+ passwordsdontmatch: "Passwords don't match",
107
+ loggedinsuccess: 'Logged in successfully',
108
+
109
+ // Checkout
110
+ subtotal: 'Sub total',
111
+ discount: 'Discount',
112
+ outofzone: 'Out of zone',
113
+ total: 'Total',
114
+ cod: 'Cash on Delivery',
115
+ cardondelivery: 'Credit Card On Delivery',
116
+ onlinepayment: 'Online Payment',
117
+ paymentcardinformation: 'Payment Card Information',
118
+ shippingfees: 'Shipping fees',
119
+ shippingaddress: 'Shipping address',
120
+ cardnumber: 'Card number',
121
+ year: 'Year',
122
+ month: 'Month',
123
+ cvv: 'CVV',
124
+ nameoncard: 'Name On Card',
125
+ country: 'Country',
126
+ addressdetails: 'ِAddress details',
127
+ stategov: 'State/Governorate',
128
+ city: 'City',
129
+ paymentmethod: 'Payment method',
130
+ productimage: 'Product image',
131
+ orderdetails: 'Order details',
132
+ orderinvoice: 'Order invoice',
133
+ promocodediscount: 'Promo code discount',
134
+ address: 'Address',
135
+ signup: 'Signup',
136
+ update: 'Update',
137
+ phonenumber: 'Mobile number',
138
+ completerequiredfields: 'Please complete all required fields',
139
+ name: 'Name',
140
+ email: 'Email',
141
+ password: 'Password',
142
+ confirmpassword: 'Confirm password',
143
+ showmore: 'Show more',
144
+ showless: 'Show less',
145
+ contactdetails: 'Contact Information',
146
+ asaguest: 'As a guest',
147
+ choosecountryfirst: 'Please choose country first',
148
+ security: 'Security',
149
+ personalinformation: 'Personal Information',
150
+ // Website design
151
+ contactus: 'Contact us',
152
+ slogan: 'Your website & mobile application in one place',
153
+ },
154
+
155
+ ar: {
156
+ workinghours: 'مواعيد العمل',
157
+ english: 'لغه إنجليزيه',
158
+ arabic: 'لغه عربيه',
159
+ hello: 'مرحبا',
160
+
161
+ // Static Pages
162
+ orderhistory: 'الطلبات السابقة',
163
+ policies: 'السياسات',
164
+ wishlist: 'المفضلات',
165
+ mywishlist: 'مفضلاتى',
166
+ accountinformation: 'الملف الشخصي',
167
+ account: 'الملف الشخصي',
168
+ viewcart: 'حقيبة التسوق',
169
+ cart: 'حقيبة التسوق',
170
+ myshoppingcart: 'حقيبة التسوق',
171
+ previousorders: 'الطلبات السابقة',
172
+ checkout: 'الدفع',
173
+ mycart: 'عربة التسوق',
174
+ login: 'تسجيل الدخول',
175
+ signup: 'إنشاء الحساب',
176
+
177
+ // General
178
+ inprogress: 'جارى',
179
+ status: 'الحالة',
180
+ excludingdelivery: 'غير شامل سعر الشحن',
181
+ stayconnected: 'ابق على اتصال بنا',
182
+ availability: 'توافر المنتج',
183
+ available: 'متوافر',
184
+ limitedquantity: 'كمية محدودة',
185
+ securepayment: 'دفع امن',
186
+ trustedshipping: 'شحن امن',
187
+ callus: 'إتصل بنا',
188
+ returnpolicy: 'سياسة الإستبدال و الإسترجاع',
189
+ shippingpolicy: 'سياسة الشحن',
190
+ deliverto: 'التوصيل إلى',
191
+ support247: 'متواجدون 24/7',
192
+ select: 'إختر',
193
+ usefullinks: 'روابط هامة',
194
+ helpcenter: 'مركز الخدمات',
195
+ loggedinas: 'البيانات المسجلة',
196
+
197
+ // Buttons
198
+ logout: 'تسجيل الخروج',
199
+ addtocart: 'اضف لسلة التسوق',
200
+ addtofavorites: 'اضف إلى المفضلات',
201
+ removefromfav: 'حذف من المفضلات',
202
+ description: 'التفاصيل',
203
+ showmore: 'تفاصيل اخري',
204
+ remove: 'حذف',
205
+ shopbycategory: 'تسوق بالمجموعات',
206
+ confirmorder: 'تأكيد الطلب',
207
+ continuetopayment: 'الدفع',
208
+ doyouhavepromocode: 'هل لديك كود خصم',
209
+ loginwithfacebook: 'تسجيل الدخول عن طريق فيسبوك',
210
+ orsigninwith: 'او تسجيل الدخول عن طريق',
211
+ orsignupwith: 'او انشاء حساب عن طريق',
212
+
213
+ // Products
214
+ price: 'السعر',
215
+ relatedproducts: 'منتجات ذات صلة',
216
+ qty: 'الكمية',
217
+ emptyshoppingcart: 'حقيبة التسوق فارغة',
218
+ shopnow: 'تسوق الان',
219
+ total: 'الإجمالى',
220
+ otherinformation: 'معلومات اخرى',
221
+ productname: 'إسم المنتج',
222
+ quantity: 'الكمية',
223
+
224
+ // Orders
225
+ orderid: 'رقم الطلب',
226
+ numberofproducts: 'عدد المنتجات',
227
+ checkyourorder: 'الذهاب إلى طلبك',
228
+
229
+ // Placeholders
230
+ searchproducts: 'ابحث...',
231
+ choosecity: 'إختر المدينة',
232
+ choosestategov: 'إختر المحافظة/الولاية',
233
+ choosecountry: 'إختر البلد',
234
+ giftcarddicountcode: 'كود خصم',
235
+ nosearchresults: 'لا توجد نتائج',
236
+ sale: 'خصم',
237
+ //
238
+ nofavoriteproducts: 'لا توجد منتجات مفضلة',
239
+
240
+ // Notifications
241
+ loggedoutsuccess: 'تم تسجيل الخروج',
242
+ addedtocartsuccess: 'تم إضافة المنتج لعربة التسوق',
243
+ promocodeapplied: 'تم تطبيق كود الخصم',
244
+ promocoderemoved: 'تم حذف كود الخصم',
245
+ countryandstateupdatedsuccess: 'تم تحديث البلد و المدينة',
246
+ orderaddedsuccess: 'تم إضافة الطلب',
247
+ addedtowishlist: 'تم إضافة المنتج فى المفضلات',
248
+ productrmovedfromwishlist: 'تم حذف المنتج من المفضلات',
249
+ fillthemissingfields: 'من فضلك اكمل باقى البيانات',
250
+ passwordsdontmatch: 'كلمات السر لا تتطابق',
251
+ loggedinsuccess: 'تم تسجيل الدخول',
252
+
253
+ // Checkout
254
+ subtotal: 'إجمالي المبلغ',
255
+ discount: 'الخصم',
256
+ outofzone: 'خارج نطاق الشحن',
257
+ total: 'المبلغ الكلي',
258
+ cod: 'الدفع عند الإستلام',
259
+ cardondelivery: 'الدفع بالطاقة الائتمانية عند الإستلام',
260
+ onlinepayment: 'الدفع الإلكترونى',
261
+ paymentcardinformation: 'بيانات البطاقة',
262
+ shippingfees: 'مصاريف الشحن',
263
+ shippingaddress: 'عنوان الشحن',
264
+ cardnumber: 'رقم البطاقة',
265
+ year: 'السنة',
266
+ month: 'الشهر',
267
+ cvv: 'رقم البطاقة',
268
+ nameoncard: 'الإسم على البطاقة',
269
+ country: 'البلد',
270
+ addressdetails: 'العنوان',
271
+ stategov: 'المحافظة/الولاية',
272
+ city: 'المدينة',
273
+ paymentmethod: 'طريقة الدفع',
274
+ productimage: 'صورة المنتج',
275
+ orderdetails: 'تفاصيل الطلب',
276
+ orderinvoice: 'فاتورة الطلب',
277
+ promocodediscount: 'كود الخصم',
278
+ address: 'العنوان',
279
+ signup: 'إنشاء الحساب',
280
+ update: 'تحديث',
281
+ phonenumber: 'الهاتف',
282
+ completerequiredfields: 'من فضلك اكمل البيانات الإجبارية',
283
+ name: 'الإسم',
284
+ email: 'البريد الإلكترونى',
285
+ password: 'كلمة السر',
286
+ confirmpassword: 'تأكيد كلمة السر',
287
+ showless: 'اعرض اقل',
288
+ showmore: 'اعرض المزيد',
289
+ contactdetails: 'معلومات التواصل',
290
+ asaguest: 'كزائر',
291
+ choosecountryfirst: 'من فضلك اختر البلد اولاً',
292
+ security: 'الخصوصية و الأمان',
293
+ personalinformation: 'البيانات الشخصية',
294
+ // Website design
295
+ contactus: 'تواصل معنا',
296
+ slogan: 'موقعك و تطبيقك فى مكان واحد',
297
+ },
298
+ },
299
+ langdetect: 'en',
300
+ setlang: this.setlang,
301
+ };
302
+ }
303
+
304
+ setlang = (key) => {
305
+ const cookies = new Cookies();
306
+ cookies.set('sitelang', key, { path: '/' });
307
+ this.setState({
308
+ langdetect: key,
309
+ });
310
+ window.location.reload();
311
+ };
312
+
313
+ componentDidMount() {
314
+ const cookies = new Cookies();
315
+ var lastlangselected = cookies.get('sitelang');
316
+ if (lastlangselected == 'en') {
317
+ this.setState({
318
+ langdetect: 'en',
319
+ });
320
+ } else if (lastlangselected == 'ar') {
321
+ this.setState({
322
+ langdetect: 'ar',
323
+ });
324
+ } else {
325
+ this.setState({
326
+ langdetect: 'en',
327
+ });
328
+ }
329
+ }
330
+
331
+ render() {
332
+ var setlang = this.state.setlang;
333
+ var lang = '';
334
+
335
+ if (this.state.langdetect == 'en') {
336
+ lang = this.state.lang.en;
337
+ // window.document.body.setAttribute('dir', 'ltr');
338
+ } else if (this.state.langdetect == 'ar') {
339
+ lang = this.state.lang.ar;
340
+ // window.document.body.setAttribute('dir', 'rtl');
341
+ }
342
+ var langdetect = this.state.langdetect;
343
+ return <LanguageContext.Provider value={{ lang, setlang, langdetect }}>{this.props.children}</LanguageContext.Provider>;
344
+ }
345
+ }
346
+
347
+ export const LanguageContextConsumer = LanguageContext.Consumer;
@@ -0,0 +1,28 @@
1
+ import React, { useEffect, useState } from 'react';
2
+
3
+ export const ProductsCardsSectionContext = React.createContext();
4
+ export const ProductsCardsSectionContext_Provider = (props) => {
5
+ // let history = useHistory();
6
+
7
+ const [ParentCollectionsForCollectionQueryArrContext, setParentCollectionsForCollectionQueryArrContext] = useState('');
8
+
9
+ const [ProductFilterObjContext, setProductFilterObjContext] = useState({
10
+ Isfiltercollections: 0,
11
+ isfilter: 0,
12
+ ProductFetchingType: '',
13
+ collections: [],
14
+ FilterOptions: [],
15
+ });
16
+ return (
17
+ <ProductsCardsSectionContext.Provider
18
+ value={{
19
+ ProductFilterObjContext,
20
+ setProductFilterObjContext,
21
+ ParentCollectionsForCollectionQueryArrContext,
22
+ setParentCollectionsForCollectionQueryArrContext,
23
+ }}
24
+ >
25
+ {props.children}
26
+ </ProductsCardsSectionContext.Provider>
27
+ );
28
+ };
@@ -0,0 +1,235 @@
1
+ export const selectcustomStyles = {
2
+ option: (provided, state) => ({
3
+ ...provided,
4
+ borderBottom: '1px solid #e6e6e6',
5
+ backgroundColor: state.isSelected ? '' : '',
6
+ padding: 5,
7
+ textTransform: 'capitalize',
8
+ color: state.isSelected ? '#eac435' : '#022648',
9
+ transition: '.3s',
10
+ '&:hover': {
11
+ color: '#eac435',
12
+ cursor: 'pointer',
13
+ },
14
+ }),
15
+ control: () => ({
16
+ border: '2px solid #e6e6e6',
17
+ boxShadow: '0 0 10px #e6e6e6',
18
+ borderRadius: '10px',
19
+ display: 'flex',
20
+ cursor: 'pointer',
21
+ transition: '.3s',
22
+ '&:hover': {
23
+ boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
24
+ },
25
+ }),
26
+ };
27
+ export const selectcustomStylesTranslated = {
28
+ option: (provided, state) => ({
29
+ ...provided,
30
+ borderBottom: '1px solid #e6e6e6',
31
+ backgroundColor: state.isSelected ? '' : '',
32
+ padding: 5,
33
+ textTransform: 'capitalize',
34
+ color: state.isSelected ? '#eac435' : '#022648',
35
+ transition: '.3s',
36
+ textAlign: 'right',
37
+ '&:hover': {
38
+ color: '#eac435',
39
+ cursor: 'pointer',
40
+ },
41
+ }),
42
+ control: () => ({
43
+ border: '2px solid #e6e6e6',
44
+ boxShadow: '0 0 10px #e6e6e6',
45
+ borderRadius: '10px',
46
+ display: 'flex',
47
+ cursor: 'pointer',
48
+ transition: '.3s',
49
+ textAlign: 'right',
50
+ '&:hover': {
51
+ boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
52
+ },
53
+ }),
54
+ placeholder: (provided, state) => ({
55
+ ...provided,
56
+ textAlign: 'right',
57
+ }),
58
+ };
59
+ export const tabexselect = {
60
+ option: (provided, state) => ({
61
+ ...provided,
62
+ borderBottom: '1px solid #e6e6e6',
63
+ backgroundColor: state.isSelected ? '' : '',
64
+ padding: 5,
65
+ textTransform: 'capitalize',
66
+ color: state.isSelected ? '#eac435' : '#022648',
67
+ transition: '.3s',
68
+ '&:hover': {
69
+ color: '#eac435',
70
+ cursor: 'pointer',
71
+ },
72
+ }),
73
+ control: () => ({
74
+ borderBottom: '2px solid #e6e6e6',
75
+ display: 'flex',
76
+ cursor: 'pointer',
77
+ padding: 0,
78
+ height: '30px',
79
+ transition: '.3s',
80
+ fontSize: '13px',
81
+ fontWeight: 600,
82
+ '&:hover': {
83
+ boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
84
+ borderRadius: '10px',
85
+ },
86
+ }),
87
+ dropdownIndicator: (provided) => ({
88
+ ...provided,
89
+ '&:hover': {
90
+ color: '#eac435',
91
+ },
92
+ }),
93
+ };
94
+ export const selectcustomStylesfromSelect = {
95
+ option: (provided, state) => ({
96
+ ...provided,
97
+ borderBottom: '1px solid #e6e6e6',
98
+ backgroundColor: state.isSelected ? '' : '',
99
+ padding: 5,
100
+ textTransform: 'capitalize',
101
+ color: state.isSelected ? '#eac435' : '#022648',
102
+ transition: '.3s',
103
+ '&:hover': {
104
+ color: '#eac435',
105
+ cursor: 'pointer',
106
+ },
107
+ }),
108
+ control: () => ({
109
+ borderBottom: '2px solid #e6e6e6',
110
+ display: 'flex',
111
+ cursor: 'pointer',
112
+ padding: 0,
113
+ transition: '.3s',
114
+ '&:hover': {
115
+ boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
116
+ borderRadius: '10px',
117
+ },
118
+ }),
119
+ dropdownIndicator: (provided) => ({
120
+ ...provided,
121
+ '&:hover': {
122
+ color: '#eac435',
123
+ },
124
+ }),
125
+ };
126
+ export const selectcustomStylesfromSelectTranslated = {
127
+ option: (provided, state) => ({
128
+ ...provided,
129
+ borderBottom: '1px solid #e6e6e6',
130
+ backgroundColor: state.isSelected ? '' : '',
131
+ padding: 5,
132
+ textTransform: 'capitalize',
133
+ color: state.isSelected ? '#eac435' : '#022648',
134
+ transition: '.3s',
135
+ textAlign: 'right',
136
+ '&:hover': {
137
+ color: '#eac435',
138
+ cursor: 'pointer',
139
+ },
140
+ }),
141
+ control: () => ({
142
+ borderBottom: '2px solid #e6e6e6',
143
+ display: 'flex',
144
+ cursor: 'pointer',
145
+ padding: 0,
146
+ transition: '.3s',
147
+ textAlign: 'right',
148
+ '&:hover': {
149
+ boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
150
+ },
151
+ }),
152
+ placeholder: (provided, state) => ({
153
+ ...provided,
154
+ textAlign: 'right',
155
+ }),
156
+ dropdownIndicator: (provided) => ({
157
+ ...provided,
158
+ '&:hover': {
159
+ color: '#eac435',
160
+ },
161
+ }),
162
+ };
163
+ export const defaultstyles = {
164
+ option: (provided, state) => ({
165
+ ...provided,
166
+ borderBottom: '1px solid #e6e6e6',
167
+ backgroundColor: state.isSelected ? '' : '',
168
+ padding: 5,
169
+ textTransform: 'capitalize',
170
+ color: state.isSelected ? '#eac435' : '#022648',
171
+ transition: '.3s',
172
+ '&:hover': {
173
+ // color: '#eac435',
174
+ cursor: 'pointer',
175
+ },
176
+ }),
177
+ control: () => ({
178
+ borderBottom: '1px solid #ccc',
179
+ backgroundColor: 'white',
180
+ display: 'flex',
181
+ cursor: 'pointer',
182
+ padding: 0,
183
+ transition: '.3s',
184
+ '&:hover': {
185
+ // boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
186
+ // borderRadius: '10px',
187
+ },
188
+ }),
189
+ dropdownIndicator: (provided) => ({
190
+ ...provided,
191
+ '&:hover': {
192
+ // color: '#eac435',
193
+ },
194
+ }),
195
+ };
196
+
197
+ export const defaultstylestranslated = {
198
+ option: (provided, state) => ({
199
+ ...provided,
200
+ borderBottom: '1px solid #e6e6e6',
201
+ backgroundColor: state.isSelected ? '' : '',
202
+ padding: 5,
203
+ textTransform: 'capitalize',
204
+ // color: state.isSelected ? '#eac435' : '#022648',
205
+ transition: '.3s',
206
+ textAlign: 'right',
207
+ '&:hover': {
208
+ // color: '#eac435',
209
+ cursor: 'pointer',
210
+ },
211
+ }),
212
+ control: () => ({
213
+ borderBottom: '1px solid #ccc',
214
+ backgroundColor: 'white',
215
+ display: 'flex',
216
+ cursor: 'pointer',
217
+ padding: 0,
218
+ transition: '.3s',
219
+ textAlign: 'right',
220
+ '&:hover': {
221
+ // boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
222
+ // borderRadius: '10px',
223
+ },
224
+ }),
225
+ dropdownIndicator: (provided) => ({
226
+ ...provided,
227
+ '&:hover': {
228
+ // color: '#eac435',
229
+ },
230
+ }),
231
+ placeholder: (provided, state) => ({
232
+ ...provided,
233
+ textAlign: 'right',
234
+ }),
235
+ };