ordering-ui-admin-external 1.43.73 → 1.43.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.
Files changed (42) hide show
  1. package/_bundles/{ordering-ui-admin.bdf07dd15b2ad6973a2d.js → ordering-ui-admin.8fc588676b4427703151.js} +2 -2
  2. package/_modules/components/Settings/NotificationSetting/index.js +2 -2
  3. package/_modules/components/Shared/Modal/index.js +2 -1
  4. package/_modules/components/Shared/Modal/styles.js +20 -17
  5. package/_modules/components/Stores/BusinessDeliveryZoneDetails/index.js +36 -7
  6. package/_modules/components/Stores/BusinessDeliveryZoneDetails/styles.js +4 -2
  7. package/_modules/components/Stores/BusinessDetails/index.js +4 -1
  8. package/_modules/components/Stores/BusinessMenuOptions/index.js +44 -3
  9. package/_modules/components/Stores/BusinessMenuOptions/styles.js +4 -2
  10. package/_modules/components/Stores/BusinessProductsCategoyDetails/index.js +30 -2
  11. package/_modules/components/Stores/BusinessProductsCategoyDetails/styles.js +3 -1
  12. package/_modules/components/Stores/BusinessSummary/index.js +42 -11
  13. package/_modules/components/Stores/BusinessSummary/styles.js +7 -6
  14. package/_modules/components/Stores/ProductDetails/index.js +4 -1
  15. package/_modules/components/Stores/ProductExtraSuboption/index.js +32 -0
  16. package/_modules/components/Stores/ProductExtras/index.js +37 -2
  17. package/_modules/components/Stores/ProductExtras/styles.js +1 -1
  18. package/_modules/components/Stores/SnoozeComponent/index.js +222 -0
  19. package/_modules/components/Stores/SnoozeComponent/styles.js +141 -0
  20. package/_modules/styles/Buttons/index.js +37 -26
  21. package/package.json +2 -2
  22. package/src/components/Settings/NotificationSetting/index.js +2 -19
  23. package/src/components/Shared/Modal/index.js +1 -0
  24. package/src/components/Shared/Modal/styles.js +5 -0
  25. package/src/components/Stores/BusinessDeliveryZoneDetails/index.js +27 -1
  26. package/src/components/Stores/BusinessDeliveryZoneDetails/styles.js +11 -2
  27. package/src/components/Stores/BusinessDetails/index.js +3 -0
  28. package/src/components/Stores/BusinessMenuOptions/index.js +62 -20
  29. package/src/components/Stores/BusinessMenuOptions/styles.js +10 -2
  30. package/src/components/Stores/BusinessProductsCategoyDetails/index.js +29 -2
  31. package/src/components/Stores/BusinessProductsCategoyDetails/styles.js +6 -0
  32. package/src/components/Stores/BusinessSummary/index.js +52 -19
  33. package/src/components/Stores/BusinessSummary/styles.js +8 -3
  34. package/src/components/Stores/ProductDetails/index.js +3 -0
  35. package/src/components/Stores/ProductExtraSuboption/index.js +22 -0
  36. package/src/components/Stores/ProductExtras/index.js +29 -1
  37. package/src/components/Stores/ProductExtras/styles.js +8 -1
  38. package/src/components/Stores/SnoozeComponent/index.js +228 -0
  39. package/src/components/Stores/SnoozeComponent/styles.js +242 -0
  40. package/src/styles/Buttons/index.js +11 -0
  41. package/template/pages/BusinessProductsList/index.js +1 -1
  42. /package/_bundles/{ordering-ui-admin.bdf07dd15b2ad6973a2d.js.LICENSE.txt → ordering-ui-admin.8fc588676b4427703151.js.LICENSE.txt} +0 -0
@@ -0,0 +1,242 @@
1
+ import styled, { css } from 'styled-components'
2
+ import { darken } from 'polished'
3
+
4
+ export const SnoozeContainer = styled.div`
5
+ display: flex;
6
+ flex-direction: column;
7
+ transition: all 3s ease-in;
8
+
9
+ ${({ openCalendar }) => openCalendar && css`
10
+ height: 362px;
11
+ `}
12
+ `
13
+
14
+ export const SnoozeTitle = styled.div`
15
+ display: flex;
16
+ font-size: 16;
17
+ font-weight: 700;
18
+ margin-bottom: 30px;
19
+ `
20
+
21
+ export const SnoozeWrapper = styled.div`
22
+ display: flex;
23
+ flex-direction: column;
24
+ justify-content: space-between;
25
+ align-items: flex-start;
26
+ margin-bottom: 30px;
27
+
28
+ > div {
29
+ margin: auto 0;
30
+ > p {
31
+ margin: 0;
32
+ }
33
+ }
34
+
35
+ @media (min-width: 862px) {
36
+ flex-direction: row;
37
+ }
38
+ `
39
+
40
+ export const ButtonWrapper = styled.div`
41
+ display: flex;
42
+
43
+ > button {
44
+ margin-right: 20px;
45
+ }
46
+ `
47
+
48
+ export const Button = styled.button`
49
+ height: 44px;
50
+ background: ${props => props.theme.colors?.backgroundPage || '#FFF'};
51
+ color: ${props => props.theme.colors.primary};
52
+ border-color: ${props => props.theme.colors.primary};
53
+ border: 1px solid #CCC;
54
+ border-radius: 8px;
55
+ line-height: 30px;
56
+ padding-left: 15px;
57
+ padding-right: 15px;
58
+ font-size: 14px;
59
+ cursor: pointer;
60
+ outline: none;
61
+ overflow: hidden;
62
+ text-overflow: ellipsis;
63
+ transition: all .2s ease-in;
64
+
65
+ &:disabled {
66
+ opacity: 0.5;
67
+ cursor: not-allowed;
68
+ }
69
+
70
+ ${({ active }) => active && css`
71
+ background: ${props => darken(0.07, props.theme.colors.primary)} !important;
72
+ color: #FFF !important;
73
+ `}
74
+ ${({ color }) => color === 'primary' && css`
75
+ background: ${props => props.theme.colors.primary};
76
+ color: ${props => props.theme.colors.primaryContrast};
77
+ border-color: ${props => props.theme.colors.primary};
78
+ &:hover {
79
+ background: ${props => darken(0.04, props.theme.colors.primary)};
80
+ }
81
+ &:active {
82
+ background: ${props => darken(0.1, props.theme.colors.primary)};
83
+ }
84
+ ${({ outline }) => outline && css`
85
+ background: ${props => props.theme.colors?.backgroundPage || '#FFF'};
86
+ color: ${props => props.theme.colors.primary};
87
+ border-color: ${props => props.theme.colors.primary};
88
+ &:active {
89
+ color: ${props => props.theme.colors.primaryContrast};
90
+ background: ${props => props.theme.colors.primary};
91
+ }
92
+ &:hover {
93
+ background: ${props => darken(0.07, props.theme.colors.primary)};
94
+ color: #FFF;
95
+ }
96
+ `}
97
+ ${({ circle }) => circle && css`
98
+ background: ${props => props.theme.colors.primary};
99
+ color: ${props => props.theme.colors.primaryContrast};
100
+ border-color: ${props => props.theme.colors.primary};
101
+ padding: 0;
102
+ width: 34px;
103
+ height: 34px;
104
+ line-height: 34px;
105
+ text-align: center;
106
+ border-radius: 50%;
107
+ &:active {
108
+ border-color: ${props => darken(0.07, props.theme.colors.primary)};
109
+ background: ${props => darken(0.07, props.theme.colors.primary)};
110
+ }
111
+ `}
112
+ ${({ circle, outline }) => circle && outline && css`
113
+ background: ${props => props.theme.colors?.backgroundPage || '#FFF'};
114
+ color: ${props => props.theme.colors.primary};
115
+ border-color: ${props => props.theme.colors.primary};
116
+ padding: 0;
117
+ width: 34px;
118
+ height: 34px;
119
+ line-height: 34px;
120
+ text-align: center;
121
+ border-radius: 50%;
122
+ &:active {
123
+ border-color: ${props => props.theme.colors.primary};
124
+ background: ${props => props.theme.colors.primary};
125
+ }
126
+ `}
127
+ `}
128
+ `
129
+
130
+ export const ButtonOptions = styled.button`
131
+ min-width: 65px;
132
+ height: 44px;
133
+ background: ${props => props.theme.colors?.backgroundPage || '#FFF'};
134
+ color: ${props => props.theme.colors.headingColor};
135
+ border-color: ${props => props.theme.colors.headingColor};
136
+ border: 1px solid ${props => props.theme.colors.headingColor};
137
+ border-radius: 8px;
138
+ line-height: 30px;
139
+ padding-left: 15px;
140
+ padding-right: 15px;
141
+ font-size: 14px;
142
+ cursor: pointer;
143
+ outline: none;
144
+ overflow: hidden;
145
+ text-overflow: ellipsis;
146
+ transition: all .2s ease-in;
147
+
148
+
149
+ &:disabled {
150
+ opacity: 0.5;
151
+ cursor: not-allowed;
152
+ }
153
+ &:hover {
154
+ color: ${props => darken(0.07, props.theme.colors.primary)} !important;
155
+ border-color: ${props => props.theme.colors.primary};
156
+ }
157
+ ${({ active }) => active && css`
158
+ color: ${props => props.theme.colors.primary} !important;
159
+ border-color: ${props => props.theme.colors.primary};
160
+ border-width: 2px;
161
+ `}
162
+ `
163
+
164
+ export const DateContainer = styled.div`
165
+ display: flex;
166
+ align-items: center;
167
+ justify-content: center;
168
+ height: 44px;
169
+ background: ${props => props.theme.colors?.backgroundPage || '#FFF'};
170
+ color: ${props => props.theme.colors.headingColor};
171
+ border-color: ${props => props.theme.colors.headingColor};
172
+ border: 1px solid ${props => props.theme.colors.headingColor};
173
+ border-radius: 8px;
174
+ line-height: 30px;
175
+
176
+ ${({ active }) => active && css`
177
+ color: ${props => props.theme.colors.primary} !important;
178
+ border-color: ${props => props.theme.colors.primary} !important;
179
+ border-width: 2px;
180
+
181
+ input {
182
+ color: ${props => props.theme.colors.primary} !important;
183
+ }
184
+ `}
185
+
186
+ input {
187
+ width: auto;
188
+ min-width: 220px;
189
+ border: 0px;
190
+ padding-left: 15px;
191
+ padding-right: 15px;
192
+ font-size: 14px;
193
+ cursor: pointer;
194
+ outline: none;
195
+ overflow: hidden;
196
+ text-overflow: ellipsis;
197
+ transition: all .2s ease-in;
198
+ }
199
+
200
+ ${props => props.theme?.rtl ? css`
201
+ span {
202
+ margin-left: 10px;
203
+ }
204
+ ` : css`
205
+ span {
206
+ margin-right: 10px;
207
+ }
208
+ `}
209
+
210
+ .react-datepicker-popper {
211
+ @media (min-width: 820px) {
212
+ transform: translate3d(-20px, 114px, 0px) !important;
213
+ right: 0px;
214
+ left: unset !important;
215
+ }
216
+ }
217
+ .react-datepicker__triangle {
218
+ display: none;
219
+ }
220
+ `
221
+
222
+ export const IconContainer = styled.div`
223
+ background-color: transparent;
224
+ border: none;
225
+ border-radius: 6px;
226
+ margin-left: 10px;
227
+ padding: 0 5px;
228
+ display: flex;
229
+ align-items: center;
230
+ justify-content: center;
231
+ transition: all .2s ease-in;
232
+ `
233
+
234
+ export const InfoContainer = styled.div`
235
+ display: flex;
236
+ align-items: end;
237
+ justify-content: ${({ hasSnooze }) => hasSnooze ? 'space-between' : 'flex-start'};
238
+
239
+ ${({ hideButtons }) => hideButtons && css`
240
+ justify-content: flex-end;
241
+ `}
242
+ `
@@ -219,6 +219,17 @@ export const Button = styled.button`
219
219
  background: ${props => darken(0.1, props.theme.colors.lightPrimary)};
220
220
  }
221
221
  `}
222
+ ${({ color }) => color === 'lightGreen' && css`
223
+ background: ${props => props.theme.colors.lightGreen};
224
+ color: #00D27A;
225
+ border-color: ${props => props.theme.colors.lightGreen};
226
+ &:hover {
227
+ background: ${props => darken(0.04, props.theme.colors.lightGreen)};
228
+ }
229
+ &:active {
230
+ background: ${props => darken(0.1, props.theme.colors.lightGreen)};
231
+ }
232
+ `}
222
233
  ${({ color }) => color === 'warning' && css`
223
234
  background: ${props => props.theme.colors.warning};
224
235
  color: #FFF;
@@ -42,7 +42,7 @@ export const BusinessProductsList = (props) => {
42
42
  return events.emit('go_to_page', {
43
43
  page: 'store',
44
44
  params: { store: slug },
45
- search: `?category=${category}`,
45
+ search: `category=${category}`,
46
46
  replace: true
47
47
  })
48
48
  }