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,263 @@
1
+ import {
2
+ BG_COLOR_HOVER,
3
+ DEFAULT_FONT_FAMILY,
4
+ SECONDARY_PURPLE_COLOR,
5
+ TEXT_COLOR_NEUTRAL_1,
6
+ TEXT_COLOR_NEUTRAL_5
7
+ } from '../../constants';
8
+ import styled from 'styled-components';
9
+
10
+ export const Toggle_2D_3D = styled.div`
11
+ width: 50px;
12
+ margin-left: 10px;
13
+ border-radius: 5px;
14
+ height: 50px;
15
+ align-items: center;
16
+ justify-content: center;
17
+ display: flex;
18
+ user-select: none;
19
+ :hover {
20
+ background-color: ${TEXT_COLOR_NEUTRAL_5};
21
+ }
22
+ `;
23
+
24
+ export const Toggle_2D_3D_Button = styled.div`
25
+ width: 50px;
26
+ margin-left: 10px;
27
+ border-radius: 5px;
28
+ height: 50px;
29
+ align-items: center;
30
+ justify-content: center;
31
+ display: flex;
32
+ background-color: #ffffff;
33
+ cursor: not-allowed;
34
+ opacity: 0.5;
35
+ `;
36
+
37
+ export const FooterTitle = styled.span`
38
+ color: ${SECONDARY_PURPLE_COLOR};
39
+ font-family: ${DEFAULT_FONT_FAMILY};
40
+ font-size: 16px;
41
+ font-weight: 600;
42
+ line-height: 22px;
43
+ text-align: left;
44
+ user-select: none;
45
+ `;
46
+
47
+ export const Direction_Up_Down = styled.div`
48
+ width: 50px;
49
+ margin-left: 5px;
50
+ border-radius: 5px;
51
+ height: 25px;
52
+ align-items: center;
53
+ display: flex;
54
+ :hover {
55
+ background-color: ${TEXT_COLOR_NEUTRAL_5};
56
+ }
57
+ `;
58
+
59
+ export const Direction_Left_Right = styled.div`
60
+ width: 50px;
61
+ margin-left: 5px;
62
+ border-radius: 5px;
63
+ height: 50px;
64
+ align-items: center;
65
+ display: flex;
66
+ :hover {
67
+ background-color: ${TEXT_COLOR_NEUTRAL_5};
68
+ }
69
+ `;
70
+
71
+ export const ArrowIcon = styled.img`
72
+ height: 10px;
73
+ width: 12px;
74
+ margin: auto;
75
+ user-select: none;
76
+ `;
77
+ export const Rotation_Button = styled.div`
78
+ width: ${props => (props.isVertical ? '48px' : '56px')};
79
+ height: ${props => (props.isVertical ? '48px' : '32px')};
80
+ border-radius: 5px;
81
+ align-items: center;
82
+ display: flex;
83
+ justify-content: center;
84
+ :hover {
85
+ background-color: ${TEXT_COLOR_NEUTRAL_5};
86
+ }
87
+ `;
88
+ export const Rotation_Icon = styled.img`
89
+ height: ${props => (props.height ? props.height : '22px')};
90
+ width: ${props => (props.width ? props.width : '22px')};
91
+ user-select: none;
92
+ `;
93
+
94
+ export const ZoomButton = styled.div`
95
+ width: 50px;
96
+ margin-left: 10px;
97
+ border-radius: 5px;
98
+ height: 50px;
99
+ align-items: center;
100
+ display: flex;
101
+ :hover {
102
+ background-color: ${TEXT_COLOR_NEUTRAL_5};
103
+ }
104
+ `;
105
+
106
+ export const ZoomIcon = styled.img`
107
+ height: 10px;
108
+ width: 12px;
109
+ margin: auto;
110
+ user-select: none;
111
+ `;
112
+
113
+ export const ZoomInput = styled.input`
114
+ color: ${SECONDARY_PURPLE_COLOR};
115
+ width: 50px;
116
+ margin-left: 5px;
117
+ border-radius: 5px;
118
+ font-family: ${DEFAULT_FONT_FAMILY};
119
+ font-size: 13px;
120
+ font-weight: 600;
121
+ line-height: 18px;
122
+ text-align: center;
123
+ height: 50px;
124
+ align-items: center;
125
+ display: flex;
126
+ `;
127
+
128
+ export const Control = styled.div`
129
+ width: 28px;
130
+ height: 28px;
131
+ display: flex;
132
+ justify-content: center;
133
+ font-size: 15px;
134
+ cursor: pointer;
135
+ background-color: #fff;
136
+ color: white;
137
+ border-radius: 20px;
138
+ margin-right: 15px;
139
+ margin-top: 16px;
140
+ right: 260px;
141
+ bottom: 25px;
142
+ -webkit-user-select: none;
143
+ -moz-user-select: none;
144
+ -ms-user-select: none;
145
+ user-select: none;
146
+ `;
147
+ export const ControlTitle = styled.span`
148
+ margin: 10px;
149
+ font-size: 12px;
150
+ `;
151
+ export const ControlIcon = styled.div`
152
+ img {
153
+ font-size: 1.4rem;
154
+ box-sizing: border-box;
155
+ box-shadow: 0px 3px 5px -1px rgba(156, 154, 154, 0.2),
156
+ 0px 6px 10px 0px rgba(156, 154, 154, 0.39),
157
+ 0px 1px 18px 0px rgba(156, 154, 154, 0.12);
158
+
159
+ border-radius: 50%;
160
+ }
161
+
162
+ :hover {
163
+ img {
164
+ box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
165
+ 0px 6px 10px 0px rgba(0, 0, 0, 0.39),
166
+ 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
167
+ }
168
+ }
169
+ `;
170
+ export const Direction = styled.div`
171
+ display: flex;
172
+ align-items: center;
173
+ justify-content: center;
174
+ font-size: 15px;
175
+ cursor: pointer;
176
+ color: white;
177
+ border-radius: 32px;
178
+ margin-right: 15px;
179
+ right: 260px;
180
+ bottom: 25px;
181
+ `;
182
+ export const DirectionIcon = styled.div`
183
+ position: absolute;
184
+ color: #494949;
185
+ :hover {
186
+ color: #2c38de;
187
+ }
188
+ `;
189
+ export const DirectionSpinIcon = styled.div`
190
+ position: absolute;
191
+ color: #494949;
192
+ img {
193
+ font-size: 1.4rem;
194
+ box-sizing: border-box;
195
+ box-shadow: 0px 3px 5px -1px rgba(156, 154, 154, 0.2),
196
+ 0px 6px 10px 0px rgba(156, 154, 154, 0.39),
197
+ 0px 1px 18px 0px rgba(156, 154, 154, 0.12);
198
+ }
199
+ :hover {
200
+ height: 40px;
201
+ margin-bottom: 5px;
202
+ box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
203
+ 0px 6px 10px 0px rgba(0, 0, 0, 0.39), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
204
+ }
205
+ `;
206
+
207
+ export const Toggle = styled.div`
208
+ display: flex;
209
+ align-items: center;
210
+ position: relative;
211
+ height: 36px;
212
+ margin-left: 20px;
213
+ justify-content: center;
214
+ font-size: 14px;
215
+ cursor: pointer;
216
+ -webkit-user-select: none;
217
+ -moz-user-select: none;
218
+ -ms-user-select: none;
219
+ user-select: none;
220
+ :hover {
221
+ box-shadow: 0px 3px 5px -1px rgba(156, 154, 154, 0.2),
222
+ 0px 6px 10px 0px rgba(156, 154, 154, 0.39),
223
+ 0px 1px 18px 0px rgba(156, 154, 154, 0.12);
224
+ border-radius: 18px;
225
+ }
226
+ `;
227
+ export const ToggleIcon = styled.div`
228
+ ${'' /* transition-duration: .3s; */}
229
+ position: absolute;
230
+ top: 0px;
231
+ img {
232
+ font-size: 1.4rem;
233
+ box-sizing: border-box;
234
+ border-radius: 50%;
235
+ }
236
+ `;
237
+ export const ToggleConvertIcon = styled.div`
238
+ margin: 5px;
239
+ transition-duration: 0.3s;
240
+ :hover {
241
+ img {
242
+ font-size: 1.4rem;
243
+ box-sizing: border-box;
244
+ box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
245
+ 0px 6px 10px 0px rgba(0, 0, 0, 0.39),
246
+ 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
247
+ border-radius: 50%;
248
+ }
249
+ }
250
+ `;
251
+
252
+ export const ElevationButton = styled.div`
253
+ display: flex;
254
+ align-items: center;
255
+ font-family: ${DEFAULT_FONT_FAMILY};
256
+ color: ${TEXT_COLOR_NEUTRAL_1};
257
+ font-weight: 'bold';
258
+ padding: 10px;
259
+ border-radius: 5px;
260
+ :hover {
261
+ background-color: ${TEXT_COLOR_NEUTRAL_5};
262
+ }
263
+ `;
@@ -0,0 +1,46 @@
1
+ import React, { Component } from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import * as SharedStyle from '../../../shared-style';
4
+ import * as S from './styles';
5
+
6
+ export default class MenuButton extends Component {
7
+ constructor(props, context) {
8
+ super(props, context);
9
+ this.state = { hover: false };
10
+ }
11
+
12
+ render() {
13
+ let { state, props } = this;
14
+ let overlayStyle = {};
15
+ if (state.hover)
16
+ overlayStyle = {
17
+ ...overlayStyle,
18
+ display: 'block',
19
+ background: SharedStyle.TOOLBAR_COLOR.focus
20
+ };
21
+
22
+ return (
23
+ <S.Control
24
+ onMouseOver={event => this.setState({ hover: true })}
25
+ onMouseOut={event => this.setState({ hover: false })}
26
+ onClick={props.onClick}
27
+ >
28
+ {[
29
+ props.title !== undefined ? (
30
+ <S.ControlTitle key={props.title}>{props.title}</S.ControlTitle>
31
+ ) : null,
32
+ props.icon !== undefined ? (
33
+ <S.ControlIcon key={props.icon}>{props.icon}</S.ControlIcon>
34
+ ) : null
35
+ ]}
36
+ </S.Control>
37
+ );
38
+ }
39
+ }
40
+
41
+ MenuButton.propTypes = {
42
+ title: PropTypes.string,
43
+ hover: PropTypes.bool,
44
+ active: PropTypes.bool.isRequired,
45
+ onClick: PropTypes.func
46
+ };
@@ -0,0 +1,54 @@
1
+ import { Button } from '@material-ui/core';
2
+ import CircularProgress from '@material-ui/core/CircularProgress';
3
+ import { SAVE_DESIGN } from '../../../../src/constants';
4
+ import React, { useEffect } from 'react';
5
+ import CheckIcon from '@material-ui/icons/Check';
6
+
7
+ export const SaveButton = ({ isSaved, handleSaveBtn, isLoading }) => {
8
+ if (isSaved) {
9
+ return (
10
+ <Button
11
+ variant="outlined"
12
+ onClick={handleSaveBtn}
13
+ disabled={isLoading}
14
+ style={{
15
+ pointerEvents: isLoading ? 'none' : 'auto',
16
+ padding: '8px 20px',
17
+ color: 'rgba(76, 18, 161, 1)',
18
+ border: '1px solid rgba(76, 18, 161, 1)',
19
+ marginLeft: '1rem',
20
+ textTransform: 'none'
21
+ }}
22
+ startIcon={isLoading ? <CircularProgress size={20} /> : <CheckIcon />}
23
+ >
24
+ Saved
25
+ </Button>
26
+ );
27
+ }
28
+
29
+ return (
30
+ <Button
31
+ variant="outlined"
32
+ onClick={handleSaveBtn}
33
+ disabled={isLoading}
34
+ style={{
35
+ pointerEvents: isLoading ? 'none' : 'auto',
36
+ padding: '8px 20px',
37
+ color: 'white',
38
+ backgroundColor: 'rgba(76, 18, 161, 1)',
39
+ border: '1px solid rgba(76, 18, 161, 1)',
40
+ marginLeft: '1rem',
41
+ textTransform: 'none'
42
+ }}
43
+ startIcon={
44
+ isLoading ? (
45
+ <CircularProgress size={20} />
46
+ ) : (
47
+ <img src="/assets/img/svg/headerbar/save.svg" />
48
+ )
49
+ }
50
+ >
51
+ {SAVE_DESIGN}
52
+ </Button>
53
+ );
54
+ };
@@ -0,0 +1,181 @@
1
+ import styled from 'styled-components';
2
+ import * as SharedStyle from '../../../shared-style';
3
+
4
+ export const Main = styled.div`
5
+ width: 81px;
6
+ height: 81px;
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ margin-bottom: 20px;
11
+ margin-left: 20px;
12
+ font-size: 0px;
13
+ position: relative;
14
+ cursor: pointer;
15
+ background: #d3e7e5;
16
+ `;
17
+ // export const Main = styled.div`
18
+ // width: 81px;
19
+ // height: 81px;
20
+ // display: flex;
21
+ // align-items: center;
22
+ // justify-content: center;
23
+ // margin-bottom: 20px;
24
+ // margin-left: 20px;
25
+ // font-size: 25px;
26
+ // position: relative;
27
+ // cursor: pointer;
28
+ // background: #d3e7e5;
29
+ // `
30
+
31
+ export const Overlay = styled.div`
32
+ position: absolute;
33
+ top: 0px;
34
+ left: 0px;
35
+ bottom: 0px;
36
+ width: 100%;
37
+ text-align: center;
38
+ background: rgba(0, 0, 0, 0.5);
39
+ display: none;
40
+ `;
41
+
42
+ export const Title = styled.span`
43
+ position: absolute;
44
+ top: 50%;
45
+ left: 0px;
46
+ width: 100%;
47
+ color: #fff;
48
+ text-transform: uppercase;
49
+ transform: translate(0%, -50%);
50
+ font-size: 12px;
51
+ `;
52
+
53
+ export const Tooltip = {
54
+ position: 'absolute',
55
+ width: '140px',
56
+ color: SharedStyle.COLORS.white,
57
+ background: SharedStyle.COLORS.black,
58
+ height: '30px',
59
+ lineHeight: '30px',
60
+ textAlign: 'center',
61
+ visibility: 'visible',
62
+ borderRadius: '6px',
63
+ opacity: '0.8',
64
+ left: '100%',
65
+ top: '50%',
66
+ marginTop: '-15px',
67
+ marginLeft: '15px',
68
+ zIndex: '999',
69
+ fontSize: '12px'
70
+ };
71
+
72
+ export const TooltipPin = {
73
+ position: 'absolute',
74
+ top: '50%',
75
+ right: '100%',
76
+ marginTop: '-8px',
77
+ width: '0',
78
+ height: '0',
79
+ borderRight: '8px solid #000000',
80
+ borderTop: '8px solid transparent',
81
+ borderBottom: '8px solid transparent'
82
+ };
83
+
84
+ export const Control = styled.div`
85
+ width: 40px;
86
+ height: 40px;
87
+ display: flex;
88
+ align-items: center;
89
+ justify-content: center;
90
+ font-size: 15px;
91
+ // position: fixed;
92
+ cursor: pointer;
93
+ background-color: #fff;
94
+ color: white;
95
+ border-radius: 20px;
96
+ margin-right: 20px;
97
+ margin-top: 16px;
98
+ right: 260px;
99
+ bottom: 25px;
100
+ :hover {
101
+ background-color: ${SharedStyle.TOOLBAR_COLOR.focus};
102
+ }
103
+ `;
104
+ export const Direction = styled.div`
105
+ display: flex;
106
+ align-items: center;
107
+ justify-content: center;
108
+ font-size: 15px;
109
+ // position: fixed;
110
+ cursor: pointer;
111
+ // background-color: #fff;
112
+ color: white;
113
+ border-radius: 32px;
114
+ margin-right: 20px;
115
+ right: 260px;
116
+ bottom: 25px;
117
+ // :hover{
118
+ // background-color: ${SharedStyle.TOOLBAR_COLOR.active};
119
+ // }
120
+ `;
121
+ export const Toggle = styled.div`
122
+ height: 41px;
123
+ display: flex;
124
+ align-items: center;
125
+ justify-content: center;
126
+ font-size: 15px;
127
+ // position: fixed;
128
+ cursor: pointer;
129
+ background-image: url(/assets/img/Toggle.png);
130
+ background-repeat: no-repeat;
131
+ background-color: #fff;
132
+ color: white;
133
+ border-radius: 32px;
134
+ margin-right: 20px;
135
+ margin-top: 16px;
136
+ right: 260px;
137
+ bottom: 25px;
138
+ // :hover{
139
+ // background-color: ${SharedStyle.TOOLBAR_COLOR.active};
140
+ // }
141
+ `;
142
+ export const Animation = styled.div`
143
+ position: absolute;
144
+ top: 0;
145
+ right: 0;
146
+ bottom: 0;
147
+ left: 0;
148
+ display: block;
149
+ border-radius: inherit;
150
+ -webkit-box-shadow: 0 0 0 0 #1890ff;
151
+ box-shadow: 0 0 0 0 #1890ff;
152
+ -webkit-box-shadow: 0 0 0 0 var(--antd-wave-shadow-color);
153
+ box-shadow: 0 0 0 0 var(--antd-wave-shadow-color);
154
+ opacity: 0.2;
155
+ -webkit-animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1),
156
+ waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1);
157
+ animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1),
158
+ waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1);
159
+ -webkit-animation-fill-mode: forwards;
160
+ animation-fill-mode: forwards;
161
+ content: '';
162
+ pointer-events: none;
163
+ `;
164
+
165
+ export const ControlTitle = styled.span`
166
+ margin: 10px;
167
+ font-size: 12px;
168
+ `;
169
+ export const ControlIcon = styled.div`
170
+ margin: 5px;
171
+ `;
172
+ export const DirectionIcon = styled.div`
173
+ position: absolute;
174
+ margin: 5px;
175
+ color: #494949;
176
+ `;
177
+ export const ToggleIcon = styled.div`
178
+ margin: 5px;
179
+ padding-top: 5px;
180
+ transition-duration: 0.3s;
181
+ `;
@@ -0,0 +1,5 @@
1
+ import Header from './header';
2
+
3
+ export default {
4
+ Header
5
+ };