analytica-frontend-lib 1.1.69 → 1.1.71

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 (103) hide show
  1. package/dist/Accordation/index.js +3 -3
  2. package/dist/Accordation/index.js.map +1 -1
  3. package/dist/Accordation/index.mjs +3 -3
  4. package/dist/Accordation/index.mjs.map +1 -1
  5. package/dist/Alert/index.js.map +1 -1
  6. package/dist/Alert/index.mjs.map +1 -1
  7. package/dist/AlertDialog/index.js.map +1 -1
  8. package/dist/AlertDialog/index.mjs.map +1 -1
  9. package/dist/Alternative/index.js.map +1 -1
  10. package/dist/Alternative/index.mjs.map +1 -1
  11. package/dist/Badge/index.js.map +1 -1
  12. package/dist/Badge/index.mjs.map +1 -1
  13. package/dist/Button/index.js.map +1 -1
  14. package/dist/Button/index.mjs.map +1 -1
  15. package/dist/Calendar/index.js +1 -1
  16. package/dist/Calendar/index.js.map +1 -1
  17. package/dist/Calendar/index.mjs +1 -1
  18. package/dist/Calendar/index.mjs.map +1 -1
  19. package/dist/Card/index.js +3 -3
  20. package/dist/Card/index.js.map +1 -1
  21. package/dist/Card/index.mjs +3 -3
  22. package/dist/Card/index.mjs.map +1 -1
  23. package/dist/CheckBox/index.js.map +1 -1
  24. package/dist/CheckBox/index.mjs.map +1 -1
  25. package/dist/Chips/index.js.map +1 -1
  26. package/dist/Chips/index.mjs.map +1 -1
  27. package/dist/Divider/index.js.map +1 -1
  28. package/dist/Divider/index.mjs.map +1 -1
  29. package/dist/DropdownMenu/index.js.map +1 -1
  30. package/dist/DropdownMenu/index.mjs.map +1 -1
  31. package/dist/IconButton/index.js.map +1 -1
  32. package/dist/IconButton/index.mjs.map +1 -1
  33. package/dist/IconRoundedButton/index.js.map +1 -1
  34. package/dist/IconRoundedButton/index.mjs.map +1 -1
  35. package/dist/Menu/index.js.map +1 -1
  36. package/dist/Menu/index.mjs.map +1 -1
  37. package/dist/Modal/index.js.map +1 -1
  38. package/dist/Modal/index.mjs.map +1 -1
  39. package/dist/MultipleChoice/index.js.map +1 -1
  40. package/dist/MultipleChoice/index.mjs.map +1 -1
  41. package/dist/NavButton/index.js.map +1 -1
  42. package/dist/NavButton/index.mjs.map +1 -1
  43. package/dist/NotFound/index.js.map +1 -1
  44. package/dist/NotFound/index.mjs.map +1 -1
  45. package/dist/NotificationCard/index.js.map +1 -1
  46. package/dist/NotificationCard/index.mjs.map +1 -1
  47. package/dist/ProgressBar/index.js.map +1 -1
  48. package/dist/ProgressBar/index.mjs.map +1 -1
  49. package/dist/ProgressCircle/index.js.map +1 -1
  50. package/dist/ProgressCircle/index.mjs.map +1 -1
  51. package/dist/Quiz/index.js +4 -4
  52. package/dist/Quiz/index.js.map +1 -1
  53. package/dist/Quiz/index.mjs +4 -4
  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.map +1 -1
  58. package/dist/Search/index.mjs.map +1 -1
  59. package/dist/Select/index.js.map +1 -1
  60. package/dist/Select/index.mjs.map +1 -1
  61. package/dist/SelectionButton/index.js.map +1 -1
  62. package/dist/SelectionButton/index.mjs.map +1 -1
  63. package/dist/Skeleton/index.js.map +1 -1
  64. package/dist/Skeleton/index.mjs.map +1 -1
  65. package/dist/Stepper/index.js.map +1 -1
  66. package/dist/Stepper/index.mjs.map +1 -1
  67. package/dist/Table/index.js.map +1 -1
  68. package/dist/Table/index.mjs.map +1 -1
  69. package/dist/Text/index.js.map +1 -1
  70. package/dist/Text/index.mjs.map +1 -1
  71. package/dist/TextArea/index.js.map +1 -1
  72. package/dist/TextArea/index.mjs.map +1 -1
  73. package/dist/ThemeToggle/index.js.map +1 -1
  74. package/dist/ThemeToggle/index.mjs.map +1 -1
  75. package/dist/Toast/Toaster/index.js.map +1 -1
  76. package/dist/Toast/Toaster/index.mjs.map +1 -1
  77. package/dist/Toast/index.js.map +1 -1
  78. package/dist/Toast/index.mjs.map +1 -1
  79. package/dist/VideoPlayer/index.js +2 -2
  80. package/dist/VideoPlayer/index.js.map +1 -1
  81. package/dist/VideoPlayer/index.mjs +2 -2
  82. package/dist/VideoPlayer/index.mjs.map +1 -1
  83. package/dist/Whiteboard/index.js +1 -1
  84. package/dist/Whiteboard/index.js.map +1 -1
  85. package/dist/Whiteboard/index.mjs +1 -1
  86. package/dist/Whiteboard/index.mjs.map +1 -1
  87. package/dist/index.css +3 -20
  88. package/dist/index.css.map +1 -1
  89. package/dist/index.d.mts +1 -1
  90. package/dist/index.d.ts +1 -1
  91. package/dist/index.js +30 -8
  92. package/dist/index.js.map +1 -1
  93. package/dist/index.mjs +29 -8
  94. package/dist/index.mjs.map +1 -1
  95. package/dist/styles.css +3 -20
  96. package/dist/styles.css.map +1 -1
  97. package/dist/utils/index.d.mts +10 -1
  98. package/dist/utils/index.d.ts +10 -1
  99. package/dist/utils/index.js +24 -2
  100. package/dist/utils/index.js.map +1 -1
  101. package/dist/utils/index.mjs +22 -1
  102. package/dist/utils/index.mjs.map +1 -1
  103. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -4,6 +4,26 @@ import { twMerge } from "tailwind-merge";
4
4
  function cn(...inputs) {
5
5
  return twMerge(clsx(inputs));
6
6
  }
7
+ function getSubjectColorWithOpacity(hexColor, isDark) {
8
+ if (!hexColor) return void 0;
9
+ let color = hexColor.replace(/^#/, "").toLowerCase();
10
+ if (isDark) {
11
+ if (color.length === 8) {
12
+ color = color.slice(0, 6);
13
+ }
14
+ return `#${color}`;
15
+ } else {
16
+ let resultColor;
17
+ if (color.length === 6) {
18
+ resultColor = `#${color}b3`;
19
+ } else if (color.length === 8) {
20
+ resultColor = `#${color}`;
21
+ } else {
22
+ resultColor = `#${color}`;
23
+ }
24
+ return resultColor;
25
+ }
26
+ }
7
27
 
8
28
  // src/components/Text/Text.tsx
9
29
  import { jsx } from "react/jsx-runtime";
@@ -3880,7 +3900,7 @@ var MonthYearPicker = ({
3880
3900
  "div",
3881
3901
  {
3882
3902
  ref: monthPickerRef,
3883
- className: "absolute top-full left-0 z-50 mt-1 bg-white rounded-lg shadow-lg border border-border-200 p-4 min-w-[280px]",
3903
+ className: "absolute top-full left-0 z-50 mt-1 bg-background rounded-lg shadow-lg border border-border-200 p-4 min-w-[280px]",
3884
3904
  children: [
3885
3905
  /* @__PURE__ */ jsxs19("div", { className: "mb-4", children: [
3886
3906
  /* @__PURE__ */ jsx26("h3", { className: "text-sm font-medium text-text-700 mb-2", children: "Selecionar Ano" }),
@@ -4587,8 +4607,8 @@ var ACTION_CARD_CLASSES = {
4587
4607
  };
4588
4608
  var ACTION_ICON_CLASSES = {
4589
4609
  warning: "bg-warning-300 text-text",
4590
- success: "bg-yellow-300 text-text-950",
4591
- error: "bg-error-500 text-text",
4610
+ success: "bg-indicator-positive text-text-950",
4611
+ error: "bg-indicator-negative text-text",
4592
4612
  info: "bg-info-500 text-text"
4593
4613
  };
4594
4614
  var ACTION_SUBTITLE_CLASSES = {
@@ -5728,7 +5748,7 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
5728
5748
  "div",
5729
5749
  {
5730
5750
  className: cn(
5731
- "flex flex-row justify-center items-start px-4 py-6 gap-2 w-full bg-white",
5751
+ "flex flex-row justify-center items-start px-4 py-6 gap-2 w-full bg-background",
5732
5752
  sectionIndex === 0 ? "rounded-t-3xl" : ""
5733
5753
  ),
5734
5754
  children: [
@@ -7705,7 +7725,7 @@ var SpeedMenu = ({
7705
7725
  ref: speedMenuRef,
7706
7726
  role: "menu",
7707
7727
  "aria-label": "Playback speed",
7708
- className: isFullscreen ? "absolute bottom-12 right-0 bg-black/90 rounded-lg p-2 min-w-20 z-[9999]" : "fixed bg-black/90 rounded-lg p-2 min-w-20 z-[9999]",
7728
+ className: isFullscreen ? "absolute bottom-12 right-0 bg-background border border-border-100 rounded-lg shadow-lg p-2 min-w-24 z-[9999]" : "fixed bg-background border border-border-100 rounded-lg shadow-lg p-2 min-w-24 z-[9999]",
7709
7729
  style: !isFullscreen ? {
7710
7730
  top: `${position.top}px`,
7711
7731
  left: `${position.left}px`
@@ -7716,7 +7736,7 @@ var SpeedMenu = ({
7716
7736
  role: "menuitemradio",
7717
7737
  "aria-checked": playbackRate === speed,
7718
7738
  onClick: () => onSpeedChange(speed),
7719
- className: `block w-full text-left px-3 py-1 text-sm rounded hover:bg-white/20 transition-colors ${playbackRate === speed ? "text-primary-400" : "text-white"}`,
7739
+ className: `block w-full text-left px-3 py-1 text-sm rounded hover:bg-border-50 transition-colors ${playbackRate === speed ? "bg-primary-950 text-secondary-100 font-medium" : "text-text-950"}`,
7720
7740
  children: [
7721
7741
  speed,
7722
7742
  "x"
@@ -8342,7 +8362,7 @@ var Whiteboard = ({
8342
8362
  "div",
8343
8363
  {
8344
8364
  className: cn(
8345
- "flex items-center justify-center p-8 bg-white border border-gray-100 rounded-xl",
8365
+ "flex items-center justify-center p-8 bg-background border border-gray-100 rounded-xl",
8346
8366
  className
8347
8367
  ),
8348
8368
  ...rest,
@@ -9902,7 +9922,7 @@ var QuizFill = ({ paddingBottom }) => {
9902
9922
  onValueChange: (value) => handleSelectChange(selectId, value),
9903
9923
  className: "inline-flex mb-2.5",
9904
9924
  children: [
9905
- /* @__PURE__ */ jsx47(SelectTrigger, { className: "inline-flex w-auto min-w-[140px] h-8 mx-1 bg-white border-gray-300", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Selecione op\xE7\xE3o" }) }),
9925
+ /* @__PURE__ */ jsx47(SelectTrigger, { className: "inline-flex w-auto min-w-[140px] h-8 mx-1 bg-background border-gray-300", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Selecione op\xE7\xE3o" }) }),
9906
9926
  /* @__PURE__ */ jsx47(SelectContent, { children: availableOptionsForThisSelect.map((option, index) => /* @__PURE__ */ jsx47(SelectItem, { value: option, children: option }, `${option}-${index}`)) })
9907
9927
  ]
9908
9928
  },
@@ -12095,6 +12115,7 @@ export {
12095
12115
  getRootDomain,
12096
12116
  getStatusBadge,
12097
12117
  getSubjectColorClass,
12118
+ getSubjectColorWithOpacity,
12098
12119
  getSubjectIcon,
12099
12120
  getSubjectInfo,
12100
12121
  getSubjectName,