@financial-times/dotcom-ui-footer 7.3.0 → 7.3.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.
- package/dist/node/components/partials.d.ts +25 -0
- package/dist/node/index.d.ts +10 -0
- package/dist/tsconfig.tsbuildinfo +2002 -0
- package/package.json +11 -5
- package/src/__stories__/footer.ts +227 -0
- package/src/__stories__/story-data.ts +22 -0
- package/src/__stories__/story.tsx +45 -0
- package/src/__test__/component.spec.tsx +61 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TNavMenuItem } from '@financial-times/dotcom-types-navigation';
|
|
3
|
+
declare type TSectionLinksProps = {
|
|
4
|
+
index: number;
|
|
5
|
+
submenu: TNavMenuItem[][];
|
|
6
|
+
};
|
|
7
|
+
declare const SectionLinks: ({ submenu, index }: TSectionLinksProps) => JSX.Element;
|
|
8
|
+
declare type TSectionTitleProps = {
|
|
9
|
+
index: number;
|
|
10
|
+
label: string;
|
|
11
|
+
};
|
|
12
|
+
declare const SectionTitle: ({ label, index }: TSectionTitleProps) => JSX.Element;
|
|
13
|
+
declare type TFooterContentsProps = {
|
|
14
|
+
footerData: TNavMenuItem[];
|
|
15
|
+
};
|
|
16
|
+
declare const FooterContents: ({ footerData }: TFooterContentsProps) => JSX.Element;
|
|
17
|
+
declare const CopyrightNotice: ({ withoutMarketsData }: {
|
|
18
|
+
withoutMarketsData?: boolean;
|
|
19
|
+
}) => JSX.Element;
|
|
20
|
+
declare type TCompressedLegalProps = {
|
|
21
|
+
footerData: TNavMenuItem[];
|
|
22
|
+
};
|
|
23
|
+
declare const CompressedLegal: ({ footerData }: TCompressedLegalProps) => JSX.Element;
|
|
24
|
+
declare const NikkeiBrandLogo: () => JSX.Element;
|
|
25
|
+
export { SectionLinks, SectionTitle, FooterContents, CompressedLegal, CopyrightNotice, NikkeiBrandLogo };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TNavigationData } from '@financial-times/dotcom-types-navigation';
|
|
3
|
+
export declare type TFooterOptions = {
|
|
4
|
+
theme?: 'dark' | 'light' | string;
|
|
5
|
+
};
|
|
6
|
+
export declare type TFooterProps = TFooterOptions & {
|
|
7
|
+
data: TNavigationData;
|
|
8
|
+
};
|
|
9
|
+
export declare function Footer(props: TFooterProps): JSX.Element;
|
|
10
|
+
export declare function LegalFooter(props: TFooterProps): JSX.Element;
|