@fixefy/fixefy-ui-components 0.3.74 → 0.3.75
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/dist/FxActionsTray/FxActionsTray.js +17 -12
- package/dist/FxAggregationsBar/helpers/structureReader.js +6 -4
- package/dist/FxAsyncDropdown/FxAsyncDropdown.js +18 -10
- package/dist/FxAsyncDropdown/components/CheckboxIcon.js +8 -6
- package/dist/FxAsyncDropdown/components/ChipOption.d.ts +1 -1
- package/dist/FxAsyncDropdown/components/DeleteButton.js +2 -2
- package/dist/FxAsyncDropdown/components/LogoOption.d.ts +1 -1
- package/dist/FxAsyncDropdown/components/LogoOption.js +7 -6
- package/dist/FxAsyncDropdown/components/TextOption.d.ts +1 -1
- package/dist/FxAsyncDropdown/components/TextOption.js +7 -6
- package/dist/FxAsyncDropdown/styles/dropdown.styles.js +2 -2
- package/dist/FxAvatar/helpers/stringToColor.js +2 -2
- package/dist/FxAvatar/styles/avatar.styles.js +77 -36
- package/dist/FxButton/styles/button.styles.js +8 -3
- package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.d.ts +1 -1
- package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.js +11 -4
- package/dist/FxButtonModalWithMenu/FxButtonModalWithMenu.d.ts +1 -1
- package/dist/FxButtonModalWithMenu/FxButtonModalWithMenu.js +11 -4
- package/dist/FxChip/FxChip.js +2 -2
- package/dist/FxChip/styles/chip.styles.js +11 -6
- package/dist/FxDatesProgress/FxDatesProgress.js +8 -7
- package/dist/FxDatesProgress/styles/progress.styles.js +8 -2
- package/dist/FxGeneralModal/FxGeneralModal.js +12 -5
- package/dist/FxGridEmptyState/FxGridEmptyState.js +7 -6
- package/dist/FxGridError/FxGridError.js +8 -7
- package/dist/FxIcon/FxIcon.d.ts +1 -1
- package/dist/FxIcon/FxIcon.js +5 -4
- package/dist/FxIcon/content/index.d.ts +2 -2
- package/dist/FxIcon/content/lazy_icon.d.ts +1 -1
- package/dist/FxIcon/content/lazy_icon.js +4 -3
- package/dist/FxMenuItemWithIcon/FxMenuItemWithIcon.js +6 -4
- package/dist/FxModal/FxModal.js +4 -3
- package/dist/FxModal/styles/modal.style.js +12 -5
- package/dist/FxNotes/FxNotes.js +2 -2
- package/dist/FxNotes/helpers/stringToColor.js +2 -2
- package/dist/FxNotes/styles/notes.styles.js +2 -2
- package/dist/FxNumberField/FxNumberField.js +1 -2
- package/dist/FxNumberField/styles/number_field.styles.js +7 -2
- package/dist/FxObjStaticDropdown/FxObjStaticDropdown.js +27 -16
- package/dist/FxObjStaticDropdown/styles/dropdown.styles.js +2 -2
- package/dist/FxPopper/Popper.d.ts +2 -1
- package/dist/FxPopper/Popper.js +11 -6
- package/dist/FxPopper/PopperWithOutside.d.ts +1 -1
- package/dist/FxPopper/PopperWithOutside.js +4 -3
- package/dist/FxPopper/styles/popper.styles.js +1 -1
- package/dist/FxProgressCircle/styles/progress_circle.styles.js +12 -12
- package/dist/FxProgressCounter/ProgressCounter.js +10 -9
- package/dist/FxProgressCounter/styles/progress_counter.styles.js +12 -7
- package/dist/FxScore/FxScore.js +19 -11
- package/dist/FxScore/styles/score.styles.js +7 -2
- package/dist/FxShowMore/FxShowMore.js +2 -2
- package/dist/FxShowMore/styles/show_more.styles.js +16 -7
- package/dist/FxSlider/FxSlider.js +2 -2
- package/dist/FxStatisticsBar/FxStatisticsBar.js +12 -6
- package/dist/FxStatisticsBar/styles/statistics.styles.js +7 -2
- package/dist/FxStatusBar/FxStatusBar.js +7 -2
- package/dist/FxStatusBar/styles/statusBar.styles.js +22 -15
- package/dist/FxStrStaticDropdown/FxStrStaticDropdown.js +26 -16
- package/dist/FxStrStaticDropdown/styles/dropdown.styles.js +2 -2
- package/dist/FxStyledButton/FxStyledButton.d.ts +2 -2
- package/dist/FxStyledButton/FxStyledButton.js +4 -3
- package/dist/FxStyledComponents/index.d.ts +1 -1
- package/dist/FxStyledComponents/index.js +32 -23
- package/dist/FxTabs/FxTabs.js +13 -9
- package/dist/FxTag/FxTag.js +2 -2
- package/dist/FxTag/index.d.ts +1 -1
- package/dist/FxTag/styles/tag.styles.js +10 -4
- package/dist/FxTextField/FxTextField.d.ts +1 -1
- package/dist/FxTextField/FxTextField.js +10 -7
- package/dist/FxTodo/FxTodo.js +5 -5
- package/dist/FxToggleButtons/FxToggleButtons.js +6 -5
- package/dist/FxUserImage/FxUserImage.js +7 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +31 -30
- package/dist/FxActionButton/FxActionButton.d.ts +0 -7
- package/dist/FxActionButton/FxActionButton.js +0 -82
- package/dist/FxActionButton/index.d.ts +0 -1
- package/dist/FxActionButton/index.js +0 -11
- package/dist/FxActionsTray/styles/actions_tray.styles.d.ts +0 -8
- package/dist/FxActionsTray/styles/actions_tray.styles.js +0 -159
- package/dist/FxAsyncDropdown/useDropdownStore.d.ts +0 -2
- package/dist/FxAsyncDropdown/useDropdownStore.js +0 -57
- package/dist/FxFilterActionButton/FxFilterActionButton.d.ts +0 -7
- package/dist/FxFilterActionButton/FxFilterActionButton.js +0 -82
- package/dist/FxFilterActionButton/index.d.ts +0 -1
- package/dist/FxFilterActionButton/index.js +0 -11
- package/dist/FxFilterSortButton/FxFilterSortButton.d.ts +0 -7
- package/dist/FxFilterSortButton/FxFilterSortButton.js +0 -82
- package/dist/FxFilterSortButton/index.d.ts +0 -1
- package/dist/FxFilterSortButton/index.js +0 -11
- package/dist/FxModalWithButton/FxModalWithButton.d.ts +0 -10
- package/dist/FxModalWithButton/FxModalWithButton.js +0 -131
- package/dist/FxModalWithButton/index.d.ts +0 -1
- package/dist/FxModalWithButton/index.js +0 -11
- package/dist/FxModalWithComponent/FxModalWithComponent.d.ts +0 -11
- package/dist/FxModalWithComponent/FxModalWithComponent.js +0 -102
- package/dist/FxModalWithComponent/index.d.ts +0 -1
- package/dist/FxModalWithComponent/index.js +0 -11
- package/dist/FxModalWithMenu/FxModalWithMenu.d.ts +0 -14
- package/dist/FxModalWithMenu/FxModalWithMenu.js +0 -114
- package/dist/FxModalWithMenu/index.d.ts +0 -1
- package/dist/FxModalWithMenu/index.js +0 -11
- package/dist/FxPopper/styles/makeStyles.d.ts +0 -16
- package/dist/FxPopper/styles/makeStyles.js +0 -23
- package/dist/FxStaticDropdown/FxStaticDropdown.d.ts +0 -24
- package/dist/FxStaticDropdown/FxStaticDropdown.js +0 -368
- package/dist/FxStaticDropdown/helpers/helpers.d.ts +0 -2
- package/dist/FxStaticDropdown/helpers/helpers.js +0 -22
- package/dist/FxStaticDropdown/index.d.ts +0 -1
- package/dist/FxStaticDropdown/index.js +0 -11
- package/dist/FxStaticDropdown/styles/dropdown.styles.d.ts +0 -3
- package/dist/FxStaticDropdown/styles/dropdown.styles.js +0 -190
- package/dist/FxWizard/FxWizard/FxWizard.d.ts +0 -6
- package/dist/FxWizard/FxWizard/FxWizard.js +0 -42
- package/dist/FxWizard/FxWizard/index.d.ts +0 -2
- package/dist/FxWizard/FxWizard/index.js +0 -19
- package/dist/FxWizard/FxWizard/utils/envHelpers.d.ts +0 -1
- package/dist/FxWizard/FxWizard/utils/envHelpers.js +0 -35
- package/dist/FxWizard/FxWizard/utils/index.d.ts +0 -1
- package/dist/FxWizard/FxWizard/utils/index.js +0 -18
- package/dist/FxWizard/pages/wizard/[step].d.ts +0 -9
- package/dist/FxWizard/pages/wizard/[step].js +0 -112
- package/dist/FxWizard/pages/wizard/index.d.ts +0 -1
- package/dist/FxWizard/pages/wizard/index.js +0 -18
- package/dist/src/FxActionsTray/FxActionsTray.js +0 -351
- package/dist/src/FxActionsTray/index.js +0 -19
- package/dist/src/FxActionsTray/styles/actions_tray.styles.js +0 -159
- package/dist/src/FxAggregationsBar/FxAggregations.js +0 -41
- package/dist/src/FxAggregationsBar/helpers/structureReader.js +0 -78
- package/dist/src/FxAggregationsBar/index.js +0 -22
- package/dist/src/FxAggregationsBar/operations/query.js +0 -73
- package/dist/src/FxAsyncDropdown/FxAsyncDropdown.js +0 -628
- package/dist/src/FxAsyncDropdown/helpers/helpers.js +0 -161
- package/dist/src/FxAsyncDropdown/index.js +0 -25
- package/dist/src/FxAsyncDropdown/styles/dropdown.styles.js +0 -228
- package/dist/src/FxAvatar/FxAvatar.js +0 -145
- package/dist/src/FxAvatar/helpers/stringToColor.js +0 -23
- package/dist/src/FxAvatar/index.js +0 -22
- package/dist/src/FxAvatar/styles/avatar.styles.js +0 -192
- package/dist/src/FxButton/FxButton.js +0 -106
- package/dist/src/FxButton/index.js +0 -19
- package/dist/src/FxButton/styles/button.styles.js +0 -23
- package/dist/src/FxChip/FxChip.js +0 -45
- package/dist/src/FxChip/index.js +0 -19
- package/dist/src/FxChip/styles/chip.styles.js +0 -61
- package/dist/src/FxFilterSortButton/FxFilterSortButton.js +0 -82
- package/dist/src/FxFilterSortButton/index.js +0 -11
- package/dist/src/FxIcon/FxIcon.js +0 -107
- package/dist/src/FxIcon/content/dynamic_icon.js +0 -20
- package/dist/src/FxIcon/content/index.js +0 -20
- package/dist/src/FxIcon/content/lazy_icon.js +0 -137
- package/dist/src/FxIcon/index.js +0 -11
- package/dist/src/FxModal/FxModal.js +0 -170
- package/dist/src/FxModal/index.js +0 -19
- package/dist/src/FxModal/styles/modal.style.js +0 -59
- package/dist/src/FxModalWithButton/FxModalWithButton.js +0 -94
- package/dist/src/FxModalWithButton/index.js +0 -11
- package/dist/src/FxNotes/FxNotes.js +0 -216
- package/dist/src/FxNotes/helpers/stringToColor.js +0 -26
- package/dist/src/FxNotes/index.js +0 -22
- package/dist/src/FxNotes/operations/queries.js +0 -35
- package/dist/src/FxNotes/styles/notes.styles.js +0 -168
- package/dist/src/FxNumberField/FxNumberField.js +0 -109
- package/dist/src/FxNumberField/index.js +0 -19
- package/dist/src/FxNumberField/styles/number_field.styles.js +0 -94
- package/dist/src/FxProgressCircle/FxProgressCircle.js +0 -65
- package/dist/src/FxProgressCircle/index.js +0 -19
- package/dist/src/FxProgressCircle/styles/progress_circle.styles.js +0 -106
- package/dist/src/FxProgressCounter/ProgressCounter.js +0 -168
- package/dist/src/FxProgressCounter/index.js +0 -19
- package/dist/src/FxProgressCounter/styles/progress_counter.styles.js +0 -61
- package/dist/src/FxScore/FxScore.js +0 -207
- package/dist/src/FxScore/index.js +0 -19
- package/dist/src/FxScore/styles/score.styles.js +0 -97
- package/dist/src/FxShowMore/FxShowMore.js +0 -80
- package/dist/src/FxShowMore/index.js +0 -19
- package/dist/src/FxShowMore/styles/show_more.styles.js +0 -134
- package/dist/src/FxSlider/FxSlider.js +0 -49
- package/dist/src/FxSlider/index.js +0 -19
- package/dist/src/FxStatisticsBar/FxStatisticsBar.js +0 -191
- package/dist/src/FxStatisticsBar/index.js +0 -19
- package/dist/src/FxStatisticsBar/styles/statistics.styles.js +0 -98
- package/dist/src/FxStatusBar/FxStatusBar.js +0 -143
- package/dist/src/FxStatusBar/helpers/constants.js +0 -22
- package/dist/src/FxStatusBar/index.js +0 -22
- package/dist/src/FxStatusBar/styles/statusBar.styles.js +0 -131
- package/dist/src/FxStyledComponents/index.js +0 -310
- package/dist/src/FxTag/FxTag.js +0 -41
- package/dist/src/FxTag/index.js +0 -19
- package/dist/src/FxTag/styles/tag.styles.js +0 -100
- package/dist/src/FxTextField/FxTextField.js +0 -208
- package/dist/src/FxTextField/index.js +0 -19
- package/dist/src/FxTodo/FxTodo.js +0 -95
- package/dist/src/FxTodo/index.js +0 -22
- package/dist/src/FxTodo/styles/todo.styles.js +0 -183
- package/dist/src/index.js +0 -215
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "FxSlider", {
|
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
const
|
|
13
|
+
const _Slider = /*#__PURE__*/ _interop_require_default(require("@mui/material/Slider"));
|
|
14
14
|
function _define_property(obj, key, value) {
|
|
15
15
|
if (key in obj) {
|
|
16
16
|
Object.defineProperty(obj, key, {
|
|
@@ -45,5 +45,5 @@ function _object_spread(target) {
|
|
|
45
45
|
return target;
|
|
46
46
|
}
|
|
47
47
|
function FxSlider(props) {
|
|
48
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
48
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Slider.default, _object_spread({}, props));
|
|
49
49
|
}
|
|
@@ -11,8 +11,9 @@ Object.defineProperty(exports, "FxStatisticsBar", {
|
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
13
|
const _graphqltag = require("graphql-tag");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
14
|
+
const _hooks = require("@apollo/client/react/hooks");
|
|
15
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
16
|
+
const _Skeleton = /*#__PURE__*/ _interop_require_default(require("@mui/material/Skeleton"));
|
|
16
17
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
17
18
|
const _statisticsstyles = require("./styles/statistics.styles");
|
|
18
19
|
function _define_property(obj, key, value) {
|
|
@@ -28,6 +29,11 @@ function _define_property(obj, key, value) {
|
|
|
28
29
|
}
|
|
29
30
|
return obj;
|
|
30
31
|
}
|
|
32
|
+
function _interop_require_default(obj) {
|
|
33
|
+
return obj && obj.__esModule ? obj : {
|
|
34
|
+
default: obj
|
|
35
|
+
};
|
|
36
|
+
}
|
|
31
37
|
function _getRequireWildcardCache(nodeInterop) {
|
|
32
38
|
if (typeof WeakMap !== "function") return null;
|
|
33
39
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -93,7 +99,7 @@ function FxStatisticsBar({ value, type = 'currency', label, structure, collapsed
|
|
|
93
99
|
if (filter) {
|
|
94
100
|
_filter = _object_spread({}, _filter, filter);
|
|
95
101
|
}
|
|
96
|
-
const [fetchData, { data, loading }] = (0,
|
|
102
|
+
const [fetchData, { data, loading }] = (0, _hooks.useLazyQuery)((0, _graphqltag.gql)(gqlOperation));
|
|
97
103
|
const convertValue = (value)=>{
|
|
98
104
|
var _getCurrency;
|
|
99
105
|
let newValue = '';
|
|
@@ -160,17 +166,17 @@ function FxStatisticsBar({ value, type = 'currency', label, structure, collapsed
|
|
|
160
166
|
}, []);
|
|
161
167
|
const statisticsTitle = label ? label : title;
|
|
162
168
|
const statisticsValue = data && data[object_path] != null ? getValue(data[object_path]) : getValue(value);
|
|
163
|
-
return loading ? /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
169
|
+
return loading ? /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
164
170
|
sx: {
|
|
165
171
|
width: 100
|
|
166
172
|
},
|
|
167
173
|
children: [
|
|
168
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
174
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Skeleton.default, {
|
|
169
175
|
animation: "wave",
|
|
170
176
|
width: 100,
|
|
171
177
|
height: 30
|
|
172
178
|
}),
|
|
173
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
179
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Skeleton.default, {
|
|
174
180
|
animation: "wave",
|
|
175
181
|
width: 100,
|
|
176
182
|
height: 20
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "useStyles", {
|
|
|
8
8
|
return useStyles;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
const
|
|
11
|
+
const _makeStyles = /*#__PURE__*/ _interop_require_default(require("@mui/styles/makeStyles"));
|
|
12
12
|
require("@fixefy/fixefy-ui-utils");
|
|
13
13
|
function _define_property(obj, key, value) {
|
|
14
14
|
if (key in obj) {
|
|
@@ -23,6 +23,11 @@ function _define_property(obj, key, value) {
|
|
|
23
23
|
}
|
|
24
24
|
return obj;
|
|
25
25
|
}
|
|
26
|
+
function _interop_require_default(obj) {
|
|
27
|
+
return obj && obj.__esModule ? obj : {
|
|
28
|
+
default: obj
|
|
29
|
+
};
|
|
30
|
+
}
|
|
26
31
|
function _object_spread(target) {
|
|
27
32
|
for(var i = 1; i < arguments.length; i++){
|
|
28
33
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -62,7 +67,7 @@ function _object_spread_props(target, source) {
|
|
|
62
67
|
}
|
|
63
68
|
return target;
|
|
64
69
|
}
|
|
65
|
-
const useStyles = (0,
|
|
70
|
+
const useStyles = (0, _makeStyles.default)((theme)=>({
|
|
66
71
|
container: {
|
|
67
72
|
display: 'flex',
|
|
68
73
|
alignItems: 'center',
|
|
@@ -10,11 +10,16 @@ Object.defineProperty(exports, "FxStatusBar", {
|
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
-
const
|
|
13
|
+
const _Stack = /*#__PURE__*/ _interop_require_default(require("@mui/material/Stack"));
|
|
14
14
|
const _FxChip = require("../FxChip");
|
|
15
15
|
const _constants = require("./helpers/constants");
|
|
16
16
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
17
17
|
const _statusBarstyles = require("./styles/statusBar.styles");
|
|
18
|
+
function _interop_require_default(obj) {
|
|
19
|
+
return obj && obj.__esModule ? obj : {
|
|
20
|
+
default: obj
|
|
21
|
+
};
|
|
22
|
+
}
|
|
18
23
|
function _getRequireWildcardCache(nodeInterop) {
|
|
19
24
|
if (typeof WeakMap !== "function") return null;
|
|
20
25
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -119,7 +124,7 @@ const FxStatusBar = ({ onChangeStatus, onSearch, defaultStatus, title, options,
|
|
|
119
124
|
},
|
|
120
125
|
children: (0, _fixefyuiutils.titleCase)(title)
|
|
121
126
|
}),
|
|
122
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
127
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Stack.default, {
|
|
123
128
|
direction: "row",
|
|
124
129
|
spacing: 1,
|
|
125
130
|
children: [
|
|
@@ -20,7 +20,8 @@ _export(exports, {
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
const _styles = require("@mui/material/styles");
|
|
23
|
-
const
|
|
23
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
24
|
+
const _Chip = /*#__PURE__*/ _interop_require_default(require("@mui/material/Chip"));
|
|
24
25
|
function _define_property(obj, key, value) {
|
|
25
26
|
if (key in obj) {
|
|
26
27
|
Object.defineProperty(obj, key, {
|
|
@@ -34,6 +35,11 @@ function _define_property(obj, key, value) {
|
|
|
34
35
|
}
|
|
35
36
|
return obj;
|
|
36
37
|
}
|
|
38
|
+
function _interop_require_default(obj) {
|
|
39
|
+
return obj && obj.__esModule ? obj : {
|
|
40
|
+
default: obj
|
|
41
|
+
};
|
|
42
|
+
}
|
|
37
43
|
function _object_spread(target) {
|
|
38
44
|
for(var i = 1; i < arguments.length; i++){
|
|
39
45
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -73,41 +79,41 @@ function _object_spread_props(target, source) {
|
|
|
73
79
|
}
|
|
74
80
|
return target;
|
|
75
81
|
}
|
|
76
|
-
const StatusBarCard = (0, _styles.styled)(
|
|
82
|
+
const StatusBarCard = (0, _styles.styled)(_Box.default)(({ theme })=>({
|
|
77
83
|
background: theme.palette.common.white,
|
|
78
84
|
borderRadius: 4,
|
|
79
85
|
padding: 16,
|
|
80
|
-
boxShadow:
|
|
81
|
-
display:
|
|
82
|
-
alignItems:
|
|
83
|
-
width:
|
|
86
|
+
boxShadow: '0px 0px 10px rgba(86, 135, 147, 0.3)',
|
|
87
|
+
display: 'flex',
|
|
88
|
+
alignItems: 'center',
|
|
89
|
+
width: 'fit-content'
|
|
84
90
|
}));
|
|
85
|
-
const StatusBarTitle = (0, _styles.styled)(
|
|
91
|
+
const StatusBarTitle = (0, _styles.styled)('span')(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
86
92
|
color: theme.palette.common.black
|
|
87
93
|
}));
|
|
88
|
-
const StatusChipStyled = (0, _styles.styled)(
|
|
89
|
-
let backgroundColor,
|
|
90
|
-
if (variant ===
|
|
94
|
+
const StatusChipStyled = (0, _styles.styled)(_Chip.default)(({ theme, variant })=>{
|
|
95
|
+
let backgroundColor, labelColor;
|
|
96
|
+
if (variant === 'filled') {
|
|
91
97
|
backgroundColor = theme.palette.primary.light;
|
|
92
98
|
labelColor = theme.palette.common.white;
|
|
93
99
|
} else {
|
|
94
100
|
backgroundColor = theme.palette.common.white;
|
|
95
101
|
}
|
|
96
|
-
border =
|
|
102
|
+
const border = '#F0F0F0';
|
|
97
103
|
return {
|
|
98
104
|
height: 20,
|
|
99
105
|
minWidth: 34,
|
|
100
106
|
maxWidth: 120,
|
|
101
|
-
[
|
|
107
|
+
['& .MuiChip-label']: {
|
|
102
108
|
fontSize: 9,
|
|
103
109
|
fontWeight: 600,
|
|
104
|
-
lineHeight:
|
|
105
|
-
color: labelColor ? labelColor : theme.palette[
|
|
110
|
+
lineHeight: '12px',
|
|
111
|
+
color: labelColor ? labelColor : theme.palette['statistics'].label
|
|
106
112
|
},
|
|
107
113
|
backgroundColor,
|
|
108
114
|
border: `1px solid ${border}`
|
|
109
115
|
};
|
|
110
|
-
})
|
|
116
|
+
}) // export const StatusBarSearchWrapper = styled("div")(({ theme }) => ({
|
|
111
117
|
// position: "relative",
|
|
112
118
|
// display: "flex",
|
|
113
119
|
// alignItems: "center",
|
|
@@ -129,3 +135,4 @@ const StatusChipStyled = (0, _styles.styled)(_material.Chip)(({ theme, variant }
|
|
|
129
135
|
// borderRadius: 4,
|
|
130
136
|
// height: 36,
|
|
131
137
|
// }));
|
|
138
|
+
;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
1
|
"use strict";
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
3
|
value: true
|
|
@@ -11,12 +10,22 @@ Object.defineProperty(exports, "FxStrStaticDropdown", {
|
|
|
11
10
|
});
|
|
12
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
13
12
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
14
|
-
const
|
|
15
|
-
const
|
|
13
|
+
const _CheckBoxOutlineBlank = /*#__PURE__*/ _interop_require_default(require("@mui/icons-material/CheckBoxOutlineBlank"));
|
|
14
|
+
const _CheckBox = /*#__PURE__*/ _interop_require_default(require("@mui/icons-material/CheckBox"));
|
|
15
|
+
const _Checkbox = /*#__PURE__*/ _interop_require_default(require("@mui/material/Checkbox"));
|
|
16
|
+
const _styles = require("@mui/material/styles");
|
|
17
|
+
const _Typography = /*#__PURE__*/ _interop_require_default(require("@mui/material/Typography"));
|
|
18
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
19
|
+
const _Stack = /*#__PURE__*/ _interop_require_default(require("@mui/material/Stack"));
|
|
16
20
|
const _FxChip = require("../FxChip");
|
|
17
21
|
const _FxIcon = require("../FxIcon");
|
|
18
22
|
const _dropdownstyles = require("./styles/dropdown.styles");
|
|
19
23
|
const _helpers = require("./helpers/helpers");
|
|
24
|
+
function _interop_require_default(obj) {
|
|
25
|
+
return obj && obj.__esModule ? obj : {
|
|
26
|
+
default: obj
|
|
27
|
+
};
|
|
28
|
+
}
|
|
20
29
|
function _getRequireWildcardCache(nodeInterop) {
|
|
21
30
|
if (typeof WeakMap !== "function") return null;
|
|
22
31
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -58,16 +67,16 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
58
67
|
}
|
|
59
68
|
return newObj;
|
|
60
69
|
}
|
|
61
|
-
const icon = /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
70
|
+
const icon = /*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckBoxOutlineBlank.default, {
|
|
62
71
|
fontSize: "small"
|
|
63
72
|
});
|
|
64
|
-
const checkedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
73
|
+
const checkedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckBox.default, {
|
|
65
74
|
fontSize: "small"
|
|
66
75
|
});
|
|
67
76
|
const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
68
77
|
const { onAdd, onRemoveOne, onRemoveAll, type = 'text', modal_type, multiple, name, query, isInitialOpen, placeholder, data, rootStylesOverride } = props;
|
|
69
78
|
const ref = (0, _react.useRef)(null);
|
|
70
|
-
const theme = (0,
|
|
79
|
+
const theme = (0, _styles.useTheme)();
|
|
71
80
|
const [displayed, setDisplayed] = (0, _react.useState)(multiple ? [] : '');
|
|
72
81
|
const [isOpen, setIsOpen] = (0, _react.useState)(isInitialOpen);
|
|
73
82
|
(0, _react.useEffect)(()=>{
|
|
@@ -161,7 +170,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
161
170
|
handleOptionClick(option);
|
|
162
171
|
},
|
|
163
172
|
children: [
|
|
164
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
173
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Checkbox.default, {
|
|
165
174
|
icon: icon,
|
|
166
175
|
checked: isChecked(option),
|
|
167
176
|
checkedIcon: checkedIcon,
|
|
@@ -204,7 +213,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
204
213
|
const DeleteButton = ({ option, isDisplay })=>{
|
|
205
214
|
const isDisplayButton = isDisplay && multiple && (displayed === null || displayed === void 0 ? void 0 : displayed.length) > 0 || !multiple && displayed === option;
|
|
206
215
|
if (isDisplayButton) {
|
|
207
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
216
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
208
217
|
onClick: ()=>{
|
|
209
218
|
deleteOneItem(option);
|
|
210
219
|
},
|
|
@@ -238,7 +247,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
238
247
|
return null;
|
|
239
248
|
};
|
|
240
249
|
const OneOption = ({ option, modal })=>{
|
|
241
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
250
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
242
251
|
sx: {
|
|
243
252
|
display: 'flex',
|
|
244
253
|
justifyContent: 'space-between',
|
|
@@ -248,7 +257,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
248
257
|
cursor: 'pointer'
|
|
249
258
|
},
|
|
250
259
|
children: [
|
|
251
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
260
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
252
261
|
sx: {
|
|
253
262
|
width: '100%',
|
|
254
263
|
display: 'flex',
|
|
@@ -256,7 +265,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
256
265
|
gap: 1
|
|
257
266
|
},
|
|
258
267
|
children: [
|
|
259
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
268
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
260
269
|
variant: "subtitle2",
|
|
261
270
|
color: theme.palette.typography.title,
|
|
262
271
|
children: (0, _helpers.titleCase)(option)
|
|
@@ -296,7 +305,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
296
305
|
}
|
|
297
306
|
};
|
|
298
307
|
const getMultipleDisplayedValues = ()=>{
|
|
299
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
308
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Stack.default, {
|
|
300
309
|
direction: 'row',
|
|
301
310
|
sx: {
|
|
302
311
|
maxWidth: 214,
|
|
@@ -305,7 +314,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
305
314
|
justifyContent: 'space-between'
|
|
306
315
|
},
|
|
307
316
|
children: [
|
|
308
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
317
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Stack.default, {
|
|
309
318
|
direction: 'row',
|
|
310
319
|
sx: {
|
|
311
320
|
overflow: 'hidden',
|
|
@@ -316,7 +325,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
316
325
|
return getSingleOptionFromListOrDisplayed(item, 'displayed');
|
|
317
326
|
})
|
|
318
327
|
}),
|
|
319
|
-
(displayed === null || displayed === void 0 ? void 0 : displayed.length) > 0 && /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
328
|
+
(displayed === null || displayed === void 0 ? void 0 : displayed.length) > 0 && /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
320
329
|
sx: {
|
|
321
330
|
minWidth: '20px',
|
|
322
331
|
maxWidth: '20px',
|
|
@@ -329,7 +338,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
329
338
|
onRemoveAll && onRemoveAll();
|
|
330
339
|
sessionStorage.removeItem(`dropdown-${query}-${name}`);
|
|
331
340
|
},
|
|
332
|
-
icon:
|
|
341
|
+
icon: 'filters/remove_all_button.svg',
|
|
333
342
|
width: 16,
|
|
334
343
|
height: 16
|
|
335
344
|
})
|
|
@@ -340,7 +349,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
340
349
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_dropdownstyles.Root, {
|
|
341
350
|
style: rootStylesOverride,
|
|
342
351
|
children: [
|
|
343
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
352
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
344
353
|
children: [
|
|
345
354
|
getCurrentValues(),
|
|
346
355
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_dropdownstyles.InputWrapper, {
|
|
@@ -366,3 +375,4 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
366
375
|
]
|
|
367
376
|
});
|
|
368
377
|
});
|
|
378
|
+
FxStrStaticDropdown.displayName = 'FxStrStaticDropdown';
|
|
@@ -176,11 +176,11 @@ const StyledListBox = (0, _styles.styled)('ul')(({ theme })=>({
|
|
|
176
176
|
['& li:hover']: {
|
|
177
177
|
backgroundColor: '#F6F9FA'
|
|
178
178
|
},
|
|
179
|
-
[
|
|
179
|
+
['& li[aria-selected=\'true\']']: {
|
|
180
180
|
fontWeight: 900,
|
|
181
181
|
backgroundColor: '#F6F9FA'
|
|
182
182
|
},
|
|
183
|
-
[
|
|
183
|
+
['& li[data-focus=\'true\']']: {
|
|
184
184
|
backgroundColor: '#F6F9FA',
|
|
185
185
|
cursor: 'pointer',
|
|
186
186
|
['& svg ']: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const FxStyledButton: ({ btnValue, btnType, disabled, onClick, startIcon, endIcon, iconSize, sx, variant, }: {
|
|
2
2
|
btnValue?: string;
|
|
3
|
-
btnType?:
|
|
3
|
+
btnType?: "text" | "icon";
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
onClick: any;
|
|
6
6
|
startIcon?: any;
|
|
7
7
|
endIcon?: any;
|
|
8
8
|
iconSize?: number;
|
|
9
9
|
sx?: any;
|
|
10
|
-
variant?:
|
|
10
|
+
variant?: "contained" | "outlined" | "text" | "contained:rounded";
|
|
11
11
|
}) => any;
|
|
@@ -10,7 +10,8 @@ Object.defineProperty(exports, "FxStyledButton", {
|
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
const
|
|
13
|
+
const _Button = /*#__PURE__*/ _interop_require_default(require("@mui/material/Button"));
|
|
14
|
+
const _IconButton = /*#__PURE__*/ _interop_require_default(require("@mui/material/IconButton"));
|
|
14
15
|
const _FxIcon = require("../FxIcon");
|
|
15
16
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
16
17
|
function _interop_require_default(obj) {
|
|
@@ -19,7 +20,7 @@ function _interop_require_default(obj) {
|
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
const FxStyledButton = ({ btnValue, btnType = 'text', disabled, onClick, startIcon, endIcon, iconSize, sx, variant })=>{
|
|
22
|
-
return btnType == 'text' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
23
|
+
return btnType == 'text' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_Button.default, {
|
|
23
24
|
disabled: disabled,
|
|
24
25
|
sx: sx,
|
|
25
26
|
variant: variant || 'text',
|
|
@@ -37,7 +38,7 @@ const FxStyledButton = ({ btnValue, btnType = 'text', disabled, onClick, startIc
|
|
|
37
38
|
icon: endIcon
|
|
38
39
|
}) : null,
|
|
39
40
|
children: (0, _fixefyuiutils.titleCase)(btnValue)
|
|
40
|
-
}) : btnType == 'icon' && startIcon && iconSize && /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
41
|
+
}) : btnType == 'icon' && startIcon && iconSize && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_IconButton.default, {
|
|
41
42
|
onClick: onClick,
|
|
42
43
|
sx: sx,
|
|
43
44
|
disabled: disabled,
|
|
@@ -5,7 +5,7 @@ export declare const Label: any;
|
|
|
5
5
|
export declare const BoldValue: any;
|
|
6
6
|
export declare const Value: any;
|
|
7
7
|
export declare const PageTitle: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const FxLink: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
|
|
9
9
|
export declare const Text: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
|
|
10
10
|
export declare const ShowMore: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
|
|
11
11
|
export declare const ShowMoreContainer: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
|
|
@@ -21,12 +21,12 @@ _export(exports, {
|
|
|
21
21
|
DataWrapper: function() {
|
|
22
22
|
return DataWrapper;
|
|
23
23
|
},
|
|
24
|
+
FxLink: function() {
|
|
25
|
+
return FxLink;
|
|
26
|
+
},
|
|
24
27
|
Label: function() {
|
|
25
28
|
return Label;
|
|
26
29
|
},
|
|
27
|
-
Link: function() {
|
|
28
|
-
return Link;
|
|
29
|
-
},
|
|
30
30
|
PageHeader: function() {
|
|
31
31
|
return PageHeader;
|
|
32
32
|
},
|
|
@@ -50,7 +50,11 @@ const _jsxruntime = require("react/jsx-runtime");
|
|
|
50
50
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
51
51
|
const _styles = require("@mui/material/styles");
|
|
52
52
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
53
|
-
const
|
|
53
|
+
const _Paper = /*#__PURE__*/ _interop_require_default(require("@mui/material/Paper"));
|
|
54
|
+
const _Link = /*#__PURE__*/ _interop_require_default(require("@mui/material/Link"));
|
|
55
|
+
const _Typography = /*#__PURE__*/ _interop_require_default(require("@mui/material/Typography"));
|
|
56
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
57
|
+
const _Grid = /*#__PURE__*/ _interop_require_default(require("@mui/material/Grid"));
|
|
54
58
|
function _define_property(obj, key, value) {
|
|
55
59
|
if (key in obj) {
|
|
56
60
|
Object.defineProperty(obj, key, {
|
|
@@ -64,6 +68,11 @@ function _define_property(obj, key, value) {
|
|
|
64
68
|
}
|
|
65
69
|
return obj;
|
|
66
70
|
}
|
|
71
|
+
function _interop_require_default(obj) {
|
|
72
|
+
return obj && obj.__esModule ? obj : {
|
|
73
|
+
default: obj
|
|
74
|
+
};
|
|
75
|
+
}
|
|
67
76
|
function _getRequireWildcardCache(nodeInterop) {
|
|
68
77
|
if (typeof WeakMap !== "function") return null;
|
|
69
78
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -144,49 +153,49 @@ function _object_spread_props(target, source) {
|
|
|
144
153
|
}
|
|
145
154
|
return target;
|
|
146
155
|
}
|
|
147
|
-
const Card = (0, _styles.styled)(
|
|
156
|
+
const Card = (0, _styles.styled)(_Paper.default)(({})=>({
|
|
148
157
|
borderRadius: 8,
|
|
149
158
|
padding: 16,
|
|
150
159
|
// transition: "max-height 1000ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
151
160
|
overflow: 'hidden',
|
|
152
161
|
position: 'relative'
|
|
153
162
|
}));
|
|
154
|
-
const PageHeader = (0, _styles.styled)(
|
|
163
|
+
const PageHeader = (0, _styles.styled)(_Box.default)(({})=>({
|
|
155
164
|
backgroundColor: '#E2EEF1',
|
|
156
165
|
width: '100%',
|
|
157
166
|
height: 220,
|
|
158
167
|
padding: 32
|
|
159
168
|
}));
|
|
160
|
-
const Label = (0, _styles.styled)(
|
|
169
|
+
const Label = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.overLineCaption), {
|
|
161
170
|
color: theme.palette.statistics.label
|
|
162
171
|
}));
|
|
163
|
-
const BoldValue = (0, _styles.styled)(
|
|
172
|
+
const BoldValue = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.subtitle2), {
|
|
164
173
|
fontWeight: 700,
|
|
165
174
|
lineHeight: '16px',
|
|
166
175
|
color: theme.palette.typography.title
|
|
167
176
|
}));
|
|
168
|
-
const Value = (0, _styles.styled)(
|
|
177
|
+
const Value = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
169
178
|
fontFamily: theme.typography.fontFamily,
|
|
170
179
|
lineHeight: '20px',
|
|
171
180
|
color: theme.palette.typography.title
|
|
172
181
|
}));
|
|
173
|
-
const PageTitle = (0, _styles.styled)(
|
|
182
|
+
const PageTitle = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.h4), {
|
|
174
183
|
color: theme.palette.common.black
|
|
175
184
|
}));
|
|
176
|
-
const
|
|
185
|
+
const FxLink = (0, _styles.styled)(_Link.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
177
186
|
lineHeight: '20px',
|
|
178
187
|
fontStyle: 'italic',
|
|
179
188
|
color: theme.palette.primary[500],
|
|
180
189
|
cursor: 'pointer',
|
|
181
190
|
textDecoration: 'none'
|
|
182
191
|
}));
|
|
183
|
-
const Text = (0, _styles.styled)(
|
|
192
|
+
const Text = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
184
193
|
color: theme.palette.typography.title,
|
|
185
194
|
textOverflow: 'ellipsis',
|
|
186
195
|
whiteSpace: 'nowrap',
|
|
187
196
|
overflow: 'hidden'
|
|
188
197
|
}));
|
|
189
|
-
const ShowMore = (0, _styles.styled)(
|
|
198
|
+
const ShowMore = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
190
199
|
color: theme.palette.primary['500'],
|
|
191
200
|
fontWeight: 600,
|
|
192
201
|
fontSize: '12px',
|
|
@@ -194,7 +203,7 @@ const ShowMore = (0, _styles.styled)(_material.Typography)(({ theme })=>_object_
|
|
|
194
203
|
lineHeight: '24px',
|
|
195
204
|
cursor: 'pointer'
|
|
196
205
|
}));
|
|
197
|
-
const ShowMoreContainer = (0, _styles.styled)(
|
|
206
|
+
const ShowMoreContainer = (0, _styles.styled)(_Grid.default)(({ theme })=>({
|
|
198
207
|
backgroundColor: theme.palette.common.white,
|
|
199
208
|
width: '100%',
|
|
200
209
|
display: 'flex',
|
|
@@ -208,10 +217,10 @@ const DataWrapper = ({ values = [], title, icon, columns = 4, cardStyle = {}, wr
|
|
|
208
217
|
] : values;
|
|
209
218
|
const last4Items = normalizedValues.splice(-columns);
|
|
210
219
|
const containerColumns = columns === 5 ? 10 : 12;
|
|
211
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
220
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
212
221
|
sx: _object_spread({}, wrapperStyle),
|
|
213
222
|
children: [
|
|
214
|
-
(title || icon) && /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
223
|
+
(title || icon) && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
215
224
|
display: "flex",
|
|
216
225
|
alignItems: "center",
|
|
217
226
|
sx: {
|
|
@@ -231,19 +240,19 @@ const DataWrapper = ({ values = [], title, icon, columns = 4, cardStyle = {}, wr
|
|
|
231
240
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(Card, {
|
|
232
241
|
elevation: 0,
|
|
233
242
|
sx: _object_spread({
|
|
234
|
-
border:
|
|
243
|
+
border: '1px solid #F0F0F0'
|
|
235
244
|
}, cardStyle),
|
|
236
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
245
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Grid.default, {
|
|
237
246
|
container: true,
|
|
238
247
|
columns: containerColumns,
|
|
239
248
|
children: [
|
|
240
249
|
normalizedValues.map((value, index)=>{
|
|
241
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
250
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Grid.default, {
|
|
242
251
|
sx: {
|
|
243
252
|
minHeight: 74,
|
|
244
253
|
padding: 2,
|
|
245
|
-
borderRight: value && (index + 1) % columns !== 0 &&
|
|
246
|
-
borderBottom: value &&
|
|
254
|
+
borderRight: value && (index + 1) % columns !== 0 && '1px solid #F0F0F0',
|
|
255
|
+
borderBottom: value && '1px solid #F0F0F0',
|
|
247
256
|
display: 'flex',
|
|
248
257
|
alignItems: 'center'
|
|
249
258
|
},
|
|
@@ -253,11 +262,11 @@ const DataWrapper = ({ values = [], title, icon, columns = 4, cardStyle = {}, wr
|
|
|
253
262
|
}, index);
|
|
254
263
|
}),
|
|
255
264
|
last4Items.map((value, index)=>{
|
|
256
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
265
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Grid.default, {
|
|
257
266
|
sx: {
|
|
258
267
|
minHeight: 74,
|
|
259
268
|
padding: 2,
|
|
260
|
-
borderRight: value && (index + 1) % columns !== 0 &&
|
|
269
|
+
borderRight: value && (index + 1) % columns !== 0 && '1px solid #F0F0F0',
|
|
261
270
|
display: 'flex',
|
|
262
271
|
alignItems: 'center'
|
|
263
272
|
},
|
package/dist/FxTabs/FxTabs.js
CHANGED
|
@@ -10,8 +10,12 @@ Object.defineProperty(exports, "FxTabs", {
|
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
const
|
|
14
|
-
const
|
|
13
|
+
const _TabContext = /*#__PURE__*/ _interop_require_default(require("@mui/lab/TabContext"));
|
|
14
|
+
const _TabPanel = /*#__PURE__*/ _interop_require_default(require("@mui/lab/TabPanel"));
|
|
15
|
+
const _TabList = /*#__PURE__*/ _interop_require_default(require("@mui/lab/TabList"));
|
|
16
|
+
const _styles = require("@mui/material/styles");
|
|
17
|
+
const _Tab = /*#__PURE__*/ _interop_require_default(require("@mui/material/Tab"));
|
|
18
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
15
19
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
16
20
|
function _interop_require_default(obj) {
|
|
17
21
|
return obj && obj.__esModule ? obj : {
|
|
@@ -19,11 +23,11 @@ function _interop_require_default(obj) {
|
|
|
19
23
|
};
|
|
20
24
|
}
|
|
21
25
|
const FxTabs = ({ activeTab, tabsData, onChange, divider = false, adjecentComponent })=>{
|
|
22
|
-
const theme = (0,
|
|
23
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
26
|
+
const theme = (0, _styles.useTheme)();
|
|
27
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_TabContext.default, {
|
|
24
28
|
value: activeTab,
|
|
25
29
|
children: [
|
|
26
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
30
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_TabList.default, {
|
|
27
31
|
sx: {
|
|
28
32
|
'.MuiTabs-flexContainer': {
|
|
29
33
|
gap: '28px',
|
|
@@ -33,7 +37,7 @@ const FxTabs = ({ activeTab, tabsData, onChange, divider = false, adjecentCompon
|
|
|
33
37
|
children: [
|
|
34
38
|
tabsData.map((tab, i)=>{
|
|
35
39
|
const { value, label } = tab;
|
|
36
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
40
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Tab.default, {
|
|
37
41
|
onClick: ()=>{
|
|
38
42
|
onChange(value);
|
|
39
43
|
},
|
|
@@ -42,7 +46,7 @@ const FxTabs = ({ activeTab, tabsData, onChange, divider = false, adjecentCompon
|
|
|
42
46
|
p: '0 4px',
|
|
43
47
|
textTransform: 'capitalize',
|
|
44
48
|
'&.Mui-selected': {
|
|
45
|
-
//@ts-
|
|
49
|
+
//@ts-expect-error 500 is a valid color
|
|
46
50
|
color: theme.palette.primary[500],
|
|
47
51
|
fontWeight: 700
|
|
48
52
|
}
|
|
@@ -54,14 +58,14 @@ const FxTabs = ({ activeTab, tabsData, onChange, divider = false, adjecentCompon
|
|
|
54
58
|
adjecentComponent
|
|
55
59
|
]
|
|
56
60
|
}),
|
|
57
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
61
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
58
62
|
sx: {
|
|
59
63
|
borderTop: divider ? '1px solid #C5C8C9' : 'none',
|
|
60
64
|
margin: '0 32px'
|
|
61
65
|
},
|
|
62
66
|
children: tabsData.map((tab, i)=>{
|
|
63
67
|
const { value, tabContent } = tab;
|
|
64
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
68
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_TabPanel.default, {
|
|
65
69
|
value: value,
|
|
66
70
|
sx: {
|
|
67
71
|
padding: '24px 0'
|