@availity/mui-empty-state 2.0.1 → 3.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-empty-state",
3
- "version": "2.0.1",
3
+ "version": "3.0.0",
4
4
  "description": "Availity MUI EmptyState Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -21,34 +21,32 @@
21
21
  "author": "Availity Developers <AVOSS@availity.com>",
22
22
  "browser": "./dist/index.js",
23
23
  "main": "./dist/index.js",
24
- "module": "./dist/index.mjs",
25
24
  "types": "./dist/index.d.ts",
26
25
  "exports": {
27
- "./package.json": "./package.json",
28
26
  ".": {
29
27
  "types": "./dist/index.d.ts",
30
- "import": "./dist/index.mjs",
31
- "require": "./dist/index.js"
32
- }
28
+ "import": "./dist/index.js"
29
+ },
30
+ "./package.json": "./package.json"
33
31
  },
34
32
  "scripts": {
35
- "build": "tsup src/index.ts --format esm,cjs --dts",
36
- "dev": "tsup src/index.ts --format esm,cjs --watch --dts",
33
+ "build": "tsup src/index.ts --format esm --dts",
34
+ "dev": "tsup src/index.ts --format esm --watch --dts",
37
35
  "clean": "rm -rf dist",
38
36
  "clean:nm": "rm -rf node_modules",
39
37
  "publish": "yarn npm publish --tolerate-republish --access public",
40
38
  "publish:canary": "yarn npm publish --access public --tag canary"
41
39
  },
42
40
  "dependencies": {
43
- "@availity/mui-layout": "2.0.1"
41
+ "@availity/mui-layout": "3.0.0"
44
42
  },
45
43
  "devDependencies": {
46
- "@availity/mui-utils": "2.0.1",
47
- "@mui/material": "^7.3.4",
48
- "react": "19.2.0",
49
- "react-dom": "19.2.0",
50
- "tsup": "^8.4.0",
51
- "typescript": "^5.4.5"
44
+ "@availity/mui-utils": "3.0.0",
45
+ "@mui/material": "^7.3.11",
46
+ "react": "19.2.7",
47
+ "react-dom": "19.2.7",
48
+ "tsup": "^8.5.1",
49
+ "typescript": "^5.9.3"
52
50
  },
53
51
  "peerDependencies": {
54
52
  "@mui/material": "^7.0.0",
@@ -57,5 +55,6 @@
57
55
  "publishConfig": {
58
56
  "access": "public"
59
57
  },
60
- "sideEffects": false
58
+ "sideEffects": false,
59
+ "type": "module"
61
60
  }
package/project.json CHANGED
@@ -8,23 +8,20 @@
8
8
  "lint": {
9
9
  "executor": "@nx/eslint:lint",
10
10
  "options": {
11
- "eslintConfig": ".eslintrc.json",
12
11
  "silent": false,
13
12
  "fix": false,
14
13
  "cache": true,
15
14
  "cacheLocation": "./node_modules/.cache/empty-state/.eslintcache",
16
15
  "maxWarnings": -1,
17
16
  "quiet": false,
18
- "noEslintrc": false,
19
17
  "hasTypeAwareRules": true,
20
18
  "cacheStrategy": "metadata"
21
19
  }
22
20
  },
23
21
  "test": {
24
- "executor": "@nx/jest:jest",
25
- "outputs": ["{workspaceRoot}/coverage/empty-state"],
22
+ "executor": "nx:run-commands",
26
23
  "options": {
27
- "jestConfig": "packages/empty-state/jest.config.js"
24
+ "command": "vitest run packages/empty-state"
28
25
  }
29
26
  },
30
27
  "version": {
@@ -34,7 +31,9 @@
34
31
  "commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
35
32
  "tagPrefix": "@availity/{projectName}@",
36
33
  "trackDeps": true,
37
- "skipCommitTypes": ["docs"]
34
+ "skipCommitTypes": [
35
+ "docs"
36
+ ]
38
37
  }
39
38
  }
40
39
  }
@@ -1,5 +1,4 @@
1
- export const PageNotFound = () => {
2
- return (
1
+ export const PageNotFound = () => (
3
2
  <svg
4
3
  id="Layer_1"
5
4
  data-name="Layer 1"
@@ -41,4 +40,3 @@ export const PageNotFound = () => {
41
40
  </g>
42
41
  </svg>
43
42
  );
44
- };
@@ -1,10 +1,9 @@
1
- export const ContentLoading = () => {
2
- return (
1
+ export const ContentLoading = () => (
3
2
  <svg
4
3
  version="1.1"
5
4
  id="Layer_1"
6
5
  xmlns="http://www.w3.org/2000/svg"
7
- xmlnsXlink="http://www.w3.org/1999/xlink"
6
+ xmlnsXlink="https://www.w3.org/1999/xlink"
8
7
  x="0px"
9
8
  y="0px"
10
9
  viewBox="0 0 144 144"
@@ -109,4 +108,3 @@ export const ContentLoading = () => {
109
108
  </g>
110
109
  </svg>
111
110
  );
112
- };
@@ -1,10 +1,9 @@
1
- export const Error = () => {
2
- return (
1
+ export const Error = () => (
3
2
  <svg
4
3
  version="1.1"
5
4
  id="Layer_1"
6
5
  xmlns="http://www.w3.org/2000/svg"
7
- xmlnsXlink="http://www.w3.org/1999/xlink"
6
+ xmlnsXlink="https://www.w3.org/1999/xlink"
8
7
  x="0px"
9
8
  y="0px"
10
9
  viewBox="0 0 144 144"
@@ -291,4 +290,3 @@ export const Error = () => {
291
290
  />
292
291
  </svg>
293
292
  );
294
- };
@@ -1,10 +1,9 @@
1
- export const Instructional = () => {
2
- return (
1
+ export const Instructional = () => (
3
2
  <svg
4
3
  version="1.1"
5
4
  id="Layer_1"
6
5
  xmlns="http://www.w3.org/2000/svg"
7
- xmlnsXlink="http://www.w3.org/1999/xlink"
6
+ xmlnsXlink="https://www.w3.org/1999/xlink"
8
7
  x="0px"
9
8
  y="0px"
10
9
  viewBox="0 0 144 144"
@@ -161,4 +160,3 @@ export const Instructional = () => {
161
160
  </g>
162
161
  </svg>
163
162
  );
164
- };
@@ -1,10 +1,9 @@
1
- export const NoData = () => {
2
- return (
1
+ export const NoData = () => (
3
2
  <svg
4
3
  version="1.1"
5
4
  id="Layer_1"
6
5
  xmlns="http://www.w3.org/2000/svg"
7
- xmlnsXlink="http://www.w3.org/1999/xlink"
6
+ xmlnsXlink="https://www.w3.org/1999/xlink"
8
7
  x="0px"
9
8
  y="0px"
10
9
  viewBox="0 0 144 144"
@@ -233,4 +232,3 @@ export const NoData = () => {
233
232
  </g>
234
233
  </svg>
235
234
  );
236
- };
@@ -1,10 +1,9 @@
1
- export const NoFavorites = () => {
2
- return (
1
+ export const NoFavorites = () => (
3
2
  <svg
4
3
  version="1.1"
5
4
  id="Layer_1"
6
5
  xmlns="http://www.w3.org/2000/svg"
7
- xmlnsXlink="http://www.w3.org/1999/xlink"
6
+ xmlnsXlink="https://www.w3.org/1999/xlink"
8
7
  x="0px"
9
8
  y="0px"
10
9
  viewBox="0 0 144 144"
@@ -107,4 +106,3 @@ export const NoFavorites = () => {
107
106
  />
108
107
  </svg>
109
108
  );
110
- };
@@ -1,10 +1,9 @@
1
- export const NoMessages = () => {
2
- return (
1
+ export const NoMessages = () => (
3
2
  <svg
4
3
  version="1.1"
5
4
  id="Layer_1"
6
5
  xmlns="http://www.w3.org/2000/svg"
7
- xmlnsXlink="http://www.w3.org/1999/xlink"
6
+ xmlnsXlink="https://www.w3.org/1999/xlink"
8
7
  x="0px"
9
8
  y="0px"
10
9
  viewBox="0 0 144 144"
@@ -111,4 +110,3 @@ export const NoMessages = () => {
111
110
  />
112
111
  </svg>
113
112
  );
114
- };
@@ -1,10 +1,9 @@
1
- export const NoNotifications = () => {
2
- return (
1
+ export const NoNotifications = () => (
3
2
  <svg
4
3
  version="1.1"
5
4
  id="Layer_1"
6
5
  xmlns="http://www.w3.org/2000/svg"
7
- xmlnsXlink="http://www.w3.org/1999/xlink"
6
+ xmlnsXlink="https://www.w3.org/1999/xlink"
8
7
  x="0px"
9
8
  y="0px"
10
9
  viewBox="0 0 144 144"
@@ -121,4 +120,3 @@ export const NoNotifications = () => {
121
120
  </g>
122
121
  </svg>
123
122
  );
124
- };
@@ -1,10 +1,9 @@
1
- export const NoPatients = () => {
2
- return (
1
+ export const NoPatients = () => (
3
2
  <svg
4
3
  version="1.1"
5
4
  id="Layer_1"
6
5
  xmlns="http://www.w3.org/2000/svg"
7
- xmlnsXlink="http://www.w3.org/1999/xlink"
6
+ xmlnsXlink="https://www.w3.org/1999/xlink"
8
7
  x="0px"
9
8
  y="0px"
10
9
  viewBox="0 0 144 144"
@@ -133,4 +132,3 @@ export const NoPatients = () => {
133
132
  </g>
134
133
  </svg>
135
134
  );
136
- };
@@ -1,10 +1,9 @@
1
- export const NoSearchFound = () => {
2
- return (
1
+ export const NoSearchFound = () => (
3
2
  <svg
4
3
  version="1.1"
5
4
  id="Layer_1"
6
5
  xmlns="http://www.w3.org/2000/svg"
7
- xmlnsXlink="http://www.w3.org/1999/xlink"
6
+ xmlnsXlink="https://www.w3.org/1999/xlink"
8
7
  x="0px"
9
8
  y="0px"
10
9
  viewBox="0 0 144 144"
@@ -262,4 +261,3 @@ export const NoSearchFound = () => {
262
261
  <line className="st72" x1="78.5" y1="78.4" x2="90.2" y2="90.1" />
263
262
  </svg>
264
263
  );
265
- };
@@ -1,10 +1,9 @@
1
- export const SuccessConfirmation = () => {
2
- return (
1
+ export const SuccessConfirmation = () => (
3
2
  <svg
4
3
  version="1.1"
5
4
  id="Layer_1"
6
5
  xmlns="http://www.w3.org/2000/svg"
7
- xmlnsXlink="http://www.w3.org/1999/xlink"
6
+ xmlnsXlink="https://www.w3.org/1999/xlink"
8
7
  x="0px"
9
8
  y="0px"
10
9
  viewBox="0 0 144 144"
@@ -100,4 +99,3 @@ export const SuccessConfirmation = () => {
100
99
  </g>
101
100
  </svg>
102
101
  );
103
- };
package/dist/index.d.mts DELETED
@@ -1,29 +0,0 @@
1
- import * as react from 'react';
2
- import { BoxProps, StackProps } from '@availity/mui-layout';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
-
5
- declare const EmptyStateImages: {
6
- ContentLoading: () => react_jsx_runtime.JSX.Element;
7
- Error: () => react_jsx_runtime.JSX.Element;
8
- Instructional: () => react_jsx_runtime.JSX.Element;
9
- NoData: () => react_jsx_runtime.JSX.Element;
10
- NoFavorites: () => react_jsx_runtime.JSX.Element;
11
- NoMessages: () => react_jsx_runtime.JSX.Element;
12
- NoNotifications: () => react_jsx_runtime.JSX.Element;
13
- NoPatients: () => react_jsx_runtime.JSX.Element;
14
- NoSearchFound: () => react_jsx_runtime.JSX.Element;
15
- PageNotFound: () => react_jsx_runtime.JSX.Element;
16
- SuccessConfirmation: () => react_jsx_runtime.JSX.Element;
17
- };
18
- interface EmptyStateImageProps extends Omit<BoxProps, 'children'> {
19
- /** Empty State variant for image */
20
- variant?: keyof typeof EmptyStateImages;
21
- }
22
- /** Image to accompany Empty State message. */
23
- declare const EmptyStateImage: react.ForwardRefExoticComponent<Omit<EmptyStateImageProps, "ref"> & react.RefAttributes<unknown>>;
24
-
25
- type EmptyStateProps = StackProps & Pick<EmptyStateImageProps, 'variant'>;
26
- /** Container for Empty State image and message. */
27
- declare const EmptyState: react.ForwardRefExoticComponent<Omit<EmptyStateProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
28
-
29
- export { EmptyState, EmptyStateImage, type EmptyStateImageProps, EmptyStateImages, type EmptyStateProps };