@bcgov/design-system-react-components 0.8.0 → 0.8.1-pr761

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
@@ -1,14 +1,17 @@
1
1
  # @bcgov/design-system-react-components
2
2
 
3
- This package contains a library of React components built using [React Aria](https://react-aria.adobe.com) to implement the [B.C. Design System](https://gov.bc.ca/designsystem).
3
+ This package contains a library of React components, built using React Aria, as part of the B.C. Design System.
4
4
 
5
- Questions? Please email the <a href="mailto:DesignSystem@gov.bc.ca">GDX OSS Design Team</a>.
5
+ To use these components, install this package and import the components you need into your application.
6
6
 
7
- Storybook: https://designsystem.gov.bc.ca/react-components/
7
+ - GitHub: https://github.com/bcgov/design-system/
8
+ - Storybook: https://designsystem.gov.bc.ca/react-components/
9
+ - Documentation: https://gov.bc.ca/designsystem/
8
10
 
9
- GitHub Repository: https://github.com/bcgov/design-system
11
+ If you have questions, you can:
10
12
 
11
- To use, install this package and import the components into your application.
13
+ - <a href="mailto:DesignSystem@gov.bc.ca">Email designsystem@gov.bc.ca</a>
14
+ - <a href="https://github.com/bcgov/design-system/issues">Open an issue on GitHub</a>
12
15
 
13
16
  ## Install
14
17
 
@@ -66,6 +69,8 @@ export default function App() {
66
69
 
67
70
  ## Component list
68
71
 
72
+ Most components are based on <a href="https://react-aria.adobe.com">React Aria</a> primitives.
73
+
69
74
  | Component | React Aria docs link |
70
75
  | --------------------------------------------------------------------------- | ---------------------------------------------- |
71
76
  | AlertBanner | N/A |
@@ -188,7 +193,11 @@ Then in a local React project folder, use `npm link @bcgov/design-system-react-c
188
193
 
189
194
  ### Linting
190
195
 
191
- ESLint is used for linting. See configuration file `eslint.config.js` and `lint` script in `package.json`.
196
+ ESLint is used for linting TypeScript files. See configuration file `eslint.config.js` and `lint:ts` script in `package.json`.
197
+
198
+ Stylelint is used for linting CSS files. See configuration file `stylelint.config.mjs` and `lint:css` script in `package.json`.
199
+
200
+ The `lint` script in `package.json` runs both the TypeScript and CSS linting in series.
192
201
 
193
202
  ### Formatting
194
203
 
@@ -198,14 +207,14 @@ Prettier is used for formatting. See configuration file `prettier.config.js` and
198
207
 
199
208
  #### npm package
200
209
 
201
- Publishing new versions of the package to npm is done via GitHub Actions.
210
+ Publishing new versions of the package is done via GitHub Actions.
202
211
 
203
212
  GitHub Actions are located in `/.github/workflows` in the project root. Actions are included to:
204
213
 
205
214
  - Build the Storybook and Vite applications on merge to `main`
206
215
  - Test (Vitest and Playwright) on pull request
207
- - Publish new versions of the library on npm (`next` tag) on merge to `main`
208
- - Publish new versions of the library on npm (`latest` tag) when a GitHub release is published
216
+ - Publish new versions of the library to npm (`next` tag) and GitHub Packages on merge to `main`
217
+ - Publish new production versions of the library to npm (`latest` tag) and GitHub Packages when a GitHub release is published
209
218
 
210
219
  #### GitHub release
211
220