analytica-frontend-lib 1.1.71 → 1.1.72

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 +24 -29
  58. package/dist/Search/index.js.map +1 -1
  59. package/dist/Search/index.mjs +24 -29
  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 +35 -36
  88. package/dist/index.js.map +1 -1
  89. package/dist/index.mjs +34 -35
  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
@@ -940,12 +940,28 @@ var ProfileToggleTheme = ({ ...props }) => {
940
940
  setModalThemeToggle(false);
941
941
  };
942
942
  return /* @__PURE__ */ jsxs4(Fragment, { children: [
943
- /* @__PURE__ */ jsxs4(
944
- "div",
943
+ /* @__PURE__ */ jsx6(
944
+ DropdownMenuItem,
945
945
  {
946
- role: "menuitem",
947
- "data-variant": "profile",
948
- 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",
946
+ variant: "profile",
947
+ iconLeft: /* @__PURE__ */ jsx6(
948
+ "svg",
949
+ {
950
+ width: "24",
951
+ height: "24",
952
+ viewBox: "0 0 25 25",
953
+ fill: "none",
954
+ xmlns: "http://www.w3.org/2000/svg",
955
+ children: /* @__PURE__ */ jsx6(
956
+ "path",
957
+ {
958
+ 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",
959
+ fill: "currentColor"
960
+ }
961
+ )
962
+ }
963
+ ),
964
+ iconRight: /* @__PURE__ */ jsx6(CaretRight, {}),
949
965
  onClick: handleClick,
950
966
  onKeyDown: (e) => {
951
967
  if (e.key === "Enter" || e.key === " ") {
@@ -954,29 +970,8 @@ var ProfileToggleTheme = ({ ...props }) => {
954
970
  setModalThemeToggle(true);
955
971
  }
956
972
  },
957
- tabIndex: 0,
958
973
  ...props,
959
- children: [
960
- /* @__PURE__ */ jsx6(
961
- "svg",
962
- {
963
- width: "25",
964
- height: "25",
965
- viewBox: "0 0 25 25",
966
- fill: "none",
967
- xmlns: "http://www.w3.org/2000/svg",
968
- children: /* @__PURE__ */ jsx6(
969
- "path",
970
- {
971
- 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",
972
- fill: "#525252"
973
- }
974
- )
975
- }
976
- ),
977
- /* @__PURE__ */ jsx6(Text_default, { className: "w-full", size: "md", children: "Apar\xEAncia" }),
978
- /* @__PURE__ */ jsx6(CaretRight, {})
979
- ]
974
+ children: /* @__PURE__ */ jsx6(Text_default, { size: "md", color: "text-text-700", children: "Apar\xEAncia" })
980
975
  }
981
976
  ),
982
977
  /* @__PURE__ */ jsx6(
@@ -1031,8 +1026,8 @@ var ProfileMenuFooter = ({
1031
1026
  },
1032
1027
  ...props,
1033
1028
  children: [
1034
- /* @__PURE__ */ jsx6("span", { className: "mr-2 flex items-center", children: /* @__PURE__ */ jsx6(SignOut, {}) }),
1035
- /* @__PURE__ */ jsx6(Text_default, { children: "Sair" })
1029
+ /* @__PURE__ */ jsx6("span", { className: "mr-2 flex items-center", children: /* @__PURE__ */ jsx6(SignOut, { className: "text-inherit" }) }),
1030
+ /* @__PURE__ */ jsx6(Text_default, { color: "inherit", children: "Sair" })
1036
1031
  ]
1037
1032
  }
1038
1033
  );
@@ -1436,11 +1431,6 @@ var mock_content_default = "../mock-content-K2CDVG6P.png";
1436
1431
 
1437
1432
  // src/components/NotificationCard/NotificationCard.tsx
1438
1433
  import { Fragment as Fragment2, jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
1439
- var syncNotificationState = (open, isNotificationActive, setActiveStates, key = "notifications") => {
1440
- if (!open && isNotificationActive) {
1441
- setActiveStates((prev) => ({ ...prev, [key]: false }));
1442
- }
1443
- };
1444
1434
  var NotificationEmpty = ({
1445
1435
  emptyStateImage,
1446
1436
  emptyStateTitle = "Nenhuma notifica\xE7\xE3o no momento",
@@ -1997,7 +1987,6 @@ var LegacyNotificationCard = (props) => {
1997
1987
  var NotificationCard_default = NotificationCard;
1998
1988
  export {
1999
1989
  LegacyNotificationCard,
2000
- NotificationCard_default as default,
2001
- syncNotificationState
1990
+ NotificationCard_default as default
2002
1991
  };
2003
1992
  //# sourceMappingURL=index.mjs.map