@takecasper/acuity-design-system 2.2.0 → 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 +25 -0
- package/dist/components/Modal/modal.d.ts.map +1 -1
- package/dist/index.cjs +102 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.es.js +19461 -56854
- package/dist/index.es.js.map +1 -1
- package/package.json +15 -5
- package/dist/index.cjs.js +0 -1284
- package/dist/index.cjs.js.map +0 -1
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7C,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC;IAC5C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,QAAA,MAAM,KAAK,GAAI,iHAYZ,UAAU,sBAsGZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|