@fixefy/fixefy-ui-components 0.0.45 → 0.0.46

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 (93) hide show
  1. package/build/{FxTag/styles/tag.styles.js → FxRaaya/FxRaaya.js} +33 -1
  2. package/build/{FxNotes → FxRaaya}/index.js +3 -3
  3. package/package.json +2 -3
  4. package/build/FxActionsTray/FxActionsTray.js +0 -351
  5. package/build/FxActionsTray/actions_tray_types.d.js +0 -4
  6. package/build/FxActionsTray/index.js +0 -11
  7. package/build/FxActionsTray/styles/actions_tray.styles.js +0 -160
  8. package/build/FxAggregationsBar/FxAggregations.js +0 -41
  9. package/build/FxAggregationsBar/aggregations_types.d.js +0 -4
  10. package/build/FxAggregationsBar/helpers/structureReader.js +0 -78
  11. package/build/FxAggregationsBar/index.js +0 -11
  12. package/build/FxAggregationsBar/operations/query.js +0 -73
  13. package/build/FxAsyncDropdown/FxAsyncDropdown.js +0 -456
  14. package/build/FxAsyncDropdown/async_dropdown_types.d.js +0 -4
  15. package/build/FxAsyncDropdown/helpers/helpers.js +0 -151
  16. package/build/FxAsyncDropdown/index.js +0 -11
  17. package/build/FxAsyncDropdown/styles/dropdown.styles.js +0 -230
  18. package/build/FxAvatar/FxAvatar.js +0 -145
  19. package/build/FxAvatar/avatar_types.d.js +0 -4
  20. package/build/FxAvatar/helpers/stringToColor.js +0 -23
  21. package/build/FxAvatar/index.js +0 -11
  22. package/build/FxAvatar/styles/avatar.styles.js +0 -193
  23. package/build/FxButton/FxButton.js +0 -106
  24. package/build/FxButton/index.js +0 -11
  25. package/build/FxButton/styles/button.styles.js +0 -23
  26. package/build/FxChip/FxChip.js +0 -37
  27. package/build/FxChip/chip_types.d.js +0 -4
  28. package/build/FxChip/index.js +0 -11
  29. package/build/FxChip/styles/chip.styles.js +0 -62
  30. package/build/FxIcon/FxIcon.js +0 -147
  31. package/build/FxIcon/content/dynamic_icon.js +0 -20
  32. package/build/FxIcon/content/index.js +0 -20
  33. package/build/FxIcon/content/lazy_icon.js +0 -137
  34. package/build/FxIcon/icon_types.d.js +0 -4
  35. package/build/FxIcon/index.js +0 -20
  36. package/build/FxModal/FxModal.js +0 -171
  37. package/build/FxModal/index.js +0 -11
  38. package/build/FxModal/modal_types.d.js +0 -4
  39. package/build/FxModal/styles/modal.style.js +0 -59
  40. package/build/FxNotes/FxNotes.js +0 -216
  41. package/build/FxNotes/helpers/stringToColor.js +0 -26
  42. package/build/FxNotes/note_types.d.js +0 -4
  43. package/build/FxNotes/operations/queries.js +0 -35
  44. package/build/FxNotes/styles/notes.styles.js +0 -169
  45. package/build/FxNumberField/FxNumberField.js +0 -109
  46. package/build/FxNumberField/index.js +0 -11
  47. package/build/FxNumberField/number_field_types.d.js +0 -4
  48. package/build/FxNumberField/styles/number_field.styles.js +0 -94
  49. package/build/FxProgressCircle/FxProgressCircle.js +0 -65
  50. package/build/FxProgressCircle/index.js +0 -11
  51. package/build/FxProgressCircle/progress_circle_types.d.js +0 -4
  52. package/build/FxProgressCircle/styles/progress_circle.styles.js +0 -106
  53. package/build/FxProgressCounter/ProgressCounter.js +0 -168
  54. package/build/FxProgressCounter/index.js +0 -11
  55. package/build/FxProgressCounter/progress_counter_types.d.js +0 -4
  56. package/build/FxProgressCounter/styles/progress_counter.styles.js +0 -61
  57. package/build/FxScore/FxScore.js +0 -207
  58. package/build/FxScore/index.js +0 -11
  59. package/build/FxScore/score_types.d.js +0 -4
  60. package/build/FxScore/styles/score.styles.js +0 -96
  61. package/build/FxShowMore/FxShowMore.js +0 -80
  62. package/build/FxShowMore/index.js +0 -11
  63. package/build/FxShowMore/show_more_types.d.js +0 -4
  64. package/build/FxShowMore/styles/show_more.styles.js +0 -134
  65. package/build/FxSlider/FxSlider.js +0 -49
  66. package/build/FxSlider/index.js +0 -11
  67. package/build/FxSlider/slider_types.d.js +0 -4
  68. package/build/FxStatisticsBar/FxStatisticsBar.js +0 -191
  69. package/build/FxStatisticsBar/index.js +0 -11
  70. package/build/FxStatisticsBar/statistics_bar_types.d.js +0 -4
  71. package/build/FxStatisticsBar/styles/statistics.styles.js +0 -98
  72. package/build/FxStatusBar/FxStatusBar.js +0 -143
  73. package/build/FxStatusBar/helpers/constants.js +0 -22
  74. package/build/FxStatusBar/index.js +0 -20
  75. package/build/FxStatusBar/status_bar_types.d.js +0 -4
  76. package/build/FxStatusBar/styles/statusBar.styles.js +0 -131
  77. package/build/FxStyledComponents/index.js +0 -311
  78. package/build/FxTag/FxTag.js +0 -41
  79. package/build/FxTag/fxtag_types.d.js +0 -4
  80. package/build/FxTag/index.js +0 -20
  81. package/build/FxTextField/FxTextField.js +0 -208
  82. package/build/FxTextField/index.js +0 -11
  83. package/build/FxTextField/text_field_types.d.js +0 -4
  84. package/build/FxTodo/FxTodo.js +0 -95
  85. package/build/FxTodo/index.js +0 -23
  86. package/build/FxTodo/styles/todo.styles.js +0 -183
  87. package/build/FxTodo/todo_types.d.js +0 -4
  88. package/build/FxWizard/FxWizard.js +0 -179
  89. package/build/FxWizard/WizardContext.js +0 -207
  90. package/build/FxWizard/index.js +0 -23
  91. package/build/FxWizard/styles/wizard.styles.js +0 -89
  92. package/build/FxWizard/wizard_types.d.js +0 -4
  93. package/build/index.js +0 -182
@@ -1,193 +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
- require("@fixefy/fixefy-ui-utils");
38
- function _define_property(obj, key, value) {
39
- if (key in obj) {
40
- Object.defineProperty(obj, key, {
41
- value: value,
42
- enumerable: true,
43
- configurable: true,
44
- writable: true
45
- });
46
- } else {
47
- obj[key] = value;
48
- }
49
- return obj;
50
- }
51
- function _interop_require_default(obj) {
52
- return obj && obj.__esModule ? obj : {
53
- default: obj
54
- };
55
- }
56
- function _object_spread(target) {
57
- for(var i = 1; i < arguments.length; i++){
58
- var source = arguments[i] != null ? arguments[i] : {};
59
- var ownKeys = Object.keys(source);
60
- if (typeof Object.getOwnPropertySymbols === "function") {
61
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
62
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
63
- }));
64
- }
65
- ownKeys.forEach(function(key) {
66
- _define_property(target, key, source[key]);
67
- });
68
- }
69
- return target;
70
- }
71
- function ownKeys(object, enumerableOnly) {
72
- var keys = Object.keys(object);
73
- if (Object.getOwnPropertySymbols) {
74
- var symbols = Object.getOwnPropertySymbols(object);
75
- if (enumerableOnly) {
76
- symbols = symbols.filter(function(sym) {
77
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
78
- });
79
- }
80
- keys.push.apply(keys, symbols);
81
- }
82
- return keys;
83
- }
84
- function _object_spread_props(target, source) {
85
- source = source != null ? source : {};
86
- if (Object.getOwnPropertyDescriptors) {
87
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
88
- } else {
89
- ownKeys(Object(source)).forEach(function(key) {
90
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
91
- });
92
- }
93
- return target;
94
- }
95
- function _object_without_properties(source, excluded) {
96
- if (source == null) return {};
97
- var target = _object_without_properties_loose(source, excluded);
98
- var key, i;
99
- if (Object.getOwnPropertySymbols) {
100
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
101
- for(i = 0; i < sourceSymbolKeys.length; i++){
102
- key = sourceSymbolKeys[i];
103
- if (excluded.indexOf(key) >= 0) continue;
104
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
105
- target[key] = source[key];
106
- }
107
- }
108
- return target;
109
- }
110
- function _object_without_properties_loose(source, excluded) {
111
- if (source == null) return {};
112
- var target = {};
113
- var sourceKeys = Object.keys(source);
114
- var key, i;
115
- for(i = 0; i < sourceKeys.length; i++){
116
- key = sourceKeys[i];
117
- if (excluded.indexOf(key) >= 0) continue;
118
- target[key] = source[key];
119
- }
120
- return target;
121
- }
122
- const AvatarWrapper = (0, _styles.styled)("div")(()=>({
123
- display: "flex",
124
- alignItems: "center",
125
- justifyContent: "space-between",
126
- flexDirection: "row"
127
- }));
128
- const AvatarGroup = (0, _styles.styled)("div")(()=>({
129
- display: "flex",
130
- alignItems: "center",
131
- justifyContent: "space-between",
132
- flexDirection: "row",
133
- "&>:first-of-type": {
134
- marginLeft: 0
135
- }
136
- }));
137
- const StyledAvatar = (0, _styles.styled)(_material.Avatar)(({ theme })=>({
138
- width: 32,
139
- height: 32,
140
- border: `2px solid ${theme.palette.common.white}`,
141
- marginLeft: "-8px",
142
- fontFamily: "Open Sans",
143
- fontStyle: "normal",
144
- fontWeight: "normal",
145
- fontSize: 14,
146
- lineHeight: "20px",
147
- letterSpacing: "0.15px"
148
- }));
149
- const StyledMoreAvatar = (0, _styles.styled)(_material.Avatar)(({ theme })=>({
150
- width: 32,
151
- height: 32,
152
- border: `2px solid ${theme.palette.common.white}`,
153
- marginLeft: "-8px",
154
- fontFamily: "Open Sans",
155
- fontStyle: "normal",
156
- fontWeight: "normal",
157
- fontSize: 11,
158
- lineHeight: "16px",
159
- letterSpacing: "0.1px",
160
- color: theme.palette.greyscale.dark,
161
- backgroundColor: theme.palette.greyscale.light
162
- }));
163
- const EditIcon = (0, _styles.styled)(_EditOutlined.default)(({ theme })=>({
164
- cursor: "pointer",
165
- color: theme.palette.primary.light
166
- }));
167
- const FxTooltip = (0, _styles.styled)((_param)=>{
168
- var { className } = _param, props = _object_without_properties(_param, [
169
- "className"
170
- ]);
171
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Tooltip.default, _object_spread_props(_object_spread({}, props), {
172
- placement: "top",
173
- arrow: true,
174
- classes: {
175
- popper: className
176
- }
177
- }));
178
- })(({ theme })=>({
179
- [`& .${_material.tooltipClasses.arrow}`]: {
180
- color: theme.palette.primary.main
181
- },
182
- [`& .${_material.tooltipClasses.tooltip}`]: {
183
- backgroundColor: theme.palette.primary.main,
184
- padding: 12,
185
- fontFamily: "Open Sans",
186
- fontStyle: "normal",
187
- fontWeight: "normal",
188
- fontSize: 14,
189
- lineHeight: "20px",
190
- textAlign: "center",
191
- letterSpacing: "0.15px"
192
- }
193
- }));
@@ -1,106 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "FxButton", {
6
- enumerable: true,
7
- get: function() {
8
- return FxButton;
9
- }
10
- });
11
- const _jsxruntime = require("react/jsx-runtime");
12
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
- const _buttonstyles = require("./styles/button.styles");
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
- function _object_without_properties(source, excluded) {
72
- if (source == null) return {};
73
- var target = _object_without_properties_loose(source, excluded);
74
- var key, i;
75
- if (Object.getOwnPropertySymbols) {
76
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
77
- for(i = 0; i < sourceSymbolKeys.length; i++){
78
- key = sourceSymbolKeys[i];
79
- if (excluded.indexOf(key) >= 0) continue;
80
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
81
- target[key] = source[key];
82
- }
83
- }
84
- return target;
85
- }
86
- function _object_without_properties_loose(source, excluded) {
87
- if (source == null) return {};
88
- var target = {};
89
- var sourceKeys = Object.keys(source);
90
- var key, i;
91
- for(i = 0; i < sourceKeys.length; i++){
92
- key = sourceKeys[i];
93
- if (excluded.indexOf(key) >= 0) continue;
94
- target[key] = source[key];
95
- }
96
- return target;
97
- }
98
- function FxButton(_param) {
99
- var { type = 'primary', children } = _param, rest = _object_without_properties(_param, [
100
- "type",
101
- "children"
102
- ]);
103
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_buttonstyles.ButtonStyled, _object_spread_props(_object_spread({}, rest), {
104
- children: children
105
- }));
106
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "FxButton", {
6
- enumerable: true,
7
- get: function() {
8
- return _FxButton.FxButton;
9
- }
10
- });
11
- 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,37 +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 _chipstyles = require("./styles/chip.styles");
15
- function _interop_require_default(obj) {
16
- return obj && obj.__esModule ? obj : {
17
- default: obj
18
- };
19
- }
20
- const FxChip = (props)=>{
21
- const { status, label, type = 'status', scoreValue = 0, minimized = false, variant = 'outlined', onClick } = props;
22
- const newStatus = status ? status.split(' ').join('_') : status;
23
- const value = typeof label === 'number' ? label.toFixed(2) : label;
24
- return type === 'status' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_chipstyles.StatusChipStyled, {
25
- status: newStatus,
26
- label: (0, _fixefyuiutils.titleCase)(value),
27
- variant: variant,
28
- onClick: onClick
29
- }) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_chipstyles.ScoreChipStyled, {
30
- score: scoreValue,
31
- scoreLabel: (0, _fixefyuiutils.getScoreColor)(scoreValue),
32
- label: (0, _fixefyuiutils.titleCase)(value),
33
- minimized: minimized,
34
- variant: variant,
35
- onClick: onClick
36
- });
37
- };
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
@@ -1,11 +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.FxChip;
9
- }
10
- });
11
- const _FxChip = require("./FxChip");
@@ -1,62 +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
- require("@fixefy/fixefy-ui-utils");
22
- const ScoreChipStyled = (0, _styles.styled)(_material.Chip)(({ theme, scoreLabel, minimized })=>{
23
- const color = theme.palette.score[scoreLabel];
24
- return {
25
- height: 20,
26
- minWidth: minimized ? 35 : 80,
27
- maxWidth: 120,
28
- backgroundColor: color,
29
- ['& .MuiChip-label']: {
30
- color: theme.palette.common.white,
31
- fontSize: 9,
32
- fontWeight: 600,
33
- paddingLeft: minimized ? 0 : 'inherit',
34
- paddingRight: minimized ? 0 : 'inherit'
35
- }
36
- };
37
- });
38
- const StatusChipStyled = (0, _styles.styled)(_material.Chip)(({ theme, status, variant })=>{
39
- let backgroundColor, border, labelColor;
40
- if (theme.palette.status[status]) {
41
- if (variant === 'filled') {
42
- backgroundColor = theme.palette.status[status]['border'];
43
- labelColor = theme.palette.common.white;
44
- } else {
45
- backgroundColor = theme.palette.status[status]['background'];
46
- }
47
- border = theme.palette.status[status]['border'];
48
- }
49
- return {
50
- height: 20,
51
- minWidth: 80,
52
- maxWidth: 120,
53
- ['& .MuiChip-label']: {
54
- fontSize: 9,
55
- fontWeight: 600,
56
- lineHeight: '12px',
57
- color: labelColor ? labelColor : theme.palette.statistics.label
58
- },
59
- backgroundColor,
60
- border: `1px solid ${border}`
61
- };
62
- });
@@ -1,147 +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_default(require("react"));
13
- const _content = require("./content");
14
- const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
15
- const _iconsmaterial = /*#__PURE__*/ _interop_require_wildcard(require("@mui/icons-material"));
16
- function _define_property(obj, key, value) {
17
- if (key in obj) {
18
- Object.defineProperty(obj, key, {
19
- value: value,
20
- enumerable: true,
21
- configurable: true,
22
- writable: true
23
- });
24
- } else {
25
- obj[key] = value;
26
- }
27
- return obj;
28
- }
29
- function _interop_require_default(obj) {
30
- return obj && obj.__esModule ? obj : {
31
- default: obj
32
- };
33
- }
34
- function _getRequireWildcardCache(nodeInterop) {
35
- if (typeof WeakMap !== "function") return null;
36
- var cacheBabelInterop = new WeakMap();
37
- var cacheNodeInterop = new WeakMap();
38
- return (_getRequireWildcardCache = function(nodeInterop) {
39
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
40
- })(nodeInterop);
41
- }
42
- function _interop_require_wildcard(obj, nodeInterop) {
43
- if (!nodeInterop && obj && obj.__esModule) {
44
- return obj;
45
- }
46
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
47
- return {
48
- default: obj
49
- };
50
- }
51
- var cache = _getRequireWildcardCache(nodeInterop);
52
- if (cache && cache.has(obj)) {
53
- return cache.get(obj);
54
- }
55
- var newObj = {
56
- __proto__: null
57
- };
58
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
59
- for(var key in obj){
60
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
61
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
62
- if (desc && (desc.get || desc.set)) {
63
- Object.defineProperty(newObj, key, desc);
64
- } else {
65
- newObj[key] = obj[key];
66
- }
67
- }
68
- }
69
- newObj.default = obj;
70
- if (cache) {
71
- cache.set(obj, newObj);
72
- }
73
- return newObj;
74
- }
75
- function _object_spread(target) {
76
- for(var i = 1; i < arguments.length; i++){
77
- var source = arguments[i] != null ? arguments[i] : {};
78
- var ownKeys = Object.keys(source);
79
- if (typeof Object.getOwnPropertySymbols === "function") {
80
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
81
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
82
- }));
83
- }
84
- ownKeys.forEach(function(key) {
85
- _define_property(target, key, source[key]);
86
- });
87
- }
88
- return target;
89
- }
90
- function ownKeys(object, enumerableOnly) {
91
- var keys = Object.keys(object);
92
- if (Object.getOwnPropertySymbols) {
93
- var symbols = Object.getOwnPropertySymbols(object);
94
- if (enumerableOnly) {
95
- symbols = symbols.filter(function(sym) {
96
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
97
- });
98
- }
99
- keys.push.apply(keys, symbols);
100
- }
101
- return keys;
102
- }
103
- function _object_spread_props(target, source) {
104
- source = source != null ? source : {};
105
- if (Object.getOwnPropertyDescriptors) {
106
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
107
- } else {
108
- ownKeys(Object(source)).forEach(function(key) {
109
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
110
- });
111
- }
112
- return target;
113
- }
114
- // importing all the local icons - in the future should be removed to CDN server
115
- const iconsModule = [];
116
- const FxIcon = ({ className, color, fontSize, icon, height, sx, width })=>{
117
- if (!icon) throw Error('Provide a property `icon`');
118
- let rv;
119
- const splittedPath = icon.split('/');
120
- const iconWithoutPath = (0, _fixefyuiutils.toPascalCase)(splittedPath[splittedPath.length - 1]);
121
- // const name = toPascalCase(icon)
122
- if (iconsModule[iconWithoutPath]) {
123
- rv = /*#__PURE__*/ (0, _jsxruntime.jsx)(_content.DynamicIcon, {
124
- icon: iconsModule[iconWithoutPath],
125
- sx: sx
126
- });
127
- // @ts-ignore
128
- } else if (_iconsmaterial[iconWithoutPath]) {
129
- // @ts-ignore
130
- const MUIIcon = _iconsmaterial[iconWithoutPath];
131
- rv = /*#__PURE__*/ (0, _jsxruntime.jsx)(MUIIcon, {
132
- className: className,
133
- color: color,
134
- sx: _object_spread_props(_object_spread({}, sx), {
135
- fontSize
136
- })
137
- });
138
- } else {
139
- rv = /*#__PURE__*/ (0, _jsxruntime.jsx)(_content.LazyIcon, {
140
- icon: icon,
141
- sx: sx,
142
- width: width,
143
- height: height
144
- });
145
- }
146
- return rv;
147
- };
@@ -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");