@symply.io/basic-components 1.0.0-alpha.13 → 1.0.0-alpha.16
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/AlertDialog/index.d.ts +0 -1
- package/AlertDialog/index.js +2 -2
- package/Autocomplete/index.d.ts +6 -0
- package/Autocomplete/index.js +38 -0
- package/Autocomplete/types.d.ts +14 -0
- package/Autocomplete/types.js +1 -0
- package/Autocomplete/useInteractions.d.ts +5 -0
- package/Autocomplete/useInteractions.js +9 -0
- package/AutocompleteWithFilter/index.d.ts +6 -0
- package/AutocompleteWithFilter/index.js +54 -0
- package/AutocompleteWithFilter/types.d.ts +15 -0
- package/AutocompleteWithFilter/types.js +1 -0
- package/BasicModal/Content.d.ts +0 -1
- package/BasicModal/Content.js +1 -1
- package/BasicModal/index.d.ts +0 -1
- package/BasicModal/index.js +2 -2
- package/BreadCrumbs/index.d.ts +4 -0
- package/BreadCrumbs/index.js +37 -0
- package/BreadCrumbs/types.d.ts +9 -0
- package/BreadCrumbs/types.js +1 -0
- package/Copyright/index.d.ts +4 -0
- package/Copyright/index.js +25 -0
- package/Copyright/types.d.ts +5 -0
- package/Copyright/types.js +1 -0
- package/DigitInput/index.d.ts +0 -1
- package/DigitInput/index.js +1 -1
- package/DynamicHeaderBar/HeaderBar.js +1 -1
- package/DynamicHeaderBar/HeaderButtons.d.ts +0 -1
- package/DynamicHeaderBar/HeaderButtons.js +5 -5
- package/DynamicHeaderBar/HeaderLine.js +1 -1
- package/DynamicHeaderBar/index.js +2 -2
- package/FormRadioGroup/index.d.ts +0 -1
- package/FormRadioGroup/index.js +3 -3
- package/FormSelector/MultipleSelector.d.ts +0 -1
- package/FormSelector/MultipleSelector.js +2 -2
- package/FormSelector/SimpleSelector.d.ts +0 -1
- package/FormSelector/SimpleSelector.js +2 -2
- package/HelpCaption/index.js +2 -2
- package/LoadingModal/index.d.ts +0 -1
- package/LoadingModal/index.js +1 -1
- package/MenuButtonGroup/MenuItem.d.ts +0 -1
- package/MenuButtonGroup/MenuItem.js +1 -1
- package/MenuButtonGroup/index.js +2 -2
- package/NumberInput/index.js +1 -1
- package/PasswordInput/ConfirmPassword.js +1 -1
- package/PasswordInput/Password.js +2 -2
- package/PhoneNumberInput/index.js +2 -2
- package/README.md +140 -0
- package/TabGroup/index.js +10 -5
- package/TablePagination/Actions.d.ts +3 -0
- package/TablePagination/Actions.js +27 -0
- package/TablePagination/index.d.ts +4 -0
- package/TablePagination/index.js +30 -0
- package/TablePagination/types.d.ts +14 -0
- package/TablePagination/types.js +1 -0
- package/TablePagination/useInteractions.d.ts +14 -0
- package/TablePagination/useInteractions.js +23 -0
- package/TextInput/index.js +13 -3
- package/ToastPrompt/Presentation.js +3 -3
- package/ToastPrompt/index.js +1 -1
- package/VideoPlayerModal/index.d.ts +0 -1
- package/VideoPlayerModal/index.js +2 -2
- package/index.d.ts +10 -0
- package/index.js +10 -0
- package/package.json +8 -2
package/AlertDialog/index.d.ts
CHANGED
package/AlertDialog/index.js
CHANGED
@@ -32,7 +32,7 @@ import useMediaQuery from "@mui/material/useMediaQuery";
|
|
32
32
|
import Slide from "@mui/material/Slide";
|
33
33
|
import useCustomTheme from "../useCustomTheme";
|
34
34
|
var Transition = forwardRef(function Transition(props, ref) {
|
35
|
-
return _jsx(Slide, __assign({ direction: "up" }, props, { ref: ref })
|
35
|
+
return _jsx(Slide, __assign({ direction: "up" }, props, { ref: ref }));
|
36
36
|
});
|
37
37
|
var AlertDialog = function (props) {
|
38
38
|
var _a = props.title, title = _a === void 0 ? "Info" : _a, _b = props.maxWidth, maxWidth = _b === void 0 ? "md" : _b, children = props.children, open = props.open, onClose = props.onClose, DialogButtons = props.DialogButtons, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, rest = __rest(props, ["title", "maxWidth", "children", "open", "onClose", "DialogButtons", "primaryColor", "secondaryColor"]);
|
@@ -42,7 +42,7 @@ var AlertDialog = function (props) {
|
|
42
42
|
if (reason !== "backdropClick") {
|
43
43
|
onClose();
|
44
44
|
}
|
45
|
-
}, "aria-labelledby": "alert-dialog-title", "aria-describedby": "alert-dialog-description" }, rest, { children: [_jsx(DialogTitle, __assign({ id: "alert-dialog-title" }, { children: title })
|
45
|
+
}, "aria-labelledby": "alert-dialog-title", "aria-describedby": "alert-dialog-description" }, rest, { children: [_jsx(DialogTitle, __assign({ id: "alert-dialog-title" }, { children: title })), _jsx(DialogContent, { children: children }), _jsx(DialogActions, { children: DialogButtons ? (cloneElement(DialogButtons)) : (_jsx(Button, __assign({ onClick: onClose, color: "primary" }, { children: "OK" }))) })] })) })));
|
46
46
|
};
|
47
47
|
export default AlertDialog;
|
48
48
|
export * from "./types";
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { TextFieldProps } from "@mui/material/TextField";
|
2
|
+
import { CustomAutocompleteProps } from "./types";
|
3
|
+
declare type textFieldProps = Omit<TextFieldProps, "onChange">;
|
4
|
+
declare function CustomAutocomplete(props: CustomAutocompleteProps & textFieldProps): JSX.Element;
|
5
|
+
export default CustomAutocomplete;
|
6
|
+
export * from "./types";
|
@@ -0,0 +1,38 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import ThemeProvider from "@mui/material/styles/ThemeProvider";
|
25
|
+
import Autocomplete from "@mui/material/Autocomplete";
|
26
|
+
import TextField from "@mui/material/TextField";
|
27
|
+
import useInteractions from "./useInteractions";
|
28
|
+
import useCustomTheme from "../useCustomTheme";
|
29
|
+
function CustomAutocomplete(props) {
|
30
|
+
var size = props.size, value = props.value, options = props.options, multiple = props.multiple, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, onChange = props.onChange, rest = __rest(props, ["size", "value", "options", "multiple", "primaryColor", "secondaryColor", "onChange"]);
|
31
|
+
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
32
|
+
var _a = useInteractions(), inputValue = _a.inputValue, onInputChange = _a.onInputChange;
|
33
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Autocomplete, { size: size, fullWidth: true, options: options, multiple: multiple, onChange: function (_, value) {
|
34
|
+
onChange(value);
|
35
|
+
}, inputValue: inputValue, onInputChange: onInputChange, renderInput: function (params) { return (_jsx(TextField, __assign({}, params, rest, { size: size }))); } }) })));
|
36
|
+
}
|
37
|
+
export default CustomAutocomplete;
|
38
|
+
export * from "./types";
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { CSSProperties } from "react";
|
2
|
+
export interface IAutocompleteOption {
|
3
|
+
label: string;
|
4
|
+
[name: string]: unknown;
|
5
|
+
}
|
6
|
+
export declare type AutocompleteOptionType = IAutocompleteOption | string;
|
7
|
+
export interface CustomAutocompleteProps {
|
8
|
+
multiple?: boolean;
|
9
|
+
options: Array<AutocompleteOptionType>;
|
10
|
+
value: Array<AutocompleteOptionType> | AutocompleteOptionType | null;
|
11
|
+
primaryColor?: CSSProperties["color"];
|
12
|
+
secondaryColor?: CSSProperties["color"];
|
13
|
+
onChange: (value: Array<AutocompleteOptionType> | AutocompleteOptionType | null) => void;
|
14
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { useState, useCallback } from "react";
|
2
|
+
function useInteractions() {
|
3
|
+
var _a = useState(""), inputValue = _a[0], setInputValue = _a[1];
|
4
|
+
var onInputChange = useCallback(function (_, value) {
|
5
|
+
setInputValue(value);
|
6
|
+
}, []);
|
7
|
+
return { inputValue: inputValue, onInputChange: onInputChange };
|
8
|
+
}
|
9
|
+
export default useInteractions;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { TextFieldProps } from "@mui/material/TextField";
|
2
|
+
import { AutoCompleteWithFilterProps } from "./types";
|
3
|
+
declare type textFieldProps = Omit<TextFieldProps, "onChange">;
|
4
|
+
declare function AutocompleteWithFilter(props: AutoCompleteWithFilterProps & textFieldProps): JSX.Element;
|
5
|
+
export default AutocompleteWithFilter;
|
6
|
+
export * from "./types";
|
@@ -0,0 +1,54 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import ThemeProvider from "@mui/material/styles/ThemeProvider";
|
25
|
+
import Checkbox from "@mui/material/Checkbox";
|
26
|
+
import TextField from "@mui/material/TextField";
|
27
|
+
import Autocomplete, { createFilterOptions } from "@mui/material/Autocomplete";
|
28
|
+
import CheckBoxOutlineBlankIcon from "@mui/icons-material/CheckBoxOutlineBlank";
|
29
|
+
import CheckBoxIcon from "@mui/icons-material/CheckBox";
|
30
|
+
import useCustomTheme from "../useCustomTheme";
|
31
|
+
var icon = _jsx(CheckBoxOutlineBlankIcon, { fontSize: "small" });
|
32
|
+
var checkedIcon = _jsx(CheckBoxIcon, { fontSize: "small" });
|
33
|
+
function AutocompleteWithFilter(props) {
|
34
|
+
var size = props.size, value = props.value, options = props.options, multiple = props.multiple, disableCloseOnSelect = props.disableCloseOnSelect, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, onChange = props.onChange, rest = __rest(props, ["size", "value", "options", "multiple", "disableCloseOnSelect", "primaryColor", "secondaryColor", "onChange"]);
|
35
|
+
var filter = createFilterOptions({
|
36
|
+
ignoreCase: true,
|
37
|
+
ignoreAccents: true,
|
38
|
+
trim: true,
|
39
|
+
stringify: function (option) {
|
40
|
+
return typeof option === "string" ? option : option.label;
|
41
|
+
}
|
42
|
+
});
|
43
|
+
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
44
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Autocomplete, { size: size, fullWidth: true, limitTags: 1, options: options, multiple: multiple, filterOptions: filter, onChange: function (_, value) {
|
45
|
+
onChange(value);
|
46
|
+
}, disableCloseOnSelect: disableCloseOnSelect || multiple, getOptionLabel: function (option) {
|
47
|
+
return typeof option === "string" ? option || "" : option.label || "";
|
48
|
+
}, renderOption: function (props, option, _a) {
|
49
|
+
var selected = _a.selected;
|
50
|
+
return (_jsxs("li", __assign({}, props, { children: [_jsx(Checkbox, { icon: icon, color: "primary", checkedIcon: checkedIcon, style: { marginRight: 8 }, checked: selected }), typeof option === "string" ? option || "" : option.label || ""] })));
|
51
|
+
}, renderInput: function (params) { return (_jsx(TextField, __assign({}, params, rest, { variant: "outlined" }))); } }) })));
|
52
|
+
}
|
53
|
+
export default AutocompleteWithFilter;
|
54
|
+
export * from "./types";
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { CSSProperties } from "react";
|
2
|
+
export interface IAutoCompleteWithFilterOption {
|
3
|
+
label: string;
|
4
|
+
[name: string]: unknown;
|
5
|
+
}
|
6
|
+
export declare type AutoCompleteWithFilterOptionType = IAutoCompleteWithFilterOption | string;
|
7
|
+
export interface AutoCompleteWithFilterProps {
|
8
|
+
multiple?: boolean;
|
9
|
+
value: Array<AutoCompleteWithFilterOptionType> | AutoCompleteWithFilterOptionType | null;
|
10
|
+
options: Array<AutoCompleteWithFilterOptionType>;
|
11
|
+
disableCloseOnSelect?: boolean;
|
12
|
+
primaryColor?: CSSProperties["color"];
|
13
|
+
secondaryColor?: CSSProperties["color"];
|
14
|
+
onChange: (value: Array<AutoCompleteWithFilterOptionType> | AutoCompleteWithFilterOptionType | null) => void;
|
15
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/BasicModal/Content.d.ts
CHANGED
package/BasicModal/Content.js
CHANGED
@@ -32,6 +32,6 @@ function Content(props) {
|
|
32
32
|
right: 8,
|
33
33
|
top: 8,
|
34
34
|
color: theme.palette.grey[500],
|
35
|
-
} }, { children: _jsx(CloseIcon, {}
|
35
|
+
} }, { children: _jsx(CloseIcon, {}) }))) : null] })), _jsxs(DialogContent, __assign({ sx: { paddingTop: theme.spacing(1.25) } }, { children: [desc && _jsx(DialogContentText, { children: desc }), Boolean(children) && cloneElement(children)] })), !hideBottomButtons && (_jsx(DialogActions, __assign({ sx: { padding: theme.spacing(1.25) } }, { children: _jsx(Grid, __assign({ container: true, spacing: 2, justifyContent: "flex-end", alignItems: "center", sx: { margin: 0 } }, { children: buttons || (_jsxs(_Fragment, { children: [_jsx(Grid, __assign({ item: true, xs: 12, md: 3, xl: 2 }, { children: _jsx(Button, __assign({ onClick: onClose, variant: "outlined", color: color, disabled: loading, fullWidth: true }, { children: cancelText })) })), _jsx(Grid, __assign({ item: true, xs: 12, md: 3, xl: 2 }, { children: _jsx(Button, __assign({ type: noForm ? "button" : "submit", onClick: noForm ? onSubmit : undefined, variant: "contained", color: color, disabled: loading || disabled, fullWidth: true }, { children: submitText })) }))] })) })) })))] }));
|
36
36
|
}
|
37
37
|
export default Content;
|
package/BasicModal/index.d.ts
CHANGED
package/BasicModal/index.js
CHANGED
@@ -30,7 +30,7 @@ import ThemeProvider from "@mui/material/styles/ThemeProvider";
|
|
30
30
|
import Content from "./Content";
|
31
31
|
import useCustomTheme from "../useCustomTheme";
|
32
32
|
var Transition = forwardRef(function Transition(props, ref) {
|
33
|
-
return _jsx(Slide, __assign({ direction: "up" }, props, { ref: ref })
|
33
|
+
return _jsx(Slide, __assign({ direction: "up" }, props, { ref: ref }));
|
34
34
|
});
|
35
35
|
function BasicModal(props) {
|
36
36
|
var onClose = props.onClose, onSubmit = props.onSubmit, _a = props.maxWidth, maxWidth = _a === void 0 ? "sm" : _a, _b = props.open, open = _b === void 0 ? false : _b, _c = props.noForm, noForm = _c === void 0 ? false : _c, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, rest = __rest(props, ["onClose", "onSubmit", "maxWidth", "open", "noForm", "primaryColor", "secondaryColor"]);
|
@@ -46,7 +46,7 @@ function BasicModal(props) {
|
|
46
46
|
e.preventDefault();
|
47
47
|
e.stopPropagation();
|
48
48
|
onSubmit();
|
49
|
-
} }, { children: _jsx(Content, __assign({}, rest, { noForm: noForm, onClose: onClose, onSubmit: onSubmit })
|
49
|
+
} }, { children: _jsx(Content, __assign({}, rest, { noForm: noForm, onClose: onClose, onSubmit: onSubmit })) })) })) })));
|
50
50
|
}
|
51
51
|
export default BasicModal;
|
52
52
|
export * from "./types";
|
@@ -0,0 +1,37 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
13
|
+
import { useCallback } from "react";
|
14
|
+
import { navigate } from "@reach/router";
|
15
|
+
import Breadcrumbs from "@mui/material/Breadcrumbs";
|
16
|
+
import Typography from "@mui/material/Typography";
|
17
|
+
import ThemeProvider from "@mui/material/styles/ThemeProvider";
|
18
|
+
import NavigateNextIcon from "@mui/icons-material/NavigateNext";
|
19
|
+
import useCustomTheme from "../useCustomTheme";
|
20
|
+
function Crumbs(props) {
|
21
|
+
var routes = props.routes, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor;
|
22
|
+
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
23
|
+
var onNavigateTo = useCallback(function (url) {
|
24
|
+
navigate(url, { replace: true });
|
25
|
+
}, []);
|
26
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(Breadcrumbs, __assign({ "aria-label": "breadcrumb", separator: _jsx(NavigateNextIcon, { fontSize: "small" }) }, { children: [_jsx(Typography, {}), routes.map(function (route) {
|
27
|
+
var href = route.href, label = route.label;
|
28
|
+
return href ? (_jsx(Typography, __assign({ variant: "body2", color: "inherit", sx: {
|
29
|
+
"&:hover": {
|
30
|
+
cursor: "pointer",
|
31
|
+
color: theme.palette.primary.light,
|
32
|
+
},
|
33
|
+
}, onClick: function () { return onNavigateTo(href); } }, { children: label }), label)) : (_jsx(Typography, __assign({ variant: "body2", color: "primary" }, { children: label }), label));
|
34
|
+
})] })) })));
|
35
|
+
}
|
36
|
+
export default Crumbs;
|
37
|
+
export * from "./types";
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
13
|
+
import Link from "@mui/material/Link";
|
14
|
+
import Typography from "@mui/material/Typography";
|
15
|
+
import ThemeProvider from "@mui/material/styles/ThemeProvider";
|
16
|
+
import useCustomTheme from "../useCustomTheme";
|
17
|
+
function Copyright(props) {
|
18
|
+
var primaryColor = props.primaryColor, secondaryColor = props.secondaryColor;
|
19
|
+
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
20
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(Typography, __assign({ variant: "body2", color: "textSecondary", align: "center" }, { children: ["Copyright © ", _jsx(Link, __assign({ color: "inherit", href: "https://symply.io/" }, { children: "Symply Software Inc" })), "\u00A0", new Date().getFullYear() > 2020
|
21
|
+
? "2020-".concat(new Date().getFullYear())
|
22
|
+
: new Date().getFullYear(), "."] })) })));
|
23
|
+
}
|
24
|
+
export default Copyright;
|
25
|
+
export * from "./types";
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/DigitInput/index.d.ts
CHANGED
package/DigitInput/index.js
CHANGED
@@ -32,7 +32,7 @@ function DigitInput(props) {
|
|
32
32
|
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
33
33
|
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Tooltip, __assign({ title: tooltip !== null && tooltip !== void 0 ? tooltip : "", open: !!tooltip && tooltipOpen }, { children: _jsx(Field, __assign({ size: size, margin: "dense", type: "text", value: value === undefined || value === null ? "" : value, onFocus: onOpenTooltip, onBlur: onCloseTooltip, inputProps: { maxLength: maxLength, minLength: minLength }, InputProps: {
|
34
34
|
endAdornment: endAdornment
|
35
|
-
}, onChange: handleChange }, rest)
|
35
|
+
}, onChange: handleChange }, rest)) })) })));
|
36
36
|
}
|
37
37
|
export default DigitInput;
|
38
38
|
export * from "./types";
|
@@ -27,6 +27,6 @@ function HeaderBar(props) {
|
|
27
27
|
var hasButtons = useMemo(function () { return buttons.length > 0; }, [buttons.length]);
|
28
28
|
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(Grid, __assign({ sx: { mb: 1 } }, { children: [_jsxs(Grid, __assign({ container: true, direction: "row", justifyContent: "flex-start", alignItems: "center" }, { children: [_jsx(Grid, __assign({ item: true, xs: 12, sm: hasButtons ? 6 : 12, md: hasButtons ? 5 : 12, lg: hasButtons ? 4 : 12, xl: hasButtons ? 3 : 12 }, { children: _jsxs(Grid, __assign({ container: true, direction: "row", justifyContent: "flex-start", alignItems: "center" }, { children: [showBackButton && (_jsx(IconButton, __assign({ onClick: function () {
|
29
29
|
onBack ? onBack() : window.history.back();
|
30
|
-
} }, { children: _jsx(ArrowBackIcon, { fontSize: "small" }
|
30
|
+
} }, { children: _jsx(ArrowBackIcon, { fontSize: "small" }) }))), _jsx(Typography, __assign({ align: "left", variant: isLessThanSm ? "h6" : "h3", sx: { fontWeight: 600 } }, { children: title }))] })) })), hasButtons ? (_jsx(Grid, __assign({ item: true, xs: 12, sm: 6, md: 7, lg: 8, xl: 9 }, { children: _jsx(HeaderButtons, { buttons: buttons }) }))) : (_jsx(_Fragment, {}))] })), _jsx(Grid, __assign({ container: true, direction: "row" }, { children: _jsx(Grid, __assign({ item: true, xs: 12, sx: { mt: 1 } }, { children: _jsx(HeaderLine, { color: color }) })) })), subtitle && (_jsx(Grid, __assign({ container: true, direction: "row" }, { children: _jsx(Grid, __assign({ item: true, xs: 12, sx: { mt: 1 } }, { children: typeof subtitle === "string" ? (_jsx(Typography, { children: subtitle })) : (cloneElement(subtitle)) })) }))), bottomEl && (_jsx(Grid, __assign({ container: true, direction: "row" }, { children: _jsx(Grid, __assign({ item: true, xs: 12, sx: { mt: 1 } }, { children: cloneElement(bottomEl) })) })))] })) })));
|
31
31
|
}
|
32
32
|
export default HeaderBar;
|
@@ -26,19 +26,19 @@ function HeaderButtons(props) {
|
|
26
26
|
switch (button.type) {
|
27
27
|
case HeaderButtonCategory.TextButton: {
|
28
28
|
var _a = button.variant, variant = _a === void 0 ? "contained" : _a, text = button.text, onClick = button.onClick, color = button.color, size = button.size, startIcon = button.startIcon, endIcon = button.endIcon, disabled = button.disabled;
|
29
|
-
return (_jsx(Grid, __assign({ item: true, xs: isLessThanSm ? 12 : undefined, style: { textAlign: "end" } }, { children: _jsx(Button, __assign({ fullWidth: isLessThanSm, variant: variant, onClick: onClick, color: color, size: isLessThanSm ? "small" : size, startIcon: startIcon, endIcon: endIcon, disabled: disabled }, { children: text })
|
29
|
+
return (_jsx(Grid, __assign({ item: true, xs: isLessThanSm ? 12 : undefined, style: { textAlign: "end" } }, { children: _jsx(Button, __assign({ fullWidth: isLessThanSm, variant: variant, onClick: onClick, color: color, size: isLessThanSm ? "small" : size, startIcon: startIcon, endIcon: endIcon, disabled: disabled }, { children: text })) }), text));
|
30
30
|
}
|
31
31
|
case HeaderButtonCategory.IconButton: {
|
32
32
|
var title = button.title, onClick = button.onClick, color = button.color, _b = button.size, size = _b === void 0 ? "medium" : _b, icon = button.icon;
|
33
|
-
return (_jsx(Grid, __assign({ item: true, style: { textAlign: "end" } }, { children: _jsx(Fab, __assign({ onClick: onClick, color: color, title: title, size: isLessThanSm ? "small" : size }, { children: icon })
|
33
|
+
return (_jsx(Grid, __assign({ item: true, style: { textAlign: "end" } }, { children: _jsx(Fab, __assign({ onClick: onClick, color: color, title: title, size: isLessThanSm ? "small" : size }, { children: icon })) }), title));
|
34
34
|
}
|
35
35
|
case HeaderButtonCategory.MenuButton: {
|
36
36
|
var btns = button.buttons, buttonText = button.buttonText, disabled = button.disabled, variant = button.variant, size = button.size;
|
37
|
-
return (_jsx(Grid, __assign({ item: true, xs: isLessThanSm ? 12 : undefined, style: { textAlign: "end" } }, { children: _jsx(MenuButtonGroup, { size: isLessThanSm ? "small" : size, variant: variant, buttons: btns, buttonText: buttonText, disabled: disabled }
|
37
|
+
return (_jsx(Grid, __assign({ item: true, xs: isLessThanSm ? 12 : undefined, style: { textAlign: "end" } }, { children: _jsx(MenuButtonGroup, { size: isLessThanSm ? "small" : size, variant: variant, buttons: btns, buttonText: buttonText, disabled: disabled }) }), buttonText));
|
38
38
|
}
|
39
39
|
default:
|
40
|
-
return _jsx(_Fragment, {}
|
40
|
+
return _jsx(_Fragment, {});
|
41
41
|
}
|
42
|
-
}) })
|
42
|
+
}) })) })));
|
43
43
|
}
|
44
44
|
export default HeaderButtons;
|
@@ -37,13 +37,13 @@ export function HeaderProvider(props) {
|
|
37
37
|
setHeight(node.getBoundingClientRect().height);
|
38
38
|
}
|
39
39
|
}, [headerProps]);
|
40
|
-
return (_jsx(HeaderContext.Provider, __assign({ value: { onInit: onInit, onHide: onHide, onShow: onShow } }, { children: _jsxs(_Fragment, { children: [visible ? (_jsx(Grid, __assign({ container: true, direction: "row", sx: __assign({}, sx), ref: measureRef }, { children: _jsx(Grid, __assign({ item: true, xs: 12 }, { children: _jsx(HeaderBar, __assign({}, headerProps)
|
40
|
+
return (_jsx(HeaderContext.Provider, __assign({ value: { onInit: onInit, onHide: onHide, onShow: onShow } }, { children: _jsxs(_Fragment, { children: [visible ? (_jsx(Grid, __assign({ container: true, direction: "row", sx: __assign({}, sx), ref: measureRef }, { children: _jsx(Grid, __assign({ item: true, xs: 12 }, { children: _jsx(HeaderBar, __assign({}, headerProps)) })) }))) : (_jsx(_Fragment, {})), cloneElement(children, {
|
41
41
|
sx: {
|
42
42
|
p: 3,
|
43
43
|
py: 1,
|
44
44
|
pt: height ? "calc(".concat(height, "px)") : undefined,
|
45
45
|
},
|
46
|
-
})] }
|
46
|
+
})] }) })));
|
47
47
|
}
|
48
48
|
export function useHeaderBar() {
|
49
49
|
return useContext(HeaderContext);
|
package/FormRadioGroup/index.js
CHANGED
@@ -22,7 +22,7 @@ import useCustomTheme from "../useCustomTheme";
|
|
22
22
|
function FormRadioGroup(props) {
|
23
23
|
var formLabel = props.formLabel, color = props.color, value = props.value, options = props.options, disabled = props.disabled, tooltip = props.tooltip, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, onChange = props.onChange;
|
24
24
|
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
25
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(FormControl, __assign({ sx: { mt: 3 }, component: "fieldset", disabled: disabled }, { children: [tooltip ? (_jsx(Tooltip, __assign({ title: tooltip, placement: "right", disableTouchListener: true }, { children: _jsx(FormLabel, __assign({ sx: { lineHeight: "24px" }, component: "legend" }, { children: formLabel })
|
25
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(FormControl, __assign({ sx: { mt: 3 }, component: "fieldset", disabled: disabled }, { children: [tooltip ? (_jsx(Tooltip, __assign({ title: tooltip, placement: "right", disableTouchListener: true }, { children: _jsx(FormLabel, __assign({ sx: { lineHeight: "24px" }, component: "legend" }, { children: formLabel })) }))) : (_jsx(FormLabel, __assign({ sx: { lineHeight: "24px" }, component: "legend" }, { children: formLabel }))), _jsx(RadioGroup, __assign({ value: value, onChange: function (event) {
|
26
26
|
onChange(event.target.value);
|
27
27
|
}, sx: {
|
28
28
|
my: 1,
|
@@ -31,8 +31,8 @@ function FormRadioGroup(props) {
|
|
31
31
|
}
|
32
32
|
} }, { children: options.map(function (opt) {
|
33
33
|
var _a;
|
34
|
-
return (_jsx(FormControlLabel, { value: opt.value, control: _jsx(Radio, { color: color || "primary" }
|
35
|
-
}) })
|
34
|
+
return (_jsx(FormControlLabel, { value: opt.value, control: _jsx(Radio, { color: color || "primary" }), label: _jsx(Typography, { children: opt.label }), disabled: ((_a = opt.disabled) !== null && _a !== void 0 ? _a : false) || disabled }, String(opt.value)));
|
35
|
+
}) }))] })) })));
|
36
36
|
}
|
37
37
|
export default FormRadioGroup;
|
38
38
|
export * from "./types";
|
@@ -34,7 +34,7 @@ function MultipleSelector(props) {
|
|
34
34
|
var label = props.label, _a = props.variant, variant = _a === void 0 ? "outlined" : _a, value = props.value, tooltip = props.tooltip, _b = props.required, required = _b === void 0 ? false : _b, _c = props.disabled, disabled = _c === void 0 ? false : _c, _d = props.multiple, multiple = _d === void 0 ? false : _d, _e = props.showHelperText, showHelperText = _e === void 0 ? false : _e, helperText = props.helperText, _f = props.options, options = _f === void 0 ? [] : _f, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, onChange = props.onChange, rest = __rest(props, ["label", "variant", "value", "tooltip", "required", "disabled", "multiple", "showHelperText", "helperText", "options", "primaryColor", "secondaryColor", "onChange"]);
|
35
35
|
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
36
36
|
var _g = useInteractions(), tooltipOpen = _g.tooltipOpen, onOpenTooltip = _g.onOpenTooltip, onCloseTooltip = _g.onCloseTooltip;
|
37
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Tooltip, __assign({ title: tooltip !== null && tooltip !== void 0 ? tooltip : "", open: !!tooltip && tooltipOpen }, { children: _jsxs(FormControl, __assign({ variant: variant, disabled: disabled, required: required }, rest, { children: [label && (_jsx(InputLabel, __assign({ id: "symply-multiple-select" }, { children: label })
|
37
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Tooltip, __assign({ title: tooltip !== null && tooltip !== void 0 ? tooltip : "", open: !!tooltip && tooltipOpen }, { children: _jsxs(FormControl, __assign({ variant: variant, disabled: disabled, required: required }, rest, { children: [label && (_jsx(InputLabel, __assign({ id: "symply-multiple-select" }, { children: label }))), _jsx(Select, __assign({ disabled: disabled, required: required, value: value, multiple: true, onChange: function (event) {
|
38
38
|
var _a;
|
39
39
|
onChange((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value);
|
40
40
|
}, inputProps: {
|
@@ -43,6 +43,6 @@ function MultipleSelector(props) {
|
|
43
43
|
}, label: label, renderValue: multiple ? function (selected) { return selected.join("; "); } : undefined }, { children: (options === null || options === void 0 ? void 0 : options.length) > 0 ? (options.map(function (option) {
|
44
44
|
var _a = option, label = _a.label, value = _a.value;
|
45
45
|
return (_jsx(MenuItem, __assign({ value: value }, { children: label }), value));
|
46
|
-
})) : (_jsx(MenuItem, __assign({ value: "", disabled: true }, { children: "No Options" })
|
46
|
+
})) : (_jsx(MenuItem, __assign({ value: "", disabled: true }, { children: "No Options" }))) })), !!helperText && showHelperText && (_jsx(FormHelperText, { children: showHelperText }))] })) })) })));
|
47
47
|
}
|
48
48
|
export default MultipleSelector;
|
@@ -34,7 +34,7 @@ function SimpleSelector(props) {
|
|
34
34
|
var label = props.label, _a = props.variant, variant = _a === void 0 ? "outlined" : _a, value = props.value, tooltip = props.tooltip, _b = props.disabled, disabled = _b === void 0 ? false : _b, _c = props.required, required = _c === void 0 ? false : _c, _d = props.showHelperText, showHelperText = _d === void 0 ? false : _d, helperText = props.helperText, _e = props.options, options = _e === void 0 ? [] : _e, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, onChange = props.onChange, rest = __rest(props, ["label", "variant", "value", "tooltip", "disabled", "required", "showHelperText", "helperText", "options", "primaryColor", "secondaryColor", "onChange"]);
|
35
35
|
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
36
36
|
var _f = useInteractions(), tooltipOpen = _f.tooltipOpen, onOpenTooltip = _f.onOpenTooltip, onCloseTooltip = _f.onCloseTooltip;
|
37
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Tooltip, __assign({ title: tooltip !== null && tooltip !== void 0 ? tooltip : "", open: !!tooltip && tooltipOpen }, { children: _jsxs(FormControl, __assign({ variant: variant, disabled: disabled, required: required }, rest, { children: [label && (_jsx(InputLabel, __assign({ id: "symply-simple-selector" }, { children: label })
|
37
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Tooltip, __assign({ title: tooltip !== null && tooltip !== void 0 ? tooltip : "", open: !!tooltip && tooltipOpen }, { children: _jsxs(FormControl, __assign({ variant: variant, disabled: disabled, required: required }, rest, { children: [label && (_jsx(InputLabel, __assign({ id: "symply-simple-selector" }, { children: label }))), _jsx(Select, __assign({ value: value, required: required, disabled: disabled, onChange: function (event) {
|
38
38
|
var _a;
|
39
39
|
onChange((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value);
|
40
40
|
}, inputProps: {
|
@@ -43,6 +43,6 @@ function SimpleSelector(props) {
|
|
43
43
|
}, label: label }, { children: (options === null || options === void 0 ? void 0 : options.length) > 0 ? (options.map(function (option) {
|
44
44
|
var label = option.label, value = option.value, disabled = option.disabled;
|
45
45
|
return (_jsx(MenuItem, __assign({ value: value, disabled: disabled }, { children: label }), value));
|
46
|
-
})) : (_jsx(MenuItem, __assign({ value: "", disabled: true }, { children: "No Options" })
|
46
|
+
})) : (_jsx(MenuItem, __assign({ value: "", disabled: true }, { children: "No Options" }))) })), !!helperText && showHelperText && (_jsx(FormHelperText, { children: showHelperText }))] })) })) })));
|
47
47
|
}
|
48
48
|
export default SimpleSelector;
|
package/HelpCaption/index.js
CHANGED
@@ -20,7 +20,7 @@ function HelpCaption(props) {
|
|
20
20
|
var mainCaption = props.mainCaption, subCaption = props.subCaption, linkUrl = props.linkUrl, _a = props.linkText, linkText = _a === void 0 ? "Watch Demo" : _a, _b = props.linkType, linkType = _b === void 0 ? "WEBPAGE" : _b, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor;
|
21
21
|
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
22
22
|
var _c = useInteractions(), videoModalOpen = _c.videoModalOpen, onOpenVideoModal = _c.onOpenVideoModal, onCloseVideoModal = _c.onCloseVideoModal;
|
23
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(Grid, __assign({ container: true, spacing: 1, direction: subCaption ? "column" : "row" }, { children: [_jsx(Grid, __assign({ item: true }, { children: _jsx(Typography, __assign({ align: "left", component: "span" }, { children: mainCaption })
|
23
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(Grid, __assign({ container: true, spacing: 1, direction: subCaption ? "column" : "row" }, { children: [_jsx(Grid, __assign({ item: true }, { children: _jsx(Typography, __assign({ align: "left", component: "span" }, { children: mainCaption })) })), _jsxs(Grid, __assign({ item: true }, { children: [subCaption && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ align: "left", component: "span" }, { children: subCaption })), "\u00A0"] })), linkUrl && (_jsx(Typography, __assign({ onClick: linkType === "WEBPAGE"
|
24
24
|
? function () {
|
25
25
|
window.open(linkUrl);
|
26
26
|
}
|
@@ -30,6 +30,6 @@ function HelpCaption(props) {
|
|
30
30
|
color: theme.palette.primary.dark,
|
31
31
|
textDecoration: "underline"
|
32
32
|
}
|
33
|
-
} }, { children: _jsx("b", { children: linkText }
|
33
|
+
} }, { children: _jsx("b", { children: linkText }) })))] })), linkUrl && (_jsx(VideoPlayerModal, { open: videoModalOpen, url: linkUrl, onClose: onCloseVideoModal }))] })) })));
|
34
34
|
}
|
35
35
|
export default HelpCaption;
|
package/LoadingModal/index.d.ts
CHANGED
package/LoadingModal/index.js
CHANGED
@@ -24,7 +24,7 @@ function LoadingModal(props) {
|
|
24
24
|
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Dialog, __assign({ maxWidth: "xs", open: open, sx: { backgroundColor: "#7A7A7A97" }, PaperProps: { sx: { backgroundColor: "#F2F2F2CF" } }, onClose: function (_, reason) {
|
25
25
|
if (reason === "backdropClick")
|
26
26
|
return;
|
27
|
-
}, disableEscapeKeyDown: true }, { children: _jsx(DialogContent, { children: _jsxs(Grid, __assign({ container: true, direction: direction, justifyContent: "space-between", alignItems: "center", "data-testid": "loading-grid" }, { children: [_jsxs(Box, __assign({ position: "relative", display: "inline-flex", sx: { mt: 1.25 } }, { children: [_jsx(CircularProgress, { size: showProgess ? 56 : 40, value: percent, variant: showProgess ? "determinate" : "indeterminate" }
|
27
|
+
}, disableEscapeKeyDown: true }, { children: _jsx(DialogContent, { children: _jsxs(Grid, __assign({ container: true, direction: direction, justifyContent: "space-between", alignItems: "center", "data-testid": "loading-grid" }, { children: [_jsxs(Box, __assign({ position: "relative", display: "inline-flex", sx: { mt: 1.25 } }, { children: [_jsx(CircularProgress, { size: showProgess ? 56 : 40, value: percent, variant: showProgess ? "determinate" : "indeterminate" }), showProgess && percent >= 0 && (_jsx(Box, __assign({ top: 0, left: 0, bottom: 0, right: 0, position: "absolute", display: "flex", alignItems: "center", justifyContent: "center" }, { children: _jsxs(Typography, __assign({ variant: "caption" }, { children: [Math.round(percent), "%"] })) })))] })), _jsx(Typography, __assign({ variant: "subtitle1", component: "span", sx: { mt: 1 } }, { children: text }))] })) }) })) })));
|
28
28
|
}
|
29
29
|
export default LoadingModal;
|
30
30
|
export * from "./types";
|
@@ -18,6 +18,6 @@ import useCustomTheme from "../useCustomTheme";
|
|
18
18
|
function ButtonMenuItem(props) {
|
19
19
|
var buttonText = props.buttonText, buttonIcon = props.buttonIcon, _a = props.disabled, disabled = _a === void 0 ? false : _a, onClick = props.onClick;
|
20
20
|
var theme = useCustomTheme();
|
21
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(MenuItem, __assign({ onClick: onClick, disabled: disabled }, { children: [buttonIcon && _jsx(ListItemIcon, { children: buttonIcon }
|
21
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(MenuItem, __assign({ onClick: onClick, disabled: disabled }, { children: [buttonIcon && _jsx(ListItemIcon, { children: buttonIcon }), _jsx(ListItemText, { primary: buttonText })] })) })));
|
22
22
|
}
|
23
23
|
export default ButtonMenuItem;
|
package/MenuButtonGroup/index.js
CHANGED
@@ -75,7 +75,7 @@ function MenuButtonGroup(props) {
|
|
75
75
|
var onClose = function () {
|
76
76
|
setAnchorEl(null);
|
77
77
|
};
|
78
|
-
return (_jsxs(ThemeProvider, __assign({ theme: theme }, { children: [_jsx(Button, __assign({ "aria-controls": "customized-menu", "data-nw": "download-button", "aria-haspopup": "true", variant: variant, color: color, onClick: onClick, fullWidth: true, size: size, endIcon: _jsx(ArrowDropDownIcon, { fontSize: "small" }
|
78
|
+
return (_jsxs(ThemeProvider, __assign({ theme: theme }, { children: [_jsx(Button, __assign({ "aria-controls": "customized-menu", "data-nw": "download-button", "aria-haspopup": "true", variant: variant, color: color, onClick: onClick, fullWidth: true, size: size, endIcon: _jsx(ArrowDropDownIcon, { fontSize: "small" }), disabled: disabled }, { children: buttonText })), _jsx(Menu, __assign({ id: "button-menu", anchorEl: anchorEl, keepMounted: true, elevation: 2, anchorOrigin: {
|
79
79
|
vertical: "bottom",
|
80
80
|
horizontal: "center"
|
81
81
|
}, transformOrigin: {
|
@@ -98,6 +98,6 @@ function MenuButtonGroup(props) {
|
|
98
98
|
}
|
99
99
|
});
|
100
100
|
}); } }), buttonText));
|
101
|
-
}) })
|
101
|
+
}) }))] })));
|
102
102
|
}
|
103
103
|
export default MenuButtonGroup;
|
package/NumberInput/index.js
CHANGED
@@ -36,6 +36,6 @@ function NumberInput(props) {
|
|
36
36
|
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Tooltip, __assign({ title: tooltip !== null && tooltip !== void 0 ? tooltip : "", open: !!tooltip && tooltipOpen }, { children: _jsx(Field, __assign({ size: size, margin: "dense", type: "number", value: value === undefined || value === null ? "" : value, onFocus: onOpenTooltip, onBlur: function () {
|
37
37
|
onCloseTooltip();
|
38
38
|
handleBlur();
|
39
|
-
}, onChange: handleChange, error: error || exceedError, helperText: helperText || (exceedError ? EXCEED_ERROR : "") }, rest)
|
39
|
+
}, onChange: handleChange, error: error || exceedError, helperText: helperText || (exceedError ? EXCEED_ERROR : "") }, rest)) })) })));
|
40
40
|
}
|
41
41
|
export default NumberInput;
|