@adiba-banking-cloud/backoffice 0.0.13 → 0.0.15
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/index.js +790 -83
- package/build/index.esm.js/index.js +775 -82
- package/build/styles.css +1 -1
- package/build/typings/components/general/icons/Icons.types.d.ts +1 -1
- package/build/typings/components/general/text/Text.d.ts +3 -0
- package/build/typings/components/general/text/Text.stories.d.ts +7 -0
- package/build/typings/components/general/text/Text.types.d.ts +5 -0
- package/build/typings/components/general/title/Title.d.ts +5 -0
- package/build/typings/components/general/title/Title.stories.d.ts +10 -0
- package/build/typings/components/general/title/Title.types.d.ts +24 -0
- package/build/typings/components/index.d.ts +8 -0
- package/build/typings/components/menus/application/Application.types.d.ts +1 -1
- package/build/typings/components/menus/side/Side.d.ts +1 -0
- package/build/typings/components/menus/side/Side.types.d.ts +1 -0
- package/build/typings/components/panels/application/Application.d.ts +3 -0
- package/build/typings/components/panels/application/Application.stories.d.ts +6 -0
- package/build/typings/components/panels/application/Application.types.d.ts +20 -0
- package/build/typings/components/panels/application/ApplicationFeature.d.ts +3 -0
- package/build/typings/components/panels/connection/Connection.d.ts +3 -0
- package/build/typings/components/panels/connection/Connection.stories.d.ts +6 -0
- package/build/typings/components/panels/connection/Connection.types.d.ts +21 -0
- package/build/typings/components/panels/connection/ConnectionDetail.d.ts +3 -0
- package/build/typings/components/panels/label/Label.d.ts +4 -0
- package/build/typings/components/panels/label/Label.stories.d.ts +7 -0
- package/build/typings/components/panels/label/Label.types.d.ts +25 -0
- package/build/typings/components/panels/label/LabelItem.d.ts +2 -0
- package/build/typings/components/panels/simple/Simple.d.ts +5 -0
- package/build/typings/components/panels/simple/Simple.stories.d.ts +9 -0
- package/build/typings/components/panels/simple/Simple.types.d.ts +24 -0
- package/build/typings/components/widgets/payment_method/PaymentMethod.d.ts +4 -0
- package/build/typings/components/widgets/payment_method/PaymentMethod.stories.d.ts +6 -0
- package/build/typings/components/widgets/payment_method/PaymentMethod.types.d.ts +6 -0
- package/build/typings/components/widgets/subscription_plan/SubscriptionPlan.d.ts +4 -0
- package/build/typings/components/widgets/subscription_plan/SubscriptionPlan.stories.d.ts +6 -0
- package/build/typings/components/widgets/subscription_plan/SubscriptionPlan.types.d.ts +8 -0
- package/package.json +5 -1
package/build/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
svg>path{stroke-width:inherit}
|
|
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}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { SimpleText } from "./Text";
|
|
4
|
+
declare const _default: Meta<typeof SimpleText>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const TextItem: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Text.types").SimpleTextProps>;
|
|
7
|
+
export declare const SmallTextItem: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Text.types").SimpleTextProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PageTitleProps, PageTitleWithCreateProps, PageTitleWithSwitcherProps } from "./Title.types";
|
|
3
|
+
export declare const PageTitle: React.FC<PageTitleProps>;
|
|
4
|
+
export declare const PageTitleWithCreate: React.FC<PageTitleWithCreateProps>;
|
|
5
|
+
export declare const PageTitleWithSwitcher: React.FC<PageTitleWithSwitcherProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { PageTitle } from "./Title";
|
|
4
|
+
import "../../global.css";
|
|
5
|
+
declare const _default: Meta<typeof PageTitle>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const SimplePageTitle: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Title.types").PageTitleProps>;
|
|
8
|
+
export declare const BreadcrumbsPageTitle: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Title.types").PageTitleProps>;
|
|
9
|
+
export declare const CreateButtonOnPageTitle: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Title.types").PageTitleWithCreateProps>;
|
|
10
|
+
export declare const SwitcherOnPageTitle: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Title.types").PageTitleWithSwitcherProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ButtonProps, TitleProps } from "@mantine/core";
|
|
2
|
+
import { IconsProps } from "../icons/Icons.types";
|
|
3
|
+
export interface PageTitleProps extends TitleProps {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string | BreadCrumbItemProps[];
|
|
6
|
+
rightsection?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface PageTitleWithCreateProps extends PageTitleProps {
|
|
9
|
+
create: CreateButtonProps;
|
|
10
|
+
}
|
|
11
|
+
export interface PageTitleWithSwitcherProps extends PageTitleProps {
|
|
12
|
+
items: string[];
|
|
13
|
+
value?: string;
|
|
14
|
+
onChange?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export interface BreadCrumbItemProps {
|
|
17
|
+
name: string;
|
|
18
|
+
link: string;
|
|
19
|
+
}
|
|
20
|
+
export interface CreateButtonProps extends ButtonProps {
|
|
21
|
+
label: string;
|
|
22
|
+
createFn: (e: any) => void;
|
|
23
|
+
icon: IconsProps;
|
|
24
|
+
}
|
|
@@ -4,4 +4,12 @@ export { DynamicLogo, DynamicShigaLogo } from "./general/logos/Logos";
|
|
|
4
4
|
export { ApplicationMenu } from "./menus/application/Application";
|
|
5
5
|
export { UserMenu } from "./menus/user/User";
|
|
6
6
|
export { SideMenu } from "./menus/side/Side";
|
|
7
|
+
export { SimplePanel, SearchPanel, TitledPanel } from "./panels/simple/Simple";
|
|
8
|
+
export { LabelPanel, AvatarLabelPanel } from "./panels/label/Label";
|
|
9
|
+
export { SimpleText } from './general/text/Text';
|
|
10
|
+
export { PageTitle, PageTitleWithCreate, PageTitleWithSwitcher } from "./general/title/Title";
|
|
11
|
+
export { ConnectionPanel } from "./panels/connection/Connection";
|
|
12
|
+
export { ApplicationPanel } from "./panels/application/Application";
|
|
13
|
+
export { SubscriptionPlans } from "./widgets/subscription_plan/SubscriptionPlan";
|
|
14
|
+
export { PaymentMethod, PaymentMethodAdd } from "./widgets/payment_method/PaymentMethod";
|
|
7
15
|
export { theme } from "./theme";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { ApplicationPanel } from "./Application";
|
|
4
|
+
declare const _default: Meta<typeof ApplicationPanel>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const ApplicationPanelItem: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Application.types").ApplicationPanelProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CardProps } from "@mantine/core";
|
|
2
|
+
import { IconsProps } from "../../general/icons/Icons.types";
|
|
3
|
+
export interface ApplicationPanelProps extends CardProps {
|
|
4
|
+
name: string;
|
|
5
|
+
coverImage?: string;
|
|
6
|
+
discount?: string;
|
|
7
|
+
summary: string;
|
|
8
|
+
features: ApplicationPanelFeaturesProps[];
|
|
9
|
+
featureLabel: string;
|
|
10
|
+
amount: string;
|
|
11
|
+
frequency: string;
|
|
12
|
+
actionLabel: string;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
subscribed?: boolean;
|
|
15
|
+
subscribedLabel?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ApplicationPanelFeaturesProps {
|
|
18
|
+
label: string;
|
|
19
|
+
icon: IconsProps;
|
|
20
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { ConnectionPanel } from "./Connection";
|
|
4
|
+
declare const _default: Meta<typeof ConnectionPanel>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const ConnectionPanelItem: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Connection.types").ConnectionPanelProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CardProps, MantineColor } from "@mantine/core";
|
|
2
|
+
export interface ConnectionPanelProps extends CardProps {
|
|
3
|
+
name: string;
|
|
4
|
+
status: string;
|
|
5
|
+
statusColor: "lime" | "red" | "gold" | "lightgray";
|
|
6
|
+
edit: ConnectionMenuItem;
|
|
7
|
+
test: ConnectionMenuItem;
|
|
8
|
+
pause: ConnectionMenuItem;
|
|
9
|
+
details: ConnectionDetailProps[];
|
|
10
|
+
altColor?: MantineColor;
|
|
11
|
+
}
|
|
12
|
+
interface ConnectionMenuItem {
|
|
13
|
+
label: string;
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
}
|
|
16
|
+
export interface ConnectionDetailProps {
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
altColor?: MantineColor;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { LabelPanel } from "./Label";
|
|
4
|
+
declare const _default: Meta<typeof LabelPanel>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const LabelPanelContainer: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Label.types").LabelPanelProps>;
|
|
7
|
+
export declare const AvatarLabelPanelContainer: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Label.types").AvatartLabelPanelProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CardProps } from "@mantine/core";
|
|
2
|
+
export interface LabelPanelProps extends CardProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
hasEdit?: boolean;
|
|
5
|
+
labelWidth?: number;
|
|
6
|
+
editFn?: () => void;
|
|
7
|
+
editLabel?: string;
|
|
8
|
+
items: LabelPanelItemProps[];
|
|
9
|
+
}
|
|
10
|
+
export interface LabelPanelItemProps {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
labelWidth?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface AvatartLabelPanelProps extends CardProps {
|
|
16
|
+
avatarSize?: number | "xl" | "lg" | "md" | "sm" | "xs";
|
|
17
|
+
avatar?: string;
|
|
18
|
+
name: string;
|
|
19
|
+
username: string;
|
|
20
|
+
status: string;
|
|
21
|
+
lastActive: string;
|
|
22
|
+
editFn?: () => void;
|
|
23
|
+
editLabel?: string;
|
|
24
|
+
role?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PanelProps, SearchPanelProps, TitledPanelProps } from "./Simple.types";
|
|
3
|
+
export declare const SimplePanel: React.FC<PanelProps>;
|
|
4
|
+
export declare const TitledPanel: React.FC<TitledPanelProps>;
|
|
5
|
+
export declare const SearchPanel: React.FC<SearchPanelProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { SimplePanel } from "./Simple";
|
|
3
|
+
import "@mantine/core/styles.css";
|
|
4
|
+
import "../../global.css";
|
|
5
|
+
declare const _default: Meta<typeof SimplePanel>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const SimplePanelContainer: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Simple.types").PanelProps>;
|
|
8
|
+
export declare const SearchPanelContainer: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Simple.types").SearchPanelProps>;
|
|
9
|
+
export declare const TitledPanelContainer: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Simple.types").TitledPanelProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CardProps } from "@mantine/core";
|
|
2
|
+
import { IconsProps } from "../../general/icons/Icons.types";
|
|
3
|
+
export interface PanelProps extends CardProps {
|
|
4
|
+
withRadius?: boolean;
|
|
5
|
+
withPadding?: boolean;
|
|
6
|
+
autoHeight?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface TitledPanelProps extends PanelProps {
|
|
9
|
+
title: PanelTitleProps;
|
|
10
|
+
middlesection?: React.ReactNode;
|
|
11
|
+
rightsection?: React.ReactNode;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export interface PanelTitleProps {
|
|
15
|
+
icon: IconsProps;
|
|
16
|
+
label: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SearchPanelProps extends PanelProps {
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
searchIcon?: IconsProps;
|
|
21
|
+
filterIcon?: IconsProps;
|
|
22
|
+
searchText?: string;
|
|
23
|
+
filterFn?: () => void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { PaymentMethod } from "./PaymentMethod";
|
|
4
|
+
declare const _default: Meta<typeof PaymentMethod>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const SubscriptionPlansItem: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./PaymentMethod.types").PaymentMethodProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import "@mantine/core/styles.css";
|
|
3
|
+
import { SubscriptionPlans } from "./SubscriptionPlan";
|
|
4
|
+
declare const _default: Meta<typeof SubscriptionPlans>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const SubscriptionPlansItem: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./SubscriptionPlan.types").SubscriptionPlanProps>;
|
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.15",
|
|
5
5
|
"description": "An ADIBA component library for backoffice and dashboard applications",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "build/index.cjs.js",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": ">=18",
|
|
32
32
|
"react-dom": ">=18",
|
|
33
|
+
"react-router-dom": "^7.6.2",
|
|
33
34
|
"@fontsource/poppins": "^5.1.0",
|
|
34
35
|
"@hello-pangea/dnd": "^16.5.0",
|
|
35
36
|
"@mantine/core": "^7.12.2",
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
"url": "git+https://github.com/turog-technologies/adiba-common-libraries.git"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
47
|
+
"react-router-dom": "^7.6.2",
|
|
46
48
|
"@babel/core": "^7.21.3",
|
|
47
49
|
"@babel/plugin-transform-runtime": "^7.21.0",
|
|
48
50
|
"@babel/preset-env": "^7.20.2",
|
|
@@ -68,6 +70,8 @@
|
|
|
68
70
|
"@types/jest": "^29.5.0",
|
|
69
71
|
"@types/react": "^19.0.10",
|
|
70
72
|
"@types/react-dom": "^19.0.4",
|
|
73
|
+
"@types/node": "^18.0.0",
|
|
74
|
+
"@types/react-router-dom": "^5.3.3",
|
|
71
75
|
"babel-loader": "^10.0.0",
|
|
72
76
|
"eslint": "^9.13.0",
|
|
73
77
|
"eslint-config-prettier": "^10.1.1",
|