@omniumretail/component-library 1.2.82 → 1.2.84

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.
@@ -1,3 +1,3 @@
1
1
  import { MenuItem } from './Header.types';
2
2
  export declare const getMenuTopList: (onHome: () => void) => MenuItem[];
3
- export declare const getMenuBottomList: (onProfile: () => void, onLogout: () => void, userName?: string) => MenuItem[];
3
+ export declare const getMenuBottomList: (onProfile: () => void, onLogout: () => void, onSupport: () => void, userName?: string) => MenuItem[];
@@ -1,4 +1,5 @@
1
1
  import { BellNotification } from '../BellNotifications';
2
+ import { ApplicationOption, SupportData } from './components/SupportModal';
2
3
  export interface MenuItem {
3
4
  name: string;
4
5
  action: () => void;
@@ -14,6 +15,7 @@ export interface HeaderProps {
14
15
  actionButton?: actionButton;
15
16
  menuList?: MenuItem[];
16
17
  logout?: () => void;
18
+ onSupportSubmit?: (data: SupportData) => void;
17
19
  homeUrl: string;
18
20
  profileUrl: string;
19
21
  onLeavingPage?: (targetRoute: string) => void;
@@ -26,4 +28,5 @@ export interface HeaderProps {
26
28
  shouldConfirmNavigation?: boolean;
27
29
  companyName?: string;
28
30
  customLogoClass?: string;
31
+ applicationOptions?: ApplicationOption[];
29
32
  }
@@ -0,0 +1,17 @@
1
+ interface SupportModalProps {
2
+ visible: boolean;
3
+ onClose: () => void;
4
+ onSubmit: (data: SupportData) => void;
5
+ applicationOptions: ApplicationOption[];
6
+ }
7
+ export interface SupportData {
8
+ type: 'suggestion' | 'problem';
9
+ application: string;
10
+ description: string;
11
+ }
12
+ export interface ApplicationOption {
13
+ value: string;
14
+ label: string;
15
+ }
16
+ export declare const SupportModal: ({ visible, onClose, onSubmit, applicationOptions }: SupportModalProps) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -3,5 +3,5 @@ import { HeaderProps } from './Header.types';
3
3
  * Header component to display navigation bar with dropdown menus and action button.
4
4
  * @param {HeaderProps} props - Properties passed to the component.
5
5
  */
6
- export declare const Header: ({ menuList, actionButton, logout, homeUrl, profileUrl, onLeavingPage, userName, pageTitle, onFilterChange, notifications, onNotificationClick, handleMarkAllAsRead, shouldConfirmNavigation, customLogoClass, companyName, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const Header: ({ menuList, actionButton, logout, homeUrl, profileUrl, onLeavingPage, userName, pageTitle, onFilterChange, notifications, onNotificationClick, handleMarkAllAsRead, shouldConfirmNavigation, customLogoClass, companyName, onSupportSubmit, applicationOptions }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export default Header;
@@ -28,6 +28,7 @@ declare const _default: {
28
28
  },
29
29
  "navigation": {
30
30
  "back": "Back",
31
+ "support": "Support",
31
32
  "logout": "Logout",
32
33
  "home": "Home",
33
34
  "profile": "Profile",
@@ -137,6 +138,15 @@ declare const _default: {
137
138
  "noNotifications": "No notifications",
138
139
  "onlyShowNoRead": "Only show unread",
139
140
  "markAllAsRead": "Mark all as read"
141
+ },
142
+ "supportModal": {
143
+ "title": "Support Center",
144
+ "subtitle": "We are here to help. Please submit your suggestion or report a problem.",
145
+ "suggestion": "Suggestion",
146
+ "problem": "Problem",
147
+ "applicationPlaceholder": "Application",
148
+ "descriptionPlaceholder": "Please provide as much detail as possible for your suggestion or problem.",
149
+ "submitButton": "Submit Notification"
140
150
  }
141
151
  }
142
152
  };
@@ -28,6 +28,7 @@ declare const _default: {
28
28
  },
29
29
  "navigation": {
30
30
  "back": "Atrás",
31
+ "support": "Soporte",
31
32
  "logout": "Cerrar Sesión",
32
33
  "home": "Inicio",
33
34
  "profile": "Perfil",
@@ -137,6 +138,15 @@ declare const _default: {
137
138
  "noNotifications": "Sin notificaciones",
138
139
  "onlyShowNoRead": "Mostrar sólo no leídas",
139
140
  "markAllAsRead": "Marcar todo como leído"
141
+ },
142
+ "supportModal": {
143
+ "title": "Centro de Soporte",
144
+ "subtitle": "Estamos aquí para ayudar. Envie su sugerencia o reporte un problema.",
145
+ "suggestion": "Sugerencia",
146
+ "problem": "Problema",
147
+ "applicationPlaceholder": "Aplicación",
148
+ "descriptionPlaceholder": "Indique, con el mayor detalle posible, su sugerencia o problema.",
149
+ "submitButton": "Enviar Notificación"
140
150
  }
141
151
  }
142
152
  };
@@ -28,6 +28,7 @@ declare const _default: {
28
28
  },
29
29
  "navigation": {
30
30
  "back": "Voltar",
31
+ "support": "Suporte",
31
32
  "logout": "Terminar Sessão",
32
33
  "home": "Início",
33
34
  "profile": "Perfil",
@@ -137,9 +138,17 @@ declare const _default: {
137
138
  "noNotifications": "Sem notificações",
138
139
  "onlyShowNoRead": "Mostrar apenas não lidas",
139
140
  "markAllAsRead": "Marcar todas como lidas"
141
+ },
142
+ "supportModal": {
143
+ "title": "Centro de Suporte",
144
+ "subtitle": "Estamos aqui para ajudar. Envie sua sugestão ou reporte um problema.",
145
+ "suggestion": "Sugestão",
146
+ "problem": "Problema",
147
+ "applicationPlaceholder": "Aplicação",
148
+ "descriptionPlaceholder": "Indique, com o maior detalhe possível, a sua sugestão ou problema",
149
+ "submitButton": "Enviar Notificação"
140
150
  }
141
151
  }
142
- }
143
- ;
152
+ };
144
153
 
145
154
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/component-library",
3
- "version": "1.2.82",
3
+ "version": "1.2.84",
4
4
  "private": false,
5
5
  "main": "dist/component-library.umd.js",
6
6
  "module": "dist/component-library.es.js",