northants-design-system 0.2.18 → 0.2.21
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.esm.js +8750 -7044
- package/build/index.esm.js.map +1 -1
- package/build/index.js +8748 -7039
- package/build/index.js.map +1 -1
- package/build/library/components/Card/Card.d.ts +7 -0
- package/build/library/components/Card/Card.types.d.ts +35 -0
- package/build/library/pages/ServicePageExample/ServicePageExample.d.ts +3 -1
- package/build/library/slices/Cards/Cards.d.ts +7 -0
- package/build/library/slices/Cards/Cards.types.d.ts +7 -0
- package/build/library/structure/Contents/Contents.storydata.d.ts +1 -1
- package/build/library/structure/Header/Header.types.d.ts +4 -0
- package/build/library/structure/PageStructures.d.ts +3 -1
- package/package.json +10 -10
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CardProps {
|
|
3
|
+
/**
|
|
4
|
+
* Optional card header
|
|
5
|
+
*/
|
|
6
|
+
header?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The card content
|
|
9
|
+
*/
|
|
10
|
+
content: React.ReactNode;
|
|
11
|
+
/** Optional large image */
|
|
12
|
+
imageLarge?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional small image
|
|
15
|
+
*/
|
|
16
|
+
imageSmall?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional image alt text
|
|
19
|
+
*/
|
|
20
|
+
imageAltText?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* The optional footer link
|
|
23
|
+
*/
|
|
24
|
+
footerLink?: CardFooterLinkProps | null;
|
|
25
|
+
}
|
|
26
|
+
export interface CardFooterLinkProps {
|
|
27
|
+
/**
|
|
28
|
+
* The url for the link
|
|
29
|
+
*/
|
|
30
|
+
url: string;
|
|
31
|
+
/**
|
|
32
|
+
* The text for the link
|
|
33
|
+
*/
|
|
34
|
+
title: string;
|
|
35
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ContentsProps } from '../../structure/Contents/Contents.types';
|
|
2
3
|
export interface ServicePageExampleProps {
|
|
3
4
|
showServiceAlert: boolean;
|
|
5
|
+
contents?: ContentsProps;
|
|
4
6
|
}
|
|
5
|
-
export declare const ServicePageExample: React.
|
|
7
|
+
export declare const ServicePageExample: React.FunctionComponent<ServicePageExampleProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ContentLink } from './Contents.types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ContentsExampleData: ContentLink[];
|
|
@@ -7,6 +7,10 @@ export interface HeaderProps {
|
|
|
7
7
|
* Link to the root of the website that will be used on the logo
|
|
8
8
|
*/
|
|
9
9
|
homeLink?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Set to true to include a link to /news in the header
|
|
12
|
+
*/
|
|
13
|
+
hasNewsLink?: boolean;
|
|
10
14
|
/**
|
|
11
15
|
* Link to the list of all services displayed at top right (#all-services anchor added to this)
|
|
12
16
|
*/
|
|
@@ -2,6 +2,8 @@ import AccessibleLinks from './AccessibleLinks/AccessibleLinks';
|
|
|
2
2
|
import AlertBanner from './AlertBanner/AlertBanner';
|
|
3
3
|
import AlertBannerService from './AlertBannerService/AlertBannerService';
|
|
4
4
|
import Breadcrumbs from './Breadcrumbs/Breadcrumbs';
|
|
5
|
+
import Contents from './Contents/Contents';
|
|
6
|
+
import ContentsNavigation from './ContentsNavigation/ContentsNavigation';
|
|
5
7
|
import CookieBanner from './CookieBanner/CookieBanner';
|
|
6
8
|
import DisplayDate from './DisplayDate/DisplayDate';
|
|
7
9
|
import Footer from './Footer/Footer';
|
|
@@ -37,4 +39,4 @@ import ServicesLinksList from './ServicesLinksList/ServicesLinksList';
|
|
|
37
39
|
import SignpostLinks from './SignpostLinks/SignpostLinks';
|
|
38
40
|
import SkipToMainContent from './SkipToMainContent/SkipToMainContent';
|
|
39
41
|
import Summary from './Summary/Summary';
|
|
40
|
-
export { AccessibleLinks, AlertBanner, AlertBannerService, Breadcrumbs, CookieBanner, DisplayDate, Footer, FullWidthContainer, Header, HeroImage, HomeHero, HomeUnitarySection, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PhaseBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, PromoBanner, PromoBlock, Searchbar, SearchResultsList, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServiceLinksBoxed, ServicesLinksList, SignpostLinks, SkipToMainContent, Summary, };
|
|
42
|
+
export { AccessibleLinks, AlertBanner, AlertBannerService, Breadcrumbs, Contents, ContentsNavigation, CookieBanner, DisplayDate, Footer, FullWidthContainer, Header, HeroImage, HomeHero, HomeUnitarySection, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PhaseBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, PromoBanner, PromoBlock, Searchbar, SearchResultsList, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServiceLinksBoxed, ServicesLinksList, SignpostLinks, SkipToMainContent, Summary, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "northants-design-system",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Design system for West & North Northamptonshire Councils, two unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
"@babel/preset-env": "^7.16.11",
|
|
52
52
|
"@babel/preset-typescript": "^7.16.7",
|
|
53
53
|
"@etchteam/storybook-addon-status": "^4.1.0",
|
|
54
|
-
"@rollup/plugin-commonjs": "^
|
|
54
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
55
55
|
"@rollup/plugin-json": "~4.1.0",
|
|
56
56
|
"@rollup/plugin-node-resolve": "^13.1.0",
|
|
57
|
-
"@storybook/addon-a11y": "~6.
|
|
58
|
-
"@storybook/addon-essentials": "~6.
|
|
57
|
+
"@storybook/addon-a11y": "~6.5.5",
|
|
58
|
+
"@storybook/addon-essentials": "~6.5.5",
|
|
59
59
|
"@storybook/addon-ie11": "0.0.6",
|
|
60
|
-
"@storybook/addon-links": "~6.
|
|
61
|
-
"@storybook/builder-webpack5": "~6.
|
|
62
|
-
"@storybook/manager-webpack5": "~6.
|
|
63
|
-
"@storybook/react": "~6.
|
|
60
|
+
"@storybook/addon-links": "~6.5.5",
|
|
61
|
+
"@storybook/builder-webpack5": "~6.5.5",
|
|
62
|
+
"@storybook/manager-webpack5": "~6.5.5",
|
|
63
|
+
"@storybook/react": "~6.5.5",
|
|
64
64
|
"@testing-library/jest-dom": "^5.16.2",
|
|
65
65
|
"@testing-library/react": "^12.0.0",
|
|
66
66
|
"@types/jest": "^27.4.0",
|
|
@@ -87,13 +87,13 @@
|
|
|
87
87
|
"node-sass": "^7.0.1",
|
|
88
88
|
"react": "~17",
|
|
89
89
|
"react-dom": "~17",
|
|
90
|
-
"rollup": "~2.
|
|
90
|
+
"rollup": "~2.74",
|
|
91
91
|
"rollup-plugin-copy": "^3.4.0",
|
|
92
92
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
93
93
|
"rollup-plugin-postcss": "^4.0.2",
|
|
94
94
|
"rollup-plugin-svg": "^2.0.0",
|
|
95
95
|
"rollup-plugin-typescript2": "^0.31.2",
|
|
96
|
-
"sass-loader": "^
|
|
96
|
+
"sass-loader": "^13.0.0",
|
|
97
97
|
"styled-components": "^5.3.3",
|
|
98
98
|
"ts-jest": "^27",
|
|
99
99
|
"typescript": "^4.5.4",
|