@fixefy/fixefy-ui-components 0.3.30 → 0.3.31
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/FxCheckbox/FxCheckbox.d.ts +9 -0
- package/dist/FxCheckbox/FxCheckbox.js +76 -0
- package/dist/FxCheckbox/index.d.ts +1 -0
- package/dist/{src/FxIcon → FxCheckbox}/index.js +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
- package/dist/FxActionButton/FxActionButton.d.ts +0 -7
- package/dist/FxActionButton/FxActionButton.js +0 -82
- package/dist/FxActionButton/index.d.ts +0 -1
- package/dist/FxActionButton/index.js +0 -11
- package/dist/FxActionsTray/styles/actions_tray.styles.d.ts +0 -8
- package/dist/FxActionsTray/styles/actions_tray.styles.js +0 -159
- package/dist/FxFilterActionButton/FxFilterActionButton.d.ts +0 -7
- package/dist/FxFilterActionButton/FxFilterActionButton.js +0 -82
- package/dist/FxFilterActionButton/index.d.ts +0 -1
- package/dist/FxFilterActionButton/index.js +0 -11
- package/dist/FxFilterSortButton/FxFilterSortButton.d.ts +0 -7
- package/dist/FxFilterSortButton/FxFilterSortButton.js +0 -82
- package/dist/FxFilterSortButton/index.d.ts +0 -1
- package/dist/FxFilterSortButton/index.js +0 -11
- package/dist/FxModalWithButton/FxModalWithButton.d.ts +0 -10
- package/dist/FxModalWithButton/FxModalWithButton.js +0 -131
- package/dist/FxModalWithButton/index.d.ts +0 -1
- package/dist/FxModalWithButton/index.js +0 -11
- package/dist/FxModalWithComponent/FxModalWithComponent.d.ts +0 -11
- package/dist/FxModalWithComponent/FxModalWithComponent.js +0 -102
- package/dist/FxModalWithComponent/index.d.ts +0 -1
- package/dist/FxModalWithComponent/index.js +0 -11
- package/dist/FxModalWithMenu/FxModalWithMenu.d.ts +0 -14
- package/dist/FxModalWithMenu/FxModalWithMenu.js +0 -114
- package/dist/FxModalWithMenu/index.d.ts +0 -1
- package/dist/FxModalWithMenu/index.js +0 -11
- package/dist/FxPopper/styles/makeStyles.d.ts +0 -16
- package/dist/FxPopper/styles/makeStyles.js +0 -23
- package/dist/FxWizard/FxWizard/FxWizard.d.ts +0 -6
- package/dist/FxWizard/FxWizard/FxWizard.js +0 -42
- package/dist/FxWizard/FxWizard/index.d.ts +0 -2
- package/dist/FxWizard/FxWizard/index.js +0 -19
- package/dist/FxWizard/FxWizard/utils/envHelpers.d.ts +0 -1
- package/dist/FxWizard/FxWizard/utils/envHelpers.js +0 -35
- package/dist/FxWizard/FxWizard/utils/index.d.ts +0 -1
- package/dist/FxWizard/FxWizard/utils/index.js +0 -18
- package/dist/FxWizard/pages/wizard/[step].d.ts +0 -9
- package/dist/FxWizard/pages/wizard/[step].js +0 -112
- package/dist/FxWizard/pages/wizard/index.d.ts +0 -1
- package/dist/FxWizard/pages/wizard/index.js +0 -18
- package/dist/src/FxActionsTray/FxActionsTray.js +0 -351
- package/dist/src/FxActionsTray/index.js +0 -19
- package/dist/src/FxActionsTray/styles/actions_tray.styles.js +0 -159
- package/dist/src/FxAggregationsBar/FxAggregations.js +0 -41
- package/dist/src/FxAggregationsBar/helpers/structureReader.js +0 -78
- package/dist/src/FxAggregationsBar/index.js +0 -22
- package/dist/src/FxAggregationsBar/operations/query.js +0 -73
- package/dist/src/FxAsyncDropdown/FxAsyncDropdown.js +0 -628
- package/dist/src/FxAsyncDropdown/helpers/helpers.js +0 -161
- package/dist/src/FxAsyncDropdown/index.js +0 -25
- package/dist/src/FxAsyncDropdown/styles/dropdown.styles.js +0 -228
- package/dist/src/FxAvatar/FxAvatar.js +0 -145
- package/dist/src/FxAvatar/helpers/stringToColor.js +0 -23
- package/dist/src/FxAvatar/index.js +0 -22
- package/dist/src/FxAvatar/styles/avatar.styles.js +0 -192
- package/dist/src/FxButton/FxButton.js +0 -106
- package/dist/src/FxButton/index.js +0 -19
- package/dist/src/FxButton/styles/button.styles.js +0 -23
- package/dist/src/FxChip/FxChip.js +0 -45
- package/dist/src/FxChip/index.js +0 -19
- package/dist/src/FxChip/styles/chip.styles.js +0 -61
- package/dist/src/FxFilterSortButton/FxFilterSortButton.js +0 -82
- package/dist/src/FxFilterSortButton/index.js +0 -11
- package/dist/src/FxIcon/FxIcon.js +0 -107
- package/dist/src/FxIcon/content/dynamic_icon.js +0 -20
- package/dist/src/FxIcon/content/index.js +0 -20
- package/dist/src/FxIcon/content/lazy_icon.js +0 -137
- package/dist/src/FxModal/FxModal.js +0 -170
- package/dist/src/FxModal/index.js +0 -19
- package/dist/src/FxModal/styles/modal.style.js +0 -59
- package/dist/src/FxModalWithButton/FxModalWithButton.js +0 -94
- package/dist/src/FxModalWithButton/index.js +0 -11
- package/dist/src/FxNotes/FxNotes.js +0 -216
- package/dist/src/FxNotes/helpers/stringToColor.js +0 -26
- package/dist/src/FxNotes/index.js +0 -22
- package/dist/src/FxNotes/operations/queries.js +0 -35
- package/dist/src/FxNotes/styles/notes.styles.js +0 -168
- package/dist/src/FxNumberField/FxNumberField.js +0 -109
- package/dist/src/FxNumberField/index.js +0 -19
- package/dist/src/FxNumberField/styles/number_field.styles.js +0 -94
- package/dist/src/FxProgressCircle/FxProgressCircle.js +0 -65
- package/dist/src/FxProgressCircle/index.js +0 -19
- package/dist/src/FxProgressCircle/styles/progress_circle.styles.js +0 -106
- package/dist/src/FxProgressCounter/ProgressCounter.js +0 -168
- package/dist/src/FxProgressCounter/index.js +0 -19
- package/dist/src/FxProgressCounter/styles/progress_counter.styles.js +0 -61
- package/dist/src/FxScore/FxScore.js +0 -207
- package/dist/src/FxScore/index.js +0 -19
- package/dist/src/FxScore/styles/score.styles.js +0 -97
- package/dist/src/FxShowMore/FxShowMore.js +0 -80
- package/dist/src/FxShowMore/index.js +0 -19
- package/dist/src/FxShowMore/styles/show_more.styles.js +0 -134
- package/dist/src/FxSlider/FxSlider.js +0 -49
- package/dist/src/FxSlider/index.js +0 -19
- package/dist/src/FxStatisticsBar/FxStatisticsBar.js +0 -191
- package/dist/src/FxStatisticsBar/index.js +0 -19
- package/dist/src/FxStatisticsBar/styles/statistics.styles.js +0 -98
- package/dist/src/FxStatusBar/FxStatusBar.js +0 -143
- package/dist/src/FxStatusBar/helpers/constants.js +0 -22
- package/dist/src/FxStatusBar/index.js +0 -22
- package/dist/src/FxStatusBar/styles/statusBar.styles.js +0 -131
- package/dist/src/FxStyledComponents/index.js +0 -310
- package/dist/src/FxTag/FxTag.js +0 -41
- package/dist/src/FxTag/index.js +0 -19
- package/dist/src/FxTag/styles/tag.styles.js +0 -100
- package/dist/src/FxTextField/FxTextField.js +0 -208
- package/dist/src/FxTextField/index.js +0 -19
- package/dist/src/FxTodo/FxTodo.js +0 -95
- package/dist/src/FxTodo/index.js +0 -22
- package/dist/src/FxTodo/styles/todo.styles.js +0 -183
- package/dist/src/index.js +0 -215
|
@@ -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");
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "LazyIcon", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return LazyIcon;
|
|
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 _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
|
-
const LazyIcon = ({ icon, root, width, height })=>{
|
|
115
|
-
const [isError, setError] = (0, _react.useState)(false);
|
|
116
|
-
const handleError = (isError)=>setError(isError);
|
|
117
|
-
if (isError) {
|
|
118
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Avatar, {
|
|
119
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
120
|
-
fontSize: 29,
|
|
121
|
-
fontWeight: 600,
|
|
122
|
-
children: (0, _fixefyuiutils.toInitials)(icon)
|
|
123
|
-
})
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
|
|
127
|
-
alt: icon,
|
|
128
|
-
width: width,
|
|
129
|
-
height: height,
|
|
130
|
-
loader: (obj)=>(0, _fixefyuiutils.imageLoader)(_object_spread_props(_object_spread({}, obj), {
|
|
131
|
-
root
|
|
132
|
-
})),
|
|
133
|
-
src: icon,
|
|
134
|
-
onLoad: ()=>handleError(false),
|
|
135
|
-
onError: ()=>handleError(true)
|
|
136
|
-
});
|
|
137
|
-
};
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxModal", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return FxModal;
|
|
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
|
-
const _modalstyle = require("./styles/modal.style");
|
|
15
|
-
function _define_property(obj, key, value) {
|
|
16
|
-
if (key in obj) {
|
|
17
|
-
Object.defineProperty(obj, key, {
|
|
18
|
-
value: value,
|
|
19
|
-
enumerable: true,
|
|
20
|
-
configurable: true,
|
|
21
|
-
writable: true
|
|
22
|
-
});
|
|
23
|
-
} else {
|
|
24
|
-
obj[key] = value;
|
|
25
|
-
}
|
|
26
|
-
return obj;
|
|
27
|
-
}
|
|
28
|
-
function _interop_require_default(obj) {
|
|
29
|
-
return obj && obj.__esModule ? obj : {
|
|
30
|
-
default: obj
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function _object_spread(target) {
|
|
34
|
-
for(var i = 1; i < arguments.length; i++){
|
|
35
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
36
|
-
var ownKeys = Object.keys(source);
|
|
37
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
38
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
39
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
40
|
-
}));
|
|
41
|
-
}
|
|
42
|
-
ownKeys.forEach(function(key) {
|
|
43
|
-
_define_property(target, key, source[key]);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
return target;
|
|
47
|
-
}
|
|
48
|
-
function ownKeys(object, enumerableOnly) {
|
|
49
|
-
var keys = Object.keys(object);
|
|
50
|
-
if (Object.getOwnPropertySymbols) {
|
|
51
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
52
|
-
if (enumerableOnly) {
|
|
53
|
-
symbols = symbols.filter(function(sym) {
|
|
54
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
keys.push.apply(keys, symbols);
|
|
58
|
-
}
|
|
59
|
-
return keys;
|
|
60
|
-
}
|
|
61
|
-
function _object_spread_props(target, source) {
|
|
62
|
-
source = source != null ? source : {};
|
|
63
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
64
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
65
|
-
} else {
|
|
66
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
67
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
return target;
|
|
71
|
-
}
|
|
72
|
-
function _object_without_properties(source, excluded) {
|
|
73
|
-
if (source == null) return {};
|
|
74
|
-
var target = _object_without_properties_loose(source, excluded);
|
|
75
|
-
var key, i;
|
|
76
|
-
if (Object.getOwnPropertySymbols) {
|
|
77
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
78
|
-
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
79
|
-
key = sourceSymbolKeys[i];
|
|
80
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
81
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
82
|
-
target[key] = source[key];
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
return target;
|
|
86
|
-
}
|
|
87
|
-
function _object_without_properties_loose(source, excluded) {
|
|
88
|
-
if (source == null) return {};
|
|
89
|
-
var target = {};
|
|
90
|
-
var sourceKeys = Object.keys(source);
|
|
91
|
-
var key, i;
|
|
92
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
93
|
-
key = sourceKeys[i];
|
|
94
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
95
|
-
target[key] = source[key];
|
|
96
|
-
}
|
|
97
|
-
return target;
|
|
98
|
-
}
|
|
99
|
-
const FxDialogTitle = (props)=>{
|
|
100
|
-
const { children } = props, other = _object_without_properties(props, [
|
|
101
|
-
"children"
|
|
102
|
-
]);
|
|
103
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_modalstyle.StyledDialogTitle, _object_spread_props(_object_spread({}, other), {
|
|
104
|
-
children: children
|
|
105
|
-
}));
|
|
106
|
-
};
|
|
107
|
-
const FxInlineDialogTitle = (props)=>{
|
|
108
|
-
const { children } = props, other = _object_without_properties(props, [
|
|
109
|
-
"children"
|
|
110
|
-
]);
|
|
111
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_modalstyle.StyledInlineDialogTitle, _object_spread_props(_object_spread({}, other), {
|
|
112
|
-
children: children
|
|
113
|
-
}));
|
|
114
|
-
};
|
|
115
|
-
const IconTitle = ({ icon, title, inline })=>{
|
|
116
|
-
const renderObject = inline ? /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
117
|
-
sx: {
|
|
118
|
-
display: 'flex',
|
|
119
|
-
alignItems: 'center'
|
|
120
|
-
},
|
|
121
|
-
children: [
|
|
122
|
-
icon,
|
|
123
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(FxInlineDialogTitle, {
|
|
124
|
-
id: "customized-dialog-title",
|
|
125
|
-
children: title
|
|
126
|
-
})
|
|
127
|
-
]
|
|
128
|
-
}) : /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
129
|
-
children: [
|
|
130
|
-
icon && icon,
|
|
131
|
-
title && /*#__PURE__*/ (0, _jsxruntime.jsx)(FxDialogTitle, {
|
|
132
|
-
id: "customized-dialog-title",
|
|
133
|
-
children: title
|
|
134
|
-
})
|
|
135
|
-
]
|
|
136
|
-
});
|
|
137
|
-
return renderObject;
|
|
138
|
-
};
|
|
139
|
-
const FxModal = (_param)=>{
|
|
140
|
-
var { isOpen = false, isIconTitleInline = false, icon, onClose, children, title, actions } = _param, rest = _object_without_properties(_param, [
|
|
141
|
-
"isOpen",
|
|
142
|
-
"isIconTitleInline",
|
|
143
|
-
"icon",
|
|
144
|
-
"onClose",
|
|
145
|
-
"children",
|
|
146
|
-
"title",
|
|
147
|
-
"actions"
|
|
148
|
-
]);
|
|
149
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
150
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_modalstyle.FxDialog, _object_spread_props(_object_spread({}, rest), {
|
|
151
|
-
fullWidth: true,
|
|
152
|
-
onClose: onClose,
|
|
153
|
-
"aria-labelledby": "customized-dialog-title",
|
|
154
|
-
open: isOpen,
|
|
155
|
-
children: [
|
|
156
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(IconTitle, {
|
|
157
|
-
icon: icon,
|
|
158
|
-
title: title,
|
|
159
|
-
inline: isIconTitleInline
|
|
160
|
-
}),
|
|
161
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.DialogContent, {
|
|
162
|
-
children: children
|
|
163
|
-
}),
|
|
164
|
-
actions && /*#__PURE__*/ (0, _jsxruntime.jsx)(_modalstyle.DialogActionsStyled, {
|
|
165
|
-
children: actions
|
|
166
|
-
})
|
|
167
|
-
]
|
|
168
|
-
}))
|
|
169
|
-
});
|
|
170
|
-
};
|
|
@@ -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
|
-
FxModal: function() {
|
|
13
|
-
return _FxModal.FxModal;
|
|
14
|
-
},
|
|
15
|
-
ModalPropsType: function() {
|
|
16
|
-
return _FxModal.ModalPropsType;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _FxModal = require("./FxModal");
|
|
@@ -1,59 +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
|
-
DialogActionsStyled: function() {
|
|
13
|
-
return DialogActionsStyled;
|
|
14
|
-
},
|
|
15
|
-
FxDialog: function() {
|
|
16
|
-
return FxDialog;
|
|
17
|
-
},
|
|
18
|
-
StyledDialogTitle: function() {
|
|
19
|
-
return StyledDialogTitle;
|
|
20
|
-
},
|
|
21
|
-
StyledInlineDialogTitle: function() {
|
|
22
|
-
return StyledInlineDialogTitle;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
const _styles = require("@mui/material/styles");
|
|
26
|
-
const _material = require("@mui/material");
|
|
27
|
-
const FxDialog = (0, _styles.styled)(_material.Dialog)(()=>({
|
|
28
|
-
'& .MuiDialog-paper': {
|
|
29
|
-
borderRadius: 8,
|
|
30
|
-
padding: '24px',
|
|
31
|
-
// minWidth: "370px",
|
|
32
|
-
maxWidth: 'fit-content'
|
|
33
|
-
},
|
|
34
|
-
'& .MuiDialogContent-root': {
|
|
35
|
-
padding: 0
|
|
36
|
-
},
|
|
37
|
-
// "& .MuiDialogTitle-root": {
|
|
38
|
-
// margin: "8px 0",
|
|
39
|
-
// },
|
|
40
|
-
'& .MuiDialogActions-root': {
|
|
41
|
-
margin: '24px 0 0 0',
|
|
42
|
-
padding: 0
|
|
43
|
-
}
|
|
44
|
-
}));
|
|
45
|
-
const StyledDialogTitle = (0, _styles.styled)(_material.DialogTitle)(()=>({
|
|
46
|
-
fontSize: 14,
|
|
47
|
-
fontWeight: 900,
|
|
48
|
-
margin: '8px 0'
|
|
49
|
-
}));
|
|
50
|
-
const StyledInlineDialogTitle = (0, _styles.styled)(_material.DialogTitle)(()=>({
|
|
51
|
-
fontSize: 19,
|
|
52
|
-
fontWeight: 600,
|
|
53
|
-
color: '#568793',
|
|
54
|
-
margin: '8px 16px',
|
|
55
|
-
padding: 0
|
|
56
|
-
}));
|
|
57
|
-
const DialogActionsStyled = (0, _styles.styled)(_material.DialogActions)(({})=>({
|
|
58
|
-
justifyContent: 'flex-start'
|
|
59
|
-
}));
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxModalWithButton", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return FxModalWithButton;
|
|
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
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
15
|
-
if (typeof WeakMap !== "function") return null;
|
|
16
|
-
var cacheBabelInterop = new WeakMap();
|
|
17
|
-
var cacheNodeInterop = new WeakMap();
|
|
18
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
19
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
20
|
-
})(nodeInterop);
|
|
21
|
-
}
|
|
22
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
23
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
24
|
-
return obj;
|
|
25
|
-
}
|
|
26
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
27
|
-
return {
|
|
28
|
-
default: obj
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
32
|
-
if (cache && cache.has(obj)) {
|
|
33
|
-
return cache.get(obj);
|
|
34
|
-
}
|
|
35
|
-
var newObj = {
|
|
36
|
-
__proto__: null
|
|
37
|
-
};
|
|
38
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
39
|
-
for(var key in obj){
|
|
40
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
41
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
42
|
-
if (desc && (desc.get || desc.set)) {
|
|
43
|
-
Object.defineProperty(newObj, key, desc);
|
|
44
|
-
} else {
|
|
45
|
-
newObj[key] = obj[key];
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
newObj.default = obj;
|
|
50
|
-
if (cache) {
|
|
51
|
-
cache.set(obj, newObj);
|
|
52
|
-
}
|
|
53
|
-
return newObj;
|
|
54
|
-
}
|
|
55
|
-
const FxModalWithButton = ({ btnValue, modalData, onClick })=>{
|
|
56
|
-
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
57
|
-
const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
|
|
58
|
-
const handleClick = (e)=>{
|
|
59
|
-
if (onClick) {
|
|
60
|
-
onClick();
|
|
61
|
-
}
|
|
62
|
-
setIsOpen((prev)=>!prev);
|
|
63
|
-
setAnchorEl(e.currentTarget);
|
|
64
|
-
};
|
|
65
|
-
const handleClose = ()=>{
|
|
66
|
-
setIsOpen(false);
|
|
67
|
-
setAnchorEl(null);
|
|
68
|
-
};
|
|
69
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
70
|
-
children: [
|
|
71
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Button, {
|
|
72
|
-
id: "fade-button",
|
|
73
|
-
"aria-haspopup": "true",
|
|
74
|
-
onClick: handleClick,
|
|
75
|
-
sx: {
|
|
76
|
-
fontWeight: 'normal'
|
|
77
|
-
},
|
|
78
|
-
children: btnValue
|
|
79
|
-
}),
|
|
80
|
-
' ',
|
|
81
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Menu, {
|
|
82
|
-
id: "fade-menu",
|
|
83
|
-
MenuListProps: {
|
|
84
|
-
'aria-labelledby': 'fade-button'
|
|
85
|
-
},
|
|
86
|
-
anchorEl: AnchorEl,
|
|
87
|
-
open: isOpen,
|
|
88
|
-
onClose: handleClose,
|
|
89
|
-
TransitionComponent: _material.Fade,
|
|
90
|
-
children: isOpen && modalData
|
|
91
|
-
})
|
|
92
|
-
]
|
|
93
|
-
});
|
|
94
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxModalWithButton", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _FxModalWithButton.FxModalWithButton;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _FxModalWithButton = require("./FxModalWithButton");
|