ordering-ui-admin-external 1.25.1 → 1.26.1
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/_bundles/main.css +1829 -1829
- package/_bundles/{ordering-ui-admin.bb3d2f1a6bc2f5d19b6c.js → ordering-ui-admin.45097ebbca4f4a7d30b7.js} +2 -2
- package/_modules/components/BusinessIntelligence/AnalyticsCalendar/index.js +8 -1
- package/_modules/components/Delivery/DriversCompanyAddForm/styles.js +1 -1
- package/_modules/components/Delivery/DriversGroupAddForm/AdvancedLogisticsForm/index.js +68 -0
- package/_modules/components/Delivery/DriversGroupAddForm/AdvancedLogisticsForm/styles.js +42 -0
- package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +89 -0
- package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/styles.js +47 -0
- package/_modules/components/Delivery/DriversGroupAddForm/GeneralForm/index.js +106 -0
- package/_modules/components/Delivery/DriversGroupAddForm/GeneralForm/styles.js +16 -0
- package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +87 -0
- package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/styles.js +33 -0
- package/_modules/components/Delivery/DriversGroupAddForm/index.js +132 -0
- package/_modules/components/Delivery/DriversGroupAddForm/styles.js +18 -0
- package/_modules/components/Delivery/DriversGroupCompanies/styles.js +1 -1
- package/_modules/components/Delivery/DriversGroupDrivers/styles.js +1 -1
- package/_modules/components/Delivery/DriversGroupOrders/index.js +5 -5
- package/_modules/components/Delivery/DriversGroupsList/styles.js +1 -1
- package/_modules/components/Delivery/DriversGroupsListing/index.js +28 -7
- package/_modules/components/Delivery/DriversGroupsListing/styles.js +2 -2
- package/_modules/components/Delivery/UserAddForm/index.js +39 -6
- package/_modules/components/Delivery/UserAddForm/styles.js +28 -21
- package/_modules/components/Delivery/UserDetails/index.js +2 -2
- package/_modules/components/Home/HomePage/index.js +71 -3
- package/_modules/components/Home/HomePage/styles.js +27 -5
- package/_modules/components/Login/LoginForm/index.js +0 -5
- package/_modules/components/MyProducts/AdvancedLayouts/LayoutStyleGroup.js +46 -0
- package/_modules/components/MyProducts/AdvancedLayouts/index.js +213 -0
- package/_modules/components/MyProducts/AdvancedLayouts/styles.js +146 -0
- package/_modules/components/MyProducts/AdvancedSettings/index.js +12 -0
- package/_modules/components/MyProducts/CustomDomain/index.js +6 -4
- package/_modules/components/MyProducts/CustomDomain/styles.js +27 -9
- package/_modules/components/MyProducts/OrderingWebsite/index.js +94 -17
- package/_modules/components/MyProducts/OrderingWebsite/styles.js +20 -11
- package/_modules/components/Orders/AllInOne/DriversManager/index.js +128 -0
- package/_modules/components/Orders/AllInOne/DriversManager/styles.js +27 -0
- package/_modules/components/Orders/AllInOne/index.js +337 -0
- package/_modules/components/Orders/AllInOne/styles.js +67 -0
- package/_modules/components/Orders/CompanySelector/index.js +259 -0
- package/_modules/components/Orders/CompanySelector/styles.js +86 -0
- package/_modules/components/Orders/DriversBusyStatusFilter/styles.js +6 -3
- package/_modules/components/Orders/DriversList/index.js +3 -2
- package/_modules/components/Orders/DriversList/styles.js +2 -2
- package/_modules/components/Orders/DriversManager/index.js +2 -1
- package/_modules/components/Orders/DriversOnlineOfflineFilter/styles.js +5 -2
- package/_modules/components/Orders/OrderBill/RefundToWallet.js +1 -1
- package/_modules/components/Orders/OrderBill/index.js +17 -18
- package/_modules/components/Orders/OrderContactInformation/index.js +14 -3
- package/_modules/components/Orders/OrderDetails/index.js +1 -1
- package/_modules/components/Orders/OrderStatusSubFilter/styles.js +1 -1
- package/_modules/components/Orders/OrderToPrint/index.js +2 -1
- package/_modules/components/Orders/OrderToPrintTicket/index.js +4 -2
- package/_modules/components/Orders/OrdersContentHeader/index.js +2 -1
- package/_modules/components/Orders/OrdersListing/index.js +3 -1
- package/_modules/components/Orders/OrdersManager/index.js +5 -1
- package/_modules/components/Orders/OrdersTable/index.js +11 -10
- package/_modules/components/Orders/ProductItemAccordion/index.js +5 -9
- package/_modules/components/Orders/WebsocketStatus/index.js +119 -0
- package/_modules/components/Orders/WebsocketStatus/styles.js +65 -0
- package/_modules/components/Orders/index.js +7 -0
- package/_modules/components/Settings/IntegrationListing/Analytics.js +130 -0
- package/_modules/components/Settings/IntegrationListing/PaymentGateway.js +130 -0
- package/_modules/components/Settings/IntegrationListing/index.js +174 -31
- package/_modules/components/Settings/IntegrationListing/styles.js +42 -11
- package/_modules/components/Settings/NotificationSetting/index.js +25 -4
- package/_modules/components/Settings/NotificationSetting/styles.js +5 -3
- package/_modules/components/Settings/SettingsSelectUI/index.js +3 -2
- package/_modules/components/Shared/RangeCalendar/index.js +9 -1
- package/_modules/components/Shared/SearchBar/index.js +11 -6
- package/_modules/components/Shared/SearchBar/styles.js +9 -15
- package/_modules/components/SidebarMenu/index.js +19 -10
- package/_modules/components/Users/UserDetails/index.js +2 -2
- package/_modules/config/currency.js +1017 -0
- package/_modules/index.js +6 -0
- package/_modules/utils/index.js +26 -3
- package/index-template.js +10 -0
- package/package.json +3 -2
- package/src/components/BusinessIntelligence/AnalyticsCalendar/index.js +7 -1
- package/src/components/Delivery/DriversCompanyAddForm/styles.js +0 -1
- package/src/components/Delivery/DriversGroupAddForm/AdvancedLogisticsForm/index.js +113 -0
- package/src/components/Delivery/DriversGroupAddForm/AdvancedLogisticsForm/styles.js +72 -0
- package/src/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +87 -0
- package/src/components/Delivery/DriversGroupAddForm/BusinessesForm/styles.js +87 -0
- package/src/components/Delivery/DriversGroupAddForm/GeneralForm/index.js +104 -0
- package/src/components/Delivery/DriversGroupAddForm/GeneralForm/styles.js +31 -0
- package/src/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +82 -0
- package/src/components/Delivery/DriversGroupAddForm/PaymethodsForm/styles.js +46 -0
- package/src/components/Delivery/DriversGroupAddForm/index.js +130 -0
- package/src/components/Delivery/DriversGroupAddForm/styles.js +38 -0
- package/src/components/Delivery/DriversGroupCompanies/styles.js +1 -0
- package/src/components/Delivery/DriversGroupDrivers/styles.js +1 -0
- package/src/components/Delivery/DriversGroupOrders/index.js +2 -2
- package/src/components/Delivery/DriversGroupsList/styles.js +1 -1
- package/src/components/Delivery/DriversGroupsListing/index.js +35 -13
- package/src/components/Delivery/DriversGroupsListing/styles.js +1 -1
- package/src/components/Delivery/UserAddForm/index.js +34 -2
- package/src/components/Delivery/UserAddForm/styles.js +25 -0
- package/src/components/Delivery/UserDetails/index.js +1 -1
- package/src/components/Home/HomePage/index.js +215 -142
- package/src/components/Home/HomePage/styles.js +105 -1
- package/src/components/Login/LoginForm/index.js +0 -7
- package/src/components/MyProducts/AdvancedLayouts/LayoutStyleGroup.js +37 -0
- package/src/components/MyProducts/AdvancedLayouts/index.js +240 -0
- package/src/components/MyProducts/AdvancedLayouts/styles.js +388 -0
- package/src/components/MyProducts/AdvancedSettings/index.js +5 -2
- package/src/components/MyProducts/CustomDomain/index.js +35 -16
- package/src/components/MyProducts/CustomDomain/styles.js +73 -1
- package/src/components/MyProducts/OrderingWebsite/index.js +147 -79
- package/src/components/MyProducts/OrderingWebsite/styles.js +38 -0
- package/src/components/Orders/AllInOne/DriversManager/index.js +137 -0
- package/src/components/Orders/AllInOne/DriversManager/styles.js +51 -0
- package/src/components/Orders/AllInOne/index.js +339 -0
- package/src/components/Orders/AllInOne/styles.js +144 -0
- package/src/components/Orders/CompanySelector/index.js +250 -0
- package/src/components/Orders/CompanySelector/styles.js +142 -0
- package/src/components/Orders/DriversBusyStatusFilter/styles.js +7 -1
- package/src/components/Orders/DriversList/index.js +7 -4
- package/src/components/Orders/DriversList/styles.js +2 -1
- package/src/components/Orders/DriversManager/index.js +2 -0
- package/src/components/Orders/DriversOnlineOfflineFilter/styles.js +8 -1
- package/src/components/Orders/OrderBill/RefundToWallet.js +12 -10
- package/src/components/Orders/OrderBill/index.js +18 -18
- package/src/components/Orders/OrderContactInformation/index.js +20 -1
- package/src/components/Orders/OrderDetails/index.js +8 -8
- package/src/components/Orders/OrderStatusSubFilter/styles.js +1 -1
- package/src/components/Orders/OrderToPrint/index.js +2 -1
- package/src/components/Orders/OrderToPrintTicket/index.js +160 -173
- package/src/components/Orders/OrdersContentHeader/index.js +2 -0
- package/src/components/Orders/OrdersListing/index.js +2 -0
- package/src/components/Orders/OrdersManager/index.js +2 -2
- package/src/components/Orders/OrdersTable/index.js +39 -25
- package/src/components/Orders/ProductItemAccordion/index.js +3 -3
- package/src/components/Orders/WebsocketStatus/index.js +138 -0
- package/src/components/Orders/WebsocketStatus/styles.js +171 -0
- package/src/components/Orders/index.js +2 -0
- package/src/components/Settings/IntegrationListing/Analytics.js +127 -0
- package/src/components/Settings/IntegrationListing/PaymentGateway.js +126 -0
- package/src/components/Settings/IntegrationListing/index.js +189 -96
- package/src/components/Settings/IntegrationListing/styles.js +90 -1
- package/src/components/Settings/NotificationSetting/index.js +73 -10
- package/src/components/Settings/NotificationSetting/styles.js +19 -0
- package/src/components/Settings/SettingsSelectUI/index.js +12 -9
- package/src/components/Shared/RangeCalendar/index.js +7 -1
- package/src/components/Shared/SearchBar/index.js +14 -5
- package/src/components/Shared/SearchBar/styles.js +19 -32
- package/src/components/SidebarMenu/index.js +15 -8
- package/src/components/Users/UserDetails/index.js +1 -1
- package/src/config/currency.js +1010 -0
- package/src/index.js +2 -0
- package/src/utils/index.js +21 -0
- package/template/app.js +4 -0
- package/template/assets/images/preview/franchise.png +0 -0
- package/template/assets/images/preview/marketplace.png +0 -0
- package/template/assets/images/preview/single-store.png +0 -0
- package/template/components/AutologinParams/index.js +1 -3
- package/template/components/ListenPageChanges/index.js +1 -0
- package/template/helmetdata.json +7 -0
- package/template/pages/AllInOne/index.js +23 -0
- /package/_bundles/{ordering-ui-admin.bb3d2f1a6bc2f5d19b6c.js.LICENSE.txt → ordering-ui-admin.45097ebbca4f4a7d30b7.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import React, { useState, useRef, useEffect } from 'react'
|
|
2
|
+
import { useLanguage } from 'ordering-components-admin-external'
|
|
3
|
+
import { Button } from '../../../styles'
|
|
4
|
+
import { Alert } from '../../Shared'
|
|
5
|
+
import { LayoutStyleGroup } from './LayoutStyleGroup'
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
Container,
|
|
9
|
+
BoxLayout,
|
|
10
|
+
HomePageWrapper,
|
|
11
|
+
HeadingWrapper,
|
|
12
|
+
ButtonWrapper
|
|
13
|
+
} from './styles'
|
|
14
|
+
|
|
15
|
+
export const AdvancedLayouts = (props) => {
|
|
16
|
+
const {
|
|
17
|
+
advancedValues,
|
|
18
|
+
handleUpdateSiteTheme,
|
|
19
|
+
isApp,
|
|
20
|
+
themesList
|
|
21
|
+
} = props
|
|
22
|
+
|
|
23
|
+
const [, t] = useLanguage()
|
|
24
|
+
|
|
25
|
+
const [alertState, setAlertState] = useState({ open: false, content: [] })
|
|
26
|
+
const [themeStructure, setThemeStructure] = useState({}) // Don't remove this state
|
|
27
|
+
const themeValuesRef = useRef({})
|
|
28
|
+
|
|
29
|
+
const homeLayoutList = [
|
|
30
|
+
{ value: 'original', name: 'Original' },
|
|
31
|
+
{ value: 'starbucks', name: 'Elegant' },
|
|
32
|
+
{ value: 'red', name: 'Simple' }
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
const businessListingLayoutList = [
|
|
36
|
+
{ value: 'original', name: 'Original' },
|
|
37
|
+
{ value: 'appointments', name: 'Appointments' },
|
|
38
|
+
{ value: 'mapview', name: 'MapsView' }
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
const businessViewLayoutList = [
|
|
42
|
+
{ value: 'original', name: 'Original' },
|
|
43
|
+
{ value: 'starbucks', name: 'Elegant' },
|
|
44
|
+
{ value: 'red', name: 'Simple' },
|
|
45
|
+
{ value: 'old', name: '2021' }
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
const productFormLayoutList = [
|
|
49
|
+
{ value: 'original', name: 'Original' },
|
|
50
|
+
{ value: 'starbucks', name: 'Elegant' }
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
const productSearchLayoutList = [
|
|
54
|
+
{ value: 'original', name: 'Original' },
|
|
55
|
+
{ value: 'starbucks', name: 'Elegant' },
|
|
56
|
+
{ value: 'old', name: '2021' }
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
const confirmationLayoutList = [
|
|
60
|
+
{ value: 'original', name: 'Original' },
|
|
61
|
+
{ value: 'old', name: '2021' }
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
const profileLayoutList = [
|
|
65
|
+
{ value: 'original', name: 'Original' },
|
|
66
|
+
{ value: 'old', name: '2021' }
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
const headerLayoutList = [
|
|
70
|
+
{ value: 'original', name: 'Original' },
|
|
71
|
+
{ value: 'starbucks', name: 'Elegant' },
|
|
72
|
+
{ value: 'old', name: '2021' }
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
const closeAlert = () => {
|
|
76
|
+
setAlertState({
|
|
77
|
+
open: false,
|
|
78
|
+
content: []
|
|
79
|
+
})
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const updateObject = (object, newValue, path) => {
|
|
83
|
+
const stack = path.split('.')
|
|
84
|
+
while (stack.length > 1) {
|
|
85
|
+
object = object[stack.shift()]
|
|
86
|
+
}
|
|
87
|
+
object[stack.shift()] = newValue
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const handleUpdateThemeValue = (value, path) => {
|
|
91
|
+
const _advancedValues = JSON.parse(JSON.stringify(themeValuesRef.current))
|
|
92
|
+
updateObject(_advancedValues, value, path)
|
|
93
|
+
themeValuesRef.current = _advancedValues
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
useEffect(() => {
|
|
97
|
+
themeValuesRef.current = JSON.parse(JSON.stringify(advancedValues))
|
|
98
|
+
}, [advancedValues])
|
|
99
|
+
|
|
100
|
+
useEffect(() => { // Don't remove this effect
|
|
101
|
+
if (!themesList?.loading && themesList?.themes?.[0]?.structure) {
|
|
102
|
+
setThemeStructure(JSON.parse(JSON.stringify(themesList?.themes?.[0]?.structure)))
|
|
103
|
+
}
|
|
104
|
+
}, [themesList])
|
|
105
|
+
|
|
106
|
+
return (
|
|
107
|
+
<>
|
|
108
|
+
<Container>
|
|
109
|
+
{isApp ? (
|
|
110
|
+
<BoxLayout>
|
|
111
|
+
<h1>{t('CUSTOMER_APP_ADVANCED_LAYOUTS', 'Customer App Advanced Layouts')}</h1>
|
|
112
|
+
<h2>{t('HOMEPAGE', 'Homepage')}</h2>
|
|
113
|
+
<HeadingWrapper>
|
|
114
|
+
<LayoutStyleGroup
|
|
115
|
+
title={t('HOMEPAGE', 'Homepage')}
|
|
116
|
+
layoutList={homeLayoutList}
|
|
117
|
+
layouts={themeValuesRef?.current?.homepage_view?.components?.layout}
|
|
118
|
+
path='homepage_view.components.layout'
|
|
119
|
+
handleUpdateThemeValue={handleUpdateThemeValue}
|
|
120
|
+
/>
|
|
121
|
+
</HeadingWrapper>
|
|
122
|
+
</BoxLayout>
|
|
123
|
+
) : (
|
|
124
|
+
<BoxLayout>
|
|
125
|
+
<h1>{t('WEBSITE_ADVANCED_LAYOUTS', 'Website Advanced Layouts')}</h1>
|
|
126
|
+
<HomePageWrapper>
|
|
127
|
+
<h2>{t('HOMEPAGE', 'Homepage')}</h2>
|
|
128
|
+
<HeadingWrapper>
|
|
129
|
+
<LayoutStyleGroup
|
|
130
|
+
title={t('HOMEPAGE', 'Homepage')}
|
|
131
|
+
layoutList={homeLayoutList}
|
|
132
|
+
layouts={themeValuesRef?.current?.homepage_view?.components?.layout}
|
|
133
|
+
path='homepage_view.components.layout'
|
|
134
|
+
handleUpdateThemeValue={handleUpdateThemeValue}
|
|
135
|
+
/>
|
|
136
|
+
</HeadingWrapper>
|
|
137
|
+
</HomePageWrapper>
|
|
138
|
+
</BoxLayout>
|
|
139
|
+
)}
|
|
140
|
+
<BoxLayout>
|
|
141
|
+
<h2>{t('BUSINESS_LISTING_VIEW', 'Business Listing view')}</h2>
|
|
142
|
+
<HeadingWrapper>
|
|
143
|
+
<LayoutStyleGroup
|
|
144
|
+
layoutList={businessListingLayoutList}
|
|
145
|
+
layouts={themeValuesRef?.current?.business_listing_view?.components?.layout}
|
|
146
|
+
path='business_listing_view.components.layout'
|
|
147
|
+
handleUpdateThemeValue={handleUpdateThemeValue}
|
|
148
|
+
/>
|
|
149
|
+
</HeadingWrapper>
|
|
150
|
+
</BoxLayout>
|
|
151
|
+
<BoxLayout>
|
|
152
|
+
<h2>{t('BUSINESS_VIEW_HEADERS', 'Business View Headers')}</h2>
|
|
153
|
+
<HeadingWrapper>
|
|
154
|
+
<LayoutStyleGroup
|
|
155
|
+
layoutList={businessViewLayoutList}
|
|
156
|
+
layouts={themeValuesRef?.current?.business_view?.components?.header?.components?.layout}
|
|
157
|
+
path='business_view.components.header.components.layout'
|
|
158
|
+
handleUpdateThemeValue={handleUpdateThemeValue}
|
|
159
|
+
/>
|
|
160
|
+
</HeadingWrapper>
|
|
161
|
+
</BoxLayout>
|
|
162
|
+
<BoxLayout>
|
|
163
|
+
<h2>{t('PRODUCT_LAYOUTS', 'Product Layouts')}</h2>
|
|
164
|
+
<HeadingWrapper>
|
|
165
|
+
<LayoutStyleGroup
|
|
166
|
+
layoutList={productFormLayoutList}
|
|
167
|
+
layouts={themeValuesRef?.current?.business_view?.components?.products?.components?.layout}
|
|
168
|
+
path='business_view.components.products.components.layout'
|
|
169
|
+
handleUpdateThemeValue={handleUpdateThemeValue}
|
|
170
|
+
/>
|
|
171
|
+
</HeadingWrapper>
|
|
172
|
+
</BoxLayout>
|
|
173
|
+
<BoxLayout>
|
|
174
|
+
<h2>{t('PRODUCTS_SEARCH', 'Products Search')}</h2>
|
|
175
|
+
<HeadingWrapper>
|
|
176
|
+
<LayoutStyleGroup
|
|
177
|
+
layoutList={productSearchLayoutList}
|
|
178
|
+
layouts={themeValuesRef?.current?.business_view?.components?.product_search?.components?.layout}
|
|
179
|
+
path='business_view.components.product_search.components.layout'
|
|
180
|
+
handleUpdateThemeValue={handleUpdateThemeValue}
|
|
181
|
+
/>
|
|
182
|
+
</HeadingWrapper>
|
|
183
|
+
</BoxLayout>
|
|
184
|
+
<BoxLayout>
|
|
185
|
+
<h2>{t('CONFIRMATION', 'Confirmation')}</h2>
|
|
186
|
+
<HeadingWrapper>
|
|
187
|
+
<LayoutStyleGroup
|
|
188
|
+
layoutList={confirmationLayoutList}
|
|
189
|
+
layouts={themeValuesRef?.current?.confirmation?.components?.layout}
|
|
190
|
+
path='confirmation.components.layout'
|
|
191
|
+
handleUpdateThemeValue={handleUpdateThemeValue}
|
|
192
|
+
/>
|
|
193
|
+
</HeadingWrapper>
|
|
194
|
+
</BoxLayout>
|
|
195
|
+
<BoxLayout>
|
|
196
|
+
<h2>{t('PROFILE', 'Profile')}</h2>
|
|
197
|
+
<HeadingWrapper>
|
|
198
|
+
<LayoutStyleGroup
|
|
199
|
+
layoutList={profileLayoutList}
|
|
200
|
+
layouts={themeValuesRef?.current?.profile?.components?.layout}
|
|
201
|
+
path='profile.components.layout'
|
|
202
|
+
handleUpdateThemeValue={handleUpdateThemeValue}
|
|
203
|
+
/>
|
|
204
|
+
</HeadingWrapper>
|
|
205
|
+
</BoxLayout>
|
|
206
|
+
{!isApp && (
|
|
207
|
+
<BoxLayout>
|
|
208
|
+
<h2>{t('HEADER', 'Header')}</h2>
|
|
209
|
+
<HeadingWrapper>
|
|
210
|
+
<LayoutStyleGroup
|
|
211
|
+
layoutList={headerLayoutList}
|
|
212
|
+
layouts={themeValuesRef?.current?.header?.components?.layout}
|
|
213
|
+
path='header.components.layout'
|
|
214
|
+
handleUpdateThemeValue={handleUpdateThemeValue}
|
|
215
|
+
/>
|
|
216
|
+
</HeadingWrapper>
|
|
217
|
+
</BoxLayout>
|
|
218
|
+
)}
|
|
219
|
+
<ButtonWrapper>
|
|
220
|
+
<Button
|
|
221
|
+
color='primary'
|
|
222
|
+
borderRadius='8px'
|
|
223
|
+
onClick={() => handleUpdateSiteTheme(themeValuesRef?.current)}
|
|
224
|
+
>
|
|
225
|
+
{t('SAVE', 'Save')}
|
|
226
|
+
</Button>
|
|
227
|
+
</ButtonWrapper>
|
|
228
|
+
</Container>
|
|
229
|
+
<Alert
|
|
230
|
+
title={t('ORDERING', 'Ordering')}
|
|
231
|
+
content={alertState.content}
|
|
232
|
+
acceptText={t('ACCEPT', 'Accept')}
|
|
233
|
+
open={alertState.open}
|
|
234
|
+
onClose={() => closeAlert()}
|
|
235
|
+
onAccept={() => closeAlert()}
|
|
236
|
+
closeOnBackdrop={false}
|
|
237
|
+
/>
|
|
238
|
+
</>
|
|
239
|
+
)
|
|
240
|
+
}
|
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const Container = styled.div``
|
|
4
|
+
|
|
5
|
+
export const BoxLayout = styled.div`
|
|
6
|
+
margin-top: 30px;
|
|
7
|
+
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
|
|
8
|
+
border-radius: 7.6px;
|
|
9
|
+
padding: 25px 30px;
|
|
10
|
+
> div {
|
|
11
|
+
max-width: 653px;
|
|
12
|
+
}
|
|
13
|
+
h1, h2 {
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
line-height: 24px;
|
|
17
|
+
margin-top: 0;
|
|
18
|
+
margin-bottom: 20px;
|
|
19
|
+
}
|
|
20
|
+
> h1 {
|
|
21
|
+
margin-bottom: 30px;
|
|
22
|
+
}
|
|
23
|
+
h3 {
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
font-size: 14px;
|
|
26
|
+
line-height: 21px;
|
|
27
|
+
margin-top: 0px;
|
|
28
|
+
margin-bottom: 20px;
|
|
29
|
+
}
|
|
30
|
+
`
|
|
31
|
+
|
|
32
|
+
export const HomePageWrapper = styled.div``
|
|
33
|
+
|
|
34
|
+
export const FormControlWithCheck = styled.div`
|
|
35
|
+
> p {
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
font-size: 14px;
|
|
38
|
+
line-height: 24px;
|
|
39
|
+
margin-top: 0;
|
|
40
|
+
margin-bottom: 17px;
|
|
41
|
+
}
|
|
42
|
+
`
|
|
43
|
+
|
|
44
|
+
export const HideCheckWrapper = styled.div`
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
width: fit-content;
|
|
49
|
+
svg {
|
|
50
|
+
font-size: 16px;
|
|
51
|
+
color: ${props => props.theme.colors.secundaryLight};
|
|
52
|
+
&.active {
|
|
53
|
+
color: ${props => props.theme.colors.primary};
|
|
54
|
+
}
|
|
55
|
+
margin-right: 15px;
|
|
56
|
+
${props => props.theme.rtl && css`
|
|
57
|
+
margin-left: 15px;
|
|
58
|
+
margin-right: 0px;
|
|
59
|
+
`}
|
|
60
|
+
}
|
|
61
|
+
span {
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
line-height: 24px;
|
|
65
|
+
user-select: none;
|
|
66
|
+
}
|
|
67
|
+
${({ isBottom }) => isBottom && css`
|
|
68
|
+
margin-bottom: 25px;
|
|
69
|
+
`}
|
|
70
|
+
`
|
|
71
|
+
|
|
72
|
+
export const ShadowWrapper = styled.div`
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
|
|
76
|
+
@media (min-width: 576px) {
|
|
77
|
+
flex-direction: row;
|
|
78
|
+
}
|
|
79
|
+
`
|
|
80
|
+
|
|
81
|
+
export const InnerShadowWrapper = styled.div``
|
|
82
|
+
|
|
83
|
+
export const DropShadowWrapper = styled.div`
|
|
84
|
+
margin-top: 15px;
|
|
85
|
+
/* @media (min-width: 576px) {
|
|
86
|
+
margin-top: 0;
|
|
87
|
+
margin-left: 35px;
|
|
88
|
+
${props => props.theme.rtl && css`
|
|
89
|
+
margin-left: 0px;
|
|
90
|
+
margin-right: 35px;
|
|
91
|
+
`}
|
|
92
|
+
} */
|
|
93
|
+
`
|
|
94
|
+
|
|
95
|
+
export const ShadowInfoWrapper = styled.div`
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
|
|
99
|
+
svg {
|
|
100
|
+
font-size: 16px;
|
|
101
|
+
color: ${props => props.theme.colors.secundaryLight};
|
|
102
|
+
&.active {
|
|
103
|
+
color: ${props => props.theme.colors.primary};
|
|
104
|
+
}
|
|
105
|
+
margin-right: 7px;
|
|
106
|
+
${props => props.theme.rtl && css`
|
|
107
|
+
margin-left: 7px;
|
|
108
|
+
margin-right: 0px;
|
|
109
|
+
`}
|
|
110
|
+
}
|
|
111
|
+
span {
|
|
112
|
+
font-weight: 400;
|
|
113
|
+
font-size: 12px;
|
|
114
|
+
line-height: 18px;
|
|
115
|
+
}
|
|
116
|
+
`
|
|
117
|
+
|
|
118
|
+
export const InnerShadow = styled.div`
|
|
119
|
+
width: 27px;
|
|
120
|
+
height: 18px;
|
|
121
|
+
background: ${props => props.theme.colors.gray};
|
|
122
|
+
border: 1px solid ${props => props.theme.colors.borderColor};
|
|
123
|
+
border-radius: 1px;
|
|
124
|
+
margin-right: 13px;
|
|
125
|
+
${props => props.theme.rtl && css`
|
|
126
|
+
margin-right: 0px;
|
|
127
|
+
margin-left: 13px;
|
|
128
|
+
`}
|
|
129
|
+
`
|
|
130
|
+
|
|
131
|
+
export const DropShadow = styled.div`
|
|
132
|
+
width: 27px;
|
|
133
|
+
height: 18px;
|
|
134
|
+
border: 1px solid ${props => props.theme.colors.borderColor};
|
|
135
|
+
border-radius: 1px;
|
|
136
|
+
margin-right: 13px;
|
|
137
|
+
${props => props.theme.rtl && css`
|
|
138
|
+
margin-right: 0px;
|
|
139
|
+
margin-left: 13px;
|
|
140
|
+
`}
|
|
141
|
+
`
|
|
142
|
+
|
|
143
|
+
export const ShadowInputGroup = styled.div`
|
|
144
|
+
display: flex;
|
|
145
|
+
margin-top: 13px;
|
|
146
|
+
`
|
|
147
|
+
|
|
148
|
+
export const ShadowInputControl = styled.div`
|
|
149
|
+
display: flex;
|
|
150
|
+
margin-right: 15px;
|
|
151
|
+
${props => props.theme.rtl && css`
|
|
152
|
+
margin-right: 0px;
|
|
153
|
+
margin-left: 15px;
|
|
154
|
+
`}
|
|
155
|
+
span {
|
|
156
|
+
font-weight: 400;
|
|
157
|
+
font-size: 12px;
|
|
158
|
+
margin-right: 5px;
|
|
159
|
+
${props => props.theme.rtl && css`
|
|
160
|
+
margin-right: 0px;
|
|
161
|
+
margin-left: 5px;
|
|
162
|
+
`}
|
|
163
|
+
}
|
|
164
|
+
input {
|
|
165
|
+
border: none;
|
|
166
|
+
outline: none;
|
|
167
|
+
border-bottom: 1px solid ${props => props.theme.colors.gray};
|
|
168
|
+
width: 29px;
|
|
169
|
+
font-size: 12px;
|
|
170
|
+
text-align: center;
|
|
171
|
+
}
|
|
172
|
+
`
|
|
173
|
+
|
|
174
|
+
export const HeadingWrapper = styled.div`
|
|
175
|
+
margin-bottom: 40px;
|
|
176
|
+
`
|
|
177
|
+
|
|
178
|
+
export const BodyWrapper = styled.div``
|
|
179
|
+
|
|
180
|
+
export const FormControl = styled.div`
|
|
181
|
+
margin-bottom: 25px;
|
|
182
|
+
> label {
|
|
183
|
+
font-weight: 400;
|
|
184
|
+
font-size: 14px;
|
|
185
|
+
line-height: 24px;
|
|
186
|
+
margin-bottom: 10px;
|
|
187
|
+
}
|
|
188
|
+
input {
|
|
189
|
+
width: 100%;
|
|
190
|
+
height: 44px;
|
|
191
|
+
}
|
|
192
|
+
`
|
|
193
|
+
|
|
194
|
+
export const SelectWrapper = styled.div`
|
|
195
|
+
> div {
|
|
196
|
+
width: 100%;
|
|
197
|
+
border: none;
|
|
198
|
+
|
|
199
|
+
> div:first-child {
|
|
200
|
+
background-color: ${props => props.theme.colors.secundary};
|
|
201
|
+
height: 43px;
|
|
202
|
+
border: none;
|
|
203
|
+
border-radius: 7.6px;
|
|
204
|
+
font-weight: 400;
|
|
205
|
+
font-size: 14px;
|
|
206
|
+
line-height: 24px;
|
|
207
|
+
color: ${props => props.theme.colors.secundaryContrast};
|
|
208
|
+
}
|
|
209
|
+
.list {
|
|
210
|
+
background-color: ${props => props.theme.colors.secundary};
|
|
211
|
+
border: none;
|
|
212
|
+
|
|
213
|
+
.list-wrapper {
|
|
214
|
+
> div {
|
|
215
|
+
padding: 6px 10px;
|
|
216
|
+
&:hover {
|
|
217
|
+
background-color: #f2f5f7;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
`
|
|
224
|
+
|
|
225
|
+
export const Option = styled.div`
|
|
226
|
+
font-weight: 400;
|
|
227
|
+
font-size: 14px;
|
|
228
|
+
line-height: 24px;
|
|
229
|
+
color: ${props => props.theme.colors.secundaryContrast};
|
|
230
|
+
`
|
|
231
|
+
|
|
232
|
+
export const FontWeightListWrapper = styled.div`
|
|
233
|
+
&:last-child {
|
|
234
|
+
border-bottom: 1px solid ${props => props.theme.colors.borderColor};
|
|
235
|
+
}
|
|
236
|
+
`
|
|
237
|
+
|
|
238
|
+
export const FontWeightItem = styled.div`
|
|
239
|
+
display: flex;
|
|
240
|
+
align-items: center;
|
|
241
|
+
padding: 12px 0;
|
|
242
|
+
border-top: 1px solid ${props => props.theme.colors.borderColor};
|
|
243
|
+
cursor: pointer;
|
|
244
|
+
|
|
245
|
+
svg {
|
|
246
|
+
font-size: 16px;
|
|
247
|
+
color: ${props => props.theme.colors.secundaryLight};
|
|
248
|
+
&.active {
|
|
249
|
+
color: ${props => props.theme.colors.primary};
|
|
250
|
+
}
|
|
251
|
+
margin-right: 20px;
|
|
252
|
+
${props => props.theme.rtl && css`
|
|
253
|
+
margin-left: 20px;
|
|
254
|
+
margin-right: 0px;
|
|
255
|
+
`}
|
|
256
|
+
}
|
|
257
|
+
span {
|
|
258
|
+
font-weight: 400;
|
|
259
|
+
font-size: 14px;
|
|
260
|
+
line-height: 24px;
|
|
261
|
+
}
|
|
262
|
+
`
|
|
263
|
+
|
|
264
|
+
export const ImageBoxContainer = styled.div`
|
|
265
|
+
width: 161px;
|
|
266
|
+
height: 161px;
|
|
267
|
+
${({ isBig }) => isBig && css`
|
|
268
|
+
width: 100%;
|
|
269
|
+
height: 190px;
|
|
270
|
+
`}
|
|
271
|
+
background: ${props => props.theme.colors.borderColor};
|
|
272
|
+
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
|
|
273
|
+
position: relative;
|
|
274
|
+
border-radius: 8px;
|
|
275
|
+
overflow: hidden;
|
|
276
|
+
cursor: -webkit-grab;
|
|
277
|
+
cursor: grab;
|
|
278
|
+
|
|
279
|
+
img,
|
|
280
|
+
div {
|
|
281
|
+
width: 100%;
|
|
282
|
+
border-radius: 8px;
|
|
283
|
+
height: 100%;
|
|
284
|
+
overflow: hidden;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
img{
|
|
288
|
+
object-fit: contain;
|
|
289
|
+
}
|
|
290
|
+
`
|
|
291
|
+
|
|
292
|
+
export const UploadImageIconContainer = styled.div`
|
|
293
|
+
position: absolute;
|
|
294
|
+
top: 0px;
|
|
295
|
+
background: ${props => props.theme.colors.secundaryDarkContrast};
|
|
296
|
+
${({ bgimage }) => bgimage && css`
|
|
297
|
+
background: transparent;
|
|
298
|
+
svg, span {
|
|
299
|
+
color: ${props => props.theme.colors.white};
|
|
300
|
+
}
|
|
301
|
+
border: 1px dashed ${props => props.theme.colors.secundaryDarkContrast};
|
|
302
|
+
`}
|
|
303
|
+
${({ small }) => small ? css`
|
|
304
|
+
padding: 4px;
|
|
305
|
+
` : css`
|
|
306
|
+
padding: 8px;
|
|
307
|
+
`}
|
|
308
|
+
`
|
|
309
|
+
|
|
310
|
+
export const UploadImageIcon = styled.div`
|
|
311
|
+
display: flex;
|
|
312
|
+
justify-content: center;
|
|
313
|
+
align-items: center;
|
|
314
|
+
flex-direction: column;
|
|
315
|
+
color: ${props => props.theme.colors.disabled};
|
|
316
|
+
span {
|
|
317
|
+
margin-top: 14px;
|
|
318
|
+
font-size: 14px;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
svg {
|
|
322
|
+
width: 52px;
|
|
323
|
+
height: 45px;
|
|
324
|
+
}
|
|
325
|
+
`
|
|
326
|
+
|
|
327
|
+
export const ImgInfoWrapper = styled.div`
|
|
328
|
+
margin-top: 15px;
|
|
329
|
+
margin-bottom: 25px;
|
|
330
|
+
h4 {
|
|
331
|
+
font-size: 14px;
|
|
332
|
+
line-height: 24px;
|
|
333
|
+
font-weight: 400;
|
|
334
|
+
margin: 0px;
|
|
335
|
+
}
|
|
336
|
+
p {
|
|
337
|
+
font-size: 12px;
|
|
338
|
+
line-height: 18px;
|
|
339
|
+
margin-top: 2px;
|
|
340
|
+
margin-bottom: 0px;
|
|
341
|
+
color: ${props => props.theme.colors.secundaryContrast};
|
|
342
|
+
}
|
|
343
|
+
`
|
|
344
|
+
|
|
345
|
+
export const HomeImageFullScreenWrapper = styled.div`
|
|
346
|
+
display: flex;
|
|
347
|
+
align-items: center;
|
|
348
|
+
margin-bottom: 25px;
|
|
349
|
+
cursor: pointer;
|
|
350
|
+
width: fit-content;
|
|
351
|
+
svg {
|
|
352
|
+
font-size: 16px;
|
|
353
|
+
color: ${props => props.theme.colors.secundaryLight};
|
|
354
|
+
&.active {
|
|
355
|
+
color: ${props => props.theme.colors.primary};
|
|
356
|
+
}
|
|
357
|
+
margin-right: 20px;
|
|
358
|
+
${props => props.theme.rtl && css`
|
|
359
|
+
margin-left: 20px;
|
|
360
|
+
margin-right: 0px;
|
|
361
|
+
`}
|
|
362
|
+
}
|
|
363
|
+
span {
|
|
364
|
+
font-weight: 400;
|
|
365
|
+
font-size: 14px;
|
|
366
|
+
line-height: 24px;
|
|
367
|
+
}
|
|
368
|
+
`
|
|
369
|
+
|
|
370
|
+
export const ImageGroup = styled.div`
|
|
371
|
+
display: flex;
|
|
372
|
+
flex-direction: column;
|
|
373
|
+
@media (min-width: 576px) {
|
|
374
|
+
flex-direction: row;
|
|
375
|
+
> div:first-child {
|
|
376
|
+
margin-right: 30px;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
`
|
|
380
|
+
|
|
381
|
+
export const SocialShareContainer = styled.div``
|
|
382
|
+
|
|
383
|
+
export const ButtonWrapper = styled.div`
|
|
384
|
+
margin: 50px 0px 30px 0;
|
|
385
|
+
button {
|
|
386
|
+
height: 44px;
|
|
387
|
+
}
|
|
388
|
+
`
|
|
@@ -80,7 +80,8 @@ export const AdvancedSettings = (props) => {
|
|
|
80
80
|
{ name: t('DUMMY_IMAGE_WHEN_NO_IMAGE', 'Dummy image when no image'), type: 'hidden', path: 'business_view.components.products.components.product.components.dummy.hidden' },
|
|
81
81
|
{ name: t('DESCRIPTION', 'Description'), type: 'hidden', path: 'business_view.components.products.components.product.components.description.hidden' },
|
|
82
82
|
{ name: t('IMAGE', 'Image'), type: 'hidden', path: 'business_view.components.products.components.product.components.image.hidden' },
|
|
83
|
-
{ name: t('POSITION', 'Position'), type: 'position', path: 'business_view.components.products.components.product.components.image.position' }
|
|
83
|
+
{ name: t('POSITION', 'Position'), type: 'position', path: 'business_view.components.products.components.product.components.image.position' },
|
|
84
|
+
{ name: t('ADD_TO_CART_BUTTON', 'Add to cart button'), type: 'hidden', path: 'business_view.components.products.components.add_to_cart_button.hidden' }
|
|
84
85
|
]
|
|
85
86
|
|
|
86
87
|
const reviewsPopups = [
|
|
@@ -91,7 +92,9 @@ export const AdvancedSettings = (props) => {
|
|
|
91
92
|
{ name: t('BUSINESS_LOGO', 'Business logo'), type: 'hidden', path: 'header.components.cart.components.business.components.logo.hidden' },
|
|
92
93
|
{ name: t('PRODUCT_IMAGE', 'Product image'), type: 'hidden', path: 'header.components.cart.components.products.components.image.hidden' },
|
|
93
94
|
{ name: t('DISCOUNT_COUPON', 'Discount coupon'), type: 'hidden', path: 'header.components.cart.components.discount_coupon.hidden' },
|
|
94
|
-
{ name: t('COMMENTS', 'Comments'), type: 'hidden', path: 'header.components.cart.components.comments.hidden' }
|
|
95
|
+
{ name: t('COMMENTS', 'Comments'), type: 'hidden', path: 'header.components.cart.components.comments.hidden' },
|
|
96
|
+
{ name: t('OPEN_STRATEGY', 'Open strategy'), type: 'position', path: 'header.components.cart.components.open_strategy.type' },
|
|
97
|
+
{ name: t('OPEN_STRATEGY_POSITION', 'Open strategy position'), type: 'position', path: 'header.components.cart.components.open_strategy.position' }
|
|
95
98
|
]
|
|
96
99
|
|
|
97
100
|
const checkoutList = [
|