@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.
- package/dist/FxAsyncDropdown/FxAsyncDropdown.js +3 -3
- package/dist/FxDatesProgress/styles/progress.styles.js +1 -1
- package/dist/FxUserImage/FxUserImage.js +2 -2
- package/dist/fixefy-ui-components/src/FxActionsTray/FxActionsTray.js +111 -0
- package/dist/fixefy-ui-components/src/FxActionsTray/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxActionsTray/styles/actionsTray.style.js +114 -0
- package/dist/fixefy-ui-components/src/FxAggregationsBar/FxAggregations.js +41 -0
- package/dist/fixefy-ui-components/src/FxAggregationsBar/helpers/structureReader.js +80 -0
- package/dist/fixefy-ui-components/src/FxAggregationsBar/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxAggregationsBar/operations/query.js +73 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/FxAsyncDropdown.js +500 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/CheckboxIcon.js +44 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/ChipOption.js +35 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/ChosenIcon.js +45 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/DeleteButton.js +37 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/LogoOption.js +101 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/TextOption.js +74 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/index.js +36 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/helpers/helpers.js +233 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/styles/dropdown.styles.js +211 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/types.js +4 -0
- package/dist/fixefy-ui-components/src/FxAvatar/FxAvatar.js +145 -0
- package/dist/fixefy-ui-components/src/FxAvatar/helpers/stringToColor.js +23 -0
- package/dist/fixefy-ui-components/src/FxAvatar/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxAvatar/styles/avatar.styles.js +233 -0
- package/dist/fixefy-ui-components/src/FxButton/FxButton.js +106 -0
- package/dist/fixefy-ui-components/src/FxButton/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxButton/styles/button.styles.js +28 -0
- package/dist/fixefy-ui-components/src/FxButtonModalWithComponent/FxButtonModalWithComponent.js +118 -0
- package/dist/fixefy-ui-components/src/FxButtonModalWithComponent/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxButtonModalWithMenu/FxButtonModalWithMenu.js +126 -0
- package/dist/fixefy-ui-components/src/FxButtonModalWithMenu/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxChip/FxChip.js +75 -0
- package/dist/fixefy-ui-components/src/FxChip/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxChip/styles/chip.styles.js +147 -0
- package/dist/fixefy-ui-components/src/FxDatesProgress/FxDatesProgress.js +126 -0
- package/dist/fixefy-ui-components/src/FxDatesProgress/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxDatesProgress/styles/progress.styles.js +24 -0
- package/dist/fixefy-ui-components/src/FxGeneralModal/FxGeneralModal.js +107 -0
- package/dist/fixefy-ui-components/src/FxGeneralModal/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxGridEmptyState/FxGridEmptyState.js +86 -0
- package/dist/fixefy-ui-components/src/FxGridEmptyState/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxGridError/FxGridError.js +91 -0
- package/dist/fixefy-ui-components/src/FxGridError/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxIcon/FxIcon.js +118 -0
- package/dist/fixefy-ui-components/src/FxIcon/content/dynamic_icon.js +20 -0
- package/dist/fixefy-ui-components/src/FxIcon/content/index.js +20 -0
- package/dist/fixefy-ui-components/src/FxIcon/content/lazy_icon.js +87 -0
- package/dist/fixefy-ui-components/src/FxIcon/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxMenuItemWithIcon/FxMenuItemWithIcon.js +84 -0
- package/dist/fixefy-ui-components/src/FxMenuItemWithIcon/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxModal/FxModal.js +171 -0
- package/dist/fixefy-ui-components/src/FxModal/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxModal/styles/modal.style.js +66 -0
- package/dist/fixefy-ui-components/src/FxNotes/FxNotes.js +216 -0
- package/dist/fixefy-ui-components/src/FxNotes/helpers/stringToColor.js +26 -0
- package/dist/fixefy-ui-components/src/FxNotes/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxNotes/operations/queries.js +35 -0
- package/dist/fixefy-ui-components/src/FxNotes/styles/notes.styles.js +168 -0
- package/dist/fixefy-ui-components/src/FxNumberField/FxNumberField.js +108 -0
- package/dist/fixefy-ui-components/src/FxNumberField/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxNumberField/styles/number_field.styles.js +99 -0
- package/dist/fixefy-ui-components/src/FxObjStaticDropdown/FxObjStaticDropdown.js +548 -0
- package/dist/fixefy-ui-components/src/FxObjStaticDropdown/index.js +25 -0
- package/dist/fixefy-ui-components/src/FxObjStaticDropdown/styles/dropdown.styles.js +211 -0
- package/dist/fixefy-ui-components/src/FxPopper/Popper.js +139 -0
- package/dist/fixefy-ui-components/src/FxPopper/PopperWithOutside.js +116 -0
- package/dist/fixefy-ui-components/src/FxPopper/content/PopperHeader.js +36 -0
- package/dist/fixefy-ui-components/src/FxPopper/content/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxPopper/index.js +24 -0
- package/dist/fixefy-ui-components/src/FxPopper/styles/popper.styles.js +138 -0
- package/dist/fixefy-ui-components/src/FxProgressCircle/FxProgressCircle.js +65 -0
- package/dist/fixefy-ui-components/src/FxProgressCircle/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxProgressCircle/styles/progress_circle.styles.js +106 -0
- package/dist/fixefy-ui-components/src/FxProgressCounter/ProgressCounter.js +168 -0
- package/dist/fixefy-ui-components/src/FxProgressCounter/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxProgressCounter/styles/progress_counter.styles.js +66 -0
- package/dist/fixefy-ui-components/src/FxScore/FxScore.js +215 -0
- package/dist/fixefy-ui-components/src/FxScore/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxScore/styles/score.styles.js +102 -0
- package/dist/fixefy-ui-components/src/FxShowMore/FxShowMore.js +80 -0
- package/dist/fixefy-ui-components/src/FxShowMore/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxShowMore/styles/show_more.styles.js +143 -0
- package/dist/fixefy-ui-components/src/FxSlider/FxSlider.js +49 -0
- package/dist/fixefy-ui-components/src/FxSlider/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxStatisticsBar/FxStatisticsBar.js +198 -0
- package/dist/fixefy-ui-components/src/FxStatisticsBar/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxStatisticsBar/styles/statistics.styles.js +103 -0
- package/dist/fixefy-ui-components/src/FxStatusBar/FxStatusBar.js +149 -0
- package/dist/fixefy-ui-components/src/FxStatusBar/helpers/constants.js +22 -0
- package/dist/fixefy-ui-components/src/FxStatusBar/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxStatusBar/styles/statusBar.styles.js +138 -0
- package/dist/fixefy-ui-components/src/FxStrStaticDropdown/FxStrStaticDropdown.js +382 -0
- package/dist/fixefy-ui-components/src/FxStrStaticDropdown/helpers/helpers.js +22 -0
- package/dist/fixefy-ui-components/src/FxStrStaticDropdown/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxStrStaticDropdown/styles/dropdown.styles.js +190 -0
- package/dist/fixefy-ui-components/src/FxStyledButton/FxStyledButton.js +57 -0
- package/dist/fixefy-ui-components/src/FxStyledButton/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxStyledComponents/index.js +319 -0
- package/dist/fixefy-ui-components/src/FxSwitch/FxSwitch.js +106 -0
- package/dist/fixefy-ui-components/src/FxSwitch/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxSwitch/styles/switch.styles.js +42 -0
- package/dist/fixefy-ui-components/src/FxTabs/FxTabs.js +79 -0
- package/dist/fixefy-ui-components/src/FxTabs/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxTag/FxTag.js +50 -0
- package/dist/fixefy-ui-components/src/FxTag/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxTag/styles/tag.styles.js +106 -0
- package/dist/fixefy-ui-components/src/FxTextField/FxTextField.js +211 -0
- package/dist/fixefy-ui-components/src/FxTextField/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxTodo/FxTodo.js +95 -0
- package/dist/fixefy-ui-components/src/FxTodo/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxTodo/styles/todo.styles.js +183 -0
- package/dist/fixefy-ui-components/src/FxToggleButtons/FxToggleButtons.js +69 -0
- package/dist/fixefy-ui-components/src/FxToggleButtons/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxUserImage/FxUserImage.js +236 -0
- package/dist/fixefy-ui-components/src/FxUserImage/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxWizard/FxWizard.js +50 -0
- package/dist/fixefy-ui-components/src/FxWizard/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxWizard/steps launcher/StepsLauncher.js +52 -0
- package/dist/fixefy-ui-components/src/FxWizard/steps launcher/index.js +18 -0
- package/dist/fixefy-ui-components/src/index.js +277 -0
- package/package.json +4 -5
|
@@ -0,0 +1,168 @@
|
|
|
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 _Avatar = /*#__PURE__*/ _interop_require_default(require("@mui/material/Avatar"));
|
|
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)(_Avatar.default)(({ 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
|
+
}));
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
onChange: (e)=>setValue(Number(e.target.value))
|
|
84
|
+
}),
|
|
85
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
86
|
+
className: _classes.inputActions,
|
|
87
|
+
children: [
|
|
88
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
|
|
89
|
+
className: _classes.inputActionsPlus,
|
|
90
|
+
onClick: ()=>setValue(value + 1),
|
|
91
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_KeyboardArrowRight.default, {})
|
|
92
|
+
}),
|
|
93
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
|
|
94
|
+
className: _classes.inputActionsMinus,
|
|
95
|
+
onClick: ()=>setValue(value - 1),
|
|
96
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_KeyboardArrowRight.default, {})
|
|
97
|
+
})
|
|
98
|
+
]
|
|
99
|
+
})
|
|
100
|
+
]
|
|
101
|
+
}),
|
|
102
|
+
hint && /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
|
|
103
|
+
className: _classes.hint,
|
|
104
|
+
children: hint
|
|
105
|
+
})
|
|
106
|
+
]
|
|
107
|
+
});
|
|
108
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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");
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
function _interop_require_default(obj) {
|
|
13
|
+
return obj && obj.__esModule ? obj : {
|
|
14
|
+
default: obj
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
const useStyles = (0, _makeStyles.default)(()=>({
|
|
18
|
+
container: {},
|
|
19
|
+
label: {
|
|
20
|
+
fontFamily: 'Open Sans',
|
|
21
|
+
fontStyle: 'normal',
|
|
22
|
+
fontWeight: 'normal',
|
|
23
|
+
fontSize: 11,
|
|
24
|
+
lineHeight: '16px',
|
|
25
|
+
letterSpacing: 0.1,
|
|
26
|
+
color: '#505050'
|
|
27
|
+
},
|
|
28
|
+
hint: {
|
|
29
|
+
fontStyle: 'normal',
|
|
30
|
+
fontWeight: 'normal',
|
|
31
|
+
fontSize: 11,
|
|
32
|
+
lineHeight: '16px',
|
|
33
|
+
display: 'flex',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
letterSpacing: 0.1,
|
|
36
|
+
color: '#8A8A8A'
|
|
37
|
+
},
|
|
38
|
+
inputWrapper: {
|
|
39
|
+
background: '#FFFFFF',
|
|
40
|
+
border: '1px solid #EEEEEE',
|
|
41
|
+
borderRadius: 5,
|
|
42
|
+
height: 40,
|
|
43
|
+
display: 'flex',
|
|
44
|
+
width: 'fit-content',
|
|
45
|
+
['& input']: {
|
|
46
|
+
border: 'none',
|
|
47
|
+
paddingLeft: 10,
|
|
48
|
+
borderRadius: 5,
|
|
49
|
+
['&:focus-visible']: {
|
|
50
|
+
outline: 'none'
|
|
51
|
+
},
|
|
52
|
+
['&::-webkit-inner-spin-button']: {
|
|
53
|
+
'-webkit-appearance': 'none'
|
|
54
|
+
},
|
|
55
|
+
['&::-webkit-outer-spin-button']: {
|
|
56
|
+
'-webkit-appearance': 'none'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
inputActions: {
|
|
61
|
+
display: 'flex',
|
|
62
|
+
flexDirection: 'column',
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
justifyContent: 'center'
|
|
65
|
+
},
|
|
66
|
+
inputActionsPlus: {
|
|
67
|
+
cursor: 'pointer',
|
|
68
|
+
background: '#FFFFFF',
|
|
69
|
+
height: '50%',
|
|
70
|
+
padding: 0,
|
|
71
|
+
width: 36,
|
|
72
|
+
border: 'none',
|
|
73
|
+
borderLeft: '1px solid #EEEEEE',
|
|
74
|
+
borderBottom: '1px solid #EEEEEE',
|
|
75
|
+
borderRadius: '0 5px 0 0',
|
|
76
|
+
color: '#568793',
|
|
77
|
+
['& svg']: {
|
|
78
|
+
transform: 'rotate(270deg)',
|
|
79
|
+
width: 20,
|
|
80
|
+
height: 20
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
inputActionsMinus: {
|
|
84
|
+
cursor: 'pointer',
|
|
85
|
+
background: '#FFFFFF',
|
|
86
|
+
height: '50%',
|
|
87
|
+
padding: 0,
|
|
88
|
+
width: 36,
|
|
89
|
+
border: 'none',
|
|
90
|
+
borderLeft: '1px solid #EEEEEE',
|
|
91
|
+
borderRadius: '0 0 5px 0',
|
|
92
|
+
color: '#568793',
|
|
93
|
+
['& svg']: {
|
|
94
|
+
transform: 'rotate(90deg)',
|
|
95
|
+
width: 20,
|
|
96
|
+
height: 20
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}));
|