design-react-kit 5.0.0-0 → 5.0.0-1
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/cjs/ItFilePpt-416433f2.js +2 -0
- package/dist/cjs/ItFilePpt-416433f2.js.map +1 -0
- package/dist/cjs/ItMoodle-49b00c1d.js +2 -0
- package/dist/cjs/ItMoodle-49b00c1d.js.map +1 -0
- package/dist/cjs/ItMoodleSquare-4a712f4d.js +2 -0
- package/dist/cjs/ItMoodleSquare-4a712f4d.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/ItFilePpt-c49636d1.js +27 -0
- package/dist/esm/ItFilePpt-c49636d1.js.map +1 -0
- package/dist/esm/ItMoodle-e5b95396.js +27 -0
- package/dist/esm/ItMoodle-e5b95396.js.map +1 -0
- package/dist/esm/ItMoodleSquare-e8bd4c5a.js +30 -0
- package/dist/esm/ItMoodleSquare-e8bd4c5a.js.map +1 -0
- package/dist/esm/index.js +321 -210
- package/dist/esm/index.js.map +1 -1
- package/dist/types/BackToTop/BackToTop.d.ts +23 -0
- package/dist/types/Callout/CalloutMoreFooter.d.ts +10 -0
- package/dist/types/Card/Card.d.ts +2 -0
- package/dist/types/Icon/assets/ItFilePpt.d.ts +7 -0
- package/dist/types/Icon/assets/ItMoodle.d.ts +7 -0
- package/dist/types/Icon/assets/ItMoodleSquare.d.ts +7 -0
- package/dist/types/ItFilePpt-416433f2.js +32 -0
- package/dist/types/ItFilePpt-416433f2.js.map +1 -0
- package/dist/types/ItMoodle-49b00c1d.js +32 -0
- package/dist/types/ItMoodle-49b00c1d.js.map +1 -0
- package/dist/types/ItMoodleSquare-4a712f4d.js +35 -0
- package/dist/types/ItMoodleSquare-4a712f4d.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +320 -207
- package/dist/types/index.js.map +1 -1
- package/package.json +2 -2
- package/src/Accordion/AccordionHeader.tsx +1 -1
- package/src/BackToTop/BackToTop.tsx +76 -0
- package/src/Breadcrumb/Breadcrumb.tsx +2 -2
- package/src/Callout/Callout.tsx +5 -1
- package/src/Callout/CalloutMoreFooter.tsx +65 -0
- package/src/Card/Card.tsx +10 -1
- package/src/Icon/assets/ItFilePpt.tsx +30 -0
- package/src/Icon/assets/ItMoodle.tsx +31 -0
- package/src/Icon/assets/ItMoodleSquare.tsx +32 -0
- package/src/Icon/assets/index.ts +12 -0
- package/src/index.tsx +2 -0
package/dist/types/index.js
CHANGED
|
@@ -78,7 +78,7 @@ const AccordionHeader = _ref => {
|
|
|
78
78
|
} = _ref;
|
|
79
79
|
const Tag = tag;
|
|
80
80
|
const toggleClasses = classNames(className, 'accordion-button', {
|
|
81
|
-
collapsed: active
|
|
81
|
+
collapsed: !active
|
|
82
82
|
});
|
|
83
83
|
return React__default.createElement("div", {
|
|
84
84
|
className: 'accordion-header',
|
|
@@ -369,212 +369,6 @@ const AvatarWrapper = _ref => {
|
|
|
369
369
|
}));
|
|
370
370
|
};
|
|
371
371
|
|
|
372
|
-
const Badge = _ref => {
|
|
373
|
-
let {
|
|
374
|
-
color = 'secondary',
|
|
375
|
-
pill = false,
|
|
376
|
-
tag = 'span',
|
|
377
|
-
children,
|
|
378
|
-
testId,
|
|
379
|
-
...attributes
|
|
380
|
-
} = _ref;
|
|
381
|
-
return React__default.createElement(reactstrap.Badge, Object.assign({
|
|
382
|
-
color: color,
|
|
383
|
-
pill: pill,
|
|
384
|
-
tag: tag
|
|
385
|
-
}, attributes, {
|
|
386
|
-
"data-testid": testId
|
|
387
|
-
}), children);
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
const Breadcrumb = _ref => {
|
|
391
|
-
let {
|
|
392
|
-
className,
|
|
393
|
-
listClassName,
|
|
394
|
-
dark,
|
|
395
|
-
'aria-label': label,
|
|
396
|
-
testId,
|
|
397
|
-
...attributes
|
|
398
|
-
} = _ref;
|
|
399
|
-
const classes = classNames(className, 'breadcrumb-container');
|
|
400
|
-
const listClasses = classNames(listClassName, {
|
|
401
|
-
dark
|
|
402
|
-
});
|
|
403
|
-
const ariaLabel = label ?? 'breadcrumb';
|
|
404
|
-
return React__default.createElement(reactstrap.Breadcrumb, Object.assign({
|
|
405
|
-
className: classes,
|
|
406
|
-
listClassName: listClasses,
|
|
407
|
-
"aria-label": ariaLabel,
|
|
408
|
-
"data-testid": testId
|
|
409
|
-
}, attributes));
|
|
410
|
-
};
|
|
411
|
-
|
|
412
|
-
const Button = _ref => {
|
|
413
|
-
let {
|
|
414
|
-
tag = 'button',
|
|
415
|
-
icon = false,
|
|
416
|
-
color = '',
|
|
417
|
-
className,
|
|
418
|
-
testId,
|
|
419
|
-
...attributes
|
|
420
|
-
} = _ref;
|
|
421
|
-
const classes = classNames(className, {
|
|
422
|
-
'btn-icon': icon
|
|
423
|
-
});
|
|
424
|
-
const ariaAttributes = {
|
|
425
|
-
...(attributes.disabled && {
|
|
426
|
-
'aria-disabled': true
|
|
427
|
-
})
|
|
428
|
-
};
|
|
429
|
-
const baseProps = {
|
|
430
|
-
color,
|
|
431
|
-
tag
|
|
432
|
-
};
|
|
433
|
-
return React__default.createElement(reactstrap.Button, Object.assign({
|
|
434
|
-
className: classes,
|
|
435
|
-
"data-testid": testId
|
|
436
|
-
}, baseProps, attributes, ariaAttributes));
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
const Forward = _ref => {
|
|
440
|
-
let {
|
|
441
|
-
className,
|
|
442
|
-
scrollToRef,
|
|
443
|
-
children,
|
|
444
|
-
testId,
|
|
445
|
-
...attributes
|
|
446
|
-
} = _ref;
|
|
447
|
-
const classes = classNames(className, 'forward');
|
|
448
|
-
return React__default.createElement("a", Object.assign({
|
|
449
|
-
className: classes,
|
|
450
|
-
onClick: () => {
|
|
451
|
-
var _scrollToRef$current;
|
|
452
|
-
return (_scrollToRef$current = scrollToRef.current) == null ? void 0 : _scrollToRef$current.scrollIntoView({
|
|
453
|
-
behavior: 'smooth',
|
|
454
|
-
block: 'start'
|
|
455
|
-
});
|
|
456
|
-
},
|
|
457
|
-
"data-testid": testId
|
|
458
|
-
}, attributes), children);
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
const Callout = _ref => {
|
|
462
|
-
let {
|
|
463
|
-
children,
|
|
464
|
-
color = '',
|
|
465
|
-
highlight = false,
|
|
466
|
-
className,
|
|
467
|
-
detailed,
|
|
468
|
-
tag = 'div',
|
|
469
|
-
testId,
|
|
470
|
-
...attributes
|
|
471
|
-
} = _ref;
|
|
472
|
-
const Tag = tag;
|
|
473
|
-
const classes = classNames(className, color, 'callout', {
|
|
474
|
-
'callout-highlight': highlight,
|
|
475
|
-
'callout-more': detailed
|
|
476
|
-
});
|
|
477
|
-
return React__default.createElement(Tag, Object.assign({
|
|
478
|
-
className: classes
|
|
479
|
-
}, attributes, {
|
|
480
|
-
"data-testid": testId
|
|
481
|
-
}), children);
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
const CalloutText = _ref => {
|
|
485
|
-
let {
|
|
486
|
-
bigText = false,
|
|
487
|
-
children,
|
|
488
|
-
className,
|
|
489
|
-
tag = 'p',
|
|
490
|
-
testId,
|
|
491
|
-
...attributes
|
|
492
|
-
} = _ref;
|
|
493
|
-
const Tag = tag;
|
|
494
|
-
const classes = classNames(className, {
|
|
495
|
-
'callout-big-text': bigText
|
|
496
|
-
});
|
|
497
|
-
return React__default.createElement(Tag, Object.assign({
|
|
498
|
-
className: classes
|
|
499
|
-
}, attributes, {
|
|
500
|
-
"data-testid": testId
|
|
501
|
-
}), children);
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
const CalloutTitle = _ref => {
|
|
505
|
-
let {
|
|
506
|
-
children,
|
|
507
|
-
className,
|
|
508
|
-
tag = 'div',
|
|
509
|
-
testId,
|
|
510
|
-
...attributes
|
|
511
|
-
} = _ref;
|
|
512
|
-
const Tag = tag;
|
|
513
|
-
const classes = classNames(className, 'callout-title');
|
|
514
|
-
return React__default.createElement(Tag, Object.assign({
|
|
515
|
-
className: classes
|
|
516
|
-
}, attributes, {
|
|
517
|
-
"data-testid": testId
|
|
518
|
-
}), children);
|
|
519
|
-
};
|
|
520
|
-
|
|
521
|
-
const Card = _ref => {
|
|
522
|
-
let {
|
|
523
|
-
tag = 'div',
|
|
524
|
-
teaser,
|
|
525
|
-
spacing,
|
|
526
|
-
noWrapper = false,
|
|
527
|
-
wrapperClassName,
|
|
528
|
-
testId,
|
|
529
|
-
...attributes
|
|
530
|
-
} = _ref;
|
|
531
|
-
const wrapperClasses = classNames('card-wrapper', wrapperClassName, {
|
|
532
|
-
'card-space': spacing,
|
|
533
|
-
'card-teaser-wrapper': teaser
|
|
534
|
-
});
|
|
535
|
-
const cardClasses = classNames(attributes.className, {
|
|
536
|
-
'card-teaser': teaser
|
|
537
|
-
});
|
|
538
|
-
if (noWrapper) {
|
|
539
|
-
return React__default.createElement(reactstrap.Card, Object.assign({}, attributes, {
|
|
540
|
-
className: cardClasses,
|
|
541
|
-
tag: tag,
|
|
542
|
-
"data-testid": testId
|
|
543
|
-
}));
|
|
544
|
-
}
|
|
545
|
-
return React__default.createElement("div", {
|
|
546
|
-
className: wrapperClasses,
|
|
547
|
-
"data-testid": testId
|
|
548
|
-
}, React__default.createElement(reactstrap.Card, Object.assign({}, attributes, {
|
|
549
|
-
className: cardClasses,
|
|
550
|
-
tag: tag
|
|
551
|
-
})));
|
|
552
|
-
};
|
|
553
|
-
|
|
554
|
-
const CardBody = _ref => {
|
|
555
|
-
let {
|
|
556
|
-
tag = 'div',
|
|
557
|
-
testId,
|
|
558
|
-
...props
|
|
559
|
-
} = _ref;
|
|
560
|
-
return React__default.createElement(reactstrap.CardBody, Object.assign({}, props, {
|
|
561
|
-
tag: tag,
|
|
562
|
-
"data-testid": testId
|
|
563
|
-
}));
|
|
564
|
-
};
|
|
565
|
-
|
|
566
|
-
const CardTitle = props => {
|
|
567
|
-
return React__default.createElement(reactstrap.CardTitle, Object.assign({}, props, {
|
|
568
|
-
"data-testid": props.testId
|
|
569
|
-
}));
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
const CardText = props => {
|
|
573
|
-
return React__default.createElement(reactstrap.CardText, Object.assign({}, props, {
|
|
574
|
-
"data-testid": props.testId
|
|
575
|
-
}));
|
|
576
|
-
};
|
|
577
|
-
|
|
578
372
|
const iconList = {
|
|
579
373
|
'it-arrow-down-circle': true,
|
|
580
374
|
'it-arrow-down-triangle': true,
|
|
@@ -630,6 +424,7 @@ const iconList = {
|
|
|
630
424
|
'it-file-odt': true,
|
|
631
425
|
'it-file-pdf-ext': true,
|
|
632
426
|
'it-file-pdf': true,
|
|
427
|
+
'it-file-ppt': true,
|
|
633
428
|
'it-file-sheet': true,
|
|
634
429
|
'it-file-slides': true,
|
|
635
430
|
'it-file-txt': true,
|
|
@@ -676,6 +471,8 @@ const iconList = {
|
|
|
676
471
|
'it-minimize': true,
|
|
677
472
|
'it-minus-circle': true,
|
|
678
473
|
'it-minus': true,
|
|
474
|
+
'it-moodle-square': true,
|
|
475
|
+
'it-moodle': true,
|
|
679
476
|
'it-more-actions': true,
|
|
680
477
|
'it-more-items': true,
|
|
681
478
|
'it-note': true,
|
|
@@ -956,6 +753,10 @@ const loadIcon = name => {
|
|
|
956
753
|
{
|
|
957
754
|
return new Promise(function (resolve) { resolve(require('./ItFilePdf-ae73ed66.js')); });
|
|
958
755
|
}
|
|
756
|
+
case 'it-file-ppt':
|
|
757
|
+
{
|
|
758
|
+
return new Promise(function (resolve) { resolve(require('./ItFilePpt-416433f2.js')); });
|
|
759
|
+
}
|
|
959
760
|
case 'it-file-sheet':
|
|
960
761
|
{
|
|
961
762
|
return new Promise(function (resolve) { resolve(require('./ItFileSheet-c9241945.js')); });
|
|
@@ -1140,6 +941,14 @@ const loadIcon = name => {
|
|
|
1140
941
|
{
|
|
1141
942
|
return new Promise(function (resolve) { resolve(require('./ItMinus-f94f7c60.js')); });
|
|
1142
943
|
}
|
|
944
|
+
case 'it-moodle-square':
|
|
945
|
+
{
|
|
946
|
+
return new Promise(function (resolve) { resolve(require('./ItMoodleSquare-4a712f4d.js')); });
|
|
947
|
+
}
|
|
948
|
+
case 'it-moodle':
|
|
949
|
+
{
|
|
950
|
+
return new Promise(function (resolve) { resolve(require('./ItMoodle-49b00c1d.js')); });
|
|
951
|
+
}
|
|
1143
952
|
case 'it-more-actions':
|
|
1144
953
|
{
|
|
1145
954
|
return new Promise(function (resolve) { resolve(require('./ItMoreActions-45d8e872.js')); });
|
|
@@ -1508,6 +1317,308 @@ const Icon = _ref2 => {
|
|
|
1508
1317
|
}, attributes));
|
|
1509
1318
|
};
|
|
1510
1319
|
|
|
1320
|
+
const Button = _ref => {
|
|
1321
|
+
let {
|
|
1322
|
+
tag = 'button',
|
|
1323
|
+
icon = false,
|
|
1324
|
+
color = '',
|
|
1325
|
+
className,
|
|
1326
|
+
testId,
|
|
1327
|
+
...attributes
|
|
1328
|
+
} = _ref;
|
|
1329
|
+
const classes = classNames(className, {
|
|
1330
|
+
'btn-icon': icon
|
|
1331
|
+
});
|
|
1332
|
+
const ariaAttributes = {
|
|
1333
|
+
...(attributes.disabled && {
|
|
1334
|
+
'aria-disabled': true
|
|
1335
|
+
})
|
|
1336
|
+
};
|
|
1337
|
+
const baseProps = {
|
|
1338
|
+
color,
|
|
1339
|
+
tag
|
|
1340
|
+
};
|
|
1341
|
+
return React__default.createElement(reactstrap.Button, Object.assign({
|
|
1342
|
+
className: classes,
|
|
1343
|
+
"data-testid": testId
|
|
1344
|
+
}, baseProps, attributes, ariaAttributes));
|
|
1345
|
+
};
|
|
1346
|
+
|
|
1347
|
+
const backToTop = () => {
|
|
1348
|
+
window.scrollTo({
|
|
1349
|
+
top: 0,
|
|
1350
|
+
behavior: 'smooth'
|
|
1351
|
+
});
|
|
1352
|
+
};
|
|
1353
|
+
const BackToTop = _ref => {
|
|
1354
|
+
let {
|
|
1355
|
+
className,
|
|
1356
|
+
dark = false,
|
|
1357
|
+
small = false,
|
|
1358
|
+
shadow = false,
|
|
1359
|
+
showOffset = 200
|
|
1360
|
+
} = _ref;
|
|
1361
|
+
const [showBtn, setShowBtn] = React.useState(false);
|
|
1362
|
+
React.useLayoutEffect(() => {
|
|
1363
|
+
window.addEventListener('scroll', () => {
|
|
1364
|
+
if (window.scrollY > showOffset) {
|
|
1365
|
+
setShowBtn(true);
|
|
1366
|
+
} else {
|
|
1367
|
+
setShowBtn(false);
|
|
1368
|
+
}
|
|
1369
|
+
});
|
|
1370
|
+
}, [showOffset]);
|
|
1371
|
+
return React__default.createElement(Button, {
|
|
1372
|
+
"aria-hidden": 'true',
|
|
1373
|
+
tabIndex: -1,
|
|
1374
|
+
className: classNames(className, 'back-to-top', small && 'back-to-top-small', showBtn && 'back-to-top-show', dark && 'dark', shadow && 'shadow'),
|
|
1375
|
+
id: 'back-to-top-btn',
|
|
1376
|
+
onClick: backToTop,
|
|
1377
|
+
style: {
|
|
1378
|
+
padding: 0
|
|
1379
|
+
},
|
|
1380
|
+
color: !dark ? 'primary' : ''
|
|
1381
|
+
}, React__default.createElement(Icon, {
|
|
1382
|
+
color: dark ? 'secondary' : 'white',
|
|
1383
|
+
icon: 'it-arrow-up',
|
|
1384
|
+
style: {
|
|
1385
|
+
top: 0
|
|
1386
|
+
}
|
|
1387
|
+
}));
|
|
1388
|
+
};
|
|
1389
|
+
|
|
1390
|
+
const Badge = _ref => {
|
|
1391
|
+
let {
|
|
1392
|
+
color = 'secondary',
|
|
1393
|
+
pill = false,
|
|
1394
|
+
tag = 'span',
|
|
1395
|
+
children,
|
|
1396
|
+
testId,
|
|
1397
|
+
...attributes
|
|
1398
|
+
} = _ref;
|
|
1399
|
+
return React__default.createElement(reactstrap.Badge, Object.assign({
|
|
1400
|
+
color: color,
|
|
1401
|
+
pill: pill,
|
|
1402
|
+
tag: tag
|
|
1403
|
+
}, attributes, {
|
|
1404
|
+
"data-testid": testId
|
|
1405
|
+
}), children);
|
|
1406
|
+
};
|
|
1407
|
+
|
|
1408
|
+
const Breadcrumb = _ref => {
|
|
1409
|
+
let {
|
|
1410
|
+
className,
|
|
1411
|
+
listClassName,
|
|
1412
|
+
dark,
|
|
1413
|
+
'aria-label': label,
|
|
1414
|
+
testId,
|
|
1415
|
+
...attributes
|
|
1416
|
+
} = _ref;
|
|
1417
|
+
const classes = classNames(className, 'breadcrumb-container');
|
|
1418
|
+
const listClasses = classNames(listClassName, {
|
|
1419
|
+
dark
|
|
1420
|
+
}, dark && 'px-3');
|
|
1421
|
+
const ariaLabel = label ?? 'Percorso di navigazione';
|
|
1422
|
+
return React__default.createElement(reactstrap.Breadcrumb, Object.assign({
|
|
1423
|
+
className: classes,
|
|
1424
|
+
listClassName: listClasses,
|
|
1425
|
+
"aria-label": ariaLabel,
|
|
1426
|
+
"data-testid": testId
|
|
1427
|
+
}, attributes));
|
|
1428
|
+
};
|
|
1429
|
+
|
|
1430
|
+
const Forward = _ref => {
|
|
1431
|
+
let {
|
|
1432
|
+
className,
|
|
1433
|
+
scrollToRef,
|
|
1434
|
+
children,
|
|
1435
|
+
testId,
|
|
1436
|
+
...attributes
|
|
1437
|
+
} = _ref;
|
|
1438
|
+
const classes = classNames(className, 'forward');
|
|
1439
|
+
return React__default.createElement("a", Object.assign({
|
|
1440
|
+
className: classes,
|
|
1441
|
+
onClick: () => {
|
|
1442
|
+
var _scrollToRef$current;
|
|
1443
|
+
return (_scrollToRef$current = scrollToRef.current) == null ? void 0 : _scrollToRef$current.scrollIntoView({
|
|
1444
|
+
behavior: 'smooth',
|
|
1445
|
+
block: 'start'
|
|
1446
|
+
});
|
|
1447
|
+
},
|
|
1448
|
+
"data-testid": testId
|
|
1449
|
+
}, attributes), children);
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
const Callout = _ref => {
|
|
1453
|
+
let {
|
|
1454
|
+
children,
|
|
1455
|
+
color = '',
|
|
1456
|
+
highlight = false,
|
|
1457
|
+
className,
|
|
1458
|
+
detailed,
|
|
1459
|
+
tag = 'div',
|
|
1460
|
+
testId,
|
|
1461
|
+
...attributes
|
|
1462
|
+
} = _ref;
|
|
1463
|
+
const Tag = tag;
|
|
1464
|
+
const classes = classNames(className, color, 'callout', {
|
|
1465
|
+
'callout-highlight': highlight,
|
|
1466
|
+
'callout-more': detailed
|
|
1467
|
+
});
|
|
1468
|
+
return React__default.createElement(Tag, Object.assign({
|
|
1469
|
+
className: classes
|
|
1470
|
+
}, attributes, {
|
|
1471
|
+
"data-testid": testId
|
|
1472
|
+
}), !highlight && !detailed ? React__default.createElement("div", {
|
|
1473
|
+
className: 'callout-inner'
|
|
1474
|
+
}, children) : children);
|
|
1475
|
+
};
|
|
1476
|
+
|
|
1477
|
+
const CalloutText = _ref => {
|
|
1478
|
+
let {
|
|
1479
|
+
bigText = false,
|
|
1480
|
+
children,
|
|
1481
|
+
className,
|
|
1482
|
+
tag = 'p',
|
|
1483
|
+
testId,
|
|
1484
|
+
...attributes
|
|
1485
|
+
} = _ref;
|
|
1486
|
+
const Tag = tag;
|
|
1487
|
+
const classes = classNames(className, {
|
|
1488
|
+
'callout-big-text': bigText
|
|
1489
|
+
});
|
|
1490
|
+
return React__default.createElement(Tag, Object.assign({
|
|
1491
|
+
className: classes
|
|
1492
|
+
}, attributes, {
|
|
1493
|
+
"data-testid": testId
|
|
1494
|
+
}), children);
|
|
1495
|
+
};
|
|
1496
|
+
|
|
1497
|
+
const CalloutTitle = _ref => {
|
|
1498
|
+
let {
|
|
1499
|
+
children,
|
|
1500
|
+
className,
|
|
1501
|
+
tag = 'div',
|
|
1502
|
+
testId,
|
|
1503
|
+
...attributes
|
|
1504
|
+
} = _ref;
|
|
1505
|
+
const Tag = tag;
|
|
1506
|
+
const classes = classNames(className, 'callout-title');
|
|
1507
|
+
return React__default.createElement(Tag, Object.assign({
|
|
1508
|
+
className: classes
|
|
1509
|
+
}, attributes, {
|
|
1510
|
+
"data-testid": testId
|
|
1511
|
+
}), children);
|
|
1512
|
+
};
|
|
1513
|
+
|
|
1514
|
+
const CalloutMoreFooter = _ref => {
|
|
1515
|
+
let {
|
|
1516
|
+
id = 'cm-footer',
|
|
1517
|
+
tag = 'div',
|
|
1518
|
+
className,
|
|
1519
|
+
fileUrl,
|
|
1520
|
+
children,
|
|
1521
|
+
...attributes
|
|
1522
|
+
} = _ref;
|
|
1523
|
+
const Tag = tag;
|
|
1524
|
+
const classes = classNames('collapse-div', className);
|
|
1525
|
+
const [isOpen, setOpen] = React.useState(false);
|
|
1526
|
+
return React__default.createElement(Tag, Object.assign({}, attributes, {
|
|
1527
|
+
className: classes
|
|
1528
|
+
}), React__default.createElement("div", {
|
|
1529
|
+
className: 'collapse-header',
|
|
1530
|
+
id: `${id}-heading`
|
|
1531
|
+
}, React__default.createElement(Button, {
|
|
1532
|
+
color: 'primary',
|
|
1533
|
+
className: 'callout-more-toggle',
|
|
1534
|
+
onClick: () => setOpen(!isOpen),
|
|
1535
|
+
"aria-controls": `${id}-collapse`,
|
|
1536
|
+
"aria-expanded": isOpen,
|
|
1537
|
+
style: {
|
|
1538
|
+
fontFamily: 'var(--bs-font-sans-serif)',
|
|
1539
|
+
fontSize: '1rem'
|
|
1540
|
+
}
|
|
1541
|
+
}, "Leggi tutto ", React__default.createElement("span", null)), fileUrl && React__default.createElement("a", {
|
|
1542
|
+
className: 'callout-more-download',
|
|
1543
|
+
href: fileUrl,
|
|
1544
|
+
style: {
|
|
1545
|
+
fontFamily: 'var(--bs-font-sans-serif)',
|
|
1546
|
+
fontSize: '1rem'
|
|
1547
|
+
}
|
|
1548
|
+
}, React__default.createElement(Icon, {
|
|
1549
|
+
icon: 'it-download'
|
|
1550
|
+
}), React__default.createElement("span", {
|
|
1551
|
+
className: 'visually-hidden'
|
|
1552
|
+
}, "PDF"), "Download")), React__default.createElement("div", {
|
|
1553
|
+
className: `collapse ${isOpen ? 'show' : ''}`,
|
|
1554
|
+
role: 'tabpanel',
|
|
1555
|
+
id: `${id}-collapse`,
|
|
1556
|
+
"aria-labelledby": `${id}-heading`
|
|
1557
|
+
}, React__default.createElement("div", {
|
|
1558
|
+
className: 'collapse-body'
|
|
1559
|
+
}, children)));
|
|
1560
|
+
};
|
|
1561
|
+
|
|
1562
|
+
const Card = _ref => {
|
|
1563
|
+
let {
|
|
1564
|
+
tag = 'div',
|
|
1565
|
+
href = undefined,
|
|
1566
|
+
teaser,
|
|
1567
|
+
spacing,
|
|
1568
|
+
noWrapper = false,
|
|
1569
|
+
wrapperClassName,
|
|
1570
|
+
testId,
|
|
1571
|
+
...attributes
|
|
1572
|
+
} = _ref;
|
|
1573
|
+
const wrapperClasses = classNames('card-wrapper', wrapperClassName, {
|
|
1574
|
+
'card-space': spacing,
|
|
1575
|
+
'card-teaser-wrapper': teaser
|
|
1576
|
+
});
|
|
1577
|
+
const cardClasses = classNames(attributes.className, {
|
|
1578
|
+
'card-teaser': teaser
|
|
1579
|
+
});
|
|
1580
|
+
if (noWrapper) {
|
|
1581
|
+
return React__default.createElement(reactstrap.Card, Object.assign({}, attributes, {
|
|
1582
|
+
className: cardClasses,
|
|
1583
|
+
tag: tag,
|
|
1584
|
+
href: tag === 'a' ? href : undefined,
|
|
1585
|
+
"data-testid": testId
|
|
1586
|
+
}));
|
|
1587
|
+
}
|
|
1588
|
+
return React__default.createElement("div", {
|
|
1589
|
+
className: wrapperClasses,
|
|
1590
|
+
"data-testid": testId
|
|
1591
|
+
}, React__default.createElement(reactstrap.Card, Object.assign({}, attributes, {
|
|
1592
|
+
className: cardClasses,
|
|
1593
|
+
tag: tag,
|
|
1594
|
+
href: tag === 'a' ? href : undefined
|
|
1595
|
+
})));
|
|
1596
|
+
};
|
|
1597
|
+
|
|
1598
|
+
const CardBody = _ref => {
|
|
1599
|
+
let {
|
|
1600
|
+
tag = 'div',
|
|
1601
|
+
testId,
|
|
1602
|
+
...props
|
|
1603
|
+
} = _ref;
|
|
1604
|
+
return React__default.createElement(reactstrap.CardBody, Object.assign({}, props, {
|
|
1605
|
+
tag: tag,
|
|
1606
|
+
"data-testid": testId
|
|
1607
|
+
}));
|
|
1608
|
+
};
|
|
1609
|
+
|
|
1610
|
+
const CardTitle = props => {
|
|
1611
|
+
return React__default.createElement(reactstrap.CardTitle, Object.assign({}, props, {
|
|
1612
|
+
"data-testid": props.testId
|
|
1613
|
+
}));
|
|
1614
|
+
};
|
|
1615
|
+
|
|
1616
|
+
const CardText = props => {
|
|
1617
|
+
return React__default.createElement(reactstrap.CardText, Object.assign({}, props, {
|
|
1618
|
+
"data-testid": props.testId
|
|
1619
|
+
}));
|
|
1620
|
+
};
|
|
1621
|
+
|
|
1511
1622
|
const CardCategory = _ref => {
|
|
1512
1623
|
let {
|
|
1513
1624
|
iconName,
|
|
@@ -4667,12 +4778,14 @@ exports.AvatarIcon = AvatarIcon;
|
|
|
4667
4778
|
exports.AvatarPresence = AvatarPresence;
|
|
4668
4779
|
exports.AvatarStatus = AvatarStatus;
|
|
4669
4780
|
exports.AvatarWrapper = AvatarWrapper;
|
|
4781
|
+
exports.BackToTop = BackToTop;
|
|
4670
4782
|
exports.Badge = Badge;
|
|
4671
4783
|
exports.BottomNav = BottomNav;
|
|
4672
4784
|
exports.BottomNavItem = BottomNavItem;
|
|
4673
4785
|
exports.Breadcrumb = Breadcrumb;
|
|
4674
4786
|
exports.Button = Button;
|
|
4675
4787
|
exports.Callout = Callout;
|
|
4788
|
+
exports.CalloutMoreFooter = CalloutMoreFooter;
|
|
4676
4789
|
exports.CalloutText = CalloutText;
|
|
4677
4790
|
exports.CalloutTitle = CalloutTitle;
|
|
4678
4791
|
exports.Card = Card;
|