@bcgov/design-system-react-components 0.0.9-rc1 → 0.0.10-rc1
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 +10 -27
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/bcgov/repomountie/blob/master/doc/lifecycle-badges.md)
|
|
4
4
|
|
|
5
|
-
This package contains a library of React components built using [React Aria Components](https://react-spectrum.adobe.com/react-aria/react-aria-components.html) to implement the
|
|
5
|
+
This package contains a library of React components built using [React Aria Components](https://react-spectrum.adobe.com/react-aria/react-aria-components.html) to implement the BC Design System.
|
|
6
6
|
|
|
7
7
|
Questions? Please email the <a href="mailto:DesignSystem@gov.bc.ca">GDX OSS Design Team</a>.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
GitHub Repository: https://github.com/bcgov/design-system
|
|
9
|
+
See repository: https://github.com/bcgov/design-system
|
|
12
10
|
|
|
13
11
|
To use, install this package and import the components into your application.
|
|
14
12
|
|
|
@@ -68,15 +66,14 @@ export default function App() {
|
|
|
68
66
|
|
|
69
67
|
## Component list
|
|
70
68
|
|
|
71
|
-
| Component | React Aria Components docs link
|
|
72
|
-
| ----------------------- |
|
|
73
|
-
| Button | https://react-spectrum.adobe.com/react-aria/Button.html
|
|
74
|
-
| Footer | N/A
|
|
75
|
-
| Header | N/A
|
|
76
|
-
| Select | https://react-spectrum.adobe.com/react-aria/Select.html
|
|
77
|
-
| TagGroup, TagList, Tag | https://react-spectrum.adobe.com/react-aria/TagGroup.html
|
|
78
|
-
|
|
|
79
|
-
| Tooltip, TooltipTrigger | https://react-spectrum.adobe.com/react-aria/Tooltip.html |
|
|
69
|
+
| Component | React Aria Components docs link |
|
|
70
|
+
| ----------------------- | --------------------------------------------------------- |
|
|
71
|
+
| Button | https://react-spectrum.adobe.com/react-aria/Button.html |
|
|
72
|
+
| Footer | N/A |
|
|
73
|
+
| Header | N/A |
|
|
74
|
+
| Select | https://react-spectrum.adobe.com/react-aria/Select.html |
|
|
75
|
+
| TagGroup, TagList, Tag | https://react-spectrum.adobe.com/react-aria/TagGroup.html |
|
|
76
|
+
| Tooltip, TooltipTrigger | https://react-spectrum.adobe.com/react-aria/Tooltip.html |
|
|
80
77
|
|
|
81
78
|
## Supported React versions
|
|
82
79
|
|
|
@@ -110,18 +107,6 @@ Storybook stories live in `./src/stories`.
|
|
|
110
107
|
|
|
111
108
|
Run `npm run storybook-dev` to access the Storybook instance for the component library.
|
|
112
109
|
|
|
113
|
-
New versions of Storybook are automatically built in a GitHub Actions workflow and deployed in the `-dev` namespace in the OpenShift Silver cluster. See `.github/build_react_component_library_apps.yaml`.
|
|
114
|
-
|
|
115
|
-
To deploy a new version of Storybook into `-test` or `-prod`, log in to the OpenShift CLI and run:
|
|
116
|
-
|
|
117
|
-
```sh
|
|
118
|
-
# Create a new layer in the `test` ImageStream from the latest `develop` image:
|
|
119
|
-
oc tag ed91fb-tools/design-system-react-components-storybook:develop ed91fb-tools/design-system-react-components-storybook:test
|
|
120
|
-
|
|
121
|
-
# `develop` to `production`
|
|
122
|
-
oc tag ed91fb-tools/design-system-react-components-storybook:develop ed91fb-tools/design-system-react-components-storybook:production
|
|
123
|
-
```
|
|
124
|
-
|
|
125
110
|
#### Testing with Storybook Test Runner
|
|
126
111
|
|
|
127
112
|
With Storybook running locally, use the `npm run test-storybook` script to run `@storybook/test-runner` using the configuration defined in `./.storybook/test-runner.ts`. [Learn more about Storybook Test Runner](https://storybook.js.org/docs/writing-tests/test-runner).
|
|
@@ -139,5 +124,3 @@ To generate an updated copy of the package for distribution, run the included Ro
|
|
|
139
124
|
This will place artifacts in the `dist` folder, which is targeted for publishing in `package.json` with the [`files` field](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files).
|
|
140
125
|
|
|
141
126
|
Update the package version in `package.json` and run `npm publish` to push a new version.
|
|
142
|
-
|
|
143
|
-
To publish a beta/release candidate version, use `npm publish --tag next`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcgov/design-system-react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10-rc1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"rollup": "rm -rf dist && rollup -c --bundleConfigAsCjs",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"@rollup/plugin-json": "6.1.0",
|
|
38
38
|
"@rollup/plugin-node-resolve": "15.2.3",
|
|
39
39
|
"@rollup/plugin-typescript": "11.1.6",
|
|
40
|
-
"@storybook/addon-a11y": "8.2.
|
|
41
|
-
"@storybook/addon-essentials": "8.2.
|
|
42
|
-
"@storybook/addon-interactions": "8.2.
|
|
43
|
-
"@storybook/addon-links": "8.2.
|
|
44
|
-
"@storybook/blocks": "8.2.
|
|
45
|
-
"@storybook/react": "8.2.
|
|
46
|
-
"@storybook/react-vite": "8.2.
|
|
47
|
-
"@storybook/test": "8.2.
|
|
40
|
+
"@storybook/addon-a11y": "8.2.3",
|
|
41
|
+
"@storybook/addon-essentials": "8.2.3",
|
|
42
|
+
"@storybook/addon-interactions": "8.2.3",
|
|
43
|
+
"@storybook/addon-links": "8.2.3",
|
|
44
|
+
"@storybook/blocks": "8.2.3",
|
|
45
|
+
"@storybook/react": "8.2.3",
|
|
46
|
+
"@storybook/react-vite": "8.2.3",
|
|
47
|
+
"@storybook/test": "8.2.3",
|
|
48
48
|
"@storybook/test-runner": "0.19.1",
|
|
49
49
|
"@testing-library/jest-dom": "6.4.5",
|
|
50
50
|
"@testing-library/react": "16.0.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"rollup-plugin-dts": "6.1.1",
|
|
67
67
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
68
68
|
"rollup-plugin-postcss": "4.0.2",
|
|
69
|
-
"storybook": "8.2.
|
|
69
|
+
"storybook": "8.2.3",
|
|
70
70
|
"ts-jest": "29.1.4",
|
|
71
71
|
"ts-node": "10.9.2",
|
|
72
72
|
"tslib": "2.6.2",
|