@hmlr/govuk-react-components-library 1.2.1 → 1.2.3
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/.prettierignore +2 -0
- package/README.md +1 -1
- package/assets/uml-diagram.svg +4 -4
- package/dist/PDFViewerCanvas.cjs.js +13 -1980
- package/dist/PDFViewerCanvas.cjs.js.map +1 -1
- package/dist/PDFViewerCanvas.esm.js +2 -1951
- package/dist/PDFViewerCanvas.esm.js.map +1 -1
- package/dist/index.cjs.css +127 -134
- package/dist/index.cjs.js +97 -2020
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.css +127 -134
- package/dist/index.esm.js +78 -2001
- package/dist/index.esm.js.map +1 -1
- package/package.json +75 -58
- package/scripts/generateStories.mjs +19 -1
- package/bundle-analysis-main.html +0 -4949
- package/bundle-analysis-pdfvc.html +0 -4949
package/.prettierignore
ADDED
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ npm install @hmlr/govuk-react-components-library
|
|
|
22
22
|
|
|
23
23
|
## Components
|
|
24
24
|
|
|
25
|
-
You can explore the [components in chromatic](https://67da9f53fd479dc895c4293f-
|
|
25
|
+
You can explore the [components in chromatic](https://67da9f53fd479dc895c4293f-pehzidznws.chromatic.com/).
|
|
26
26
|
|
|
27
27
|
Note that any component with a `👈🏽` below means that - This component will need javascript to be enabled because of the transitions present in the components using `createAll` or `initAll` recommended by [`govuk-frontend` documentation](https://frontend.design-system.service.gov.uk/configure-components/)
|
|
28
28
|
|
package/assets/uml-diagram.svg
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
[<interface>ButtonProps|+element?: string;+href?: string;+to?: To;+isStartButton?: boolean;+disabled?: boolean;+className?: string;+preventDoubleClick?: boolean;+name?: string;+type?: string;+children?: ReactNode|]
|
|
29
29
|
[<interface>CardColumnProps|+link: string;+header: string;+body: string;+textColor?: string;+hoverColor?: string|]
|
|
30
30
|
[<interface>CardLayoutProps|+cardColumns: CardColumnProps\[\];+numberOfGridColumns?: number|]
|
|
31
|
-
[<interface>CharacterCountProps|+id
|
|
31
|
+
[<interface>CharacterCountProps|+id?: string;+className?: string;+maxlength?: number;+threshold?: number;+maxwords?: number;+errorMessage?: ErrorMessageProps;+countMessage?: { className?: string; }|]
|
|
32
32
|
[<interface>CheckboxesProps||]
|
|
33
33
|
[<interface>CookieBannerMessageAction|+className?: string;+href?: string;+to?: string;+children?: React.ReactNode;+type?: "button" \| "submit" \| "reset"|]
|
|
34
34
|
[<interface>CookieBannerMessageItem|+headingChildren?: React.ReactNode;+children?: React.ReactNode;+aria-label?: string;+actions?: CookieBannerMessageAction\[\];+className?: string|]
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
[<interface>ProblemWithServiceProps|+message?: string;+applicationName?: string;+applicationRoute?: string;+reportingLink?: string;+basePageName?: string|]
|
|
91
91
|
[<interface>RadiosProps|+value?: string;+defaultValue?: string;+items?: BooleanItem\[\]|]
|
|
92
92
|
[<interface>Option|+reactListKey?: string \| number;+children: ReactNode|]
|
|
93
|
-
[<interface>SelectProps|+className?: string;+aria-describedby?: string;+errorMessage?: ErrorMessageProps;+formGroup?: { \[key: string\]: unknown; className?: string; };+hint?: HintProps;+id
|
|
93
|
+
[<interface>SelectProps|+className?: string;+aria-describedby?: string;+errorMessage?: ErrorMessageProps;+formGroup?: { \[key: string\]: unknown; className?: string; };+hint?: HintProps;+id?: string;+items?: Option\[\];+label: LabelProps|]
|
|
94
94
|
[<interface>NavigationItem|+active?: boolean;+className?: string;+children?: ReactNode;+href?: string;+to?: To;+reactListKey?: string \| number|]
|
|
95
95
|
[<interface>ServiceNavigationProps|+className?: string;+containerClassName?: string;+menuButtonLabel?: string;+navigation?: NavigationItem\[\];+navigationClassName?: string;+navigationLabel?: string;+serviceName?: string;+serviceUrlHref?: string;+serviceUrlTo?: To|]
|
|
96
96
|
[<interface>SkipLinkProps|+href: string;+className: string;+children?: ReactNode|]
|
|
@@ -790,7 +790,7 @@
|
|
|
790
790
|
</g>
|
|
791
791
|
<g transform="translate(6614, 137)" font-family="Helvetica" font-size="12pt" font-weight="normal" font-style="normal" data-name="CharacterCountProps" data-compartment="1">
|
|
792
792
|
<g transform="translate(8, 8)" fill="#33322E" text-align="left" data-name="CharacterCountProps" data-compartment="1">
|
|
793
|
-
<text x="0.0" y="14.1" stroke="none" data-name="CharacterCountProps" data-compartment="1">+id
|
|
793
|
+
<text x="0.0" y="14.1" stroke="none" data-name="CharacterCountProps" data-compartment="1">+id?: string</text>
|
|
794
794
|
<text x="0.0" y="30.3" stroke="none" data-name="CharacterCountProps" data-compartment="1">+className?: string</text>
|
|
795
795
|
<text x="0.0" y="46.5" stroke="none" data-name="CharacterCountProps" data-compartment="1">+maxlength?: number</text>
|
|
796
796
|
<text x="0.0" y="62.7" stroke="none" data-name="CharacterCountProps" data-compartment="1">+threshold?: number</text>
|
|
@@ -2294,7 +2294,7 @@
|
|
|
2294
2294
|
<text x="0.0" y="78.9" stroke="none" data-name="SelectProps" data-compartment="1">className?: string</text>
|
|
2295
2295
|
<text x="0.0" y="95.1" stroke="none" data-name="SelectProps" data-compartment="1">}</text>
|
|
2296
2296
|
<text x="0.0" y="111.3" stroke="none" data-name="SelectProps" data-compartment="1">+hint?: HintProps</text>
|
|
2297
|
-
<text x="0.0" y="127.5" stroke="none" data-name="SelectProps" data-compartment="1">+id
|
|
2297
|
+
<text x="0.0" y="127.5" stroke="none" data-name="SelectProps" data-compartment="1">+id?: string</text>
|
|
2298
2298
|
<text x="0.0" y="143.7" stroke="none" data-name="SelectProps" data-compartment="1">+items?: Option[]</text>
|
|
2299
2299
|
<text x="0.0" y="159.9" stroke="none" data-name="SelectProps" data-compartment="1">+label: LabelProps</text>
|
|
2300
2300
|
|