@fixefy/fixefy-ui-components 0.3.108 → 0.3.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FxAsyncDropdown/FxAsyncDropdown.js +3 -3
- package/dist/FxDatesProgress/styles/progress.styles.js +1 -1
- package/dist/FxUserImage/FxUserImage.js +2 -2
- package/dist/fixefy-ui-components/src/FxActionsTray/FxActionsTray.js +111 -0
- package/dist/fixefy-ui-components/src/FxActionsTray/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxActionsTray/styles/actionsTray.style.js +114 -0
- package/dist/fixefy-ui-components/src/FxAggregationsBar/FxAggregations.js +41 -0
- package/dist/fixefy-ui-components/src/FxAggregationsBar/helpers/structureReader.js +80 -0
- package/dist/fixefy-ui-components/src/FxAggregationsBar/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxAggregationsBar/operations/query.js +73 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/FxAsyncDropdown.js +500 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/CheckboxIcon.js +44 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/ChipOption.js +35 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/ChosenIcon.js +45 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/DeleteButton.js +37 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/LogoOption.js +101 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/TextOption.js +74 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/index.js +36 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/helpers/helpers.js +233 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/styles/dropdown.styles.js +211 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/types.js +4 -0
- package/dist/fixefy-ui-components/src/FxAvatar/FxAvatar.js +145 -0
- package/dist/fixefy-ui-components/src/FxAvatar/helpers/stringToColor.js +23 -0
- package/dist/fixefy-ui-components/src/FxAvatar/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxAvatar/styles/avatar.styles.js +233 -0
- package/dist/fixefy-ui-components/src/FxButton/FxButton.js +106 -0
- package/dist/fixefy-ui-components/src/FxButton/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxButton/styles/button.styles.js +28 -0
- package/dist/fixefy-ui-components/src/FxButtonModalWithComponent/FxButtonModalWithComponent.js +118 -0
- package/dist/fixefy-ui-components/src/FxButtonModalWithComponent/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxButtonModalWithMenu/FxButtonModalWithMenu.js +126 -0
- package/dist/fixefy-ui-components/src/FxButtonModalWithMenu/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxChip/FxChip.js +75 -0
- package/dist/fixefy-ui-components/src/FxChip/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxChip/styles/chip.styles.js +147 -0
- package/dist/fixefy-ui-components/src/FxDatesProgress/FxDatesProgress.js +126 -0
- package/dist/fixefy-ui-components/src/FxDatesProgress/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxDatesProgress/styles/progress.styles.js +24 -0
- package/dist/fixefy-ui-components/src/FxGeneralModal/FxGeneralModal.js +107 -0
- package/dist/fixefy-ui-components/src/FxGeneralModal/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxGridEmptyState/FxGridEmptyState.js +86 -0
- package/dist/fixefy-ui-components/src/FxGridEmptyState/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxGridError/FxGridError.js +91 -0
- package/dist/fixefy-ui-components/src/FxGridError/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxIcon/FxIcon.js +118 -0
- package/dist/fixefy-ui-components/src/FxIcon/content/dynamic_icon.js +20 -0
- package/dist/fixefy-ui-components/src/FxIcon/content/index.js +20 -0
- package/dist/fixefy-ui-components/src/FxIcon/content/lazy_icon.js +87 -0
- package/dist/fixefy-ui-components/src/FxIcon/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxMenuItemWithIcon/FxMenuItemWithIcon.js +84 -0
- package/dist/fixefy-ui-components/src/FxMenuItemWithIcon/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxModal/FxModal.js +171 -0
- package/dist/fixefy-ui-components/src/FxModal/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxModal/styles/modal.style.js +66 -0
- package/dist/fixefy-ui-components/src/FxNotes/FxNotes.js +216 -0
- package/dist/fixefy-ui-components/src/FxNotes/helpers/stringToColor.js +26 -0
- package/dist/fixefy-ui-components/src/FxNotes/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxNotes/operations/queries.js +35 -0
- package/dist/fixefy-ui-components/src/FxNotes/styles/notes.styles.js +168 -0
- package/dist/fixefy-ui-components/src/FxNumberField/FxNumberField.js +108 -0
- package/dist/fixefy-ui-components/src/FxNumberField/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxNumberField/styles/number_field.styles.js +99 -0
- package/dist/fixefy-ui-components/src/FxObjStaticDropdown/FxObjStaticDropdown.js +548 -0
- package/dist/fixefy-ui-components/src/FxObjStaticDropdown/index.js +25 -0
- package/dist/fixefy-ui-components/src/FxObjStaticDropdown/styles/dropdown.styles.js +211 -0
- package/dist/fixefy-ui-components/src/FxPopper/Popper.js +139 -0
- package/dist/fixefy-ui-components/src/FxPopper/PopperWithOutside.js +116 -0
- package/dist/fixefy-ui-components/src/FxPopper/content/PopperHeader.js +36 -0
- package/dist/fixefy-ui-components/src/FxPopper/content/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxPopper/index.js +24 -0
- package/dist/fixefy-ui-components/src/FxPopper/styles/popper.styles.js +138 -0
- package/dist/fixefy-ui-components/src/FxProgressCircle/FxProgressCircle.js +65 -0
- package/dist/fixefy-ui-components/src/FxProgressCircle/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxProgressCircle/styles/progress_circle.styles.js +106 -0
- package/dist/fixefy-ui-components/src/FxProgressCounter/ProgressCounter.js +168 -0
- package/dist/fixefy-ui-components/src/FxProgressCounter/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxProgressCounter/styles/progress_counter.styles.js +66 -0
- package/dist/fixefy-ui-components/src/FxScore/FxScore.js +215 -0
- package/dist/fixefy-ui-components/src/FxScore/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxScore/styles/score.styles.js +102 -0
- package/dist/fixefy-ui-components/src/FxShowMore/FxShowMore.js +80 -0
- package/dist/fixefy-ui-components/src/FxShowMore/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxShowMore/styles/show_more.styles.js +143 -0
- package/dist/fixefy-ui-components/src/FxSlider/FxSlider.js +49 -0
- package/dist/fixefy-ui-components/src/FxSlider/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxStatisticsBar/FxStatisticsBar.js +198 -0
- package/dist/fixefy-ui-components/src/FxStatisticsBar/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxStatisticsBar/styles/statistics.styles.js +103 -0
- package/dist/fixefy-ui-components/src/FxStatusBar/FxStatusBar.js +149 -0
- package/dist/fixefy-ui-components/src/FxStatusBar/helpers/constants.js +22 -0
- package/dist/fixefy-ui-components/src/FxStatusBar/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxStatusBar/styles/statusBar.styles.js +138 -0
- package/dist/fixefy-ui-components/src/FxStrStaticDropdown/FxStrStaticDropdown.js +382 -0
- package/dist/fixefy-ui-components/src/FxStrStaticDropdown/helpers/helpers.js +22 -0
- package/dist/fixefy-ui-components/src/FxStrStaticDropdown/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxStrStaticDropdown/styles/dropdown.styles.js +190 -0
- package/dist/fixefy-ui-components/src/FxStyledButton/FxStyledButton.js +57 -0
- package/dist/fixefy-ui-components/src/FxStyledButton/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxStyledComponents/index.js +319 -0
- package/dist/fixefy-ui-components/src/FxSwitch/FxSwitch.js +106 -0
- package/dist/fixefy-ui-components/src/FxSwitch/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxSwitch/styles/switch.styles.js +42 -0
- package/dist/fixefy-ui-components/src/FxTabs/FxTabs.js +79 -0
- package/dist/fixefy-ui-components/src/FxTabs/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxTag/FxTag.js +50 -0
- package/dist/fixefy-ui-components/src/FxTag/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxTag/styles/tag.styles.js +106 -0
- package/dist/fixefy-ui-components/src/FxTextField/FxTextField.js +211 -0
- package/dist/fixefy-ui-components/src/FxTextField/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxTodo/FxTodo.js +95 -0
- package/dist/fixefy-ui-components/src/FxTodo/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxTodo/styles/todo.styles.js +183 -0
- package/dist/fixefy-ui-components/src/FxToggleButtons/FxToggleButtons.js +69 -0
- package/dist/fixefy-ui-components/src/FxToggleButtons/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxUserImage/FxUserImage.js +236 -0
- package/dist/fixefy-ui-components/src/FxUserImage/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxWizard/FxWizard.js +50 -0
- package/dist/fixefy-ui-components/src/FxWizard/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxWizard/steps launcher/StepsLauncher.js +52 -0
- package/dist/fixefy-ui-components/src/FxWizard/steps launcher/index.js +18 -0
- package/dist/fixefy-ui-components/src/index.js +277 -0
- package/package.json +4 -5
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "FxAvatar", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return FxAvatar;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
+
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
14
|
+
const _stringToColor = require("./helpers/stringToColor");
|
|
15
|
+
const _avatarstyles = require("./styles/avatar.styles");
|
|
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 _getRequireWildcardCache(nodeInterop) {
|
|
30
|
+
if (typeof WeakMap !== "function") return null;
|
|
31
|
+
var cacheBabelInterop = new WeakMap();
|
|
32
|
+
var cacheNodeInterop = new WeakMap();
|
|
33
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
34
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
35
|
+
})(nodeInterop);
|
|
36
|
+
}
|
|
37
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
38
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
39
|
+
return obj;
|
|
40
|
+
}
|
|
41
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
42
|
+
return {
|
|
43
|
+
default: obj
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
47
|
+
if (cache && cache.has(obj)) {
|
|
48
|
+
return cache.get(obj);
|
|
49
|
+
}
|
|
50
|
+
var newObj = {
|
|
51
|
+
__proto__: null
|
|
52
|
+
};
|
|
53
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
54
|
+
for(var key in obj){
|
|
55
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
56
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
57
|
+
if (desc && (desc.get || desc.set)) {
|
|
58
|
+
Object.defineProperty(newObj, key, desc);
|
|
59
|
+
} else {
|
|
60
|
+
newObj[key] = obj[key];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
newObj.default = obj;
|
|
65
|
+
if (cache) {
|
|
66
|
+
cache.set(obj, newObj);
|
|
67
|
+
}
|
|
68
|
+
return newObj;
|
|
69
|
+
}
|
|
70
|
+
function _object_spread(target) {
|
|
71
|
+
for(var i = 1; i < arguments.length; i++){
|
|
72
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
73
|
+
var ownKeys = Object.keys(source);
|
|
74
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
75
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
76
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
77
|
+
}));
|
|
78
|
+
}
|
|
79
|
+
ownKeys.forEach(function(key) {
|
|
80
|
+
_define_property(target, key, source[key]);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return target;
|
|
84
|
+
}
|
|
85
|
+
function ownKeys(object, enumerableOnly) {
|
|
86
|
+
var keys = Object.keys(object);
|
|
87
|
+
if (Object.getOwnPropertySymbols) {
|
|
88
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
89
|
+
if (enumerableOnly) {
|
|
90
|
+
symbols = symbols.filter(function(sym) {
|
|
91
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
keys.push.apply(keys, symbols);
|
|
95
|
+
}
|
|
96
|
+
return keys;
|
|
97
|
+
}
|
|
98
|
+
function _object_spread_props(target, source) {
|
|
99
|
+
source = source != null ? source : {};
|
|
100
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
101
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
102
|
+
} else {
|
|
103
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
104
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return target;
|
|
108
|
+
}
|
|
109
|
+
function FxAvatar({ users, max = 5, isEditable = false, onEdit }) {
|
|
110
|
+
const [backgroundcolors, setBackgroundColors] = (0, _react.useState)({});
|
|
111
|
+
const avatars = users.length > max ? users.slice(0, max - 1) : users;
|
|
112
|
+
const isMoreThanMax = users.length > max;
|
|
113
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_avatarstyles.AvatarWrapper, {
|
|
114
|
+
children: [
|
|
115
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_avatarstyles.AvatarGroup, {
|
|
116
|
+
children: [
|
|
117
|
+
avatars.map((user, index)=>{
|
|
118
|
+
const userName = user.first_name + ' ' + user.last_name;
|
|
119
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_avatarstyles.FxTooltip, {
|
|
120
|
+
title: (0, _fixefyuiutils.titleCase)(userName),
|
|
121
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_avatarstyles.StyledAvatar, {
|
|
122
|
+
sx: {
|
|
123
|
+
backgroundColor: backgroundcolors[userName] ? backgroundcolors[userName] : (0, _stringToColor.stringToColor)(userName, (color)=>{
|
|
124
|
+
setBackgroundColors(_object_spread_props(_object_spread({}, backgroundcolors), {
|
|
125
|
+
[userName]: color
|
|
126
|
+
}));
|
|
127
|
+
})
|
|
128
|
+
},
|
|
129
|
+
src: user.image_url,
|
|
130
|
+
alt: userName,
|
|
131
|
+
children: (0, _fixefyuiutils.titleCase)(userName.slice(0, 1))
|
|
132
|
+
})
|
|
133
|
+
}, index);
|
|
134
|
+
}),
|
|
135
|
+
isMoreThanMax && /*#__PURE__*/ (0, _jsxruntime.jsx)(_avatarstyles.StyledMoreAvatar, {
|
|
136
|
+
children: `+${users.length - max + 1}`
|
|
137
|
+
})
|
|
138
|
+
]
|
|
139
|
+
}),
|
|
140
|
+
isEditable && /*#__PURE__*/ (0, _jsxruntime.jsx)(_avatarstyles.EditIcon, {
|
|
141
|
+
onClick: onEdit && onEdit
|
|
142
|
+
})
|
|
143
|
+
]
|
|
144
|
+
});
|
|
145
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "stringToColor", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return stringToColor;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const stringToColor = (string, callBack)=>{
|
|
12
|
+
let hash = 0;
|
|
13
|
+
let color = '#';
|
|
14
|
+
for(let i = 0; i < string.length; i += 1){
|
|
15
|
+
hash = string.charCodeAt(i) + ((hash << 5) - hash);
|
|
16
|
+
}
|
|
17
|
+
for(let i = 0; i < 3; i += 1){
|
|
18
|
+
const value = hash >> i * 8 & 0xff;
|
|
19
|
+
color += `00${value.toString(16)}`.substr(-2);
|
|
20
|
+
}
|
|
21
|
+
callBack && callBack(color);
|
|
22
|
+
return color;
|
|
23
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
AvatarPropsType: function() {
|
|
13
|
+
return _FxAvatar.AvatarPropsType;
|
|
14
|
+
},
|
|
15
|
+
BackgroundColorsType: function() {
|
|
16
|
+
return _FxAvatar.BackgroundColorsType;
|
|
17
|
+
},
|
|
18
|
+
FxAvatar: function() {
|
|
19
|
+
return _FxAvatar.FxAvatar;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _FxAvatar = require("./FxAvatar");
|
|
@@ -0,0 +1,233 @@
|
|
|
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 _Avatar = /*#__PURE__*/ _interop_require_default(require("@mui/material/Avatar"));
|
|
35
|
+
const _Tooltip = /*#__PURE__*/ _interop_require_wildcard(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 _getRequireWildcardCache(nodeInterop) {
|
|
56
|
+
if (typeof WeakMap !== "function") return null;
|
|
57
|
+
var cacheBabelInterop = new WeakMap();
|
|
58
|
+
var cacheNodeInterop = new WeakMap();
|
|
59
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
60
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
61
|
+
})(nodeInterop);
|
|
62
|
+
}
|
|
63
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
64
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
65
|
+
return obj;
|
|
66
|
+
}
|
|
67
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
68
|
+
return {
|
|
69
|
+
default: obj
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
73
|
+
if (cache && cache.has(obj)) {
|
|
74
|
+
return cache.get(obj);
|
|
75
|
+
}
|
|
76
|
+
var newObj = {
|
|
77
|
+
__proto__: null
|
|
78
|
+
};
|
|
79
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
80
|
+
for(var key in obj){
|
|
81
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
82
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
83
|
+
if (desc && (desc.get || desc.set)) {
|
|
84
|
+
Object.defineProperty(newObj, key, desc);
|
|
85
|
+
} else {
|
|
86
|
+
newObj[key] = obj[key];
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
newObj.default = obj;
|
|
91
|
+
if (cache) {
|
|
92
|
+
cache.set(obj, newObj);
|
|
93
|
+
}
|
|
94
|
+
return newObj;
|
|
95
|
+
}
|
|
96
|
+
function _object_spread(target) {
|
|
97
|
+
for(var i = 1; i < arguments.length; i++){
|
|
98
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
99
|
+
var ownKeys = Object.keys(source);
|
|
100
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
101
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
102
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
105
|
+
ownKeys.forEach(function(key) {
|
|
106
|
+
_define_property(target, key, source[key]);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
return target;
|
|
110
|
+
}
|
|
111
|
+
function ownKeys(object, enumerableOnly) {
|
|
112
|
+
var keys = Object.keys(object);
|
|
113
|
+
if (Object.getOwnPropertySymbols) {
|
|
114
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
115
|
+
if (enumerableOnly) {
|
|
116
|
+
symbols = symbols.filter(function(sym) {
|
|
117
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
keys.push.apply(keys, symbols);
|
|
121
|
+
}
|
|
122
|
+
return keys;
|
|
123
|
+
}
|
|
124
|
+
function _object_spread_props(target, source) {
|
|
125
|
+
source = source != null ? source : {};
|
|
126
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
127
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
128
|
+
} else {
|
|
129
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
130
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return target;
|
|
134
|
+
}
|
|
135
|
+
function _object_without_properties(source, excluded) {
|
|
136
|
+
if (source == null) return {};
|
|
137
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
138
|
+
var key, i;
|
|
139
|
+
if (Object.getOwnPropertySymbols) {
|
|
140
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
141
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
142
|
+
key = sourceSymbolKeys[i];
|
|
143
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
144
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
145
|
+
target[key] = source[key];
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return target;
|
|
149
|
+
}
|
|
150
|
+
function _object_without_properties_loose(source, excluded) {
|
|
151
|
+
if (source == null) return {};
|
|
152
|
+
var target = {};
|
|
153
|
+
var sourceKeys = Object.keys(source);
|
|
154
|
+
var key, i;
|
|
155
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
156
|
+
key = sourceKeys[i];
|
|
157
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
158
|
+
target[key] = source[key];
|
|
159
|
+
}
|
|
160
|
+
return target;
|
|
161
|
+
}
|
|
162
|
+
const AvatarWrapper = (0, _styles.styled)('div')(()=>({
|
|
163
|
+
display: 'flex',
|
|
164
|
+
alignItems: 'center',
|
|
165
|
+
justifyContent: 'space-between',
|
|
166
|
+
flexDirection: 'row'
|
|
167
|
+
}));
|
|
168
|
+
const AvatarGroup = (0, _styles.styled)('div')(()=>({
|
|
169
|
+
display: 'flex',
|
|
170
|
+
alignItems: 'center',
|
|
171
|
+
justifyContent: 'space-between',
|
|
172
|
+
flexDirection: 'row',
|
|
173
|
+
'&>:first-of-type': {
|
|
174
|
+
marginLeft: 0
|
|
175
|
+
}
|
|
176
|
+
}));
|
|
177
|
+
const StyledAvatar = (0, _styles.styled)(_Avatar.default)(({ theme })=>({
|
|
178
|
+
width: 32,
|
|
179
|
+
height: 32,
|
|
180
|
+
border: `2px solid ${theme.palette.common.white}`,
|
|
181
|
+
marginLeft: '-8px',
|
|
182
|
+
fontFamily: 'Open Sans',
|
|
183
|
+
fontStyle: 'normal',
|
|
184
|
+
fontWeight: 'normal',
|
|
185
|
+
fontSize: 14,
|
|
186
|
+
lineHeight: '20px',
|
|
187
|
+
letterSpacing: '0.15px'
|
|
188
|
+
}));
|
|
189
|
+
const StyledMoreAvatar = (0, _styles.styled)(_Avatar.default)(({ theme })=>({
|
|
190
|
+
width: 32,
|
|
191
|
+
height: 32,
|
|
192
|
+
border: `2px solid ${theme.palette.common.white}`,
|
|
193
|
+
marginLeft: '-8px',
|
|
194
|
+
fontFamily: 'Open Sans',
|
|
195
|
+
fontStyle: 'normal',
|
|
196
|
+
fontWeight: 'normal',
|
|
197
|
+
fontSize: 11,
|
|
198
|
+
lineHeight: '16px',
|
|
199
|
+
letterSpacing: '0.1px',
|
|
200
|
+
color: theme.palette.greyscale.dark,
|
|
201
|
+
backgroundColor: theme.palette.greyscale.light
|
|
202
|
+
}));
|
|
203
|
+
const EditIcon = (0, _styles.styled)(_EditOutlined.default)(({ theme })=>({
|
|
204
|
+
cursor: 'pointer',
|
|
205
|
+
color: theme.palette.primary.light
|
|
206
|
+
}));
|
|
207
|
+
const FxTooltip = (0, _styles.styled)((_param)=>{
|
|
208
|
+
var { className } = _param, props = _object_without_properties(_param, [
|
|
209
|
+
"className"
|
|
210
|
+
]);
|
|
211
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Tooltip.default, _object_spread_props(_object_spread({}, props), {
|
|
212
|
+
placement: "top",
|
|
213
|
+
arrow: true,
|
|
214
|
+
classes: {
|
|
215
|
+
popper: className
|
|
216
|
+
}
|
|
217
|
+
}));
|
|
218
|
+
})(({ theme })=>({
|
|
219
|
+
[`& .${_Tooltip.tooltipClasses.arrow}`]: {
|
|
220
|
+
color: theme.palette.primary.main
|
|
221
|
+
},
|
|
222
|
+
[`& .${_Tooltip.tooltipClasses.tooltip}`]: {
|
|
223
|
+
backgroundColor: theme.palette.primary.main,
|
|
224
|
+
padding: 12,
|
|
225
|
+
fontFamily: 'Open Sans',
|
|
226
|
+
fontStyle: 'normal',
|
|
227
|
+
fontWeight: 'normal',
|
|
228
|
+
fontSize: 14,
|
|
229
|
+
lineHeight: '20px',
|
|
230
|
+
textAlign: 'center',
|
|
231
|
+
letterSpacing: '0.15px'
|
|
232
|
+
}
|
|
233
|
+
}));
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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");
|
|
@@ -0,0 +1,28 @@
|
|
|
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 _Button = /*#__PURE__*/ _interop_require_default(require("@mui/material/Button"));
|
|
12
|
+
const _styles = require("@mui/material/styles");
|
|
13
|
+
function _interop_require_default(obj) {
|
|
14
|
+
return obj && obj.__esModule ? obj : {
|
|
15
|
+
default: obj
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
const ButtonStyled = (0, _styles.styled)(_Button.default)(({ theme, variant })=>{
|
|
19
|
+
const border = variant === 'text' ? '0px solid #0000' : `1px solid ${theme.palette.primary.main}`;
|
|
20
|
+
return {
|
|
21
|
+
border,
|
|
22
|
+
minHeight: '40px',
|
|
23
|
+
borderRadius: '100px',
|
|
24
|
+
minWidth: '87px',
|
|
25
|
+
fontSize: '12px',
|
|
26
|
+
letterSpacing: '0.5px'
|
|
27
|
+
};
|
|
28
|
+
});
|
package/dist/fixefy-ui-components/src/FxButtonModalWithComponent/FxButtonModalWithComponent.js
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "FxButtonModalWithComponent", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return FxButtonModalWithComponent;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
+
const _Fade = /*#__PURE__*/ _interop_require_default(require("@mui/material/Fade"));
|
|
14
|
+
const _Menu = /*#__PURE__*/ _interop_require_default(require("@mui/material/Menu"));
|
|
15
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
16
|
+
const _FxStyledButton = require("../FxStyledButton");
|
|
17
|
+
function _interop_require_default(obj) {
|
|
18
|
+
return obj && obj.__esModule ? obj : {
|
|
19
|
+
default: obj
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
23
|
+
if (typeof WeakMap !== "function") return null;
|
|
24
|
+
var cacheBabelInterop = new WeakMap();
|
|
25
|
+
var cacheNodeInterop = new WeakMap();
|
|
26
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
27
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
28
|
+
})(nodeInterop);
|
|
29
|
+
}
|
|
30
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
31
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
32
|
+
return obj;
|
|
33
|
+
}
|
|
34
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
35
|
+
return {
|
|
36
|
+
default: obj
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
40
|
+
if (cache && cache.has(obj)) {
|
|
41
|
+
return cache.get(obj);
|
|
42
|
+
}
|
|
43
|
+
var newObj = {
|
|
44
|
+
__proto__: null
|
|
45
|
+
};
|
|
46
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
47
|
+
for(var key in obj){
|
|
48
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
49
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
50
|
+
if (desc && (desc.get || desc.set)) {
|
|
51
|
+
Object.defineProperty(newObj, key, desc);
|
|
52
|
+
} else {
|
|
53
|
+
newObj[key] = obj[key];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
newObj.default = obj;
|
|
58
|
+
if (cache) {
|
|
59
|
+
cache.set(obj, newObj);
|
|
60
|
+
}
|
|
61
|
+
return newObj;
|
|
62
|
+
}
|
|
63
|
+
const FxButtonModalWithComponent = ({ assetUrl, btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize })=>{
|
|
64
|
+
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
65
|
+
const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
|
|
66
|
+
const handleClick = (e)=>{
|
|
67
|
+
if (onClick) {
|
|
68
|
+
onClick();
|
|
69
|
+
setIsOpen((prev)=>!prev);
|
|
70
|
+
setAnchorEl(e.currentTarget);
|
|
71
|
+
} else {
|
|
72
|
+
setIsOpen((prev)=>!prev);
|
|
73
|
+
setAnchorEl(e.currentTarget);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const handleClose = ()=>{
|
|
77
|
+
setIsOpen(false);
|
|
78
|
+
setAnchorEl(null);
|
|
79
|
+
};
|
|
80
|
+
(0, _react.useEffect)(()=>{
|
|
81
|
+
setIsOpen(false);
|
|
82
|
+
}, [
|
|
83
|
+
btnValue
|
|
84
|
+
]);
|
|
85
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
86
|
+
children: [
|
|
87
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledButton.FxStyledButton, {
|
|
88
|
+
assetUrl: assetUrl,
|
|
89
|
+
sx: sx,
|
|
90
|
+
btnType: btnType,
|
|
91
|
+
btnValue: btnValue,
|
|
92
|
+
onClick: handleClick,
|
|
93
|
+
startIcon: startIcon,
|
|
94
|
+
endIcon: endIcon,
|
|
95
|
+
disabled: disabled,
|
|
96
|
+
iconSize: iconSize || 20
|
|
97
|
+
}),
|
|
98
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Menu.default, {
|
|
99
|
+
id: "fade-menu",
|
|
100
|
+
MenuListProps: {
|
|
101
|
+
'aria-labelledby': 'fade-button'
|
|
102
|
+
},
|
|
103
|
+
sx: {
|
|
104
|
+
'& .MuiList-root': {
|
|
105
|
+
padding: 0,
|
|
106
|
+
paddingTop: 0,
|
|
107
|
+
paddingBottom: 0
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
anchorEl: AnchorEl,
|
|
111
|
+
open: isOpen,
|
|
112
|
+
onClose: handleClose,
|
|
113
|
+
TransitionComponent: _Fade.default,
|
|
114
|
+
children: isOpen && modalData
|
|
115
|
+
})
|
|
116
|
+
]
|
|
117
|
+
});
|
|
118
|
+
};
|