@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
|
@@ -1,190 +0,0 @@
|
|
|
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
|
-
InputWrapper: function() {
|
|
13
|
-
return InputWrapper;
|
|
14
|
-
},
|
|
15
|
-
Root: function() {
|
|
16
|
-
return Root;
|
|
17
|
-
},
|
|
18
|
-
StyledListBox: function() {
|
|
19
|
-
return StyledListBox;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const _styles = require("@mui/material/styles");
|
|
23
|
-
function _define_property(obj, key, value) {
|
|
24
|
-
if (key in obj) {
|
|
25
|
-
Object.defineProperty(obj, key, {
|
|
26
|
-
value: value,
|
|
27
|
-
enumerable: true,
|
|
28
|
-
configurable: true,
|
|
29
|
-
writable: true
|
|
30
|
-
});
|
|
31
|
-
} else {
|
|
32
|
-
obj[key] = value;
|
|
33
|
-
}
|
|
34
|
-
return obj;
|
|
35
|
-
}
|
|
36
|
-
function _object_spread(target) {
|
|
37
|
-
for(var i = 1; i < arguments.length; i++){
|
|
38
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
39
|
-
var ownKeys = Object.keys(source);
|
|
40
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
41
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
42
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
43
|
-
}));
|
|
44
|
-
}
|
|
45
|
-
ownKeys.forEach(function(key) {
|
|
46
|
-
_define_property(target, key, source[key]);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
return target;
|
|
50
|
-
}
|
|
51
|
-
function ownKeys(object, enumerableOnly) {
|
|
52
|
-
var keys = Object.keys(object);
|
|
53
|
-
if (Object.getOwnPropertySymbols) {
|
|
54
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
55
|
-
if (enumerableOnly) {
|
|
56
|
-
symbols = symbols.filter(function(sym) {
|
|
57
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
keys.push.apply(keys, symbols);
|
|
61
|
-
}
|
|
62
|
-
return keys;
|
|
63
|
-
}
|
|
64
|
-
function _object_spread_props(target, source) {
|
|
65
|
-
source = source != null ? source : {};
|
|
66
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
67
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
68
|
-
} else {
|
|
69
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
70
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
return target;
|
|
74
|
-
}
|
|
75
|
-
const Root = (0, _styles.styled)('div')(({ props })=>{
|
|
76
|
-
return _object_spread({
|
|
77
|
-
color: 'rgba(0,0,0,.85)',
|
|
78
|
-
fontSize: 14,
|
|
79
|
-
background: '#FFFFFF',
|
|
80
|
-
padding: '0 16px',
|
|
81
|
-
position: 'relative',
|
|
82
|
-
' & .MuiBox-root': {
|
|
83
|
-
['& > div']: {
|
|
84
|
-
padding: 0
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}, props);
|
|
88
|
-
});
|
|
89
|
-
const InputWrapper = (0, _styles.styled)('div')(({ theme, hasValue, disabled })=>{
|
|
90
|
-
const disabledBorder = `1px solid ${theme.palette.greyscale[200]}`;
|
|
91
|
-
const activeBorder = `1px solid ${theme.palette.primary[500]}`;
|
|
92
|
-
return {
|
|
93
|
-
backgroundColor: theme.palette.common.white,
|
|
94
|
-
borderRadius: 4,
|
|
95
|
-
padding: 1,
|
|
96
|
-
display: 'flex',
|
|
97
|
-
alignItems: 'center',
|
|
98
|
-
flexWrap: 'wrap',
|
|
99
|
-
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
100
|
-
width: '100%',
|
|
101
|
-
border: 'none !important',
|
|
102
|
-
outline: 'none !important',
|
|
103
|
-
['&:hover']: {
|
|
104
|
-
border: disabled ? disabledBorder : activeBorder,
|
|
105
|
-
borderRadius: 4
|
|
106
|
-
},
|
|
107
|
-
['&:focus']: {
|
|
108
|
-
border: disabled ? disabledBorder : activeBorder,
|
|
109
|
-
borderRadius: 4
|
|
110
|
-
},
|
|
111
|
-
['& > svg']: {
|
|
112
|
-
color: disabled ? theme.palette.greyscale[300] : theme.palette.primary['500'],
|
|
113
|
-
marginRight: 8
|
|
114
|
-
},
|
|
115
|
-
['& input']: _object_spread_props(_object_spread({
|
|
116
|
-
border: 'none',
|
|
117
|
-
outline: 'none',
|
|
118
|
-
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
119
|
-
backgroundColor: theme.palette.common.white,
|
|
120
|
-
color: theme.palette.typography.title,
|
|
121
|
-
height: 36,
|
|
122
|
-
boxSizing: 'border-box',
|
|
123
|
-
width: 0,
|
|
124
|
-
minWidth: 30,
|
|
125
|
-
flexGrow: 1,
|
|
126
|
-
margin: 0
|
|
127
|
-
}, theme.typography.body1), {
|
|
128
|
-
lineHeight: '20px',
|
|
129
|
-
['& ::placeholder']: {
|
|
130
|
-
color: hasValue ? theme.palette.typography.title : theme.palette.greyscale[400]
|
|
131
|
-
}
|
|
132
|
-
})
|
|
133
|
-
};
|
|
134
|
-
});
|
|
135
|
-
const StyledListBox = (0, _styles.styled)('ul')(({ theme })=>({
|
|
136
|
-
margin: 0,
|
|
137
|
-
padding: 0,
|
|
138
|
-
listStyle: 'none',
|
|
139
|
-
backgroundColor: theme.palette.common.white,
|
|
140
|
-
overflow: 'auto',
|
|
141
|
-
zIndex: 1,
|
|
142
|
-
textOverflow: 'ellipsis',
|
|
143
|
-
whiteSpace: 'nowrap',
|
|
144
|
-
overflowX: 'hidden',
|
|
145
|
-
paddingTop: 8,
|
|
146
|
-
paddingBottom: 8,
|
|
147
|
-
'&::-webkit-scrollbar': {
|
|
148
|
-
width: '8px',
|
|
149
|
-
backgroundColor: 'transparent'
|
|
150
|
-
},
|
|
151
|
-
'&::-webkit-scrollbar-thumb': {
|
|
152
|
-
backgroundColor: '#8B9092',
|
|
153
|
-
borderRadius: '8px'
|
|
154
|
-
},
|
|
155
|
-
// To support Firefox
|
|
156
|
-
scrollbarWidth: 'thin',
|
|
157
|
-
scrollbarColor: '#8B9092 transparent',
|
|
158
|
-
maxHeight: '300px',
|
|
159
|
-
overflowY: 'auto',
|
|
160
|
-
['& div']: {
|
|
161
|
-
textOverflow: 'ellipsis',
|
|
162
|
-
whiteSpace: 'nowrap',
|
|
163
|
-
overflow: 'hidden'
|
|
164
|
-
},
|
|
165
|
-
['& li']: {
|
|
166
|
-
display: 'flex',
|
|
167
|
-
alignItems: 'center',
|
|
168
|
-
justifyContent: 'flex-start',
|
|
169
|
-
height: 40,
|
|
170
|
-
cursor: 'pointer',
|
|
171
|
-
textOverflow: 'ellipsis',
|
|
172
|
-
whiteSpace: 'nowrap',
|
|
173
|
-
overflow: 'hidden',
|
|
174
|
-
width: '100%'
|
|
175
|
-
},
|
|
176
|
-
['& li:hover']: {
|
|
177
|
-
backgroundColor: '#F6F9FA'
|
|
178
|
-
},
|
|
179
|
-
["& li[aria-selected='true']"]: {
|
|
180
|
-
fontWeight: 900,
|
|
181
|
-
backgroundColor: '#F6F9FA'
|
|
182
|
-
},
|
|
183
|
-
["& li[data-focus='true']"]: {
|
|
184
|
-
backgroundColor: '#F6F9FA',
|
|
185
|
-
cursor: 'pointer',
|
|
186
|
-
['& svg ']: {
|
|
187
|
-
color: 'currentColor'
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}));
|
|
@@ -1,42 +0,0 @@
|
|
|
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;
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getEnvSuffix: () => string;
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './envHelpers';
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './[step]';
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|