@fixefy/fixefy-ui-components 0.3.73 → 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 +18 -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
|
@@ -12,7 +12,12 @@ const _jsxruntime = require("react/jsx-runtime");
|
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
13
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
14
14
|
const _actionsTraystyle = require("./styles/actionsTray.style");
|
|
15
|
-
const
|
|
15
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
16
|
+
const _Divider = /*#__PURE__*/ _interop_require_default(require("@mui/material/Divider"));
|
|
17
|
+
const _Paper = /*#__PURE__*/ _interop_require_default(require("@mui/material/Paper"));
|
|
18
|
+
const _Slide = /*#__PURE__*/ _interop_require_default(require("@mui/material/Slide"));
|
|
19
|
+
const _Typography = /*#__PURE__*/ _interop_require_default(require("@mui/material/Typography"));
|
|
20
|
+
const _Button = /*#__PURE__*/ _interop_require_default(require("@mui/material/Button"));
|
|
16
21
|
const _pluralize = /*#__PURE__*/ _interop_require_default(require("pluralize"));
|
|
17
22
|
const _FxIcon = require("../FxIcon");
|
|
18
23
|
function _interop_require_default(obj) {
|
|
@@ -26,32 +31,32 @@ const FxActionsTray = ({ ctx, entityType = 'item', show = false, actions = [], o
|
|
|
26
31
|
const selectedCount = selectAll === true && ultraSelectAll === true ? totalCount : selection.length;
|
|
27
32
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
28
33
|
className: classes.container,
|
|
29
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
34
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Slide.default, {
|
|
30
35
|
direction: "up",
|
|
31
36
|
in: show,
|
|
32
37
|
mountOnEnter: true,
|
|
33
38
|
unmountOnExit: true,
|
|
34
39
|
timeout: 400,
|
|
35
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
40
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Paper.default, {
|
|
36
41
|
elevation: 4,
|
|
37
42
|
className: classes.paper,
|
|
38
43
|
children: [
|
|
39
44
|
/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
40
45
|
className: classes.selected,
|
|
41
46
|
children: [
|
|
42
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
47
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
43
48
|
sx: {
|
|
44
49
|
fontWeight: 700,
|
|
45
50
|
marginRight: '7px'
|
|
46
51
|
},
|
|
47
52
|
children: selectedCount
|
|
48
53
|
}),
|
|
49
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
54
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
50
55
|
children: `${(0, _pluralize.default)(entityType, selectedCount)} selected`
|
|
51
56
|
})
|
|
52
57
|
]
|
|
53
58
|
}),
|
|
54
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
59
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Divider.default, {
|
|
55
60
|
className: classes.divider,
|
|
56
61
|
orientation: "vertical"
|
|
57
62
|
}),
|
|
@@ -65,14 +70,14 @@ const FxActionsTray = ({ ctx, entityType = 'item', show = false, actions = [], o
|
|
|
65
70
|
onClick: onClick
|
|
66
71
|
}, index))
|
|
67
72
|
}),
|
|
68
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
73
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Divider.default, {
|
|
69
74
|
className: classes.divider,
|
|
70
75
|
orientation: "vertical"
|
|
71
76
|
}),
|
|
72
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
77
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Button.default, {
|
|
73
78
|
className: classes.close,
|
|
74
79
|
onClick: onClose,
|
|
75
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
80
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
76
81
|
textAlign: 'center',
|
|
77
82
|
children: (0, _fixefyuiutils.titleCase)('close')
|
|
78
83
|
})
|
|
@@ -82,13 +87,13 @@ const FxActionsTray = ({ ctx, entityType = 'item', show = false, actions = [], o
|
|
|
82
87
|
})
|
|
83
88
|
});
|
|
84
89
|
};
|
|
85
|
-
const ActionButton = ({ title, name, icon, classes, onClick })=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
90
|
+
const ActionButton = ({ title, name, icon, classes, onClick })=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Button.default, {
|
|
86
91
|
id: name,
|
|
87
92
|
className: classes.actionButton,
|
|
88
93
|
title: (0, _fixefyuiutils.titleCase)(title),
|
|
89
94
|
onClick: (event)=>onClick(event, name),
|
|
90
95
|
children: [
|
|
91
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
96
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
92
97
|
width: '16px',
|
|
93
98
|
height: '16px',
|
|
94
99
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
@@ -97,7 +102,7 @@ const ActionButton = ({ title, name, icon, classes, onClick })=>/*#__PURE__*/ (0
|
|
|
97
102
|
icon: `actions/${icon}.svg`
|
|
98
103
|
})
|
|
99
104
|
}),
|
|
100
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
105
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
101
106
|
children: (0, _fixefyuiutils.titleCase)(title)
|
|
102
107
|
})
|
|
103
108
|
]
|
|
@@ -10,7 +10,9 @@ Object.defineProperty(exports, "structureReader", {
|
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
const
|
|
13
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
14
|
+
const _Stack = /*#__PURE__*/ _interop_require_default(require("@mui/material/Stack"));
|
|
15
|
+
const _Divider = /*#__PURE__*/ _interop_require_default(require("@mui/material/Divider"));
|
|
14
16
|
const _FxScore = require("../../FxScore");
|
|
15
17
|
const _FxStatisticsBar = require("../../FxStatisticsBar");
|
|
16
18
|
const _FxProgressCounter = require("../../FxProgressCounter");
|
|
@@ -33,7 +35,7 @@ const structureReader = (structure, filter, collapsed, initialValues)=>{
|
|
|
33
35
|
structure: child,
|
|
34
36
|
filter: filter,
|
|
35
37
|
values: initialValues
|
|
36
|
-
}, index) : /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
38
|
+
}, index) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
37
39
|
sx: {
|
|
38
40
|
display: 'flex',
|
|
39
41
|
justifyContent: 'center',
|
|
@@ -53,9 +55,9 @@ const structureReader = (structure, filter, collapsed, initialValues)=>{
|
|
|
53
55
|
});
|
|
54
56
|
case 'aggregations_secondary_container':
|
|
55
57
|
var _extended_variables;
|
|
56
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
58
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Stack.default, {
|
|
57
59
|
direction: "row",
|
|
58
|
-
divider: /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
60
|
+
divider: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Divider.default, {
|
|
59
61
|
orientation: "vertical",
|
|
60
62
|
flexItem: true
|
|
61
63
|
}),
|
|
@@ -10,12 +10,15 @@ Object.defineProperty(exports, "FxAsyncDropdown", {
|
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
-
const
|
|
13
|
+
const _Button = /*#__PURE__*/ _interop_require_default(require("@mui/material/Button"));
|
|
14
|
+
const _CircularProgress = /*#__PURE__*/ _interop_require_default(require("@mui/material/CircularProgress"));
|
|
15
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
16
|
+
const _Stack = /*#__PURE__*/ _interop_require_default(require("@mui/material/Stack"));
|
|
14
17
|
const _FxIcon = require("../FxIcon");
|
|
15
18
|
const _graphqltag = require("graphql-tag");
|
|
16
19
|
const _dropdownstyles = require("./styles/dropdown.styles");
|
|
17
20
|
const _helpers = require("./helpers/helpers");
|
|
18
|
-
const
|
|
21
|
+
const _hooks = require("@apollo/client/react/hooks");
|
|
19
22
|
const _nookies = require("nookies");
|
|
20
23
|
const _components = require("./components");
|
|
21
24
|
function _define_property(obj, key, value) {
|
|
@@ -31,6 +34,11 @@ function _define_property(obj, key, value) {
|
|
|
31
34
|
}
|
|
32
35
|
return obj;
|
|
33
36
|
}
|
|
37
|
+
function _interop_require_default(obj) {
|
|
38
|
+
return obj && obj.__esModule ? obj : {
|
|
39
|
+
default: obj
|
|
40
|
+
};
|
|
41
|
+
}
|
|
34
42
|
function _getRequireWildcardCache(nodeInterop) {
|
|
35
43
|
if (typeof WeakMap !== "function") return null;
|
|
36
44
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -156,7 +164,7 @@ const FxAsyncDropdown = (props)=>{
|
|
|
156
164
|
setPage((prevPage)=>prevPage + 1);
|
|
157
165
|
setPrevPage((prevPage)=>prevPage + 1);
|
|
158
166
|
};
|
|
159
|
-
const [fetch, { data, loading }] = (0,
|
|
167
|
+
const [fetch, { data, loading }] = (0, _hooks.useLazyQuery)((0, _graphqltag.gql)(gqlQuery), _object_spread_props(_object_spread({}, fetcher.queryOptions), {
|
|
160
168
|
variables: {
|
|
161
169
|
where: getWhere(),
|
|
162
170
|
skip: page * pageSize - pageSize,
|
|
@@ -164,7 +172,7 @@ const FxAsyncDropdown = (props)=>{
|
|
|
164
172
|
sort: sort || {}
|
|
165
173
|
}
|
|
166
174
|
}));
|
|
167
|
-
const [defaultValueFetch, { data: defaultValueData }] = (0,
|
|
175
|
+
const [defaultValueFetch, { data: defaultValueData }] = (0, _hooks.useLazyQuery)((0, _graphqltag.gql)(gqlQuery), _object_spread_props(_object_spread({}, fetcher.queryOptions), {
|
|
168
176
|
variables: {
|
|
169
177
|
where: defaultValueWhere,
|
|
170
178
|
sort: sort || {}
|
|
@@ -401,14 +409,14 @@ const FxAsyncDropdown = (props)=>{
|
|
|
401
409
|
}
|
|
402
410
|
};
|
|
403
411
|
const getDisplayedValuesMultiple = ()=>{
|
|
404
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
412
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Stack.default, {
|
|
405
413
|
direction: 'row',
|
|
406
414
|
sx: {
|
|
407
415
|
display: 'flex',
|
|
408
416
|
justifyContent: 'space-between'
|
|
409
417
|
},
|
|
410
418
|
children: [
|
|
411
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
419
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Stack.default, {
|
|
412
420
|
direction: 'row',
|
|
413
421
|
sx: {
|
|
414
422
|
overflow: 'hidden',
|
|
@@ -420,7 +428,7 @@ const FxAsyncDropdown = (props)=>{
|
|
|
420
428
|
return getSingleOptionFromListOrDisplayed(item, 'displayed');
|
|
421
429
|
}))
|
|
422
430
|
}),
|
|
423
|
-
(displayed === null || displayed === void 0 ? void 0 : displayed.length) > 0 && /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
431
|
+
(displayed === null || displayed === void 0 ? void 0 : displayed.length) > 0 && /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
424
432
|
sx: {
|
|
425
433
|
minWidth: '20px',
|
|
426
434
|
maxWidth: '20px',
|
|
@@ -446,7 +454,7 @@ const FxAsyncDropdown = (props)=>{
|
|
|
446
454
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_dropdownstyles.Root, {
|
|
447
455
|
style: rootStylesOverride,
|
|
448
456
|
children: [
|
|
449
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
457
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
450
458
|
children: [
|
|
451
459
|
getCurrentValues(),
|
|
452
460
|
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_dropdownstyles.InputWrapper, {
|
|
@@ -465,7 +473,7 @@ const FxAsyncDropdown = (props)=>{
|
|
|
465
473
|
}
|
|
466
474
|
}),
|
|
467
475
|
loading && /*#__PURE__*/ (0, _jsxruntime.jsx)(_dropdownstyles.Loading, {
|
|
468
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
476
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_CircularProgress.default, {})
|
|
469
477
|
})
|
|
470
478
|
]
|
|
471
479
|
})
|
|
@@ -476,7 +484,7 @@ const FxAsyncDropdown = (props)=>{
|
|
|
476
484
|
children: [
|
|
477
485
|
displayListOptions(),
|
|
478
486
|
!isLastPage && /*#__PURE__*/ (0, _jsxruntime.jsx)("li", {
|
|
479
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
487
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Button.default, {
|
|
480
488
|
onClick: ()=>{
|
|
481
489
|
setReason('loaded more');
|
|
482
490
|
loadMore();
|
|
@@ -10,22 +10,24 @@ Object.defineProperty(exports, "CheckboxIcon", {
|
|
|
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 _Checkbox = /*#__PURE__*/ _interop_require_default(require("@mui/material/Checkbox"));
|
|
14
|
+
const _styles = require("@mui/material/styles");
|
|
15
|
+
const _CheckBoxOutlineBlank = /*#__PURE__*/ _interop_require_default(require("@mui/icons-material/CheckBoxOutlineBlank"));
|
|
16
|
+
const _CheckBox = /*#__PURE__*/ _interop_require_default(require("@mui/icons-material/CheckBox"));
|
|
15
17
|
function _interop_require_default(obj) {
|
|
16
18
|
return obj && obj.__esModule ? obj : {
|
|
17
19
|
default: obj
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
|
-
const uncheckedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
22
|
+
const uncheckedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckBoxOutlineBlank.default, {
|
|
21
23
|
fontSize: "small"
|
|
22
24
|
});
|
|
23
|
-
const checkedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
25
|
+
const checkedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckBox.default, {
|
|
24
26
|
fontSize: "small"
|
|
25
27
|
});
|
|
26
28
|
const CheckboxIcon = ({ checked })=>{
|
|
27
|
-
const theme = (0,
|
|
28
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
29
|
+
const theme = (0, _styles.useTheme)();
|
|
30
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Checkbox.default, {
|
|
29
31
|
icon: uncheckedIcon,
|
|
30
32
|
checked: checked,
|
|
31
33
|
checkedIcon: checkedIcon,
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export declare const ChipOption: ({ option, curValue, modal, fetchedProps, displayed, setDisplayed }: {
|
|
3
3
|
option: any;
|
|
4
4
|
curValue: any;
|
|
5
|
-
modal:
|
|
5
|
+
modal: "displayed" | "list";
|
|
6
6
|
fetchedProps: any;
|
|
7
7
|
displayed: any;
|
|
8
8
|
setDisplayed: any;
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "DeleteButton", {
|
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
const
|
|
13
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
14
14
|
const _helpers = require("../helpers/helpers");
|
|
15
15
|
function _interop_require_default(obj) {
|
|
16
16
|
return obj && obj.__esModule ? obj : {
|
|
@@ -22,7 +22,7 @@ const DeleteButton = ({ option, isDisplay, fetchedProps, displayed, setDisplayed
|
|
|
22
22
|
const isDisplayButton = isDisplay && (multiple && (displayed === null || displayed === void 0 ? void 0 : displayed.length) > 0 || !multiple && displayed[search_path] === (0, _helpers.getOption)(option, title_path));
|
|
23
23
|
switch(isDisplayButton){
|
|
24
24
|
case true:
|
|
25
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
25
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
26
26
|
sx: {
|
|
27
27
|
margin: '0 5px'
|
|
28
28
|
},
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export declare const LogoOption: ({ option, curValue, modal, fetchedProps, displayed, setDisplayed }: {
|
|
3
3
|
option: any;
|
|
4
4
|
curValue: any;
|
|
5
|
-
modal:
|
|
5
|
+
modal: "displayed" | "list";
|
|
6
6
|
fetchedProps: any;
|
|
7
7
|
displayed: any;
|
|
8
8
|
setDisplayed: any;
|
|
@@ -11,8 +11,9 @@ Object.defineProperty(exports, "LogoOption", {
|
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
13
|
const _FxIcon = require("../../FxIcon");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
14
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
15
|
+
const _Typography = /*#__PURE__*/ _interop_require_default(require("@mui/material/Typography"));
|
|
16
|
+
const _styles = require("@mui/material/styles");
|
|
16
17
|
const _helpers = require("../helpers/helpers");
|
|
17
18
|
const _fixefyhooks = require("@fixefy/fixefy-hooks");
|
|
18
19
|
const _DeleteButton = require("./DeleteButton");
|
|
@@ -24,7 +25,7 @@ function _interop_require_default(obj) {
|
|
|
24
25
|
}
|
|
25
26
|
const LogoOption = ({ option, curValue, modal, fetchedProps, displayed, setDisplayed })=>{
|
|
26
27
|
const theme = (0, _styles.useTheme)();
|
|
27
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
28
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
28
29
|
sx: {
|
|
29
30
|
display: 'flex',
|
|
30
31
|
justifyContent: 'space-between',
|
|
@@ -34,7 +35,7 @@ const LogoOption = ({ option, curValue, modal, fetchedProps, displayed, setDispl
|
|
|
34
35
|
cursor: 'pointer'
|
|
35
36
|
},
|
|
36
37
|
children: [
|
|
37
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
38
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
38
39
|
sx: {
|
|
39
40
|
width: '100%',
|
|
40
41
|
display: 'flex',
|
|
@@ -47,14 +48,14 @@ const LogoOption = ({ option, curValue, modal, fetchedProps, displayed, setDispl
|
|
|
47
48
|
option: option,
|
|
48
49
|
fetchedProps: fetchedProps
|
|
49
50
|
}),
|
|
50
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
51
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
51
52
|
sx: {
|
|
52
53
|
display: 'flex',
|
|
53
54
|
justifyContent: 'space-between',
|
|
54
55
|
width: '100%'
|
|
55
56
|
},
|
|
56
57
|
children: [
|
|
57
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
58
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
58
59
|
variant: "subtitle2",
|
|
59
60
|
color: theme.palette.typography.title,
|
|
60
61
|
children: (0, _helpers.titleCase)(curValue)
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export declare const TextOption: ({ option, curValue, modal, fetchedProps, displayed, setDisplayed }: {
|
|
3
3
|
option: any;
|
|
4
4
|
curValue: any;
|
|
5
|
-
modal:
|
|
5
|
+
modal: "displayed" | "list";
|
|
6
6
|
fetchedProps: any;
|
|
7
7
|
displayed: any;
|
|
8
8
|
setDisplayed: any;
|
|
@@ -10,8 +10,9 @@ Object.defineProperty(exports, "TextOption", {
|
|
|
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 _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
14
|
+
const _Typography = /*#__PURE__*/ _interop_require_default(require("@mui/material/Typography"));
|
|
15
|
+
const _styles = require("@mui/material/styles");
|
|
15
16
|
const _helpers = require("../helpers/helpers");
|
|
16
17
|
const _DeleteButton = require("./DeleteButton");
|
|
17
18
|
const _ChosenIcon = require("./ChosenIcon");
|
|
@@ -22,7 +23,7 @@ function _interop_require_default(obj) {
|
|
|
22
23
|
}
|
|
23
24
|
const TextOption = ({ option, curValue, modal, fetchedProps, displayed, setDisplayed })=>{
|
|
24
25
|
const theme = (0, _styles.useTheme)();
|
|
25
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
26
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
26
27
|
sx: {
|
|
27
28
|
display: 'flex',
|
|
28
29
|
justifyContent: 'space-between',
|
|
@@ -32,7 +33,7 @@ const TextOption = ({ option, curValue, modal, fetchedProps, displayed, setDispl
|
|
|
32
33
|
cursor: 'pointer'
|
|
33
34
|
},
|
|
34
35
|
children: [
|
|
35
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
36
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
36
37
|
sx: {
|
|
37
38
|
width: '100%',
|
|
38
39
|
display: 'flex',
|
|
@@ -40,14 +41,14 @@ const TextOption = ({ option, curValue, modal, fetchedProps, displayed, setDispl
|
|
|
40
41
|
gap: 1,
|
|
41
42
|
alignItems: 'center'
|
|
42
43
|
},
|
|
43
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
44
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
44
45
|
sx: {
|
|
45
46
|
display: 'flex',
|
|
46
47
|
justifyContent: 'space-between',
|
|
47
48
|
width: '100%'
|
|
48
49
|
},
|
|
49
50
|
children: [
|
|
50
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
51
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
51
52
|
variant: "subtitle2",
|
|
52
53
|
color: theme.palette.typography.title,
|
|
53
54
|
children: (0, _helpers.titleCase)(curValue)
|
|
@@ -196,11 +196,11 @@ const StyledListBox = (0, _styles.styled)('ul')(({ theme })=>{
|
|
|
196
196
|
['& li:hover']: {
|
|
197
197
|
backgroundColor: '#F6F9FA'
|
|
198
198
|
},
|
|
199
|
-
[
|
|
199
|
+
['& li[aria-selected=\'true\']']: {
|
|
200
200
|
fontWeight: 900,
|
|
201
201
|
backgroundColor: '#F6F9FA'
|
|
202
202
|
},
|
|
203
|
-
[
|
|
203
|
+
['& li[data-focus=\'true\']']: {
|
|
204
204
|
backgroundColor: '#F6F9FA',
|
|
205
205
|
cursor: 'pointer',
|
|
206
206
|
['& svg ']: {
|
|
@@ -11,13 +11,13 @@ Object.defineProperty(exports, "stringToColor", {
|
|
|
11
11
|
const stringToColor = (string, callBack)=>{
|
|
12
12
|
let hash = 0;
|
|
13
13
|
let color = '#';
|
|
14
|
-
|
|
14
|
+
for(let i = 0; i < string.length; i += 1){
|
|
15
15
|
hash = string.charCodeAt(i) + ((hash << 5) - hash);
|
|
16
16
|
}
|
|
17
17
|
for(let i = 0; i < 3; i += 1){
|
|
18
18
|
const value = hash >> i * 8 & 0xff;
|
|
19
19
|
color += `00${value.toString(16)}`.substr(-2);
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
callBack && callBack(color);
|
|
22
22
|
return color;
|
|
23
23
|
};
|
|
@@ -31,8 +31,8 @@ _export(exports, {
|
|
|
31
31
|
const _jsxruntime = require("react/jsx-runtime");
|
|
32
32
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
33
33
|
const _styles = require("@mui/material/styles");
|
|
34
|
-
const
|
|
35
|
-
const _Tooltip = /*#__PURE__*/
|
|
34
|
+
const _Avatar = /*#__PURE__*/ _interop_require_default(require("@mui/material/Avatar"));
|
|
35
|
+
const _Tooltip = /*#__PURE__*/ _interop_require_wildcard(require("@mui/material/Tooltip"));
|
|
36
36
|
const _EditOutlined = /*#__PURE__*/ _interop_require_default(require("@mui/icons-material/EditOutlined"));
|
|
37
37
|
function _define_property(obj, key, value) {
|
|
38
38
|
if (key in obj) {
|
|
@@ -52,6 +52,47 @@ function _interop_require_default(obj) {
|
|
|
52
52
|
default: obj
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
56
|
+
if (typeof WeakMap !== "function") return null;
|
|
57
|
+
var cacheBabelInterop = new WeakMap();
|
|
58
|
+
var cacheNodeInterop = new WeakMap();
|
|
59
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
60
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
61
|
+
})(nodeInterop);
|
|
62
|
+
}
|
|
63
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
64
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
65
|
+
return obj;
|
|
66
|
+
}
|
|
67
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
68
|
+
return {
|
|
69
|
+
default: obj
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
73
|
+
if (cache && cache.has(obj)) {
|
|
74
|
+
return cache.get(obj);
|
|
75
|
+
}
|
|
76
|
+
var newObj = {
|
|
77
|
+
__proto__: null
|
|
78
|
+
};
|
|
79
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
80
|
+
for(var key in obj){
|
|
81
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
82
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
83
|
+
if (desc && (desc.get || desc.set)) {
|
|
84
|
+
Object.defineProperty(newObj, key, desc);
|
|
85
|
+
} else {
|
|
86
|
+
newObj[key] = obj[key];
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
newObj.default = obj;
|
|
91
|
+
if (cache) {
|
|
92
|
+
cache.set(obj, newObj);
|
|
93
|
+
}
|
|
94
|
+
return newObj;
|
|
95
|
+
}
|
|
55
96
|
function _object_spread(target) {
|
|
56
97
|
for(var i = 1; i < arguments.length; i++){
|
|
57
98
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -118,49 +159,49 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
118
159
|
}
|
|
119
160
|
return target;
|
|
120
161
|
}
|
|
121
|
-
const AvatarWrapper = (0, _styles.styled)(
|
|
122
|
-
display:
|
|
123
|
-
alignItems:
|
|
124
|
-
justifyContent:
|
|
125
|
-
flexDirection:
|
|
162
|
+
const AvatarWrapper = (0, _styles.styled)('div')(()=>({
|
|
163
|
+
display: 'flex',
|
|
164
|
+
alignItems: 'center',
|
|
165
|
+
justifyContent: 'space-between',
|
|
166
|
+
flexDirection: 'row'
|
|
126
167
|
}));
|
|
127
|
-
const AvatarGroup = (0, _styles.styled)(
|
|
128
|
-
display:
|
|
129
|
-
alignItems:
|
|
130
|
-
justifyContent:
|
|
131
|
-
flexDirection:
|
|
132
|
-
|
|
168
|
+
const AvatarGroup = (0, _styles.styled)('div')(()=>({
|
|
169
|
+
display: 'flex',
|
|
170
|
+
alignItems: 'center',
|
|
171
|
+
justifyContent: 'space-between',
|
|
172
|
+
flexDirection: 'row',
|
|
173
|
+
'&>:first-of-type': {
|
|
133
174
|
marginLeft: 0
|
|
134
175
|
}
|
|
135
176
|
}));
|
|
136
|
-
const StyledAvatar = (0, _styles.styled)(
|
|
177
|
+
const StyledAvatar = (0, _styles.styled)(_Avatar.default)(({ theme })=>({
|
|
137
178
|
width: 32,
|
|
138
179
|
height: 32,
|
|
139
180
|
border: `2px solid ${theme.palette.common.white}`,
|
|
140
|
-
marginLeft:
|
|
141
|
-
fontFamily:
|
|
142
|
-
fontStyle:
|
|
143
|
-
fontWeight:
|
|
181
|
+
marginLeft: '-8px',
|
|
182
|
+
fontFamily: 'Open Sans',
|
|
183
|
+
fontStyle: 'normal',
|
|
184
|
+
fontWeight: 'normal',
|
|
144
185
|
fontSize: 14,
|
|
145
|
-
lineHeight:
|
|
146
|
-
letterSpacing:
|
|
186
|
+
lineHeight: '20px',
|
|
187
|
+
letterSpacing: '0.15px'
|
|
147
188
|
}));
|
|
148
|
-
const StyledMoreAvatar = (0, _styles.styled)(
|
|
189
|
+
const StyledMoreAvatar = (0, _styles.styled)(_Avatar.default)(({ theme })=>({
|
|
149
190
|
width: 32,
|
|
150
191
|
height: 32,
|
|
151
192
|
border: `2px solid ${theme.palette.common.white}`,
|
|
152
|
-
marginLeft:
|
|
153
|
-
fontFamily:
|
|
154
|
-
fontStyle:
|
|
155
|
-
fontWeight:
|
|
193
|
+
marginLeft: '-8px',
|
|
194
|
+
fontFamily: 'Open Sans',
|
|
195
|
+
fontStyle: 'normal',
|
|
196
|
+
fontWeight: 'normal',
|
|
156
197
|
fontSize: 11,
|
|
157
|
-
lineHeight:
|
|
158
|
-
letterSpacing:
|
|
198
|
+
lineHeight: '16px',
|
|
199
|
+
letterSpacing: '0.1px',
|
|
159
200
|
color: theme.palette.greyscale.dark,
|
|
160
201
|
backgroundColor: theme.palette.greyscale.light
|
|
161
202
|
}));
|
|
162
203
|
const EditIcon = (0, _styles.styled)(_EditOutlined.default)(({ theme })=>({
|
|
163
|
-
cursor:
|
|
204
|
+
cursor: 'pointer',
|
|
164
205
|
color: theme.palette.primary.light
|
|
165
206
|
}));
|
|
166
207
|
const FxTooltip = (0, _styles.styled)((_param)=>{
|
|
@@ -175,18 +216,18 @@ const FxTooltip = (0, _styles.styled)((_param)=>{
|
|
|
175
216
|
}
|
|
176
217
|
}));
|
|
177
218
|
})(({ theme })=>({
|
|
178
|
-
[`& .${
|
|
219
|
+
[`& .${_Tooltip.tooltipClasses.arrow}`]: {
|
|
179
220
|
color: theme.palette.primary.main
|
|
180
221
|
},
|
|
181
|
-
[`& .${
|
|
222
|
+
[`& .${_Tooltip.tooltipClasses.tooltip}`]: {
|
|
182
223
|
backgroundColor: theme.palette.primary.main,
|
|
183
224
|
padding: 12,
|
|
184
|
-
fontFamily:
|
|
185
|
-
fontStyle:
|
|
186
|
-
fontWeight:
|
|
225
|
+
fontFamily: 'Open Sans',
|
|
226
|
+
fontStyle: 'normal',
|
|
227
|
+
fontWeight: 'normal',
|
|
187
228
|
fontSize: 14,
|
|
188
|
-
lineHeight:
|
|
189
|
-
textAlign:
|
|
190
|
-
letterSpacing:
|
|
229
|
+
lineHeight: '20px',
|
|
230
|
+
textAlign: 'center',
|
|
231
|
+
letterSpacing: '0.15px'
|
|
191
232
|
}
|
|
192
233
|
}));
|
|
@@ -8,10 +8,15 @@ Object.defineProperty(exports, "ButtonStyled", {
|
|
|
8
8
|
return ButtonStyled;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
const
|
|
11
|
+
const _Button = /*#__PURE__*/ _interop_require_default(require("@mui/material/Button"));
|
|
12
12
|
const _styles = require("@mui/material/styles");
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
function _interop_require_default(obj) {
|
|
14
|
+
return obj && obj.__esModule ? obj : {
|
|
15
|
+
default: obj
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
const ButtonStyled = (0, _styles.styled)(_Button.default)(({ theme, variant })=>{
|
|
19
|
+
const border = variant === 'text' ? '0px solid #0000' : `1px solid ${theme.palette.primary.main}`;
|
|
15
20
|
return {
|
|
16
21
|
border,
|
|
17
22
|
minHeight: '40px',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const FxButtonModalWithComponent: ({ btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize, }: {
|
|
3
|
-
btnType?:
|
|
3
|
+
btnType?: "text" | "icon";
|
|
4
4
|
btnValue?: string;
|
|
5
5
|
modalData: any;
|
|
6
6
|
onClick?: any;
|