northants-design-system 0.2.2 → 0.2.6
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/build/index.d.ts +5 -3
- package/build/index.esm.js +11892 -11835
- package/build/index.esm.js.map +1 -1
- package/build/index.js +11893 -11834
- package/build/index.js.map +1 -1
- package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.storydata.d.ts +2 -0
- package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.types.d.ts +10 -1
- package/build/library/slices/Accordion/Accordion.d.ts +2 -2
- package/build/library/slices/Image/Image.d.ts +8 -0
- package/build/library/slices/Image/Image.types.d.ts +22 -0
- package/build/library/slices/Promotions/Promotions.d.ts +7 -0
- package/build/library/structure/AlertBannerService/AlertBannerService.d.ts +2 -1
- package/build/library/structure/AlertBannerService/AlertBannerService.types.d.ts +7 -3
- package/build/library/structure/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/build/library/structure/Breadcrumbs/Breadcrumbs.types.d.ts +10 -6
- package/build/library/structure/PromoBlock/PromoBlock.storydata.d.ts +5 -0
- package/package.json +7 -7
package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.storydata.d.ts
CHANGED
|
@@ -2,8 +2,10 @@ import { SectionLinksProps } from '../../structure/SectionLinks/SectionLinks.typ
|
|
|
2
2
|
import { FooterLinkProp } from '../../structure/Footer/Footer.types';
|
|
3
3
|
import { BreadcrumbProp } from '../../structure/Breadcrumbs/Breadcrumbs.types';
|
|
4
4
|
import { ServicesLinksListProps } from '../../structure/ServicesLinksList/ServicesLinksList.types';
|
|
5
|
+
import { AlertBannerServiceProps } from '../../structure/AlertBannerService/AlertBannerService.types';
|
|
5
6
|
export declare const threeTopServicesData: ServicesLinksListProps;
|
|
6
7
|
export declare const sixTopServicesData: ServicesLinksListProps;
|
|
7
8
|
export declare const sections: SectionLinksProps[];
|
|
8
9
|
export declare const footerLinks: FooterLinkProp[];
|
|
9
10
|
export declare const breadcrumbs: BreadcrumbProp[];
|
|
11
|
+
export declare const serviceAlert: AlertBannerServiceProps;
|
|
@@ -3,6 +3,7 @@ import { FooterLinkProp } from '../../structure/Footer/Footer.types';
|
|
|
3
3
|
import { HeroImageProps } from '../../structure/HeroImage/HeroImage.types';
|
|
4
4
|
import { SectionLinksProps } from '../../structure/SectionLinks/SectionLinks.types';
|
|
5
5
|
import { ServicesLinksListProps } from '../../structure/ServicesLinksList/ServicesLinksList.types';
|
|
6
|
+
import { AlertBannerServiceProps } from '../../structure/AlertBannerService/AlertBannerService.types';
|
|
6
7
|
export interface ServiceLandingPageExampleProps {
|
|
7
8
|
/**
|
|
8
9
|
* The Service landing page title
|
|
@@ -35,9 +36,17 @@ export interface ServiceLandingPageExampleProps {
|
|
|
35
36
|
/**
|
|
36
37
|
* Summary text describing the page
|
|
37
38
|
*/
|
|
38
|
-
summary?:
|
|
39
|
+
summary?: string;
|
|
39
40
|
/**
|
|
40
41
|
* Should the summary be displayed
|
|
41
42
|
*/
|
|
42
43
|
showSummary?: Boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Optional service alert banner
|
|
46
|
+
*/
|
|
47
|
+
serviceAlert?: AlertBannerServiceProps;
|
|
48
|
+
/**
|
|
49
|
+
* Optional heading icon
|
|
50
|
+
*/
|
|
51
|
+
icon?: string;
|
|
43
52
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ImageProps } from './Image.types';
|
|
3
|
+
/**
|
|
4
|
+
* Responsive image slice component that allows 4 by 3 or 16 by 9 images
|
|
5
|
+
* with an optional caption.
|
|
6
|
+
*/
|
|
7
|
+
declare const Image: React.FunctionComponent<ImageProps>;
|
|
8
|
+
export default Image;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface ImageProps {
|
|
2
|
+
/**
|
|
3
|
+
* The large image url
|
|
4
|
+
*/
|
|
5
|
+
imageLarge: string;
|
|
6
|
+
/**
|
|
7
|
+
* The small image url
|
|
8
|
+
*/
|
|
9
|
+
imageSmall: string;
|
|
10
|
+
/**
|
|
11
|
+
* The image alt text to describe the image
|
|
12
|
+
*/
|
|
13
|
+
imageAltText?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The image ratio, either '4by3' or '16by9'
|
|
16
|
+
*/
|
|
17
|
+
ratio: string;
|
|
18
|
+
/**
|
|
19
|
+
* The optional image caption that goes under the image
|
|
20
|
+
*/
|
|
21
|
+
caption?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PromoBlockProps } from '../../structure/PromoBlock/PromoBlock.types';
|
|
3
|
+
/**
|
|
4
|
+
* Combined promotional banner and promotional block for use as a slice on any page
|
|
5
|
+
*/
|
|
6
|
+
declare const Promotions: React.FunctionComponent<PromoBlockProps>;
|
|
7
|
+
export default Promotions;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AlertBannerServiceProps } from './AlertBannerService.types';
|
|
3
3
|
/**
|
|
4
|
-
* A
|
|
4
|
+
* A banner to be displayed at the top of a page before the main content
|
|
5
|
+
* to draw the viewer's attention to an alert notice
|
|
5
6
|
*/
|
|
6
7
|
declare const AlertBannerService: React.FunctionComponent<AlertBannerServiceProps>;
|
|
7
8
|
export default AlertBannerService;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export interface AlertBannerServiceProps {
|
|
3
3
|
/**
|
|
4
|
-
* The optional title of this alert
|
|
4
|
+
* The optional title of this alert banner
|
|
5
5
|
*/
|
|
6
6
|
title?: string;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Set to true for additional margin above the alert banner
|
|
9
|
+
*/
|
|
10
|
+
hasTopSpacing?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The type of alert banner
|
|
9
13
|
*/
|
|
10
14
|
alertType?: 'alert' | 'warning' | 'positive' | 'london_bridge';
|
|
11
15
|
/**
|
|
12
|
-
* All
|
|
16
|
+
* All child content for the alert banner
|
|
13
17
|
*/
|
|
14
18
|
children: React.ReactNode;
|
|
15
19
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { BreadcrumbsProps } from
|
|
3
|
-
declare const Breadcrumbs: React.
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BreadcrumbsProps } from './Breadcrumbs.types';
|
|
3
|
+
declare const Breadcrumbs: React.FunctionComponent<BreadcrumbsProps>;
|
|
4
4
|
export default Breadcrumbs;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
export interface BreadcrumbsProps {
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
* An array of the breadcrumbs, each with a title and a URL not including the current page users are on
|
|
4
|
+
*/
|
|
5
5
|
breadcrumbsArray: Array<BreadcrumbProp>;
|
|
6
|
+
/**
|
|
7
|
+
* Should the breadcrumbs have bottom margin
|
|
8
|
+
*/
|
|
9
|
+
hasMargin?: boolean;
|
|
6
10
|
}
|
|
7
11
|
export interface BreadcrumbProp {
|
|
8
12
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
* Title of the page
|
|
14
|
+
*/
|
|
11
15
|
title: string;
|
|
12
16
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
* URL of the page
|
|
18
|
+
*/
|
|
15
19
|
url: string;
|
|
16
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "northants-design-system",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A new design system for Future Northants - North Northamptonshire & West Northamptonshire, two brand new unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
55
55
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
56
56
|
"@rollup/plugin-json": "~4.1.0",
|
|
57
|
-
"@storybook/addon-a11y": "~6.4.
|
|
58
|
-
"@storybook/addon-essentials": "~6.4.
|
|
57
|
+
"@storybook/addon-a11y": "~6.4.17",
|
|
58
|
+
"@storybook/addon-essentials": "~6.4.17",
|
|
59
59
|
"@storybook/addon-ie11": "0.0.1",
|
|
60
|
-
"@storybook/addon-links": "~6.4.
|
|
61
|
-
"@storybook/builder-webpack5": "~6.4.
|
|
62
|
-
"@storybook/manager-webpack5": "~6.4.
|
|
63
|
-
"@storybook/react": "~6.4.
|
|
60
|
+
"@storybook/addon-links": "~6.4.17",
|
|
61
|
+
"@storybook/builder-webpack5": "~6.4.17",
|
|
62
|
+
"@storybook/manager-webpack5": "~6.4.17",
|
|
63
|
+
"@storybook/react": "~6.4.17",
|
|
64
64
|
"@testing-library/jest-dom": "^5.16.1",
|
|
65
65
|
"@testing-library/react": "^10.4.9",
|
|
66
66
|
"@types/jest": "^27.4.0",
|