@contentful/f36-card 4.0.1-beta.2558 → 4.0.1-beta.2590

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/main.js CHANGED
@@ -4,6 +4,7 @@ var $ej4sI$contentfulf36core = require("@contentful/f36-core");
4
4
  var $ej4sI$contentfulf36badge = require("@contentful/f36-badge");
5
5
  var $ej4sI$contentfulf36asset = require("@contentful/f36-asset");
6
6
  var $ej4sI$contentfulf36skeleton = require("@contentful/f36-skeleton");
7
+ var $ej4sI$reactjsxruntime = require("react/jsx-runtime");
7
8
  var $ej4sI$contentfulf36draghandle = require("@contentful/f36-drag-handle");
8
9
  var $ej4sI$contentfulf36tokens = require("@contentful/f36-tokens");
9
10
  var $ej4sI$contentfulf36typography = require("@contentful/f36-typography");
@@ -34,15 +35,13 @@ $parcel$export(module.exports, "InlineEntryCard", () => $0593efaf405710d5$export
34
35
 
35
36
 
36
37
 
38
+
39
+
37
40
  const $c0c701b56a852764$export$e5c3362273de1eca = ()=>{
38
41
  return {
39
42
  contentBody: /*#__PURE__*/ $ej4sI$emotion.css({
40
- gridColumn: 'content',
41
- gridRow: 'content',
42
- paddingBottom: $parcel$interopDefault($ej4sI$contentfulf36tokens).spacingM,
43
- paddingLeft: $parcel$interopDefault($ej4sI$contentfulf36tokens).spacingM,
44
- paddingRight: $parcel$interopDefault($ej4sI$contentfulf36tokens).spacingM,
45
- whiteSpace: 'initial'
43
+ name: "161cbg",
44
+ styles: "grid-column:content;grid-row:content;white-space:initial;"
46
45
  }),
47
46
  wrapper: /*#__PURE__*/ $ej4sI$emotion.css({
48
47
  name: "1cjnmwb",
@@ -110,6 +109,8 @@ const $c0c701b56a852764$export$e5c3362273de1eca = ()=>{
110
109
 
111
110
 
112
111
 
112
+
113
+
113
114
  const $bee2b85f9e63f730$export$6468e6b9c1bc1de = ()=>{
114
115
  return {
115
116
  root: /*#__PURE__*/ $ej4sI$emotion.css({
@@ -123,15 +124,25 @@ const $bee2b85f9e63f730$export$6468e6b9c1bc1de = ()=>{
123
124
 
124
125
  const $67b693c1b2ec5e4d$export$9b6a647253f61c5f = ({ buttonProps: buttonProps , children: children })=>{
125
126
  const styles = $bee2b85f9e63f730$export$6468e6b9c1bc1de();
126
- return(/*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36menu.Menu, null, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36menu.Menu.Trigger, null, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36button.IconButton, {
127
- "aria-label": "Actions",
128
- icon: /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36icons.MoreHorizontalIcon, null),
129
- ...buttonProps,
130
- className: $ej4sI$emotion.cx(styles.root, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.className),
131
- size: "small",
132
- variant: "transparent",
133
- testId: "cf-ui-card-actions"
134
- })), /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36menu.Menu.List, null, children)));
127
+ return(/*#__PURE__*/ $ej4sI$reactjsxruntime.jsxs($ej4sI$contentfulf36menu.Menu, {
128
+ children: [
129
+ /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36menu.Menu.Trigger, {
130
+ children: /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36button.IconButton, {
131
+ "aria-label": "Actions",
132
+ icon: /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36icons.MoreHorizontalIcon, {
133
+ }),
134
+ ...buttonProps,
135
+ className: $ej4sI$emotion.cx(styles.root, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.className),
136
+ size: "small",
137
+ variant: "transparent",
138
+ testId: "cf-ui-card-actions"
139
+ })
140
+ }),
141
+ /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36menu.Menu.List, {
142
+ children: children
143
+ })
144
+ ]
145
+ }));
135
146
  };
136
147
 
137
148
 
@@ -172,35 +183,47 @@ const $d63c44c7f95693ac$export$783e10c0b439f264 = (e)=>{
172
183
  function $d63c44c7f95693ac$export$606643aa598b5a97(props) {
173
184
  const { icon: icon , type: type , actions: actions , actionsButtonProps: actionsButtonProps , badge: badge } = props;
174
185
  const styles = $d63c44c7f95693ac$var$getHeaderStyles();
175
- return(/*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36core.Flex, {
176
- className: $ej4sI$emotion.cx(styles.header, actions && styles.headerWithActions)
177
- }, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36core.Flex, {
178
- flexGrow: 1
179
- }, type && /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36typography.Text, {
180
- fontColor: "gray600"
181
- }, type)), icon && /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36core.Flex, {
182
- alignItems: "center",
183
- marginLeft: "spacingXs"
184
- }, icon), badge && /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36core.Flex, {
185
- alignItems: "center",
186
- marginLeft: "spacingXs"
187
- }, badge), actions && actions.length > 0 && /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36core.Flex // don't propagate click event, so onClick handler on the card is not triggered
188
- , {
189
- onClick: $d63c44c7f95693ac$export$783e10c0b439f264,
190
- alignItems: "center"
191
- }, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($67b693c1b2ec5e4d$export$9b6a647253f61c5f, {
192
- buttonProps: actionsButtonProps
193
- }, actions))));
186
+ return(/*#__PURE__*/ $ej4sI$reactjsxruntime.jsxs($ej4sI$contentfulf36core.Flex, {
187
+ className: $ej4sI$emotion.cx(styles.header, actions && styles.headerWithActions),
188
+ children: [
189
+ /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36core.Flex, {
190
+ flexGrow: 1,
191
+ children: type && /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36typography.Text, {
192
+ fontColor: "gray600",
193
+ children: type
194
+ })
195
+ }),
196
+ icon && /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36core.Flex, {
197
+ alignItems: "center",
198
+ marginLeft: "spacingXs",
199
+ children: icon
200
+ }),
201
+ badge && /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36core.Flex, {
202
+ alignItems: "center",
203
+ marginLeft: "spacingXs",
204
+ children: badge
205
+ }),
206
+ actions && actions.length > 0 && /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36core.Flex // don't propagate click event, so onClick handler on the card is not triggered
207
+ , {
208
+ onClick: $d63c44c7f95693ac$export$783e10c0b439f264,
209
+ alignItems: "center",
210
+ children: /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($67b693c1b2ec5e4d$export$9b6a647253f61c5f, {
211
+ buttonProps: actionsButtonProps,
212
+ children: actions
213
+ })
214
+ })
215
+ ]
216
+ }));
194
217
  }
195
218
 
196
219
 
197
220
  const $46484ac1f332ca45$export$eed7d00d62e881b8 = 'article';
198
- function $46484ac1f332ca45$var$_BaseCard({ actions: actions , actionsButtonProps: actionsButtonProps , ariaLabel: ariaLabel , badge: badge , children: children , className: className , contentBodyProps: contentBodyProps , header: header , href: href , icon: icon , isDragging: isDragging = false , isHovered: isHoveredProp , isSelected: isSelected = false , onBlur: onBlur , onClick: onClick , onFocus: onFocus , onKeyDown: onKeyDown , onMouseEnter: onMouseEnter , onMouseLeave: onMouseLeave , rel: rel = 'noreferrer' , target: target , testId: testId = 'cf-ui-base-card' , title: title , type: type , withDragHandle: withDragHandle , dragHandleRender: dragHandleRender , isLoading: isLoading , ...otherProps }, forwardedRef) {
221
+ function $46484ac1f332ca45$var$_BaseCard({ actions: actions , actionsButtonProps: actionsButtonProps , ariaLabel: ariaLabel , badge: badge , children: children , className: className , contentBodyProps: contentBodyProps , header: header , href: href , icon: icon , isDragging: isDragging = false , isHovered: isHoveredProp , isSelected: isSelected = false , onBlur: onBlur , onClick: onClick , onFocus: onFocus , onKeyDown: onKeyDown , onMouseEnter: onMouseEnter , onMouseLeave: onMouseLeave , target: target , rel: rel , testId: testId = 'cf-ui-base-card' , title: title , type: type , withDragHandle: withDragHandle , dragHandleRender: dragHandleRender , isLoading: isLoading , ...otherProps }, forwardedRef) {
199
222
  const styles = $c0c701b56a852764$export$e5c3362273de1eca();
200
223
  const [isHovered, setIsHovered] = $ej4sI$react.useState(isHoveredProp !== null && isHoveredProp !== void 0 ? isHoveredProp : false);
201
224
  const isInteractive = Boolean(onClick || href || withDragHandle);
202
225
  const hasHeader = Boolean(header);
203
- const defaultHeader = type || icon || badge || actions ? /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($d63c44c7f95693ac$export$606643aa598b5a97, {
226
+ const defaultHeader = type || icon || badge || actions ? /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($d63c44c7f95693ac$export$606643aa598b5a97, {
204
227
  type: type,
205
228
  icon: icon,
206
229
  badge: badge,
@@ -237,22 +260,26 @@ function $46484ac1f332ca45$var$_BaseCard({ actions: actions , actionsButtonProps
237
260
  }, [
238
261
  onKeyDown
239
262
  ]);
240
- if (isLoading) return(/*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36skeleton.SkeletonContainer, {
263
+ if (isLoading) return(/*#__PURE__*/ $ej4sI$reactjsxruntime.jsxs($ej4sI$contentfulf36skeleton.SkeletonContainer, {
241
264
  className: styles.skeleton,
242
- svgHeight: "5.6rem"
243
- }, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36skeleton.SkeletonDisplayText, {
244
- numberOfLines: 1
245
- }), /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36skeleton.SkeletonBodyText, {
246
- numberOfLines: 1,
247
- offsetTop: 35
248
- })));
249
- const drag = /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36draghandle.DragHandle, {
265
+ svgHeight: "5.6rem",
266
+ children: [
267
+ /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36skeleton.SkeletonDisplayText, {
268
+ numberOfLines: 1
269
+ }),
270
+ /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36skeleton.SkeletonBodyText, {
271
+ numberOfLines: 1,
272
+ offsetTop: 35
273
+ })
274
+ ]
275
+ }));
276
+ const drag = /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36draghandle.DragHandle, {
250
277
  className: styles.dragHandle,
251
278
  isActive: isDragging,
252
279
  label: "Reorder entry",
253
280
  onClick: $d63c44c7f95693ac$export$783e10c0b439f264
254
281
  });
255
- return(/*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36core.Box, {
282
+ return(/*#__PURE__*/ $ej4sI$reactjsxruntime.jsxs($ej4sI$contentfulf36core.Box, {
256
283
  "aria-label": title || ariaLabel,
257
284
  "aria-pressed": otherProps.as === 'button' ? isSelected ? 'true' : 'false' : undefined,
258
285
  as: $46484ac1f332ca45$export$eed7d00d62e881b8,
@@ -268,23 +295,32 @@ function $46484ac1f332ca45$var$_BaseCard({ actions: actions , actionsButtonProps
268
295
  onMouseEnter: typeof isHoveredProp === 'undefined' && isInteractive ? handleMouseEnter : undefined,
269
296
  onMouseLeave: typeof isHoveredProp === 'undefined' && isInteractive ? handleMouseLeave : undefined,
270
297
  onKeyDown: handleKeyDown,
271
- rel: href && rel,
298
+ rel: href && (rel || 'noreferrer'),
272
299
  role: onClick && !href ? 'button' : undefined,
273
300
  tabIndex: onClick ? 0 : undefined,
274
301
  target: target,
275
302
  ...otherProps,
276
303
  ref: forwardedRef,
277
- testId: testId
278
- }, withDragHandle ? dragHandleRender ? dragHandleRender({
279
- drag: drag,
280
- isDragging: isDragging
281
- }) : drag : null, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement("div", {
282
- className: styles.wrapper,
283
- "data-card-part": "wrapper"
284
- }, header !== null && header !== void 0 ? header : defaultHeader, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement("div", {
285
- className: styles.contentBody,
286
- "data-card-part": "content"
287
- }, children))));
304
+ testId: testId,
305
+ children: [
306
+ withDragHandle ? dragHandleRender ? dragHandleRender({
307
+ drag: drag,
308
+ isDragging: isDragging
309
+ }) : drag : null,
310
+ /*#__PURE__*/ $ej4sI$reactjsxruntime.jsxs("div", {
311
+ className: styles.wrapper,
312
+ "data-card-part": "wrapper",
313
+ children: [
314
+ header !== null && header !== void 0 ? header : defaultHeader,
315
+ /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx("div", {
316
+ className: styles.contentBody,
317
+ "data-card-part": "content",
318
+ children: children
319
+ })
320
+ ]
321
+ })
322
+ ]
323
+ }));
288
324
  }
289
325
  const $46484ac1f332ca45$export$ffd8d1a491a618f2 = /*#__PURE__*/ $ej4sI$react.forwardRef($46484ac1f332ca45$var$_BaseCard);
290
326
 
@@ -304,10 +340,7 @@ const $138fee8f40b2042d$export$37a6ca57378bcb83 = ()=>{
304
340
  maxWidth: size === 'small' ? `calc(1rem * (240 / ${$parcel$interopDefault($ej4sI$contentfulf36tokens).fontBaseDefault}))` : `calc(1rem * (340 / ${$parcel$interopDefault($ej4sI$contentfulf36tokens).fontBaseDefault}))`,
305
341
  height: size === 'small' ? `calc(1rem * (188 / ${$parcel$interopDefault($ej4sI$contentfulf36tokens).fontBaseDefault}))` : `calc(1rem * (300 / ${$parcel$interopDefault($ej4sI$contentfulf36tokens).fontBaseDefault}))`,
306
342
  padding: 0,
307
- textAlign: 'center',
308
- '[data-card-part="content"]': {
309
- padding: 0
310
- }
343
+ textAlign: 'center'
311
344
  };
312
345
  return(/*#__PURE__*/ $ej4sI$emotion.css(styles));
313
346
  },
@@ -324,23 +357,24 @@ const $138fee8f40b2042d$export$37a6ca57378bcb83 = ()=>{
324
357
 
325
358
  const $ef9a7338cbb41680$export$eff93e4e59ccc3b8 = ({ actions: actions , className: className , icon: icon = null , isSelected: isSelected , size: size = 'default' , src: src , status: status , title: title , type: type , withDragHandle: withDragHandle = false , isLoading: isLoading , testId: testId = 'cf-ui-asset-card' , ...otherProps })=>{
326
359
  const styles = $138fee8f40b2042d$export$37a6ca57378bcb83();
327
- const badge = status ? /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36badge.EntityStatusBadge, {
360
+ const badge = status ? /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36badge.EntityStatusBadge, {
328
361
  entityStatus: status
329
362
  }) : null;
330
- const header = icon || badge || actions ? /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($d63c44c7f95693ac$export$606643aa598b5a97, {
363
+ const header = icon || badge || actions ? /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($d63c44c7f95693ac$export$606643aa598b5a97, {
331
364
  icon: icon,
332
365
  badge: badge,
333
366
  actions: actions
334
367
  }) : null;
335
- if (isLoading) return(/*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36skeleton.SkeletonContainer, {
368
+ if (isLoading) return(/*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36skeleton.SkeletonContainer, {
336
369
  className: styles.skeleton,
337
370
  svgWidth: size === 'default' ? '18rem' : '11rem',
338
- svgHeight: size === 'default' ? '18.75rem' : '12rem'
339
- }, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36skeleton.SkeletonImage, {
340
- width: "100%",
341
- height: "18.75rem"
342
- })));
343
- return(/*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($46484ac1f332ca45$export$ffd8d1a491a618f2, {
371
+ svgHeight: size === 'default' ? '18.75rem' : '12rem',
372
+ children: /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36skeleton.SkeletonImage, {
373
+ width: "100%",
374
+ height: "18.75rem"
375
+ })
376
+ }));
377
+ return(/*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($46484ac1f332ca45$export$ffd8d1a491a618f2, {
344
378
  ...otherProps,
345
379
  badge: badge,
346
380
  className: $ej4sI$emotion.cx(styles.root({
@@ -350,18 +384,20 @@ const $ef9a7338cbb41680$export$eff93e4e59ccc3b8 = ({ actions: actions , classNam
350
384
  isSelected: isSelected,
351
385
  title: title,
352
386
  withDragHandle: withDragHandle,
353
- testId: testId
354
- }, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36core.Flex, {
355
- alignItems: "center",
356
- fullHeight: true,
357
- justifyContent: "center"
358
- }, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36asset.Asset, {
359
- className: styles.asset,
360
- src: src,
361
- status: status,
362
- title: title,
363
- type: type
364
- }))));
387
+ testId: testId,
388
+ children: /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36core.Flex, {
389
+ alignItems: "center",
390
+ fullHeight: true,
391
+ justifyContent: "center",
392
+ children: /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36asset.Asset, {
393
+ className: styles.asset,
394
+ src: src,
395
+ status: status,
396
+ title: title,
397
+ type: type
398
+ })
399
+ })
400
+ }));
365
401
  };
366
402
 
367
403
 
@@ -373,6 +409,7 @@ const $ef9a7338cbb41680$export$eff93e4e59ccc3b8 = ({ actions: actions , classNam
373
409
 
374
410
 
375
411
 
412
+
376
413
  const $3e14d9afb4efa2d4$var$getCardPaddingValue = (padding)=>{
377
414
  switch(padding){
378
415
  case 'large':
@@ -390,10 +427,7 @@ const $3e14d9afb4efa2d4$export$164c3dc7db460fb7 = ({ padding: padding })=>({
390
427
  marginBottom: $parcel$interopDefault($ej4sI$contentfulf36tokens).spacingM
391
428
  }),
392
429
  root: /*#__PURE__*/ $ej4sI$emotion.css({
393
- padding: $3e14d9afb4efa2d4$var$getCardPaddingValue(padding),
394
- '[data-card-part="content"]': {
395
- padding: 0
396
- }
430
+ padding: $3e14d9afb4efa2d4$var$getCardPaddingValue(padding)
397
431
  })
398
432
  })
399
433
  ;
@@ -404,25 +438,37 @@ function $be6854fcee4fd843$var$_Card({ actions: actions , badge: badge , icon: i
404
438
  padding: padding
405
439
  });
406
440
  const hasHeader = Boolean(title || icon || badge || actions);
407
- return(/*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($46484ac1f332ca45$export$ffd8d1a491a618f2, {
441
+ return(/*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($46484ac1f332ca45$export$ffd8d1a491a618f2, {
408
442
  className: $ej4sI$emotion.cx(styles.root, className),
409
443
  ...otherProps,
410
444
  testId: testId,
411
- header: hasHeader && /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36core.Flex, {
412
- alignItems: "center",
413
- className: $ej4sI$emotion.cx(styles.header)
414
- }, title && /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36core.Flex, {
415
- as: "header",
416
- flexGrow: 1
417
- }, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36typography.Heading, {
418
- marginBottom: "none"
419
- }, title)), icon && /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36core.Flex, {
445
+ header: hasHeader && /*#__PURE__*/ $ej4sI$reactjsxruntime.jsxs($ej4sI$contentfulf36core.Flex, {
420
446
  alignItems: "center",
421
- marginLeft: "spacingXs"
422
- }, icon), badge && /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36core.Flex, {
423
- alignItems: "center",
424
- marginLeft: "spacingXs"
425
- }, badge), actions && /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($67b693c1b2ec5e4d$export$9b6a647253f61c5f, null, actions)),
447
+ className: $ej4sI$emotion.cx(styles.header),
448
+ children: [
449
+ title && /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36core.Flex, {
450
+ as: "header",
451
+ flexGrow: 1,
452
+ children: /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36typography.Heading, {
453
+ marginBottom: "none",
454
+ children: title
455
+ })
456
+ }),
457
+ icon && /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36core.Flex, {
458
+ alignItems: "center",
459
+ marginLeft: "spacingXs",
460
+ children: icon
461
+ }),
462
+ badge && /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36core.Flex, {
463
+ alignItems: "center",
464
+ marginLeft: "spacingXs",
465
+ children: badge
466
+ }),
467
+ actions && /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($67b693c1b2ec5e4d$export$9b6a647253f61c5f, {
468
+ children: actions
469
+ })
470
+ ]
471
+ }),
426
472
  ref: forwardedRef
427
473
  }));
428
474
  }
@@ -438,6 +484,7 @@ const $be6854fcee4fd843$export$60332b2344f7fe41 = /*#__PURE__*/ $ej4sI$react.for
438
484
 
439
485
 
440
486
 
487
+
441
488
  const $da17fbf72fc29a72$export$25b6e8fb8b7b795b = ()=>{
442
489
  return {
443
490
  actionsButton: /*#__PURE__*/ $ej4sI$emotion.css({
@@ -453,8 +500,12 @@ const $da17fbf72fc29a72$export$25b6e8fb8b7b795b = ()=>{
453
500
  })
454
501
  ,
455
502
  root: /*#__PURE__*/ $ej4sI$emotion.css({
456
- name: "y8aj3r",
457
- styles: "padding:0;"
503
+ padding: 0,
504
+ '[data-card-part="content"]': {
505
+ paddingBottom: $parcel$interopDefault($ej4sI$contentfulf36tokens).spacingM,
506
+ paddingLeft: $parcel$interopDefault($ej4sI$contentfulf36tokens).spacingM,
507
+ paddingRight: $parcel$interopDefault($ej4sI$contentfulf36tokens).spacingM
508
+ }
458
509
  }),
459
510
  header: /*#__PURE__*/ $ej4sI$emotion.css({
460
511
  borderBottomWidth: 1,
@@ -494,27 +545,29 @@ function $7bab253d72ab2848$var$EntryCardTitle({ title: title }) {
494
545
  if (!title) return null;
495
546
  const truncatedTitle = $parcel$interopDefault($ej4sI$truncate)(title, 255, {
496
547
  });
497
- return(/*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36typography.Subheading, {
548
+ return(/*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36typography.Subheading, {
498
549
  title: title.length > 255 ? title : '',
499
550
  testId: "title",
500
551
  as: "h1",
501
- marginBottom: "none"
502
- }, truncatedTitle));
552
+ marginBottom: "none",
553
+ children: truncatedTitle
554
+ }));
503
555
  }
504
556
  function $7bab253d72ab2848$var$EntryCardDescription({ description: description , size: size }) {
505
557
  if (!description || size === 'small') return null;
506
558
  const truncatedDescription = $parcel$interopDefault($ej4sI$truncate)(description, 95, {
507
559
  });
508
- return(/*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36typography.Paragraph, {
509
- marginBottom: "none"
510
- }, truncatedDescription));
560
+ return(/*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36typography.Paragraph, {
561
+ marginBottom: "none",
562
+ children: truncatedDescription
563
+ }));
511
564
  }
512
565
  function $7bab253d72ab2848$var$_EntryCard({ actions: actions , children: children , className: className , src: src , status: status , thumbnailElement: thumbnailElement , description: description , withDragHandle: withDragHandle = false , title: title , size: size , testId: testId = 'cf-ui-entry-card' , contentType: contentType , ...otherProps }, forwardedRef) {
513
566
  const styles = $da17fbf72fc29a72$export$25b6e8fb8b7b795b();
514
- const badge = status ? /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36badge.EntityStatusBadge, {
567
+ const badge = status ? /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36badge.EntityStatusBadge, {
515
568
  entityStatus: status
516
569
  }) : null;
517
- return(/*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($46484ac1f332ca45$export$ffd8d1a491a618f2, {
570
+ return(/*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($46484ac1f332ca45$export$ffd8d1a491a618f2, {
518
571
  as: $7bab253d72ab2848$var$ENTRY_CARD_DEFAULT_TAG,
519
572
  ...otherProps,
520
573
  actions: actions,
@@ -523,23 +576,34 @@ function $7bab253d72ab2848$var$_EntryCard({ actions: actions , children: childre
523
576
  withDragHandle: withDragHandle,
524
577
  ref: forwardedRef,
525
578
  type: contentType,
526
- testId: testId
527
- }, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36core.Flex, {
528
- alignItems: "center",
529
- className: styles.content(size),
530
- flexDirection: "row"
531
- }, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36core.Flex, {
532
- flexDirection: "column",
533
- flexGrow: 1,
534
- gap: "spacingS"
535
- }, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($7bab253d72ab2848$var$EntryCardTitle, {
536
- title: title
537
- }), /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($7bab253d72ab2848$var$EntryCardDescription, {
538
- size: size,
539
- description: description
540
- }), children), thumbnailElement && /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement("figure", {
541
- className: styles.thumbnail(size)
542
- }, thumbnailElement))));
579
+ testId: testId,
580
+ children: /*#__PURE__*/ $ej4sI$reactjsxruntime.jsxs($ej4sI$contentfulf36core.Flex, {
581
+ alignItems: "center",
582
+ className: styles.content(size),
583
+ flexDirection: "row",
584
+ children: [
585
+ /*#__PURE__*/ $ej4sI$reactjsxruntime.jsxs($ej4sI$contentfulf36core.Flex, {
586
+ flexDirection: "column",
587
+ flexGrow: 1,
588
+ gap: "spacingS",
589
+ children: [
590
+ /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($7bab253d72ab2848$var$EntryCardTitle, {
591
+ title: title
592
+ }),
593
+ /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($7bab253d72ab2848$var$EntryCardDescription, {
594
+ size: size,
595
+ description: description
596
+ }),
597
+ children
598
+ ]
599
+ }),
600
+ thumbnailElement && size !== 'small' && /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx("figure", {
601
+ className: styles.thumbnail(size),
602
+ children: thumbnailElement
603
+ })
604
+ ]
605
+ })
606
+ }));
543
607
  }
544
608
  const $7bab253d72ab2848$export$326973e3eb2dbf = /*#__PURE__*/ $ej4sI$react.forwardRef($7bab253d72ab2848$var$_EntryCard);
545
609
 
@@ -551,6 +615,7 @@ const $7bab253d72ab2848$export$326973e3eb2dbf = /*#__PURE__*/ $ej4sI$react.forwa
551
615
 
552
616
 
553
617
 
618
+
554
619
  const $0c53949ffe0f2254$export$ccfc6dbdba6183be = ()=>{
555
620
  return {
556
621
  actions: /*#__PURE__*/ $ej4sI$emotion.css({
@@ -573,9 +638,6 @@ const $0c53949ffe0f2254$export$ccfc6dbdba6183be = ()=>{
573
638
  paddingTop: 0,
574
639
  paddingLeft: $parcel$interopDefault($ej4sI$contentfulf36tokens).spacingS,
575
640
  paddingRight: $parcel$interopDefault($ej4sI$contentfulf36tokens).spacing2Xs,
576
- '[data-card-part="content"]': {
577
- padding: 0
578
- },
579
641
  '[data-card-part="wrapper"]': {
580
642
  display: 'inline-flex',
581
643
  flexDirection: 'row-reverse'
@@ -607,26 +669,31 @@ const $0c53949ffe0f2254$export$ccfc6dbdba6183be = ()=>{
607
669
 
608
670
  const $0593efaf405710d5$export$94c16395f9ec3265 = ({ actions: actions , className: className , status: status , title: title , isLoading: isLoading , testId: testId = 'cf-ui-inline-entry-card' , ...otherProps })=>{
609
671
  const styles = $0c53949ffe0f2254$export$ccfc6dbdba6183be();
610
- const header = /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($67b693c1b2ec5e4d$export$9b6a647253f61c5f, {
672
+ const header = /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($67b693c1b2ec5e4d$export$9b6a647253f61c5f, {
611
673
  buttonProps: {
612
674
  className: styles.actions
613
- }
614
- }, actions);
615
- if (isLoading) return(/*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36skeleton.SkeletonContainer, {
675
+ },
676
+ children: actions
677
+ });
678
+ if (isLoading) return(/*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36skeleton.SkeletonContainer, {
616
679
  className: styles.skeleton,
617
680
  svgHeight: "1.25rem",
618
- svgWidth: "6rem"
619
- }, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36skeleton.SkeletonBodyText, {
620
- numberOfLines: 1
621
- })));
622
- return(/*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($46484ac1f332ca45$export$ffd8d1a491a618f2, {
681
+ svgWidth: "6rem",
682
+ children: /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36skeleton.SkeletonBodyText, {
683
+ numberOfLines: 1
684
+ })
685
+ }));
686
+ return(/*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($46484ac1f332ca45$export$ffd8d1a491a618f2, {
623
687
  ...otherProps,
624
688
  className: $ej4sI$emotion.cx(styles.root({
625
689
  status: status
626
690
  }), className),
627
691
  header: header,
628
- testId: testId
629
- }, /*#__PURE__*/ $parcel$interopDefault($ej4sI$react).createElement($ej4sI$contentfulf36typography.Text, null, title)));
692
+ testId: testId,
693
+ children: /*#__PURE__*/ $ej4sI$reactjsxruntime.jsx($ej4sI$contentfulf36typography.Text, {
694
+ children: title
695
+ })
696
+ }));
630
697
  };
631
698
 
632
699