@configuratorware/configurator-frontendgui 1.30.4 → 1.31.2

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 (34) hide show
  1. package/App/Modules/Designer/Components/ImageEditDialog/ImageUpload.js +5 -3
  2. package/App/Reducers/Configurator/Actions.js +20 -81
  3. package/App/Reducers/ImageGallery/Reducer.js +7 -4
  4. package/App/Screens/Configurator/ThemeProvider.js +1 -1
  5. package/App/Services/DesignerService.js +8 -1
  6. package/App/{Screens/Configurator/Containers/DesignApproval.js → Shared/Components/AcceptPrivacy/index.js} +78 -71
  7. package/App/Shared/Components/AddToBasket/index.js +1 -1
  8. package/App/Shared/Components/AmountPrice/index.js +83 -49
  9. package/App/Shared/Components/PriceOverview/index.js +5 -3
  10. package/App/Shared/Components/ReceiveOfferForm/index.js +9 -10
  11. package/App/configuration.js +4 -2
  12. package/package.json +4 -4
  13. package/public/translations/de_DE.json +4 -1
  14. package/public/translations/en_GB.json +10 -5
  15. package/src/App/Modules/Designer/Components/ImageEditDialog/ImageUpload.js +4 -3
  16. package/src/App/Reducers/Configurator/Actions.js +6 -37
  17. package/src/App/Reducers/ImageGallery/Reducer.js +5 -1
  18. package/src/App/Screens/Configurator/ThemeProvider.js +2 -2
  19. package/src/App/Services/DesignerService.js +7 -0
  20. package/src/App/Shared/Components/AcceptPrivacy/index.js +78 -0
  21. package/src/App/Shared/Components/AddToBasket/index.js +1 -1
  22. package/src/App/Shared/Components/AmountPrice/index.js +48 -3
  23. package/src/App/Shared/Components/PriceOverview/index.js +3 -0
  24. package/src/App/Shared/Components/ReceiveOfferForm/__snapshots__/index.test.jsx.snap +64 -64
  25. package/src/App/Shared/Components/ReceiveOfferForm/index.js +9 -10
  26. package/src/App/configuration.js +14 -0
  27. package/App/Screens/Configurator/Components/DesignApproval/index.js +0 -76
  28. package/App/Screens/Configurator/Components/DesignApproval/index.story.js +0 -27
  29. package/App/Screens/Configurator/Components/DesignApproval/index.test.js +0 -31
  30. package/src/App/Screens/Configurator/Components/DesignApproval/__snapshots__/index.test.jsx.snap +0 -91
  31. package/src/App/Screens/Configurator/Components/DesignApproval/index.js +0 -54
  32. package/src/App/Screens/Configurator/Components/DesignApproval/index.story.js +0 -12
  33. package/src/App/Screens/Configurator/Components/DesignApproval/index.test.jsx +0 -17
  34. package/src/App/Screens/Configurator/Containers/DesignApproval.js +0 -76
@@ -0,0 +1,78 @@
1
+ import React from 'react';
2
+ import { withStyles } from '@material-ui/core/styles';
3
+ import { t } from 'Framework/i18n';
4
+ import withWidth from '@material-ui/core/withWidth/withWidth';
5
+ import Grid from '@material-ui/core/Grid/Grid';
6
+ import FormControlLabel from '@material-ui/core/FormControlLabel';
7
+ import Checkbox from '@material-ui/core/Checkbox';
8
+ import FormHelperText from '@material-ui/core/FormHelperText';
9
+ import PropTypes from 'prop-types';
10
+
11
+ const styles = theme => ({
12
+ checkboxLabel: {
13
+ fontSize: 15,
14
+ paddingLeft: 15,
15
+ paddingBottom: 12,
16
+ [theme.breakpoints.down('xs')]: {
17
+ paddingLeft: 12,
18
+ },
19
+ },
20
+ checkbox: {
21
+ alignSelf: 'flex-start',
22
+ top: -10,
23
+ },
24
+ formHelperText: {
25
+ marginLeft: 45,
26
+ marginBottom: 15,
27
+ },
28
+ });
29
+
30
+ class AcceptPrivacy extends React.Component {
31
+ static propTypes = {
32
+ classes: PropTypes.object,
33
+ width: PropTypes.string,
34
+ handleChangeCheckboxApproval: PropTypes.func,
35
+ approval: PropTypes.object,
36
+ dataPrivacyLink: PropTypes.string,
37
+ };
38
+ render() {
39
+ const { classes, handleChangeCheckboxApproval, approval, dataPrivacyLink } = this.props;
40
+
41
+ const privacyLink = `<a href="${dataPrivacyLink}"
42
+ target="_blank">${t('receiveOfferForm.privacyLinkLabel')}</a>`;
43
+ const privacyNotice = t('receiveOfferForm.privacyNotice', { privacyLink });
44
+
45
+ return (
46
+ <Grid container>
47
+ <Grid item xs={12}>
48
+ <FormControlLabel
49
+ className={classes.checkboxLabel}
50
+ control={
51
+ <Checkbox
52
+ className={classes.checkbox}
53
+ name="dataPrivacyAccepted"
54
+ checked={approval.value}
55
+ onChange={handleChangeCheckboxApproval}
56
+ color="primary"
57
+ />
58
+ }
59
+ label={
60
+ <span
61
+ dangerouslySetInnerHTML={{
62
+ __html: privacyNotice,
63
+ }}
64
+ />
65
+ }
66
+ />
67
+ {approval.error && (
68
+ <FormHelperText error={true} className={classes.formHelperText}>
69
+ {t('receiveOfferForm.selectionError')}
70
+ </FormHelperText>
71
+ )}
72
+ </Grid>
73
+ </Grid>
74
+ );
75
+ }
76
+ }
77
+
78
+ export default withWidth()(withStyles(styles, { name: 'AcceptPrivacy' })(AcceptPrivacy));
@@ -35,7 +35,7 @@ const styles = theme => ({
35
35
  bottom: 90,
36
36
  fontSize: 15,
37
37
  right: 200,
38
- color: '#ED1C29',
38
+ color: theme.palette.primary.main,
39
39
  [theme.breakpoints.down('xs')]: {
40
40
  left: 15,
41
41
  whiteSpace: 'nowrap',
@@ -30,6 +30,7 @@ import ReceiveOfferForm from '../ReceiveOfferForm';
30
30
  import AcceptDesign from '../AcceptDesign';
31
31
  import LoadingOverlay from '../../../../Framework/Components/LoadingOverlay';
32
32
  import { debounce } from '@material-ui/core';
33
+ import AcceptPrivacy from '../AcceptPrivacy';
33
34
  const styles = theme => ({
34
35
  contentPositioning: {
35
36
  paddingLeft: 32,
@@ -280,6 +281,7 @@ class AmountPrice extends React.Component {
280
281
  AddToCartComponent: PropTypes.elementType,
281
282
  renderPriceBox: PropTypes.func,
282
283
  userComment: PropTypes.string,
284
+ AcceptPrivacyComponent: PropTypes.elementType,
283
285
  };
284
286
 
285
287
  static defaultProps = {
@@ -296,6 +298,7 @@ class AmountPrice extends React.Component {
296
298
  NotificationComponent: Notification,
297
299
  PriceListComponent: PriceList,
298
300
  AddToCartComponent: AddToCart,
301
+ AcceptPrivacyComponent: AcceptPrivacy,
299
302
  };
300
303
 
301
304
  state = {
@@ -309,6 +312,7 @@ class AmountPrice extends React.Component {
309
312
  },
310
313
  inView: true,
311
314
  showErrors: false,
315
+ dataPrivacyAccepted: false,
312
316
  };
313
317
 
314
318
  componentDidUpdate(prevProps, prevState) {
@@ -348,6 +352,7 @@ class AmountPrice extends React.Component {
348
352
  verifyRequestErrors = () => {
349
353
  const { bulkNameErrors, displayAcceptDesign } = this.props;
350
354
  const designApproved = this.state.approval.value;
355
+
351
356
  if (bulkNameErrors && bulkNameErrors.length > 0) {
352
357
  this.setState({ showErrors: true });
353
358
  this.setState({ bulkNameErrors });
@@ -361,12 +366,24 @@ class AmountPrice extends React.Component {
361
366
  },
362
367
  });
363
368
  }
369
+ if (!this.dataPrivacyApproved()) {
370
+ this.setState({
371
+ dataPrivacyAccepted: {
372
+ value: false,
373
+ error: true,
374
+ },
375
+ });
376
+ }
364
377
  };
365
378
 
366
379
  requestHasErrors = () => {
367
380
  const { bulkNameErrors, displayAcceptDesign } = this.props;
368
381
  const designApproved = this.state.approval.value;
369
- if ((bulkNameErrors && bulkNameErrors.length > 0) || (displayAcceptDesign && !designApproved)) {
382
+ if (
383
+ (bulkNameErrors && bulkNameErrors.length > 0) ||
384
+ (displayAcceptDesign && !designApproved) ||
385
+ !this.dataPrivacyApproved()
386
+ ) {
370
387
  return true;
371
388
  }
372
389
  return false;
@@ -381,6 +398,13 @@ class AmountPrice extends React.Component {
381
398
  }
382
399
  };
383
400
 
401
+ dataPrivacyApproved = () => {
402
+ const { showReceiveOfferForm, clientTexts } = this.props;
403
+ const { dataPrivacyLink } = clientTexts;
404
+ const dataPrivacyApproved = this.state.dataPrivacyAccepted.value;
405
+ return showReceiveOfferForm && dataPrivacyApproved && dataPrivacyLink;
406
+ };
407
+
384
408
  handleTouchMove = (evt => {
385
409
  const dialogContent = this.dialogContentRef.current;
386
410
  evt.preventDefault();
@@ -459,7 +483,15 @@ class AmountPrice extends React.Component {
459
483
  };
460
484
 
461
485
  renderPriceOverview() {
462
- const { notice, showPriceOverview, approval, inView, showErrors, bulkNameErrors } = this.state;
486
+ const {
487
+ notice,
488
+ showPriceOverview,
489
+ approval,
490
+ inView,
491
+ showErrors,
492
+ bulkNameErrors,
493
+ dataPrivacyAccepted,
494
+ } = this.state;
463
495
  const {
464
496
  amount,
465
497
  priceList,
@@ -484,9 +516,10 @@ class AmountPrice extends React.Component {
484
516
  NotificationComponent,
485
517
  PriceListComponent,
486
518
  AddToCartComponent,
519
+ AcceptPrivacyComponent,
487
520
  } = this.props;
488
521
 
489
- const { termsAndConditionsLink } = clientTexts;
522
+ const { termsAndConditionsLink, dataPrivacyLink } = clientTexts;
490
523
  const mergedNotifications = [...notifications] || [];
491
524
 
492
525
  if (showErrors && bulkNameErrors && bulkNameErrors.length > 0) {
@@ -553,6 +586,18 @@ class AmountPrice extends React.Component {
553
586
  />
554
587
  ) : null
555
588
  }
589
+ acceptDataPrivacyComponent={
590
+ showReceiveOfferForm && dataPrivacyLink ? (
591
+ <AcceptPrivacyComponent
592
+ dataPrivacyLink={dataPrivacyLink}
593
+ displayAcceptDesign={true}
594
+ handleChangeCheckboxApproval={this.handleChange}
595
+ approval={dataPrivacyAccepted}
596
+ closeProductOverviewDialog={this.handleClose}
597
+ displayNote={false}
598
+ />
599
+ ) : null
600
+ }
556
601
  notificationComponent={mergedNotifications.map(
557
602
  ({ message, level, color }, key) => {
558
603
  return (
@@ -48,6 +48,7 @@ class PriceOverview extends React.Component {
48
48
  showReceiveOfferForm: PropTypes.bool,
49
49
  amount: PropTypes.number,
50
50
  acceptDesignComponent: PropTypes.element,
51
+ acceptDataPrivacyComponent: PropTypes.element,
51
52
  };
52
53
  render() {
53
54
  const {
@@ -63,6 +64,7 @@ class PriceOverview extends React.Component {
63
64
  showReceiveOfferForm,
64
65
  amount,
65
66
  acceptDesignComponent,
67
+ acceptDataPrivacyComponent,
66
68
  } = this.props;
67
69
 
68
70
  return (
@@ -87,6 +89,7 @@ class PriceOverview extends React.Component {
87
89
  </Grid>
88
90
  <Grid item xs={12}>
89
91
  {acceptDesignComponent}
92
+ {acceptDataPrivacyComponent}
90
93
  {amount > 0 && <Divider />}
91
94
  {priceListComponent}
92
95
  </Grid>
@@ -3,20 +3,20 @@
3
3
  exports[`renders correctly with approval 1`] = `
4
4
  Array [
5
5
  <div
6
- class="MuiFormControl-root MuiTextField-root ReceiveOfferForm-MuiFormControlRoot-2 MuiFormControl-marginNormal MuiFormControl-fullWidth"
6
+ class="MuiFormControl-root MuiTextField-root ReceiveOfferForm-MuiFormControlRoot-2 MuiFormControl-marginDense MuiFormControl-fullWidth"
7
7
  >
8
8
  <label
9
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
9
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
10
10
  data-shrink="false"
11
11
  >
12
12
  receiveOfferForm.email
13
13
  </label>
14
14
  <div
15
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
15
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
16
16
  >
17
17
  <input
18
18
  aria-invalid="false"
19
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
19
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
20
20
  name="email"
21
21
  type="text"
22
22
  value=""
@@ -36,20 +36,20 @@ Array [
36
36
  </div>
37
37
  </div>,
38
38
  <div
39
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
39
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
40
40
  >
41
41
  <label
42
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
42
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
43
43
  data-shrink="false"
44
44
  >
45
45
  receiveOfferForm.name
46
46
  </label>
47
47
  <div
48
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
48
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
49
49
  >
50
50
  <input
51
51
  aria-invalid="false"
52
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
52
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
53
53
  name="name"
54
54
  type="text"
55
55
  value=""
@@ -69,20 +69,20 @@ Array [
69
69
  </div>
70
70
  </div>,
71
71
  <div
72
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
72
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
73
73
  >
74
74
  <label
75
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
75
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
76
76
  data-shrink="false"
77
77
  >
78
78
  receiveOfferForm.company
79
79
  </label>
80
80
  <div
81
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
81
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
82
82
  >
83
83
  <input
84
84
  aria-invalid="false"
85
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
85
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
86
86
  name="company"
87
87
  type="text"
88
88
  value=""
@@ -102,20 +102,20 @@ Array [
102
102
  </div>
103
103
  </div>,
104
104
  <div
105
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
105
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
106
106
  >
107
107
  <label
108
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
108
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
109
109
  data-shrink="false"
110
110
  >
111
111
  receiveOfferForm.phonenumber
112
112
  </label>
113
113
  <div
114
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
114
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
115
115
  >
116
116
  <input
117
117
  aria-invalid="false"
118
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
118
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
119
119
  name="phonenumber"
120
120
  type="text"
121
121
  value=""
@@ -141,20 +141,20 @@ Array [
141
141
  class="MuiGrid-root ReceiveOfferForm-Grid-1 MuiGrid-item MuiGrid-grid-xs-12 MuiGrid-grid-sm-4"
142
142
  >
143
143
  <div
144
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
144
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
145
145
  >
146
146
  <label
147
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
147
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
148
148
  data-shrink="false"
149
149
  >
150
150
  receiveOfferForm.zip
151
151
  </label>
152
152
  <div
153
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
153
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
154
154
  >
155
155
  <input
156
156
  aria-invalid="false"
157
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
157
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
158
158
  name="zip"
159
159
  type="text"
160
160
  value=""
@@ -178,20 +178,20 @@ Array [
178
178
  class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 MuiGrid-grid-sm-8"
179
179
  >
180
180
  <div
181
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
181
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
182
182
  >
183
183
  <label
184
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
184
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
185
185
  data-shrink="false"
186
186
  >
187
187
  receiveOfferForm.city
188
188
  </label>
189
189
  <div
190
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
190
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
191
191
  >
192
192
  <input
193
193
  aria-invalid="false"
194
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
194
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
195
195
  name="city"
196
196
  type="text"
197
197
  value=""
@@ -213,20 +213,20 @@ Array [
213
213
  </div>
214
214
  </div>,
215
215
  <div
216
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
216
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
217
217
  >
218
218
  <label
219
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
219
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
220
220
  data-shrink="false"
221
221
  >
222
222
  receiveOfferForm.street
223
223
  </label>
224
224
  <div
225
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
225
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
226
226
  >
227
227
  <input
228
228
  aria-invalid="false"
229
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
229
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
230
230
  name="street"
231
231
  type="text"
232
232
  value=""
@@ -246,20 +246,20 @@ Array [
246
246
  </div>
247
247
  </div>,
248
248
  <div
249
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
249
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
250
250
  >
251
251
  <label
252
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
252
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
253
253
  data-shrink="false"
254
254
  >
255
255
  receiveOfferForm.country
256
256
  </label>
257
257
  <div
258
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
258
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
259
259
  >
260
260
  <input
261
261
  aria-invalid="false"
262
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
262
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
263
263
  name="country"
264
264
  type="text"
265
265
  value=""
@@ -284,20 +284,20 @@ Array [
284
284
  exports[`renders correctly without approval 1`] = `
285
285
  Array [
286
286
  <div
287
- class="MuiFormControl-root MuiTextField-root ReceiveOfferForm-MuiFormControlRoot-2 MuiFormControl-marginNormal MuiFormControl-fullWidth"
287
+ class="MuiFormControl-root MuiTextField-root ReceiveOfferForm-MuiFormControlRoot-2 MuiFormControl-marginDense MuiFormControl-fullWidth"
288
288
  >
289
289
  <label
290
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
290
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
291
291
  data-shrink="false"
292
292
  >
293
293
  receiveOfferForm.email
294
294
  </label>
295
295
  <div
296
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
296
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
297
297
  >
298
298
  <input
299
299
  aria-invalid="false"
300
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
300
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
301
301
  name="email"
302
302
  type="text"
303
303
  value=""
@@ -317,20 +317,20 @@ Array [
317
317
  </div>
318
318
  </div>,
319
319
  <div
320
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
320
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
321
321
  >
322
322
  <label
323
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
323
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
324
324
  data-shrink="false"
325
325
  >
326
326
  receiveOfferForm.name
327
327
  </label>
328
328
  <div
329
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
329
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
330
330
  >
331
331
  <input
332
332
  aria-invalid="false"
333
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
333
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
334
334
  name="name"
335
335
  type="text"
336
336
  value=""
@@ -350,20 +350,20 @@ Array [
350
350
  </div>
351
351
  </div>,
352
352
  <div
353
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
353
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
354
354
  >
355
355
  <label
356
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
356
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
357
357
  data-shrink="false"
358
358
  >
359
359
  receiveOfferForm.company
360
360
  </label>
361
361
  <div
362
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
362
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
363
363
  >
364
364
  <input
365
365
  aria-invalid="false"
366
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
366
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
367
367
  name="company"
368
368
  type="text"
369
369
  value=""
@@ -383,20 +383,20 @@ Array [
383
383
  </div>
384
384
  </div>,
385
385
  <div
386
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
386
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
387
387
  >
388
388
  <label
389
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
389
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
390
390
  data-shrink="false"
391
391
  >
392
392
  receiveOfferForm.phonenumber
393
393
  </label>
394
394
  <div
395
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
395
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
396
396
  >
397
397
  <input
398
398
  aria-invalid="false"
399
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
399
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
400
400
  name="phonenumber"
401
401
  type="text"
402
402
  value=""
@@ -422,20 +422,20 @@ Array [
422
422
  class="MuiGrid-root ReceiveOfferForm-Grid-1 MuiGrid-item MuiGrid-grid-xs-12 MuiGrid-grid-sm-4"
423
423
  >
424
424
  <div
425
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
425
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
426
426
  >
427
427
  <label
428
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
428
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
429
429
  data-shrink="false"
430
430
  >
431
431
  receiveOfferForm.zip
432
432
  </label>
433
433
  <div
434
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
434
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
435
435
  >
436
436
  <input
437
437
  aria-invalid="false"
438
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
438
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
439
439
  name="zip"
440
440
  type="text"
441
441
  value=""
@@ -459,20 +459,20 @@ Array [
459
459
  class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 MuiGrid-grid-sm-8"
460
460
  >
461
461
  <div
462
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
462
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
463
463
  >
464
464
  <label
465
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
465
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
466
466
  data-shrink="false"
467
467
  >
468
468
  receiveOfferForm.city
469
469
  </label>
470
470
  <div
471
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
471
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
472
472
  >
473
473
  <input
474
474
  aria-invalid="false"
475
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
475
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
476
476
  name="city"
477
477
  type="text"
478
478
  value=""
@@ -494,20 +494,20 @@ Array [
494
494
  </div>
495
495
  </div>,
496
496
  <div
497
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
497
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
498
498
  >
499
499
  <label
500
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
500
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
501
501
  data-shrink="false"
502
502
  >
503
503
  receiveOfferForm.street
504
504
  </label>
505
505
  <div
506
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
506
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
507
507
  >
508
508
  <input
509
509
  aria-invalid="false"
510
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
510
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
511
511
  name="street"
512
512
  type="text"
513
513
  value=""
@@ -527,20 +527,20 @@ Array [
527
527
  </div>
528
528
  </div>,
529
529
  <div
530
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
530
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
531
531
  >
532
532
  <label
533
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
533
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
534
534
  data-shrink="false"
535
535
  >
536
536
  receiveOfferForm.country
537
537
  </label>
538
538
  <div
539
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
539
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
540
540
  >
541
541
  <input
542
542
  aria-invalid="false"
543
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
543
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
544
544
  name="country"
545
545
  type="text"
546
546
  value=""