@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.
Files changed (118) hide show
  1. package/dist/FxCheckbox/FxCheckbox.d.ts +9 -0
  2. package/dist/FxCheckbox/FxCheckbox.js +76 -0
  3. package/dist/FxCheckbox/index.d.ts +1 -0
  4. package/dist/{src/FxIcon → FxCheckbox}/index.js +3 -3
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.js +4 -0
  7. package/package.json +1 -1
  8. package/dist/FxActionButton/FxActionButton.d.ts +0 -7
  9. package/dist/FxActionButton/FxActionButton.js +0 -82
  10. package/dist/FxActionButton/index.d.ts +0 -1
  11. package/dist/FxActionButton/index.js +0 -11
  12. package/dist/FxActionsTray/styles/actions_tray.styles.d.ts +0 -8
  13. package/dist/FxActionsTray/styles/actions_tray.styles.js +0 -159
  14. package/dist/FxFilterActionButton/FxFilterActionButton.d.ts +0 -7
  15. package/dist/FxFilterActionButton/FxFilterActionButton.js +0 -82
  16. package/dist/FxFilterActionButton/index.d.ts +0 -1
  17. package/dist/FxFilterActionButton/index.js +0 -11
  18. package/dist/FxFilterSortButton/FxFilterSortButton.d.ts +0 -7
  19. package/dist/FxFilterSortButton/FxFilterSortButton.js +0 -82
  20. package/dist/FxFilterSortButton/index.d.ts +0 -1
  21. package/dist/FxFilterSortButton/index.js +0 -11
  22. package/dist/FxModalWithButton/FxModalWithButton.d.ts +0 -10
  23. package/dist/FxModalWithButton/FxModalWithButton.js +0 -131
  24. package/dist/FxModalWithButton/index.d.ts +0 -1
  25. package/dist/FxModalWithButton/index.js +0 -11
  26. package/dist/FxModalWithComponent/FxModalWithComponent.d.ts +0 -11
  27. package/dist/FxModalWithComponent/FxModalWithComponent.js +0 -102
  28. package/dist/FxModalWithComponent/index.d.ts +0 -1
  29. package/dist/FxModalWithComponent/index.js +0 -11
  30. package/dist/FxModalWithMenu/FxModalWithMenu.d.ts +0 -14
  31. package/dist/FxModalWithMenu/FxModalWithMenu.js +0 -114
  32. package/dist/FxModalWithMenu/index.d.ts +0 -1
  33. package/dist/FxModalWithMenu/index.js +0 -11
  34. package/dist/FxPopper/styles/makeStyles.d.ts +0 -16
  35. package/dist/FxPopper/styles/makeStyles.js +0 -23
  36. package/dist/FxWizard/FxWizard/FxWizard.d.ts +0 -6
  37. package/dist/FxWizard/FxWizard/FxWizard.js +0 -42
  38. package/dist/FxWizard/FxWizard/index.d.ts +0 -2
  39. package/dist/FxWizard/FxWizard/index.js +0 -19
  40. package/dist/FxWizard/FxWizard/utils/envHelpers.d.ts +0 -1
  41. package/dist/FxWizard/FxWizard/utils/envHelpers.js +0 -35
  42. package/dist/FxWizard/FxWizard/utils/index.d.ts +0 -1
  43. package/dist/FxWizard/FxWizard/utils/index.js +0 -18
  44. package/dist/FxWizard/pages/wizard/[step].d.ts +0 -9
  45. package/dist/FxWizard/pages/wizard/[step].js +0 -112
  46. package/dist/FxWizard/pages/wizard/index.d.ts +0 -1
  47. package/dist/FxWizard/pages/wizard/index.js +0 -18
  48. package/dist/src/FxActionsTray/FxActionsTray.js +0 -351
  49. package/dist/src/FxActionsTray/index.js +0 -19
  50. package/dist/src/FxActionsTray/styles/actions_tray.styles.js +0 -159
  51. package/dist/src/FxAggregationsBar/FxAggregations.js +0 -41
  52. package/dist/src/FxAggregationsBar/helpers/structureReader.js +0 -78
  53. package/dist/src/FxAggregationsBar/index.js +0 -22
  54. package/dist/src/FxAggregationsBar/operations/query.js +0 -73
  55. package/dist/src/FxAsyncDropdown/FxAsyncDropdown.js +0 -628
  56. package/dist/src/FxAsyncDropdown/helpers/helpers.js +0 -161
  57. package/dist/src/FxAsyncDropdown/index.js +0 -25
  58. package/dist/src/FxAsyncDropdown/styles/dropdown.styles.js +0 -228
  59. package/dist/src/FxAvatar/FxAvatar.js +0 -145
  60. package/dist/src/FxAvatar/helpers/stringToColor.js +0 -23
  61. package/dist/src/FxAvatar/index.js +0 -22
  62. package/dist/src/FxAvatar/styles/avatar.styles.js +0 -192
  63. package/dist/src/FxButton/FxButton.js +0 -106
  64. package/dist/src/FxButton/index.js +0 -19
  65. package/dist/src/FxButton/styles/button.styles.js +0 -23
  66. package/dist/src/FxChip/FxChip.js +0 -45
  67. package/dist/src/FxChip/index.js +0 -19
  68. package/dist/src/FxChip/styles/chip.styles.js +0 -61
  69. package/dist/src/FxFilterSortButton/FxFilterSortButton.js +0 -82
  70. package/dist/src/FxFilterSortButton/index.js +0 -11
  71. package/dist/src/FxIcon/FxIcon.js +0 -107
  72. package/dist/src/FxIcon/content/dynamic_icon.js +0 -20
  73. package/dist/src/FxIcon/content/index.js +0 -20
  74. package/dist/src/FxIcon/content/lazy_icon.js +0 -137
  75. package/dist/src/FxModal/FxModal.js +0 -170
  76. package/dist/src/FxModal/index.js +0 -19
  77. package/dist/src/FxModal/styles/modal.style.js +0 -59
  78. package/dist/src/FxModalWithButton/FxModalWithButton.js +0 -94
  79. package/dist/src/FxModalWithButton/index.js +0 -11
  80. package/dist/src/FxNotes/FxNotes.js +0 -216
  81. package/dist/src/FxNotes/helpers/stringToColor.js +0 -26
  82. package/dist/src/FxNotes/index.js +0 -22
  83. package/dist/src/FxNotes/operations/queries.js +0 -35
  84. package/dist/src/FxNotes/styles/notes.styles.js +0 -168
  85. package/dist/src/FxNumberField/FxNumberField.js +0 -109
  86. package/dist/src/FxNumberField/index.js +0 -19
  87. package/dist/src/FxNumberField/styles/number_field.styles.js +0 -94
  88. package/dist/src/FxProgressCircle/FxProgressCircle.js +0 -65
  89. package/dist/src/FxProgressCircle/index.js +0 -19
  90. package/dist/src/FxProgressCircle/styles/progress_circle.styles.js +0 -106
  91. package/dist/src/FxProgressCounter/ProgressCounter.js +0 -168
  92. package/dist/src/FxProgressCounter/index.js +0 -19
  93. package/dist/src/FxProgressCounter/styles/progress_counter.styles.js +0 -61
  94. package/dist/src/FxScore/FxScore.js +0 -207
  95. package/dist/src/FxScore/index.js +0 -19
  96. package/dist/src/FxScore/styles/score.styles.js +0 -97
  97. package/dist/src/FxShowMore/FxShowMore.js +0 -80
  98. package/dist/src/FxShowMore/index.js +0 -19
  99. package/dist/src/FxShowMore/styles/show_more.styles.js +0 -134
  100. package/dist/src/FxSlider/FxSlider.js +0 -49
  101. package/dist/src/FxSlider/index.js +0 -19
  102. package/dist/src/FxStatisticsBar/FxStatisticsBar.js +0 -191
  103. package/dist/src/FxStatisticsBar/index.js +0 -19
  104. package/dist/src/FxStatisticsBar/styles/statistics.styles.js +0 -98
  105. package/dist/src/FxStatusBar/FxStatusBar.js +0 -143
  106. package/dist/src/FxStatusBar/helpers/constants.js +0 -22
  107. package/dist/src/FxStatusBar/index.js +0 -22
  108. package/dist/src/FxStatusBar/styles/statusBar.styles.js +0 -131
  109. package/dist/src/FxStyledComponents/index.js +0 -310
  110. package/dist/src/FxTag/FxTag.js +0 -41
  111. package/dist/src/FxTag/index.js +0 -19
  112. package/dist/src/FxTag/styles/tag.styles.js +0 -100
  113. package/dist/src/FxTextField/FxTextField.js +0 -208
  114. package/dist/src/FxTextField/index.js +0 -19
  115. package/dist/src/FxTodo/FxTodo.js +0 -95
  116. package/dist/src/FxTodo/index.js +0 -22
  117. package/dist/src/FxTodo/styles/todo.styles.js +0 -183
  118. package/dist/src/index.js +0 -215
@@ -1,112 +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
- default: function() {
13
- return _default;
14
- },
15
- getServerSideProps: function() {
16
- return getServerSideProps;
17
- }
18
- });
19
- const _jsxruntime = require("react/jsx-runtime");
20
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
21
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
22
- try {
23
- var info = gen[key](arg);
24
- var value = info.value;
25
- } catch (error) {
26
- reject(error);
27
- return;
28
- }
29
- if (info.done) {
30
- resolve(value);
31
- } else {
32
- Promise.resolve(value).then(_next, _throw);
33
- }
34
- }
35
- function _async_to_generator(fn) {
36
- return function() {
37
- var self = this, args = arguments;
38
- return new Promise(function(resolve, reject) {
39
- var gen = fn.apply(self, args);
40
- function _next(value) {
41
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
42
- }
43
- function _throw(err) {
44
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
45
- }
46
- _next(undefined);
47
- });
48
- };
49
- }
50
- function _define_property(obj, key, value) {
51
- if (key in obj) {
52
- Object.defineProperty(obj, key, {
53
- value: value,
54
- enumerable: true,
55
- configurable: true,
56
- writable: true
57
- });
58
- } else {
59
- obj[key] = value;
60
- }
61
- return obj;
62
- }
63
- function _interop_require_default(obj) {
64
- return obj && obj.__esModule ? obj : {
65
- default: obj
66
- };
67
- }
68
- function _object_spread(target) {
69
- for(var i = 1; i < arguments.length; i++){
70
- var source = arguments[i] != null ? arguments[i] : {};
71
- var ownKeys = Object.keys(source);
72
- if (typeof Object.getOwnPropertySymbols === "function") {
73
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
74
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
75
- }));
76
- }
77
- ownKeys.forEach(function(key) {
78
- _define_property(target, key, source[key]);
79
- });
80
- }
81
- return target;
82
- }
83
- // import { getServerSideProps as serverProps } from '@lib/serverProps'
84
- const Step = ()=>{
85
- return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
86
- children: "Step"
87
- });
88
- };
89
- function getServerSideProps(context) {
90
- return _getServerSideProps.apply(this, arguments);
91
- }
92
- function _getServerSideProps() {
93
- _getServerSideProps = _async_to_generator(function*(context) {
94
- const { query } = context;
95
- let rv;
96
- if (query) {
97
- const { step, wizardId } = query;
98
- rv = {
99
- props: {
100
- step,
101
- pathname: `.../${wizardId}/steps/${step}`
102
- }
103
- };
104
- }
105
- return _object_spread({}, rv);
106
- });
107
- return _getServerSideProps.apply(this, arguments);
108
- }
109
- const steps = (props)=>{
110
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(Step, _object_spread({}, props));
111
- };
112
- const _default = steps;
@@ -1 +0,0 @@
1
- export * from './[step]';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- _export_star(require("./[step]"), exports);
6
- function _export_star(from, to) {
7
- Object.keys(from).forEach(function(k) {
8
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
9
- Object.defineProperty(to, k, {
10
- enumerable: true,
11
- get: function() {
12
- return from[k];
13
- }
14
- });
15
- }
16
- });
17
- return from;
18
- }
@@ -1,351 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "FxActionsTray", {
6
- enumerable: true,
7
- get: function() {
8
- return FxActionsTray;
9
- }
10
- });
11
- const _jsxruntime = require("react/jsx-runtime");
12
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
- const _image = /*#__PURE__*/ _interop_require_default(require("next/image"));
14
- const _material = require("@mui/material");
15
- const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
16
- const _actions_traystyles = require("./styles/actions_tray.styles");
17
- function _interop_require_default(obj) {
18
- return obj && obj.__esModule ? obj : {
19
- default: obj
20
- };
21
- }
22
- function FxActionsTray({ type, onApprove, onChallenge, show, onClose, chargesCount, container, direction = 'up' }) {
23
- const renderActions = ()=>{
24
- switch(type){
25
- case 'approved':
26
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(ApprovedActions, {
27
- onChallenge: onChallenge
28
- });
29
- case 'challenge':
30
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(ChallengeActions, {
31
- onChallenge: onChallenge,
32
- onApprove: onApprove
33
- });
34
- case 'pending':
35
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(PendingActions, {
36
- onApprove: onApprove,
37
- onChallenge: onChallenge
38
- });
39
- case 'no_pricing':
40
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(NoPricingActions, {
41
- onApprove: onApprove,
42
- onChallenge: onChallenge
43
- });
44
- default:
45
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(ApprovedActions, {
46
- onChallenge: onChallenge
47
- });
48
- }
49
- };
50
- return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
51
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Slide, {
52
- direction: direction,
53
- in: show,
54
- mountOnEnter: true,
55
- unmountOnExit: true,
56
- timeout: 400,
57
- container: container,
58
- children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.Container, {
59
- children: [
60
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.TitleWrapper, {
61
- children: [
62
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ChargesCount, {
63
- children: chargesCount
64
- }),
65
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ChargesTitle, {
66
- children: "charges selected"
67
- })
68
- ]
69
- }),
70
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.Divider, {}),
71
- /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
72
- children: renderActions()
73
- }),
74
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.Divider, {}),
75
- /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
76
- onClick: onClose,
77
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.Close, {
78
- children: "close"
79
- })
80
- })
81
- ]
82
- })
83
- })
84
- });
85
- }
86
- const ChallengeActions = ({ onChallenge, onApprove })=>{
87
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
88
- children: [
89
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
90
- onClick: onChallenge,
91
- type: "low",
92
- children: [
93
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
94
- alt: "challenge",
95
- loader: ()=>(0, _fixefyuiutils.imageLoader)({
96
- root: 'https://cdn-dev.fixefy.me/',
97
- src: 'actions/challenge.svg'
98
- }),
99
- src: 'actions/challenge.svg',
100
- width: 20,
101
- height: 20,
102
- onLoad: ()=>console.log('loaded'),
103
- onError: (e)=>console.log('error:', e)
104
- }),
105
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
106
- children: "challenge"
107
- })
108
- ]
109
- }),
110
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
111
- onClick: onApprove,
112
- children: [
113
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
114
- alt: "approve",
115
- loader: ()=>(0, _fixefyuiutils.imageLoader)({
116
- root: 'https://cdn-dev.fixefy.me/',
117
- src: 'actions/approve.svg'
118
- }),
119
- src: 'actions/approve.svg',
120
- width: 20,
121
- height: 20,
122
- onLoad: ()=>console.log('loaded'),
123
- onError: (e)=>console.log('error:', e)
124
- }),
125
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
126
- children: "approve"
127
- })
128
- ]
129
- }),
130
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
131
- onClick: onApprove,
132
- children: [
133
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
134
- alt: "ignore and approve",
135
- loader: ()=>(0, _fixefyuiutils.imageLoader)({
136
- root: 'https://cdn-dev.fixefy.me/',
137
- src: 'actions/ignore_and_approve.svg'
138
- }),
139
- src: 'actions/ignore_and_approve.svg',
140
- width: 20,
141
- height: 20,
142
- onLoad: ()=>console.log('loaded'),
143
- onError: (e)=>console.log('error:', e)
144
- }),
145
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
146
- children: "ignore & approve"
147
- })
148
- ]
149
- }),
150
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
151
- onClick: onApprove,
152
- children: [
153
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
154
- alt: "change exception",
155
- loader: ()=>(0, _fixefyuiutils.imageLoader)({
156
- root: 'https://cdn-dev.fixefy.me/',
157
- src: 'actions/change_exception.svg'
158
- }),
159
- src: 'actions/change_exception.svg',
160
- width: 20,
161
- height: 20,
162
- onLoad: ()=>console.log('loaded'),
163
- onError: (e)=>console.log('error:', e)
164
- }),
165
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
166
- children: "Change exeption"
167
- })
168
- ]
169
- })
170
- ]
171
- });
172
- };
173
- const PendingActions = ({ onApprove, onChallenge })=>{
174
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
175
- children: [
176
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
177
- onClick: onApprove,
178
- type: "excellent",
179
- children: [
180
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
181
- alt: "approve",
182
- loader: ()=>(0, _fixefyuiutils.imageLoader)({
183
- root: 'https://cdn-dev.fixefy.me/',
184
- src: 'actions/approve.svg'
185
- }),
186
- src: 'actions/approve.svg',
187
- width: 20,
188
- height: 20,
189
- onLoad: ()=>console.log('loaded'),
190
- onError: (e)=>console.log('error:', e)
191
- }),
192
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
193
- children: "approve"
194
- })
195
- ]
196
- }),
197
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
198
- onClick: onChallenge,
199
- children: [
200
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
201
- alt: "challenge",
202
- loader: ()=>(0, _fixefyuiutils.imageLoader)({
203
- root: 'https://cdn-dev.fixefy.me/',
204
- src: 'actions/challenge.svg'
205
- }),
206
- src: 'actions/challenge.svg',
207
- width: 20,
208
- height: 20,
209
- onLoad: ()=>console.log('loaded'),
210
- onError: (e)=>console.log('error:', e)
211
- }),
212
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
213
- children: "challenge"
214
- })
215
- ]
216
- }),
217
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
218
- onClick: onChallenge,
219
- children: [
220
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
221
- alt: "dive in",
222
- loader: ()=>(0, _fixefyuiutils.imageLoader)({
223
- root: 'https://cdn-dev.fixefy.me/',
224
- src: 'actions/dive_in.svg'
225
- }),
226
- src: 'actions/dive_in.svg',
227
- width: 20,
228
- height: 20,
229
- onLoad: ()=>console.log('loaded'),
230
- onError: (e)=>console.log('error:', e)
231
- }),
232
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
233
- children: "dive in"
234
- })
235
- ]
236
- })
237
- ]
238
- });
239
- };
240
- const NoPricingActions = ({ onApprove, onChallenge })=>{
241
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
242
- children: [
243
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
244
- onClick: onChallenge,
245
- children: [
246
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
247
- alt: "dive in",
248
- loader: ()=>(0, _fixefyuiutils.imageLoader)({
249
- root: 'https://cdn-dev.fixefy.me/',
250
- src: 'actions/dive_in.svg'
251
- }),
252
- src: 'actions/dive_in.svg',
253
- width: 20,
254
- height: 20,
255
- onLoad: ()=>console.log('loaded'),
256
- onError: (e)=>console.log('error:', e)
257
- }),
258
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
259
- children: "dive in"
260
- })
261
- ]
262
- }),
263
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
264
- onClick: onApprove,
265
- children: [
266
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
267
- alt: "solve",
268
- loader: ()=>(0, _fixefyuiutils.imageLoader)({
269
- root: 'https://cdn-dev.fixefy.me/',
270
- src: 'actions/solve.svg'
271
- }),
272
- src: 'actions/solve.svg',
273
- width: 20,
274
- height: 20,
275
- onLoad: ()=>console.log('loaded'),
276
- onError: (e)=>console.log('error:', e)
277
- }),
278
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
279
- children: "solve"
280
- })
281
- ]
282
- }),
283
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
284
- onClick: onApprove,
285
- children: [
286
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
287
- alt: "ignore and approve",
288
- loader: ()=>(0, _fixefyuiutils.imageLoader)({
289
- root: 'https://cdn-dev.fixefy.me/',
290
- src: 'actions/ignore_and_approve.svg'
291
- }),
292
- src: 'actions/ignore_and_approve.svg',
293
- width: 20,
294
- height: 20,
295
- onLoad: ()=>console.log('loaded'),
296
- onError: (e)=>console.log('error:', e)
297
- }),
298
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
299
- children: "ignore & approve"
300
- })
301
- ]
302
- })
303
- ]
304
- });
305
- };
306
- const ApprovedActions = ({ onChallenge })=>{
307
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
308
- children: [
309
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
310
- onClick: onChallenge,
311
- children: [
312
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
313
- alt: "dive in",
314
- loader: ()=>(0, _fixefyuiutils.imageLoader)({
315
- root: 'https://cdn-dev.fixefy.me/',
316
- src: 'actionsCards/check_exceptions.svg'
317
- }),
318
- src: 'actionsCards/check_exceptions.svg',
319
- width: 20,
320
- height: 20,
321
- onLoad: ()=>console.log('loaded'),
322
- onError: (e)=>console.log('error:', e)
323
- }),
324
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
325
- children: "dive in"
326
- })
327
- ]
328
- }),
329
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_actions_traystyles.ActionBtn, {
330
- onClick: onChallenge,
331
- children: [
332
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
333
- alt: "challenge",
334
- loader: ()=>(0, _fixefyuiutils.imageLoader)({
335
- root: 'https://cdn-dev.fixefy.me/',
336
- src: 'actions/undo.svg'
337
- }),
338
- src: 'actions/undo.svg',
339
- width: 20,
340
- height: 20,
341
- onLoad: ()=>console.log('loaded'),
342
- onError: (e)=>console.log('error:', e)
343
- }),
344
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_actions_traystyles.ActionTitle, {
345
- children: "undo"
346
- })
347
- ]
348
- })
349
- ]
350
- });
351
- };
@@ -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
- ActionsTrayPropsType: function() {
13
- return _FxActionsTray.ActionsTrayPropsType;
14
- },
15
- FxActionsTray: function() {
16
- return _FxActionsTray.FxActionsTray;
17
- }
18
- });
19
- const _FxActionsTray = require("./FxActionsTray");
@@ -1,159 +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
- 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
- }));