@adiba-banking-cloud/backoffice 0.0.18 → 0.0.20
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 +284 -196
- package/build/index.esm.js/index.js +282 -195
- package/build/typings/components/documents/file/File.d.ts +3 -0
- package/build/typings/components/documents/file/File.stories.d.ts +6 -0
- package/build/typings/components/documents/file/File.types.d.ts +11 -0
- package/build/typings/components/documents/folder/Folder.d.ts +0 -0
- package/build/typings/components/documents/folder/Folder.stories.d.ts +0 -0
- package/build/typings/components/documents/folder/Folder.types.d.ts +0 -0
- package/build/typings/components/documents/image/Image.d.ts +0 -0
- package/build/typings/components/documents/image/Image.stories.d.ts +0 -0
- package/build/typings/components/documents/image/Image.types.d.ts +0 -0
- package/build/typings/components/index.d.ts +1 -0
- package/build/typings/components/tables/paginated/Paginated.d.ts +0 -0
- package/build/typings/components/tables/paginated/Paginated.stories.d.ts +0 -0
- package/build/typings/components/tables/paginated/Paginated.types.d.ts +0 -0
- package/build/typings/components/tables/simple/Simple.d.ts +3 -0
- package/build/typings/components/tables/simple/Simple.stories.d.ts +7 -0
- package/build/typings/components/tables/simple/Simple.types.d.ts +26 -0
- package/build/typings/components/tables/simple/SimpleBody.d.ts +3 -0
- package/build/typings/components/tables/simple/SimpleHeader.d.ts +2 -0
- package/build/typings/components/widgets/payment_method/PaymentMethod.types.d.ts +1 -1
- package/build/typings/components/widgets/payment_method/Payment_method.d.ts +0 -0
- package/build/typings/components/widgets/payment_method/Payment_method.stories.d.ts +0 -0
- package/build/typings/components/widgets/payment_method/Payment_method.types.d.ts +0 -0
- package/build/typings/components/widgets/subscription_plan/SubscriptionPlan.types.d.ts +4 -1
- package/build/typings/components/widgets/subscription_plan/Subscription_plan.d.ts +0 -0
- package/build/typings/components/widgets/subscription_plan/Subscription_plan.stories.d.ts +0 -0
- package/build/typings/components/widgets/subscription_plan/Subscription_plan.types.d.ts +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { File } from "./File";
|
|
3
|
+
import "@mantine/core/styles.css";
|
|
4
|
+
declare const _default: Meta<typeof File>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const FileExample: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./File.types").FileProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CardProps, ImageProps } from "@mantine/core";
|
|
2
|
+
import { IconsProps } from "../../general/icons/Icons.types";
|
|
3
|
+
export interface FileProps extends CardProps {
|
|
4
|
+
shape?: "chip" | "tile";
|
|
5
|
+
type?: "avi" | "pdf" | "mp3" | "txt" | "jpg";
|
|
6
|
+
icon?: ImageProps;
|
|
7
|
+
rightsection?: {
|
|
8
|
+
icon: IconsProps;
|
|
9
|
+
onClick: (e: any) => void;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -12,4 +12,5 @@ export { ConnectionPanel } from "./panels/connection/Connection";
|
|
|
12
12
|
export { ApplicationPanel } from "./panels/application/Application";
|
|
13
13
|
export { SubscriptionPlans } from "./widgets/subscription_plan/SubscriptionPlan";
|
|
14
14
|
export { PaymentMethod, PaymentMethodAdd } from "./widgets/payment_method/PaymentMethod";
|
|
15
|
+
export { SimpleTable } from './tables/simple/Simple';
|
|
15
16
|
export { theme } from "./theme";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { SimpleTable } from "./Simple";
|
|
3
|
+
declare const _default: Meta<typeof SimpleTable>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const BasicTable: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Simple.types").SimpleTableProps>;
|
|
6
|
+
export declare const BasicTableWithActions: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Simple.types").SimpleTableProps>;
|
|
7
|
+
export declare const BasicTableWithIndex: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Simple.types").SimpleTableProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface BaseTableProps {
|
|
2
|
+
columns: BaseTableColumnProps[];
|
|
3
|
+
rows: BaseTableRowProps[];
|
|
4
|
+
}
|
|
5
|
+
export interface BaseTableColumnProps {
|
|
6
|
+
order: number;
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
export interface BaseTableRowProps {
|
|
11
|
+
[key: string]: string | ((id: string) => React.ReactNode);
|
|
12
|
+
}
|
|
13
|
+
export interface SimpleTableProps extends BaseTableProps {
|
|
14
|
+
withAction?: boolean;
|
|
15
|
+
withIndex?: boolean;
|
|
16
|
+
actionFn?: (id: string) => React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export interface SimpleTableBodyProps {
|
|
19
|
+
row: BaseTableRowProps;
|
|
20
|
+
columns: BaseTableColumnProps[];
|
|
21
|
+
withAction?: boolean;
|
|
22
|
+
withIndex?: boolean;
|
|
23
|
+
index?: number;
|
|
24
|
+
actionFn?: (id: string) => React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { MantineColor } from "@mantine/core";
|
|
2
2
|
export interface SubscriptionPlanProps {
|
|
3
|
-
|
|
3
|
+
isActive: boolean;
|
|
4
4
|
title: string;
|
|
5
5
|
altColor: MantineColor;
|
|
6
6
|
durationDays: number;
|
|
7
7
|
planPrice: string;
|
|
8
|
+
onClick: (event: any) => void;
|
|
9
|
+
buttonLabel?: string;
|
|
10
|
+
altButtonLabel?: string;
|
|
8
11
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
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.20",
|
|
5
5
|
"description": "An ADIBA component library for backoffice and dashboard applications",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "build/index.cjs.js",
|