beca-ui 2.0.10 → 2.0.11-beta.2

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.
package/dist/beca-ui.js CHANGED
@@ -87371,8 +87371,7 @@ const Qde = () => ({ t: Tqe().t }), Iqe = {
87371
87371
  {
87372
87372
  item: $,
87373
87373
  applicationsCardData: n,
87374
- onClickNotificationItem: i,
87375
- onChangeStatus: s
87374
+ onClickNotificationItem: i
87376
87375
  }
87377
87376
  )
87378
87377
  }
@@ -87423,7 +87422,7 @@ const Qde = () => ({ t: Tqe().t }), Iqe = {
87423
87422
  ) })
87424
87423
  }))
87425
87424
  ];
87426
- return t("Mark all as read"), x && `${x.href}`, t("All"), /* @__PURE__ */ cn("div", { className: "notification-popup", children: [
87425
+ return t("ReadAll"), x && `${x.href}`, t("All"), /* @__PURE__ */ cn("div", { className: "notification-popup", children: [
87427
87426
  /* @__PURE__ */ cn("div", { className: "notification-popup-header", children: [
87428
87427
  /* @__PURE__ */ z("div", { className: "notification-popup-header__title", children: o }),
87429
87428
  /* @__PURE__ */ z("div", { className: "notification-popup-header__actions", children: /* @__PURE__ */ z(
@@ -87432,7 +87431,7 @@ const Qde = () => ({ t: Tqe().t }), Iqe = {
87432
87431
  icon: /* @__PURE__ */ z(BGe, {}),
87433
87432
  size: "small",
87434
87433
  type: "text",
87435
- title: t("Mark all as read"),
87434
+ title: t("ReadAll"),
87436
87435
  disabled: !a,
87437
87436
  onClick: a
87438
87437
  }
@@ -3,8 +3,7 @@ import { IPersonalProfileModel, ISupportContactModel } from "../../../models";
3
3
  import { ApplicationsCardProps } from "../../ApplicationsCard";
4
4
  import { MenuItemType } from "../../Menu";
5
5
  import { LANGUAGE } from "../../ConfigProvider";
6
- import { ApplicationsCardItem } from "../../ApplicationsCard/ApplicationsCard.types";
7
- type ExtraTabKey = "Chat";
6
+ export type ExtraTabKey = "Chat";
8
7
  export type Theme = "Light" | "Dark";
9
8
  export interface ExtraHeaderProps {
10
9
  onChangeTheme: (theme: any) => void;
@@ -22,7 +21,7 @@ export interface HeaderProps extends ApplicationsCardProps {
22
21
  homePageUrl: string;
23
22
  customHeader?: React.ReactNode;
24
23
  supportContactData: ISupportContactModel[];
25
- notification?: NotificationProps;
24
+ notification?: NotificationType;
26
25
  LinkComponent: any;
27
26
  isSwitchTheme?: boolean;
28
27
  onSwitchedTheme?: (theme: Theme) => void;
@@ -37,7 +36,7 @@ export type ThemeType = {
37
36
  updateApi: string;
38
37
  params?: any;
39
38
  };
40
- export interface NotificationProps {
39
+ export interface NotificationType {
41
40
  title?: string;
42
41
  visible?: boolean;
43
42
  number?: number;
@@ -45,10 +44,10 @@ export interface NotificationProps {
45
44
  onClick?: () => void;
46
45
  onClickNotificationItem?: (item: NotificationItemType) => void;
47
46
  onReadAll?: () => void;
48
- applicationsCardData: ApplicationsCardItem[];
49
- LinkComponent: any;
50
- extraTabs?: ExtraTabKey[];
51
47
  onChangeStatus?: (status: "Read" | "Unread") => void;
48
+ extraTabs?: ExtraTabKey[];
49
+ }
50
+ export interface NotiItemProps {
52
51
  }
53
52
  export interface NotificationItemType {
54
53
  id: number;
@@ -60,4 +59,3 @@ export interface NotificationItemType {
60
59
  isSeen: boolean;
61
60
  url: string;
62
61
  }
63
- export {};
@@ -1,3 +1,15 @@
1
1
  import { FC } from "react";
2
- import { NotificationProps } from "./Header.types";
2
+ import { ExtraTabKey, NotificationItemType } from "./Header.types";
3
+ import { ApplicationsCardItem } from "../../ApplicationsCard/ApplicationsCard.types";
4
+ interface NotificationProps {
5
+ data: NotificationItemType[];
6
+ applicationsCardData: ApplicationsCardItem[];
7
+ title?: string;
8
+ LinkComponent: any;
9
+ onClickNotificationItem?: (item: NotificationItemType) => void;
10
+ onReadAll?: () => void;
11
+ extraTabs?: ExtraTabKey[];
12
+ onChangeStatus?: (status: "Read" | "Unread") => void;
13
+ }
3
14
  export declare const Notification: FC<NotificationProps>;
15
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beca-ui",
3
- "version": "2.0.10",
3
+ "version": "2.0.11-beta.2",
4
4
  "description": "Becawork UI",
5
5
  "license": "MIT",
6
6
  "author": {