@contentful/f36-card 4.0.1-beta.2694 → 4.0.1-beta.2696
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 +122 -198
- package/dist/main.js.map +1 -1
- package/dist/module.js +123 -199
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +0 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -13
package/dist/module.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {jsx as $5DxI1$jsx, jsxs as $5DxI1$jsxs} from "react/jsx-runtime";
|
|
2
1
|
import {cx as $5DxI1$cx, css as $5DxI1$css} from "emotion";
|
|
3
|
-
import {useState as $5DxI1$useState, useCallback as $5DxI1$useCallback, forwardRef as $5DxI1$forwardRef} from "react";
|
|
2
|
+
import $5DxI1$react, {useState as $5DxI1$useState, useCallback as $5DxI1$useCallback, forwardRef as $5DxI1$forwardRef} from "react";
|
|
4
3
|
import {Flex as $5DxI1$Flex, Box as $5DxI1$Box, getEntityStatusStyles as $5DxI1$getEntityStatusStyles} from "@contentful/f36-core";
|
|
5
4
|
import {EntityStatusBadge as $5DxI1$EntityStatusBadge} from "@contentful/f36-badge";
|
|
6
5
|
import {Asset as $5DxI1$Asset} from "@contentful/f36-asset";
|
|
@@ -24,8 +23,6 @@ import $5DxI1$truncate from "truncate";
|
|
|
24
23
|
|
|
25
24
|
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
26
|
const $1ad5c96ea77a4f37$export$e5c3362273de1eca = ()=>{
|
|
30
27
|
return {
|
|
31
28
|
contentBody: /*#__PURE__*/ $5DxI1$css({
|
|
@@ -98,8 +95,6 @@ const $1ad5c96ea77a4f37$export$e5c3362273de1eca = ()=>{
|
|
|
98
95
|
|
|
99
96
|
|
|
100
97
|
|
|
101
|
-
|
|
102
|
-
|
|
103
98
|
const $904f5258fdc66658$export$6468e6b9c1bc1de = ()=>{
|
|
104
99
|
return {
|
|
105
100
|
root: /*#__PURE__*/ $5DxI1$css({
|
|
@@ -113,25 +108,15 @@ const $904f5258fdc66658$export$6468e6b9c1bc1de = ()=>{
|
|
|
113
108
|
|
|
114
109
|
const $e78479b00962523c$export$9b6a647253f61c5f = ({ buttonProps: buttonProps , children: children })=>{
|
|
115
110
|
const styles = $904f5258fdc66658$export$6468e6b9c1bc1de();
|
|
116
|
-
return(/*#__PURE__*/ $5DxI1$
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
size: "small",
|
|
126
|
-
variant: "transparent",
|
|
127
|
-
testId: "cf-ui-card-actions"
|
|
128
|
-
})
|
|
129
|
-
}),
|
|
130
|
-
/*#__PURE__*/ $5DxI1$jsx($5DxI1$Menu.List, {
|
|
131
|
-
children: children
|
|
132
|
-
})
|
|
133
|
-
]
|
|
134
|
-
}));
|
|
111
|
+
return(/*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Menu, null, /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Menu.Trigger, null, /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$IconButton, {
|
|
112
|
+
"aria-label": "Actions",
|
|
113
|
+
icon: /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$MoreHorizontalIcon, null),
|
|
114
|
+
...buttonProps,
|
|
115
|
+
className: $5DxI1$cx(styles.root, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.className),
|
|
116
|
+
size: "small",
|
|
117
|
+
variant: "transparent",
|
|
118
|
+
testId: "cf-ui-card-actions"
|
|
119
|
+
})), /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Menu.List, null, children)));
|
|
135
120
|
};
|
|
136
121
|
|
|
137
122
|
|
|
@@ -172,37 +157,25 @@ const $39a65aff00a76eb6$export$783e10c0b439f264 = (e)=>{
|
|
|
172
157
|
function $39a65aff00a76eb6$export$606643aa598b5a97(props) {
|
|
173
158
|
const { icon: icon , type: type , actions: actions , actionsButtonProps: actionsButtonProps , badge: badge } = props;
|
|
174
159
|
const styles = $39a65aff00a76eb6$var$getHeaderStyles();
|
|
175
|
-
return(/*#__PURE__*/ $5DxI1$
|
|
176
|
-
className: $5DxI1$cx(styles.header, actions && styles.headerWithActions)
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}),
|
|
195
|
-
actions && actions.length > 0 && /*#__PURE__*/ $5DxI1$jsx($5DxI1$Flex // don't propagate click event, so onClick handler on the card is not triggered
|
|
196
|
-
, {
|
|
197
|
-
onClick: $39a65aff00a76eb6$export$783e10c0b439f264,
|
|
198
|
-
alignItems: "center",
|
|
199
|
-
children: /*#__PURE__*/ $5DxI1$jsx($e78479b00962523c$export$9b6a647253f61c5f, {
|
|
200
|
-
buttonProps: actionsButtonProps,
|
|
201
|
-
children: actions
|
|
202
|
-
})
|
|
203
|
-
})
|
|
204
|
-
]
|
|
205
|
-
}));
|
|
160
|
+
return(/*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Flex, {
|
|
161
|
+
className: $5DxI1$cx(styles.header, actions && styles.headerWithActions)
|
|
162
|
+
}, /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Flex, {
|
|
163
|
+
flexGrow: 1
|
|
164
|
+
}, type && /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Text, {
|
|
165
|
+
fontColor: "gray600"
|
|
166
|
+
}, type)), icon && /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Flex, {
|
|
167
|
+
alignItems: "center",
|
|
168
|
+
marginLeft: "spacingXs"
|
|
169
|
+
}, icon), badge && /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Flex, {
|
|
170
|
+
alignItems: "center",
|
|
171
|
+
marginLeft: "spacingXs"
|
|
172
|
+
}, badge), actions && actions.length > 0 && /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Flex // don't propagate click event, so onClick handler on the card is not triggered
|
|
173
|
+
, {
|
|
174
|
+
onClick: $39a65aff00a76eb6$export$783e10c0b439f264,
|
|
175
|
+
alignItems: "center"
|
|
176
|
+
}, /*#__PURE__*/ $5DxI1$react.createElement($e78479b00962523c$export$9b6a647253f61c5f, {
|
|
177
|
+
buttonProps: actionsButtonProps
|
|
178
|
+
}, actions))));
|
|
206
179
|
}
|
|
207
180
|
|
|
208
181
|
|
|
@@ -212,7 +185,7 @@ function $5d4f8cd04931ee40$var$_BaseCard({ actions: actions , actionsButtonProps
|
|
|
212
185
|
const [isHovered, setIsHovered] = $5DxI1$useState(isHoveredProp !== null && isHoveredProp !== void 0 ? isHoveredProp : false);
|
|
213
186
|
const isInteractive = Boolean(onClick || href || withDragHandle);
|
|
214
187
|
const hasHeader = Boolean(header);
|
|
215
|
-
const defaultHeader = type || icon || badge || actions ? /*#__PURE__*/ $5DxI1$
|
|
188
|
+
const defaultHeader = type || icon || badge || actions ? /*#__PURE__*/ $5DxI1$react.createElement($39a65aff00a76eb6$export$606643aa598b5a97, {
|
|
216
189
|
type: type,
|
|
217
190
|
icon: icon,
|
|
218
191
|
badge: badge,
|
|
@@ -249,26 +222,22 @@ function $5d4f8cd04931ee40$var$_BaseCard({ actions: actions , actionsButtonProps
|
|
|
249
222
|
}, [
|
|
250
223
|
onKeyDown
|
|
251
224
|
]);
|
|
252
|
-
if (isLoading) return(/*#__PURE__*/ $5DxI1$
|
|
225
|
+
if (isLoading) return(/*#__PURE__*/ $5DxI1$react.createElement($5DxI1$SkeletonContainer, {
|
|
253
226
|
className: styles.skeleton,
|
|
254
|
-
svgHeight: "5.6rem"
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
})
|
|
263
|
-
]
|
|
264
|
-
}));
|
|
265
|
-
const drag = /*#__PURE__*/ $5DxI1$jsx($5DxI1$DragHandle, {
|
|
227
|
+
svgHeight: "5.6rem"
|
|
228
|
+
}, /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$SkeletonDisplayText, {
|
|
229
|
+
numberOfLines: 1
|
|
230
|
+
}), /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$SkeletonBodyText, {
|
|
231
|
+
numberOfLines: 1,
|
|
232
|
+
offsetTop: 35
|
|
233
|
+
})));
|
|
234
|
+
const drag = /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$DragHandle, {
|
|
266
235
|
className: styles.dragHandle,
|
|
267
236
|
isActive: isDragging,
|
|
268
237
|
label: "Reorder entry",
|
|
269
238
|
onClick: $39a65aff00a76eb6$export$783e10c0b439f264
|
|
270
239
|
});
|
|
271
|
-
return(/*#__PURE__*/ $5DxI1$
|
|
240
|
+
return(/*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Box, {
|
|
272
241
|
"aria-label": title || ariaLabel,
|
|
273
242
|
"aria-pressed": otherProps.as === 'button' ? isSelected ? 'true' : 'false' : undefined,
|
|
274
243
|
as: $5d4f8cd04931ee40$export$eed7d00d62e881b8,
|
|
@@ -290,26 +259,17 @@ function $5d4f8cd04931ee40$var$_BaseCard({ actions: actions , actionsButtonProps
|
|
|
290
259
|
target: target,
|
|
291
260
|
...otherProps,
|
|
292
261
|
ref: forwardedRef,
|
|
293
|
-
testId: testId
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
/*#__PURE__*/ $5DxI1$jsx("div", {
|
|
305
|
-
className: styles.contentBody,
|
|
306
|
-
"data-card-part": "content",
|
|
307
|
-
children: children
|
|
308
|
-
})
|
|
309
|
-
]
|
|
310
|
-
})
|
|
311
|
-
]
|
|
312
|
-
}));
|
|
262
|
+
testId: testId
|
|
263
|
+
}, withDragHandle ? dragHandleRender ? dragHandleRender({
|
|
264
|
+
drag: drag,
|
|
265
|
+
isDragging: isDragging
|
|
266
|
+
}) : drag : null, /*#__PURE__*/ $5DxI1$react.createElement("div", {
|
|
267
|
+
className: styles.wrapper,
|
|
268
|
+
"data-card-part": "wrapper"
|
|
269
|
+
}, header !== null && header !== void 0 ? header : defaultHeader, /*#__PURE__*/ $5DxI1$react.createElement("div", {
|
|
270
|
+
className: styles.contentBody,
|
|
271
|
+
"data-card-part": "content"
|
|
272
|
+
}, children))));
|
|
313
273
|
}
|
|
314
274
|
const $5d4f8cd04931ee40$export$ffd8d1a491a618f2 = /*#__PURE__*/ $5DxI1$forwardRef($5d4f8cd04931ee40$var$_BaseCard);
|
|
315
275
|
|
|
@@ -346,24 +306,23 @@ const $47cd70cbeaaca08f$export$37a6ca57378bcb83 = ()=>{
|
|
|
346
306
|
|
|
347
307
|
const $8085040fa20e1a82$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 })=>{
|
|
348
308
|
const styles = $47cd70cbeaaca08f$export$37a6ca57378bcb83();
|
|
349
|
-
const badge = status ? /*#__PURE__*/ $5DxI1$
|
|
309
|
+
const badge = status ? /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$EntityStatusBadge, {
|
|
350
310
|
entityStatus: status
|
|
351
311
|
}) : null;
|
|
352
|
-
const header = icon || badge || actions ? /*#__PURE__*/ $5DxI1$
|
|
312
|
+
const header = icon || badge || actions ? /*#__PURE__*/ $5DxI1$react.createElement($39a65aff00a76eb6$export$606643aa598b5a97, {
|
|
353
313
|
icon: icon,
|
|
354
314
|
badge: badge,
|
|
355
315
|
actions: actions
|
|
356
316
|
}) : null;
|
|
357
|
-
if (isLoading) return(/*#__PURE__*/ $5DxI1$
|
|
317
|
+
if (isLoading) return(/*#__PURE__*/ $5DxI1$react.createElement($5DxI1$SkeletonContainer, {
|
|
358
318
|
className: styles.skeleton,
|
|
359
319
|
svgWidth: size === 'default' ? '18rem' : '11rem',
|
|
360
|
-
svgHeight: size === 'default' ? '18.75rem' : '12rem'
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
return(/*#__PURE__*/ $5DxI1$jsx($5d4f8cd04931ee40$export$ffd8d1a491a618f2, {
|
|
320
|
+
svgHeight: size === 'default' ? '18.75rem' : '12rem'
|
|
321
|
+
}, /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$SkeletonImage, {
|
|
322
|
+
width: "100%",
|
|
323
|
+
height: "18.75rem"
|
|
324
|
+
})));
|
|
325
|
+
return(/*#__PURE__*/ $5DxI1$react.createElement($5d4f8cd04931ee40$export$ffd8d1a491a618f2, {
|
|
367
326
|
...otherProps,
|
|
368
327
|
badge: badge,
|
|
369
328
|
className: $5DxI1$cx(styles.root({
|
|
@@ -373,20 +332,18 @@ const $8085040fa20e1a82$export$eff93e4e59ccc3b8 = ({ actions: actions , classNam
|
|
|
373
332
|
isSelected: isSelected,
|
|
374
333
|
title: title,
|
|
375
334
|
withDragHandle: withDragHandle,
|
|
376
|
-
testId: testId
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
})
|
|
389
|
-
}));
|
|
335
|
+
testId: testId
|
|
336
|
+
}, /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Flex, {
|
|
337
|
+
alignItems: "center",
|
|
338
|
+
fullHeight: true,
|
|
339
|
+
justifyContent: "center"
|
|
340
|
+
}, /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Asset, {
|
|
341
|
+
className: styles.asset,
|
|
342
|
+
src: src,
|
|
343
|
+
status: status,
|
|
344
|
+
title: title,
|
|
345
|
+
type: type
|
|
346
|
+
}))));
|
|
390
347
|
};
|
|
391
348
|
|
|
392
349
|
|
|
@@ -398,7 +355,6 @@ const $8085040fa20e1a82$export$eff93e4e59ccc3b8 = ({ actions: actions , classNam
|
|
|
398
355
|
|
|
399
356
|
|
|
400
357
|
|
|
401
|
-
|
|
402
358
|
const $ef4cd22839ed0c4f$var$getCardPaddingValue = (padding)=>{
|
|
403
359
|
switch(padding){
|
|
404
360
|
case 'large':
|
|
@@ -427,37 +383,25 @@ function $5c85d26261f47e13$var$_Card({ actions: actions , badge: badge , icon: i
|
|
|
427
383
|
padding: padding
|
|
428
384
|
});
|
|
429
385
|
const hasHeader = Boolean(title || icon || badge || actions);
|
|
430
|
-
return(/*#__PURE__*/ $5DxI1$
|
|
386
|
+
return(/*#__PURE__*/ $5DxI1$react.createElement($5d4f8cd04931ee40$export$ffd8d1a491a618f2, {
|
|
431
387
|
className: $5DxI1$cx(styles.root, className),
|
|
432
388
|
...otherProps,
|
|
433
389
|
testId: testId,
|
|
434
|
-
header: hasHeader && /*#__PURE__*/ $5DxI1$
|
|
390
|
+
header: hasHeader && /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Flex, {
|
|
435
391
|
alignItems: "center",
|
|
436
|
-
className: $5DxI1$cx(styles.header)
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
children: icon
|
|
450
|
-
}),
|
|
451
|
-
badge && /*#__PURE__*/ $5DxI1$jsx($5DxI1$Flex, {
|
|
452
|
-
alignItems: "center",
|
|
453
|
-
marginLeft: "spacingXs",
|
|
454
|
-
children: badge
|
|
455
|
-
}),
|
|
456
|
-
actions && /*#__PURE__*/ $5DxI1$jsx($e78479b00962523c$export$9b6a647253f61c5f, {
|
|
457
|
-
children: actions
|
|
458
|
-
})
|
|
459
|
-
]
|
|
460
|
-
}),
|
|
392
|
+
className: $5DxI1$cx(styles.header)
|
|
393
|
+
}, title && /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Flex, {
|
|
394
|
+
as: "header",
|
|
395
|
+
flexGrow: 1
|
|
396
|
+
}, /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Heading, {
|
|
397
|
+
marginBottom: "none"
|
|
398
|
+
}, title)), icon && /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Flex, {
|
|
399
|
+
alignItems: "center",
|
|
400
|
+
marginLeft: "spacingXs"
|
|
401
|
+
}, icon), badge && /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Flex, {
|
|
402
|
+
alignItems: "center",
|
|
403
|
+
marginLeft: "spacingXs"
|
|
404
|
+
}, badge), actions && /*#__PURE__*/ $5DxI1$react.createElement($e78479b00962523c$export$9b6a647253f61c5f, null, actions)),
|
|
461
405
|
ref: forwardedRef
|
|
462
406
|
}));
|
|
463
407
|
}
|
|
@@ -473,7 +417,6 @@ const $5c85d26261f47e13$export$60332b2344f7fe41 = /*#__PURE__*/ $5DxI1$forwardRe
|
|
|
473
417
|
|
|
474
418
|
|
|
475
419
|
|
|
476
|
-
|
|
477
420
|
const $9af5014d4484efe0$export$25b6e8fb8b7b795b = ()=>{
|
|
478
421
|
return {
|
|
479
422
|
actionsButton: /*#__PURE__*/ $5DxI1$css({
|
|
@@ -534,30 +477,28 @@ function $37db58711d7d1bd4$var$EntryCardTitle({ title: title }) {
|
|
|
534
477
|
if (!title) return null;
|
|
535
478
|
const truncatedTitle = $5DxI1$truncate(title, 255, {
|
|
536
479
|
});
|
|
537
|
-
return(/*#__PURE__*/ $5DxI1$
|
|
480
|
+
return(/*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Subheading, {
|
|
538
481
|
title: title.length > 255 ? title : '',
|
|
539
482
|
testId: "title",
|
|
540
483
|
as: "h1",
|
|
541
|
-
marginBottom: "none"
|
|
542
|
-
|
|
543
|
-
}));
|
|
484
|
+
marginBottom: "none"
|
|
485
|
+
}, truncatedTitle));
|
|
544
486
|
}
|
|
545
487
|
function $37db58711d7d1bd4$var$EntryCardDescription({ description: description , size: size }) {
|
|
546
488
|
if (!description || size === 'small') return null;
|
|
547
489
|
const truncatedDescription = $5DxI1$truncate(description, 95, {
|
|
548
490
|
});
|
|
549
|
-
return(/*#__PURE__*/ $5DxI1$
|
|
491
|
+
return(/*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Paragraph, {
|
|
550
492
|
marginBottom: "none",
|
|
551
|
-
isTruncated: true
|
|
552
|
-
|
|
553
|
-
}));
|
|
493
|
+
isTruncated: true
|
|
494
|
+
}, truncatedDescription));
|
|
554
495
|
}
|
|
555
496
|
function $37db58711d7d1bd4$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) {
|
|
556
497
|
const styles = $9af5014d4484efe0$export$25b6e8fb8b7b795b();
|
|
557
|
-
const badge = status ? /*#__PURE__*/ $5DxI1$
|
|
498
|
+
const badge = status ? /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$EntityStatusBadge, {
|
|
558
499
|
entityStatus: status
|
|
559
500
|
}) : null;
|
|
560
|
-
return(/*#__PURE__*/ $5DxI1$
|
|
501
|
+
return(/*#__PURE__*/ $5DxI1$react.createElement($5d4f8cd04931ee40$export$ffd8d1a491a618f2, {
|
|
561
502
|
as: $37db58711d7d1bd4$var$ENTRY_CARD_DEFAULT_TAG,
|
|
562
503
|
...otherProps,
|
|
563
504
|
actions: actions,
|
|
@@ -566,34 +507,23 @@ function $37db58711d7d1bd4$var$_EntryCard({ actions: actions , children: childre
|
|
|
566
507
|
withDragHandle: withDragHandle,
|
|
567
508
|
ref: forwardedRef,
|
|
568
509
|
type: contentType,
|
|
569
|
-
testId: testId
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
}),
|
|
587
|
-
children
|
|
588
|
-
]
|
|
589
|
-
}),
|
|
590
|
-
thumbnailElement && size !== 'small' && /*#__PURE__*/ $5DxI1$jsx("figure", {
|
|
591
|
-
className: styles.thumbnail(size),
|
|
592
|
-
children: thumbnailElement
|
|
593
|
-
})
|
|
594
|
-
]
|
|
595
|
-
})
|
|
596
|
-
}));
|
|
510
|
+
testId: testId
|
|
511
|
+
}, /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Flex, {
|
|
512
|
+
alignItems: "center",
|
|
513
|
+
className: styles.content(size),
|
|
514
|
+
flexDirection: "row"
|
|
515
|
+
}, /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Flex, {
|
|
516
|
+
flexDirection: "column",
|
|
517
|
+
flexGrow: 1,
|
|
518
|
+
gap: "spacingS"
|
|
519
|
+
}, /*#__PURE__*/ $5DxI1$react.createElement($37db58711d7d1bd4$var$EntryCardTitle, {
|
|
520
|
+
title: title
|
|
521
|
+
}), /*#__PURE__*/ $5DxI1$react.createElement($37db58711d7d1bd4$var$EntryCardDescription, {
|
|
522
|
+
size: size,
|
|
523
|
+
description: description
|
|
524
|
+
}), children), thumbnailElement && size !== 'small' && /*#__PURE__*/ $5DxI1$react.createElement("figure", {
|
|
525
|
+
className: styles.thumbnail(size)
|
|
526
|
+
}, thumbnailElement))));
|
|
597
527
|
}
|
|
598
528
|
const $37db58711d7d1bd4$export$326973e3eb2dbf = /*#__PURE__*/ $5DxI1$forwardRef($37db58711d7d1bd4$var$_EntryCard);
|
|
599
529
|
|
|
@@ -605,7 +535,6 @@ const $37db58711d7d1bd4$export$326973e3eb2dbf = /*#__PURE__*/ $5DxI1$forwardRef(
|
|
|
605
535
|
|
|
606
536
|
|
|
607
537
|
|
|
608
|
-
|
|
609
538
|
const $36eff0059fe803cd$export$ccfc6dbdba6183be = ()=>{
|
|
610
539
|
return {
|
|
611
540
|
actions: /*#__PURE__*/ $5DxI1$css({
|
|
@@ -659,31 +588,26 @@ const $36eff0059fe803cd$export$ccfc6dbdba6183be = ()=>{
|
|
|
659
588
|
|
|
660
589
|
const $e2b3923606cf2d6e$export$94c16395f9ec3265 = ({ actions: actions , className: className , status: status , title: title , isLoading: isLoading , testId: testId = 'cf-ui-inline-entry-card' , ...otherProps })=>{
|
|
661
590
|
const styles = $36eff0059fe803cd$export$ccfc6dbdba6183be();
|
|
662
|
-
const header = /*#__PURE__*/ $5DxI1$
|
|
591
|
+
const header = /*#__PURE__*/ $5DxI1$react.createElement($e78479b00962523c$export$9b6a647253f61c5f, {
|
|
663
592
|
buttonProps: {
|
|
664
593
|
className: styles.actions
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
if (isLoading) return(/*#__PURE__*/ $5DxI1$jsx($5DxI1$SkeletonContainer, {
|
|
594
|
+
}
|
|
595
|
+
}, actions);
|
|
596
|
+
if (isLoading) return(/*#__PURE__*/ $5DxI1$react.createElement($5DxI1$SkeletonContainer, {
|
|
669
597
|
className: styles.skeleton,
|
|
670
598
|
svgHeight: "1.25rem",
|
|
671
|
-
svgWidth: "6rem"
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
return(/*#__PURE__*/ $5DxI1$jsx($5d4f8cd04931ee40$export$ffd8d1a491a618f2, {
|
|
599
|
+
svgWidth: "6rem"
|
|
600
|
+
}, /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$SkeletonBodyText, {
|
|
601
|
+
numberOfLines: 1
|
|
602
|
+
})));
|
|
603
|
+
return(/*#__PURE__*/ $5DxI1$react.createElement($5d4f8cd04931ee40$export$ffd8d1a491a618f2, {
|
|
677
604
|
...otherProps,
|
|
678
605
|
className: $5DxI1$cx(styles.root({
|
|
679
606
|
status: status
|
|
680
607
|
}), className),
|
|
681
608
|
header: header,
|
|
682
|
-
testId: testId
|
|
683
|
-
|
|
684
|
-
children: title
|
|
685
|
-
})
|
|
686
|
-
}));
|
|
609
|
+
testId: testId
|
|
610
|
+
}, /*#__PURE__*/ $5DxI1$react.createElement($5DxI1$Text, null, title)));
|
|
687
611
|
};
|
|
688
612
|
|
|
689
613
|
|