@xelto.npm/xc2-lib 0.1.43 → 0.1.45

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
@@ -55054,14 +55054,16 @@ var StyledTypography = styled$1(Typography$2)(function (_ref) {
55054
55054
  fontWeight: theme.fontWeight.medium
55055
55055
  },
55056
55056
  '&.modal-header': {
55057
- fontSize: '26px',
55058
- lineHeight: '34px',
55057
+ fontSize: '22px',
55058
+ lineHeight: '24px',
55059
55059
  letterSpacing: 0.1,
55060
55060
  color: theme.mainPallete.primary.blue,
55061
55061
  textAlign: 'center',
55062
55062
  margin: '14px 0 6px',
55063
55063
  '@media(min-width: 480px)': {
55064
- margin: '22px 0 14px'
55064
+ margin: '22px 0 14px',
55065
+ fontSize: '26px',
55066
+ lineHeight: '34px'
55065
55067
  },
55066
55068
  fontWeight: theme.fontWeight.medium,
55067
55069
  '@media(min-width: 720px)': {
@@ -55077,12 +55079,16 @@ var StyledTypography = styled$1(Typography$2)(function (_ref) {
55077
55079
  }
55078
55080
  },
55079
55081
  '&.modal-description': {
55080
- fontSize: '18px',
55081
- lineHeight: '24px',
55082
+ fontSize: '15px',
55083
+ lineHeight: '21px',
55082
55084
  color: theme.mainPallete.primary.blue,
55083
55085
  textAlign: 'center',
55084
55086
  marginBottom: '45px',
55085
55087
  fontWeight: theme.fontWeight.medium,
55088
+ '@media(min-width: 480px)': {
55089
+ fontSize: '18px',
55090
+ lineHeight: '24px'
55091
+ },
55086
55092
  '@media(min-width: 720px)': {
55087
55093
  fontSize: '32px',
55088
55094
  lineHeight: '43px',
@@ -98756,12 +98762,27 @@ var MUIDataTable = /*@__PURE__*/getDefaultExportFromCjs(dist);
98756
98762
 
98757
98763
  var StyledCustomTable = styled$1(Box$1, {
98758
98764
  shouldForwardProp: function shouldForwardProp(prop) {
98759
- return prop !== 'fixedHeader';
98765
+ switch (prop) {
98766
+ case 'fixedHeader':
98767
+ return false;
98768
+ case 'noLeftWrap':
98769
+ return false;
98770
+ case 'noRightWrap':
98771
+ return false;
98772
+ case 'paddingBottom':
98773
+ return false;
98774
+ default:
98775
+ return true;
98776
+ }
98760
98777
  }
98761
98778
  })(function (_ref) {
98762
- var fixedHeader = _ref.fixedHeader;
98779
+ var fixedHeader = _ref.fixedHeader,
98780
+ noLeftWrap = _ref.noLeftWrap,
98781
+ noRightWrap = _ref.noRightWrap,
98782
+ paddingBottom = _ref.paddingBottom;
98763
98783
  return {
98764
98784
  width: '100%',
98785
+ paddingBottom: paddingBottom !== 0 ? "".concat(paddingBottom, "px!important") : '0px!important',
98765
98786
  '&.toolbar-hidden': {
98766
98787
  '.MuiToolbar-root': {
98767
98788
  minHeight: 0
@@ -98873,6 +98894,7 @@ var StyledCustomTable = styled$1(Box$1, {
98873
98894
  },
98874
98895
  '&:first-child': {
98875
98896
  borderRadius: '15px 0 0 0',
98897
+ whiteSpace: noLeftWrap ? 'nowrap!important' : 'normal!important',
98876
98898
  '&:after': {
98877
98899
  borderRadius: '15px 0 0 0'
98878
98900
  },
@@ -98893,6 +98915,7 @@ var StyledCustomTable = styled$1(Box$1, {
98893
98915
  },
98894
98916
  '&:nth-of-type(2)': {
98895
98917
  textAlign: 'right',
98918
+ whiteSpace: noRightWrap ? 'nowrap!important' : 'normal!important',
98896
98919
  padding: '7px 10px 7px 0',
98897
98920
  '@media(min-width: 480px)': {
98898
98921
  padding: '12px 10px 12px 0'
@@ -99113,7 +99136,10 @@ var TableMobileComponent = function TableMobileComponent(_ref4) {
99113
99136
  searchPlaceholder = _ref4.searchPlaceholder,
99114
99137
  onRowDoubleClick = _ref4.onRowDoubleClick,
99115
99138
  enableRowDetails = _ref4.enableRowDetails,
99116
- onRowDetailClick = _ref4.onRowDetailClick;
99139
+ onRowDetailClick = _ref4.onRowDetailClick,
99140
+ noLeftWrap = _ref4.noLeftWrap,
99141
+ noRightWrap = _ref4.noRightWrap,
99142
+ paddingBottom = _ref4.paddingBottom;
99117
99143
  var _useState3 = React.useState([]),
99118
99144
  _useState4 = _slicedToArray$a(_useState3, 2),
99119
99145
  values = _useState4[0],
@@ -99208,7 +99234,10 @@ var TableMobileComponent = function TableMobileComponent(_ref4) {
99208
99234
  return /*#__PURE__*/React.createElement(StyledCustomTable, {
99209
99235
  id: id,
99210
99236
  className: !includeSearch ? 'toolbar-hidden' : '',
99211
- fixedHeader: fixedHeader
99237
+ fixedHeader: fixedHeader,
99238
+ noLeftWrap: noLeftWrap,
99239
+ noRightWrap: noRightWrap,
99240
+ paddingBottom: paddingBottom
99212
99241
  }, includeSearch && /*#__PURE__*/React.createElement(MUIDataTable, {
99213
99242
  data: values,
99214
99243
  columns: customColumns,
@@ -99230,7 +99259,10 @@ TableMobileComponent.propTypes = {
99230
99259
  setSelectedRows: propTypesExports.func,
99231
99260
  onRowDoubleClick: propTypesExports.oneOfType([propTypesExports.func, undefined]),
99232
99261
  onRowDetailClick: propTypesExports.oneOfType([propTypesExports.func, undefined]),
99233
- enableRowDetails: propTypesExports.bool
99262
+ enableRowDetails: propTypesExports.bool,
99263
+ noLeftWrap: propTypesExports.bool,
99264
+ noRightWrap: propTypesExports.bool,
99265
+ paddingBottom: propTypesExports.number
99234
99266
  };
99235
99267
  TableMobileComponent.defaultProps = {
99236
99268
  columns: [],
@@ -99242,7 +99274,10 @@ TableMobileComponent.defaultProps = {
99242
99274
  setSelectedRows: function setSelectedRows() {},
99243
99275
  onRowDoubleClick: undefined,
99244
99276
  onRowDetailClick: undefined,
99245
- enableRowDetails: false
99277
+ enableRowDetails: false,
99278
+ noLeftWrap: false,
99279
+ noRightWrap: false,
99280
+ paddingBottom: 0
99246
99281
  };
99247
99282
 
99248
99283
  var StyledModalContainer = styled$1(Box$1)(function (_ref) {
@@ -99277,37 +99312,37 @@ var StyledModalWrapper = styled$1(Modal$1, {
99277
99312
  justifyContent: 'center',
99278
99313
  alignItems: 'center',
99279
99314
  position: 'absolute',
99280
- padding: '35px 25px',
99315
+ padding: '25px 25px',
99281
99316
  top: '50%',
99282
99317
  left: '50%',
99283
99318
  transform: 'translate(-50%, -50%)',
99284
99319
  width: '320px',
99285
99320
  height: '423px',
99286
99321
  zIndex: 1402,
99322
+ '@media(min-width: 480px)': {
99323
+ padding: '35px 30px'
99324
+ },
99287
99325
  '@media(min-width: 720px)': {
99288
99326
  width: '460px',
99289
99327
  height: '640px',
99290
- padding: '0 45px'
99328
+ padding: '30px 45px'
99291
99329
  },
99292
99330
  '@media(min-width: 1024px)': {
99293
99331
  width: '270px',
99294
99332
  height: isBottomTextButton ? '402px' : '364px',
99295
- padding: '0 40px'
99333
+ padding: '30px 40px'
99296
99334
  },
99297
99335
  '&.scrollable': {
99298
99336
  width: '90vw',
99299
- height: '85vh',
99300
- '@media(min-width: 480px)': {
99301
- width: '394px',
99302
- height: '586px'
99303
- },
99337
+ // height: '85vh',
99338
+ height: 'min-content',
99339
+ alignItems: 'flex-start',
99340
+ maxHeight: '85vh',
99304
99341
  '@media(min-width: 720px)': {
99305
- width: '626px',
99306
- height: '887px'
99342
+ width: '626px'
99307
99343
  },
99308
99344
  '@media(min-width: 1024px)': {
99309
- width: '367px',
99310
- height: '482px'
99345
+ width: '367px'
99311
99346
  }
99312
99347
  }
99313
99348
  },
@@ -99315,8 +99350,12 @@ var StyledModalWrapper = styled$1(Modal$1, {
99315
99350
  display: 'none'
99316
99351
  },
99317
99352
  'svg': {
99318
- width: '115px',
99319
- height: '115px',
99353
+ width: '72px!important',
99354
+ height: '72px!important',
99355
+ '@media(min-width: 480px)': {
99356
+ width: '115px',
99357
+ height: '115px'
99358
+ },
99320
99359
  '@media(min-width: 720px)': {
99321
99360
  width: '170px',
99322
99361
  height: '170px'
@@ -99335,12 +99374,15 @@ var StyledScrollableDescription = styled$1(Box$1)(function (_ref3) {
99335
99374
  lineHeight: '24px',
99336
99375
  color: theme.mainPallete.primary.blue,
99337
99376
  textAlign: 'center',
99338
- marginBottom: '40px',
99377
+ marginBottom: '30px',
99339
99378
  paddingRight: '8px',
99340
- maxHeight: '200px',
99379
+ // maxHeight: '200px',
99341
99380
  overflowY: 'auto',
99342
99381
  fontFamily: ['"Barlow", sans-serif'],
99343
99382
  fontWeight: theme.fontWeight.medium,
99383
+ '@media(min-width: 480px)': {
99384
+ marginBottom: '40px'
99385
+ },
99344
99386
  '@media(min-width: 720px)': {
99345
99387
  fontSize: '32px',
99346
99388
  lineHeight: '43px',
@@ -99380,18 +99422,75 @@ var StyledBottomButtonWrapper = styled$1(Box$1)(function (_ref5) {
99380
99422
  }
99381
99423
  };
99382
99424
  });
99383
- var CustomModal = function CustomModal(_ref6) {
99384
- var actionButtonLabel = _ref6.actionButtonLabel,
99385
- bottomButtonLabel = _ref6.bottomButtonLabel,
99386
- closeButtonLabel = _ref6.closeButtonLabel,
99387
- description = _ref6.description,
99388
- title = _ref6.title,
99389
- type = _ref6.type,
99390
- handleCloseModal = _ref6.handleCloseModal,
99391
- handleActionButton = _ref6.handleActionButton,
99392
- isModalOpen = _ref6.isModalOpen,
99393
- forwardedRef = _ref6.forwardedRef;
99425
+ var StyledIconHeaderWrapper = styled$1(Box$1)(function (_ref6) {
99426
+ _objectDestructuringEmpty(_ref6);
99427
+ return {
99428
+ display: 'flex',
99429
+ width: '100%',
99430
+ marginBottom: '25px',
99431
+ '&.row': {
99432
+ flexDirection: 'row',
99433
+ justifyContent: 'flex-start',
99434
+ alignItems: 'center',
99435
+ gridGap: '20px',
99436
+ '> p': {
99437
+ textAlign: 'left!important',
99438
+ margin: '0!important'
99439
+ },
99440
+ 'svg': {
99441
+ width: '72px!important',
99442
+ height: '72px!important',
99443
+ '@media(min-width: 480px)': {
99444
+ width: '92px!important',
99445
+ height: '92px!important'
99446
+ }
99447
+ }
99448
+ },
99449
+ '&.column': {
99450
+ flexDirection: 'column',
99451
+ justifyContent: 'flex-start',
99452
+ alignItems: 'center',
99453
+ '> p': {
99454
+ textAlign: 'center!important',
99455
+ margin: '0!important'
99456
+ },
99457
+ 'svg': {
99458
+ width: '72px!important',
99459
+ height: '72px!important',
99460
+ marginBottom: '6px',
99461
+ '@media(min-width: 480px)': {
99462
+ width: '115px!important',
99463
+ height: '115px!important',
99464
+ marginBottom: '9px'
99465
+ }
99466
+ }
99467
+ }
99468
+
99469
+ // marginTop: '30px',
99470
+ // '@media(min-width: 720px)' :{
99471
+ // marginTop: '45px',
99472
+ // },
99473
+ // '@media(min-width:1024px)' : {
99474
+ // marginTop: '25px'
99475
+ // }
99476
+ };
99477
+ });
99478
+
99479
+ var CustomModal = function CustomModal(_ref7) {
99480
+ var actionButtonLabel = _ref7.actionButtonLabel,
99481
+ bottomButtonLabel = _ref7.bottomButtonLabel,
99482
+ closeButtonLabel = _ref7.closeButtonLabel,
99483
+ description = _ref7.description,
99484
+ title = _ref7.title,
99485
+ type = _ref7.type,
99486
+ handleCloseModal = _ref7.handleCloseModal,
99487
+ handleActionButton = _ref7.handleActionButton,
99488
+ isModalOpen = _ref7.isModalOpen,
99489
+ forwardedRef = _ref7.forwardedRef,
99490
+ _ref7$headingType = _ref7.headingType,
99491
+ headingType = _ref7$headingType === void 0 ? 'row' : _ref7$headingType;
99394
99492
  var isScrollableTextModal = type === 'text-scroll';
99493
+ var isHeadingTypeRow = headingType === 'row';
99395
99494
  var isActionButtonHidden = actionButtonLabel === '' || actionButtonLabel === undefined;
99396
99495
  return /*#__PURE__*/React__namespace.createElement(StyledModalContainer, {
99397
99496
  ref: forwardedRef,
@@ -99401,13 +99500,23 @@ var CustomModal = function CustomModal(_ref6) {
99401
99500
  open: isModalOpen,
99402
99501
  onClose: handleCloseModal,
99403
99502
  isBottomTextButton: bottomButtonLabel
99404
- }, /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Illustration, {
99503
+ }, /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, isHeadingTypeRow && /*#__PURE__*/React__namespace.createElement(StyledIconHeaderWrapper, {
99504
+ className: 'row'
99505
+ }, /*#__PURE__*/React__namespace.createElement(Illustration, {
99506
+ illustrationName: 'ilu_status_change',
99507
+ size: "small"
99508
+ }), /*#__PURE__*/React__namespace.createElement(TypographyComponent, {
99509
+ text: title,
99510
+ type: 'modal-header'
99511
+ })), !isHeadingTypeRow && /*#__PURE__*/React__namespace.createElement(StyledIconHeaderWrapper, {
99512
+ className: 'column'
99513
+ }, /*#__PURE__*/React__namespace.createElement(Illustration, {
99405
99514
  illustrationName: 'ilu_status_change',
99406
99515
  size: "small"
99407
99516
  }), /*#__PURE__*/React__namespace.createElement(TypographyComponent, {
99408
99517
  text: title,
99409
99518
  type: 'modal-header'
99410
- }), type === 'basic' && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(TypographyComponent, {
99519
+ })), type === 'basic' && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(TypographyComponent, {
99411
99520
  text: description,
99412
99521
  type: 'modal-description'
99413
99522
  }), /*#__PURE__*/React__namespace.createElement(CustomButtonComponent, {
@@ -99418,14 +99527,14 @@ var CustomModal = function CustomModal(_ref6) {
99418
99527
  color: "navy-blue",
99419
99528
  size: 'small'
99420
99529
  })), isScrollableTextModal && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(StyledScrollableDescription, null, description), /*#__PURE__*/React__namespace.createElement(StyledButtonsWrapper, null, !isActionButtonHidden && /*#__PURE__*/React__namespace.createElement(CustomButtonComponent, {
99421
- fixed: true,
99530
+ fluid: true,
99422
99531
  onClick: handleActionButton,
99423
99532
  type: "secondary",
99424
99533
  text: actionButtonLabel,
99425
99534
  color: "navy-blue",
99426
99535
  size: 'small'
99427
99536
  }), /*#__PURE__*/React__namespace.createElement(CustomButtonComponent, {
99428
- fixed: true,
99537
+ fluid: true,
99429
99538
  onClick: handleCloseModal,
99430
99539
  type: "primary",
99431
99540
  text: closeButtonLabel,
@@ -99447,6 +99556,7 @@ CustomModal.propTypes = {
99447
99556
  description: propTypesExports.string,
99448
99557
  handleCloseModal: propTypesExports.func,
99449
99558
  handleActionButton: propTypesExports.func,
99559
+ headingType: propTypesExports.string,
99450
99560
  isModalOpen: propTypesExports.bool,
99451
99561
  forwardedRef: propTypesExports.oneOfType([propTypesExports.func, propTypesExports.shape({
99452
99562
  current: propTypesExports.any
@@ -99461,6 +99571,7 @@ CustomModal.defaultProps = {
99461
99571
  description: '',
99462
99572
  handleCloseModal: function handleCloseModal() {},
99463
99573
  handleActionButton: function handleActionButton() {},
99574
+ headingType: 'row',
99464
99575
  isModalOpen: false,
99465
99576
  forwardedRef: function forwardedRef() {},
99466
99577
  title: '',
package/dist/index.esm.js CHANGED
@@ -55034,14 +55034,16 @@ var StyledTypography = styled$1(Typography$2)(function (_ref) {
55034
55034
  fontWeight: theme.fontWeight.medium
55035
55035
  },
55036
55036
  '&.modal-header': {
55037
- fontSize: '26px',
55038
- lineHeight: '34px',
55037
+ fontSize: '22px',
55038
+ lineHeight: '24px',
55039
55039
  letterSpacing: 0.1,
55040
55040
  color: theme.mainPallete.primary.blue,
55041
55041
  textAlign: 'center',
55042
55042
  margin: '14px 0 6px',
55043
55043
  '@media(min-width: 480px)': {
55044
- margin: '22px 0 14px'
55044
+ margin: '22px 0 14px',
55045
+ fontSize: '26px',
55046
+ lineHeight: '34px'
55045
55047
  },
55046
55048
  fontWeight: theme.fontWeight.medium,
55047
55049
  '@media(min-width: 720px)': {
@@ -55057,12 +55059,16 @@ var StyledTypography = styled$1(Typography$2)(function (_ref) {
55057
55059
  }
55058
55060
  },
55059
55061
  '&.modal-description': {
55060
- fontSize: '18px',
55061
- lineHeight: '24px',
55062
+ fontSize: '15px',
55063
+ lineHeight: '21px',
55062
55064
  color: theme.mainPallete.primary.blue,
55063
55065
  textAlign: 'center',
55064
55066
  marginBottom: '45px',
55065
55067
  fontWeight: theme.fontWeight.medium,
55068
+ '@media(min-width: 480px)': {
55069
+ fontSize: '18px',
55070
+ lineHeight: '24px'
55071
+ },
55066
55072
  '@media(min-width: 720px)': {
55067
55073
  fontSize: '32px',
55068
55074
  lineHeight: '43px',
@@ -98736,12 +98742,27 @@ var MUIDataTable = /*@__PURE__*/getDefaultExportFromCjs(dist);
98736
98742
 
98737
98743
  var StyledCustomTable = styled$1(Box$1, {
98738
98744
  shouldForwardProp: function shouldForwardProp(prop) {
98739
- return prop !== 'fixedHeader';
98745
+ switch (prop) {
98746
+ case 'fixedHeader':
98747
+ return false;
98748
+ case 'noLeftWrap':
98749
+ return false;
98750
+ case 'noRightWrap':
98751
+ return false;
98752
+ case 'paddingBottom':
98753
+ return false;
98754
+ default:
98755
+ return true;
98756
+ }
98740
98757
  }
98741
98758
  })(function (_ref) {
98742
- var fixedHeader = _ref.fixedHeader;
98759
+ var fixedHeader = _ref.fixedHeader,
98760
+ noLeftWrap = _ref.noLeftWrap,
98761
+ noRightWrap = _ref.noRightWrap,
98762
+ paddingBottom = _ref.paddingBottom;
98743
98763
  return {
98744
98764
  width: '100%',
98765
+ paddingBottom: paddingBottom !== 0 ? "".concat(paddingBottom, "px!important") : '0px!important',
98745
98766
  '&.toolbar-hidden': {
98746
98767
  '.MuiToolbar-root': {
98747
98768
  minHeight: 0
@@ -98853,6 +98874,7 @@ var StyledCustomTable = styled$1(Box$1, {
98853
98874
  },
98854
98875
  '&:first-child': {
98855
98876
  borderRadius: '15px 0 0 0',
98877
+ whiteSpace: noLeftWrap ? 'nowrap!important' : 'normal!important',
98856
98878
  '&:after': {
98857
98879
  borderRadius: '15px 0 0 0'
98858
98880
  },
@@ -98873,6 +98895,7 @@ var StyledCustomTable = styled$1(Box$1, {
98873
98895
  },
98874
98896
  '&:nth-of-type(2)': {
98875
98897
  textAlign: 'right',
98898
+ whiteSpace: noRightWrap ? 'nowrap!important' : 'normal!important',
98876
98899
  padding: '7px 10px 7px 0',
98877
98900
  '@media(min-width: 480px)': {
98878
98901
  padding: '12px 10px 12px 0'
@@ -99093,7 +99116,10 @@ var TableMobileComponent = function TableMobileComponent(_ref4) {
99093
99116
  searchPlaceholder = _ref4.searchPlaceholder,
99094
99117
  onRowDoubleClick = _ref4.onRowDoubleClick,
99095
99118
  enableRowDetails = _ref4.enableRowDetails,
99096
- onRowDetailClick = _ref4.onRowDetailClick;
99119
+ onRowDetailClick = _ref4.onRowDetailClick,
99120
+ noLeftWrap = _ref4.noLeftWrap,
99121
+ noRightWrap = _ref4.noRightWrap,
99122
+ paddingBottom = _ref4.paddingBottom;
99097
99123
  var _useState3 = useState([]),
99098
99124
  _useState4 = _slicedToArray$a(_useState3, 2),
99099
99125
  values = _useState4[0],
@@ -99188,7 +99214,10 @@ var TableMobileComponent = function TableMobileComponent(_ref4) {
99188
99214
  return /*#__PURE__*/React__default.createElement(StyledCustomTable, {
99189
99215
  id: id,
99190
99216
  className: !includeSearch ? 'toolbar-hidden' : '',
99191
- fixedHeader: fixedHeader
99217
+ fixedHeader: fixedHeader,
99218
+ noLeftWrap: noLeftWrap,
99219
+ noRightWrap: noRightWrap,
99220
+ paddingBottom: paddingBottom
99192
99221
  }, includeSearch && /*#__PURE__*/React__default.createElement(MUIDataTable, {
99193
99222
  data: values,
99194
99223
  columns: customColumns,
@@ -99210,7 +99239,10 @@ TableMobileComponent.propTypes = {
99210
99239
  setSelectedRows: propTypesExports.func,
99211
99240
  onRowDoubleClick: propTypesExports.oneOfType([propTypesExports.func, undefined]),
99212
99241
  onRowDetailClick: propTypesExports.oneOfType([propTypesExports.func, undefined]),
99213
- enableRowDetails: propTypesExports.bool
99242
+ enableRowDetails: propTypesExports.bool,
99243
+ noLeftWrap: propTypesExports.bool,
99244
+ noRightWrap: propTypesExports.bool,
99245
+ paddingBottom: propTypesExports.number
99214
99246
  };
99215
99247
  TableMobileComponent.defaultProps = {
99216
99248
  columns: [],
@@ -99222,7 +99254,10 @@ TableMobileComponent.defaultProps = {
99222
99254
  setSelectedRows: function setSelectedRows() {},
99223
99255
  onRowDoubleClick: undefined,
99224
99256
  onRowDetailClick: undefined,
99225
- enableRowDetails: false
99257
+ enableRowDetails: false,
99258
+ noLeftWrap: false,
99259
+ noRightWrap: false,
99260
+ paddingBottom: 0
99226
99261
  };
99227
99262
 
99228
99263
  var StyledModalContainer = styled$1(Box$1)(function (_ref) {
@@ -99257,37 +99292,37 @@ var StyledModalWrapper = styled$1(Modal$1, {
99257
99292
  justifyContent: 'center',
99258
99293
  alignItems: 'center',
99259
99294
  position: 'absolute',
99260
- padding: '35px 25px',
99295
+ padding: '25px 25px',
99261
99296
  top: '50%',
99262
99297
  left: '50%',
99263
99298
  transform: 'translate(-50%, -50%)',
99264
99299
  width: '320px',
99265
99300
  height: '423px',
99266
99301
  zIndex: 1402,
99302
+ '@media(min-width: 480px)': {
99303
+ padding: '35px 30px'
99304
+ },
99267
99305
  '@media(min-width: 720px)': {
99268
99306
  width: '460px',
99269
99307
  height: '640px',
99270
- padding: '0 45px'
99308
+ padding: '30px 45px'
99271
99309
  },
99272
99310
  '@media(min-width: 1024px)': {
99273
99311
  width: '270px',
99274
99312
  height: isBottomTextButton ? '402px' : '364px',
99275
- padding: '0 40px'
99313
+ padding: '30px 40px'
99276
99314
  },
99277
99315
  '&.scrollable': {
99278
99316
  width: '90vw',
99279
- height: '85vh',
99280
- '@media(min-width: 480px)': {
99281
- width: '394px',
99282
- height: '586px'
99283
- },
99317
+ // height: '85vh',
99318
+ height: 'min-content',
99319
+ alignItems: 'flex-start',
99320
+ maxHeight: '85vh',
99284
99321
  '@media(min-width: 720px)': {
99285
- width: '626px',
99286
- height: '887px'
99322
+ width: '626px'
99287
99323
  },
99288
99324
  '@media(min-width: 1024px)': {
99289
- width: '367px',
99290
- height: '482px'
99325
+ width: '367px'
99291
99326
  }
99292
99327
  }
99293
99328
  },
@@ -99295,8 +99330,12 @@ var StyledModalWrapper = styled$1(Modal$1, {
99295
99330
  display: 'none'
99296
99331
  },
99297
99332
  'svg': {
99298
- width: '115px',
99299
- height: '115px',
99333
+ width: '72px!important',
99334
+ height: '72px!important',
99335
+ '@media(min-width: 480px)': {
99336
+ width: '115px',
99337
+ height: '115px'
99338
+ },
99300
99339
  '@media(min-width: 720px)': {
99301
99340
  width: '170px',
99302
99341
  height: '170px'
@@ -99315,12 +99354,15 @@ var StyledScrollableDescription = styled$1(Box$1)(function (_ref3) {
99315
99354
  lineHeight: '24px',
99316
99355
  color: theme.mainPallete.primary.blue,
99317
99356
  textAlign: 'center',
99318
- marginBottom: '40px',
99357
+ marginBottom: '30px',
99319
99358
  paddingRight: '8px',
99320
- maxHeight: '200px',
99359
+ // maxHeight: '200px',
99321
99360
  overflowY: 'auto',
99322
99361
  fontFamily: ['"Barlow", sans-serif'],
99323
99362
  fontWeight: theme.fontWeight.medium,
99363
+ '@media(min-width: 480px)': {
99364
+ marginBottom: '40px'
99365
+ },
99324
99366
  '@media(min-width: 720px)': {
99325
99367
  fontSize: '32px',
99326
99368
  lineHeight: '43px',
@@ -99360,18 +99402,75 @@ var StyledBottomButtonWrapper = styled$1(Box$1)(function (_ref5) {
99360
99402
  }
99361
99403
  };
99362
99404
  });
99363
- var CustomModal = function CustomModal(_ref6) {
99364
- var actionButtonLabel = _ref6.actionButtonLabel,
99365
- bottomButtonLabel = _ref6.bottomButtonLabel,
99366
- closeButtonLabel = _ref6.closeButtonLabel,
99367
- description = _ref6.description,
99368
- title = _ref6.title,
99369
- type = _ref6.type,
99370
- handleCloseModal = _ref6.handleCloseModal,
99371
- handleActionButton = _ref6.handleActionButton,
99372
- isModalOpen = _ref6.isModalOpen,
99373
- forwardedRef = _ref6.forwardedRef;
99405
+ var StyledIconHeaderWrapper = styled$1(Box$1)(function (_ref6) {
99406
+ _objectDestructuringEmpty(_ref6);
99407
+ return {
99408
+ display: 'flex',
99409
+ width: '100%',
99410
+ marginBottom: '25px',
99411
+ '&.row': {
99412
+ flexDirection: 'row',
99413
+ justifyContent: 'flex-start',
99414
+ alignItems: 'center',
99415
+ gridGap: '20px',
99416
+ '> p': {
99417
+ textAlign: 'left!important',
99418
+ margin: '0!important'
99419
+ },
99420
+ 'svg': {
99421
+ width: '72px!important',
99422
+ height: '72px!important',
99423
+ '@media(min-width: 480px)': {
99424
+ width: '92px!important',
99425
+ height: '92px!important'
99426
+ }
99427
+ }
99428
+ },
99429
+ '&.column': {
99430
+ flexDirection: 'column',
99431
+ justifyContent: 'flex-start',
99432
+ alignItems: 'center',
99433
+ '> p': {
99434
+ textAlign: 'center!important',
99435
+ margin: '0!important'
99436
+ },
99437
+ 'svg': {
99438
+ width: '72px!important',
99439
+ height: '72px!important',
99440
+ marginBottom: '6px',
99441
+ '@media(min-width: 480px)': {
99442
+ width: '115px!important',
99443
+ height: '115px!important',
99444
+ marginBottom: '9px'
99445
+ }
99446
+ }
99447
+ }
99448
+
99449
+ // marginTop: '30px',
99450
+ // '@media(min-width: 720px)' :{
99451
+ // marginTop: '45px',
99452
+ // },
99453
+ // '@media(min-width:1024px)' : {
99454
+ // marginTop: '25px'
99455
+ // }
99456
+ };
99457
+ });
99458
+
99459
+ var CustomModal = function CustomModal(_ref7) {
99460
+ var actionButtonLabel = _ref7.actionButtonLabel,
99461
+ bottomButtonLabel = _ref7.bottomButtonLabel,
99462
+ closeButtonLabel = _ref7.closeButtonLabel,
99463
+ description = _ref7.description,
99464
+ title = _ref7.title,
99465
+ type = _ref7.type,
99466
+ handleCloseModal = _ref7.handleCloseModal,
99467
+ handleActionButton = _ref7.handleActionButton,
99468
+ isModalOpen = _ref7.isModalOpen,
99469
+ forwardedRef = _ref7.forwardedRef,
99470
+ _ref7$headingType = _ref7.headingType,
99471
+ headingType = _ref7$headingType === void 0 ? 'row' : _ref7$headingType;
99374
99472
  var isScrollableTextModal = type === 'text-scroll';
99473
+ var isHeadingTypeRow = headingType === 'row';
99375
99474
  var isActionButtonHidden = actionButtonLabel === '' || actionButtonLabel === undefined;
99376
99475
  return /*#__PURE__*/React.createElement(StyledModalContainer, {
99377
99476
  ref: forwardedRef,
@@ -99381,13 +99480,23 @@ var CustomModal = function CustomModal(_ref6) {
99381
99480
  open: isModalOpen,
99382
99481
  onClose: handleCloseModal,
99383
99482
  isBottomTextButton: bottomButtonLabel
99384
- }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Illustration, {
99483
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, isHeadingTypeRow && /*#__PURE__*/React.createElement(StyledIconHeaderWrapper, {
99484
+ className: 'row'
99485
+ }, /*#__PURE__*/React.createElement(Illustration, {
99486
+ illustrationName: 'ilu_status_change',
99487
+ size: "small"
99488
+ }), /*#__PURE__*/React.createElement(TypographyComponent, {
99489
+ text: title,
99490
+ type: 'modal-header'
99491
+ })), !isHeadingTypeRow && /*#__PURE__*/React.createElement(StyledIconHeaderWrapper, {
99492
+ className: 'column'
99493
+ }, /*#__PURE__*/React.createElement(Illustration, {
99385
99494
  illustrationName: 'ilu_status_change',
99386
99495
  size: "small"
99387
99496
  }), /*#__PURE__*/React.createElement(TypographyComponent, {
99388
99497
  text: title,
99389
99498
  type: 'modal-header'
99390
- }), type === 'basic' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TypographyComponent, {
99499
+ })), type === 'basic' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TypographyComponent, {
99391
99500
  text: description,
99392
99501
  type: 'modal-description'
99393
99502
  }), /*#__PURE__*/React.createElement(CustomButtonComponent, {
@@ -99398,14 +99507,14 @@ var CustomModal = function CustomModal(_ref6) {
99398
99507
  color: "navy-blue",
99399
99508
  size: 'small'
99400
99509
  })), isScrollableTextModal && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledScrollableDescription, null, description), /*#__PURE__*/React.createElement(StyledButtonsWrapper, null, !isActionButtonHidden && /*#__PURE__*/React.createElement(CustomButtonComponent, {
99401
- fixed: true,
99510
+ fluid: true,
99402
99511
  onClick: handleActionButton,
99403
99512
  type: "secondary",
99404
99513
  text: actionButtonLabel,
99405
99514
  color: "navy-blue",
99406
99515
  size: 'small'
99407
99516
  }), /*#__PURE__*/React.createElement(CustomButtonComponent, {
99408
- fixed: true,
99517
+ fluid: true,
99409
99518
  onClick: handleCloseModal,
99410
99519
  type: "primary",
99411
99520
  text: closeButtonLabel,
@@ -99427,6 +99536,7 @@ CustomModal.propTypes = {
99427
99536
  description: propTypesExports.string,
99428
99537
  handleCloseModal: propTypesExports.func,
99429
99538
  handleActionButton: propTypesExports.func,
99539
+ headingType: propTypesExports.string,
99430
99540
  isModalOpen: propTypesExports.bool,
99431
99541
  forwardedRef: propTypesExports.oneOfType([propTypesExports.func, propTypesExports.shape({
99432
99542
  current: propTypesExports.any
@@ -99441,6 +99551,7 @@ CustomModal.defaultProps = {
99441
99551
  description: '',
99442
99552
  handleCloseModal: function handleCloseModal() {},
99443
99553
  handleActionButton: function handleActionButton() {},
99554
+ headingType: 'row',
99444
99555
  isModalOpen: false,
99445
99556
  forwardedRef: function forwardedRef() {},
99446
99557
  title: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xelto.npm/xc2-lib",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "author": "XELTO",
5
5
  "description": "React component library based on MUI",
6
6
  "license": "ISC",