@ukic/react 3.1.0 → 3.2.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 +30 -0
- package/dist/core/core.css +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -58,6 +58,36 @@ The `@ukic/react` package will need to be transformed before you can use these c
|
|
|
58
58
|
|
|
59
59
|
Add a `transformIgnorePatterns` field with the value `["/node_modules/(?!@ukic/react)"]` to your Jest config.
|
|
60
60
|
|
|
61
|
+
## Typescript
|
|
62
|
+
|
|
63
|
+
If your project is making use of Typescript, you can import the custom types used in the ICDS component library. For details on the types implemented in each component, refer to the Props table on the Code page for each Component on the [Design System Guidance site](https://design.sis.gov.uk/components/select/code)
|
|
64
|
+
|
|
65
|
+
Types can be imported from the @ukic/web-components package as per the below example.
|
|
66
|
+
|
|
67
|
+
> [!NOTE]
|
|
68
|
+
> You do not have to install this package into your project, it is already installed as a dependency of @ukic/react.
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
import { IcSelectTypes, IcMenuOption } from '@ukic/web-components';
|
|
72
|
+
|
|
73
|
+
const selectType: IcSelectTypes = "single";
|
|
74
|
+
|
|
75
|
+
const options: IcMenuOption[] = [
|
|
76
|
+
{
|
|
77
|
+
label: "Americano",
|
|
78
|
+
value: "ame",
|
|
79
|
+
description: "Classic black coffee",
|
|
80
|
+
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: "Latte",
|
|
84
|
+
value: "lat",
|
|
85
|
+
description: "This coffee has milk in, we know that much",
|
|
86
|
+
disabled: true
|
|
87
|
+
}
|
|
88
|
+
];
|
|
89
|
+
```
|
|
90
|
+
|
|
61
91
|
## Contributing
|
|
62
92
|
|
|
63
93
|
We have a couple of resources to help you with contributing.
|
package/dist/core/core.css
CHANGED
|
@@ -1777,4 +1777,4 @@ html{font-family:var(--ic-font-body-family);color:var(--ic-color-text-primary)}a
|
|
|
1777
1777
|
inset 0 0 0 8px var(--ic-architectural-black);--ic-border-hc:var(--ic-space-1px) solid transparent;--ic-border-keyline-darken:1px solid var(--ic-color-keyline-darken);--ic-border-keyline-lighten:1px solid var(--ic-color-keyline-lighten)}:root{--ic-elevation-raised:0 0 2px rgb(0 0 0 / 50%);--ic-elevation-overlay:0 2px 8px rgb(0 0 0 / 20%);--ic-elevation-modal:0 4px 16px rgb(0 0 0 / 25%);--ic-elevation-inset:inset 0 4px 16px rgb(0 0 0 / 25%),
|
|
1778
1778
|
inset 0 -4px 16px rgb(0 0 0 / 25%);--ic-easing-transition-fast:var(--ic-transition-duration-fast)
|
|
1779
1779
|
cubic-bezier(0.165, 0.84, 0.44, 1);--ic-easing-transition-slow:var(--ic-transition-duration-slow)
|
|
1780
|
-
cubic-bezier(0.165, 0.84, 0.44, 1);--ic-transition-duration-fast:100ms;--ic-transition-duration-slow:300ms;--ic-breakpoint-xs:0;--ic-breakpoint-sm:576px;--ic-breakpoint-md:768px;--ic-breakpoint-lg:992px;--ic-breakpoint-xl:1200px;--ic-space-1px:0.063rem;--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-base-value:0;--ic-z-index-page-header:calc(var(--ic-z-index-base-value) + 10);--ic-z-index-back-to-top:calc(var(--ic-z-index-base-value) + 20);--ic-z-index-skip-link:calc(var(--ic-z-index-base-value) + 20);--ic-z-index-popover:calc(var(--ic-z-index-base-value) + 50);--ic-z-index-sticky-page-header:calc(var(--ic-z-index-base-value) + 60);--ic-z-index-date-picker:calc(var(--ic-z-index-base-value) + 70);--ic-z-index-navigation-item:calc(var(--ic-z-index-base-value) + 70);--ic-z-index-navigation-menu:calc(var(--ic-z-index-base-value) + 70);--ic-z-index-menu:calc(var(--ic-z-index-base-value) + 70);--ic-z-index-side-navigation:calc(var(--ic-z-index-base-value) + 70);--ic-z-index-dialog:calc(var(--ic-z-index-base-value) + 100);--ic-z-index-toast:calc(var(--ic-z-index-base-value) + 110);--ic-z-index-tooltip:calc(var(--ic-z-index-base-value) + 110);--ic-z-index-classification-banner:calc(var(--ic-z-index-base-value) + 200)}
|
|
1780
|
+
cubic-bezier(0.165, 0.84, 0.44, 1);--ic-transition-duration-fast:100ms;--ic-transition-duration-slow:300ms;--ic-breakpoint-xs:0;--ic-breakpoint-sm:576px;--ic-breakpoint-md:768px;--ic-breakpoint-lg:992px;--ic-breakpoint-xl:1200px;--ic-space-1px:0.063rem;--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-base-value:0;--ic-z-index-page-header:calc(var(--ic-z-index-base-value) + 10);--ic-z-index-back-to-top:calc(var(--ic-z-index-base-value) + 20);--ic-z-index-skip-link:calc(var(--ic-z-index-base-value) + 20);--ic-z-index-popover:calc(var(--ic-z-index-base-value) + 50);--ic-z-index-sticky-page-header:calc(var(--ic-z-index-base-value) + 60);--ic-z-index-date-picker:calc(var(--ic-z-index-base-value) + 70);--ic-z-index-navigation-item:calc(var(--ic-z-index-base-value) + 70);--ic-z-index-navigation-menu:calc(var(--ic-z-index-base-value) + 70);--ic-z-index-menu:calc(var(--ic-z-index-base-value) + 70);--ic-z-index-side-navigation:calc(var(--ic-z-index-base-value) + 70);--ic-z-index-dialog:calc(var(--ic-z-index-base-value) + 100);--ic-z-index-toast:calc(var(--ic-z-index-base-value) + 110);--ic-z-index-tooltip:calc(var(--ic-z-index-base-value) + 110);--ic-z-index-classification-banner:calc(var(--ic-z-index-base-value) + 200)}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sideEffects": [
|
|
4
4
|
"*.css"
|
|
5
5
|
],
|
|
6
|
-
"version": "3.
|
|
6
|
+
"version": "3.2.0",
|
|
7
7
|
"description": "React-wrapped web components compiled using StencilJS",
|
|
8
8
|
"author": "mi6",
|
|
9
9
|
"bugs": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dist/"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@ukic/web-components": "^3.
|
|
49
|
+
"@ukic/web-components": "^3.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@ag-grid-community/styles": "^33.0.3",
|
|
@@ -108,11 +108,11 @@
|
|
|
108
108
|
"webpack-dev-server": "^4.15.2"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
|
-
"@ukic/fonts": "^
|
|
111
|
+
"@ukic/fonts": "^3.1.0",
|
|
112
112
|
"react": "^16.7.0 || ^17.0.2 || ^18.2.0 || ^19.0.0",
|
|
113
113
|
"react-dom": "^16.7.0 || ^17.0.2 || ^18.2.0 || ^19.0.0"
|
|
114
114
|
},
|
|
115
115
|
"license": "MIT",
|
|
116
116
|
"packageManager": "^npm@10.9.2",
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "e084fa80621797c35c5a59446ea6a3e97486a552"
|
|
118
118
|
}
|