@symply.io/basic-components 1.0.0-alpha.15 → 1.0.0-alpha.17

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 (82) hide show
  1. package/AlertDialog/index.d.ts +0 -1
  2. package/AlertDialog/index.js +2 -2
  3. package/Autocomplete/index.d.ts +4 -0
  4. package/Autocomplete/index.js +38 -0
  5. package/Autocomplete/types.d.ts +15 -0
  6. package/Autocomplete/types.js +1 -0
  7. package/Autocomplete/useInteractions.d.ts +5 -0
  8. package/Autocomplete/useInteractions.js +9 -0
  9. package/AutocompleteWithFilter/index.d.ts +4 -0
  10. package/AutocompleteWithFilter/index.js +54 -0
  11. package/AutocompleteWithFilter/types.d.ts +16 -0
  12. package/AutocompleteWithFilter/types.js +1 -0
  13. package/BasicModal/Content.d.ts +0 -1
  14. package/BasicModal/Content.js +1 -1
  15. package/BasicModal/index.d.ts +0 -1
  16. package/BasicModal/index.js +2 -2
  17. package/BreadCrumbs/index.d.ts +4 -0
  18. package/BreadCrumbs/index.js +37 -0
  19. package/BreadCrumbs/types.d.ts +9 -0
  20. package/BreadCrumbs/types.js +1 -0
  21. package/CheckBox/CheckBox.d.ts +3 -0
  22. package/CheckBox/CheckBox.js +36 -0
  23. package/CheckBox/CheckBoxGroup.d.ts +3 -0
  24. package/CheckBox/CheckBoxGroup.js +30 -0
  25. package/CheckBox/index.d.ts +3 -0
  26. package/CheckBox/index.js +3 -0
  27. package/CheckBox/types.d.ts +12 -0
  28. package/CheckBox/types.js +1 -0
  29. package/Copyright/index.d.ts +4 -0
  30. package/Copyright/index.js +25 -0
  31. package/Copyright/types.d.ts +5 -0
  32. package/Copyright/types.js +1 -0
  33. package/DigitInput/index.d.ts +1 -4
  34. package/DigitInput/index.js +1 -1
  35. package/DigitInput/types.d.ts +2 -1
  36. package/DynamicHeaderBar/HeaderBar.js +1 -1
  37. package/DynamicHeaderBar/HeaderButtons.d.ts +0 -1
  38. package/DynamicHeaderBar/HeaderButtons.js +5 -5
  39. package/DynamicHeaderBar/HeaderLine.js +1 -1
  40. package/DynamicHeaderBar/index.js +2 -2
  41. package/FormRadioGroup/index.d.ts +0 -1
  42. package/FormRadioGroup/index.js +3 -3
  43. package/FormSelector/MultipleSelector.d.ts +1 -3
  44. package/FormSelector/MultipleSelector.js +2 -2
  45. package/FormSelector/SimpleSelector.d.ts +1 -3
  46. package/FormSelector/SimpleSelector.js +2 -2
  47. package/FormSelector/types.d.ts +2 -1
  48. package/HelpCaption/index.js +2 -2
  49. package/LoadingModal/index.d.ts +0 -1
  50. package/LoadingModal/index.js +1 -1
  51. package/MenuButtonGroup/MenuItem.d.ts +0 -1
  52. package/MenuButtonGroup/MenuItem.js +1 -1
  53. package/MenuButtonGroup/index.js +2 -2
  54. package/NumberInput/index.d.ts +2 -3
  55. package/NumberInput/index.js +1 -1
  56. package/PasswordInput/ConfirmPassword.d.ts +2 -3
  57. package/PasswordInput/ConfirmPassword.js +1 -1
  58. package/PasswordInput/Password.d.ts +2 -3
  59. package/PasswordInput/Password.js +2 -2
  60. package/PhoneNumberInput/index.d.ts +2 -3
  61. package/PhoneNumberInput/index.js +2 -2
  62. package/README.md +191 -1
  63. package/TabGroup/index.js +2 -2
  64. package/TablePagination/Actions.d.ts +3 -0
  65. package/TablePagination/Actions.js +27 -0
  66. package/TablePagination/index.d.ts +4 -0
  67. package/TablePagination/index.js +30 -0
  68. package/TablePagination/types.d.ts +14 -0
  69. package/TablePagination/types.js +1 -0
  70. package/TablePagination/useInteractions.d.ts +14 -0
  71. package/TablePagination/useInteractions.js +23 -0
  72. package/TextInput/index.d.ts +2 -3
  73. package/TextInput/index.js +1 -1
  74. package/ToastPrompt/Presentation.js +3 -3
  75. package/ToastPrompt/index.d.ts +0 -2
  76. package/ToastPrompt/index.js +1 -2
  77. package/VideoPlayerModal/index.d.ts +1 -3
  78. package/VideoPlayerModal/index.js +2 -2
  79. package/VideoPlayerModal/types.d.ts +2 -1
  80. package/index.d.ts +11 -0
  81. package/index.js +11 -0
  82. package/package.json +4 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AlertDialogProps } from "./types";
3
2
  declare const AlertDialog: (props: AlertDialogProps) => JSX.Element;
4
3
  export default AlertDialog;
@@ -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 }), void 0);
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 }), void 0), _jsx(DialogContent, { children: children }, void 0), _jsx(DialogActions, { children: DialogButtons ? (cloneElement(DialogButtons)) : (_jsx(Button, __assign({ onClick: onClose, color: "primary" }, { children: "OK" }), void 0)) }, void 0)] }), void 0) }), void 0));
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,4 @@
1
+ import { CustomAutocompleteProps } from "./types";
2
+ declare function CustomAutocomplete(props: CustomAutocompleteProps): JSX.Element;
3
+ export default CustomAutocomplete;
4
+ 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,15 @@
1
+ import { CSSProperties } from "react";
2
+ import { TextFieldProps } from "@mui/material/TextField";
3
+ export interface IAutocompleteOption {
4
+ label: string;
5
+ [name: string]: unknown;
6
+ }
7
+ export declare type AutocompleteOptionType = IAutocompleteOption | string;
8
+ export interface CustomAutocompleteProps extends Omit<TextFieldProps, "onChange"> {
9
+ multiple?: boolean;
10
+ options: Array<AutocompleteOptionType>;
11
+ value: Array<AutocompleteOptionType> | AutocompleteOptionType | null;
12
+ primaryColor?: CSSProperties["color"];
13
+ secondaryColor?: CSSProperties["color"];
14
+ onChange: (value: Array<AutocompleteOptionType> | AutocompleteOptionType | null) => void;
15
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ declare function useInteractions(): {
2
+ inputValue: string;
3
+ onInputChange: (_: object, value: string) => void;
4
+ };
5
+ export default useInteractions;
@@ -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,4 @@
1
+ import { AutoCompleteWithFilterProps } from "./types";
2
+ declare function AutocompleteWithFilter(props: AutoCompleteWithFilterProps): JSX.Element;
3
+ export default AutocompleteWithFilter;
4
+ 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,16 @@
1
+ import { CSSProperties } from "react";
2
+ import { TextFieldProps } from "@mui/material/TextField";
3
+ export interface IAutoCompleteWithFilterOption {
4
+ label: string;
5
+ [name: string]: unknown;
6
+ }
7
+ export declare type AutoCompleteWithFilterOptionType = IAutoCompleteWithFilterOption | string;
8
+ export interface AutoCompleteWithFilterProps extends Omit<TextFieldProps, "onChange"> {
9
+ multiple?: boolean;
10
+ value: Array<AutoCompleteWithFilterOptionType> | AutoCompleteWithFilterOptionType | null;
11
+ options: Array<AutoCompleteWithFilterOptionType>;
12
+ disableCloseOnSelect?: boolean;
13
+ primaryColor?: CSSProperties["color"];
14
+ secondaryColor?: CSSProperties["color"];
15
+ onChange: (value: Array<AutoCompleteWithFilterOptionType> | AutoCompleteWithFilterOptionType | null) => void;
16
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BasicModalContentProps } from "./types";
3
2
  declare function Content(props: BasicModalContentProps): JSX.Element;
4
3
  export default Content;
@@ -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, {}, void 0) }), void 0)) : null] }), void 0), _jsxs(DialogContent, __assign({ sx: { paddingTop: theme.spacing(1.25) } }, { children: [desc && _jsx(DialogContentText, { children: desc }, void 0), Boolean(children) && cloneElement(children)] }), void 0), !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 }), void 0) }), void 0), _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 }), void 0) }), void 0)] }, void 0)) }), void 0) }), void 0))] }, void 0));
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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BasicModalProps } from "./types";
3
2
  declare function BasicModal(props: BasicModalProps): JSX.Element;
4
3
  export default BasicModal;
@@ -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 }), void 0);
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 }), void 0) }), void 0) }), void 0) }), void 0));
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,4 @@
1
+ import { BreadCrumbsProps } from "./types";
2
+ declare function Crumbs(props: BreadCrumbsProps): JSX.Element;
3
+ export default Crumbs;
4
+ 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,9 @@
1
+ import { CSSProperties } from "react";
2
+ export interface BreadCrumbsProps {
3
+ routes: Array<{
4
+ href?: string;
5
+ label: string;
6
+ }>;
7
+ primaryColor?: CSSProperties["color"];
8
+ secondaryColor?: CSSProperties["color"];
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { CheckBoxProps } from "./types";
2
+ export declare function CheckBox(props: CheckBoxProps): JSX.Element;
3
+ export default CheckBox;
@@ -0,0 +1,36 @@
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 Checkbox from "@mui/material/Checkbox";
25
+ import FormControlLabel from "@mui/material/FormControlLabel";
26
+ import ThemeProvider from "@mui/material/styles/ThemeProvider";
27
+ import useCustomTheme from "../useCustomTheme";
28
+ export function CheckBox(props) {
29
+ var label = props.label, onChange = props.onChange, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, rest = __rest(props, ["label", "onChange", "primaryColor", "secondaryColor"]);
30
+ var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
31
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(FormControlLabel, { control: _jsx(Checkbox, __assign({ onChange: function (event) {
32
+ event.stopPropagation();
33
+ onChange(event.target.checked);
34
+ } }, rest)), label: label }) })));
35
+ }
36
+ export default CheckBox;
@@ -0,0 +1,3 @@
1
+ import { CheckBoxGroupProps } from "./types";
2
+ export declare function CheckBoxGroup(props: CheckBoxGroupProps): JSX.Element;
3
+ export default CheckBoxGroup;
@@ -0,0 +1,30 @@
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 FormGroup from "@mui/material/FormGroup";
25
+ import CheckBox from "./CheckBox";
26
+ export function CheckBoxGroup(props) {
27
+ var checkboxes = props.checkboxes, rest = __rest(props, ["checkboxes"]);
28
+ return (_jsx(FormGroup, __assign({}, rest, { children: checkboxes.map(function (checkbox, index) { return (_jsx(CheckBox, __assign({}, checkbox), index)); }) })));
29
+ }
30
+ export default CheckBoxGroup;
@@ -0,0 +1,3 @@
1
+ export { default as CheckBox } from "./CheckBox";
2
+ export { default as CheckBoxGroup } from "./CheckBoxGroup";
3
+ export * from "./types";
@@ -0,0 +1,3 @@
1
+ export { default as CheckBox } from "./CheckBox";
2
+ export { default as CheckBoxGroup } from "./CheckBoxGroup";
3
+ export * from "./types";
@@ -0,0 +1,12 @@
1
+ import { CSSProperties } from "react";
2
+ import { CheckboxProps } from "@mui/material/Checkbox";
3
+ import { FormGroupProps } from "@mui/material/FormGroup";
4
+ export interface CheckBoxProps extends Omit<CheckboxProps, "onChange"> {
5
+ label: string;
6
+ onChange: (val: boolean) => void;
7
+ primaryColor?: CSSProperties["color"];
8
+ secondaryColor?: CSSProperties["color"];
9
+ }
10
+ export interface CheckBoxGroupProps extends FormGroupProps {
11
+ checkboxes: Array<CheckBoxProps>;
12
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { CopyrightProps } from "./types";
2
+ declare function Copyright(props: CopyrightProps): JSX.Element;
3
+ export default Copyright;
4
+ export * from "./types";
@@ -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,5 @@
1
+ import { CSSProperties } from "react";
2
+ export interface CopyrightProps {
3
+ primaryColor?: CSSProperties["color"];
4
+ secondaryColor?: CSSProperties["color"];
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,4 @@
1
- /// <reference types="react" />
2
- import { TextFieldProps } from "@mui/material/TextField";
3
1
  import { DigitInputProps } from "./types";
4
- declare type TextProps = Omit<TextFieldProps, "onChange">;
5
- declare function DigitInput(props: DigitInputProps & TextProps): JSX.Element;
2
+ declare function DigitInput(props: DigitInputProps): JSX.Element;
6
3
  export default DigitInput;
7
4
  export * from "./types";
@@ -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), void 0) }), void 0) }), void 0));
35
+ }, onChange: handleChange }, rest)) })) })));
36
36
  }
37
37
  export default DigitInput;
38
38
  export * from "./types";
@@ -1,6 +1,7 @@
1
1
  import { CSSProperties } from "react";
2
2
  import { InputProps } from "@mui/material/Input";
3
- export interface DigitInputProps {
3
+ import { TextFieldProps } from "@mui/material/TextField";
4
+ export interface DigitInputProps extends Omit<TextFieldProps, "onChange"> {
4
5
  onChange: (value: string) => void;
5
6
  value: string;
6
7
  tooltip?: string;
@@ -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" }, void 0) }), void 0)), _jsx(Typography, __assign({ align: "left", variant: isLessThanSm ? "h6" : "h3", sx: { fontWeight: 600 } }, { children: title }), void 0)] }), void 0) }), void 0), hasButtons ? (_jsx(Grid, __assign({ item: true, xs: 12, sm: 6, md: 7, lg: 8, xl: 9 }, { children: _jsx(HeaderButtons, { buttons: buttons }, void 0) }), void 0)) : (_jsx(_Fragment, {}, void 0))] }), void 0), _jsx(Grid, __assign({ container: true, direction: "row" }, { children: _jsx(Grid, __assign({ item: true, xs: 12, sx: { mt: 1 } }, { children: _jsx(HeaderLine, { color: color }, void 0) }), void 0) }), void 0), 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 }, void 0)) : (cloneElement(subtitle)) }), void 0) }), void 0)), bottomEl && (_jsx(Grid, __assign({ container: true, direction: "row" }, { children: _jsx(Grid, __assign({ item: true, xs: 12, sx: { mt: 1 } }, { children: cloneElement(bottomEl) }), void 0) }), void 0))] }), void 0) }), void 0));
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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { HeaderButtonProps } from "./types";
3
2
  export interface HeaderButtonsProps {
4
3
  buttons: Array<HeaderButtonProps>;
@@ -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 }), void 0) }), 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 }), void 0) }), title));
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 }, void 0) }), buttonText));
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, {}, void 0);
40
+ return _jsx(_Fragment, {});
41
41
  }
42
- }) }), void 0) }), void 0));
42
+ }) })) })));
43
43
  }
44
44
  export default HeaderButtons;
@@ -7,6 +7,6 @@ function HeaderLine(props) {
7
7
  return (_jsx(Divider, { sx: {
8
8
  height: "3px",
9
9
  backgroundColor: color || theme.palette.primary.main
10
- } }, void 0));
10
+ } }));
11
11
  }
12
12
  export default HeaderLine;
@@ -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), void 0) }), void 0) }), void 0)) : (_jsx(_Fragment, {}, void 0)), cloneElement(children, {
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
- })] }, void 0) }), void 0));
46
+ })] }) })));
47
47
  }
48
48
  export function useHeaderBar() {
49
49
  return useContext(HeaderContext);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormRadioGroupProps } from "./types";
3
2
  declare function FormRadioGroup(props: FormRadioGroupProps): JSX.Element;
4
3
  export default FormRadioGroup;
@@ -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 }), void 0) }), void 0)) : (_jsx(FormLabel, __assign({ sx: { lineHeight: "24px" }, component: "legend" }, { children: formLabel }), void 0)), _jsx(RadioGroup, __assign({ value: value, onChange: function (event) {
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" }, void 0), label: _jsx(Typography, { children: opt.label }, void 0), disabled: ((_a = opt.disabled) !== null && _a !== void 0 ? _a : false) || disabled }, String(opt.value)));
35
- }) }), void 0)] }), void 0) }), void 0));
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";
@@ -1,5 +1,3 @@
1
- /// <reference types="react" />
2
- import { FormControlProps } from "@mui/material/FormControl";
3
1
  import { MultipleSelectorProps } from "./types";
4
- declare function MultipleSelector(props: MultipleSelectorProps & FormControlProps): JSX.Element;
2
+ declare function MultipleSelector(props: MultipleSelectorProps): JSX.Element;
5
3
  export default MultipleSelector;
@@ -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 }), void 0)), _jsx(Select, __assign({ disabled: disabled, required: required, value: value, multiple: true, onChange: function (event) {
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" }), void 0)) }), void 0), !!helperText && showHelperText && (_jsx(FormHelperText, { children: showHelperText }, void 0))] }), void 0) }), void 0) }), void 0));
46
+ })) : (_jsx(MenuItem, __assign({ value: "", disabled: true }, { children: "No Options" }))) })), !!helperText && showHelperText && (_jsx(FormHelperText, { children: showHelperText }))] })) })) })));
47
47
  }
48
48
  export default MultipleSelector;