northants-design-system 0.2.1 → 0.2.2

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.
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  export interface ContentPageProps {
3
3
  }
4
- export declare const ContentPage: React.FC<ContentPageProps>;
4
+ export declare const ContentPage: React.FunctionComponent<ContentPageProps>;
@@ -0,0 +1,10 @@
1
+ /** Example story data for Content Page example */
2
+ export declare const smallTable: {
3
+ caption: string;
4
+ headings: string[];
5
+ data: string[][];
6
+ };
7
+ export declare const largeTable: {
8
+ caption: string;
9
+ headings: string[];
10
+ };
@@ -32,4 +32,12 @@ export interface ServiceLandingPageExampleProps {
32
32
  * Top services to highlight below the heading or hero image
33
33
  */
34
34
  topServices?: ServicesLinksListProps;
35
+ /**
36
+ * Summary text describing the page
37
+ */
38
+ summary?: String;
39
+ /**
40
+ * Should the summary be displayed
41
+ */
42
+ showSummary?: Boolean;
35
43
  }
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { HomeHeroProps } from "./HomeHero.types";
1
+ import React from 'react';
2
+ import { HomeHeroProps } from './HomeHero.types';
3
3
  /**
4
4
  * The Hero that should appear at the top of the home page.
5
5
  */
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Example data for the HomeHero stories
3
+ */
4
+ export declare const HomeHeroCommon: {
5
+ searchSuggestions: string[];
6
+ imagesArray: {
7
+ image1440x810: string;
8
+ image144x81: string;
9
+ }[];
10
+ };
11
+ export declare const HomeHeroPromotedLinks: {
12
+ title: string;
13
+ url: string;
14
+ }[];
@@ -1,11 +1,19 @@
1
1
  export interface HomeHeroProps {
2
2
  /**
3
- * The line of text before the logo
4
- */
3
+ * The line of text before the logo
4
+ */
5
5
  topline?: string;
6
6
  /**
7
- * The line of text after the logo
7
+ * URL of an alternative logo to override the preset ones (520 x 150 px)
8
+ */
9
+ imageOverrideLogo?: string;
10
+ /**
11
+ * Alt text for overridden logo
8
12
  */
13
+ imageOverrideLogoAltText?: string;
14
+ /**
15
+ * The line of text after the logo
16
+ */
9
17
  strapline?: string;
10
18
  /**
11
19
  * The images for the hero, minimum of one
@@ -35,4 +35,5 @@ import SectionLinksSidebar from './SectionLinksSidebar/SectionLinksSidebar';
35
35
  import ServicesLinksList from './ServicesLinksList/ServicesLinksList';
36
36
  import SignpostLinks from './SignpostLinks/SignpostLinks';
37
37
  import SkipToMainContent from './SkipToMainContent/SkipToMainContent';
38
- 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, ServicesLinksList, SignpostLinks, SkipToMainContent, };
38
+ import Summary from './Summary/Summary';
39
+ 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, ServicesLinksList, SignpostLinks, SkipToMainContent, Summary, };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SummaryProps } from './Summary.types';
3
+ declare const Summary: React.FunctionComponent<SummaryProps>;
4
+ export default Summary;
@@ -0,0 +1,10 @@
1
+ export interface SummaryProps {
2
+ /**
3
+ * Should the summary have padding
4
+ */
5
+ hasPadding?: boolean;
6
+ /**
7
+ * Should the summary have a background colour
8
+ */
9
+ hasBackground?: boolean;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "northants-design-system",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
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",