@fixefy/fixefy-ui-components 0.3.31 → 0.3.34

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 (120) hide show
  1. package/dist/FxActionButton/FxActionButton.d.ts +7 -0
  2. package/dist/FxActionButton/FxActionButton.js +82 -0
  3. package/dist/FxActionButton/index.d.ts +1 -0
  4. package/dist/FxActionButton/index.js +11 -0
  5. package/dist/FxActionsTray/styles/actions_tray.styles.d.ts +8 -0
  6. package/dist/FxActionsTray/styles/actions_tray.styles.js +159 -0
  7. package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.d.ts +3 -2
  8. package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.js +3 -2
  9. package/dist/FxFilterActionButton/FxFilterActionButton.d.ts +7 -0
  10. package/dist/FxFilterActionButton/FxFilterActionButton.js +82 -0
  11. package/dist/FxFilterActionButton/index.d.ts +1 -0
  12. package/dist/FxFilterActionButton/index.js +11 -0
  13. package/dist/FxFilterSortButton/FxFilterSortButton.d.ts +7 -0
  14. package/dist/FxFilterSortButton/FxFilterSortButton.js +82 -0
  15. package/dist/FxFilterSortButton/index.d.ts +1 -0
  16. package/dist/FxFilterSortButton/index.js +11 -0
  17. package/dist/FxModalWithButton/FxModalWithButton.d.ts +10 -0
  18. package/dist/FxModalWithButton/FxModalWithButton.js +131 -0
  19. package/dist/FxModalWithButton/index.d.ts +1 -0
  20. package/dist/FxModalWithButton/index.js +11 -0
  21. package/dist/FxModalWithComponent/FxModalWithComponent.d.ts +11 -0
  22. package/dist/FxModalWithComponent/FxModalWithComponent.js +102 -0
  23. package/dist/FxModalWithComponent/index.d.ts +1 -0
  24. package/dist/FxModalWithComponent/index.js +11 -0
  25. package/dist/FxModalWithMenu/FxModalWithMenu.d.ts +14 -0
  26. package/dist/FxModalWithMenu/FxModalWithMenu.js +114 -0
  27. package/dist/FxModalWithMenu/index.d.ts +1 -0
  28. package/dist/FxModalWithMenu/index.js +11 -0
  29. package/dist/FxPopper/styles/makeStyles.d.ts +16 -0
  30. package/dist/FxPopper/styles/makeStyles.js +23 -0
  31. package/dist/FxWizard/FxWizard/FxWizard.d.ts +6 -0
  32. package/dist/FxWizard/FxWizard/FxWizard.js +42 -0
  33. package/dist/FxWizard/FxWizard/index.d.ts +2 -0
  34. package/dist/FxWizard/FxWizard/index.js +19 -0
  35. package/dist/FxWizard/FxWizard/utils/envHelpers.d.ts +1 -0
  36. package/dist/FxWizard/FxWizard/utils/envHelpers.js +35 -0
  37. package/dist/FxWizard/FxWizard/utils/index.d.ts +1 -0
  38. package/dist/FxWizard/FxWizard/utils/index.js +18 -0
  39. package/dist/FxWizard/pages/wizard/[step].d.ts +9 -0
  40. package/dist/FxWizard/pages/wizard/[step].js +112 -0
  41. package/dist/FxWizard/pages/wizard/index.d.ts +1 -0
  42. package/dist/FxWizard/pages/wizard/index.js +18 -0
  43. package/dist/index.d.ts +0 -1
  44. package/dist/index.js +0 -4
  45. package/dist/src/FxActionsTray/FxActionsTray.js +351 -0
  46. package/dist/src/FxActionsTray/index.js +19 -0
  47. package/dist/src/FxActionsTray/styles/actions_tray.styles.js +159 -0
  48. package/dist/src/FxAggregationsBar/FxAggregations.js +41 -0
  49. package/dist/src/FxAggregationsBar/helpers/structureReader.js +78 -0
  50. package/dist/src/FxAggregationsBar/index.js +22 -0
  51. package/dist/src/FxAggregationsBar/operations/query.js +73 -0
  52. package/dist/src/FxAsyncDropdown/FxAsyncDropdown.js +628 -0
  53. package/dist/src/FxAsyncDropdown/helpers/helpers.js +161 -0
  54. package/dist/src/FxAsyncDropdown/index.js +25 -0
  55. package/dist/src/FxAsyncDropdown/styles/dropdown.styles.js +228 -0
  56. package/dist/src/FxAvatar/FxAvatar.js +145 -0
  57. package/dist/src/FxAvatar/helpers/stringToColor.js +23 -0
  58. package/dist/src/FxAvatar/index.js +22 -0
  59. package/dist/src/FxAvatar/styles/avatar.styles.js +192 -0
  60. package/dist/src/FxButton/FxButton.js +106 -0
  61. package/dist/src/FxButton/index.js +19 -0
  62. package/dist/src/FxButton/styles/button.styles.js +23 -0
  63. package/dist/src/FxChip/FxChip.js +45 -0
  64. package/dist/src/FxChip/index.js +19 -0
  65. package/dist/src/FxChip/styles/chip.styles.js +61 -0
  66. package/dist/src/FxFilterSortButton/FxFilterSortButton.js +82 -0
  67. package/dist/src/FxFilterSortButton/index.js +11 -0
  68. package/dist/src/FxIcon/FxIcon.js +107 -0
  69. package/dist/src/FxIcon/content/dynamic_icon.js +20 -0
  70. package/dist/src/FxIcon/content/index.js +20 -0
  71. package/dist/src/FxIcon/content/lazy_icon.js +137 -0
  72. package/dist/{FxCheckbox → src/FxIcon}/index.js +3 -3
  73. package/dist/src/FxModal/FxModal.js +170 -0
  74. package/dist/src/FxModal/index.js +19 -0
  75. package/dist/src/FxModal/styles/modal.style.js +59 -0
  76. package/dist/src/FxModalWithButton/FxModalWithButton.js +94 -0
  77. package/dist/src/FxModalWithButton/index.js +11 -0
  78. package/dist/src/FxNotes/FxNotes.js +216 -0
  79. package/dist/src/FxNotes/helpers/stringToColor.js +26 -0
  80. package/dist/src/FxNotes/index.js +22 -0
  81. package/dist/src/FxNotes/operations/queries.js +35 -0
  82. package/dist/src/FxNotes/styles/notes.styles.js +168 -0
  83. package/dist/src/FxNumberField/FxNumberField.js +109 -0
  84. package/dist/src/FxNumberField/index.js +19 -0
  85. package/dist/src/FxNumberField/styles/number_field.styles.js +94 -0
  86. package/dist/src/FxProgressCircle/FxProgressCircle.js +65 -0
  87. package/dist/src/FxProgressCircle/index.js +19 -0
  88. package/dist/src/FxProgressCircle/styles/progress_circle.styles.js +106 -0
  89. package/dist/src/FxProgressCounter/ProgressCounter.js +168 -0
  90. package/dist/src/FxProgressCounter/index.js +19 -0
  91. package/dist/src/FxProgressCounter/styles/progress_counter.styles.js +61 -0
  92. package/dist/src/FxScore/FxScore.js +207 -0
  93. package/dist/src/FxScore/index.js +19 -0
  94. package/dist/src/FxScore/styles/score.styles.js +97 -0
  95. package/dist/src/FxShowMore/FxShowMore.js +80 -0
  96. package/dist/src/FxShowMore/index.js +19 -0
  97. package/dist/src/FxShowMore/styles/show_more.styles.js +134 -0
  98. package/dist/src/FxSlider/FxSlider.js +49 -0
  99. package/dist/src/FxSlider/index.js +19 -0
  100. package/dist/src/FxStatisticsBar/FxStatisticsBar.js +191 -0
  101. package/dist/src/FxStatisticsBar/index.js +19 -0
  102. package/dist/src/FxStatisticsBar/styles/statistics.styles.js +98 -0
  103. package/dist/src/FxStatusBar/FxStatusBar.js +143 -0
  104. package/dist/src/FxStatusBar/helpers/constants.js +22 -0
  105. package/dist/src/FxStatusBar/index.js +22 -0
  106. package/dist/src/FxStatusBar/styles/statusBar.styles.js +131 -0
  107. package/dist/src/FxStyledComponents/index.js +310 -0
  108. package/dist/src/FxTag/FxTag.js +41 -0
  109. package/dist/src/FxTag/index.js +19 -0
  110. package/dist/src/FxTag/styles/tag.styles.js +100 -0
  111. package/dist/src/FxTextField/FxTextField.js +208 -0
  112. package/dist/src/FxTextField/index.js +19 -0
  113. package/dist/src/FxTodo/FxTodo.js +95 -0
  114. package/dist/src/FxTodo/index.js +22 -0
  115. package/dist/src/FxTodo/styles/todo.styles.js +183 -0
  116. package/dist/src/index.js +215 -0
  117. package/package.json +1 -1
  118. package/dist/FxCheckbox/FxCheckbox.d.ts +0 -9
  119. package/dist/FxCheckbox/FxCheckbox.js +0 -76
  120. package/dist/FxCheckbox/index.d.ts +0 -1
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const FxActionButton: ({ btnValue, onClick, startIcon, sx, }: {
3
+ btnValue: string;
4
+ onClick: any;
5
+ startIcon?: any;
6
+ sx?: any;
7
+ }) => React.JSX.Element;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "FxActionButton", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return FxActionButton;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
+ const _material = require("@mui/material");
14
+ function _define_property(obj, key, value) {
15
+ if (key in obj) {
16
+ Object.defineProperty(obj, key, {
17
+ value: value,
18
+ enumerable: true,
19
+ configurable: true,
20
+ writable: true
21
+ });
22
+ } else {
23
+ obj[key] = value;
24
+ }
25
+ return obj;
26
+ }
27
+ function _interop_require_default(obj) {
28
+ return obj && obj.__esModule ? obj : {
29
+ default: obj
30
+ };
31
+ }
32
+ function _object_spread(target) {
33
+ for(var i = 1; i < arguments.length; i++){
34
+ var source = arguments[i] != null ? arguments[i] : {};
35
+ var ownKeys = Object.keys(source);
36
+ if (typeof Object.getOwnPropertySymbols === "function") {
37
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
38
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
39
+ }));
40
+ }
41
+ ownKeys.forEach(function(key) {
42
+ _define_property(target, key, source[key]);
43
+ });
44
+ }
45
+ return target;
46
+ }
47
+ function ownKeys(object, enumerableOnly) {
48
+ var keys = Object.keys(object);
49
+ if (Object.getOwnPropertySymbols) {
50
+ var symbols = Object.getOwnPropertySymbols(object);
51
+ if (enumerableOnly) {
52
+ symbols = symbols.filter(function(sym) {
53
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
54
+ });
55
+ }
56
+ keys.push.apply(keys, symbols);
57
+ }
58
+ return keys;
59
+ }
60
+ function _object_spread_props(target, source) {
61
+ source = source != null ? source : {};
62
+ if (Object.getOwnPropertyDescriptors) {
63
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
64
+ } else {
65
+ ownKeys(Object(source)).forEach(function(key) {
66
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
67
+ });
68
+ }
69
+ return target;
70
+ }
71
+ const FxActionButton = ({ btnValue, onClick, startIcon, sx })=>{
72
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Button, {
73
+ id: "fade-button",
74
+ sx: _object_spread_props(_object_spread({}, sx), {
75
+ fontWeight: 'normal'
76
+ }),
77
+ "aria-haspopup": "true",
78
+ startIcon: startIcon,
79
+ onClick: onClick,
80
+ children: btnValue
81
+ });
82
+ };
@@ -0,0 +1 @@
1
+ export { FxActionButton } from './FxActionButton';
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "FxActionButton", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _FxActionButton.FxActionButton;
9
+ }
10
+ });
11
+ const _FxActionButton = require("./FxActionButton");
@@ -0,0 +1,8 @@
1
+ export declare const Container: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
2
+ export declare const ChargesCount: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
3
+ export declare const ChargesTitle: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
4
+ export declare const Close: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
5
+ export declare const TitleWrapper: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
6
+ export declare const Divider: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
7
+ export declare const ActionBtn: StyledComponent<ComponentProps & AdditionalProps, SpecificComponentProps, JSXProps>;
8
+ export declare const ActionTitle: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ ActionBtn: function() {
13
+ return ActionBtn;
14
+ },
15
+ ActionTitle: function() {
16
+ return ActionTitle;
17
+ },
18
+ ChargesCount: function() {
19
+ return ChargesCount;
20
+ },
21
+ ChargesTitle: function() {
22
+ return ChargesTitle;
23
+ },
24
+ Close: function() {
25
+ return Close;
26
+ },
27
+ Container: function() {
28
+ return Container;
29
+ },
30
+ Divider: function() {
31
+ return Divider;
32
+ },
33
+ TitleWrapper: function() {
34
+ return TitleWrapper;
35
+ }
36
+ });
37
+ const _FxButton = require("../../FxButton");
38
+ const _material = require("@mui/material");
39
+ const _styles = require("@mui/material/styles");
40
+ function _define_property(obj, key, value) {
41
+ if (key in obj) {
42
+ Object.defineProperty(obj, key, {
43
+ value: value,
44
+ enumerable: true,
45
+ configurable: true,
46
+ writable: true
47
+ });
48
+ } else {
49
+ obj[key] = value;
50
+ }
51
+ return obj;
52
+ }
53
+ function _object_spread(target) {
54
+ for(var i = 1; i < arguments.length; i++){
55
+ var source = arguments[i] != null ? arguments[i] : {};
56
+ var ownKeys = Object.keys(source);
57
+ if (typeof Object.getOwnPropertySymbols === "function") {
58
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
59
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
60
+ }));
61
+ }
62
+ ownKeys.forEach(function(key) {
63
+ _define_property(target, key, source[key]);
64
+ });
65
+ }
66
+ return target;
67
+ }
68
+ function ownKeys(object, enumerableOnly) {
69
+ var keys = Object.keys(object);
70
+ if (Object.getOwnPropertySymbols) {
71
+ var symbols = Object.getOwnPropertySymbols(object);
72
+ if (enumerableOnly) {
73
+ symbols = symbols.filter(function(sym) {
74
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
75
+ });
76
+ }
77
+ keys.push.apply(keys, symbols);
78
+ }
79
+ return keys;
80
+ }
81
+ function _object_spread_props(target, source) {
82
+ source = source != null ? source : {};
83
+ if (Object.getOwnPropertyDescriptors) {
84
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
85
+ } else {
86
+ ownKeys(Object(source)).forEach(function(key) {
87
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
88
+ });
89
+ }
90
+ return target;
91
+ }
92
+ const filterPrimary = 'invert(46%) sepia(48%) saturate(297%) hue-rotate(145deg) brightness(97%) contrast(90%)';
93
+ const Container = (0, _styles.styled)('div')(({ theme })=>({
94
+ display: 'flex',
95
+ alignItems: 'center',
96
+ justifyContent: 'space-between',
97
+ background: theme.palette.common.white,
98
+ border: '1px solid #C6DDE2',
99
+ boxShadow: '0px 0px 10px rgba(86, 135, 147, 0.2)',
100
+ borderRadius: 8,
101
+ padding: '16px 24px',
102
+ height: 38,
103
+ width: 'fit-content',
104
+ margin: 4
105
+ }));
106
+ const ChargesCount = (0, _styles.styled)(_material.Typography)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.table), {
107
+ color: theme.palette.typography.title,
108
+ fontWeight: 700,
109
+ marginRight: 4
110
+ }));
111
+ const ChargesTitle = (0, _styles.styled)(_material.Typography)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.table), {
112
+ color: theme.palette.typography.title
113
+ }));
114
+ const Close = (0, _styles.styled)(_material.Typography)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
115
+ color: theme.palette.primary['500'],
116
+ textTransform: 'uppercase',
117
+ fontWeight: 600,
118
+ letterSpacing: '0.5px',
119
+ cursor: 'pointer'
120
+ }));
121
+ const TitleWrapper = (0, _styles.styled)('div')(({})=>({
122
+ display: 'flex',
123
+ alignItems: 'center',
124
+ justifyContent: 'center'
125
+ }));
126
+ const Divider = (0, _styles.styled)('div')(({ theme })=>({
127
+ width: 1,
128
+ height: '100%',
129
+ background: theme.palette.greyscale.contrastText,
130
+ marginRight: 24,
131
+ marginLeft: 24
132
+ }));
133
+ const ActionBtn = (0, _styles.styled)(_FxButton.FxButton)(({ theme, type })=>({
134
+ height: 40,
135
+ maxHeight: 40,
136
+ borderRadius: 100,
137
+ padding: '8px 16px',
138
+ color: type ? theme.palette.common.white : theme.palette.primary['500'],
139
+ borderColor: type ? theme.palette.score[type] : theme.palette.primary['500'],
140
+ background: type ? theme.palette.score[type] : theme.palette.common.white,
141
+ marginRight: 8,
142
+ ['& img']: {
143
+ filter: type ? 'none' : filterPrimary
144
+ },
145
+ ['&:hover']: {
146
+ background: type ? theme.palette.score[type] : theme.palette.common.white,
147
+ color: type ? theme.palette.common.white : theme.palette.primary['500'],
148
+ borderColor: type ? theme.palette.score[type] : theme.palette.primary['500']
149
+ }
150
+ }));
151
+ const ActionTitle = (0, _styles.styled)('span')(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
152
+ color: 'inherit',
153
+ textTransform: 'uppercase',
154
+ fontWeight: 600,
155
+ letterSpacing: '0.5px',
156
+ cursor: 'pointer',
157
+ marginLeft: 4,
158
+ marginTop: 2
159
+ }));
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
- export declare const FxButtonModalWithComponent: ({ btnType, btnValue, modalData, onClick, disabled, icon, sx, iconSize, }: {
2
+ export declare const FxButtonModalWithComponent: ({ btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize, }: {
3
3
  btnType?: 'text' | 'icon';
4
4
  btnValue?: string;
5
5
  modalData: any;
6
6
  onClick?: any;
7
7
  disabled?: boolean;
8
- icon?: string;
8
+ startIcon?: string;
9
+ endIcon?: string;
9
10
  sx?: any;
10
11
  iconSize?: number;
11
12
  }) => React.JSX.Element;
@@ -53,7 +53,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
53
53
  }
54
54
  return newObj;
55
55
  }
56
- const FxButtonModalWithComponent = ({ btnType = 'text', btnValue, modalData, onClick, disabled, icon, sx, iconSize })=>{
56
+ const FxButtonModalWithComponent = ({ btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize })=>{
57
57
  const [isOpen, setIsOpen] = (0, _react.useState)(false);
58
58
  const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
59
59
  const handleClick = (e)=>{
@@ -82,7 +82,8 @@ const FxButtonModalWithComponent = ({ btnType = 'text', btnValue, modalData, onC
82
82
  btnType: btnType,
83
83
  btnValue: btnValue,
84
84
  onClick: handleClick,
85
- startIcon: icon,
85
+ startIcon: startIcon,
86
+ endIcon: endIcon,
86
87
  disabled: disabled,
87
88
  iconSize: iconSize || 20
88
89
  }),
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const FxFilterActionButton: ({ btnValue, onClick, startIcon, sx, }: {
3
+ btnValue: string;
4
+ onClick: any;
5
+ startIcon?: any;
6
+ sx?: any;
7
+ }) => React.JSX.Element;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "FxFilterActionButton", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return FxFilterActionButton;
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 FxFilterActionButton = ({ 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
+ };
@@ -0,0 +1 @@
1
+ export { FxFilterActionButton } from './FxFilterActionButton';
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "FxFilterActionButton", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _FxFilterActionButton.FxFilterActionButton;
9
+ }
10
+ });
11
+ const _FxFilterActionButton = require("./FxFilterActionButton");
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const FxFilterSortButton: ({ btnValue, onClick, startIcon, sx, }: {
3
+ btnValue: string;
4
+ onClick: any;
5
+ startIcon?: any;
6
+ sx?: any;
7
+ }) => React.JSX.Element;
@@ -0,0 +1,82 @@
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
+ };
@@ -0,0 +1 @@
1
+ export { FxFilterSortButton } from './FxFilterSortButton';
@@ -0,0 +1,11 @@
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");
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export declare const FxModalWithButton: ({ btnType, color, btnValue, modalData, onClick, disabled, icon, }: {
3
+ btnType?: 'text' | 'icon';
4
+ color?: 'secondary' | undefined;
5
+ btnValue?: string;
6
+ modalData: any;
7
+ onClick?: any;
8
+ disabled?: boolean;
9
+ icon?: string;
10
+ }) => React.JSX.Element;
@@ -0,0 +1,131 @@
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
+ const _FxIcon = require("../FxIcon");
15
+ const _FxMenuItemWithIcon = require("../FxMenuItemWithIcon");
16
+ function _getRequireWildcardCache(nodeInterop) {
17
+ if (typeof WeakMap !== "function") return null;
18
+ var cacheBabelInterop = new WeakMap();
19
+ var cacheNodeInterop = new WeakMap();
20
+ return (_getRequireWildcardCache = function(nodeInterop) {
21
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
22
+ })(nodeInterop);
23
+ }
24
+ function _interop_require_wildcard(obj, nodeInterop) {
25
+ if (!nodeInterop && obj && obj.__esModule) {
26
+ return obj;
27
+ }
28
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
29
+ return {
30
+ default: obj
31
+ };
32
+ }
33
+ var cache = _getRequireWildcardCache(nodeInterop);
34
+ if (cache && cache.has(obj)) {
35
+ return cache.get(obj);
36
+ }
37
+ var newObj = {
38
+ __proto__: null
39
+ };
40
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
41
+ for(var key in obj){
42
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
43
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
44
+ if (desc && (desc.get || desc.set)) {
45
+ Object.defineProperty(newObj, key, desc);
46
+ } else {
47
+ newObj[key] = obj[key];
48
+ }
49
+ }
50
+ }
51
+ newObj.default = obj;
52
+ if (cache) {
53
+ cache.set(obj, newObj);
54
+ }
55
+ return newObj;
56
+ }
57
+ const FxModalWithButton = ({ btnType = 'text', color, btnValue, modalData, onClick, disabled, icon })=>{
58
+ const [isOpen, setIsOpen] = (0, _react.useState)(false);
59
+ const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
60
+ const handleClick = (e)=>{
61
+ if (onClick) {
62
+ onClick();
63
+ setIsOpen((prev)=>!prev);
64
+ setAnchorEl(e.currentTarget);
65
+ } else {
66
+ setIsOpen((prev)=>!prev);
67
+ setAnchorEl(e.currentTarget);
68
+ }
69
+ };
70
+ const handleClose = ()=>{
71
+ setIsOpen(false);
72
+ setAnchorEl(null);
73
+ };
74
+ (0, _react.useEffect)(()=>{
75
+ setIsOpen(false);
76
+ }, [
77
+ btnValue
78
+ ]);
79
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
80
+ children: [
81
+ btnType == 'text' && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Button, {
82
+ disabled: disabled,
83
+ color: color || 'primary',
84
+ id: "fade-button",
85
+ "aria-haspopup": "true",
86
+ onClick: handleClick,
87
+ sx: {
88
+ fontWeight: 'normal',
89
+ width: '100%',
90
+ justifyContent: 'flex-start',
91
+ '&:disabled': {
92
+ color: '#BDBDBD',
93
+ backgroundColor: '#F0F0F0'
94
+ }
95
+ },
96
+ children: btnValue
97
+ }),
98
+ btnType == 'icon' && icon && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.IconButton, {
99
+ onClick: handleClick,
100
+ children: [
101
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
102
+ icon: icon,
103
+ width: 20,
104
+ height: 20
105
+ }),
106
+ ' '
107
+ ]
108
+ }),
109
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Menu, {
110
+ id: "fade-menu",
111
+ MenuListProps: {
112
+ 'aria-labelledby': 'fade-button'
113
+ },
114
+ anchorEl: AnchorEl,
115
+ open: isOpen,
116
+ onClose: handleClose,
117
+ TransitionComponent: _material.Fade,
118
+ children: isOpen && (modalData === null || modalData === void 0 ? void 0 : modalData.map((item, i)=>{
119
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxMenuItemWithIcon.FxMenuItemWithIcon, {
120
+ icon: item.icon,
121
+ title: item.title,
122
+ onClick: ()=>{
123
+ handleClose();
124
+ item.onClick();
125
+ }
126
+ }, i);
127
+ }))
128
+ })
129
+ ]
130
+ });
131
+ };
@@ -0,0 +1 @@
1
+ export { FxModalWithButton } from './FxModalWithButton';
@@ -0,0 +1,11 @@
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");