@symply.io/basic-components 1.7.5 → 1.7.6-alpha.1

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.
@@ -57,7 +57,7 @@ var __rest = (this && this.__rest) || function (s, e) {
57
57
  return t;
58
58
  };
59
59
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
60
- import { useRef, forwardRef, useCallback, cloneElement, useImperativeHandle, } from "react";
60
+ import { useRef, forwardRef, useCallback, useImperativeHandle, } from "react";
61
61
  import Grid from "@mui/material/Grid";
62
62
  import Button from "@mui/material/Button";
63
63
  import Dialog from "@mui/material/Dialog";
@@ -121,7 +121,7 @@ function BasicModal(props, ref) {
121
121
  ? undefined
122
122
  : function (ev) {
123
123
  ev.preventDefault();
124
- } }, { 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 : onFormSubmit, variant: "contained", color: color, disabled: loading || disabled, fullWidth: true }, { children: submitText })) }))] })) })) })))] })) })));
124
+ } }, { children: [desc && _jsx(DialogContentText, { children: desc }), Boolean(children) ? children : _jsx(_Fragment, {})] })) })), !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 : onFormSubmit, variant: "contained", color: color, disabled: loading || disabled, fullWidth: true }, { children: submitText })) }))] })) })) })))] })) })));
125
125
  }
126
126
  var BasicModalWithRefForward = forwardRef(BasicModal);
127
127
  BasicModalWithRefForward.displayName = "BasicModal";
@@ -18,7 +18,7 @@ function useInteractions(props) {
18
18
  tooltipOpen: tooltipOpen,
19
19
  handleChange: handleChange,
20
20
  onOpenTooltip: onOpenTooltip,
21
- onCloseTooltip: onCloseTooltip
21
+ onCloseTooltip: onCloseTooltip,
22
22
  };
23
23
  }
24
24
  export default useInteractions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symply.io/basic-components",
3
- "version": "1.7.5",
3
+ "version": "1.7.6-alpha.1",
4
4
  "description": "Basic and reusable components for all frontend of Symply apps",
5
5
  "keywords": [
6
6
  "react",
@@ -47,7 +47,7 @@
47
47
  "@types/react": "^18.2.16",
48
48
  "@types/react-dom": "^18.2.7",
49
49
  "babel-loader": "^8.2.2",
50
- "typescript": "~4.6.3"
50
+ "typescript": "5.3.3"
51
51
  },
52
52
  "dependencies": {
53
53
  "@emotion/react": "^11.7.1",