kitchen-simulator 5.0.0-test.18 → 5.0.0-test.19

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/package.json +8 -26
  2. package/src/@history.js +3 -0
  3. package/src/CrossSignOn.jsx +94 -0
  4. package/src/KitchenConfigurator.jsx +1526 -0
  5. package/src/KitchenConfiguratorApp.jsx +1 -1
  6. package/src/_KitchenConfigurator.jsx +3 -3
  7. package/src/components/catalog-view/catalog-breadcrumb.jsx +53 -0
  8. package/src/components/catalog-view/catalog-item.jsx +229 -0
  9. package/src/components/catalog-view/catalog-list.jsx +173 -0
  10. package/src/components/catalog-view/catalog-page-item.jsx +110 -0
  11. package/src/components/catalog-view/catalog-turn-back-page-item.jsx +80 -0
  12. package/src/components/configurator/custom-configurator.jsx +77 -0
  13. package/src/components/configurator/project-configurator.jsx +120 -0
  14. package/src/components/export.js +36 -0
  15. package/src/components/firstsetting/button/styles.js +223 -0
  16. package/src/components/firstsetting/export.js +9 -0
  17. package/src/components/firstsetting/firstsetting-content-button.jsx +198 -0
  18. package/src/components/firstsetting/firstsetting-toggle-button.jsx +101 -0
  19. package/src/components/firstsetting/firstsetting.jsx +814 -0
  20. package/src/components/footerbar/button/ControlButton.jsx +43 -0
  21. package/src/components/footerbar/button/DirectionButton.jsx +54 -0
  22. package/src/components/footerbar/button/DirectionPanSpinButton.jsx +36 -0
  23. package/src/components/footerbar/button/ToggleButton.jsx +58 -0
  24. package/src/components/footerbar/button/ToggleConvertButton.jsx +48 -0
  25. package/src/components/footerbar/button/ToggleMeasureButton.jsx +33 -0
  26. package/src/components/footerbar/button/styles.js +217 -0
  27. package/src/components/footerbar/export.js +9 -0
  28. package/src/components/footerbar/footer-content-button.jsx +198 -0
  29. package/src/components/footerbar/footer-toggle-button.jsx +101 -0
  30. package/src/components/footerbar/footerbar.jsx +1103 -0
  31. package/src/components/footerbar/styles.js +263 -0
  32. package/src/components/header/button/MenuButton.jsx +46 -0
  33. package/src/components/header/button/SaveButton.jsx +54 -0
  34. package/src/components/header/button/styles.js +181 -0
  35. package/src/components/header/export.js +5 -0
  36. package/src/components/header/header.jsx +631 -0
  37. package/src/components/header/header.style.css +47 -0
  38. package/src/components/header/styles.js +320 -0
  39. package/src/components/login/Login.js +77 -0
  40. package/src/components/login/LoginForm/index.js +108 -0
  41. package/src/components/login/Register.js +82 -0
  42. package/src/components/login/RegisterForm/index.js +171 -0
  43. package/src/components/login/jwtService.js +201 -0
  44. package/src/components/login/style.css +158 -0
  45. package/src/components/login/style.scss +260 -0
  46. package/src/components/myprojects/export.js +5 -0
  47. package/src/components/myprojects/index.jsx +445 -0
  48. package/src/components/myprojects/styles.js +241 -0
  49. package/src/components/sidebar/custom-accordion.jsx +48 -0
  50. package/src/components/sidebar/export.js +15 -0
  51. package/src/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.jsx +73 -0
  52. package/src/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.jsx +101 -0
  53. package/src/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.jsx +149 -0
  54. package/src/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.jsx +316 -0
  55. package/src/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.jsx +108 -0
  56. package/src/components/sidebar/panel-element-editor/element-editor.jsx +1070 -0
  57. package/src/components/sidebar/panel-element-editor/multi-elements-editor.jsx +0 -0
  58. package/src/components/sidebar/panel-element-editor/panel-element-editor.jsx +104 -0
  59. package/src/components/sidebar/panel-element-editor/panel-multi-elements-editor.jsx +155 -0
  60. package/src/components/sidebar/panel-group-editor.jsx +272 -0
  61. package/src/components/sidebar/panel-groups.jsx +310 -0
  62. package/src/components/sidebar/panel-guides.jsx +192 -0
  63. package/src/components/sidebar/panel-layer-elements.jsx +298 -0
  64. package/src/components/sidebar/panel-layers.jsx +381 -0
  65. package/src/components/sidebar/panel.jsx +71 -0
  66. package/src/components/sidebar/sidebar.jsx +106 -0
  67. package/src/components/sidebar/toolbar-panel.jsx +139 -0
  68. package/src/components/sign/export.js +7 -0
  69. package/src/components/sign/main/index.jsx +523 -0
  70. package/src/components/sign/main/styles.js +163 -0
  71. package/src/components/toolbar/button/ControlButton.jsx +41 -0
  72. package/src/components/toolbar/button/DirectionButton.jsx +34 -0
  73. package/src/components/toolbar/button/RightButton.jsx +103 -0
  74. package/src/components/toolbar/button/ToggleButton.jsx +41 -0
  75. package/src/components/toolbar/button/index.jsx +55 -0
  76. package/src/components/toolbar/button/styles.js +127 -0
  77. package/src/components/toolbar/components/DoorStyleMenu.jsx +103 -0
  78. package/src/components/toolbar/components/Pricing.jsx +126 -0
  79. package/src/components/toolbar/components/ReviewForQuote.jsx +635 -0
  80. package/src/components/toolbar/export.js +21 -0
  81. package/src/components/toolbar/main/Alert.js +122 -0
  82. package/src/components/toolbar/main/TakePictureModal.jsx +104 -0
  83. package/src/components/toolbar/main/confirm-popup.jsx +99 -0
  84. package/src/components/toolbar/main/index.jsx +5627 -0
  85. package/src/components/toolbar/main/lShaped.json +311 -0
  86. package/src/components/toolbar/main/longNarrow.json +238 -0
  87. package/src/components/toolbar/main/myComponents.js +123 -0
  88. package/src/components/toolbar/main/oRectangle.json +220 -0
  89. package/src/components/toolbar/main/rectangle.json +238 -0
  90. package/src/components/toolbar/main/style.css +107 -0
  91. package/src/components/toolbar/main/styles.js +696 -0
  92. package/src/components/toolbar/plugin-item.jsx +123 -0
  93. package/src/components/toolbar/popup/appliance/appliance-category/index.jsx +73 -0
  94. package/src/components/toolbar/popup/appliance/choose-appliance/index.jsx +102 -0
  95. package/src/components/toolbar/popup/appliance/index.jsx +83 -0
  96. package/src/components/toolbar/popup/autosaveprompt/index.jsx +150 -0
  97. package/src/components/toolbar/popup/autosaveprompt/styles.css +64 -0
  98. package/src/components/toolbar/popup/autosaveprompt/styles.js +40 -0
  99. package/src/components/toolbar/popup/cabinet/cabinet-category/index.jsx +73 -0
  100. package/src/components/toolbar/popup/cabinet/choose-product/index.jsx +119 -0
  101. package/src/components/toolbar/popup/cabinet/index.jsx +85 -0
  102. package/src/components/toolbar/popup/doorStyle/choose-style/index.jsx +63 -0
  103. package/src/components/toolbar/popup/doorStyle/index.jsx +71 -0
  104. package/src/components/toolbar/popup/doorStyle/style-category/index.jsx +139 -0
  105. package/src/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +2 -0
  106. package/src/components/toolbar/popup/downloadsummary/downloadSummaryTemp.jsx +157 -0
  107. package/src/components/toolbar/popup/downloadsummary/index.jsx +643 -0
  108. package/src/components/toolbar/popup/downloadsummary/show2D/show2DView.jsx +51 -0
  109. package/src/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.jsx +175 -0
  110. package/src/components/toolbar/popup/downloadsummary/show3D/show3DView.jsx +283 -0
  111. package/src/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.jsx +2257 -0
  112. package/src/components/toolbar/popup/downloadsummary/showCabinetInfo.js +93 -0
  113. package/src/components/toolbar/popup/downloadsummary/showElevation/showElevationView.jsx +132 -0
  114. package/src/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.jsx +2198 -0
  115. package/src/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.jsx +152 -0
  116. package/src/components/toolbar/popup/downloadsummary/showWarranty.jsx +149 -0
  117. package/src/components/toolbar/popup/downloadsummary/styles.css +177 -0
  118. package/src/components/toolbar/popup/downloadsummary/styles.js +453 -0
  119. package/src/components/toolbar/popup/finishingtouch/category/index.jsx +34 -0
  120. package/src/components/toolbar/popup/finishingtouch/index.jsx +58 -0
  121. package/src/components/toolbar/popup/finishingtouch/material-edit.jsx +112 -0
  122. package/src/components/toolbar/popup/finishingtouch/product/index.jsx +116 -0
  123. package/src/components/toolbar/popup/floorplan/choose-floor/confirm-popup.jsx +101 -0
  124. package/src/components/toolbar/popup/floorplan/choose-floor/index.jsx +254 -0
  125. package/src/components/toolbar/popup/floorplan/choose-floor/lShaped.json +311 -0
  126. package/src/components/toolbar/popup/floorplan/choose-floor/longNarrow.json +238 -0
  127. package/src/components/toolbar/popup/floorplan/choose-floor/oRectangle.json +220 -0
  128. package/src/components/toolbar/popup/floorplan/choose-floor/rectangle.json +238 -0
  129. package/src/components/toolbar/popup/floorplan/choose-floor/styles.js +86 -0
  130. package/src/components/toolbar/popup/floorplan/floor-category/index.jsx +109 -0
  131. package/src/components/toolbar/popup/floorplan/index.jsx +60 -0
  132. package/src/components/toolbar/popup/index.jsx +241 -0
  133. package/src/components/toolbar/popup/newproject/index.jsx +59 -0
  134. package/src/components/toolbar/popup/newproject/styles.css +64 -0
  135. package/src/components/toolbar/popup/newproject/styles.js +41 -0
  136. package/src/components/toolbar/popup/product/appliance.jsx +54 -0
  137. package/src/components/toolbar/popup/product/cabinetproduct.jsx +15 -0
  138. package/src/components/toolbar/popup/product/doorstyle.jsx +58 -0
  139. package/src/components/toolbar/popup/product/doorstyleproduct.jsx +47 -0
  140. package/src/components/toolbar/popup/product/floor.jsx +36 -0
  141. package/src/components/toolbar/popup/product/floorproduct.jsx +42 -0
  142. package/src/components/toolbar/popup/product/index.jsx +36 -0
  143. package/src/components/toolbar/popup/product/primary.jsx +77 -0
  144. package/src/components/toolbar/popup/product/productline.jsx +93 -0
  145. package/src/components/toolbar/popup/product/reviewItem.jsx +427 -0
  146. package/src/components/toolbar/popup/product/reviewMolding.jsx +310 -0
  147. package/src/components/toolbar/popup/product/style.css +54 -0
  148. package/src/components/toolbar/popup/product/styles.js +260 -0
  149. package/src/components/toolbar/popup/savedesign/FullPictureForm.jsx +146 -0
  150. package/src/components/toolbar/popup/savedesign/index.jsx +495 -0
  151. package/src/components/toolbar/popup/savedesign/savedesign.style.css +16 -0
  152. package/src/components/toolbar/popup/savedesign/styles.js +151 -0
  153. package/src/components/toolbar/popup/setDoorStyleOption/index.jsx +87 -0
  154. package/src/components/toolbar/popup/styles.js +909 -0
  155. package/src/components/toolbar/popup/submitforquote/AddToCartOptions.jsx +192 -0
  156. package/src/components/toolbar/popup/submitforquote/CustomerRequestsForm.jsx +96 -0
  157. package/src/components/toolbar/popup/submitforquote/SkipDesignerReview.jsx +54 -0
  158. package/src/components/toolbar/popup/submitforquote/StepDots.jsx +25 -0
  159. package/src/components/toolbar/popup/submitforquote/cart-choice.jsx +116 -0
  160. package/src/components/toolbar/popup/submitforquote/doorstyle-menus.js +38 -0
  161. package/src/components/toolbar/popup/submitforquote/index.jsx +698 -0
  162. package/src/components/toolbar/popup/submitforquote/styles.css +105 -0
  163. package/src/components/toolbar/popup/submitforquote/styles.js +294 -0
  164. package/src/components/toolbar/popup/submitprompt/index.jsx +89 -0
  165. package/src/components/toolbar/popup/submitprompt/styles.css +64 -0
  166. package/src/components/toolbar/popup/submitprompt/styles.js +42 -0
  167. package/src/components/toolbar/toolbar-button.jsx +90 -0
  168. package/src/components/toolbar/toolbar-load-button.jsx +36 -0
  169. package/src/components/toolbar/toolbar-save-button.jsx +32 -0
  170. package/src/components/wizardstep/button/styles.js +677 -0
  171. package/src/components/wizardstep/export.js +5 -0
  172. package/src/components/wizardstep/index.jsx +1372 -0
  173. package/src/components/wizardstep/styles.js +688 -0
  174. package/src/components/wizardstep/wizardstep-content-button.jsx +198 -0
  175. package/src/components/wizardstep/wizardstep-toggle-button.jsx +101 -0
  176. package/src/{_index.js → index.js} +4 -4
  177. package/src/renderer.jsx +466 -0
  178. package/src/actions/_export.js +0 -35
  179. package/src/components/_export.js +0 -11
@@ -0,0 +1,453 @@
1
+ import styled from 'styled-components';
2
+ import {
3
+ BG_COLOR_0,
4
+ BG_COLOR_1,
5
+ BG_COLOR_HOVER,
6
+ DEFAULT_FONT_FAMILY,
7
+ SECONDARY_PURPLE_COLOR,
8
+ SHADE_DARK_PURPLE_COLOR,
9
+ SHADE_LIGHT_PURPLE_COLOR,
10
+ TEXT_COLOR_NEUTRAL_0,
11
+ TEXT_COLOR_NEUTRAL_1,
12
+ TEXT_COLOR_NEUTRAL_2,
13
+ TEXT_COLOR_NEUTRAL_3
14
+ } from '../../../../constants';
15
+
16
+ export const DialogTitle = styled.span`
17
+ color: ${TEXT_COLOR_NEUTRAL_0};
18
+ font-family: ${DEFAULT_FONT_FAMILY};
19
+ font-size: 22px;
20
+ font-weight: 700;
21
+ line-height: 30px;
22
+ text-align: left;
23
+ word-wrap: break-word;
24
+ `;
25
+
26
+ export const DialogContent = styled.span`
27
+ font-family: ${DEFAULT_FONT_FAMILY};
28
+ color: ${TEXT_COLOR_NEUTRAL_1};
29
+
30
+ @media screen and (min-width: 1024px) {
31
+ font-size: 11px;
32
+ }
33
+ @media screen and (max-width: 1024px) {
34
+ font-size: 11px;
35
+ }
36
+ @media screen and (min-width: 1366px) {
37
+ font-size: 13px;
38
+ }
39
+ @media screen and (max-width: 1366px) {
40
+ font-size: 13px;
41
+ }
42
+ @media screen and (min-width: 1920px) {
43
+ font-size: 12px;
44
+ }
45
+ @media screen and (max-width: 1920px) {
46
+ font-size: 12px;
47
+ }
48
+ font-weight: 400;
49
+ line-height: 15px;
50
+ text-align: left;
51
+ width: 100%;
52
+ word-wrap: break-word;
53
+ `;
54
+ export const DialogContents = styled.span`
55
+ font-family: ${DEFAULT_FONT_FAMILY};
56
+ color: ${TEXT_COLOR_NEUTRAL_1};
57
+ padding: 10px 0px;
58
+ margin-left: 10px;
59
+
60
+ @media screen and (min-width: 1024px) {
61
+ font-size: 11px;
62
+ }
63
+ @media screen and (max-width: 1024px) {
64
+ font-size: 11px;
65
+ }
66
+ @media screen and (min-width: 1366px) {
67
+ font-size: 13px;
68
+ }
69
+ @media screen and (max-width: 1366px) {
70
+ font-size: 13px;
71
+ }
72
+ @media screen and (min-width: 1920px) {
73
+ font-size: 12px;
74
+ }
75
+ @media screen and (max-width: 1920px) {
76
+ font-size: 12px;
77
+ }
78
+ font-weight: 400;
79
+ line-height: 15px;
80
+ text-align: left;
81
+ word-wrap: break-word;
82
+ `;
83
+
84
+ export const DialogContentSelection = styled.div`
85
+ display: flex;
86
+ flex-direction: column;
87
+ padding: 10px 30px;
88
+ max-height: calc(100vh - 300px);
89
+ overflow-y: scroll;
90
+ `;
91
+
92
+ export const DialogAction = styled.div`
93
+ display: flex;
94
+ justify-content: flex-end;
95
+ padding: 15px 30px 25px;
96
+ `;
97
+
98
+ export const Button = styled.div`
99
+ padding: 10px 20px;
100
+ cursor: pointer;
101
+ margin-right: 10px;
102
+ color: ${SECONDARY_PURPLE_COLOR};
103
+ font-weight: bold;
104
+ font-family: ${DEFAULT_FONT_FAMILY};
105
+ font-size: 16px;
106
+ border-radius: 20px;
107
+
108
+ :hover {
109
+ background-color: ${BG_COLOR_HOVER};
110
+ }
111
+ `;
112
+
113
+ export const DialogTextArea = styled.textarea`
114
+ font-family: ${DEFAULT_FONT_FAMILY};
115
+ font-size: 16px;
116
+ font-weight: 400;
117
+ line-height: 22px;
118
+ text-align: left;
119
+ padding: 10px;
120
+ resize: none;
121
+ height: 140px;
122
+ width: 100%;
123
+ outline: 0;
124
+ border-radius: 5px;
125
+
126
+ :hover {
127
+ border: 2px solid ${SECONDARY_PURPLE_COLOR};
128
+ }
129
+
130
+ :focus {
131
+ border: 2px solid ${SECONDARY_PURPLE_COLOR};
132
+ }
133
+ `;
134
+
135
+ export const StyledInputWrapper = styled.div`
136
+ position: relative;
137
+ display: flex;
138
+ align-items: center;
139
+ margin: 10px 0px;
140
+ `;
141
+
142
+ export const PlusImage = styled.img`
143
+ position: absolute;
144
+ height: 15px;
145
+ width: 15px;
146
+ transform: rotate(45deg);
147
+ right: 15px;
148
+ cursor: pointer;
149
+ background-color: ${TEXT_COLOR_NEUTRAL_3};
150
+ -webkit-mask-image: url(${props => props.maskImage});
151
+ -webkit-mask-size: 100% 100%;
152
+ -webkit-mask-repeat: no-repeat;
153
+ `;
154
+
155
+ export const StyledInput = styled.input`
156
+ width: 100%;
157
+ font-family: ${DEFAULT_FONT_FAMILY};
158
+ font-size: 12px;
159
+ font-weight: 400;
160
+ line-height: 15px;
161
+ height: 50px;
162
+ text-align: left;
163
+ padding: 10px 60px 10px 10px;
164
+ color: ${TEXT_COLOR_NEUTRAL_2};
165
+ border: 1px solid;
166
+ border-radius: 5px;
167
+ outline: 0;
168
+ word-wrap: break-word;
169
+
170
+ :focus {
171
+ border: 2px solid ${SECONDARY_PURPLE_COLOR};
172
+ }
173
+
174
+ :hover {
175
+ border: 2px solid ${SECONDARY_PURPLE_COLOR};
176
+ }
177
+ `;
178
+
179
+ export const StyledInputLabel = styled.span`
180
+ font-size: 16px;
181
+ font-family: ${DEFAULT_FONT_FAMILY};
182
+ font-weight: 400;
183
+ line-height: 22px;
184
+ text-align: left;
185
+ position: absolute;
186
+ left: 47px;
187
+ color: ${TEXT_COLOR_NEUTRAL_2};
188
+ user-select: none;
189
+ `;
190
+
191
+ export const StyledInputHeadLabel = styled.span`
192
+ font-size: 12px;
193
+ font-family: ${DEFAULT_FONT_FAMILY};
194
+ font-weight: 400;
195
+ line-height: 18px;
196
+ text-align: left;
197
+ position: absolute;
198
+ left: 12px;
199
+ top: -9px;
200
+ background-color: ${BG_COLOR_1};
201
+ padding: 0px 7px;
202
+ color: ${SECONDARY_PURPLE_COLOR};
203
+ user-select: none;
204
+ `;
205
+
206
+ export const StyledSelectLabel = styled.span`
207
+ position: absolute;
208
+ left: 8px;
209
+
210
+ @media screen and (min-width: 1024) {
211
+ font-size: 11px;
212
+ }
213
+ @media screen and (max-width: 1024) {
214
+ font-size: 11px;
215
+ }
216
+ @media screen and (min-width: 1366) {
217
+ font-size: 13px;
218
+ }
219
+ @media screen and (max-width: 1366) {
220
+ font-size: 13px;
221
+ }
222
+ @media screen and (min-width: 1440) {
223
+ font-size: 16px;
224
+ }
225
+ @media screen and (max-width: 1440) {
226
+ font-size: 16px;
227
+ }
228
+ line-height: 18px;
229
+ padding: 0px 8px;
230
+ top: -9px;
231
+ font-weight: 400;
232
+ background-color: ${BG_COLOR_1};
233
+ color: ${TEXT_COLOR_NEUTRAL_2};
234
+ font-family: ${DEFAULT_FONT_FAMILY};
235
+ `;
236
+
237
+ export const StyledSelect = styled.div`
238
+ cursor: pointer;
239
+ padding: 10px;
240
+ color: ${TEXT_COLOR_NEUTRAL_1};
241
+ font-family: ${DEFAULT_FONT_FAMILY};
242
+ font-size: 16px;
243
+ font-weight: 700;
244
+ line-height: 22px;
245
+ text-align: left;
246
+ height: 35px;
247
+ border-radius: 5px;
248
+ width: 100%;
249
+ display: flex;
250
+ align-items: center;
251
+ border: 2px solid ${TEXT_COLOR_NEUTRAL_3};
252
+
253
+ :hover {
254
+ border-color: ${SECONDARY_PURPLE_COLOR};
255
+ }
256
+ `;
257
+
258
+ export const StyledSelectOption = styled.div`
259
+ padding: 12px 20px;
260
+ font-size: 16px;
261
+ font-weight: 400;
262
+ line-height: 22px;
263
+ display: flex;
264
+ align-items: center;
265
+ text-align: left;
266
+ font-family: ${DEFAULT_FONT_FAMILY};
267
+ cursor: pointer;
268
+
269
+ :hover {
270
+ background-color: ${BG_COLOR_HOVER};
271
+ }
272
+ `;
273
+
274
+ export const SelectArrow = styled.img`
275
+ position: absolute;
276
+ right: 15px;
277
+ cursor: pointer;
278
+ width: 15px;
279
+ height: 9px;
280
+ background-color: ${TEXT_COLOR_NEUTRAL_3};
281
+ -webkit-mask-image: url(${props => props.maskImage});
282
+ -webkit-mask-size: 100% 100%;
283
+ -webkit-mask-repeat: no-repeat;
284
+ `;
285
+
286
+ export const StyledSelectWrapper = styled.div`
287
+ position: relative;
288
+ display: flex;
289
+ align-items: center;
290
+ margin: 10px 0px;
291
+ `;
292
+
293
+ export const DoorCategoryImage = styled.img`
294
+ width: 22px;
295
+ height: 22px;
296
+ margin-left: 5px;
297
+ margin-right: 10px;
298
+ background-color: ${SECONDARY_PURPLE_COLOR};
299
+ -webkit-mask-image: url(${props => props.maskImage});
300
+ -webkit-mask-size: 100% 100%;
301
+ -webkit-mask-repeat: no-repeat;
302
+ `;
303
+
304
+ export const StyledCheck = styled.div`
305
+ border: 1px solid;
306
+ margin-right: 10px;
307
+ color: ${TEXT_COLOR_NEUTRAL_2};
308
+ height: 20px;
309
+ border-radius: 50%;
310
+ width: 20px;
311
+ padding: 2px;
312
+ cursor: pointer;
313
+ background-size: 16px 16px;
314
+ background-position: center;
315
+ background-clip: content-box;
316
+
317
+ :hover {
318
+ color: ${SECONDARY_PURPLE_COLOR};
319
+ }
320
+ `;
321
+
322
+ export const ReviewQuoteTable = styled.div`
323
+ display: flex;
324
+ flex-direction: column;
325
+ `;
326
+
327
+ export const ReviewQuoteThead = styled.div`
328
+ background-color: ${BG_COLOR_0};
329
+ display: flex;
330
+ align-items: center;
331
+ `;
332
+
333
+ export const ReviewQuoteTh = styled.div`
334
+ font-family: ${DEFAULT_FONT_FAMILY};
335
+
336
+ @media screen and (min-width: 1024) {
337
+ font-size: 11px;
338
+ }
339
+ @media screen and (max-width: 1024) {
340
+ font-size: 11px;
341
+ }
342
+ @media screen and (min-width: 1366) {
343
+ font-size: 13px;
344
+ }
345
+ @media screen and (max-width: 1366) {
346
+ font-size: 13px;
347
+ }
348
+ @media screen and (min-width: 1440) {
349
+ font-size: 16px;
350
+ }
351
+ @media screen and (max-width: 1440) {
352
+ font-size: 16px;
353
+ }
354
+ line-height: 13px;
355
+ text-align: center;
356
+ font-weight: 600;
357
+ margin: 5px;
358
+ line-height: normal;
359
+ color: ${TEXT_COLOR_NEUTRAL_3};
360
+ `;
361
+
362
+ export const ReviewQuoteItem = styled.div`
363
+ display: flex;
364
+ align-items: center;
365
+ width: 100%;
366
+ justify-content: center;
367
+ `;
368
+
369
+ export const DownloadPopupContainer = styled.div`
370
+ padding: 30px;
371
+ display: flex;
372
+ flex-direction: column;
373
+ justify-content: center;
374
+ `;
375
+ export const DownloadPopupHeaderStyle = styled.div`
376
+ margin-top: 20px;
377
+ padding: 15px 0;
378
+ display: flex;
379
+ justify-content: space-between;
380
+ border-bottom: 1px solid gray;
381
+ `;
382
+ export const DownloadPopupBaseFontStyle = styled.div`
383
+ color: rgba(10, 10, 10, 0.692);
384
+ /* font-size: 12px; */
385
+ font-family: Open Sans;
386
+ /* font-weight: 600; */
387
+ `;
388
+ export const SaveBox = styled.button`
389
+ cursor: pointer;
390
+ position: relative;
391
+ //margin-top : 20px;
392
+ border: 3px solid ${SECONDARY_PURPLE_COLOR};
393
+ border-radius: 6px;
394
+ padding: 7px 16px;
395
+ display: flex;
396
+ align-items: center;
397
+ background-color: ${SECONDARY_PURPLE_COLOR};
398
+ outline: 0;
399
+
400
+ :hover {
401
+ background-color: ${SHADE_LIGHT_PURPLE_COLOR};
402
+ border-color: ${SHADE_LIGHT_PURPLE_COLOR};
403
+ }
404
+
405
+ :active {
406
+ background-color: ${SHADE_DARK_PURPLE_COLOR};
407
+ border-color: ${SHADE_DARK_PURPLE_COLOR};
408
+ }
409
+
410
+ // :focus{
411
+ // box-shadow: 0px 0px 8px 2px ${SECONDARY_PURPLE_COLOR};
412
+ // }
413
+ `;
414
+
415
+ export const SelectTitle = styled.span`
416
+ color: ${SECONDARY_PURPLE_COLOR};
417
+ padding-left: 10px;
418
+ margin: auto;
419
+ font-family: ${DEFAULT_FONT_FAMILY};
420
+ font-size: 12px;
421
+ font-weight: 600;
422
+ line-height: 16px;
423
+ text-align: center;
424
+ word-wrap: break-word;
425
+ `;
426
+
427
+ export const previewPan = styled.div`
428
+ height: 100%;
429
+ border-radius: 5px;
430
+
431
+ ::-webkit-scrollbar {
432
+ width: 4px;
433
+ position: absolute;
434
+ margin-left: 2px;
435
+ }
436
+
437
+ ::-webkit-scrollbar-track {
438
+ background-color: rgb(193, 202, 228);
439
+ position: absolute;
440
+ }
441
+
442
+ ::-webkit-scrollbar-thumb {
443
+ background-color: rgb(193, 202, 228);
444
+ border-radius: 5px;
445
+ transition: all 0.3s;
446
+ }
447
+
448
+ ::-webkit-scrollbar-thumb:hover {
449
+ background-color: rgb(193, 202, 228);
450
+ border-radius: 5px;
451
+ transition: all 0.3s;
452
+ }
453
+ `;
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import ToolbarPanel from '../../../../sidebar/toolbar-panel';
3
+ import * as S from '../../styles';
4
+
5
+ export const FinishingCategory = ({ action, props, dataSource, isExpand }) => {
6
+ let miHeight = 0;
7
+ let nonHeight = 495 - miHeight + 'px';
8
+ let height = window.innerHeight * 0.6 - miHeight + 'px';
9
+ var result = [];
10
+ dataSource.map((el, key) => {
11
+ result.push(
12
+ <S.ItemWrapper key={key.toString()}>
13
+ <ToolbarPanel
14
+ key={key}
15
+ onClose={() => {
16
+ action(el.name);
17
+ }}
18
+ onOpen={() => {
19
+ action(el.name);
20
+ }}
21
+ isUrl={true}
22
+ name={el.name}
23
+ url={el.thumbnail}
24
+ />
25
+ </S.ItemWrapper>
26
+ );
27
+ });
28
+
29
+ return (
30
+ <S.CategoryContentWrapper style={{ height: isExpand ? height : nonHeight }}>
31
+ {result}
32
+ </S.CategoryContentWrapper>
33
+ );
34
+ };
@@ -0,0 +1,58 @@
1
+ import React from 'react';
2
+ import { FinishingCategory } from './category';
3
+ import { FinishingProduct } from './product';
4
+
5
+ import { ToolbarButtonWithPopup, DoubleToolbarButtonWithPopup } from '../';
6
+
7
+ const FinishingTouchToolbarButton = ({
8
+ dataSource,
9
+ action,
10
+ chooseAction,
11
+ subData,
12
+ props,
13
+ productCollapse,
14
+ isOpen,
15
+ trigger,
16
+ categoryCollapse,
17
+ collapseAction,
18
+ mode,
19
+ closeAction,
20
+ applyMaterial
21
+ }) => {
22
+ let content = (
23
+ <FinishingCategory
24
+ action={action}
25
+ dataSource={dataSource}
26
+ isExpand={!categoryCollapse}
27
+ props={props}
28
+ />
29
+ );
30
+ let content1 = (
31
+ <FinishingProduct
32
+ chooseAction={chooseAction}
33
+ props={props}
34
+ dataSource={subData}
35
+ isExpand={!productCollapse}
36
+ mode={mode}
37
+ ></FinishingProduct>
38
+ );
39
+ return (
40
+ <DoubleToolbarButtonWithPopup
41
+ closeAction={closeAction}
42
+ isOpen={isOpen}
43
+ mode={mode}
44
+ order={4}
45
+ isDouble={subData.length}
46
+ collapse1={categoryCollapse}
47
+ collapse2={productCollapse}
48
+ collapseAction={collapseAction}
49
+ trigger={trigger}
50
+ children1={content1}
51
+ applyMaterial={applyMaterial}
52
+ >
53
+ {content}
54
+ </DoubleToolbarButtonWithPopup>
55
+ );
56
+ };
57
+
58
+ export default FinishingTouchToolbarButton;
@@ -0,0 +1,112 @@
1
+ import React from 'react';
2
+ import { Input, Form, Row, Col, Select } from 'antd';
3
+ import * as S from '../product/styles';
4
+ import * as MS from '../styles';
5
+
6
+ const FormItem = Form.Item;
7
+ const { Option } = Select;
8
+ const formItemLayout = {
9
+ labelCol: { span: 9 },
10
+ wrapperCol: { span: 12 }
11
+ };
12
+
13
+ const msButtonTitleStyle = {
14
+ top: '39%',
15
+ fontSize: '12'
16
+ };
17
+
18
+ export default class MaterialEdit extends React.Component {
19
+ constructor(props) {
20
+ super(props);
21
+ this.state = {
22
+ category: 'handle',
23
+ metalness: 0.1,
24
+ roughness: 0.1
25
+ };
26
+ }
27
+
28
+ handleCategoryChange(e) {
29
+ this.setState({ category: e.target.value });
30
+ }
31
+ handleMetalnessChange(e) {
32
+ this.setState({ metalness: e.target.value });
33
+ }
34
+ handleRoughnessChange(e) {
35
+ this.setState({ roughness: e.target.value });
36
+ }
37
+ handleClick(e) {
38
+ const { category, metalness, roughness } = this.state;
39
+ this.props.applyMaterial(category, metalness, roughness);
40
+ }
41
+ render() {
42
+ const { category, metalness, roughness } = this.state;
43
+
44
+ return (
45
+ <div
46
+ style={{
47
+ position: 'absolute',
48
+ backgroundColor: 'rgba(255, 255, 255, 100)',
49
+ border: '1px solid white'
50
+ }}
51
+ >
52
+ <S.Control
53
+ style={{
54
+ display: 'flex',
55
+ flexDirection: 'column',
56
+ justifyContent: 'flex-end'
57
+ }}
58
+ >
59
+ <S.MEditLine>
60
+ <span>{'Category: '}</span>
61
+ <select
62
+ value={category}
63
+ style={{ width: '65%', marginRight: '3%' }}
64
+ onChange={e => this.handleCategoryChange(e)}
65
+ >
66
+ <option value={'handle'}> Handle </option>
67
+ <option value={'floor_style'}> Floor Style </option>
68
+ <option value={'backsplash'}> Backsplash </option>
69
+ <option value={'counter_top'}> Countertop </option>
70
+ <option value={'appliance'}> Appliance </option>
71
+ </select>
72
+ </S.MEditLine>
73
+ <S.MEditLine>
74
+ <span>{'Metalness: '}</span>
75
+ <input
76
+ type="text"
77
+ value={metalness}
78
+ onChange={e => this.handleMetalnessChange(e)}
79
+ style={{ width: '65%', marginRight: '3%' }}
80
+ />
81
+ </S.MEditLine>
82
+ <S.MEditLine>
83
+ <span>{'Roughness: '}</span>
84
+ <input
85
+ type="text"
86
+ value={roughness}
87
+ onChange={e => this.handleRoughnessChange(e)}
88
+ style={{ width: '65%', marginRight: '3%' }}
89
+ />
90
+ </S.MEditLine>
91
+
92
+ <S.ControlIconMEdit
93
+ style={{
94
+ height: '25px',
95
+ display: 'flex',
96
+ justifyContent: 'space-around'
97
+ }}
98
+ onClick={e => this.handleClick(e)}
99
+ >
100
+ <img
101
+ width={'72px'}
102
+ src={'/assets/img/svg/toolbar/use_button.svg'}
103
+ />
104
+ <MS.ButtonTitle style={{ ...msButtonTitleStyle }}>
105
+ {'APPLY'}
106
+ </MS.ButtonTitle>
107
+ </S.ControlIconMEdit>
108
+ </S.Control>
109
+ </div>
110
+ );
111
+ }
112
+ }