@adiba-banking-cloud/backoffice 0.2.6 → 0.2.7
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-BecrND_v.js → heatmap-B1kaS2PG.js} +1 -1
- package/build/index.cjs.js/{index-Co-HkdSV.js → index-D51hEk07.js} +427 -413
- package/build/index.cjs.js/index.js +1 -1
- package/build/index.esm.js/{heatmap-DWLHgpGo.js → heatmap-DkDFcCFl.js} +1 -1
- package/build/index.esm.js/{index-BfSVOhZ9.js → index-Di6tbDMv.js} +41 -27
- package/build/index.esm.js/index.js +1 -1
- package/build/typings/components/tables/table-state/TableStateView.d.ts +2 -1
- package/build/typings/components/widgets/merchant/MerchantCard.stories.d.ts +1 -0
- package/build/typings/components/widgets/merchant/MerchantCard.types.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import { modals } from '@mantine/modals';
|
|
4
|
-
import * as React
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import React__default, { useRef, useMemo, useEffect, useState } from 'react';
|
|
6
6
|
import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink, Card, PillsInput, ActionIcon, Pill, Box, Title, SegmentedControl, Breadcrumbs, Anchor, ColorSwatch, AspectRatio, Overlay, rem, SimpleGrid, Indicator, Table, createTheme, PinInput, Drawer as Drawer$1, ScrollArea, NumberInput, PasswordInput, TextInput, Textarea, Grid, ThemeIcon, MantineProvider } from '@mantine/core';
|
|
7
7
|
import { DotLottieReact } from '@lottiefiles/dotlottie-react';
|
|
@@ -12148,7 +12148,7 @@ function _objectSpread$8(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-
|
|
12151
|
+
import('./heatmap-DkDFcCFl.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);
|
|
@@ -14959,7 +14959,7 @@ const TilePanel = _ref2 => {
|
|
|
14959
14959
|
}))));
|
|
14960
14960
|
};
|
|
14961
14961
|
|
|
14962
|
-
const _excluded$1 = ["name", "logo", "category", "price", "onClick", "dragHandleProps", "variant", "onClose", "className", "style"];
|
|
14962
|
+
const _excluded$1 = ["name", "logo", "category", "price", "onClick", "dragHandleProps", "variant", "onClose", "onAdd", "className", "style"];
|
|
14963
14963
|
function ownKeys$2(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; }
|
|
14964
14964
|
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14965
14965
|
const MerchantCard = _ref => {
|
|
@@ -14972,6 +14972,7 @@ const MerchantCard = _ref => {
|
|
|
14972
14972
|
dragHandleProps,
|
|
14973
14973
|
variant = "default",
|
|
14974
14974
|
onClose,
|
|
14975
|
+
onAdd,
|
|
14975
14976
|
className,
|
|
14976
14977
|
style
|
|
14977
14978
|
} = _ref,
|
|
@@ -14988,7 +14989,7 @@ const MerchantCard = _ref => {
|
|
|
14988
14989
|
className: className
|
|
14989
14990
|
}, others), /*#__PURE__*/React__default.createElement(Group, {
|
|
14990
14991
|
justify: "space-between",
|
|
14991
|
-
align: "center",
|
|
14992
|
+
align: variant === "add" ? "flex-end" : "center",
|
|
14992
14993
|
wrap: "nowrap"
|
|
14993
14994
|
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
14994
14995
|
gap: "md",
|
|
@@ -15056,7 +15057,7 @@ const MerchantCard = _ref => {
|
|
|
15056
15057
|
name: "CloseCircle",
|
|
15057
15058
|
size: 24,
|
|
15058
15059
|
color: "#A1A8AF"
|
|
15059
|
-
})) : /*#__PURE__*/React__default.createElement(ActionIcon, _extends({
|
|
15060
|
+
})) : variant === "default" ? /*#__PURE__*/React__default.createElement(ActionIcon, _extends({
|
|
15060
15061
|
variant: "transparent",
|
|
15061
15062
|
style: {
|
|
15062
15063
|
cursor: "grab",
|
|
@@ -15066,6 +15067,19 @@ const MerchantCard = _ref => {
|
|
|
15066
15067
|
name: "Maximize4",
|
|
15067
15068
|
size: 24,
|
|
15068
15069
|
color: "#1C1C1C"
|
|
15070
|
+
})) : /*#__PURE__*/React__default.createElement(ActionIcon, {
|
|
15071
|
+
bg: "#0F193D",
|
|
15072
|
+
w: 32,
|
|
15073
|
+
h: 32,
|
|
15074
|
+
radius: "100%",
|
|
15075
|
+
onClick: e => {
|
|
15076
|
+
e.stopPropagation();
|
|
15077
|
+
onAdd === null || onAdd === void 0 || onAdd();
|
|
15078
|
+
}
|
|
15079
|
+
}, /*#__PURE__*/React__default.createElement(Icons, {
|
|
15080
|
+
name: "Add",
|
|
15081
|
+
size: 24,
|
|
15082
|
+
color: "#FFFFFF"
|
|
15069
15083
|
}))));
|
|
15070
15084
|
};
|
|
15071
15085
|
|
|
@@ -15079,13 +15093,13 @@ const TableStateView = _ref => {
|
|
|
15079
15093
|
iconBgColor = "rgba(255,255,255,0.8)",
|
|
15080
15094
|
borderColor
|
|
15081
15095
|
} = _ref;
|
|
15082
|
-
return /*#__PURE__*/
|
|
15096
|
+
return /*#__PURE__*/React__default.createElement(Box, {
|
|
15083
15097
|
pos: "relative",
|
|
15084
15098
|
style: {
|
|
15085
15099
|
flex: 1,
|
|
15086
15100
|
overflow: "hidden"
|
|
15087
15101
|
}
|
|
15088
|
-
}, /*#__PURE__*/
|
|
15102
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
15089
15103
|
pos: "absolute",
|
|
15090
15104
|
inset: 0,
|
|
15091
15105
|
style: {
|
|
@@ -15093,17 +15107,17 @@ const TableStateView = _ref => {
|
|
|
15093
15107
|
pointerEvents: "none"
|
|
15094
15108
|
},
|
|
15095
15109
|
p: "xl"
|
|
15096
|
-
}, /*#__PURE__*/
|
|
15110
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
15097
15111
|
gap: "40px",
|
|
15098
15112
|
w: "100%"
|
|
15099
15113
|
}, Array.from({
|
|
15100
15114
|
length: 12
|
|
15101
|
-
}).map((_, i) => /*#__PURE__*/
|
|
15115
|
+
}).map((_, i) => /*#__PURE__*/React__default.createElement(Group, {
|
|
15102
15116
|
key: i,
|
|
15103
15117
|
gap: "lg",
|
|
15104
15118
|
wrap: "nowrap",
|
|
15105
15119
|
w: "100%"
|
|
15106
|
-
}, /*#__PURE__*/
|
|
15120
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
15107
15121
|
h: 20,
|
|
15108
15122
|
w: 40,
|
|
15109
15123
|
bg: "gray.1",
|
|
@@ -15111,7 +15125,7 @@ const TableStateView = _ref => {
|
|
|
15111
15125
|
style: {
|
|
15112
15126
|
borderRadius: "4px"
|
|
15113
15127
|
}
|
|
15114
|
-
}), /*#__PURE__*/
|
|
15128
|
+
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
15115
15129
|
h: 20,
|
|
15116
15130
|
w: 200,
|
|
15117
15131
|
bg: "gray.1",
|
|
@@ -15119,7 +15133,7 @@ const TableStateView = _ref => {
|
|
|
15119
15133
|
style: {
|
|
15120
15134
|
borderRadius: "4px"
|
|
15121
15135
|
}
|
|
15122
|
-
}), /*#__PURE__*/
|
|
15136
|
+
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
15123
15137
|
h: 20,
|
|
15124
15138
|
w: 80,
|
|
15125
15139
|
bg: "gray.1",
|
|
@@ -15128,7 +15142,7 @@ const TableStateView = _ref => {
|
|
|
15128
15142
|
borderRadius: "4px"
|
|
15129
15143
|
},
|
|
15130
15144
|
visibleFrom: "xs"
|
|
15131
|
-
}), /*#__PURE__*/
|
|
15145
|
+
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
15132
15146
|
h: 20,
|
|
15133
15147
|
w: 60,
|
|
15134
15148
|
bg: "gray.1",
|
|
@@ -15138,7 +15152,7 @@ const TableStateView = _ref => {
|
|
|
15138
15152
|
flex: "1"
|
|
15139
15153
|
},
|
|
15140
15154
|
visibleFrom: "sm"
|
|
15141
|
-
}), /*#__PURE__*/
|
|
15155
|
+
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
15142
15156
|
h: 20,
|
|
15143
15157
|
w: 70,
|
|
15144
15158
|
bg: "gray.1",
|
|
@@ -15148,7 +15162,7 @@ const TableStateView = _ref => {
|
|
|
15148
15162
|
flex: "1"
|
|
15149
15163
|
},
|
|
15150
15164
|
visibleFrom: "md"
|
|
15151
|
-
}), /*#__PURE__*/
|
|
15165
|
+
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
15152
15166
|
h: 20,
|
|
15153
15167
|
w: 90,
|
|
15154
15168
|
bg: "gray.1",
|
|
@@ -15156,14 +15170,14 @@ const TableStateView = _ref => {
|
|
|
15156
15170
|
borderRadius: "4px"
|
|
15157
15171
|
},
|
|
15158
15172
|
visibleFrom: "lg"
|
|
15159
|
-
}))))), /*#__PURE__*/
|
|
15173
|
+
}))))), /*#__PURE__*/React__default.createElement(Box, {
|
|
15160
15174
|
pos: "absolute",
|
|
15161
15175
|
inset: 0,
|
|
15162
15176
|
style: {
|
|
15163
15177
|
zIndex: 1,
|
|
15164
15178
|
background: "linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.4) 100%)"
|
|
15165
15179
|
}
|
|
15166
|
-
}), /*#__PURE__*/
|
|
15180
|
+
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
15167
15181
|
pos: "relative",
|
|
15168
15182
|
h: "100%",
|
|
15169
15183
|
align: "center",
|
|
@@ -15175,7 +15189,7 @@ const TableStateView = _ref => {
|
|
|
15175
15189
|
style: {
|
|
15176
15190
|
zIndex: 2
|
|
15177
15191
|
}
|
|
15178
|
-
}, /*#__PURE__*/
|
|
15192
|
+
}, /*#__PURE__*/React__default.createElement(ThemeIcon, {
|
|
15179
15193
|
size: 64,
|
|
15180
15194
|
radius: 16,
|
|
15181
15195
|
variant: "default",
|
|
@@ -15184,14 +15198,14 @@ const TableStateView = _ref => {
|
|
|
15184
15198
|
border: "1px dashed ".concat(borderColor || "var(--mantine-color-".concat(iconColor, "-4)")),
|
|
15185
15199
|
backgroundColor: iconBgColor
|
|
15186
15200
|
}
|
|
15187
|
-
}, icon), /*#__PURE__*/
|
|
15201
|
+
}, icon), /*#__PURE__*/React__default.createElement(Stack, {
|
|
15188
15202
|
gap: 4,
|
|
15189
15203
|
align: "center"
|
|
15190
|
-
}, /*#__PURE__*/
|
|
15204
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
15191
15205
|
fw: 600,
|
|
15192
15206
|
size: "lg",
|
|
15193
15207
|
c: "dark"
|
|
15194
|
-
}, title), /*#__PURE__*/
|
|
15208
|
+
}, title), /*#__PURE__*/React__default.createElement(Text, {
|
|
15195
15209
|
c: "dimmed",
|
|
15196
15210
|
size: "sm",
|
|
15197
15211
|
ta: "center",
|
|
@@ -15606,9 +15620,9 @@ const ModalContentWrapper = _ref => {
|
|
|
15606
15620
|
let {
|
|
15607
15621
|
children
|
|
15608
15622
|
} = _ref;
|
|
15609
|
-
return /*#__PURE__*/React
|
|
15623
|
+
return /*#__PURE__*/React.createElement(MantineProvider, {
|
|
15610
15624
|
theme: theme
|
|
15611
|
-
}, /*#__PURE__*/React
|
|
15625
|
+
}, /*#__PURE__*/React.createElement(DatesProvider, {
|
|
15612
15626
|
settings: {
|
|
15613
15627
|
locale: "en",
|
|
15614
15628
|
timezone: "UTC"
|
|
@@ -15669,13 +15683,13 @@ function withProviders(Component) {
|
|
|
15669
15683
|
const WrappedComponent = props => {
|
|
15670
15684
|
var _process$env;
|
|
15671
15685
|
const showDevtools = enableDevtools && typeof process !== "undefined" && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === "development";
|
|
15672
|
-
return /*#__PURE__*/React
|
|
15686
|
+
return /*#__PURE__*/React.createElement(QueryClientProvider, {
|
|
15673
15687
|
client: queryClient
|
|
15674
|
-
}, /*#__PURE__*/React
|
|
15688
|
+
}, /*#__PURE__*/React.createElement(MantineProvider, {
|
|
15675
15689
|
theme: customTheme
|
|
15676
|
-
}, /*#__PURE__*/React
|
|
15690
|
+
}, /*#__PURE__*/React.createElement(DatesProvider, {
|
|
15677
15691
|
settings: datesSettings
|
|
15678
|
-
}, /*#__PURE__*/React
|
|
15692
|
+
}, /*#__PURE__*/React.createElement(Component, props), showDevtools && /*#__PURE__*/React.createElement(ReactQueryDevtools, null))));
|
|
15679
15693
|
};
|
|
15680
15694
|
WrappedComponent.displayName = "withProviders(".concat(Component.displayName || Component.name || "Component", ")");
|
|
15681
15695
|
return WrappedComponent;
|
|
@@ -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, a1 as DEFAULT_API_TIMEOUT, $ as DEFAULT_PAGE_SIZE, v as DetailCard, D as DonutChart, O 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, a0 as MAX_PAGE_SIZE, R as MaskedTilePanel, W as MerchantCard, a4 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, Q 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, X as TableStateView, V as TilePanel, n as TitleWithIndex, T as TitledPanel, N as TwoFactorModal, U as UserMenu, s as UserProfileCard, a3 as apiClient, a2 as createApiClient, a6 as extractBetweenBraces, a7 as extractOutsideBraces, z as theme, Z as useManagedModals, Y as useModal, _ as useUrlFilters, a5 as withProviders } from './index-
|
|
1
|
+
export { A as ApplicationMenu, p as ApplicationPanel, k as AvatarLabelPanel, B as BasicHeatmap, C as CalendarHeatmap, o as ConnectionPanel, u as CreditCard, a1 as DEFAULT_API_TIMEOUT, $ as DEFAULT_PAGE_SIZE, v as DetailCard, D as DonutChart, O 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, a0 as MAX_PAGE_SIZE, R as MaskedTilePanel, W as MerchantCard, a4 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, Q 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, X as TableStateView, V as TilePanel, n as TitleWithIndex, T as TitledPanel, N as TwoFactorModal, U as UserMenu, s as UserProfileCard, a3 as apiClient, a2 as createApiClient, a6 as extractBetweenBraces, a7 as extractOutsideBraces, z as theme, Z as useManagedModals, Y as useModal, _ as useUrlFilters, a5 as withProviders } from './index-Di6tbDMv.js';
|
|
2
2
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@mantine/modals';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { TableStateViewProps } from "./TableStateView.types";
|
|
2
|
-
export declare const TableStateView:
|
|
3
|
+
export declare const TableStateView: React.FC<TableStateViewProps>;
|
|
@@ -6,4 +6,5 @@ export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<imp
|
|
|
6
6
|
export declare const NoLogo: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./MerchantCard.types").MerchantCardProps>;
|
|
7
7
|
export declare const LongName: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./MerchantCard.types").MerchantCardProps>;
|
|
8
8
|
export declare const Removable: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./MerchantCard.types").MerchantCardProps>;
|
|
9
|
+
export declare const AddMerchant: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./MerchantCard.types").MerchantCardProps>;
|
|
9
10
|
export declare const DraggableList: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,7 +13,9 @@ export interface MerchantCardProps extends React.ComponentPropsWithoutRef<"div">
|
|
|
13
13
|
/** Props for the drag handle from dnd-kit */
|
|
14
14
|
dragHandleProps?: any;
|
|
15
15
|
/** Component variant */
|
|
16
|
-
variant?: "default" | "closable";
|
|
16
|
+
variant?: "default" | "closable" | "add";
|
|
17
17
|
/** Close handler (for closable variant) */
|
|
18
18
|
onClose?: () => void;
|
|
19
|
+
/** Add handler (for add variant) */
|
|
20
|
+
onAdd?: () => void;
|
|
19
21
|
}
|
package/package.json
CHANGED