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.mjs CHANGED
@@ -1,6 +1,15 @@
1
1
  // src/utils/utils.ts
2
2
  import { clsx } from "clsx";
3
3
  import { twMerge } from "tailwind-merge";
4
+
5
+ // src/utils/dropdown.ts
6
+ var syncDropdownState = (open, isActive, setActiveStates, key) => {
7
+ if (!open && isActive) {
8
+ setActiveStates((prev) => ({ ...prev, [key]: false }));
9
+ }
10
+ };
11
+
12
+ // src/utils/utils.ts
4
13
  function cn(...inputs) {
5
14
  return twMerge(clsx(inputs));
6
15
  }
@@ -1806,7 +1815,7 @@ var Input = forwardRef9(
1806
1815
  var Input_default = Input;
1807
1816
 
1808
1817
  // src/components/Search/Search.tsx
1809
- import { CaretLeft, X as X3 } from "phosphor-react";
1818
+ import { X as X3, MagnifyingGlass } from "phosphor-react";
1810
1819
  import {
1811
1820
  forwardRef as forwardRef11,
1812
1821
  useState as useState7,
@@ -2583,12 +2592,28 @@ var ProfileToggleTheme = ({ ...props }) => {
2583
2592
  setModalThemeToggle(false);
2584
2593
  };
2585
2594
  return /* @__PURE__ */ jsxs13(Fragment2, { children: [
2586
- /* @__PURE__ */ jsxs13(
2587
- "div",
2595
+ /* @__PURE__ */ jsx20(
2596
+ DropdownMenuItem,
2588
2597
  {
2589
- role: "menuitem",
2590
- "data-variant": "profile",
2591
- 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",
2598
+ variant: "profile",
2599
+ iconLeft: /* @__PURE__ */ jsx20(
2600
+ "svg",
2601
+ {
2602
+ width: "24",
2603
+ height: "24",
2604
+ viewBox: "0 0 25 25",
2605
+ fill: "none",
2606
+ xmlns: "http://www.w3.org/2000/svg",
2607
+ children: /* @__PURE__ */ jsx20(
2608
+ "path",
2609
+ {
2610
+ 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",
2611
+ fill: "currentColor"
2612
+ }
2613
+ )
2614
+ }
2615
+ ),
2616
+ iconRight: /* @__PURE__ */ jsx20(CaretRight, {}),
2592
2617
  onClick: handleClick,
2593
2618
  onKeyDown: (e) => {
2594
2619
  if (e.key === "Enter" || e.key === " ") {
@@ -2597,29 +2622,8 @@ var ProfileToggleTheme = ({ ...props }) => {
2597
2622
  setModalThemeToggle(true);
2598
2623
  }
2599
2624
  },
2600
- tabIndex: 0,
2601
2625
  ...props,
2602
- children: [
2603
- /* @__PURE__ */ jsx20(
2604
- "svg",
2605
- {
2606
- width: "25",
2607
- height: "25",
2608
- viewBox: "0 0 25 25",
2609
- fill: "none",
2610
- xmlns: "http://www.w3.org/2000/svg",
2611
- children: /* @__PURE__ */ jsx20(
2612
- "path",
2613
- {
2614
- 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",
2615
- fill: "#525252"
2616
- }
2617
- )
2618
- }
2619
- ),
2620
- /* @__PURE__ */ jsx20(Text_default, { className: "w-full", size: "md", children: "Apar\xEAncia" }),
2621
- /* @__PURE__ */ jsx20(CaretRight, {})
2622
- ]
2626
+ children: /* @__PURE__ */ jsx20(Text_default, { size: "md", color: "text-text-700", children: "Apar\xEAncia" })
2623
2627
  }
2624
2628
  ),
2625
2629
  /* @__PURE__ */ jsx20(
@@ -2674,8 +2678,8 @@ var ProfileMenuFooter = ({
2674
2678
  },
2675
2679
  ...props,
2676
2680
  children: [
2677
- /* @__PURE__ */ jsx20("span", { className: "mr-2 flex items-center", children: /* @__PURE__ */ jsx20(SignOut, {}) }),
2678
- /* @__PURE__ */ jsx20(Text_default, { children: "Sair" })
2681
+ /* @__PURE__ */ jsx20("span", { className: "mr-2 flex items-center", children: /* @__PURE__ */ jsx20(SignOut, { className: "text-inherit" }) }),
2682
+ /* @__PURE__ */ jsx20(Text_default, { color: "inherit", children: "Sair" })
2679
2683
  ]
2680
2684
  }
2681
2685
  );
@@ -2727,11 +2731,15 @@ var Search = forwardRef11(
2727
2731
  value,
2728
2732
  onChange,
2729
2733
  placeholder = "Buscar...",
2734
+ onKeyDown: userOnKeyDown,
2730
2735
  ...props
2731
2736
  }, ref) => {
2732
2737
  const [dropdownOpen, setDropdownOpen] = useState7(false);
2738
+ const [forceClose, setForceClose] = useState7(false);
2739
+ const justSelectedRef = useRef4(false);
2733
2740
  const dropdownStore = useRef4(createDropdownStore()).current;
2734
2741
  const dropdownRef = useRef4(null);
2742
+ const inputElRef = useRef4(null);
2735
2743
  const filteredOptions = useMemo2(() => {
2736
2744
  if (!options.length) {
2737
2745
  return [];
@@ -2739,24 +2747,35 @@ var Search = forwardRef11(
2739
2747
  const filtered = filterOptions(options, value || "");
2740
2748
  return filtered;
2741
2749
  }, [options, value]);
2742
- const showDropdown = controlledShowDropdown ?? (dropdownOpen && value && String(value).length > 0);
2750
+ const showDropdown = !forceClose && (controlledShowDropdown ?? (dropdownOpen && value && String(value).length > 0));
2751
+ const setOpenAndNotify = (open) => {
2752
+ setDropdownOpen(open);
2753
+ dropdownStore.setState({ open });
2754
+ onDropdownChange?.(open);
2755
+ };
2743
2756
  useEffect7(() => {
2757
+ if (justSelectedRef.current) {
2758
+ justSelectedRef.current = false;
2759
+ return;
2760
+ }
2761
+ if (forceClose) {
2762
+ setOpenAndNotify(false);
2763
+ return;
2764
+ }
2744
2765
  const shouldShow = Boolean(value && String(value).length > 0);
2745
- setDropdownOpen(shouldShow);
2746
- dropdownStore.setState({ open: shouldShow });
2747
- onDropdownChange?.(shouldShow);
2748
- }, [value, onDropdownChange, dropdownStore]);
2766
+ setOpenAndNotify(shouldShow);
2767
+ }, [value, forceClose, onDropdownChange, dropdownStore]);
2749
2768
  const handleSelectOption = (option) => {
2769
+ justSelectedRef.current = true;
2770
+ setForceClose(true);
2750
2771
  onSelect?.(option);
2751
- setDropdownOpen(false);
2752
- dropdownStore.setState({ open: false });
2772
+ setOpenAndNotify(false);
2753
2773
  updateInputValue(option, ref, onChange);
2754
2774
  };
2755
2775
  useEffect7(() => {
2756
2776
  const handleClickOutside = (event) => {
2757
2777
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
2758
- setDropdownOpen(false);
2759
- dropdownStore.setState({ open: false });
2778
+ setOpenAndNotify(false);
2760
2779
  }
2761
2780
  };
2762
2781
  if (showDropdown) {
@@ -2765,9 +2784,10 @@ var Search = forwardRef11(
2765
2784
  return () => {
2766
2785
  document.removeEventListener("mousedown", handleClickOutside);
2767
2786
  };
2768
- }, [showDropdown, dropdownStore]);
2787
+ }, [showDropdown, dropdownStore, onDropdownChange]);
2769
2788
  const generatedId = useId7();
2770
2789
  const inputId = id ?? `search-${generatedId}`;
2790
+ const dropdownId = `${inputId}-dropdown`;
2771
2791
  const handleClear = () => {
2772
2792
  if (onClear) {
2773
2793
  onClear();
@@ -2780,21 +2800,40 @@ var Search = forwardRef11(
2780
2800
  e.stopPropagation();
2781
2801
  handleClear();
2782
2802
  };
2783
- const handleLeftIconClick = () => {
2784
- if (ref && "current" in ref && ref.current) {
2785
- ref.current.blur();
2786
- }
2803
+ const handleSearchIconClick = (e) => {
2804
+ e.preventDefault();
2805
+ e.stopPropagation();
2806
+ setTimeout(() => {
2807
+ inputElRef.current?.focus();
2808
+ }, 0);
2787
2809
  };
2788
2810
  const handleInputChange = (e) => {
2811
+ setForceClose(false);
2789
2812
  onChange?.(e);
2790
2813
  onSearch?.(e.target.value);
2791
2814
  };
2815
+ const handleKeyDown = (e) => {
2816
+ userOnKeyDown?.(e);
2817
+ if (e.defaultPrevented) return;
2818
+ if (e.key === "Enter") {
2819
+ e.preventDefault();
2820
+ if (showDropdown && filteredOptions.length > 0) {
2821
+ handleSelectOption(filteredOptions[0]);
2822
+ } else if (value) {
2823
+ onSearch?.(String(value));
2824
+ setForceClose(true);
2825
+ setOpenAndNotify(false);
2826
+ }
2827
+ }
2828
+ };
2792
2829
  const getInputStateClasses = (disabled2, readOnly2) => {
2793
2830
  if (disabled2) return "cursor-not-allowed opacity-40";
2794
2831
  if (readOnly2) return "cursor-default focus:outline-none !text-text-900";
2795
2832
  return "hover:border-border-400";
2796
2833
  };
2797
- const showClearButton = value && !disabled && !readOnly;
2834
+ const hasValue = String(value ?? "").length > 0;
2835
+ const showClearButton = hasValue && !disabled && !readOnly;
2836
+ const showSearchIcon = !hasValue && !disabled && !readOnly;
2798
2837
  return /* @__PURE__ */ jsxs14(
2799
2838
  "div",
2800
2839
  {
@@ -2802,30 +2841,30 @@ var Search = forwardRef11(
2802
2841
  className: `w-full max-w-lg md:w-[488px] ${containerClassName}`,
2803
2842
  children: [
2804
2843
  /* @__PURE__ */ jsxs14("div", { className: "relative flex items-center", children: [
2805
- /* @__PURE__ */ jsx21("div", { className: "absolute left-3 top-1/2 transform -translate-y-1/2", children: /* @__PURE__ */ jsx21(
2806
- "button",
2807
- {
2808
- type: "button",
2809
- 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",
2810
- onClick: handleLeftIconClick,
2811
- "aria-label": "Voltar",
2812
- children: /* @__PURE__ */ jsx21(CaretLeft, {})
2813
- }
2814
- ) }),
2815
2844
  /* @__PURE__ */ jsx21(
2816
2845
  "input",
2817
2846
  {
2818
- ref,
2847
+ ref: (node) => {
2848
+ if (ref) {
2849
+ if (typeof ref === "function") ref(node);
2850
+ else
2851
+ ref.current = node;
2852
+ }
2853
+ inputElRef.current = node;
2854
+ },
2819
2855
  id: inputId,
2820
2856
  type: "text",
2821
- 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}`,
2857
+ 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}`,
2822
2858
  value,
2823
2859
  onChange: handleInputChange,
2860
+ onKeyDown: handleKeyDown,
2824
2861
  disabled,
2825
2862
  readOnly,
2826
2863
  placeholder,
2827
2864
  "aria-expanded": showDropdown ? "true" : void 0,
2828
2865
  "aria-haspopup": options.length > 0 ? "listbox" : void 0,
2866
+ "aria-controls": showDropdown ? dropdownId : void 0,
2867
+ "aria-autocomplete": "list",
2829
2868
  role: options.length > 0 ? "combobox" : void 0,
2830
2869
  ...props
2831
2870
  }
@@ -2839,11 +2878,22 @@ var Search = forwardRef11(
2839
2878
  "aria-label": "Limpar busca",
2840
2879
  children: /* @__PURE__ */ jsx21("span", { className: "w-6 h-6 text-text-800 flex items-center justify-center hover:text-text-600 transition-colors", children: /* @__PURE__ */ jsx21(X3, {}) })
2841
2880
  }
2881
+ ) }),
2882
+ showSearchIcon && /* @__PURE__ */ jsx21("div", { className: "absolute right-3 top-1/2 transform -translate-y-1/2", children: /* @__PURE__ */ jsx21(
2883
+ "button",
2884
+ {
2885
+ type: "button",
2886
+ className: "p-0 border-0 bg-transparent cursor-pointer",
2887
+ onMouseDown: handleSearchIconClick,
2888
+ "aria-label": "Buscar",
2889
+ children: /* @__PURE__ */ jsx21("span", { className: "w-6 h-6 text-text-800 flex items-center justify-center hover:text-text-600 transition-colors", children: /* @__PURE__ */ jsx21(MagnifyingGlass, {}) })
2890
+ }
2842
2891
  ) })
2843
2892
  ] }),
2844
2893
  showDropdown && /* @__PURE__ */ jsx21(DropdownMenu_default, { open: showDropdown, onOpenChange: setDropdownOpen, children: /* @__PURE__ */ jsx21(
2845
2894
  DropdownMenuContent,
2846
2895
  {
2896
+ id: dropdownId,
2847
2897
  className: "w-full mt-1",
2848
2898
  style: { maxHeight: dropdownMaxHeight },
2849
2899
  align: "start",
@@ -7042,7 +7092,7 @@ import {
7042
7092
  cloneElement as cloneElement6,
7043
7093
  useState as useState14
7044
7094
  } from "react";
7045
- import { CaretLeft as CaretLeft2, CaretRight as CaretRight4 } from "phosphor-react";
7095
+ import { CaretLeft, CaretRight as CaretRight4 } from "phosphor-react";
7046
7096
  import { jsx as jsx41, jsxs as jsxs29 } from "react/jsx-runtime";
7047
7097
  var createMenuStore = (onValueChange) => create7((set) => ({
7048
7098
  value: "",
@@ -7308,7 +7358,7 @@ var MenuOverflow = ({
7308
7358
  className: "absolute left-0 top-1/2 -translate-y-1/2 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white shadow-md cursor-pointer",
7309
7359
  "data-testid": "scroll-left-button",
7310
7360
  children: [
7311
- /* @__PURE__ */ jsx41(CaretLeft2, { size: 16 }),
7361
+ /* @__PURE__ */ jsx41(CaretLeft, { size: 16 }),
7312
7362
  /* @__PURE__ */ jsx41("span", { className: "sr-only", children: "Scroll left" })
7313
7363
  ]
7314
7364
  }
@@ -8791,7 +8841,7 @@ function useApiConfig(api) {
8791
8841
  // src/components/Quiz/Quiz.tsx
8792
8842
  import {
8793
8843
  BookOpen,
8794
- CaretLeft as CaretLeft3,
8844
+ CaretLeft as CaretLeft2,
8795
8845
  CaretRight as CaretRight5,
8796
8846
  Clock as Clock2,
8797
8847
  SquaresFour
@@ -10251,7 +10301,7 @@ var QuizTitle = forwardRef20(
10251
10301
  /* @__PURE__ */ jsx48(
10252
10302
  IconButton_default,
10253
10303
  {
10254
- icon: /* @__PURE__ */ jsx48(CaretLeft3, { size: 24 }),
10304
+ icon: /* @__PURE__ */ jsx48(CaretLeft2, { size: 24 }),
10255
10305
  size: "md",
10256
10306
  "aria-label": "Voltar",
10257
10307
  onClick: handleBackClick
@@ -10508,7 +10558,7 @@ var QuizFooter = forwardRef20(
10508
10558
  size: "medium",
10509
10559
  variant: "link",
10510
10560
  action: "primary",
10511
- iconLeft: /* @__PURE__ */ jsx48(CaretLeft3, { size: 18 }),
10561
+ iconLeft: /* @__PURE__ */ jsx48(CaretLeft2, { size: 18 }),
10512
10562
  onClick: () => {
10513
10563
  goToPreviousQuestion();
10514
10564
  },
@@ -11386,11 +11436,6 @@ var mock_content_default = "./mock-content-K2CDVG6P.png";
11386
11436
 
11387
11437
  // src/components/NotificationCard/NotificationCard.tsx
11388
11438
  import { Fragment as Fragment12, jsx as jsx51, jsxs as jsxs38 } from "react/jsx-runtime";
11389
- var syncNotificationState = (open, isNotificationActive, setActiveStates, key = "notifications") => {
11390
- if (!open && isNotificationActive) {
11391
- setActiveStates((prev) => ({ ...prev, [key]: false }));
11392
- }
11393
- };
11394
11439
  var NotificationEmpty = ({
11395
11440
  emptyStateImage,
11396
11441
  emptyStateTitle = "Nenhuma notifica\xE7\xE3o no momento",
@@ -12119,7 +12164,7 @@ export {
12119
12164
  getSubjectIcon,
12120
12165
  getSubjectInfo,
12121
12166
  getSubjectName,
12122
- syncNotificationState,
12167
+ syncDropdownState,
12123
12168
  useApiConfig,
12124
12169
  useAuth,
12125
12170
  useAuthGuard,