@adiba-banking-cloud/backoffice 0.0.4 → 0.0.5
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 +11428 -106
- package/build/index.esm.js/index.js +11406 -105
- package/build/styles.css +1 -1
- package/build/typings/components/charts/area/Area.d.ts +0 -0
- package/build/typings/components/charts/area/Area.stories.d.ts +0 -0
- package/build/typings/components/charts/area/Area.types.d.ts +0 -0
- package/build/typings/components/charts/column/Column.d.ts +5 -0
- package/build/typings/components/charts/column/Column.default.d.ts +2 -0
- package/build/typings/components/charts/column/Column.stories.d.ts +8 -0
- package/build/typings/components/charts/column/Column.types.d.ts +57 -0
- package/build/typings/components/charts/donut/Donut.d.ts +0 -0
- package/build/typings/components/charts/donut/Donut.stories.d.ts +0 -0
- package/build/typings/components/charts/donut/Donut.types.d.ts +0 -0
- package/build/typings/components/charts/heatmap/Heatmap.d.ts +0 -0
- package/build/typings/components/charts/heatmap/Heatmap.stories.d.ts +0 -0
- package/build/typings/components/charts/heatmap/Heatmap.types.d.ts +0 -0
- package/build/typings/components/charts/pie/Pie.d.ts +0 -0
- package/build/typings/components/charts/pie/Pie.stories.d.ts +0 -0
- package/build/typings/components/charts/pie/Pie.types.d.ts +0 -0
- package/build/typings/components/dnd/kanban/Kanban.d.ts +0 -0
- package/build/typings/components/dnd/kanban/Kanban.stories.d.ts +0 -0
- package/build/typings/components/dnd/kanban/Kanban.types.d.ts +0 -0
- package/build/typings/components/dnd/sequence/Sequence.d.ts +0 -0
- package/build/typings/components/dnd/sequence/Sequence.stories.d.ts +0 -0
- package/build/typings/components/dnd/sequence/Sequence.types.d.ts +0 -0
- package/build/typings/components/general/icons/Icons.d.ts +3 -0
- package/build/typings/components/general/icons/Icons.stories.d.ts +6 -0
- package/build/typings/components/general/icons/Icons.types.d.ts +8 -0
- package/build/typings/components/index.d.ts +3 -3
- package/build/typings/components/menus/application/Application.d.ts +0 -0
- package/build/typings/components/menus/application/Application.stories.d.ts +0 -0
- package/build/typings/components/menus/application/Application.types.d.ts +0 -0
- package/build/typings/components/menus/inbox/Inbox.d.ts +0 -0
- package/build/typings/components/menus/inbox/Inbox.stories.d.ts +0 -0
- package/build/typings/components/menus/inbox/Inbox.types.d.ts +0 -0
- package/build/typings/components/menus/notification/Notification.d.ts +0 -0
- package/build/typings/components/menus/notification/Notification.stories.d.ts +0 -0
- package/build/typings/components/menus/notification/Notification.types.d.ts +0 -0
- package/build/typings/components/menus/settings/Settings.d.ts +0 -0
- package/build/typings/components/menus/settings/Settings.stories.d.ts +0 -0
- package/build/typings/components/menus/settings/Settings.types.d.ts +0 -0
- package/build/typings/components/menus/side/Side.d.ts +3 -0
- package/build/typings/components/menus/side/Side.stories.d.ts +6 -0
- package/build/typings/components/menus/side/Side.types.d.ts +17 -0
- package/build/typings/components/menus/user/User.d.ts +0 -0
- package/build/typings/components/menus/user/User.stories.d.ts +0 -0
- package/build/typings/components/menus/user/User.types.d.ts +0 -0
- package/package.json +1 -1
- package/build/typings/components/Button/Button.stories.d.ts +0 -23
- package/build/typings/components/Button/Button.test.d.ts +0 -1
- package/build/typings/components/Button/index.d.ts +0 -16
- package/build/typings/components/Header/Header.spec.d.ts +0 -1
- package/build/typings/components/Header/Header.stories.d.ts +0 -18
- package/build/typings/components/Header/index.d.ts +0 -12
- package/build/typings/components/Page/Page.stories.d.ts +0 -12
- package/build/typings/components/Page/Page.test.d.ts +0 -1
- package/build/typings/components/Page/index.d.ts +0 -4
package/build/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
svg>path{stroke-width:inherit}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChartProps, SimpleChartProps } from "./Column.types";
|
|
3
|
+
export declare const EqualizerColumn: React.FC<SimpleChartProps>;
|
|
4
|
+
export declare const SimpleColumn: React.FC<SimpleChartProps>;
|
|
5
|
+
export declare const StackedColumn: React.FC<ChartProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { SimpleColumn } from "./Column";
|
|
3
|
+
import "@mantine/core/styles.css";
|
|
4
|
+
declare const _default: Meta<typeof SimpleColumn>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const SimpleColumnChart: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Column.types").SimpleChartProps>;
|
|
7
|
+
export declare const StackedColumnChart: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Column.types").ChartProps>;
|
|
8
|
+
export declare const EqualizerColumnChart: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Column.types").SimpleChartProps>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export interface ChartProps {
|
|
2
|
+
bgColor?: string;
|
|
3
|
+
plotBgColor?: string;
|
|
4
|
+
colors?: string[];
|
|
5
|
+
title?: string;
|
|
6
|
+
xAxisLabel: string[];
|
|
7
|
+
yAxisLabel: string[];
|
|
8
|
+
series: number[][];
|
|
9
|
+
withLegend: boolean;
|
|
10
|
+
equalizer: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface SimpleChartProps {
|
|
13
|
+
bgColor?: string;
|
|
14
|
+
plotBgColor?: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
xAxisLabel: string[];
|
|
18
|
+
yAxisLabel: string;
|
|
19
|
+
series: number[];
|
|
20
|
+
withLegend: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface ChartConfig {
|
|
23
|
+
chart: object;
|
|
24
|
+
tooltip: object;
|
|
25
|
+
credits: object;
|
|
26
|
+
exporting: object;
|
|
27
|
+
title: object;
|
|
28
|
+
labels: object;
|
|
29
|
+
legend: object;
|
|
30
|
+
}
|
|
31
|
+
export interface ChartSeriesColumn {
|
|
32
|
+
xAxis: {
|
|
33
|
+
categories: string[];
|
|
34
|
+
labels: object;
|
|
35
|
+
};
|
|
36
|
+
yAxis: {
|
|
37
|
+
allowDecimals: boolean;
|
|
38
|
+
title: object;
|
|
39
|
+
gridLineDashStyle?: string;
|
|
40
|
+
gridLineWidth?: number;
|
|
41
|
+
labels: object;
|
|
42
|
+
};
|
|
43
|
+
series: ChartSeries[];
|
|
44
|
+
plotOptions: object;
|
|
45
|
+
}
|
|
46
|
+
export interface ChartSeries {
|
|
47
|
+
name: string;
|
|
48
|
+
data: number[];
|
|
49
|
+
borderRadiusTopLeft?: number;
|
|
50
|
+
borderRadiusTopRight?: number;
|
|
51
|
+
borderRadiusBottomLeft?: number;
|
|
52
|
+
borderRadiusBottomRight?: number;
|
|
53
|
+
innerWidth?: number;
|
|
54
|
+
color: string;
|
|
55
|
+
enableMouseTracking?: boolean;
|
|
56
|
+
showInLegend?: boolean;
|
|
57
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { Icons } from "./Icons";
|
|
3
|
+
import "./Icons.css";
|
|
4
|
+
declare const _default: Meta<typeof Icons>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const HomeIcon: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Icons.types").IconsProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { SimpleColumn, EqualizerColumn, StackedColumn } from "./charts/column/Column";
|
|
2
|
+
export { SideMenu } from "./menus/side/Side";
|
|
3
|
+
export { Icons } from "./general/icons/Icons";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { SideMenu } from "./Side";
|
|
3
|
+
import "@mantine/core/styles.css";
|
|
4
|
+
declare const _default: Meta<typeof SideMenu>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const SideMenuComponent: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Side.types").SideMenuProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NavLinkVariant } from "@mantine/core";
|
|
2
|
+
import { IconsProps } from "../../general/icons/Icons.types";
|
|
3
|
+
export interface SideMenuProps {
|
|
4
|
+
color: string;
|
|
5
|
+
radius?: number;
|
|
6
|
+
variant: NavLinkVariant;
|
|
7
|
+
sidemenu: SideMenuItemProps[];
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface SideMenuItemProps {
|
|
11
|
+
active?: boolean;
|
|
12
|
+
id: string;
|
|
13
|
+
icon?: IconsProps;
|
|
14
|
+
label: string;
|
|
15
|
+
variant?: NavLinkVariant;
|
|
16
|
+
children?: SideMenuItemProps[];
|
|
17
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react";
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ primary, size, backgroundColor, label, ...props }: import(".").ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: string;
|
|
7
|
-
};
|
|
8
|
-
tags: string[];
|
|
9
|
-
argTypes: {
|
|
10
|
-
backgroundColor: {
|
|
11
|
-
control: "color";
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
args: {
|
|
15
|
-
onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export default meta;
|
|
19
|
-
type Story = StoryObj<typeof meta>;
|
|
20
|
-
export declare const Primary: Story;
|
|
21
|
-
export declare const Secondary: Story;
|
|
22
|
-
export declare const Large: Story;
|
|
23
|
-
export declare const Small: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import "./button.css";
|
|
2
|
-
export interface ButtonProps {
|
|
3
|
-
/** Is this the principal call to action on the page? */
|
|
4
|
-
primary?: boolean;
|
|
5
|
-
/** What background color to use */
|
|
6
|
-
backgroundColor?: string;
|
|
7
|
-
/** How large should the button be? */
|
|
8
|
-
size?: "small" | "medium" | "large";
|
|
9
|
-
/** Button contents */
|
|
10
|
-
label: string;
|
|
11
|
-
/** Optional click handler */
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
}
|
|
14
|
-
/** Primary UI component for user interaction */
|
|
15
|
-
declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export default Button;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react";
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ user, onLogin, onLogout, onCreateAccount }: import(".").HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
tags: string[];
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: string;
|
|
8
|
-
};
|
|
9
|
-
args: {
|
|
10
|
-
onLogin: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
11
|
-
onLogout: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
12
|
-
onCreateAccount: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default meta;
|
|
16
|
-
type Story = StoryObj<typeof meta>;
|
|
17
|
-
export declare const LoggedIn: Story;
|
|
18
|
-
export declare const LoggedOut: Story;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "./header.css";
|
|
2
|
-
type User = {
|
|
3
|
-
name: string;
|
|
4
|
-
};
|
|
5
|
-
export interface HeaderProps {
|
|
6
|
-
user?: User;
|
|
7
|
-
onLogin?: () => void;
|
|
8
|
-
onLogout?: () => void;
|
|
9
|
-
onCreateAccount?: () => void;
|
|
10
|
-
}
|
|
11
|
-
declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default Header;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react";
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: import("react").FC<{}>;
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export default meta;
|
|
10
|
-
type Story = StoryObj<typeof meta>;
|
|
11
|
-
export declare const LoggedOut: Story;
|
|
12
|
-
export declare const LoggedIn: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|