@fixefy/fixefy-ui-components 0.3.74 → 0.3.78
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/FxActionsTray/styles/actionsTray.style.d.ts +3 -5
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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/FxSwitch/FxSwitch.d.ts +6 -0
- package/dist/{src/FxButton/FxButton.js → FxSwitch/FxSwitch.js} +5 -5
- package/dist/FxSwitch/index.d.ts +1 -0
- package/dist/{src/FxChip → FxSwitch}/index.js +5 -5
- package/dist/FxSwitch/styles/switch.styles.d.ts +1 -0
- package/dist/FxSwitch/styles/switch.styles.js +42 -0
- 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 -29
- 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/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/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
|
@@ -21,12 +21,12 @@ _export(exports, {
|
|
|
21
21
|
DataWrapper: function() {
|
|
22
22
|
return DataWrapper;
|
|
23
23
|
},
|
|
24
|
+
FxLink: function() {
|
|
25
|
+
return FxLink;
|
|
26
|
+
},
|
|
24
27
|
Label: function() {
|
|
25
28
|
return Label;
|
|
26
29
|
},
|
|
27
|
-
Link: function() {
|
|
28
|
-
return Link;
|
|
29
|
-
},
|
|
30
30
|
PageHeader: function() {
|
|
31
31
|
return PageHeader;
|
|
32
32
|
},
|
|
@@ -50,7 +50,11 @@ const _jsxruntime = require("react/jsx-runtime");
|
|
|
50
50
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
51
51
|
const _styles = require("@mui/material/styles");
|
|
52
52
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
53
|
-
const
|
|
53
|
+
const _Paper = /*#__PURE__*/ _interop_require_default(require("@mui/material/Paper"));
|
|
54
|
+
const _Link = /*#__PURE__*/ _interop_require_default(require("@mui/material/Link"));
|
|
55
|
+
const _Typography = /*#__PURE__*/ _interop_require_default(require("@mui/material/Typography"));
|
|
56
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
57
|
+
const _Grid = /*#__PURE__*/ _interop_require_default(require("@mui/material/Grid"));
|
|
54
58
|
function _define_property(obj, key, value) {
|
|
55
59
|
if (key in obj) {
|
|
56
60
|
Object.defineProperty(obj, key, {
|
|
@@ -64,6 +68,11 @@ function _define_property(obj, key, value) {
|
|
|
64
68
|
}
|
|
65
69
|
return obj;
|
|
66
70
|
}
|
|
71
|
+
function _interop_require_default(obj) {
|
|
72
|
+
return obj && obj.__esModule ? obj : {
|
|
73
|
+
default: obj
|
|
74
|
+
};
|
|
75
|
+
}
|
|
67
76
|
function _getRequireWildcardCache(nodeInterop) {
|
|
68
77
|
if (typeof WeakMap !== "function") return null;
|
|
69
78
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -144,49 +153,49 @@ function _object_spread_props(target, source) {
|
|
|
144
153
|
}
|
|
145
154
|
return target;
|
|
146
155
|
}
|
|
147
|
-
const Card = (0, _styles.styled)(
|
|
156
|
+
const Card = (0, _styles.styled)(_Paper.default)(({})=>({
|
|
148
157
|
borderRadius: 8,
|
|
149
158
|
padding: 16,
|
|
150
159
|
// transition: "max-height 1000ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
151
160
|
overflow: 'hidden',
|
|
152
161
|
position: 'relative'
|
|
153
162
|
}));
|
|
154
|
-
const PageHeader = (0, _styles.styled)(
|
|
163
|
+
const PageHeader = (0, _styles.styled)(_Box.default)(({})=>({
|
|
155
164
|
backgroundColor: '#E2EEF1',
|
|
156
165
|
width: '100%',
|
|
157
166
|
height: 220,
|
|
158
167
|
padding: 32
|
|
159
168
|
}));
|
|
160
|
-
const Label = (0, _styles.styled)(
|
|
169
|
+
const Label = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.overLineCaption), {
|
|
161
170
|
color: theme.palette.statistics.label
|
|
162
171
|
}));
|
|
163
|
-
const BoldValue = (0, _styles.styled)(
|
|
172
|
+
const BoldValue = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.subtitle2), {
|
|
164
173
|
fontWeight: 700,
|
|
165
174
|
lineHeight: '16px',
|
|
166
175
|
color: theme.palette.typography.title
|
|
167
176
|
}));
|
|
168
|
-
const Value = (0, _styles.styled)(
|
|
177
|
+
const Value = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
169
178
|
fontFamily: theme.typography.fontFamily,
|
|
170
179
|
lineHeight: '20px',
|
|
171
180
|
color: theme.palette.typography.title
|
|
172
181
|
}));
|
|
173
|
-
const PageTitle = (0, _styles.styled)(
|
|
182
|
+
const PageTitle = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.h4), {
|
|
174
183
|
color: theme.palette.common.black
|
|
175
184
|
}));
|
|
176
|
-
const
|
|
185
|
+
const FxLink = (0, _styles.styled)(_Link.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
177
186
|
lineHeight: '20px',
|
|
178
187
|
fontStyle: 'italic',
|
|
179
188
|
color: theme.palette.primary[500],
|
|
180
189
|
cursor: 'pointer',
|
|
181
190
|
textDecoration: 'none'
|
|
182
191
|
}));
|
|
183
|
-
const Text = (0, _styles.styled)(
|
|
192
|
+
const Text = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
184
193
|
color: theme.palette.typography.title,
|
|
185
194
|
textOverflow: 'ellipsis',
|
|
186
195
|
whiteSpace: 'nowrap',
|
|
187
196
|
overflow: 'hidden'
|
|
188
197
|
}));
|
|
189
|
-
const ShowMore = (0, _styles.styled)(
|
|
198
|
+
const ShowMore = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
190
199
|
color: theme.palette.primary['500'],
|
|
191
200
|
fontWeight: 600,
|
|
192
201
|
fontSize: '12px',
|
|
@@ -194,7 +203,7 @@ const ShowMore = (0, _styles.styled)(_material.Typography)(({ theme })=>_object_
|
|
|
194
203
|
lineHeight: '24px',
|
|
195
204
|
cursor: 'pointer'
|
|
196
205
|
}));
|
|
197
|
-
const ShowMoreContainer = (0, _styles.styled)(
|
|
206
|
+
const ShowMoreContainer = (0, _styles.styled)(_Grid.default)(({ theme })=>({
|
|
198
207
|
backgroundColor: theme.palette.common.white,
|
|
199
208
|
width: '100%',
|
|
200
209
|
display: 'flex',
|
|
@@ -208,10 +217,10 @@ const DataWrapper = ({ values = [], title, icon, columns = 4, cardStyle = {}, wr
|
|
|
208
217
|
] : values;
|
|
209
218
|
const last4Items = normalizedValues.splice(-columns);
|
|
210
219
|
const containerColumns = columns === 5 ? 10 : 12;
|
|
211
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
220
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
212
221
|
sx: _object_spread({}, wrapperStyle),
|
|
213
222
|
children: [
|
|
214
|
-
(title || icon) && /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
223
|
+
(title || icon) && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
215
224
|
display: "flex",
|
|
216
225
|
alignItems: "center",
|
|
217
226
|
sx: {
|
|
@@ -231,19 +240,19 @@ const DataWrapper = ({ values = [], title, icon, columns = 4, cardStyle = {}, wr
|
|
|
231
240
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(Card, {
|
|
232
241
|
elevation: 0,
|
|
233
242
|
sx: _object_spread({
|
|
234
|
-
border:
|
|
243
|
+
border: '1px solid #F0F0F0'
|
|
235
244
|
}, cardStyle),
|
|
236
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
245
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Grid.default, {
|
|
237
246
|
container: true,
|
|
238
247
|
columns: containerColumns,
|
|
239
248
|
children: [
|
|
240
249
|
normalizedValues.map((value, index)=>{
|
|
241
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
250
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Grid.default, {
|
|
242
251
|
sx: {
|
|
243
252
|
minHeight: 74,
|
|
244
253
|
padding: 2,
|
|
245
|
-
borderRight: value && (index + 1) % columns !== 0 &&
|
|
246
|
-
borderBottom: value &&
|
|
254
|
+
borderRight: value && (index + 1) % columns !== 0 && '1px solid #F0F0F0',
|
|
255
|
+
borderBottom: value && '1px solid #F0F0F0',
|
|
247
256
|
display: 'flex',
|
|
248
257
|
alignItems: 'center'
|
|
249
258
|
},
|
|
@@ -253,11 +262,11 @@ const DataWrapper = ({ values = [], title, icon, columns = 4, cardStyle = {}, wr
|
|
|
253
262
|
}, index);
|
|
254
263
|
}),
|
|
255
264
|
last4Items.map((value, index)=>{
|
|
256
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
265
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Grid.default, {
|
|
257
266
|
sx: {
|
|
258
267
|
minHeight: 74,
|
|
259
268
|
padding: 2,
|
|
260
|
-
borderRight: value && (index + 1) % columns !== 0 &&
|
|
269
|
+
borderRight: value && (index + 1) % columns !== 0 && '1px solid #F0F0F0',
|
|
261
270
|
display: 'flex',
|
|
262
271
|
alignItems: 'center'
|
|
263
272
|
},
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
Object.defineProperty(exports, "
|
|
5
|
+
Object.defineProperty(exports, "FxSwitch", {
|
|
6
6
|
enumerable: true,
|
|
7
7
|
get: function() {
|
|
8
|
-
return
|
|
8
|
+
return FxSwitch;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
const
|
|
13
|
+
const _switchstyles = require("./styles/switch.styles");
|
|
14
14
|
function _define_property(obj, key, value) {
|
|
15
15
|
if (key in obj) {
|
|
16
16
|
Object.defineProperty(obj, key, {
|
|
@@ -95,12 +95,12 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
95
95
|
}
|
|
96
96
|
return target;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function FxSwitch(_param) {
|
|
99
99
|
var { type = 'primary', children } = _param, rest = _object_without_properties(_param, [
|
|
100
100
|
"type",
|
|
101
101
|
"children"
|
|
102
102
|
]);
|
|
103
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
103
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_switchstyles.SwitchStyled, _object_spread_props(_object_spread({}, rest), {
|
|
104
104
|
children: children
|
|
105
105
|
}));
|
|
106
106
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FxSwitch, SwitchPropsType } from './FxSwitch';
|
|
@@ -9,11 +9,11 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
13
|
-
return
|
|
12
|
+
FxSwitch: function() {
|
|
13
|
+
return _FxSwitch.FxSwitch;
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
return
|
|
15
|
+
SwitchPropsType: function() {
|
|
16
|
+
return _FxSwitch.SwitchPropsType;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
const
|
|
19
|
+
const _FxSwitch = require("./FxSwitch");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SwitchStyled: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "SwitchStyled", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return SwitchStyled;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _material = require("@mui/material");
|
|
12
|
+
const _styles = require("@mui/material/styles");
|
|
13
|
+
const SwitchStyled = (0, _styles.styled)(_material.Switch)(({ theme })=>({
|
|
14
|
+
width: '42px',
|
|
15
|
+
height: '24px',
|
|
16
|
+
padding: 0,
|
|
17
|
+
'& .MuiSwitch-switchBase': {
|
|
18
|
+
padding: '3px',
|
|
19
|
+
'&.Mui-checked': {
|
|
20
|
+
transform: 'translateX(18px)',
|
|
21
|
+
'& .MuiSwitch-thumb': {
|
|
22
|
+
backgroundColor: theme.palette.common.white,
|
|
23
|
+
width: '18px',
|
|
24
|
+
height: '18px'
|
|
25
|
+
},
|
|
26
|
+
'& + .MuiSwitch-track': {
|
|
27
|
+
backgroundColor: '#568793',
|
|
28
|
+
opacity: 1
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
'& .MuiSwitch-thumb': {
|
|
33
|
+
backgroundColor: theme.palette.common.white,
|
|
34
|
+
width: '18px',
|
|
35
|
+
height: '18px'
|
|
36
|
+
},
|
|
37
|
+
'& .MuiSwitch-track': {
|
|
38
|
+
backgroundColor: '#C5C8C9',
|
|
39
|
+
borderRadius: '75px',
|
|
40
|
+
opacity: 1
|
|
41
|
+
}
|
|
42
|
+
}));
|
package/dist/FxTabs/FxTabs.js
CHANGED
|
@@ -10,8 +10,12 @@ Object.defineProperty(exports, "FxTabs", {
|
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
const
|
|
14
|
-
const
|
|
13
|
+
const _TabContext = /*#__PURE__*/ _interop_require_default(require("@mui/lab/TabContext"));
|
|
14
|
+
const _TabPanel = /*#__PURE__*/ _interop_require_default(require("@mui/lab/TabPanel"));
|
|
15
|
+
const _TabList = /*#__PURE__*/ _interop_require_default(require("@mui/lab/TabList"));
|
|
16
|
+
const _styles = require("@mui/material/styles");
|
|
17
|
+
const _Tab = /*#__PURE__*/ _interop_require_default(require("@mui/material/Tab"));
|
|
18
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
15
19
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
16
20
|
function _interop_require_default(obj) {
|
|
17
21
|
return obj && obj.__esModule ? obj : {
|
|
@@ -19,11 +23,11 @@ function _interop_require_default(obj) {
|
|
|
19
23
|
};
|
|
20
24
|
}
|
|
21
25
|
const FxTabs = ({ activeTab, tabsData, onChange, divider = false, adjecentComponent })=>{
|
|
22
|
-
const theme = (0,
|
|
23
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
26
|
+
const theme = (0, _styles.useTheme)();
|
|
27
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_TabContext.default, {
|
|
24
28
|
value: activeTab,
|
|
25
29
|
children: [
|
|
26
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
30
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_TabList.default, {
|
|
27
31
|
sx: {
|
|
28
32
|
'.MuiTabs-flexContainer': {
|
|
29
33
|
gap: '28px',
|
|
@@ -33,7 +37,7 @@ const FxTabs = ({ activeTab, tabsData, onChange, divider = false, adjecentCompon
|
|
|
33
37
|
children: [
|
|
34
38
|
tabsData.map((tab, i)=>{
|
|
35
39
|
const { value, label } = tab;
|
|
36
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
40
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Tab.default, {
|
|
37
41
|
onClick: ()=>{
|
|
38
42
|
onChange(value);
|
|
39
43
|
},
|
|
@@ -42,7 +46,7 @@ const FxTabs = ({ activeTab, tabsData, onChange, divider = false, adjecentCompon
|
|
|
42
46
|
p: '0 4px',
|
|
43
47
|
textTransform: 'capitalize',
|
|
44
48
|
'&.Mui-selected': {
|
|
45
|
-
//@ts-
|
|
49
|
+
//@ts-expect-error 500 is a valid color
|
|
46
50
|
color: theme.palette.primary[500],
|
|
47
51
|
fontWeight: 700
|
|
48
52
|
}
|
|
@@ -54,14 +58,14 @@ const FxTabs = ({ activeTab, tabsData, onChange, divider = false, adjecentCompon
|
|
|
54
58
|
adjecentComponent
|
|
55
59
|
]
|
|
56
60
|
}),
|
|
57
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
61
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
58
62
|
sx: {
|
|
59
63
|
borderTop: divider ? '1px solid #C5C8C9' : 'none',
|
|
60
64
|
margin: '0 32px'
|
|
61
65
|
},
|
|
62
66
|
children: tabsData.map((tab, i)=>{
|
|
63
67
|
const { value, tabContent } = tab;
|
|
64
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
68
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_TabPanel.default, {
|
|
65
69
|
value: value,
|
|
66
70
|
sx: {
|
|
67
71
|
padding: '24px 0'
|
package/dist/FxTag/FxTag.js
CHANGED
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "FxTag", {
|
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
const
|
|
13
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
14
14
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
15
15
|
const _tagstyles = require("./styles/tag.styles");
|
|
16
16
|
function _interop_require_default(obj) {
|
|
@@ -18,7 +18,7 @@ function _interop_require_default(obj) {
|
|
|
18
18
|
default: obj
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
const FxTag = ({ name, count = 0, type })=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
21
|
+
const FxTag = ({ name, count = 0, type })=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
22
22
|
display: "flex",
|
|
23
23
|
alignItems: "center",
|
|
24
24
|
justifyContent: "center",
|
package/dist/FxTag/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FxTag, TagPropsType } from
|
|
1
|
+
export { FxTag, TagPropsType } from './FxTag';
|
|
@@ -20,7 +20,8 @@ _export(exports, {
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
const _styles = require("@mui/material/styles");
|
|
23
|
-
const
|
|
23
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
24
|
+
const _Typography = /*#__PURE__*/ _interop_require_default(require("@mui/material/Typography"));
|
|
24
25
|
function _define_property(obj, key, value) {
|
|
25
26
|
if (key in obj) {
|
|
26
27
|
Object.defineProperty(obj, key, {
|
|
@@ -34,6 +35,11 @@ function _define_property(obj, key, value) {
|
|
|
34
35
|
}
|
|
35
36
|
return obj;
|
|
36
37
|
}
|
|
38
|
+
function _interop_require_default(obj) {
|
|
39
|
+
return obj && obj.__esModule ? obj : {
|
|
40
|
+
default: obj
|
|
41
|
+
};
|
|
42
|
+
}
|
|
37
43
|
function _object_spread(target) {
|
|
38
44
|
for(var i = 1; i < arguments.length; i++){
|
|
39
45
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -73,7 +79,7 @@ function _object_spread_props(target, source) {
|
|
|
73
79
|
}
|
|
74
80
|
return target;
|
|
75
81
|
}
|
|
76
|
-
const StyledTag = (0, _styles.styled)(
|
|
82
|
+
const StyledTag = (0, _styles.styled)(_Box.default)(({ theme, name, type })=>{
|
|
77
83
|
var _theme_palette_type_name, _theme_palette_type, _theme_palette_tag_name, _theme_palette_type_name1, _theme_palette_type1, _theme_palette_tag_name1;
|
|
78
84
|
return {
|
|
79
85
|
background: type ? (_theme_palette_type = theme.palette[type]) === null || _theme_palette_type === void 0 ? void 0 : (_theme_palette_type_name = _theme_palette_type[name]) === null || _theme_palette_type_name === void 0 ? void 0 : _theme_palette_type_name.background : (_theme_palette_tag_name = theme.palette.tag[name]) === null || _theme_palette_tag_name === void 0 ? void 0 : _theme_palette_tag_name.background,
|
|
@@ -85,11 +91,11 @@ const StyledTag = (0, _styles.styled)(_material.Box)(({ theme, name, type })=>{
|
|
|
85
91
|
width: 'fit-content'
|
|
86
92
|
};
|
|
87
93
|
});
|
|
88
|
-
const StyledLabel = (0, _styles.styled)(
|
|
94
|
+
const StyledLabel = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
89
95
|
lineHeight: '20px',
|
|
90
96
|
color: theme.palette.common.white
|
|
91
97
|
}));
|
|
92
|
-
const StyledCount = (0, _styles.styled)(
|
|
98
|
+
const StyledCount = (0, _styles.styled)(_Typography.default)(({ theme, name, type })=>{
|
|
93
99
|
var _theme_palette_type_name, _theme_palette_type, _theme_palette_tag_name;
|
|
94
100
|
return _object_spread_props(_object_spread({}, theme.typography.subtitle2), {
|
|
95
101
|
lineHeight: '16px',
|
|
@@ -19,7 +19,10 @@ _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 _FormControl = /*#__PURE__*/ _interop_require_default(require("@mui/material/FormControl"));
|
|
23
|
+
const _FormHelperText = /*#__PURE__*/ _interop_require_default(require("@mui/material/FormHelperText"));
|
|
24
|
+
const _InputBase = /*#__PURE__*/ _interop_require_default(require("@mui/material/InputBase"));
|
|
25
|
+
const _InputLabel = /*#__PURE__*/ _interop_require_default(require("@mui/material/InputLabel"));
|
|
23
26
|
const _ErrorRounded = /*#__PURE__*/ _interop_require_default(require("@mui/icons-material/ErrorRounded"));
|
|
24
27
|
function _define_property(obj, key, value) {
|
|
25
28
|
if (key in obj) {
|
|
@@ -134,11 +137,11 @@ const FxTextField = ({ autoFocus, droppedItem, defaultValue = '', onChange, stru
|
|
|
134
137
|
onChange && onChange(e);
|
|
135
138
|
setValue(e.target.value);
|
|
136
139
|
};
|
|
137
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
140
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_FormControl.default, {
|
|
138
141
|
variant: "standard",
|
|
139
142
|
error: error,
|
|
140
143
|
children: [
|
|
141
|
-
title && /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
144
|
+
title && /*#__PURE__*/ (0, _jsxruntime.jsx)(_InputLabel.default, {
|
|
142
145
|
shrink: true,
|
|
143
146
|
htmlFor: title,
|
|
144
147
|
sx: (theme)=>_object_spread(_object_spread_props(_object_spread({
|
|
@@ -154,7 +157,7 @@ const FxTextField = ({ autoFocus, droppedItem, defaultValue = '', onChange, stru
|
|
|
154
157
|
}
|
|
155
158
|
}), required && {
|
|
156
159
|
'&:before': {
|
|
157
|
-
content:
|
|
160
|
+
content: '\'*\'',
|
|
158
161
|
color: theme.palette.redscale.main,
|
|
159
162
|
display: 'inline-block',
|
|
160
163
|
marginRight: '5px'
|
|
@@ -162,7 +165,7 @@ const FxTextField = ({ autoFocus, droppedItem, defaultValue = '', onChange, stru
|
|
|
162
165
|
}),
|
|
163
166
|
children: (0, _fixefyuiutils.titleCase)(title)
|
|
164
167
|
}),
|
|
165
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
168
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_InputBase.default, {
|
|
166
169
|
endAdornment: endAdornment,
|
|
167
170
|
startAdornment: startAdornment,
|
|
168
171
|
id: title,
|
|
@@ -173,7 +176,7 @@ const FxTextField = ({ autoFocus, droppedItem, defaultValue = '', onChange, stru
|
|
|
173
176
|
value: value,
|
|
174
177
|
error: error
|
|
175
178
|
}),
|
|
176
|
-
error && errorText ? /*#__PURE__*/ (0, _jsxruntime.jsxs)(
|
|
179
|
+
error && errorText ? /*#__PURE__*/ (0, _jsxruntime.jsxs)(_FormHelperText.default, {
|
|
177
180
|
sx: (theme)=>({
|
|
178
181
|
'&.Mui-error': {
|
|
179
182
|
color: theme.palette.redscale.main
|
|
@@ -195,7 +198,7 @@ const FxTextField = ({ autoFocus, droppedItem, defaultValue = '', onChange, stru
|
|
|
195
198
|
}),
|
|
196
199
|
(0, _fixefyuiutils.titleCase)(errorText)
|
|
197
200
|
]
|
|
198
|
-
}) : /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
201
|
+
}) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_FormHelperText.default, {
|
|
199
202
|
sx: (theme)=>({
|
|
200
203
|
color: theme.palette.greyscale.light,
|
|
201
204
|
fontSize: '11px'
|
package/dist/FxTodo/FxTodo.js
CHANGED
|
@@ -12,7 +12,7 @@ const _jsxruntime = require("react/jsx-runtime");
|
|
|
12
12
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
13
|
const _image = /*#__PURE__*/ _interop_require_default(require("next/image"));
|
|
14
14
|
const _FxAvatar = require("../FxAvatar");
|
|
15
|
-
const
|
|
15
|
+
const _Divider = /*#__PURE__*/ _interop_require_default(require("@mui/material/Divider"));
|
|
16
16
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
17
17
|
const _todostyles = require("./styles/todo.styles");
|
|
18
18
|
function _interop_require_default(obj) {
|
|
@@ -32,9 +32,9 @@ function FxTodo({ todo }) {
|
|
|
32
32
|
alt: todo.title,
|
|
33
33
|
width: 16,
|
|
34
34
|
height: 16,
|
|
35
|
-
loader: ()
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
loader: ()=>(0, _fixefyuiutils.imageLoader)({
|
|
36
|
+
src: 'invoices/severity_low.svg',
|
|
37
|
+
width: 16
|
|
38
38
|
}),
|
|
39
39
|
src: `invoices/severity_${todo.priority}.svg`,
|
|
40
40
|
onLoad: ()=>console.log('loaded'),
|
|
@@ -63,7 +63,7 @@ function FxTodo({ todo }) {
|
|
|
63
63
|
})
|
|
64
64
|
]
|
|
65
65
|
}),
|
|
66
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
66
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Divider.default, {
|
|
67
67
|
sx: {
|
|
68
68
|
mb: '16px'
|
|
69
69
|
}
|
|
@@ -10,14 +10,16 @@ Object.defineProperty(exports, "FxToggleButtons", {
|
|
|
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
|
+
const _ToggleButtonGroup = /*#__PURE__*/ _interop_require_default(require("@mui/material/ToggleButtonGroup"));
|
|
15
|
+
const _ToggleButton = /*#__PURE__*/ _interop_require_default(require("@mui/material/ToggleButton"));
|
|
14
16
|
function _interop_require_default(obj) {
|
|
15
17
|
return obj && obj.__esModule ? obj : {
|
|
16
18
|
default: obj
|
|
17
19
|
};
|
|
18
20
|
}
|
|
19
21
|
const FxToggleButtons = ({ activeTab, tabsData, onChange, darkMode })=>{
|
|
20
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
22
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_ToggleButtonGroup.default, {
|
|
21
23
|
sx: {
|
|
22
24
|
height: '40px',
|
|
23
25
|
backgroundColor: darkMode ? '#323232' : '#fff'
|
|
@@ -33,9 +35,8 @@ const FxToggleButtons = ({ activeTab, tabsData, onChange, darkMode })=>{
|
|
|
33
35
|
},
|
|
34
36
|
children: tabsData.map((tab, i)=>{
|
|
35
37
|
const { value, show, label, maxWidth, minWidth } = tab;
|
|
36
|
-
return show && /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
38
|
+
return show && /*#__PURE__*/ (0, _jsxruntime.jsx)(_ToggleButton.default, {
|
|
37
39
|
disabled: activeTab === value,
|
|
38
|
-
//@ts-ignore
|
|
39
40
|
sx: {
|
|
40
41
|
'&.Mui-disabled': {
|
|
41
42
|
border: '1px solid #568793 !important'
|
|
@@ -51,7 +52,7 @@ const FxToggleButtons = ({ activeTab, tabsData, onChange, darkMode })=>{
|
|
|
51
52
|
}
|
|
52
53
|
},
|
|
53
54
|
value: value,
|
|
54
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
55
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
55
56
|
sx: {
|
|
56
57
|
textTransform: 'none'
|
|
57
58
|
},
|
|
@@ -16,7 +16,7 @@ const _FxIcon = require("../FxIcon");
|
|
|
16
16
|
const _nexts3upload = require("@fixefy/next-s3-upload");
|
|
17
17
|
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
18
18
|
const _fixefyhooks = require("@fixefy/fixefy-hooks");
|
|
19
|
-
const
|
|
19
|
+
const _CircularProgress = /*#__PURE__*/ _interop_require_default(require("@mui/material/CircularProgress"));
|
|
20
20
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
21
21
|
try {
|
|
22
22
|
var info = gen[key](arg);
|
|
@@ -98,22 +98,25 @@ const FxUserImage = ({ bucketAddress, user, loading, setLoading })=>{
|
|
|
98
98
|
const { downloadFromS3 } = (0, _nexts3upload.useS3Download)('download-bytearray');
|
|
99
99
|
const { email, full_name, first_name, last_name } = user;
|
|
100
100
|
var _ref;
|
|
101
|
-
// @ts-
|
|
101
|
+
// @ts-expect-error try to write in a good manner - no trick no hacks
|
|
102
102
|
const initials = (0, _fixefyuiutils.toInitials)((_ref = full_name !== null && full_name !== void 0 ? full_name : first_name && last_name) !== null && _ref !== void 0 ? _ref : 'unknown').slice(0, 2);
|
|
103
103
|
const [file, setFile] = (0, _react.useState)(null);
|
|
104
104
|
const [files, setFiles] = (0, _react.useState)([]);
|
|
105
105
|
(0, _react.useEffect)(()=>{
|
|
106
106
|
fetchFiles();
|
|
107
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
107
108
|
}, []);
|
|
108
109
|
(0, _react.useEffect)(()=>{
|
|
109
110
|
if (file) {
|
|
110
111
|
setLoading(false);
|
|
111
112
|
}
|
|
113
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
112
114
|
}, [
|
|
113
115
|
file
|
|
114
116
|
]);
|
|
115
117
|
(0, _react.useEffect)(()=>{
|
|
116
118
|
fetchFile(files);
|
|
119
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
117
120
|
}, []);
|
|
118
121
|
//// fetch single file from s3
|
|
119
122
|
const fetchFile = function() {
|
|
@@ -183,7 +186,7 @@ const FxUserImage = ({ bucketAddress, user, loading, setLoading })=>{
|
|
|
183
186
|
return _ref.apply(this, arguments);
|
|
184
187
|
};
|
|
185
188
|
}();
|
|
186
|
-
if (loading) return /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
189
|
+
if (loading) return /*#__PURE__*/ (0, _jsxruntime.jsx)(_CircularProgress.default, {
|
|
187
190
|
size: 24
|
|
188
191
|
});
|
|
189
192
|
if (!file && !loading) return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
@@ -219,6 +222,7 @@ const ImageView = ({ data, fileName, type })=>{
|
|
|
219
222
|
setImageSrc(null);
|
|
220
223
|
return;
|
|
221
224
|
}
|
|
225
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
222
226
|
}, [
|
|
223
227
|
data
|
|
224
228
|
]);
|
package/dist/index.d.ts
CHANGED
|
@@ -33,4 +33,4 @@ export { FxTextField, TextFieldPropsType } from './FxTextField';
|
|
|
33
33
|
export { FxTodo, TodoItemType, TodoPropsType } from './FxTodo';
|
|
34
34
|
export { FxUserImage } from './FxUserImage';
|
|
35
35
|
export { FxWizard, StepsLauncher } from './FxWizard';
|
|
36
|
-
export { Card, PageHeader, Label, BoldValue, Value, PageTitle,
|
|
36
|
+
export { Card, PageHeader, Label, BoldValue, Value, PageTitle, FxLink, Text, ShowMore, ShowMoreContainer, DataWrapper, Bars, } from './FxStyledComponents';
|
package/dist/index.js
CHANGED
|
@@ -81,6 +81,9 @@ _export(exports, {
|
|
|
81
81
|
FxIcon: function() {
|
|
82
82
|
return _FxIcon.FxIcon;
|
|
83
83
|
},
|
|
84
|
+
FxLink: function() {
|
|
85
|
+
return _FxStyledComponents.FxLink;
|
|
86
|
+
},
|
|
84
87
|
FxMenuItemWithIcon: function() {
|
|
85
88
|
return _FxMenuItemWithIcon.FxMenuItemWithIcon;
|
|
86
89
|
},
|
|
@@ -147,9 +150,6 @@ _export(exports, {
|
|
|
147
150
|
Label: function() {
|
|
148
151
|
return _FxStyledComponents.Label;
|
|
149
152
|
},
|
|
150
|
-
Link: function() {
|
|
151
|
-
return _FxStyledComponents.Link;
|
|
152
|
-
},
|
|
153
153
|
ModalPropsType: function() {
|
|
154
154
|
return _FxModal.ModalPropsType;
|
|
155
155
|
},
|