@cruk/chakra-components 3.26.0 → 3.26.1
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 +2 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/package.json +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -27,6 +27,8 @@ npm install @chakra-ui/react @emotion/react @emotion/styled framer-motion
|
|
|
27
27
|
|
|
28
28
|
**NOTE:** Not all projects use `npm` as their package managers, use whichever is appropriate for your project.
|
|
29
29
|
|
|
30
|
+
The package publishes both ES module and CommonJS builds, so consumers can use either `import` or `require`.
|
|
31
|
+
|
|
30
32
|
### Basic Setup
|
|
31
33
|
|
|
32
34
|
Once added to the project, you can use the `ChakraBaseProvider` to wrap your application and provide styled based on the `crukBrand` theme.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cruk/chakra-components",
|
|
3
|
-
"version": "3.26.
|
|
3
|
+
"version": "3.26.1",
|
|
4
4
|
"description": "Chakra UI v2 based components for CRUK applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"build": "rm -rf dist/ && rollup --config",
|
|
37
37
|
"lint": "eslint .",
|
|
38
38
|
"test": "vitest",
|
|
39
|
-
"test:consumer": "npm run build &&
|
|
39
|
+
"test:consumer": "npm run build && node --input-type=module --eval \"await import('@cruk/chakra-components')\" && node --eval \"require('@cruk/chakra-components')\"",
|
|
40
40
|
"test-ct": "playwright test -c playwright-ct.config.ts",
|
|
41
41
|
"test-ct:debug": "playwright test -c playwright-ct.config.ts --debug --project=chromium",
|
|
42
42
|
"test-ct:ui": "playwright test -c playwright-ct.config.ts --ui",
|