analytica-frontend-lib 1.0.25 → 1.0.26

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.
@@ -41,7 +41,7 @@ var VARIANT_ACTION_CLASSES = {
41
41
  muted: "bg-background-muted text-background-800 border border-border-300 focus-visible:outline-none"
42
42
  },
43
43
  exams: {
44
- exam1: "bg-exam-1 text-info-200 focus-visible:outline-none",
44
+ exam1: "bg-exam-1 text-info-700 focus-visible:outline-none",
45
45
  exam2: "bg-exam-2 text-typography-1 focus-visible:outline-none",
46
46
  exam3: "bg-exam-3 text-typography-2 focus-visible:outline-none",
47
47
  exam4: "bg-exam-4 text-success-700 focus-visible:outline-none"
@@ -77,7 +77,7 @@ var Badge = ({
77
77
  const sizeClassesIcon = SIZE_CLASSES_ICON[size];
78
78
  const variantActionMap = VARIANT_ACTION_CLASSES[variant] || {};
79
79
  const variantClasses = typeof variantActionMap === "string" ? variantActionMap : variantActionMap[action] ?? variantActionMap.muted ?? "";
80
- const baseClasses = "inline-flex items-center justify-center rounded-xs font-medium gap-1 relative";
80
+ const baseClasses = "inline-flex items-center justify-center rounded-xs font-normal gap-1 relative";
81
81
  const baseClassesIcon = "flex items-center";
82
82
  if (variant === "notification") {
83
83
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
@@ -17,7 +17,7 @@ var VARIANT_ACTION_CLASSES = {
17
17
  muted: "bg-background-muted text-background-800 border border-border-300 focus-visible:outline-none"
18
18
  },
19
19
  exams: {
20
- exam1: "bg-exam-1 text-info-200 focus-visible:outline-none",
20
+ exam1: "bg-exam-1 text-info-700 focus-visible:outline-none",
21
21
  exam2: "bg-exam-2 text-typography-1 focus-visible:outline-none",
22
22
  exam3: "bg-exam-3 text-typography-2 focus-visible:outline-none",
23
23
  exam4: "bg-exam-4 text-success-700 focus-visible:outline-none"
@@ -53,7 +53,7 @@ var Badge = ({
53
53
  const sizeClassesIcon = SIZE_CLASSES_ICON[size];
54
54
  const variantActionMap = VARIANT_ACTION_CLASSES[variant] || {};
55
55
  const variantClasses = typeof variantActionMap === "string" ? variantActionMap : variantActionMap[action] ?? variantActionMap.muted ?? "";
56
- const baseClasses = "inline-flex items-center justify-center rounded-xs font-medium gap-1 relative";
56
+ const baseClasses = "inline-flex items-center justify-center rounded-xs font-normal gap-1 relative";
57
57
  const baseClassesIcon = "flex items-center";
58
58
  if (variant === "notification") {
59
59
  return /* @__PURE__ */ jsxs(
@@ -33,9 +33,9 @@ var VARIANT_ACTION_CLASSES = {
33
33
  info: "bg-info text-info-800 border-none focus-visible:outline-none"
34
34
  },
35
35
  outlined: {
36
- warning: "bg-warning text-warning-800 border border-warning-200 focus-visible:outline-none",
36
+ warning: "bg-warning text-warning-600 border border-warning-300 focus-visible:outline-none",
37
37
  success: "bg-success text-success-800 border border-success-200 focus-visible:outline-none",
38
- info: "bg-info text-info-800 border border-info-200 focus-visible:outline-none"
38
+ info: "bg-info text-info-600 border border-info-600 focus-visible:outline-none"
39
39
  }
40
40
  };
41
41
  var iconMap = {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Toast
4
- } from "../chunk-MI5FIRHM.mjs";
4
+ } from "../chunk-XYTNJU4A.mjs";
5
5
  export {
6
6
  Toast
7
7
  };
@@ -16,4 +16,4 @@ type ToastStore = {
16
16
  };
17
17
  declare const useToastStore: zustand.UseBoundStore<zustand.StoreApi<ToastStore>>;
18
18
 
19
- export { type ToastData, useToastStore };
19
+ export { useToastStore };
@@ -16,4 +16,4 @@ type ToastStore = {
16
16
  };
17
17
  declare const useToastStore: zustand.UseBoundStore<zustand.StoreApi<ToastStore>>;
18
18
 
19
- export { type ToastData, useToastStore };
19
+ export { useToastStore };
@@ -1,10 +1,15 @@
1
- import { ToastData } from './ToastStore.mjs';
2
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import 'zustand';
4
2
 
5
3
  declare const Toaster: () => react_jsx_runtime.JSX.Element;
6
4
  declare const useToast: () => {
7
- addToast: (toast: Omit<ToastData, "id">) => void;
5
+ addToast: (toast: Omit<{
6
+ id: string;
7
+ title: string;
8
+ description?: string;
9
+ variant?: "solid" | "outlined";
10
+ action?: "warning" | "success" | "info";
11
+ position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "default";
12
+ }, "id">) => void;
8
13
  removeToast: (id: string) => void;
9
14
  };
10
15
 
@@ -1,10 +1,15 @@
1
- import { ToastData } from './ToastStore.js';
2
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import 'zustand';
4
2
 
5
3
  declare const Toaster: () => react_jsx_runtime.JSX.Element;
6
4
  declare const useToast: () => {
7
- addToast: (toast: Omit<ToastData, "id">) => void;
5
+ addToast: (toast: Omit<{
6
+ id: string;
7
+ title: string;
8
+ description?: string;
9
+ variant?: "solid" | "outlined";
10
+ action?: "warning" | "success" | "info";
11
+ position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "default";
12
+ }, "id">) => void;
8
13
  removeToast: (id: string) => void;
9
14
  };
10
15
 
@@ -53,9 +53,9 @@ var VARIANT_ACTION_CLASSES = {
53
53
  info: "bg-info text-info-800 border-none focus-visible:outline-none"
54
54
  },
55
55
  outlined: {
56
- warning: "bg-warning text-warning-800 border border-warning-200 focus-visible:outline-none",
56
+ warning: "bg-warning text-warning-600 border border-warning-300 focus-visible:outline-none",
57
57
  success: "bg-success text-success-800 border border-success-200 focus-visible:outline-none",
58
- info: "bg-info text-info-800 border border-info-200 focus-visible:outline-none"
58
+ info: "bg-info text-info-600 border border-info-600 focus-visible:outline-none"
59
59
  }
60
60
  };
61
61
  var iconMap = {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Toast
4
- } from "../../chunk-MI5FIRHM.mjs";
4
+ } from "../../chunk-XYTNJU4A.mjs";
5
5
  import {
6
6
  useToastStore
7
7
  } from "../../chunk-WIOCQOM7.mjs";
@@ -8,9 +8,9 @@ var VARIANT_ACTION_CLASSES = {
8
8
  info: "bg-info text-info-800 border-none focus-visible:outline-none"
9
9
  },
10
10
  outlined: {
11
- warning: "bg-warning text-warning-800 border border-warning-200 focus-visible:outline-none",
11
+ warning: "bg-warning text-warning-600 border border-warning-300 focus-visible:outline-none",
12
12
  success: "bg-success text-success-800 border border-success-200 focus-visible:outline-none",
13
- info: "bg-info text-info-800 border border-info-200 focus-visible:outline-none"
13
+ info: "bg-info text-info-600 border border-info-600 focus-visible:outline-none"
14
14
  }
15
15
  };
16
16
  var iconMap = {
package/dist/index.css CHANGED
@@ -110,12 +110,13 @@
110
110
  --color-error-700: #b91c1c;
111
111
  --color-error-800: #991b1b;
112
112
  --color-warning: #fff9f5;
113
- --color-warning-200: #fecdaa;
114
113
  --color-warning-300: #fdad74;
114
+ --color-warning-600: #d76c1f;
115
115
  --color-warning-800: #824417;
116
116
  --color-info: #ecf8fe;
117
- --color-info-200: #7ccff8;
118
117
  --color-info-300: #57c2f6;
118
+ --color-info-600: #0b8dcd;
119
+ --color-info-700: #0973a8;
119
120
  --color-info-800: #075a83;
120
121
  --color-indicator-primary: #373737;
121
122
  --color-indicator-info: #5399ec;
@@ -728,12 +729,12 @@
728
729
  .border-indicator-primary {
729
730
  border-color: var(--color-indicator-primary);
730
731
  }
731
- .border-info-200 {
732
- border-color: var(--color-info-200);
733
- }
734
732
  .border-info-300 {
735
733
  border-color: var(--color-info-300);
736
734
  }
735
+ .border-info-600 {
736
+ border-color: var(--color-info-600);
737
+ }
737
738
  .border-primary-600 {
738
739
  border-color: var(--color-primary-600);
739
740
  }
@@ -758,9 +759,6 @@
758
759
  .border-transparent {
759
760
  border-color: transparent;
760
761
  }
761
- .border-warning-200 {
762
- border-color: var(--color-warning-200);
763
- }
764
762
  .border-warning-300 {
765
763
  border-color: var(--color-warning-300);
766
764
  }
@@ -1007,8 +1005,11 @@
1007
1005
  .text-gray-800 {
1008
1006
  color: var(--color-gray-800);
1009
1007
  }
1010
- .text-info-200 {
1011
- color: var(--color-info-200);
1008
+ .text-info-600 {
1009
+ color: var(--color-info-600);
1010
+ }
1011
+ .text-info-700 {
1012
+ color: var(--color-info-700);
1012
1013
  }
1013
1014
  .text-info-800 {
1014
1015
  color: var(--color-info-800);
@@ -1058,6 +1059,9 @@
1058
1059
  .text-typography-2 {
1059
1060
  color: var(--color-typography-2);
1060
1061
  }
1062
+ .text-warning-600 {
1063
+ color: var(--color-warning-600);
1064
+ }
1061
1065
  .text-warning-800 {
1062
1066
  color: var(--color-warning-800);
1063
1067
  }
package/dist/index.d.mts CHANGED
@@ -486,6 +486,8 @@ type ToastProps = {
486
486
  } & HTMLAttributes<HTMLDivElement>;
487
487
  declare const Toast: ({ variant, action, className, onClose, title, description, position, ...props }: ToastProps) => react_jsx_runtime.JSX.Element;
488
488
 
489
+ declare const Toaster: () => react_jsx_runtime.JSX.Element;
490
+
489
491
  type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'default';
490
492
  type ToastData = {
491
493
  id: string;
@@ -502,6 +504,4 @@ type ToastStore = {
502
504
  };
503
505
  declare const useToastStore: zustand.UseBoundStore<zustand.StoreApi<ToastStore>>;
504
506
 
505
- declare const Toaster: () => react_jsx_runtime.JSX.Element;
506
-
507
- export { Alert, Badge, Button, CheckBox, DropdownMenu, MenuContent as DropdownMenuContent, MenuItem as DropdownMenuItem, MenuLabel as DropdownMenuLabel, MenuSeparator as DropdownMenuSeparator, DropdownMenuTrigger, IconButton, IconRoundedButton, NavButton, SelectionButton, Table, Text, TextArea, Toast, type ToastData, Toaster, useToastStore };
507
+ export { Alert, Badge, Button, CheckBox, DropdownMenu, MenuContent as DropdownMenuContent, MenuItem as DropdownMenuItem, MenuLabel as DropdownMenuLabel, MenuSeparator as DropdownMenuSeparator, DropdownMenuTrigger, IconButton, IconRoundedButton, NavButton, SelectionButton, Table, Text, TextArea, Toast, Toaster, useToastStore };
package/dist/index.d.ts CHANGED
@@ -486,6 +486,8 @@ type ToastProps = {
486
486
  } & HTMLAttributes<HTMLDivElement>;
487
487
  declare const Toast: ({ variant, action, className, onClose, title, description, position, ...props }: ToastProps) => react_jsx_runtime.JSX.Element;
488
488
 
489
+ declare const Toaster: () => react_jsx_runtime.JSX.Element;
490
+
489
491
  type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'default';
490
492
  type ToastData = {
491
493
  id: string;
@@ -502,6 +504,4 @@ type ToastStore = {
502
504
  };
503
505
  declare const useToastStore: zustand.UseBoundStore<zustand.StoreApi<ToastStore>>;
504
506
 
505
- declare const Toaster: () => react_jsx_runtime.JSX.Element;
506
-
507
- export { Alert, Badge, Button, CheckBox, DropdownMenu, MenuContent as DropdownMenuContent, MenuItem as DropdownMenuItem, MenuLabel as DropdownMenuLabel, MenuSeparator as DropdownMenuSeparator, DropdownMenuTrigger, IconButton, IconRoundedButton, NavButton, SelectionButton, Table, Text, TextArea, Toast, type ToastData, Toaster, useToastStore };
507
+ export { Alert, Badge, Button, CheckBox, DropdownMenu, MenuContent as DropdownMenuContent, MenuItem as DropdownMenuItem, MenuLabel as DropdownMenuLabel, MenuSeparator as DropdownMenuSeparator, DropdownMenuTrigger, IconButton, IconRoundedButton, NavButton, SelectionButton, Table, Text, TextArea, Toast, Toaster, useToastStore };