@xelto.npm/xc2-lib 1.0.8 → 1.0.10

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
@@ -74986,7 +74986,7 @@ var StyledButtonsWrapper$1 = styled$1(Box$1)(function (_ref3) {
74986
74986
  width: '100%',
74987
74987
  display: 'flex',
74988
74988
  justifyContent: 'space-between',
74989
- alignItems: 'center',
74989
+ alignItems: 'stretch',
74990
74990
  padding: '10px 0',
74991
74991
  zIndex: 5,
74992
74992
  columnGap: 3
@@ -74999,7 +74999,7 @@ var StyledHelperTextWrapper = styled$1(Box$1)(function (_ref4) {
74999
74999
  width: '100%',
75000
75000
  display: 'flex',
75001
75001
  flexDirection: 'row',
75002
- justifyContent: 'flex-start',
75002
+ justifyContent: 'center',
75003
75003
  alignItems: 'center',
75004
75004
  paddingBottom: '4px',
75005
75005
  zIndex: 5,
@@ -99257,8 +99257,8 @@ var StyledModalWrapper = styled$1(Modal$1, {
99257
99257
  display: 'none'
99258
99258
  },
99259
99259
  'svg': {
99260
- width: '72px!important',
99261
- height: '72px!important',
99260
+ // width: '72px!important',
99261
+ // height: '72px!important',
99262
99262
  '@media(min-width: 480px)': {
99263
99263
  width: '115px',
99264
99264
  height: '115px'
@@ -99282,9 +99282,9 @@ var StyledScrollableDescription = styled$1(Box$1)(function (_ref3) {
99282
99282
  color: theme.mainPallete.primary.blue,
99283
99283
  textAlign: 'center',
99284
99284
  marginBottom: '30px',
99285
- paddingRight: '8px',
99286
99285
  // maxHeight: '200px',
99287
99286
  overflowY: 'auto',
99287
+ width: '100%',
99288
99288
  fontFamily: ['"Barlow", sans-serif'],
99289
99289
  fontWeight: theme.fontWeight.medium,
99290
99290
  '&.not-string': {
@@ -99351,8 +99351,8 @@ var StyledIconHeaderWrapper = styled$1(Box$1)(function (_ref6) {
99351
99351
  margin: '0!important'
99352
99352
  },
99353
99353
  'svg': {
99354
- width: '72px!important',
99355
- height: '72px!important',
99354
+ // width: '72px!important',
99355
+ // height: '72px!important',
99356
99356
  '@media(min-width: 480px)': {
99357
99357
  width: '92px!important',
99358
99358
  height: '92px!important'
@@ -99368,12 +99368,12 @@ var StyledIconHeaderWrapper = styled$1(Box$1)(function (_ref6) {
99368
99368
  margin: '0!important'
99369
99369
  },
99370
99370
  'svg': {
99371
- width: '72px!important',
99372
- height: '72px!important',
99371
+ // width: '72px!important',
99372
+ // height: '72px!important',
99373
99373
  marginBottom: '6px',
99374
99374
  '@media(min-width: 480px)': {
99375
- width: '115px!important',
99376
- height: '115px!important',
99375
+ // width: '115px!important',
99376
+ // height: '115px!important',
99377
99377
  marginBottom: '9px'
99378
99378
  }
99379
99379
  }
@@ -99401,7 +99401,8 @@ var CustomModal = function CustomModal(_ref7) {
99401
99401
  isModalOpen = _ref7.isModalOpen,
99402
99402
  forwardedRef = _ref7.forwardedRef,
99403
99403
  _ref7$headingType = _ref7.headingType,
99404
- headingType = _ref7$headingType === void 0 ? 'row' : _ref7$headingType;
99404
+ headingType = _ref7$headingType === void 0 ? 'column' : _ref7$headingType,
99405
+ icon = _ref7.icon;
99405
99406
  var isScrollableTextModal = type === 'text-scroll';
99406
99407
  var isHeadingTypeRow = headingType === 'row';
99407
99408
  var isActionButtonHidden = actionButtonLabel === '' || actionButtonLabel === undefined;
@@ -99424,10 +99425,21 @@ var CustomModal = function CustomModal(_ref7) {
99424
99425
  type: 'modal-header'
99425
99426
  })), !isHeadingTypeRow && /*#__PURE__*/React__namespace.createElement(StyledIconHeaderWrapper, {
99426
99427
  className: 'column'
99427
- }, /*#__PURE__*/React__namespace.createElement(Illustration, {
99428
- illustrationName: 'ilu_status_change',
99429
- size: "small"
99430
- }), /*#__PURE__*/React__namespace.createElement(TypographyComponent, {
99428
+ }, function () {
99429
+ if (icon === 'error') return /*#__PURE__*/React__namespace.createElement(Icon, {
99430
+ iconName: 'icon_sp_warning',
99431
+ size: "small"
99432
+ });else if (icon === 'success') return /*#__PURE__*/React__namespace.createElement(Icon, {
99433
+ iconName: 'icon_sp_check_mark',
99434
+ size: "small"
99435
+ });else if (icon === 'info') return /*#__PURE__*/React__namespace.createElement(Icon, {
99436
+ iconName: 'icon_sp_info_2',
99437
+ size: "small"
99438
+ });else return /*#__PURE__*/React__namespace.createElement(Icon, {
99439
+ iconName: 'icon_sp_info',
99440
+ size: "small"
99441
+ });
99442
+ }(), /*#__PURE__*/React__namespace.createElement(TypographyComponent, {
99431
99443
  text: title,
99432
99444
  type: 'modal-header'
99433
99445
  })), type === 'basic' && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(TypographyComponent, {
@@ -99478,7 +99490,8 @@ CustomModal.propTypes = {
99478
99490
  current: propTypesExports.any
99479
99491
  })]),
99480
99492
  title: propTypesExports.string,
99481
- type: propTypesExports.string
99493
+ type: propTypesExports.string,
99494
+ icon: propTypesExports.string
99482
99495
  };
99483
99496
  CustomModal.defaultProps = {
99484
99497
  actionButtonLabel: '',
package/dist/index.esm.js CHANGED
@@ -74966,7 +74966,7 @@ var StyledButtonsWrapper$1 = styled$1(Box$1)(function (_ref3) {
74966
74966
  width: '100%',
74967
74967
  display: 'flex',
74968
74968
  justifyContent: 'space-between',
74969
- alignItems: 'center',
74969
+ alignItems: 'stretch',
74970
74970
  padding: '10px 0',
74971
74971
  zIndex: 5,
74972
74972
  columnGap: 3
@@ -74979,7 +74979,7 @@ var StyledHelperTextWrapper = styled$1(Box$1)(function (_ref4) {
74979
74979
  width: '100%',
74980
74980
  display: 'flex',
74981
74981
  flexDirection: 'row',
74982
- justifyContent: 'flex-start',
74982
+ justifyContent: 'center',
74983
74983
  alignItems: 'center',
74984
74984
  paddingBottom: '4px',
74985
74985
  zIndex: 5,
@@ -99237,8 +99237,8 @@ var StyledModalWrapper = styled$1(Modal$1, {
99237
99237
  display: 'none'
99238
99238
  },
99239
99239
  'svg': {
99240
- width: '72px!important',
99241
- height: '72px!important',
99240
+ // width: '72px!important',
99241
+ // height: '72px!important',
99242
99242
  '@media(min-width: 480px)': {
99243
99243
  width: '115px',
99244
99244
  height: '115px'
@@ -99262,9 +99262,9 @@ var StyledScrollableDescription = styled$1(Box$1)(function (_ref3) {
99262
99262
  color: theme.mainPallete.primary.blue,
99263
99263
  textAlign: 'center',
99264
99264
  marginBottom: '30px',
99265
- paddingRight: '8px',
99266
99265
  // maxHeight: '200px',
99267
99266
  overflowY: 'auto',
99267
+ width: '100%',
99268
99268
  fontFamily: ['"Barlow", sans-serif'],
99269
99269
  fontWeight: theme.fontWeight.medium,
99270
99270
  '&.not-string': {
@@ -99331,8 +99331,8 @@ var StyledIconHeaderWrapper = styled$1(Box$1)(function (_ref6) {
99331
99331
  margin: '0!important'
99332
99332
  },
99333
99333
  'svg': {
99334
- width: '72px!important',
99335
- height: '72px!important',
99334
+ // width: '72px!important',
99335
+ // height: '72px!important',
99336
99336
  '@media(min-width: 480px)': {
99337
99337
  width: '92px!important',
99338
99338
  height: '92px!important'
@@ -99348,12 +99348,12 @@ var StyledIconHeaderWrapper = styled$1(Box$1)(function (_ref6) {
99348
99348
  margin: '0!important'
99349
99349
  },
99350
99350
  'svg': {
99351
- width: '72px!important',
99352
- height: '72px!important',
99351
+ // width: '72px!important',
99352
+ // height: '72px!important',
99353
99353
  marginBottom: '6px',
99354
99354
  '@media(min-width: 480px)': {
99355
- width: '115px!important',
99356
- height: '115px!important',
99355
+ // width: '115px!important',
99356
+ // height: '115px!important',
99357
99357
  marginBottom: '9px'
99358
99358
  }
99359
99359
  }
@@ -99381,7 +99381,8 @@ var CustomModal = function CustomModal(_ref7) {
99381
99381
  isModalOpen = _ref7.isModalOpen,
99382
99382
  forwardedRef = _ref7.forwardedRef,
99383
99383
  _ref7$headingType = _ref7.headingType,
99384
- headingType = _ref7$headingType === void 0 ? 'row' : _ref7$headingType;
99384
+ headingType = _ref7$headingType === void 0 ? 'column' : _ref7$headingType,
99385
+ icon = _ref7.icon;
99385
99386
  var isScrollableTextModal = type === 'text-scroll';
99386
99387
  var isHeadingTypeRow = headingType === 'row';
99387
99388
  var isActionButtonHidden = actionButtonLabel === '' || actionButtonLabel === undefined;
@@ -99404,10 +99405,21 @@ var CustomModal = function CustomModal(_ref7) {
99404
99405
  type: 'modal-header'
99405
99406
  })), !isHeadingTypeRow && /*#__PURE__*/React.createElement(StyledIconHeaderWrapper, {
99406
99407
  className: 'column'
99407
- }, /*#__PURE__*/React.createElement(Illustration, {
99408
- illustrationName: 'ilu_status_change',
99409
- size: "small"
99410
- }), /*#__PURE__*/React.createElement(TypographyComponent, {
99408
+ }, function () {
99409
+ if (icon === 'error') return /*#__PURE__*/React.createElement(Icon, {
99410
+ iconName: 'icon_sp_warning',
99411
+ size: "small"
99412
+ });else if (icon === 'success') return /*#__PURE__*/React.createElement(Icon, {
99413
+ iconName: 'icon_sp_check_mark',
99414
+ size: "small"
99415
+ });else if (icon === 'info') return /*#__PURE__*/React.createElement(Icon, {
99416
+ iconName: 'icon_sp_info_2',
99417
+ size: "small"
99418
+ });else return /*#__PURE__*/React.createElement(Icon, {
99419
+ iconName: 'icon_sp_info',
99420
+ size: "small"
99421
+ });
99422
+ }(), /*#__PURE__*/React.createElement(TypographyComponent, {
99411
99423
  text: title,
99412
99424
  type: 'modal-header'
99413
99425
  })), type === 'basic' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TypographyComponent, {
@@ -99458,7 +99470,8 @@ CustomModal.propTypes = {
99458
99470
  current: propTypesExports.any
99459
99471
  })]),
99460
99472
  title: propTypesExports.string,
99461
- type: propTypesExports.string
99473
+ type: propTypesExports.string,
99474
+ icon: propTypesExports.string
99462
99475
  };
99463
99476
  CustomModal.defaultProps = {
99464
99477
  actionButtonLabel: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xelto.npm/xc2-lib",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "author": "XELTO",
5
5
  "description": "React component library based on MUI",
6
6
  "license": "ISC",