@zanichelli/albe-web-components 2.47.3 → 3.0.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 +47 -0
- package/dist/cjs/{index-d326c919.js → index-b1289f95.js} +19 -8
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-cd6b9038.js → utils-33df2456.js} +2 -3
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/{z-app-switcher_11.cjs.entry.js → z-app-switcher_12.cjs.entry.js} +43 -7
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +1 -1
- package/dist/cjs/z-button-filter_5.cjs.entry.js +2 -2
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-combobox.cjs.entry.js +2 -2
- package/dist/cjs/z-contextual-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-cookiebar.cjs.entry.js +4 -4
- package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +16 -13
- package/dist/cjs/z-file.cjs.entry.js +1 -1
- package/dist/cjs/z-footer.cjs.entry.js +13 -8
- package/dist/cjs/z-list_3.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
- package/dist/cjs/z-modal-login.cjs.entry.js +6 -5
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card_4.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-topbar.cjs.entry.js +3 -3
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +13 -12
- package/dist/cjs/z-navigation-tab.cjs.entry.js +13 -12
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +6 -9
- package/dist/cjs/z-otp.cjs.entry.js +1 -1
- package/dist/cjs/z-pagination-bar.cjs.entry.js +2 -2
- package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +2 -2
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +68 -0
- package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
- package/dist/cjs/z-status-tag.cjs.entry.js +1 -1
- package/dist/cjs/z-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/z-table-header.cjs.entry.js +3 -3
- package/dist/cjs/z-table-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +3 -3
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/collection/beans/index.js +19 -8
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/buttons/z-button/index.js +72 -52
- package/dist/collection/components/buttons/z-button/styles.css +32 -111
- package/dist/collection/components/file-upload/z-file-upload/index.js +13 -10
- package/dist/collection/components/file-upload/z-file-upload/styles.css +2 -2
- package/dist/collection/components/footer/z-footer/index.js +19 -14
- package/dist/collection/components/footer/z-footer/styles.css +2 -2
- package/dist/collection/components/modal/z-modal-login/index.js +5 -4
- package/dist/collection/components/modal/z-modal-login/styles.css +8 -8
- package/dist/collection/components/navigation/tabs/navigation-tab.css +49 -31
- package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +14 -21
- package/dist/collection/components/navigation/tabs/z-navigation-tab-link/index.js +14 -21
- package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.js +4 -7
- package/dist/collection/components/navigation/tabs/z-navigation-tabs/styles.css +6 -20
- package/dist/collection/components/notification/z-cookiebar/index.js +2 -2
- package/dist/collection/components/notification/z-cookiebar/styles.css +3 -3
- package/dist/collection/components/notification/z-toast-notification/styles.css +4 -2
- package/dist/collection/components/z-skip-to-content/index.js +131 -0
- package/dist/collection/components/z-skip-to-content/styles.css +84 -0
- package/dist/collection/components/z-table/z-table/index.js +4 -4
- package/dist/collection/components/z-table/z-table-cell/index.js +1 -1
- package/dist/collection/components/z-table/z-table-header/index.js +1 -1
- package/dist/collection/deprecated/z-button-deprecated/index.js +218 -0
- package/dist/collection/deprecated/z-button-deprecated/styles.css +231 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +5 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +5 -1
- package/dist/collection/snowflakes/myz/topbar/index.js +1 -1
- package/dist/collection/snowflakes/myz/topbar/styles.css +8 -8
- package/dist/collection/utils/utils.js +2 -3
- package/dist/esm/{index-96aade4f.js → index-7424c64c.js} +20 -9
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-d06fbb4a.js → utils-93d2b922.js} +3 -4
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/{z-app-switcher_11.entry.js → z-app-switcher_12.entry.js} +43 -8
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +1 -1
- package/dist/esm/z-button-filter_5.entry.js +2 -2
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +2 -2
- package/dist/esm/z-contextual-menu.entry.js +1 -1
- package/dist/esm/z-cookiebar.entry.js +4 -4
- package/dist/esm/z-date-picker.entry.js +1 -1
- package/dist/esm/z-file-upload.entry.js +16 -13
- package/dist/esm/z-file.entry.js +1 -1
- package/dist/esm/z-footer.entry.js +13 -8
- package/dist/esm/z-list_3.entry.js +1 -1
- package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
- package/dist/esm/z-messages-pocket.entry.js +1 -1
- package/dist/esm/z-modal-login.entry.js +6 -5
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +3 -3
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +2 -2
- package/dist/esm/z-myz-card_4.entry.js +2 -2
- package/dist/esm/z-myz-list-item.entry.js +2 -2
- package/dist/esm/z-myz-topbar.entry.js +3 -3
- package/dist/esm/z-navigation-tab-link.entry.js +14 -13
- package/dist/esm/z-navigation-tab.entry.js +14 -13
- package/dist/esm/z-navigation-tabs.entry.js +6 -9
- package/dist/esm/z-otp.entry.js +1 -1
- package/dist/esm/z-pagination-bar.entry.js +2 -2
- package/dist/esm/z-pocket_3.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +2 -2
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +64 -0
- package/dist/esm/z-slideshow.entry.js +2 -2
- package/dist/esm/z-status-tag.entry.js +1 -1
- package/dist/esm/z-table-cell.entry.js +2 -2
- package/dist/esm/z-table-header.entry.js +3 -3
- package/dist/esm/z-table-row.entry.js +1 -1
- package/dist/esm/z-table.entry.js +3 -3
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +2 -2
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/types/beans/index.d.ts +23 -8
- package/dist/types/components/buttons/z-button/index.d.ts +13 -7
- package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +8 -5
- package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +8 -5
- package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +2 -0
- package/dist/types/components/z-skip-to-content/index.d.ts +22 -0
- package/dist/types/components.d.ts +129 -7
- package/dist/types/deprecated/z-button-deprecated/index.d.ts +28 -0
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-a184c4a4.entry.js → p-0398165f.entry.js} +1 -1
- package/dist/web-components-library/{p-aaee84f0.entry.js → p-03de95f1.entry.js} +1 -1
- package/dist/web-components-library/p-0b590426.entry.js +1 -0
- package/dist/web-components-library/{p-c7f70e76.entry.js → p-1b973c72.entry.js} +1 -1
- package/dist/web-components-library/{p-51870c65.entry.js → p-1eef76bb.entry.js} +1 -1
- package/dist/web-components-library/p-21b9a94f.entry.js +1 -0
- package/dist/web-components-library/{p-4434207b.entry.js → p-223bec2f.entry.js} +1 -1
- package/dist/web-components-library/p-2711bc32.entry.js +1 -0
- package/dist/web-components-library/p-2b8975b1.entry.js +1 -0
- package/dist/web-components-library/{p-059fc87d.entry.js → p-2c823f4c.entry.js} +1 -1
- package/dist/web-components-library/p-2e510e79.entry.js +1 -0
- package/dist/web-components-library/p-2ff952a3.entry.js +1 -0
- package/dist/web-components-library/{p-c9722a45.entry.js → p-3184d969.entry.js} +1 -1
- package/dist/web-components-library/p-393c31c0.entry.js +1 -0
- package/dist/web-components-library/{p-e559f4d3.entry.js → p-3dba3a83.entry.js} +1 -1
- package/dist/web-components-library/p-459dab30.entry.js +1 -0
- package/dist/web-components-library/{p-62a79ada.entry.js → p-4c282f06.entry.js} +1 -1
- package/dist/web-components-library/{p-67e56d43.entry.js → p-542b3702.entry.js} +1 -1
- package/dist/web-components-library/{p-e8df0a5e.entry.js → p-57270965.entry.js} +1 -1
- package/{www/build/p-5ad5d409.entry.js → dist/web-components-library/p-66fbe5b8.entry.js} +1 -1
- package/dist/web-components-library/p-709ab23c.entry.js +1 -0
- package/dist/web-components-library/p-70be81b6.entry.js +1 -0
- package/{www/build/p-f87cd1c6.entry.js → dist/web-components-library/p-7e71d9b0.entry.js} +1 -1
- package/dist/web-components-library/p-80369bb8.entry.js +1 -0
- package/dist/web-components-library/p-80a3e18a.js +1 -0
- package/dist/web-components-library/{p-dd928b6f.entry.js → p-895f636e.entry.js} +1 -1
- package/dist/web-components-library/p-8b62bd85.entry.js +1 -0
- package/dist/web-components-library/{p-66a027c2.entry.js → p-9721e132.entry.js} +1 -1
- package/dist/web-components-library/{p-211c8001.entry.js → p-9935973a.entry.js} +1 -1
- package/dist/web-components-library/p-a391566a.entry.js +1 -0
- package/dist/web-components-library/{p-9045dc92.entry.js → p-aae632ef.entry.js} +1 -1
- package/{www/build/p-b3059f74.entry.js → dist/web-components-library/p-adad78fc.entry.js} +1 -1
- package/dist/web-components-library/{p-62a7b6cb.entry.js → p-b0ea8c0e.entry.js} +1 -1
- package/dist/web-components-library/{p-c806d6e4.entry.js → p-c787ea21.entry.js} +1 -1
- package/dist/web-components-library/p-cadcf677.entry.js +1 -0
- package/dist/web-components-library/p-cce20009.entry.js +1 -0
- package/dist/web-components-library/p-cd2ca92b.entry.js +1 -0
- package/dist/web-components-library/p-da7760a3.entry.js +1 -0
- package/dist/web-components-library/p-dcf4d1b6.entry.js +1 -0
- package/dist/web-components-library/{p-4fa3a1f5.entry.js → p-dfc18671.entry.js} +1 -1
- package/{www/build/p-edc05acf.entry.js → dist/web-components-library/p-e4b4b2e4.entry.js} +1 -1
- package/dist/web-components-library/{p-9baa6b96.entry.js → p-e7aadd3d.entry.js} +1 -1
- package/dist/web-components-library/{p-422d2691.entry.js → p-e9b90127.entry.js} +1 -1
- package/dist/web-components-library/p-fea5b98f.js +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +2 -0
- package/react/components.js +5 -2
- package/react/components.js.map +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-a184c4a4.entry.js → p-0398165f.entry.js} +1 -1
- package/www/build/{p-aaee84f0.entry.js → p-03de95f1.entry.js} +1 -1
- package/www/build/p-0b590426.entry.js +1 -0
- package/www/build/{p-c7f70e76.entry.js → p-1b973c72.entry.js} +1 -1
- package/www/build/{p-51870c65.entry.js → p-1eef76bb.entry.js} +1 -1
- package/www/build/p-21b9a94f.entry.js +1 -0
- package/www/build/{p-4434207b.entry.js → p-223bec2f.entry.js} +1 -1
- package/www/build/p-2711bc32.entry.js +1 -0
- package/www/build/p-2b8975b1.entry.js +1 -0
- package/www/build/{p-059fc87d.entry.js → p-2c823f4c.entry.js} +1 -1
- package/www/build/p-2e24f261.js +129 -0
- package/www/build/p-2e510e79.entry.js +1 -0
- package/www/build/p-2ff952a3.entry.js +1 -0
- package/www/build/{p-c9722a45.entry.js → p-3184d969.entry.js} +1 -1
- package/www/build/p-393c31c0.entry.js +1 -0
- package/www/build/{p-e559f4d3.entry.js → p-3dba3a83.entry.js} +1 -1
- package/www/build/p-459dab30.entry.js +1 -0
- package/www/build/{p-62a79ada.entry.js → p-4c282f06.entry.js} +1 -1
- package/www/build/{p-67e56d43.entry.js → p-542b3702.entry.js} +1 -1
- package/www/build/{p-e8df0a5e.entry.js → p-57270965.entry.js} +1 -1
- package/{dist/web-components-library/p-5ad5d409.entry.js → www/build/p-66fbe5b8.entry.js} +1 -1
- package/www/build/p-709ab23c.entry.js +1 -0
- package/www/build/p-70be81b6.entry.js +1 -0
- package/{dist/web-components-library/p-f87cd1c6.entry.js → www/build/p-7e71d9b0.entry.js} +1 -1
- package/www/build/p-80369bb8.entry.js +1 -0
- package/www/build/p-80a3e18a.js +1 -0
- package/www/build/{p-dd928b6f.entry.js → p-895f636e.entry.js} +1 -1
- package/www/build/p-8b62bd85.entry.js +1 -0
- package/www/build/{p-66a027c2.entry.js → p-9721e132.entry.js} +1 -1
- package/www/build/{p-211c8001.entry.js → p-9935973a.entry.js} +1 -1
- package/www/build/p-a391566a.entry.js +1 -0
- package/www/build/{p-9045dc92.entry.js → p-aae632ef.entry.js} +1 -1
- package/{dist/web-components-library/p-b3059f74.entry.js → www/build/p-adad78fc.entry.js} +1 -1
- package/www/build/{p-62a7b6cb.entry.js → p-b0ea8c0e.entry.js} +1 -1
- package/www/build/{p-c806d6e4.entry.js → p-c787ea21.entry.js} +1 -1
- package/www/build/p-cadcf677.entry.js +1 -0
- package/www/build/p-cce20009.entry.js +1 -0
- package/www/build/p-cd2ca92b.entry.js +1 -0
- package/www/build/p-da7760a3.entry.js +1 -0
- package/www/build/p-dcf4d1b6.entry.js +1 -0
- package/www/build/{p-4fa3a1f5.entry.js → p-dfc18671.entry.js} +1 -1
- package/{dist/web-components-library/p-edc05acf.entry.js → www/build/p-e4b4b2e4.entry.js} +1 -1
- package/www/build/{p-9baa6b96.entry.js → p-e7aadd3d.entry.js} +1 -1
- package/www/build/{p-422d2691.entry.js → p-e9b90127.entry.js} +1 -1
- package/www/build/p-fcff1237.css +812 -0
- package/www/build/p-fea5b98f.js +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +49 -49
- package/www/pages/notification.html +10 -7
- package/dist/web-components-library/p-01b13704.entry.js +0 -1
- package/dist/web-components-library/p-05fd034c.entry.js +0 -1
- package/dist/web-components-library/p-12ae4164.entry.js +0 -1
- package/dist/web-components-library/p-142dc712.entry.js +0 -1
- package/dist/web-components-library/p-2182f383.entry.js +0 -1
- package/dist/web-components-library/p-2f9c9ed9.entry.js +0 -1
- package/dist/web-components-library/p-3ecebf0c.entry.js +0 -1
- package/dist/web-components-library/p-42c37977.js +0 -1
- package/dist/web-components-library/p-61b6ab7e.entry.js +0 -1
- package/dist/web-components-library/p-77d2db66.entry.js +0 -1
- package/dist/web-components-library/p-8fb44da3.entry.js +0 -1
- package/dist/web-components-library/p-981f5b41.entry.js +0 -1
- package/dist/web-components-library/p-a4049c7f.js +0 -1
- package/dist/web-components-library/p-b3cab405.entry.js +0 -1
- package/dist/web-components-library/p-c8578954.entry.js +0 -1
- package/dist/web-components-library/p-d0c956ff.entry.js +0 -1
- package/dist/web-components-library/p-e3d1b621.entry.js +0 -1
- package/dist/web-components-library/p-eedd3f14.entry.js +0 -1
- package/dist/web-components-library/p-f85e38d3.entry.js +0 -1
- package/www/build/p-01b13704.entry.js +0 -1
- package/www/build/p-05fd034c.entry.js +0 -1
- package/www/build/p-12ae4164.entry.js +0 -1
- package/www/build/p-142dc712.entry.js +0 -1
- package/www/build/p-2182f383.entry.js +0 -1
- package/www/build/p-2f9c9ed9.entry.js +0 -1
- package/www/build/p-3ecebf0c.entry.js +0 -1
- package/www/build/p-42c37977.js +0 -1
- package/www/build/p-61b6ab7e.entry.js +0 -1
- package/www/build/p-7210d846.js +0 -1
- package/www/build/p-77d2db66.entry.js +0 -1
- package/www/build/p-88b56b6e.css +0 -1
- package/www/build/p-8fb44da3.entry.js +0 -1
- package/www/build/p-981f5b41.entry.js +0 -1
- package/www/build/p-a4049c7f.js +0 -1
- package/www/build/p-b3cab405.entry.js +0 -1
- package/www/build/p-c8578954.entry.js +0 -1
- package/www/build/p-d0c956ff.entry.js +0 -1
- package/www/build/p-e3d1b621.entry.js +0 -1
- package/www/build/p-eedd3f14.entry.js +0 -1
- package/www/build/p-f85e38d3.entry.js +0 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
font-family: var(--font-family-sans);
|
|
3
|
+
font-weight: var(--font-rg);
|
|
4
|
+
position: absolute;
|
|
5
|
+
left: -100%;
|
|
6
|
+
background-color: #24f4ff;
|
|
7
|
+
padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3);
|
|
8
|
+
height: 60px;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host.skip-to-content-visible,
|
|
13
|
+
:host:focus {
|
|
14
|
+
position: static;
|
|
15
|
+
display: block;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host > z-link {
|
|
19
|
+
display: block;
|
|
20
|
+
text-align: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host > z-link.link-invisible {
|
|
24
|
+
height: 0;
|
|
25
|
+
width: 0;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host > z-link.link-visible {
|
|
30
|
+
height: initial;
|
|
31
|
+
width: initial;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host.dark {
|
|
35
|
+
background-color: var(--bg-grey-800);
|
|
36
|
+
color: var(--color-white);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host.light {
|
|
40
|
+
background-color: var(--bg-white);
|
|
41
|
+
color: var(--text-grey-800);
|
|
42
|
+
border: 2px solid var(--text-grey-800);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Tablet breakpoint */
|
|
46
|
+
@media (min-width: 768px) {
|
|
47
|
+
:host > z-link {
|
|
48
|
+
text-align: left;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Desktop breakpoint */
|
|
53
|
+
@media (min-width: 1152px) {
|
|
54
|
+
:host > z-link {
|
|
55
|
+
display: inline-block;
|
|
56
|
+
padding: 0 calc(var(--space-unit) * 3);
|
|
57
|
+
border-right: 1px solid var(--bg-grey-800);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host > z-link.link-invisible {
|
|
61
|
+
height: initial;
|
|
62
|
+
width: initial;
|
|
63
|
+
overflow: initial;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host > z-link:first-child {
|
|
67
|
+
padding-left: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host > z-link:last-child,
|
|
71
|
+
:host.dark > z-link:last-child,
|
|
72
|
+
:host.light > z-link:last-child {
|
|
73
|
+
border-right: none;
|
|
74
|
+
padding-right: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:host.dark > z-link {
|
|
78
|
+
border-right: 1px solid var(--bg-white);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Wide breakpoint */
|
|
83
|
+
@media (min-width: 1366px) {
|
|
84
|
+
}
|
|
@@ -66,15 +66,15 @@ export class ZTable {
|
|
|
66
66
|
h("div", { class: tableContentClass },
|
|
67
67
|
h("slot", { name: "table-body" }),
|
|
68
68
|
h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle },
|
|
69
|
-
!!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)),
|
|
70
|
-
!!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))))));
|
|
69
|
+
!!this.callToActionLabel && (h("z-button-deprecated", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)),
|
|
70
|
+
!!this.callToActionTwoLabel && (h("z-button-deprecated", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))))));
|
|
71
71
|
}
|
|
72
72
|
return (h(Host, null,
|
|
73
73
|
h("div", { class: tableClass },
|
|
74
74
|
h("slot", { name: "table-header" })),
|
|
75
75
|
h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle },
|
|
76
|
-
!!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)),
|
|
77
|
-
!!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))));
|
|
76
|
+
!!this.callToActionLabel && (h("z-button-deprecated", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)),
|
|
77
|
+
!!this.callToActionTwoLabel && (h("z-button-deprecated", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))));
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
80
|
const tableClass = `table ${this.empty ? "table-empty" : ""} ${this.bordered ? "table-bordered" : ""}
|
|
@@ -19,7 +19,7 @@ export class ZTableCell {
|
|
|
19
19
|
visible: this.isMenuOpened,
|
|
20
20
|
}) },
|
|
21
21
|
h("div", { class: "button-content" },
|
|
22
|
-
h("z-button", { icon: "contextual-menu", variant: ButtonVariantEnum.tertiary, size: ButtonSizeEnum["x-small"], onClick: () => this.handleMenu(), square: true }),
|
|
22
|
+
h("z-button-deprecated", { icon: "contextual-menu", variant: ButtonVariantEnum.tertiary, size: ButtonSizeEnum["x-small"], onClick: () => this.handleMenu(), square: true }),
|
|
23
23
|
h("div", { class: classNames("contextual-menu-container", {
|
|
24
24
|
visible: this.isMenuOpened,
|
|
25
25
|
}) },
|
|
@@ -74,7 +74,7 @@ export class ZTableHeader {
|
|
|
74
74
|
visible: this.isMenuOpened,
|
|
75
75
|
}) },
|
|
76
76
|
h("z-popover", { position: PopoverPosition["below-center"], "background-color": "gray200" },
|
|
77
|
-
h("z-button", { icon: "contextual-menu", variant: ButtonVariantEnum["tertiary"], size: ButtonSizeEnum["x-small"], square: true, slot: "trigger", onClick: () => this.handleMenuClick() }),
|
|
77
|
+
h("z-button-deprecated", { icon: "contextual-menu", variant: ButtonVariantEnum["tertiary"], size: ButtonSizeEnum["x-small"], square: true, slot: "trigger", onClick: () => this.handleMenuClick() }),
|
|
78
78
|
h("div", { slot: "popover" },
|
|
79
79
|
h("slot", { name: "contextual-menu" })))))));
|
|
80
80
|
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { Component, Prop, h, Element } from "@stencil/core";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import { ButtonVariantEnum, ButtonTypeEnum, ButtonSizeEnum, } from "../../beans";
|
|
4
|
+
/**
|
|
5
|
+
* @slot - button label
|
|
6
|
+
*/
|
|
7
|
+
export class ZButtonDeprecated {
|
|
8
|
+
constructor() {
|
|
9
|
+
/** HTML button disabled attribute. */
|
|
10
|
+
this.disabled = false;
|
|
11
|
+
/** HTML button type attribute. */
|
|
12
|
+
this.type = ButtonTypeEnum.button;
|
|
13
|
+
/** Graphical variant: `primary`, `secondary`, `tertiary`, `dark-bg`. Defaults to `primary`. */
|
|
14
|
+
this.variant = ButtonVariantEnum.primary;
|
|
15
|
+
/** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
|
|
16
|
+
this.size = ButtonSizeEnum.big;
|
|
17
|
+
/** Reduce button size (deprecated).
|
|
18
|
+
* @deprecated Use `size` prop.
|
|
19
|
+
*/
|
|
20
|
+
this.issmall = false;
|
|
21
|
+
/** Spy to render square button. */
|
|
22
|
+
this.square = false;
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
this.hostElement.style.pointerEvents = this.disabled ? "none" : "auto";
|
|
26
|
+
return (h("slot", { name: "element" },
|
|
27
|
+
h("button", { id: this.htmlid, name: this.name, type: this.type, disabled: this.disabled, class: classNames(this.variant, this.size, { issmall: this.issmall }, { square: this.square }) },
|
|
28
|
+
this.icon && h("z-icon", { name: this.icon, width: 16, height: 16 }),
|
|
29
|
+
h("slot", null))));
|
|
30
|
+
}
|
|
31
|
+
static get is() { return "z-button-deprecated"; }
|
|
32
|
+
static get encapsulation() { return "shadow"; }
|
|
33
|
+
static get originalStyleUrls() { return {
|
|
34
|
+
"$": ["styles.css"]
|
|
35
|
+
}; }
|
|
36
|
+
static get styleUrls() { return {
|
|
37
|
+
"$": ["styles.css"]
|
|
38
|
+
}; }
|
|
39
|
+
static get properties() { return {
|
|
40
|
+
"htmlid": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"mutable": false,
|
|
43
|
+
"complexType": {
|
|
44
|
+
"original": "string",
|
|
45
|
+
"resolved": "string",
|
|
46
|
+
"references": {}
|
|
47
|
+
},
|
|
48
|
+
"required": false,
|
|
49
|
+
"optional": true,
|
|
50
|
+
"docs": {
|
|
51
|
+
"tags": [],
|
|
52
|
+
"text": "Identifier, should be unique."
|
|
53
|
+
},
|
|
54
|
+
"attribute": "htmlid",
|
|
55
|
+
"reflect": false
|
|
56
|
+
},
|
|
57
|
+
"name": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"mutable": false,
|
|
60
|
+
"complexType": {
|
|
61
|
+
"original": "string",
|
|
62
|
+
"resolved": "string",
|
|
63
|
+
"references": {}
|
|
64
|
+
},
|
|
65
|
+
"required": false,
|
|
66
|
+
"optional": true,
|
|
67
|
+
"docs": {
|
|
68
|
+
"tags": [],
|
|
69
|
+
"text": "HTML button name attribute."
|
|
70
|
+
},
|
|
71
|
+
"attribute": "name",
|
|
72
|
+
"reflect": false
|
|
73
|
+
},
|
|
74
|
+
"disabled": {
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"mutable": false,
|
|
77
|
+
"complexType": {
|
|
78
|
+
"original": "boolean",
|
|
79
|
+
"resolved": "boolean",
|
|
80
|
+
"references": {}
|
|
81
|
+
},
|
|
82
|
+
"required": false,
|
|
83
|
+
"optional": true,
|
|
84
|
+
"docs": {
|
|
85
|
+
"tags": [],
|
|
86
|
+
"text": "HTML button disabled attribute."
|
|
87
|
+
},
|
|
88
|
+
"attribute": "disabled",
|
|
89
|
+
"reflect": true,
|
|
90
|
+
"defaultValue": "false"
|
|
91
|
+
},
|
|
92
|
+
"type": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "HTMLButtonElement[\"type\"]",
|
|
97
|
+
"resolved": "string",
|
|
98
|
+
"references": {
|
|
99
|
+
"HTMLButtonElement": {
|
|
100
|
+
"location": "global"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": true,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": "HTML button type attribute."
|
|
109
|
+
},
|
|
110
|
+
"attribute": "type",
|
|
111
|
+
"reflect": false,
|
|
112
|
+
"defaultValue": "ButtonTypeEnum.button"
|
|
113
|
+
},
|
|
114
|
+
"variant": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"mutable": false,
|
|
117
|
+
"complexType": {
|
|
118
|
+
"original": "ButtonVariantBean",
|
|
119
|
+
"resolved": "ButtonVariantEnum.primary | ButtonVariantEnum.secondary | ButtonVariantEnum.tertiary | typeof ButtonVariantEnum[\"dark-bg\"]",
|
|
120
|
+
"references": {
|
|
121
|
+
"ButtonVariantBean": {
|
|
122
|
+
"location": "import",
|
|
123
|
+
"path": "../../beans"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": false,
|
|
128
|
+
"optional": true,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": "Graphical variant: `primary`, `secondary`, `tertiary`, `dark-bg`. Defaults to `primary`."
|
|
132
|
+
},
|
|
133
|
+
"attribute": "variant",
|
|
134
|
+
"reflect": true,
|
|
135
|
+
"defaultValue": "ButtonVariantEnum.primary"
|
|
136
|
+
},
|
|
137
|
+
"icon": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"mutable": false,
|
|
140
|
+
"complexType": {
|
|
141
|
+
"original": "string",
|
|
142
|
+
"resolved": "string",
|
|
143
|
+
"references": {}
|
|
144
|
+
},
|
|
145
|
+
"required": false,
|
|
146
|
+
"optional": true,
|
|
147
|
+
"docs": {
|
|
148
|
+
"tags": [],
|
|
149
|
+
"text": "`z-icon` name to use (optional)."
|
|
150
|
+
},
|
|
151
|
+
"attribute": "icon",
|
|
152
|
+
"reflect": false
|
|
153
|
+
},
|
|
154
|
+
"size": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"mutable": false,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "ButtonSizeEnum",
|
|
159
|
+
"resolved": "ButtonSizeEnum.big | ButtonSizeEnum.small | typeof ButtonSizeEnum[\"x-small\"]",
|
|
160
|
+
"references": {
|
|
161
|
+
"ButtonSizeEnum": {
|
|
162
|
+
"location": "import",
|
|
163
|
+
"path": "../../beans"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"required": false,
|
|
168
|
+
"optional": true,
|
|
169
|
+
"docs": {
|
|
170
|
+
"tags": [],
|
|
171
|
+
"text": "Available sizes: `big`, `small` and `x-small`. Defaults to `big`."
|
|
172
|
+
},
|
|
173
|
+
"attribute": "size",
|
|
174
|
+
"reflect": true,
|
|
175
|
+
"defaultValue": "ButtonSizeEnum.big"
|
|
176
|
+
},
|
|
177
|
+
"issmall": {
|
|
178
|
+
"type": "boolean",
|
|
179
|
+
"mutable": false,
|
|
180
|
+
"complexType": {
|
|
181
|
+
"original": "boolean",
|
|
182
|
+
"resolved": "boolean",
|
|
183
|
+
"references": {}
|
|
184
|
+
},
|
|
185
|
+
"required": false,
|
|
186
|
+
"optional": true,
|
|
187
|
+
"docs": {
|
|
188
|
+
"tags": [{
|
|
189
|
+
"name": "deprecated",
|
|
190
|
+
"text": "Use `size` prop."
|
|
191
|
+
}],
|
|
192
|
+
"text": "Reduce button size (deprecated)."
|
|
193
|
+
},
|
|
194
|
+
"attribute": "issmall",
|
|
195
|
+
"reflect": true,
|
|
196
|
+
"defaultValue": "false"
|
|
197
|
+
},
|
|
198
|
+
"square": {
|
|
199
|
+
"type": "boolean",
|
|
200
|
+
"mutable": false,
|
|
201
|
+
"complexType": {
|
|
202
|
+
"original": "boolean",
|
|
203
|
+
"resolved": "boolean",
|
|
204
|
+
"references": {}
|
|
205
|
+
},
|
|
206
|
+
"required": false,
|
|
207
|
+
"optional": true,
|
|
208
|
+
"docs": {
|
|
209
|
+
"tags": [],
|
|
210
|
+
"text": "Spy to render square button."
|
|
211
|
+
},
|
|
212
|
+
"attribute": "square",
|
|
213
|
+
"reflect": true,
|
|
214
|
+
"defaultValue": "false"
|
|
215
|
+
}
|
|
216
|
+
}; }
|
|
217
|
+
static get elementRef() { return "hostElement"; }
|
|
218
|
+
}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
|
|
4
|
+
--z-icon-width: 16px;
|
|
5
|
+
--z-icon-height: 16px;
|
|
6
|
+
--z-icon-right-margin: var(--space-unit);
|
|
7
|
+
--rgb-white: 240, 240, 240
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
button:disabled,
|
|
11
|
+
::slotted(button:disabled) {
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
button,
|
|
16
|
+
::slotted(button),
|
|
17
|
+
::slotted(a) {
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
width: 100%;
|
|
24
|
+
font-family: var(--dashboard-font);
|
|
25
|
+
font-weight: var(--font-sb);
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
line-height: 1;
|
|
28
|
+
letter-spacing: 0.3px;
|
|
29
|
+
border-width: var(--border-size-medium);
|
|
30
|
+
border-style: solid;
|
|
31
|
+
border-radius: var(--border-radius);
|
|
32
|
+
vertical-align: middle;
|
|
33
|
+
text-transform: uppercase;
|
|
34
|
+
text-decoration: none;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
outline: none;
|
|
38
|
+
fill: currentColor;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
button.big,
|
|
42
|
+
:host([size="big"]) ::slotted(button),
|
|
43
|
+
:host([size="big"]) ::slotted(a) {
|
|
44
|
+
height: 44px;
|
|
45
|
+
min-width: 44px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
button.small,
|
|
49
|
+
:host([size="small"]) ::slotted(button),
|
|
50
|
+
:host([size="small"]) ::slotted(a) {
|
|
51
|
+
height: 36px;
|
|
52
|
+
min-width: 36px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
button.issmall,
|
|
56
|
+
:host([issmall]) ::slotted(button),
|
|
57
|
+
:host([issmall]) ::slotted(a) {
|
|
58
|
+
height: 36px;
|
|
59
|
+
min-width: 36px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
button.x-small,
|
|
63
|
+
:host([size="x-small"]) ::slotted(button),
|
|
64
|
+
:host([size="x-small"]) ::slotted(a) {
|
|
65
|
+
height: 32px;
|
|
66
|
+
min-width: 32px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
button:not(.square),
|
|
70
|
+
:host(:not([square])) ::slotted(button),
|
|
71
|
+
:host(:not([square])) ::slotted(a) {
|
|
72
|
+
min-width: calc(var(--space-unit) * 8);
|
|
73
|
+
padding: 0 calc(var(--space-unit) * 2);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
button.square,
|
|
77
|
+
:host([square]) {
|
|
78
|
+
--z-icon-right-margin: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
button.primary,
|
|
82
|
+
:host([variant="primary"]) ::slotted(button),
|
|
83
|
+
:host([variant="primary"]) ::slotted(a) {
|
|
84
|
+
background-color: var(--color-primary01);
|
|
85
|
+
border-color: var(--color-primary01);
|
|
86
|
+
color: var(--color-text-inverse);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media (hover: hover) {
|
|
90
|
+
button.primary:hover,
|
|
91
|
+
:host([variant="primary"]) ::slotted(button:hover),
|
|
92
|
+
:host([variant="primary"]) ::slotted(a:hover) {
|
|
93
|
+
background-color: var(--color-hover-primary);
|
|
94
|
+
border-color: var(--color-hover-primary);
|
|
95
|
+
color: var(--color-text-inverse);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
button:focus:focus-visible,
|
|
100
|
+
::slotted(button:focus:focus-visible),
|
|
101
|
+
::slotted(a:focus:focus-visible) {
|
|
102
|
+
box-shadow: var(--shadow-focus-primary);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
button.primary:active,
|
|
106
|
+
:host([variant="primary"]) ::slotted(button:active),
|
|
107
|
+
:host([variant="primary"]) ::slotted(a:active) {
|
|
108
|
+
background-color: var(--color-pressed-primary);
|
|
109
|
+
border-color: var(--color-pressed-primary);
|
|
110
|
+
color: var(--color-text-inverse);
|
|
111
|
+
box-shadow: var(--shadow-2);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
button.primary:disabled,
|
|
115
|
+
:host([variant="primary"]) ::slotted(button:disabled) {
|
|
116
|
+
background-color: var(--color-disabled01);
|
|
117
|
+
border-color: var(--color-disabled01);
|
|
118
|
+
color: var(--color-disabled02);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
button.secondary,
|
|
122
|
+
:host([variant="secondary"]) ::slotted(button),
|
|
123
|
+
:host([variant="secondary"]) ::slotted(a) {
|
|
124
|
+
background-color: var(--color-surface01);
|
|
125
|
+
border-color: var(--color-primary01);
|
|
126
|
+
color: var(--color-primary01);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@media (hover: hover) {
|
|
130
|
+
button.secondary:hover,
|
|
131
|
+
:host([variant="secondary"]) ::slotted(button:hover),
|
|
132
|
+
:host([variant="secondary"]) ::slotted(a:hover) {
|
|
133
|
+
background-color: var(--color-surface01);
|
|
134
|
+
border-color: var(--color-hover-primary);
|
|
135
|
+
color: var(--color-hover-primary);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
button.secondary:active,
|
|
140
|
+
:host([variant="secondary"]) ::slotted(button:active),
|
|
141
|
+
:host([variant="secondary"]) ::slotted(a:active) {
|
|
142
|
+
background-color: var(--color-surface01);
|
|
143
|
+
border-color: var(--color-pressed-primary);
|
|
144
|
+
color: var(--color-pressed-primary);
|
|
145
|
+
box-shadow: var(--shadow-2);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
button.secondary:disabled,
|
|
149
|
+
:host([variant="secondary"]) ::slotted(button:disabled) {
|
|
150
|
+
background-color: var(--color-surface01);
|
|
151
|
+
border-color: var(--color-disabled01);
|
|
152
|
+
color: var(--color-disabled02);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
button.tertiary,
|
|
156
|
+
:host([variant="tertiary"]) ::slotted(button),
|
|
157
|
+
:host([variant="tertiary"]) ::slotted(a) {
|
|
158
|
+
background-color: transparent;
|
|
159
|
+
border-color: transparent;
|
|
160
|
+
color: var(--color-primary01);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
button.tertiary.hasContent {
|
|
164
|
+
padding: 0 var(--space-unit);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media (hover: hover) {
|
|
168
|
+
button.tertiary:hover,
|
|
169
|
+
:host([variant="tertiary"]) ::slotted(button:hover),
|
|
170
|
+
:host([variant="tertiary"]) ::slotted(a:hover) {
|
|
171
|
+
background-color: var(--color-primary03);
|
|
172
|
+
border-color: var(--color-primary03);
|
|
173
|
+
color: var(--color-hover-primary);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
button.tertiary:focus:focus-visible,
|
|
178
|
+
:host([variant="tertiary"]) ::slotted(button:focus:focus-visible),
|
|
179
|
+
:host([variant="tertiary"]) ::slotted(a:focus:focus-visible) {
|
|
180
|
+
background-color: var(--color-surface01);
|
|
181
|
+
border-color: var(--color-surface01);
|
|
182
|
+
color: var(--color-primary01);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
button.tertiary:active,
|
|
186
|
+
:host([variant="tertiary"]) ::slotted(button:active),
|
|
187
|
+
:host([variant="tertiary"]) ::slotted(a:active) {
|
|
188
|
+
background-color: var(--color-surface01);
|
|
189
|
+
border-color: var(--color-surface01);
|
|
190
|
+
color: var(--color-primary01);
|
|
191
|
+
box-shadow: var(--shadow-2);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
button.tertiary:disabled,
|
|
195
|
+
:host([variant="tertiary"]) ::slotted(button:disabled) {
|
|
196
|
+
background-color: transparent;
|
|
197
|
+
border-color: transparent;
|
|
198
|
+
color: var(--color-disabled02);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
button.dark-bg,
|
|
202
|
+
:host([variant="dark-bg"]) ::slotted(button),
|
|
203
|
+
:host([variant="dark-bg"]) ::slotted(a) {
|
|
204
|
+
background-color: rgba(var(--rgb-white), 0.2);
|
|
205
|
+
border-color: transparent;
|
|
206
|
+
color: var(--color-text04);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
button.dark-bg.hasContent {
|
|
210
|
+
padding: 0 var(--space-unit);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@media (hover: hover) {
|
|
214
|
+
button.dark-bg:hover,
|
|
215
|
+
:host([variant="dark-bg"]) ::slotted(button:hover),
|
|
216
|
+
:host([variant="dark-bg"]) ::slotted(a:hover) {
|
|
217
|
+
background-color: rgba(var(--rgb-white), 0.1);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
button.dark-bg:active,
|
|
222
|
+
:host([variant="dark-bg"]) ::slotted(button:active),
|
|
223
|
+
:host([variant="dark-bg"]) ::slotted(a:active) {
|
|
224
|
+
background-color: rgba(var(--rgb-white), 0.3);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
button.dark-bg:disabled,
|
|
228
|
+
:host([variant="dark-bg"]) ::slotted(button:disabled) {
|
|
229
|
+
color: var(--color-disabled03);
|
|
230
|
+
background-color: rgba(var(--rgb-white), 0.05);
|
|
231
|
+
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--card-overflow: hidden;
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
div {
|
|
2
6
|
background-color: var(--color-surface01);
|
|
3
7
|
display: flex;
|
|
@@ -8,7 +12,7 @@ div {
|
|
|
8
12
|
height: 522px;
|
|
9
13
|
border: var(--border-size-medium) solid var(--color-surface03);
|
|
10
14
|
border-radius: var(--border-radius);
|
|
11
|
-
overflow:
|
|
15
|
+
overflow: var(--card-overflow);
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
div.real,
|
|
@@ -30,7 +30,7 @@ export class ZMyzCardDictionary {
|
|
|
30
30
|
h("div", { class: "front" },
|
|
31
31
|
h("z-myz-card-body", null,
|
|
32
32
|
h("z-myz-card-cover", { slot: "cover", titolo: this.name, img: this.cover, faded: this.disabled })),
|
|
33
|
-
h("z-button", { class: this.hideinfobtn ? "hideInfo" : "", variant: ButtonVariantEnum.secondary, icon: "informationsource", issmall: true, onClick: () => this.flipCard(true), disabled: this.flipped }, this.flipbuttonlabel)),
|
|
33
|
+
h("z-button-deprecated", { class: this.hideinfobtn ? "hideInfo" : "", variant: ButtonVariantEnum.secondary, icon: "informationsource", issmall: true, onClick: () => this.flipCard(true), disabled: this.flipped }, this.flipbuttonlabel)),
|
|
34
34
|
h("div", { class: "back" },
|
|
35
35
|
h("slot", { name: "info" }))),
|
|
36
36
|
h("slot", null))));
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
font-weight: var(--font-rg);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
:host z-myz-card {
|
|
7
|
+
--card-overflow: visible;
|
|
8
|
+
}
|
|
9
|
+
|
|
6
10
|
:host > div {
|
|
7
11
|
position: relative;
|
|
8
12
|
height: 522px;
|
|
@@ -49,7 +53,7 @@
|
|
|
49
53
|
transform: rotateY(0deg);
|
|
50
54
|
}
|
|
51
55
|
|
|
52
|
-
:host > div .front z-button {
|
|
56
|
+
:host > div .front z-button-deprecated {
|
|
53
57
|
position: absolute;
|
|
54
58
|
z-index: 3;
|
|
55
59
|
top: calc(var(--space-unit) * 0.5);
|
|
@@ -138,7 +138,7 @@ export class ZMyzTopbar {
|
|
|
138
138
|
if (this.hideloginbutton) {
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
|
-
return (h("z-button", { htmlid: "login-button", variant: this.ismyz ? ButtonVariantEnum.secondary : ButtonVariantEnum.tertiary, icon: "login", issmall: true }, "entra"));
|
|
141
|
+
return (h("z-button-deprecated", { htmlid: "login-button", variant: this.ismyz ? ButtonVariantEnum.secondary : ButtonVariantEnum.tertiary, icon: "login", issmall: true }, "entra"));
|
|
142
142
|
}
|
|
143
143
|
renderMobileLoginDiv(userData) {
|
|
144
144
|
return (h("div", { id: "mobile-login", class: "mobile-login" },
|