@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,216 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "FxNotes", {
6
- enumerable: true,
7
- get: function() {
8
- return FxNotes;
9
- }
10
- });
11
- const _jsxruntime = require("react/jsx-runtime");
12
- const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
13
- const _notesstyles = require("./styles/notes.styles");
14
- const _queries = require("./operations/queries");
15
- const _client = require("@apollo/client");
16
- const _stringToColor = require("./helpers/stringToColor");
17
- const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
18
- function _define_property(obj, key, value) {
19
- if (key in obj) {
20
- Object.defineProperty(obj, key, {
21
- value: value,
22
- enumerable: true,
23
- configurable: true,
24
- writable: true
25
- });
26
- } else {
27
- obj[key] = value;
28
- }
29
- return obj;
30
- }
31
- function _getRequireWildcardCache(nodeInterop) {
32
- if (typeof WeakMap !== "function") return null;
33
- var cacheBabelInterop = new WeakMap();
34
- var cacheNodeInterop = new WeakMap();
35
- return (_getRequireWildcardCache = function(nodeInterop) {
36
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
37
- })(nodeInterop);
38
- }
39
- function _interop_require_wildcard(obj, nodeInterop) {
40
- if (!nodeInterop && obj && obj.__esModule) {
41
- return obj;
42
- }
43
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
44
- return {
45
- default: obj
46
- };
47
- }
48
- var cache = _getRequireWildcardCache(nodeInterop);
49
- if (cache && cache.has(obj)) {
50
- return cache.get(obj);
51
- }
52
- var newObj = {
53
- __proto__: null
54
- };
55
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
56
- for(var key in obj){
57
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
58
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
59
- if (desc && (desc.get || desc.set)) {
60
- Object.defineProperty(newObj, key, desc);
61
- } else {
62
- newObj[key] = obj[key];
63
- }
64
- }
65
- }
66
- newObj.default = obj;
67
- if (cache) {
68
- cache.set(obj, newObj);
69
- }
70
- return newObj;
71
- }
72
- function _object_spread(target) {
73
- for(var i = 1; i < arguments.length; i++){
74
- var source = arguments[i] != null ? arguments[i] : {};
75
- var ownKeys = Object.keys(source);
76
- if (typeof Object.getOwnPropertySymbols === "function") {
77
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
78
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
79
- }));
80
- }
81
- ownKeys.forEach(function(key) {
82
- _define_property(target, key, source[key]);
83
- });
84
- }
85
- return target;
86
- }
87
- function ownKeys(object, enumerableOnly) {
88
- var keys = Object.keys(object);
89
- if (Object.getOwnPropertySymbols) {
90
- var symbols = Object.getOwnPropertySymbols(object);
91
- if (enumerableOnly) {
92
- symbols = symbols.filter(function(sym) {
93
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
94
- });
95
- }
96
- keys.push.apply(keys, symbols);
97
- }
98
- return keys;
99
- }
100
- function _object_spread_props(target, source) {
101
- source = source != null ? source : {};
102
- if (Object.getOwnPropertyDescriptors) {
103
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
104
- } else {
105
- ownKeys(Object(source)).forEach(function(key) {
106
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
107
- });
108
- }
109
- return target;
110
- }
111
- const FxNotes = ({ notes, onChange, onSend })=>{
112
- const [comment, setComment] = (0, _react.useState)('');
113
- const [backgroundcolors, setBackgroundColors] = (0, _react.useState)({});
114
- // const [anchorEl] = React.useState<HTMLButtonElement | null>(null)
115
- const inputRef = (0, _react.useRef)();
116
- const { data } = (0, _client.useQuery)(_queries.ME);
117
- const { me } = data;
118
- // const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {
119
- // setAnchorEl(event.currentTarget)
120
- // }
121
- // const handleClose = () => {
122
- // setAnchorEl(null)
123
- // }
124
- const handleEnterKeyPressed = ()=>{
125
- setComment((prevState)=>{
126
- if (prevState) {
127
- onSend && onSend({
128
- created_at: new Date().getTime(),
129
- created_by: me.username,
130
- text: prevState
131
- });
132
- }
133
- return '';
134
- });
135
- };
136
- (0, _react.useEffect)(()=>{
137
- onChange && onChange(comment);
138
- }, [
139
- comment
140
- ]);
141
- (0, _react.useEffect)(()=>{
142
- if (inputRef.current) {
143
- inputRef.current.addEventListener('keyup', (event)=>{
144
- if (event.keyCode === 13) {
145
- event.preventDefault();
146
- handleEnterKeyPressed();
147
- }
148
- });
149
- }
150
- return inputRef && inputRef.current && inputRef.current.removeEventListener('keyup', handleEnterKeyPressed);
151
- }, []);
152
- // const open = Boolean(anchorEl)
153
- // const id = open ? 'simple-popover' : undefined
154
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_notesstyles.CommentsContainer, {
155
- children: [
156
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_notesstyles.CommentWrapper, {
157
- children: [
158
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.StyledAvatar, {
159
- sx: {
160
- backgroundColor: backgroundcolors[me.username] ? backgroundcolors[me.username] : (0, _stringToColor.stringToColor)(me.username, (color)=>{
161
- setBackgroundColors(_object_spread_props(_object_spread({}, backgroundcolors), {
162
- [me.username]: color
163
- }));
164
- })
165
- },
166
- src: me && me.image_url,
167
- children: me && (0, _fixefyuiutils.titleCase)(me.username.slice(0, 1))
168
- }),
169
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.CommentInput, {
170
- type: "text",
171
- value: comment,
172
- ref: inputRef,
173
- onChange: (e)=>{
174
- setComment(e.currentTarget.value);
175
- }
176
- })
177
- ]
178
- }),
179
- notes && notes.length ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.CommentsWrapper, {
180
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.CommentsScrollWrapper, {
181
- children: notes.slice().reverse().map((comment, index)=>{
182
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_notesstyles.UserCommentWrapper, {
183
- children: [
184
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.StyledAvatar, {
185
- sx: {
186
- backgroundColor: backgroundcolors[comment.created_by] ? backgroundcolors[comment.created_by] : (0, _stringToColor.stringToColor)(comment.created_by, (color)=>{
187
- setBackgroundColors(_object_spread_props(_object_spread({}, backgroundcolors), {
188
- [comment.created_by]: color
189
- }));
190
- })
191
- },
192
- children: (0, _fixefyuiutils.titleCase)(comment.created_by.slice(0, 1))
193
- }),
194
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_notesstyles.UserComment, {
195
- children: [
196
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.CommentUserTitle, {
197
- children: comment.created_by
198
- }),
199
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.CommentDate, {
200
- children: (0, _fixefyuiutils.normalizeTimestamp)(comment.created_at, {
201
- dateOnly: true
202
- })
203
- }),
204
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.CommentDesc, {
205
- children: comment.text
206
- })
207
- ]
208
- })
209
- ]
210
- }, index);
211
- })
212
- })
213
- }) : null
214
- ]
215
- });
216
- };
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "stringToColor", {
6
- enumerable: true,
7
- get: function() {
8
- return stringToColor;
9
- }
10
- });
11
- const stringToColor = (string, callBack)=>{
12
- let hash = 0;
13
- let color = '#';
14
- if (!string) {
15
- return '#000';
16
- }
17
- /* eslint-disable no-bitwise */ for(let i = 0; i < string.length; i += 1){
18
- hash = string.charCodeAt(i) + ((hash << 5) - hash);
19
- }
20
- for(let i = 0; i < 3; i += 1){
21
- const value = hash >> i * 8 & 0xff;
22
- color += `00${value.toString(16)}`.substr(-2);
23
- }
24
- /* eslint-enable no-bitwise */ callBack && callBack(color);
25
- return color;
26
- };
@@ -1,22 +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
- FxNotes: function() {
13
- return _FxNotes.FxNotes;
14
- },
15
- NoteCreateInput: function() {
16
- return _FxNotes.NoteCreateInput;
17
- },
18
- NotesPropsType: function() {
19
- return _FxNotes.NotesPropsType;
20
- }
21
- });
22
- const _FxNotes = require("./FxNotes");
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "ME", {
6
- enumerable: true,
7
- get: function() {
8
- return ME;
9
- }
10
- });
11
- const _graphqltag = /*#__PURE__*/ _interop_require_default(require("graphql-tag"));
12
- function _interop_require_default(obj) {
13
- return obj && obj.__esModule ? obj : {
14
- default: obj
15
- };
16
- }
17
- const ME = (0, _graphqltag.default)`
18
- query ME {
19
- me {
20
- _id
21
- username
22
- first_name
23
- last_name
24
- email
25
- workspaces {
26
- ...InsideWorkspace
27
- }
28
- }
29
- }
30
-
31
- fragment InsideWorkspace on Workspace {
32
- _id
33
- title
34
- }
35
- `;
@@ -1,168 +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
- CommentDate: function() {
13
- return CommentDate;
14
- },
15
- CommentDesc: function() {
16
- return CommentDesc;
17
- },
18
- CommentInput: function() {
19
- return CommentInput;
20
- },
21
- CommentUserTitle: function() {
22
- return CommentUserTitle;
23
- },
24
- CommentWrapper: function() {
25
- return CommentWrapper;
26
- },
27
- CommentsContainer: function() {
28
- return CommentsContainer;
29
- },
30
- CommentsScrollWrapper: function() {
31
- return CommentsScrollWrapper;
32
- },
33
- CommentsWrapper: function() {
34
- return CommentsWrapper;
35
- },
36
- StyledAvatar: function() {
37
- return StyledAvatar;
38
- },
39
- StyledPopover: function() {
40
- return StyledPopover;
41
- },
42
- UserComment: function() {
43
- return UserComment;
44
- },
45
- UserCommentWrapper: function() {
46
- return UserCommentWrapper;
47
- }
48
- });
49
- const _Popover = /*#__PURE__*/ _interop_require_default(require("@mui/material/Popover"));
50
- const _styles = require("@mui/material/styles");
51
- const _material = require("@mui/material");
52
- function _interop_require_default(obj) {
53
- return obj && obj.__esModule ? obj : {
54
- default: obj
55
- };
56
- }
57
- const CommentsContainer = (0, _styles.styled)('div')(()=>({
58
- display: 'flex',
59
- flexDirection: 'column',
60
- marginTop: 16,
61
- justifyContent: 'space-between',
62
- alignItems: 'flex-start'
63
- }));
64
- const CommentsWrapper = (0, _styles.styled)('div')(({})=>({
65
- display: 'flex',
66
- alignItems: 'flex-start',
67
- flexDirection: 'column',
68
- justifyContent: 'center',
69
- width: '100%'
70
- }));
71
- const CommentsScrollWrapper = (0, _styles.styled)('div')(({})=>({
72
- maxHeight: 170,
73
- overflow: 'auto',
74
- width: '100%'
75
- }));
76
- const UserCommentWrapper = (0, _styles.styled)('div')(({})=>({
77
- display: 'flex',
78
- alignItems: 'flex-start',
79
- marginTop: 16,
80
- '&:first-of-type': {
81
- marginTop: 0
82
- }
83
- }));
84
- const CommentWrapper = (0, _styles.styled)('div')(({})=>({
85
- display: 'flex',
86
- alignItems: 'center',
87
- width: '100%',
88
- marginBottom: 16
89
- }));
90
- const CommentInput = (0, _styles.styled)('input')(({ theme })=>({
91
- background: theme.palette.common.white,
92
- border: '1px solid #F0F0F0',
93
- borderRadius: '4px',
94
- height: 36,
95
- padding: '0 16px',
96
- fontStyle: 'normal',
97
- fontWeight: 'normal',
98
- fontSize: 14,
99
- lineHeight: '20px',
100
- letterSpacing: '0.15px',
101
- color: '#172326',
102
- width: '100%',
103
- '&::focus-visible': {
104
- outline: 'unset'
105
- }
106
- }));
107
- const StyledAvatar = (0, _styles.styled)(_material.Avatar)(({ theme })=>({
108
- width: 32,
109
- height: 32,
110
- border: `2px solid ${theme.palette.common.white}`,
111
- marginRight: '8px',
112
- fontFamily: 'Open Sans',
113
- fontStyle: 'normal',
114
- fontWeight: 'normal',
115
- fontSize: 14,
116
- lineHeight: '20px',
117
- letterSpacing: '0.15px'
118
- }));
119
- const UserComment = (0, _styles.styled)('div')(({ theme })=>({
120
- background: theme.palette.greyscale.contrastText,
121
- border: '1px solid #F0F0F0',
122
- borderRadius: '4px',
123
- padding: '8px 16px',
124
- minWidth: 300,
125
- display: 'flex',
126
- alignItems: 'flex-start',
127
- flexDirection: 'column',
128
- justifyContent: 'center'
129
- }));
130
- const CommentUserTitle = (0, _styles.styled)('div')(({})=>({
131
- fontStyle: 'normal',
132
- fontWeight: 'normal',
133
- fontSize: 11,
134
- lineHeight: '16px',
135
- letterSpacing: '0.15px',
136
- color: '#172326'
137
- }));
138
- const CommentDate = (0, _styles.styled)('div')(({})=>({
139
- fontStyle: 'normal',
140
- fontWeight: 'normal',
141
- fontSize: 11,
142
- lineHeight: '16px',
143
- letterSpacing: '0.15px',
144
- color: '#898989'
145
- }));
146
- const CommentDesc = (0, _styles.styled)('div')(({})=>({
147
- fontStyle: 'normal',
148
- fontWeight: 'normal',
149
- fontSize: 14,
150
- lineHeight: '20px',
151
- letterSpacing: '0.15px',
152
- color: '#172326'
153
- }));
154
- const StyledPopover = (0, _styles.styled)(_Popover.default)(({ theme })=>({
155
- position: 'absolute',
156
- right: 12,
157
- width: 80,
158
- height: 16,
159
- background: '#F7F7F7',
160
- borderRadius: 4,
161
- fontFamily: 'Open Sans',
162
- fontStyle: 'normal',
163
- fontWeight: 'normal',
164
- fontSize: 11,
165
- lineHeight: '16px',
166
- letterSpacing: '0.1px',
167
- color: theme.palette.primary.light
168
- }));
@@ -1,109 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "FxNumberField", {
6
- enumerable: true,
7
- get: function() {
8
- return FxNumberField;
9
- }
10
- });
11
- const _jsxruntime = require("react/jsx-runtime");
12
- const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
13
- const _number_fieldstyles = require("./styles/number_field.styles");
14
- const _KeyboardArrowRight = /*#__PURE__*/ _interop_require_default(require("@mui/icons-material/KeyboardArrowRight"));
15
- function _interop_require_default(obj) {
16
- return obj && obj.__esModule ? obj : {
17
- default: obj
18
- };
19
- }
20
- function _getRequireWildcardCache(nodeInterop) {
21
- if (typeof WeakMap !== "function") return null;
22
- var cacheBabelInterop = new WeakMap();
23
- var cacheNodeInterop = new WeakMap();
24
- return (_getRequireWildcardCache = function(nodeInterop) {
25
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
26
- })(nodeInterop);
27
- }
28
- function _interop_require_wildcard(obj, nodeInterop) {
29
- if (!nodeInterop && obj && obj.__esModule) {
30
- return obj;
31
- }
32
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
33
- return {
34
- default: obj
35
- };
36
- }
37
- var cache = _getRequireWildcardCache(nodeInterop);
38
- if (cache && cache.has(obj)) {
39
- return cache.get(obj);
40
- }
41
- var newObj = {
42
- __proto__: null
43
- };
44
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
45
- for(var key in obj){
46
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
47
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
48
- if (desc && (desc.get || desc.set)) {
49
- Object.defineProperty(newObj, key, desc);
50
- } else {
51
- newObj[key] = obj[key];
52
- }
53
- }
54
- }
55
- newObj.default = obj;
56
- if (cache) {
57
- cache.set(obj, newObj);
58
- }
59
- return newObj;
60
- }
61
- function FxNumberField({ placeholder, defaultValue, label, hint, onChange }) {
62
- const _classes = (0, _number_fieldstyles.useStyles)();
63
- const [value, setValue] = (0, _react.useState)(defaultValue || 0);
64
- (0, _react.useEffect)(()=>{
65
- onChange && onChange(value);
66
- }, [
67
- value
68
- ]);
69
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
70
- className: _classes.container,
71
- children: [
72
- label && /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
73
- className: _classes.label,
74
- children: label
75
- }),
76
- /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
77
- className: _classes.inputWrapper,
78
- children: [
79
- /*#__PURE__*/ (0, _jsxruntime.jsx)("input", {
80
- type: "number",
81
- placeholder: placeholder,
82
- value: value,
83
- //@ts-ignore
84
- onChange: (e)=>setValue(e.target.value)
85
- }),
86
- /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
87
- className: _classes.inputActions,
88
- children: [
89
- /*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
90
- className: _classes.inputActionsPlus,
91
- onClick: ()=>setValue(value + 1),
92
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_KeyboardArrowRight.default, {})
93
- }),
94
- /*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
95
- className: _classes.inputActionsMinus,
96
- onClick: ()=>setValue(value - 1),
97
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_KeyboardArrowRight.default, {})
98
- })
99
- ]
100
- })
101
- ]
102
- }),
103
- hint && /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
104
- className: _classes.hint,
105
- children: hint
106
- })
107
- ]
108
- });
109
- }
@@ -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
- FxNumberField: function() {
13
- return _FxNumberField.FxNumberField;
14
- },
15
- NumberfieldPropsType: function() {
16
- return _FxNumberField.NumberfieldPropsType;
17
- }
18
- });
19
- const _FxNumberField = require("./FxNumberField");
@@ -1,94 +0,0 @@
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 _styles = require("@mui/styles");
12
- const useStyles = (0, _styles.makeStyles)(()=>({
13
- container: {},
14
- label: {
15
- fontFamily: 'Open Sans',
16
- fontStyle: 'normal',
17
- fontWeight: 'normal',
18
- fontSize: 11,
19
- lineHeight: '16px',
20
- letterSpacing: 0.1,
21
- color: '#505050'
22
- },
23
- hint: {
24
- fontStyle: 'normal',
25
- fontWeight: 'normal',
26
- fontSize: 11,
27
- lineHeight: '16px',
28
- display: 'flex',
29
- alignItems: 'center',
30
- letterSpacing: 0.1,
31
- color: '#8A8A8A'
32
- },
33
- inputWrapper: {
34
- background: '#FFFFFF',
35
- border: '1px solid #EEEEEE',
36
- borderRadius: 5,
37
- height: 40,
38
- display: 'flex',
39
- width: 'fit-content',
40
- ['& input']: {
41
- border: 'none',
42
- paddingLeft: 10,
43
- borderRadius: 5,
44
- ['&:focus-visible']: {
45
- outline: 'none'
46
- },
47
- ['&::-webkit-inner-spin-button']: {
48
- '-webkit-appearance': 'none'
49
- },
50
- ['&::-webkit-outer-spin-button']: {
51
- '-webkit-appearance': 'none'
52
- }
53
- }
54
- },
55
- inputActions: {
56
- display: 'flex',
57
- flexDirection: 'column',
58
- alignItems: 'center',
59
- justifyContent: 'center'
60
- },
61
- inputActionsPlus: {
62
- cursor: 'pointer',
63
- background: '#FFFFFF',
64
- height: '50%',
65
- padding: 0,
66
- width: 36,
67
- border: 'none',
68
- borderLeft: '1px solid #EEEEEE',
69
- borderBottom: '1px solid #EEEEEE',
70
- borderRadius: '0 5px 0 0',
71
- color: '#568793',
72
- ['& svg']: {
73
- transform: 'rotate(270deg)',
74
- width: 20,
75
- height: 20
76
- }
77
- },
78
- inputActionsMinus: {
79
- cursor: 'pointer',
80
- background: '#FFFFFF',
81
- height: '50%',
82
- padding: 0,
83
- width: 36,
84
- border: 'none',
85
- borderLeft: '1px solid #EEEEEE',
86
- borderRadius: '0 0 5px 0',
87
- color: '#568793',
88
- ['& svg']: {
89
- transform: 'rotate(90deg)',
90
- width: 20,
91
- height: 20
92
- }
93
- }
94
- }));