@ongov/ontario-design-system-component-library-react 6.0.0-alpha.1 → 6.0.0-alpha.10
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 +8 -2
- package/dist/components/components.d.ts +331 -286
- package/dist/components/components.js +243 -143
- package/dist/components/components.js.map +1 -1
- package/dist/components/components.server.d.ts +545 -0
- package/dist/components/components.server.js +1458 -0
- package/dist/components/components.server.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react-component-lib/createComponent.js +16 -10
- package/dist/react-component-lib/createComponent.js.map +1 -1
- package/dist/react-component-lib/utils/index.js +1 -1
- package/dist/react-component-lib/utils/index.js.map +1 -1
- package/dist/styles/slotted-styles/callouts-asides.scss +11 -0
- package/dist/styles/slotted-styles/page-alerts.scss +46 -0
- package/dist/styles/theme.scss +7 -0
- package/package.json +37 -9
- package/src/components/components.server.ts +2125 -0
- package/src/components/components.ts +427 -287
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,13 @@ To use the Ontario Design System React component library, follow these steps:
|
|
|
22
22
|
npm install --save @ongov/ontario-design-system-component-library-react
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
2. Import the
|
|
25
|
+
2. Import the theme file into your project’s entry point.
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
import '@ongov/ontario-design-system-component-library-react/dist/theme.scss';
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
3. Import the desired components from the component library.
|
|
26
32
|
|
|
27
33
|
```tsx
|
|
28
34
|
import { OntarioButton } from '@ongov/ontario-design-system-component-library-react';
|
|
@@ -68,4 +74,4 @@ Another way is to add scripts to copy the assets in your `package.json` file. Fo
|
|
|
68
74
|
|
|
69
75
|
## Support
|
|
70
76
|
|
|
71
|
-
Contact us at [design.system@ontario.ca](mailto:design.system@ontario.ca) for assistance with this package.
|
|
77
|
+
Contact us at [design.system@ontario.ca](mailto:design.system@ontario.ca) for assistance with this package or via opening a [GitHub](https://github.com/ongov/ontario-design-system) [issue](https://github.com/ongov/ontario-design-system/issues).
|