@ukic/react 2.0.0-alpha.125 → 2.0.1
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/components.d.ts +2 -2
- package/dist/components.js +2 -2
- package/package.json +5 -5
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/components.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { JSX } from '@ukic/web-components';
|
|
|
3
3
|
export declare const IcAlert: import("react").ForwardRefExoticComponent<JSX.IcAlert & Omit<import("react").HTMLAttributes<HTMLIcAlertElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcAlertElement>>;
|
|
4
4
|
export declare const IcBackToTop: import("react").ForwardRefExoticComponent<JSX.IcBackToTop & Omit<import("react").HTMLAttributes<HTMLIcBackToTopElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcBackToTopElement>>;
|
|
5
5
|
export declare const IcBreadcrumb: import("react").ForwardRefExoticComponent<JSX.IcBreadcrumb & Omit<import("react").HTMLAttributes<HTMLIcBreadcrumbElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcBreadcrumbElement>>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const IcBreadcrumbGroup: import("react").ForwardRefExoticComponent<JSX.IcBreadcrumbGroup & Omit<import("react").HTMLAttributes<HTMLIcBreadcrumbGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcBreadcrumbGroupElement>>;
|
|
7
7
|
export declare const IcButton: import("react").ForwardRefExoticComponent<JSX.IcButton & Omit<import("react").HTMLAttributes<HTMLIcButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcButtonElement>>;
|
|
8
8
|
export declare const IcCard: import("react").ForwardRefExoticComponent<JSX.IcCard & Omit<import("react").HTMLAttributes<HTMLIcCardElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcCardElement>>;
|
|
9
9
|
export declare const IcCheckbox: import("react").ForwardRefExoticComponent<JSX.IcCheckbox & Omit<import("react").HTMLAttributes<HTMLIcCheckboxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcCheckboxElement>>;
|
|
@@ -41,7 +41,7 @@ export declare const IcStepper: import("react").ForwardRefExoticComponent<JSX.Ic
|
|
|
41
41
|
export declare const IcSwitch: import("react").ForwardRefExoticComponent<JSX.IcSwitch & Omit<import("react").HTMLAttributes<HTMLIcSwitchElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcSwitchElement>>;
|
|
42
42
|
export declare const IcTab: import("react").ForwardRefExoticComponent<JSX.IcTab & Omit<import("react").HTMLAttributes<HTMLIcTabElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcTabElement>>;
|
|
43
43
|
export declare const IcTabContext: import("react").ForwardRefExoticComponent<JSX.IcTabContext & Omit<import("react").HTMLAttributes<HTMLIcTabContextElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcTabContextElement>>;
|
|
44
|
-
export declare const
|
|
44
|
+
export declare const IcTabGroup: import("react").ForwardRefExoticComponent<JSX.IcTabGroup & Omit<import("react").HTMLAttributes<HTMLIcTabGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcTabGroupElement>>;
|
|
45
45
|
export declare const IcTabPanel: import("react").ForwardRefExoticComponent<JSX.IcTabPanel & Omit<import("react").HTMLAttributes<HTMLIcTabPanelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcTabPanelElement>>;
|
|
46
46
|
export declare const IcTextField: import("react").ForwardRefExoticComponent<JSX.IcTextField & Omit<import("react").HTMLAttributes<HTMLIcTextFieldElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcTextFieldElement>>;
|
|
47
47
|
export declare const IcTheme: import("react").ForwardRefExoticComponent<JSX.IcTheme & Omit<import("react").HTMLAttributes<HTMLIcThemeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIcThemeElement>>;
|
package/dist/components.js
CHANGED
|
@@ -7,7 +7,7 @@ defineCustomElements();
|
|
|
7
7
|
export const IcAlert = /*@__PURE__*/ createReactComponent('ic-alert');
|
|
8
8
|
export const IcBackToTop = /*@__PURE__*/ createReactComponent('ic-back-to-top');
|
|
9
9
|
export const IcBreadcrumb = /*@__PURE__*/ createReactComponent('ic-breadcrumb');
|
|
10
|
-
export const
|
|
10
|
+
export const IcBreadcrumbGroup = /*@__PURE__*/ createReactComponent('ic-breadcrumb-group');
|
|
11
11
|
export const IcButton = /*@__PURE__*/ createReactComponent('ic-button');
|
|
12
12
|
export const IcCard = /*@__PURE__*/ createReactComponent('ic-card');
|
|
13
13
|
export const IcCheckbox = /*@__PURE__*/ createReactComponent('ic-checkbox');
|
|
@@ -45,7 +45,7 @@ export const IcStepper = /*@__PURE__*/ createReactComponent('ic-stepper');
|
|
|
45
45
|
export const IcSwitch = /*@__PURE__*/ createReactComponent('ic-switch');
|
|
46
46
|
export const IcTab = /*@__PURE__*/ createReactComponent('ic-tab');
|
|
47
47
|
export const IcTabContext = /*@__PURE__*/ createReactComponent('ic-tab-context');
|
|
48
|
-
export const
|
|
48
|
+
export const IcTabGroup = /*@__PURE__*/ createReactComponent('ic-tab-group');
|
|
49
49
|
export const IcTabPanel = /*@__PURE__*/ createReactComponent('ic-tab-panel');
|
|
50
50
|
export const IcTextField = /*@__PURE__*/ createReactComponent('ic-text-field');
|
|
51
51
|
export const IcTheme = /*@__PURE__*/ createReactComponent('ic-theme');
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ukic/react",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "2.0.
|
|
5
|
-
"description": "React components compiled using
|
|
4
|
+
"version": "2.0.1",
|
|
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",
|
|
8
8
|
"clean": "rm -rf dist",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dist/"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ukic/fonts": "^2.0.
|
|
25
|
-
"@ukic/web-components": "^2.0.
|
|
24
|
+
"@ukic/fonts": "^2.0.1",
|
|
25
|
+
"@ukic/web-components": "^2.0.1"
|
|
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": "54da08aac4c570eecef01679f9dd1381c2ca3f7b"
|
|
64
64
|
}
|