@zanichelli/albe-web-components 18.7.7 → 18.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/cjs/index-96af6326.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +6 -6
- package/dist/cjs/z-book-card.cjs.entry.js +15 -14
- package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
- package/dist/{components/placeholder-cover.js → cjs/z-book-cover.cjs.entry.js} +26 -2
- package/dist/cjs/z-book-cover.cjs.entry.js.map +1 -0
- package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-combobox.cjs.entry.js +1 -1
- package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +4 -4
- package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
- package/dist/cjs/z-logo.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
- package/dist/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-result-card.cjs.entry.js +6 -14
- package/dist/cjs/z-result-card.cjs.entry.js.map +1 -1
- package/dist/cjs/z-select.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/book-card/z-book-card/index.js +66 -29
- package/dist/collection/components/book-card/z-book-card/index.js.map +1 -1
- package/dist/collection/components/book-card/z-book-card/index.stories.js +11 -13
- package/dist/collection/components/book-card/z-book-card/index.stories.js.map +1 -1
- package/dist/collection/components/book-card/z-book-card/styles.css +35 -67
- package/dist/collection/components/z-book-cover/index.js +113 -0
- package/dist/collection/components/z-book-cover/index.js.map +1 -0
- package/dist/collection/components/z-book-cover/index.stories.js +31 -0
- package/dist/collection/components/z-book-cover/index.stories.js.map +1 -0
- package/dist/collection/components/z-book-cover/styles.css +95 -0
- package/dist/collection/components/z-breadcrumb/index.js +2 -2
- package/dist/collection/components/z-button-sort/index.js +1 -1
- package/dist/collection/components/z-chip/index.js +2 -2
- package/dist/collection/components/z-combobox/index.js +1 -1
- package/dist/collection/components/z-cover-hero/index.js +2 -2
- package/dist/collection/components/z-divider/index.js +1 -1
- package/dist/collection/components/z-ghost-loading/index.js +1 -1
- package/dist/collection/components/z-info-box/index.js +1 -1
- package/dist/collection/components/z-info-reveal/index.js +1 -1
- package/dist/collection/components/z-input/index.js +1 -1
- package/dist/collection/components/z-input-message/index.js +1 -1
- package/dist/collection/components/z-logo/index.js +1 -1
- package/dist/collection/components/z-modal/index.js +4 -4
- package/dist/collection/components/z-navigation-tabs/index.js +2 -2
- package/dist/collection/components/z-notification/index.js +1 -1
- package/dist/collection/components/z-offcanvas/index.js +2 -2
- package/dist/collection/components/z-panel-elem/index.js +2 -2
- package/dist/collection/components/z-popover/index.js +1 -1
- package/dist/collection/components/{result-card/z-result-card → z-result-card}/index.js +10 -18
- package/dist/collection/components/z-result-card/index.js.map +1 -0
- package/dist/collection/components/{result-card/z-result-card → z-result-card}/styles.css +39 -108
- package/dist/collection/components/z-result-card/z-result-card.stories.js.map +1 -0
- package/dist/collection/components/z-searchbar/index.js +1 -1
- package/dist/collection/components/z-select/index.js +1 -1
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-stepper/index.js +1 -1
- package/dist/collection/components/z-stepper-item/index.js +1 -1
- package/dist/collection/components/z-toast-notification/index.js +1 -1
- package/dist/collection/components/z-toast-notification-list/index.js +1 -1
- package/dist/collection/components/z-toggle-button/index.js +2 -2
- package/dist/collection/components/z-toggle-switch/index.js +3 -3
- package/dist/collection/components/z-tooltip/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/index10.js +24 -65
- package/dist/components/index10.js.map +1 -1
- package/dist/components/index11.js +58 -306
- package/dist/components/index11.js.map +1 -1
- package/dist/components/index12.js +311 -37
- package/dist/components/index12.js.map +1 -1
- package/dist/components/index13.js +40 -27
- package/dist/components/index13.js.map +1 -1
- package/dist/components/index14.js +23 -151
- package/dist/components/index14.js.map +1 -1
- package/dist/components/index15.js +144 -37
- package/dist/components/index15.js.map +1 -1
- package/dist/components/index16.js +42 -1008
- package/dist/components/index16.js.map +1 -1
- package/dist/components/index17.js +1012 -37
- package/dist/components/index17.js.map +1 -1
- package/dist/components/index18.js +42 -10
- package/dist/components/index18.js.map +1 -1
- package/dist/components/index19.js +10 -22
- package/dist/components/index19.js.map +1 -1
- package/dist/components/index20.js +16 -33
- package/dist/components/index20.js.map +1 -1
- package/dist/components/index21.js +39 -43
- package/dist/components/index21.js.map +1 -1
- package/dist/components/index22.js +44 -84
- package/dist/components/index22.js.map +1 -1
- package/dist/components/index23.js +60 -430
- package/dist/components/index23.js.map +1 -1
- package/dist/components/index24.js +415 -341
- package/dist/components/index24.js.map +1 -1
- package/dist/components/index25.js +376 -19
- package/dist/components/index25.js.map +1 -1
- package/dist/components/index26.js +45 -0
- package/dist/components/index26.js.map +1 -0
- package/dist/components/index3.js +1 -1
- package/dist/components/index4.js +23 -60
- package/dist/components/index4.js.map +1 -1
- package/dist/components/index5.js +53 -27
- package/dist/components/index5.js.map +1 -1
- package/dist/components/index6.js +34 -18
- package/dist/components/index6.js.map +1 -1
- package/dist/components/index7.js +18 -41
- package/dist/components/index7.js.map +1 -1
- package/dist/components/index8.js +41 -11
- package/dist/components/index8.js.map +1 -1
- package/dist/components/index9.js +10 -28
- package/dist/components/index9.js.map +1 -1
- package/dist/components/z-accordion.js +1 -1
- package/dist/components/z-anchor-navigation.js +2 -2
- package/dist/components/z-app-header-deprecated.js +11 -11
- package/dist/components/z-app-header.js +11 -11
- package/dist/components/z-book-card-app.js +2 -2
- package/dist/components/z-book-card-deprecated.js +1 -1
- package/dist/components/z-book-card.js +26 -17
- package/dist/components/z-book-card.js.map +1 -1
- package/dist/components/z-book-cover.d.ts +11 -0
- package/dist/components/z-book-cover.js +8 -0
- package/dist/components/z-book-cover.js.map +1 -0
- package/dist/components/z-breadcrumb.js +8 -8
- package/dist/components/z-button-sort.js +2 -2
- package/dist/components/z-button.js +1 -1
- package/dist/components/z-card.js +1 -1
- package/dist/components/z-carousel.js +3 -3
- package/dist/components/z-chip.js +1 -1
- package/dist/components/z-combobox.js +7 -7
- package/dist/components/z-cover-hero.js +2 -2
- package/dist/components/z-date-picker.js +3 -3
- package/dist/components/z-divider.js +1 -1
- package/dist/components/z-dragdrop-area.js +1 -1
- package/dist/components/z-file-upload.js +4 -4
- package/dist/components/z-file.js +3 -3
- package/dist/components/z-ghost-loading.js +1 -1
- package/dist/components/z-icon.js +1 -1
- package/dist/components/z-info-box.js +2 -2
- package/dist/components/z-info-reveal.js +1 -1
- package/dist/components/z-input-message.js +1 -1
- package/dist/components/z-input.js +1 -1
- package/dist/components/z-list-element.js +1 -1
- package/dist/components/z-list-group.js +1 -1
- package/dist/components/z-list.js +1 -1
- package/dist/components/z-logo.js +1 -1
- package/dist/components/z-menu-deprecated.js +1 -1
- package/dist/components/z-menu-section-deprecated.js +1 -1
- package/dist/components/z-menu-section.js +1 -1
- package/dist/components/z-menu.js +1 -1
- package/dist/components/z-modal.js +1 -1
- package/dist/components/z-myz-card-alert.js +2 -2
- package/dist/components/z-myz-card-body.js +1 -1
- package/dist/components/z-myz-card-cover.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +7 -7
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-header.js +1 -1
- package/dist/components/z-myz-card-icon.js +2 -2
- package/dist/components/z-myz-card-info.js +3 -3
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-card.js +1 -1
- package/dist/components/z-myz-list-item.js +1 -1
- package/dist/components/z-myz-list.js +3 -3
- package/dist/components/z-navigation-tabs.js +3 -3
- package/dist/components/z-notification.js +2 -2
- package/dist/components/z-offcanvas.js +1 -1
- package/dist/components/z-otp.js +4 -4
- package/dist/components/z-pagination.js +4 -4
- package/dist/components/z-panel-elem.js +3 -3
- package/dist/components/z-popover.js +1 -1
- package/dist/components/z-range-picker.js +3 -3
- package/dist/components/z-result-card.js +14 -16
- package/dist/components/z-result-card.js.map +1 -1
- package/dist/components/z-searchbar.js +1 -1
- package/dist/components/z-section-title.js +1 -1
- package/dist/components/z-select.js +9 -9
- package/dist/components/z-skip-to-content.js +1 -1
- package/dist/components/z-slideshow.js +1 -1
- package/dist/components/z-stepper-item.js +2 -2
- package/dist/components/z-stepper.js +1 -1
- package/dist/components/z-table.js +1 -1
- package/dist/components/z-tag.js +1 -1
- package/dist/components/z-td.js +3 -3
- package/dist/components/z-th.js +3 -3
- package/dist/components/z-toast-notification-list.js +1 -1
- package/dist/components/z-toast-notification.js +2 -2
- package/dist/components/z-toggle-button.js +3 -3
- package/dist/components/z-toggle-switch.js +4 -4
- package/dist/components/z-tooltip.js +2 -2
- package/dist/components/z-tr.js +2 -2
- package/dist/components/z-tree-list.js +4 -4
- package/dist/esm/index-c8ceadeb.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +6 -6
- package/dist/esm/z-book-card.entry.js +15 -14
- package/dist/esm/z-book-card.entry.js.map +1 -1
- package/dist/{cjs/placeholder-cover-b679e768.js → esm/z-book-cover.entry.js} +21 -3
- package/dist/esm/z-book-cover.entry.js.map +1 -0
- package/dist/esm/z-breadcrumb.entry.js +2 -2
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +1 -1
- package/dist/esm/z-cover-hero.entry.js +2 -2
- package/dist/esm/z-dragdrop-area_2.entry.js +4 -4
- package/dist/esm/z-ghost-loading.entry.js +1 -1
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +1 -1
- package/dist/esm/z-logo.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +4 -4
- package/dist/esm/z-myz-list-item.entry.js +1 -1
- package/dist/esm/z-myz-list.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +2 -2
- package/dist/esm/z-notification.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-panel-elem.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-result-card.entry.js +6 -14
- package/dist/esm/z-result-card.entry.js.map +1 -1
- package/dist/esm/z-select.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +1 -1
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +1 -1
- package/dist/esm/z-toggle-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +3 -3
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/types/components/book-card/z-book-card/index.d.ts +20 -16
- package/dist/types/components/book-card/z-book-card/index.stories.d.ts +2 -35
- package/dist/types/components/z-book-cover/index.d.ts +23 -0
- package/dist/types/components/z-book-cover/index.stories.d.ts +21 -0
- package/dist/types/components/{result-card/z-result-card → z-result-card}/index.d.ts +8 -26
- package/dist/types/components.d.ts +145 -44
- package/dist/web-components-library/{p-17259f80.entry.js → p-01f941c2.entry.js} +2 -2
- package/{www/build/p-a4e26cad.entry.js → dist/web-components-library/p-028dd72a.entry.js} +2 -2
- package/{www/build/p-fef12692.entry.js → dist/web-components-library/p-0990d475.entry.js} +2 -2
- package/dist/web-components-library/{p-fa9c35b7.entry.js → p-0a49dd1c.entry.js} +2 -2
- package/dist/web-components-library/{p-7faf6680.entry.js → p-240de9aa.entry.js} +2 -2
- package/dist/web-components-library/p-28534fb5.entry.js +2 -0
- package/dist/web-components-library/{p-755e5bb3.entry.js → p-28d83c86.entry.js} +2 -2
- package/dist/web-components-library/{p-04f578d3.entry.js → p-2ffdfbb1.entry.js} +2 -2
- package/dist/web-components-library/p-31bd2a1c.entry.js +2 -0
- package/dist/web-components-library/p-31bd2a1c.entry.js.map +1 -0
- package/dist/web-components-library/{p-da6ba08a.entry.js → p-460b2068.entry.js} +2 -2
- package/dist/web-components-library/{p-bfa7b528.entry.js → p-46ea0b2e.entry.js} +2 -2
- package/{www/build/p-add09050.entry.js → dist/web-components-library/p-4a257653.entry.js} +2 -2
- package/{www/build/p-d3a51980.entry.js → dist/web-components-library/p-4aaf0172.entry.js} +2 -2
- package/dist/web-components-library/{p-22056263.entry.js → p-4affbb99.entry.js} +2 -2
- package/dist/web-components-library/{p-9f516be2.entry.js → p-5989465b.entry.js} +2 -2
- package/dist/web-components-library/{p-1775f79b.entry.js → p-5a1f98a2.entry.js} +2 -2
- package/dist/web-components-library/{p-a25c7fdb.entry.js → p-5c5882c6.entry.js} +2 -2
- package/dist/web-components-library/{p-a80faa78.entry.js → p-5f94986f.entry.js} +2 -2
- package/dist/web-components-library/p-6cff173f.entry.js +2 -0
- package/dist/web-components-library/p-6cffbabc.entry.js +2 -0
- package/{www/build/p-5f231799.entry.js.map → dist/web-components-library/p-6cffbabc.entry.js.map} +1 -1
- package/dist/web-components-library/{p-9e3116b0.entry.js → p-7194003a.entry.js} +2 -2
- package/{www/build/p-9de4915b.entry.js → dist/web-components-library/p-78146cef.entry.js} +2 -2
- package/dist/web-components-library/{p-f39f6ee8.entry.js → p-7a4f6a5b.entry.js} +2 -2
- package/dist/web-components-library/{p-945928ff.entry.js → p-7ceddb7a.entry.js} +2 -2
- package/dist/web-components-library/{p-50b800e6.entry.js → p-86160fe3.entry.js} +2 -2
- package/dist/web-components-library/{p-2105d5ec.entry.js → p-863fd1c4.entry.js} +2 -2
- package/dist/web-components-library/p-8fc213c2.entry.js +2 -0
- package/{www/build/p-b0f80e50.entry.js.map → dist/web-components-library/p-8fc213c2.entry.js.map} +1 -1
- package/dist/web-components-library/{p-70aa0b22.entry.js → p-943db3a8.entry.js} +2 -2
- package/dist/web-components-library/{p-6d2a6434.entry.js → p-94916bdf.entry.js} +2 -2
- package/dist/web-components-library/{p-8e5bc362.entry.js → p-a2e87cec.entry.js} +2 -2
- package/dist/web-components-library/{p-fe663393.entry.js → p-ac477ae7.entry.js} +2 -2
- package/dist/web-components-library/p-af5e8524.entry.js +2 -0
- package/dist/web-components-library/{p-fb78c343.entry.js → p-b3f1b5c1.entry.js} +2 -2
- package/dist/web-components-library/{p-6ebaa41d.entry.js → p-d60684d5.entry.js} +2 -2
- package/dist/web-components-library/{p-2264883d.entry.js → p-dc086eb5.entry.js} +2 -2
- package/dist/web-components-library/{p-f3287280.entry.js → p-e0b88075.entry.js} +2 -2
- package/dist/web-components-library/p-e4bb1256.entry.js +2 -0
- package/dist/web-components-library/p-e4bb1256.entry.js.map +1 -0
- package/dist/web-components-library/{p-7eb0e121.entry.js → p-f487290e.entry.js} +2 -2
- package/dist/web-components-library/p-f4bac89b.entry.js +2 -0
- package/dist/web-components-library/p-f4bac89b.entry.js.map +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +3 -2
- package/react/components.js.map +1 -1
- package/www/build/{p-17259f80.entry.js → p-01f941c2.entry.js} +2 -2
- package/{dist/web-components-library/p-a4e26cad.entry.js → www/build/p-028dd72a.entry.js} +2 -2
- package/{dist/web-components-library/p-fef12692.entry.js → www/build/p-0990d475.entry.js} +2 -2
- package/www/build/{p-fa9c35b7.entry.js → p-0a49dd1c.entry.js} +2 -2
- package/www/build/{p-7faf6680.entry.js → p-240de9aa.entry.js} +2 -2
- package/www/build/p-28534fb5.entry.js +2 -0
- package/www/build/{p-755e5bb3.entry.js → p-28d83c86.entry.js} +2 -2
- package/www/build/{p-04f578d3.entry.js → p-2ffdfbb1.entry.js} +2 -2
- package/www/build/p-31bd2a1c.entry.js +2 -0
- package/www/build/p-31bd2a1c.entry.js.map +1 -0
- package/www/build/{p-da6ba08a.entry.js → p-460b2068.entry.js} +2 -2
- package/www/build/{p-bfa7b528.entry.js → p-46ea0b2e.entry.js} +2 -2
- package/{dist/web-components-library/p-add09050.entry.js → www/build/p-4a257653.entry.js} +2 -2
- package/{dist/web-components-library/p-d3a51980.entry.js → www/build/p-4aaf0172.entry.js} +2 -2
- package/www/build/{p-22056263.entry.js → p-4affbb99.entry.js} +2 -2
- package/www/build/{p-9f516be2.entry.js → p-5989465b.entry.js} +2 -2
- package/www/build/{p-1775f79b.entry.js → p-5a1f98a2.entry.js} +2 -2
- package/www/build/{p-a25c7fdb.entry.js → p-5c5882c6.entry.js} +2 -2
- package/www/build/{p-a80faa78.entry.js → p-5f94986f.entry.js} +2 -2
- package/www/build/p-6cff173f.entry.js +2 -0
- package/www/build/p-6cffbabc.entry.js +2 -0
- package/{dist/web-components-library/p-5f231799.entry.js.map → www/build/p-6cffbabc.entry.js.map} +1 -1
- package/www/build/{p-9e3116b0.entry.js → p-7194003a.entry.js} +2 -2
- package/{dist/web-components-library/p-9de4915b.entry.js → www/build/p-78146cef.entry.js} +2 -2
- package/www/build/{p-f39f6ee8.entry.js → p-7a4f6a5b.entry.js} +2 -2
- package/www/build/{p-945928ff.entry.js → p-7ceddb7a.entry.js} +2 -2
- package/www/build/{p-50b800e6.entry.js → p-86160fe3.entry.js} +2 -2
- package/www/build/{p-2105d5ec.entry.js → p-863fd1c4.entry.js} +2 -2
- package/www/build/p-8fc213c2.entry.js +2 -0
- package/{dist/web-components-library/p-b0f80e50.entry.js.map → www/build/p-8fc213c2.entry.js.map} +1 -1
- package/www/build/{p-70aa0b22.entry.js → p-943db3a8.entry.js} +2 -2
- package/www/build/{p-6d2a6434.entry.js → p-94916bdf.entry.js} +2 -2
- package/www/build/{p-8e5bc362.entry.js → p-a2e87cec.entry.js} +2 -2
- package/www/build/{p-fe663393.entry.js → p-ac477ae7.entry.js} +2 -2
- package/www/build/p-af5e8524.entry.js +2 -0
- package/www/build/{p-fb78c343.entry.js → p-b3f1b5c1.entry.js} +2 -2
- package/www/build/p-b716b49c.js +2 -0
- package/www/build/{p-6ebaa41d.entry.js → p-d60684d5.entry.js} +2 -2
- package/www/build/{p-2264883d.entry.js → p-dc086eb5.entry.js} +2 -2
- package/www/build/{p-f3287280.entry.js → p-e0b88075.entry.js} +2 -2
- package/www/build/p-e4bb1256.entry.js +2 -0
- package/www/build/p-e4bb1256.entry.js.map +1 -0
- package/www/build/{p-7eb0e121.entry.js → p-f487290e.entry.js} +2 -2
- package/www/build/p-f4bac89b.entry.js +2 -0
- package/www/build/p-f4bac89b.entry.js.map +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.esm.js.map +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/placeholder-cover-b679e768.js.map +0 -1
- package/dist/collection/components/result-card/z-result-card/index.js.map +0 -1
- package/dist/collection/components/result-card/z-result-card/z-result-card.stories.js.map +0 -1
- package/dist/components/placeholder-cover.js.map +0 -1
- package/dist/esm/placeholder-cover-9346be8f.js +0 -5
- package/dist/esm/placeholder-cover-9346be8f.js.map +0 -1
- package/dist/web-components-library/p-165d5acc.entry.js +0 -2
- package/dist/web-components-library/p-165d5acc.entry.js.map +0 -1
- package/dist/web-components-library/p-5f231799.entry.js +0 -2
- package/dist/web-components-library/p-75d50d5f.entry.js +0 -2
- package/dist/web-components-library/p-8d923a1d.js +0 -2
- package/dist/web-components-library/p-8d923a1d.js.map +0 -1
- package/dist/web-components-library/p-970de597.entry.js +0 -2
- package/dist/web-components-library/p-abd17b10.entry.js +0 -2
- package/dist/web-components-library/p-abd17b10.entry.js.map +0 -1
- package/dist/web-components-library/p-b0f80e50.entry.js +0 -2
- package/dist/web-components-library/p-e0320349.entry.js +0 -2
- package/www/build/p-165d5acc.entry.js +0 -2
- package/www/build/p-165d5acc.entry.js.map +0 -1
- package/www/build/p-29dcbeae.js +0 -2
- package/www/build/p-5f231799.entry.js +0 -2
- package/www/build/p-75d50d5f.entry.js +0 -2
- package/www/build/p-8d923a1d.js +0 -2
- package/www/build/p-8d923a1d.js.map +0 -1
- package/www/build/p-970de597.entry.js +0 -2
- package/www/build/p-abd17b10.entry.js +0 -2
- package/www/build/p-abd17b10.entry.js.map +0 -1
- package/www/build/p-b0f80e50.entry.js +0 -2
- package/www/build/p-e0320349.entry.js +0 -2
- /package/dist/collection/components/{result-card/z-result-card → z-result-card}/z-result-card.stories.js +0 -0
- /package/dist/types/components/{result-card/z-result-card → z-result-card}/z-result-card.stories.d.ts +0 -0
- /package/dist/web-components-library/{p-17259f80.entry.js.map → p-01f941c2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a4e26cad.entry.js.map → p-028dd72a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fef12692.entry.js.map → p-0990d475.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fa9c35b7.entry.js.map → p-0a49dd1c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7faf6680.entry.js.map → p-240de9aa.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-970de597.entry.js.map → p-28534fb5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-755e5bb3.entry.js.map → p-28d83c86.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-04f578d3.entry.js.map → p-2ffdfbb1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-da6ba08a.entry.js.map → p-460b2068.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-bfa7b528.entry.js.map → p-46ea0b2e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-add09050.entry.js.map → p-4a257653.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d3a51980.entry.js.map → p-4aaf0172.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-22056263.entry.js.map → p-4affbb99.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9f516be2.entry.js.map → p-5989465b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1775f79b.entry.js.map → p-5a1f98a2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a25c7fdb.entry.js.map → p-5c5882c6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a80faa78.entry.js.map → p-5f94986f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e0320349.entry.js.map → p-6cff173f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9e3116b0.entry.js.map → p-7194003a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9de4915b.entry.js.map → p-78146cef.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f39f6ee8.entry.js.map → p-7a4f6a5b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-945928ff.entry.js.map → p-7ceddb7a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-50b800e6.entry.js.map → p-86160fe3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2105d5ec.entry.js.map → p-863fd1c4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-70aa0b22.entry.js.map → p-943db3a8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6d2a6434.entry.js.map → p-94916bdf.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8e5bc362.entry.js.map → p-a2e87cec.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fe663393.entry.js.map → p-ac477ae7.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-75d50d5f.entry.js.map → p-af5e8524.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fb78c343.entry.js.map → p-b3f1b5c1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6ebaa41d.entry.js.map → p-d60684d5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2264883d.entry.js.map → p-dc086eb5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f3287280.entry.js.map → p-e0b88075.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7eb0e121.entry.js.map → p-f487290e.entry.js.map} +0 -0
- /package/www/build/{p-17259f80.entry.js.map → p-01f941c2.entry.js.map} +0 -0
- /package/www/build/{p-a4e26cad.entry.js.map → p-028dd72a.entry.js.map} +0 -0
- /package/www/build/{p-fef12692.entry.js.map → p-0990d475.entry.js.map} +0 -0
- /package/www/build/{p-fa9c35b7.entry.js.map → p-0a49dd1c.entry.js.map} +0 -0
- /package/www/build/{p-7faf6680.entry.js.map → p-240de9aa.entry.js.map} +0 -0
- /package/www/build/{p-970de597.entry.js.map → p-28534fb5.entry.js.map} +0 -0
- /package/www/build/{p-755e5bb3.entry.js.map → p-28d83c86.entry.js.map} +0 -0
- /package/www/build/{p-04f578d3.entry.js.map → p-2ffdfbb1.entry.js.map} +0 -0
- /package/www/build/{p-da6ba08a.entry.js.map → p-460b2068.entry.js.map} +0 -0
- /package/www/build/{p-bfa7b528.entry.js.map → p-46ea0b2e.entry.js.map} +0 -0
- /package/www/build/{p-add09050.entry.js.map → p-4a257653.entry.js.map} +0 -0
- /package/www/build/{p-d3a51980.entry.js.map → p-4aaf0172.entry.js.map} +0 -0
- /package/www/build/{p-22056263.entry.js.map → p-4affbb99.entry.js.map} +0 -0
- /package/www/build/{p-9f516be2.entry.js.map → p-5989465b.entry.js.map} +0 -0
- /package/www/build/{p-1775f79b.entry.js.map → p-5a1f98a2.entry.js.map} +0 -0
- /package/www/build/{p-a25c7fdb.entry.js.map → p-5c5882c6.entry.js.map} +0 -0
- /package/www/build/{p-a80faa78.entry.js.map → p-5f94986f.entry.js.map} +0 -0
- /package/www/build/{p-e0320349.entry.js.map → p-6cff173f.entry.js.map} +0 -0
- /package/www/build/{p-9e3116b0.entry.js.map → p-7194003a.entry.js.map} +0 -0
- /package/www/build/{p-9de4915b.entry.js.map → p-78146cef.entry.js.map} +0 -0
- /package/www/build/{p-f39f6ee8.entry.js.map → p-7a4f6a5b.entry.js.map} +0 -0
- /package/www/build/{p-945928ff.entry.js.map → p-7ceddb7a.entry.js.map} +0 -0
- /package/www/build/{p-50b800e6.entry.js.map → p-86160fe3.entry.js.map} +0 -0
- /package/www/build/{p-2105d5ec.entry.js.map → p-863fd1c4.entry.js.map} +0 -0
- /package/www/build/{p-70aa0b22.entry.js.map → p-943db3a8.entry.js.map} +0 -0
- /package/www/build/{p-6d2a6434.entry.js.map → p-94916bdf.entry.js.map} +0 -0
- /package/www/build/{p-8e5bc362.entry.js.map → p-a2e87cec.entry.js.map} +0 -0
- /package/www/build/{p-fe663393.entry.js.map → p-ac477ae7.entry.js.map} +0 -0
- /package/www/build/{p-75d50d5f.entry.js.map → p-af5e8524.entry.js.map} +0 -0
- /package/www/build/{p-fb78c343.entry.js.map → p-b3f1b5c1.entry.js.map} +0 -0
- /package/www/build/{p-6ebaa41d.entry.js.map → p-d60684d5.entry.js.map} +0 -0
- /package/www/build/{p-2264883d.entry.js.map → p-dc086eb5.entry.js.map} +0 -0
- /package/www/build/{p-f3287280.entry.js.map → p-e0b88075.entry.js.map} +0 -0
- /package/www/build/{p-7eb0e121.entry.js.map → p-f487290e.entry.js.map} +0 -0
|
@@ -10,23 +10,16 @@ const StoryMeta = {
|
|
|
10
10
|
title: "ZBookCard/ZBookCard",
|
|
11
11
|
component: "z-book-card",
|
|
12
12
|
argTypes: {
|
|
13
|
-
|
|
13
|
+
variant: {
|
|
14
14
|
control: {
|
|
15
15
|
type: "inline-radio",
|
|
16
16
|
},
|
|
17
17
|
options: Object.values(BookCardVariant),
|
|
18
18
|
},
|
|
19
|
-
"--z-book-card-portrait-cover-height": { control: { type: "text" } },
|
|
20
|
-
"--z-book-card-title-lines": { control: { type: "text" } },
|
|
21
|
-
"--z-book-card-title-word-break": { control: { type: "text" } },
|
|
22
|
-
"--z-book-card-subtitle-lines": { control: { type: "text" } },
|
|
23
|
-
"--z-book-card-subtitle-word-break": { control: { type: "text" } },
|
|
24
|
-
"--z-book-card-authors-lines": { control: { type: "text" } },
|
|
25
|
-
"--z-book-card-authors-word-break": { control: { type: "text" } },
|
|
26
19
|
},
|
|
27
20
|
args: {
|
|
28
21
|
"variant": BookCardVariant.LANDSCAPE,
|
|
29
|
-
"cover": "https://staticmy.zanichelli.it/
|
|
22
|
+
"cover": "https://staticmy.zanichelli.it/copertine/dashboard/m40002.9788808999825.jpg",
|
|
30
23
|
"operaTitle": "Matematica.azzurro",
|
|
31
24
|
"volumeTitle": "Volume 3 con Tutor",
|
|
32
25
|
"authors": "Massimo Bergamini, Anna Trifone, Graziella Barozzi",
|
|
@@ -35,7 +28,9 @@ const StoryMeta = {
|
|
|
35
28
|
"year": "2025",
|
|
36
29
|
"ebookUrl": "https://www.zanichelli.it/ricerca",
|
|
37
30
|
"fallbackCover": "https://staticmy.zanichelli.it/copertine/dashboard/Dashboard_Book_Placeholder.jpg",
|
|
38
|
-
"titleHtmlTag":
|
|
31
|
+
"titleHtmlTag": undefined,
|
|
32
|
+
"hasMultipleCovers": false,
|
|
33
|
+
"linkTarget": "_blank",
|
|
39
34
|
"--z-book-card-portrait-cover-height": "378px",
|
|
40
35
|
"--z-book-card-title-lines": "2",
|
|
41
36
|
"--z-book-card-title-word-break": "initial",
|
|
@@ -48,7 +43,7 @@ const StoryMeta = {
|
|
|
48
43
|
export default StoryMeta;
|
|
49
44
|
export const Card = {
|
|
50
45
|
render: (args) => html `<z-book-card
|
|
51
|
-
variant=${args.variant}
|
|
46
|
+
.variant=${args.variant}
|
|
52
47
|
cover=${args.cover}
|
|
53
48
|
authors=${args.authors}
|
|
54
49
|
opera-title=${args.operaTitle}
|
|
@@ -59,6 +54,8 @@ export const Card = {
|
|
|
59
54
|
ebook-url=${args.ebookUrl}
|
|
60
55
|
fallback-cover=${args.fallbackCover}
|
|
61
56
|
title-html-tag=${args.titleHtmlTag}
|
|
57
|
+
.hasMultipleCovers=${args.hasMultipleCovers}
|
|
58
|
+
link-target=${args.linkTarget}
|
|
62
59
|
style=${styleMap({
|
|
63
60
|
"--z-book-card-portrait-cover-height": args["--z-book-card-portrait-cover-height"],
|
|
64
61
|
"--z-book-card-title-lines": args["--z-book-card-title-lines"],
|
|
@@ -73,7 +70,7 @@ export const Card = {
|
|
|
73
70
|
export const WithSlottedContent = {
|
|
74
71
|
render: (args) => html `<z-book-card
|
|
75
72
|
variant=${args.variant}
|
|
76
|
-
cover=${args.cover}
|
|
73
|
+
.cover=${args.cover}
|
|
77
74
|
authors=${args.authors}
|
|
78
75
|
opera-title=${args.operaTitle}
|
|
79
76
|
volume-title=${args.volumeTitle}
|
|
@@ -83,6 +80,8 @@ export const WithSlottedContent = {
|
|
|
83
80
|
ebook-url=${args.ebookUrl}
|
|
84
81
|
fallback-cover=${args.fallbackCover}
|
|
85
82
|
title-html-tag=${args.titleHtmlTag}
|
|
83
|
+
.hasMultipleCovers=${args.hasMultipleCovers}
|
|
84
|
+
link-target=${args.linkTarget}
|
|
86
85
|
style=${styleMap({
|
|
87
86
|
"--z-book-card-portrait-cover-height": args["--z-book-card-portrait-cover-height"],
|
|
88
87
|
"--z-book-card-title-lines": args["--z-book-card-title-lines"],
|
|
@@ -155,7 +154,6 @@ export const WithSlottedContent = {
|
|
|
155
154
|
<div
|
|
156
155
|
slot="coverOverlay"
|
|
157
156
|
class="body-4-sb"
|
|
158
|
-
style="text-align: center; padding: 16px 0;"
|
|
159
157
|
>
|
|
160
158
|
ANTEPRIMA DEL LIBRO SENZA RISORSE MULTIMEDIALI
|
|
161
159
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../../src/components/book-card/z-book-card/index.stories.ts"],"names":[],"mappings":"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","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {styleMap} from \"lit/directives/style-map.js\";\nimport {ZBookCard} from \".\";\nimport {BookCardVariant} from \"../../../beans\";\nimport {CSSVarsArguments} from \"../../../utils/storybook-utils\";\nimport \"../../z-button/index\";\nimport \"../../z-icon/index\";\nimport \"../../z-tag/index\";\nimport \"../z-book-card-app/index\";\nimport \"./index\";\n\ntype ZBookCardStoriesArgs = ZBookCard &\n CSSVarsArguments<\n | \"--z-book-card-portrait-cover-height\"\n | \"--z-book-card-title-lines\"\n | \"--z-book-card-title-word-break\"\n | \"--z-book-card-subtitle-lines\"\n | \"--z-book-card-subtitle-word-break\"\n | \"--z-book-card-authors-lines\"\n | \"--z-book-card-authors-word-break\"\n >;\n\nconst StoryMeta = {\n title: \"ZBookCard/ZBookCard\",\n component: \"z-book-card\",\n argTypes: {\n \"variant\": {\n control: {\n type: \"inline-radio\",\n },\n options: Object.values(BookCardVariant),\n },\n \"--z-book-card-portrait-cover-height\": {control: {type: \"text\"}},\n \"--z-book-card-title-lines\": {control: {type: \"text\"}},\n \"--z-book-card-title-word-break\": {control: {type: \"text\"}},\n \"--z-book-card-subtitle-lines\": {control: {type: \"text\"}},\n \"--z-book-card-subtitle-word-break\": {control: {type: \"text\"}},\n \"--z-book-card-authors-lines\": {control: {type: \"text\"}},\n \"--z-book-card-authors-word-break\": {control: {type: \"text\"}},\n },\n args: {\n \"variant\": BookCardVariant.LANDSCAPE,\n \"cover\": \"https://staticmy.zanichelli.it/catalogo/assets/m40001.9788808490056.jpg\",\n \"operaTitle\": \"Matematica.azzurro\",\n \"volumeTitle\": \"Volume 3 con Tutor\",\n \"authors\": \"Massimo Bergamini, Anna Trifone, Graziella Barozzi\",\n \"isbn\": \"9788808930552\",\n \"isbnLabel\": \"(ed. cartacea)\",\n \"year\": \"2025\",\n \"ebookUrl\": \"https://www.zanichelli.it/ricerca\",\n \"fallbackCover\": \"https://staticmy.zanichelli.it/copertine/dashboard/Dashboard_Book_Placeholder.jpg\",\n \"titleHtmlTag\": null,\n \"--z-book-card-portrait-cover-height\": \"378px\",\n \"--z-book-card-title-lines\": \"2\",\n \"--z-book-card-title-word-break\": \"initial\",\n \"--z-book-card-subtitle-lines\": \"1\",\n \"--z-book-card-subtitle-word-break\": \"break-all\",\n \"--z-book-card-authors-lines\": \"1\",\n \"--z-book-card-authors-word-break\": \"break-all\",\n },\n} satisfies Meta<ZBookCardStoriesArgs>;\n\nexport default StoryMeta;\n\ntype Story = StoryObj<ZBookCardStoriesArgs>;\n\nexport const Card = {\n render: (args) =>\n html`<z-book-card\n variant=${args.variant}\n cover=${args.cover}\n authors=${args.authors}\n opera-title=${args.operaTitle}\n volume-title=${args.volumeTitle}\n isbn=${args.isbn}\n isbn-label=${args.isbnLabel}\n year=${args.year}\n ebook-url=${args.ebookUrl}\n fallback-cover=${args.fallbackCover}\n title-html-tag=${args.titleHtmlTag}\n style=${styleMap({\n \"--z-book-card-portrait-cover-height\": args[\"--z-book-card-portrait-cover-height\"],\n \"--z-book-card-title-lines\": args[\"--z-book-card-title-lines\"],\n \"--z-book-card-title-word-break\": args[\"--z-book-card-title-word-break\"],\n \"--z-book-card-subtitle-lines\": args[\"--z-book-card-subtitle-lines\"],\n \"--z-book-card-subtitle-word-break\": args[\"--z-book-card-subtitle-word-break\"],\n \"--z-book-card-authors-lines\": args[\"--z-book-card-authors-lines\"],\n \"--z-book-card-authors-word-break\": args[\"--z-book-card-authors-word-break\"],\n })}\n ></z-book-card>`,\n} satisfies Story;\n\nexport const WithSlottedContent = {\n render: (args) =>\n html`<z-book-card\n variant=${args.variant}\n cover=${args.cover}\n authors=${args.authors}\n opera-title=${args.operaTitle}\n volume-title=${args.volumeTitle}\n isbn=${args.isbn}\n isbn-label=${args.isbnLabel}\n year=${args.year}\n ebook-url=${args.ebookUrl}\n fallback-cover=${args.fallbackCover}\n title-html-tag=${args.titleHtmlTag}\n style=${styleMap({\n \"--z-book-card-portrait-cover-height\": args[\"--z-book-card-portrait-cover-height\"],\n \"--z-book-card-title-lines\": args[\"--z-book-card-title-lines\"],\n \"--z-book-card-title-word-break\": args[\"--z-book-card-title-word-break\"],\n \"--z-book-card-subtitle-lines\": args[\"--z-book-card-subtitle-lines\"],\n \"--z-book-card-subtitle-word-break\": args[\"--z-book-card-subtitle-word-break\"],\n \"--z-book-card-authors-lines\": args[\"--z-book-card-authors-lines\"],\n \"--z-book-card-authors-word-break\": args[\"--z-book-card-authors-word-break\"],\n })}\n >\n <div slot=\"cta\">\n <z-icon\n style=\"cursor: pointer; fill: var(--blue500);\"\n name=\"star-full\"\n width=\"20\"\n height=\"20\"\n ></z-icon>\n </div>\n\n <div slot=\"ebook\">\n <z-button\n variant=\"primary\"\n size=\"x-small\"\n >custom ebook button</z-button\n >\n </div>\n\n <div slot=\"tags\">\n <z-tag style=\"--z-tag-bg: var(--gray500);\">EDIZIONE DIGITALE INSEGNANTE</z-tag>\n <z-tag style=\"--z-tag-bg: var(--blue50); --z-tag-text-color: var(--gray950);\">BES</z-tag>\n </div>\n\n <div slot=\"data\">\n <a\n href=\"https://www.zanichelli.it\"\n class=\"catalog-link z-link z-link-blue z-link-icon body-4-sb\"\n >Scheda catalogo\n <z-icon\n name=\"arrow-quad-north-east\"\n width=\"14\"\n height=\"14\"\n ></z-icon>\n </a>\n <div\n class=\"body-5-sb\"\n style=\"padding: calc(var(--space-unit) / 2) var(--space-unit); background-color: var(--green100); border-radius: 100px;\"\n >\n ADOTTATO\n </div>\n </div>\n\n <div\n slot=\"apps\"\n style=\"display: flex; flex-wrap: wrap;\"\n >\n <z-book-card-app\n icon=\"https://placehold.co/24\"\n name=\"Tutor di matematica matematica\"\n info=\"test test\"\n link=\"http://localhost\"\n ></z-book-card-app>\n <z-book-card-app\n icon=\"https://placehold.co/24\"\n name=\"Esercizi\"\n info=\"test test\"\n link=\"http://localhost\"\n ></z-book-card-app>\n </div>\n\n <div\n slot=\"coverOverlay\"\n class=\"body-4-sb\"\n style=\"text-align: center; padding: 16px 0;\"\n >\n ANTEPRIMA DEL LIBRO SENZA RISORSE MULTIMEDIALI\n </div>\n\n <style>\n z-book-card-app {\n --z-book-card-app-padding-x: 8px;\n width: 100%;\n max-width: 100%;\n height: 47px;\n\n @media (min-width: 768px) {\n --z-book-card-app-padding-x: 16px;\n width: 315px;\n }\n }\n </style>\n </z-book-card>`,\n} satisfies Story;\n"]}
|
|
1
|
+
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../../src/components/book-card/z-book-card/index.stories.ts"],"names":[],"mappings":"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","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {styleMap} from \"lit/directives/style-map.js\";\nimport {ZBookCard} from \".\";\nimport {BookCardVariant} from \"../../../beans\";\nimport {CSSVarsArguments} from \"../../../utils/storybook-utils\";\nimport \"../../z-button/index\";\nimport \"../../z-icon/index\";\nimport \"../../z-tag/index\";\nimport \"../z-book-card-app/index\";\nimport \"./index\";\n\ntype ZBookCardStoriesArgs = ZBookCard &\n CSSVarsArguments<\n | \"--z-book-card-portrait-cover-height\"\n | \"--z-book-card-title-lines\"\n | \"--z-book-card-title-word-break\"\n | \"--z-book-card-subtitle-lines\"\n | \"--z-book-card-subtitle-word-break\"\n | \"--z-book-card-authors-lines\"\n | \"--z-book-card-authors-word-break\"\n >;\n\nconst StoryMeta = {\n title: \"ZBookCard/ZBookCard\",\n component: \"z-book-card\",\n argTypes: {\n variant: {\n control: {\n type: \"inline-radio\",\n },\n options: Object.values(BookCardVariant),\n },\n },\n args: {\n \"variant\": BookCardVariant.LANDSCAPE,\n \"cover\": \"https://staticmy.zanichelli.it/copertine/dashboard/m40002.9788808999825.jpg\",\n \"operaTitle\": \"Matematica.azzurro\",\n \"volumeTitle\": \"Volume 3 con Tutor\",\n \"authors\": \"Massimo Bergamini, Anna Trifone, Graziella Barozzi\",\n \"isbn\": \"9788808930552\",\n \"isbnLabel\": \"(ed. cartacea)\",\n \"year\": \"2025\",\n \"ebookUrl\": \"https://www.zanichelli.it/ricerca\",\n \"fallbackCover\": \"https://staticmy.zanichelli.it/copertine/dashboard/Dashboard_Book_Placeholder.jpg\",\n \"titleHtmlTag\": undefined,\n \"hasMultipleCovers\": false,\n \"linkTarget\": \"_blank\",\n \"--z-book-card-portrait-cover-height\": \"378px\",\n \"--z-book-card-title-lines\": \"2\",\n \"--z-book-card-title-word-break\": \"initial\",\n \"--z-book-card-subtitle-lines\": \"1\",\n \"--z-book-card-subtitle-word-break\": \"break-all\",\n \"--z-book-card-authors-lines\": \"1\",\n \"--z-book-card-authors-word-break\": \"break-all\",\n },\n} satisfies Meta<ZBookCardStoriesArgs>;\n\nexport default StoryMeta;\n\ntype Story = StoryObj<ZBookCardStoriesArgs>;\n\nexport const Card = {\n render: (args) =>\n html`<z-book-card\n .variant=${args.variant}\n cover=${args.cover}\n authors=${args.authors}\n opera-title=${args.operaTitle}\n volume-title=${args.volumeTitle}\n isbn=${args.isbn}\n isbn-label=${args.isbnLabel}\n year=${args.year}\n ebook-url=${args.ebookUrl}\n fallback-cover=${args.fallbackCover}\n title-html-tag=${args.titleHtmlTag}\n .hasMultipleCovers=${args.hasMultipleCovers}\n link-target=${args.linkTarget}\n style=${styleMap({\n \"--z-book-card-portrait-cover-height\": args[\"--z-book-card-portrait-cover-height\"],\n \"--z-book-card-title-lines\": args[\"--z-book-card-title-lines\"],\n \"--z-book-card-title-word-break\": args[\"--z-book-card-title-word-break\"],\n \"--z-book-card-subtitle-lines\": args[\"--z-book-card-subtitle-lines\"],\n \"--z-book-card-subtitle-word-break\": args[\"--z-book-card-subtitle-word-break\"],\n \"--z-book-card-authors-lines\": args[\"--z-book-card-authors-lines\"],\n \"--z-book-card-authors-word-break\": args[\"--z-book-card-authors-word-break\"],\n })}\n ></z-book-card>`,\n} satisfies Story;\n\nexport const WithSlottedContent = {\n render: (args) =>\n html`<z-book-card\n variant=${args.variant}\n .cover=${args.cover}\n authors=${args.authors}\n opera-title=${args.operaTitle}\n volume-title=${args.volumeTitle}\n isbn=${args.isbn}\n isbn-label=${args.isbnLabel}\n year=${args.year}\n ebook-url=${args.ebookUrl}\n fallback-cover=${args.fallbackCover}\n title-html-tag=${args.titleHtmlTag}\n .hasMultipleCovers=${args.hasMultipleCovers}\n link-target=${args.linkTarget}\n style=${styleMap({\n \"--z-book-card-portrait-cover-height\": args[\"--z-book-card-portrait-cover-height\"],\n \"--z-book-card-title-lines\": args[\"--z-book-card-title-lines\"],\n \"--z-book-card-title-word-break\": args[\"--z-book-card-title-word-break\"],\n \"--z-book-card-subtitle-lines\": args[\"--z-book-card-subtitle-lines\"],\n \"--z-book-card-subtitle-word-break\": args[\"--z-book-card-subtitle-word-break\"],\n \"--z-book-card-authors-lines\": args[\"--z-book-card-authors-lines\"],\n \"--z-book-card-authors-word-break\": args[\"--z-book-card-authors-word-break\"],\n })}\n >\n <div slot=\"cta\">\n <z-icon\n style=\"cursor: pointer; fill: var(--blue500);\"\n name=\"star-full\"\n width=\"20\"\n height=\"20\"\n ></z-icon>\n </div>\n\n <div slot=\"ebook\">\n <z-button\n variant=\"primary\"\n size=\"x-small\"\n >custom ebook button</z-button\n >\n </div>\n\n <div slot=\"tags\">\n <z-tag style=\"--z-tag-bg: var(--gray500);\">EDIZIONE DIGITALE INSEGNANTE</z-tag>\n <z-tag style=\"--z-tag-bg: var(--blue50); --z-tag-text-color: var(--gray950);\">BES</z-tag>\n </div>\n\n <div slot=\"data\">\n <a\n href=\"https://www.zanichelli.it\"\n class=\"catalog-link z-link z-link-blue z-link-icon body-4-sb\"\n >Scheda catalogo\n <z-icon\n name=\"arrow-quad-north-east\"\n width=\"14\"\n height=\"14\"\n ></z-icon>\n </a>\n <div\n class=\"body-5-sb\"\n style=\"padding: calc(var(--space-unit) / 2) var(--space-unit); background-color: var(--green100); border-radius: 100px;\"\n >\n ADOTTATO\n </div>\n </div>\n\n <div\n slot=\"apps\"\n style=\"display: flex; flex-wrap: wrap;\"\n >\n <z-book-card-app\n icon=\"https://placehold.co/24\"\n name=\"Tutor di matematica matematica\"\n info=\"test test\"\n link=\"http://localhost\"\n ></z-book-card-app>\n <z-book-card-app\n icon=\"https://placehold.co/24\"\n name=\"Esercizi\"\n info=\"test test\"\n link=\"http://localhost\"\n ></z-book-card-app>\n </div>\n\n <div\n slot=\"coverOverlay\"\n class=\"body-4-sb\"\n >\n ANTEPRIMA DEL LIBRO SENZA RISORSE MULTIMEDIALI\n </div>\n\n <style>\n z-book-card-app {\n --z-book-card-app-padding-x: 8px;\n width: 100%;\n max-width: 100%;\n height: 47px;\n\n @media (min-width: 768px) {\n --z-book-card-app-padding-x: 16px;\n width: 315px;\n }\n }\n </style>\n </z-book-card>`,\n} satisfies Story;\n"]}
|
|
@@ -18,59 +18,37 @@
|
|
|
18
18
|
font-family: var(--font-family-sans);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
:host
|
|
21
|
+
:host,
|
|
22
|
+
* {
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.main-content {
|
|
22
27
|
display: flex;
|
|
23
28
|
height: 100%;
|
|
24
|
-
box-sizing: border-box;
|
|
25
29
|
flex-direction: column;
|
|
26
30
|
padding: var(--space-unit);
|
|
27
31
|
gap: var(--space-unit);
|
|
28
32
|
}
|
|
29
33
|
|
|
30
|
-
|
|
34
|
+
.main-content .cover {
|
|
31
35
|
position: relative;
|
|
32
36
|
display: flex;
|
|
33
37
|
overflow: hidden;
|
|
34
|
-
height: var(--z-book-card-portrait-cover-height);
|
|
35
38
|
align-items: flex-end;
|
|
36
|
-
background: var(--color-white);
|
|
37
39
|
border-radius: var(--border-radius);
|
|
38
40
|
}
|
|
39
41
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
box-shadow: var(--shadow-focus-primary);
|
|
43
|
-
outline: none;
|
|
42
|
+
.main-content .cover z-book-cover {
|
|
43
|
+
--z-book-cover-height: var(--z-book-card-portrait-cover-height);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
outline: none;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
:host .main-content .cover img {
|
|
52
|
-
max-width: 100%;
|
|
53
|
-
max-height: 100%;
|
|
46
|
+
.main-content a.cover:focus-visible {
|
|
47
|
+
box-shadow: var(--shadow-focus-primary);
|
|
54
48
|
outline: none;
|
|
55
49
|
}
|
|
56
50
|
|
|
57
|
-
|
|
58
|
-
position: absolute;
|
|
59
|
-
bottom: 0;
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
width: 100%;
|
|
62
|
-
box-sizing: border-box;
|
|
63
|
-
padding: var(--space-unit);
|
|
64
|
-
background-color: var(--avatar-C19);
|
|
65
|
-
color: var(--color-white);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
:host .main-content .cover ::slotted([slot="coverOverlay"]) {
|
|
69
|
-
min-height: 80px;
|
|
70
|
-
max-height: 336px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
:host .main-content .card-info {
|
|
51
|
+
.main-content .card-info {
|
|
74
52
|
display: flex;
|
|
75
53
|
flex: 1;
|
|
76
54
|
flex-direction: column;
|
|
@@ -78,24 +56,24 @@
|
|
|
78
56
|
gap: var(--space-unit);
|
|
79
57
|
}
|
|
80
58
|
|
|
81
|
-
|
|
59
|
+
.main-content .card-info .top {
|
|
82
60
|
display: flex;
|
|
83
61
|
flex-direction: column;
|
|
84
62
|
gap: calc(var(--space-unit) * 2);
|
|
85
63
|
}
|
|
86
64
|
|
|
87
|
-
|
|
65
|
+
.main-content .card-info .top ::slotted([slot="tags"]) {
|
|
88
66
|
display: flex;
|
|
89
67
|
flex-wrap: wrap;
|
|
90
68
|
gap: var(--space-unit);
|
|
91
69
|
}
|
|
92
70
|
|
|
93
|
-
|
|
71
|
+
.main-content .card-info .top ::slotted([slot="data"]) {
|
|
94
72
|
display: flex;
|
|
95
73
|
justify-content: space-between;
|
|
96
74
|
}
|
|
97
75
|
|
|
98
|
-
|
|
76
|
+
.main-content .card-info .top .ellipsis {
|
|
99
77
|
display: -webkit-box;
|
|
100
78
|
overflow: hidden;
|
|
101
79
|
height: 1.4rem;
|
|
@@ -107,46 +85,49 @@
|
|
|
107
85
|
word-break: break-all;
|
|
108
86
|
}
|
|
109
87
|
|
|
110
|
-
|
|
111
|
-
height:
|
|
88
|
+
.main-content .card-info .top .ellipsis.opera-title {
|
|
89
|
+
height: auto;
|
|
90
|
+
max-height: calc(1.5rem * var(--z-book-card-title-lines));
|
|
112
91
|
-webkit-line-clamp: var(--z-book-card-title-lines);
|
|
113
92
|
line-clamp: var(--z-book-card-title-lines);
|
|
114
93
|
line-height: 1.5rem;
|
|
115
94
|
word-break: var(--z-book-card-title-word-break);
|
|
116
95
|
}
|
|
117
96
|
|
|
118
|
-
|
|
119
|
-
height:
|
|
97
|
+
.main-content .card-info .top .ellipsis.volume-title {
|
|
98
|
+
height: auto;
|
|
99
|
+
max-height: calc(1.4rem * var(--z-book-card-subtitle-lines));
|
|
120
100
|
-webkit-line-clamp: var(--z-book-card-subtitle-lines);
|
|
121
101
|
line-clamp: var(--z-book-card-subtitle-lines);
|
|
122
102
|
line-height: 1.4rem;
|
|
123
103
|
word-break: var(--z-book-card-subtitle-word-break);
|
|
124
104
|
}
|
|
125
105
|
|
|
126
|
-
|
|
127
|
-
height:
|
|
106
|
+
.main-content .card-info .top .ellipsis.authors {
|
|
107
|
+
height: auto;
|
|
108
|
+
max-height: calc(1.4rem * var(--z-book-card-authors-lines));
|
|
128
109
|
-webkit-line-clamp: var(--z-book-card-authors-lines);
|
|
129
110
|
line-clamp: var(--z-book-card-authors-lines);
|
|
130
111
|
line-height: 1.4rem;
|
|
131
112
|
word-break: var(--z-book-card-authors-word-break);
|
|
132
113
|
}
|
|
133
114
|
|
|
134
|
-
|
|
115
|
+
.main-content .card-info .top .opera-title * {
|
|
135
116
|
all: unset;
|
|
136
117
|
}
|
|
137
118
|
|
|
138
|
-
|
|
119
|
+
.main-content .cta-wrapper {
|
|
139
120
|
display: flex;
|
|
140
121
|
justify-content: space-between;
|
|
141
122
|
gap: calc(var(--space-unit) / 2);
|
|
142
123
|
}
|
|
143
124
|
|
|
144
|
-
|
|
125
|
+
.main-content .card-info .top .link-chip-wrapper {
|
|
145
126
|
display: flex;
|
|
146
127
|
justify-content: space-between;
|
|
147
128
|
}
|
|
148
129
|
|
|
149
|
-
|
|
130
|
+
.main-content .card-info .bottom .ebook {
|
|
150
131
|
display: flex;
|
|
151
132
|
flex-wrap: wrap;
|
|
152
133
|
align-items: center;
|
|
@@ -157,7 +138,7 @@
|
|
|
157
138
|
gap: var(--space-unit);
|
|
158
139
|
}
|
|
159
140
|
|
|
160
|
-
|
|
141
|
+
.main-content .card-info .bottom .ebook .app-name {
|
|
161
142
|
display: flex;
|
|
162
143
|
align-items: center;
|
|
163
144
|
padding: calc(var(--space-unit) / 2) 0;
|
|
@@ -165,43 +146,30 @@
|
|
|
165
146
|
gap: calc(var(--space-unit) / 2);
|
|
166
147
|
}
|
|
167
148
|
|
|
168
|
-
|
|
149
|
+
.main-content .card-info .bottom .ebook .app-name .ebook-logo {
|
|
169
150
|
width: 1.5rem;
|
|
170
151
|
height: 1.5rem;
|
|
171
152
|
content: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 fill=%22none%22 aria-hidden=%22true%22%3E%3Cg clip-path=%22url(%23clip0_11996_224)%22%3E%3Cpath d=%22M14.6644 0.469604H5.00141C2.33305 0.469604 0.169922 2.63274 0.169922 5.3011V14.9641C0.169922 17.6324 2.33305 19.7956 5.00141 19.7956H14.6644C17.3328 19.7956 19.4959 17.6324 19.4959 14.9641V5.3011C19.4959 2.63274 17.3328 0.469604 14.6644 0.469604Z%22 fill=%22%23E2011A%22/%3E%3Cpath d=%22M15.9523 13.3536H12.7313C11.6861 13.3536 10.6683 13.6934 9.83241 14.3199C8.99657 13.6934 7.97873 13.3536 6.93352 13.3536H3.71252V5.30115H6.93352C7.97873 5.30115 8.99657 5.64096 9.83241 6.26745C10.6683 5.64096 11.6861 5.30115 12.7313 5.30115H15.9523V13.3536Z%22 fill=%22white%22/%3E%3Cpath d=%22M15.9523 14.3201H3.71252V14.9643H15.9523V14.3201Z%22 fill=%22black%22/%3E%3Cpath d=%22M8.22229 10.732V8.24543C8.22229 7.97165 8.51057 7.79449 8.75375 7.91689L11.2404 9.16019C11.5109 9.29548 11.5109 9.682 11.2404 9.81728L8.75375 11.0606C8.50896 11.183 8.22229 11.0058 8.22229 10.732Z%22 fill=%22black%22/%3E%3Cpath d=%22M4.35704 7.87826C5.42438 7.87826 6.28963 7.013 6.28963 5.94566C6.28963 4.87831 5.42438 4.01306 4.35704 4.01306C3.28969 4.01306 2.42444 4.87831 2.42444 5.94566C2.42444 7.013 3.28969 7.87826 4.35704 7.87826Z%22 fill=%22black%22/%3E%3Cpath d=%22M5.6454 5.62354H3.0686V6.26773H5.6454V5.62354Z%22 fill=%22white%22/%3E%3Cpath d=%22M4.67917 4.65723H4.03497V7.23402H4.67917V4.65723Z%22 fill=%22white%22/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id=%22clip0_11996_224%22%3E%3Crect width=%2219.326%22 height=%2219.326%22 fill=%22white%22 transform=%22translate(0.169922 0.469604)%22/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
|
|
172
153
|
}
|
|
173
154
|
|
|
174
155
|
:host([variant="landscape"]) {
|
|
175
|
-
width:
|
|
156
|
+
width: 637px;
|
|
176
157
|
min-height: max(332px, 20.75rem);
|
|
177
158
|
padding: 0;
|
|
178
159
|
}
|
|
179
160
|
|
|
180
161
|
:host([variant="landscape"]) .main-content {
|
|
181
162
|
min-height: max(332px, 20.75rem);
|
|
182
|
-
box-sizing: border-box;
|
|
183
163
|
flex-direction: row;
|
|
184
164
|
padding: calc(var(--space-unit) * 2);
|
|
185
165
|
gap: calc(var(--space-unit) * 2);
|
|
186
166
|
}
|
|
187
167
|
|
|
188
|
-
:host([variant="landscape"]) .main-content .cover {
|
|
189
|
-
|
|
190
|
-
overflow: hidden;
|
|
191
|
-
width: 221px;
|
|
192
|
-
height: 300px;
|
|
193
|
-
margin: 0;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
:host([variant="landscape"]) .main-content .cover ::slotted([slot="coverOverlay"]) {
|
|
197
|
-
min-height: 80px;
|
|
198
|
-
max-height: 256px;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
:host([variant="landscape"]) .main-content .card-info {
|
|
202
|
-
gap: calc(var(--space-unit) / 2);
|
|
168
|
+
:host([variant="landscape"]) .main-content .cover z-book-cover {
|
|
169
|
+
--z-book-cover-height: 300px;
|
|
203
170
|
}
|
|
204
171
|
|
|
172
|
+
:host([variant="landscape"]) .main-content .card-info,
|
|
205
173
|
:host([variant="landscape"]) .main-content .card-info .top {
|
|
206
174
|
gap: calc(var(--space-unit) / 2);
|
|
207
175
|
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Fragment, Host, h } from "@stencil/core";
|
|
2
|
+
import defaultFallbackCover from "../../assets/images/png/placeholder-cover.png";
|
|
3
|
+
/**
|
|
4
|
+
* This component displays a book cover image,
|
|
5
|
+
* with options for borders and a representation of multiple books with a stack of fake covers behind the original one.
|
|
6
|
+
* The aspect ratio of the cover image is preserved.
|
|
7
|
+
* Alignment of the image inside the container can be customized via CSS properties.
|
|
8
|
+
*
|
|
9
|
+
* @slot coverOverlay - Content to be displayed over the cover image (e.g. a label). The overlay is positioned at the bottom of the cover. Has some default styling (such as the colored background) that can be customized via CSS.
|
|
10
|
+
* @cssprop --z-book-cover-height - height of the book cover (default: `378px`). The width is calculated automatically to maintain an aspect ratio of 1.33.
|
|
11
|
+
* @cssprop --z-book-cover-border-radius - border radius of the book cover (default: `var(--border-radius)`)
|
|
12
|
+
* @cssprop --z-book-cover-stack-shift-x - the horizontal shift of each stacked cover when `multiple` is `true` (default: `8px`)
|
|
13
|
+
* @cssprop --z-book-cover-stack-shift-y - the vertical shift of each stacked cover when `multiple` is `true` (default: `12px`)
|
|
14
|
+
*/
|
|
15
|
+
export class ZBookCover {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.cover = undefined;
|
|
18
|
+
this.fallbackCover = undefined;
|
|
19
|
+
this.multiple = false;
|
|
20
|
+
this.bordered = false;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
var _a;
|
|
24
|
+
return (h(Host, { key: '68d64d604da888608345f2ce5ca0c5936ab395a7' }, this.multiple && (h(Fragment, { key: 'ce48dbba436fd9fa9cfbda1b96880394b78bf6bc' }, h("div", { key: '50b4efc239d5a89cd224c4c3e78bd09544ae5a58', class: "shifted-stack-cover stack-cover-2" }), h("div", { key: 'aec43bf969d4b7f14c8eae78bd616c3fbcc8cdbc', class: "shifted-stack-cover stack-cover-1" }))), h("div", { key: 'd8c3f8f22e338f112cbede47f5cfbce61a018d5c', class: "cover-container" }, h("img", { key: '35fd6b50c3fbf63bd9e20e02be81348a45c448eb', src: (_a = this.cover) !== null && _a !== void 0 ? _a : defaultFallbackCover, "aria-hidden": "true", alt: "", onError: () => (this.cover = this.fallbackCover || defaultFallbackCover) }), h("slot", { key: '56dd2c69edcc18052667a71c09f9157e979617c0', name: "coverOverlay" }))));
|
|
25
|
+
}
|
|
26
|
+
static get is() { return "z-book-cover"; }
|
|
27
|
+
static get encapsulation() { return "shadow"; }
|
|
28
|
+
static get originalStyleUrls() {
|
|
29
|
+
return {
|
|
30
|
+
"$": ["styles.css"]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static get styleUrls() {
|
|
34
|
+
return {
|
|
35
|
+
"$": ["styles.css"]
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
static get properties() {
|
|
39
|
+
return {
|
|
40
|
+
"cover": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"mutable": false,
|
|
43
|
+
"complexType": {
|
|
44
|
+
"original": "string",
|
|
45
|
+
"resolved": "string",
|
|
46
|
+
"references": {}
|
|
47
|
+
},
|
|
48
|
+
"required": false,
|
|
49
|
+
"optional": false,
|
|
50
|
+
"docs": {
|
|
51
|
+
"tags": [],
|
|
52
|
+
"text": "URL of the cover image."
|
|
53
|
+
},
|
|
54
|
+
"attribute": "cover",
|
|
55
|
+
"reflect": false
|
|
56
|
+
},
|
|
57
|
+
"fallbackCover": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"mutable": false,
|
|
60
|
+
"complexType": {
|
|
61
|
+
"original": "string",
|
|
62
|
+
"resolved": "string",
|
|
63
|
+
"references": {}
|
|
64
|
+
},
|
|
65
|
+
"required": false,
|
|
66
|
+
"optional": false,
|
|
67
|
+
"docs": {
|
|
68
|
+
"tags": [],
|
|
69
|
+
"text": "URL of the fallback cover image."
|
|
70
|
+
},
|
|
71
|
+
"attribute": "fallback-cover",
|
|
72
|
+
"reflect": false
|
|
73
|
+
},
|
|
74
|
+
"multiple": {
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"mutable": false,
|
|
77
|
+
"complexType": {
|
|
78
|
+
"original": "boolean",
|
|
79
|
+
"resolved": "boolean",
|
|
80
|
+
"references": {}
|
|
81
|
+
},
|
|
82
|
+
"required": false,
|
|
83
|
+
"optional": false,
|
|
84
|
+
"docs": {
|
|
85
|
+
"tags": [],
|
|
86
|
+
"text": "Whether to show a stack of covers to represent multiple books."
|
|
87
|
+
},
|
|
88
|
+
"attribute": "multiple",
|
|
89
|
+
"reflect": true,
|
|
90
|
+
"defaultValue": "false"
|
|
91
|
+
},
|
|
92
|
+
"bordered": {
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "boolean",
|
|
97
|
+
"resolved": "boolean",
|
|
98
|
+
"references": {}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": false,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": "Whether to apply a border around the cover image (always applied when `multiple` is enabled)."
|
|
105
|
+
},
|
|
106
|
+
"attribute": "bordered",
|
|
107
|
+
"reflect": true,
|
|
108
|
+
"defaultValue": "false"
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-book-cover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACjE,OAAO,oBAAoB,MAAM,+CAA+C,CAAC;AAEjF;;;;;;;;;;;GAWG;AAMH,MAAM,OAAO,UAAU;;;;wBAWV,KAAK;wBAIL,KAAK;;IAEhB,MAAM;;QACJ,OAAO,CACL,EAAC,IAAI;YACF,IAAI,CAAC,QAAQ,IAAI,CAChB,EAAC,QAAQ;gBACP,4DAAK,KAAK,EAAC,mCAAmC,GAAO;gBACrD,4DAAK,KAAK,EAAC,mCAAmC,GAAO,CAC5C,CACZ;YACD,4DAAK,KAAK,EAAC,iBAAiB;gBAC1B,4DACE,GAAG,EAAE,MAAA,IAAI,CAAC,KAAK,mCAAI,oBAAoB,iBAC3B,MAAM,EAClB,GAAG,EAAC,EAAE,EACN,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,IAAI,oBAAoB,CAAC,GACxE;gBACF,6DAAM,IAAI,EAAC,cAAc,GAAQ,CAC7B,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Fragment, Host, Prop, h} from \"@stencil/core\";\nimport defaultFallbackCover from \"../../assets/images/png/placeholder-cover.png\";\n\n/**\n * This component displays a book cover image,\n * with options for borders and a representation of multiple books with a stack of fake covers behind the original one.\n * The aspect ratio of the cover image is preserved.\n * Alignment of the image inside the container can be customized via CSS properties.\n *\n * @slot coverOverlay - Content to be displayed over the cover image (e.g. a label). The overlay is positioned at the bottom of the cover. Has some default styling (such as the colored background) that can be customized via CSS.\n * @cssprop --z-book-cover-height - height of the book cover (default: `378px`). The width is calculated automatically to maintain an aspect ratio of 1.33.\n * @cssprop --z-book-cover-border-radius - border radius of the book cover (default: `var(--border-radius)`)\n * @cssprop --z-book-cover-stack-shift-x - the horizontal shift of each stacked cover when `multiple` is `true` (default: `8px`)\n * @cssprop --z-book-cover-stack-shift-y - the vertical shift of each stacked cover when `multiple` is `true` (default: `12px`)\n */\n@Component({\n tag: \"z-book-cover\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZBookCover {\n /** URL of the cover image. */\n @Prop()\n cover: string;\n\n /** URL of the fallback cover image. */\n @Prop()\n fallbackCover: string;\n\n /** Whether to show a stack of covers to represent multiple books. */\n @Prop({reflect: true})\n multiple = false;\n\n /** Whether to apply a border around the cover image (always applied when `multiple` is enabled). */\n @Prop({reflect: true})\n bordered = false;\n\n render(): HTMLZBookCoverElement {\n return (\n <Host>\n {this.multiple && (\n <Fragment>\n <div class=\"shifted-stack-cover stack-cover-2\"></div>\n <div class=\"shifted-stack-cover stack-cover-1\"></div>\n </Fragment>\n )}\n <div class=\"cover-container\">\n <img\n src={this.cover ?? defaultFallbackCover}\n aria-hidden=\"true\"\n alt=\"\"\n onError={() => (this.cover = this.fallbackCover || defaultFallbackCover)}\n />\n <slot name=\"coverOverlay\"></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { styleMap } from "lit/directives/style-map.js";
|
|
3
|
+
import "./index";
|
|
4
|
+
const StoryMeta = {
|
|
5
|
+
title: "ZBookCover",
|
|
6
|
+
component: "z-book-cover",
|
|
7
|
+
args: {
|
|
8
|
+
"cover": "https://staticmy.zanichelli.it/copertine/dashboard/m40002.9788808999825.jpg",
|
|
9
|
+
"bordered": false,
|
|
10
|
+
"multiple": false,
|
|
11
|
+
"--z-book-cover-height": "378px",
|
|
12
|
+
"--z-book-cover-border-radius": "var(--border-radius)",
|
|
13
|
+
"--z-book-cover-stack-shift-x": "8px",
|
|
14
|
+
"--z-book-cover-stack-shift-y": "12px",
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
export default StoryMeta;
|
|
18
|
+
export const Default = {
|
|
19
|
+
render: (args) => html `<z-book-cover
|
|
20
|
+
cover=${args.cover}
|
|
21
|
+
.bordered=${args.bordered}
|
|
22
|
+
.multiple=${args.multiple}
|
|
23
|
+
style=${styleMap({
|
|
24
|
+
"--z-book-cover-height": args["--z-book-cover-height"],
|
|
25
|
+
"--z-book-cover-border-radius": args["--z-book-cover-border-radius"],
|
|
26
|
+
"--z-book-cover-stack-shift-x": args["--z-book-cover-stack-shift-x"],
|
|
27
|
+
"--z-book-cover-stack-shift-y": args["--z-book-cover-stack-shift-y"],
|
|
28
|
+
})}
|
|
29
|
+
></z-book-cover>`,
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=index.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/z-book-cover/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAGrD,OAAO,SAAS,CAAC;AAUjB,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,cAAc;IACzB,IAAI,EAAE;QACJ,OAAO,EAAE,6EAA6E;QACtF,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,KAAK;QACjB,uBAAuB,EAAE,OAAO;QAChC,8BAA8B,EAAE,sBAAsB;QACtD,8BAA8B,EAAE,KAAK;QACrC,8BAA8B,EAAE,MAAM;KACvC;CACoC,CAAC;AAExC,eAAe,SAAS,CAAC;AAIzB,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CACf,IAAI,CAAA;cACM,IAAI,CAAC,KAAK;kBACN,IAAI,CAAC,QAAQ;kBACb,IAAI,CAAC,QAAQ;cACjB,QAAQ,CAAC;QACf,uBAAuB,EAAE,IAAI,CAAC,uBAAuB,CAAC;QACtD,8BAA8B,EAAE,IAAI,CAAC,8BAA8B,CAAC;QACpE,8BAA8B,EAAE,IAAI,CAAC,8BAA8B,CAAC;QACpE,8BAA8B,EAAE,IAAI,CAAC,8BAA8B,CAAC;KACrE,CAAC;qBACa;CACJ,CAAC","sourcesContent":["import type {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {styleMap} from \"lit/directives/style-map.js\";\nimport {type ZBookCover} from \".\";\nimport {CSSVarsArguments} from \"../../utils/storybook-utils\";\nimport \"./index\";\n\ntype ZBookCoverStoriesArgs = ZBookCover &\n CSSVarsArguments<\n | \"--z-book-cover-height\"\n | \"--z-book-cover-border-radius\"\n | \"--z-book-cover-stack-shift-x\"\n | \"--z-book-cover-stack-shift-y\"\n >;\n\nconst StoryMeta = {\n title: \"ZBookCover\",\n component: \"z-book-cover\",\n args: {\n \"cover\": \"https://staticmy.zanichelli.it/copertine/dashboard/m40002.9788808999825.jpg\",\n \"bordered\": false,\n \"multiple\": false,\n \"--z-book-cover-height\": \"378px\",\n \"--z-book-cover-border-radius\": \"var(--border-radius)\",\n \"--z-book-cover-stack-shift-x\": \"8px\",\n \"--z-book-cover-stack-shift-y\": \"12px\",\n },\n} satisfies Meta<ZBookCoverStoriesArgs>;\n\nexport default StoryMeta;\n\ntype Story = StoryObj<ZBookCoverStoriesArgs>;\n\nexport const Default = {\n render: (args) =>\n html`<z-book-cover\n cover=${args.cover}\n .bordered=${args.bordered}\n .multiple=${args.multiple}\n style=${styleMap({\n \"--z-book-cover-height\": args[\"--z-book-cover-height\"],\n \"--z-book-cover-border-radius\": args[\"--z-book-cover-border-radius\"],\n \"--z-book-cover-stack-shift-x\": args[\"--z-book-cover-stack-shift-x\"],\n \"--z-book-cover-stack-shift-y\": args[\"--z-book-cover-stack-shift-y\"],\n })}\n ></z-book-cover>`,\n} satisfies Story;\n"]}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
:host,
|
|
2
|
+
*,
|
|
3
|
+
::slotted(*) {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
--z-book-cover-height: 378px;
|
|
9
|
+
--z-book-cover-border-radius: var(--border-radius);
|
|
10
|
+
--z-book-cover-stack-shift-x: 8px;
|
|
11
|
+
--z-book-cover-stack-shift-y: 12px;
|
|
12
|
+
--private_book-cover-width: round(nearest, var(--z-book-cover-height) / 1.33, 1px);
|
|
13
|
+
|
|
14
|
+
position: relative;
|
|
15
|
+
display: flex;
|
|
16
|
+
width: var(--private_book-cover-width);
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
height: var(--z-book-cover-height);
|
|
19
|
+
max-height: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@supports not (width: round(1px, 1px)) {
|
|
23
|
+
/* If the `round()` function isn't supported, fallback to the float value */
|
|
24
|
+
:host {
|
|
25
|
+
--private_book-cover-width: calc(var(--z-book-cover-height) / 1.33);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host > * {
|
|
30
|
+
z-index: 0;
|
|
31
|
+
background: var(--color-surface01);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cover-container {
|
|
35
|
+
position: relative;
|
|
36
|
+
display: flex;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
align-items: start;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
border-radius: var(--z-book-cover-border-radius);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
img {
|
|
46
|
+
max-width: 100%;
|
|
47
|
+
max-height: 100%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([multiple]) {
|
|
51
|
+
width: calc(var(--private_book-cover-width) - (var(--z-book-cover-stack-shift-x) * 2));
|
|
52
|
+
height: calc(var(--z-book-cover-height) - (var(--z-book-cover-stack-shift-y) * 2));
|
|
53
|
+
margin-bottom: calc(var(--z-book-cover-stack-shift-y) * 2);
|
|
54
|
+
margin-left: calc(var(--z-book-cover-stack-shift-x) * 2);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host([bordered]) .cover-container,
|
|
58
|
+
:host([multiple]) .cover-container {
|
|
59
|
+
border: var(--border-size-small) solid var(--color-surface05);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.shifted-stack-cover {
|
|
63
|
+
position: absolute;
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
border: var(--border-size-small) solid var(--color-surface05);
|
|
67
|
+
border-radius: var(--z-book-cover-border-radius);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.shifted-stack-cover.stack-cover-1 {
|
|
71
|
+
top: var(--z-book-cover-stack-shift-y);
|
|
72
|
+
left: calc(-1 * var(--z-book-cover-stack-shift-x));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.shifted-stack-cover.stack-cover-2 {
|
|
76
|
+
top: calc(var(--z-book-cover-stack-shift-y) * 2);
|
|
77
|
+
left: calc(var(--z-book-cover-stack-shift-x) * -2);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
::slotted([slot="coverOverlay"]) {
|
|
81
|
+
position: absolute;
|
|
82
|
+
bottom: 0;
|
|
83
|
+
display: flex;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
width: 100%;
|
|
86
|
+
min-height: 80px;
|
|
87
|
+
max-height: 85%;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
padding: var(--space-unit);
|
|
91
|
+
background-color: var(--avatar-C19);
|
|
92
|
+
color: var(--color-white);
|
|
93
|
+
overflow-wrap: anywhere;
|
|
94
|
+
text-align: center;
|
|
95
|
+
}
|
|
@@ -199,10 +199,10 @@ export class ZBreadcrumb {
|
|
|
199
199
|
];
|
|
200
200
|
}
|
|
201
201
|
render() {
|
|
202
|
-
return (h(Host, { key: '
|
|
202
|
+
return (h(Host, { key: 'dfdce7063e125f7f2a04be854aa0104f3b5f8c97', style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, h("nav", { key: '4cab944188a1a308715f46d2d8d996c69219f6f2', ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
|
|
203
203
|
semibold: this.pathStyle === BreadcrumbPathStyle.SEMIBOLD,
|
|
204
204
|
underlined: this.pathStyle === BreadcrumbPathStyle.UNDERLINED,
|
|
205
|
-
} }, h("ol", { key: '
|
|
205
|
+
} }, h("ol", { key: '1c549b867f77a75eb67a5ed35f389a98761ae70d' }, this.viewPortWidth === Device.MOBILE ? this.renderMobileItems() : this.renderItems()))));
|
|
206
206
|
}
|
|
207
207
|
static get is() { return "z-breadcrumb"; }
|
|
208
208
|
static get encapsulation() { return "shadow"; }
|
|
@@ -36,7 +36,7 @@ export class ZButtonSort {
|
|
|
36
36
|
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h("button", { key: '
|
|
39
|
+
return (h("button", { key: '551cd870041bc9d74949c55ddade45b607627b9c', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, h("span", { key: '04f900a2110709622e1417517ad8c0f56a9dd560', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { key: 'b075fc8a9b9d61053755b7d2cf6216b88eca21e6', class: "counter" }, this.counter && ` (${this.counter})`), h("span", { key: 'f4a93840d7e1a8d66fdcb67d658fc9b919145302', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { key: '118fa5dea4d246c9c5ebfcd06f717a55ef64d39f', name: "caret-up-down", width: 16, height: 16 })));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "z-button-sort"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,11 +9,11 @@ export class ZChip {
|
|
|
9
9
|
this.ariaLabel = "";
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h("div", { key: '
|
|
12
|
+
return (h("div", { key: 'b72d752e39024d30607e7a86bc9541ea2141e40c', class: {
|
|
13
13
|
"z-chip-container": true,
|
|
14
14
|
"z-chip-interactive": !!this.interactiveIcon,
|
|
15
15
|
[this.type]: true,
|
|
16
|
-
}, "aria-disabled": this.disabled }, this.icon && h("z-icon", { key: '
|
|
16
|
+
}, "aria-disabled": this.disabled }, this.icon && h("z-icon", { key: 'ea88728b94745d8a72b78ffdbb09d24de10d56a5', name: this.icon }), h("slot", { key: '36bea3ad6017a06d4ed8a3592ce98f5799da7e79' }), this.interactiveIcon && (h("button", { key: '0321ec2ba1a499057022fa46f4c6d4e284d74ce4', type: "button", onClick: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, h("z-icon", { key: 'dc32dda6bd49e897b4895b17069e0f031f622070', class: "interactive-icon", name: this.interactiveIcon })))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "z-chip"; }
|
|
19
19
|
static get encapsulation() { return "scoped"; }
|