@availity/mui-dialog 0.1.6 → 0.1.8

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/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.1.8](https://github.com/Availity/element/compare/@availity/mui-dialog@0.1.7...@availity/mui-dialog@0.1.8) (2024-04-19)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-button` updated to version `0.1.7`
10
+ * `mui-layout` updated to version `0.1.7`
11
+ ## [0.1.7](https://github.com/Availity/element/compare/@availity/mui-dialog@0.1.6...@availity/mui-dialog@0.1.7) (2024-04-15)
12
+
13
+ ### Dependency Updates
14
+
15
+ * `mui-button` updated to version `0.6.6`
5
16
  ## [0.1.6](https://github.com/Availity/element/compare/@availity/mui-dialog@0.1.5...@availity/mui-dialog@0.1.6) (2024-04-04)
6
17
 
7
18
  ### Dependency Updates
@@ -0,0 +1,32 @@
1
+ import { DialogProps as DialogProps$1 } from '@mui/material/Dialog';
2
+ import { DialogActionsProps as DialogActionsProps$1 } from '@mui/material/DialogActions';
3
+ import { DialogContentProps as DialogContentProps$1 } from '@mui/material/DialogContent';
4
+ import { DialogContentTextProps as DialogContentTextProps$1 } from '@mui/material/DialogContentText';
5
+ import { DialogTitleProps as DialogTitleProps$1 } from '@mui/material/DialogTitle';
6
+
7
+ type DialogProps = Omit<DialogProps$1, 'BackdropComponent' | 'BackdropProps' | 'PaperComponent' | 'PaperProps' | 'TransitionComponent' | 'TransitionProps'> & {
8
+ children?: React.ReactNode;
9
+ };
10
+ declare const Dialog: ({ children, ...rest }: DialogProps) => JSX.Element;
11
+
12
+ interface DialogActionsProps extends DialogActionsProps$1 {
13
+ children?: React.ReactNode;
14
+ }
15
+ declare const DialogActions: ({ children, ...rest }: DialogActionsProps) => JSX.Element;
16
+
17
+ interface DialogContentProps extends DialogContentProps$1 {
18
+ children?: React.ReactNode;
19
+ }
20
+ declare const DialogContent: ({ children, ...rest }: DialogContentProps) => JSX.Element;
21
+
22
+ interface DialogContentTextProps extends DialogContentTextProps$1 {
23
+ children?: React.ReactNode;
24
+ }
25
+ declare const DialogContentText: ({ children, ...rest }: DialogContentTextProps) => JSX.Element;
26
+
27
+ interface DialogTitleProps extends DialogTitleProps$1 {
28
+ children?: React.ReactNode;
29
+ }
30
+ declare const DialogTitle: ({ children, ...rest }: DialogTitleProps) => JSX.Element;
31
+
32
+ export { Dialog, DialogActions, type DialogActionsProps, DialogContent, type DialogContentProps, DialogContentText, type DialogContentTextProps, type DialogProps, DialogTitle, type DialogTitleProps };
package/dist/index.d.ts CHANGED
@@ -29,4 +29,4 @@ interface DialogTitleProps extends DialogTitleProps$1 {
29
29
  }
30
30
  declare const DialogTitle: ({ children, ...rest }: DialogTitleProps) => JSX.Element;
31
31
 
32
- export { Dialog, DialogActions, DialogActionsProps, DialogContent, DialogContentProps, DialogContentText, DialogContentTextProps, DialogProps, DialogTitle, DialogTitleProps };
32
+ export { Dialog, DialogActions, type DialogActionsProps, DialogContent, type DialogContentProps, DialogContentText, type DialogContentTextProps, type DialogProps, DialogTitle, type DialogTitleProps };
package/dist/index.js CHANGED
@@ -1,10 +1,39 @@
1
1
  "use strict";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
9
  var __getProtoOf = Object.getPrototypeOf;
7
10
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
8
37
  var __export = (target, all) => {
9
38
  for (var name in all)
10
39
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -18,6 +47,10 @@ var __copyProps = (to, from, except, desc) => {
18
47
  return to;
19
48
  };
20
49
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
54
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
55
  mod
23
56
  ));
@@ -37,51 +70,41 @@ module.exports = __toCommonJS(src_exports);
37
70
  // src/lib/Dialog.tsx
38
71
  var import_Dialog = __toESM(require("@mui/material/Dialog"));
39
72
  var import_jsx_runtime = require("react/jsx-runtime");
40
- var Dialog = ({ children, ...rest }) => {
41
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Dialog.default, {
42
- ...rest,
43
- children
44
- });
73
+ var Dialog = (_a) => {
74
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
75
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Dialog.default, __spreadProps(__spreadValues({}, rest), { children }));
45
76
  };
46
77
 
47
78
  // src/lib/DialogActions.tsx
48
79
  var import_DialogActions = __toESM(require("@mui/material/DialogActions"));
49
- var import_jsx_runtime = require("react/jsx-runtime");
50
- var DialogActions = ({ children, ...rest }) => {
51
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DialogActions.default, {
52
- ...rest,
53
- children
54
- });
80
+ var import_jsx_runtime2 = require("react/jsx-runtime");
81
+ var DialogActions = (_a) => {
82
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
83
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_DialogActions.default, __spreadProps(__spreadValues({}, rest), { children }));
55
84
  };
56
85
 
57
86
  // src/lib/DialogContent.tsx
58
87
  var import_DialogContent = __toESM(require("@mui/material/DialogContent"));
59
- var import_jsx_runtime = require("react/jsx-runtime");
60
- var DialogContent = ({ children, ...rest }) => {
61
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DialogContent.default, {
62
- ...rest,
63
- children
64
- });
88
+ var import_jsx_runtime3 = require("react/jsx-runtime");
89
+ var DialogContent = (_a) => {
90
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
91
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_DialogContent.default, __spreadProps(__spreadValues({}, rest), { children }));
65
92
  };
66
93
 
67
94
  // src/lib/DialogContentText.tsx
68
95
  var import_DialogContentText = __toESM(require("@mui/material/DialogContentText"));
69
- var import_jsx_runtime = require("react/jsx-runtime");
70
- var DialogContentText = ({ children, ...rest }) => {
71
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DialogContentText.default, {
72
- ...rest,
73
- children
74
- });
96
+ var import_jsx_runtime4 = require("react/jsx-runtime");
97
+ var DialogContentText = (_a) => {
98
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
99
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_DialogContentText.default, __spreadProps(__spreadValues({}, rest), { children }));
75
100
  };
76
101
 
77
102
  // src/lib/DialogTitle.tsx
78
103
  var import_DialogTitle = __toESM(require("@mui/material/DialogTitle"));
79
- var import_jsx_runtime = require("react/jsx-runtime");
80
- var DialogTitle = ({ children, ...rest }) => {
81
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DialogTitle.default, {
82
- ...rest,
83
- children
84
- });
104
+ var import_jsx_runtime5 = require("react/jsx-runtime");
105
+ var DialogTitle = (_a) => {
106
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
107
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_DialogTitle.default, __spreadProps(__spreadValues({}, rest), { children }));
85
108
  };
86
109
  // Annotate the CommonJS export names for ESM import in node:
87
110
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -1,51 +1,73 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+
1
33
  // src/lib/Dialog.tsx
2
34
  import MuiDialog from "@mui/material/Dialog";
3
35
  import { jsx } from "react/jsx-runtime";
4
- var Dialog = ({ children, ...rest }) => {
5
- return /* @__PURE__ */ jsx(MuiDialog, {
6
- ...rest,
7
- children
8
- });
36
+ var Dialog = (_a) => {
37
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
38
+ return /* @__PURE__ */ jsx(MuiDialog, __spreadProps(__spreadValues({}, rest), { children }));
9
39
  };
10
40
 
11
41
  // src/lib/DialogActions.tsx
12
42
  import MuiDialogActions from "@mui/material/DialogActions";
13
43
  import { jsx as jsx2 } from "react/jsx-runtime";
14
- var DialogActions = ({ children, ...rest }) => {
15
- return /* @__PURE__ */ jsx2(MuiDialogActions, {
16
- ...rest,
17
- children
18
- });
44
+ var DialogActions = (_a) => {
45
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
46
+ return /* @__PURE__ */ jsx2(MuiDialogActions, __spreadProps(__spreadValues({}, rest), { children }));
19
47
  };
20
48
 
21
49
  // src/lib/DialogContent.tsx
22
50
  import MuiDialogContent from "@mui/material/DialogContent";
23
51
  import { jsx as jsx3 } from "react/jsx-runtime";
24
- var DialogContent = ({ children, ...rest }) => {
25
- return /* @__PURE__ */ jsx3(MuiDialogContent, {
26
- ...rest,
27
- children
28
- });
52
+ var DialogContent = (_a) => {
53
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
54
+ return /* @__PURE__ */ jsx3(MuiDialogContent, __spreadProps(__spreadValues({}, rest), { children }));
29
55
  };
30
56
 
31
57
  // src/lib/DialogContentText.tsx
32
58
  import MuiDialogContentText from "@mui/material/DialogContentText";
33
59
  import { jsx as jsx4 } from "react/jsx-runtime";
34
- var DialogContentText = ({ children, ...rest }) => {
35
- return /* @__PURE__ */ jsx4(MuiDialogContentText, {
36
- ...rest,
37
- children
38
- });
60
+ var DialogContentText = (_a) => {
61
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
62
+ return /* @__PURE__ */ jsx4(MuiDialogContentText, __spreadProps(__spreadValues({}, rest), { children }));
39
63
  };
40
64
 
41
65
  // src/lib/DialogTitle.tsx
42
66
  import MuiDialogTitle from "@mui/material/DialogTitle";
43
67
  import { jsx as jsx5 } from "react/jsx-runtime";
44
- var DialogTitle = ({ children, ...rest }) => {
45
- return /* @__PURE__ */ jsx5(MuiDialogTitle, {
46
- ...rest,
47
- children
48
- });
68
+ var DialogTitle = (_a) => {
69
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
70
+ return /* @__PURE__ */ jsx5(MuiDialogTitle, __spreadProps(__spreadValues({}, rest), { children }));
49
71
  };
50
72
  export {
51
73
  Dialog,
package/jest.config.js CHANGED
@@ -4,4 +4,14 @@ module.exports = {
4
4
  ...global,
5
5
  displayName: 'dialog',
6
6
  coverageDirectory: '../../coverage/dialog',
7
+ /* TODO: Update to latest Jest snapshotFormat
8
+ * By default Nx has kept the older style of Jest Snapshot formats
9
+ * to prevent breaking of any existing tests with snapshots.
10
+ * It's recommend you update to the latest format.
11
+ * You can do this by removing snapshotFormat property
12
+ * and running tests with --update-snapshot flag.
13
+ * Example: From within the project directory, run "nx test --update-snapshot"
14
+ * More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format
15
+ */
16
+ snapshotFormat: { escapeString: true, printBasicPrototype: true },
7
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-dialog",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Availity MUI Dialog Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -32,13 +32,13 @@
32
32
  "publish:canary": "yarn npm publish --access public --tag canary"
33
33
  },
34
34
  "devDependencies": {
35
- "@availity/mui-button": "0.6.5",
36
- "@availity/mui-layout": "0.1.5",
37
- "@mui/material": "^5.11.9",
35
+ "@availity/mui-button": "0.6.7",
36
+ "@availity/mui-layout": "0.1.6",
37
+ "@mui/material": "^5.15.15",
38
38
  "react": "18.2.0",
39
39
  "react-dom": "18.2.0",
40
- "tsup": "^5.12.7",
41
- "typescript": "^4.6.4"
40
+ "tsup": "^8.0.2",
41
+ "typescript": "^5.4.5"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@mui/material": "^5.11.9",
package/project.json CHANGED
@@ -6,10 +6,9 @@
6
6
  "tags": [],
7
7
  "targets": {
8
8
  "lint": {
9
- "executor": "@nrwl/linter:eslint",
9
+ "executor": "@nx/eslint:lint",
10
10
  "options": {
11
11
  "eslintConfig": ".eslintrc.json",
12
- "lintFilePatterns": ["packages/dialog/**/*.{js,ts}"],
13
12
  "silent": false,
14
13
  "fix": false,
15
14
  "cache": true,
@@ -22,20 +21,20 @@
22
21
  }
23
22
  },
24
23
  "test": {
25
- "executor": "@nrwl/jest:jest",
26
- "outputs": ["coverage/dialog"],
24
+ "executor": "@nx/jest:jest",
25
+ "outputs": ["{workspaceRoot}/coverage/dialog"],
27
26
  "options": {
28
- "jestConfig": "packages/dialog/jest.config.js",
29
- "passWithNoTests": true
27
+ "jestConfig": "packages/dialog/jest.config.js"
30
28
  }
31
29
  },
32
30
  "version": {
33
31
  "executor": "@jscutlery/semver:version",
34
32
  "options": {
35
33
  "preset": "conventional",
36
- "commitMessageFormat": "chore(${projectName}): release version ${version} [skip ci]",
37
- "tagPrefix": "@availity/${projectName}@",
38
- "trackDeps": true
34
+ "commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
35
+ "tagPrefix": "@availity/{projectName}@",
36
+ "trackDeps": true,
37
+ "skipCommitTypes": ["docs"]
39
38
  }
40
39
  }
41
40
  }