@omniumretail/component-library 1.2.94 → 1.2.96

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.
@@ -0,0 +1,3 @@
1
+ import { BellNotificationsProps } from './types';
2
+ export declare const BellNotifications: ({ notifications, onFilterChange, onNotificationClick, handleMarkAllAsRead }: BellNotificationsProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default BellNotifications;
@@ -0,0 +1,14 @@
1
+ import { BellNotification } from './types';
2
+ interface NotificationItemProps {
3
+ notification: BellNotification;
4
+ isLoading: boolean;
5
+ isReading: boolean;
6
+ isSwiped: boolean;
7
+ onSwipe: (id: string) => void;
8
+ onSwipeClose: () => void;
9
+ onClick: (e: React.MouseEvent) => void;
10
+ onMarkAsRead: (e: React.MouseEvent) => void;
11
+ onMarkAsReadAndOpen: (e: React.MouseEvent) => void;
12
+ }
13
+ export declare const NotificationItem: ({ notification, isLoading, isReading, isSwiped, onSwipe, onSwipeClose, onClick, onMarkAsRead, onMarkAsReadAndOpen }: NotificationItemProps) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -1,22 +1,3 @@
1
- export interface Criticality {
2
- Id: string;
3
- Name: string;
4
- ColorHex: string;
5
- }
6
- export interface BellNotification {
7
- Id: string;
8
- Title: string;
9
- Description: string;
10
- RedirectURL: string;
11
- Icon: string;
12
- ExpirationDate: number;
13
- Criticality: Criticality;
14
- IsRead: boolean;
15
- }
16
- export interface BellNotificationsProps {
17
- notifications: BellNotification[];
18
- onFilterChange: (filter: 'all' | 'unread') => void;
19
- onNotificationClick: (id: string, url: string) => Promise<void> | void;
20
- handleMarkAllAsRead: () => Promise<void> | void;
21
- }
22
- export declare const BellNotifications: ({ notifications, onFilterChange, onNotificationClick, handleMarkAllAsRead }: BellNotificationsProps) => import("react/jsx-runtime").JSX.Element;
1
+ export { BellNotifications } from './BellNotifications';
2
+ export { NotificationItem } from './NotificationItem';
3
+ export type { BellNotification, BellNotificationsProps, Criticality } from './types';
@@ -0,0 +1,21 @@
1
+ export interface Criticality {
2
+ Id: string;
3
+ Name: string;
4
+ ColorHex: string;
5
+ }
6
+ export interface BellNotification {
7
+ Id: string;
8
+ Title: string;
9
+ Description: string;
10
+ RedirectURL: string;
11
+ Icon: string;
12
+ ExpirationDate: number;
13
+ Criticality: Criticality;
14
+ IsRead: boolean;
15
+ }
16
+ export interface BellNotificationsProps {
17
+ notifications: BellNotification[];
18
+ onFilterChange: (filter: 'all' | 'unread') => void;
19
+ onNotificationClick: (id: string, url: string) => Promise<void> | void;
20
+ handleMarkAllAsRead: () => Promise<void> | void;
21
+ }
@@ -138,7 +138,14 @@ declare const _default: {
138
138
  "noNotifications": "No notifications",
139
139
  "onlyShowNoRead": "Only show unread",
140
140
  "markAllAsRead": "Mark all as read",
141
- "noUnreadNotifications": "No unread notifications"
141
+ "noUnreadNotifications": "No unread notifications",
142
+ "swipeToRead": "Mark as read",
143
+ "swipeToOpen": "Open",
144
+ "swipeTutorialTitle": "Click to open or swipe for more actions",
145
+ "swipeTutorialTap": "Tap to continue",
146
+ "tutorialClick": "Click",
147
+ "tutorialSwipe": "Swipe",
148
+ "tutorialOr": "OR"
142
149
  },
143
150
  "supportModal": {
144
151
  "title": "Support Center",
@@ -138,7 +138,14 @@ declare const _default: {
138
138
  "noNotifications": "Sin notificaciones",
139
139
  "onlyShowNoRead": "Mostrar sólo no leídas",
140
140
  "markAllAsRead": "Marcar todo como leído",
141
- "noUnreadNotifications": "No hay notificaciones no leídas"
141
+ "noUnreadNotifications": "No hay notificaciones no leídas",
142
+ "swipeToRead": "Marcar como leído",
143
+ "swipeToOpen": "Abrir",
144
+ "swipeTutorialTitle": "Clic para abrir o hacer deslice para más acciones",
145
+ "swipeTutorialTap": "Toque para continuar",
146
+ "tutorialClick": "Toque",
147
+ "tutorialSwipe": "Desliza",
148
+ "tutorialOr": "O"
142
149
  },
143
150
  "supportModal": {
144
151
  "title": "Centro de Soporte",
@@ -138,7 +138,14 @@ declare const _default: {
138
138
  "noNotifications": "Sem notificações",
139
139
  "onlyShowNoRead": "Mostrar apenas não lidas",
140
140
  "markAllAsRead": "Marcar todas como lidas",
141
- "noUnreadNotifications": "Todas as notificações estão lidas"
141
+ "noUnreadNotifications": "Todas as notificações estão lidas",
142
+ "swipeToRead": "Marcar como lida",
143
+ "swipeToOpen": "Abrir",
144
+ "swipeTutorialTitle": "Clique para abrir ou deslize para mais ações",
145
+ "swipeTutorialTap": "Toque para continuar",
146
+ "tutorialClick": "Clique",
147
+ "tutorialSwipe": "Deslize",
148
+ "tutorialOr": "OU"
142
149
  },
143
150
  "supportModal": {
144
151
  "title": "Centro de Suporte",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/component-library",
3
- "version": "1.2.94",
3
+ "version": "1.2.96",
4
4
  "private": false,
5
5
  "main": "dist/component-library.umd.js",
6
6
  "module": "dist/component-library.es.js",