@adiba-banking-cloud/backoffice 0.2.37 → 0.2.39

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-dNJ63nc8.js');
3
+ var index = require('./index-CF3rcm8e.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-BBXcnNXP.js'); }).then(function (n) { return n.heatmap; }).then(heatmapModule => {
12172
+ Promise.resolve().then(function () { return require('./heatmap-Dhv2BqEd.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);
@@ -12874,13 +12874,15 @@ const UserMenuTarget = _ref => {
12874
12874
  fw: 300
12875
12875
  }, /*#__PURE__*/React.createElement(core.Text, {
12876
12876
  fw: 300,
12877
- size: "sm"
12877
+ size: "sm",
12878
+ c: "black"
12878
12879
  }, name), /*#__PURE__*/React.createElement(core.Text, {
12879
12880
  c: "dimmed",
12880
12881
  size: "xs"
12881
12882
  }, username)), /*#__PURE__*/React.createElement(Icons, {
12882
12883
  name: "ArrowDown2",
12883
- size: 12
12884
+ size: 12,
12885
+ color: "black"
12884
12886
  }))));
12885
12887
  };
12886
12888
 
@@ -12948,7 +12950,12 @@ const UserMenu = _ref => {
12948
12950
  withinPortal: true,
12949
12951
  offset: 5,
12950
12952
  arrowOffset: 20,
12951
- arrowSize: 10
12953
+ arrowSize: 10,
12954
+ vars: theme => ({
12955
+ root: {
12956
+ "--menu-item-hover": "var(--mantine-color-adiba-0)"
12957
+ }
12958
+ })
12952
12959
  }, /*#__PURE__*/React.createElement(UserMenuTarget, {
12953
12960
  name,
12954
12961
  username,
@@ -16131,7 +16138,8 @@ function withProviders(Component) {
16131
16138
  datesSettings = {
16132
16139
  locale: "en",
16133
16140
  timezone: "UTC"
16134
- }
16141
+ },
16142
+ cssVariablesSelector
16135
16143
  } = options;
16136
16144
  const WrappedComponent = props => {
16137
16145
  var _process$env;
@@ -16139,7 +16147,8 @@ function withProviders(Component) {
16139
16147
  return /*#__PURE__*/React__namespace.createElement(reactQuery.QueryClientProvider, {
16140
16148
  client: queryClient
16141
16149
  }, /*#__PURE__*/React__namespace.createElement(core.MantineProvider, {
16142
- theme: customTheme()
16150
+ theme: customTheme(),
16151
+ cssVariablesSelector: cssVariablesSelector
16143
16152
  }, /*#__PURE__*/React__namespace.createElement(dates.DatesProvider, {
16144
16153
  settings: datesSettings
16145
16154
  }, /*#__PURE__*/React__namespace.createElement(Component, props), showDevtools && /*#__PURE__*/React__namespace.createElement(reactQueryDevtools.ReactQueryDevtools, null))));
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-dNJ63nc8.js');
3
+ var index = require('./index-CF3rcm8e.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-B1m_N_ji.js';
1
+ import { g as getDefaultExportFromCjs } from './index-DxdMbXh2.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-irWxHDY_.js').then(function (n) { return n.h; }).then(heatmapModule => {
12151
+ import('./heatmap-7BvAxjLY.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);
@@ -12853,13 +12853,15 @@ const UserMenuTarget = _ref => {
12853
12853
  fw: 300
12854
12854
  }, /*#__PURE__*/React__default.createElement(Text, {
12855
12855
  fw: 300,
12856
- size: "sm"
12856
+ size: "sm",
12857
+ c: "black"
12857
12858
  }, name), /*#__PURE__*/React__default.createElement(Text, {
12858
12859
  c: "dimmed",
12859
12860
  size: "xs"
12860
12861
  }, username)), /*#__PURE__*/React__default.createElement(Icons, {
12861
12862
  name: "ArrowDown2",
12862
- size: 12
12863
+ size: 12,
12864
+ color: "black"
12863
12865
  }))));
12864
12866
  };
12865
12867
 
@@ -12927,7 +12929,12 @@ const UserMenu = _ref => {
12927
12929
  withinPortal: true,
12928
12930
  offset: 5,
12929
12931
  arrowOffset: 20,
12930
- arrowSize: 10
12932
+ arrowSize: 10,
12933
+ vars: theme => ({
12934
+ root: {
12935
+ "--menu-item-hover": "var(--mantine-color-adiba-0)"
12936
+ }
12937
+ })
12931
12938
  }, /*#__PURE__*/React__default.createElement(UserMenuTarget, {
12932
12939
  name,
12933
12940
  username,
@@ -16110,7 +16117,8 @@ function withProviders(Component) {
16110
16117
  datesSettings = {
16111
16118
  locale: "en",
16112
16119
  timezone: "UTC"
16113
- }
16120
+ },
16121
+ cssVariablesSelector
16114
16122
  } = options;
16115
16123
  const WrappedComponent = props => {
16116
16124
  var _process$env;
@@ -16118,7 +16126,8 @@ function withProviders(Component) {
16118
16126
  return /*#__PURE__*/React.createElement(QueryClientProvider, {
16119
16127
  client: queryClient
16120
16128
  }, /*#__PURE__*/React.createElement(MantineProvider, {
16121
- theme: customTheme()
16129
+ theme: customTheme(),
16130
+ cssVariablesSelector: cssVariablesSelector
16122
16131
  }, /*#__PURE__*/React.createElement(DatesProvider, {
16123
16132
  settings: datesSettings
16124
16133
  }, /*#__PURE__*/React.createElement(Component, props), showDevtools && /*#__PURE__*/React.createElement(ReactQueryDevtools, null))));
@@ -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-B1m_N_ji.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-DxdMbXh2.js';
2
2
  import '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import '@babel/runtime/helpers/defineProperty';
4
4
  import '@mantine/modals';
package/build/styles.css CHANGED
@@ -1 +1 @@
1
- svg>path{stroke-width:inherit}.backoffice-sidemenu.mantine-NavLink-root{padding:.25rem}.backoffice-sidemenu.mantine-NavLink-root[data-active] .mantine-NavLink-section:first-child{background:var(--mantine-color-adiba-4)}.backoffice-sidemenu.mantine-NavLink-root .mantine-NavLink-section:first-child{border-radius:9999px;display:flex;height:2rem;width:2rem}.payment-plan .mantine-Indicator-indicator{padding:0}@font-face{font-family:THICCCBOI;src:url(https://db.onlinewebfonts.com/t/74065c19f82d6a5933f924aea6d037a7.eot);src:url(https://db.onlinewebfonts.com/t/74065c19f82d6a5933f924aea6d037a7.eot?#iefix) format("embedded-opentype"),url(https://db.onlinewebfonts.com/t/74065c19f82d6a5933f924aea6d037a7.woff2) format("woff2"),url(https://db.onlinewebfonts.com/t/74065c19f82d6a5933f924aea6d037a7.woff) format("woff"),url(https://db.onlinewebfonts.com/t/74065c19f82d6a5933f924aea6d037a7.ttf) format("truetype"),url(https://db.onlinewebfonts.com/t/74065c19f82d6a5933f924aea6d037a7.svg#THICCCBOI) format("svg")}.credit-card-container{cursor:pointer;height:185px;perspective:1000px;width:320px}.credit-card-inner{height:100%;position:relative;text-align:center;transform-style:preserve-3d;transition:transform .6s;width:100%}.credit-card-container.flipped .credit-card-inner{transform:rotateY(180deg)}.credit-card-back,.credit-card-front{backface-visibility:hidden;border-radius:20px;box-shadow:0 4px 8px rgba(0,0,0,.1);height:100%;overflow:hidden;position:absolute;width:100%}.credit-card-back{transform:rotateY(180deg)}.magnetic-stripe{background-color:#2f2f2f;height:40px;margin-top:20px;width:100%}.add-card-container{align-items:center;background-color:#ecedef;border:1px dashed #6f758b;border-radius:20px;cursor:pointer;display:flex;height:185px;justify-content:center;transition:background-color .2s;width:320px}.add-card-container:hover{background-color:#e9ecef}
1
+ svg>path{stroke-width:inherit}.backoffice-sidemenu.mantine-NavLink-root{padding:.25rem}.backoffice-sidemenu.mantine-NavLink-root[data-active] .mantine-NavLink-section:first-child{background:var(--mantine-color-adiba-4)}.backoffice-sidemenu.mantine-NavLink-root:hover{background-color:var(--mantine-color-adiba-0);color:var(--mantine-color-adiba-9)}.backoffice-sidemenu.mantine-NavLink-root .mantine-NavLink-section:first-child{border-radius:9999px;display:flex;height:2rem;width:2rem}.payment-plan .mantine-Indicator-indicator{padding:0}@font-face{font-family:THICCCBOI;src:url(https://db.onlinewebfonts.com/t/74065c19f82d6a5933f924aea6d037a7.eot);src:url(https://db.onlinewebfonts.com/t/74065c19f82d6a5933f924aea6d037a7.eot?#iefix) format("embedded-opentype"),url(https://db.onlinewebfonts.com/t/74065c19f82d6a5933f924aea6d037a7.woff2) format("woff2"),url(https://db.onlinewebfonts.com/t/74065c19f82d6a5933f924aea6d037a7.woff) format("woff"),url(https://db.onlinewebfonts.com/t/74065c19f82d6a5933f924aea6d037a7.ttf) format("truetype"),url(https://db.onlinewebfonts.com/t/74065c19f82d6a5933f924aea6d037a7.svg#THICCCBOI) format("svg")}.credit-card-container{cursor:pointer;height:185px;perspective:1000px;width:320px}.credit-card-inner{height:100%;position:relative;text-align:center;transform-style:preserve-3d;transition:transform .6s;width:100%}.credit-card-container.flipped .credit-card-inner{transform:rotateY(180deg)}.credit-card-back,.credit-card-front{backface-visibility:hidden;border-radius:20px;box-shadow:0 4px 8px rgba(0,0,0,.1);height:100%;overflow:hidden;position:absolute;width:100%}.credit-card-back{transform:rotateY(180deg)}.magnetic-stripe{background-color:#2f2f2f;height:40px;margin-top:20px;width:100%}.add-card-container{align-items:center;background-color:#ecedef;border:1px dashed #6f758b;border-radius:20px;cursor:pointer;display:flex;height:185px;justify-content:center;transition:background-color .2s;width:320px}.add-card-container:hover{background-color:#e9ecef}
@@ -23,6 +23,11 @@ export interface WithProvidersOptions {
23
23
  locale: string;
24
24
  timezone: string;
25
25
  };
26
+ /**
27
+ * Target CSS selector for Mantine variables
28
+ * Helpful for micro-frontends (Pilets) to avoid overwriting the host App Shell CSS
29
+ */
30
+ cssVariablesSelector?: string;
26
31
  }
27
32
  /**
28
33
  * Higher-order component that wraps a component with all necessary providers:
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.37",
4
+ "version": "0.2.39",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",