2.0.0-canary.37 • Published 4 months ago

@ukic/canary-react v2.0.0-canary.37

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Canary: The UK Intelligence Community React UI Kit

OGL V3 License MIT License npm

The Intelligence Community Design System helps the United Kingdom's Intelligence Community (MI6, GCHQ, MI5, and partners) to quickly build powerful capabilities that are accessible and easy to use.

This is a joint project led by MI6, working with GCHQ and MI5.

Installing

To install the components:

Step one

In the root of your project:

# using npm
npm install @ukic/canary-react @ukic/fonts

# using yarn
rm package-lock.json
yarn add @ukic/canary-react @ukic/fonts

Step two

To get the correct styling with the ICDS components, import the core CSS file.

Add the following into the top level CSS file for your project.

@import "@ukic/fonts/dist/fonts.css";
@import "@ukic/canary-react/dist/core/core.css";

In order to be rendered consistently across browsers and in line with modern standards, each of the ICDS components uses styles from a global CSS file based on Normalize.css.

If you would like to import these styles to apply them to the rest of your project and slotted elements used within any of the ICDS components, add the following into the top level CSS file as well.

@import "@ukic/canary-react/dist/core/normalize.css";

Step three

Import the component(s) in your React files.

import { IcComponent } from "@ukic/canary-react";

Step four

The @ukic/canary-react package will need to be transformed before you can use these components in Jest tests.

Add a transformIgnorePatterns field with the value ["/node_modules/(?!@ukic/canary-react)"] to your Jest config.

Contributing

We have a couple of resources to help you with contributing.

Changelog

For a comprehensive changelog of the canary React components, please read the canary web components CHANGELOG. The released updates made to the canary web components are reflected on the canary React components.

Security

If you've found a vulnerability, we want to know so that we can fix it. Our security policy tells you how to do this.

License

Unless stated otherwise, the codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation. The documentation is and available under the terms of the Open Government License v3.0.

© Crown copyright 2022

3.0.0-canary.11

4 months ago

2.0.0-canary.37

4 months ago

2.0.0-canary.36

4 months ago

3.0.0-canary.10

4 months ago

2.0.0-canary.35

5 months ago

3.0.0-canary.9

5 months ago

3.0.0-canary.8

5 months ago

2.0.0-canary.34

5 months ago

2.0.0-canary.33

5 months ago

3.0.0-canary.6

6 months ago

2.0.0-canary.32

6 months ago

2.0.0-canary.31

6 months ago

3.0.0-canary.5

7 months ago

2.0.0-canary.30

7 months ago

3.0.0-canary.4

8 months ago

2.0.0-canary.29

8 months ago

3.0.0-canary.3

8 months ago

2.0.0-canary.28

8 months ago

3.0.0-canary.2

9 months ago

2.0.0-canary.27

9 months ago

2.0.0-canary.26

9 months ago

3.0.0-canary.1

9 months ago

2.0.0-canary.24

10 months ago

2.0.0-canary.23

10 months ago

2.0.0-canary.25

9 months ago

2.0.0-canary.22

10 months ago

2.0.0-canary.21

11 months ago

2.0.0-canary.20

11 months ago

2.0.0-canary.19

12 months ago

2.0.0-canary.18

1 year ago

2.0.0-canary.17

1 year ago

2.0.0-canary.16

1 year ago

2.0.0-canary.15

1 year ago

2.0.0-canary.14

1 year ago

2.0.0-canary.13

1 year ago

2.0.0-canary.12

1 year ago

2.0.0-canary.11

1 year ago

2.0.0-canary.10

1 year ago

2.0.0-canary.9

1 year ago

2.0.0-canary.8

1 year ago

2.0.0-canary.7

1 year ago

2.0.0-canary.6

1 year ago

2.0.0-canary.5

1 year ago

2.0.0-canary.4

1 year ago

2.0.0-canary.3

2 years ago

2.0.0-canary.2

2 years ago

2.0.0-canary.1

2 years ago

2.0.0-canary.0

2 years ago