@ilo-org/react 0.11.0 → 0.13.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.
Files changed (162) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/lib/cjs/components/Cards/CardGroup/CardGroup.js +42 -0
  3. package/lib/cjs/components/Cards/CardGroup/index.js +759 -0
  4. package/lib/cjs/components/Cards/DataCard/DataCard.js +27 -0
  5. package/lib/cjs/components/Cards/DataCard/index.js +81 -0
  6. package/lib/cjs/components/Cards/DetailCard/DetailCard.js +20 -0
  7. package/lib/cjs/components/Cards/DetailCard/index.js +25 -0
  8. package/lib/cjs/components/Cards/FactlistCard/FactListCard.js +23 -0
  9. package/lib/cjs/components/Cards/FactlistCard/index.js +25 -0
  10. package/lib/cjs/components/Cards/FeatureCard/FeatureCard.js +24 -0
  11. package/lib/cjs/components/Cards/FeatureCard/index.js +39 -0
  12. package/lib/cjs/components/Cards/MultilinkCard/MultiLinkCard.js +24 -0
  13. package/lib/cjs/components/Cards/MultilinkCard/index.js +43 -0
  14. package/lib/cjs/components/Cards/PromoCard/PromoCard.js +23 -0
  15. package/lib/cjs/components/Cards/PromoCard/index.js +26 -0
  16. package/lib/cjs/components/Cards/StatCard/StatCard.js +21 -0
  17. package/lib/cjs/components/Cards/StatCard/index.js +23 -0
  18. package/lib/cjs/components/Cards/TextCard/TextCard.js +23 -0
  19. package/lib/cjs/components/Cards/TextCard/index.js +30 -0
  20. package/lib/cjs/components/Footer/Footer.js +1 -1
  21. package/lib/cjs/components/LinkList/LinkList.js +1 -1
  22. package/lib/cjs/components/Navigation/Navigation.js +3 -3
  23. package/lib/cjs/components/Pagination/Pagination.js +1 -1
  24. package/lib/cjs/components/index.js +10 -4
  25. package/lib/cjs/index.js +10 -4
  26. package/lib/esm/components/Cards/CardGroup/CardGroup.js +40 -0
  27. package/lib/esm/components/Cards/CardGroup/index.js +756 -0
  28. package/lib/esm/components/Cards/DataCard/DataCard.js +25 -0
  29. package/lib/esm/components/Cards/DataCard/index.js +78 -0
  30. package/lib/esm/components/Cards/DetailCard/DetailCard.js +18 -0
  31. package/lib/esm/components/Cards/DetailCard/index.js +22 -0
  32. package/lib/esm/components/Cards/FactlistCard/FactListCard.js +21 -0
  33. package/lib/esm/components/Cards/FactlistCard/index.js +22 -0
  34. package/lib/esm/components/Cards/FeatureCard/FeatureCard.js +22 -0
  35. package/lib/esm/components/Cards/FeatureCard/index.js +36 -0
  36. package/lib/esm/components/Cards/MultilinkCard/MultiLinkCard.js +22 -0
  37. package/lib/esm/components/Cards/MultilinkCard/index.js +40 -0
  38. package/lib/esm/components/Cards/PromoCard/PromoCard.js +21 -0
  39. package/lib/esm/components/Cards/PromoCard/index.js +23 -0
  40. package/lib/esm/components/Cards/StatCard/StatCard.js +19 -0
  41. package/lib/esm/components/Cards/StatCard/index.js +20 -0
  42. package/lib/esm/components/Cards/TextCard/TextCard.js +21 -0
  43. package/lib/esm/components/Cards/TextCard/index.js +27 -0
  44. package/lib/esm/components/Footer/Footer.js +1 -1
  45. package/lib/esm/components/LinkList/LinkList.js +1 -1
  46. package/lib/esm/components/Navigation/Navigation.js +3 -3
  47. package/lib/esm/components/Pagination/Pagination.js +1 -1
  48. package/lib/esm/components/index.js +9 -2
  49. package/lib/esm/index.js +9 -2
  50. package/lib/types/react/src/components/Cards/CardGroup/CardGroup.args.d.ts +13 -0
  51. package/lib/types/react/src/components/Cards/CardGroup/CardGroup.props.d.ts +58 -0
  52. package/lib/types/react/src/components/Cards/CardGroup/index.d.ts +3 -0
  53. package/lib/types/react/src/components/Cards/DataCard/DataCard.args.d.ts +2 -0
  54. package/lib/types/react/src/components/Cards/DataCard/DataCard.d.ts +4 -0
  55. package/lib/types/react/src/components/Cards/DataCard/DataCard.props.d.ts +50 -0
  56. package/lib/types/react/src/components/Cards/DataCard/index.d.ts +3 -0
  57. package/lib/types/react/src/components/Cards/DetailCard/DetailCard.args.d.ts +3 -0
  58. package/lib/types/react/src/components/Cards/DetailCard/DetailCard.d.ts +4 -0
  59. package/lib/types/react/src/components/Cards/DetailCard/DetailCard.props.d.ts +35 -0
  60. package/lib/types/react/src/components/Cards/DetailCard/index.d.ts +3 -0
  61. package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.args.d.ts +3 -0
  62. package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.d.ts +4 -0
  63. package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.props.d.ts +16 -0
  64. package/lib/types/react/src/components/Cards/FactlistCard/index.d.ts +3 -0
  65. package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.args.d.ts +3 -0
  66. package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.d.ts +4 -0
  67. package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.props.d.ts +31 -0
  68. package/lib/types/react/src/components/Cards/FeatureCard/index.d.ts +3 -0
  69. package/lib/types/react/src/components/Cards/MultilinkCard/MultiLinkCard.d.ts +4 -0
  70. package/lib/types/react/src/components/Cards/MultilinkCard/MultilinkCard.args.d.ts +2 -0
  71. package/lib/types/react/src/components/Cards/MultilinkCard/MultilinkCard.props.d.ts +25 -0
  72. package/lib/types/react/src/components/Cards/MultilinkCard/index.d.ts +3 -0
  73. package/lib/types/react/src/components/Cards/PromoCard/PromoCard.args.d.ts +3 -0
  74. package/lib/types/react/src/components/Cards/PromoCard/PromoCard.d.ts +4 -0
  75. package/lib/types/react/src/components/Cards/PromoCard/PromoCard.props.d.ts +30 -0
  76. package/lib/types/react/src/components/Cards/PromoCard/index.d.ts +3 -0
  77. package/lib/types/react/src/components/Cards/StatCard/StatCard.args.d.ts +3 -0
  78. package/lib/types/react/src/components/Cards/StatCard/StatCard.d.ts +4 -0
  79. package/lib/types/react/src/components/Cards/StatCard/StatCard.props.d.ts +18 -0
  80. package/lib/types/react/src/components/Cards/StatCard/index.d.ts +3 -0
  81. package/lib/types/react/src/components/Cards/TextCard/TextCard.args.d.ts +3 -0
  82. package/lib/types/react/src/components/Cards/TextCard/TextCard.d.ts +4 -0
  83. package/lib/types/react/src/components/Cards/TextCard/TextCard.props.d.ts +26 -0
  84. package/lib/types/react/src/components/Cards/TextCard/index.d.ts +3 -0
  85. package/lib/types/react/src/components/index.d.ts +1 -1
  86. package/lib/types/react/src/types/index.d.ts +7 -3
  87. package/package.json +2 -2
  88. package/src/components/{Card → Cards/CardGroup}/CardGroup.args.ts +199 -376
  89. package/src/components/Cards/CardGroup/CardGroup.props.ts +78 -0
  90. package/src/components/Cards/CardGroup/CardGroup.tsx +54 -0
  91. package/src/components/Cards/CardGroup/index.tsx +3 -0
  92. package/src/components/Cards/DataCard/DataCard.args.ts +69 -0
  93. package/src/components/Cards/DataCard/DataCard.props.ts +60 -0
  94. package/src/components/Cards/DataCard/DataCard.tsx +107 -0
  95. package/src/components/Cards/DataCard/index.tsx +3 -0
  96. package/src/components/Cards/DetailCard/DetailCard.args.ts +17 -0
  97. package/src/components/Cards/DetailCard/DetailCard.props.ts +43 -0
  98. package/src/components/Cards/DetailCard/DetailCard.tsx +62 -0
  99. package/src/components/Cards/DetailCard/index.tsx +3 -0
  100. package/src/components/Cards/FactlistCard/FactListCard.args.ts +14 -0
  101. package/src/components/Cards/FactlistCard/FactListCard.props.ts +19 -0
  102. package/src/components/Cards/FactlistCard/FactListCard.tsx +42 -0
  103. package/src/components/Cards/FactlistCard/index.tsx +3 -0
  104. package/src/components/Cards/FeatureCard/FeatureCard.args.ts +30 -0
  105. package/src/components/Cards/FeatureCard/FeatureCard.props.ts +38 -0
  106. package/src/components/Cards/FeatureCard/FeatureCard.tsx +69 -0
  107. package/src/components/Cards/FeatureCard/index.tsx +3 -0
  108. package/src/components/Cards/MultilinkCard/MultiLinkCard.tsx +76 -0
  109. package/src/components/Cards/MultilinkCard/MultilinkCard.args.ts +33 -0
  110. package/src/components/Cards/MultilinkCard/MultilinkCard.props.ts +30 -0
  111. package/src/components/Cards/MultilinkCard/index.tsx +3 -0
  112. package/src/components/Cards/PromoCard/PromoCard.args.ts +19 -0
  113. package/src/components/Cards/PromoCard/PromoCard.props.ts +36 -0
  114. package/src/components/Cards/PromoCard/PromoCard.tsx +60 -0
  115. package/src/components/Cards/PromoCard/index.tsx +3 -0
  116. package/src/components/Cards/StatCard/StatCard.args.ts +14 -0
  117. package/src/components/Cards/StatCard/StatCard.props.ts +21 -0
  118. package/src/components/Cards/StatCard/StatCard.tsx +36 -0
  119. package/src/components/Cards/StatCard/index.tsx +3 -0
  120. package/src/components/Cards/TextCard/TextCard.args.ts +21 -0
  121. package/src/components/Cards/TextCard/TextCard.props.ts +32 -0
  122. package/src/components/Cards/TextCard/TextCard.tsx +62 -0
  123. package/src/components/Cards/TextCard/index.tsx +3 -0
  124. package/src/components/Footer/Footer.args.ts +4 -16
  125. package/src/components/Footer/Footer.tsx +41 -37
  126. package/src/components/LinkList/LinkList.tsx +1 -1
  127. package/src/components/Navigation/Navigation.tsx +5 -5
  128. package/src/components/Pagination/Pagination.tsx +2 -1
  129. package/src/components/index.ts +1 -1
  130. package/src/types/index.ts +10 -4
  131. package/lib/cjs/components/Card/Card.js +0 -43
  132. package/lib/cjs/components/Card/CardGroup.js +0 -25
  133. package/lib/cjs/components/Card/index.js +0 -21
  134. package/lib/esm/components/Card/Card.js +0 -41
  135. package/lib/esm/components/Card/CardGroup.js +0 -23
  136. package/lib/esm/components/Card/index.js +0 -14
  137. package/lib/types/react/src/components/Card/Card.d.ts +0 -4
  138. package/lib/types/react/src/components/Card/Card.props.d.ts +0 -110
  139. package/lib/types/react/src/components/Card/CardGroup.props.d.ts +0 -16
  140. package/lib/types/react/src/components/Card/index.d.ts +0 -2
  141. package/public/fao-logo.svg +0 -195
  142. package/public/favicon.ico +0 -0
  143. package/public/hero.jpg +0 -0
  144. package/public/ilo-dg.jpg +0 -0
  145. package/public/ilo-headquarters.jpg +0 -0
  146. package/public/large.jpg +0 -0
  147. package/public/media-file-poster.jpg +0 -0
  148. package/public/medium.jpg +0 -0
  149. package/public/small.jpg +0 -0
  150. package/public/unhcr-logo.svg +0 -1
  151. package/public/unicef-logo.png +0 -0
  152. package/public/video-example.mp4 +0 -0
  153. package/public/wfp-logo.svg +0 -1
  154. package/public/who-logo.svg +0 -1
  155. package/public/youtube-video-poster.avif +0 -0
  156. package/src/components/Card/Card.args.ts +0 -215
  157. package/src/components/Card/Card.props.ts +0 -142
  158. package/src/components/Card/Card.tsx +0 -183
  159. package/src/components/Card/CardGroup.props.ts +0 -19
  160. package/src/components/Card/CardGroup.tsx +0 -55
  161. package/src/components/Card/index.ts +0 -2
  162. /package/lib/types/react/src/components/{Card → Cards/CardGroup}/CardGroup.d.ts +0 -0
@@ -1,142 +0,0 @@
1
- import {
2
- CardAlignment,
3
- ThemeTypes,
4
- CardCornerType,
5
- CardColor,
6
- CardSize,
7
- CardTypes,
8
- } from "../../types";
9
- import { LinkProps, LinkListProps } from "../LinkList/LinkList.props";
10
- import { ProfileProps } from "../Profile/Profile.props";
11
-
12
- export interface CardProps {
13
- /**
14
- * Specify whether the card should display a video icon (for Feature card). Possible options: true | false
15
- */
16
- isvideo?: boolean;
17
-
18
- /**
19
- * Eyebrow field for the card.
20
- */
21
- eyebrow: Required<string>;
22
-
23
- /**
24
- * Title field for the card
25
- */
26
- title: Required<string>;
27
-
28
- /**
29
- * Color of the stat cards, options are turquoise | green| yellow| blue. Only used for stat cards.
30
- */
31
- color?: CardColor;
32
-
33
- /**
34
- * The theme type for the card. Theme doesn't apply to these card types: Multilink, Data, Stat and Detail. Possible themes: light | dark.
35
- */
36
- theme?: ThemeTypes;
37
-
38
- /**
39
- * Different variations of card: Graphic | Stat | Graphic Promo | Multilink | Feature | Detail | Fact List | Data.
40
- */
41
- variant: Required<CardTypes>;
42
-
43
- /**
44
- * Size of the cards (usually reduces padding). `Wide` on Multilink and Feature cause a two column structure above a desktop breakpoint. Possible options: Wide | Standard | Narrow.
45
- */
46
- size?: CardSize;
47
-
48
- /**
49
- * Specify whether the card has a cut corner. The only cards that use this setting are `Graphic Promo` and `Factlist`. Possible options: cornercut | corner.
50
- */
51
- cornercut?: CardCornerType;
52
-
53
- /**
54
- * Specify whether a card image is right-aligned or left-aligned for `Multilink` cards. Possible options: left | right.
55
- */
56
- alignment?: CardAlignment;
57
-
58
- /**
59
- * Intro text field for the card
60
- */
61
- intro?: string;
62
-
63
- /**
64
- * Specify the event Date, in both human and Unix format.
65
- */
66
- date?: EventDate;
67
-
68
- /**
69
- * Event details for `Detail` card
70
- */
71
- eventdetails?: string;
72
-
73
- /**
74
- * Profile to embed in the card for `Graphic Text`
75
- */
76
- profile?: ProfileProps;
77
-
78
- /**
79
- * A list of text itmes to be embed in the card, specifically used in `Factlist` card.
80
- */
81
- listitems?: Array<string>;
82
-
83
- /**
84
- * A Link behind a clickable card. Do no use on `Multilink`, `Factlist`, `Data`, or `Stat` cards.
85
- */
86
- link?: string;
87
-
88
- /**
89
- * Props of the LinkList component. Appears at the bottom of `Multilink` or `Feature` card.
90
- */
91
- linklist?: LinkListProps;
92
-
93
- /**
94
- * Items for clickable CTA button, specifically used for `Graphic Promo` card.
95
- */
96
- cta?: LinkProps;
97
-
98
- /**
99
- * The image used in a card. Images should be avoided on `Graphic Promo`, `Graphic Text`, `Factlist`, and `Stat` card.
100
- */
101
- image?: string;
102
-
103
- /**
104
- * Source link for `Stat` cards.
105
- */
106
- source?: LinkProps;
107
-
108
- /**
109
- * Dataset object for the `Data` card. An array of Content (label, copy), Files (optional headline, array of items with label and url), and Links (optional headline, array of items with label and url).
110
- */
111
- dataset?: CardDataset;
112
- }
113
-
114
- interface EventDate {
115
- unix?: string;
116
- human?: string;
117
- }
118
-
119
- interface CardDataset {
120
- content?: DataContent;
121
- files?: DataFile;
122
- links?: DataLink;
123
- }
124
-
125
- interface DataContent {
126
- items?: Array<ContentItem>;
127
- }
128
-
129
- interface ContentItem {
130
- label?: string;
131
- copy?: string;
132
- }
133
-
134
- interface DataFile {
135
- headline?: string;
136
- items?: Array<LinkProps>;
137
- }
138
-
139
- interface DataLink {
140
- headline?: string;
141
- items?: Array<LinkProps>;
142
- }
@@ -1,183 +0,0 @@
1
- import { FC } from "react";
2
- import classnames from "classnames";
3
- import useGlobalSettings from "../../hooks/useGlobalSettings";
4
- import { CardProps } from "./Card.props";
5
- import { Link } from "../Link";
6
- import { List, ListItem } from "../List";
7
- import { LinkList } from "../LinkList";
8
- import { Profile } from "../Profile";
9
-
10
- const Card: FC<CardProps> = ({
11
- isvideo,
12
- eyebrow,
13
- title,
14
- color,
15
- theme,
16
- variant,
17
- size,
18
- cornercut,
19
- alignment,
20
- intro,
21
- date,
22
- eventdetails,
23
- profile,
24
- listitems,
25
- link,
26
- linklist,
27
- cta,
28
- image,
29
- source,
30
- dataset,
31
- }) => {
32
- const { prefix } = useGlobalSettings();
33
-
34
- const baseClass = `${prefix}--card`;
35
- const cardClasses = classnames(
36
- baseClass,
37
- `${baseClass}--${variant}`,
38
- `${baseClass}--${color}`,
39
- {
40
- [`${baseClass}--${cornercut}`]: cornercut,
41
- [`${baseClass}--${alignment}`]: alignment,
42
- [`${baseClass}--action`]: link,
43
- [`${baseClass}--${size}`]: size,
44
- [`${baseClass}--isvideo`]: isvideo,
45
- [`${baseClass}--linklist`]: linklist,
46
- [`${baseClass}--${theme}`]: theme,
47
- }
48
- );
49
-
50
- return (
51
- <div className={cardClasses}>
52
- {link &&
53
- variant != "data" &&
54
- variant != "factlist" &&
55
- variant != "stat" && (
56
- <a className={`${baseClass}--link`} href={link} title={title}>
57
- <span className={`${baseClass}--link--text`}>{title}</span>
58
- </a>
59
- )}
60
- <div className={`${baseClass}--wrap`}>
61
- {image && (
62
- <div className={`${baseClass}--image--wrapper`}>
63
- <picture>
64
- <img className={`${baseClass}--image`} src={image} alt={title} />
65
- </picture>
66
- </div>
67
- )}
68
- <div className={`${baseClass}--content`}>
69
- {eyebrow && <p className={`${baseClass}--eyebrow`}>{eyebrow}</p>}
70
- {title && <h3 className={`${baseClass}--title`}>{title}</h3>}
71
- {(variant == "multilink" || (variant == "data" && image)) && (
72
- <div className={`${baseClass}--image--wrapper`}>
73
- <picture>
74
- <img
75
- className={`${baseClass}--image`}
76
- src={image}
77
- alt={title}
78
- />
79
- </picture>
80
- </div>
81
- )}
82
- {intro && <p className={`${baseClass}--intro`}>{intro}</p>}
83
- {date &&
84
- variant != "stat" &&
85
- variant != "data" &&
86
- variant != "graphicpromo" &&
87
- variant != "factlist" && (
88
- <time className={`${baseClass}--date`} dateTime={date.unix}>
89
- {date.human}
90
- </time>
91
- )}
92
- {eventdetails && (
93
- <p className={`${baseClass}--event-date`}>{eventdetails}</p>
94
- )}
95
- {profile && profile.avatar && (
96
- <Profile
97
- avatar={profile.avatar}
98
- description={profile.description}
99
- link={profile.link}
100
- name={profile.name}
101
- role={profile.role}
102
- className={`${prefix}--profile--contents--${theme}`}
103
- />
104
- )}
105
- {listitems && (
106
- <List alignment="default" ordered="unordered">
107
- {listitems.map((item, index) => (
108
- <ListItem id={`list${index}`}>
109
- <p>{item}</p>
110
- </ListItem>
111
- ))}
112
- </List>
113
- )}
114
- {cta && cta.label && (
115
- <a
116
- className={`${baseClass}--cta ${prefix}--button ${prefix}--button--medium ${prefix}--button--primary`}
117
- href={cta.url}
118
- >
119
- <span className="link__label">{cta.label}</span>
120
- </a>
121
- )}
122
- {source && (
123
- <Link theme={theme} url={source.url}>
124
- {source.label}
125
- </Link>
126
- )}
127
- {linklist && (
128
- <LinkList
129
- headline={linklist.headline}
130
- linkgroup={linklist.linkgroup}
131
- />
132
- )}
133
- {dataset &&
134
- dataset.content &&
135
- dataset.content.items &&
136
- dataset.content.items.map((item) => (
137
- <>
138
- <p className={`${baseClass}--data--content-label`}>
139
- {item.label}
140
- </p>
141
- <p className={`${baseClass}--data--content-copy`}>
142
- {item.copy}
143
- </p>
144
- </>
145
- ))}
146
- {dataset && dataset.files && (
147
- <div className={`${baseClass}--data--content-files`}>
148
- <p className={`${baseClass}--data--content-label`}>
149
- {dataset.files.headline}
150
- </p>
151
- {dataset.files.items &&
152
- dataset.files.items.map((item) => (
153
- <a
154
- className={`${baseClass}--data--file ${prefix}--button ${prefix}--button--primary ${prefix}--button--small`}
155
- href={item.url}
156
- download
157
- >
158
- <span className="button__label">{item.label}</span>
159
- </a>
160
- ))}
161
- </div>
162
- )}
163
- {dataset && dataset.links && (
164
- <div className={`${baseClass}--data--content-links`}>
165
- <p className={`${baseClass}--data--content-label`}>
166
- {dataset.links.headline}
167
- </p>
168
- {dataset.links.items &&
169
- dataset.links.items.map((item) => (
170
- <>
171
- <Link url={item.url}>{item.label}</Link>
172
- <span>&nbsp;&nbsp;</span>
173
- </>
174
- ))}
175
- </div>
176
- )}
177
- </div>
178
- </div>
179
- </div>
180
- );
181
- };
182
-
183
- export default Card;
@@ -1,19 +0,0 @@
1
- import { CardProps } from "../Card/Card.props";
2
- import { LinkProps } from "../LinkList/LinkList.props";
3
-
4
- export interface CardGroupProps {
5
- /**
6
- * An array of card objects
7
- */
8
- cards?: Required<CardProps>[];
9
-
10
- /**
11
- * Number of cards in the group
12
- */
13
- cardcount: Required<string>;
14
-
15
- /**
16
- * A Button to display after all the cards in the group
17
- */
18
- cta?: LinkProps;
19
- }
@@ -1,55 +0,0 @@
1
- import { FC } from "react";
2
- import classnames from "classnames";
3
- import useGlobalSettings from "../../hooks/useGlobalSettings";
4
- import { CardGroupProps } from "./CardGroup.props";
5
- import { Card } from "../Card";
6
-
7
- const CardGroup: FC<CardGroupProps> = ({ cards, cardcount, cta }) => {
8
- const { prefix } = useGlobalSettings();
9
-
10
- const baseClass = `${prefix}--cardgroup`;
11
- const cardGroupClasses = classnames(baseClass, `${baseClass}--${cardcount}`);
12
-
13
- return (
14
- <div className={cardGroupClasses}>
15
- <div className={`${baseClass}--inner`}>
16
- {cards &&
17
- cards.map((card) => (
18
- <Card
19
- title={card.title}
20
- image={card.image}
21
- intro={card.intro}
22
- eyebrow={card.eyebrow}
23
- date={card.date}
24
- dataset={card.dataset}
25
- link={card.link}
26
- profile={card.profile}
27
- cta={card.cta}
28
- source={card.source}
29
- listitems={card.listitems}
30
- linklist={card.linklist}
31
- color={card.color}
32
- theme={card.theme}
33
- cornercut={card.cornercut}
34
- alignment={card.alignment}
35
- variant={card.variant}
36
- size={card.size}
37
- />
38
- ))}
39
-
40
- {cta && (
41
- <div className={`${baseClass}--button-wrap`}>
42
- <a
43
- className={`${prefix}--button ${prefix}--button--medium ${prefix}--button--secondary`}
44
- href={cta.url}
45
- >
46
- <span className="button__label">{cta.label}</span>
47
- </a>
48
- </div>
49
- )}
50
- </div>
51
- </div>
52
- );
53
- };
54
-
55
- export default CardGroup;
@@ -1,2 +0,0 @@
1
- export { default as Card } from "./Card";
2
- export { default as CardGroup } from "./CardGroup";