@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
|
@@ -80,8 +80,7 @@ function FxNumberField({ placeholder, defaultValue, label, hint, onChange }) {
|
|
|
80
80
|
type: "number",
|
|
81
81
|
placeholder: placeholder,
|
|
82
82
|
value: value,
|
|
83
|
-
|
|
84
|
-
onChange: (e)=>setValue(e.target.value)
|
|
83
|
+
onChange: (e)=>setValue(Number(e.target.value))
|
|
85
84
|
}),
|
|
86
85
|
/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
87
86
|
className: _classes.inputActions,
|
|
@@ -8,8 +8,13 @@ Object.defineProperty(exports, "useStyles", {
|
|
|
8
8
|
return useStyles;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
const
|
|
12
|
-
|
|
11
|
+
const _makeStyles = /*#__PURE__*/ _interop_require_default(require("@mui/styles/makeStyles"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
13
|
+
return obj && obj.__esModule ? obj : {
|
|
14
|
+
default: obj
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
const useStyles = (0, _makeStyles.default)(()=>({
|
|
13
18
|
container: {},
|
|
14
19
|
label: {
|
|
15
20
|
fontFamily: 'Open Sans',
|
|
@@ -10,13 +10,24 @@ Object.defineProperty(exports, "FxObjStaticDropdown", {
|
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
-
const
|
|
14
|
-
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 _Button = /*#__PURE__*/ _interop_require_default(require("@mui/material/Button"));
|
|
16
|
+
const _Checkbox = /*#__PURE__*/ _interop_require_default(require("@mui/material/Checkbox"));
|
|
17
|
+
const _styles = require("@mui/material/styles");
|
|
18
|
+
const _Typography = /*#__PURE__*/ _interop_require_default(require("@mui/material/Typography"));
|
|
19
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
20
|
+
const _Stack = /*#__PURE__*/ _interop_require_default(require("@mui/material/Stack"));
|
|
15
21
|
const _FxChip = require("../FxChip");
|
|
16
22
|
const _FxIcon = require("../FxIcon");
|
|
17
23
|
const _dropdownstyles = require("./styles/dropdown.styles");
|
|
18
24
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
19
25
|
const _fixefyhooks = require("@fixefy/fixefy-hooks");
|
|
26
|
+
function _interop_require_default(obj) {
|
|
27
|
+
return obj && obj.__esModule ? obj : {
|
|
28
|
+
default: obj
|
|
29
|
+
};
|
|
30
|
+
}
|
|
20
31
|
function _getRequireWildcardCache(nodeInterop) {
|
|
21
32
|
if (typeof WeakMap !== "function") return null;
|
|
22
33
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -58,16 +69,16 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
58
69
|
}
|
|
59
70
|
return newObj;
|
|
60
71
|
}
|
|
61
|
-
const uncheckedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
72
|
+
const uncheckedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckBoxOutlineBlank.default, {
|
|
62
73
|
fontSize: "small"
|
|
63
74
|
});
|
|
64
|
-
const checkedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
75
|
+
const checkedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckBox.default, {
|
|
65
76
|
fontSize: "small"
|
|
66
77
|
});
|
|
67
78
|
const FxObjStaticDropdown = (props)=>{
|
|
68
79
|
const { onAdd, onRemoveOne, onRemoveAll, onUnselectAll, disabled, type = 'text', search_path, modal_type, multiple, name, query, isInitialOpen, placeholder, title_path, rootStylesOverride, logo_placeholder, logo_folder_name, _id, data, defaultValue } = props;
|
|
69
80
|
const ref = (0, _react.useRef)(null);
|
|
70
|
-
const theme = (0,
|
|
81
|
+
const theme = (0, _styles.useTheme)();
|
|
71
82
|
const [displayed, setDisplayed] = (0, _react.useState)(multiple ? [] : '');
|
|
72
83
|
const [options, setOptions] = (0, _react.useState)([]);
|
|
73
84
|
const [reason, setReason] = (0, _react.useState)('init');
|
|
@@ -254,7 +265,7 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
254
265
|
}
|
|
255
266
|
},
|
|
256
267
|
children: [
|
|
257
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
268
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Checkbox.default, {
|
|
258
269
|
icon: uncheckedIcon,
|
|
259
270
|
checked: displayed.length === options.length,
|
|
260
271
|
checkedIcon: checkedIcon,
|
|
@@ -277,7 +288,7 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
277
288
|
handleOptionClick(option);
|
|
278
289
|
},
|
|
279
290
|
children: [
|
|
280
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
291
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Checkbox.default, {
|
|
281
292
|
icon: uncheckedIcon,
|
|
282
293
|
checked: isChecked(option),
|
|
283
294
|
checkedIcon: checkedIcon,
|
|
@@ -325,7 +336,7 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
325
336
|
}
|
|
326
337
|
};
|
|
327
338
|
const OneOption = ({ option, curValue, modal, modal_type })=>{
|
|
328
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
339
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
329
340
|
sx: {
|
|
330
341
|
display: 'flex',
|
|
331
342
|
justifyContent: 'space-between',
|
|
@@ -335,7 +346,7 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
335
346
|
cursor: 'pointer'
|
|
336
347
|
},
|
|
337
348
|
children: [
|
|
338
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
349
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
339
350
|
sx: {
|
|
340
351
|
width: '100%',
|
|
341
352
|
display: 'flex',
|
|
@@ -346,7 +357,7 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
346
357
|
modal_type == 'logo' && /*#__PURE__*/ (0, _jsxruntime.jsx)(Logo, {
|
|
347
358
|
option: option
|
|
348
359
|
}),
|
|
349
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
360
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
350
361
|
variant: "subtitle2",
|
|
351
362
|
color: theme.palette.typography.title,
|
|
352
363
|
children: (0, _fixefyuiutils.titleCase)(curValue)
|
|
@@ -368,7 +379,7 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
368
379
|
const isDisplayButton = isDisplay && (multiple && (displayed === null || displayed === void 0 ? void 0 : displayed.length) > 0 || !multiple && displayed[search_path] === option[title_path]);
|
|
369
380
|
switch(isDisplayButton){
|
|
370
381
|
case true:
|
|
371
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
382
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
372
383
|
onClick: ()=>{
|
|
373
384
|
deleteOneItem(option);
|
|
374
385
|
},
|
|
@@ -450,14 +461,14 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
450
461
|
}
|
|
451
462
|
};
|
|
452
463
|
const getDisplayedValuesMultiple = ()=>{
|
|
453
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
464
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Stack.default, {
|
|
454
465
|
direction: 'row',
|
|
455
466
|
sx: {
|
|
456
467
|
display: 'flex',
|
|
457
468
|
justifyContent: 'space-between'
|
|
458
469
|
},
|
|
459
470
|
children: [
|
|
460
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
471
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Stack.default, {
|
|
461
472
|
direction: 'row',
|
|
462
473
|
sx: {
|
|
463
474
|
overflow: 'hidden',
|
|
@@ -468,7 +479,7 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
468
479
|
return getSingleOptionFromListOrDisplayed(item, 'displayed');
|
|
469
480
|
})
|
|
470
481
|
}),
|
|
471
|
-
(displayed === null || displayed === void 0 ? void 0 : displayed.length) > 0 && /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
482
|
+
(displayed === null || displayed === void 0 ? void 0 : displayed.length) > 0 && /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
472
483
|
sx: {
|
|
473
484
|
minWidth: '20px',
|
|
474
485
|
maxWidth: '20px',
|
|
@@ -492,7 +503,7 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
492
503
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_dropdownstyles.Root, {
|
|
493
504
|
style: rootStylesOverride,
|
|
494
505
|
children: [
|
|
495
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
506
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
496
507
|
children: [
|
|
497
508
|
getCurrentValues(),
|
|
498
509
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_dropdownstyles.InputWrapper, {
|
|
@@ -517,7 +528,7 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
517
528
|
children: [
|
|
518
529
|
displayListOptions(),
|
|
519
530
|
!isLastPage && /*#__PURE__*/ (0, _jsxruntime.jsx)("li", {
|
|
520
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
531
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Button.default, {
|
|
521
532
|
onClick: ()=>{
|
|
522
533
|
setReason('loaded more');
|
|
523
534
|
loadMore();
|
|
@@ -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 ']: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import Popper from '@mui/material/Popper';
|
|
3
|
+
export declare const FxPopper: ({ anchorEl, children, placement, open, arrow, preventOverflow, }: {
|
|
3
4
|
anchorEl: any;
|
|
4
5
|
children: any;
|
|
5
6
|
placement: any;
|
package/dist/FxPopper/Popper.js
CHANGED
|
@@ -9,8 +9,8 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
13
|
-
return
|
|
12
|
+
FxPopper: function() {
|
|
13
|
+
return FxPopper;
|
|
14
14
|
},
|
|
15
15
|
default: function() {
|
|
16
16
|
return _default;
|
|
@@ -19,7 +19,12 @@ _export(exports, {
|
|
|
19
19
|
const _jsxruntime = require("react/jsx-runtime");
|
|
20
20
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
21
21
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
22
|
-
const
|
|
22
|
+
const _Popper = /*#__PURE__*/ _interop_require_default(require("@mui/material/Popper"));
|
|
23
|
+
function _interop_require_default(obj) {
|
|
24
|
+
return obj && obj.__esModule ? obj : {
|
|
25
|
+
default: obj
|
|
26
|
+
};
|
|
27
|
+
}
|
|
23
28
|
function _getRequireWildcardCache(nodeInterop) {
|
|
24
29
|
if (typeof WeakMap !== "function") return null;
|
|
25
30
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -88,10 +93,10 @@ const useStyles = (0, _fixefyuiutils.makeStyles)()((theme)=>({
|
|
|
88
93
|
}
|
|
89
94
|
}
|
|
90
95
|
}));
|
|
91
|
-
const
|
|
96
|
+
const FxPopper = ({ anchorEl, children, placement, open, arrow = true, preventOverflow = 'scrollParent' })=>{
|
|
92
97
|
const { classes } = useStyles();
|
|
93
98
|
const [arrowRef, setArrowRef] = (0, _react.useState)(null);
|
|
94
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
99
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Popper.default, {
|
|
95
100
|
open: open,
|
|
96
101
|
anchorEl: anchorEl,
|
|
97
102
|
placement: placement,
|
|
@@ -131,4 +136,4 @@ const Popper = ({ anchorEl, children, placement, open, arrow = true, preventOver
|
|
|
131
136
|
]
|
|
132
137
|
});
|
|
133
138
|
};
|
|
134
|
-
const _default =
|
|
139
|
+
const _default = _Popper.default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
|
-
import { PopperProps } from '@mui/material';
|
|
2
|
+
import { PopperProps } from '@mui/material/Popper';
|
|
3
3
|
export declare const PopperWithOutside: ({ open, anchorEl, placement, children, onClickAway, modifiers, className, disablePortal, setArrowRef, arrowColor, arrow, }: {
|
|
4
4
|
onClickAway: () => void;
|
|
5
5
|
children: ReactElement;
|
|
@@ -19,7 +19,8 @@ _export(exports, {
|
|
|
19
19
|
const _jsxruntime = require("react/jsx-runtime");
|
|
20
20
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
21
21
|
const _popperstyles = require("./styles/popper.styles");
|
|
22
|
-
const
|
|
22
|
+
const _Fade = /*#__PURE__*/ _interop_require_default(require("@mui/material/Fade"));
|
|
23
|
+
const _ClickAwayListener = /*#__PURE__*/ _interop_require_default(require("@mui/material/ClickAwayListener"));
|
|
23
24
|
const _clsx = /*#__PURE__*/ _interop_require_default(require("clsx"));
|
|
24
25
|
function _define_property(obj, key, value) {
|
|
25
26
|
if (key in obj) {
|
|
@@ -93,10 +94,10 @@ const PopperWithOutside = ({ open, anchorEl, placement, children, onClickAway, m
|
|
|
93
94
|
transition: true,
|
|
94
95
|
modifiers: modifiers,
|
|
95
96
|
arrowColor: arrowColor,
|
|
96
|
-
children: ({ TransitionProps })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
97
|
+
children: ({ TransitionProps })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_ClickAwayListener.default, {
|
|
97
98
|
onClickAway: onClickAway,
|
|
98
99
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
99
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
100
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Fade.default, _object_spread_props(_object_spread({}, TransitionProps), {
|
|
100
101
|
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
101
102
|
children: [
|
|
102
103
|
arrow ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_popperstyles.PopperArrow, {
|
|
@@ -42,7 +42,7 @@ const PopperArrow = (0, _styles.styled)('div')(({ theme })=>({
|
|
|
42
42
|
height: 0,
|
|
43
43
|
borderStyle: 'solid',
|
|
44
44
|
borderWidth: '8px 6px 8px 2px',
|
|
45
|
-
//@ts-
|
|
45
|
+
//@ts-expect-error 700 is OK
|
|
46
46
|
borderColor: `transparent ${theme.palette.primary[700]} transparent transparent`,
|
|
47
47
|
filter: 'drop-shadow(0px 0px 10px rgba(86, 135, 147, 0.2))'
|
|
48
48
|
}
|
|
@@ -78,28 +78,28 @@ function _object_spread_props(target, source) {
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
|
-
const Container = (0, _styles.styled)(
|
|
82
|
-
display:
|
|
83
|
-
alignItems:
|
|
84
|
-
justifyContent:
|
|
81
|
+
const Container = (0, _styles.styled)('div')(({})=>({
|
|
82
|
+
display: 'flex',
|
|
83
|
+
alignItems: 'center',
|
|
84
|
+
justifyContent: 'center'
|
|
85
85
|
}));
|
|
86
|
-
const Label = (0, _styles.styled)(
|
|
86
|
+
const Label = (0, _styles.styled)('span')(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
87
87
|
color: theme.palette.typography.title,
|
|
88
88
|
marginRight: 8
|
|
89
89
|
}));
|
|
90
|
-
const Slider = (0, _styles.styled)(
|
|
91
|
-
display:
|
|
90
|
+
const Slider = (0, _styles.styled)('svg')(({})=>({
|
|
91
|
+
display: 'block',
|
|
92
92
|
width: 22,
|
|
93
93
|
height: 22,
|
|
94
|
-
transform:
|
|
94
|
+
transform: 'rotate(-90deg)'
|
|
95
95
|
}));
|
|
96
|
-
const SliderCircle = (0, _styles.styled)(
|
|
97
|
-
fill:
|
|
96
|
+
const SliderCircle = (0, _styles.styled)('circle')(({ theme, color })=>({
|
|
97
|
+
fill: 'transparent',
|
|
98
98
|
stroke: color !== null && color !== void 0 ? color : theme.palette.green2scale.main,
|
|
99
99
|
opacity: 0.1
|
|
100
100
|
}));
|
|
101
|
-
const SliderBar = (0, _styles.styled)(
|
|
102
|
-
fill:
|
|
101
|
+
const SliderBar = (0, _styles.styled)('circle')(({ theme, color })=>({
|
|
102
|
+
fill: 'transparent',
|
|
103
103
|
stroke: color !== null && color !== void 0 ? color : theme.palette.green2scale.main,
|
|
104
104
|
strokeDashoffset: 0,
|
|
105
105
|
strokeDasharray: 0
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
"use strict";
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
3
|
value: true
|
|
@@ -11,7 +10,8 @@ Object.defineProperty(exports, "FxProgressCounter", {
|
|
|
11
10
|
});
|
|
12
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
13
12
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
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
15
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
16
16
|
const _progress_counterstyles = require("./styles/progress_counter.styles");
|
|
17
17
|
const _image = /*#__PURE__*/ _interop_require_default(require("next/image"));
|
|
@@ -105,12 +105,12 @@ function FxProgressCounter(_param) {
|
|
|
105
105
|
// where: { ..._filter },
|
|
106
106
|
// },
|
|
107
107
|
// });
|
|
108
|
-
const normalizeNumber = (
|
|
109
|
-
return
|
|
108
|
+
const normalizeNumber = (n)=>{
|
|
109
|
+
return n / initialValues.count * 100;
|
|
110
110
|
};
|
|
111
111
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_progress_counterstyles.Container, {
|
|
112
112
|
children: [
|
|
113
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
113
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
114
114
|
position: 'relative',
|
|
115
115
|
textAlign: 'center',
|
|
116
116
|
justifyContent: 'center',
|
|
@@ -121,15 +121,16 @@ function FxProgressCounter(_param) {
|
|
|
121
121
|
width: 16,
|
|
122
122
|
height: 16,
|
|
123
123
|
loader: ()=>(0, _fixefyuiutils.imageLoader)({
|
|
124
|
-
src: 'invoices/approve-small-white.svg'
|
|
124
|
+
src: 'invoices/approve-small-white.svg',
|
|
125
|
+
width: 16
|
|
125
126
|
}),
|
|
126
127
|
src: 'invoices/approve-small-white.svg',
|
|
127
128
|
onLoad: ()=>console.log('loaded'),
|
|
128
129
|
onError: (e)=>console.log('error:', e)
|
|
129
130
|
}),
|
|
130
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
131
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
131
132
|
mt: 0.5,
|
|
132
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
133
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Typography.default, {
|
|
133
134
|
fontSize: 19,
|
|
134
135
|
fontWeight: 600,
|
|
135
136
|
children: [
|
|
@@ -139,7 +140,7 @@ function FxProgressCounter(_param) {
|
|
|
139
140
|
]
|
|
140
141
|
})
|
|
141
142
|
}),
|
|
142
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
143
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
143
144
|
fontSize: 11,
|
|
144
145
|
sx: {
|
|
145
146
|
opacity: 0.6
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
"use strict";
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
3
|
value: true
|
|
@@ -27,21 +26,27 @@ _export(exports, {
|
|
|
27
26
|
}
|
|
28
27
|
});
|
|
29
28
|
const _styles = require("@mui/material/styles");
|
|
30
|
-
const
|
|
31
|
-
const
|
|
29
|
+
const _LinearProgress = /*#__PURE__*/ _interop_require_default(require("@mui/material/LinearProgress"));
|
|
30
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
31
|
+
function _interop_require_default(obj) {
|
|
32
|
+
return obj && obj.__esModule ? obj : {
|
|
33
|
+
default: obj
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
const BaseProgress = (0, _styles.styled)(_LinearProgress.default)(()=>({
|
|
32
37
|
borderRadius: '8px',
|
|
33
38
|
width: '70%',
|
|
34
39
|
position: 'absolute',
|
|
35
40
|
zIndex: 2,
|
|
36
41
|
height: 3
|
|
37
42
|
}));
|
|
38
|
-
const MainBar = (0, _styles.styled)(BaseProgress)((
|
|
43
|
+
const MainBar = (0, _styles.styled)(BaseProgress)(()=>({
|
|
39
44
|
opacity: 1
|
|
40
45
|
}));
|
|
41
|
-
const BackgroundBar = (0, _styles.styled)(BaseProgress)((
|
|
46
|
+
const BackgroundBar = (0, _styles.styled)(BaseProgress)(()=>({
|
|
42
47
|
opacity: 0.2
|
|
43
48
|
}));
|
|
44
|
-
const ProgressContainer = (0, _styles.styled)(
|
|
49
|
+
const ProgressContainer = (0, _styles.styled)(_Box.default)(()=>({
|
|
45
50
|
alignItems: 'center',
|
|
46
51
|
display: 'flex',
|
|
47
52
|
width: '100%',
|
|
@@ -49,7 +54,7 @@ const ProgressContainer = (0, _styles.styled)(_material.Box)(({ theme })=>({
|
|
|
49
54
|
position: 'relative',
|
|
50
55
|
justifyContent: 'center'
|
|
51
56
|
}));
|
|
52
|
-
const Container = (0, _styles.styled)(
|
|
57
|
+
const Container = (0, _styles.styled)(_Box.default)(({ theme })=>({
|
|
53
58
|
width: 104,
|
|
54
59
|
height: 104,
|
|
55
60
|
minWidth: 104,
|
package/dist/FxScore/FxScore.js
CHANGED
|
@@ -11,10 +11,13 @@ Object.defineProperty(exports, "FxScore", {
|
|
|
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
|
|
14
|
+
const _hooks = require("@apollo/client/react/hooks");
|
|
15
15
|
const _scorestyles = require("./styles/score.styles");
|
|
16
16
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
17
|
-
const
|
|
17
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
18
|
+
const _CircularProgress = /*#__PURE__*/ _interop_require_default(require("@mui/material/CircularProgress"));
|
|
19
|
+
const _Skeleton = /*#__PURE__*/ _interop_require_default(require("@mui/material/Skeleton"));
|
|
20
|
+
const _Typography = /*#__PURE__*/ _interop_require_default(require("@mui/material/Typography"));
|
|
18
21
|
function _define_property(obj, key, value) {
|
|
19
22
|
if (key in obj) {
|
|
20
23
|
Object.defineProperty(obj, key, {
|
|
@@ -28,6 +31,11 @@ function _define_property(obj, key, value) {
|
|
|
28
31
|
}
|
|
29
32
|
return obj;
|
|
30
33
|
}
|
|
34
|
+
function _interop_require_default(obj) {
|
|
35
|
+
return obj && obj.__esModule ? obj : {
|
|
36
|
+
default: obj
|
|
37
|
+
};
|
|
38
|
+
}
|
|
31
39
|
function _getRequireWildcardCache(nodeInterop) {
|
|
32
40
|
if (typeof WeakMap !== "function") return null;
|
|
33
41
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -138,7 +146,7 @@ const FxScore = (_param)=>{
|
|
|
138
146
|
if (filter) {
|
|
139
147
|
_filter = _object_spread({}, _filter, filter);
|
|
140
148
|
}
|
|
141
|
-
const [fetchData, { data, loading }] = (0,
|
|
149
|
+
const [fetchData, { data, loading }] = (0, _hooks.useLazyQuery)((0, _graphqltag.gql)(gqlOperation));
|
|
142
150
|
(0, _react.useEffect)(()=>{
|
|
143
151
|
if (!value && structure) {
|
|
144
152
|
fetchData({
|
|
@@ -154,15 +162,15 @@ const FxScore = (_param)=>{
|
|
|
154
162
|
variant
|
|
155
163
|
});
|
|
156
164
|
var _Math_round;
|
|
157
|
-
return loading ? /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
165
|
+
return loading ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
158
166
|
className: _classes.container,
|
|
159
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
167
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Skeleton.default, {
|
|
160
168
|
animation: "wave",
|
|
161
169
|
variant: "circular",
|
|
162
170
|
width: 68,
|
|
163
171
|
height: 68
|
|
164
172
|
})
|
|
165
|
-
}) : /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
173
|
+
}) : /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
166
174
|
className: _classes.container,
|
|
167
175
|
sx: {
|
|
168
176
|
width: Sizes[variant].boxWidth,
|
|
@@ -172,7 +180,7 @@ const FxScore = (_param)=>{
|
|
|
172
180
|
borderRadius: variant === 'box' ? '8px' : '50%'
|
|
173
181
|
},
|
|
174
182
|
children: [
|
|
175
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
183
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_CircularProgress.default, _object_spread({
|
|
176
184
|
size: Sizes[variant].progressWidth,
|
|
177
185
|
variant: "determinate",
|
|
178
186
|
value: ScoreValue,
|
|
@@ -180,7 +188,7 @@ const FxScore = (_param)=>{
|
|
|
180
188
|
thickness: 2,
|
|
181
189
|
className: _classes.mainCircle
|
|
182
190
|
}, rest)),
|
|
183
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
191
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_CircularProgress.default, _object_spread({
|
|
184
192
|
size: Sizes[variant].progressWidth,
|
|
185
193
|
variant: "determinate",
|
|
186
194
|
value: 100,
|
|
@@ -188,15 +196,15 @@ const FxScore = (_param)=>{
|
|
|
188
196
|
thickness: 2,
|
|
189
197
|
className: _classes.backgroundCircle
|
|
190
198
|
}, rest)),
|
|
191
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
199
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
192
200
|
className: _classes.content,
|
|
193
201
|
children: [
|
|
194
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
202
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
195
203
|
variant: variant === 'box' ? 'h5' : 'table',
|
|
196
204
|
className: _classes.scoreNumber,
|
|
197
205
|
children: `${(_Math_round = Math.round(Number(ScoreValue))) !== null && _Math_round !== void 0 ? _Math_round : 0}%`
|
|
198
206
|
}),
|
|
199
|
-
hasLabel && /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
207
|
+
hasLabel && /*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
200
208
|
className: _classes.scoreText,
|
|
201
209
|
children: (0, _fixefyuiutils.titleCase)(title !== null && title !== void 0 ? title : propsTitle)
|
|
202
210
|
})
|
|
@@ -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
|
function _define_property(obj, key, value) {
|
|
13
13
|
if (key in obj) {
|
|
14
14
|
Object.defineProperty(obj, key, {
|
|
@@ -22,6 +22,11 @@ function _define_property(obj, key, value) {
|
|
|
22
22
|
}
|
|
23
23
|
return obj;
|
|
24
24
|
}
|
|
25
|
+
function _interop_require_default(obj) {
|
|
26
|
+
return obj && obj.__esModule ? obj : {
|
|
27
|
+
default: obj
|
|
28
|
+
};
|
|
29
|
+
}
|
|
25
30
|
function _object_spread(target) {
|
|
26
31
|
for(var i = 1; i < arguments.length; i++){
|
|
27
32
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -61,7 +66,7 @@ function _object_spread_props(target, source) {
|
|
|
61
66
|
}
|
|
62
67
|
return target;
|
|
63
68
|
}
|
|
64
|
-
const useStyles = (0,
|
|
69
|
+
const useStyles = (0, _makeStyles.default)((theme)=>({
|
|
65
70
|
container: {
|
|
66
71
|
display: 'flex',
|
|
67
72
|
justifyContent: 'center',
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "FxShowMore", {
|
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
const
|
|
13
|
+
const _Typography = /*#__PURE__*/ _interop_require_default(require("@mui/material/Typography"));
|
|
14
14
|
const _show_morestyles = require("./styles/show_more.styles");
|
|
15
15
|
const _KeyboardArrowDown = /*#__PURE__*/ _interop_require_default(require("@mui/icons-material/KeyboardArrowDown"));
|
|
16
16
|
function _interop_require_default(obj) {
|
|
@@ -66,7 +66,7 @@ function FxShowMore({ items, label, children, title }) {
|
|
|
66
66
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_show_morestyles.StyledDivider, {}),
|
|
67
67
|
items === null || items === void 0 ? void 0 : items.map((item, index)=>/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
68
68
|
children: [
|
|
69
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
69
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
70
70
|
variant: "body1",
|
|
71
71
|
children: item
|
|
72
72
|
}),
|
|
@@ -30,7 +30,11 @@ _export(exports, {
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
const _styles = require("@mui/material/styles");
|
|
33
|
-
const
|
|
33
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
34
|
+
const _Popover = /*#__PURE__*/ _interop_require_default(require("@mui/material/Popover"));
|
|
35
|
+
const _Divider = /*#__PURE__*/ _interop_require_default(require("@mui/material/Divider"));
|
|
36
|
+
const _Typography = /*#__PURE__*/ _interop_require_default(require("@mui/material/Typography"));
|
|
37
|
+
const _Button = /*#__PURE__*/ _interop_require_default(require("@mui/material/Button"));
|
|
34
38
|
function _define_property(obj, key, value) {
|
|
35
39
|
if (key in obj) {
|
|
36
40
|
Object.defineProperty(obj, key, {
|
|
@@ -44,6 +48,11 @@ function _define_property(obj, key, value) {
|
|
|
44
48
|
}
|
|
45
49
|
return obj;
|
|
46
50
|
}
|
|
51
|
+
function _interop_require_default(obj) {
|
|
52
|
+
return obj && obj.__esModule ? obj : {
|
|
53
|
+
default: obj
|
|
54
|
+
};
|
|
55
|
+
}
|
|
47
56
|
function _object_spread(target) {
|
|
48
57
|
for(var i = 1; i < arguments.length; i++){
|
|
49
58
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -83,10 +92,10 @@ function _object_spread_props(target, source) {
|
|
|
83
92
|
}
|
|
84
93
|
return target;
|
|
85
94
|
}
|
|
86
|
-
const ShowMoreWrapper = (0, _styles.styled)(
|
|
95
|
+
const ShowMoreWrapper = (0, _styles.styled)(_Box.default)(({})=>({
|
|
87
96
|
borderRadius: '8px'
|
|
88
97
|
}));
|
|
89
|
-
const ShowMoreBtn = (0, _styles.styled)(
|
|
98
|
+
const ShowMoreBtn = (0, _styles.styled)(_Button.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.button), {
|
|
90
99
|
fontWeight: 600,
|
|
91
100
|
fontSize: 12,
|
|
92
101
|
textTransform: 'uppercase',
|
|
@@ -96,7 +105,7 @@ const ShowMoreBtn = (0, _styles.styled)(_material.Button)(({ theme })=>_object_s
|
|
|
96
105
|
justifyContent: 'flex-start',
|
|
97
106
|
alignItems: 'center'
|
|
98
107
|
}));
|
|
99
|
-
const ShowMoreIcon = (0, _styles.styled)(
|
|
108
|
+
const ShowMoreIcon = (0, _styles.styled)(_Box.default)(({ theme, isOpen })=>({
|
|
100
109
|
width: 16,
|
|
101
110
|
height: 16,
|
|
102
111
|
color: theme.palette.primary[800],
|
|
@@ -114,7 +123,7 @@ const ShowMoreIcon = (0, _styles.styled)(_material.Box)(({ theme, isOpen })=>({
|
|
|
114
123
|
transition: 'all 0.5s'
|
|
115
124
|
}
|
|
116
125
|
}));
|
|
117
|
-
const StyledPopover = (0, _styles.styled)(
|
|
126
|
+
const StyledPopover = (0, _styles.styled)(_Popover.default)(({ theme })=>({
|
|
118
127
|
['.MuiPaper-root']: {
|
|
119
128
|
background: theme.palette.common.white,
|
|
120
129
|
boxShadow: '0px 0px 10px rgba(86, 135, 147, 0.3)',
|
|
@@ -125,10 +134,10 @@ const StyledPopover = (0, _styles.styled)(_material.Popover)(({ theme })=>({
|
|
|
125
134
|
maxWidth: 328
|
|
126
135
|
}
|
|
127
136
|
}));
|
|
128
|
-
const StyledDivider = (0, _styles.styled)(
|
|
137
|
+
const StyledDivider = (0, _styles.styled)(_Divider.default)(({})=>({
|
|
129
138
|
marginTop: 8,
|
|
130
139
|
marginBottom: 8
|
|
131
140
|
}));
|
|
132
|
-
const StyledLabel = (0, _styles.styled)(
|
|
141
|
+
const StyledLabel = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.overLineCaption), {
|
|
133
142
|
color: '#8B9092'
|
|
134
143
|
}));
|