magneto365.ui 2.70.2 → 2.70.4

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/esm/index.js CHANGED
@@ -3494,14 +3494,14 @@ var CandidateNav = Object.assign(Component$2a, __assign({ Button: CandidateNavBu
3494
3494
 
3495
3495
  var styles$26 = {"magneto-ui-candidate-profile":"mg_candidate_profile_magneto-ui-candidate-profile_1vwhb"};
3496
3496
 
3497
- var styles$25 = {"magneto-ui-candidate-profile-avatar":"mg_candidate_profile_avatar_magneto-ui-candidate-profile-avatar_1849j","magneto-ui-candidate-profile-avatar__picture":"mg_candidate_profile_avatar_magneto-ui-candidate-profile-avatar_picture_1849j","magneto-ui-candidate-profile-avatar__score":"mg_candidate_profile_avatar_magneto-ui-candidate-profile-avatar_score_1849j"};
3497
+ var styles$25 = {"magneto-ui-candidate-profile-avatar":"mg_candidate_profile_avatar_magneto-ui-candidate-profile-avatar_sa8bj","magneto-ui-candidate-profile-avatar__picture":"mg_candidate_profile_avatar_magneto-ui-candidate-profile-avatar_picture_sa8bj","magneto-ui-candidate-profile-avatar__score":"mg_candidate_profile_avatar_magneto-ui-candidate-profile-avatar_score_sa8bj"};
3498
3498
 
3499
3499
  var cx$T = classNames.bind(styles$25);
3500
3500
  var Component$29 = function (_a) {
3501
- var avatar = _a.avatar, score = _a.score, props = __rest(_a, ["avatar", "score"]);
3501
+ var fallbackImage = _a.fallbackImage, onClick = _a.onClick, score = _a.score, userImage = _a.userImage, props = __rest(_a, ["fallbackImage", "onClick", "score", "userImage"]);
3502
3502
  return (React.createElement("div", __assign({ className: cx$T('magneto-ui-candidate-profile-avatar') }, props),
3503
3503
  React.createElement("picture", { className: cx$T('magneto-ui-candidate-profile-avatar__picture') },
3504
- React.createElement(Avatar, __assign({}, avatar))),
3504
+ React.createElement(Avatar, { userImage: userImage, fallbackImage: fallbackImage, onClick: onClick })),
3505
3505
  score && (React.createElement("div", { className: cx$T('magneto-ui-candidate-profile-avatar__score') },
3506
3506
  React.createElement(RatingBadge, { score: score })))));
3507
3507
  };
@@ -4316,11 +4316,10 @@ var cx$O = classNames.bind(styles$1K);
4316
4316
  var Component$1O = function (_a) {
4317
4317
  var className = _a.className, options = _a.options, onChange = _a.onChange, onClick = _a.onClick;
4318
4318
  var _b = useState(0), selectedItem = _b[0], setSelectedItem = _b[1];
4319
- useEffect(function () {
4320
- if (onChange) {
4321
- onChange(selectedItem);
4322
- }
4323
- }, [selectedItem, onChange]);
4319
+ var handleOnSelect = useCallback(function (key) {
4320
+ setSelectedItem(key);
4321
+ onChange === null || onChange === void 0 ? void 0 : onChange(key);
4322
+ }, [onChange]);
4324
4323
  if (!options || !Array.isArray(options))
4325
4324
  return null;
4326
4325
  return (React.createElement("header", { className: cx$O('magneto-ui-horizontal-menu', className) },
@@ -4332,7 +4331,7 @@ var Component$1O = function (_a) {
4332
4331
  return (React.createElement("li", { key: key, className: cx$O('magneto-ui-horizontal-menu__button', {
4333
4332
  'magneto-ui-horizontal-menu__button--active': selectedItem === key
4334
4333
  }) },
4335
- React.createElement(Button, { suffixIcon: icon, buttonText: title, onClick: function () { return setSelectedItem(key); } })));
4334
+ React.createElement(Button, { suffixIcon: icon, buttonText: title, onClick: function () { return handleOnSelect(key); } })));
4336
4335
  })))));
4337
4336
  };
4338
4337
  /**
@@ -8947,11 +8946,12 @@ var styles$9 = {"magneto-ui-candidate-profile-nav":"mg_candidate_profile_templat
8947
8946
  var cx$4 = classNames.bind(styles$9);
8948
8947
  var Component$c = function (_a) {
8949
8948
  var props = __rest(_a, []);
8950
- var _b = useCandidateProfile(), setActiveScreen = _b.setActiveScreen, screens = _b.screens;
8949
+ var _b = useCandidateProfile(), setActiveScreen = _b.setActiveScreen, screens = _b.screens, setIsProfileOpen = _b.setIsProfileOpen;
8951
8950
  var menuOptions = useMemo(function () { return screens.map(function (screen) { return ({ title: screen.title, icon: screen.icon }); }); }, [screens]);
8952
8951
  var onMenuOptionClick = useCallback(function (selectedOption) {
8953
8952
  setActiveScreen(selectedOption);
8954
- }, [setActiveScreen]);
8953
+ setIsProfileOpen(false);
8954
+ }, [setActiveScreen, setIsProfileOpen]);
8955
8955
  return (React.createElement(HorizontalMenu, __assign({}, props, { options: menuOptions, onChange: onMenuOptionClick, className: cx$4('magneto-ui-candidate-profile-template__nav') })));
8956
8956
  };
8957
8957
  /**
@@ -9002,7 +9002,7 @@ var Component$b = function (_a) {
9002
9002
  */
9003
9003
  var CandidateProfileTemplateNav = Component$b;
9004
9004
 
9005
- var styles$7 = {"magneto-ui-candidate-profile-template-profile":"mg_candidate_profile_template_profile_magneto-ui-candidate-profile-template-profile_62n2p","magneto-ui-candidate-profile-template-profile__container":"mg_candidate_profile_template_profile_magneto-ui-candidate-profile-template-profile_container_62n2p"};
9005
+ var styles$7 = {"magneto-ui-candidate-profile-template-profile":"mg_candidate_profile_template_profile_magneto-ui-candidate-profile-template-profile_191ox","magneto-ui-candidate-profile-template-profile__container":"mg_candidate_profile_template_profile_magneto-ui-candidate-profile-template-profile_container_191ox"};
9006
9006
 
9007
9007
  var cx$2 = classNames.bind(styles$7);
9008
9008
  var customScrollbarButtonsStyle = {