2.20.0 • Published 7 days ago

@ukic/react v2.20.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 days ago

The UK Intelligence Community React UI Kit

OGL V3 License MIT License

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/react @ukic/fonts

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

Step two

Import the component(s) in your React files.

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

Step three

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/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/react/dist/core/normalize.css";

Step four

The @ukic/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/react)"] to your Jest config.

Contributing

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

Changelog

For a comprehensive changelog of the React components, please read the web components CHANGELOG. The released updates made to the web components are reflected on the 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.

Questions about the departments

The team is only able to talk about the projects we've put on GitHub 🕵️. We unfortunately can't talk about the work of our departments 😢.

Visit our websites to learn more about:

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

2.20.0

7 days ago

2.19.0

21 days ago

2.18.1

1 month ago

2.18.0

1 month ago

2.17.0

1 month ago

2.15.1

2 months ago

2.15.0

2 months ago

2.14.0

2 months ago

2.13.0

3 months ago

2.12.0

3 months ago

2.11.0

4 months ago

2.10.0

4 months ago

2.9.0

4 months ago

2.8.0

5 months ago

2.1.0-beta.18

10 months ago

2.1.0-beta.17

10 months ago

2.3.0

9 months ago

2.2.0

10 months ago

2.5.0

8 months ago

2.4.1

8 months ago

2.4.0

8 months ago

2.7.0

6 months ago

2.6.0

7 months ago

2.1.0-beta.16

11 months ago

2.1.0-beta.15

12 months ago

2.1.0-beta.14

1 year ago

2.1.0-beta.13

1 year ago

2.1.0-beta.12

1 year ago

2.1.0-beta.11

1 year ago

2.1.0-beta.10

1 year ago

2.1.0-beta.9

1 year ago

2.1.0-beta.3

1 year ago

2.1.0-beta.2

1 year ago

2.1.0-beta.5

1 year ago

2.1.0-beta.4

1 year ago

2.1.0-beta.7

1 year ago

2.1.0-beta.6

1 year ago

2.1.0-beta.8

1 year ago

2.1.0-beta.1

1 year ago

2.1.0-beta.0

1 year ago

2.0.1

1 year ago

2.0.0

2 years ago

2.0.0-alpha.125

2 years ago

2.0.0-alpha.124

2 years ago

2.0.0-alpha.122

2 years ago

2.0.0-alpha.121

2 years ago