@adiba-banking-cloud/backoffice 0.0.106 → 0.0.107
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-BJmii0aO.js → heatmap-Cm0PBTZe.js} +1 -1
- package/build/index.cjs.js/{index-BLpjQkzt.js → index-jtq18FyK.js} +870 -96
- package/build/index.cjs.js/index.js +8 -1
- package/build/index.esm.js/{heatmap-yNnNxsAY.js → heatmap-RBbWy08F.js} +1 -1
- package/build/index.esm.js/{index-CWjYoFnK.js → index-Df9bhaj8.js} +864 -97
- package/build/index.esm.js/index.js +1 -1
- package/build/styles.css +1 -1
- package/build/typings/components/charts/pie/Pie.d.ts +3 -0
- package/build/typings/components/charts/pie/Pie.default.d.ts +2 -0
- package/build/typings/components/charts/pie/Pie.stories.d.ts +6 -0
- package/build/typings/components/charts/pie/Pie.types.d.ts +31 -0
- package/build/typings/components/index.d.ts +7 -0
- package/build/typings/components/tables/table-state/TableStateView.d.ts +2 -0
- package/build/typings/components/tables/table-state/TableStateView.stories.d.ts +9 -0
- package/build/typings/components/tables/table-state/TableStateView.types.d.ts +10 -0
- package/build/typings/components/theme.d.ts +1 -1
- package/build/typings/components/widgets/credit_card/CreditCard.d.ts +4 -0
- package/build/typings/components/widgets/credit_card/CreditCard.stories.d.ts +8 -0
- package/build/typings/components/widgets/credit_card/CreditCard.types.d.ts +39 -0
- package/build/typings/components/widgets/detail_card/DetailCard.d.ts +3 -0
- package/build/typings/components/widgets/detail_card/DetailCard.stories.d.ts +17 -0
- package/build/typings/components/widgets/detail_card/DetailCard.types.d.ts +39 -0
- package/build/typings/components/widgets/info_grid/InfoGrid.d.ts +3 -0
- package/build/typings/components/widgets/info_grid/InfoGrid.stories.d.ts +10 -0
- package/build/typings/components/widgets/info_grid/InfoGrid.types.d.ts +20 -0
- package/build/typings/components/widgets/merchant/MerchantCard.d.ts +3 -0
- package/build/typings/components/widgets/merchant/MerchantCard.stories.d.ts +9 -0
- package/build/typings/components/widgets/merchant/MerchantCard.types.d.ts +19 -0
- package/build/typings/components/widgets/status_alert/StatusAlert.d.ts +3 -0
- package/build/typings/components/widgets/status_alert/StatusAlert.stories.d.ts +10 -0
- package/build/typings/components/widgets/status_alert/StatusAlert.types.d.ts +27 -0
- package/build/typings/components/widgets/user_profile/UserProfileCard.d.ts +3 -0
- package/build/typings/components/widgets/user_profile/UserProfileCard.stories.d.ts +8 -0
- package/build/typings/components/widgets/user_profile/UserProfileCard.types.d.ts +32 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ApplicationMenu,
|
|
1
|
+
export { A as ApplicationMenu, p as ApplicationPanel, k as AvatarLabelPanel, B as BasicHeatmap, C as CalendarHeatmap, o as ConnectionPanel, u as CreditCard, 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, R as MaskedTilePanel, W as MerchantCard, 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, V as TilePanel, n as TitleWithIndex, T as TitledPanel, N as TwoFactorModal, U as UserMenu, s as UserProfileCard, z as theme, Y as useManagedModals, X as useModal } from './index-Df9bhaj8.js';
|
|
2
2
|
import '@mantine/modals';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@mantine/core';
|
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}
|
|
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}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { PieChart } from "./Pie";
|
|
4
|
+
declare const _default: Meta<typeof PieChart>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Pie.types").PieChartProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface PieChartProps {
|
|
2
|
+
bgColor?: string;
|
|
3
|
+
plotBgColor?: string;
|
|
4
|
+
colors?: string[];
|
|
5
|
+
title?: string;
|
|
6
|
+
categories: string[];
|
|
7
|
+
series: number[];
|
|
8
|
+
withLegend: boolean | PieChartLegendProps;
|
|
9
|
+
}
|
|
10
|
+
interface PieChartLegendProps {
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
layout?: "vertical" | "horizontal";
|
|
13
|
+
align?: "left" | "center" | "right";
|
|
14
|
+
verticalAlign?: "top" | "middle" | "bottom";
|
|
15
|
+
floating?: boolean;
|
|
16
|
+
x?: number;
|
|
17
|
+
y?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface PieChartConfig {
|
|
20
|
+
chart: object;
|
|
21
|
+
title: object;
|
|
22
|
+
exporting: {
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
};
|
|
25
|
+
tooltip: object;
|
|
26
|
+
legend: object;
|
|
27
|
+
plotOptions: object;
|
|
28
|
+
credits: object;
|
|
29
|
+
series: object;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -2,6 +2,7 @@ export { SimpleColumn, EqualizerColumn, StackedColumn, } from "./charts/column/C
|
|
|
2
2
|
export { SimpleArea, StackedArea, MultiAxisArea } from "./charts/area/Area";
|
|
3
3
|
export { BasicHeatmap, InterpolatedHeatmap, CalendarHeatmap, } from "./charts/heatmap/Heatmap";
|
|
4
4
|
export { DonutChart } from "./charts/donut/Donut";
|
|
5
|
+
export { PieChart } from "./charts/pie/Pie";
|
|
5
6
|
export { Icons } from "./general/icons/Icons";
|
|
6
7
|
export { DynamicLogo, DynamicShigaLogo } from "./general/logos/Logos";
|
|
7
8
|
export { ApplicationMenu } from "./menus/application/Application";
|
|
@@ -15,6 +16,11 @@ export { TitleWithIndex } from "./general/title/TitleWithIndex";
|
|
|
15
16
|
export { ConnectionPanel } from "./panels/connection/Connection";
|
|
16
17
|
export { ApplicationPanel } from "./panels/application/Application";
|
|
17
18
|
export { SubscriptionPlans } from "./widgets/subscription_plan/SubscriptionPlan";
|
|
19
|
+
export { InfoGrid } from "./widgets/info_grid/InfoGrid";
|
|
20
|
+
export { UserProfileCard } from "./widgets/user_profile/UserProfileCard";
|
|
21
|
+
export { StatusAlert } from "./widgets/status_alert/StatusAlert";
|
|
22
|
+
export { CreditCard } from "./widgets/credit_card/CreditCard";
|
|
23
|
+
export { DetailCard } from "./widgets/detail_card/DetailCard";
|
|
18
24
|
export { PaymentMethod, PaymentMethodAdd, } from "./widgets/payment_method/PaymentMethod";
|
|
19
25
|
export { SimpleTable } from "./tables/simple/Simple";
|
|
20
26
|
export { File } from "./documents/file/File";
|
|
@@ -27,3 +33,4 @@ export { TwoFactorModal } from "./modals/twofactor/Twofactor";
|
|
|
27
33
|
export { Drawer } from "./general/drawer/Drawer";
|
|
28
34
|
export { SimpleForm } from "./forms/simple/Simple";
|
|
29
35
|
export { MaskedTilePanel, TilePanel } from "./panels/tile/Tile";
|
|
36
|
+
export { MerchantCard } from "./widgets/merchant/MerchantCard";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { TableStateView } from "./TableStateView";
|
|
3
|
+
import { TableStateViewProps } from "./TableStateView.types";
|
|
4
|
+
declare const _default: Meta<typeof TableStateView>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, TableStateViewProps>;
|
|
7
|
+
export declare const WithAction: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, TableStateViewProps>;
|
|
8
|
+
export declare const ErrorState: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, TableStateViewProps>;
|
|
9
|
+
export declare const CustomStyling: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, TableStateViewProps>;
|
|
@@ -42,7 +42,7 @@ export declare const theme: {
|
|
|
42
42
|
headings?: {
|
|
43
43
|
fontFamily?: string | undefined;
|
|
44
44
|
fontWeight?: string | undefined;
|
|
45
|
-
textWrap?: "
|
|
45
|
+
textWrap?: "nowrap" | "wrap" | "balance" | "stable" | "pretty" | undefined;
|
|
46
46
|
sizes?: {
|
|
47
47
|
h1?: {
|
|
48
48
|
fontSize?: string | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { CreditCard } from "./CreditCard";
|
|
4
|
+
declare const _default: Meta<typeof CreditCard>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./CreditCard.types").CreditCardProps>;
|
|
7
|
+
export declare const AddCard: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./CreditCard.types").CreditCardProps>;
|
|
8
|
+
export declare const CustomGradient: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./CreditCard.types").CreditCardProps>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type CardVariant = "display" | "add";
|
|
2
|
+
export type CardBrand = "mastercard" | "visa" | "verve" | "amex";
|
|
3
|
+
export interface CreditCardProps {
|
|
4
|
+
/**
|
|
5
|
+
* Display mode or Add New mode
|
|
6
|
+
* @default "display"
|
|
7
|
+
*/
|
|
8
|
+
variant?: CardVariant;
|
|
9
|
+
/**
|
|
10
|
+
* Card Number (masked or full)
|
|
11
|
+
*/
|
|
12
|
+
cardNumber?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Card Holder Name
|
|
15
|
+
*/
|
|
16
|
+
cardHolder?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Expiry Date (MM/YY)
|
|
19
|
+
*/
|
|
20
|
+
expiryDate?: string;
|
|
21
|
+
/**
|
|
22
|
+
* CVV code (for back of card)
|
|
23
|
+
*/
|
|
24
|
+
cvv?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Card Brand / Network
|
|
27
|
+
*/
|
|
28
|
+
brand?: CardBrand;
|
|
29
|
+
/**
|
|
30
|
+
* Custom background styles.
|
|
31
|
+
* Can be a URL (url('...')) or gradient (linear-gradient(...)) or color hex.
|
|
32
|
+
* Defaults to a dark gradient if not provided.
|
|
33
|
+
*/
|
|
34
|
+
background?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Click handler for "Add" variant
|
|
37
|
+
*/
|
|
38
|
+
onAddClick?: () => void;
|
|
39
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { DetailCard } from "./DetailCard";
|
|
4
|
+
declare const _default: Meta<typeof DetailCard>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const AddressSensitive: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./DetailCard.types").DetailCardProps>;
|
|
7
|
+
export declare const PhoneSensitive: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./DetailCard.types").DetailCardProps>;
|
|
8
|
+
export declare const VerificationBadge: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./DetailCard.types").DetailCardProps>;
|
|
9
|
+
export declare const IDTypesList: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./DetailCard.types").DetailCardProps>;
|
|
10
|
+
export declare const UtilityDocuments: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./DetailCard.types").DetailCardProps>;
|
|
11
|
+
export declare const DashboardGridExample: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const InvitesList: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./DetailCard.types").DetailCardProps>;
|
|
13
|
+
export declare const ActiveClientLoans: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./DetailCard.types").DetailCardProps>;
|
|
14
|
+
export declare const ActiveGroupLoans: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./DetailCard.types").DetailCardProps>;
|
|
15
|
+
export declare const ActiveOverdueGroupLoans: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./DetailCard.types").DetailCardProps>;
|
|
16
|
+
export declare const ActiveOverdueClientLoans: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./DetailCard.types").DetailCardProps>;
|
|
17
|
+
export declare const ActivationDate: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./DetailCard.types").DetailCardProps>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { IconsProps } from "../../general/icons/Icons.types";
|
|
3
|
+
export type DetailCardVariant = "simple" | "sensitive" | "badge" | "document" | "list" | "user-list" | "value-list";
|
|
4
|
+
export interface DetailCardItem {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
subLabel?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
avatarUrl?: string;
|
|
10
|
+
initials?: string;
|
|
11
|
+
bgColor?: string;
|
|
12
|
+
color?: string;
|
|
13
|
+
icon?: IconsProps["name"];
|
|
14
|
+
onAction?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export interface DetailCardProps {
|
|
17
|
+
/**
|
|
18
|
+
* Title or label of the card (top text)
|
|
19
|
+
*/
|
|
20
|
+
label: string;
|
|
21
|
+
/**
|
|
22
|
+
* Type of card variant
|
|
23
|
+
* @default "simple"
|
|
24
|
+
*/
|
|
25
|
+
variant?: DetailCardVariant;
|
|
26
|
+
/**
|
|
27
|
+
* Main value to display (for simple, sensitive, badge)
|
|
28
|
+
*/
|
|
29
|
+
value?: string | ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Color for the badge variant
|
|
32
|
+
* @default "green"
|
|
33
|
+
*/
|
|
34
|
+
badgeColor?: string;
|
|
35
|
+
/**
|
|
36
|
+
* List of items for document or list variants
|
|
37
|
+
*/
|
|
38
|
+
items?: DetailCardItem[];
|
|
39
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { InfoGrid } from "./InfoGrid";
|
|
4
|
+
declare const _default: Meta<typeof InfoGrid>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./InfoGrid.types").InfoGridProps>;
|
|
7
|
+
export declare const TwoColumns: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./InfoGrid.types").InfoGridProps>;
|
|
8
|
+
export declare const FourColumns: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./InfoGrid.types").InfoGridProps>;
|
|
9
|
+
export declare const CustomBackground: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./InfoGrid.types").InfoGridProps>;
|
|
10
|
+
export declare const MobileView: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./InfoGrid.types").InfoGridProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface InfoGridItem {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string | number | React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export interface InfoGridProps {
|
|
6
|
+
/**
|
|
7
|
+
* The data to display in the grid
|
|
8
|
+
*/
|
|
9
|
+
data: InfoGridItem[];
|
|
10
|
+
/**
|
|
11
|
+
* Number of columns to display on desktop
|
|
12
|
+
* @default 3
|
|
13
|
+
*/
|
|
14
|
+
columns?: 2 | 3 | 4 | 5;
|
|
15
|
+
/**
|
|
16
|
+
* Background color for the card
|
|
17
|
+
* @default "#0D1326"
|
|
18
|
+
*/
|
|
19
|
+
bgColor?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { MerchantCard } from "./MerchantCard";
|
|
3
|
+
declare const _default: Meta<typeof MerchantCard>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./MerchantCard.types").MerchantCardProps>;
|
|
6
|
+
export declare const NoLogo: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./MerchantCard.types").MerchantCardProps>;
|
|
7
|
+
export declare const LongName: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./MerchantCard.types").MerchantCardProps>;
|
|
8
|
+
export declare const Removable: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./MerchantCard.types").MerchantCardProps>;
|
|
9
|
+
export declare const DraggableList: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface MerchantCardProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
3
|
+
/** Merchant name */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Merchant logo URL */
|
|
6
|
+
logo?: string;
|
|
7
|
+
/** Merchant category (e.g. Messaging) */
|
|
8
|
+
category: string;
|
|
9
|
+
/** Price string (e.g. from ₦70/month) */
|
|
10
|
+
price: string;
|
|
11
|
+
/** Click handler */
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
/** Props for the drag handle from dnd-kit */
|
|
14
|
+
dragHandleProps?: any;
|
|
15
|
+
/** Component variant */
|
|
16
|
+
variant?: "default" | "closable";
|
|
17
|
+
/** Close handler (for closable variant) */
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { StatusAlert } from "./StatusAlert";
|
|
4
|
+
declare const _default: Meta<typeof StatusAlert>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Danger: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./StatusAlert.types").StatusAlertProps>;
|
|
7
|
+
export declare const Success: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./StatusAlert.types").StatusAlertProps>;
|
|
8
|
+
export declare const Warning: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./StatusAlert.types").StatusAlertProps>;
|
|
9
|
+
export declare const Info: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./StatusAlert.types").StatusAlertProps>;
|
|
10
|
+
export declare const NoAction: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./StatusAlert.types").StatusAlertProps>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type StatusAlertVariant = "success" | "danger" | "warning" | "info";
|
|
2
|
+
export interface StatusAlertProps {
|
|
3
|
+
/**
|
|
4
|
+
* Title of the alert
|
|
5
|
+
*/
|
|
6
|
+
title: string;
|
|
7
|
+
/**
|
|
8
|
+
* Body text of the alert
|
|
9
|
+
*/
|
|
10
|
+
description: string;
|
|
11
|
+
/**
|
|
12
|
+
* Variant determining color scheme (red vs green)
|
|
13
|
+
*/
|
|
14
|
+
variant: StatusAlertVariant;
|
|
15
|
+
/**
|
|
16
|
+
* Label for the action button. If provided, button will be shown.
|
|
17
|
+
*/
|
|
18
|
+
actionLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Callback for the action button
|
|
21
|
+
*/
|
|
22
|
+
onAction?: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Callback for the close button. If provided, close 'x' will be shown.
|
|
25
|
+
*/
|
|
26
|
+
onClose?: () => void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { UserProfileCard } from "./UserProfileCard";
|
|
4
|
+
declare const _default: Meta<typeof UserProfileCard>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./UserProfileCard.types").UserProfileCardProps>;
|
|
7
|
+
export declare const WithoutScore: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./UserProfileCard.types").UserProfileCardProps>;
|
|
8
|
+
export declare const CustomScoreColor: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./UserProfileCard.types").UserProfileCardProps>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface UserProfileCardProps {
|
|
2
|
+
/**
|
|
3
|
+
* User's display name
|
|
4
|
+
*/
|
|
5
|
+
name: string;
|
|
6
|
+
/**
|
|
7
|
+
* URL for the user's avatar image
|
|
8
|
+
*/
|
|
9
|
+
avatarUrl?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Size of the avatar in pixels
|
|
12
|
+
* @default 120
|
|
13
|
+
*/
|
|
14
|
+
avatarSize?: number;
|
|
15
|
+
/**
|
|
16
|
+
* User type label (e.g. "Individual")
|
|
17
|
+
*/
|
|
18
|
+
userType: string;
|
|
19
|
+
/**
|
|
20
|
+
* User's unique identifier
|
|
21
|
+
*/
|
|
22
|
+
userId: string;
|
|
23
|
+
/**
|
|
24
|
+
* Score or status to display in badge (e.g. "750/800")
|
|
25
|
+
*/
|
|
26
|
+
score?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Color theme for the score badge
|
|
29
|
+
* @default "green"
|
|
30
|
+
*/
|
|
31
|
+
scoreColor?: string;
|
|
32
|
+
}
|
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.0.
|
|
4
|
+
"version": "0.0.107",
|
|
5
5
|
"description": "An ADIBA component library for backoffice and dashboard applications",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "build/index.cjs.js",
|