@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.
Files changed (197) hide show
  1. package/dist/FxActionsTray/FxActionsTray.js +17 -12
  2. package/dist/FxAggregationsBar/helpers/structureReader.js +6 -4
  3. package/dist/FxAsyncDropdown/FxAsyncDropdown.js +18 -10
  4. package/dist/FxAsyncDropdown/components/CheckboxIcon.js +8 -6
  5. package/dist/FxAsyncDropdown/components/ChipOption.d.ts +1 -1
  6. package/dist/FxAsyncDropdown/components/DeleteButton.js +2 -2
  7. package/dist/FxAsyncDropdown/components/LogoOption.d.ts +1 -1
  8. package/dist/FxAsyncDropdown/components/LogoOption.js +7 -6
  9. package/dist/FxAsyncDropdown/components/TextOption.d.ts +1 -1
  10. package/dist/FxAsyncDropdown/components/TextOption.js +7 -6
  11. package/dist/FxAsyncDropdown/styles/dropdown.styles.js +2 -2
  12. package/dist/FxAvatar/helpers/stringToColor.js +2 -2
  13. package/dist/FxAvatar/styles/avatar.styles.js +77 -36
  14. package/dist/FxButton/styles/button.styles.js +8 -3
  15. package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.d.ts +1 -1
  16. package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.js +11 -4
  17. package/dist/FxButtonModalWithMenu/FxButtonModalWithMenu.d.ts +1 -1
  18. package/dist/FxButtonModalWithMenu/FxButtonModalWithMenu.js +11 -4
  19. package/dist/FxChip/FxChip.js +2 -2
  20. package/dist/FxChip/styles/chip.styles.js +11 -6
  21. package/dist/FxDatesProgress/FxDatesProgress.js +8 -7
  22. package/dist/FxDatesProgress/styles/progress.styles.js +8 -2
  23. package/dist/FxGeneralModal/FxGeneralModal.js +12 -5
  24. package/dist/FxGridEmptyState/FxGridEmptyState.js +7 -6
  25. package/dist/FxGridError/FxGridError.js +8 -7
  26. package/dist/FxIcon/FxIcon.d.ts +1 -1
  27. package/dist/FxIcon/FxIcon.js +5 -4
  28. package/dist/FxIcon/content/index.d.ts +2 -2
  29. package/dist/FxIcon/content/lazy_icon.d.ts +1 -1
  30. package/dist/FxIcon/content/lazy_icon.js +4 -3
  31. package/dist/FxMenuItemWithIcon/FxMenuItemWithIcon.js +6 -4
  32. package/dist/FxModal/FxModal.js +4 -3
  33. package/dist/FxModal/styles/modal.style.js +12 -5
  34. package/dist/FxNotes/FxNotes.js +2 -2
  35. package/dist/FxNotes/helpers/stringToColor.js +2 -2
  36. package/dist/FxNotes/styles/notes.styles.js +2 -2
  37. package/dist/FxNumberField/FxNumberField.js +1 -2
  38. package/dist/FxNumberField/styles/number_field.styles.js +7 -2
  39. package/dist/FxObjStaticDropdown/FxObjStaticDropdown.js +27 -16
  40. package/dist/FxObjStaticDropdown/styles/dropdown.styles.js +2 -2
  41. package/dist/FxPopper/Popper.d.ts +2 -1
  42. package/dist/FxPopper/Popper.js +11 -6
  43. package/dist/FxPopper/PopperWithOutside.d.ts +1 -1
  44. package/dist/FxPopper/PopperWithOutside.js +4 -3
  45. package/dist/FxPopper/styles/popper.styles.js +1 -1
  46. package/dist/FxProgressCircle/styles/progress_circle.styles.js +12 -12
  47. package/dist/FxProgressCounter/ProgressCounter.js +10 -9
  48. package/dist/FxProgressCounter/styles/progress_counter.styles.js +12 -7
  49. package/dist/FxScore/FxScore.js +19 -11
  50. package/dist/FxScore/styles/score.styles.js +7 -2
  51. package/dist/FxShowMore/FxShowMore.js +2 -2
  52. package/dist/FxShowMore/styles/show_more.styles.js +16 -7
  53. package/dist/FxSlider/FxSlider.js +2 -2
  54. package/dist/FxStatisticsBar/FxStatisticsBar.js +12 -6
  55. package/dist/FxStatisticsBar/styles/statistics.styles.js +7 -2
  56. package/dist/FxStatusBar/FxStatusBar.js +7 -2
  57. package/dist/FxStatusBar/styles/statusBar.styles.js +22 -15
  58. package/dist/FxStrStaticDropdown/FxStrStaticDropdown.js +26 -16
  59. package/dist/FxStrStaticDropdown/styles/dropdown.styles.js +2 -2
  60. package/dist/FxStyledButton/FxStyledButton.d.ts +2 -2
  61. package/dist/FxStyledButton/FxStyledButton.js +4 -3
  62. package/dist/FxStyledComponents/index.d.ts +1 -1
  63. package/dist/FxStyledComponents/index.js +32 -23
  64. package/dist/FxTabs/FxTabs.js +13 -9
  65. package/dist/FxTag/FxTag.js +2 -2
  66. package/dist/FxTag/index.d.ts +1 -1
  67. package/dist/FxTag/styles/tag.styles.js +10 -4
  68. package/dist/FxTextField/FxTextField.d.ts +1 -1
  69. package/dist/FxTextField/FxTextField.js +10 -7
  70. package/dist/FxTodo/FxTodo.js +5 -5
  71. package/dist/FxToggleButtons/FxToggleButtons.js +6 -5
  72. package/dist/FxUserImage/FxUserImage.js +7 -3
  73. package/dist/index.d.ts +1 -1
  74. package/dist/index.js +3 -3
  75. package/package.json +31 -30
  76. package/dist/FxActionButton/FxActionButton.d.ts +0 -7
  77. package/dist/FxActionButton/FxActionButton.js +0 -82
  78. package/dist/FxActionButton/index.d.ts +0 -1
  79. package/dist/FxActionButton/index.js +0 -11
  80. package/dist/FxActionsTray/styles/actions_tray.styles.d.ts +0 -8
  81. package/dist/FxActionsTray/styles/actions_tray.styles.js +0 -159
  82. package/dist/FxAsyncDropdown/useDropdownStore.d.ts +0 -2
  83. package/dist/FxAsyncDropdown/useDropdownStore.js +0 -57
  84. package/dist/FxFilterActionButton/FxFilterActionButton.d.ts +0 -7
  85. package/dist/FxFilterActionButton/FxFilterActionButton.js +0 -82
  86. package/dist/FxFilterActionButton/index.d.ts +0 -1
  87. package/dist/FxFilterActionButton/index.js +0 -11
  88. package/dist/FxFilterSortButton/FxFilterSortButton.d.ts +0 -7
  89. package/dist/FxFilterSortButton/FxFilterSortButton.js +0 -82
  90. package/dist/FxFilterSortButton/index.d.ts +0 -1
  91. package/dist/FxFilterSortButton/index.js +0 -11
  92. package/dist/FxModalWithButton/FxModalWithButton.d.ts +0 -10
  93. package/dist/FxModalWithButton/FxModalWithButton.js +0 -131
  94. package/dist/FxModalWithButton/index.d.ts +0 -1
  95. package/dist/FxModalWithButton/index.js +0 -11
  96. package/dist/FxModalWithComponent/FxModalWithComponent.d.ts +0 -11
  97. package/dist/FxModalWithComponent/FxModalWithComponent.js +0 -102
  98. package/dist/FxModalWithComponent/index.d.ts +0 -1
  99. package/dist/FxModalWithComponent/index.js +0 -11
  100. package/dist/FxModalWithMenu/FxModalWithMenu.d.ts +0 -14
  101. package/dist/FxModalWithMenu/FxModalWithMenu.js +0 -114
  102. package/dist/FxModalWithMenu/index.d.ts +0 -1
  103. package/dist/FxModalWithMenu/index.js +0 -11
  104. package/dist/FxPopper/styles/makeStyles.d.ts +0 -16
  105. package/dist/FxPopper/styles/makeStyles.js +0 -23
  106. package/dist/FxStaticDropdown/FxStaticDropdown.d.ts +0 -24
  107. package/dist/FxStaticDropdown/FxStaticDropdown.js +0 -368
  108. package/dist/FxStaticDropdown/helpers/helpers.d.ts +0 -2
  109. package/dist/FxStaticDropdown/helpers/helpers.js +0 -22
  110. package/dist/FxStaticDropdown/index.d.ts +0 -1
  111. package/dist/FxStaticDropdown/index.js +0 -11
  112. package/dist/FxStaticDropdown/styles/dropdown.styles.d.ts +0 -3
  113. package/dist/FxStaticDropdown/styles/dropdown.styles.js +0 -190
  114. package/dist/FxWizard/FxWizard/FxWizard.d.ts +0 -6
  115. package/dist/FxWizard/FxWizard/FxWizard.js +0 -42
  116. package/dist/FxWizard/FxWizard/index.d.ts +0 -2
  117. package/dist/FxWizard/FxWizard/index.js +0 -19
  118. package/dist/FxWizard/FxWizard/utils/envHelpers.d.ts +0 -1
  119. package/dist/FxWizard/FxWizard/utils/envHelpers.js +0 -35
  120. package/dist/FxWizard/FxWizard/utils/index.d.ts +0 -1
  121. package/dist/FxWizard/FxWizard/utils/index.js +0 -18
  122. package/dist/FxWizard/pages/wizard/[step].d.ts +0 -9
  123. package/dist/FxWizard/pages/wizard/[step].js +0 -112
  124. package/dist/FxWizard/pages/wizard/index.d.ts +0 -1
  125. package/dist/FxWizard/pages/wizard/index.js +0 -18
  126. package/dist/src/FxActionsTray/FxActionsTray.js +0 -351
  127. package/dist/src/FxActionsTray/index.js +0 -19
  128. package/dist/src/FxActionsTray/styles/actions_tray.styles.js +0 -159
  129. package/dist/src/FxAggregationsBar/FxAggregations.js +0 -41
  130. package/dist/src/FxAggregationsBar/helpers/structureReader.js +0 -78
  131. package/dist/src/FxAggregationsBar/index.js +0 -22
  132. package/dist/src/FxAggregationsBar/operations/query.js +0 -73
  133. package/dist/src/FxAsyncDropdown/FxAsyncDropdown.js +0 -628
  134. package/dist/src/FxAsyncDropdown/helpers/helpers.js +0 -161
  135. package/dist/src/FxAsyncDropdown/index.js +0 -25
  136. package/dist/src/FxAsyncDropdown/styles/dropdown.styles.js +0 -228
  137. package/dist/src/FxAvatar/FxAvatar.js +0 -145
  138. package/dist/src/FxAvatar/helpers/stringToColor.js +0 -23
  139. package/dist/src/FxAvatar/index.js +0 -22
  140. package/dist/src/FxAvatar/styles/avatar.styles.js +0 -192
  141. package/dist/src/FxButton/FxButton.js +0 -106
  142. package/dist/src/FxButton/index.js +0 -19
  143. package/dist/src/FxButton/styles/button.styles.js +0 -23
  144. package/dist/src/FxChip/FxChip.js +0 -45
  145. package/dist/src/FxChip/index.js +0 -19
  146. package/dist/src/FxChip/styles/chip.styles.js +0 -61
  147. package/dist/src/FxFilterSortButton/FxFilterSortButton.js +0 -82
  148. package/dist/src/FxFilterSortButton/index.js +0 -11
  149. package/dist/src/FxIcon/FxIcon.js +0 -107
  150. package/dist/src/FxIcon/content/dynamic_icon.js +0 -20
  151. package/dist/src/FxIcon/content/index.js +0 -20
  152. package/dist/src/FxIcon/content/lazy_icon.js +0 -137
  153. package/dist/src/FxIcon/index.js +0 -11
  154. package/dist/src/FxModal/FxModal.js +0 -170
  155. package/dist/src/FxModal/index.js +0 -19
  156. package/dist/src/FxModal/styles/modal.style.js +0 -59
  157. package/dist/src/FxModalWithButton/FxModalWithButton.js +0 -94
  158. package/dist/src/FxModalWithButton/index.js +0 -11
  159. package/dist/src/FxNotes/FxNotes.js +0 -216
  160. package/dist/src/FxNotes/helpers/stringToColor.js +0 -26
  161. package/dist/src/FxNotes/index.js +0 -22
  162. package/dist/src/FxNotes/operations/queries.js +0 -35
  163. package/dist/src/FxNotes/styles/notes.styles.js +0 -168
  164. package/dist/src/FxNumberField/FxNumberField.js +0 -109
  165. package/dist/src/FxNumberField/index.js +0 -19
  166. package/dist/src/FxNumberField/styles/number_field.styles.js +0 -94
  167. package/dist/src/FxProgressCircle/FxProgressCircle.js +0 -65
  168. package/dist/src/FxProgressCircle/index.js +0 -19
  169. package/dist/src/FxProgressCircle/styles/progress_circle.styles.js +0 -106
  170. package/dist/src/FxProgressCounter/ProgressCounter.js +0 -168
  171. package/dist/src/FxProgressCounter/index.js +0 -19
  172. package/dist/src/FxProgressCounter/styles/progress_counter.styles.js +0 -61
  173. package/dist/src/FxScore/FxScore.js +0 -207
  174. package/dist/src/FxScore/index.js +0 -19
  175. package/dist/src/FxScore/styles/score.styles.js +0 -97
  176. package/dist/src/FxShowMore/FxShowMore.js +0 -80
  177. package/dist/src/FxShowMore/index.js +0 -19
  178. package/dist/src/FxShowMore/styles/show_more.styles.js +0 -134
  179. package/dist/src/FxSlider/FxSlider.js +0 -49
  180. package/dist/src/FxSlider/index.js +0 -19
  181. package/dist/src/FxStatisticsBar/FxStatisticsBar.js +0 -191
  182. package/dist/src/FxStatisticsBar/index.js +0 -19
  183. package/dist/src/FxStatisticsBar/styles/statistics.styles.js +0 -98
  184. package/dist/src/FxStatusBar/FxStatusBar.js +0 -143
  185. package/dist/src/FxStatusBar/helpers/constants.js +0 -22
  186. package/dist/src/FxStatusBar/index.js +0 -22
  187. package/dist/src/FxStatusBar/styles/statusBar.styles.js +0 -131
  188. package/dist/src/FxStyledComponents/index.js +0 -310
  189. package/dist/src/FxTag/FxTag.js +0 -41
  190. package/dist/src/FxTag/index.js +0 -19
  191. package/dist/src/FxTag/styles/tag.styles.js +0 -100
  192. package/dist/src/FxTextField/FxTextField.js +0 -208
  193. package/dist/src/FxTextField/index.js +0 -19
  194. package/dist/src/FxTodo/FxTodo.js +0 -95
  195. package/dist/src/FxTodo/index.js +0 -22
  196. package/dist/src/FxTodo/styles/todo.styles.js +0 -183
  197. package/dist/src/index.js +0 -215
@@ -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 _material = require("@mui/material");
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)(_material.Box, {
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",
@@ -1 +1 @@
1
- export { FxTag, TagPropsType } from "./FxTag";
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 _material = require("@mui/material");
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)(_material.Box)(({ theme, name, type })=>{
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)(_material.Typography)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
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)(_material.Typography)(({ theme, name, type })=>{
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',
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { InputBaseProps } from '@mui/material';
2
+ import { InputBaseProps } from '@mui/material/InputBase';
3
3
  export interface TextFieldPropsType {
4
4
  autoFocus?: boolean;
5
5
  droppedItem?: {
@@ -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 _material = require("@mui/material");
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)(_material.FormControl, {
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)(_material.InputLabel, {
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)(_material.InputBase, {
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)(_material.FormHelperText, {
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)(_material.FormHelperText, {
201
+ }) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_FormHelperText.default, {
199
202
  sx: (theme)=>({
200
203
  color: theme.palette.greyscale.light,
201
204
  fontSize: '11px'
@@ -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 _material = require("@mui/material");
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: ()=>//@ts-ignore
36
- (0, _fixefyuiutils.imageLoader)({
37
- src: 'invoices/severity_low.svg'
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)(_material.Divider, {
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 _material = require("@mui/material");
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)(_material.ToggleButtonGroup, {
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)(_material.ToggleButton, {
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)(_material.Typography, {
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 _material = require("@mui/material");
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-ignore
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)(_material.CircularProgress, {
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, Link, Text, ShowMore, ShowMoreContainer, DataWrapper, Bars, } from './FxStyledComponents';
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
  },
package/package.json CHANGED
@@ -3,40 +3,40 @@
3
3
  "browser": {
4
4
  "fs": false
5
5
  },
6
+ "peerDependencies": {
7
+ "@fixefy/fixefy-hooks": ">=0.0.16",
8
+ "@fixefy/fixefy-ui-utils": ">=0.2.56",
9
+ "@fixefy/next-s3-upload": ">=0.0.12",
10
+ "@mui/material": ">=5.16.12",
11
+ "@mui/styles": ">=5.16.12",
12
+ "clsx": ">=2.1.1",
13
+ "graphql-tag": ">=2.12.6",
14
+ "next": ">=14.2.26",
15
+ "nookies": ">=2.5.2",
16
+ "pluralize": ">=8.0.0",
17
+ "react": ">=18.3.1",
18
+ "react-dom": ">=18.3.1"
19
+ },
6
20
  "dependencies": {
7
- "@apollo/client": "3.10.4",
8
- "@fixefy/fixefy-hooks": "0.0.15",
9
- "@fixefy/fixefy-ui-utils": "0.2.56",
10
- "@fixefy/next-s3-upload": "^0.0.12",
11
- "@mui/icons-material": "5.16.7",
21
+ "@apollo/client": "3.7.15",
22
+ "@mui/icons-material": "5.16.12",
12
23
  "@mui/lab": "6.0.0-beta.7",
13
- "@mui/material": "5.16.7",
14
- "@mui/styled-engine": "5.15.14",
15
- "@mui/styles": "5.16.7",
16
- "@react-spring/web": "9.7.3",
17
- "graphql-tag": "2.12.6",
18
- "next": "14.2.3",
19
- "react": "18.3.1",
20
- "react-dom": "18.3.1",
21
- "react-use-wizard": "2.3.0",
22
- "tss-react": "^4.9.14"
24
+ "react-use-wizard": "2.3.0"
23
25
  },
24
26
  "devDependencies": {
25
27
  "@svgr/webpack": "8.1.0",
26
28
  "@swc/cli": "0.3.12",
27
29
  "@swc/core": "1.5.24",
28
30
  "@types/node": "20.14.0",
29
- "@types/nookies": "2.0.3",
30
31
  "@types/react": "18.3.3",
31
- "@typescript-eslint/eslint-plugin": "7.12.0",
32
- "@typescript-eslint/parser": "7.12.0",
33
- "eslint": "9.4.0",
34
- "eslint-config-prettier": "9.1.0",
35
- "eslint-plugin-prettier": "5.1.3",
36
- "eslint-plugin-react": "7.34.2",
37
- "eslint-plugin-react-hooks": "4.6.2",
38
- "prettier": "3.3.0",
39
- "typescript": "5.4.5"
32
+ "eslint": "9.34.0",
33
+ "eslint-config-next": "15.5.2",
34
+ "eslint-plugin-jsx-a11y": "6.10.2",
35
+ "eslint-plugin-react": "7.37.5",
36
+ "eslint-plugin-react-hooks": "5.2.0",
37
+ "prettier": "3.6.2",
38
+ "tss-react": "^4.9.14",
39
+ "typescript": "5.9.2"
40
40
  },
41
41
  "license": "MIT",
42
42
  "name": "@fixefy/fixefy-ui-components",
@@ -49,10 +49,11 @@
49
49
  "build:copy": "node ../../scripts/copy-files-ex.js",
50
50
  "pre_release": "yarn clean && yarn && yarn build",
51
51
  "raw_publish": "npm publish --userconfig ./.npmrc --otp 000000",
52
- "clean": "rm -rf build && rm -rf dist-* && yarn clean:node",
52
+ "clean": "rm -rf build && rm -rf dist && yarn clean:node",
53
53
  "clean:node": "rm -rf node_modules",
54
- "lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
55
- "prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\""
54
+ "lint": "eslint \"src/**/*.{ts,tsx}\"",
55
+ "lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
56
+ "prettier": "prettier --write \"{src,tests,example/src}/**/*.{ts,tsx}\""
56
57
  },
57
58
  "engines": {
58
59
  "node": "20"
@@ -69,5 +70,5 @@
69
70
  "require": "./dist/index.js"
70
71
  }
71
72
  },
72
- "version": "0.3.74"
73
- }
73
+ "version": "0.3.75"
74
+ }
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export declare const FxActionButton: ({ btnValue, onClick, startIcon, sx, }: {
3
- btnValue: string;
4
- onClick: any;
5
- startIcon?: any;
6
- sx?: any;
7
- }) => React.JSX.Element;
@@ -1,82 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "FxActionButton", {
6
- enumerable: true,
7
- get: function() {
8
- return FxActionButton;
9
- }
10
- });
11
- const _jsxruntime = require("react/jsx-runtime");
12
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
- const _material = require("@mui/material");
14
- function _define_property(obj, key, value) {
15
- if (key in obj) {
16
- Object.defineProperty(obj, key, {
17
- value: value,
18
- enumerable: true,
19
- configurable: true,
20
- writable: true
21
- });
22
- } else {
23
- obj[key] = value;
24
- }
25
- return obj;
26
- }
27
- function _interop_require_default(obj) {
28
- return obj && obj.__esModule ? obj : {
29
- default: obj
30
- };
31
- }
32
- function _object_spread(target) {
33
- for(var i = 1; i < arguments.length; i++){
34
- var source = arguments[i] != null ? arguments[i] : {};
35
- var ownKeys = Object.keys(source);
36
- if (typeof Object.getOwnPropertySymbols === "function") {
37
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
38
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
39
- }));
40
- }
41
- ownKeys.forEach(function(key) {
42
- _define_property(target, key, source[key]);
43
- });
44
- }
45
- return target;
46
- }
47
- function ownKeys(object, enumerableOnly) {
48
- var keys = Object.keys(object);
49
- if (Object.getOwnPropertySymbols) {
50
- var symbols = Object.getOwnPropertySymbols(object);
51
- if (enumerableOnly) {
52
- symbols = symbols.filter(function(sym) {
53
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
54
- });
55
- }
56
- keys.push.apply(keys, symbols);
57
- }
58
- return keys;
59
- }
60
- function _object_spread_props(target, source) {
61
- source = source != null ? source : {};
62
- if (Object.getOwnPropertyDescriptors) {
63
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
64
- } else {
65
- ownKeys(Object(source)).forEach(function(key) {
66
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
67
- });
68
- }
69
- return target;
70
- }
71
- const FxActionButton = ({ btnValue, onClick, startIcon, sx })=>{
72
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Button, {
73
- id: "fade-button",
74
- sx: _object_spread_props(_object_spread({}, sx), {
75
- fontWeight: 'normal'
76
- }),
77
- "aria-haspopup": "true",
78
- startIcon: startIcon,
79
- onClick: onClick,
80
- children: btnValue
81
- });
82
- };
@@ -1 +0,0 @@
1
- export { FxActionButton } from './FxActionButton';
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "FxActionButton", {
6
- enumerable: true,
7
- get: function() {
8
- return _FxActionButton.FxActionButton;
9
- }
10
- });
11
- const _FxActionButton = require("./FxActionButton");
@@ -1,8 +0,0 @@
1
- export declare const Container: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
2
- export declare const ChargesCount: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
3
- export declare const ChargesTitle: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
4
- export declare const Close: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
5
- export declare const TitleWrapper: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
6
- export declare const Divider: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
7
- export declare const ActionBtn: StyledComponent<ComponentProps & AdditionalProps, SpecificComponentProps, JSXProps>;
8
- export declare const ActionTitle: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
@@ -1,159 +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
- ActionBtn: function() {
13
- return ActionBtn;
14
- },
15
- ActionTitle: function() {
16
- return ActionTitle;
17
- },
18
- ChargesCount: function() {
19
- return ChargesCount;
20
- },
21
- ChargesTitle: function() {
22
- return ChargesTitle;
23
- },
24
- Close: function() {
25
- return Close;
26
- },
27
- Container: function() {
28
- return Container;
29
- },
30
- Divider: function() {
31
- return Divider;
32
- },
33
- TitleWrapper: function() {
34
- return TitleWrapper;
35
- }
36
- });
37
- const _FxButton = require("../../FxButton");
38
- const _material = require("@mui/material");
39
- const _styles = require("@mui/material/styles");
40
- function _define_property(obj, key, value) {
41
- if (key in obj) {
42
- Object.defineProperty(obj, key, {
43
- value: value,
44
- enumerable: true,
45
- configurable: true,
46
- writable: true
47
- });
48
- } else {
49
- obj[key] = value;
50
- }
51
- return obj;
52
- }
53
- function _object_spread(target) {
54
- for(var i = 1; i < arguments.length; i++){
55
- var source = arguments[i] != null ? arguments[i] : {};
56
- var ownKeys = Object.keys(source);
57
- if (typeof Object.getOwnPropertySymbols === "function") {
58
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
59
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
60
- }));
61
- }
62
- ownKeys.forEach(function(key) {
63
- _define_property(target, key, source[key]);
64
- });
65
- }
66
- return target;
67
- }
68
- function ownKeys(object, enumerableOnly) {
69
- var keys = Object.keys(object);
70
- if (Object.getOwnPropertySymbols) {
71
- var symbols = Object.getOwnPropertySymbols(object);
72
- if (enumerableOnly) {
73
- symbols = symbols.filter(function(sym) {
74
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
75
- });
76
- }
77
- keys.push.apply(keys, symbols);
78
- }
79
- return keys;
80
- }
81
- function _object_spread_props(target, source) {
82
- source = source != null ? source : {};
83
- if (Object.getOwnPropertyDescriptors) {
84
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
85
- } else {
86
- ownKeys(Object(source)).forEach(function(key) {
87
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
88
- });
89
- }
90
- return target;
91
- }
92
- const filterPrimary = 'invert(46%) sepia(48%) saturate(297%) hue-rotate(145deg) brightness(97%) contrast(90%)';
93
- const Container = (0, _styles.styled)('div')(({ theme })=>({
94
- display: 'flex',
95
- alignItems: 'center',
96
- justifyContent: 'space-between',
97
- background: theme.palette.common.white,
98
- border: '1px solid #C6DDE2',
99
- boxShadow: '0px 0px 10px rgba(86, 135, 147, 0.2)',
100
- borderRadius: 8,
101
- padding: '16px 24px',
102
- height: 38,
103
- width: 'fit-content',
104
- margin: 4
105
- }));
106
- const ChargesCount = (0, _styles.styled)(_material.Typography)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.table), {
107
- color: theme.palette.typography.title,
108
- fontWeight: 700,
109
- marginRight: 4
110
- }));
111
- const ChargesTitle = (0, _styles.styled)(_material.Typography)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.table), {
112
- color: theme.palette.typography.title
113
- }));
114
- const Close = (0, _styles.styled)(_material.Typography)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
115
- color: theme.palette.primary['500'],
116
- textTransform: 'uppercase',
117
- fontWeight: 600,
118
- letterSpacing: '0.5px',
119
- cursor: 'pointer'
120
- }));
121
- const TitleWrapper = (0, _styles.styled)('div')(({})=>({
122
- display: 'flex',
123
- alignItems: 'center',
124
- justifyContent: 'center'
125
- }));
126
- const Divider = (0, _styles.styled)('div')(({ theme })=>({
127
- width: 1,
128
- height: '100%',
129
- background: theme.palette.greyscale.contrastText,
130
- marginRight: 24,
131
- marginLeft: 24
132
- }));
133
- const ActionBtn = (0, _styles.styled)(_FxButton.FxButton)(({ theme, type })=>({
134
- height: 40,
135
- maxHeight: 40,
136
- borderRadius: 100,
137
- padding: '8px 16px',
138
- color: type ? theme.palette.common.white : theme.palette.primary['500'],
139
- borderColor: type ? theme.palette.score[type] : theme.palette.primary['500'],
140
- background: type ? theme.palette.score[type] : theme.palette.common.white,
141
- marginRight: 8,
142
- ['& img']: {
143
- filter: type ? 'none' : filterPrimary
144
- },
145
- ['&:hover']: {
146
- background: type ? theme.palette.score[type] : theme.palette.common.white,
147
- color: type ? theme.palette.common.white : theme.palette.primary['500'],
148
- borderColor: type ? theme.palette.score[type] : theme.palette.primary['500']
149
- }
150
- }));
151
- const ActionTitle = (0, _styles.styled)('span')(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
152
- color: 'inherit',
153
- textTransform: 'uppercase',
154
- fontWeight: 600,
155
- letterSpacing: '0.5px',
156
- cursor: 'pointer',
157
- marginLeft: 4,
158
- marginTop: 2
159
- }));
@@ -1,2 +0,0 @@
1
- declare const useDropdownStore: import("zustand").UseBoundStore<import("zustand").StoreApi<unknown>>;
2
- export default useDropdownStore;