@xelto.npm/xc2-lib 0.0.72 → 0.0.74

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.esm.js CHANGED
@@ -19211,6 +19211,14 @@ var SwitchComponent = function SwitchComponent(_ref) {
19211
19211
  label: label
19212
19212
  })));
19213
19213
  };
19214
+ SwitchComponent.propTypes = {
19215
+ checked: propTypes.exports.bool,
19216
+ label: propTypes.exports.string,
19217
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
19218
+ current: propTypes.exports.any
19219
+ })]),
19220
+ onChange: propTypes.exports.func
19221
+ };
19214
19222
 
19215
19223
  function GlobalStyles$2(props) {
19216
19224
  return /*#__PURE__*/jsxRuntimeExports.jsx(GlobalStyles$3, _extends$1d({}, props, {
@@ -27795,6 +27803,33 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
27795
27803
  } : void 0;
27796
27804
  var Autocomplete$1 = Autocomplete;
27797
27805
 
27806
+ const defaultTheme = createTheme();
27807
+ const Box = createBox({
27808
+ defaultTheme,
27809
+ defaultClassName: 'MuiBox-root',
27810
+ generateClassName: ClassNameGenerator$1.generate
27811
+ });
27812
+ process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
27813
+ // ----------------------------- Warning --------------------------------
27814
+ // | These PropTypes are generated from the TypeScript type definitions |
27815
+ // | To update them edit the d.ts file and run "yarn proptypes" |
27816
+ // ----------------------------------------------------------------------
27817
+ /**
27818
+ * @ignore
27819
+ */
27820
+ children: propTypes.exports.node,
27821
+ /**
27822
+ * The component used for the root node.
27823
+ * Either a string to use a HTML element or a component.
27824
+ */
27825
+ component: propTypes.exports.elementType,
27826
+ /**
27827
+ * The system prop that allows defining system overrides as well as additional CSS styles.
27828
+ */
27829
+ sx: propTypes.exports.oneOfType([propTypes.exports.arrayOf(propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.object, propTypes.exports.bool])), propTypes.exports.func, propTypes.exports.object])
27830
+ } : void 0;
27831
+ var Box$1 = Box;
27832
+
27798
27833
  var _path$F, _path2$e, _path3$6;
27799
27834
  function _extends$1c() { _extends$1c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1c.apply(this, arguments); }
27800
27835
  var SvgIconWfSearch = function SvgIconWfSearch(props) {
@@ -28993,33 +29028,6 @@ var SvgUpdateIcon = function SvgUpdateIcon(props) {
28993
29028
  }))));
28994
29029
  };
28995
29030
 
28996
- const defaultTheme = createTheme();
28997
- const Box = createBox({
28998
- defaultTheme,
28999
- defaultClassName: 'MuiBox-root',
29000
- generateClassName: ClassNameGenerator$1.generate
29001
- });
29002
- process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
29003
- // ----------------------------- Warning --------------------------------
29004
- // | These PropTypes are generated from the TypeScript type definitions |
29005
- // | To update them edit the d.ts file and run "yarn proptypes" |
29006
- // ----------------------------------------------------------------------
29007
- /**
29008
- * @ignore
29009
- */
29010
- children: propTypes.exports.node,
29011
- /**
29012
- * The component used for the root node.
29013
- * Either a string to use a HTML element or a component.
29014
- */
29015
- component: propTypes.exports.elementType,
29016
- /**
29017
- * The system prop that allows defining system overrides as well as additional CSS styles.
29018
- */
29019
- sx: propTypes.exports.oneOfType([propTypes.exports.arrayOf(propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.object, propTypes.exports.bool])), propTypes.exports.func, propTypes.exports.object])
29020
- } : void 0;
29021
- var Box$1 = Box;
29022
-
29023
29031
  var _g$x;
29024
29032
  function _extends$B() { _extends$B = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$B.apply(this, arguments); }
29025
29033
  var SvgCheckboxDefault = function SvgCheckboxDefault(props) {
@@ -29088,7 +29096,7 @@ var SvgChecbkoxIndeterminate = function SvgChecbkoxIndeterminate(props) {
29088
29096
  }))));
29089
29097
  };
29090
29098
 
29091
- var _excluded$Y = ["iconName", "color", "size", "forwardedRef"];
29099
+ var _excluded$Y = ["color", "iconName", "size", "forwardedRef"];
29092
29100
  var StyledIconWrapper$1 = styled$1(Box$1)(function (_ref) {
29093
29101
  var iconName = _ref.iconName;
29094
29102
  return {
@@ -29249,10 +29257,10 @@ var StyledIconWrapper$1 = styled$1(Box$1)(function (_ref) {
29249
29257
  };
29250
29258
  });
29251
29259
  var Icon = function Icon(_ref2) {
29252
- var _ref2$iconName = _ref2.iconName,
29253
- iconName = _ref2$iconName === void 0 ? '' : _ref2$iconName,
29254
- _ref2$color = _ref2.color,
29260
+ var _ref2$color = _ref2.color,
29255
29261
  color = _ref2$color === void 0 ? 'red-navy' : _ref2$color,
29262
+ _ref2$iconName = _ref2.iconName,
29263
+ iconName = _ref2$iconName === void 0 ? 'icon_wf_download' : _ref2$iconName,
29256
29264
  _ref2$size = _ref2.size,
29257
29265
  size = _ref2$size === void 0 ? 'responsive' : _ref2$size,
29258
29266
  forwardedRef = _ref2.forwardedRef,
@@ -29264,6 +29272,14 @@ var Icon = function Icon(_ref2) {
29264
29272
  iconName: iconName
29265
29273
  }), iconName === 'icon_wf_search' && /*#__PURE__*/React__default.createElement(SvgIconWfSearch, null), iconName === 'icon_wf_locked' && /*#__PURE__*/React__default.createElement(SvgIconWfLocked, null), iconName === 'icon_wf_download' && /*#__PURE__*/React__default.createElement(SvgIconWfDownload, null), iconName === 'icon_wf_remove' && /*#__PURE__*/React__default.createElement(SvgIconWfRemove, null), iconName === 'icon_wf_logout' && /*#__PURE__*/React__default.createElement(SvgIconWfLogout, null), iconName === 'icon_wf_edit' && /*#__PURE__*/React__default.createElement(SvgIconWfEdit, null), iconName === 'icon_wf_settings_or_filter' && /*#__PURE__*/React__default.createElement(SvgIconWfSettingsOrFilter, null), iconName === 'icon_wf_barcode_1d' && /*#__PURE__*/React__default.createElement(SvgIconWfBarcode1D, null), iconName === 'icon_wf_barcode_2d' && /*#__PURE__*/React__default.createElement(SvgIconWfBarcode2D, null), iconName === 'icon_wf_barcode_printer' && /*#__PURE__*/React__default.createElement(SvgIconWfBarcodePrinter, null), iconName === 'icon_wf_box' && /*#__PURE__*/React__default.createElement(SvgIconWfBox, null), iconName === 'icon_wf_calculator' && /*#__PURE__*/React__default.createElement(SvgIconWfCalculator, null), iconName === 'icon_wf_calendar' && /*#__PURE__*/React__default.createElement(SvgIconWfCalendar, null), iconName === 'icon_wf_car' && /*#__PURE__*/React__default.createElement(SvgIconWfCar, null), iconName === 'icon_wf_forklift' && /*#__PURE__*/React__default.createElement(SvgIconWfForklift, null), iconName === 'icon_wf_invoice' && /*#__PURE__*/React__default.createElement(SvgIconWfInvoice, null), iconName === 'icon_wf_keyboard' && /*#__PURE__*/React__default.createElement(SvgIconWfKeyboard, null), iconName === 'icon_wf_logs' && /*#__PURE__*/React__default.createElement(SvgIconWfLogs, null), iconName === 'icon_wf_no_barcode_printer' && /*#__PURE__*/React__default.createElement(SvgIconWfNoBarcodePrinter, null), iconName === 'icon_wf_no_scan' && /*#__PURE__*/React__default.createElement(SvgIconWfNoScan, null), iconName === 'icon_wf_pallet' && /*#__PURE__*/React__default.createElement(SvgIconWfPallet, null), iconName === 'icon_wf_pin' && /*#__PURE__*/React__default.createElement(SvgIconWfPin, null), iconName === 'icon_wf_scan' && /*#__PURE__*/React__default.createElement(SvgIconWfScan, null), iconName === 'icon_wf_send' && /*#__PURE__*/React__default.createElement(SvgIconWfSend, null), iconName === 'icon_wf_status_ksef' && /*#__PURE__*/React__default.createElement(SvgIconWfStatusKsef, null), iconName === 'icon_wf_stop' && /*#__PURE__*/React__default.createElement(SvgIconWfStop, null), iconName === 'icon_wf_unpin' && /*#__PURE__*/React__default.createElement(SvgIconWfUnpin, null), iconName === 'icon_wf_refresh' && /*#__PURE__*/React__default.createElement(SvgIconWfRefresh, null), iconName === 'icon_ui_close' && /*#__PURE__*/React__default.createElement(SvgIconUiClose, null), iconName === 'icon_ui_chevron_up' && /*#__PURE__*/React__default.createElement(SvgIconUiChevronUp, null), iconName === 'icon_ui_chevron_down' && /*#__PURE__*/React__default.createElement(SvgIconUiChevronDown, null), iconName === 'icon_ui_chevron_right' && /*#__PURE__*/React__default.createElement(SvgIconUiChevronRight, null), iconName === 'icon_ui_chevron_left' && /*#__PURE__*/React__default.createElement(SvgIconUiChevronLeft, null), iconName === 'icon_sp_check_mark' && /*#__PURE__*/React__default.createElement(SvgIconSpCheckMark, null), iconName === 'icon_sp_warning' && /*#__PURE__*/React__default.createElement(SvgIconSpWarning, null), iconName === 'icon_sp_info' && /*#__PURE__*/React__default.createElement(SvgIconSpInfo, null), iconName === 'icon_sp_info_2' && /*#__PURE__*/React__default.createElement(SvgIconSpInfo2, null), iconName === 'icon_burger_menu' && /*#__PURE__*/React__default.createElement(SvgMenuBurger, null), iconName === 'icon_update' && /*#__PURE__*/React__default.createElement(SvgUpdateIcon, null), iconName === 'icon_checkbox_default' && /*#__PURE__*/React__default.createElement(SvgCheckboxDefault, null), iconName === 'icon_checkbox_checked' && /*#__PURE__*/React__default.createElement(SvgCheckboxChecked, null), iconName === 'icon_checkbox_indeterminate' && /*#__PURE__*/React__default.createElement(SvgChecbkoxIndeterminate, null));
29266
29274
  };
29275
+ Icon.propTypes = {
29276
+ color: propTypes.exports.string,
29277
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
29278
+ current: propTypes.exports.any
29279
+ })]),
29280
+ iconName: propTypes.exports.string,
29281
+ size: propTypes.exports.string
29282
+ };
29267
29283
 
29268
29284
  var _excluded$X = ["id", "disabled", "label", "withRefresh", "fluid", "placeholder", "onRefreshClick", "options", "value", "onChange", "forwardedRef", "noOptionsText"];
29269
29285
  var StyledAutocomplete$1 = styled$1(Autocomplete$1)(function (_ref) {
@@ -52534,8 +52550,6 @@ var StyledTypography = styled$1(Typography$2)(function (_ref) {
52534
52550
  }
52535
52551
  };
52536
52552
  });
52537
-
52538
- // @ts-ignore
52539
52553
  var TypographyComponent = function TypographyComponent(_ref2) {
52540
52554
  var text = _ref2.text,
52541
52555
  type = _ref2.type,
@@ -52549,6 +52563,13 @@ var TypographyComponent = function TypographyComponent(_ref2) {
52549
52563
  className: typeClassName
52550
52564
  }), text);
52551
52565
  };
52566
+ TypographyComponent.propTypes = {
52567
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
52568
+ current: propTypes.exports.any
52569
+ })]),
52570
+ text: propTypes.exports.string,
52571
+ type: propTypes.exports.string
52572
+ };
52552
52573
 
52553
52574
  var StyledAppTileWrapper = styled$1(Box$1)(function (_ref) {
52554
52575
  _objectDestructuringEmpty(_ref);
@@ -52598,9 +52619,11 @@ var AppTileComponent = function AppTileComponent(_ref3) {
52598
52619
  _ref3$illustrationNam = _ref3.illustrationName,
52599
52620
  illustrationName = _ref3$illustrationNam === void 0 ? 'ilu_availability_by_item' : _ref3$illustrationNam,
52600
52621
  _ref3$forwardedRef = _ref3.forwardedRef,
52601
- forwardedRef = _ref3$forwardedRef === void 0 ? function () {} : _ref3$forwardedRef;
52622
+ forwardedRef = _ref3$forwardedRef === void 0 ? function () {} : _ref3$forwardedRef,
52623
+ onClick = _ref3.onClick;
52602
52624
  return /*#__PURE__*/React__default.createElement(StyledAppTileWrapper, {
52603
- ref: forwardedRef
52625
+ ref: forwardedRef,
52626
+ onClick: onClick
52604
52627
  }, /*#__PURE__*/React__default.createElement(Illustration, {
52605
52628
  illustrationName: illustrationName,
52606
52629
  color: '',
@@ -52618,7 +52641,7 @@ var AppTileComponent = function AppTileComponent(_ref3) {
52618
52641
  };
52619
52642
  AppTileComponent.propTypes = {
52620
52643
  description: propTypes.exports.string,
52621
- header: propTypes.exports.bool,
52644
+ header: propTypes.exports.string,
52622
52645
  illustrationName: propTypes.exports.string,
52623
52646
  onClick: propTypes.exports.func,
52624
52647
  forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
@@ -52631,18 +52654,14 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
52631
52654
  var fluid = _ref.fluid;
52632
52655
  return {
52633
52656
  width: fluid ? '100%' : 'auto',
52634
- // fontSize: '16px',
52635
- // lineHeight: '15px',
52636
52657
  borderRadius: '24px',
52637
52658
  fontWeight: 'bold',
52638
52659
  boxShadow: 'none',
52639
- // padding: props => props.size === 'big' ? '34px 60px' : '4px 24px',
52640
52660
  border: '2px solid #293072',
52641
52661
  backgroundColor: theme.mainPallete.primary.white,
52642
52662
  color: theme.mainPallete.primary.blue,
52643
52663
  textTransform: 'uppercase',
52644
52664
  fontFamily: ['"Barlow", sans-serif'],
52645
- // backgroundColor: theme.mainPallete.primary.red,
52646
52665
  '&:hover': {
52647
52666
  boxShadow: 'none'
52648
52667
  },
@@ -52812,7 +52831,6 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
52812
52831
  },
52813
52832
  '&.big': {
52814
52833
  padding: '21px',
52815
- //PADDDINGi DO USTALENIA
52816
52834
  fontSize: '16px',
52817
52835
  lineHeight: '15px',
52818
52836
  borderRadius: '31px',
@@ -52832,7 +52850,6 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
52832
52850
  },
52833
52851
  '&.small': {
52834
52852
  padding: '14px 21px',
52835
- //PADDDINGi DO USTALENIA
52836
52853
  fontSize: '16px',
52837
52854
  lineHeight: '15px',
52838
52855
  borderRadius: '24px',
@@ -52852,8 +52869,6 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
52852
52869
  }
52853
52870
  };
52854
52871
  });
52855
-
52856
- // @ts-ignore
52857
52872
  var CustomButtonComponent = function CustomButtonComponent(_ref2) {
52858
52873
  var type = _ref2.type,
52859
52874
  text = _ref2.text,
@@ -52867,7 +52882,6 @@ var CustomButtonComponent = function CustomButtonComponent(_ref2) {
52867
52882
  var colorClassName = disabled ? 'grey' : color ? color : 'navy-blue'; // navy-blue / red / black / grey / special-green
52868
52883
  var typeClassName = type || 'primary'; // primary / secondary / ghost
52869
52884
  var sizeClassName = size || 'big'; // null / big / small
52870
- // const behaviourClassName = behaviour || '';
52871
52885
  var finalClassName = "".concat(typeClassName, " ").concat(colorClassName, " ").concat(sizeClassName);
52872
52886
  return /*#__PURE__*/React.createElement(CustomButton, _extends$1e({
52873
52887
  disabled: disabled,
@@ -52879,8 +52893,20 @@ var CustomButtonComponent = function CustomButtonComponent(_ref2) {
52879
52893
  ref: forwardedRef
52880
52894
  }, props), text);
52881
52895
  };
52896
+ CustomButtonComponent.propTypes = {
52897
+ color: propTypes.exports.string,
52898
+ disabled: propTypes.exports.bool,
52899
+ fluid: propTypes.exports.bool,
52900
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
52901
+ current: propTypes.exports.any
52902
+ })]),
52903
+ onClick: propTypes.exports.func,
52904
+ size: propTypes.exports.string,
52905
+ type: propTypes.exports.string,
52906
+ text: propTypes.exports.string
52907
+ };
52882
52908
 
52883
- var _excluded$7 = ["text", "type", "icon", "color", "fluid", "onClick", "forwardedRef"];
52909
+ var _excluded$7 = ["color", "disabled", "fluid", "forwardedRef", "icon", "onClick", "text", "type"];
52884
52910
  var CustomIconButton = styled$1(Button$2)(function (_ref) {
52885
52911
  var fluid = _ref.fluid;
52886
52912
  return {
@@ -52892,7 +52918,6 @@ var CustomIconButton = styled$1(Button$2)(function (_ref) {
52892
52918
  textTransform: 'uppercase',
52893
52919
  fontFamily: ['"Barlow", sans-serif'],
52894
52920
  padding: '4px 25px 4px 21px',
52895
- //PADDDINGi DO USTALENIA
52896
52921
  fontSize: '16px',
52897
52922
  lineHeight: '15px',
52898
52923
  '@media(min-width: 1024px)': {
@@ -52901,7 +52926,6 @@ var CustomIconButton = styled$1(Button$2)(function (_ref) {
52901
52926
  lineHeight: '16px',
52902
52927
  borderRadius: '24px'
52903
52928
  },
52904
- // backgroundColor: theme.mainPallete.primary.red,
52905
52929
  '&:hover': {
52906
52930
  boxShadow: 'none',
52907
52931
  'img': {
@@ -53074,23 +53098,22 @@ var CustomIconButton = styled$1(Button$2)(function (_ref) {
53074
53098
  };
53075
53099
  });
53076
53100
  var IconButtonComponent = function IconButtonComponent(_ref2) {
53077
- var text = _ref2.text,
53078
- type = _ref2.type,
53079
- icon = _ref2.icon,
53080
- color = _ref2.color,
53101
+ var color = _ref2.color,
53102
+ disabled = _ref2.disabled,
53081
53103
  fluid = _ref2.fluid,
53082
- onClick = _ref2.onClick,
53083
53104
  forwardedRef = _ref2.forwardedRef,
53105
+ _ref2$icon = _ref2.icon,
53106
+ icon = _ref2$icon === void 0 ? 'icon_wf_download' : _ref2$icon,
53107
+ onClick = _ref2.onClick,
53108
+ text = _ref2.text,
53109
+ type = _ref2.type,
53084
53110
  props = _objectWithoutProperties$1(_ref2, _excluded$7);
53085
- var colorClassName = color || '';
53086
- var typeClassName = type || '';
53087
- // const resolutionClassName = resolution === '480x800' ? 'regular' : resolution === '720x1280' ? 'big' :resolution === '1024x768/1440x960/1920x1080' ? 'small' : ''
53088
- // const widthClassName = width === '100%' ? 'width100' : width === '50%' ? 'width50' : width === '33%' ? 'width33' : '';
53111
+ var colorClassName = color || 'navy-blue';
53112
+ var typeClassName = type || 'primary';
53089
53113
  var finalClassName = "".concat(typeClassName, " ").concat(colorClassName);
53090
- // const iconVariant = icon === 'download' ? IconDownloadGrey : IconDownloadWhite;
53091
- // const iconVariant = `${type} ${icon} ${colorClassName}`;
53092
53114
  return /*#__PURE__*/React.createElement(CustomIconButton, _extends$1e({}, props, {
53093
53115
  onClick: onClick,
53116
+ disabled: disabled,
53094
53117
  fluid: fluid,
53095
53118
  ref: forwardedRef,
53096
53119
  startIcon: /*#__PURE__*/React.createElement(Icon, {
@@ -53102,6 +53125,19 @@ var IconButtonComponent = function IconButtonComponent(_ref2) {
53102
53125
  disableRipple: true
53103
53126
  }), text);
53104
53127
  };
53128
+ IconButtonComponent.propTypes = {
53129
+ color: propTypes.exports.string,
53130
+ disabled: propTypes.exports.bool,
53131
+ icon: propTypes.exports.string,
53132
+ fluid: propTypes.exports.bool,
53133
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
53134
+ current: propTypes.exports.any
53135
+ })]),
53136
+ onClick: propTypes.exports.func,
53137
+ size: propTypes.exports.string,
53138
+ type: propTypes.exports.string,
53139
+ text: propTypes.exports.string
53140
+ };
53105
53141
 
53106
53142
  var _g$v;
53107
53143
  function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
@@ -65811,15 +65847,23 @@ var StyledIllustrationWrapper = styled$1(Box$1)(function (_ref) {
65811
65847
  });
65812
65848
  var Illustration = function Illustration(_ref2) {
65813
65849
  var illustrationName = _ref2.illustrationName,
65814
- color = _ref2.color,
65815
65850
  size = _ref2.size,
65816
- isBigType = _ref2.isBigType;
65851
+ isBigType = _ref2.isBigType,
65852
+ forwardedRef = _ref2.forwardedRef;
65817
65853
  var bigTypeClassName = isBigType ? 'big-type' : '';
65818
65854
  return /*#__PURE__*/React__default.createElement(StyledIllustrationWrapper, {
65819
- className: "".concat(color, " ").concat(size, " ").concat(bigTypeClassName),
65820
- color: color
65855
+ ref: forwardedRef,
65856
+ className: "".concat(size, " ").concat(bigTypeClassName)
65821
65857
  }, illustrationName === 'ilu_availability_by_item' && /*#__PURE__*/React__default.createElement(SvgIluAvailabilityByItem, null), illustrationName === 'ilu_add_goods_to_pallet' && /*#__PURE__*/React__default.createElement(SvgIluAddGoodsToPallet, null), illustrationName === 'ilu_availability_by_index' && /*#__PURE__*/React__default.createElement(SvgIluAvailabilityByIndex, null), illustrationName === 'ilu_availability_by_location' && /*#__PURE__*/React__default.createElement(SvgIluAvailabilityByLocation, null), illustrationName === 'ilu_blocked_pallet' && /*#__PURE__*/React__default.createElement(SvgIluBlockedPallet, null), illustrationName === 'ilu_finished_product' && /*#__PURE__*/React__default.createElement(SvgIluFinishedProduct, null), illustrationName === 'ilu_from_pallet_to_rack' && /*#__PURE__*/React__default.createElement(SvgIluFromPalletToRack, null), illustrationName === 'ilu_internal_logistic' && /*#__PURE__*/React__default.createElement(SvgIluInternalLogistic, null), illustrationName === 'ilu_inventory' && /*#__PURE__*/React__default.createElement(SvgIluInventory, null), illustrationName === 'ilu_inventory_transfer' && /*#__PURE__*/React__default.createElement(SvgIluInventoryTransfer, null), illustrationName === 'ilu_labeling_of_pallets' && /*#__PURE__*/React__default.createElement(SvgIluLabelingOfPallets, null), illustrationName === 'ilu_loading_car' && /*#__PURE__*/React__default.createElement(SvgIluLoadingCar, null), illustrationName === 'ilu_manual_transfer' && /*#__PURE__*/React__default.createElement(SvgIluManualTransfer, null), illustrationName === 'ilu_move_goods_from_pallet_to_another' && /*#__PURE__*/React__default.createElement(SvgIluMoveGoodsFromPalletToAnother, null), illustrationName === 'ilu_printing_label' && /*#__PURE__*/React__default.createElement(SvgIluPrintingLabel, null), illustrationName === 'ilu_production' && /*#__PURE__*/React__default.createElement(SvgIluProduction, null), illustrationName === 'ilu_quality_control' && /*#__PURE__*/React__default.createElement(SvgIluQualityControl, null), illustrationName === 'ilu_release_of_goods_from_warehouse' && /*#__PURE__*/React__default.createElement(SvgIluReleaseOfGoodsFromWarehouse, null), illustrationName === 'ilu_remove_goods_from_pallet' && /*#__PURE__*/React__default.createElement(SvgIluRemoveGoodsFromPallet, null), illustrationName === 'ilu_reprinting_label' && /*#__PURE__*/React__default.createElement(SvgIluReprintingLabel, null), illustrationName === 'ilu_return_from_customers' && /*#__PURE__*/React__default.createElement(SvgIluReturnFromCustomers, null), illustrationName === 'ilu_sale' && /*#__PURE__*/React__default.createElement(SvgIluSale, null), illustrationName === 'ilu_shift_pallet' && /*#__PURE__*/React__default.createElement(SvgIluShiftPallet, null), illustrationName === 'ilu_shopping' && /*#__PURE__*/React__default.createElement(SvgIluShopping, null), illustrationName === 'ilu_status_change' && /*#__PURE__*/React__default.createElement(SvgIluStatusChange, null), illustrationName === 'ilu_storage_field' && /*#__PURE__*/React__default.createElement(SvgIluStorageField, null), illustrationName === 'ilu_warehouse_loading' && /*#__PURE__*/React__default.createElement(SvgIluWarehouseLoading, null), illustrationName === 'ilu_moving_box_to_another_shelf' && /*#__PURE__*/React__default.createElement(SvgMovingBoxToAnotherShelf, null), illustrationName === 'ilu_search' && /*#__PURE__*/React__default.createElement(SvgIluSearch, null), illustrationName === 'ilu_404' && /*#__PURE__*/React__default.createElement(SvgIlu404, null));
65822
65858
  };
65859
+ Illustration.propTypes = {
65860
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
65861
+ current: propTypes.exports.any
65862
+ })]),
65863
+ illustrationName: propTypes.exports.string,
65864
+ isBigType: propTypes.exports.bool,
65865
+ size: propTypes.exports.string
65866
+ };
65823
65867
 
65824
65868
  var _g$3;
65825
65869
  function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
@@ -65992,7 +66036,6 @@ var StyledLogoWrapper = styled$1(Box$1)(function (_ref) {
65992
66036
  '&.red-navy': {
65993
66037
  '#color-1': {
65994
66038
  'rect, path': {
65995
- // fill: theme.mainPallete.primary[color],
65996
66039
  fill: theme.mainPallete.primary.blue
65997
66040
  }
65998
66041
  },
@@ -66052,10 +66095,9 @@ var StyledLogoWrapper = styled$1(Box$1)(function (_ref) {
66052
66095
  }
66053
66096
  };
66054
66097
  });
66055
-
66056
- // @ts-ignore
66057
66098
  var Logo = function Logo(_ref2) {
66058
- var logoName = _ref2.logoName,
66099
+ var _ref2$logoName = _ref2.logoName,
66100
+ logoName = _ref2$logoName === void 0 ? "logo_xelcode" : _ref2$logoName,
66059
66101
  _ref2$color = _ref2.color,
66060
66102
  color = _ref2$color === void 0 ? 'red-navy' : _ref2$color,
66061
66103
  props = _objectWithoutProperties$1(_ref2, _excluded$6);
@@ -66064,8 +66106,53 @@ var Logo = function Logo(_ref2) {
66064
66106
  color: color
66065
66107
  }, props), logoName === 'logo_xelcode' && /*#__PURE__*/React__default.createElement(SvgLogoXelcode, null), logoName === 'logo_xelcode_dashboard' && /*#__PURE__*/React__default.createElement(SvgLogoXelcodeDashboard, null));
66066
66108
  };
66109
+ Logo.propTypes = {
66110
+ color: propTypes.exports.string,
66111
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
66112
+ current: propTypes.exports.any
66113
+ })]),
66114
+ logoName: propTypes.exports.string
66115
+ };
66116
+
66117
+ /**
66118
+ A function that returns a universally unique identifier (uuid).
66119
+ example: 1b83fd69-abe7-468c-bea1-306a8aa1c81d
66120
+ @returns `string` : 32 character uuid (see example)
66121
+ */
66122
+
66123
+ function uuid() {
66124
+ const hashTable = [
66125
+ "a",
66126
+ "b",
66127
+ "c",
66128
+ "d",
66129
+ "e",
66130
+ "f",
66131
+ "0",
66132
+ "1",
66133
+ "2",
66134
+ "3",
66135
+ "4",
66136
+ "5",
66137
+ "6",
66138
+ "7",
66139
+ "8",
66140
+ "9",
66141
+ ];
66142
+ let uuid = [];
66143
+ for (let i = 0; i < 36; i++) {
66144
+ if (i === 8 || i === 13 || i === 18 || i === 23) {
66145
+ uuid[i] = "-";
66146
+ } else {
66147
+ uuid[i] = hashTable[Math.ceil(Math.random() * hashTable.length - 1)];
66148
+ }
66149
+ }
66150
+ return uuid.join("");
66151
+ }
66067
66152
 
66068
- var _excluded$5 = ["buttons"];
66153
+ var uuid_1 = uuid;
66154
+
66155
+ var _excluded$5 = ["buttons", "forwardedRef"];
66069
66156
  var StyledBottomBarWrapper = styled$1(Box$1)(function (_ref) {
66070
66157
  _objectDestructuringEmpty(_ref);
66071
66158
  return {
@@ -66092,8 +66179,12 @@ var StyledBottomBarWrapper = styled$1(Box$1)(function (_ref) {
66092
66179
  });
66093
66180
  var BottomBarComponent = function BottomBarComponent(_ref2) {
66094
66181
  var buttons = _ref2.buttons,
66182
+ _ref2$forwardedRef = _ref2.forwardedRef,
66183
+ forwardedRef = _ref2$forwardedRef === void 0 ? function () {} : _ref2$forwardedRef,
66095
66184
  props = _objectWithoutProperties$1(_ref2, _excluded$5);
66096
- return /*#__PURE__*/React__default.createElement(StyledBottomBarWrapper, props, buttons.map(function (item) {
66185
+ return /*#__PURE__*/React__default.createElement(StyledBottomBarWrapper, _extends$1e({
66186
+ ref: forwardedRef
66187
+ }, props), buttons.map(function (item) {
66097
66188
  var disabled = (item === null || item === void 0 ? void 0 : item.disabled) || false;
66098
66189
  var fluid = (item === null || item === void 0 ? void 0 : item.fluid) || true;
66099
66190
  var onClick = (item === null || item === void 0 ? void 0 : item.onClick) || '';
@@ -66102,6 +66193,7 @@ var BottomBarComponent = function BottomBarComponent(_ref2) {
66102
66193
  var color = (item === null || item === void 0 ? void 0 : item.color) || 'navy-blue';
66103
66194
  var size = (item === null || item === void 0 ? void 0 : item.size) || 'small';
66104
66195
  return /*#__PURE__*/React__default.createElement(CustomButtonComponent, {
66196
+ key: uuid_1(),
66105
66197
  disabled: disabled,
66106
66198
  fluid: fluid,
66107
66199
  onClick: onClick && typeof onClick === "function" ? onClick : undefined,
@@ -66112,6 +66204,20 @@ var BottomBarComponent = function BottomBarComponent(_ref2) {
66112
66204
  });
66113
66205
  }));
66114
66206
  };
66207
+ BottomBarComponent.propTypes = {
66208
+ buttons: propTypes.exports.arrayOf(propTypes.exports.shape({
66209
+ disabled: propTypes.exports.bool,
66210
+ fluid: propTypes.exports.bool,
66211
+ onClick: propTypes.exports.func,
66212
+ type: propTypes.exports.string,
66213
+ text: propTypes.exports.string,
66214
+ color: propTypes.exports.string,
66215
+ size: propTypes.exports.string
66216
+ })),
66217
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
66218
+ current: propTypes.exports.any
66219
+ })])
66220
+ };
66115
66221
 
66116
66222
  var StyledInfoBar = styled$1('div')(function (_ref) {
66117
66223
  _objectDestructuringEmpty(_ref);
@@ -66144,8 +66250,6 @@ var StyledInfoRow = styled$1('div')(function (_ref2) {
66144
66250
  }
66145
66251
  };
66146
66252
  });
66147
-
66148
- // @ts-ignore
66149
66253
  var BottomInfoBar = function BottomInfoBar(_ref3) {
66150
66254
  var _ref3$noLogo = _ref3.noLogo,
66151
66255
  noLogo = _ref3$noLogo === void 0 ? false : _ref3$noLogo,
@@ -66153,8 +66257,12 @@ var BottomInfoBar = function BottomInfoBar(_ref3) {
66153
66257
  leftText = _ref3$leftText === void 0 ? 'left' : _ref3$leftText,
66154
66258
  _ref3$rightText = _ref3.rightText,
66155
66259
  rightText = _ref3$rightText === void 0 ? 'right' : _ref3$rightText,
66156
- onRightTextClick = _ref3.onRightTextClick;
66157
- return /*#__PURE__*/React.createElement(StyledInfoBar, null, /*#__PURE__*/React.createElement(StyledInfoRow, {
66260
+ onRightTextClick = _ref3.onRightTextClick,
66261
+ _ref3$forwardedRef = _ref3.forwardedRef,
66262
+ forwardedRef = _ref3$forwardedRef === void 0 ? function () {} : _ref3$forwardedRef;
66263
+ return /*#__PURE__*/React.createElement(StyledInfoBar, {
66264
+ ref: forwardedRef
66265
+ }, /*#__PURE__*/React.createElement(StyledInfoRow, {
66158
66266
  noLogo: noLogo
66159
66267
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CustomButtonComponent, {
66160
66268
  type: "ghost",
@@ -66175,8 +66283,17 @@ var BottomInfoBar = function BottomInfoBar(_ref3) {
66175
66283
  }
66176
66284
  }))));
66177
66285
  };
66286
+ BottomInfoBar.propTypes = {
66287
+ noLogo: propTypes.exports.bool,
66288
+ leftText: propTypes.exports.string,
66289
+ rightText: propTypes.exports.string,
66290
+ onRightTextClick: propTypes.exports.func,
66291
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
66292
+ current: propTypes.exports.any
66293
+ })])
66294
+ };
66178
66295
 
66179
- var _excluded$4 = ["disabled", "label", "checked", "onChange", "indeterminate", "forwardedRef"];
66296
+ var _excluded$4 = ["checked", "disabled", "label", "onChange", "indeterminate", "forwardedRef"];
66180
66297
  var StyledFormControlLabel$1 = styled$1(FormControlLabel$2)(function (_ref) {
66181
66298
  _objectDestructuringEmpty(_ref);
66182
66299
  return {
@@ -66287,9 +66404,9 @@ var StyledCheckbox = styled$1(Checkbox$2)(function () {
66287
66404
  };
66288
66405
  });
66289
66406
  var CheckboxComponent = function CheckboxComponent(_ref2) {
66290
- var disabled = _ref2.disabled,
66407
+ var checked = _ref2.checked,
66408
+ disabled = _ref2.disabled,
66291
66409
  label = _ref2.label,
66292
- checked = _ref2.checked,
66293
66410
  onChange = _ref2.onChange,
66294
66411
  indeterminate = _ref2.indeterminate,
66295
66412
  forwardedRef = _ref2.forwardedRef,
@@ -66332,6 +66449,16 @@ var CheckboxComponent = function CheckboxComponent(_ref2) {
66332
66449
  label: label
66333
66450
  })));
66334
66451
  };
66452
+ CheckboxComponent.propTypes = {
66453
+ checked: propTypes.exports.bool,
66454
+ disabled: propTypes.exports.bool,
66455
+ label: propTypes.exports.string,
66456
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
66457
+ current: propTypes.exports.any
66458
+ })]),
66459
+ indeterminate: propTypes.exports.bool,
66460
+ onChange: propTypes.exports.func
66461
+ };
66335
66462
 
66336
66463
  var _excluded$3 = ["fluid", "placeholder", "onSearch", "onBlur", "searchText", "onChange", "onChangeSearchText", "forwardedRef"];
66337
66464
  var StyledSearchBarWrapper = styled$1(Box$1)(function (_ref) {
@@ -66346,11 +66473,9 @@ var StyledSearchBarWrapper = styled$1(Box$1)(function (_ref) {
66346
66473
  justifyContent: 'space-between',
66347
66474
  alignItems: 'center',
66348
66475
  marginBottom: '20px',
66349
- // padding: '4px 10px 5px 10px',
66350
66476
  border: '1.5px solid transparent',
66351
66477
  transition: 'background-color 0.2s ease-in-out, border 0.2s ease-in-out',
66352
66478
  padding: '21px',
66353
- //PADDDINGi DO USTALENIA
66354
66479
  borderRadius: '34px',
66355
66480
  fontWeight: 'bold',
66356
66481
  '@media(min-width: 720px)': {
@@ -66517,6 +66642,18 @@ var SearchBarComponent = function SearchBarComponent(_ref3) {
66517
66642
  }
66518
66643
  }));
66519
66644
  };
66645
+ SearchBarComponent.propTypes = {
66646
+ fluid: propTypes.exports.func,
66647
+ placeholder: propTypes.exports.string,
66648
+ onSearch: propTypes.exports.func,
66649
+ onBlur: propTypes.exports.func,
66650
+ searchText: propTypes.exports.string,
66651
+ onChange: propTypes.exports.func,
66652
+ onChangeSearchText: propTypes.exports.func,
66653
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
66654
+ current: propTypes.exports.any
66655
+ })])
66656
+ };
66520
66657
 
66521
66658
  var StyledTableToolbar = styled$1('div')(function (_ref) {
66522
66659
  _objectDestructuringEmpty(_ref);
@@ -89292,9 +89429,6 @@ var StyledCustomTable = styled$1(Box$1)(function (_ref) {
89292
89429
  'button': {
89293
89430
  display: 'none'
89294
89431
  },
89295
- 'div:first-child': {
89296
- // flex: '1',
89297
- },
89298
89432
  'div:nth-child(2)': {
89299
89433
  display: 'none'
89300
89434
  },
@@ -89361,12 +89495,6 @@ var StyledCustomTable = styled$1(Box$1)(function (_ref) {
89361
89495
  },
89362
89496
  'svg': {
89363
89497
  display: 'none'
89364
- },
89365
- '.MuiOutlinedInput-root': {
89366
- borderColor: 'red',
89367
- 'fieldset': {
89368
- // border: 'none',
89369
- }
89370
89498
  }
89371
89499
  }
89372
89500
  },
@@ -89495,7 +89623,6 @@ var TableMobileComponent = function TableMobileComponent(_ref2) {
89495
89623
  sort: false,
89496
89624
  selectableRows: 'none',
89497
89625
  selectableRowsOnClick: false,
89498
- // responsive: 'scrollMaxWidth',
89499
89626
  searchAlwaysOpen: false,
89500
89627
  cellsEditable: false,
89501
89628
  textLabels: {
@@ -89550,6 +89677,15 @@ var TableMobileComponent = function TableMobileComponent(_ref2) {
89550
89677
  options: commonOptions
89551
89678
  }));
89552
89679
  };
89680
+ TableMobileComponent.propTypes = {
89681
+ columns: propTypes.exports.arrayOf(propTypes.exports.string),
89682
+ rows: propTypes.exports.arrayOf(propTypes.exports.shape({
89683
+ value: propTypes.exports.string,
89684
+ editable: propTypes.exports.bool
89685
+ })),
89686
+ includeSearch: propTypes.exports.bool,
89687
+ handleChangeData: propTypes.exports.func
89688
+ };
89553
89689
 
89554
89690
  var StyledModalContainer = styled$1(Box$1)(function (_ref) {
89555
89691
  _objectDestructuringEmpty(_ref);
@@ -89610,10 +89746,7 @@ var StyledModalWrapper = styled$1(Modal$1)(function (_ref2) {
89610
89746
  },
89611
89747
  '.MuiBackdrop-root': {
89612
89748
  display: 'none'
89613
- // opacity: 0,
89614
- // backgroundColor: 'rgba(41, 48, 114, 0.35)'
89615
89749
  },
89616
-
89617
89750
  'svg': {
89618
89751
  width: '115px',
89619
89752
  height: '115px',
@@ -89688,30 +89821,17 @@ var CustomModal = function CustomModal(_ref6) {
89688
89821
  type = _ref6.type,
89689
89822
  handleCloseModal = _ref6.handleCloseModal,
89690
89823
  handleActionButton = _ref6.handleActionButton,
89691
- isModalOpen = _ref6.isModalOpen;
89692
- // const [open, setOpen] = React.useState(isModalOpen);
89693
- // const handleOpen = () => setOpen(true);
89694
- // const handleClose = () => setOpen(false);
89695
-
89696
- // const showIcon = (type) => {
89697
- // if( type==='complete') {
89698
- // return <Illustration illustrationName={'ilu_status_change'} size='115'/>
89699
- // } else if (type === 'error') {
89700
- // return <Illustration illustrationName={'ilu_status_change'} size='big'/>
89701
- // } else if (type === 'info') {
89702
- // return <Illustration illustrationName={'ilu_status_change'} size='big'/>
89703
- // } else return
89704
- // }
89824
+ isModalOpen = _ref6.isModalOpen,
89825
+ forwardedRef = _ref6.forwardedRef;
89705
89826
  var isScrollableTextModal = type === 'text-scroll';
89706
89827
  return /*#__PURE__*/React.createElement(StyledModalContainer, {
89828
+ ref: forwardedRef,
89707
89829
  className: !isModalOpen ? 'hidden' : ''
89708
89830
  }, /*#__PURE__*/React.createElement(StyledModalWrapper, {
89709
89831
  className: isScrollableTextModal ? 'scrollable' : '',
89710
89832
  open: isModalOpen,
89711
89833
  onClose: handleCloseModal,
89712
89834
  isBottomTextButton: bottomButtonLabel
89713
- // aria-labelledby="modal-modal-title"
89714
- // aria-describedby="modal-modal-description"
89715
89835
  }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Illustration, {
89716
89836
  illustrationName: 'ilu_status_change',
89717
89837
  size: "small"
@@ -89751,6 +89871,20 @@ var CustomModal = function CustomModal(_ref6) {
89751
89871
  size: 'small'
89752
89872
  })))));
89753
89873
  };
89874
+ CustomModal.propTypes = {
89875
+ actionButtonLabel: propTypes.exports.string,
89876
+ bottomButtonLabel: propTypes.exports.string,
89877
+ closeButtonLabel: propTypes.exports.string,
89878
+ description: propTypes.exports.string,
89879
+ handleCloseModal: propTypes.exports.func,
89880
+ handleActionButton: propTypes.exports.func,
89881
+ isModalOpen: propTypes.exports.bool,
89882
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
89883
+ current: propTypes.exports.any
89884
+ })]),
89885
+ title: propTypes.exports.string,
89886
+ type: propTypes.exports.string
89887
+ };
89754
89888
 
89755
89889
  var StyledModuleTileWrapper = styled$1(Box$1)(function (_ref) {
89756
89890
  var fluid = _ref.fluid;
@@ -89783,11 +89917,16 @@ var StyledModuleTileWrapper = styled$1(Box$1)(function (_ref) {
89783
89917
  };
89784
89918
  });
89785
89919
  var ModuleTile = function ModuleTile(_ref2) {
89786
- var fluid = _ref2.fluid,
89787
- illustrationName = _ref2.illustrationName,
89920
+ var _ref2$fluid = _ref2.fluid,
89921
+ fluid = _ref2$fluid === void 0 ? false : _ref2$fluid,
89922
+ _ref2$illustrationNam = _ref2.illustrationName,
89923
+ illustrationName = _ref2$illustrationNam === void 0 ? 'ilu_availability_by_item' : _ref2$illustrationNam,
89788
89924
  header = _ref2.header,
89789
- onClick = _ref2.onClick;
89925
+ onClick = _ref2.onClick,
89926
+ _ref2$forwardedRef = _ref2.forwardedRef,
89927
+ forwardedRef = _ref2$forwardedRef === void 0 ? function () {} : _ref2$forwardedRef;
89790
89928
  return /*#__PURE__*/React__default.createElement(StyledModuleTileWrapper, {
89929
+ ref: forwardedRef,
89791
89930
  fluid: fluid,
89792
89931
  onClick: onClick
89793
89932
  }, /*#__PURE__*/React__default.createElement(Illustration, {
@@ -89797,6 +89936,15 @@ var ModuleTile = function ModuleTile(_ref2) {
89797
89936
  type: 'module-tile-header'
89798
89937
  }));
89799
89938
  };
89939
+ ModuleTile.propTypes = {
89940
+ fluid: propTypes.exports.bool,
89941
+ header: propTypes.exports.string,
89942
+ illustrationName: propTypes.exports.string,
89943
+ onClick: propTypes.exports.func,
89944
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
89945
+ current: propTypes.exports.any
89946
+ })])
89947
+ };
89800
89948
 
89801
89949
  var StyledStepperContainer = styled$1(Box$1)(function (_ref) {
89802
89950
  _objectDestructuringEmpty(_ref);
@@ -89831,21 +89979,10 @@ var StyledLabelAndIconWrapper = styled$1(Box$1)(function () {
89831
89979
  paddingRight: '10px'
89832
89980
  };
89833
89981
  });
89834
- styled$1(Box$1)(function (_ref2) {
89835
- _objectDestructuringEmpty(_ref2);
89836
- return {
89837
- width: '100%',
89838
- display: 'flex',
89839
- justifyContent: 'space-between',
89840
- 'button:nth-child(2)': {
89841
- marginLeft: 10
89842
- }
89843
- };
89844
- });
89845
89982
  var StyledStepper = styled$1(function (props) {
89846
89983
  return /*#__PURE__*/React__default.createElement(Stepper$1, props);
89847
- })(function (_ref3) {
89848
- var numberOfSteps = _ref3.numberOfSteps;
89984
+ })(function (_ref2) {
89985
+ var numberOfSteps = _ref2.numberOfSteps;
89849
89986
  return {
89850
89987
  '.MuiStepConnector-root': {
89851
89988
  width: '4px',
@@ -89880,8 +90017,8 @@ var StyledStepper = styled$1(function (props) {
89880
90017
  });
89881
90018
  var StyledStep = styled$1(function (props) {
89882
90019
  return /*#__PURE__*/React__default.createElement(Step$1, props);
89883
- })(function (_ref4) {
89884
- var completed = _ref4.completed;
90020
+ })(function (_ref3) {
90021
+ var completed = _ref3.completed;
89885
90022
  return {
89886
90023
  border: 'none',
89887
90024
  backgroundColor: completed ? theme.mainPallete.secondary.specialGreen : '#D8E1FA',
@@ -89890,35 +90027,22 @@ var StyledStep = styled$1(function (props) {
89890
90027
  }
89891
90028
  };
89892
90029
  });
89893
- var CustomStepper = function CustomStepper(_ref5) {
89894
- var steps = _ref5.steps,
89895
- label = _ref5.label,
89896
- withIcon = _ref5.withIcon,
89897
- currentStep = _ref5.currentStep;
89898
- _ref5.handleNextStep;
89899
- _ref5.handlePreviousStep;
89900
- _ref5.handleChangeStep;
89901
- steps.indexOf(currentStep);
90030
+ var CustomStepper = function CustomStepper(_ref4) {
90031
+ var steps = _ref4.steps,
90032
+ label = _ref4.label,
90033
+ withIcon = _ref4.withIcon,
90034
+ currentStep = _ref4.currentStep;
89902
90035
  var _useState = useState(currentStep),
89903
90036
  _useState2 = _slicedToArray$a(_useState, 2),
89904
- activeStep = _useState2[0],
89905
- setActiveStep = _useState2[1];
90037
+ activeStep = _useState2[0];
90038
+ _useState2[1];
89906
90039
  var _useState3 = useState({}),
89907
90040
  _useState4 = _slicedToArray$a(_useState3, 2),
89908
90041
  completed = _useState4[0];
89909
90042
  _useState4[1];
89910
- // alert('currentStep ' + currentStep);
89911
- // alert('currentStepIndex ' + currentStepIndex);
89912
90043
  var totalSteps = steps.length;
89913
90044
  var completedSteps = Object.keys(completed).length;
89914
90045
  var allStepsCompleted = completedSteps === totalSteps;
89915
- var handleSteps = function handleSteps(steps, currentStep) {
89916
- var currentStepIndex = steps.indexOf(currentStep);
89917
- setActiveStep(currentStepIndex);
89918
- };
89919
- useEffect(function () {
89920
- handleSteps(steps, currentStep);
89921
- }, [currentStep]);
89922
90046
  return /*#__PURE__*/React__default.createElement(StyledStepperContainer, null, /*#__PURE__*/React__default.createElement(Box$1, {
89923
90047
  sx: {
89924
90048
  width: '100%'
@@ -89940,6 +90064,15 @@ var CustomStepper = function CustomStepper(_ref5) {
89940
90064
  });
89941
90065
  }))));
89942
90066
  };
90067
+ CustomStepper.propTypes = {
90068
+ currentStep: propTypes.exports.string,
90069
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
90070
+ current: propTypes.exports.any
90071
+ })]),
90072
+ label: propTypes.exports.string,
90073
+ steps: propTypes.exports.arrayOf(propTypes.exports.string),
90074
+ withIcon: propTypes.exports.bool
90075
+ };
89943
90076
 
89944
90077
  var _g$1;
89945
90078
  function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
@@ -90006,9 +90139,6 @@ var _excluded$2 = ["value", "label"];
90006
90139
  var StyledFormControlLabel = styled$1(FormControlLabel$2)(function (_ref) {
90007
90140
  _objectDestructuringEmpty(_ref);
90008
90141
  return {
90009
- // '.MuiFormControlLabel-label': checked && {
90010
- // color: theme.palette.primary.main,
90011
- // },
90012
90142
  padding: 0,
90013
90143
  boxSizing: 'border-box',
90014
90144
  marginBottom: '30px',
@@ -90126,44 +90256,18 @@ var RadioGroupComponent = function RadioGroupComponent(_ref2) {
90126
90256
  defaultValue: defaultValue
90127
90257
  }, renderRadioOptions(options));
90128
90258
  };
90129
-
90130
- /**
90131
- A function that returns a universally unique identifier (uuid).
90132
- example: 1b83fd69-abe7-468c-bea1-306a8aa1c81d
90133
- @returns `string` : 32 character uuid (see example)
90134
- */
90135
-
90136
- function uuid() {
90137
- const hashTable = [
90138
- "a",
90139
- "b",
90140
- "c",
90141
- "d",
90142
- "e",
90143
- "f",
90144
- "0",
90145
- "1",
90146
- "2",
90147
- "3",
90148
- "4",
90149
- "5",
90150
- "6",
90151
- "7",
90152
- "8",
90153
- "9",
90154
- ];
90155
- let uuid = [];
90156
- for (let i = 0; i < 36; i++) {
90157
- if (i === 8 || i === 13 || i === 18 || i === 23) {
90158
- uuid[i] = "-";
90159
- } else {
90160
- uuid[i] = hashTable[Math.ceil(Math.random() * hashTable.length - 1)];
90161
- }
90162
- }
90163
- return uuid.join("");
90164
- }
90165
-
90166
- var uuid_1 = uuid;
90259
+ RadioGroupComponent.propTypes = {
90260
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
90261
+ current: propTypes.exports.any
90262
+ })]),
90263
+ onChange: propTypes.exports.func,
90264
+ options: propTypes.exports.arrayOf(propTypes.exports.shape({
90265
+ disabled: propTypes.exports.bool,
90266
+ label: propTypes.exports.string,
90267
+ value: propTypes.exports.string
90268
+ })),
90269
+ value: propTypes.exports.string
90270
+ };
90167
90271
 
90168
90272
  var StyledMenu = styled$1('div')(function (_ref) {
90169
90273
  var variant = _ref.variant;