@adiba-banking-cloud/backoffice 0.2.24 → 0.2.25

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-BFlcM32-.js');
3
+ var index = require('./index-DBgoCclM.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-DajMNZBC.js'); }).then(function (n) { return n.heatmap; }).then(heatmapModule => {
12172
+ Promise.resolve().then(function () { return require('./heatmap-BpfEKTmb.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);
@@ -14125,7 +14125,8 @@ const File = _ref => {
14125
14125
  p: isChip ? "xs" : undefined
14126
14126
  }, /*#__PURE__*/React.createElement(core.Group, {
14127
14127
  justify: isChip ? "space-between" : undefined,
14128
- gap: "xs"
14128
+ gap: "xs",
14129
+ wrap: "nowrap"
14129
14130
  }, /*#__PURE__*/React.createElement(core.Image, {
14130
14131
  p: isChip ? undefined : "xs",
14131
14132
  pr: 2,
@@ -14814,8 +14815,7 @@ const ChatBubble = _ref => {
14814
14815
  style: {
14815
14816
  backgroundColor: bubbleBg,
14816
14817
  borderRadius: borderRadius,
14817
- position: "relative",
14818
- minWidth: 400 // Ensure enough width for layout
14818
+ position: "relative"
14819
14819
  }
14820
14820
  }, senderName && !isOutgoing && /*#__PURE__*/React.createElement(core.Text, {
14821
14821
  size: "sm",
@@ -14842,7 +14842,10 @@ const ChatBubble = _ref => {
14842
14842
  mb: 4
14843
14843
  }, /*#__PURE__*/React.createElement(core.Stack, {
14844
14844
  gap: 0,
14845
- ml: "xs"
14845
+ ml: "xs",
14846
+ style: {
14847
+ minWidth: 0
14848
+ }
14846
14849
  }, /*#__PURE__*/React.createElement(core.Text, {
14847
14850
  size: "sm",
14848
14851
  fw: 500,
@@ -14891,17 +14894,29 @@ const ChatHeader = _ref => {
14891
14894
  } = _ref,
14892
14895
  others = _objectWithoutProperties(_ref, _excluded$3);
14893
14896
  return /*#__PURE__*/React.createElement(core.Box, _extends({
14894
- py: "md",
14895
- px: "lg",
14897
+ py: {
14898
+ base: "sm",
14899
+ md: "md"
14900
+ },
14901
+ px: {
14902
+ base: "sm",
14903
+ md: "lg"
14904
+ },
14896
14905
  style: _objectSpread$4({
14897
14906
  borderBottom: "1px solid #E2E8F0",
14898
14907
  backgroundColor: "white"
14899
14908
  }, style),
14900
14909
  className: className
14901
14910
  }, others), /*#__PURE__*/React.createElement(core.Group, {
14902
- justify: "space-between"
14911
+ justify: "space-between",
14912
+ wrap: "nowrap"
14903
14913
  }, /*#__PURE__*/React.createElement(core.Group, {
14904
- gap: 8
14914
+ gap: 8,
14915
+ wrap: "nowrap",
14916
+ style: {
14917
+ flex: 1,
14918
+ minWidth: 0
14919
+ }
14905
14920
  }, onBack && /*#__PURE__*/React.createElement(core.ActionIcon, {
14906
14921
  variant: "subtle",
14907
14922
  color: "gray",
@@ -14914,32 +14929,51 @@ const ChatHeader = _ref => {
14914
14929
  size: 20
14915
14930
  })), /*#__PURE__*/React.createElement(core.Avatar, {
14916
14931
  src: avatar,
14917
- size: 50,
14932
+ w: {
14933
+ base: 40,
14934
+ md: 50
14935
+ },
14936
+ h: {
14937
+ base: 40,
14938
+ md: 50
14939
+ },
14918
14940
  radius: "xl",
14919
14941
  style: {
14920
- border: "1px solid #CFD1D8"
14942
+ border: "1px solid #CFD1D8",
14943
+ flexShrink: 0
14921
14944
  }
14922
14945
  }), /*#__PURE__*/React.createElement(core.Stack, {
14923
- gap: 0
14946
+ gap: 0,
14947
+ style: {
14948
+ overflow: "hidden",
14949
+ minWidth: 0,
14950
+ flex: 1
14951
+ }
14924
14952
  }, /*#__PURE__*/React.createElement(core.Text, {
14925
14953
  size: "15px",
14926
14954
  fw: 400,
14927
14955
  lh: "24px",
14928
- c: "dark.9"
14956
+ c: "dark.9",
14957
+ truncate: "end"
14929
14958
  }, name), status && /*#__PURE__*/React.createElement(core.Text, {
14930
14959
  fw: 300,
14931
14960
  size: "sm",
14932
14961
  fs: "italic",
14933
- c: "#575E77"
14962
+ c: "#575E77",
14963
+ truncate: "end"
14934
14964
  }, status))), /*#__PURE__*/React.createElement(core.Group, {
14935
- gap: 0
14965
+ gap: 0,
14966
+ wrap: "nowrap"
14936
14967
  }, /*#__PURE__*/React.createElement(core.Box, {
14937
14968
  style: {
14938
- borderLeft: "1px solid #ECEDEF",
14939
- paddingInline: "8px"
14969
+ borderLeft: "1px solid #ECEDEF"
14970
+ },
14971
+ px: {
14972
+ base: 4,
14973
+ md: 8
14940
14974
  }
14941
14975
  }, /*#__PURE__*/React.createElement(core.ActionIcon, {
14942
- variant: "subtle",
14976
+ variant: "transparent",
14943
14977
  color: "gray",
14944
14978
  size: "lg",
14945
14979
  radius: "xl"
@@ -14948,11 +14982,18 @@ const ChatHeader = _ref => {
14948
14982
  size: 20
14949
14983
  }))), /*#__PURE__*/React.createElement(core.Box, {
14950
14984
  style: {
14951
- borderLeft: "1px solid #ECEDEF",
14952
- paddingInline: "8px"
14985
+ borderLeft: "1px solid #ECEDEF"
14986
+ },
14987
+ px: {
14988
+ base: 4,
14989
+ md: 8
14990
+ },
14991
+ display: {
14992
+ base: "none",
14993
+ md: "block"
14953
14994
  }
14954
14995
  }, /*#__PURE__*/React.createElement(core.ActionIcon, {
14955
- variant: "subtle",
14996
+ variant: "transparent",
14956
14997
  color: "gray",
14957
14998
  size: "lg",
14958
14999
  radius: "xl"
@@ -14961,11 +15002,18 @@ const ChatHeader = _ref => {
14961
15002
  size: 20
14962
15003
  }))), /*#__PURE__*/React.createElement(core.Box, {
14963
15004
  style: {
14964
- borderLeft: "1px solid #ECEDEF",
14965
- paddingInline: "8px"
15005
+ borderLeft: "1px solid #ECEDEF"
15006
+ },
15007
+ px: {
15008
+ base: 4,
15009
+ md: 8
15010
+ },
15011
+ display: {
15012
+ base: "none",
15013
+ md: "block"
14966
15014
  }
14967
15015
  }, /*#__PURE__*/React.createElement(core.ActionIcon, {
14968
- variant: "subtle",
15016
+ variant: "transparent",
14969
15017
  color: "gray",
14970
15018
  size: "lg",
14971
15019
  radius: "xl"
@@ -14974,11 +15022,14 @@ const ChatHeader = _ref => {
14974
15022
  size: 20
14975
15023
  }))), /*#__PURE__*/React.createElement(core.Box, {
14976
15024
  style: {
14977
- borderLeft: "1px solid #ECEDEF",
14978
- paddingInline: "8px"
15025
+ borderLeft: "1px solid #ECEDEF"
15026
+ },
15027
+ px: {
15028
+ base: 4,
15029
+ md: 8
14979
15030
  }
14980
15031
  }, /*#__PURE__*/React.createElement(core.ActionIcon, {
14981
- variant: "subtle",
15032
+ variant: "transparent",
14982
15033
  color: "gray",
14983
15034
  size: "lg",
14984
15035
  radius: "xl"
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BFlcM32-.js');
3
+ var index = require('./index-DBgoCclM.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-DktlPeMy.js';
1
+ import { g as getDefaultExportFromCjs } from './index-PZhuS6Ng.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-CWUcaLIf.js').then(function (n) { return n.h; }).then(heatmapModule => {
12151
+ import('./heatmap-BCmYm6SY.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);
@@ -14104,7 +14104,8 @@ const File = _ref => {
14104
14104
  p: isChip ? "xs" : undefined
14105
14105
  }, /*#__PURE__*/React__default.createElement(Group, {
14106
14106
  justify: isChip ? "space-between" : undefined,
14107
- gap: "xs"
14107
+ gap: "xs",
14108
+ wrap: "nowrap"
14108
14109
  }, /*#__PURE__*/React__default.createElement(Image, {
14109
14110
  p: isChip ? undefined : "xs",
14110
14111
  pr: 2,
@@ -14793,8 +14794,7 @@ const ChatBubble = _ref => {
14793
14794
  style: {
14794
14795
  backgroundColor: bubbleBg,
14795
14796
  borderRadius: borderRadius,
14796
- position: "relative",
14797
- minWidth: 400 // Ensure enough width for layout
14797
+ position: "relative"
14798
14798
  }
14799
14799
  }, senderName && !isOutgoing && /*#__PURE__*/React__default.createElement(Text, {
14800
14800
  size: "sm",
@@ -14821,7 +14821,10 @@ const ChatBubble = _ref => {
14821
14821
  mb: 4
14822
14822
  }, /*#__PURE__*/React__default.createElement(Stack, {
14823
14823
  gap: 0,
14824
- ml: "xs"
14824
+ ml: "xs",
14825
+ style: {
14826
+ minWidth: 0
14827
+ }
14825
14828
  }, /*#__PURE__*/React__default.createElement(Text, {
14826
14829
  size: "sm",
14827
14830
  fw: 500,
@@ -14870,17 +14873,29 @@ const ChatHeader = _ref => {
14870
14873
  } = _ref,
14871
14874
  others = _objectWithoutProperties(_ref, _excluded$3);
14872
14875
  return /*#__PURE__*/React__default.createElement(Box, _extends({
14873
- py: "md",
14874
- px: "lg",
14876
+ py: {
14877
+ base: "sm",
14878
+ md: "md"
14879
+ },
14880
+ px: {
14881
+ base: "sm",
14882
+ md: "lg"
14883
+ },
14875
14884
  style: _objectSpread$4({
14876
14885
  borderBottom: "1px solid #E2E8F0",
14877
14886
  backgroundColor: "white"
14878
14887
  }, style),
14879
14888
  className: className
14880
14889
  }, others), /*#__PURE__*/React__default.createElement(Group, {
14881
- justify: "space-between"
14890
+ justify: "space-between",
14891
+ wrap: "nowrap"
14882
14892
  }, /*#__PURE__*/React__default.createElement(Group, {
14883
- gap: 8
14893
+ gap: 8,
14894
+ wrap: "nowrap",
14895
+ style: {
14896
+ flex: 1,
14897
+ minWidth: 0
14898
+ }
14884
14899
  }, onBack && /*#__PURE__*/React__default.createElement(ActionIcon, {
14885
14900
  variant: "subtle",
14886
14901
  color: "gray",
@@ -14893,32 +14908,51 @@ const ChatHeader = _ref => {
14893
14908
  size: 20
14894
14909
  })), /*#__PURE__*/React__default.createElement(Avatar, {
14895
14910
  src: avatar,
14896
- size: 50,
14911
+ w: {
14912
+ base: 40,
14913
+ md: 50
14914
+ },
14915
+ h: {
14916
+ base: 40,
14917
+ md: 50
14918
+ },
14897
14919
  radius: "xl",
14898
14920
  style: {
14899
- border: "1px solid #CFD1D8"
14921
+ border: "1px solid #CFD1D8",
14922
+ flexShrink: 0
14900
14923
  }
14901
14924
  }), /*#__PURE__*/React__default.createElement(Stack, {
14902
- gap: 0
14925
+ gap: 0,
14926
+ style: {
14927
+ overflow: "hidden",
14928
+ minWidth: 0,
14929
+ flex: 1
14930
+ }
14903
14931
  }, /*#__PURE__*/React__default.createElement(Text, {
14904
14932
  size: "15px",
14905
14933
  fw: 400,
14906
14934
  lh: "24px",
14907
- c: "dark.9"
14935
+ c: "dark.9",
14936
+ truncate: "end"
14908
14937
  }, name), status && /*#__PURE__*/React__default.createElement(Text, {
14909
14938
  fw: 300,
14910
14939
  size: "sm",
14911
14940
  fs: "italic",
14912
- c: "#575E77"
14941
+ c: "#575E77",
14942
+ truncate: "end"
14913
14943
  }, status))), /*#__PURE__*/React__default.createElement(Group, {
14914
- gap: 0
14944
+ gap: 0,
14945
+ wrap: "nowrap"
14915
14946
  }, /*#__PURE__*/React__default.createElement(Box, {
14916
14947
  style: {
14917
- borderLeft: "1px solid #ECEDEF",
14918
- paddingInline: "8px"
14948
+ borderLeft: "1px solid #ECEDEF"
14949
+ },
14950
+ px: {
14951
+ base: 4,
14952
+ md: 8
14919
14953
  }
14920
14954
  }, /*#__PURE__*/React__default.createElement(ActionIcon, {
14921
- variant: "subtle",
14955
+ variant: "transparent",
14922
14956
  color: "gray",
14923
14957
  size: "lg",
14924
14958
  radius: "xl"
@@ -14927,11 +14961,18 @@ const ChatHeader = _ref => {
14927
14961
  size: 20
14928
14962
  }))), /*#__PURE__*/React__default.createElement(Box, {
14929
14963
  style: {
14930
- borderLeft: "1px solid #ECEDEF",
14931
- paddingInline: "8px"
14964
+ borderLeft: "1px solid #ECEDEF"
14965
+ },
14966
+ px: {
14967
+ base: 4,
14968
+ md: 8
14969
+ },
14970
+ display: {
14971
+ base: "none",
14972
+ md: "block"
14932
14973
  }
14933
14974
  }, /*#__PURE__*/React__default.createElement(ActionIcon, {
14934
- variant: "subtle",
14975
+ variant: "transparent",
14935
14976
  color: "gray",
14936
14977
  size: "lg",
14937
14978
  radius: "xl"
@@ -14940,11 +14981,18 @@ const ChatHeader = _ref => {
14940
14981
  size: 20
14941
14982
  }))), /*#__PURE__*/React__default.createElement(Box, {
14942
14983
  style: {
14943
- borderLeft: "1px solid #ECEDEF",
14944
- paddingInline: "8px"
14984
+ borderLeft: "1px solid #ECEDEF"
14985
+ },
14986
+ px: {
14987
+ base: 4,
14988
+ md: 8
14989
+ },
14990
+ display: {
14991
+ base: "none",
14992
+ md: "block"
14945
14993
  }
14946
14994
  }, /*#__PURE__*/React__default.createElement(ActionIcon, {
14947
- variant: "subtle",
14995
+ variant: "transparent",
14948
14996
  color: "gray",
14949
14997
  size: "lg",
14950
14998
  radius: "xl"
@@ -14953,11 +15001,14 @@ const ChatHeader = _ref => {
14953
15001
  size: 20
14954
15002
  }))), /*#__PURE__*/React__default.createElement(Box, {
14955
15003
  style: {
14956
- borderLeft: "1px solid #ECEDEF",
14957
- paddingInline: "8px"
15004
+ borderLeft: "1px solid #ECEDEF"
15005
+ },
15006
+ px: {
15007
+ base: 4,
15008
+ md: 8
14958
15009
  }
14959
15010
  }, /*#__PURE__*/React__default.createElement(ActionIcon, {
14960
- variant: "subtle",
15011
+ variant: "transparent",
14961
15012
  color: "gray",
14962
15013
  size: "lg",
14963
15014
  radius: "xl"
@@ -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-DktlPeMy.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-PZhuS6Ng.js';
2
2
  import '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import '@babel/runtime/helpers/defineProperty';
4
4
  import '@mantine/modals';
@@ -7,4 +7,6 @@ export declare const ConversationItemActive: import("@storybook/core/csf").Annot
7
7
  export declare const MessageIncoming: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Chat.types").ChatBubbleProps>;
8
8
  export declare const MessageOutgoing: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Chat.types").ChatBubbleProps>;
9
9
  export declare const MessageAttachment: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Chat.types").ChatBubbleProps>;
10
+ export declare const DesktopHeader: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, any>;
11
+ export declare const MobileHeader: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, any>;
10
12
  export declare const FullChatLayout: () => import("react/jsx-runtime").JSX.Element;
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.24",
4
+ "version": "0.2.25",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",