analytica-frontend-lib 1.1.35 → 1.1.36

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.
@@ -69,6 +69,6 @@ declare const CheckBox: react.ForwardRefExoticComponent<{
69
69
  className?: string;
70
70
  /** Label CSS classes */
71
71
  labelClassName?: string;
72
- } & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & react.RefAttributes<HTMLInputElement>>;
72
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & react.RefAttributes<HTMLInputElement>>;
73
73
 
74
74
  export { type CheckBoxProps, CheckBox as default };
@@ -69,6 +69,6 @@ declare const CheckBox: react.ForwardRefExoticComponent<{
69
69
  className?: string;
70
70
  /** Label CSS classes */
71
71
  labelClassName?: string;
72
- } & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & react.RefAttributes<HTMLInputElement>>;
72
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & react.RefAttributes<HTMLInputElement>>;
73
73
 
74
74
  export { type CheckBoxProps, CheckBox as default };
@@ -1,104 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
- interface NotificationItem {
5
- id: string;
6
- title: string;
7
- message: string;
8
- time: string;
9
- isRead: boolean;
10
- entityType?: string;
11
- entityId?: string;
12
- createdAt: string | Date;
13
- }
14
- interface NotificationGroup {
15
- label: string;
16
- notifications: NotificationItem[];
17
- }
18
- interface NotificationCardProps {
19
- /**
20
- * The notification title
21
- */
22
- title?: string;
23
- /**
24
- * The notification message content
25
- */
26
- message?: string;
27
- /**
28
- * Time displayed (e.g., "Há 3h", "12 Fev")
29
- */
30
- time?: string;
31
- /**
32
- * Whether the notification has been read
33
- */
34
- isRead?: boolean;
35
- /**
36
- * Callback when user marks notification as read
37
- */
38
- onMarkAsRead?: () => void;
39
- /**
40
- * Callback when user deletes notification
41
- */
42
- onDelete?: () => void;
43
- /**
44
- * Optional callback for navigation action
45
- */
46
- onNavigate?: () => void;
47
- /**
48
- * Label for the action button (only shown if onNavigate is provided)
49
- */
50
- actionLabel?: string;
51
- /**
52
- * Array of notifications for list mode
53
- */
54
- notifications?: NotificationItem[];
55
- /**
56
- * Array of grouped notifications
57
- */
58
- groupedNotifications?: NotificationGroup[];
59
- /**
60
- * Loading state for list mode
61
- */
62
- loading?: boolean;
63
- /**
64
- * Error state for list mode
65
- */
66
- error?: string | null;
67
- /**
68
- * Callback for retry when error occurs
69
- */
70
- onRetry?: () => void;
71
- /**
72
- * Callback when user marks a notification as read in list mode
73
- */
74
- onMarkAsReadById?: (id: string) => void;
75
- /**
76
- * Callback when user deletes a notification in list mode
77
- */
78
- onDeleteById?: (id: string) => void;
79
- /**
80
- * Callback when user navigates from a notification in list mode
81
- */
82
- onNavigateById?: (entityType?: string, entityId?: string) => void;
83
- /**
84
- * Function to get action label for a notification
85
- */
86
- getActionLabel?: (entityType?: string) => string | undefined;
87
- /**
88
- * Custom empty state component
89
- */
90
- renderEmpty?: () => ReactNode;
91
- /**
92
- * Additional CSS classes
93
- */
94
- className?: string;
95
- }
96
- /**
97
- * NotificationCard component - can display single notification or list of notifications
98
- *
99
- * @param props - The notification card properties
100
- * @returns JSX element representing the notification card or list
101
- */
102
- declare const NotificationCard: (props: NotificationCardProps) => react_jsx_runtime.JSX.Element;
103
-
104
- export { type NotificationCardProps, type NotificationGroup, type NotificationItem, NotificationCard as default };
1
+ import 'react/jsx-runtime';
2
+ import 'react';
3
+ export { j as LegacyNotificationCard, L as LegacyNotificationCardProps, i as NotificationCardProps, b as NotificationGroup, d as NotificationItem, c as default } from '../NotificationCard-IYDURfYp.mjs';
@@ -1,104 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
- interface NotificationItem {
5
- id: string;
6
- title: string;
7
- message: string;
8
- time: string;
9
- isRead: boolean;
10
- entityType?: string;
11
- entityId?: string;
12
- createdAt: string | Date;
13
- }
14
- interface NotificationGroup {
15
- label: string;
16
- notifications: NotificationItem[];
17
- }
18
- interface NotificationCardProps {
19
- /**
20
- * The notification title
21
- */
22
- title?: string;
23
- /**
24
- * The notification message content
25
- */
26
- message?: string;
27
- /**
28
- * Time displayed (e.g., "Há 3h", "12 Fev")
29
- */
30
- time?: string;
31
- /**
32
- * Whether the notification has been read
33
- */
34
- isRead?: boolean;
35
- /**
36
- * Callback when user marks notification as read
37
- */
38
- onMarkAsRead?: () => void;
39
- /**
40
- * Callback when user deletes notification
41
- */
42
- onDelete?: () => void;
43
- /**
44
- * Optional callback for navigation action
45
- */
46
- onNavigate?: () => void;
47
- /**
48
- * Label for the action button (only shown if onNavigate is provided)
49
- */
50
- actionLabel?: string;
51
- /**
52
- * Array of notifications for list mode
53
- */
54
- notifications?: NotificationItem[];
55
- /**
56
- * Array of grouped notifications
57
- */
58
- groupedNotifications?: NotificationGroup[];
59
- /**
60
- * Loading state for list mode
61
- */
62
- loading?: boolean;
63
- /**
64
- * Error state for list mode
65
- */
66
- error?: string | null;
67
- /**
68
- * Callback for retry when error occurs
69
- */
70
- onRetry?: () => void;
71
- /**
72
- * Callback when user marks a notification as read in list mode
73
- */
74
- onMarkAsReadById?: (id: string) => void;
75
- /**
76
- * Callback when user deletes a notification in list mode
77
- */
78
- onDeleteById?: (id: string) => void;
79
- /**
80
- * Callback when user navigates from a notification in list mode
81
- */
82
- onNavigateById?: (entityType?: string, entityId?: string) => void;
83
- /**
84
- * Function to get action label for a notification
85
- */
86
- getActionLabel?: (entityType?: string) => string | undefined;
87
- /**
88
- * Custom empty state component
89
- */
90
- renderEmpty?: () => ReactNode;
91
- /**
92
- * Additional CSS classes
93
- */
94
- className?: string;
95
- }
96
- /**
97
- * NotificationCard component - can display single notification or list of notifications
98
- *
99
- * @param props - The notification card properties
100
- * @returns JSX element representing the notification card or list
101
- */
102
- declare const NotificationCard: (props: NotificationCardProps) => react_jsx_runtime.JSX.Element;
103
-
104
- export { type NotificationCardProps, type NotificationGroup, type NotificationItem, NotificationCard as default };
1
+ import 'react/jsx-runtime';
2
+ import 'react';
3
+ export { j as LegacyNotificationCard, L as LegacyNotificationCardProps, i as NotificationCardProps, b as NotificationGroup, d as NotificationItem, c as default } from '../NotificationCard-IYDURfYp.js';