@adiba-banking-cloud/backoffice 0.2.23 → 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-vVTyyOKM.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-CNMyGxA9.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,
@@ -14716,12 +14717,15 @@ const ChatListCard = _ref => {
14716
14717
  justify: "space-between",
14717
14718
  align: "baseline",
14718
14719
  mb: 6
14720
+ }, /*#__PURE__*/React.createElement(core.Stack, {
14721
+ gap: 0,
14722
+ w: "calc(100% - 3rem)"
14719
14723
  }, /*#__PURE__*/React.createElement(core.Text, {
14720
14724
  fw: 300,
14721
14725
  size: "sm",
14722
14726
  c: "dark.9",
14723
14727
  truncate: true
14724
- }, name), /*#__PURE__*/React.createElement(core.Text, {
14728
+ }, name)), /*#__PURE__*/React.createElement(core.Text, {
14725
14729
  fw: 300,
14726
14730
  size: "xs",
14727
14731
  fs: "italic",
@@ -14811,8 +14815,7 @@ const ChatBubble = _ref => {
14811
14815
  style: {
14812
14816
  backgroundColor: bubbleBg,
14813
14817
  borderRadius: borderRadius,
14814
- position: "relative",
14815
- minWidth: 400 // Ensure enough width for layout
14818
+ position: "relative"
14816
14819
  }
14817
14820
  }, senderName && !isOutgoing && /*#__PURE__*/React.createElement(core.Text, {
14818
14821
  size: "sm",
@@ -14839,7 +14842,10 @@ const ChatBubble = _ref => {
14839
14842
  mb: 4
14840
14843
  }, /*#__PURE__*/React.createElement(core.Stack, {
14841
14844
  gap: 0,
14842
- ml: "xs"
14845
+ ml: "xs",
14846
+ style: {
14847
+ minWidth: 0
14848
+ }
14843
14849
  }, /*#__PURE__*/React.createElement(core.Text, {
14844
14850
  size: "sm",
14845
14851
  fw: 500,
@@ -14888,17 +14894,29 @@ const ChatHeader = _ref => {
14888
14894
  } = _ref,
14889
14895
  others = _objectWithoutProperties(_ref, _excluded$3);
14890
14896
  return /*#__PURE__*/React.createElement(core.Box, _extends({
14891
- py: "md",
14892
- px: "lg",
14897
+ py: {
14898
+ base: "sm",
14899
+ md: "md"
14900
+ },
14901
+ px: {
14902
+ base: "sm",
14903
+ md: "lg"
14904
+ },
14893
14905
  style: _objectSpread$4({
14894
14906
  borderBottom: "1px solid #E2E8F0",
14895
14907
  backgroundColor: "white"
14896
14908
  }, style),
14897
14909
  className: className
14898
14910
  }, others), /*#__PURE__*/React.createElement(core.Group, {
14899
- justify: "space-between"
14911
+ justify: "space-between",
14912
+ wrap: "nowrap"
14900
14913
  }, /*#__PURE__*/React.createElement(core.Group, {
14901
- gap: 8
14914
+ gap: 8,
14915
+ wrap: "nowrap",
14916
+ style: {
14917
+ flex: 1,
14918
+ minWidth: 0
14919
+ }
14902
14920
  }, onBack && /*#__PURE__*/React.createElement(core.ActionIcon, {
14903
14921
  variant: "subtle",
14904
14922
  color: "gray",
@@ -14911,32 +14929,51 @@ const ChatHeader = _ref => {
14911
14929
  size: 20
14912
14930
  })), /*#__PURE__*/React.createElement(core.Avatar, {
14913
14931
  src: avatar,
14914
- size: 50,
14932
+ w: {
14933
+ base: 40,
14934
+ md: 50
14935
+ },
14936
+ h: {
14937
+ base: 40,
14938
+ md: 50
14939
+ },
14915
14940
  radius: "xl",
14916
14941
  style: {
14917
- border: "1px solid #CFD1D8"
14942
+ border: "1px solid #CFD1D8",
14943
+ flexShrink: 0
14918
14944
  }
14919
14945
  }), /*#__PURE__*/React.createElement(core.Stack, {
14920
- gap: 0
14946
+ gap: 0,
14947
+ style: {
14948
+ overflow: "hidden",
14949
+ minWidth: 0,
14950
+ flex: 1
14951
+ }
14921
14952
  }, /*#__PURE__*/React.createElement(core.Text, {
14922
14953
  size: "15px",
14923
14954
  fw: 400,
14924
14955
  lh: "24px",
14925
- c: "dark.9"
14956
+ c: "dark.9",
14957
+ truncate: "end"
14926
14958
  }, name), status && /*#__PURE__*/React.createElement(core.Text, {
14927
14959
  fw: 300,
14928
14960
  size: "sm",
14929
14961
  fs: "italic",
14930
- c: "#575E77"
14962
+ c: "#575E77",
14963
+ truncate: "end"
14931
14964
  }, status))), /*#__PURE__*/React.createElement(core.Group, {
14932
- gap: 0
14965
+ gap: 0,
14966
+ wrap: "nowrap"
14933
14967
  }, /*#__PURE__*/React.createElement(core.Box, {
14934
14968
  style: {
14935
- borderLeft: "1px solid #ECEDEF",
14936
- paddingInline: "8px"
14969
+ borderLeft: "1px solid #ECEDEF"
14970
+ },
14971
+ px: {
14972
+ base: 4,
14973
+ md: 8
14937
14974
  }
14938
14975
  }, /*#__PURE__*/React.createElement(core.ActionIcon, {
14939
- variant: "subtle",
14976
+ variant: "transparent",
14940
14977
  color: "gray",
14941
14978
  size: "lg",
14942
14979
  radius: "xl"
@@ -14945,11 +14982,18 @@ const ChatHeader = _ref => {
14945
14982
  size: 20
14946
14983
  }))), /*#__PURE__*/React.createElement(core.Box, {
14947
14984
  style: {
14948
- borderLeft: "1px solid #ECEDEF",
14949
- 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"
14950
14994
  }
14951
14995
  }, /*#__PURE__*/React.createElement(core.ActionIcon, {
14952
- variant: "subtle",
14996
+ variant: "transparent",
14953
14997
  color: "gray",
14954
14998
  size: "lg",
14955
14999
  radius: "xl"
@@ -14958,11 +15002,18 @@ const ChatHeader = _ref => {
14958
15002
  size: 20
14959
15003
  }))), /*#__PURE__*/React.createElement(core.Box, {
14960
15004
  style: {
14961
- borderLeft: "1px solid #ECEDEF",
14962
- 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"
14963
15014
  }
14964
15015
  }, /*#__PURE__*/React.createElement(core.ActionIcon, {
14965
- variant: "subtle",
15016
+ variant: "transparent",
14966
15017
  color: "gray",
14967
15018
  size: "lg",
14968
15019
  radius: "xl"
@@ -14971,11 +15022,14 @@ const ChatHeader = _ref => {
14971
15022
  size: 20
14972
15023
  }))), /*#__PURE__*/React.createElement(core.Box, {
14973
15024
  style: {
14974
- borderLeft: "1px solid #ECEDEF",
14975
- paddingInline: "8px"
15025
+ borderLeft: "1px solid #ECEDEF"
15026
+ },
15027
+ px: {
15028
+ base: 4,
15029
+ md: 8
14976
15030
  }
14977
15031
  }, /*#__PURE__*/React.createElement(core.ActionIcon, {
14978
- variant: "subtle",
15032
+ variant: "transparent",
14979
15033
  color: "gray",
14980
15034
  size: "lg",
14981
15035
  radius: "xl"
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-vVTyyOKM.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-CHODgKVB.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-6uPkS8op.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,
@@ -14695,12 +14696,15 @@ const ChatListCard = _ref => {
14695
14696
  justify: "space-between",
14696
14697
  align: "baseline",
14697
14698
  mb: 6
14699
+ }, /*#__PURE__*/React__default.createElement(Stack, {
14700
+ gap: 0,
14701
+ w: "calc(100% - 3rem)"
14698
14702
  }, /*#__PURE__*/React__default.createElement(Text, {
14699
14703
  fw: 300,
14700
14704
  size: "sm",
14701
14705
  c: "dark.9",
14702
14706
  truncate: true
14703
- }, name), /*#__PURE__*/React__default.createElement(Text, {
14707
+ }, name)), /*#__PURE__*/React__default.createElement(Text, {
14704
14708
  fw: 300,
14705
14709
  size: "xs",
14706
14710
  fs: "italic",
@@ -14790,8 +14794,7 @@ const ChatBubble = _ref => {
14790
14794
  style: {
14791
14795
  backgroundColor: bubbleBg,
14792
14796
  borderRadius: borderRadius,
14793
- position: "relative",
14794
- minWidth: 400 // Ensure enough width for layout
14797
+ position: "relative"
14795
14798
  }
14796
14799
  }, senderName && !isOutgoing && /*#__PURE__*/React__default.createElement(Text, {
14797
14800
  size: "sm",
@@ -14818,7 +14821,10 @@ const ChatBubble = _ref => {
14818
14821
  mb: 4
14819
14822
  }, /*#__PURE__*/React__default.createElement(Stack, {
14820
14823
  gap: 0,
14821
- ml: "xs"
14824
+ ml: "xs",
14825
+ style: {
14826
+ minWidth: 0
14827
+ }
14822
14828
  }, /*#__PURE__*/React__default.createElement(Text, {
14823
14829
  size: "sm",
14824
14830
  fw: 500,
@@ -14867,17 +14873,29 @@ const ChatHeader = _ref => {
14867
14873
  } = _ref,
14868
14874
  others = _objectWithoutProperties(_ref, _excluded$3);
14869
14875
  return /*#__PURE__*/React__default.createElement(Box, _extends({
14870
- py: "md",
14871
- px: "lg",
14876
+ py: {
14877
+ base: "sm",
14878
+ md: "md"
14879
+ },
14880
+ px: {
14881
+ base: "sm",
14882
+ md: "lg"
14883
+ },
14872
14884
  style: _objectSpread$4({
14873
14885
  borderBottom: "1px solid #E2E8F0",
14874
14886
  backgroundColor: "white"
14875
14887
  }, style),
14876
14888
  className: className
14877
14889
  }, others), /*#__PURE__*/React__default.createElement(Group, {
14878
- justify: "space-between"
14890
+ justify: "space-between",
14891
+ wrap: "nowrap"
14879
14892
  }, /*#__PURE__*/React__default.createElement(Group, {
14880
- gap: 8
14893
+ gap: 8,
14894
+ wrap: "nowrap",
14895
+ style: {
14896
+ flex: 1,
14897
+ minWidth: 0
14898
+ }
14881
14899
  }, onBack && /*#__PURE__*/React__default.createElement(ActionIcon, {
14882
14900
  variant: "subtle",
14883
14901
  color: "gray",
@@ -14890,32 +14908,51 @@ const ChatHeader = _ref => {
14890
14908
  size: 20
14891
14909
  })), /*#__PURE__*/React__default.createElement(Avatar, {
14892
14910
  src: avatar,
14893
- size: 50,
14911
+ w: {
14912
+ base: 40,
14913
+ md: 50
14914
+ },
14915
+ h: {
14916
+ base: 40,
14917
+ md: 50
14918
+ },
14894
14919
  radius: "xl",
14895
14920
  style: {
14896
- border: "1px solid #CFD1D8"
14921
+ border: "1px solid #CFD1D8",
14922
+ flexShrink: 0
14897
14923
  }
14898
14924
  }), /*#__PURE__*/React__default.createElement(Stack, {
14899
- gap: 0
14925
+ gap: 0,
14926
+ style: {
14927
+ overflow: "hidden",
14928
+ minWidth: 0,
14929
+ flex: 1
14930
+ }
14900
14931
  }, /*#__PURE__*/React__default.createElement(Text, {
14901
14932
  size: "15px",
14902
14933
  fw: 400,
14903
14934
  lh: "24px",
14904
- c: "dark.9"
14935
+ c: "dark.9",
14936
+ truncate: "end"
14905
14937
  }, name), status && /*#__PURE__*/React__default.createElement(Text, {
14906
14938
  fw: 300,
14907
14939
  size: "sm",
14908
14940
  fs: "italic",
14909
- c: "#575E77"
14941
+ c: "#575E77",
14942
+ truncate: "end"
14910
14943
  }, status))), /*#__PURE__*/React__default.createElement(Group, {
14911
- gap: 0
14944
+ gap: 0,
14945
+ wrap: "nowrap"
14912
14946
  }, /*#__PURE__*/React__default.createElement(Box, {
14913
14947
  style: {
14914
- borderLeft: "1px solid #ECEDEF",
14915
- paddingInline: "8px"
14948
+ borderLeft: "1px solid #ECEDEF"
14949
+ },
14950
+ px: {
14951
+ base: 4,
14952
+ md: 8
14916
14953
  }
14917
14954
  }, /*#__PURE__*/React__default.createElement(ActionIcon, {
14918
- variant: "subtle",
14955
+ variant: "transparent",
14919
14956
  color: "gray",
14920
14957
  size: "lg",
14921
14958
  radius: "xl"
@@ -14924,11 +14961,18 @@ const ChatHeader = _ref => {
14924
14961
  size: 20
14925
14962
  }))), /*#__PURE__*/React__default.createElement(Box, {
14926
14963
  style: {
14927
- borderLeft: "1px solid #ECEDEF",
14928
- 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"
14929
14973
  }
14930
14974
  }, /*#__PURE__*/React__default.createElement(ActionIcon, {
14931
- variant: "subtle",
14975
+ variant: "transparent",
14932
14976
  color: "gray",
14933
14977
  size: "lg",
14934
14978
  radius: "xl"
@@ -14937,11 +14981,18 @@ const ChatHeader = _ref => {
14937
14981
  size: 20
14938
14982
  }))), /*#__PURE__*/React__default.createElement(Box, {
14939
14983
  style: {
14940
- borderLeft: "1px solid #ECEDEF",
14941
- 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"
14942
14993
  }
14943
14994
  }, /*#__PURE__*/React__default.createElement(ActionIcon, {
14944
- variant: "subtle",
14995
+ variant: "transparent",
14945
14996
  color: "gray",
14946
14997
  size: "lg",
14947
14998
  radius: "xl"
@@ -14950,11 +15001,14 @@ const ChatHeader = _ref => {
14950
15001
  size: 20
14951
15002
  }))), /*#__PURE__*/React__default.createElement(Box, {
14952
15003
  style: {
14953
- borderLeft: "1px solid #ECEDEF",
14954
- paddingInline: "8px"
15004
+ borderLeft: "1px solid #ECEDEF"
15005
+ },
15006
+ px: {
15007
+ base: 4,
15008
+ md: 8
14955
15009
  }
14956
15010
  }, /*#__PURE__*/React__default.createElement(ActionIcon, {
14957
- variant: "subtle",
15011
+ variant: "transparent",
14958
15012
  color: "gray",
14959
15013
  size: "lg",
14960
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-CHODgKVB.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.23",
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",