@adiba-banking-cloud/backoffice 0.0.29 → 0.0.31

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.
@@ -11263,10 +11263,11 @@ const parseColorToRgb = colorString => {
11263
11263
  const createAreaFillGradient = function (baseColor) {
11264
11264
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11265
11265
  const {
11266
- startOpacity = 0.6,
11267
- endOpacity = 0.0
11266
+ startOpacity = 0.2,
11267
+ endOpacity = 0.08
11268
11268
  } = options;
11269
11269
  const parsedColor = parseColorToRgb(baseColor);
11270
+ "rgba(".concat(parsedColor.r, ", ").concat(parsedColor.g, ", ").concat(parsedColor.b, ", 1)");
11270
11271
 
11271
11272
  // Color string for the top of the gradient (base color with specified start opacity)
11272
11273
  const rgbaStart = "rgba(".concat(parsedColor.r, ", ").concat(parsedColor.g, ", ").concat(parsedColor.b, ", ").concat(startOpacity, ")");
@@ -11285,8 +11286,9 @@ const createAreaFillGradient = function (baseColor) {
11285
11286
  },
11286
11287
  stops: [[0, rgbaStart],
11287
11288
  // First stop: at the top (0% of gradient vector)
11288
- [1, rgbaEnd] // Second stop: at the bottom (100% of gradient vector)
11289
- ]
11289
+ [0.9, rgbaEnd],
11290
+ // Second stop: at the bottom (100% of gradient vector)
11291
+ [1, "transparent"]]
11290
11292
  };
11291
11293
  };
11292
11294
 
@@ -11573,7 +11575,6 @@ const initSeries = props => {
11573
11575
  const renderPlot = () => {
11574
11576
  const areaspline = {
11575
11577
  lineWidth: 1,
11576
- opacity: 0.3,
11577
11578
  color: "#C8700B",
11578
11579
  pointPlacement: "on",
11579
11580
  marker: {
@@ -11822,8 +11823,12 @@ const UserMenuTarget = _ref => {
11822
11823
  }, /*#__PURE__*/React.createElement(core.Group, {
11823
11824
  gap: "sm"
11824
11825
  }, /*#__PURE__*/React.createElement(core.Avatar, {
11825
- radius: "xl",
11826
- src: avatar
11826
+ src: avatar,
11827
+ radius: 'md',
11828
+ key: name,
11829
+ name: name,
11830
+ color: "initials",
11831
+ bd: '0.5px solid adiba.2'
11827
11832
  }), /*#__PURE__*/React.createElement(core.Stack, {
11828
11833
  gap: 0,
11829
11834
  align: "flex-start",
@@ -12040,7 +12045,7 @@ const SearchPanel = _ref3 => {
12040
12045
  rightSection: typeof filterFn == 'function' ? /*#__PURE__*/React.createElement(core.ActionIcon, {
12041
12046
  variant: "transparent",
12042
12047
  onClick: filterFn
12043
- }, /*#__PURE__*/React.createElement(Icons, filterIcon)) : /*#__PURE__*/React.createElement(React.Fragment, null, console.debug(typeof filterFn))
12048
+ }, /*#__PURE__*/React.createElement(Icons, filterIcon)) : /*#__PURE__*/React.createElement(React.Fragment, null)
12044
12049
  }), /*#__PURE__*/React.createElement(core.Button, {
12045
12050
  variant: "light",
12046
12051
  size: "md",
@@ -12141,11 +12146,17 @@ const AvatarLabelPanel = _ref2 => {
12141
12146
  }), /*#__PURE__*/React.createElement(core.Group, {
12142
12147
  align: "flex-start",
12143
12148
  py: "sm"
12144
- }, /*#__PURE__*/React.createElement(core.Center, {
12145
- w: labelWidth
12149
+ }, /*#__PURE__*/React.createElement(core.Box, {
12150
+ w: labelWidth,
12151
+ pl: 'md'
12146
12152
  }, /*#__PURE__*/React.createElement(core.Avatar, {
12147
12153
  size: avatarSize,
12148
- src: avatar
12154
+ src: avatar,
12155
+ radius: 'md',
12156
+ key: name,
12157
+ name: name,
12158
+ color: "initials",
12159
+ bd: '0.5px solid adiba.2'
12149
12160
  })), /*#__PURE__*/React.createElement(core.Stack, {
12150
12161
  py: 10,
12151
12162
  gap: "md",
@@ -12508,7 +12519,7 @@ const ApplicationPanel = _ref => {
12508
12519
  src: coverImage,
12509
12520
  fallbackSrc: img$a
12510
12521
  }), /*#__PURE__*/React.createElement(core.Overlay, {
12511
- gradient: "linear-gradient(45deg, rgba(255,255,255,0.25) 0%,rgba(255,255,255,0.1) 100%)"
12522
+ gradient: "linear-gradient(45deg, rgba(255,255,255,0.1) 0%,rgba(255,255,255,0.05) 100%)"
12512
12523
  }))), /*#__PURE__*/React.createElement(core.Card.Section, {
12513
12524
  p: "md"
12514
12525
  }, /*#__PURE__*/React.createElement(core.Stack, {
@@ -11242,10 +11242,11 @@ const parseColorToRgb = colorString => {
11242
11242
  const createAreaFillGradient = function (baseColor) {
11243
11243
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11244
11244
  const {
11245
- startOpacity = 0.6,
11246
- endOpacity = 0.0
11245
+ startOpacity = 0.2,
11246
+ endOpacity = 0.08
11247
11247
  } = options;
11248
11248
  const parsedColor = parseColorToRgb(baseColor);
11249
+ "rgba(".concat(parsedColor.r, ", ").concat(parsedColor.g, ", ").concat(parsedColor.b, ", 1)");
11249
11250
 
11250
11251
  // Color string for the top of the gradient (base color with specified start opacity)
11251
11252
  const rgbaStart = "rgba(".concat(parsedColor.r, ", ").concat(parsedColor.g, ", ").concat(parsedColor.b, ", ").concat(startOpacity, ")");
@@ -11264,8 +11265,9 @@ const createAreaFillGradient = function (baseColor) {
11264
11265
  },
11265
11266
  stops: [[0, rgbaStart],
11266
11267
  // First stop: at the top (0% of gradient vector)
11267
- [1, rgbaEnd] // Second stop: at the bottom (100% of gradient vector)
11268
- ]
11268
+ [0.9, rgbaEnd],
11269
+ // Second stop: at the bottom (100% of gradient vector)
11270
+ [1, "transparent"]]
11269
11271
  };
11270
11272
  };
11271
11273
 
@@ -11552,7 +11554,6 @@ const initSeries = props => {
11552
11554
  const renderPlot = () => {
11553
11555
  const areaspline = {
11554
11556
  lineWidth: 1,
11555
- opacity: 0.3,
11556
11557
  color: "#C8700B",
11557
11558
  pointPlacement: "on",
11558
11559
  marker: {
@@ -11801,8 +11802,12 @@ const UserMenuTarget = _ref => {
11801
11802
  }, /*#__PURE__*/React.createElement(Group, {
11802
11803
  gap: "sm"
11803
11804
  }, /*#__PURE__*/React.createElement(Avatar, {
11804
- radius: "xl",
11805
- src: avatar
11805
+ src: avatar,
11806
+ radius: 'md',
11807
+ key: name,
11808
+ name: name,
11809
+ color: "initials",
11810
+ bd: '0.5px solid adiba.2'
11806
11811
  }), /*#__PURE__*/React.createElement(Stack, {
11807
11812
  gap: 0,
11808
11813
  align: "flex-start",
@@ -12019,7 +12024,7 @@ const SearchPanel = _ref3 => {
12019
12024
  rightSection: typeof filterFn == 'function' ? /*#__PURE__*/React.createElement(ActionIcon, {
12020
12025
  variant: "transparent",
12021
12026
  onClick: filterFn
12022
- }, /*#__PURE__*/React.createElement(Icons, filterIcon)) : /*#__PURE__*/React.createElement(React.Fragment, null, console.debug(typeof filterFn))
12027
+ }, /*#__PURE__*/React.createElement(Icons, filterIcon)) : /*#__PURE__*/React.createElement(React.Fragment, null)
12023
12028
  }), /*#__PURE__*/React.createElement(Button, {
12024
12029
  variant: "light",
12025
12030
  size: "md",
@@ -12120,11 +12125,17 @@ const AvatarLabelPanel = _ref2 => {
12120
12125
  }), /*#__PURE__*/React.createElement(Group, {
12121
12126
  align: "flex-start",
12122
12127
  py: "sm"
12123
- }, /*#__PURE__*/React.createElement(Center, {
12124
- w: labelWidth
12128
+ }, /*#__PURE__*/React.createElement(Box, {
12129
+ w: labelWidth,
12130
+ pl: 'md'
12125
12131
  }, /*#__PURE__*/React.createElement(Avatar, {
12126
12132
  size: avatarSize,
12127
- src: avatar
12133
+ src: avatar,
12134
+ radius: 'md',
12135
+ key: name,
12136
+ name: name,
12137
+ color: "initials",
12138
+ bd: '0.5px solid adiba.2'
12128
12139
  })), /*#__PURE__*/React.createElement(Stack, {
12129
12140
  py: 10,
12130
12141
  gap: "md",
@@ -12487,7 +12498,7 @@ const ApplicationPanel = _ref => {
12487
12498
  src: coverImage,
12488
12499
  fallbackSrc: img$a
12489
12500
  }), /*#__PURE__*/React.createElement(Overlay, {
12490
- gradient: "linear-gradient(45deg, rgba(255,255,255,0.25) 0%,rgba(255,255,255,0.1) 100%)"
12501
+ gradient: "linear-gradient(45deg, rgba(255,255,255,0.1) 0%,rgba(255,255,255,0.05) 100%)"
12491
12502
  }))), /*#__PURE__*/React.createElement(Card.Section, {
12492
12503
  p: "md"
12493
12504
  }, /*#__PURE__*/React.createElement(Stack, {
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { DonutChartProps } from "./Donut.types";
3
+ export declare const DonutChart: React.FC<DonutChartProps>;
@@ -0,0 +1,2 @@
1
+ import { DonutChartConfig, DonutChartProps } from "./Donut.types";
2
+ export declare const initChart: ({ withLegend, centerLabel, centerValue, ...rest }: DonutChartProps) => DonutChartConfig;
@@ -0,0 +1,6 @@
1
+ import { Meta } from "@storybook/react";
2
+ import "@mantine/core/styles.css";
3
+ import { DonutChart } from "./Donut";
4
+ declare const _default: Meta<typeof DonutChart>;
5
+ export default _default;
6
+ export declare const SimpleDonutChart: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Donut.types").DonutChartProps>;
@@ -0,0 +1,37 @@
1
+ import * as Highcharts from "highcharts";
2
+ export interface CustomChart extends Highcharts.Chart {
3
+ customLabel?: Highcharts.SVGElement;
4
+ }
5
+ export interface DonutChartProps {
6
+ bgColor?: string;
7
+ plotBgColor?: string;
8
+ colors?: string[];
9
+ title?: string;
10
+ categories: string[];
11
+ series: number[];
12
+ withLegend: boolean | DonutChartLegendProps;
13
+ centerValue?: string;
14
+ centerLabel?: string;
15
+ }
16
+ interface DonutChartLegendProps {
17
+ enabled: boolean;
18
+ layout?: "vertical" | "horizontal";
19
+ align?: "left" | "center" | "right";
20
+ verticalAlign?: "top" | "middle" | "bottom";
21
+ floating?: boolean;
22
+ x?: number;
23
+ y?: number;
24
+ }
25
+ export interface DonutChartConfig {
26
+ chart: object;
27
+ title: object;
28
+ exporting: {
29
+ enabled: boolean;
30
+ };
31
+ tooltip: object;
32
+ legend: object;
33
+ plotOptions: object;
34
+ credits: object;
35
+ series: object;
36
+ }
37
+ export {};
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.29",
4
+ "version": "0.0.31",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",