@ukic/react 2.0.0 → 2.1.0-beta.0
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 +83 -0
- package/dist/core/core.css +1 -1
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# The UK Intelligence Community React UI Kit
|
|
2
|
+
|
|
3
|
+
[](https://github.com/mi6/ic-design-system/tree/main/LICENSE)
|
|
4
|
+
[](https://github.com/mi6/ic-design-system/tree/main/LICENSE)
|
|
5
|
+
|
|
6
|
+
The [Intelligence Community Design System](https://design.sis.gov.uk) helps the United Kingdom's Intelligence Community (MI6, GCHQ, MI5, and partners) to quickly build powerful capabilities that are accessible and easy to use.
|
|
7
|
+
|
|
8
|
+
This is a joint project led by [MI6](https://www.sis.gov.uk), working with [GCHQ](https://www.gchq.gov.uk) and [MI5](https://www.mi5.gov.uk).
|
|
9
|
+
|
|
10
|
+
## Installing
|
|
11
|
+
|
|
12
|
+
To install the components:
|
|
13
|
+
|
|
14
|
+
### Step one
|
|
15
|
+
|
|
16
|
+
In the root of your project:
|
|
17
|
+
|
|
18
|
+
```shell
|
|
19
|
+
// using npm
|
|
20
|
+
npm install @ukic/react @ukic/fonts
|
|
21
|
+
|
|
22
|
+
// using yarn
|
|
23
|
+
rm package-lock.json
|
|
24
|
+
yarn add @ukic/react @ukic/fonts
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Step two
|
|
28
|
+
|
|
29
|
+
Import the component(s) in your React files.
|
|
30
|
+
|
|
31
|
+
```jsx
|
|
32
|
+
import { IcComponent } from "@ukic/react";
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Step three
|
|
36
|
+
|
|
37
|
+
To get the correct styling with the ICDS components, import the core CSS file.
|
|
38
|
+
|
|
39
|
+
Add the following into the top level CSS file for your project.
|
|
40
|
+
|
|
41
|
+
```css
|
|
42
|
+
@import "@ukic/fonts/dist/fonts.css";
|
|
43
|
+
@import "@ukic/react/dist/core/core.css";
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Step four
|
|
47
|
+
|
|
48
|
+
The `@ukic/react` package will need to be transformed before you can use these components in Jest tests.
|
|
49
|
+
|
|
50
|
+
Add a `transformIgnorePatterns` field with the value `["/node_modules/(?!@ukic/react)"]` to your Jest config.
|
|
51
|
+
|
|
52
|
+
## Contributing
|
|
53
|
+
|
|
54
|
+
We have a couple of resources to help you with contributing.
|
|
55
|
+
|
|
56
|
+
- To find out more about the different types of contributions, the criteria, raising issues or our release roadmap, read [how to contribute to the Design System and UI Kit](https://design.sis.gov.uk/community/contribute).
|
|
57
|
+
- Make sure to also read our [coding standards and technical instructions](https://github.com/mi6/ic-ui-kit/blob/main/CONTRIBUTING.md).
|
|
58
|
+
- [IC Design System guidance site repository](https://github.com/mi6/ic-design-system) contains the code and content for the Design System guidance site.
|
|
59
|
+
- [IC UI Kit repository](https://github.com/mi6/ic-ui-kit) contains the code and content for the web components.
|
|
60
|
+
|
|
61
|
+
## Changelog
|
|
62
|
+
|
|
63
|
+
For a comprehensive changelog of the React components, please read the web components [CHANGELOG](https://github.com/mi6/ic-ui-kit/blob/main/CHANGELOG.md). The released updates made to the web components are reflected on the React components.
|
|
64
|
+
|
|
65
|
+
## Security
|
|
66
|
+
|
|
67
|
+
If you've found a vulnerability, we want to know so that we can fix it. [Our security policy](https://github.com/mi6/ic-ui-kit/blob/main/SECURITY.md) tells you how to do this.
|
|
68
|
+
|
|
69
|
+
## Questions about the departments
|
|
70
|
+
|
|
71
|
+
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 😢.
|
|
72
|
+
|
|
73
|
+
Visit our websites to learn more about:
|
|
74
|
+
|
|
75
|
+
- The [Secret Intelligence Service (MI6)](https://www.sis.gov.uk).
|
|
76
|
+
- The [Government Communications Headquarters (GCHQ)](https://www.gchq.gov.uk).
|
|
77
|
+
- The [Security Service (MI5)](https://www.mi5.gov.uk).
|
|
78
|
+
|
|
79
|
+
## License
|
|
80
|
+
|
|
81
|
+
Unless stated otherwise, the codebase is released under the [MIT License](https://opensource.org/licenses/MIT). 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](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
|
|
82
|
+
|
|
83
|
+
© Crown copyright 2022
|
package/dist/core/core.css
CHANGED
|
@@ -54,4 +54,4 @@
|
|
|
54
54
|
);--ic-theme-active:rgb(
|
|
55
55
|
calc(var(--ic-theme-calc) + 65) calc(var(--ic-theme-calc) + 70)
|
|
56
56
|
calc(var(--ic-theme-calc) + 77) / 20%
|
|
57
|
-
);--ic-hyperlink:#1759bc;--ic-hyperlink-visited:#330072;--ic-hyperlink-hover:#7c2855;--ic-hyperlink-contrast:#5c98f2;--ic-hyperlink-contrast-visited:#bc75ff;--ic-hyperlink-contrast-hover:#db76ac;--ic-focus-blue:#0044d7;--ic-focus-glow:#80a1e8;--ic-breakpoint-xs:0;--ic-breakpoint-sm:576px;--ic-breakpoint-md:768px;--ic-breakpoint-lg:992px;--ic-breakpoint-xl:1200px;--ic-space-xxxs:0.125rem;--ic-space-xxs:0.25rem;--ic-space-xs:0.5rem;--ic-space-sm:0.75rem;--ic-space-md:1rem;--ic-space-lg:1.5rem;--ic-space-xl:2rem;--ic-space-xxl:3rem;--ic-z-index-overlay:1000;--ic-z-index-popup-menu:calc(var(--ic-z-index-overlay) + 1)}
|
|
57
|
+
);--ic-hyperlink:#1759bc;--ic-hyperlink-visited:#330072;--ic-hyperlink-hover:#7c2855;--ic-hyperlink-contrast:#5c98f2;--ic-hyperlink-contrast-visited:#bc75ff;--ic-hyperlink-contrast-hover:#db76ac;--ic-focus-blue:#0044d7;--ic-focus-glow:#80a1e8;--ic-hc-focus-outline:3px solid transparent;--ic-breakpoint-xs:0;--ic-breakpoint-sm:576px;--ic-breakpoint-md:768px;--ic-breakpoint-lg:992px;--ic-breakpoint-xl:1200px;--ic-space-xxxs:0.125rem;--ic-space-xxs:0.25rem;--ic-space-xs:0.5rem;--ic-space-sm:0.75rem;--ic-space-md:1rem;--ic-space-lg:1.5rem;--ic-space-xl:2rem;--ic-space-xxl:3rem;--ic-z-index-overlay:1000;--ic-z-index-popup-menu:calc(var(--ic-z-index-overlay) + 1)}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ukic/react",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "2.0.0",
|
|
4
|
+
"version": "2.1.0-beta.0",
|
|
5
5
|
"description": "React-wrapped web components compiled using StencilJS",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "npm run clean && npm run compile && npm run copy:css",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dist/"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ukic/fonts": "^2.0.0",
|
|
25
|
-
"@ukic/web-components": "^2.0.0"
|
|
24
|
+
"@ukic/fonts": "^2.1.0-beta.0",
|
|
25
|
+
"@ukic/web-components": "^2.1.0-beta.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "^7.16.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"dist"
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "49287b9feaeb8200c08c2e21243bc4b8e537f969"
|
|
64
64
|
}
|