@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.cjs.js CHANGED
@@ -19231,6 +19231,14 @@ var SwitchComponent = function SwitchComponent(_ref) {
19231
19231
  label: label
19232
19232
  })));
19233
19233
  };
19234
+ SwitchComponent.propTypes = {
19235
+ checked: propTypes.exports.bool,
19236
+ label: propTypes.exports.string,
19237
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
19238
+ current: propTypes.exports.any
19239
+ })]),
19240
+ onChange: propTypes.exports.func
19241
+ };
19234
19242
 
19235
19243
  function GlobalStyles$2(props) {
19236
19244
  return /*#__PURE__*/jsxRuntimeExports.jsx(GlobalStyles$3, _extends$1d({}, props, {
@@ -27815,6 +27823,33 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
27815
27823
  } : void 0;
27816
27824
  var Autocomplete$1 = Autocomplete;
27817
27825
 
27826
+ const defaultTheme = createTheme();
27827
+ const Box = createBox({
27828
+ defaultTheme,
27829
+ defaultClassName: 'MuiBox-root',
27830
+ generateClassName: ClassNameGenerator$1.generate
27831
+ });
27832
+ process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
27833
+ // ----------------------------- Warning --------------------------------
27834
+ // | These PropTypes are generated from the TypeScript type definitions |
27835
+ // | To update them edit the d.ts file and run "yarn proptypes" |
27836
+ // ----------------------------------------------------------------------
27837
+ /**
27838
+ * @ignore
27839
+ */
27840
+ children: propTypes.exports.node,
27841
+ /**
27842
+ * The component used for the root node.
27843
+ * Either a string to use a HTML element or a component.
27844
+ */
27845
+ component: propTypes.exports.elementType,
27846
+ /**
27847
+ * The system prop that allows defining system overrides as well as additional CSS styles.
27848
+ */
27849
+ 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])
27850
+ } : void 0;
27851
+ var Box$1 = Box;
27852
+
27818
27853
  var _path$F, _path2$e, _path3$6;
27819
27854
  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); }
27820
27855
  var SvgIconWfSearch = function SvgIconWfSearch(props) {
@@ -29013,33 +29048,6 @@ var SvgUpdateIcon = function SvgUpdateIcon(props) {
29013
29048
  }))));
29014
29049
  };
29015
29050
 
29016
- const defaultTheme = createTheme();
29017
- const Box = createBox({
29018
- defaultTheme,
29019
- defaultClassName: 'MuiBox-root',
29020
- generateClassName: ClassNameGenerator$1.generate
29021
- });
29022
- process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
29023
- // ----------------------------- Warning --------------------------------
29024
- // | These PropTypes are generated from the TypeScript type definitions |
29025
- // | To update them edit the d.ts file and run "yarn proptypes" |
29026
- // ----------------------------------------------------------------------
29027
- /**
29028
- * @ignore
29029
- */
29030
- children: propTypes.exports.node,
29031
- /**
29032
- * The component used for the root node.
29033
- * Either a string to use a HTML element or a component.
29034
- */
29035
- component: propTypes.exports.elementType,
29036
- /**
29037
- * The system prop that allows defining system overrides as well as additional CSS styles.
29038
- */
29039
- 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])
29040
- } : void 0;
29041
- var Box$1 = Box;
29042
-
29043
29051
  var _g$x;
29044
29052
  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); }
29045
29053
  var SvgCheckboxDefault = function SvgCheckboxDefault(props) {
@@ -29108,7 +29116,7 @@ var SvgChecbkoxIndeterminate = function SvgChecbkoxIndeterminate(props) {
29108
29116
  }))));
29109
29117
  };
29110
29118
 
29111
- var _excluded$Y = ["iconName", "color", "size", "forwardedRef"];
29119
+ var _excluded$Y = ["color", "iconName", "size", "forwardedRef"];
29112
29120
  var StyledIconWrapper$1 = styled$1(Box$1)(function (_ref) {
29113
29121
  var iconName = _ref.iconName;
29114
29122
  return {
@@ -29269,10 +29277,10 @@ var StyledIconWrapper$1 = styled$1(Box$1)(function (_ref) {
29269
29277
  };
29270
29278
  });
29271
29279
  var Icon = function Icon(_ref2) {
29272
- var _ref2$iconName = _ref2.iconName,
29273
- iconName = _ref2$iconName === void 0 ? '' : _ref2$iconName,
29274
- _ref2$color = _ref2.color,
29280
+ var _ref2$color = _ref2.color,
29275
29281
  color = _ref2$color === void 0 ? 'red-navy' : _ref2$color,
29282
+ _ref2$iconName = _ref2.iconName,
29283
+ iconName = _ref2$iconName === void 0 ? 'icon_wf_download' : _ref2$iconName,
29276
29284
  _ref2$size = _ref2.size,
29277
29285
  size = _ref2$size === void 0 ? 'responsive' : _ref2$size,
29278
29286
  forwardedRef = _ref2.forwardedRef,
@@ -29284,6 +29292,14 @@ var Icon = function Icon(_ref2) {
29284
29292
  iconName: iconName
29285
29293
  }), iconName === 'icon_wf_search' && /*#__PURE__*/React.createElement(SvgIconWfSearch, null), iconName === 'icon_wf_locked' && /*#__PURE__*/React.createElement(SvgIconWfLocked, null), iconName === 'icon_wf_download' && /*#__PURE__*/React.createElement(SvgIconWfDownload, null), iconName === 'icon_wf_remove' && /*#__PURE__*/React.createElement(SvgIconWfRemove, null), iconName === 'icon_wf_logout' && /*#__PURE__*/React.createElement(SvgIconWfLogout, null), iconName === 'icon_wf_edit' && /*#__PURE__*/React.createElement(SvgIconWfEdit, null), iconName === 'icon_wf_settings_or_filter' && /*#__PURE__*/React.createElement(SvgIconWfSettingsOrFilter, null), iconName === 'icon_wf_barcode_1d' && /*#__PURE__*/React.createElement(SvgIconWfBarcode1D, null), iconName === 'icon_wf_barcode_2d' && /*#__PURE__*/React.createElement(SvgIconWfBarcode2D, null), iconName === 'icon_wf_barcode_printer' && /*#__PURE__*/React.createElement(SvgIconWfBarcodePrinter, null), iconName === 'icon_wf_box' && /*#__PURE__*/React.createElement(SvgIconWfBox, null), iconName === 'icon_wf_calculator' && /*#__PURE__*/React.createElement(SvgIconWfCalculator, null), iconName === 'icon_wf_calendar' && /*#__PURE__*/React.createElement(SvgIconWfCalendar, null), iconName === 'icon_wf_car' && /*#__PURE__*/React.createElement(SvgIconWfCar, null), iconName === 'icon_wf_forklift' && /*#__PURE__*/React.createElement(SvgIconWfForklift, null), iconName === 'icon_wf_invoice' && /*#__PURE__*/React.createElement(SvgIconWfInvoice, null), iconName === 'icon_wf_keyboard' && /*#__PURE__*/React.createElement(SvgIconWfKeyboard, null), iconName === 'icon_wf_logs' && /*#__PURE__*/React.createElement(SvgIconWfLogs, null), iconName === 'icon_wf_no_barcode_printer' && /*#__PURE__*/React.createElement(SvgIconWfNoBarcodePrinter, null), iconName === 'icon_wf_no_scan' && /*#__PURE__*/React.createElement(SvgIconWfNoScan, null), iconName === 'icon_wf_pallet' && /*#__PURE__*/React.createElement(SvgIconWfPallet, null), iconName === 'icon_wf_pin' && /*#__PURE__*/React.createElement(SvgIconWfPin, null), iconName === 'icon_wf_scan' && /*#__PURE__*/React.createElement(SvgIconWfScan, null), iconName === 'icon_wf_send' && /*#__PURE__*/React.createElement(SvgIconWfSend, null), iconName === 'icon_wf_status_ksef' && /*#__PURE__*/React.createElement(SvgIconWfStatusKsef, null), iconName === 'icon_wf_stop' && /*#__PURE__*/React.createElement(SvgIconWfStop, null), iconName === 'icon_wf_unpin' && /*#__PURE__*/React.createElement(SvgIconWfUnpin, null), iconName === 'icon_wf_refresh' && /*#__PURE__*/React.createElement(SvgIconWfRefresh, null), iconName === 'icon_ui_close' && /*#__PURE__*/React.createElement(SvgIconUiClose, null), iconName === 'icon_ui_chevron_up' && /*#__PURE__*/React.createElement(SvgIconUiChevronUp, null), iconName === 'icon_ui_chevron_down' && /*#__PURE__*/React.createElement(SvgIconUiChevronDown, null), iconName === 'icon_ui_chevron_right' && /*#__PURE__*/React.createElement(SvgIconUiChevronRight, null), iconName === 'icon_ui_chevron_left' && /*#__PURE__*/React.createElement(SvgIconUiChevronLeft, null), iconName === 'icon_sp_check_mark' && /*#__PURE__*/React.createElement(SvgIconSpCheckMark, null), iconName === 'icon_sp_warning' && /*#__PURE__*/React.createElement(SvgIconSpWarning, null), iconName === 'icon_sp_info' && /*#__PURE__*/React.createElement(SvgIconSpInfo, null), iconName === 'icon_sp_info_2' && /*#__PURE__*/React.createElement(SvgIconSpInfo2, null), iconName === 'icon_burger_menu' && /*#__PURE__*/React.createElement(SvgMenuBurger, null), iconName === 'icon_update' && /*#__PURE__*/React.createElement(SvgUpdateIcon, null), iconName === 'icon_checkbox_default' && /*#__PURE__*/React.createElement(SvgCheckboxDefault, null), iconName === 'icon_checkbox_checked' && /*#__PURE__*/React.createElement(SvgCheckboxChecked, null), iconName === 'icon_checkbox_indeterminate' && /*#__PURE__*/React.createElement(SvgChecbkoxIndeterminate, null));
29286
29294
  };
29295
+ Icon.propTypes = {
29296
+ color: propTypes.exports.string,
29297
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
29298
+ current: propTypes.exports.any
29299
+ })]),
29300
+ iconName: propTypes.exports.string,
29301
+ size: propTypes.exports.string
29302
+ };
29287
29303
 
29288
29304
  var _excluded$X = ["id", "disabled", "label", "withRefresh", "fluid", "placeholder", "onRefreshClick", "options", "value", "onChange", "forwardedRef", "noOptionsText"];
29289
29305
  var StyledAutocomplete$1 = styled$1(Autocomplete$1)(function (_ref) {
@@ -52554,8 +52570,6 @@ var StyledTypography = styled$1(Typography$2)(function (_ref) {
52554
52570
  }
52555
52571
  };
52556
52572
  });
52557
-
52558
- // @ts-ignore
52559
52573
  var TypographyComponent = function TypographyComponent(_ref2) {
52560
52574
  var text = _ref2.text,
52561
52575
  type = _ref2.type,
@@ -52569,6 +52583,13 @@ var TypographyComponent = function TypographyComponent(_ref2) {
52569
52583
  className: typeClassName
52570
52584
  }), text);
52571
52585
  };
52586
+ TypographyComponent.propTypes = {
52587
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
52588
+ current: propTypes.exports.any
52589
+ })]),
52590
+ text: propTypes.exports.string,
52591
+ type: propTypes.exports.string
52592
+ };
52572
52593
 
52573
52594
  var StyledAppTileWrapper = styled$1(Box$1)(function (_ref) {
52574
52595
  _objectDestructuringEmpty(_ref);
@@ -52618,9 +52639,11 @@ var AppTileComponent = function AppTileComponent(_ref3) {
52618
52639
  _ref3$illustrationNam = _ref3.illustrationName,
52619
52640
  illustrationName = _ref3$illustrationNam === void 0 ? 'ilu_availability_by_item' : _ref3$illustrationNam,
52620
52641
  _ref3$forwardedRef = _ref3.forwardedRef,
52621
- forwardedRef = _ref3$forwardedRef === void 0 ? function () {} : _ref3$forwardedRef;
52642
+ forwardedRef = _ref3$forwardedRef === void 0 ? function () {} : _ref3$forwardedRef,
52643
+ onClick = _ref3.onClick;
52622
52644
  return /*#__PURE__*/React.createElement(StyledAppTileWrapper, {
52623
- ref: forwardedRef
52645
+ ref: forwardedRef,
52646
+ onClick: onClick
52624
52647
  }, /*#__PURE__*/React.createElement(Illustration, {
52625
52648
  illustrationName: illustrationName,
52626
52649
  color: '',
@@ -52638,7 +52661,7 @@ var AppTileComponent = function AppTileComponent(_ref3) {
52638
52661
  };
52639
52662
  AppTileComponent.propTypes = {
52640
52663
  description: propTypes.exports.string,
52641
- header: propTypes.exports.bool,
52664
+ header: propTypes.exports.string,
52642
52665
  illustrationName: propTypes.exports.string,
52643
52666
  onClick: propTypes.exports.func,
52644
52667
  forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
@@ -52651,18 +52674,14 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
52651
52674
  var fluid = _ref.fluid;
52652
52675
  return {
52653
52676
  width: fluid ? '100%' : 'auto',
52654
- // fontSize: '16px',
52655
- // lineHeight: '15px',
52656
52677
  borderRadius: '24px',
52657
52678
  fontWeight: 'bold',
52658
52679
  boxShadow: 'none',
52659
- // padding: props => props.size === 'big' ? '34px 60px' : '4px 24px',
52660
52680
  border: '2px solid #293072',
52661
52681
  backgroundColor: theme.mainPallete.primary.white,
52662
52682
  color: theme.mainPallete.primary.blue,
52663
52683
  textTransform: 'uppercase',
52664
52684
  fontFamily: ['"Barlow", sans-serif'],
52665
- // backgroundColor: theme.mainPallete.primary.red,
52666
52685
  '&:hover': {
52667
52686
  boxShadow: 'none'
52668
52687
  },
@@ -52832,7 +52851,6 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
52832
52851
  },
52833
52852
  '&.big': {
52834
52853
  padding: '21px',
52835
- //PADDDINGi DO USTALENIA
52836
52854
  fontSize: '16px',
52837
52855
  lineHeight: '15px',
52838
52856
  borderRadius: '31px',
@@ -52852,7 +52870,6 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
52852
52870
  },
52853
52871
  '&.small': {
52854
52872
  padding: '14px 21px',
52855
- //PADDDINGi DO USTALENIA
52856
52873
  fontSize: '16px',
52857
52874
  lineHeight: '15px',
52858
52875
  borderRadius: '24px',
@@ -52872,8 +52889,6 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
52872
52889
  }
52873
52890
  };
52874
52891
  });
52875
-
52876
- // @ts-ignore
52877
52892
  var CustomButtonComponent = function CustomButtonComponent(_ref2) {
52878
52893
  var type = _ref2.type,
52879
52894
  text = _ref2.text,
@@ -52887,7 +52902,6 @@ var CustomButtonComponent = function CustomButtonComponent(_ref2) {
52887
52902
  var colorClassName = disabled ? 'grey' : color ? color : 'navy-blue'; // navy-blue / red / black / grey / special-green
52888
52903
  var typeClassName = type || 'primary'; // primary / secondary / ghost
52889
52904
  var sizeClassName = size || 'big'; // null / big / small
52890
- // const behaviourClassName = behaviour || '';
52891
52905
  var finalClassName = "".concat(typeClassName, " ").concat(colorClassName, " ").concat(sizeClassName);
52892
52906
  return /*#__PURE__*/React__namespace.createElement(CustomButton, _extends$1e({
52893
52907
  disabled: disabled,
@@ -52899,8 +52913,20 @@ var CustomButtonComponent = function CustomButtonComponent(_ref2) {
52899
52913
  ref: forwardedRef
52900
52914
  }, props), text);
52901
52915
  };
52916
+ CustomButtonComponent.propTypes = {
52917
+ color: propTypes.exports.string,
52918
+ disabled: propTypes.exports.bool,
52919
+ fluid: propTypes.exports.bool,
52920
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
52921
+ current: propTypes.exports.any
52922
+ })]),
52923
+ onClick: propTypes.exports.func,
52924
+ size: propTypes.exports.string,
52925
+ type: propTypes.exports.string,
52926
+ text: propTypes.exports.string
52927
+ };
52902
52928
 
52903
- var _excluded$7 = ["text", "type", "icon", "color", "fluid", "onClick", "forwardedRef"];
52929
+ var _excluded$7 = ["color", "disabled", "fluid", "forwardedRef", "icon", "onClick", "text", "type"];
52904
52930
  var CustomIconButton = styled$1(Button$2)(function (_ref) {
52905
52931
  var fluid = _ref.fluid;
52906
52932
  return {
@@ -52912,7 +52938,6 @@ var CustomIconButton = styled$1(Button$2)(function (_ref) {
52912
52938
  textTransform: 'uppercase',
52913
52939
  fontFamily: ['"Barlow", sans-serif'],
52914
52940
  padding: '4px 25px 4px 21px',
52915
- //PADDDINGi DO USTALENIA
52916
52941
  fontSize: '16px',
52917
52942
  lineHeight: '15px',
52918
52943
  '@media(min-width: 1024px)': {
@@ -52921,7 +52946,6 @@ var CustomIconButton = styled$1(Button$2)(function (_ref) {
52921
52946
  lineHeight: '16px',
52922
52947
  borderRadius: '24px'
52923
52948
  },
52924
- // backgroundColor: theme.mainPallete.primary.red,
52925
52949
  '&:hover': {
52926
52950
  boxShadow: 'none',
52927
52951
  'img': {
@@ -53094,23 +53118,22 @@ var CustomIconButton = styled$1(Button$2)(function (_ref) {
53094
53118
  };
53095
53119
  });
53096
53120
  var IconButtonComponent = function IconButtonComponent(_ref2) {
53097
- var text = _ref2.text,
53098
- type = _ref2.type,
53099
- icon = _ref2.icon,
53100
- color = _ref2.color,
53121
+ var color = _ref2.color,
53122
+ disabled = _ref2.disabled,
53101
53123
  fluid = _ref2.fluid,
53102
- onClick = _ref2.onClick,
53103
53124
  forwardedRef = _ref2.forwardedRef,
53125
+ _ref2$icon = _ref2.icon,
53126
+ icon = _ref2$icon === void 0 ? 'icon_wf_download' : _ref2$icon,
53127
+ onClick = _ref2.onClick,
53128
+ text = _ref2.text,
53129
+ type = _ref2.type,
53104
53130
  props = _objectWithoutProperties$1(_ref2, _excluded$7);
53105
- var colorClassName = color || '';
53106
- var typeClassName = type || '';
53107
- // const resolutionClassName = resolution === '480x800' ? 'regular' : resolution === '720x1280' ? 'big' :resolution === '1024x768/1440x960/1920x1080' ? 'small' : ''
53108
- // const widthClassName = width === '100%' ? 'width100' : width === '50%' ? 'width50' : width === '33%' ? 'width33' : '';
53131
+ var colorClassName = color || 'navy-blue';
53132
+ var typeClassName = type || 'primary';
53109
53133
  var finalClassName = "".concat(typeClassName, " ").concat(colorClassName);
53110
- // const iconVariant = icon === 'download' ? IconDownloadGrey : IconDownloadWhite;
53111
- // const iconVariant = `${type} ${icon} ${colorClassName}`;
53112
53134
  return /*#__PURE__*/React__namespace.createElement(CustomIconButton, _extends$1e({}, props, {
53113
53135
  onClick: onClick,
53136
+ disabled: disabled,
53114
53137
  fluid: fluid,
53115
53138
  ref: forwardedRef,
53116
53139
  startIcon: /*#__PURE__*/React__namespace.createElement(Icon, {
@@ -53122,6 +53145,19 @@ var IconButtonComponent = function IconButtonComponent(_ref2) {
53122
53145
  disableRipple: true
53123
53146
  }), text);
53124
53147
  };
53148
+ IconButtonComponent.propTypes = {
53149
+ color: propTypes.exports.string,
53150
+ disabled: propTypes.exports.bool,
53151
+ icon: propTypes.exports.string,
53152
+ fluid: propTypes.exports.bool,
53153
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
53154
+ current: propTypes.exports.any
53155
+ })]),
53156
+ onClick: propTypes.exports.func,
53157
+ size: propTypes.exports.string,
53158
+ type: propTypes.exports.string,
53159
+ text: propTypes.exports.string
53160
+ };
53125
53161
 
53126
53162
  var _g$v;
53127
53163
  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); }
@@ -65831,15 +65867,23 @@ var StyledIllustrationWrapper = styled$1(Box$1)(function (_ref) {
65831
65867
  });
65832
65868
  var Illustration = function Illustration(_ref2) {
65833
65869
  var illustrationName = _ref2.illustrationName,
65834
- color = _ref2.color,
65835
65870
  size = _ref2.size,
65836
- isBigType = _ref2.isBigType;
65871
+ isBigType = _ref2.isBigType,
65872
+ forwardedRef = _ref2.forwardedRef;
65837
65873
  var bigTypeClassName = isBigType ? 'big-type' : '';
65838
65874
  return /*#__PURE__*/React.createElement(StyledIllustrationWrapper, {
65839
- className: "".concat(color, " ").concat(size, " ").concat(bigTypeClassName),
65840
- color: color
65875
+ ref: forwardedRef,
65876
+ className: "".concat(size, " ").concat(bigTypeClassName)
65841
65877
  }, illustrationName === 'ilu_availability_by_item' && /*#__PURE__*/React.createElement(SvgIluAvailabilityByItem, null), illustrationName === 'ilu_add_goods_to_pallet' && /*#__PURE__*/React.createElement(SvgIluAddGoodsToPallet, null), illustrationName === 'ilu_availability_by_index' && /*#__PURE__*/React.createElement(SvgIluAvailabilityByIndex, null), illustrationName === 'ilu_availability_by_location' && /*#__PURE__*/React.createElement(SvgIluAvailabilityByLocation, null), illustrationName === 'ilu_blocked_pallet' && /*#__PURE__*/React.createElement(SvgIluBlockedPallet, null), illustrationName === 'ilu_finished_product' && /*#__PURE__*/React.createElement(SvgIluFinishedProduct, null), illustrationName === 'ilu_from_pallet_to_rack' && /*#__PURE__*/React.createElement(SvgIluFromPalletToRack, null), illustrationName === 'ilu_internal_logistic' && /*#__PURE__*/React.createElement(SvgIluInternalLogistic, null), illustrationName === 'ilu_inventory' && /*#__PURE__*/React.createElement(SvgIluInventory, null), illustrationName === 'ilu_inventory_transfer' && /*#__PURE__*/React.createElement(SvgIluInventoryTransfer, null), illustrationName === 'ilu_labeling_of_pallets' && /*#__PURE__*/React.createElement(SvgIluLabelingOfPallets, null), illustrationName === 'ilu_loading_car' && /*#__PURE__*/React.createElement(SvgIluLoadingCar, null), illustrationName === 'ilu_manual_transfer' && /*#__PURE__*/React.createElement(SvgIluManualTransfer, null), illustrationName === 'ilu_move_goods_from_pallet_to_another' && /*#__PURE__*/React.createElement(SvgIluMoveGoodsFromPalletToAnother, null), illustrationName === 'ilu_printing_label' && /*#__PURE__*/React.createElement(SvgIluPrintingLabel, null), illustrationName === 'ilu_production' && /*#__PURE__*/React.createElement(SvgIluProduction, null), illustrationName === 'ilu_quality_control' && /*#__PURE__*/React.createElement(SvgIluQualityControl, null), illustrationName === 'ilu_release_of_goods_from_warehouse' && /*#__PURE__*/React.createElement(SvgIluReleaseOfGoodsFromWarehouse, null), illustrationName === 'ilu_remove_goods_from_pallet' && /*#__PURE__*/React.createElement(SvgIluRemoveGoodsFromPallet, null), illustrationName === 'ilu_reprinting_label' && /*#__PURE__*/React.createElement(SvgIluReprintingLabel, null), illustrationName === 'ilu_return_from_customers' && /*#__PURE__*/React.createElement(SvgIluReturnFromCustomers, null), illustrationName === 'ilu_sale' && /*#__PURE__*/React.createElement(SvgIluSale, null), illustrationName === 'ilu_shift_pallet' && /*#__PURE__*/React.createElement(SvgIluShiftPallet, null), illustrationName === 'ilu_shopping' && /*#__PURE__*/React.createElement(SvgIluShopping, null), illustrationName === 'ilu_status_change' && /*#__PURE__*/React.createElement(SvgIluStatusChange, null), illustrationName === 'ilu_storage_field' && /*#__PURE__*/React.createElement(SvgIluStorageField, null), illustrationName === 'ilu_warehouse_loading' && /*#__PURE__*/React.createElement(SvgIluWarehouseLoading, null), illustrationName === 'ilu_moving_box_to_another_shelf' && /*#__PURE__*/React.createElement(SvgMovingBoxToAnotherShelf, null), illustrationName === 'ilu_search' && /*#__PURE__*/React.createElement(SvgIluSearch, null), illustrationName === 'ilu_404' && /*#__PURE__*/React.createElement(SvgIlu404, null));
65842
65878
  };
65879
+ Illustration.propTypes = {
65880
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
65881
+ current: propTypes.exports.any
65882
+ })]),
65883
+ illustrationName: propTypes.exports.string,
65884
+ isBigType: propTypes.exports.bool,
65885
+ size: propTypes.exports.string
65886
+ };
65843
65887
 
65844
65888
  var _g$3;
65845
65889
  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); }
@@ -66012,7 +66056,6 @@ var StyledLogoWrapper = styled$1(Box$1)(function (_ref) {
66012
66056
  '&.red-navy': {
66013
66057
  '#color-1': {
66014
66058
  'rect, path': {
66015
- // fill: theme.mainPallete.primary[color],
66016
66059
  fill: theme.mainPallete.primary.blue
66017
66060
  }
66018
66061
  },
@@ -66072,10 +66115,9 @@ var StyledLogoWrapper = styled$1(Box$1)(function (_ref) {
66072
66115
  }
66073
66116
  };
66074
66117
  });
66075
-
66076
- // @ts-ignore
66077
66118
  var Logo = function Logo(_ref2) {
66078
- var logoName = _ref2.logoName,
66119
+ var _ref2$logoName = _ref2.logoName,
66120
+ logoName = _ref2$logoName === void 0 ? "logo_xelcode" : _ref2$logoName,
66079
66121
  _ref2$color = _ref2.color,
66080
66122
  color = _ref2$color === void 0 ? 'red-navy' : _ref2$color,
66081
66123
  props = _objectWithoutProperties$1(_ref2, _excluded$6);
@@ -66084,8 +66126,53 @@ var Logo = function Logo(_ref2) {
66084
66126
  color: color
66085
66127
  }, props), logoName === 'logo_xelcode' && /*#__PURE__*/React.createElement(SvgLogoXelcode, null), logoName === 'logo_xelcode_dashboard' && /*#__PURE__*/React.createElement(SvgLogoXelcodeDashboard, null));
66086
66128
  };
66129
+ Logo.propTypes = {
66130
+ color: propTypes.exports.string,
66131
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
66132
+ current: propTypes.exports.any
66133
+ })]),
66134
+ logoName: propTypes.exports.string
66135
+ };
66136
+
66137
+ /**
66138
+ A function that returns a universally unique identifier (uuid).
66139
+ example: 1b83fd69-abe7-468c-bea1-306a8aa1c81d
66140
+ @returns `string` : 32 character uuid (see example)
66141
+ */
66142
+
66143
+ function uuid() {
66144
+ const hashTable = [
66145
+ "a",
66146
+ "b",
66147
+ "c",
66148
+ "d",
66149
+ "e",
66150
+ "f",
66151
+ "0",
66152
+ "1",
66153
+ "2",
66154
+ "3",
66155
+ "4",
66156
+ "5",
66157
+ "6",
66158
+ "7",
66159
+ "8",
66160
+ "9",
66161
+ ];
66162
+ let uuid = [];
66163
+ for (let i = 0; i < 36; i++) {
66164
+ if (i === 8 || i === 13 || i === 18 || i === 23) {
66165
+ uuid[i] = "-";
66166
+ } else {
66167
+ uuid[i] = hashTable[Math.ceil(Math.random() * hashTable.length - 1)];
66168
+ }
66169
+ }
66170
+ return uuid.join("");
66171
+ }
66087
66172
 
66088
- var _excluded$5 = ["buttons"];
66173
+ var uuid_1 = uuid;
66174
+
66175
+ var _excluded$5 = ["buttons", "forwardedRef"];
66089
66176
  var StyledBottomBarWrapper = styled$1(Box$1)(function (_ref) {
66090
66177
  _objectDestructuringEmpty(_ref);
66091
66178
  return {
@@ -66112,8 +66199,12 @@ var StyledBottomBarWrapper = styled$1(Box$1)(function (_ref) {
66112
66199
  });
66113
66200
  var BottomBarComponent = function BottomBarComponent(_ref2) {
66114
66201
  var buttons = _ref2.buttons,
66202
+ _ref2$forwardedRef = _ref2.forwardedRef,
66203
+ forwardedRef = _ref2$forwardedRef === void 0 ? function () {} : _ref2$forwardedRef,
66115
66204
  props = _objectWithoutProperties$1(_ref2, _excluded$5);
66116
- return /*#__PURE__*/React.createElement(StyledBottomBarWrapper, props, buttons.map(function (item) {
66205
+ return /*#__PURE__*/React.createElement(StyledBottomBarWrapper, _extends$1e({
66206
+ ref: forwardedRef
66207
+ }, props), buttons.map(function (item) {
66117
66208
  var disabled = (item === null || item === void 0 ? void 0 : item.disabled) || false;
66118
66209
  var fluid = (item === null || item === void 0 ? void 0 : item.fluid) || true;
66119
66210
  var onClick = (item === null || item === void 0 ? void 0 : item.onClick) || '';
@@ -66122,6 +66213,7 @@ var BottomBarComponent = function BottomBarComponent(_ref2) {
66122
66213
  var color = (item === null || item === void 0 ? void 0 : item.color) || 'navy-blue';
66123
66214
  var size = (item === null || item === void 0 ? void 0 : item.size) || 'small';
66124
66215
  return /*#__PURE__*/React.createElement(CustomButtonComponent, {
66216
+ key: uuid_1(),
66125
66217
  disabled: disabled,
66126
66218
  fluid: fluid,
66127
66219
  onClick: onClick && typeof onClick === "function" ? onClick : undefined,
@@ -66132,6 +66224,20 @@ var BottomBarComponent = function BottomBarComponent(_ref2) {
66132
66224
  });
66133
66225
  }));
66134
66226
  };
66227
+ BottomBarComponent.propTypes = {
66228
+ buttons: propTypes.exports.arrayOf(propTypes.exports.shape({
66229
+ disabled: propTypes.exports.bool,
66230
+ fluid: propTypes.exports.bool,
66231
+ onClick: propTypes.exports.func,
66232
+ type: propTypes.exports.string,
66233
+ text: propTypes.exports.string,
66234
+ color: propTypes.exports.string,
66235
+ size: propTypes.exports.string
66236
+ })),
66237
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
66238
+ current: propTypes.exports.any
66239
+ })])
66240
+ };
66135
66241
 
66136
66242
  var StyledInfoBar = styled$1('div')(function (_ref) {
66137
66243
  _objectDestructuringEmpty(_ref);
@@ -66164,8 +66270,6 @@ var StyledInfoRow = styled$1('div')(function (_ref2) {
66164
66270
  }
66165
66271
  };
66166
66272
  });
66167
-
66168
- // @ts-ignore
66169
66273
  var BottomInfoBar = function BottomInfoBar(_ref3) {
66170
66274
  var _ref3$noLogo = _ref3.noLogo,
66171
66275
  noLogo = _ref3$noLogo === void 0 ? false : _ref3$noLogo,
@@ -66173,8 +66277,12 @@ var BottomInfoBar = function BottomInfoBar(_ref3) {
66173
66277
  leftText = _ref3$leftText === void 0 ? 'left' : _ref3$leftText,
66174
66278
  _ref3$rightText = _ref3.rightText,
66175
66279
  rightText = _ref3$rightText === void 0 ? 'right' : _ref3$rightText,
66176
- onRightTextClick = _ref3.onRightTextClick;
66177
- return /*#__PURE__*/React__namespace.createElement(StyledInfoBar, null, /*#__PURE__*/React__namespace.createElement(StyledInfoRow, {
66280
+ onRightTextClick = _ref3.onRightTextClick,
66281
+ _ref3$forwardedRef = _ref3.forwardedRef,
66282
+ forwardedRef = _ref3$forwardedRef === void 0 ? function () {} : _ref3$forwardedRef;
66283
+ return /*#__PURE__*/React__namespace.createElement(StyledInfoBar, {
66284
+ ref: forwardedRef
66285
+ }, /*#__PURE__*/React__namespace.createElement(StyledInfoRow, {
66178
66286
  noLogo: noLogo
66179
66287
  }, /*#__PURE__*/React__namespace.createElement("div", null, /*#__PURE__*/React__namespace.createElement(CustomButtonComponent, {
66180
66288
  type: "ghost",
@@ -66195,8 +66303,17 @@ var BottomInfoBar = function BottomInfoBar(_ref3) {
66195
66303
  }
66196
66304
  }))));
66197
66305
  };
66306
+ BottomInfoBar.propTypes = {
66307
+ noLogo: propTypes.exports.bool,
66308
+ leftText: propTypes.exports.string,
66309
+ rightText: propTypes.exports.string,
66310
+ onRightTextClick: propTypes.exports.func,
66311
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
66312
+ current: propTypes.exports.any
66313
+ })])
66314
+ };
66198
66315
 
66199
- var _excluded$4 = ["disabled", "label", "checked", "onChange", "indeterminate", "forwardedRef"];
66316
+ var _excluded$4 = ["checked", "disabled", "label", "onChange", "indeterminate", "forwardedRef"];
66200
66317
  var StyledFormControlLabel$1 = styled$1(FormControlLabel$2)(function (_ref) {
66201
66318
  _objectDestructuringEmpty(_ref);
66202
66319
  return {
@@ -66307,9 +66424,9 @@ var StyledCheckbox = styled$1(Checkbox$2)(function () {
66307
66424
  };
66308
66425
  });
66309
66426
  var CheckboxComponent = function CheckboxComponent(_ref2) {
66310
- var disabled = _ref2.disabled,
66427
+ var checked = _ref2.checked,
66428
+ disabled = _ref2.disabled,
66311
66429
  label = _ref2.label,
66312
- checked = _ref2.checked,
66313
66430
  onChange = _ref2.onChange,
66314
66431
  indeterminate = _ref2.indeterminate,
66315
66432
  forwardedRef = _ref2.forwardedRef,
@@ -66352,6 +66469,16 @@ var CheckboxComponent = function CheckboxComponent(_ref2) {
66352
66469
  label: label
66353
66470
  })));
66354
66471
  };
66472
+ CheckboxComponent.propTypes = {
66473
+ checked: propTypes.exports.bool,
66474
+ disabled: propTypes.exports.bool,
66475
+ label: propTypes.exports.string,
66476
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
66477
+ current: propTypes.exports.any
66478
+ })]),
66479
+ indeterminate: propTypes.exports.bool,
66480
+ onChange: propTypes.exports.func
66481
+ };
66355
66482
 
66356
66483
  var _excluded$3 = ["fluid", "placeholder", "onSearch", "onBlur", "searchText", "onChange", "onChangeSearchText", "forwardedRef"];
66357
66484
  var StyledSearchBarWrapper = styled$1(Box$1)(function (_ref) {
@@ -66366,11 +66493,9 @@ var StyledSearchBarWrapper = styled$1(Box$1)(function (_ref) {
66366
66493
  justifyContent: 'space-between',
66367
66494
  alignItems: 'center',
66368
66495
  marginBottom: '20px',
66369
- // padding: '4px 10px 5px 10px',
66370
66496
  border: '1.5px solid transparent',
66371
66497
  transition: 'background-color 0.2s ease-in-out, border 0.2s ease-in-out',
66372
66498
  padding: '21px',
66373
- //PADDDINGi DO USTALENIA
66374
66499
  borderRadius: '34px',
66375
66500
  fontWeight: 'bold',
66376
66501
  '@media(min-width: 720px)': {
@@ -66537,6 +66662,18 @@ var SearchBarComponent = function SearchBarComponent(_ref3) {
66537
66662
  }
66538
66663
  }));
66539
66664
  };
66665
+ SearchBarComponent.propTypes = {
66666
+ fluid: propTypes.exports.func,
66667
+ placeholder: propTypes.exports.string,
66668
+ onSearch: propTypes.exports.func,
66669
+ onBlur: propTypes.exports.func,
66670
+ searchText: propTypes.exports.string,
66671
+ onChange: propTypes.exports.func,
66672
+ onChangeSearchText: propTypes.exports.func,
66673
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
66674
+ current: propTypes.exports.any
66675
+ })])
66676
+ };
66540
66677
 
66541
66678
  var StyledTableToolbar = styled$1('div')(function (_ref) {
66542
66679
  _objectDestructuringEmpty(_ref);
@@ -89312,9 +89449,6 @@ var StyledCustomTable = styled$1(Box$1)(function (_ref) {
89312
89449
  'button': {
89313
89450
  display: 'none'
89314
89451
  },
89315
- 'div:first-child': {
89316
- // flex: '1',
89317
- },
89318
89452
  'div:nth-child(2)': {
89319
89453
  display: 'none'
89320
89454
  },
@@ -89381,12 +89515,6 @@ var StyledCustomTable = styled$1(Box$1)(function (_ref) {
89381
89515
  },
89382
89516
  'svg': {
89383
89517
  display: 'none'
89384
- },
89385
- '.MuiOutlinedInput-root': {
89386
- borderColor: 'red',
89387
- 'fieldset': {
89388
- // border: 'none',
89389
- }
89390
89518
  }
89391
89519
  }
89392
89520
  },
@@ -89515,7 +89643,6 @@ var TableMobileComponent = function TableMobileComponent(_ref2) {
89515
89643
  sort: false,
89516
89644
  selectableRows: 'none',
89517
89645
  selectableRowsOnClick: false,
89518
- // responsive: 'scrollMaxWidth',
89519
89646
  searchAlwaysOpen: false,
89520
89647
  cellsEditable: false,
89521
89648
  textLabels: {
@@ -89570,6 +89697,15 @@ var TableMobileComponent = function TableMobileComponent(_ref2) {
89570
89697
  options: commonOptions
89571
89698
  }));
89572
89699
  };
89700
+ TableMobileComponent.propTypes = {
89701
+ columns: propTypes.exports.arrayOf(propTypes.exports.string),
89702
+ rows: propTypes.exports.arrayOf(propTypes.exports.shape({
89703
+ value: propTypes.exports.string,
89704
+ editable: propTypes.exports.bool
89705
+ })),
89706
+ includeSearch: propTypes.exports.bool,
89707
+ handleChangeData: propTypes.exports.func
89708
+ };
89573
89709
 
89574
89710
  var StyledModalContainer = styled$1(Box$1)(function (_ref) {
89575
89711
  _objectDestructuringEmpty(_ref);
@@ -89630,10 +89766,7 @@ var StyledModalWrapper = styled$1(Modal$1)(function (_ref2) {
89630
89766
  },
89631
89767
  '.MuiBackdrop-root': {
89632
89768
  display: 'none'
89633
- // opacity: 0,
89634
- // backgroundColor: 'rgba(41, 48, 114, 0.35)'
89635
89769
  },
89636
-
89637
89770
  'svg': {
89638
89771
  width: '115px',
89639
89772
  height: '115px',
@@ -89708,30 +89841,17 @@ var CustomModal = function CustomModal(_ref6) {
89708
89841
  type = _ref6.type,
89709
89842
  handleCloseModal = _ref6.handleCloseModal,
89710
89843
  handleActionButton = _ref6.handleActionButton,
89711
- isModalOpen = _ref6.isModalOpen;
89712
- // const [open, setOpen] = React.useState(isModalOpen);
89713
- // const handleOpen = () => setOpen(true);
89714
- // const handleClose = () => setOpen(false);
89715
-
89716
- // const showIcon = (type) => {
89717
- // if( type==='complete') {
89718
- // return <Illustration illustrationName={'ilu_status_change'} size='115'/>
89719
- // } else if (type === 'error') {
89720
- // return <Illustration illustrationName={'ilu_status_change'} size='big'/>
89721
- // } else if (type === 'info') {
89722
- // return <Illustration illustrationName={'ilu_status_change'} size='big'/>
89723
- // } else return
89724
- // }
89844
+ isModalOpen = _ref6.isModalOpen,
89845
+ forwardedRef = _ref6.forwardedRef;
89725
89846
  var isScrollableTextModal = type === 'text-scroll';
89726
89847
  return /*#__PURE__*/React__namespace.createElement(StyledModalContainer, {
89848
+ ref: forwardedRef,
89727
89849
  className: !isModalOpen ? 'hidden' : ''
89728
89850
  }, /*#__PURE__*/React__namespace.createElement(StyledModalWrapper, {
89729
89851
  className: isScrollableTextModal ? 'scrollable' : '',
89730
89852
  open: isModalOpen,
89731
89853
  onClose: handleCloseModal,
89732
89854
  isBottomTextButton: bottomButtonLabel
89733
- // aria-labelledby="modal-modal-title"
89734
- // aria-describedby="modal-modal-description"
89735
89855
  }, /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Illustration, {
89736
89856
  illustrationName: 'ilu_status_change',
89737
89857
  size: "small"
@@ -89771,6 +89891,20 @@ var CustomModal = function CustomModal(_ref6) {
89771
89891
  size: 'small'
89772
89892
  })))));
89773
89893
  };
89894
+ CustomModal.propTypes = {
89895
+ actionButtonLabel: propTypes.exports.string,
89896
+ bottomButtonLabel: propTypes.exports.string,
89897
+ closeButtonLabel: propTypes.exports.string,
89898
+ description: propTypes.exports.string,
89899
+ handleCloseModal: propTypes.exports.func,
89900
+ handleActionButton: propTypes.exports.func,
89901
+ isModalOpen: propTypes.exports.bool,
89902
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
89903
+ current: propTypes.exports.any
89904
+ })]),
89905
+ title: propTypes.exports.string,
89906
+ type: propTypes.exports.string
89907
+ };
89774
89908
 
89775
89909
  var StyledModuleTileWrapper = styled$1(Box$1)(function (_ref) {
89776
89910
  var fluid = _ref.fluid;
@@ -89803,11 +89937,16 @@ var StyledModuleTileWrapper = styled$1(Box$1)(function (_ref) {
89803
89937
  };
89804
89938
  });
89805
89939
  var ModuleTile = function ModuleTile(_ref2) {
89806
- var fluid = _ref2.fluid,
89807
- illustrationName = _ref2.illustrationName,
89940
+ var _ref2$fluid = _ref2.fluid,
89941
+ fluid = _ref2$fluid === void 0 ? false : _ref2$fluid,
89942
+ _ref2$illustrationNam = _ref2.illustrationName,
89943
+ illustrationName = _ref2$illustrationNam === void 0 ? 'ilu_availability_by_item' : _ref2$illustrationNam,
89808
89944
  header = _ref2.header,
89809
- onClick = _ref2.onClick;
89945
+ onClick = _ref2.onClick,
89946
+ _ref2$forwardedRef = _ref2.forwardedRef,
89947
+ forwardedRef = _ref2$forwardedRef === void 0 ? function () {} : _ref2$forwardedRef;
89810
89948
  return /*#__PURE__*/React.createElement(StyledModuleTileWrapper, {
89949
+ ref: forwardedRef,
89811
89950
  fluid: fluid,
89812
89951
  onClick: onClick
89813
89952
  }, /*#__PURE__*/React.createElement(Illustration, {
@@ -89817,6 +89956,15 @@ var ModuleTile = function ModuleTile(_ref2) {
89817
89956
  type: 'module-tile-header'
89818
89957
  }));
89819
89958
  };
89959
+ ModuleTile.propTypes = {
89960
+ fluid: propTypes.exports.bool,
89961
+ header: propTypes.exports.string,
89962
+ illustrationName: propTypes.exports.string,
89963
+ onClick: propTypes.exports.func,
89964
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
89965
+ current: propTypes.exports.any
89966
+ })])
89967
+ };
89820
89968
 
89821
89969
  var StyledStepperContainer = styled$1(Box$1)(function (_ref) {
89822
89970
  _objectDestructuringEmpty(_ref);
@@ -89851,21 +89999,10 @@ var StyledLabelAndIconWrapper = styled$1(Box$1)(function () {
89851
89999
  paddingRight: '10px'
89852
90000
  };
89853
90001
  });
89854
- styled$1(Box$1)(function (_ref2) {
89855
- _objectDestructuringEmpty(_ref2);
89856
- return {
89857
- width: '100%',
89858
- display: 'flex',
89859
- justifyContent: 'space-between',
89860
- 'button:nth-child(2)': {
89861
- marginLeft: 10
89862
- }
89863
- };
89864
- });
89865
90002
  var StyledStepper = styled$1(function (props) {
89866
90003
  return /*#__PURE__*/React.createElement(Stepper$1, props);
89867
- })(function (_ref3) {
89868
- var numberOfSteps = _ref3.numberOfSteps;
90004
+ })(function (_ref2) {
90005
+ var numberOfSteps = _ref2.numberOfSteps;
89869
90006
  return {
89870
90007
  '.MuiStepConnector-root': {
89871
90008
  width: '4px',
@@ -89900,8 +90037,8 @@ var StyledStepper = styled$1(function (props) {
89900
90037
  });
89901
90038
  var StyledStep = styled$1(function (props) {
89902
90039
  return /*#__PURE__*/React.createElement(Step$1, props);
89903
- })(function (_ref4) {
89904
- var completed = _ref4.completed;
90040
+ })(function (_ref3) {
90041
+ var completed = _ref3.completed;
89905
90042
  return {
89906
90043
  border: 'none',
89907
90044
  backgroundColor: completed ? theme.mainPallete.secondary.specialGreen : '#D8E1FA',
@@ -89910,35 +90047,22 @@ var StyledStep = styled$1(function (props) {
89910
90047
  }
89911
90048
  };
89912
90049
  });
89913
- var CustomStepper = function CustomStepper(_ref5) {
89914
- var steps = _ref5.steps,
89915
- label = _ref5.label,
89916
- withIcon = _ref5.withIcon,
89917
- currentStep = _ref5.currentStep;
89918
- _ref5.handleNextStep;
89919
- _ref5.handlePreviousStep;
89920
- _ref5.handleChangeStep;
89921
- steps.indexOf(currentStep);
90050
+ var CustomStepper = function CustomStepper(_ref4) {
90051
+ var steps = _ref4.steps,
90052
+ label = _ref4.label,
90053
+ withIcon = _ref4.withIcon,
90054
+ currentStep = _ref4.currentStep;
89922
90055
  var _useState = React.useState(currentStep),
89923
90056
  _useState2 = _slicedToArray$a(_useState, 2),
89924
- activeStep = _useState2[0],
89925
- setActiveStep = _useState2[1];
90057
+ activeStep = _useState2[0];
90058
+ _useState2[1];
89926
90059
  var _useState3 = React.useState({}),
89927
90060
  _useState4 = _slicedToArray$a(_useState3, 2),
89928
90061
  completed = _useState4[0];
89929
90062
  _useState4[1];
89930
- // alert('currentStep ' + currentStep);
89931
- // alert('currentStepIndex ' + currentStepIndex);
89932
90063
  var totalSteps = steps.length;
89933
90064
  var completedSteps = Object.keys(completed).length;
89934
90065
  var allStepsCompleted = completedSteps === totalSteps;
89935
- var handleSteps = function handleSteps(steps, currentStep) {
89936
- var currentStepIndex = steps.indexOf(currentStep);
89937
- setActiveStep(currentStepIndex);
89938
- };
89939
- React.useEffect(function () {
89940
- handleSteps(steps, currentStep);
89941
- }, [currentStep]);
89942
90066
  return /*#__PURE__*/React.createElement(StyledStepperContainer, null, /*#__PURE__*/React.createElement(Box$1, {
89943
90067
  sx: {
89944
90068
  width: '100%'
@@ -89960,6 +90084,15 @@ var CustomStepper = function CustomStepper(_ref5) {
89960
90084
  });
89961
90085
  }))));
89962
90086
  };
90087
+ CustomStepper.propTypes = {
90088
+ currentStep: propTypes.exports.string,
90089
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
90090
+ current: propTypes.exports.any
90091
+ })]),
90092
+ label: propTypes.exports.string,
90093
+ steps: propTypes.exports.arrayOf(propTypes.exports.string),
90094
+ withIcon: propTypes.exports.bool
90095
+ };
89963
90096
 
89964
90097
  var _g$1;
89965
90098
  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); }
@@ -90026,9 +90159,6 @@ var _excluded$2 = ["value", "label"];
90026
90159
  var StyledFormControlLabel = styled$1(FormControlLabel$2)(function (_ref) {
90027
90160
  _objectDestructuringEmpty(_ref);
90028
90161
  return {
90029
- // '.MuiFormControlLabel-label': checked && {
90030
- // color: theme.palette.primary.main,
90031
- // },
90032
90162
  padding: 0,
90033
90163
  boxSizing: 'border-box',
90034
90164
  marginBottom: '30px',
@@ -90146,44 +90276,18 @@ var RadioGroupComponent = function RadioGroupComponent(_ref2) {
90146
90276
  defaultValue: defaultValue
90147
90277
  }, renderRadioOptions(options));
90148
90278
  };
90149
-
90150
- /**
90151
- A function that returns a universally unique identifier (uuid).
90152
- example: 1b83fd69-abe7-468c-bea1-306a8aa1c81d
90153
- @returns `string` : 32 character uuid (see example)
90154
- */
90155
-
90156
- function uuid() {
90157
- const hashTable = [
90158
- "a",
90159
- "b",
90160
- "c",
90161
- "d",
90162
- "e",
90163
- "f",
90164
- "0",
90165
- "1",
90166
- "2",
90167
- "3",
90168
- "4",
90169
- "5",
90170
- "6",
90171
- "7",
90172
- "8",
90173
- "9",
90174
- ];
90175
- let uuid = [];
90176
- for (let i = 0; i < 36; i++) {
90177
- if (i === 8 || i === 13 || i === 18 || i === 23) {
90178
- uuid[i] = "-";
90179
- } else {
90180
- uuid[i] = hashTable[Math.ceil(Math.random() * hashTable.length - 1)];
90181
- }
90182
- }
90183
- return uuid.join("");
90184
- }
90185
-
90186
- var uuid_1 = uuid;
90279
+ RadioGroupComponent.propTypes = {
90280
+ forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
90281
+ current: propTypes.exports.any
90282
+ })]),
90283
+ onChange: propTypes.exports.func,
90284
+ options: propTypes.exports.arrayOf(propTypes.exports.shape({
90285
+ disabled: propTypes.exports.bool,
90286
+ label: propTypes.exports.string,
90287
+ value: propTypes.exports.string
90288
+ })),
90289
+ value: propTypes.exports.string
90290
+ };
90187
90291
 
90188
90292
  var StyledMenu = styled$1('div')(function (_ref) {
90189
90293
  var variant = _ref.variant;