@xelto.npm/xc2-lib 1.0.34 → 1.0.36

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/dist/index.cjs.js CHANGED
@@ -55181,100 +55181,100 @@ process.env.NODE_ENV !== "production" ? MobileTimePicker.propTypes = {
55181
55181
  views: propTypesExports.arrayOf(propTypesExports.oneOf(['hours', 'minutes', 'seconds']).isRequired)
55182
55182
  } : void 0;
55183
55183
 
55184
- var _excluded$c = ["value", "onChange", "label", "fluid", "disabled", "forwardedRef", "icon", "locale", "inputFormat"];
55184
+ var _excluded$c = ["value", "onChange", "label", "fluid", "disabled", "forwardedRef", "icon", "locale", "inputFormat", "clearable"];
55185
55185
  var StyledDatePicker = styled$1(DatePicker$1, {
55186
55186
  shouldForwardProp: function shouldForwardProp(prop) {
55187
- return prop !== 'fluid';
55187
+ return prop !== "fluid";
55188
55188
  }
55189
55189
  })(function (_ref) {
55190
55190
  var fluid = _ref.fluid;
55191
55191
  return {
55192
55192
  zIndex: 1,
55193
- width: fluid ? '100%' : 'min(100%, 368px)',
55193
+ width: fluid ? "100%" : "min(100%, 368px)",
55194
55194
  color: theme.mainPallete.primary.blue,
55195
55195
  label: {
55196
55196
  zIndex: 0,
55197
55197
  color: theme.mainPallete.primary.placeholderText,
55198
- transform: 'translate(20px,13.5px) scale(1)',
55198
+ transform: "translate(20px,13.5px) scale(1)",
55199
55199
  '&.Mui-focused, &[data-shrink="true"]': {
55200
55200
  color: theme.mainPallete.primary.blue,
55201
- transform: 'translate(15px,-7px) scale(0.75)'
55201
+ transform: "translate(15px,-7px) scale(0.75)"
55202
55202
  },
55203
- '&.Mui-disabled': {
55203
+ "&.Mui-disabled": {
55204
55204
  color: theme.mainPallete.primary.placeholderText
55205
55205
  }
55206
55206
  },
55207
- '& label, .MuiOutlinedInput-root': {
55207
+ "& label, .MuiOutlinedInput-root": {
55208
55208
  fontSize: 15,
55209
55209
  fontWeight: theme.fontWeight.regular,
55210
55210
  fontFamily: theme.fontFamily
55211
55211
  },
55212
- '& .MuiOutlinedInput-root': {
55212
+ "& .MuiOutlinedInput-root": {
55213
55213
  fontWeight: theme.fontWeight.medium
55214
55214
  },
55215
- '.MuiOutlinedInput-root': {
55215
+ ".MuiOutlinedInput-root": {
55216
55216
  borderRadius: 7,
55217
55217
  color: theme.mainPallete.primary.blue,
55218
55218
  paddingRight: 15,
55219
55219
  input: {
55220
- padding: '13.5px 0 13.5px 20px'
55220
+ padding: "13.5px 0 13.5px 20px"
55221
55221
  },
55222
- '&.Mui-focused': {
55223
- '.MuiOutlinedInput-notchedOutline': {
55222
+ "&.Mui-focused": {
55223
+ ".MuiOutlinedInput-notchedOutline": {
55224
55224
  borderColor: theme.mainPallete.primary.blue
55225
55225
  }
55226
55226
  },
55227
- '.MuiOutlinedInput-notchedOutline': {
55227
+ ".MuiOutlinedInput-notchedOutline": {
55228
55228
  borderColor: theme.mainPallete.primary.blue
55229
55229
  },
55230
- '&.Mui-disabled fieldset': {
55230
+ "&.Mui-disabled fieldset": {
55231
55231
  borderColor: theme.mainPallete.primary.placeholderText
55232
55232
  }
55233
55233
  },
55234
- '@media(min-width: 480px)': {
55235
- width: fluid ? '100%' : 'min(100%, 368px)',
55236
- '& label': {
55237
- transform: 'translate(20px,17px) scale(1)',
55238
- '&.Mui-focused, &.MuiFormLabel-filled': {
55239
- transform: 'translate(14px,-14px) scale(0.75)'
55234
+ "@media(min-width: 480px)": {
55235
+ width: fluid ? "100%" : "min(100%, 368px)",
55236
+ "& label": {
55237
+ transform: "translate(20px,17px) scale(1)",
55238
+ "&.Mui-focused, &.MuiFormLabel-filled": {
55239
+ transform: "translate(14px,-14px) scale(0.75)"
55240
55240
  }
55241
55241
  },
55242
- '& label, .MuiOutlinedInput-root': {
55242
+ "& label, .MuiOutlinedInput-root": {
55243
55243
  fontSize: 21
55244
55244
  }
55245
55245
  },
55246
- '@media(min-width: 720px)': {
55247
- width: fluid ? '100%' : 'min(100%, 468px)',
55248
- '& label': {
55249
- transform: 'translate(20px,17px) scale(1)',
55250
- '&.Mui-focused, &.MuiFormLabel-filled': {
55251
- transform: 'translate(14px,-14px) scale(0.75)'
55246
+ "@media(min-width: 720px)": {
55247
+ width: fluid ? "100%" : "min(100%, 468px)",
55248
+ "& label": {
55249
+ transform: "translate(20px,17px) scale(1)",
55250
+ "&.Mui-focused, &.MuiFormLabel-filled": {
55251
+ transform: "translate(14px,-14px) scale(0.75)"
55252
55252
  }
55253
55253
  },
55254
- '& label, .MuiOutlinedInput-root': {
55254
+ "& label, .MuiOutlinedInput-root": {
55255
55255
  fontSize: 26
55256
55256
  },
55257
- '.MuiOutlinedInput-root': {
55257
+ ".MuiOutlinedInput-root": {
55258
55258
  input: {
55259
- padding: '19px 0 19px 20px'
55259
+ padding: "19px 0 19px 20px"
55260
55260
  }
55261
55261
  }
55262
55262
  },
55263
- '@media(min-width: 1020px)': {
55264
- width: fluid ? '100%' : 'min(100%, 268px)',
55265
- '& label': {
55266
- transform: 'translate(20px,10px) scale(1)',
55267
- '&.Mui-focused, &.MuiFormLabel-filled': {
55268
- transform: 'translate(15px,-9px) scale(0.75)'
55263
+ "@media(min-width: 1020px)": {
55264
+ width: fluid ? "100%" : "min(100%, 268px)",
55265
+ "& label": {
55266
+ transform: "translate(20px,10px) scale(1)",
55267
+ "&.Mui-focused, &.MuiFormLabel-filled": {
55268
+ transform: "translate(15px,-9px) scale(0.75)"
55269
55269
  }
55270
55270
  },
55271
- '& label, .MuiOutlinedInput-root': {
55271
+ "& label, .MuiOutlinedInput-root": {
55272
55272
  fontSize: 16
55273
55273
  },
55274
- '.MuiOutlinedInput-root': {
55274
+ ".MuiOutlinedInput-root": {
55275
55275
  paddingRight: 20,
55276
55276
  input: {
55277
- padding: '11px 0 11px 20px'
55277
+ padding: "11px 0 11px 20px"
55278
55278
  }
55279
55279
  }
55280
55280
  }
@@ -55282,135 +55282,135 @@ var StyledDatePicker = styled$1(DatePicker$1, {
55282
55282
  });
55283
55283
  var pickerStyles$1 = function pickerStyles() {
55284
55284
  return {
55285
- '.MuiDialog-root, .MuiModal-root': {
55286
- zIndex: '1501 !important'
55285
+ ".MuiDialog-root, .MuiModal-root": {
55286
+ zIndex: "1501 !important"
55287
55287
  },
55288
- '&.MuiPaper-root, .MuiPaper-root': {
55288
+ "&.MuiPaper-root, .MuiPaper-root": {
55289
55289
  borderRadius: 2,
55290
- boxShadow: '0 3px 6px #252A674D',
55291
- translate: '0 -1px',
55290
+ boxShadow: "0 3px 6px #252A674D",
55291
+ translate: "0 -1px",
55292
55292
  border: "2px solid ".concat(theme.mainPallete.primary.blue)
55293
55293
  },
55294
- '.MuiPickersToolbar-root': {
55295
- padding: '8px 24px'
55294
+ ".MuiPickersToolbar-root": {
55295
+ padding: "8px 24px"
55296
55296
  },
55297
- '.MuiPickersDay-root, .MuiDayPicker-weekDayLabel': {
55297
+ ".MuiPickersDay-root, .MuiDayPicker-weekDayLabel": {
55298
55298
  width: 32
55299
55299
  },
55300
- '.PrivatePickersSlideTransition-root': {
55300
+ ".PrivatePickersSlideTransition-root": {
55301
55301
  minHeight: 240
55302
55302
  },
55303
- '.MuiBackdrop-root': {
55303
+ ".MuiBackdrop-root": {
55304
55304
  backgroundColor: theme.mainPallete.primary.blue,
55305
- opacity: '0.6 !important'
55305
+ opacity: "0.6 !important"
55306
55306
  },
55307
- '.MuiButtonBase-root, .MuiTypography-root, .MuiPickersDay-root, .MuiPickersCalendarHeader-labelContainer': {
55307
+ ".MuiButtonBase-root, .MuiTypography-root, .MuiPickersDay-root, .MuiPickersCalendarHeader-labelContainer": {
55308
55308
  fontFamily: theme.fontFamily,
55309
55309
  fontWeight: theme.fontWeight.regular
55310
55310
  },
55311
- '.MuiDialogActions-root': {
55312
- '.MuiButtonBase-root': {
55311
+ ".MuiDialogActions-root": {
55312
+ ".MuiButtonBase-root": {
55313
55313
  fontWeight: theme.fontWeight.bold,
55314
55314
  color: theme.mainPallete.primary.blue,
55315
- '&:first-of-type': {
55315
+ "&:first-of-type": {
55316
55316
  color: theme.mainPallete.primary.red
55317
55317
  }
55318
55318
  }
55319
55319
  },
55320
- '.MuiPickersCalendarHeader-labelContainer ': {
55320
+ ".MuiPickersCalendarHeader-labelContainer ": {
55321
55321
  fontSize: 13,
55322
55322
  color: theme.mainPallete.primary.placeholderText
55323
55323
  },
55324
- '.MuiDialogContent-root': {
55325
- marginTop: '4px'
55324
+ ".MuiDialogContent-root": {
55325
+ marginTop: "4px"
55326
55326
  },
55327
- '.MuiCalendarOrClockPicker-root': {
55328
- '>div:nth-of-type(2)': {
55329
- overflowY: 'hidden'
55327
+ ".MuiCalendarOrClockPicker-root": {
55328
+ ">div:nth-of-type(2)": {
55329
+ overflowY: "hidden"
55330
55330
  //fucking motherfucker scrollbar hide
55331
55331
  }
55332
55332
  },
55333
55333
 
55334
- '.MuiDayPicker-slideTransition': {
55334
+ ".MuiDayPicker-slideTransition": {
55335
55335
  minHeight: null
55336
55336
  },
55337
- '.MuiDialogContent-root, .MuiYearPicker-root': {
55338
- marginRight: '4px',
55339
- '&::-webkit-scrollbar': _objectSpread2({}, theme.scrollbar)
55337
+ ".MuiDialogContent-root, .MuiYearPicker-root": {
55338
+ marginRight: "4px",
55339
+ "&::-webkit-scrollbar": _objectSpread2({}, theme.scrollbar)
55340
55340
  },
55341
- '.MuiTypography-root, .MuiPickersDay-root': {
55341
+ ".MuiTypography-root, .MuiPickersDay-root": {
55342
55342
  fontSize: 13,
55343
55343
  color: theme.mainPallete.primary.blue,
55344
- '&.MuiTypography-h4': {
55344
+ "&.MuiTypography-h4": {
55345
55345
  fontSize: 26
55346
55346
  },
55347
- '&.Mui-selected': {
55348
- backgroundColor: theme.mainPallete.primary.blue + '!important',
55347
+ "&.Mui-selected": {
55348
+ backgroundColor: theme.mainPallete.primary.blue + "!important",
55349
55349
  color: theme.mainPallete.primary.white
55350
55350
  },
55351
- '&:not(.Mui-selected) ': {
55351
+ "&:not(.Mui-selected) ": {
55352
55352
  '&[aria-current="date"]': {
55353
55353
  border: "solid 2px ".concat(theme.mainPallete.primary.blue)
55354
55354
  }
55355
55355
  }
55356
55356
  },
55357
- ' .MuiIconButton-root': {
55357
+ " .MuiIconButton-root": {
55358
55358
  color: theme.mainPallete.primary.blue
55359
55359
  },
55360
- '.MuiYearPicker-root': {
55361
- '.PrivatePickersYear-root': {
55362
- '.PrivatePickersYear-yearButton': {
55360
+ ".MuiYearPicker-root": {
55361
+ ".PrivatePickersYear-root": {
55362
+ ".PrivatePickersYear-yearButton": {
55363
55363
  fontFamily: theme.fontFamily,
55364
55364
  fontWeight: theme.fontWeight.regular,
55365
55365
  color: theme.mainPallete.primary.blue,
55366
- '&.Mui-selected': {
55367
- backgroundColor: theme.mainPallete.primary.blue + '!important',
55366
+ "&.Mui-selected": {
55367
+ backgroundColor: theme.mainPallete.primary.blue + "!important",
55368
55368
  color: theme.mainPallete.primary.white
55369
55369
  }
55370
55370
  }
55371
55371
  }
55372
55372
  },
55373
- '@media (max-width: 1019px)': {
55374
- '&.MuiPaper-root, .MuiPaper-root': {
55373
+ "@media (max-width: 1019px)": {
55374
+ "&.MuiPaper-root, .MuiPaper-root": {
55375
55375
  maxWidth: 316,
55376
55376
  minWidth: 300
55377
55377
  },
55378
- '.MuiPickersCalendarHeader-root': {
55379
- paddingLeft: '12px',
55378
+ ".MuiPickersCalendarHeader-root": {
55379
+ paddingLeft: "12px",
55380
55380
  paddingRight: 0,
55381
55381
  marginTop: 0
55382
55382
  },
55383
- '.MuiCalendarOrClockPicker-root': {
55384
- '>div:nth-of-type(2)': {
55385
- width: 'auto',
55386
- margin: '0 16px'
55383
+ ".MuiCalendarOrClockPicker-root": {
55384
+ ">div:nth-of-type(2)": {
55385
+ width: "auto",
55386
+ margin: "0 16px"
55387
55387
  },
55388
- '.MuiCalendarPicker-root': {
55389
- width: 'auto'
55388
+ ".MuiCalendarPicker-root": {
55389
+ width: "auto"
55390
55390
  }
55391
55391
  },
55392
- '.MuiDayPicker-slideTransition': {
55392
+ ".MuiDayPicker-slideTransition": {
55393
55393
  minHeight: null
55394
55394
  },
55395
- '.MuiYearPicker-root': {
55395
+ ".MuiYearPicker-root": {
55396
55396
  maxHeight: 216
55397
55397
  }
55398
55398
  }
55399
55399
  };
55400
55400
  };
55401
55401
  var locales = {
55402
- 'en-us': undefined,
55403
- 'en-gb': enGB,
55404
- 'zh-cn': zhCN,
55402
+ "en-us": undefined,
55403
+ "en-gb": enGB,
55404
+ "zh-cn": zhCN,
55405
55405
  de: de
55406
55406
  };
55407
55407
  var DatePicker = function DatePicker(_ref2) {
55408
55408
  var _ref2$value = _ref2.value,
55409
- value = _ref2$value === void 0 ? '' : _ref2$value,
55409
+ value = _ref2$value === void 0 ? "" : _ref2$value,
55410
55410
  _ref2$onChange = _ref2.onChange,
55411
55411
  onChange = _ref2$onChange === void 0 ? function () {} : _ref2$onChange,
55412
55412
  _ref2$label = _ref2.label,
55413
- label = _ref2$label === void 0 ? 'Date Picker' : _ref2$label,
55413
+ label = _ref2$label === void 0 ? "Date Picker" : _ref2$label,
55414
55414
  _ref2$fluid = _ref2.fluid,
55415
55415
  fluid = _ref2$fluid === void 0 ? false : _ref2$fluid,
55416
55416
  _ref2$disabled = _ref2.disabled,
@@ -55418,16 +55418,21 @@ var DatePicker = function DatePicker(_ref2) {
55418
55418
  _ref2$forwardedRef = _ref2.forwardedRef,
55419
55419
  forwardedRef = _ref2$forwardedRef === void 0 ? function () {} : _ref2$forwardedRef,
55420
55420
  _ref2$icon = _ref2.icon,
55421
- icon = _ref2$icon === void 0 ? 'icon_wf_calendar' : _ref2$icon,
55421
+ icon = _ref2$icon === void 0 ? "icon_wf_calendar" : _ref2$icon,
55422
55422
  _ref2$locale = _ref2.locale,
55423
- locale = _ref2$locale === void 0 ? 'en-gb' : _ref2$locale,
55423
+ locale = _ref2$locale === void 0 ? "en-gb" : _ref2$locale,
55424
55424
  _ref2$inputFormat = _ref2.inputFormat,
55425
- inputFormat = _ref2$inputFormat === void 0 ? 'dd/MM/yyyy' : _ref2$inputFormat;
55425
+ inputFormat = _ref2$inputFormat === void 0 ? "dd/MM/yyyy" : _ref2$inputFormat,
55426
+ _ref2$clearable = _ref2.clearable,
55427
+ clearable = _ref2$clearable === void 0 ? true : _ref2$clearable;
55426
55428
  _objectWithoutProperties$1(_ref2, _excluded$c);
55427
55429
  var _React$useState = React__namespace.useState(false),
55428
55430
  _React$useState2 = _slicedToArray$a(_React$useState, 2),
55429
55431
  open = _React$useState2[0],
55430
55432
  setOpen = _React$useState2[1];
55433
+ var handleClear = function handleClear() {
55434
+ onChange(null);
55435
+ };
55431
55436
  return /*#__PURE__*/React__namespace.createElement(ThemeProvider, {
55432
55437
  theme: muiTheme
55433
55438
  }, /*#__PURE__*/React__namespace.createElement(LocalizationProvider, {
@@ -55436,7 +55441,7 @@ var DatePicker = function DatePicker(_ref2) {
55436
55441
  }, /*#__PURE__*/React__namespace.createElement(StyledDatePicker, {
55437
55442
  label: label,
55438
55443
  value: value,
55439
- desktopModeMediaQuery: '@media (min-width: 1020px)',
55444
+ desktopModeMediaQuery: "@media (min-width: 1020px)",
55440
55445
  disabled: disabled,
55441
55446
  inputRef: forwardedRef,
55442
55447
  fluid: fluid,
@@ -55457,12 +55462,32 @@ var DatePicker = function DatePicker(_ref2) {
55457
55462
  renderInput: function renderInput(params) {
55458
55463
  return /*#__PURE__*/React__namespace.createElement(TextField$3, _extends$1k({}, params, {
55459
55464
  InputProps: {
55460
- endAdornment: /*#__PURE__*/React__namespace.createElement(Icon, {
55465
+ endAdornment: clearable && value ? /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Icon, {
55466
+ iconName: "icon_ui_close",
55467
+ style: {
55468
+ cursor: "pointer",
55469
+ marginRight: "4px"
55470
+ },
55471
+ onClick: function onClick(event) {
55472
+ event.stopPropagation();
55473
+ handleClear();
55474
+ }
55475
+ }), /*#__PURE__*/React__namespace.createElement(Icon, {
55461
55476
  iconName: icon,
55462
- color: disabled ? 'disabled' : 'red-navy',
55477
+ color: disabled ? "disabled" : "red-navy",
55463
55478
  style: {
55464
- display: 'flex',
55465
- cursor: 'pointer'
55479
+ cursor: "pointer"
55480
+ },
55481
+ onClick: function onClick() {
55482
+ return setOpen(function (prevState) {
55483
+ return !prevState;
55484
+ });
55485
+ }
55486
+ })) : /*#__PURE__*/React__namespace.createElement(Icon, {
55487
+ iconName: icon,
55488
+ color: disabled ? "disabled" : "red-navy",
55489
+ style: {
55490
+ cursor: "pointer"
55466
55491
  },
55467
55492
  onClick: function onClick() {
55468
55493
  return setOpen(function (prevState) {
@@ -55487,10 +55512,11 @@ DatePicker.propTypes = {
55487
55512
  views: propTypesExports.arrayOf(propTypesExports.string),
55488
55513
  forwardedRef: propTypesExports.oneOfType([propTypesExports.func, propTypesExports.shape({
55489
55514
  current: propTypesExports.any
55490
- })])
55515
+ })]),
55516
+ clearable: propTypesExports.bool // PropType for clearable option
55491
55517
  };
55492
55518
 
55493
- var _excluded$b = ["label", "error", "icon", "disabled", "fluid", "type", "min", "max", "small", "helperText", "value", "onChange", "onClick", "onBlur", "forwardedRef", "inputRef", "isFocused", "endAdornment"];
55519
+ var _excluded$b = ["label", "error", "icon", "disabled", "fluid", "type", "min", "max", "small", "helperText", "value", "onChange", "onClick", "onBlur", "forwardedRef", "inputRef", "isFocused", "endAdornment", "hasLargeErrorMessage"];
55494
55520
  var StyledTextField = styled$1(TextField$3, {
55495
55521
  shouldForwardProp: function shouldForwardProp(prop) {
55496
55522
  switch (prop) {
@@ -55507,7 +55533,8 @@ var StyledTextField = styled$1(TextField$3, {
55507
55533
  })(function (_ref) {
55508
55534
  var fluid = _ref.fluid,
55509
55535
  small = _ref.small,
55510
- isFocused = _ref.isFocused;
55536
+ isFocused = _ref.isFocused,
55537
+ hasLargeErrorMessage = _ref.hasLargeErrorMessage;
55511
55538
  return {
55512
55539
  width: fluid ? '100%' : 'min(100%, 368px)',
55513
55540
  zIndex: 1,
@@ -55589,15 +55616,22 @@ var StyledTextField = styled$1(TextField$3, {
55589
55616
  appearance: 'textfield'
55590
55617
  }
55591
55618
  },
55592
- '& .MuiFormHelperText-root': {
55593
- padding: '0 6px',
55594
- backgroundImage: 'linear-gradient(#FFF3F3 0% 58%, transparent 58% 100%)',
55595
- position: 'absolute',
55596
- right: 0,
55597
- bottom: -10,
55619
+ '& .MuiFormHelperText-root': _objectSpread2(_objectSpread2(_objectSpread2({
55620
+ padding: hasLargeErrorMessage ? '0 6px 0 0' : '0 6px',
55621
+ backgroundImage: hasLargeErrorMessage ? 'linear-gradient(#FFF3F3 0% 28%, transparent 28% 100%)' : 'linear-gradient(#FFF3F3 0% 58%, transparent 58% 100%)',
55622
+ position: hasLargeErrorMessage ? 'relative' : 'absolute',
55623
+ zIndex: 10,
55624
+ right: 0
55625
+ }, hasLargeErrorMessage && {
55626
+ textAlign: 'right'
55627
+ }), hasLargeErrorMessage ? {
55628
+ marginTop: -10
55629
+ } : {
55630
+ bottom: -10
55631
+ }), {}, {
55598
55632
  pointerEvents: 'none',
55599
55633
  fontSize: 14
55600
- },
55634
+ }),
55601
55635
  '@media(min-width: 480px)': {
55602
55636
  '& label': {
55603
55637
  color: theme.mainPallete.primary.placeholderText,
@@ -55638,15 +55672,22 @@ var StyledTextField = styled$1(TextField$3, {
55638
55672
  appearance: 'textfield'
55639
55673
  }
55640
55674
  },
55641
- '& .MuiFormHelperText-root': {
55642
- padding: '0 6px',
55643
- backgroundImage: 'linear-gradient(#FFF3F3 0% 58%, transparent 58% 100%)',
55644
- position: 'absolute',
55645
- right: 0,
55646
- bottom: -10,
55675
+ '& .MuiFormHelperText-root': _objectSpread2(_objectSpread2(_objectSpread2({
55676
+ padding: hasLargeErrorMessage ? '0 6px 0 0' : '0 6px',
55677
+ backgroundImage: hasLargeErrorMessage ? 'linear-gradient(#FFF3F3 0% 28%, transparent 28% 100%)' : 'linear-gradient(#FFF3F3 0% 58%, transparent 58% 100%)',
55678
+ position: hasLargeErrorMessage ? 'relative' : 'absolute',
55679
+ zIndex: 10,
55680
+ right: 0
55681
+ }, hasLargeErrorMessage && {
55682
+ textAlign: 'right'
55683
+ }), hasLargeErrorMessage ? {
55684
+ marginTop: -10
55685
+ } : {
55686
+ bottom: -10
55687
+ }), {}, {
55647
55688
  pointerEvents: 'none',
55648
55689
  fontSize: 14
55649
- }
55690
+ })
55650
55691
  },
55651
55692
  '@media(min-width: 720px)': {
55652
55693
  width: fluid ? '100%' : 'min(100%, 468px)',
@@ -55663,10 +55704,11 @@ var StyledTextField = styled$1(TextField$3, {
55663
55704
  padding: small ? '7.5px 0 7.5px 20px' : '19px 0 19px 20px',
55664
55705
  transform: isFocused ? 'translateX(-22px)' : 'translateX(0)'
55665
55706
  },
55666
- '& .MuiFormHelperText-root': {
55667
- bottom: -11,
55707
+ '& .MuiFormHelperText-root': _objectSpread2(_objectSpread2({}, !hasLargeErrorMessage && {
55708
+ bottom: -11
55709
+ }), {}, {
55668
55710
  fontSize: 16
55669
- }
55711
+ })
55670
55712
  },
55671
55713
  '@media(min-width: 1024px)': {
55672
55714
  width: fluid ? '100%' : 'min(100%, 268px)',
@@ -55683,10 +55725,11 @@ var StyledTextField = styled$1(TextField$3, {
55683
55725
  padding: small ? '7px 0 7px 20px' : '11px 0 11px 20px',
55684
55726
  transform: isFocused ? 'translateX(-15px)' : 'translateX(0)'
55685
55727
  },
55686
- '& .MuiFormHelperText-root': {
55687
- bottom: -8,
55728
+ '& .MuiFormHelperText-root': _objectSpread2(_objectSpread2({}, !hasLargeErrorMessage && {
55729
+ bottom: -8
55730
+ }), {}, {
55688
55731
  fontSize: 11
55689
- }
55732
+ })
55690
55733
  }
55691
55734
  };
55692
55735
  });
@@ -55760,6 +55803,8 @@ var TextField = function TextField(_ref2) {
55760
55803
  isFocused = _ref2.isFocused,
55761
55804
  _ref2$endAdornment = _ref2.endAdornment,
55762
55805
  endAdornment = _ref2$endAdornment === void 0 ? '' : _ref2$endAdornment,
55806
+ _ref2$hasLargeErrorMe = _ref2.hasLargeErrorMessage,
55807
+ hasLargeErrorMessage = _ref2$hasLargeErrorMe === void 0 ? false : _ref2$hasLargeErrorMe,
55763
55808
  props = _objectWithoutProperties$1(_ref2, _excluded$b);
55764
55809
  // const parsedValue = type === 'number' ? parseFloat(value) || 0 : value;
55765
55810
  var parsedValue = React.useMemo(function () {
@@ -55781,6 +55826,7 @@ var TextField = function TextField(_ref2) {
55781
55826
  isFocused: isFocused,
55782
55827
  ref: forwardedRef,
55783
55828
  small: small,
55829
+ hasLargeErrorMessage: hasLargeErrorMessage,
55784
55830
  InputProps: {
55785
55831
  inputProps: {
55786
55832
  min: min,
@@ -55810,6 +55856,7 @@ TextField.propTypes = {
55810
55856
  min: propTypesExports.string,
55811
55857
  max: propTypesExports.string,
55812
55858
  small: propTypesExports.bool,
55859
+ hasLargeErrorMessage: propTypesExports.bool,
55813
55860
  helperText: propTypesExports.string,
55814
55861
  value: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.number]),
55815
55862
  onChange: propTypesExports.func,
@@ -74938,250 +74985,250 @@ AppTileComponent.propTypes = {
74938
74985
  var _excluded$9 = ["type", "text", "size", "fluid", "color", "onClick", "disabled", "submit", "forwardedRef"];
74939
74986
  var CustomButton = styled$1(Button$2, {
74940
74987
  shouldForwardProp: function shouldForwardProp(prop) {
74941
- return prop !== 'fluid';
74988
+ return prop !== "fluid";
74942
74989
  }
74943
74990
  })(function (_ref) {
74944
74991
  var fluid = _ref.fluid;
74945
74992
  return {
74946
- width: fluid ? '100%' : 'auto',
74947
- borderRadius: '24px',
74948
- fontWeight: 'bold',
74949
- boxShadow: 'none',
74950
- border: '2px solid #293072',
74993
+ width: fluid ? "100%" : "auto",
74994
+ borderRadius: "24px",
74995
+ fontWeight: "bold",
74996
+ boxShadow: "none",
74997
+ border: "2px solid #293072",
74951
74998
  backgroundColor: theme.mainPallete.primary.white,
74952
74999
  color: theme.mainPallete.primary.blue,
74953
- textTransform: 'capitalize!important',
75000
+ textTransform: "capitalize!important",
74954
75001
  fontFamily: ['"Barlow", sans-serif'],
74955
- '&:hover': {
74956
- boxShadow: 'none'
75002
+ "&:hover": {
75003
+ boxShadow: "none"
74957
75004
  },
74958
- '&.primary': {
74959
- '&.navy-blue': {
75005
+ "&.primary": {
75006
+ "&.navy-blue": {
74960
75007
  backgroundColor: theme.mainPallete.primary.blue,
74961
75008
  borderColor: theme.mainPallete.primary.blue,
74962
75009
  color: theme.mainPallete.primary.white,
74963
- '&:hover': {
74964
- borderColor: '#3A44A7',
75010
+ "&:hover": {
75011
+ borderColor: "#3A44A7",
74965
75012
  color: theme.mainPallete.primary.white,
74966
- backgroundColor: '#3A44A7'
75013
+ backgroundColor: "#3A44A7"
74967
75014
  }
74968
75015
  },
74969
- '&.red': {
75016
+ "&.red": {
74970
75017
  backgroundColor: theme.mainPallete.primary.red,
74971
75018
  borderColor: theme.mainPallete.primary.red,
74972
75019
  color: theme.mainPallete.primary.white,
74973
- '&:hover': {
74974
- borderColor: '#FA676B',
75020
+ "&:hover": {
75021
+ borderColor: "#FA676B",
74975
75022
  color: theme.mainPallete.primary.white,
74976
- backgroundColor: '#FA676B'
75023
+ backgroundColor: "#FA676B"
74977
75024
  }
74978
75025
  },
74979
- '&.black': {
74980
- backgroundColor: '#000',
74981
- borderColor: '#000',
75026
+ "&.black": {
75027
+ backgroundColor: "#000",
75028
+ borderColor: "#000",
74982
75029
  color: theme.mainPallete.primary.white,
74983
- '&:hover': {
74984
- borderColor: '#707070',
75030
+ "&:hover": {
75031
+ borderColor: "#707070",
74985
75032
  color: theme.mainPallete.primary.white,
74986
- backgroundColor: '#707070'
75033
+ backgroundColor: "#707070"
74987
75034
  }
74988
75035
  },
74989
- '&.grey': {
74990
- backgroundColor: '#F5F7F9',
74991
- borderColor: '#F5F7F9',
75036
+ "&.grey": {
75037
+ backgroundColor: "#F5F7F9",
75038
+ borderColor: "#F5F7F9",
74992
75039
  color: theme.mainPallete.primary.placeholderText,
74993
- '&:hover': {
74994
- borderColor: '#FAFAFA',
75040
+ "&:hover": {
75041
+ borderColor: "#FAFAFA",
74995
75042
  color: theme.mainPallete.primary.placeholderText,
74996
- backgroundColor: '#FAFAFA'
75043
+ backgroundColor: "#FAFAFA"
74997
75044
  }
74998
75045
  },
74999
- '&.special-green': {
75046
+ "&.special-green": {
75000
75047
  backgroundColor: theme.mainPallete.secondary.specialGreen,
75001
75048
  borderColor: theme.mainPallete.secondary.specialGreen,
75002
75049
  color: theme.mainPallete.primary.white,
75003
- '&:hover': {
75004
- borderColor: '#87DB87',
75005
- backgroundColor: '#87DB87',
75050
+ "&:hover": {
75051
+ borderColor: "#87DB87",
75052
+ backgroundColor: "#87DB87",
75006
75053
  color: theme.mainPallete.primary.white
75007
75054
  }
75008
75055
  }
75009
75056
  },
75010
- '&.secondary': {
75011
- '&.navy-blue': {
75057
+ "&.secondary": {
75058
+ "&.navy-blue": {
75012
75059
  backgroundColor: theme.mainPallete.primary.white,
75013
75060
  borderColor: theme.mainPallete.primary.blue,
75014
75061
  color: theme.mainPallete.primary.blue,
75015
- '&:hover': {
75016
- borderColor: '#3A44A7',
75017
- color: '#3A44A7'
75062
+ "&:hover": {
75063
+ borderColor: "#3A44A7",
75064
+ color: "#3A44A7"
75018
75065
  }
75019
75066
  },
75020
- '&.red': {
75067
+ "&.red": {
75021
75068
  backgroundColor: theme.mainPallete.primary.white,
75022
75069
  borderColor: theme.mainPallete.primary.red,
75023
75070
  color: theme.mainPallete.primary.red,
75024
- '&:hover': {
75025
- borderColor: '#FA676B',
75026
- color: '#FA676B'
75071
+ "&:hover": {
75072
+ borderColor: "#FA676B",
75073
+ color: "#FA676B"
75027
75074
  }
75028
75075
  },
75029
- '&.black': {
75076
+ "&.black": {
75030
75077
  backgroundColor: theme.mainPallete.primary.white,
75031
- borderColor: '#000',
75032
- color: '#000',
75033
- '&:hover': {
75034
- borderColor: '#707070',
75035
- color: '#707070'
75078
+ borderColor: "#000",
75079
+ color: "#000",
75080
+ "&:hover": {
75081
+ borderColor: "#707070",
75082
+ color: "#707070"
75036
75083
  }
75037
75084
  },
75038
- '&.grey': {
75085
+ "&.grey": {
75039
75086
  backgroundColor: theme.mainPallete.primary.white,
75040
75087
  borderColor: theme.mainPallete.primary.placeholderText,
75041
75088
  color: theme.mainPallete.primary.placeholderText,
75042
- '&:hover': {
75043
- borderColor: '#F3F6F8',
75089
+ "&:hover": {
75090
+ borderColor: "#F3F6F8",
75044
75091
  color: theme.mainPallete.primary.placeholderText
75045
75092
  }
75046
75093
  },
75047
- '&.special-green': {
75094
+ "&.special-green": {
75048
75095
  backgroundColor: theme.mainPallete.primary.white,
75049
75096
  borderColor: theme.mainPallete.secondary.specialGreen,
75050
75097
  color: theme.mainPallete.secondary.specialGreen,
75051
- '&:hover': {
75052
- borderColor: '#87DB87',
75053
- color: '#87DB87'
75098
+ "&:hover": {
75099
+ borderColor: "#87DB87",
75100
+ color: "#87DB87"
75054
75101
  }
75055
75102
  }
75056
75103
  },
75057
- '&.ghost': {
75058
- border: 'none',
75104
+ "&.ghost": {
75105
+ border: "none",
75059
75106
  borderRadius: 0,
75060
75107
  backgroundColor: theme.mainPallete.primary.white,
75061
75108
  color: theme.mainPallete.primary.blue,
75062
- textTransform: 'none',
75063
- '&.white': {
75064
- backgroundColor: 'transparent',
75109
+ textTransform: "none",
75110
+ "&.white": {
75111
+ backgroundColor: "transparent",
75065
75112
  color: theme.mainPallete.primary.white,
75066
- '&:hover': {
75113
+ "&:hover": {
75067
75114
  color: theme.mainPallete.primary.white,
75068
- backgroundColor: 'transparent'
75115
+ backgroundColor: "transparent"
75069
75116
  }
75070
75117
  },
75071
- '&.navy-blue': {
75072
- backgroundColor: 'transparent',
75118
+ "&.navy-blue": {
75119
+ backgroundColor: "transparent",
75073
75120
  borderColor: theme.mainPallete.primary.blue,
75074
75121
  color: theme.mainPallete.primary.blue,
75075
- '&:hover': {
75076
- borderColor: '#3A44A7',
75077
- color: '#3A44A7',
75078
- backgroundColor: 'transparent'
75122
+ "&:hover": {
75123
+ borderColor: "#3A44A7",
75124
+ color: "#3A44A7",
75125
+ backgroundColor: "transparent"
75079
75126
  }
75080
75127
  },
75081
- '&.red': {
75082
- backgroundColor: 'transparent',
75128
+ "&.red": {
75129
+ backgroundColor: "transparent",
75083
75130
  borderColor: theme.mainPallete.primary.red,
75084
75131
  color: theme.mainPallete.primary.red,
75085
- '&:hover': {
75086
- borderColor: '#FA676B',
75087
- color: '#FA676B',
75088
- backgroundColor: 'transparent'
75132
+ "&:hover": {
75133
+ borderColor: "#FA676B",
75134
+ color: "#FA676B",
75135
+ backgroundColor: "transparent"
75089
75136
  }
75090
75137
  },
75091
- '&.black': {
75092
- backgroundColor: 'transparent',
75093
- borderColor: '#000',
75094
- color: '#000',
75095
- '&:hover': {
75096
- borderColor: '#707070',
75097
- color: '#707070',
75098
- backgroundColor: 'transparent'
75138
+ "&.black": {
75139
+ backgroundColor: "transparent",
75140
+ borderColor: "#000",
75141
+ color: "#000",
75142
+ "&:hover": {
75143
+ borderColor: "#707070",
75144
+ color: "#707070",
75145
+ backgroundColor: "transparent"
75099
75146
  }
75100
75147
  },
75101
- '&.grey': {
75102
- backgroundColor: 'transparent',
75148
+ "&.grey": {
75149
+ backgroundColor: "transparent",
75103
75150
  borderColor: theme.mainPallete.primary.placeholderText,
75104
75151
  color: theme.mainPallete.primary.placeholderText,
75105
- '&:hover': {
75106
- borderColor: '#F3F6F8',
75152
+ "&:hover": {
75153
+ borderColor: "#F3F6F8",
75107
75154
  color: theme.mainPallete.primary.placeholderText,
75108
- backgroundColor: 'transparent'
75155
+ backgroundColor: "transparent"
75109
75156
  }
75110
75157
  },
75111
- '&.special-green': {
75112
- backgroundColor: 'transparent',
75158
+ "&.special-green": {
75159
+ backgroundColor: "transparent",
75113
75160
  borderColor: theme.mainPallete.secondary.specialGreen,
75114
75161
  color: theme.mainPallete.secondary.specialGreen,
75115
- '&:hover': {
75116
- borderColor: '#87DB87',
75117
- color: '#87DB87',
75118
- backgroundColor: 'transparent'
75162
+ "&:hover": {
75163
+ borderColor: "#87DB87",
75164
+ color: "#87DB87",
75165
+ backgroundColor: "transparent"
75119
75166
  }
75120
75167
  }
75121
75168
  },
75122
- '&.big': {
75123
- padding: '6px 17px',
75124
- fontSize: '14px',
75125
- lineHeight: '15px',
75126
- borderRadius: '30px',
75127
- fontWeight: 'bold',
75128
- '@media(min-width: 480px)': {
75129
- padding: '21px',
75130
- fontSize: '16px',
75131
- lineHeight: '15px',
75132
- borderRadius: '31px'
75169
+ "&.big": {
75170
+ padding: "6px 17px",
75171
+ fontSize: "14px",
75172
+ lineHeight: "15px",
75173
+ borderRadius: "30px",
75174
+ fontWeight: "bold",
75175
+ "@media(min-width: 480px)": {
75176
+ padding: "21px",
75177
+ fontSize: "16px",
75178
+ lineHeight: "15px",
75179
+ borderRadius: "31px"
75133
75180
  },
75134
- '@media(min-width: 720px)': {
75135
- padding: '34px 30px',
75136
- fontSize: '24px',
75137
- lineHeight: '25px',
75138
- borderRadius: '49px'
75181
+ "@media(min-width: 720px)": {
75182
+ padding: "34px 30px",
75183
+ fontSize: "24px",
75184
+ lineHeight: "25px",
75185
+ borderRadius: "49px"
75139
75186
  },
75140
- '@media(min-width: 1024px)': {
75141
- padding: '9px 25px 10px 25px',
75142
- fontSize: '12px',
75143
- lineHeight: '16px',
75144
- borderRadius: '31px'
75187
+ "@media(min-width: 1024px)": {
75188
+ padding: "9px 25px 10px 25px",
75189
+ fontSize: "12px",
75190
+ lineHeight: "16px",
75191
+ borderRadius: "31px"
75145
75192
  }
75146
75193
  },
75147
- '&.small': {
75148
- padding: '6px 17px',
75149
- fontSize: '14px',
75150
- lineHeight: '15px',
75151
- borderRadius: '24px',
75152
- fontWeight: 'bold',
75153
- '@media(min-width: 480px)': {
75154
- padding: '14px 21px',
75155
- fontSize: '16px',
75156
- lineHeight: '15px',
75157
- borderRadius: '24px'
75194
+ "&.small": {
75195
+ padding: "6px 17px",
75196
+ fontSize: "14px",
75197
+ lineHeight: "15px",
75198
+ borderRadius: "24px",
75199
+ fontWeight: "bold",
75200
+ "@media(min-width: 480px)": {
75201
+ padding: "14px 21px",
75202
+ fontSize: "16px",
75203
+ lineHeight: "15px",
75204
+ borderRadius: "24px"
75158
75205
  },
75159
- '@media(min-width: 720px)': {
75160
- padding: '19px 30px',
75161
- fontSize: '24px',
75162
- lineHeight: '25px',
75163
- borderRadius: '34px'
75206
+ "@media(min-width: 720px)": {
75207
+ padding: "19px 30px",
75208
+ fontSize: "24px",
75209
+ lineHeight: "25px",
75210
+ borderRadius: "34px"
75164
75211
  },
75165
- '@media(min-width: 1024px)': {
75166
- padding: '3px 25px 4px 25px',
75167
- fontSize: '12px',
75168
- lineHeight: '16px',
75169
- borderRadius: '24px'
75212
+ "@media(min-width: 1024px)": {
75213
+ padding: "3px 25px 4px 25px",
75214
+ fontSize: "12px",
75215
+ lineHeight: "16px",
75216
+ borderRadius: "24px"
75170
75217
  }
75171
75218
  }
75172
75219
  };
75173
75220
  });
75174
75221
  var CustomButtonComponent = function CustomButtonComponent(_ref2) {
75175
75222
  var _ref2$type = _ref2.type,
75176
- type = _ref2$type === void 0 ? 'primary' : _ref2$type,
75223
+ type = _ref2$type === void 0 ? "primary" : _ref2$type,
75177
75224
  _ref2$text = _ref2.text,
75178
75225
  text = _ref2$text === void 0 ? "" : _ref2$text,
75179
75226
  _ref2$size = _ref2.size,
75180
- size = _ref2$size === void 0 ? 'big' : _ref2$size,
75227
+ size = _ref2$size === void 0 ? "big" : _ref2$size,
75181
75228
  _ref2$fluid = _ref2.fluid,
75182
75229
  fluid = _ref2$fluid === void 0 ? false : _ref2$fluid,
75183
75230
  _ref2$color = _ref2.color,
75184
- color = _ref2$color === void 0 ? 'navy-blue' : _ref2$color,
75231
+ color = _ref2$color === void 0 ? "navy-blue" : _ref2$color,
75185
75232
  _ref2$onClick = _ref2.onClick,
75186
75233
  onClick = _ref2$onClick === void 0 ? function () {} : _ref2$onClick,
75187
75234
  _ref2$disabled = _ref2.disabled,
@@ -75190,15 +75237,15 @@ var CustomButtonComponent = function CustomButtonComponent(_ref2) {
75190
75237
  submit = _ref2$submit === void 0 ? false : _ref2$submit,
75191
75238
  forwardedRef = _ref2.forwardedRef,
75192
75239
  props = _objectWithoutProperties$1(_ref2, _excluded$9);
75193
- var className = "".concat(type, " ").concat(disabled ? 'grey' : color, " ").concat(size);
75240
+ var className = "".concat(type, " ").concat(disabled ? "grey" : color, " ").concat(size);
75194
75241
  return /*#__PURE__*/React__namespace.createElement(CustomButton, _extends$1k({
75195
75242
  disabled: disabled,
75196
- onClick: typeof onClick === 'function' ? onClick : null,
75243
+ onClick: typeof onClick === "function" ? onClick : null,
75197
75244
  className: className,
75198
75245
  fluid: fluid,
75199
75246
  variant: "contained",
75200
75247
  disableRipple: true,
75201
- type: submit ? 'submit' : 'button',
75248
+ type: submit ? "submit" : "button",
75202
75249
  ref: forwardedRef
75203
75250
  }, props), text);
75204
75251
  };