@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.
Files changed (123) hide show
  1. package/dist/FxAsyncDropdown/FxAsyncDropdown.js +3 -3
  2. package/dist/FxDatesProgress/styles/progress.styles.js +1 -1
  3. package/dist/FxUserImage/FxUserImage.js +2 -2
  4. package/dist/fixefy-ui-components/src/FxActionsTray/FxActionsTray.js +111 -0
  5. package/dist/fixefy-ui-components/src/FxActionsTray/index.js +11 -0
  6. package/dist/fixefy-ui-components/src/FxActionsTray/styles/actionsTray.style.js +114 -0
  7. package/dist/fixefy-ui-components/src/FxAggregationsBar/FxAggregations.js +41 -0
  8. package/dist/fixefy-ui-components/src/FxAggregationsBar/helpers/structureReader.js +80 -0
  9. package/dist/fixefy-ui-components/src/FxAggregationsBar/index.js +22 -0
  10. package/dist/fixefy-ui-components/src/FxAggregationsBar/operations/query.js +73 -0
  11. package/dist/fixefy-ui-components/src/FxAsyncDropdown/FxAsyncDropdown.js +500 -0
  12. package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/CheckboxIcon.js +44 -0
  13. package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/ChipOption.js +35 -0
  14. package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/ChosenIcon.js +45 -0
  15. package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/DeleteButton.js +37 -0
  16. package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/LogoOption.js +101 -0
  17. package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/TextOption.js +74 -0
  18. package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/index.js +36 -0
  19. package/dist/fixefy-ui-components/src/FxAsyncDropdown/helpers/helpers.js +233 -0
  20. package/dist/fixefy-ui-components/src/FxAsyncDropdown/index.js +11 -0
  21. package/dist/fixefy-ui-components/src/FxAsyncDropdown/styles/dropdown.styles.js +211 -0
  22. package/dist/fixefy-ui-components/src/FxAsyncDropdown/types.js +4 -0
  23. package/dist/fixefy-ui-components/src/FxAvatar/FxAvatar.js +145 -0
  24. package/dist/fixefy-ui-components/src/FxAvatar/helpers/stringToColor.js +23 -0
  25. package/dist/fixefy-ui-components/src/FxAvatar/index.js +22 -0
  26. package/dist/fixefy-ui-components/src/FxAvatar/styles/avatar.styles.js +233 -0
  27. package/dist/fixefy-ui-components/src/FxButton/FxButton.js +106 -0
  28. package/dist/fixefy-ui-components/src/FxButton/index.js +19 -0
  29. package/dist/fixefy-ui-components/src/FxButton/styles/button.styles.js +28 -0
  30. package/dist/fixefy-ui-components/src/FxButtonModalWithComponent/FxButtonModalWithComponent.js +118 -0
  31. package/dist/fixefy-ui-components/src/FxButtonModalWithComponent/index.js +11 -0
  32. package/dist/fixefy-ui-components/src/FxButtonModalWithMenu/FxButtonModalWithMenu.js +126 -0
  33. package/dist/fixefy-ui-components/src/FxButtonModalWithMenu/index.js +11 -0
  34. package/dist/fixefy-ui-components/src/FxChip/FxChip.js +75 -0
  35. package/dist/fixefy-ui-components/src/FxChip/index.js +19 -0
  36. package/dist/fixefy-ui-components/src/FxChip/styles/chip.styles.js +147 -0
  37. package/dist/fixefy-ui-components/src/FxDatesProgress/FxDatesProgress.js +126 -0
  38. package/dist/fixefy-ui-components/src/FxDatesProgress/index.js +11 -0
  39. package/dist/fixefy-ui-components/src/FxDatesProgress/styles/progress.styles.js +24 -0
  40. package/dist/fixefy-ui-components/src/FxGeneralModal/FxGeneralModal.js +107 -0
  41. package/dist/fixefy-ui-components/src/FxGeneralModal/index.js +11 -0
  42. package/dist/fixefy-ui-components/src/FxGridEmptyState/FxGridEmptyState.js +86 -0
  43. package/dist/fixefy-ui-components/src/FxGridEmptyState/index.js +11 -0
  44. package/dist/fixefy-ui-components/src/FxGridError/FxGridError.js +91 -0
  45. package/dist/fixefy-ui-components/src/FxGridError/index.js +11 -0
  46. package/dist/fixefy-ui-components/src/FxIcon/FxIcon.js +118 -0
  47. package/dist/fixefy-ui-components/src/FxIcon/content/dynamic_icon.js +20 -0
  48. package/dist/fixefy-ui-components/src/FxIcon/content/index.js +20 -0
  49. package/dist/fixefy-ui-components/src/FxIcon/content/lazy_icon.js +87 -0
  50. package/dist/fixefy-ui-components/src/FxIcon/index.js +11 -0
  51. package/dist/fixefy-ui-components/src/FxMenuItemWithIcon/FxMenuItemWithIcon.js +84 -0
  52. package/dist/fixefy-ui-components/src/FxMenuItemWithIcon/index.js +11 -0
  53. package/dist/fixefy-ui-components/src/FxModal/FxModal.js +171 -0
  54. package/dist/fixefy-ui-components/src/FxModal/index.js +19 -0
  55. package/dist/fixefy-ui-components/src/FxModal/styles/modal.style.js +66 -0
  56. package/dist/fixefy-ui-components/src/FxNotes/FxNotes.js +216 -0
  57. package/dist/fixefy-ui-components/src/FxNotes/helpers/stringToColor.js +26 -0
  58. package/dist/fixefy-ui-components/src/FxNotes/index.js +22 -0
  59. package/dist/fixefy-ui-components/src/FxNotes/operations/queries.js +35 -0
  60. package/dist/fixefy-ui-components/src/FxNotes/styles/notes.styles.js +168 -0
  61. package/dist/fixefy-ui-components/src/FxNumberField/FxNumberField.js +108 -0
  62. package/dist/fixefy-ui-components/src/FxNumberField/index.js +19 -0
  63. package/dist/fixefy-ui-components/src/FxNumberField/styles/number_field.styles.js +99 -0
  64. package/dist/fixefy-ui-components/src/FxObjStaticDropdown/FxObjStaticDropdown.js +548 -0
  65. package/dist/fixefy-ui-components/src/FxObjStaticDropdown/index.js +25 -0
  66. package/dist/fixefy-ui-components/src/FxObjStaticDropdown/styles/dropdown.styles.js +211 -0
  67. package/dist/fixefy-ui-components/src/FxPopper/Popper.js +139 -0
  68. package/dist/fixefy-ui-components/src/FxPopper/PopperWithOutside.js +116 -0
  69. package/dist/fixefy-ui-components/src/FxPopper/content/PopperHeader.js +36 -0
  70. package/dist/fixefy-ui-components/src/FxPopper/content/index.js +11 -0
  71. package/dist/fixefy-ui-components/src/FxPopper/index.js +24 -0
  72. package/dist/fixefy-ui-components/src/FxPopper/styles/popper.styles.js +138 -0
  73. package/dist/fixefy-ui-components/src/FxProgressCircle/FxProgressCircle.js +65 -0
  74. package/dist/fixefy-ui-components/src/FxProgressCircle/index.js +19 -0
  75. package/dist/fixefy-ui-components/src/FxProgressCircle/styles/progress_circle.styles.js +106 -0
  76. package/dist/fixefy-ui-components/src/FxProgressCounter/ProgressCounter.js +168 -0
  77. package/dist/fixefy-ui-components/src/FxProgressCounter/index.js +19 -0
  78. package/dist/fixefy-ui-components/src/FxProgressCounter/styles/progress_counter.styles.js +66 -0
  79. package/dist/fixefy-ui-components/src/FxScore/FxScore.js +215 -0
  80. package/dist/fixefy-ui-components/src/FxScore/index.js +19 -0
  81. package/dist/fixefy-ui-components/src/FxScore/styles/score.styles.js +102 -0
  82. package/dist/fixefy-ui-components/src/FxShowMore/FxShowMore.js +80 -0
  83. package/dist/fixefy-ui-components/src/FxShowMore/index.js +19 -0
  84. package/dist/fixefy-ui-components/src/FxShowMore/styles/show_more.styles.js +143 -0
  85. package/dist/fixefy-ui-components/src/FxSlider/FxSlider.js +49 -0
  86. package/dist/fixefy-ui-components/src/FxSlider/index.js +19 -0
  87. package/dist/fixefy-ui-components/src/FxStatisticsBar/FxStatisticsBar.js +198 -0
  88. package/dist/fixefy-ui-components/src/FxStatisticsBar/index.js +19 -0
  89. package/dist/fixefy-ui-components/src/FxStatisticsBar/styles/statistics.styles.js +103 -0
  90. package/dist/fixefy-ui-components/src/FxStatusBar/FxStatusBar.js +149 -0
  91. package/dist/fixefy-ui-components/src/FxStatusBar/helpers/constants.js +22 -0
  92. package/dist/fixefy-ui-components/src/FxStatusBar/index.js +22 -0
  93. package/dist/fixefy-ui-components/src/FxStatusBar/styles/statusBar.styles.js +138 -0
  94. package/dist/fixefy-ui-components/src/FxStrStaticDropdown/FxStrStaticDropdown.js +382 -0
  95. package/dist/fixefy-ui-components/src/FxStrStaticDropdown/helpers/helpers.js +22 -0
  96. package/dist/fixefy-ui-components/src/FxStrStaticDropdown/index.js +11 -0
  97. package/dist/fixefy-ui-components/src/FxStrStaticDropdown/styles/dropdown.styles.js +190 -0
  98. package/dist/fixefy-ui-components/src/FxStyledButton/FxStyledButton.js +57 -0
  99. package/dist/fixefy-ui-components/src/FxStyledButton/index.js +11 -0
  100. package/dist/fixefy-ui-components/src/FxStyledComponents/index.js +319 -0
  101. package/dist/fixefy-ui-components/src/FxSwitch/FxSwitch.js +106 -0
  102. package/dist/fixefy-ui-components/src/FxSwitch/index.js +19 -0
  103. package/dist/fixefy-ui-components/src/FxSwitch/styles/switch.styles.js +42 -0
  104. package/dist/fixefy-ui-components/src/FxTabs/FxTabs.js +79 -0
  105. package/dist/fixefy-ui-components/src/FxTabs/index.js +11 -0
  106. package/dist/fixefy-ui-components/src/FxTag/FxTag.js +50 -0
  107. package/dist/fixefy-ui-components/src/FxTag/index.js +19 -0
  108. package/dist/fixefy-ui-components/src/FxTag/styles/tag.styles.js +106 -0
  109. package/dist/fixefy-ui-components/src/FxTextField/FxTextField.js +211 -0
  110. package/dist/fixefy-ui-components/src/FxTextField/index.js +19 -0
  111. package/dist/fixefy-ui-components/src/FxTodo/FxTodo.js +95 -0
  112. package/dist/fixefy-ui-components/src/FxTodo/index.js +22 -0
  113. package/dist/fixefy-ui-components/src/FxTodo/styles/todo.styles.js +183 -0
  114. package/dist/fixefy-ui-components/src/FxToggleButtons/FxToggleButtons.js +69 -0
  115. package/dist/fixefy-ui-components/src/FxToggleButtons/index.js +11 -0
  116. package/dist/fixefy-ui-components/src/FxUserImage/FxUserImage.js +236 -0
  117. package/dist/fixefy-ui-components/src/FxUserImage/index.js +11 -0
  118. package/dist/fixefy-ui-components/src/FxWizard/FxWizard.js +50 -0
  119. package/dist/fixefy-ui-components/src/FxWizard/index.js +19 -0
  120. package/dist/fixefy-ui-components/src/FxWizard/steps launcher/StepsLauncher.js +52 -0
  121. package/dist/fixefy-ui-components/src/FxWizard/steps launcher/index.js +18 -0
  122. package/dist/fixefy-ui-components/src/index.js +277 -0
  123. package/package.json +4 -5
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useStyles", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useStyles;
9
+ }
10
+ });
11
+ const _makeStyles = /*#__PURE__*/ _interop_require_default(require("@mui/styles/makeStyles"));
12
+ require("@fixefy/fixefy-ui-utils");
13
+ function _define_property(obj, key, value) {
14
+ if (key in obj) {
15
+ Object.defineProperty(obj, key, {
16
+ value: value,
17
+ enumerable: true,
18
+ configurable: true,
19
+ writable: true
20
+ });
21
+ } else {
22
+ obj[key] = value;
23
+ }
24
+ return obj;
25
+ }
26
+ function _interop_require_default(obj) {
27
+ return obj && obj.__esModule ? obj : {
28
+ default: obj
29
+ };
30
+ }
31
+ function _object_spread(target) {
32
+ for(var i = 1; i < arguments.length; i++){
33
+ var source = arguments[i] != null ? arguments[i] : {};
34
+ var ownKeys = Object.keys(source);
35
+ if (typeof Object.getOwnPropertySymbols === "function") {
36
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
37
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
38
+ }));
39
+ }
40
+ ownKeys.forEach(function(key) {
41
+ _define_property(target, key, source[key]);
42
+ });
43
+ }
44
+ return target;
45
+ }
46
+ function ownKeys(object, enumerableOnly) {
47
+ var keys = Object.keys(object);
48
+ if (Object.getOwnPropertySymbols) {
49
+ var symbols = Object.getOwnPropertySymbols(object);
50
+ if (enumerableOnly) {
51
+ symbols = symbols.filter(function(sym) {
52
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
53
+ });
54
+ }
55
+ keys.push.apply(keys, symbols);
56
+ }
57
+ return keys;
58
+ }
59
+ function _object_spread_props(target, source) {
60
+ source = source != null ? source : {};
61
+ if (Object.getOwnPropertyDescriptors) {
62
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
63
+ } else {
64
+ ownKeys(Object(source)).forEach(function(key) {
65
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
66
+ });
67
+ }
68
+ return target;
69
+ }
70
+ const useStyles = (0, _makeStyles.default)((theme)=>({
71
+ container: {
72
+ display: 'flex',
73
+ alignItems: 'center',
74
+ justifyContent: 'center',
75
+ flexDirection: 'column',
76
+ minHeight: 56
77
+ },
78
+ contrastLabel: {
79
+ fontWeight: 'normal',
80
+ fontSize: 11,
81
+ lineHeight: '16px',
82
+ letterSpacing: '0.1px',
83
+ opacity: 0.7,
84
+ color: theme.palette.common.white,
85
+ textOverflow: 'ellipsis',
86
+ whiteSpace: 'nowrap'
87
+ },
88
+ contrastValue: {
89
+ fontWeight: 600,
90
+ fontSize: 19,
91
+ lineHeight: '28px',
92
+ letterSpacing: '0.15px',
93
+ color: theme.palette.common.white
94
+ },
95
+ label: _object_spread_props(_object_spread({}, theme.typography.table), {
96
+ color: theme.palette.statistics.label,
97
+ textOverflow: 'ellipsis',
98
+ whiteSpace: 'nowrap'
99
+ }),
100
+ value: _object_spread_props(_object_spread({}, theme.typography.h5), {
101
+ color: theme.palette.statistics.value
102
+ })
103
+ }));
@@ -0,0 +1,149 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "FxStatusBar", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return FxStatusBar;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
13
+ const _Stack = /*#__PURE__*/ _interop_require_default(require("@mui/material/Stack"));
14
+ const _FxChip = require("../FxChip");
15
+ const _constants = require("./helpers/constants");
16
+ const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
17
+ const _statusBarstyles = require("./styles/statusBar.styles");
18
+ function _interop_require_default(obj) {
19
+ return obj && obj.__esModule ? obj : {
20
+ default: obj
21
+ };
22
+ }
23
+ function _getRequireWildcardCache(nodeInterop) {
24
+ if (typeof WeakMap !== "function") return null;
25
+ var cacheBabelInterop = new WeakMap();
26
+ var cacheNodeInterop = new WeakMap();
27
+ return (_getRequireWildcardCache = function(nodeInterop) {
28
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
29
+ })(nodeInterop);
30
+ }
31
+ function _interop_require_wildcard(obj, nodeInterop) {
32
+ if (!nodeInterop && obj && obj.__esModule) {
33
+ return obj;
34
+ }
35
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
36
+ return {
37
+ default: obj
38
+ };
39
+ }
40
+ var cache = _getRequireWildcardCache(nodeInterop);
41
+ if (cache && cache.has(obj)) {
42
+ return cache.get(obj);
43
+ }
44
+ var newObj = {
45
+ __proto__: null
46
+ };
47
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
48
+ for(var key in obj){
49
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
50
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
51
+ if (desc && (desc.get || desc.set)) {
52
+ Object.defineProperty(newObj, key, desc);
53
+ } else {
54
+ newObj[key] = obj[key];
55
+ }
56
+ }
57
+ }
58
+ newObj.default = obj;
59
+ if (cache) {
60
+ cache.set(obj, newObj);
61
+ }
62
+ return newObj;
63
+ }
64
+ const FxStatusBar = ({ assetUrl, onChangeStatus, onSearch, defaultStatus, title, options, chipsVariant = 'filled' })=>{
65
+ const [selectedStatus, setSelectedStatus] = (0, _react.useState)([]);
66
+ const [searchValue] = (0, _react.useState)('');
67
+ (0, _react.useEffect)(()=>{
68
+ if (defaultStatus) {
69
+ typeof defaultStatus === 'string' ? setSelectedStatus([
70
+ defaultStatus
71
+ ]) : setSelectedStatus(defaultStatus);
72
+ } else {
73
+ setSelectedStatus([
74
+ 'all'
75
+ ]);
76
+ }
77
+ }, [
78
+ defaultStatus
79
+ ]);
80
+ const onStatusClick = (status)=>{
81
+ if (status === 'all') {
82
+ setSelectedStatus(()=>{
83
+ if (selectedStatus.includes(status)) {
84
+ return [];
85
+ } else {
86
+ return [
87
+ 'all'
88
+ ];
89
+ }
90
+ });
91
+ } else {
92
+ setSelectedStatus((prevState)=>{
93
+ if (selectedStatus.includes(status)) {
94
+ const rv = prevState.filter((_status)=>_status !== status && _status !== 'all');
95
+ return rv.length == 0 ? [
96
+ 'all'
97
+ ] : rv;
98
+ } else {
99
+ const rv = prevState.filter((_status)=>_status !== status && _status !== 'all');
100
+ return [
101
+ ...rv,
102
+ status
103
+ ];
104
+ }
105
+ });
106
+ }
107
+ };
108
+ (0, _react.useEffect)(()=>{
109
+ onChangeStatus(selectedStatus);
110
+ }, [
111
+ selectedStatus
112
+ ]);
113
+ (0, _react.useEffect)(()=>{
114
+ onSearch && onSearch(searchValue);
115
+ }, [
116
+ searchValue
117
+ ]);
118
+ const __options = options !== null && options !== void 0 ? options : _constants.statuses;
119
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_statusBarstyles.StatusBarCard, {
120
+ children: [
121
+ title && /*#__PURE__*/ (0, _jsxruntime.jsx)(_statusBarstyles.StatusBarTitle, {
122
+ style: {
123
+ marginRight: '8px'
124
+ },
125
+ children: (0, _fixefyuiutils.titleCase)(title)
126
+ }),
127
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Stack.default, {
128
+ direction: "row",
129
+ spacing: 1,
130
+ children: [
131
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_statusBarstyles.StatusChipStyled, {
132
+ onClick: ()=>onStatusClick('all'),
133
+ label: "All",
134
+ variant: selectedStatus.includes('all') ? 'filled' : 'outlined'
135
+ }),
136
+ Object.keys(__options).map((key, index)=>{
137
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
138
+ assetUrl: assetUrl,
139
+ onClick: ()=>onStatusClick(__options[key]),
140
+ label: (0, _fixefyuiutils.titleCase)(key),
141
+ variant: chipsVariant,
142
+ status: selectedStatus.includes(__options[key]) ? __options[key] : ''
143
+ }, index);
144
+ })
145
+ ]
146
+ })
147
+ ]
148
+ });
149
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "statuses", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return statuses;
9
+ }
10
+ });
11
+ const statuses = {
12
+ Declined: 'declined',
13
+ Pending: 'pending',
14
+ Approved: 'approved',
15
+ Active: 'active',
16
+ Challenge: 'challenged',
17
+ in_review: 'in_review',
18
+ Discrepancy: 'discrepancy',
19
+ no_pricing: 'no_pricing',
20
+ in_progress: 'in_progress',
21
+ Duplicated: 'duplicated'
22
+ };
@@ -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
+ FxStatusBar: function() {
13
+ return _FxStatusBar.FxStatusBar;
14
+ },
15
+ Options: function() {
16
+ return _FxStatusBar.Options;
17
+ },
18
+ StatusBarPropsType: function() {
19
+ return _FxStatusBar.StatusBarPropsType;
20
+ }
21
+ });
22
+ const _FxStatusBar = require("./FxStatusBar");
@@ -0,0 +1,138 @@
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
+ StatusBarCard: function() {
13
+ return StatusBarCard;
14
+ },
15
+ StatusBarTitle: function() {
16
+ return StatusBarTitle;
17
+ },
18
+ StatusChipStyled: function() {
19
+ return StatusChipStyled;
20
+ }
21
+ });
22
+ const _styles = require("@mui/material/styles");
23
+ const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
24
+ const _Chip = /*#__PURE__*/ _interop_require_default(require("@mui/material/Chip"));
25
+ function _define_property(obj, key, value) {
26
+ if (key in obj) {
27
+ Object.defineProperty(obj, key, {
28
+ value: value,
29
+ enumerable: true,
30
+ configurable: true,
31
+ writable: true
32
+ });
33
+ } else {
34
+ obj[key] = value;
35
+ }
36
+ return obj;
37
+ }
38
+ function _interop_require_default(obj) {
39
+ return obj && obj.__esModule ? obj : {
40
+ default: obj
41
+ };
42
+ }
43
+ function _object_spread(target) {
44
+ for(var i = 1; i < arguments.length; i++){
45
+ var source = arguments[i] != null ? arguments[i] : {};
46
+ var ownKeys = Object.keys(source);
47
+ if (typeof Object.getOwnPropertySymbols === "function") {
48
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
49
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
50
+ }));
51
+ }
52
+ ownKeys.forEach(function(key) {
53
+ _define_property(target, key, source[key]);
54
+ });
55
+ }
56
+ return target;
57
+ }
58
+ function ownKeys(object, enumerableOnly) {
59
+ var keys = Object.keys(object);
60
+ if (Object.getOwnPropertySymbols) {
61
+ var symbols = Object.getOwnPropertySymbols(object);
62
+ if (enumerableOnly) {
63
+ symbols = symbols.filter(function(sym) {
64
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
65
+ });
66
+ }
67
+ keys.push.apply(keys, symbols);
68
+ }
69
+ return keys;
70
+ }
71
+ function _object_spread_props(target, source) {
72
+ source = source != null ? source : {};
73
+ if (Object.getOwnPropertyDescriptors) {
74
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
75
+ } else {
76
+ ownKeys(Object(source)).forEach(function(key) {
77
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
78
+ });
79
+ }
80
+ return target;
81
+ }
82
+ const StatusBarCard = (0, _styles.styled)(_Box.default)(({ theme })=>({
83
+ background: theme.palette.common.white,
84
+ borderRadius: 4,
85
+ padding: 16,
86
+ boxShadow: '0px 0px 10px rgba(86, 135, 147, 0.3)',
87
+ display: 'flex',
88
+ alignItems: 'center',
89
+ width: 'fit-content'
90
+ }));
91
+ const StatusBarTitle = (0, _styles.styled)('span')(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
92
+ color: theme.palette.common.black
93
+ }));
94
+ const StatusChipStyled = (0, _styles.styled)(_Chip.default)(({ theme, variant })=>{
95
+ let backgroundColor, labelColor;
96
+ if (variant === 'filled') {
97
+ backgroundColor = theme.palette.primary.light;
98
+ labelColor = theme.palette.common.white;
99
+ } else {
100
+ backgroundColor = theme.palette.common.white;
101
+ }
102
+ const border = '#F0F0F0';
103
+ return {
104
+ height: 20,
105
+ minWidth: 34,
106
+ maxWidth: 120,
107
+ ['& .MuiChip-label']: {
108
+ fontSize: 9,
109
+ fontWeight: 600,
110
+ lineHeight: '12px',
111
+ color: labelColor ? labelColor : theme.palette['statistics'].label
112
+ },
113
+ backgroundColor,
114
+ border: `1px solid ${border}`
115
+ };
116
+ }) // export const StatusBarSearchWrapper = styled("div")(({ theme }) => ({
117
+ // position: "relative",
118
+ // display: "flex",
119
+ // alignItems: "center",
120
+ // ["& input"]: {
121
+ // ...theme.typography.body1,
122
+ // color: theme.palette.statistics.label,
123
+ // paddingLeft: 40,
124
+ // width: "100%",
125
+ // },
126
+ // ["& svg"]: {å
127
+ // position: "absolute",
128
+ // left: 16,
129
+ // color: theme.palette.primary.light,
130
+ // },
131
+ // }));
132
+ // export const StatusBarSearchBar = styled("input")(({ theme }) => ({
133
+ // background: theme.palette.common.white,
134
+ // border: "1px solid #C6DDE2",
135
+ // borderRadius: 4,
136
+ // height: 36,
137
+ // }));
138
+ ;