@availity/mui-empty-state 0.1.5 → 0.1.7

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/jest.config.js CHANGED
@@ -9,4 +9,14 @@ module.exports = {
9
9
  '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
10
10
  '<rootDir>/__mocks__/fileMock.js',
11
11
  },
12
+ /* TODO: Update to latest Jest snapshotFormat
13
+ * By default Nx has kept the older style of Jest Snapshot formats
14
+ * to prevent breaking of any existing tests with snapshots.
15
+ * It's recommend you update to the latest format.
16
+ * You can do this by removing snapshotFormat property
17
+ * and running tests with --update-snapshot flag.
18
+ * Example: From within the project directory, run "nx test --update-snapshot"
19
+ * More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format
20
+ */
21
+ snapshotFormat: { escapeString: true, printBasicPrototype: true },
12
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-empty-state",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Availity MUI EmptyState Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -32,14 +32,14 @@
32
32
  "publish:canary": "yarn npm publish --access public --tag canary"
33
33
  },
34
34
  "dependencies": {
35
- "@availity/mui-layout": "0.1.4"
35
+ "@availity/mui-layout": "0.1.6"
36
36
  },
37
37
  "devDependencies": {
38
- "@mui/material": "^5.11.9",
38
+ "@mui/material": "^5.15.15",
39
39
  "react": "18.2.0",
40
40
  "react-dom": "18.2.0",
41
- "tsup": "^5.12.7",
42
- "typescript": "^4.6.4"
41
+ "tsup": "^8.0.2",
42
+ "typescript": "^5.4.5"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@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/empty-state/**/*.{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/empty-state"],
24
+ "executor": "@nx/jest:jest",
25
+ "outputs": ["{workspaceRoot}/coverage/empty-state"],
27
26
  "options": {
28
- "jestConfig": "packages/empty-state/jest.config.js",
29
- "passWithNoTests": true
27
+ "jestConfig": "packages/empty-state/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
  }
@@ -1,10 +1,15 @@
1
1
  // Each exported component in the package should have its own stories file
2
2
 
3
- import type { Meta, StoryObj, Decorator } from '@storybook/react';
4
- import { Box, Button, List, ListItem, Typography } from '@mui/material';
3
+ import type { StoryObj, Decorator } from '@storybook/react';
4
+ import Box from '@mui/material/Box';
5
+ import Button from '@mui/material/Button';
6
+ import List from '@mui/material/List';
7
+ import ListItem from '@mui/material/ListItem';
8
+ import Typography from '@mui/material/Typography';
5
9
  import { visuallyHidden } from '@mui/utils';
6
10
  import { Link } from '@availity/mui-link';
7
11
  import { EmptyState, EmptyStateProps } from './EmptyState';
12
+ // eslint-disable-next-line @nx/enforce-module-boundaries
8
13
  import { SystemPropsList } from '../../../../data/MuiSystemProperties';
9
14
 
10
15
  /** Remove 508 warning of Heading Level Jump while leaving Story heading levels realistic */
@@ -1,7 +1,7 @@
1
1
  // FontAwesomeSvgIcon example from mui docs https://github.com/mui/material-ui/blob/master/docs/data/material/components/icons/FontAwesomeSvgIconDemo.js
2
2
 
3
3
  import * as React from 'react';
4
- import { styled } from '@mui/material';
4
+ import { styled } from '@mui/material/styles';
5
5
  import { Stack, StackProps } from '@availity/mui-layout';
6
6
  import { EmptyStateImage, EmptyStateImageProps } from './EmptyStateImage';
7
7
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  import type { StoryObj } from '@storybook/react';
4
4
  import { EmptyStateImage, EmptyStateImageProps } from './EmptyStateImage';
5
+ // eslint-disable-next-line @nx/enforce-module-boundaries
5
6
  import { SystemPropsList } from '../../../../data/MuiSystemProperties';
6
7
  import { Box, Stack } from '@availity/mui-layout';
7
8
 
@@ -1,5 +1,5 @@
1
1
  import { forwardRef } from 'react';
2
- import { styled } from '@mui/material';
2
+ import { styled } from '@mui/material/styles';
3
3
  import { Box, BoxProps } from '@availity/mui-layout';
4
4
  import { PageNotFound } from '../assets/404-Page-Not-Found_Gray';
5
5
  import { ContentLoading } from '../assets/Content-Loading_Gray';