@adiba-banking-cloud/backoffice 0.2.21 → 0.2.22
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/build/index.cjs.js/{heatmap-BFJ3d4dP.js → heatmap-FCgzmA-k.js} +1 -1
- package/build/index.cjs.js/{index-BTGCp_a9.js → index-CRkKFiVi.js} +425 -101
- package/build/index.cjs.js/index.js +4 -1
- package/build/index.esm.js/{heatmap-DvCwdrVC.js → heatmap-w3LGvi67.js} +1 -1
- package/build/index.esm.js/{index-CwtRXOt5.js → index-Ck9zbXed.js} +424 -103
- package/build/index.esm.js/index.js +1 -1
- package/build/typings/components/index.d.ts +3 -0
- package/build/typings/components/widgets/chat/Chat.stories.d.ts +10 -0
- package/build/typings/components/widgets/chat/Chat.types.d.ts +57 -0
- package/build/typings/components/widgets/chat/ChatBubble.d.ts +3 -0
- package/build/typings/components/widgets/chat/ChatHeader.d.ts +3 -0
- package/build/typings/components/widgets/chat/ChatListCard.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ApplicationMenu, p as ApplicationPanel, k as AvatarLabelPanel, B as BasicHeatmap, C as CalendarHeatmap, o as ConnectionPanel, u as CreditCard,
|
|
1
|
+
export { A as ApplicationMenu, p as ApplicationPanel, k as AvatarLabelPanel, B as BasicHeatmap, C as CalendarHeatmap, Q as ChatBubble, R as ChatHeader, O as ChatListCard, o as ConnectionPanel, u as CreditCard, a5 as DEFAULT_API_TIMEOUT, a3 as DEFAULT_PAGE_SIZE, v as DetailCard, D as DonutChart, W as Drawer, e as DynamicLogo, f as DynamicShigaLogo, E as EqualizerColumn, G as ErrorModal, F as File, d as Icons, r as InfoGrid, H as InfoModal, I as InterpolatedHeatmap, L as LabelPanel, V as LoadingModal, a4 as MAX_PAGE_SIZE, Y as MaskedTilePanel, _ as MerchantCard, a8 as ModalContentWrapper, M as MultiAxisArea, m as PageTitle, w as PaymentMethod, x as PaymentMethodAdd, P as PieChart, j as SearchPanel, h as SideMenu, b as SimpleArea, S as SimpleColumn, X as SimpleForm, J as SimpleModal, i as SimplePanel, y as SimpleTable, l as SimpleText, c as StackedArea, a as StackedColumn, t as StatusAlert, q as SubscriptionPlans, K as SuccessModal, $ as TableStateView, Z as TilePanel, n as TitleWithIndex, T as TitledPanel, N as TwoFactorModal, U as UserMenu, s as UserProfileCard, a7 as apiClient, a6 as createApiClient, aa as extractBetweenBraces, ab as extractOutsideBraces, z as theme, a1 as useManagedModals, a0 as useModal, a2 as useUrlFilters, a9 as withProviders } from './index-Ck9zbXed.js';
|
|
2
2
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@mantine/modals';
|
|
@@ -30,6 +30,9 @@ export { InfoModal } from "./modals/info/Info";
|
|
|
30
30
|
export { SimpleModal } from "./modals/simple/Simple";
|
|
31
31
|
export { SuccessModal } from "./modals/success/Success";
|
|
32
32
|
export { TwoFactorModal } from "./modals/twofactor/Twofactor";
|
|
33
|
+
export { ChatListCard } from "./widgets/chat/ChatListCard";
|
|
34
|
+
export { ChatBubble } from "./widgets/chat/ChatBubble";
|
|
35
|
+
export { ChatHeader } from "./widgets/chat/ChatHeader";
|
|
33
36
|
export { LoadingModal } from "./modals/loading/Loading";
|
|
34
37
|
export { Drawer } from "./general/drawer/Drawer";
|
|
35
38
|
export { SimpleForm } from "./forms/simple/Simple";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
declare const _default: Meta;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const GroupChat: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Chat.types").ChatListCardProps>;
|
|
5
|
+
export declare const ConversationItem: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Chat.types").ChatListCardProps>;
|
|
6
|
+
export declare const ConversationItemActive: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Chat.types").ChatListCardProps>;
|
|
7
|
+
export declare const MessageIncoming: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Chat.types").ChatBubbleProps>;
|
|
8
|
+
export declare const MessageOutgoing: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Chat.types").ChatBubbleProps>;
|
|
9
|
+
export declare const MessageAttachment: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Chat.types").ChatBubbleProps>;
|
|
10
|
+
export declare const FullChatLayout: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ChatAttachment {
|
|
3
|
+
type: "pdf" | "avi" | "mp3" | "txt" | "jpg" | undefined;
|
|
4
|
+
name: string;
|
|
5
|
+
size?: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ChatListCardProps extends React.ComponentPropsWithoutRef<"button"> {
|
|
9
|
+
/** User name */
|
|
10
|
+
name: string;
|
|
11
|
+
/** Avatar URL */
|
|
12
|
+
avatar?: string;
|
|
13
|
+
/** Last message preview */
|
|
14
|
+
message: string;
|
|
15
|
+
/** Time of last message (e.g. 16:45) */
|
|
16
|
+
time: string;
|
|
17
|
+
/** Number of unread messages */
|
|
18
|
+
unreadCount?: number;
|
|
19
|
+
/** Sender name (for group chats) */
|
|
20
|
+
senderName?: string;
|
|
21
|
+
/** Whether the chat is currently active/selected */
|
|
22
|
+
isActive?: boolean;
|
|
23
|
+
/** Whether the chat is a group chat */
|
|
24
|
+
isGroup?: boolean;
|
|
25
|
+
/** Click handler */
|
|
26
|
+
onClick?: () => void;
|
|
27
|
+
}
|
|
28
|
+
export interface ChatBubbleProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
29
|
+
/** Message content */
|
|
30
|
+
message?: string;
|
|
31
|
+
/** Time of message */
|
|
32
|
+
time: string;
|
|
33
|
+
/** Whether the message is outgoing (sent by user) */
|
|
34
|
+
isOutgoing?: boolean;
|
|
35
|
+
/** Sender name (for incoming messages in group contexts, optional) */
|
|
36
|
+
senderName?: string;
|
|
37
|
+
/** Sender avatar (for incoming messages) */
|
|
38
|
+
avatar?: string;
|
|
39
|
+
/** Optional attachment */
|
|
40
|
+
attachment?: ChatAttachment;
|
|
41
|
+
}
|
|
42
|
+
export interface ChatHeaderProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
43
|
+
/** User name */
|
|
44
|
+
name: string;
|
|
45
|
+
/** Avatar URL */
|
|
46
|
+
avatar?: string;
|
|
47
|
+
/** User status text (e.g. Last seen...) */
|
|
48
|
+
status?: string;
|
|
49
|
+
/** Handler for back button (mobile) */
|
|
50
|
+
onBack?: () => void;
|
|
51
|
+
/** Handler for call action */
|
|
52
|
+
onCall?: () => void;
|
|
53
|
+
/** Handler for video call action */
|
|
54
|
+
onVideo?: () => void;
|
|
55
|
+
/** Handler for more options */
|
|
56
|
+
onMore?: () => void;
|
|
57
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adiba-banking-cloud/backoffice",
|
|
3
3
|
"author": "TUROG Technologies",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.22",
|
|
5
5
|
"description": "An ADIBA component library for backoffice and dashboard applications",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "build/index.cjs.js",
|