@adiba-banking-cloud/backoffice 0.0.4 → 0.0.6

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.
Files changed (57) hide show
  1. package/build/index.cjs.js/index.js +11427 -105
  2. package/build/index.esm.js/index.js +11406 -105
  3. package/build/styles.css +1 -1
  4. package/build/typings/components/charts/area/Area.d.ts +0 -0
  5. package/build/typings/components/charts/area/Area.stories.d.ts +0 -0
  6. package/build/typings/components/charts/area/Area.types.d.ts +0 -0
  7. package/build/typings/components/charts/column/Column.d.ts +5 -0
  8. package/build/typings/components/charts/column/Column.default.d.ts +2 -0
  9. package/build/typings/components/charts/column/Column.stories.d.ts +8 -0
  10. package/build/typings/components/charts/column/Column.types.d.ts +57 -0
  11. package/build/typings/components/charts/donut/Donut.d.ts +0 -0
  12. package/build/typings/components/charts/donut/Donut.stories.d.ts +0 -0
  13. package/build/typings/components/charts/donut/Donut.types.d.ts +0 -0
  14. package/build/typings/components/charts/heatmap/Heatmap.d.ts +0 -0
  15. package/build/typings/components/charts/heatmap/Heatmap.stories.d.ts +0 -0
  16. package/build/typings/components/charts/heatmap/Heatmap.types.d.ts +0 -0
  17. package/build/typings/components/charts/pie/Pie.d.ts +0 -0
  18. package/build/typings/components/charts/pie/Pie.stories.d.ts +0 -0
  19. package/build/typings/components/charts/pie/Pie.types.d.ts +0 -0
  20. package/build/typings/components/dnd/kanban/Kanban.d.ts +0 -0
  21. package/build/typings/components/dnd/kanban/Kanban.stories.d.ts +0 -0
  22. package/build/typings/components/dnd/kanban/Kanban.types.d.ts +0 -0
  23. package/build/typings/components/dnd/sequence/Sequence.d.ts +0 -0
  24. package/build/typings/components/dnd/sequence/Sequence.stories.d.ts +0 -0
  25. package/build/typings/components/dnd/sequence/Sequence.types.d.ts +0 -0
  26. package/build/typings/components/general/icons/Icons.d.ts +4 -0
  27. package/build/typings/components/general/icons/Icons.stories.d.ts +6 -0
  28. package/build/typings/components/general/icons/Icons.types.d.ts +8 -0
  29. package/build/typings/components/index.d.ts +3 -3
  30. package/build/typings/components/menus/application/Application.d.ts +0 -0
  31. package/build/typings/components/menus/application/Application.stories.d.ts +0 -0
  32. package/build/typings/components/menus/application/Application.types.d.ts +0 -0
  33. package/build/typings/components/menus/inbox/Inbox.d.ts +0 -0
  34. package/build/typings/components/menus/inbox/Inbox.stories.d.ts +0 -0
  35. package/build/typings/components/menus/inbox/Inbox.types.d.ts +0 -0
  36. package/build/typings/components/menus/notification/Notification.d.ts +0 -0
  37. package/build/typings/components/menus/notification/Notification.stories.d.ts +0 -0
  38. package/build/typings/components/menus/notification/Notification.types.d.ts +0 -0
  39. package/build/typings/components/menus/settings/Settings.d.ts +0 -0
  40. package/build/typings/components/menus/settings/Settings.stories.d.ts +0 -0
  41. package/build/typings/components/menus/settings/Settings.types.d.ts +0 -0
  42. package/build/typings/components/menus/side/Side.d.ts +3 -0
  43. package/build/typings/components/menus/side/Side.stories.d.ts +6 -0
  44. package/build/typings/components/menus/side/Side.types.d.ts +17 -0
  45. package/build/typings/components/menus/user/User.d.ts +0 -0
  46. package/build/typings/components/menus/user/User.stories.d.ts +0 -0
  47. package/build/typings/components/menus/user/User.types.d.ts +0 -0
  48. package/package.json +1 -1
  49. package/build/typings/components/Button/Button.stories.d.ts +0 -23
  50. package/build/typings/components/Button/Button.test.d.ts +0 -1
  51. package/build/typings/components/Button/index.d.ts +0 -16
  52. package/build/typings/components/Header/Header.spec.d.ts +0 -1
  53. package/build/typings/components/Header/Header.stories.d.ts +0 -18
  54. package/build/typings/components/Header/index.d.ts +0 -12
  55. package/build/typings/components/Page/Page.stories.d.ts +0 -12
  56. package/build/typings/components/Page/Page.test.d.ts +0 -1
  57. package/build/typings/components/Page/index.d.ts +0 -4
package/build/styles.css CHANGED
@@ -1 +1 @@
1
- .storybook-button{border:0;border-radius:3em;cursor:pointer;display:inline-block;font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;line-height:1}.storybook-button--primary{background-color:#1ea7fd;color:#fff}.storybook-button--secondary{background-color:transparent;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);color:#333}.storybook-button--small{font-size:12px;padding:10px 16px}.storybook-button--medium{font-size:14px;padding:11px 20px}.storybook-button--large{font-size:16px;padding:12px 24px}.storybook-header{align-items:center;border-bottom:1px solid rgba(0,0,0,.1);display:flex;font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif;justify-content:space-between;padding:15px 20px}.storybook-header h1,.storybook-header svg{display:inline-block;vertical-align:top}.storybook-header h1{font-size:20px;font-weight:700;line-height:1;margin:6px 0 6px 10px}.storybook-header button+button{margin-left:10px}.storybook-header .welcome{color:#333;font-size:14px;margin-right:10px}.storybook-page{color:#333;font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;line-height:24px;margin:0 auto;max-width:600px;padding:48px 20px}.storybook-page h2{display:inline-block;font-size:32px;font-weight:700;line-height:1;margin:0 0 4px;vertical-align:top}.storybook-page p{margin:1em 0}.storybook-page a{color:#1ea7fd;text-decoration:none}.storybook-page ul{margin:1em 0;padding-left:30px}.storybook-page li{margin-bottom:8px}.storybook-page .tip{background:#e7fdd8;border-radius:1em;color:#66bf3c;display:inline-block;font-size:11px;font-weight:700;line-height:12px;margin-right:10px;padding:4px 12px;vertical-align:top}.storybook-page .tip-wrapper{font-size:13px;line-height:20px;margin-bottom:40px;margin-top:40px}.storybook-page .tip-wrapper svg{display:inline-block;height:12px;margin-right:4px;margin-top:3px;vertical-align:top;width:12px}.storybook-page .tip-wrapper svg path{fill:#1ea7fd}
1
+ svg>path{stroke-width:inherit}
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,2 @@
1
+ import { ChartConfig, ChartProps } from './Column.types';
2
+ export declare const initChart: (props: ChartProps) => ChartConfig;
@@ -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
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IconsProps } from "./Icons.types";
3
+ import './Icons.css';
4
+ export declare const Icons: React.FC<IconsProps>;
@@ -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>;
@@ -0,0 +1,8 @@
1
+ import * as IconSax from "iconsax-react";
2
+ export interface IconsProps {
3
+ name: keyof typeof IconSax;
4
+ size?: number;
5
+ color?: string;
6
+ stroke?: number | string;
7
+ variant?: "Linear" | "Outline" | "Broken" | "Bold" | "Bulk" | "TwoTone";
8
+ }
@@ -1,3 +1,3 @@
1
- export { default as Button } from "./Button";
2
- export { default as Header } from "./Header";
3
- export { default as Page } from "./Page";
1
+ export { SimpleColumn, EqualizerColumn, StackedColumn } from "./charts/column/Column";
2
+ export { SideMenu } from "./menus/side/Side";
3
+ export { Icons } from "./general/icons/Icons";
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { SideMenuProps } from "./Side.types";
3
+ export declare const SideMenu: React.FC<SideMenuProps>;
@@ -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
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",
4
+ "version": "0.0.6",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",
@@ -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 {};
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import "./page.css";
3
- declare const Page: React.FC;
4
- export default Page;