@takecasper/acuity-design-system 2.2.1 → 2.3.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/README.md CHANGED
@@ -39,6 +39,22 @@ Then run:
39
39
 
40
40
  `npm install @takecasper/acuity-design-system`
41
41
 
42
+ The library is built to run on your app's React, MUI and Emotion rather than
43
+ bundling its own copies (one copy per page is required for React and for MUI
44
+ theming to work). Make sure these peer dependencies are installed in your app:
45
+
46
+ ```
47
+ npm install react react-dom @mui/material @mui/icons-material @mui/system @mui/utils @emotion/react @emotion/styled react-toastify
48
+ ```
49
+
50
+ Supported ranges: `react`/`react-dom` 18.2+ or 19, `@mui/*` 7, `@emotion/*` 11,
51
+ `react-toastify` 11. `@mui/x-data-grid` is bundled with the library, so it does
52
+ not need to be installed at runtime; it is an optional peer because the
53
+ `AcuityDataGrid` prop types reference it, so install it if you use that
54
+ component and want its props typed. `npm run smoke:consumer` installs the built package
55
+ into a throwaway project with a given React/MUI version and renders a component
56
+ with it (see `scripts/consumer-smoke.mjs`).
57
+
42
58
  To get the newest version of the library, just run this command again.
43
59
 
44
60
  To check for the newest releases, you can check the [npm page](https://www.npmjs.com/package/@takecasper/acuity-design-system/).
@@ -51,6 +67,15 @@ To use a component within your project, you can use a component like this:
51
67
 
52
68
  `import { Button } from '@takecasper/acuity-design-system';`
53
69
 
70
+ Import the stylesheet once at your app's entry point:
71
+
72
+ `import '@takecasper/acuity-design-system/style.css';`
73
+
74
+ MUI-based components read the host MUI theme. To render them with the design
75
+ system's own theme, wrap them (or your app root) in `AcuityMuiThemeProvider`:
76
+
77
+ `import { AcuityMuiThemeProvider } from '@takecasper/acuity-design-system';`
78
+
54
79
  ## IDE Setup
55
80
 
56
81
  ### Quick Start