@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.
Files changed (205) hide show
  1. package/dist/FxActionsTray/FxActionsTray.js +17 -12
  2. package/dist/FxActionsTray/styles/actionsTray.style.d.ts +3 -5
  3. package/dist/FxAggregationsBar/helpers/structureReader.js +6 -4
  4. package/dist/FxAsyncDropdown/FxAsyncDropdown.js +18 -10
  5. package/dist/FxAsyncDropdown/components/CheckboxIcon.js +8 -6
  6. package/dist/FxAsyncDropdown/components/ChipOption.d.ts +1 -1
  7. package/dist/FxAsyncDropdown/components/DeleteButton.js +2 -2
  8. package/dist/FxAsyncDropdown/components/LogoOption.d.ts +1 -1
  9. package/dist/FxAsyncDropdown/components/LogoOption.js +7 -6
  10. package/dist/FxAsyncDropdown/components/TextOption.d.ts +1 -1
  11. package/dist/FxAsyncDropdown/components/TextOption.js +7 -6
  12. package/dist/FxAsyncDropdown/styles/dropdown.styles.js +2 -2
  13. package/dist/FxAvatar/helpers/stringToColor.js +2 -2
  14. package/dist/FxAvatar/styles/avatar.styles.js +77 -36
  15. package/dist/FxButton/styles/button.styles.js +8 -3
  16. package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.d.ts +1 -1
  17. package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.js +11 -4
  18. package/dist/FxButtonModalWithMenu/FxButtonModalWithMenu.d.ts +1 -1
  19. package/dist/FxButtonModalWithMenu/FxButtonModalWithMenu.js +11 -4
  20. package/dist/FxChip/FxChip.js +2 -2
  21. package/dist/FxChip/styles/chip.styles.js +11 -6
  22. package/dist/FxDatesProgress/FxDatesProgress.js +8 -7
  23. package/dist/FxDatesProgress/styles/progress.styles.js +8 -2
  24. package/dist/FxGeneralModal/FxGeneralModal.js +12 -5
  25. package/dist/FxGridEmptyState/FxGridEmptyState.js +7 -6
  26. package/dist/FxGridError/FxGridError.js +8 -7
  27. package/dist/FxIcon/FxIcon.d.ts +1 -1
  28. package/dist/FxIcon/FxIcon.js +5 -4
  29. package/dist/FxIcon/content/index.d.ts +2 -2
  30. package/dist/FxIcon/content/lazy_icon.d.ts +1 -1
  31. package/dist/FxIcon/content/lazy_icon.js +4 -3
  32. package/dist/FxMenuItemWithIcon/FxMenuItemWithIcon.js +6 -4
  33. package/dist/FxModal/FxModal.js +4 -3
  34. package/dist/FxModal/styles/modal.style.js +12 -5
  35. package/dist/FxNotes/FxNotes.js +2 -2
  36. package/dist/FxNotes/helpers/stringToColor.js +2 -2
  37. package/dist/FxNotes/styles/notes.styles.js +2 -2
  38. package/dist/FxNumberField/FxNumberField.js +1 -2
  39. package/dist/FxNumberField/styles/number_field.styles.d.ts +1 -1
  40. package/dist/FxNumberField/styles/number_field.styles.js +7 -2
  41. package/dist/FxObjStaticDropdown/FxObjStaticDropdown.js +27 -16
  42. package/dist/FxObjStaticDropdown/styles/dropdown.styles.js +2 -2
  43. package/dist/FxPopper/Popper.d.ts +2 -1
  44. package/dist/FxPopper/Popper.js +11 -6
  45. package/dist/FxPopper/PopperWithOutside.d.ts +1 -1
  46. package/dist/FxPopper/PopperWithOutside.js +4 -3
  47. package/dist/FxPopper/styles/popper.styles.js +1 -1
  48. package/dist/FxProgressCircle/styles/progress_circle.styles.js +12 -12
  49. package/dist/FxProgressCounter/ProgressCounter.js +10 -9
  50. package/dist/FxProgressCounter/styles/progress_counter.styles.js +12 -7
  51. package/dist/FxScore/FxScore.js +19 -11
  52. package/dist/FxScore/styles/score.styles.d.ts +1 -1
  53. package/dist/FxScore/styles/score.styles.js +7 -2
  54. package/dist/FxShowMore/FxShowMore.js +2 -2
  55. package/dist/FxShowMore/styles/show_more.styles.js +16 -7
  56. package/dist/FxSlider/FxSlider.js +2 -2
  57. package/dist/FxStatisticsBar/FxStatisticsBar.js +12 -6
  58. package/dist/FxStatisticsBar/styles/statistics.styles.d.ts +1 -1
  59. package/dist/FxStatisticsBar/styles/statistics.styles.js +7 -2
  60. package/dist/FxStatusBar/FxStatusBar.js +7 -2
  61. package/dist/FxStatusBar/styles/statusBar.styles.js +22 -15
  62. package/dist/FxStrStaticDropdown/FxStrStaticDropdown.js +26 -16
  63. package/dist/FxStrStaticDropdown/styles/dropdown.styles.js +2 -2
  64. package/dist/FxStyledButton/FxStyledButton.d.ts +2 -2
  65. package/dist/FxStyledButton/FxStyledButton.js +4 -3
  66. package/dist/FxStyledComponents/index.d.ts +1 -1
  67. package/dist/FxStyledComponents/index.js +32 -23
  68. package/dist/FxSwitch/FxSwitch.d.ts +6 -0
  69. package/dist/{src/FxButton/FxButton.js → FxSwitch/FxSwitch.js} +5 -5
  70. package/dist/FxSwitch/index.d.ts +1 -0
  71. package/dist/{src/FxChip → FxSwitch}/index.js +5 -5
  72. package/dist/FxSwitch/styles/switch.styles.d.ts +1 -0
  73. package/dist/FxSwitch/styles/switch.styles.js +42 -0
  74. package/dist/FxTabs/FxTabs.js +13 -9
  75. package/dist/FxTag/FxTag.js +2 -2
  76. package/dist/FxTag/index.d.ts +1 -1
  77. package/dist/FxTag/styles/tag.styles.js +10 -4
  78. package/dist/FxTextField/FxTextField.d.ts +1 -1
  79. package/dist/FxTextField/FxTextField.js +10 -7
  80. package/dist/FxTodo/FxTodo.js +5 -5
  81. package/dist/FxToggleButtons/FxToggleButtons.js +6 -5
  82. package/dist/FxUserImage/FxUserImage.js +7 -3
  83. package/dist/index.d.ts +1 -1
  84. package/dist/index.js +3 -3
  85. package/package.json +31 -29
  86. package/dist/FxActionButton/FxActionButton.d.ts +0 -7
  87. package/dist/FxActionButton/FxActionButton.js +0 -82
  88. package/dist/FxActionButton/index.d.ts +0 -1
  89. package/dist/FxActionButton/index.js +0 -11
  90. package/dist/FxActionsTray/styles/actions_tray.styles.d.ts +0 -8
  91. package/dist/FxActionsTray/styles/actions_tray.styles.js +0 -159
  92. package/dist/FxAsyncDropdown/useDropdownStore.d.ts +0 -2
  93. package/dist/FxAsyncDropdown/useDropdownStore.js +0 -57
  94. package/dist/FxFilterActionButton/FxFilterActionButton.d.ts +0 -7
  95. package/dist/FxFilterActionButton/FxFilterActionButton.js +0 -82
  96. package/dist/FxFilterActionButton/index.d.ts +0 -1
  97. package/dist/FxFilterActionButton/index.js +0 -11
  98. package/dist/FxFilterSortButton/FxFilterSortButton.d.ts +0 -7
  99. package/dist/FxFilterSortButton/FxFilterSortButton.js +0 -82
  100. package/dist/FxFilterSortButton/index.d.ts +0 -1
  101. package/dist/FxFilterSortButton/index.js +0 -11
  102. package/dist/FxModalWithButton/FxModalWithButton.d.ts +0 -10
  103. package/dist/FxModalWithButton/FxModalWithButton.js +0 -131
  104. package/dist/FxModalWithButton/index.d.ts +0 -1
  105. package/dist/FxModalWithButton/index.js +0 -11
  106. package/dist/FxModalWithComponent/FxModalWithComponent.d.ts +0 -11
  107. package/dist/FxModalWithComponent/FxModalWithComponent.js +0 -102
  108. package/dist/FxModalWithComponent/index.d.ts +0 -1
  109. package/dist/FxModalWithComponent/index.js +0 -11
  110. package/dist/FxModalWithMenu/FxModalWithMenu.d.ts +0 -14
  111. package/dist/FxModalWithMenu/FxModalWithMenu.js +0 -114
  112. package/dist/FxModalWithMenu/index.d.ts +0 -1
  113. package/dist/FxModalWithMenu/index.js +0 -11
  114. package/dist/FxPopper/styles/makeStyles.d.ts +0 -16
  115. package/dist/FxPopper/styles/makeStyles.js +0 -23
  116. package/dist/FxStaticDropdown/FxStaticDropdown.d.ts +0 -24
  117. package/dist/FxStaticDropdown/FxStaticDropdown.js +0 -368
  118. package/dist/FxStaticDropdown/helpers/helpers.d.ts +0 -2
  119. package/dist/FxStaticDropdown/helpers/helpers.js +0 -22
  120. package/dist/FxStaticDropdown/index.d.ts +0 -1
  121. package/dist/FxStaticDropdown/index.js +0 -11
  122. package/dist/FxStaticDropdown/styles/dropdown.styles.d.ts +0 -3
  123. package/dist/FxStaticDropdown/styles/dropdown.styles.js +0 -190
  124. package/dist/FxWizard/FxWizard/FxWizard.d.ts +0 -6
  125. package/dist/FxWizard/FxWizard/FxWizard.js +0 -42
  126. package/dist/FxWizard/FxWizard/index.d.ts +0 -2
  127. package/dist/FxWizard/FxWizard/index.js +0 -19
  128. package/dist/FxWizard/FxWizard/utils/envHelpers.d.ts +0 -1
  129. package/dist/FxWizard/FxWizard/utils/envHelpers.js +0 -35
  130. package/dist/FxWizard/FxWizard/utils/index.d.ts +0 -1
  131. package/dist/FxWizard/FxWizard/utils/index.js +0 -18
  132. package/dist/FxWizard/pages/wizard/[step].d.ts +0 -9
  133. package/dist/FxWizard/pages/wizard/[step].js +0 -112
  134. package/dist/FxWizard/pages/wizard/index.d.ts +0 -1
  135. package/dist/FxWizard/pages/wizard/index.js +0 -18
  136. package/dist/src/FxActionsTray/FxActionsTray.js +0 -351
  137. package/dist/src/FxActionsTray/index.js +0 -19
  138. package/dist/src/FxActionsTray/styles/actions_tray.styles.js +0 -159
  139. package/dist/src/FxAggregationsBar/FxAggregations.js +0 -41
  140. package/dist/src/FxAggregationsBar/helpers/structureReader.js +0 -78
  141. package/dist/src/FxAggregationsBar/index.js +0 -22
  142. package/dist/src/FxAggregationsBar/operations/query.js +0 -73
  143. package/dist/src/FxAsyncDropdown/FxAsyncDropdown.js +0 -628
  144. package/dist/src/FxAsyncDropdown/helpers/helpers.js +0 -161
  145. package/dist/src/FxAsyncDropdown/index.js +0 -25
  146. package/dist/src/FxAsyncDropdown/styles/dropdown.styles.js +0 -228
  147. package/dist/src/FxAvatar/FxAvatar.js +0 -145
  148. package/dist/src/FxAvatar/helpers/stringToColor.js +0 -23
  149. package/dist/src/FxAvatar/index.js +0 -22
  150. package/dist/src/FxAvatar/styles/avatar.styles.js +0 -192
  151. package/dist/src/FxButton/index.js +0 -19
  152. package/dist/src/FxButton/styles/button.styles.js +0 -23
  153. package/dist/src/FxChip/FxChip.js +0 -45
  154. package/dist/src/FxChip/styles/chip.styles.js +0 -61
  155. package/dist/src/FxFilterSortButton/FxFilterSortButton.js +0 -82
  156. package/dist/src/FxFilterSortButton/index.js +0 -11
  157. package/dist/src/FxIcon/FxIcon.js +0 -107
  158. package/dist/src/FxIcon/content/dynamic_icon.js +0 -20
  159. package/dist/src/FxIcon/content/index.js +0 -20
  160. package/dist/src/FxIcon/content/lazy_icon.js +0 -137
  161. package/dist/src/FxIcon/index.js +0 -11
  162. package/dist/src/FxModal/FxModal.js +0 -170
  163. package/dist/src/FxModal/index.js +0 -19
  164. package/dist/src/FxModal/styles/modal.style.js +0 -59
  165. package/dist/src/FxModalWithButton/FxModalWithButton.js +0 -94
  166. package/dist/src/FxModalWithButton/index.js +0 -11
  167. package/dist/src/FxNotes/FxNotes.js +0 -216
  168. package/dist/src/FxNotes/helpers/stringToColor.js +0 -26
  169. package/dist/src/FxNotes/index.js +0 -22
  170. package/dist/src/FxNotes/operations/queries.js +0 -35
  171. package/dist/src/FxNotes/styles/notes.styles.js +0 -168
  172. package/dist/src/FxNumberField/FxNumberField.js +0 -109
  173. package/dist/src/FxNumberField/index.js +0 -19
  174. package/dist/src/FxNumberField/styles/number_field.styles.js +0 -94
  175. package/dist/src/FxProgressCircle/FxProgressCircle.js +0 -65
  176. package/dist/src/FxProgressCircle/index.js +0 -19
  177. package/dist/src/FxProgressCircle/styles/progress_circle.styles.js +0 -106
  178. package/dist/src/FxProgressCounter/ProgressCounter.js +0 -168
  179. package/dist/src/FxProgressCounter/index.js +0 -19
  180. package/dist/src/FxProgressCounter/styles/progress_counter.styles.js +0 -61
  181. package/dist/src/FxScore/FxScore.js +0 -207
  182. package/dist/src/FxScore/index.js +0 -19
  183. package/dist/src/FxScore/styles/score.styles.js +0 -97
  184. package/dist/src/FxShowMore/FxShowMore.js +0 -80
  185. package/dist/src/FxShowMore/index.js +0 -19
  186. package/dist/src/FxShowMore/styles/show_more.styles.js +0 -134
  187. package/dist/src/FxSlider/FxSlider.js +0 -49
  188. package/dist/src/FxSlider/index.js +0 -19
  189. package/dist/src/FxStatisticsBar/FxStatisticsBar.js +0 -191
  190. package/dist/src/FxStatisticsBar/index.js +0 -19
  191. package/dist/src/FxStatisticsBar/styles/statistics.styles.js +0 -98
  192. package/dist/src/FxStatusBar/FxStatusBar.js +0 -143
  193. package/dist/src/FxStatusBar/helpers/constants.js +0 -22
  194. package/dist/src/FxStatusBar/index.js +0 -22
  195. package/dist/src/FxStatusBar/styles/statusBar.styles.js +0 -131
  196. package/dist/src/FxStyledComponents/index.js +0 -310
  197. package/dist/src/FxTag/FxTag.js +0 -41
  198. package/dist/src/FxTag/index.js +0 -19
  199. package/dist/src/FxTag/styles/tag.styles.js +0 -100
  200. package/dist/src/FxTextField/FxTextField.js +0 -208
  201. package/dist/src/FxTextField/index.js +0 -19
  202. package/dist/src/FxTodo/FxTodo.js +0 -95
  203. package/dist/src/FxTodo/index.js +0 -22
  204. package/dist/src/FxTodo/styles/todo.styles.js +0 -183
  205. package/dist/src/index.js +0 -215
@@ -1,192 +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
- AvatarGroup: function() {
13
- return AvatarGroup;
14
- },
15
- AvatarWrapper: function() {
16
- return AvatarWrapper;
17
- },
18
- EditIcon: function() {
19
- return EditIcon;
20
- },
21
- FxTooltip: function() {
22
- return FxTooltip;
23
- },
24
- StyledAvatar: function() {
25
- return StyledAvatar;
26
- },
27
- StyledMoreAvatar: function() {
28
- return StyledMoreAvatar;
29
- }
30
- });
31
- const _jsxruntime = require("react/jsx-runtime");
32
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
33
- const _styles = require("@mui/material/styles");
34
- const _material = require("@mui/material");
35
- const _Tooltip = /*#__PURE__*/ _interop_require_default(require("@mui/material/Tooltip"));
36
- const _EditOutlined = /*#__PURE__*/ _interop_require_default(require("@mui/icons-material/EditOutlined"));
37
- function _define_property(obj, key, value) {
38
- if (key in obj) {
39
- Object.defineProperty(obj, key, {
40
- value: value,
41
- enumerable: true,
42
- configurable: true,
43
- writable: true
44
- });
45
- } else {
46
- obj[key] = value;
47
- }
48
- return obj;
49
- }
50
- function _interop_require_default(obj) {
51
- return obj && obj.__esModule ? obj : {
52
- default: obj
53
- };
54
- }
55
- function _object_spread(target) {
56
- for(var i = 1; i < arguments.length; i++){
57
- var source = arguments[i] != null ? arguments[i] : {};
58
- var ownKeys = Object.keys(source);
59
- if (typeof Object.getOwnPropertySymbols === "function") {
60
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
61
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
62
- }));
63
- }
64
- ownKeys.forEach(function(key) {
65
- _define_property(target, key, source[key]);
66
- });
67
- }
68
- return target;
69
- }
70
- function ownKeys(object, enumerableOnly) {
71
- var keys = Object.keys(object);
72
- if (Object.getOwnPropertySymbols) {
73
- var symbols = Object.getOwnPropertySymbols(object);
74
- if (enumerableOnly) {
75
- symbols = symbols.filter(function(sym) {
76
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
77
- });
78
- }
79
- keys.push.apply(keys, symbols);
80
- }
81
- return keys;
82
- }
83
- function _object_spread_props(target, source) {
84
- source = source != null ? source : {};
85
- if (Object.getOwnPropertyDescriptors) {
86
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
87
- } else {
88
- ownKeys(Object(source)).forEach(function(key) {
89
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
90
- });
91
- }
92
- return target;
93
- }
94
- function _object_without_properties(source, excluded) {
95
- if (source == null) return {};
96
- var target = _object_without_properties_loose(source, excluded);
97
- var key, i;
98
- if (Object.getOwnPropertySymbols) {
99
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
100
- for(i = 0; i < sourceSymbolKeys.length; i++){
101
- key = sourceSymbolKeys[i];
102
- if (excluded.indexOf(key) >= 0) continue;
103
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
104
- target[key] = source[key];
105
- }
106
- }
107
- return target;
108
- }
109
- function _object_without_properties_loose(source, excluded) {
110
- if (source == null) return {};
111
- var target = {};
112
- var sourceKeys = Object.keys(source);
113
- var key, i;
114
- for(i = 0; i < sourceKeys.length; i++){
115
- key = sourceKeys[i];
116
- if (excluded.indexOf(key) >= 0) continue;
117
- target[key] = source[key];
118
- }
119
- return target;
120
- }
121
- const AvatarWrapper = (0, _styles.styled)("div")(()=>({
122
- display: "flex",
123
- alignItems: "center",
124
- justifyContent: "space-between",
125
- flexDirection: "row"
126
- }));
127
- const AvatarGroup = (0, _styles.styled)("div")(()=>({
128
- display: "flex",
129
- alignItems: "center",
130
- justifyContent: "space-between",
131
- flexDirection: "row",
132
- "&>:first-of-type": {
133
- marginLeft: 0
134
- }
135
- }));
136
- const StyledAvatar = (0, _styles.styled)(_material.Avatar)(({ theme })=>({
137
- width: 32,
138
- height: 32,
139
- border: `2px solid ${theme.palette.common.white}`,
140
- marginLeft: "-8px",
141
- fontFamily: "Open Sans",
142
- fontStyle: "normal",
143
- fontWeight: "normal",
144
- fontSize: 14,
145
- lineHeight: "20px",
146
- letterSpacing: "0.15px"
147
- }));
148
- const StyledMoreAvatar = (0, _styles.styled)(_material.Avatar)(({ theme })=>({
149
- width: 32,
150
- height: 32,
151
- border: `2px solid ${theme.palette.common.white}`,
152
- marginLeft: "-8px",
153
- fontFamily: "Open Sans",
154
- fontStyle: "normal",
155
- fontWeight: "normal",
156
- fontSize: 11,
157
- lineHeight: "16px",
158
- letterSpacing: "0.1px",
159
- color: theme.palette.greyscale.dark,
160
- backgroundColor: theme.palette.greyscale.light
161
- }));
162
- const EditIcon = (0, _styles.styled)(_EditOutlined.default)(({ theme })=>({
163
- cursor: "pointer",
164
- color: theme.palette.primary.light
165
- }));
166
- const FxTooltip = (0, _styles.styled)((_param)=>{
167
- var { className } = _param, props = _object_without_properties(_param, [
168
- "className"
169
- ]);
170
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Tooltip.default, _object_spread_props(_object_spread({}, props), {
171
- placement: "top",
172
- arrow: true,
173
- classes: {
174
- popper: className
175
- }
176
- }));
177
- })(({ theme })=>({
178
- [`& .${_material.tooltipClasses.arrow}`]: {
179
- color: theme.palette.primary.main
180
- },
181
- [`& .${_material.tooltipClasses.tooltip}`]: {
182
- backgroundColor: theme.palette.primary.main,
183
- padding: 12,
184
- fontFamily: "Open Sans",
185
- fontStyle: "normal",
186
- fontWeight: "normal",
187
- fontSize: 14,
188
- lineHeight: "20px",
189
- textAlign: "center",
190
- letterSpacing: "0.15px"
191
- }
192
- }));
@@ -1,19 +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
- ButtonPropsType: function() {
13
- return _FxButton.ButtonPropsType;
14
- },
15
- FxButton: function() {
16
- return _FxButton.FxButton;
17
- }
18
- });
19
- const _FxButton = require("./FxButton");
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "ButtonStyled", {
6
- enumerable: true,
7
- get: function() {
8
- return ButtonStyled;
9
- }
10
- });
11
- const _material = require("@mui/material");
12
- const _styles = require("@mui/material/styles");
13
- const ButtonStyled = (0, _styles.styled)(_material.Button)(({ theme, variant })=>{
14
- const border = variant === 'text' ? `0px solid #0000` : `1px solid ${theme.palette.primary.main}`;
15
- return {
16
- border,
17
- minHeight: '40px',
18
- borderRadius: '100px',
19
- minWidth: '87px',
20
- fontSize: '12px',
21
- letterSpacing: '0.5px'
22
- };
23
- });
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "FxChip", {
6
- enumerable: true,
7
- get: function() {
8
- return FxChip;
9
- }
10
- });
11
- const _jsxruntime = require("react/jsx-runtime");
12
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
- const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
14
- const _iconsmaterial = require("@mui/icons-material");
15
- const _chipstyles = require("./styles/chip.styles");
16
- function _interop_require_default(obj) {
17
- return obj && obj.__esModule ? obj : {
18
- default: obj
19
- };
20
- }
21
- const FxChip = (props)=>{
22
- const { status, label, type = 'status', scoreValue = 0, minimized = false, variant = 'outlined', onClick, onDelete } = props;
23
- const newStatus = status ? status.split(' ').join('_') : status;
24
- const value = typeof label === 'number' ? label.toFixed(2) : label;
25
- return type === 'status' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_chipstyles.StatusChipStyled, {
26
- status: newStatus,
27
- label: (0, _fixefyuiutils.titleCase)(value),
28
- variant: variant,
29
- onClick: onClick,
30
- onDelete: onDelete,
31
- deleteIcon: onDelete ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_iconsmaterial.CloseRounded, {
32
- sx: {
33
- width: 11,
34
- height: 11
35
- }
36
- }) : null
37
- }) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_chipstyles.ScoreChipStyled, {
38
- score: scoreValue,
39
- scoreLabel: (0, _fixefyuiutils.getScoreColor)(scoreValue),
40
- label: (0, _fixefyuiutils.titleCase)(value),
41
- minimized: minimized,
42
- variant: variant,
43
- onClick: onClick
44
- });
45
- };
@@ -1,61 +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
- ScoreChipStyled: function() {
13
- return ScoreChipStyled;
14
- },
15
- StatusChipStyled: function() {
16
- return StatusChipStyled;
17
- }
18
- });
19
- const _material = require("@mui/material");
20
- const _styles = require("@mui/material/styles");
21
- const ScoreChipStyled = (0, _styles.styled)(_material.Chip)(({ theme, scoreLabel, minimized })=>{
22
- const color = theme.palette.score[scoreLabel];
23
- return {
24
- height: 20,
25
- minWidth: minimized ? 35 : 80,
26
- maxWidth: 120,
27
- backgroundColor: color,
28
- ['& .MuiChip-label']: {
29
- color: theme.palette.common.white,
30
- fontSize: 9,
31
- fontWeight: 600,
32
- paddingLeft: minimized ? 0 : 'inherit',
33
- paddingRight: minimized ? 0 : 'inherit'
34
- }
35
- };
36
- });
37
- const StatusChipStyled = (0, _styles.styled)(_material.Chip)(({ theme, status, variant })=>{
38
- let backgroundColor, border, labelColor;
39
- if (theme.palette.status[status]) {
40
- if (variant === 'filled') {
41
- backgroundColor = theme.palette.status[status]['border'];
42
- labelColor = theme.palette.common.white;
43
- } else {
44
- backgroundColor = theme.palette.status[status]['background'];
45
- }
46
- border = theme.palette.status[status]['border'];
47
- }
48
- return {
49
- height: 20,
50
- minWidth: 80,
51
- maxWidth: 120,
52
- ['& .MuiChip-label']: {
53
- fontSize: 9,
54
- fontWeight: 600,
55
- lineHeight: '12px',
56
- color: labelColor ? labelColor : theme.palette.statistics.label
57
- },
58
- backgroundColor,
59
- border: `1px solid ${border}`
60
- };
61
- });
@@ -1,82 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "FxFilterSortButton", {
6
- enumerable: true,
7
- get: function() {
8
- return FxFilterSortButton;
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 FxFilterSortButton = ({ 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,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "FxFilterSortButton", {
6
- enumerable: true,
7
- get: function() {
8
- return _FxFilterSortButton.FxFilterSortButton;
9
- }
10
- });
11
- const _FxFilterSortButton = require("./FxFilterSortButton");
@@ -1,107 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "FxIcon", {
6
- enumerable: true,
7
- get: function() {
8
- return FxIcon;
9
- }
10
- });
11
- const _jsxruntime = require("react/jsx-runtime");
12
- const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
13
- const _material = require("@mui/material");
14
- const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
15
- const _image = /*#__PURE__*/ _interop_require_default(require("next/image"));
16
- function _interop_require_default(obj) {
17
- return obj && obj.__esModule ? obj : {
18
- default: obj
19
- };
20
- }
21
- function _getRequireWildcardCache(nodeInterop) {
22
- if (typeof WeakMap !== "function") return null;
23
- var cacheBabelInterop = new WeakMap();
24
- var cacheNodeInterop = new WeakMap();
25
- return (_getRequireWildcardCache = function(nodeInterop) {
26
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
27
- })(nodeInterop);
28
- }
29
- function _interop_require_wildcard(obj, nodeInterop) {
30
- if (!nodeInterop && obj && obj.__esModule) {
31
- return obj;
32
- }
33
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
34
- return {
35
- default: obj
36
- };
37
- }
38
- var cache = _getRequireWildcardCache(nodeInterop);
39
- if (cache && cache.has(obj)) {
40
- return cache.get(obj);
41
- }
42
- var newObj = {
43
- __proto__: null
44
- };
45
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
46
- for(var key in obj){
47
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
48
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
49
- if (desc && (desc.get || desc.set)) {
50
- Object.defineProperty(newObj, key, desc);
51
- } else {
52
- newObj[key] = obj[key];
53
- }
54
- }
55
- }
56
- newObj.default = obj;
57
- if (cache) {
58
- cache.set(obj, newObj);
59
- }
60
- return newObj;
61
- }
62
- const PublicIcon = ({ icon, width, height, onClick })=>{
63
- const [isError, setError] = (0, _react.useState)(false);
64
- const handleError = (isError)=>setError(isError);
65
- if (isError) {
66
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Avatar, {
67
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
68
- fontSize: 29,
69
- fontWeight: 600,
70
- children: (0, _fixefyuiutils.toInitials)(icon)
71
- })
72
- });
73
- }
74
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
75
- alt: "",
76
- width: width,
77
- height: height,
78
- loader: imageLoader,
79
- src: icon,
80
- onLoad: ()=>handleError(false),
81
- onError: ()=>handleError(true),
82
- onClick: onClick
83
- });
84
- };
85
- const FxIcon = ({ icon, width, height, onClick })=>{
86
- if (!icon) throw Error('Provide a property `icon`');
87
- return parseIconFromLibrary({
88
- icon,
89
- width,
90
- height,
91
- onClick
92
- });
93
- };
94
- const parseIconFromLibrary = ({ icon, width, height, onClick })=>{
95
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(PublicIcon, {
96
- icon: icon,
97
- width: width,
98
- height: height,
99
- onClick: onClick
100
- });
101
- };
102
- const imageLoader = ({ src })=>{
103
- const transformedSrc = src.split('/');
104
- transformedSrc.splice(transformedSrc.length - 1, 1, transformedSrc[transformedSrc.length - 1].split(/(?=[A-Z])/).join('_').toLowerCase());
105
- const url = transformedSrc.join('/');
106
- return `${process.env.NEXT_PUBLIC_ASSET_URL}/${url}`;
107
- };
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "DynamicIcon", {
6
- enumerable: true,
7
- get: function() {
8
- return DynamicIcon;
9
- }
10
- });
11
- const _jsxruntime = require("react/jsx-runtime");
12
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
- function _interop_require_default(obj) {
14
- return obj && obj.__esModule ? obj : {
15
- default: obj
16
- };
17
- }
18
- const DynamicIcon = ({ icon: IconComponent, sx })=>IconComponent ? /*#__PURE__*/ (0, _jsxruntime.jsx)(IconComponent, {
19
- sx: sx
20
- }) : null;
@@ -1,20 +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
- DynamicIcon: function() {
13
- return _dynamic_icon.DynamicIcon;
14
- },
15
- LazyIcon: function() {
16
- return _lazy_icon.LazyIcon;
17
- }
18
- });
19
- const _dynamic_icon = require("./dynamic_icon");
20
- const _lazy_icon = require("./lazy_icon");