@fixefy/fixefy-ui-components 0.3.71 → 0.3.73

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.
@@ -60,9 +60,6 @@ const FxGridEmptyState = ()=>{
60
60
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
61
61
  display: 'flex',
62
62
  flexDirection: 'column',
63
- sx: {
64
- marginTop: '40px'
65
- },
66
63
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
67
64
  variant: "h5",
68
65
  children: "There is currently no data to display."
@@ -6,8 +6,9 @@ export interface Tab {
6
6
  maxWidth?: number | string;
7
7
  minWidth?: number | string;
8
8
  }
9
- export declare const FxToggleButtons: ({ activeTab, tabsData, onChange, }: {
9
+ export declare const FxToggleButtons: ({ activeTab, tabsData, onChange, darkMode }: {
10
10
  activeTab: string;
11
11
  tabsData: Tab[];
12
12
  onChange: any;
13
+ darkMode?: boolean;
13
14
  }) => React.JSX.Element;
@@ -16,11 +16,11 @@ function _interop_require_default(obj) {
16
16
  default: obj
17
17
  };
18
18
  }
19
- const FxToggleButtons = ({ activeTab, tabsData, onChange })=>{
19
+ const FxToggleButtons = ({ activeTab, tabsData, onChange, darkMode })=>{
20
20
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.ToggleButtonGroup, {
21
21
  sx: {
22
22
  height: '40px',
23
- backgroundColor: '#fff'
23
+ backgroundColor: darkMode ? '#323232' : '#fff'
24
24
  },
25
25
  color: "primary",
26
26
  value: activeTab,
@@ -46,7 +46,7 @@ const FxToggleButtons = ({ activeTab, tabsData, onChange })=>{
46
46
  minWidth: minWidth || '161px'
47
47
  },
48
48
  '&.Mui-selected': {
49
- backgroundColor: '#F1FBFE',
49
+ backgroundColor: darkMode ? '#568793' : '#F1FBFE',
50
50
  border: '1px solid #568793'
51
51
  }
52
52
  },
@@ -58,7 +58,7 @@ const FxToggleButtons = ({ activeTab, tabsData, onChange })=>{
58
58
  lineHeight: '24px',
59
59
  fontSize: '12px',
60
60
  fontWeight: 500,
61
- color: 'primary',
61
+ color: darkMode ? '#fff' : '#000',
62
62
  variant: "button",
63
63
  children: label
64
64
  })
package/package.json CHANGED
@@ -69,5 +69,5 @@
69
69
  "require": "./dist/index.js"
70
70
  }
71
71
  },
72
- "version": "0.3.71"
72
+ "version": "0.3.73"
73
73
  }