@adiba-banking-cloud/backoffice 0.0.10 → 0.0.12

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.
@@ -9,6 +9,14 @@ var IconSax = require('iconsax-react');
9
9
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
10
10
  var core = require('@mantine/core');
11
11
  var hooks = require('@mantine/hooks');
12
+ require('@fontsource/poppins/100.css');
13
+ require('@fontsource/poppins/200.css');
14
+ require('@fontsource/poppins/300.css');
15
+ require('@fontsource/poppins/400.css');
16
+ require('@fontsource/poppins/500.css');
17
+ require('@fontsource/poppins/600.css');
18
+ require('@fontsource/poppins/700.css');
19
+ require('@fontsource/poppins/800.css');
12
20
 
13
21
  function _interopNamespaceDefault(e) {
14
22
  var n = Object.create(null);
@@ -11695,7 +11703,9 @@ const SideMenu = _ref => {
11695
11703
  return /*#__PURE__*/React.createElement(React.Fragment, null, sidemenu.map(item => {
11696
11704
  var _item$children;
11697
11705
  return /*#__PURE__*/React.createElement(core.NavLink, {
11698
- mt: 'xs',
11706
+ mt: "xs",
11707
+ fw: 300,
11708
+ c: color,
11699
11709
  style: {
11700
11710
  borderRadius: radius
11701
11711
  },
@@ -11712,11 +11722,35 @@ const SideMenu = _ref => {
11712
11722
  color,
11713
11723
  variant,
11714
11724
  onClick,
11725
+ c: color,
11726
+ fw: 300,
11727
+ style: {
11728
+ borderRadius: radius
11729
+ },
11715
11730
  key: subitem.id
11716
11731
  })) : undefined);
11717
11732
  }));
11718
11733
  };
11719
11734
 
11735
+ const theme = core.createTheme({
11736
+ focusRing: "never",
11737
+ colors: {
11738
+ adiba: ["#E7E8EB", "#CFD1D8", "#B7BAC4", "#9FA3B1", "#575E77", "#273050", "#0f193d", "#0D1636", "#0C1430", "#0A112A"],
11739
+ altiba: ["#F4E2CE", "#EED4B5", "#E9C59D", "#D89A54", "#D38C3B", "#CD7E23", "#c8700b", "#B46409", "#A05908", "#8C4E07"]
11740
+ },
11741
+ fontFamily: "Poppins",
11742
+ headings: {
11743
+ fontFamily: "Poppins",
11744
+ fontWeight: "500"
11745
+ },
11746
+ primaryColor: "adiba",
11747
+ other: {
11748
+ fontWeights: {
11749
+ normal: 300
11750
+ }
11751
+ }
11752
+ });
11753
+
11720
11754
  exports.ApplicationMenu = ApplicationMenu;
11721
11755
  exports.DynamicLogo = DynamicLogo;
11722
11756
  exports.DynamicShigaLogo = DynamicShigaLogo;
@@ -11726,3 +11760,4 @@ exports.SideMenu = SideMenu;
11726
11760
  exports.SimpleColumn = SimpleColumn;
11727
11761
  exports.StackedColumn = StackedColumn;
11728
11762
  exports.UserMenu = UserMenu;
11763
+ exports.theme = theme;
@@ -5,8 +5,16 @@ import HighchartsReact from 'highcharts-react-official';
5
5
  import HighchartsRounded from 'highcharts-rounded-corners';
6
6
  import * as IconSax from 'iconsax-react';
7
7
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
8
- import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink } from '@mantine/core';
8
+ import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink, createTheme } from '@mantine/core';
9
9
  import { useDisclosure } from '@mantine/hooks';
10
+ import '@fontsource/poppins/100.css';
11
+ import '@fontsource/poppins/200.css';
12
+ import '@fontsource/poppins/300.css';
13
+ import '@fontsource/poppins/400.css';
14
+ import '@fontsource/poppins/500.css';
15
+ import '@fontsource/poppins/600.css';
16
+ import '@fontsource/poppins/700.css';
17
+ import '@fontsource/poppins/800.css';
10
18
 
11
19
  function getDefaultExportFromCjs (x) {
12
20
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -11674,7 +11682,9 @@ const SideMenu = _ref => {
11674
11682
  return /*#__PURE__*/React.createElement(React.Fragment, null, sidemenu.map(item => {
11675
11683
  var _item$children;
11676
11684
  return /*#__PURE__*/React.createElement(NavLink, {
11677
- mt: 'xs',
11685
+ mt: "xs",
11686
+ fw: 300,
11687
+ c: color,
11678
11688
  style: {
11679
11689
  borderRadius: radius
11680
11690
  },
@@ -11691,9 +11701,33 @@ const SideMenu = _ref => {
11691
11701
  color,
11692
11702
  variant,
11693
11703
  onClick,
11704
+ c: color,
11705
+ fw: 300,
11706
+ style: {
11707
+ borderRadius: radius
11708
+ },
11694
11709
  key: subitem.id
11695
11710
  })) : undefined);
11696
11711
  }));
11697
11712
  };
11698
11713
 
11699
- export { ApplicationMenu, DynamicLogo, DynamicShigaLogo, EqualizerColumn, Icons, SideMenu, SimpleColumn, StackedColumn, UserMenu };
11714
+ const theme = createTheme({
11715
+ focusRing: "never",
11716
+ colors: {
11717
+ adiba: ["#E7E8EB", "#CFD1D8", "#B7BAC4", "#9FA3B1", "#575E77", "#273050", "#0f193d", "#0D1636", "#0C1430", "#0A112A"],
11718
+ altiba: ["#F4E2CE", "#EED4B5", "#E9C59D", "#D89A54", "#D38C3B", "#CD7E23", "#c8700b", "#B46409", "#A05908", "#8C4E07"]
11719
+ },
11720
+ fontFamily: "Poppins",
11721
+ headings: {
11722
+ fontFamily: "Poppins",
11723
+ fontWeight: "500"
11724
+ },
11725
+ primaryColor: "adiba",
11726
+ other: {
11727
+ fontWeights: {
11728
+ normal: 300
11729
+ }
11730
+ }
11731
+ });
11732
+
11733
+ export { ApplicationMenu, DynamicLogo, DynamicShigaLogo, EqualizerColumn, Icons, SideMenu, SimpleColumn, StackedColumn, UserMenu, theme };
@@ -4,3 +4,4 @@ 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 { theme } from "./theme";
@@ -0,0 +1,149 @@
1
+ import "@fontsource/poppins/100.css";
2
+ import "@fontsource/poppins/200.css";
3
+ import "@fontsource/poppins/300.css";
4
+ import "@fontsource/poppins/400.css";
5
+ import "@fontsource/poppins/500.css";
6
+ import "@fontsource/poppins/600.css";
7
+ import "@fontsource/poppins/700.css";
8
+ import "@fontsource/poppins/800.css";
9
+ export declare const theme: {
10
+ focusRing?: "auto" | "never" | "always" | undefined;
11
+ scale?: number | undefined;
12
+ fontSmoothing?: boolean | undefined;
13
+ white?: string | undefined;
14
+ black?: string | undefined;
15
+ colors?: {
16
+ [x: string & {}]: import("@mantine/core").MantineColorsTuple | undefined;
17
+ blue?: import("@mantine/core").MantineColorsTuple | undefined;
18
+ gray?: import("@mantine/core").MantineColorsTuple | undefined;
19
+ cyan?: import("@mantine/core").MantineColorsTuple | undefined;
20
+ green?: import("@mantine/core").MantineColorsTuple | undefined;
21
+ indigo?: import("@mantine/core").MantineColorsTuple | undefined;
22
+ lime?: import("@mantine/core").MantineColorsTuple | undefined;
23
+ orange?: import("@mantine/core").MantineColorsTuple | undefined;
24
+ pink?: import("@mantine/core").MantineColorsTuple | undefined;
25
+ red?: import("@mantine/core").MantineColorsTuple | undefined;
26
+ teal?: import("@mantine/core").MantineColorsTuple | undefined;
27
+ violet?: import("@mantine/core").MantineColorsTuple | undefined;
28
+ yellow?: import("@mantine/core").MantineColorsTuple | undefined;
29
+ dark?: import("@mantine/core").MantineColorsTuple | undefined;
30
+ grape?: import("@mantine/core").MantineColorsTuple | undefined;
31
+ } | undefined;
32
+ primaryShade?: import("@mantine/core").MantineColorShade | {
33
+ light?: import("@mantine/core").MantineColorShade | undefined;
34
+ dark?: import("@mantine/core").MantineColorShade | undefined;
35
+ } | undefined;
36
+ primaryColor?: string | undefined;
37
+ variantColorResolver?: import("@mantine/core").VariantColorsResolver | undefined;
38
+ autoContrast?: boolean | undefined;
39
+ luminanceThreshold?: number | undefined;
40
+ fontFamily?: string | undefined;
41
+ fontFamilyMonospace?: string | undefined;
42
+ headings?: {
43
+ fontFamily?: string | undefined;
44
+ fontWeight?: string | undefined;
45
+ textWrap?: "wrap" | "nowrap" | "balance" | "pretty" | "stable" | undefined;
46
+ sizes?: {
47
+ h1?: {
48
+ fontSize?: string | undefined;
49
+ fontWeight?: string | undefined;
50
+ lineHeight?: string | undefined;
51
+ } | undefined;
52
+ h2?: {
53
+ fontSize?: string | undefined;
54
+ fontWeight?: string | undefined;
55
+ lineHeight?: string | undefined;
56
+ } | undefined;
57
+ h3?: {
58
+ fontSize?: string | undefined;
59
+ fontWeight?: string | undefined;
60
+ lineHeight?: string | undefined;
61
+ } | undefined;
62
+ h4?: {
63
+ fontSize?: string | undefined;
64
+ fontWeight?: string | undefined;
65
+ lineHeight?: string | undefined;
66
+ } | undefined;
67
+ h5?: {
68
+ fontSize?: string | undefined;
69
+ fontWeight?: string | undefined;
70
+ lineHeight?: string | undefined;
71
+ } | undefined;
72
+ h6?: {
73
+ fontSize?: string | undefined;
74
+ fontWeight?: string | undefined;
75
+ lineHeight?: string | undefined;
76
+ } | undefined;
77
+ } | undefined;
78
+ } | undefined;
79
+ radius?: {
80
+ [x: string & {}]: string | undefined;
81
+ xs?: string | undefined;
82
+ sm?: string | undefined;
83
+ md?: string | undefined;
84
+ lg?: string | undefined;
85
+ xl?: string | undefined;
86
+ } | undefined;
87
+ defaultRadius?: import("@mantine/core").MantineRadius | undefined;
88
+ spacing?: {
89
+ [x: number]: string | undefined;
90
+ [x: string & {}]: string | undefined;
91
+ xs?: string | undefined;
92
+ sm?: string | undefined;
93
+ md?: string | undefined;
94
+ lg?: string | undefined;
95
+ xl?: string | undefined;
96
+ } | undefined;
97
+ fontSizes?: {
98
+ [x: string & {}]: string | undefined;
99
+ xs?: string | undefined;
100
+ sm?: string | undefined;
101
+ md?: string | undefined;
102
+ lg?: string | undefined;
103
+ xl?: string | undefined;
104
+ } | undefined;
105
+ lineHeights?: {
106
+ [x: string & {}]: string | undefined;
107
+ xs?: string | undefined;
108
+ sm?: string | undefined;
109
+ md?: string | undefined;
110
+ lg?: string | undefined;
111
+ xl?: string | undefined;
112
+ } | undefined;
113
+ breakpoints?: {
114
+ [x: string & {}]: string | undefined;
115
+ xs?: string | undefined;
116
+ sm?: string | undefined;
117
+ md?: string | undefined;
118
+ lg?: string | undefined;
119
+ xl?: string | undefined;
120
+ } | undefined;
121
+ shadows?: {
122
+ [x: string & {}]: string | undefined;
123
+ xs?: string | undefined;
124
+ sm?: string | undefined;
125
+ md?: string | undefined;
126
+ lg?: string | undefined;
127
+ xl?: string | undefined;
128
+ } | undefined;
129
+ respectReducedMotion?: boolean | undefined;
130
+ cursorType?: "default" | "pointer" | undefined;
131
+ defaultGradient?: {
132
+ from?: string | undefined;
133
+ to?: string | undefined;
134
+ deg?: number | undefined;
135
+ } | undefined;
136
+ activeClassName?: string | undefined;
137
+ focusClassName?: string | undefined;
138
+ components?: {
139
+ [x: string]: {
140
+ classNames?: any;
141
+ styles?: any;
142
+ vars?: any;
143
+ defaultProps?: any;
144
+ } | undefined;
145
+ } | undefined;
146
+ other?: {
147
+ [x: string]: any;
148
+ } | undefined;
149
+ };
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.10",
4
+ "version": "0.0.12",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",