@fixefy/fixefy-ui-components 0.3.31 → 0.3.33
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/FxActionButton/FxActionButton.d.ts +7 -0
- package/dist/FxActionButton/FxActionButton.js +82 -0
- package/dist/FxActionButton/index.d.ts +1 -0
- package/dist/FxActionButton/index.js +11 -0
- package/dist/FxActionsTray/styles/actions_tray.styles.d.ts +8 -0
- package/dist/FxActionsTray/styles/actions_tray.styles.js +159 -0
- package/dist/FxFilterActionButton/FxFilterActionButton.d.ts +7 -0
- package/dist/FxFilterActionButton/FxFilterActionButton.js +82 -0
- package/dist/FxFilterActionButton/index.d.ts +1 -0
- package/dist/FxFilterActionButton/index.js +11 -0
- package/dist/FxFilterSortButton/FxFilterSortButton.d.ts +7 -0
- package/dist/FxFilterSortButton/FxFilterSortButton.js +82 -0
- package/dist/FxFilterSortButton/index.d.ts +1 -0
- package/dist/FxFilterSortButton/index.js +11 -0
- package/dist/FxModalWithButton/FxModalWithButton.d.ts +10 -0
- package/dist/FxModalWithButton/FxModalWithButton.js +131 -0
- package/dist/FxModalWithButton/index.d.ts +1 -0
- package/dist/FxModalWithButton/index.js +11 -0
- package/dist/FxModalWithComponent/FxModalWithComponent.d.ts +11 -0
- package/dist/FxModalWithComponent/FxModalWithComponent.js +102 -0
- package/dist/FxModalWithComponent/index.d.ts +1 -0
- package/dist/FxModalWithComponent/index.js +11 -0
- package/dist/FxModalWithMenu/FxModalWithMenu.d.ts +14 -0
- package/dist/FxModalWithMenu/FxModalWithMenu.js +114 -0
- package/dist/FxModalWithMenu/index.d.ts +1 -0
- package/dist/FxModalWithMenu/index.js +11 -0
- package/dist/FxPopper/styles/makeStyles.d.ts +16 -0
- package/dist/FxPopper/styles/makeStyles.js +23 -0
- package/dist/FxWizard/FxWizard/FxWizard.d.ts +6 -0
- package/dist/FxWizard/FxWizard/FxWizard.js +42 -0
- package/dist/FxWizard/FxWizard/index.d.ts +2 -0
- package/dist/FxWizard/FxWizard/index.js +19 -0
- package/dist/FxWizard/FxWizard/utils/envHelpers.d.ts +1 -0
- package/dist/FxWizard/FxWizard/utils/envHelpers.js +35 -0
- package/dist/FxWizard/FxWizard/utils/index.d.ts +1 -0
- package/dist/FxWizard/FxWizard/utils/index.js +18 -0
- package/dist/FxWizard/pages/wizard/[step].d.ts +9 -0
- package/dist/FxWizard/pages/wizard/[step].js +112 -0
- package/dist/FxWizard/pages/wizard/index.d.ts +1 -0
- package/dist/FxWizard/pages/wizard/index.js +18 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -4
- package/dist/src/FxActionsTray/FxActionsTray.js +351 -0
- package/dist/src/FxActionsTray/index.js +19 -0
- package/dist/src/FxActionsTray/styles/actions_tray.styles.js +159 -0
- package/dist/src/FxAggregationsBar/FxAggregations.js +41 -0
- package/dist/src/FxAggregationsBar/helpers/structureReader.js +78 -0
- package/dist/src/FxAggregationsBar/index.js +22 -0
- package/dist/src/FxAggregationsBar/operations/query.js +73 -0
- package/dist/src/FxAsyncDropdown/FxAsyncDropdown.js +628 -0
- package/dist/src/FxAsyncDropdown/helpers/helpers.js +161 -0
- package/dist/src/FxAsyncDropdown/index.js +25 -0
- package/dist/src/FxAsyncDropdown/styles/dropdown.styles.js +228 -0
- package/dist/src/FxAvatar/FxAvatar.js +145 -0
- package/dist/src/FxAvatar/helpers/stringToColor.js +23 -0
- package/dist/src/FxAvatar/index.js +22 -0
- package/dist/src/FxAvatar/styles/avatar.styles.js +192 -0
- package/dist/src/FxButton/FxButton.js +106 -0
- package/dist/src/FxButton/index.js +19 -0
- package/dist/src/FxButton/styles/button.styles.js +23 -0
- package/dist/src/FxChip/FxChip.js +45 -0
- package/dist/src/FxChip/index.js +19 -0
- package/dist/src/FxChip/styles/chip.styles.js +61 -0
- package/dist/src/FxFilterSortButton/FxFilterSortButton.js +82 -0
- package/dist/src/FxFilterSortButton/index.js +11 -0
- package/dist/src/FxIcon/FxIcon.js +107 -0
- package/dist/src/FxIcon/content/dynamic_icon.js +20 -0
- package/dist/src/FxIcon/content/index.js +20 -0
- package/dist/src/FxIcon/content/lazy_icon.js +137 -0
- package/dist/{FxCheckbox → src/FxIcon}/index.js +3 -3
- package/dist/src/FxModal/FxModal.js +170 -0
- package/dist/src/FxModal/index.js +19 -0
- package/dist/src/FxModal/styles/modal.style.js +59 -0
- package/dist/src/FxModalWithButton/FxModalWithButton.js +94 -0
- package/dist/src/FxModalWithButton/index.js +11 -0
- package/dist/src/FxNotes/FxNotes.js +216 -0
- package/dist/src/FxNotes/helpers/stringToColor.js +26 -0
- package/dist/src/FxNotes/index.js +22 -0
- package/dist/src/FxNotes/operations/queries.js +35 -0
- package/dist/src/FxNotes/styles/notes.styles.js +168 -0
- package/dist/src/FxNumberField/FxNumberField.js +109 -0
- package/dist/src/FxNumberField/index.js +19 -0
- package/dist/src/FxNumberField/styles/number_field.styles.js +94 -0
- package/dist/src/FxProgressCircle/FxProgressCircle.js +65 -0
- package/dist/src/FxProgressCircle/index.js +19 -0
- package/dist/src/FxProgressCircle/styles/progress_circle.styles.js +106 -0
- package/dist/src/FxProgressCounter/ProgressCounter.js +168 -0
- package/dist/src/FxProgressCounter/index.js +19 -0
- package/dist/src/FxProgressCounter/styles/progress_counter.styles.js +61 -0
- package/dist/src/FxScore/FxScore.js +207 -0
- package/dist/src/FxScore/index.js +19 -0
- package/dist/src/FxScore/styles/score.styles.js +97 -0
- package/dist/src/FxShowMore/FxShowMore.js +80 -0
- package/dist/src/FxShowMore/index.js +19 -0
- package/dist/src/FxShowMore/styles/show_more.styles.js +134 -0
- package/dist/src/FxSlider/FxSlider.js +49 -0
- package/dist/src/FxSlider/index.js +19 -0
- package/dist/src/FxStatisticsBar/FxStatisticsBar.js +191 -0
- package/dist/src/FxStatisticsBar/index.js +19 -0
- package/dist/src/FxStatisticsBar/styles/statistics.styles.js +98 -0
- package/dist/src/FxStatusBar/FxStatusBar.js +143 -0
- package/dist/src/FxStatusBar/helpers/constants.js +22 -0
- package/dist/src/FxStatusBar/index.js +22 -0
- package/dist/src/FxStatusBar/styles/statusBar.styles.js +131 -0
- package/dist/src/FxStyledComponents/index.js +310 -0
- package/dist/src/FxTag/FxTag.js +41 -0
- package/dist/src/FxTag/index.js +19 -0
- package/dist/src/FxTag/styles/tag.styles.js +100 -0
- package/dist/src/FxTextField/FxTextField.js +208 -0
- package/dist/src/FxTextField/index.js +19 -0
- package/dist/src/FxTodo/FxTodo.js +95 -0
- package/dist/src/FxTodo/index.js +22 -0
- package/dist/src/FxTodo/styles/todo.styles.js +183 -0
- package/dist/src/index.js +215 -0
- package/package.json +1 -1
- package/dist/FxCheckbox/FxCheckbox.d.ts +0 -9
- package/dist/FxCheckbox/FxCheckbox.js +0 -76
- package/dist/FxCheckbox/index.d.ts +0 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "FxModalWithComponent", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return FxModalWithComponent;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
+
const _material = require("@mui/material");
|
|
14
|
+
const _FxStyledButton = require("../FxStyledButton");
|
|
15
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
16
|
+
if (typeof WeakMap !== "function") return null;
|
|
17
|
+
var cacheBabelInterop = new WeakMap();
|
|
18
|
+
var cacheNodeInterop = new WeakMap();
|
|
19
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
20
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
21
|
+
})(nodeInterop);
|
|
22
|
+
}
|
|
23
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
24
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
25
|
+
return obj;
|
|
26
|
+
}
|
|
27
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
28
|
+
return {
|
|
29
|
+
default: obj
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
33
|
+
if (cache && cache.has(obj)) {
|
|
34
|
+
return cache.get(obj);
|
|
35
|
+
}
|
|
36
|
+
var newObj = {
|
|
37
|
+
__proto__: null
|
|
38
|
+
};
|
|
39
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
40
|
+
for(var key in obj){
|
|
41
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
42
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
43
|
+
if (desc && (desc.get || desc.set)) {
|
|
44
|
+
Object.defineProperty(newObj, key, desc);
|
|
45
|
+
} else {
|
|
46
|
+
newObj[key] = obj[key];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
newObj.default = obj;
|
|
51
|
+
if (cache) {
|
|
52
|
+
cache.set(obj, newObj);
|
|
53
|
+
}
|
|
54
|
+
return newObj;
|
|
55
|
+
}
|
|
56
|
+
const FxModalWithComponent = ({ btnType = 'text', btnValue, modalData, onClick, disabled, icon, sx, iconSize })=>{
|
|
57
|
+
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
58
|
+
const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
|
|
59
|
+
const handleClick = (e)=>{
|
|
60
|
+
if (onClick) {
|
|
61
|
+
onClick();
|
|
62
|
+
setIsOpen((prev)=>!prev);
|
|
63
|
+
setAnchorEl(e.currentTarget);
|
|
64
|
+
} else {
|
|
65
|
+
setIsOpen((prev)=>!prev);
|
|
66
|
+
setAnchorEl(e.currentTarget);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const handleClose = ()=>{
|
|
70
|
+
setIsOpen(false);
|
|
71
|
+
setAnchorEl(null);
|
|
72
|
+
};
|
|
73
|
+
(0, _react.useEffect)(()=>{
|
|
74
|
+
setIsOpen(false);
|
|
75
|
+
}, [
|
|
76
|
+
btnValue
|
|
77
|
+
]);
|
|
78
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
79
|
+
children: [
|
|
80
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledButton.FxStyledButton, {
|
|
81
|
+
sx: sx,
|
|
82
|
+
btnType: btnType,
|
|
83
|
+
btnValue: btnValue,
|
|
84
|
+
onClick: handleClick,
|
|
85
|
+
startIcon: icon,
|
|
86
|
+
disabled: disabled,
|
|
87
|
+
iconSize: iconSize || 20
|
|
88
|
+
}),
|
|
89
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Menu, {
|
|
90
|
+
id: "fade-menu",
|
|
91
|
+
MenuListProps: {
|
|
92
|
+
'aria-labelledby': 'fade-button'
|
|
93
|
+
},
|
|
94
|
+
anchorEl: AnchorEl,
|
|
95
|
+
open: isOpen,
|
|
96
|
+
onClose: handleClose,
|
|
97
|
+
TransitionComponent: _material.Fade,
|
|
98
|
+
children: isOpen && modalData
|
|
99
|
+
})
|
|
100
|
+
]
|
|
101
|
+
});
|
|
102
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FxModalWithComponent } from './FxModalWithComponent';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "FxModalWithComponent", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _FxModalWithComponent.FxModalWithComponent;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _FxModalWithComponent = require("./FxModalWithComponent");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const FxModalWithMenu: ({ btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, shouldShowModal, buttonSx, menuItemSx, iconSize, }: {
|
|
3
|
+
btnType?: 'text' | 'icon';
|
|
4
|
+
btnValue?: string;
|
|
5
|
+
modalData: any;
|
|
6
|
+
onClick?: any;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
startIcon?: string;
|
|
9
|
+
endIcon?: string;
|
|
10
|
+
shouldShowModal?: boolean;
|
|
11
|
+
buttonSx?: any;
|
|
12
|
+
menuItemSx?: any;
|
|
13
|
+
iconSize?: number;
|
|
14
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "FxModalWithMenu", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return FxModalWithMenu;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
+
const _material = require("@mui/material");
|
|
14
|
+
const _FxMenuItemWithIcon = require("../FxMenuItemWithIcon");
|
|
15
|
+
const _FxStyledButton = require("../FxStyledButton");
|
|
16
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
17
|
+
if (typeof WeakMap !== "function") return null;
|
|
18
|
+
var cacheBabelInterop = new WeakMap();
|
|
19
|
+
var cacheNodeInterop = new WeakMap();
|
|
20
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
21
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
22
|
+
})(nodeInterop);
|
|
23
|
+
}
|
|
24
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
25
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
26
|
+
return obj;
|
|
27
|
+
}
|
|
28
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
29
|
+
return {
|
|
30
|
+
default: obj
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
34
|
+
if (cache && cache.has(obj)) {
|
|
35
|
+
return cache.get(obj);
|
|
36
|
+
}
|
|
37
|
+
var newObj = {
|
|
38
|
+
__proto__: null
|
|
39
|
+
};
|
|
40
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
41
|
+
for(var key in obj){
|
|
42
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
43
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
44
|
+
if (desc && (desc.get || desc.set)) {
|
|
45
|
+
Object.defineProperty(newObj, key, desc);
|
|
46
|
+
} else {
|
|
47
|
+
newObj[key] = obj[key];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
newObj.default = obj;
|
|
52
|
+
if (cache) {
|
|
53
|
+
cache.set(obj, newObj);
|
|
54
|
+
}
|
|
55
|
+
return newObj;
|
|
56
|
+
}
|
|
57
|
+
const FxModalWithMenu = ({ btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, shouldShowModal = true, buttonSx, menuItemSx, iconSize })=>{
|
|
58
|
+
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
59
|
+
const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
|
|
60
|
+
const handleClick = (e)=>{
|
|
61
|
+
if (onClick) {
|
|
62
|
+
onClick();
|
|
63
|
+
setIsOpen((prev)=>!prev);
|
|
64
|
+
setAnchorEl(e.currentTarget);
|
|
65
|
+
} else {
|
|
66
|
+
setIsOpen((prev)=>!prev);
|
|
67
|
+
setAnchorEl(e.currentTarget);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
const handleClose = ()=>{
|
|
71
|
+
setIsOpen(false);
|
|
72
|
+
setAnchorEl(null);
|
|
73
|
+
};
|
|
74
|
+
(0, _react.useEffect)(()=>{
|
|
75
|
+
setIsOpen(false);
|
|
76
|
+
}, [
|
|
77
|
+
btnValue
|
|
78
|
+
]);
|
|
79
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
80
|
+
children: [
|
|
81
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledButton.FxStyledButton, {
|
|
82
|
+
sx: buttonSx,
|
|
83
|
+
btnType: btnType,
|
|
84
|
+
btnValue: btnValue,
|
|
85
|
+
onClick: handleClick,
|
|
86
|
+
startIcon: startIcon,
|
|
87
|
+
endIcon: endIcon,
|
|
88
|
+
iconSize: iconSize || 20,
|
|
89
|
+
disabled: disabled
|
|
90
|
+
}),
|
|
91
|
+
shouldShowModal && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Menu, {
|
|
92
|
+
id: "fade-menu",
|
|
93
|
+
MenuListProps: {
|
|
94
|
+
'aria-labelledby': 'fade-button'
|
|
95
|
+
},
|
|
96
|
+
anchorEl: AnchorEl,
|
|
97
|
+
open: isOpen,
|
|
98
|
+
onClose: handleClose,
|
|
99
|
+
TransitionComponent: _material.Fade,
|
|
100
|
+
children: isOpen && (modalData === null || modalData === void 0 ? void 0 : modalData.map((item, i)=>{
|
|
101
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxMenuItemWithIcon.FxMenuItemWithIcon, {
|
|
102
|
+
icon: item.icon,
|
|
103
|
+
title: item.title,
|
|
104
|
+
onClick: ()=>{
|
|
105
|
+
handleClose();
|
|
106
|
+
item.onClick();
|
|
107
|
+
},
|
|
108
|
+
sx: menuItemSx
|
|
109
|
+
}, i);
|
|
110
|
+
}))
|
|
111
|
+
})
|
|
112
|
+
]
|
|
113
|
+
});
|
|
114
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FxModalWithMenu } from './FxModalWithMenu';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "FxModalWithMenu", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _FxModalWithMenu.FxModalWithMenu;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _FxModalWithMenu = require("./FxModalWithMenu");
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const makeStyles: <Params = void, RuleNameSubsetReferencableInNestedSelectors extends string = never>(params?: {
|
|
2
|
+
name?: string | Record<string, unknown> | undefined;
|
|
3
|
+
uniqId?: string | undefined;
|
|
4
|
+
} | undefined) => <RuleName extends string>(cssObjectByRuleNameOrGetCssObjectByRuleName: Record<RuleName, import("tss-react").CSSObject> | ((theme: import("@mui/styles").DefaultTheme, params: Params, classes: Record<RuleNameSubsetReferencableInNestedSelectors, string>) => Record<RuleNameSubsetReferencableInNestedSelectors | RuleName, import("tss-react").CSSObject>)) => (params: Params, muiStyleOverridesParams?: {
|
|
5
|
+
props: Record<string, unknown>;
|
|
6
|
+
ownerState?: Record<string, unknown> | undefined;
|
|
7
|
+
} | undefined) => {
|
|
8
|
+
classes: Record<RuleName, string>;
|
|
9
|
+
theme: import("@mui/styles").DefaultTheme;
|
|
10
|
+
css: import("tss-react").Css;
|
|
11
|
+
cx: import("tss-react").Cx;
|
|
12
|
+
}, useStyles: () => {
|
|
13
|
+
theme: import("@mui/styles").DefaultTheme;
|
|
14
|
+
css: import("tss-react").Css;
|
|
15
|
+
cx: import("tss-react").Cx;
|
|
16
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
makeStyles: function() {
|
|
13
|
+
return makeStyles;
|
|
14
|
+
},
|
|
15
|
+
useStyles: function() {
|
|
16
|
+
return useStyles;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _tssreact = require("tss-react");
|
|
20
|
+
const _styles = require("@mui/styles");
|
|
21
|
+
const { makeStyles, useStyles } = (0, _tssreact.createMakeStyles)({
|
|
22
|
+
useTheme: _styles.useTheme
|
|
23
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
+
const _reactusewizard = require("react-use-wizard");
|
|
14
|
+
function _interop_require_default(obj) {
|
|
15
|
+
return obj && obj.__esModule ? obj : {
|
|
16
|
+
default: obj
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
const FxWizard = ({ config, footer })=>{
|
|
20
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_reactusewizard.Wizard, {
|
|
21
|
+
footer: footer,
|
|
22
|
+
children: config === null || config === void 0 ? void 0 : config.steps.map((step, i)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(WizardStepWrapper, {
|
|
23
|
+
props: step,
|
|
24
|
+
Component: step.component
|
|
25
|
+
}, i))
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
const WizardStepWrapper = ({ Component, props })=>{
|
|
29
|
+
console.log('WizardStepWrapper', JSON.stringify(props));
|
|
30
|
+
const { goToStep, isLastStep } = (0, _reactusewizard.useWizard)();
|
|
31
|
+
const handleNext = ()=>{
|
|
32
|
+
if (!isLastStep) {
|
|
33
|
+
goToStep(props.nextStepPath);
|
|
34
|
+
} else {
|
|
35
|
+
console.log('Reached the final step');
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(Component, {
|
|
39
|
+
onHandleNext: handleNext
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
const _default = FxWizard;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
_export_star(require("./FxWizard"), exports);
|
|
6
|
+
_export_star(require("./utils"), exports);
|
|
7
|
+
function _export_star(from, to) {
|
|
8
|
+
Object.keys(from).forEach(function(k) {
|
|
9
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
10
|
+
Object.defineProperty(to, k, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function() {
|
|
13
|
+
return from[k];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
return from;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getEnvSuffix: () => string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "getEnvSuffix", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return getEnvSuffix;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const getEnvSuffix = ()=>{
|
|
12
|
+
let rv;
|
|
13
|
+
switch(process.env.NEXT_PUBLIC_NODE_ENV){
|
|
14
|
+
case 'prod':
|
|
15
|
+
case 'production':
|
|
16
|
+
rv = '';
|
|
17
|
+
break;
|
|
18
|
+
case 'stage':
|
|
19
|
+
{
|
|
20
|
+
rv = '-stage';
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
case 'dev':
|
|
24
|
+
case 'development':
|
|
25
|
+
rv = '-dev';
|
|
26
|
+
break;
|
|
27
|
+
case 'test':
|
|
28
|
+
rv = `-${process.env.NEXT_PUBLIC_NODE_ENV || ''}`;
|
|
29
|
+
break;
|
|
30
|
+
default:
|
|
31
|
+
rv = '-dev';
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
return rv;
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './envHelpers';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
_export_star(require("./envHelpers"), exports);
|
|
6
|
+
function _export_star(from, to) {
|
|
7
|
+
Object.keys(from).forEach(function(k) {
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
9
|
+
Object.defineProperty(to, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function() {
|
|
12
|
+
return from[k];
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
return from;
|
|
18
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
default: function() {
|
|
13
|
+
return _default;
|
|
14
|
+
},
|
|
15
|
+
getServerSideProps: function() {
|
|
16
|
+
return getServerSideProps;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
21
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
22
|
+
try {
|
|
23
|
+
var info = gen[key](arg);
|
|
24
|
+
var value = info.value;
|
|
25
|
+
} catch (error) {
|
|
26
|
+
reject(error);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (info.done) {
|
|
30
|
+
resolve(value);
|
|
31
|
+
} else {
|
|
32
|
+
Promise.resolve(value).then(_next, _throw);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function _async_to_generator(fn) {
|
|
36
|
+
return function() {
|
|
37
|
+
var self = this, args = arguments;
|
|
38
|
+
return new Promise(function(resolve, reject) {
|
|
39
|
+
var gen = fn.apply(self, args);
|
|
40
|
+
function _next(value) {
|
|
41
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
42
|
+
}
|
|
43
|
+
function _throw(err) {
|
|
44
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
45
|
+
}
|
|
46
|
+
_next(undefined);
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function _define_property(obj, key, value) {
|
|
51
|
+
if (key in obj) {
|
|
52
|
+
Object.defineProperty(obj, key, {
|
|
53
|
+
value: value,
|
|
54
|
+
enumerable: true,
|
|
55
|
+
configurable: true,
|
|
56
|
+
writable: true
|
|
57
|
+
});
|
|
58
|
+
} else {
|
|
59
|
+
obj[key] = value;
|
|
60
|
+
}
|
|
61
|
+
return obj;
|
|
62
|
+
}
|
|
63
|
+
function _interop_require_default(obj) {
|
|
64
|
+
return obj && obj.__esModule ? obj : {
|
|
65
|
+
default: obj
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function _object_spread(target) {
|
|
69
|
+
for(var i = 1; i < arguments.length; i++){
|
|
70
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
71
|
+
var ownKeys = Object.keys(source);
|
|
72
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
73
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
74
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
75
|
+
}));
|
|
76
|
+
}
|
|
77
|
+
ownKeys.forEach(function(key) {
|
|
78
|
+
_define_property(target, key, source[key]);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
return target;
|
|
82
|
+
}
|
|
83
|
+
// import { getServerSideProps as serverProps } from '@lib/serverProps'
|
|
84
|
+
const Step = ()=>{
|
|
85
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
86
|
+
children: "Step"
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
function getServerSideProps(context) {
|
|
90
|
+
return _getServerSideProps.apply(this, arguments);
|
|
91
|
+
}
|
|
92
|
+
function _getServerSideProps() {
|
|
93
|
+
_getServerSideProps = _async_to_generator(function*(context) {
|
|
94
|
+
const { query } = context;
|
|
95
|
+
let rv;
|
|
96
|
+
if (query) {
|
|
97
|
+
const { step, wizardId } = query;
|
|
98
|
+
rv = {
|
|
99
|
+
props: {
|
|
100
|
+
step,
|
|
101
|
+
pathname: `.../${wizardId}/steps/${step}`
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
return _object_spread({}, rv);
|
|
106
|
+
});
|
|
107
|
+
return _getServerSideProps.apply(this, arguments);
|
|
108
|
+
}
|
|
109
|
+
const steps = (props)=>{
|
|
110
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(Step, _object_spread({}, props));
|
|
111
|
+
};
|
|
112
|
+
const _default = steps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './[step]';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
_export_star(require("./[step]"), exports);
|
|
6
|
+
function _export_star(from, to) {
|
|
7
|
+
Object.keys(from).forEach(function(k) {
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
9
|
+
Object.defineProperty(to, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function() {
|
|
12
|
+
return from[k];
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
return from;
|
|
18
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export { FxAggregationsBar, AggregationsDataPropsType, AggreationsBarPropsType }
|
|
|
3
3
|
export { FxAsyncDropdown, Option, StylesOptions, AsyncDropdownPropsType } from './FxAsyncDropdown';
|
|
4
4
|
export { FxAvatar, AvatarPropsType, BackgroundColorsType } from './FxAvatar';
|
|
5
5
|
export { FxButton, ButtonPropsType } from './FxButton';
|
|
6
|
-
export { FxCheckbox } from './FxCheckbox';
|
|
7
6
|
export { FxChip, ChipPropsType } from './FxChip';
|
|
8
7
|
export { FxDatesProgress } from './FxDatesProgress';
|
|
9
8
|
export { FxGeneralModal } from './FxGeneralModal';
|
package/dist/index.js
CHANGED
|
@@ -66,9 +66,6 @@ _export(exports, {
|
|
|
66
66
|
FxButtonModalWithMenu: function() {
|
|
67
67
|
return _FxButtonModalWithMenu.FxButtonModalWithMenu;
|
|
68
68
|
},
|
|
69
|
-
FxCheckbox: function() {
|
|
70
|
-
return _FxCheckbox.FxCheckbox;
|
|
71
|
-
},
|
|
72
69
|
FxChip: function() {
|
|
73
70
|
return _FxChip.FxChip;
|
|
74
71
|
},
|
|
@@ -237,7 +234,6 @@ const _FxAggregationsBar = require("./FxAggregationsBar");
|
|
|
237
234
|
const _FxAsyncDropdown = require("./FxAsyncDropdown");
|
|
238
235
|
const _FxAvatar = require("./FxAvatar");
|
|
239
236
|
const _FxButton = require("./FxButton");
|
|
240
|
-
const _FxCheckbox = require("./FxCheckbox");
|
|
241
237
|
const _FxChip = require("./FxChip");
|
|
242
238
|
const _FxDatesProgress = require("./FxDatesProgress");
|
|
243
239
|
const _FxGeneralModal = require("./FxGeneralModal");
|