kitchen-simulator 5.0.0-test.17 → 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.
- package/package.json +8 -18
- package/src/@history.js +3 -0
- package/src/CrossSignOn.jsx +94 -0
- package/src/KitchenConfigurator.jsx +1526 -0
- package/src/KitchenConfiguratorApp.jsx +1 -1
- package/src/_KitchenConfigurator.jsx +3 -91
- package/src/components/atoms/Snackbar/index.jsx +43 -0
- package/src/components/atoms/radio-button/index.jsx +20 -0
- package/src/components/atoms/radio-button/styles.js +56 -0
- package/src/components/button/MainButton.jsx +157 -0
- package/src/components/button/ToggleMeasureButton.jsx +65 -0
- package/src/components/catalog-view/catalog-breadcrumb.jsx +53 -0
- package/src/components/catalog-view/catalog-item.jsx +229 -0
- package/src/components/catalog-view/catalog-list.jsx +173 -0
- package/src/components/catalog-view/catalog-page-item.jsx +110 -0
- package/src/components/catalog-view/catalog-turn-back-page-item.jsx +80 -0
- package/src/components/configurator/custom-configurator.jsx +77 -0
- package/src/components/configurator/project-configurator.jsx +120 -0
- package/src/components/content.jsx +136 -0
- package/src/components/export.js +36 -0
- package/src/components/firstsetting/button/styles.js +223 -0
- package/src/components/firstsetting/export.js +9 -0
- package/src/components/firstsetting/firstsetting-content-button.jsx +198 -0
- package/src/components/firstsetting/firstsetting-toggle-button.jsx +101 -0
- package/src/components/firstsetting/firstsetting.jsx +814 -0
- package/src/components/footerbar/button/ControlButton.jsx +43 -0
- package/src/components/footerbar/button/DirectionButton.jsx +54 -0
- package/src/components/footerbar/button/DirectionPanSpinButton.jsx +36 -0
- package/src/components/footerbar/button/ToggleButton.jsx +58 -0
- package/src/components/footerbar/button/ToggleConvertButton.jsx +48 -0
- package/src/components/footerbar/button/ToggleMeasureButton.jsx +33 -0
- package/src/components/footerbar/button/styles.js +217 -0
- package/src/components/footerbar/export.js +9 -0
- package/src/components/footerbar/footer-content-button.jsx +198 -0
- package/src/components/footerbar/footer-toggle-button.jsx +101 -0
- package/src/components/footerbar/footerbar.jsx +1103 -0
- package/src/components/footerbar/styles.js +263 -0
- package/src/components/header/button/MenuButton.jsx +46 -0
- package/src/components/header/button/SaveButton.jsx +54 -0
- package/src/components/header/button/styles.js +181 -0
- package/src/components/header/export.js +5 -0
- package/src/components/header/header.jsx +631 -0
- package/src/components/header/header.style.css +47 -0
- package/src/components/header/styles.js +320 -0
- package/src/components/login/Login.js +77 -0
- package/src/components/login/LoginForm/index.js +108 -0
- package/src/components/login/Register.js +82 -0
- package/src/components/login/RegisterForm/index.js +171 -0
- package/src/components/login/jwtService.js +201 -0
- package/src/components/login/style.css +158 -0
- package/src/components/login/style.scss +260 -0
- package/src/components/molecules/slider/index.jsx +15 -0
- package/src/components/molecules/slider/styles.js +0 -0
- package/src/components/molecules/slider/styles.scss +3 -0
- package/src/components/myprojects/export.js +5 -0
- package/src/components/myprojects/index.jsx +445 -0
- package/src/components/myprojects/styles.js +241 -0
- package/src/components/sidebar/custom-accordion.jsx +48 -0
- package/src/components/sidebar/export.js +15 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.jsx +73 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.jsx +101 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.jsx +149 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.jsx +316 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.jsx +108 -0
- package/src/components/sidebar/panel-element-editor/element-editor.jsx +1070 -0
- package/src/components/sidebar/panel-element-editor/multi-elements-editor.jsx +0 -0
- package/src/components/sidebar/panel-element-editor/panel-element-editor.jsx +104 -0
- package/src/components/sidebar/panel-element-editor/panel-multi-elements-editor.jsx +155 -0
- package/src/components/sidebar/panel-group-editor.jsx +272 -0
- package/src/components/sidebar/panel-groups.jsx +310 -0
- package/src/components/sidebar/panel-guides.jsx +192 -0
- package/src/components/sidebar/panel-layer-elements.jsx +298 -0
- package/src/components/sidebar/panel-layers.jsx +381 -0
- package/src/components/sidebar/panel.jsx +71 -0
- package/src/components/sidebar/sidebar.jsx +106 -0
- package/src/components/sidebar/toolbar-panel.jsx +139 -0
- package/src/components/sign/export.js +7 -0
- package/src/components/sign/main/index.jsx +523 -0
- package/src/components/sign/main/styles.js +163 -0
- package/src/components/style/button.jsx +95 -0
- package/src/components/style/cancel-button.jsx +20 -0
- package/src/components/style/content-container.jsx +29 -0
- package/src/components/style/content-title.jsx +20 -0
- package/src/components/style/delete-button.jsx +23 -0
- package/src/components/style/export.jsx +48 -0
- package/src/components/style/form-block.jsx +13 -0
- package/src/components/style/form-color-input.jsx +27 -0
- package/src/components/style/form-label.jsx +15 -0
- package/src/components/style/form-number-input.jsx +196 -0
- package/src/components/style/form-number-input_2.jsx +191 -0
- package/src/components/style/form-select.jsx +38 -0
- package/src/components/style/form-slider.jsx +36 -0
- package/src/components/style/form-submit-button.jsx +23 -0
- package/src/components/style/form-text-input.jsx +65 -0
- package/src/components/toolbar/button/ControlButton.jsx +41 -0
- package/src/components/toolbar/button/DirectionButton.jsx +34 -0
- package/src/components/toolbar/button/RightButton.jsx +103 -0
- package/src/components/toolbar/button/ToggleButton.jsx +41 -0
- package/src/components/toolbar/button/index.jsx +55 -0
- package/src/components/toolbar/button/styles.js +127 -0
- package/src/components/toolbar/components/DoorStyleMenu.jsx +103 -0
- package/src/components/toolbar/components/Pricing.jsx +126 -0
- package/src/components/toolbar/components/ReviewForQuote.jsx +635 -0
- package/src/components/toolbar/export.js +21 -0
- package/src/components/toolbar/main/Alert.js +122 -0
- package/src/components/toolbar/main/TakePictureModal.jsx +104 -0
- package/src/components/toolbar/main/confirm-popup.jsx +99 -0
- package/src/components/toolbar/main/index.jsx +5627 -0
- package/src/components/toolbar/main/lShaped.json +311 -0
- package/src/components/toolbar/main/longNarrow.json +238 -0
- package/src/components/toolbar/main/myComponents.js +123 -0
- package/src/components/toolbar/main/oRectangle.json +220 -0
- package/src/components/toolbar/main/rectangle.json +238 -0
- package/src/components/toolbar/main/style.css +107 -0
- package/src/components/toolbar/main/styles.js +696 -0
- package/src/components/toolbar/plugin-item.jsx +123 -0
- package/src/components/toolbar/popup/appliance/appliance-category/index.jsx +73 -0
- package/src/components/toolbar/popup/appliance/choose-appliance/index.jsx +102 -0
- package/src/components/toolbar/popup/appliance/index.jsx +83 -0
- package/src/components/toolbar/popup/autosaveprompt/index.jsx +150 -0
- package/src/components/toolbar/popup/autosaveprompt/styles.css +64 -0
- package/src/components/toolbar/popup/autosaveprompt/styles.js +40 -0
- package/src/components/toolbar/popup/cabinet/cabinet-category/index.jsx +73 -0
- package/src/components/toolbar/popup/cabinet/choose-product/index.jsx +119 -0
- package/src/components/toolbar/popup/cabinet/index.jsx +85 -0
- package/src/components/toolbar/popup/doorStyle/choose-style/index.jsx +63 -0
- package/src/components/toolbar/popup/doorStyle/index.jsx +71 -0
- package/src/components/toolbar/popup/doorStyle/style-category/index.jsx +139 -0
- package/src/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +2 -0
- package/src/components/toolbar/popup/downloadsummary/downloadSummaryTemp.jsx +157 -0
- package/src/components/toolbar/popup/downloadsummary/index.jsx +643 -0
- package/src/components/toolbar/popup/downloadsummary/show2D/show2DView.jsx +51 -0
- package/src/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.jsx +175 -0
- package/src/components/toolbar/popup/downloadsummary/show3D/show3DView.jsx +283 -0
- package/src/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.jsx +2257 -0
- package/src/components/toolbar/popup/downloadsummary/showCabinetInfo.js +93 -0
- package/src/components/toolbar/popup/downloadsummary/showElevation/showElevationView.jsx +132 -0
- package/src/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.jsx +2198 -0
- package/src/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.jsx +152 -0
- package/src/components/toolbar/popup/downloadsummary/showWarranty.jsx +149 -0
- package/src/components/toolbar/popup/downloadsummary/styles.css +177 -0
- package/src/components/toolbar/popup/downloadsummary/styles.js +453 -0
- package/src/components/toolbar/popup/finishingtouch/category/index.jsx +34 -0
- package/src/components/toolbar/popup/finishingtouch/index.jsx +58 -0
- package/src/components/toolbar/popup/finishingtouch/material-edit.jsx +112 -0
- package/src/components/toolbar/popup/finishingtouch/product/index.jsx +116 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/confirm-popup.jsx +101 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/index.jsx +254 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/lShaped.json +311 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/longNarrow.json +238 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/oRectangle.json +220 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/rectangle.json +238 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/styles.js +86 -0
- package/src/components/toolbar/popup/floorplan/floor-category/index.jsx +109 -0
- package/src/components/toolbar/popup/floorplan/index.jsx +60 -0
- package/src/components/toolbar/popup/index.jsx +241 -0
- package/src/components/toolbar/popup/newproject/index.jsx +59 -0
- package/src/components/toolbar/popup/newproject/styles.css +64 -0
- package/src/components/toolbar/popup/newproject/styles.js +41 -0
- package/src/components/toolbar/popup/product/appliance.jsx +54 -0
- package/src/components/toolbar/popup/product/cabinetproduct.jsx +15 -0
- package/src/components/toolbar/popup/product/doorstyle.jsx +58 -0
- package/src/components/toolbar/popup/product/doorstyleproduct.jsx +47 -0
- package/src/components/toolbar/popup/product/floor.jsx +36 -0
- package/src/components/toolbar/popup/product/floorproduct.jsx +42 -0
- package/src/components/toolbar/popup/product/index.jsx +36 -0
- package/src/components/toolbar/popup/product/primary.jsx +77 -0
- package/src/components/toolbar/popup/product/productline.jsx +93 -0
- package/src/components/toolbar/popup/product/reviewItem.jsx +427 -0
- package/src/components/toolbar/popup/product/reviewMolding.jsx +310 -0
- package/src/components/toolbar/popup/product/style.css +54 -0
- package/src/components/toolbar/popup/product/styles.js +260 -0
- package/src/components/toolbar/popup/savedesign/FullPictureForm.jsx +146 -0
- package/src/components/toolbar/popup/savedesign/index.jsx +495 -0
- package/src/components/toolbar/popup/savedesign/savedesign.style.css +16 -0
- package/src/components/toolbar/popup/savedesign/styles.js +151 -0
- package/src/components/toolbar/popup/setDoorStyleOption/index.jsx +87 -0
- package/src/components/toolbar/popup/styles.js +909 -0
- package/src/components/toolbar/popup/submitforquote/AddToCartOptions.jsx +192 -0
- package/src/components/toolbar/popup/submitforquote/CustomerRequestsForm.jsx +96 -0
- package/src/components/toolbar/popup/submitforquote/SkipDesignerReview.jsx +54 -0
- package/src/components/toolbar/popup/submitforquote/StepDots.jsx +25 -0
- package/src/components/toolbar/popup/submitforquote/cart-choice.jsx +116 -0
- package/src/components/toolbar/popup/submitforquote/doorstyle-menus.js +38 -0
- package/src/components/toolbar/popup/submitforquote/index.jsx +698 -0
- package/src/components/toolbar/popup/submitforquote/styles.css +105 -0
- package/src/components/toolbar/popup/submitforquote/styles.js +294 -0
- package/src/components/toolbar/popup/submitprompt/index.jsx +89 -0
- package/src/components/toolbar/popup/submitprompt/styles.css +64 -0
- package/src/components/toolbar/popup/submitprompt/styles.js +42 -0
- package/src/components/toolbar/toolbar-button.jsx +90 -0
- package/src/components/toolbar/toolbar-load-button.jsx +36 -0
- package/src/components/toolbar/toolbar-save-button.jsx +32 -0
- package/src/components/tutorial-view/Modal.jsx +584 -0
- package/src/components/tutorial-view/style.css +111 -0
- package/src/components/tutorial-view/styles.js +65 -0
- package/src/components/wizardstep/button/styles.js +677 -0
- package/src/components/wizardstep/export.js +5 -0
- package/src/components/wizardstep/index.jsx +1372 -0
- package/src/components/wizardstep/styles.js +688 -0
- package/src/components/wizardstep/wizardstep-content-button.jsx +198 -0
- package/src/components/wizardstep/wizardstep-toggle-button.jsx +101 -0
- package/src/{_index.js → index.js} +4 -4
- package/src/renderer.jsx +466 -0
- package/src/actions/_export.js +0 -35
- 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
|
+
}
|