analytica-frontend-lib 1.1.71 → 1.1.73

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.
Files changed (97) hide show
  1. package/dist/Accordation/index.js.map +1 -1
  2. package/dist/Accordation/index.mjs.map +1 -1
  3. package/dist/Alert/index.js.map +1 -1
  4. package/dist/Alert/index.mjs.map +1 -1
  5. package/dist/AlertDialog/index.js.map +1 -1
  6. package/dist/AlertDialog/index.mjs.map +1 -1
  7. package/dist/Alternative/index.js.map +1 -1
  8. package/dist/Alternative/index.mjs.map +1 -1
  9. package/dist/Badge/index.js.map +1 -1
  10. package/dist/Badge/index.mjs.map +1 -1
  11. package/dist/Button/index.js.map +1 -1
  12. package/dist/Button/index.mjs.map +1 -1
  13. package/dist/Calendar/index.js.map +1 -1
  14. package/dist/Calendar/index.mjs.map +1 -1
  15. package/dist/Card/index.js.map +1 -1
  16. package/dist/Card/index.mjs.map +1 -1
  17. package/dist/CheckBox/index.js.map +1 -1
  18. package/dist/CheckBox/index.mjs.map +1 -1
  19. package/dist/Chips/index.js.map +1 -1
  20. package/dist/Chips/index.mjs.map +1 -1
  21. package/dist/Divider/index.js.map +1 -1
  22. package/dist/Divider/index.mjs.map +1 -1
  23. package/dist/DropdownMenu/index.js +24 -29
  24. package/dist/DropdownMenu/index.js.map +1 -1
  25. package/dist/DropdownMenu/index.mjs +24 -29
  26. package/dist/DropdownMenu/index.mjs.map +1 -1
  27. package/dist/IconButton/index.js.map +1 -1
  28. package/dist/IconButton/index.mjs.map +1 -1
  29. package/dist/IconRoundedButton/index.js.map +1 -1
  30. package/dist/IconRoundedButton/index.mjs.map +1 -1
  31. package/dist/Menu/index.js.map +1 -1
  32. package/dist/Menu/index.mjs.map +1 -1
  33. package/dist/Modal/index.js.map +1 -1
  34. package/dist/Modal/index.mjs.map +1 -1
  35. package/dist/MultipleChoice/index.js.map +1 -1
  36. package/dist/MultipleChoice/index.mjs.map +1 -1
  37. package/dist/NavButton/index.js.map +1 -1
  38. package/dist/NavButton/index.mjs.map +1 -1
  39. package/dist/NotFound/index.js.map +1 -1
  40. package/dist/NotFound/index.mjs.map +1 -1
  41. package/dist/NotificationCard/index.d.mts +1 -1
  42. package/dist/NotificationCard/index.d.ts +1 -1
  43. package/dist/NotificationCard/index.js +26 -38
  44. package/dist/NotificationCard/index.js.map +1 -1
  45. package/dist/NotificationCard/index.mjs +25 -36
  46. package/dist/NotificationCard/index.mjs.map +1 -1
  47. package/dist/{NotificationCard-DMdkuVEr.d.mts → NotificationCard-4GgB0Nsf.d.mts} +2 -7
  48. package/dist/{NotificationCard-DMdkuVEr.d.ts → NotificationCard-4GgB0Nsf.d.ts} +2 -7
  49. package/dist/ProgressBar/index.js.map +1 -1
  50. package/dist/ProgressBar/index.mjs.map +1 -1
  51. package/dist/ProgressCircle/index.js.map +1 -1
  52. package/dist/ProgressCircle/index.mjs.map +1 -1
  53. package/dist/Quiz/index.js.map +1 -1
  54. package/dist/Quiz/index.mjs.map +1 -1
  55. package/dist/Radio/index.js.map +1 -1
  56. package/dist/Radio/index.mjs.map +1 -1
  57. package/dist/Search/index.js +97 -56
  58. package/dist/Search/index.js.map +1 -1
  59. package/dist/Search/index.mjs +98 -57
  60. package/dist/Search/index.mjs.map +1 -1
  61. package/dist/Select/index.js.map +1 -1
  62. package/dist/Select/index.mjs.map +1 -1
  63. package/dist/SelectionButton/index.js.map +1 -1
  64. package/dist/SelectionButton/index.mjs.map +1 -1
  65. package/dist/Skeleton/index.js.map +1 -1
  66. package/dist/Skeleton/index.mjs.map +1 -1
  67. package/dist/Stepper/index.js.map +1 -1
  68. package/dist/Stepper/index.mjs.map +1 -1
  69. package/dist/Table/index.js.map +1 -1
  70. package/dist/Table/index.mjs.map +1 -1
  71. package/dist/Text/index.js.map +1 -1
  72. package/dist/Text/index.mjs.map +1 -1
  73. package/dist/TextArea/index.js.map +1 -1
  74. package/dist/TextArea/index.mjs.map +1 -1
  75. package/dist/ThemeToggle/index.js.map +1 -1
  76. package/dist/ThemeToggle/index.mjs.map +1 -1
  77. package/dist/Toast/Toaster/index.js.map +1 -1
  78. package/dist/Toast/Toaster/index.mjs.map +1 -1
  79. package/dist/Toast/index.js.map +1 -1
  80. package/dist/Toast/index.mjs.map +1 -1
  81. package/dist/VideoPlayer/index.js.map +1 -1
  82. package/dist/VideoPlayer/index.mjs.map +1 -1
  83. package/dist/Whiteboard/index.js.map +1 -1
  84. package/dist/Whiteboard/index.mjs.map +1 -1
  85. package/dist/index.d.mts +3 -3
  86. package/dist/index.d.ts +3 -3
  87. package/dist/index.js +108 -63
  88. package/dist/index.js.map +1 -1
  89. package/dist/index.mjs +113 -68
  90. package/dist/index.mjs.map +1 -1
  91. package/dist/utils/index.d.mts +14 -1
  92. package/dist/utils/index.d.ts +14 -1
  93. package/dist/utils/index.js +13 -2
  94. package/dist/utils/index.js.map +1 -1
  95. package/dist/utils/index.mjs +11 -1
  96. package/dist/utils/index.mjs.map +1 -1
  97. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -152,7 +152,7 @@ __export(src_exports, {
152
152
  getSubjectIcon: () => getSubjectIcon,
153
153
  getSubjectInfo: () => getSubjectInfo,
154
154
  getSubjectName: () => getSubjectName,
155
- syncNotificationState: () => syncNotificationState,
155
+ syncDropdownState: () => syncDropdownState,
156
156
  useApiConfig: () => useApiConfig,
157
157
  useAuth: () => useAuth,
158
158
  useAuthGuard: () => useAuthGuard,
@@ -170,6 +170,15 @@ module.exports = __toCommonJS(src_exports);
170
170
  // src/utils/utils.ts
171
171
  var import_clsx = require("clsx");
172
172
  var import_tailwind_merge = require("tailwind-merge");
173
+
174
+ // src/utils/dropdown.ts
175
+ var syncDropdownState = (open, isActive, setActiveStates, key) => {
176
+ if (!open && isActive) {
177
+ setActiveStates((prev) => ({ ...prev, [key]: false }));
178
+ }
179
+ };
180
+
181
+ // src/utils/utils.ts
173
182
  function cn(...inputs) {
174
183
  return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
175
184
  }
@@ -2707,12 +2716,28 @@ var ProfileToggleTheme = ({ ...props }) => {
2707
2716
  setModalThemeToggle(false);
2708
2717
  };
2709
2718
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
2710
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2711
- "div",
2719
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2720
+ DropdownMenuItem,
2712
2721
  {
2713
- role: "menuitem",
2714
- "data-variant": "profile",
2715
- className: "relative flex flex-row justify-between select-none items-center gap-2 rounded-sm p-4 text-sm outline-none transition-colors [&>svg]:size-6 [&>svg]:shrink-0 cursor-pointer hover:bg-background-50 text-text-700 focus:bg-accent focus:text-accent-foreground hover:bg-accent hover:text-accent-foreground",
2722
+ variant: "profile",
2723
+ iconLeft: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2724
+ "svg",
2725
+ {
2726
+ width: "24",
2727
+ height: "24",
2728
+ viewBox: "0 0 25 25",
2729
+ fill: "none",
2730
+ xmlns: "http://www.w3.org/2000/svg",
2731
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2732
+ "path",
2733
+ {
2734
+ d: "M12.5 2.75C15.085 2.75276 17.5637 3.78054 19.3916 5.6084C21.2195 7.43628 22.2473 9.915 22.25 12.5C22.25 14.4284 21.6778 16.3136 20.6064 17.917C19.5352 19.5201 18.0128 20.7699 16.2314 21.5078C14.4499 22.2458 12.489 22.4387 10.5977 22.0625C8.70642 21.6863 6.96899 20.758 5.60547 19.3945C4.24197 18.031 3.31374 16.2936 2.9375 14.4023C2.56129 12.511 2.75423 10.5501 3.49219 8.76855C4.23012 6.98718 5.47982 5.46483 7.08301 4.39355C8.68639 3.32221 10.5716 2.75 12.5 2.75ZM11.75 4.28516C9.70145 4.47452 7.7973 5.42115 6.41016 6.94043C5.02299 8.4599 4.25247 10.4426 4.25 12.5C4.25247 14.5574 5.02299 16.5401 6.41016 18.0596C7.7973 19.5789 9.70145 20.5255 11.75 20.7148V4.28516Z",
2735
+ fill: "currentColor"
2736
+ }
2737
+ )
2738
+ }
2739
+ ),
2740
+ iconRight: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.CaretRight, {}),
2716
2741
  onClick: handleClick,
2717
2742
  onKeyDown: (e) => {
2718
2743
  if (e.key === "Enter" || e.key === " ") {
@@ -2721,29 +2746,8 @@ var ProfileToggleTheme = ({ ...props }) => {
2721
2746
  setModalThemeToggle(true);
2722
2747
  }
2723
2748
  },
2724
- tabIndex: 0,
2725
2749
  ...props,
2726
- children: [
2727
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2728
- "svg",
2729
- {
2730
- width: "25",
2731
- height: "25",
2732
- viewBox: "0 0 25 25",
2733
- fill: "none",
2734
- xmlns: "http://www.w3.org/2000/svg",
2735
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2736
- "path",
2737
- {
2738
- d: "M12.5 2.75C15.085 2.75276 17.5637 3.78054 19.3916 5.6084C21.2195 7.43628 22.2473 9.915 22.25 12.5C22.25 14.4284 21.6778 16.3136 20.6064 17.917C19.5352 19.5201 18.0128 20.7699 16.2314 21.5078C14.4499 22.2458 12.489 22.4387 10.5977 22.0625C8.70642 21.6863 6.96899 20.758 5.60547 19.3945C4.24197 18.031 3.31374 16.2936 2.9375 14.4023C2.56129 12.511 2.75423 10.5501 3.49219 8.76855C4.23012 6.98718 5.47982 5.46483 7.08301 4.39355C8.68639 3.32221 10.5716 2.75 12.5 2.75ZM11.75 4.28516C9.70145 4.47452 7.7973 5.42115 6.41016 6.94043C5.02299 8.4599 4.25247 10.4426 4.25 12.5C4.25247 14.5574 5.02299 16.5401 6.41016 18.0596C7.7973 19.5789 9.70145 20.5255 11.75 20.7148V4.28516Z",
2739
- fill: "#525252"
2740
- }
2741
- )
2742
- }
2743
- ),
2744
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Text_default, { className: "w-full", size: "md", children: "Apar\xEAncia" }),
2745
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.CaretRight, {})
2746
- ]
2750
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Text_default, { size: "md", color: "text-text-700", children: "Apar\xEAncia" })
2747
2751
  }
2748
2752
  ),
2749
2753
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
@@ -2798,8 +2802,8 @@ var ProfileMenuFooter = ({
2798
2802
  },
2799
2803
  ...props,
2800
2804
  children: [
2801
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "mr-2 flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.SignOut, {}) }),
2802
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Text_default, { children: "Sair" })
2805
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "mr-2 flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.SignOut, { className: "text-inherit" }) }),
2806
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Text_default, { color: "inherit", children: "Sair" })
2803
2807
  ]
2804
2808
  }
2805
2809
  );
@@ -2851,11 +2855,15 @@ var Search = (0, import_react14.forwardRef)(
2851
2855
  value,
2852
2856
  onChange,
2853
2857
  placeholder = "Buscar...",
2858
+ onKeyDown: userOnKeyDown,
2854
2859
  ...props
2855
2860
  }, ref) => {
2856
2861
  const [dropdownOpen, setDropdownOpen] = (0, import_react14.useState)(false);
2862
+ const [forceClose, setForceClose] = (0, import_react14.useState)(false);
2863
+ const justSelectedRef = (0, import_react14.useRef)(false);
2857
2864
  const dropdownStore = (0, import_react14.useRef)(createDropdownStore()).current;
2858
2865
  const dropdownRef = (0, import_react14.useRef)(null);
2866
+ const inputElRef = (0, import_react14.useRef)(null);
2859
2867
  const filteredOptions = (0, import_react14.useMemo)(() => {
2860
2868
  if (!options.length) {
2861
2869
  return [];
@@ -2863,24 +2871,35 @@ var Search = (0, import_react14.forwardRef)(
2863
2871
  const filtered = filterOptions(options, value || "");
2864
2872
  return filtered;
2865
2873
  }, [options, value]);
2866
- const showDropdown = controlledShowDropdown ?? (dropdownOpen && value && String(value).length > 0);
2874
+ const showDropdown = !forceClose && (controlledShowDropdown ?? (dropdownOpen && value && String(value).length > 0));
2875
+ const setOpenAndNotify = (open) => {
2876
+ setDropdownOpen(open);
2877
+ dropdownStore.setState({ open });
2878
+ onDropdownChange?.(open);
2879
+ };
2867
2880
  (0, import_react14.useEffect)(() => {
2881
+ if (justSelectedRef.current) {
2882
+ justSelectedRef.current = false;
2883
+ return;
2884
+ }
2885
+ if (forceClose) {
2886
+ setOpenAndNotify(false);
2887
+ return;
2888
+ }
2868
2889
  const shouldShow = Boolean(value && String(value).length > 0);
2869
- setDropdownOpen(shouldShow);
2870
- dropdownStore.setState({ open: shouldShow });
2871
- onDropdownChange?.(shouldShow);
2872
- }, [value, onDropdownChange, dropdownStore]);
2890
+ setOpenAndNotify(shouldShow);
2891
+ }, [value, forceClose, onDropdownChange, dropdownStore]);
2873
2892
  const handleSelectOption = (option) => {
2893
+ justSelectedRef.current = true;
2894
+ setForceClose(true);
2874
2895
  onSelect?.(option);
2875
- setDropdownOpen(false);
2876
- dropdownStore.setState({ open: false });
2896
+ setOpenAndNotify(false);
2877
2897
  updateInputValue(option, ref, onChange);
2878
2898
  };
2879
2899
  (0, import_react14.useEffect)(() => {
2880
2900
  const handleClickOutside = (event) => {
2881
2901
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
2882
- setDropdownOpen(false);
2883
- dropdownStore.setState({ open: false });
2902
+ setOpenAndNotify(false);
2884
2903
  }
2885
2904
  };
2886
2905
  if (showDropdown) {
@@ -2889,9 +2908,10 @@ var Search = (0, import_react14.forwardRef)(
2889
2908
  return () => {
2890
2909
  document.removeEventListener("mousedown", handleClickOutside);
2891
2910
  };
2892
- }, [showDropdown, dropdownStore]);
2911
+ }, [showDropdown, dropdownStore, onDropdownChange]);
2893
2912
  const generatedId = (0, import_react14.useId)();
2894
2913
  const inputId = id ?? `search-${generatedId}`;
2914
+ const dropdownId = `${inputId}-dropdown`;
2895
2915
  const handleClear = () => {
2896
2916
  if (onClear) {
2897
2917
  onClear();
@@ -2904,21 +2924,40 @@ var Search = (0, import_react14.forwardRef)(
2904
2924
  e.stopPropagation();
2905
2925
  handleClear();
2906
2926
  };
2907
- const handleLeftIconClick = () => {
2908
- if (ref && "current" in ref && ref.current) {
2909
- ref.current.blur();
2910
- }
2927
+ const handleSearchIconClick = (e) => {
2928
+ e.preventDefault();
2929
+ e.stopPropagation();
2930
+ setTimeout(() => {
2931
+ inputElRef.current?.focus();
2932
+ }, 0);
2911
2933
  };
2912
2934
  const handleInputChange = (e) => {
2935
+ setForceClose(false);
2913
2936
  onChange?.(e);
2914
2937
  onSearch?.(e.target.value);
2915
2938
  };
2939
+ const handleKeyDown = (e) => {
2940
+ userOnKeyDown?.(e);
2941
+ if (e.defaultPrevented) return;
2942
+ if (e.key === "Enter") {
2943
+ e.preventDefault();
2944
+ if (showDropdown && filteredOptions.length > 0) {
2945
+ handleSelectOption(filteredOptions[0]);
2946
+ } else if (value) {
2947
+ onSearch?.(String(value));
2948
+ setForceClose(true);
2949
+ setOpenAndNotify(false);
2950
+ }
2951
+ }
2952
+ };
2916
2953
  const getInputStateClasses = (disabled2, readOnly2) => {
2917
2954
  if (disabled2) return "cursor-not-allowed opacity-40";
2918
2955
  if (readOnly2) return "cursor-default focus:outline-none !text-text-900";
2919
2956
  return "hover:border-border-400";
2920
2957
  };
2921
- const showClearButton = value && !disabled && !readOnly;
2958
+ const hasValue = String(value ?? "").length > 0;
2959
+ const showClearButton = hasValue && !disabled && !readOnly;
2960
+ const showSearchIcon = !hasValue && !disabled && !readOnly;
2922
2961
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2923
2962
  "div",
2924
2963
  {
@@ -2926,30 +2965,30 @@ var Search = (0, import_react14.forwardRef)(
2926
2965
  className: `w-full max-w-lg md:w-[488px] ${containerClassName}`,
2927
2966
  children: [
2928
2967
  /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "relative flex items-center", children: [
2929
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "absolute left-3 top-1/2 transform -translate-y-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2930
- "button",
2931
- {
2932
- type: "button",
2933
- className: "w-6 h-6 text-text-800 flex items-center justify-center bg-transparent border-0 p-0 cursor-pointer hover:text-text-600 transition-colors",
2934
- onClick: handleLeftIconClick,
2935
- "aria-label": "Voltar",
2936
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_phosphor_react10.CaretLeft, {})
2937
- }
2938
- ) }),
2939
2968
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2940
2969
  "input",
2941
2970
  {
2942
- ref,
2971
+ ref: (node) => {
2972
+ if (ref) {
2973
+ if (typeof ref === "function") ref(node);
2974
+ else
2975
+ ref.current = node;
2976
+ }
2977
+ inputElRef.current = node;
2978
+ },
2943
2979
  id: inputId,
2944
2980
  type: "text",
2945
- className: `w-full py-0 px-4 pl-10 ${showClearButton ? "pr-10" : "pr-4"} font-normal text-text-900 focus:outline-primary-950 border rounded-full bg-background focus:bg-primary-50 border-border-300 focus:border-2 focus:border-primary-950 h-10 placeholder:text-text-600 ${getInputStateClasses(disabled, readOnly)} ${className}`,
2981
+ className: `w-full py-0 px-4 pr-10 font-normal text-text-900 focus:outline-primary-950 border rounded-full bg-background focus:bg-primary-50 border-border-300 focus:border-2 focus:border-primary-950 h-10 placeholder:text-text-600 ${getInputStateClasses(disabled, readOnly)} ${className}`,
2946
2982
  value,
2947
2983
  onChange: handleInputChange,
2984
+ onKeyDown: handleKeyDown,
2948
2985
  disabled,
2949
2986
  readOnly,
2950
2987
  placeholder,
2951
2988
  "aria-expanded": showDropdown ? "true" : void 0,
2952
2989
  "aria-haspopup": options.length > 0 ? "listbox" : void 0,
2990
+ "aria-controls": showDropdown ? dropdownId : void 0,
2991
+ "aria-autocomplete": "list",
2953
2992
  role: options.length > 0 ? "combobox" : void 0,
2954
2993
  ...props
2955
2994
  }
@@ -2963,11 +3002,22 @@ var Search = (0, import_react14.forwardRef)(
2963
3002
  "aria-label": "Limpar busca",
2964
3003
  children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "w-6 h-6 text-text-800 flex items-center justify-center hover:text-text-600 transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_phosphor_react10.X, {}) })
2965
3004
  }
3005
+ ) }),
3006
+ showSearchIcon && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "absolute right-3 top-1/2 transform -translate-y-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3007
+ "button",
3008
+ {
3009
+ type: "button",
3010
+ className: "p-0 border-0 bg-transparent cursor-pointer",
3011
+ onMouseDown: handleSearchIconClick,
3012
+ "aria-label": "Buscar",
3013
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "w-6 h-6 text-text-800 flex items-center justify-center hover:text-text-600 transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_phosphor_react10.MagnifyingGlass, {}) })
3014
+ }
2966
3015
  ) })
2967
3016
  ] }),
2968
3017
  showDropdown && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DropdownMenu_default, { open: showDropdown, onOpenChange: setDropdownOpen, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2969
3018
  DropdownMenuContent,
2970
3019
  {
3020
+ id: dropdownId,
2971
3021
  className: "w-full mt-1",
2972
3022
  style: { maxHeight: dropdownMaxHeight },
2973
3023
  align: "start",
@@ -11414,11 +11464,6 @@ var mock_content_default = "./mock-content-K2CDVG6P.png";
11414
11464
 
11415
11465
  // src/components/NotificationCard/NotificationCard.tsx
11416
11466
  var import_jsx_runtime51 = require("react/jsx-runtime");
11417
- var syncNotificationState = (open, isNotificationActive, setActiveStates, key = "notifications") => {
11418
- if (!open && isNotificationActive) {
11419
- setActiveStates((prev) => ({ ...prev, [key]: false }));
11420
- }
11421
- };
11422
11467
  var NotificationEmpty = ({
11423
11468
  emptyStateImage,
11424
11469
  emptyStateTitle = "Nenhuma notifica\xE7\xE3o no momento",
@@ -12148,7 +12193,7 @@ var createNotificationsHook = (apiClient) => {
12148
12193
  getSubjectIcon,
12149
12194
  getSubjectInfo,
12150
12195
  getSubjectName,
12151
- syncNotificationState,
12196
+ syncDropdownState,
12152
12197
  useApiConfig,
12153
12198
  useAuth,
12154
12199
  useAuthGuard,