@adiba-banking-cloud/backoffice 0.2.25 → 0.2.27

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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DBgoCclM.js');
3
+ var index = require('./index-BUsbfRw6.js');
4
4
 
5
5
  function _mergeNamespaces(n, m) {
6
6
  m.forEach(function (e) {
@@ -12169,7 +12169,7 @@ function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t
12169
12169
  }
12170
12170
 
12171
12171
  // Fallback: use dynamic import (async, but will work in Vite/Storybook)
12172
- Promise.resolve().then(function () { return require('./heatmap-BpfEKTmb.js'); }).then(function (n) { return n.heatmap; }).then(heatmapModule => {
12172
+ Promise.resolve().then(function () { return require('./heatmap-DwZcPNaL.js'); }).then(function (n) { return n.heatmap; }).then(heatmapModule => {
12173
12173
  const moduleFn = typeof heatmapModule === "function" ? heatmapModule : (heatmapModule === null || heatmapModule === void 0 ? void 0 : heatmapModule.default) || heatmapModule;
12174
12174
  if (typeof moduleFn === "function") {
12175
12175
  moduleFn(Highcharts);
@@ -14126,15 +14126,25 @@ const File = _ref => {
14126
14126
  }, /*#__PURE__*/React.createElement(core.Group, {
14127
14127
  justify: isChip ? "space-between" : undefined,
14128
14128
  gap: "xs",
14129
- wrap: "nowrap"
14129
+ wrap: "nowrap",
14130
+ w: "100%"
14130
14131
  }, /*#__PURE__*/React.createElement(core.Image, {
14131
14132
  p: isChip ? undefined : "xs",
14132
14133
  pr: 2,
14133
14134
  h: isChip ? CHIP_HEIGHT : TILE_HEIGHT,
14134
14135
  w: isChip ? CHIP_WIDTH : TILE_WIDTH,
14135
14136
  alt: shape,
14136
- fallbackSrc: ICON[type]
14137
- }), rest.children, /*#__PURE__*/React.createElement(core.Space, {
14137
+ fallbackSrc: ICON[type],
14138
+ style: {
14139
+ flexShrink: 0
14140
+ }
14141
+ }), /*#__PURE__*/React.createElement(core.Box, {
14142
+ style: {
14143
+ minWidth: 0,
14144
+ overflow: "hidden",
14145
+ flex: "1 1 auto"
14146
+ }
14147
+ }, rest.children), /*#__PURE__*/React.createElement(core.Space, {
14138
14148
  flex: 1
14139
14149
  }), rightsection ? /*#__PURE__*/React.createElement(core.ActionIcon, {
14140
14150
  variant: "transparent",
@@ -14770,7 +14780,7 @@ const ChatListCard = _ref => {
14770
14780
  }, unreadCount)))));
14771
14781
  };
14772
14782
 
14773
- const _excluded$4 = ["message", "time", "isOutgoing", "senderName", "avatar", "attachment", "className", "style"];
14783
+ const _excluded$4 = ["message", "time", "isOutgoing", "senderName", "avatar", "attachment", "onFileClick", "onFileActionClick", "className", "style"];
14774
14784
  function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14775
14785
  function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14776
14786
  const ChatBubble = _ref => {
@@ -14782,6 +14792,8 @@ const ChatBubble = _ref => {
14782
14792
  senderName,
14783
14793
  avatar,
14784
14794
  attachment,
14795
+ onFileClick,
14796
+ onFileActionClick,
14785
14797
  className,
14786
14798
  style
14787
14799
  } = _ref,
@@ -14829,15 +14841,19 @@ const ChatBubble = _ref => {
14829
14841
  variant: "chip",
14830
14842
  type: (_attachment$type = attachment.type) !== null && _attachment$type !== void 0 ? _attachment$type : "pdf",
14831
14843
  bg: "white",
14832
- w: "100%",
14844
+ w: {
14845
+ base: 200,
14846
+ md: 250
14847
+ },
14833
14848
  bd: "1px solid #E2E8F0",
14849
+ onClick: () => onFileClick === null || onFileClick === void 0 ? void 0 : onFileClick(attachment),
14834
14850
  rightsection: {
14835
14851
  icon: {
14836
14852
  name: "ReceiveSquare",
14837
14853
  size: 16,
14838
14854
  color: "gray"
14839
14855
  },
14840
- onClick: () => {}
14856
+ onClick: () => onFileActionClick === null || onFileActionClick === void 0 ? void 0 : onFileActionClick(attachment)
14841
14857
  },
14842
14858
  mb: 4
14843
14859
  }, /*#__PURE__*/React.createElement(core.Stack, {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DBgoCclM.js');
3
+ var index = require('./index-BUsbfRw6.js');
4
4
  require('@babel/runtime/helpers/objectWithoutProperties');
5
5
  require('@babel/runtime/helpers/defineProperty');
6
6
  require('@mantine/modals');
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from './index-PZhuS6Ng.js';
1
+ import { g as getDefaultExportFromCjs } from './index-BJiARt6H.js';
2
2
 
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -12148,7 +12148,7 @@ function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t
12148
12148
  }
12149
12149
 
12150
12150
  // Fallback: use dynamic import (async, but will work in Vite/Storybook)
12151
- import('./heatmap-BCmYm6SY.js').then(function (n) { return n.h; }).then(heatmapModule => {
12151
+ import('./heatmap-Djbl24EV.js').then(function (n) { return n.h; }).then(heatmapModule => {
12152
12152
  const moduleFn = typeof heatmapModule === "function" ? heatmapModule : (heatmapModule === null || heatmapModule === void 0 ? void 0 : heatmapModule.default) || heatmapModule;
12153
12153
  if (typeof moduleFn === "function") {
12154
12154
  moduleFn(Highcharts);
@@ -14105,15 +14105,25 @@ const File = _ref => {
14105
14105
  }, /*#__PURE__*/React__default.createElement(Group, {
14106
14106
  justify: isChip ? "space-between" : undefined,
14107
14107
  gap: "xs",
14108
- wrap: "nowrap"
14108
+ wrap: "nowrap",
14109
+ w: "100%"
14109
14110
  }, /*#__PURE__*/React__default.createElement(Image, {
14110
14111
  p: isChip ? undefined : "xs",
14111
14112
  pr: 2,
14112
14113
  h: isChip ? CHIP_HEIGHT : TILE_HEIGHT,
14113
14114
  w: isChip ? CHIP_WIDTH : TILE_WIDTH,
14114
14115
  alt: shape,
14115
- fallbackSrc: ICON[type]
14116
- }), rest.children, /*#__PURE__*/React__default.createElement(Space, {
14116
+ fallbackSrc: ICON[type],
14117
+ style: {
14118
+ flexShrink: 0
14119
+ }
14120
+ }), /*#__PURE__*/React__default.createElement(Box, {
14121
+ style: {
14122
+ minWidth: 0,
14123
+ overflow: "hidden",
14124
+ flex: "1 1 auto"
14125
+ }
14126
+ }, rest.children), /*#__PURE__*/React__default.createElement(Space, {
14117
14127
  flex: 1
14118
14128
  }), rightsection ? /*#__PURE__*/React__default.createElement(ActionIcon, {
14119
14129
  variant: "transparent",
@@ -14749,7 +14759,7 @@ const ChatListCard = _ref => {
14749
14759
  }, unreadCount)))));
14750
14760
  };
14751
14761
 
14752
- const _excluded$4 = ["message", "time", "isOutgoing", "senderName", "avatar", "attachment", "className", "style"];
14762
+ const _excluded$4 = ["message", "time", "isOutgoing", "senderName", "avatar", "attachment", "onFileClick", "onFileActionClick", "className", "style"];
14753
14763
  function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14754
14764
  function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14755
14765
  const ChatBubble = _ref => {
@@ -14761,6 +14771,8 @@ const ChatBubble = _ref => {
14761
14771
  senderName,
14762
14772
  avatar,
14763
14773
  attachment,
14774
+ onFileClick,
14775
+ onFileActionClick,
14764
14776
  className,
14765
14777
  style
14766
14778
  } = _ref,
@@ -14808,15 +14820,19 @@ const ChatBubble = _ref => {
14808
14820
  variant: "chip",
14809
14821
  type: (_attachment$type = attachment.type) !== null && _attachment$type !== void 0 ? _attachment$type : "pdf",
14810
14822
  bg: "white",
14811
- w: "100%",
14823
+ w: {
14824
+ base: 200,
14825
+ md: 250
14826
+ },
14812
14827
  bd: "1px solid #E2E8F0",
14828
+ onClick: () => onFileClick === null || onFileClick === void 0 ? void 0 : onFileClick(attachment),
14813
14829
  rightsection: {
14814
14830
  icon: {
14815
14831
  name: "ReceiveSquare",
14816
14832
  size: 16,
14817
14833
  color: "gray"
14818
14834
  },
14819
- onClick: () => {}
14835
+ onClick: () => onFileActionClick === null || onFileActionClick === void 0 ? void 0 : onFileActionClick(attachment)
14820
14836
  },
14821
14837
  mb: 4
14822
14838
  }, /*#__PURE__*/React__default.createElement(Stack, {
@@ -1,4 +1,4 @@
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-PZhuS6Ng.js';
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-BJiARt6H.js';
2
2
  import '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import '@babel/runtime/helpers/defineProperty';
4
4
  import '@mantine/modals';
@@ -4,9 +4,10 @@ export default _default;
4
4
  export declare const GroupChat: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Chat.types").ChatListCardProps>;
5
5
  export declare const ConversationItem: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Chat.types").ChatListCardProps>;
6
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>;
7
+ export declare const MessageIncoming: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, any>;
8
+ export declare const MessageOutgoing: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, any>;
9
+ export declare const MessageAttachment: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, any>;
10
+ export declare const MobileMessageAttachment: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, any>;
10
11
  export declare const DesktopHeader: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, any>;
11
12
  export declare const MobileHeader: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, any>;
12
13
  export declare const FullChatLayout: () => import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,7 @@ export interface ChatAttachment {
4
4
  name: string;
5
5
  size?: string;
6
6
  url?: string;
7
+ date?: string;
7
8
  }
8
9
  export interface ChatListCardProps extends React.ComponentPropsWithoutRef<"button"> {
9
10
  /** User name */
@@ -38,6 +39,10 @@ export interface ChatBubbleProps extends React.ComponentPropsWithoutRef<"div"> {
38
39
  avatar?: string;
39
40
  /** Optional attachment */
40
41
  attachment?: ChatAttachment;
42
+ /** Handler for file click */
43
+ onFileClick?: (attachment: ChatAttachment) => void;
44
+ /** Handler for file action click (right section) */
45
+ onFileActionClick?: (attachment: ChatAttachment) => void;
41
46
  }
42
47
  export interface ChatHeaderProps extends React.ComponentPropsWithoutRef<"div"> {
43
48
  /** User name */
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.25",
4
+ "version": "0.2.27",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",