@apolitical/component-library 1.13.7-beta.0 → 1.14.0
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/cards/card/card.d.ts +3 -0
- package/cards/card/card.data.d.ts +11 -0
- package/cards/card/card.helpers.d.ts +5 -0
- package/cards/card/components/details/details.d.ts +9 -0
- package/cards/card/components/details/index.d.ts +1 -0
- package/cards/card/components/index.d.ts +2 -0
- package/cards/card/components/links/index.d.ts +1 -0
- package/cards/card/components/links/links.d.ts +13 -0
- package/cards/card/index.d.ts +1 -0
- package/cards/card-block/card-block.d.ts +15 -0
- package/cards/card-block/index.d.ts +1 -0
- package/cards/cards.types.d.ts +133 -0
- package/cards/carousel/carousel.d.ts +3 -0
- package/cards/carousel/components/carousel/carousel.d.ts +8 -0
- package/cards/carousel/components/carousel/carousel.helpers.d.ts +1 -0
- package/cards/carousel/components/carousel/index.d.ts +1 -0
- package/cards/carousel/components/index.d.ts +2 -0
- package/cards/carousel/components/title/index.d.ts +1 -0
- package/cards/carousel/components/title/title.d.ts +13 -0
- package/cards/carousel/index.d.ts +1 -0
- package/cards/index.d.ts +3 -0
- package/cards/mocks/card.d.ts +235 -0
- package/cards/mocks/carousel.d.ts +58 -0
- package/cards/mocks/index.d.ts +3 -0
- package/cards/mocks/mocks.helpers.d.ts +500 -0
- package/helpers/cases.d.ts +1 -0
- package/helpers/dates.d.ts +1 -2
- package/helpers/index.d.ts +1 -0
- package/helpers/intl.d.ts +1 -0
- package/hooks/index.d.ts +1 -1
- package/hooks/{use-screen-width.d.ts → use-element-width.d.ts} +1 -1
- package/index.js +13 -13
- package/index.mjs +1299 -1172
- package/layout/content-layout/columns/columns.d.ts +1 -1
- package/loaders/loading-state/loading-state.d.ts +8 -2
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/_text.scss +41 -15
- package/styles/base/_titles.scss +22 -0
- package/styles/mixins/_containers.scss +18 -0
- package/styles/mixins/_index.scss +1 -0
- package/styles/variables/colors/_theme.scss +33 -1
- package/text/empty-state-box/empty-state-box.d.ts +1 -1
- package/text/pill/pill.d.ts +6 -4
- package/user/contributors/contributors.d.ts +7 -1
- package/user/profile-picture/profile-picture.d.ts +2 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CardType } from '../../../../cards/cards.types';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** The type of card */
|
|
4
|
+
type: string;
|
|
5
|
+
/** The card data */
|
|
6
|
+
data: CardType;
|
|
7
|
+
}
|
|
8
|
+
declare const Details: ({ type, data }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export default Details;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Details } from './details';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Links } from './links';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CardType, CardCTAType } from '../../../../cards/cards.types';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** The card data */
|
|
4
|
+
data: CardType;
|
|
5
|
+
/** An optional call to action to show on the card - this can behave differently to clicking elsewhere on the card */
|
|
6
|
+
cta?: CardCTAType;
|
|
7
|
+
/** The href to link to */
|
|
8
|
+
link?: string;
|
|
9
|
+
/** Context for the Google Tag Manager event */
|
|
10
|
+
gtmContext?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const Links: ({ data, cta, link, gtmContext }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export default Links;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Card } from './card';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CardType, CardContentType, BuildCardDataType } from '../../cards/cards.types';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** The card data, from Contentful */
|
|
4
|
+
cards: CardType[];
|
|
5
|
+
/** The types for each card, from Contentful */
|
|
6
|
+
cardTypes: CardContentType[];
|
|
7
|
+
/** A function to parse and build the card data - this is especially needed in carousels to hydrate the cards */
|
|
8
|
+
buildCardData: BuildCardDataType;
|
|
9
|
+
/** Context for the Google Tag Manager event */
|
|
10
|
+
gtmContext?: string;
|
|
11
|
+
/** Additional classes to add to the card block */
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const CardBlock: ({ cards, cardTypes, className, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default CardBlock;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CardBlock } from './card-block';
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { ResponsiveImageType } from '../general';
|
|
2
|
+
import { MemberDetailsProps } from '../user';
|
|
3
|
+
export type CardContentType = 'custom' | 'event' | 'learningHub' | 'listPage' | 'microcourse' | 'people' | 'qaQuestion' | 'solutionArticle';
|
|
4
|
+
export type CustomIconType = 'calendar' | 'cube' | 'document' | 'download' | 'globe' | 'graduationCap' | 'link' | 'person' | 'star' | 'speech';
|
|
5
|
+
export interface CardCTAType {
|
|
6
|
+
/** The text to show on the CTA button - different content types have different fallbacks */
|
|
7
|
+
text?: string;
|
|
8
|
+
/** A callback to run when the user clicks on the CTA button */
|
|
9
|
+
onClick?: (card: CardType) => Promise<string>;
|
|
10
|
+
}
|
|
11
|
+
export interface CardType {
|
|
12
|
+
/** The `sys` set-up from Contentful */
|
|
13
|
+
sys?: {
|
|
14
|
+
/** The ID of the card */
|
|
15
|
+
id?: string;
|
|
16
|
+
};
|
|
17
|
+
/** The Contentful content model type */
|
|
18
|
+
contentType?: CardContentType;
|
|
19
|
+
/** The URL the card should point to */
|
|
20
|
+
slug?: string | null;
|
|
21
|
+
/** Whether the card should open in a new tab */
|
|
22
|
+
openInNewTab?: boolean;
|
|
23
|
+
/** The image to use */
|
|
24
|
+
banner?: ResponsiveImageType;
|
|
25
|
+
/** Details of contributors, such as speakers or authors */
|
|
26
|
+
contributors?: MemberDetailsProps[];
|
|
27
|
+
/** Details of partners - this is similar to `contributors`, but won't show profile pictures */
|
|
28
|
+
partner?: {
|
|
29
|
+
title: string;
|
|
30
|
+
};
|
|
31
|
+
/** The title of the card */
|
|
32
|
+
title?: string;
|
|
33
|
+
/** The primary text */
|
|
34
|
+
text?: string;
|
|
35
|
+
/** The secondary text */
|
|
36
|
+
secondaryText?: string;
|
|
37
|
+
/** The date the card was created */
|
|
38
|
+
createdAt?: string;
|
|
39
|
+
/** Article cards */
|
|
40
|
+
/** The date the article was published */
|
|
41
|
+
publishedDate?: string;
|
|
42
|
+
/** The estimated reading time */
|
|
43
|
+
readingTime?: string;
|
|
44
|
+
/** Custom cards */
|
|
45
|
+
/** The icon to use */
|
|
46
|
+
customIcon?: CustomIconType;
|
|
47
|
+
/** The label to use */
|
|
48
|
+
customLabel?: string;
|
|
49
|
+
/** Event cards */
|
|
50
|
+
/** The date the event starts */
|
|
51
|
+
startDate?: string;
|
|
52
|
+
/** Whether the event is ongoing */
|
|
53
|
+
isOngoingEvent?: boolean;
|
|
54
|
+
/** Whether the event has passed */
|
|
55
|
+
dateHasPassed?: boolean;
|
|
56
|
+
/** The pill text to show */
|
|
57
|
+
pill?: 'premium' | 'free';
|
|
58
|
+
/** Whether the user has registered for the event/course */
|
|
59
|
+
registered?: boolean;
|
|
60
|
+
/** People cards */
|
|
61
|
+
/** The user's profile picture */
|
|
62
|
+
profile?: string;
|
|
63
|
+
/** The number of answers */
|
|
64
|
+
answers?: number;
|
|
65
|
+
}
|
|
66
|
+
export interface MockCardType extends CardType {
|
|
67
|
+
cardType?: string;
|
|
68
|
+
}
|
|
69
|
+
export type BuildCardDataType = (card: CardType | MockCardType, isLoggedIn?: boolean) => Promise<any>;
|
|
70
|
+
export interface CardProps {
|
|
71
|
+
/** A unique key for the card, used as a dependency in `useEffect` */
|
|
72
|
+
id?: string;
|
|
73
|
+
/** The card data, from Contentful */
|
|
74
|
+
card: CardType;
|
|
75
|
+
/** A function to parse and build the card data - this is especially needed in carousels to hydrate the cards */
|
|
76
|
+
buildCardData: BuildCardDataType;
|
|
77
|
+
/** An optional call to action to show on the card - this can behave differently to clicking elsewhere on the card */
|
|
78
|
+
cta?: CardCTAType;
|
|
79
|
+
/** Context for the Google Tag Manager event */
|
|
80
|
+
gtmContext?: string;
|
|
81
|
+
/** Additional classes */
|
|
82
|
+
className?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface CarouselTitleProps {
|
|
85
|
+
/** The title text */
|
|
86
|
+
text?: string;
|
|
87
|
+
/** The element for the title */
|
|
88
|
+
element?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p';
|
|
89
|
+
/** The styling of the title */
|
|
90
|
+
variant?: 'default' | 'highlighted';
|
|
91
|
+
/** The size of the title */
|
|
92
|
+
size?: 'medium' | 'large';
|
|
93
|
+
/** The `href` to point the 'view all' link to; it won't show unless this is defined */
|
|
94
|
+
link?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface BaseCarouselProps {
|
|
97
|
+
/** A function to parse and build the card data - this is especially needed in carousels to hydrate the cards */
|
|
98
|
+
buildCardData: BuildCardDataType;
|
|
99
|
+
/** An optional title to show above the carousels */
|
|
100
|
+
title?: CarouselTitleProps;
|
|
101
|
+
/** Context for the Google Tag Manager event */
|
|
102
|
+
gtmContext?: string;
|
|
103
|
+
/** Additional classes to add to the card block */
|
|
104
|
+
className?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface CarouselDataProps {
|
|
107
|
+
/** The title for the carousel */
|
|
108
|
+
title?: string;
|
|
109
|
+
/** The `href` to point the 'view all' link to; it won't show unless this is defined */
|
|
110
|
+
viewAllUrl?: string;
|
|
111
|
+
/** A non-user-facing description of the carousel */
|
|
112
|
+
internalDescription?: string;
|
|
113
|
+
/** The card data, from Contentful */
|
|
114
|
+
cards: CardType[];
|
|
115
|
+
/** The types for each card, from Contentful */
|
|
116
|
+
cardsTypes: CardContentType[];
|
|
117
|
+
/** The type of data */
|
|
118
|
+
contentType?: 'carousel';
|
|
119
|
+
}
|
|
120
|
+
export interface CarouselProps extends BaseCarouselProps {
|
|
121
|
+
/** The data for each carousel to display in the section */
|
|
122
|
+
carousels?: CarouselDataProps[];
|
|
123
|
+
/** If the content is still loading - this is controlled externally */
|
|
124
|
+
isLoading?: boolean;
|
|
125
|
+
}
|
|
126
|
+
export interface IndividualCarouselProps extends BaseCarouselProps {
|
|
127
|
+
/** The unique identifier for the carousel */
|
|
128
|
+
id?: string;
|
|
129
|
+
/** The card data, from Contentful */
|
|
130
|
+
cards: CardType[];
|
|
131
|
+
/** The types for each card, from Contentful */
|
|
132
|
+
cardTypes: CardContentType[];
|
|
133
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IndividualCarouselProps } from '../../../../cards/cards.types';
|
|
2
|
+
export declare const breakpoints: {
|
|
3
|
+
fourCards: number;
|
|
4
|
+
threeCards: number;
|
|
5
|
+
twoCards: number;
|
|
6
|
+
};
|
|
7
|
+
declare const Carousel: ({ id, cards, cardTypes, buildCardData, title, className, gtmContext, }: IndividualCarouselProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Carousel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const shouldDisplayCard: (index: number, cardsPerPage: number, page: number, loadedPages: number[]) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Carousel } from './carousel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Title } from './title';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CarouselTitleProps } from '../../../../cards/cards.types';
|
|
3
|
+
interface Props {
|
|
4
|
+
/** The unique identifier for the carousel */
|
|
5
|
+
id?: string;
|
|
6
|
+
/** The title data */
|
|
7
|
+
title?: CarouselTitleProps;
|
|
8
|
+
}
|
|
9
|
+
declare const Title: ({ id, title }: Props) => React.DetailedReactHTMLElement<{
|
|
10
|
+
className: string;
|
|
11
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
}, HTMLElement> | null;
|
|
13
|
+
export default Title;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Carousel } from './carousel';
|
package/cards/index.d.ts
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
export namespace articleOneAuthor {
|
|
2
|
+
let contentType: string;
|
|
3
|
+
namespace banner {
|
|
4
|
+
let description: string;
|
|
5
|
+
let height: number;
|
|
6
|
+
let type: string;
|
|
7
|
+
let url: string;
|
|
8
|
+
let width: number;
|
|
9
|
+
let aspect: string;
|
|
10
|
+
let query: string;
|
|
11
|
+
}
|
|
12
|
+
let contributors: {
|
|
13
|
+
name: string;
|
|
14
|
+
image: null;
|
|
15
|
+
}[];
|
|
16
|
+
let publishedDate: Date;
|
|
17
|
+
let readingTime: number;
|
|
18
|
+
let slug: string;
|
|
19
|
+
let title: string;
|
|
20
|
+
}
|
|
21
|
+
export namespace articleTwoAuthors {
|
|
22
|
+
let contributors_1: {
|
|
23
|
+
name: string;
|
|
24
|
+
image: null;
|
|
25
|
+
}[];
|
|
26
|
+
export { contributors_1 as contributors };
|
|
27
|
+
}
|
|
28
|
+
export namespace articleMultipleAuthors {
|
|
29
|
+
let contributors_2: {
|
|
30
|
+
name: string;
|
|
31
|
+
image: null;
|
|
32
|
+
}[];
|
|
33
|
+
export { contributors_2 as contributors };
|
|
34
|
+
}
|
|
35
|
+
export namespace coursePremium {
|
|
36
|
+
let contentType_1: string;
|
|
37
|
+
export { contentType_1 as contentType };
|
|
38
|
+
export namespace banner_1 {
|
|
39
|
+
let description_1: string;
|
|
40
|
+
export { description_1 as description };
|
|
41
|
+
let height_1: number;
|
|
42
|
+
export { height_1 as height };
|
|
43
|
+
let type_1: string;
|
|
44
|
+
export { type_1 as type };
|
|
45
|
+
let url_1: string;
|
|
46
|
+
export { url_1 as url };
|
|
47
|
+
let width_1: number;
|
|
48
|
+
export { width_1 as width };
|
|
49
|
+
let aspect_1: string;
|
|
50
|
+
export { aspect_1 as aspect };
|
|
51
|
+
let query_1: string;
|
|
52
|
+
export { query_1 as query };
|
|
53
|
+
}
|
|
54
|
+
export { banner_1 as banner };
|
|
55
|
+
let slug_1: string;
|
|
56
|
+
export { slug_1 as slug };
|
|
57
|
+
let title_1: string;
|
|
58
|
+
export { title_1 as title };
|
|
59
|
+
export let pill: string;
|
|
60
|
+
export let registered: boolean;
|
|
61
|
+
}
|
|
62
|
+
export namespace courseFree {
|
|
63
|
+
let pill_1: string;
|
|
64
|
+
export { pill_1 as pill };
|
|
65
|
+
}
|
|
66
|
+
export namespace coursePartner {
|
|
67
|
+
namespace partner {
|
|
68
|
+
let title_2: string;
|
|
69
|
+
export { title_2 as title };
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export namespace courseRegistered {
|
|
73
|
+
let registered_1: boolean;
|
|
74
|
+
export { registered_1 as registered };
|
|
75
|
+
}
|
|
76
|
+
export namespace eventUpcoming {
|
|
77
|
+
let contentType_2: string;
|
|
78
|
+
export { contentType_2 as contentType };
|
|
79
|
+
export namespace banner_2 {
|
|
80
|
+
let description_2: string;
|
|
81
|
+
export { description_2 as description };
|
|
82
|
+
let height_2: number;
|
|
83
|
+
export { height_2 as height };
|
|
84
|
+
let type_2: string;
|
|
85
|
+
export { type_2 as type };
|
|
86
|
+
let url_2: string;
|
|
87
|
+
export { url_2 as url };
|
|
88
|
+
let width_2: number;
|
|
89
|
+
export { width_2 as width };
|
|
90
|
+
let aspect_2: string;
|
|
91
|
+
export { aspect_2 as aspect };
|
|
92
|
+
let query_2: string;
|
|
93
|
+
export { query_2 as query };
|
|
94
|
+
}
|
|
95
|
+
export { banner_2 as banner };
|
|
96
|
+
export let dateHasPassed: boolean;
|
|
97
|
+
let title_3: string;
|
|
98
|
+
export { title_3 as title };
|
|
99
|
+
let slug_2: string;
|
|
100
|
+
export { slug_2 as slug };
|
|
101
|
+
let contributors_3: {
|
|
102
|
+
name: string;
|
|
103
|
+
image: null;
|
|
104
|
+
}[];
|
|
105
|
+
export { contributors_3 as contributors };
|
|
106
|
+
export let startDate: Date;
|
|
107
|
+
}
|
|
108
|
+
export namespace eventPast {
|
|
109
|
+
let dateHasPassed_1: boolean;
|
|
110
|
+
export { dateHasPassed_1 as dateHasPassed };
|
|
111
|
+
let startDate_1: Date;
|
|
112
|
+
export { startDate_1 as startDate };
|
|
113
|
+
}
|
|
114
|
+
export namespace eventTwoSpeakers {
|
|
115
|
+
let contributors_4: {
|
|
116
|
+
name: string;
|
|
117
|
+
image: null;
|
|
118
|
+
}[];
|
|
119
|
+
export { contributors_4 as contributors };
|
|
120
|
+
}
|
|
121
|
+
export namespace eventMultipleSpeakers {
|
|
122
|
+
let contributors_5: {
|
|
123
|
+
name: string;
|
|
124
|
+
image: null;
|
|
125
|
+
}[];
|
|
126
|
+
export { contributors_5 as contributors };
|
|
127
|
+
}
|
|
128
|
+
export namespace eventRegistered {
|
|
129
|
+
let registered_2: boolean;
|
|
130
|
+
export { registered_2 as registered };
|
|
131
|
+
}
|
|
132
|
+
export namespace list {
|
|
133
|
+
let contentType_3: string;
|
|
134
|
+
export { contentType_3 as contentType };
|
|
135
|
+
export namespace banner_3 {
|
|
136
|
+
let description_3: string;
|
|
137
|
+
export { description_3 as description };
|
|
138
|
+
let height_3: number;
|
|
139
|
+
export { height_3 as height };
|
|
140
|
+
let type_3: string;
|
|
141
|
+
export { type_3 as type };
|
|
142
|
+
let url_3: string;
|
|
143
|
+
export { url_3 as url };
|
|
144
|
+
let width_3: number;
|
|
145
|
+
export { width_3 as width };
|
|
146
|
+
let aspect_3: string;
|
|
147
|
+
export { aspect_3 as aspect };
|
|
148
|
+
let query_3: string;
|
|
149
|
+
export { query_3 as query };
|
|
150
|
+
}
|
|
151
|
+
export { banner_3 as banner };
|
|
152
|
+
let slug_3: string;
|
|
153
|
+
export { slug_3 as slug };
|
|
154
|
+
let title_4: string;
|
|
155
|
+
export { title_4 as title };
|
|
156
|
+
}
|
|
157
|
+
export namespace questionNoAnswers {
|
|
158
|
+
let contentType_4: string;
|
|
159
|
+
export { contentType_4 as contentType };
|
|
160
|
+
export let answers: number;
|
|
161
|
+
let contributors_6: {
|
|
162
|
+
id: string;
|
|
163
|
+
name: string;
|
|
164
|
+
}[];
|
|
165
|
+
export { contributors_6 as contributors };
|
|
166
|
+
let slug_4: string;
|
|
167
|
+
export { slug_4 as slug };
|
|
168
|
+
let title_5: string;
|
|
169
|
+
export { title_5 as title };
|
|
170
|
+
export let createdAt: Date;
|
|
171
|
+
}
|
|
172
|
+
export namespace questionOneAnswer {
|
|
173
|
+
let answers_1: number;
|
|
174
|
+
export { answers_1 as answers };
|
|
175
|
+
}
|
|
176
|
+
export namespace questionMultipleAnswers {
|
|
177
|
+
let answers_2: number;
|
|
178
|
+
export { answers_2 as answers };
|
|
179
|
+
}
|
|
180
|
+
export namespace questionShortQuestion {
|
|
181
|
+
let title_6: string;
|
|
182
|
+
export { title_6 as title };
|
|
183
|
+
let answers_3: number;
|
|
184
|
+
export { answers_3 as answers };
|
|
185
|
+
}
|
|
186
|
+
export namespace questionLongQuestion {
|
|
187
|
+
let title_7: string;
|
|
188
|
+
export { title_7 as title };
|
|
189
|
+
let answers_4: number;
|
|
190
|
+
export { answers_4 as answers };
|
|
191
|
+
}
|
|
192
|
+
export namespace people {
|
|
193
|
+
let contentType_5: string;
|
|
194
|
+
export { contentType_5 as contentType };
|
|
195
|
+
let title_8: string;
|
|
196
|
+
export { title_8 as title };
|
|
197
|
+
export let text: string;
|
|
198
|
+
export let secondaryText: string;
|
|
199
|
+
export let profile: string;
|
|
200
|
+
let slug_5: string;
|
|
201
|
+
export { slug_5 as slug };
|
|
202
|
+
}
|
|
203
|
+
export namespace learningHub {
|
|
204
|
+
let contentType_6: string;
|
|
205
|
+
export { contentType_6 as contentType };
|
|
206
|
+
export let label: string;
|
|
207
|
+
let title_9: string;
|
|
208
|
+
export { title_9 as title };
|
|
209
|
+
export namespace banner_4 {
|
|
210
|
+
let url_4: string;
|
|
211
|
+
export { url_4 as url };
|
|
212
|
+
}
|
|
213
|
+
export { banner_4 as banner };
|
|
214
|
+
let slug_6: string;
|
|
215
|
+
export { slug_6 as slug };
|
|
216
|
+
}
|
|
217
|
+
export namespace custom {
|
|
218
|
+
let contentType_7: string;
|
|
219
|
+
export { contentType_7 as contentType };
|
|
220
|
+
let slug_7: null;
|
|
221
|
+
export { slug_7 as slug };
|
|
222
|
+
export let customIcon: string;
|
|
223
|
+
export let customLabel: string;
|
|
224
|
+
let contributors_7: {
|
|
225
|
+
name: string;
|
|
226
|
+
image: {
|
|
227
|
+
thumbnail: string;
|
|
228
|
+
};
|
|
229
|
+
}[];
|
|
230
|
+
export { contributors_7 as contributors };
|
|
231
|
+
let text_1: string;
|
|
232
|
+
export { text_1 as text };
|
|
233
|
+
let secondaryText_1: string;
|
|
234
|
+
export { secondaryText_1 as secondaryText };
|
|
235
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export const mockCards: {
|
|
2
|
+
contentType: string;
|
|
3
|
+
cardType: string | null;
|
|
4
|
+
sys: {
|
|
5
|
+
id: string;
|
|
6
|
+
linkType: string;
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
}[];
|
|
10
|
+
export const mockCardTypes: string[];
|
|
11
|
+
export namespace mockCarousel {
|
|
12
|
+
export { buildCardDataMock as buildCardData };
|
|
13
|
+
export let isLoading: boolean;
|
|
14
|
+
export namespace title {
|
|
15
|
+
let size: string;
|
|
16
|
+
}
|
|
17
|
+
export let carousels: ({
|
|
18
|
+
cards: {
|
|
19
|
+
contentType: string;
|
|
20
|
+
cardType: string | null;
|
|
21
|
+
sys: {
|
|
22
|
+
id: string;
|
|
23
|
+
linkType: string;
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
}[];
|
|
27
|
+
cardsTypes: string[];
|
|
28
|
+
title?: undefined;
|
|
29
|
+
viewAllUrl?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
cards: {
|
|
32
|
+
contentType: string;
|
|
33
|
+
cardType: string | null;
|
|
34
|
+
sys: {
|
|
35
|
+
id: string;
|
|
36
|
+
linkType: string;
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
}[];
|
|
40
|
+
cardsTypes: string[];
|
|
41
|
+
title: string;
|
|
42
|
+
viewAllUrl: string;
|
|
43
|
+
} | {
|
|
44
|
+
cards: {
|
|
45
|
+
contentType: string;
|
|
46
|
+
cardType: string | null;
|
|
47
|
+
sys: {
|
|
48
|
+
id: string;
|
|
49
|
+
linkType: string;
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
}[];
|
|
53
|
+
cardsTypes: string[];
|
|
54
|
+
title: string;
|
|
55
|
+
viewAllUrl?: undefined;
|
|
56
|
+
})[];
|
|
57
|
+
}
|
|
58
|
+
import { buildCardDataMock } from './mocks.helpers';
|