@maggioli-design-system/magma 2.1.0 → 2.3.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/AGENTS.md +26 -10
- package/CHANGELOG.md +475 -0
- package/README.md +5 -2
- package/agents/assets.md +231 -28
- package/agents/color.md +5 -3
- package/agents/components.md +3 -3
- package/agents/install.md +25 -4
- package/agents/reporting.md +127 -0
- package/agents/theming.md +15 -0
- package/dist/cjs/_commonjsHelpers-CFO10eej.js +7 -0
- package/dist/cjs/{floating-controller-uOCBLTk2.js → floating-controller-D7Ekjocg.js} +18 -4
- package/dist/cjs/{floating-ui.dom-DflSHZIo.js → floating-ui.dom-EMHL7uyZ.js} +146 -94
- package/dist/cjs/icon-MMHcqbgv.js +20 -0
- package/dist/cjs/index-UmmmCMIG.js +40 -40
- package/dist/cjs/index.cjs.js +62 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +2 -2
- package/dist/cjs/mds-badge.cjs.entry.js +1 -1
- package/dist/cjs/mds-banner_3.cjs.entry.js +3 -3
- package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +30 -2
- package/dist/cjs/mds-button_3.cjs.entry.js +125 -58
- package/dist/cjs/mds-calendar_2.cjs.entry.js +59 -6
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +1 -1
- package/dist/cjs/mds-details.cjs.entry.js +1 -1
- package/dist/cjs/mds-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/mds-emoji.cjs.entry.js +1 -1
- package/dist/cjs/mds-entity.cjs.entry.js +1 -1
- package/dist/cjs/mds-file-preview.cjs.entry.js +1 -1
- package/dist/cjs/mds-file.cjs.entry.js +29 -7520
- package/dist/cjs/mds-filter-item.cjs.entry.js +89 -3
- package/dist/cjs/mds-filter.cjs.entry.js +113 -19
- package/dist/cjs/mds-header-bar.cjs.entry.js +29 -2
- package/dist/cjs/mds-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +38 -2
- package/dist/cjs/mds-hr.cjs.entry.js +1 -1
- package/dist/cjs/mds-img.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +16 -2
- package/dist/cjs/mds-input-date.cjs.entry.js +36 -4
- package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-select.cjs.entry.js +32 -5
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +21 -8
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-upload.cjs.entry.js +1 -1
- package/dist/cjs/mds-input.cjs.entry.js +12 -3
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +1 -1
- package/dist/cjs/mds-keyboard.cjs.entry.js +1 -1
- package/dist/cjs/mds-kpi-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-label.cjs.entry.js +1 -1
- package/dist/cjs/mds-list-item.cjs.entry.js +2 -3
- package/dist/cjs/mds-mention.cjs.entry.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +32 -5
- package/dist/cjs/mds-note.cjs.entry.js +1 -1
- package/dist/cjs/mds-notification.cjs.entry.js +2 -2
- package/dist/cjs/mds-paginator-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-paginator.cjs.entry.js +1 -1
- package/dist/cjs/mds-policy-ai.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-animation.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-language.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-mode.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +4 -3
- package/dist/cjs/mds-pref-theme.cjs.entry.js +29 -2
- package/dist/cjs/mds-pref.cjs.entry.js +24 -53
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-features.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-list.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-progress_2.cjs.entry.js +4 -4
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-push-notification.cjs.entry.js +2 -2
- package/dist/cjs/mds-quote.cjs.entry.js +2 -2
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-radial-menu.cjs.entry.js +40 -4
- package/dist/cjs/mds-separator.cjs.entry.js +2 -2
- package/dist/cjs/mds-status-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab_2.cjs.entry.js +43 -8
- package/dist/cjs/mds-table-body.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +116 -77
- package/dist/cjs/mds-table-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-row.cjs.entry.js +22 -16
- package/dist/cjs/mds-table.cjs.entry.js +9 -2
- package/dist/cjs/mds-text.cjs.entry.js +37 -27
- package/dist/cjs/mds-toast.cjs.entry.js +2 -2
- package/dist/cjs/mds-tooltip.cjs.entry.js +17 -4
- package/dist/cjs/mds-tree-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-tree.cjs.entry.js +2 -2
- package/dist/cjs/mds-url-view.cjs.entry.js +2 -2
- package/dist/cjs/mds-usage.cjs.entry.js +23 -4
- package/dist/cjs/mds-video-wall.cjs.entry.js +2 -2
- package/dist/cjs/mds-zero.cjs.entry.js +2 -2
- package/dist/cjs/string-RoXIuD3q.js +7 -0
- package/dist/collection/common/floating-controller.js +17 -3
- package/dist/collection/common/hash.js +15 -0
- package/dist/collection/common/navigation.js +60 -0
- package/dist/collection/common/string.js +3 -1
- package/dist/collection/common/yugop/random-text.js +5 -0
- package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion/documentation.json +1 -1
- package/dist/collection/components/mds-accordion/mds-accordion.css +5 -5
- package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-item/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +11 -11
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +2 -2
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +6 -6
- package/dist/collection/components/mds-author/AGENTS.md +1 -1
- package/dist/collection/components/mds-author/documentation.json +2 -2
- package/dist/collection/components/mds-author/mds-author.css +2 -1
- package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar/documentation.json +2 -2
- package/dist/collection/components/mds-avatar/mds-avatar.css +18 -17
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack/documentation.json +1 -1
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +3 -3
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +1 -1
- package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.css +6 -6
- package/dist/collection/components/mds-badge/AGENTS.md +1 -1
- package/dist/collection/components/mds-badge/documentation.json +1 -1
- package/dist/collection/components/mds-badge/mds-badge.css +13 -13
- package/dist/collection/components/mds-banner/AGENTS.md +1 -1
- package/dist/collection/components/mds-banner/documentation.json +1 -1
- package/dist/collection/components/mds-banner/mds-banner.css +56 -56
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-benchmark-bar/documentation.json +1 -1
- package/dist/collection/components/mds-bibliography/AGENTS.md +1 -1
- package/dist/collection/components/mds-bibliography/documentation.json +2 -2
- package/dist/collection/components/mds-bibliography/mds-bibliography.css +8 -6
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb/documentation.json +1 -1
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +6 -6
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +1 -1
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +14 -13
- package/dist/collection/components/mds-button/AGENTS.md +5 -5
- package/dist/collection/components/mds-button/antipattern.md +20 -2
- package/dist/collection/components/mds-button/documentation.json +5 -5
- package/dist/collection/components/mds-button/mds-button.css +239 -417
- package/dist/collection/components/mds-button/mds-button.js +120 -38
- package/dist/collection/components/mds-button/pattern.md +34 -1
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +2 -2
- package/dist/collection/components/mds-button-dropdown/documentation.json +2 -2
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +10 -10
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +12 -1
- package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
- package/dist/collection/components/mds-button-group/documentation.json +1 -1
- package/dist/collection/components/mds-calendar/AGENTS.md +2 -2
- package/dist/collection/components/mds-calendar/documentation.json +2 -2
- package/dist/collection/components/mds-calendar/mds-calendar.css +5 -5
- package/dist/collection/components/mds-calendar/mds-calendar.js +17 -4
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-calendar-cell/documentation.json +1 -1
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +58 -58
- package/dist/collection/components/mds-card/AGENTS.md +1 -1
- package/dist/collection/components/mds-card/documentation.json +1 -1
- package/dist/collection/components/mds-card/mds-card.css +2 -2
- package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-content/documentation.json +1 -1
- package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-footer/documentation.json +1 -1
- package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-header/documentation.json +1 -1
- package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-media/documentation.json +1 -1
- package/dist/collection/components/mds-chip/AGENTS.md +1 -1
- package/dist/collection/components/mds-chip/documentation.json +1 -1
- package/dist/collection/components/mds-chip/mds-chip.css +90 -90
- package/dist/collection/components/mds-details/AGENTS.md +1 -1
- package/dist/collection/components/mds-details/documentation.json +1 -1
- package/dist/collection/components/mds-details/mds-details.css +6 -6
- package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
- package/dist/collection/components/mds-dropdown/documentation.json +2 -2
- package/dist/collection/components/mds-dropdown/mds-dropdown.css +26 -26
- package/dist/collection/components/mds-emoji/AGENTS.md +2 -2
- package/dist/collection/components/mds-emoji/documentation.json +3 -3
- package/dist/collection/components/mds-emoji/mds-emoji.css +5 -5
- package/dist/collection/components/mds-entity/AGENTS.md +1 -1
- package/dist/collection/components/mds-entity/documentation.json +1 -1
- package/dist/collection/components/mds-entity/mds-entity.css +8 -8
- package/dist/collection/components/mds-file/AGENTS.md +2 -2
- package/dist/collection/components/mds-file/documentation.json +3 -3
- package/dist/collection/components/mds-file/mds-file.css +13 -13
- package/dist/collection/components/mds-file/mds-file.js +15 -9
- package/dist/collection/components/mds-file/pattern.md +1 -1
- package/dist/collection/components/mds-file-preview/AGENTS.md +1 -1
- package/dist/collection/components/mds-file-preview/documentation.json +1 -1
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +21 -21
- package/dist/collection/components/mds-filter/AGENTS.md +5 -3
- package/dist/collection/components/mds-filter/documentation.json +3 -3
- package/dist/collection/components/mds-filter/mds-filter.css +16 -16
- package/dist/collection/components/mds-filter/mds-filter.js +97 -19
- package/dist/collection/components/mds-filter/pattern.md +34 -4
- package/dist/collection/components/mds-filter-item/AGENTS.md +9 -8
- package/dist/collection/components/mds-filter-item/documentation.json +4 -4
- package/dist/collection/components/mds-filter-item/mds-filter-item.css +27 -17
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +65 -3
- package/dist/collection/components/mds-filter-item/pattern.md +5 -5
- package/dist/collection/components/mds-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-header/documentation.json +1 -1
- package/dist/collection/components/mds-header/mds-header.css +21 -13
- package/dist/collection/components/mds-header-bar/AGENTS.md +2 -2
- package/dist/collection/components/mds-header-bar/documentation.json +2 -2
- package/dist/collection/components/mds-header-bar/mds-header-bar.css +5 -5
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +12 -1
- package/dist/collection/components/mds-help/AGENTS.md +1 -1
- package/dist/collection/components/mds-help/documentation.json +2 -2
- package/dist/collection/components/mds-help/mds-help.css +1 -1
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +2 -2
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +2 -2
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +10 -10
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +12 -1
- package/dist/collection/components/mds-hr/AGENTS.md +1 -1
- package/dist/collection/components/mds-hr/documentation.json +1 -1
- package/dist/collection/components/mds-hr/mds-hr.css +1 -1
- package/dist/collection/components/mds-icon/AGENTS.md +1 -1
- package/dist/collection/components/mds-icon/documentation.json +2 -2
- package/dist/collection/components/mds-img/AGENTS.md +1 -1
- package/dist/collection/components/mds-img/documentation.json +1 -1
- package/dist/collection/components/mds-img/mds-img.css +6 -6
- package/dist/collection/components/mds-input/AGENTS.md +3 -1
- package/dist/collection/components/mds-input/documentation.json +52 -4
- package/dist/collection/components/mds-input/mds-input.css +133 -62
- package/dist/collection/components/mds-input/mds-input.js +38 -2
- package/dist/collection/components/mds-input/pattern.md +15 -0
- package/dist/collection/components/mds-input-date/AGENTS.md +5 -2
- package/dist/collection/components/mds-input-date/documentation.json +50 -2
- package/dist/collection/components/mds-input-date/mds-input-date.css +52 -26
- package/dist/collection/components/mds-input-date/mds-input-date.js +46 -2
- package/dist/collection/components/mds-input-date-range/AGENTS.md +4 -2
- package/dist/collection/components/mds-input-date-range/documentation.json +50 -2
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +51 -25
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +34 -1
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.css +18 -18
- package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-field/documentation.json +1 -1
- package/dist/collection/components/mds-input-field/mds-input-field.css +7 -7
- package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-otp/documentation.json +1 -1
- package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-range/documentation.json +1 -1
- package/dist/collection/components/mds-input-range/mds-input-range.css +13 -12
- package/dist/collection/components/mds-input-select/AGENTS.md +7 -4
- package/dist/collection/components/mds-input-select/documentation.json +58 -7
- package/dist/collection/components/mds-input-select/mds-input-select.css +103 -29
- package/dist/collection/components/mds-input-select/mds-input-select.js +61 -7
- package/dist/collection/components/mds-input-select/pattern.md +3 -3
- package/dist/collection/components/mds-input-switch/AGENTS.md +2 -2
- package/dist/collection/components/mds-input-switch/documentation.json +2 -2
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +86 -65
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +19 -6
- package/dist/collection/components/mds-input-tip/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip/mds-input-tip.css +1 -1
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +21 -20
- package/dist/collection/components/mds-input-upload/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-upload/documentation.json +1 -1
- package/dist/collection/components/mds-input-upload/mds-input-upload.css +13 -12
- package/dist/collection/components/mds-keyboard/AGENTS.md +1 -1
- package/dist/collection/components/mds-keyboard/documentation.json +1 -1
- package/dist/collection/components/mds-keyboard/mds-keyboard.css +4 -3
- package/dist/collection/components/mds-keyboard-key/AGENTS.md +1 -1
- package/dist/collection/components/mds-keyboard-key/documentation.json +1 -1
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +2 -1
- package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi/documentation.json +1 -1
- package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi-item/documentation.json +1 -1
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +13 -13
- package/dist/collection/components/mds-label/AGENTS.md +1 -1
- package/dist/collection/components/mds-label/documentation.json +1 -1
- package/dist/collection/components/mds-label/mds-label.css +12 -12
- package/dist/collection/components/mds-list/AGENTS.md +2 -2
- package/dist/collection/components/mds-list/documentation.json +2 -2
- package/dist/collection/components/mds-list-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-list-item/documentation.json +3 -3
- package/dist/collection/components/mds-list-item/mds-list-item.css +0 -18
- package/dist/collection/components/mds-list-item/mds-list-item.js +1 -2
- package/dist/collection/components/mds-list-item/pattern.md +11 -0
- package/dist/collection/components/mds-mention/AGENTS.md +1 -1
- package/dist/collection/components/mds-mention/documentation.json +1 -1
- package/dist/collection/components/mds-mention/mds-mention.css +2 -2
- package/dist/collection/components/mds-modal/AGENTS.md +2 -2
- package/dist/collection/components/mds-modal/documentation.json +2 -2
- package/dist/collection/components/mds-modal/mds-modal.css +5 -5
- package/dist/collection/components/mds-modal/mds-modal.js +14 -3
- package/dist/collection/components/mds-note/AGENTS.md +1 -1
- package/dist/collection/components/mds-note/documentation.json +1 -1
- package/dist/collection/components/mds-note/mds-note.css +3 -3
- package/dist/collection/components/mds-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-notification/documentation.json +2 -2
- package/dist/collection/components/mds-notification/mds-notification.css +4 -4
- package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
- package/dist/collection/components/mds-paginator/documentation.json +1 -1
- package/dist/collection/components/mds-paginator/mds-paginator.css +6 -6
- package/dist/collection/components/mds-paginator-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-paginator-item/documentation.json +1 -1
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +31 -30
- package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
- package/dist/collection/components/mds-policy-ai/documentation.json +1 -1
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +8 -8
- package/dist/collection/components/mds-pref/AGENTS.md +2 -2
- package/dist/collection/components/mds-pref/documentation.json +14 -3
- package/dist/collection/components/mds-pref/mds-pref.js +39 -53
- package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +1 -1
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.css +7 -7
- package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-consumption/documentation.json +1 -1
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.css +4 -4
- package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-contrast/documentation.json +1 -1
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.css +5 -5
- package/dist/collection/components/mds-pref-language/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref-language/documentation.json +2 -2
- package/dist/collection/components/mds-pref-language/mds-pref-language.css +10 -2
- package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-language-item/documentation.json +1 -1
- package/dist/collection/components/mds-pref-mode/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref-mode/documentation.json +2 -2
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +5 -5
- package/dist/collection/components/mds-pref-theme/AGENTS.md +4 -3
- package/dist/collection/components/mds-pref-theme/documentation.json +2 -2
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.css +10 -2
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +29 -2
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-theme-item/documentation.json +1 -1
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +10 -9
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +3 -2
- package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table/documentation.json +1 -1
- package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
- package/dist/collection/components/mds-price-table-features/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +2 -2
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +1 -1
- package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-cell/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +11 -11
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +1 -1
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-row/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +12 -12
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +1 -1
- package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-header/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
- package/dist/collection/components/mds-price-table-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +8 -8
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +1 -1
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list-item/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +2 -2
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
- package/dist/collection/components/mds-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-progress/documentation.json +1 -1
- package/dist/collection/components/mds-progress/mds-progress.css +20 -20
- package/dist/collection/components/mds-progress/mds-progress.js +1 -1
- package/dist/collection/components/mds-push-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification/documentation.json +1 -1
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +1 -1
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification-item/documentation.json +1 -1
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +16 -16
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +2 -2
- package/dist/collection/components/mds-quote/AGENTS.md +1 -1
- package/dist/collection/components/mds-quote/documentation.json +1 -1
- package/dist/collection/components/mds-quote/mds-quote.css +6 -4
- package/dist/collection/components/mds-quote/mds-quote.js +1 -1
- package/dist/collection/components/mds-radial-menu/AGENTS.md +2 -2
- package/dist/collection/components/mds-radial-menu/documentation.json +2 -2
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +5 -3
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +12 -1
- package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-menu-item/documentation.json +1 -1
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
- package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +15 -15
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +1 -1
- package/dist/collection/components/mds-separator/AGENTS.md +1 -1
- package/dist/collection/components/mds-separator/documentation.json +1 -1
- package/dist/collection/components/mds-separator/mds-separator.css +2 -2
- package/dist/collection/components/mds-separator/mds-separator.js +1 -1
- package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
- package/dist/collection/components/mds-spinner/documentation.json +1 -1
- package/dist/collection/components/mds-spinner/mds-spinner.css +3 -3
- package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
- package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-status-bar/documentation.json +1 -1
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +7 -6
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +1 -1
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-stepper-bar/documentation.json +1 -1
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +6 -6
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +1 -1
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +1 -1
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +15 -15
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
- package/dist/collection/components/mds-tab/AGENTS.md +6 -5
- package/dist/collection/components/mds-tab/antipattern.md +27 -0
- package/dist/collection/components/mds-tab/documentation.json +6 -6
- package/dist/collection/components/mds-tab/mds-tab.css +61 -24
- package/dist/collection/components/mds-tab/mds-tab.js +34 -6
- package/dist/collection/components/mds-tab/pattern.md +33 -1
- package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +1 -1
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +1 -1
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar-item/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +14 -14
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +1 -1
- package/dist/collection/components/mds-tab-item/AGENTS.md +5 -4
- package/dist/collection/components/mds-tab-item/antipattern.md +22 -1
- package/dist/collection/components/mds-tab-item/documentation.json +5 -5
- package/dist/collection/components/mds-tab-item/mds-tab-item.css +2 -2
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +15 -3
- package/dist/collection/components/mds-tab-item/pattern.md +25 -7
- package/dist/collection/components/mds-table/AGENTS.md +4 -2
- package/dist/collection/components/mds-table/documentation.json +48 -4
- package/dist/collection/components/mds-table/mds-table.css +33 -22
- package/dist/collection/components/mds-table/mds-table.js +35 -1
- package/dist/collection/components/mds-table/pattern.md +30 -0
- package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-body/documentation.json +1 -1
- package/dist/collection/components/mds-table-body/mds-table-body.css +8 -8
- package/dist/collection/components/mds-table-body/mds-table-body.js +1 -1
- package/dist/collection/components/mds-table-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-cell/documentation.json +1 -1
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
- package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-footer/documentation.json +1 -1
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +1 -1
- package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-header/documentation.json +1 -1
- package/dist/collection/components/mds-table-header/mds-table-header.js +1 -1
- package/dist/collection/components/mds-table-header-cell/AGENTS.md +14 -5
- package/dist/collection/components/mds-table-header-cell/antipattern.md +17 -10
- package/dist/collection/components/mds-table-header-cell/documentation.json +54 -6
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +159 -82
- package/dist/collection/components/mds-table-header-cell/meta/event-detail.js +1 -0
- package/dist/collection/components/mds-table-header-cell/pattern.md +27 -6
- package/dist/collection/components/mds-table-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-row/documentation.json +1 -1
- package/dist/collection/components/mds-table-row/mds-table-row.css +12 -12
- package/dist/collection/components/mds-table-row/mds-table-row.js +22 -16
- package/dist/collection/components/mds-text/AGENTS.md +3 -3
- package/dist/collection/components/mds-text/documentation.json +2 -2
- package/dist/collection/components/mds-text/mds-text.css +3 -3
- package/dist/collection/components/mds-text/mds-text.js +31 -26
- package/dist/collection/components/mds-toast/AGENTS.md +1 -1
- package/dist/collection/components/mds-toast/documentation.json +1 -1
- package/dist/collection/components/mds-toast/mds-toast.css +18 -18
- package/dist/collection/components/mds-toast/mds-toast.js +1 -1
- package/dist/collection/components/mds-tooltip/AGENTS.md +4 -2
- package/dist/collection/components/mds-tooltip/antipattern.md +14 -0
- package/dist/collection/components/mds-tooltip/documentation.json +46 -5
- package/dist/collection/components/mds-tooltip/mds-tooltip.css +10 -10
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +41 -1
- package/dist/collection/components/mds-tooltip/pattern.md +9 -0
- package/dist/collection/components/mds-tree/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree/documentation.json +1 -1
- package/dist/collection/components/mds-tree/mds-tree.css +13 -13
- package/dist/collection/components/mds-tree/mds-tree.js +1 -1
- package/dist/collection/components/mds-tree-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree-item/documentation.json +1 -1
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +1 -1
- package/dist/collection/components/mds-url-view/AGENTS.md +1 -1
- package/dist/collection/components/mds-url-view/documentation.json +1 -1
- package/dist/collection/components/mds-url-view/mds-url-view.css +7 -7
- package/dist/collection/components/mds-url-view/mds-url-view.js +1 -1
- package/dist/collection/components/mds-usage/AGENTS.md +5 -3
- package/dist/collection/components/mds-usage/antipattern.md +17 -1
- package/dist/collection/components/mds-usage/documentation.json +31 -5
- package/dist/collection/components/mds-usage/mds-usage.css +6 -6
- package/dist/collection/components/mds-usage/mds-usage.js +26 -4
- package/dist/collection/components/mds-usage/meta/variants.js +14 -18
- package/dist/collection/components/mds-usage/pattern.md +10 -0
- package/dist/collection/components/mds-video-wall/AGENTS.md +1 -1
- package/dist/collection/components/mds-video-wall/documentation.json +1 -1
- package/dist/collection/components/mds-video-wall/mds-video-wall.css +3 -3
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +1 -1
- package/dist/collection/components/mds-zero/AGENTS.md +1 -1
- package/dist/collection/components/mds-zero/documentation.json +1 -1
- package/dist/collection/components/mds-zero/mds-zero.css +3 -3
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/collection/index.js +11 -4
- package/dist/collection/type/floating-ui.js +1 -0
- package/dist/collection/type/input.js +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-badge.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-card-media.js +1 -1
- package/dist/components/mds-card.js +1 -1
- package/dist/components/mds-chip.js +1 -1
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown.js +1 -1
- package/dist/components/mds-emoji.js +2 -2
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +1 -18
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-tip.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme-item.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features-row.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-header.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-price-table-list.js +1 -1
- package/dist/components/mds-price-table.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-separator.js +1 -1
- package/dist/components/mds-spinner.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-bar.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-tab.js +1 -1
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/mds-tooltip.js +1 -1
- package/dist/components/mds-tree-item.js +1 -1
- package/dist/components/mds-tree.js +1 -1
- package/dist/components/mds-url-view.js +1 -1
- package/dist/components/mds-usage.js +1 -1
- package/dist/components/mds-video-wall.js +1 -1
- package/dist/components/mds-zero.js +1 -1
- package/dist/components/p--5KZXaZp.js +1 -0
- package/dist/components/p--OCrgFeE.js +1 -0
- package/dist/components/p-6LGfUDQ4.js +1 -0
- package/dist/components/p-6pgPWpGI.js +1 -0
- package/dist/components/p-B8BWxSho.js +1 -0
- package/dist/components/p-B9uIL9KO.js +1 -0
- package/dist/components/p-BBDliSai.js +1 -0
- package/dist/components/p-BCwcnHFh.js +1 -0
- package/dist/components/p-BRf-u585.js +1 -0
- package/dist/components/p-BSeokAdy.js +1 -0
- package/dist/components/p-BXUJgu8l.js +1 -0
- package/dist/components/p-BXYUyw7p.js +1 -0
- package/dist/components/{p-s2Gu6hY7.js → p-BcUY-9n7.js} +1 -1
- package/dist/components/p-BfgJ-hHQ.js +1 -0
- package/dist/components/{p-x_c_51aL.js → p-CIfGjW_Z.js} +1 -1
- package/dist/components/p-CMp9rP7L.js +1 -0
- package/dist/components/p-CUmJoPAI.js +1 -0
- package/dist/components/p-CZjHixVB.js +1 -0
- package/dist/components/p-Ck0q_n7I.js +1 -0
- package/dist/components/p-CrCa_6a1.js +8 -0
- package/dist/components/p-Cv7lqHIc.js +1 -0
- package/dist/components/p-Cw6_ooFx.js +1 -0
- package/dist/components/p-DGYRngAi.js +1 -0
- package/dist/components/p-DHu8X7zF.js +1 -0
- package/dist/components/{p-BW24ByN-.js → p-DLCcW1Q5.js} +1 -1
- package/dist/components/p-DOzcuSrZ.js +1 -0
- package/dist/components/p-DZPHWQtD.js +1 -0
- package/dist/components/p-DlRjt7nE.js +1 -0
- package/dist/components/p-HSM_x8fD.js +1 -0
- package/dist/components/p-JMPfVnGv.js +1 -0
- package/dist/components/p-ay5NzZ_x.js +1 -0
- package/dist/components/p-lNY_3s6S.js +1 -0
- package/dist/components/p-qYRtWYC8.js +1 -0
- package/dist/documentation.json +469 -84
- package/dist/esm/_commonjsHelpers-B85MJLTf.js +5 -0
- package/dist/esm/{floating-controller-BTYkH_Ih.js → floating-controller-D5-8D9mH.js} +18 -4
- package/dist/esm/{floating-ui.dom-CHAGzQT-.js → floating-ui.dom-JMPfVnGv.js} +146 -94
- package/dist/esm/icon-pNJmnrhq.js +16 -0
- package/dist/esm/index-BxPbQB28.js +40 -40
- package/dist/esm/index.js +62 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer.entry.js +1 -1
- package/dist/esm/mds-accordion.entry.js +1 -1
- package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm/mds-avatar-stack.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +2 -2
- package/dist/esm/mds-badge.entry.js +1 -1
- package/dist/esm/mds-banner_3.entry.js +3 -3
- package/dist/esm/mds-bibliography.entry.js +1 -1
- package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm/mds-breadcrumb.entry.js +1 -1
- package/dist/esm/mds-button-dropdown.entry.js +30 -2
- package/dist/esm/mds-button_3.entry.js +123 -56
- package/dist/esm/mds-calendar_2.entry.js +59 -6
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +1 -1
- package/dist/esm/mds-details.entry.js +1 -1
- package/dist/esm/mds-dropdown.entry.js +3 -3
- package/dist/esm/mds-emoji.entry.js +1 -1
- package/dist/esm/mds-entity.entry.js +1 -1
- package/dist/esm/mds-file-preview.entry.js +1 -1
- package/dist/esm/mds-file.entry.js +30 -7521
- package/dist/esm/mds-filter-item.entry.js +89 -3
- package/dist/esm/mds-filter.entry.js +114 -20
- package/dist/esm/mds-header-bar.entry.js +29 -2
- package/dist/esm/mds-header.entry.js +1 -1
- package/dist/esm/mds-horizontal-scroll.entry.js +38 -2
- package/dist/esm/mds-hr.entry.js +1 -1
- package/dist/esm/mds-img.entry.js +1 -1
- package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +16 -2
- package/dist/esm/mds-input-date.entry.js +36 -4
- package/dist/esm/mds-input-field.entry.js +1 -1
- package/dist/esm/mds-input-range.entry.js +1 -1
- package/dist/esm/mds-input-select.entry.js +32 -5
- package/dist/esm/mds-input-switch_2.entry.js +21 -8
- package/dist/esm/mds-input-tip_2.entry.js +2 -2
- package/dist/esm/mds-input-upload.entry.js +1 -1
- package/dist/esm/mds-input.entry.js +12 -3
- package/dist/esm/mds-keyboard-key.entry.js +1 -1
- package/dist/esm/mds-keyboard.entry.js +1 -1
- package/dist/esm/mds-kpi-item.entry.js +1 -1
- package/dist/esm/mds-label.entry.js +1 -1
- package/dist/esm/mds-list-item.entry.js +2 -3
- package/dist/esm/mds-mention.entry.js +1 -1
- package/dist/esm/mds-modal.entry.js +31 -4
- package/dist/esm/mds-note.entry.js +1 -1
- package/dist/esm/mds-notification.entry.js +2 -2
- package/dist/esm/mds-paginator-item.entry.js +1 -1
- package/dist/esm/mds-paginator.entry.js +1 -1
- package/dist/esm/mds-policy-ai.entry.js +1 -1
- package/dist/esm/mds-pref-animation.entry.js +1 -1
- package/dist/esm/mds-pref-consumption.entry.js +1 -1
- package/dist/esm/mds-pref-contrast.entry.js +1 -1
- package/dist/esm/mds-pref-language.entry.js +1 -1
- package/dist/esm/mds-pref-mode.entry.js +1 -1
- package/dist/esm/mds-pref-theme-item.entry.js +4 -3
- package/dist/esm/mds-pref-theme.entry.js +30 -3
- package/dist/esm/mds-pref.entry.js +24 -53
- package/dist/esm/mds-price-table-features-cell.entry.js +2 -2
- package/dist/esm/mds-price-table-features-row.entry.js +2 -2
- package/dist/esm/mds-price-table-features.entry.js +2 -2
- package/dist/esm/mds-price-table-header.entry.js +1 -1
- package/dist/esm/mds-price-table-list-item.entry.js +2 -2
- package/dist/esm/mds-price-table-list.entry.js +2 -2
- package/dist/esm/mds-price-table.entry.js +1 -1
- package/dist/esm/mds-progress_2.entry.js +4 -4
- package/dist/esm/mds-push-notification-item.entry.js +4 -4
- package/dist/esm/mds-push-notification.entry.js +2 -2
- package/dist/esm/mds-quote.entry.js +2 -2
- package/dist/esm/mds-radial-menu-item.entry.js +2 -2
- package/dist/esm/mds-radial-menu.entry.js +40 -4
- package/dist/esm/mds-separator.entry.js +2 -2
- package/dist/esm/mds-status-bar.entry.js +2 -2
- package/dist/esm/mds-stepper-bar-item.entry.js +2 -2
- package/dist/esm/mds-stepper-bar.entry.js +2 -2
- package/dist/esm/mds-tab-bar-item.entry.js +2 -2
- package/dist/esm/mds-tab-bar.entry.js +2 -2
- package/dist/esm/mds-tab_2.entry.js +43 -8
- package/dist/esm/mds-table-body.entry.js +2 -2
- package/dist/esm/mds-table-footer.entry.js +2 -2
- package/dist/esm/mds-table-header-cell.entry.js +117 -78
- package/dist/esm/mds-table-header.entry.js +2 -2
- package/dist/esm/mds-table-row.entry.js +23 -17
- package/dist/esm/mds-table.entry.js +9 -2
- package/dist/esm/mds-text.entry.js +37 -27
- package/dist/esm/mds-toast.entry.js +2 -2
- package/dist/esm/mds-tooltip.entry.js +17 -4
- package/dist/esm/mds-tree-item.entry.js +2 -2
- package/dist/esm/mds-tree.entry.js +2 -2
- package/dist/esm/mds-url-view.entry.js +2 -2
- package/dist/esm/mds-usage.entry.js +23 -4
- package/dist/esm/mds-video-wall.entry.js +2 -2
- package/dist/esm/mds-zero.entry.js +2 -2
- package/dist/esm/string-6pgPWpGI.js +5 -0
- package/dist/esm-es5/_commonjsHelpers-B85MJLTf.js +1 -0
- package/dist/esm-es5/{floating-controller-BTYkH_Ih.js → floating-controller-D5-8D9mH.js} +11 -5
- package/dist/esm-es5/{floating-ui.dom-CHAGzQT-.js → floating-ui.dom-JMPfVnGv.js} +80 -48
- package/dist/esm-es5/icon-pNJmnrhq.js +1 -0
- package/dist/esm-es5/index-BxPbQB28.js +36 -36
- package/dist/esm-es5/index.js +37 -20
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +2 -2
- package/dist/esm-es5/mds-accordion-timer.entry.js +2 -2
- package/dist/esm-es5/mds-accordion.entry.js +2 -2
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +2 -2
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +3 -3
- package/dist/esm-es5/mds-bibliography.entry.js +2 -2
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +2 -2
- package/dist/esm-es5/mds-button-dropdown.entry.js +3 -3
- package/dist/esm-es5/mds-button_3.entry.js +50 -7
- package/dist/esm-es5/mds-calendar_2.entry.js +8 -6
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +5 -5
- package/dist/esm-es5/mds-details.entry.js +2 -2
- package/dist/esm-es5/mds-dropdown.entry.js +16 -16
- package/dist/esm-es5/mds-emoji.entry.js +18 -18
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +7 -7
- package/dist/esm-es5/mds-file.entry.js +15 -2835
- package/dist/esm-es5/mds-filter-item.entry.js +16 -1
- package/dist/esm-es5/mds-filter.entry.js +18 -2
- package/dist/esm-es5/mds-header-bar.entry.js +3 -3
- package/dist/esm-es5/mds-header.entry.js +7 -7
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +13 -13
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +7 -2
- package/dist/esm-es5/mds-input-date.entry.js +8 -3
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +7 -7
- package/dist/esm-es5/mds-input-select.entry.js +14 -5
- package/dist/esm-es5/mds-input-switch_2.entry.js +17 -9
- package/dist/esm-es5/mds-input-tip_2.entry.js +2 -2
- package/dist/esm-es5/mds-input-upload.entry.js +1 -1
- package/dist/esm-es5/mds-input.entry.js +30 -25
- package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
- package/dist/esm-es5/mds-keyboard.entry.js +1 -1
- package/dist/esm-es5/mds-kpi-item.entry.js +2 -2
- package/dist/esm-es5/mds-label.entry.js +2 -2
- package/dist/esm-es5/mds-list-item.entry.js +2 -2
- package/dist/esm-es5/mds-mention.entry.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +5 -5
- package/dist/esm-es5/mds-note.entry.js +1 -1
- package/dist/esm-es5/mds-notification.entry.js +3 -3
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +3 -3
- package/dist/esm-es5/mds-policy-ai.entry.js +1 -1
- package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
- package/dist/esm-es5/mds-pref-consumption.entry.js +2 -2
- package/dist/esm-es5/mds-pref-contrast.entry.js +2 -2
- package/dist/esm-es5/mds-pref-language.entry.js +1 -1
- package/dist/esm-es5/mds-pref-mode.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme-item.entry.js +3 -3
- package/dist/esm-es5/mds-pref-theme.entry.js +15 -7
- package/dist/esm-es5/mds-pref.entry.js +14 -5
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +2 -2
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +2 -2
- package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +3 -3
- package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification.entry.js +2 -2
- package/dist/esm-es5/mds-quote.entry.js +2 -2
- package/dist/esm-es5/mds-radial-menu-item.entry.js +2 -2
- package/dist/esm-es5/mds-radial-menu.entry.js +2 -2
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +2 -2
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +3 -3
- package/dist/esm-es5/mds-stepper-bar.entry.js +4 -4
- package/dist/esm-es5/mds-tab-bar-item.entry.js +3 -3
- package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab_2.entry.js +25 -4
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +1 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +22 -3
- package/dist/esm-es5/mds-table-header.entry.js +4 -4
- package/dist/esm-es5/mds-table-row.entry.js +12 -4
- package/dist/esm-es5/mds-table.entry.js +11 -5
- package/dist/esm-es5/mds-text.entry.js +25 -7
- package/dist/esm-es5/mds-toast.entry.js +2 -2
- package/dist/esm-es5/mds-tooltip.entry.js +8 -3
- package/dist/esm-es5/mds-tree-item.entry.js +2 -2
- package/dist/esm-es5/mds-tree.entry.js +3 -3
- package/dist/esm-es5/mds-url-view.entry.js +2 -2
- package/dist/esm-es5/mds-usage.entry.js +9 -3
- package/dist/esm-es5/mds-video-wall.entry.js +2 -2
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/esm-es5/string-6pgPWpGI.js +2 -0
- package/dist/hydrate/index.js +1580 -8246
- package/dist/hydrate/index.mjs +1580 -8246
- package/dist/magma-components/index.esm.js +1 -1
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/p-00ce5c81.entry.js +1 -0
- package/dist/magma-components/{p-5c94e0c2.system.entry.js → p-00ff586a.system.entry.js} +2 -2
- package/dist/magma-components/p-01f05a56.entry.js +1 -0
- package/dist/magma-components/p-0345cbd0.system.entry.js +83 -0
- package/dist/magma-components/p-03a6a8bd.system.entry.js +46 -0
- package/dist/magma-components/p-05de42e1.system.entry.js +1 -0
- package/dist/magma-components/p-063bccb3.entry.js +1 -0
- package/dist/magma-components/p-0c89c485.entry.js +1 -0
- package/dist/magma-components/p-0d94a2b8.entry.js +8 -0
- package/dist/magma-components/{p-ee1e7f07.system.entry.js → p-0d97e28d.system.entry.js} +1 -1
- package/dist/magma-components/p-108e31e6.entry.js +1 -0
- package/dist/magma-components/p-114f0bb7.system.entry.js +14 -0
- package/dist/magma-components/{p-e8ed096b.entry.js → p-121730d1.entry.js} +1 -1
- package/dist/magma-components/p-137116df.entry.js +1 -0
- package/dist/magma-components/p-13b0babc.system.entry.js +1 -0
- package/dist/magma-components/p-14a108e8.system.entry.js +8 -0
- package/dist/magma-components/p-14eadf95.system.entry.js +21 -0
- package/dist/magma-components/p-154aff83.entry.js +1 -0
- package/dist/magma-components/p-155f79f4.system.entry.js +47 -0
- package/dist/magma-components/p-17b62839.entry.js +1 -0
- package/dist/magma-components/{p-0a551e86.entry.js → p-1802d6a7.entry.js} +1 -1
- package/dist/magma-components/{p-91c4015f.system.entry.js → p-188d9770.system.entry.js} +1 -1
- package/dist/magma-components/p-18ba4766.entry.js +1 -0
- package/dist/magma-components/p-1c63801f.system.entry.js +11 -0
- package/dist/magma-components/p-1c6a507c.system.entry.js +17 -0
- package/dist/magma-components/p-1e2388be.entry.js +1 -0
- package/dist/magma-components/{p-eaff7300.entry.js → p-22e9a507.entry.js} +1 -1
- package/dist/magma-components/p-24a9871a.system.entry.js +1 -0
- package/dist/magma-components/p-26332bce.system.entry.js +1 -0
- package/dist/magma-components/p-26c85354.system.entry.js +1 -0
- package/dist/magma-components/p-2708561b.system.entry.js +10 -0
- package/dist/magma-components/{p-a4a83a63.entry.js → p-2710ddc4.entry.js} +1 -1
- package/dist/magma-components/p-294241fa.entry.js +1 -0
- package/dist/magma-components/p-2b2d0910.system.entry.js +1 -0
- package/dist/magma-components/p-2c940d19.entry.js +1 -0
- package/dist/magma-components/{p-93d39066.entry.js → p-2de5f5fe.entry.js} +1 -1
- package/dist/magma-components/p-2e74231d.system.entry.js +4 -0
- package/dist/magma-components/p-2e83f801.system.entry.js +1 -0
- package/dist/magma-components/{p-dd58f9ee.entry.js → p-2f0815f3.entry.js} +1 -1
- package/dist/magma-components/p-30d36dfe.entry.js +1 -0
- package/dist/magma-components/p-323c7aa4.system.entry.js +25 -0
- package/dist/magma-components/{p-493fb2f4.system.entry.js → p-32e077c0.system.entry.js} +2 -2
- package/dist/magma-components/p-334b305d.system.entry.js +16 -0
- package/dist/magma-components/{p-6c18c40e.system.entry.js → p-341994b3.system.entry.js} +1 -1
- package/dist/magma-components/p-35434d4b.system.entry.js +32 -0
- package/dist/magma-components/p-37495e03.entry.js +1 -0
- package/dist/magma-components/{p-439c9ce3.system.entry.js → p-38e0379a.system.entry.js} +2 -2
- package/dist/magma-components/p-3b91efd1.entry.js +1 -0
- package/dist/magma-components/p-3dc4db04.system.entry.js +16 -0
- package/dist/magma-components/p-3f0e82bc.entry.js +1 -0
- package/dist/magma-components/p-3fa6cf85.system.entry.js +1 -0
- package/dist/magma-components/p-40e97485.entry.js +1 -0
- package/dist/magma-components/p-4159c306.entry.js +1 -0
- package/dist/magma-components/p-42411854.system.entry.js +102 -0
- package/dist/magma-components/{p-2f520704.entry.js → p-42ebba8c.entry.js} +1 -1
- package/dist/magma-components/p-4356d96e.system.entry.js +21 -0
- package/dist/magma-components/p-4577948d.system.entry.js +12 -0
- package/dist/magma-components/p-4658a200.entry.js +1 -0
- package/dist/magma-components/{p-b431ca8a.entry.js → p-4cfa925a.entry.js} +1 -1
- package/dist/magma-components/p-4dfeb655.system.entry.js +23 -0
- package/dist/magma-components/p-4ef19542.entry.js +1 -0
- package/dist/magma-components/{p-ac81f63a.system.entry.js → p-508e10b5.system.entry.js} +1 -1
- package/dist/magma-components/p-522fd3d0.system.entry.js +4 -0
- package/dist/magma-components/p-528d913c.system.entry.js +17 -0
- package/dist/magma-components/p-569cbe13.entry.js +1 -0
- package/dist/magma-components/p-574c2c13.system.entry.js +222 -0
- package/dist/magma-components/{p-218d8254.system.entry.js → p-584a4ee8.system.entry.js} +1 -1
- package/dist/magma-components/{p-577db922.entry.js → p-595fde64.entry.js} +1 -1
- package/dist/magma-components/p-5989cdf2.system.entry.js +16 -0
- package/dist/magma-components/p-5c17a324.entry.js +1 -0
- package/dist/magma-components/p-5df91427.system.entry.js +15 -0
- package/dist/magma-components/p-5fcc1455.entry.js +1 -0
- package/dist/magma-components/p-61638aa3.entry.js +1 -0
- package/dist/magma-components/p-634727e6.system.entry.js +22 -0
- package/dist/magma-components/{p-03c2060d.entry.js → p-6465c8f4.entry.js} +1 -1
- package/dist/magma-components/p-6764b13a.entry.js +1 -0
- package/dist/magma-components/p-6812f01b.entry.js +1 -0
- package/dist/magma-components/{p-4211ce6c.system.entry.js → p-6901428b.system.entry.js} +1 -1
- package/dist/magma-components/p-699a7926.entry.js +1 -0
- package/dist/magma-components/p-69d6cc9e.system.entry.js +7 -0
- package/dist/magma-components/p-6a798061.entry.js +1 -0
- package/dist/magma-components/p-6d350c7c.entry.js +1 -0
- package/dist/magma-components/p-6f5a1248.entry.js +1 -0
- package/dist/magma-components/p-6fba5e6c.entry.js +1 -0
- package/dist/magma-components/p-6fd9a2ae.entry.js +1 -0
- package/dist/magma-components/p-6pgPWpGI.js +1 -0
- package/dist/magma-components/p-70caf05b.system.entry.js +10 -0
- package/dist/magma-components/{p-832883c4.entry.js → p-70cc167f.entry.js} +1 -1
- package/dist/magma-components/{p-86f4b6eb.system.entry.js → p-736c0e25.system.entry.js} +2 -2
- package/dist/magma-components/p-73e593a2.system.entry.js +95 -0
- package/dist/magma-components/p-7450a7a7.system.entry.js +49 -0
- package/dist/magma-components/p-7535328a.entry.js +1 -0
- package/dist/magma-components/{p-4cb88b06.system.entry.js → p-76f02296.system.entry.js} +1 -1
- package/dist/magma-components/p-79bc2e81.entry.js +1 -0
- package/dist/magma-components/p-79dc2243.entry.js +1 -0
- package/dist/magma-components/p-7b1c6eb0.entry.js +1 -0
- package/dist/magma-components/p-7b8b51c8.entry.js +1 -0
- package/dist/magma-components/p-7bc0a6c4.entry.js +1 -0
- package/dist/magma-components/{p-8d53bd61.system.entry.js → p-7c8e79a7.system.entry.js} +1 -1
- package/dist/magma-components/p-7c90298a.entry.js +1 -0
- package/dist/magma-components/p-7e02237b.entry.js +1 -0
- package/dist/magma-components/{p-f733ae92.system.entry.js → p-7f247e64.system.entry.js} +2 -2
- package/dist/magma-components/p-808f6796.entry.js +1 -0
- package/dist/magma-components/{p-e213640b.entry.js → p-82480df5.entry.js} +1 -1
- package/dist/magma-components/p-842b1dfc.entry.js +1 -0
- package/dist/magma-components/p-88c7be3d.system.entry.js +68 -0
- package/dist/magma-components/p-89733d3a.system.entry.js +14 -0
- package/dist/magma-components/p-8c75425d.entry.js +1 -0
- package/dist/magma-components/{p-5ac9e2f4.entry.js → p-8c76410b.entry.js} +1 -1
- package/dist/magma-components/p-8cdad12f.entry.js +1 -0
- package/dist/magma-components/p-8d2a6896.entry.js +1 -0
- package/dist/magma-components/p-8d7835e2.system.entry.js +10 -0
- package/dist/magma-components/p-8f039ca0.system.entry.js +7 -0
- package/dist/magma-components/p-8f54cf62.system.entry.js +4 -0
- package/dist/magma-components/p-8f6bd147.entry.js +1 -0
- package/dist/magma-components/p-9017022c.system.entry.js +15 -0
- package/dist/magma-components/p-909f5b60.system.entry.js +55 -0
- package/dist/magma-components/p-94e9f2be.system.entry.js +11 -0
- package/dist/magma-components/p-976bb373.system.entry.js +90 -0
- package/dist/magma-components/p-97d82884.system.entry.js +16 -0
- package/dist/magma-components/p-97de86c6.system.entry.js +16 -0
- package/dist/magma-components/p-97e9a197.system.entry.js +32 -0
- package/dist/magma-components/p-9a936cae.system.entry.js +45 -0
- package/dist/magma-components/p-9c6d184f.entry.js +1 -0
- package/dist/magma-components/p-9db0a6e9.entry.js +1 -0
- package/dist/magma-components/p-9e662528.entry.js +1 -0
- package/dist/magma-components/{p-7ffda4f5.entry.js → p-9ff02a82.entry.js} +1 -1
- package/dist/magma-components/p-B85MJLTf.js +1 -0
- package/dist/magma-components/p-BJqUjYIG.system.js +1 -0
- package/dist/magma-components/{p-Dg8nxRUX.system.js → p-BcYSdbK0.system.js} +85 -53
- package/dist/magma-components/p-BeYLDgbf.js +1 -0
- package/dist/magma-components/p-CKfEQ187.system.js +107 -0
- package/dist/magma-components/p-D6-Ny6z1.system.js +1 -0
- package/dist/magma-components/{p-BPNsbMrg.system.js → p-DhhAXEdA.system.js} +11 -5
- package/dist/magma-components/p-JMPfVnGv.js +1 -0
- package/dist/magma-components/p-ZDRIVCAt.system.js +1 -1
- package/dist/magma-components/p-a3e3a653.system.entry.js +81 -0
- package/dist/magma-components/p-a4c26b4d.system.entry.js +19 -0
- package/dist/magma-components/{p-dcc3be64.system.entry.js → p-a61c7ae9.system.entry.js} +1 -1
- package/dist/magma-components/p-a653e096.entry.js +1 -0
- package/dist/magma-components/p-a8bf46cb.system.entry.js +1 -0
- package/dist/magma-components/p-a9736d68.system.entry.js +4 -0
- package/dist/magma-components/p-ac4435e7.entry.js +1 -0
- package/dist/magma-components/p-ac873ab4.entry.js +1 -0
- package/dist/magma-components/p-acae292f.system.entry.js +28 -0
- package/dist/magma-components/p-add1a8d0.system.entry.js +7 -0
- package/dist/magma-components/p-b1a0e56e.system.entry.js +42 -0
- package/dist/magma-components/p-b33a6f7e.system.entry.js +13 -0
- package/dist/magma-components/p-b492dd4c.entry.js +1 -0
- package/dist/magma-components/p-b99cac43.entry.js +1 -0
- package/dist/magma-components/p-baf0359b.entry.js +1 -0
- package/dist/magma-components/p-bbd414dc.entry.js +1 -0
- package/dist/magma-components/p-be1aad5f.entry.js +1 -0
- package/dist/magma-components/p-bf05f9f3.entry.js +1 -0
- package/dist/magma-components/p-bf8c6647.system.entry.js +11 -0
- package/dist/magma-components/p-bfe19e4b.entry.js +1 -0
- package/dist/magma-components/p-c1a7266a.entry.js +1 -0
- package/dist/magma-components/p-c3585de7.system.entry.js +7 -0
- package/dist/magma-components/p-c45d9a64.system.entry.js +32 -0
- package/dist/magma-components/p-c4ceaef6.system.entry.js +10 -0
- package/dist/magma-components/{p-57762bae.entry.js → p-c575cb7b.entry.js} +1 -1
- package/dist/magma-components/p-c644c5fc.system.entry.js +1 -0
- package/dist/magma-components/{p-61bedbe7.system.entry.js → p-c69ec735.system.entry.js} +8 -3
- package/dist/magma-components/p-c7d84d1c.system.entry.js +1 -0
- package/dist/magma-components/p-cb8b45fd.entry.js +1 -0
- package/dist/magma-components/p-cbfd8b10.system.entry.js +16 -0
- package/dist/magma-components/{p-ed897f9f.entry.js → p-ce46191c.entry.js} +1 -1
- package/dist/magma-components/p-cebe7b52.entry.js +1 -0
- package/dist/magma-components/p-cefdc01f.system.entry.js +7 -0
- package/dist/magma-components/{p-f29a059d.system.entry.js → p-d025a34f.system.entry.js} +1 -1
- package/dist/magma-components/p-d1c47baa.entry.js +1 -0
- package/dist/magma-components/p-d269bfb0.entry.js +1 -0
- package/dist/magma-components/p-d42f267b.system.entry.js +40 -0
- package/dist/magma-components/p-d65d8a09.system.entry.js +1 -0
- package/dist/magma-components/p-d6eca2ef.entry.js +1 -0
- package/dist/magma-components/p-d716efe9.system.entry.js +1 -0
- package/dist/magma-components/{p-314abfba.entry.js → p-da6ccc03.entry.js} +1 -1
- package/dist/magma-components/p-dbaf5368.system.entry.js +7 -0
- package/dist/magma-components/p-dc340618.entry.js +1 -0
- package/dist/magma-components/p-dc752e9b.entry.js +1 -0
- package/dist/magma-components/p-e238e2eb.entry.js +1 -0
- package/dist/magma-components/p-e388f1f2.system.entry.js +19 -0
- package/dist/magma-components/{p-74b51db8.entry.js → p-e50fdcee.entry.js} +1 -1
- package/dist/magma-components/{p-2c44c961.system.entry.js → p-e779a67f.system.entry.js} +3 -3
- package/dist/magma-components/p-e8ae4016.system.entry.js +1 -0
- package/dist/magma-components/{p-9eb1e154.system.entry.js → p-e8d95868.system.entry.js} +2 -2
- package/dist/magma-components/p-ed232c76.entry.js +1 -0
- package/dist/magma-components/{p-6fdb3fe7.system.entry.js → p-ed6e287d.system.entry.js} +25 -7
- package/dist/magma-components/{p-88287207.system.entry.js → p-ed87425c.system.entry.js} +1 -1
- package/dist/magma-components/p-ed897125.entry.js +1 -0
- package/dist/magma-components/p-ee876b20.system.entry.js +4 -0
- package/dist/magma-components/p-efe0bb12.system.entry.js +7 -0
- package/dist/magma-components/p-f2412853.system.entry.js +27 -0
- package/dist/magma-components/p-f2743a2b.entry.js +1 -0
- package/dist/magma-components/p-f2f2945b.entry.js +1 -0
- package/dist/magma-components/p-f37f1343.entry.js +1 -0
- package/dist/magma-components/p-f3dd135e.system.entry.js +32 -0
- package/dist/magma-components/p-f5ce24e8.entry.js +1 -0
- package/dist/magma-components/p-f8a88f11.entry.js +1 -0
- package/dist/magma-components/p-f900fe90.entry.js +1 -0
- package/dist/magma-components/p-pNJmnrhq.js +1 -0
- package/dist/magma-components/p-pxyGaQ-P.system.js +2 -0
- package/dist/stats.json +2920 -2147
- package/dist/types/common/floating-controller.d.ts +8 -1
- package/dist/types/common/hash.d.ts +8 -0
- package/dist/types/common/navigation.d.ts +32 -0
- package/dist/types/common/string.d.ts +3 -1
- package/dist/types/components/mds-button/mds-button.d.ts +33 -2
- package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +1 -0
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +1 -0
- package/dist/types/components/mds-file/mds-file.d.ts +6 -1
- package/dist/types/components/mds-filter/mds-filter.d.ts +15 -0
- package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +18 -1
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +1 -0
- package/dist/types/components/mds-horizontal-scroll/mds-horizontal-scroll.d.ts +1 -0
- package/dist/types/components/mds-input/mds-input.d.ts +8 -1
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +6 -0
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +5 -0
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +15 -2
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +8 -3
- package/dist/types/components/mds-modal/mds-modal.d.ts +1 -0
- package/dist/types/components/mds-pref/mds-pref.d.ts +5 -8
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +8 -0
- package/dist/types/components/mds-radial-menu/mds-radial-menu.d.ts +1 -0
- package/dist/types/components/mds-tab/mds-tab.d.ts +14 -1
- package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +6 -1
- package/dist/types/components/mds-table/mds-table.d.ts +8 -1
- package/dist/types/components/mds-table/meta/type.d.ts +1 -0
- package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +33 -14
- package/dist/types/components/mds-table-header-cell/meta/event-detail.d.ts +6 -0
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -2
- package/dist/types/components/mds-text/mds-text.d.ts +8 -4
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +8 -1
- package/dist/types/components/mds-usage/mds-usage.d.ts +5 -1
- package/dist/types/components/mds-usage/meta/variants.d.ts +7 -19
- package/dist/types/components.d.ts +127 -22
- package/dist/types/index.d.ts +12 -4
- package/dist/types/type/floating-ui.d.ts +2 -0
- package/dist/types/type/input.d.ts +3 -0
- package/package.json +18 -18
- package/dist/cjs/_commonjsHelpers-B83fTs8d.js +0 -36
- package/dist/collection/dictionary/icon.js +0 -10
- package/dist/collection/type/icon.js +0 -1
- package/dist/components/p-1aH7xiMs.js +0 -1
- package/dist/components/p-B05zwjTY.js +0 -1
- package/dist/components/p-BOu_NOgd.js +0 -1
- package/dist/components/p-BTpjOy0A.js +0 -1
- package/dist/components/p-BVw5aqzn.js +0 -1
- package/dist/components/p-BWpSxp3h.js +0 -1
- package/dist/components/p-BXPIlPIF.js +0 -1
- package/dist/components/p-BzvYQBdf.js +0 -1
- package/dist/components/p-C3Sn8bRc.js +0 -1
- package/dist/components/p-CGkSDkOY.js +0 -1
- package/dist/components/p-CHAGzQT-.js +0 -1
- package/dist/components/p-CIcshx6K.js +0 -1
- package/dist/components/p-CKS4r32k.js +0 -1
- package/dist/components/p-COkF_8bh.js +0 -1
- package/dist/components/p-CmHMhHMt.js +0 -1
- package/dist/components/p-Cnt6G6GK.js +0 -1
- package/dist/components/p-CsL9U6eU.js +0 -1
- package/dist/components/p-Cyj1BFxx.js +0 -1
- package/dist/components/p-DQqUzCGR.js +0 -1
- package/dist/components/p-DR46G4-6.js +0 -1
- package/dist/components/p-DcW0iRnZ.js +0 -1
- package/dist/components/p-DebgFlHq.js +0 -1
- package/dist/components/p-Dpf8NWF9.js +0 -1
- package/dist/components/p-DwA-5c8G.js +0 -1
- package/dist/components/p-Dws02cT2.js +0 -8
- package/dist/components/p-E-ZsRS8r.js +0 -1
- package/dist/components/p-K3QNYRhf.js +0 -1
- package/dist/components/p-PQ_EO5-U.js +0 -1
- package/dist/components/p-akEzGmDD.js +0 -1
- package/dist/components/p-bDVBqkn0.js +0 -1
- package/dist/esm/_commonjsHelpers-E-ZsRS8r.js +0 -32
- package/dist/esm-es5/_commonjsHelpers-E-ZsRS8r.js +0 -1
- package/dist/magma-components/p-00e47e49.system.entry.js +0 -14
- package/dist/magma-components/p-0141c597.system.entry.js +0 -15
- package/dist/magma-components/p-021f96f8.entry.js +0 -1
- package/dist/magma-components/p-0255924b.system.entry.js +0 -22
- package/dist/magma-components/p-05014374.entry.js +0 -1
- package/dist/magma-components/p-05f73994.entry.js +0 -1
- package/dist/magma-components/p-0646392d.entry.js +0 -1
- package/dist/magma-components/p-0a904a12.entry.js +0 -1
- package/dist/magma-components/p-106f39c6.entry.js +0 -1
- package/dist/magma-components/p-10ad73e3.system.entry.js +0 -19
- package/dist/magma-components/p-1150ffb8.system.entry.js +0 -10
- package/dist/magma-components/p-12c5ae26.entry.js +0 -1
- package/dist/magma-components/p-13a1d35f.entry.js +0 -1
- package/dist/magma-components/p-15d4846d.entry.js +0 -1
- package/dist/magma-components/p-1673225e.system.entry.js +0 -8
- package/dist/magma-components/p-188f4b1d.system.entry.js +0 -7
- package/dist/magma-components/p-18c8628c.entry.js +0 -1
- package/dist/magma-components/p-1be45c75.entry.js +0 -1
- package/dist/magma-components/p-1e3d89cd.system.entry.js +0 -1
- package/dist/magma-components/p-1e700f0a.entry.js +0 -1
- package/dist/magma-components/p-20e4f7dd.system.entry.js +0 -15
- package/dist/magma-components/p-21865dd2.entry.js +0 -1
- package/dist/magma-components/p-21c46e74.system.entry.js +0 -4
- package/dist/magma-components/p-231b604f.system.entry.js +0 -1
- package/dist/magma-components/p-2507f5cf.entry.js +0 -1
- package/dist/magma-components/p-277444bc.entry.js +0 -1
- package/dist/magma-components/p-283b0548.system.entry.js +0 -102
- package/dist/magma-components/p-2ec0db8e.entry.js +0 -1
- package/dist/magma-components/p-30c3872d.entry.js +0 -1
- package/dist/magma-components/p-322a5452.entry.js +0 -1
- package/dist/magma-components/p-3231a6a3.entry.js +0 -1
- package/dist/magma-components/p-34401d35.entry.js +0 -1
- package/dist/magma-components/p-35aa29c5.entry.js +0 -1
- package/dist/magma-components/p-36a67b51.entry.js +0 -1
- package/dist/magma-components/p-3a1339bb.system.entry.js +0 -4
- package/dist/magma-components/p-3d56e3f4.entry.js +0 -1
- package/dist/magma-components/p-3e0eed90.system.entry.js +0 -12
- package/dist/magma-components/p-3ecade3c.system.entry.js +0 -11
- package/dist/magma-components/p-3eefca33.system.entry.js +0 -16
- package/dist/magma-components/p-436f9b27.system.entry.js +0 -38
- package/dist/magma-components/p-44e2a945.system.entry.js +0 -1
- package/dist/magma-components/p-4658154f.entry.js +0 -1
- package/dist/magma-components/p-474047fa.system.entry.js +0 -10
- package/dist/magma-components/p-474c5d53.system.entry.js +0 -11
- package/dist/magma-components/p-4ac94b84.system.entry.js +0 -32
- package/dist/magma-components/p-4c73f14b.system.entry.js +0 -14
- package/dist/magma-components/p-4dd6a39b.entry.js +0 -1
- package/dist/magma-components/p-4e7f21ac.entry.js +0 -1
- package/dist/magma-components/p-4f14a166.entry.js +0 -1
- package/dist/magma-components/p-50ea11c9.system.entry.js +0 -32
- package/dist/magma-components/p-52793bdb.system.entry.js +0 -1
- package/dist/magma-components/p-5299f709.system.entry.js +0 -26
- package/dist/magma-components/p-58b82b40.system.entry.js +0 -10
- package/dist/magma-components/p-5a7267e8.system.entry.js +0 -4
- package/dist/magma-components/p-5a911e7b.system.entry.js +0 -13
- package/dist/magma-components/p-5ccf493c.system.entry.js +0 -7
- package/dist/magma-components/p-5d119459.entry.js +0 -1
- package/dist/magma-components/p-5fd04ce1.entry.js +0 -1
- package/dist/magma-components/p-60f67c37.entry.js +0 -1
- package/dist/magma-components/p-632bc44c.entry.js +0 -1
- package/dist/magma-components/p-69c21eae.entry.js +0 -1
- package/dist/magma-components/p-6a6326c6.entry.js +0 -1
- package/dist/magma-components/p-6c800411.entry.js +0 -1
- package/dist/magma-components/p-6e03b83a.entry.js +0 -1
- package/dist/magma-components/p-6ed05d99.entry.js +0 -1
- package/dist/magma-components/p-6f74cdf5.system.entry.js +0 -12
- package/dist/magma-components/p-73fde271.system.entry.js +0 -72
- package/dist/magma-components/p-76ecad2f.entry.js +0 -18
- package/dist/magma-components/p-774ce1d2.entry.js +0 -1
- package/dist/magma-components/p-77615947.system.entry.js +0 -1
- package/dist/magma-components/p-7770b989.system.entry.js +0 -1
- package/dist/magma-components/p-7787ebaf.system.entry.js +0 -1
- package/dist/magma-components/p-7927010f.system.entry.js +0 -25
- package/dist/magma-components/p-79421ee1.system.entry.js +0 -11
- package/dist/magma-components/p-7ab15184.entry.js +0 -1
- package/dist/magma-components/p-7afec7ee.entry.js +0 -1
- package/dist/magma-components/p-7e085c82.entry.js +0 -1
- package/dist/magma-components/p-7e7cf986.system.entry.js +0 -7
- package/dist/magma-components/p-809adece.system.entry.js +0 -17
- package/dist/magma-components/p-8183b7ed.entry.js +0 -1
- package/dist/magma-components/p-83394280.system.entry.js +0 -32
- package/dist/magma-components/p-835fc007.entry.js +0 -1
- package/dist/magma-components/p-84645c60.system.entry.js +0 -1
- package/dist/magma-components/p-87026d34.entry.js +0 -1
- package/dist/magma-components/p-87faaa8e.system.entry.js +0 -16
- package/dist/magma-components/p-883c223a.system.entry.js +0 -4
- package/dist/magma-components/p-88f99a4f.system.entry.js +0 -81
- package/dist/magma-components/p-8a3d2259.system.entry.js +0 -17
- package/dist/magma-components/p-8aafbfdf.system.entry.js +0 -49
- package/dist/magma-components/p-8afc9bc4.system.entry.js +0 -2838
- package/dist/magma-components/p-8ca1d30d.system.entry.js +0 -1
- package/dist/magma-components/p-8ccd187a.entry.js +0 -1
- package/dist/magma-components/p-90993b0b.system.entry.js +0 -68
- package/dist/magma-components/p-915c5f06.system.entry.js +0 -47
- package/dist/magma-components/p-91ff1560.system.entry.js +0 -7
- package/dist/magma-components/p-92d9b537.entry.js +0 -1
- package/dist/magma-components/p-932620b6.entry.js +0 -1
- package/dist/magma-components/p-9344a234.entry.js +0 -1
- package/dist/magma-components/p-97f6166e.system.entry.js +0 -28
- package/dist/magma-components/p-9d1cdb42.system.entry.js +0 -15
- package/dist/magma-components/p-9dcfc247.entry.js +0 -1
- package/dist/magma-components/p-9fe14430.system.entry.js +0 -7
- package/dist/magma-components/p-BpVYIPkx.js +0 -1
- package/dist/magma-components/p-CHAGzQT-.js +0 -1
- package/dist/magma-components/p-D7BrzK-C.system.js +0 -90
- package/dist/magma-components/p-DIUTGDX_.system.js +0 -1
- package/dist/magma-components/p-E-ZsRS8r.js +0 -1
- package/dist/magma-components/p-a64bbb36.system.entry.js +0 -40
- package/dist/magma-components/p-a6af4083.system.entry.js +0 -32
- package/dist/magma-components/p-a7e7f2c0.entry.js +0 -1
- package/dist/magma-components/p-aba96089.entry.js +0 -1
- package/dist/magma-components/p-aed8b119.entry.js +0 -1
- package/dist/magma-components/p-b24b5179.entry.js +0 -1
- package/dist/magma-components/p-b295e4ab.system.entry.js +0 -1
- package/dist/magma-components/p-b2c62b6e.system.entry.js +0 -7
- package/dist/magma-components/p-b5559b28.system.entry.js +0 -1
- package/dist/magma-components/p-b897c97d.entry.js +0 -1
- package/dist/magma-components/p-bab4c75e.system.entry.js +0 -45
- package/dist/magma-components/p-bc53c19e.entry.js +0 -8
- package/dist/magma-components/p-bf2fe278.system.entry.js +0 -16
- package/dist/magma-components/p-c0136138.entry.js +0 -1
- package/dist/magma-components/p-c166ec50.system.entry.js +0 -47
- package/dist/magma-components/p-c22887f7.system.entry.js +0 -90
- package/dist/magma-components/p-c28fce23.entry.js +0 -1
- package/dist/magma-components/p-c48bad95.entry.js +0 -1
- package/dist/magma-components/p-cb2c5f1b.entry.js +0 -1
- package/dist/magma-components/p-cc0c6ae7.entry.js +0 -1
- package/dist/magma-components/p-cc2a09f2.system.entry.js +0 -16
- package/dist/magma-components/p-cc9d9458.entry.js +0 -1
- package/dist/magma-components/p-ccb14076.system.entry.js +0 -217
- package/dist/magma-components/p-ccb6898a.system.entry.js +0 -4
- package/dist/magma-components/p-d04ac65d.entry.js +0 -1
- package/dist/magma-components/p-d07d227b.system.entry.js +0 -8
- package/dist/magma-components/p-d1faf129.entry.js +0 -1
- package/dist/magma-components/p-d282a929.entry.js +0 -1
- package/dist/magma-components/p-d2f134ac.entry.js +0 -1
- package/dist/magma-components/p-d47df503.system.entry.js +0 -37
- package/dist/magma-components/p-d9804d2f.entry.js +0 -1
- package/dist/magma-components/p-dc06b29e.entry.js +0 -1
- package/dist/magma-components/p-dc59b764.entry.js +0 -1
- package/dist/magma-components/p-dc7bada4.entry.js +0 -1
- package/dist/magma-components/p-de091be7.system.entry.js +0 -7
- package/dist/magma-components/p-dfe8552c.system.entry.js +0 -11
- package/dist/magma-components/p-e1e69217.system.entry.js +0 -1
- package/dist/magma-components/p-e2ef5996.entry.js +0 -1
- package/dist/magma-components/p-e7751639.entry.js +0 -1
- package/dist/magma-components/p-e887a14c.entry.js +0 -1
- package/dist/magma-components/p-e8cd2b93.system.entry.js +0 -4
- package/dist/magma-components/p-eb681207.system.entry.js +0 -1
- package/dist/magma-components/p-ec9cc7b9.entry.js +0 -1
- package/dist/magma-components/p-eca99a0a.system.entry.js +0 -1
- package/dist/magma-components/p-ecd3c27f.entry.js +0 -1
- package/dist/magma-components/p-ef3424e3.entry.js +0 -1
- package/dist/magma-components/p-f654eafe.entry.js +0 -1
- package/dist/magma-components/p-f8eb19b3.entry.js +0 -1
- package/dist/magma-components/p-f8feee93.system.entry.js +0 -4
- package/dist/magma-components/p-ffa1a0b4.system.entry.js +0 -1
- package/dist/types/dictionary/icon.d.ts +0 -4
- package/dist/types/type/icon.d.ts +0 -1
|
@@ -54,6 +54,33 @@ Panels in `slot="content"` are wired to `<mds-tab-item>` elements by document or
|
|
|
54
54
|
</mds-tab>
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
+
#### Do Not Mix Link Items and Panel Tabs in One Strip
|
|
58
|
+
|
|
59
|
+
A strip is either a `tablist` of tabs, each controlling a panel, or a navigation of links (`href` on every item): a link inside a tablist is not a child the role allows, and assistive technology announces the strip wrong. Keep the link out of the strip, as an `<mds-button>` next to it.
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
<!-- INCORRECT -->
|
|
63
|
+
<mds-tab>
|
|
64
|
+
<mds-tab-item label="Dettagli" selected></mds-tab-item>
|
|
65
|
+
<mds-tab-item label="Allegati"></mds-tab-item>
|
|
66
|
+
<mds-tab-item label="Portale" href="https://portale.example.com"></mds-tab-item>
|
|
67
|
+
|
|
68
|
+
<div slot="content"><mds-text>Dettagli.</mds-text></div>
|
|
69
|
+
<div slot="content"><mds-text>Allegati.</mds-text></div>
|
|
70
|
+
<div slot="content"></div>
|
|
71
|
+
</mds-tab>
|
|
72
|
+
|
|
73
|
+
<!-- CORRECT -->
|
|
74
|
+
<mds-tab>
|
|
75
|
+
<mds-tab-item label="Dettagli" selected></mds-tab-item>
|
|
76
|
+
<mds-tab-item label="Allegati"></mds-tab-item>
|
|
77
|
+
|
|
78
|
+
<div slot="content"><mds-text>Dettagli.</mds-text></div>
|
|
79
|
+
<div slot="content"><mds-text>Allegati.</mds-text></div>
|
|
80
|
+
</mds-tab>
|
|
81
|
+
<mds-button label="Portale" href="https://portale.example.com" target="blank" tone="text"></mds-button>
|
|
82
|
+
```
|
|
83
|
+
|
|
57
84
|
#### Do Not Put Tab Items Outside `<mds-tab>`
|
|
58
85
|
|
|
59
86
|
`<mds-tab-item>` communicates with its parent through internal Stencil events. Used outside `<mds-tab>` it renders as an inert button with no selection, panel, or keyboard management.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-10-
|
|
2
|
+
"timestamp": "2026-10-15T16:08:09",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.44.2",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"name": "slot",
|
|
29
|
-
"text": "content - Add `HTML elements` or `components`, one per mds-tab-item added."
|
|
29
|
+
"text": "content - Add `HTML elements` or `components`, one per mds-tab-item added; or none, when the\nitems are links (`href`) to other pages or places and the page, not the component, shows the\ncontent."
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"name": "slot",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"usage": {
|
|
37
|
-
"1. Description": "The `<mds-tab>` web component is the compound container that orchestrates a tabbed navigation in the Magma Design System. It is the parent wrapper around a set of `<mds-tab-item>` triggers and
|
|
38
|
-
"2. Pattern": "Correct and idiomatic ways to use the `<mds-tab>` component, ordered from most common to most specialized. Patterns assume a working knowledge of the shared component rules in [`agents/conventions.md`](../../../../agents/conventions.md).\n\n#### Basic Tab Group with Managed Panels\n\nThe canonical form. Put `<mds-tab-item>` elements in the default slot and one content element per tab in the named `content` slot. Mark the initially-visible tab with `selected`. Panels are wired up by document order - the first `[slot=content]` element is paired with the first `<mds-tab-item>`.\n\n```html\n<mds-tab>\n <mds-tab-item label=\"Panoramica\" selected></mds-tab-item>\n <mds-tab-item label=\"Dettagli\"></mds-tab-item>\n <mds-tab-item label=\"Allegati\"></mds-tab-item>\n\n <div slot=\"content\">\n <mds-text>Contenuto della scheda Panoramica.</mds-text>\n </div>\n <div slot=\"content\">\n <mds-text>Contenuto della scheda Dettagli.</mds-text>\n </div>\n <div slot=\"content\">\n <mds-text>Contenuto della scheda Allegati.</mds-text>\n </div>\n</mds-tab>\n```\n\n#### Listening to Tab Changes\n\nListen to the `mdsTabChange` event to react when the active panel changes. The event detail carries the zero-based `id` (index) and the optional `value` of the newly selected `<mds-tab-item>`.\n\n```html\n<mds-tab id=\"schede-pratica\">\n <mds-tab-item label=\"Anagrafica\" value=\"anagrafica\" selected></mds-tab-item>\n <mds-tab-item label=\"Documenti\" value=\"documenti\"></mds-tab-item>\n <mds-tab-item label=\"Pagamenti\" value=\"pagamenti\"></mds-tab-item>\n</mds-tab>\n\n<script>\n document.querySelector('#schede-pratica').addEventListener('mdsTabChange', (e) => {\n console.log('scheda attiva:', e.detail.id, e.detail.value);\n });\n</script>\n```\n\n#### Tab Items with Icons\n\nPass an icon slug to `<mds-tab-item>` via the `icon` prop. Icon position defaults to `left`; use `icon-position=\"right\"` for forward-navigation tabs.\n\n```html\n<mds-tab>\n <mds-tab-item label=\"Utente\" icon=\"mi/baseline/person\" selected></mds-tab-item>\n <mds-tab-item label=\"Impostazioni\" icon=\"mi/baseline/settings\"></mds-tab-item>\n <mds-tab-item label=\"Notifiche\" icon=\"mi/baseline/notifications\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Profilo utente.</mds-text></div>\n <div slot=\"content\"><mds-text>Impostazioni account.</mds-text></div>\n <div slot=\"content\"><mds-text>Cronologia notifiche.</mds-text></div>\n</mds-tab>\n```\n\n#### Fill the Available Width\n\nSet `fill` when the tab strip should stretch to occupy the full container width instead of hugging its content.\n\n```html\n<mds-tab fill>\n <mds-tab-item label=\"Riepilogo\" selected></mds-tab-item>\n <mds-tab-item label=\"Cronologia\"></mds-tab-item>\n <mds-tab-item label=\"Statistiche\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Riepilogo pratica.</mds-text></div>\n <div slot=\"content\"><mds-text>Registro modifiche.</mds-text></div>\n <div slot=\"content\"><mds-text>Dati statistici.</mds-text></div>\n</mds-tab>\n```\n\n#### Vertical Direction\n\nUse `direction=\"vertical\"` to stack the tab strip on the side. Pair it with `--mds-tab-direction-vertical-columns` to control the column widths of the sidebar and the content area.\n\n```html\n<mds-tab direction=\"vertical\">\n <mds-tab-item label=\"Dati generali\" selected></mds-tab-item>\n <mds-tab-item label=\"Indirizzi\"></mds-tab-item>\n <mds-tab-item label=\"Contatti\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Dati generali.</mds-text></div>\n <div slot=\"content\"><mds-text>Indirizzi registrati.</mds-text></div>\n <div slot=\"content\"><mds-text>Recapiti di contatto.</mds-text></div>\n</mds-tab>\n```\n\n#### Fade Animation\n\nSwitch to `animation=\"fade\"` to highlight the selected tab in place instead of moving the slider indicator. The panels switch without animation in both modes.\n\n```html\n<mds-tab animation=\"fade\">\n <mds-tab-item label=\"Prima\" selected></mds-tab-item>\n <mds-tab-item label=\"Seconda\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Pannello 1.</mds-text></div>\n <div slot=\"content\"><mds-text>Pannello 2.</mds-text></div>\n</mds-tab>\n```\n\n#### Overflow Shadow for Many Tabs\n\nEnable `overflow` when the tab strip can contain more items than the viewport permits. Left and right inset shadows appear whenever tabs overflow their container, signalling that scrolling is possible.\n\n```html\n<mds-tab overflow>\n <mds-tab-item label=\"Gennaio\" selected></mds-tab-item>\n <mds-tab-item label=\"Febbraio\"></mds-tab-item>\n <mds-tab-item label=\"Marzo\"></mds-tab-item>\n <mds-tab-item label=\"Aprile\"></mds-tab-item>\n <mds-tab-item label=\"Maggio\"></mds-tab-item>\n <mds-tab-item label=\"Giugno\"></mds-tab-item>\n <mds-tab-item label=\"Luglio\"></mds-tab-item>\n <mds-tab-item label=\"Agosto\"></mds-tab-item>\n <mds-tab-item label=\"Settembre\"></mds-tab-item>\n <mds-tab-item label=\"Ottobre\"></mds-tab-item>\n <mds-tab-item label=\"Novembre\"></mds-tab-item>\n <mds-tab-item label=\"Dicembre\"></mds-tab-item>\n</mds-tab>\n```\n\n#### Scrollbar for Accessible Overflow\n\nUse `scrollbar` instead of (or alongside) `overflow` to expose the native horizontal scrollbar. This is the accessible complement for users who navigate via keyboard or who have motor difficulties.\n\n```html\n<mds-tab scrollbar overflow>\n <mds-tab-item label=\"Sezione A\" selected></mds-tab-item>\n <mds-tab-item label=\"Sezione B\"></mds-tab-item>\n <mds-tab-item label=\"Sezione C\"></mds-tab-item>\n <mds-tab-item label=\"Sezione D\"></mds-tab-item>\n <mds-tab-item label=\"Sezione E\"></mds-tab-item>\n</mds-tab>\n```\n\n#### Sizing\n\nSet `size` on the parent to scale all tabs uniformly. Do not set `size` on individual `<mds-tab-item>` elements - the parent propagates the value automatically.\n\n```html\n<!-- Compact strip, e.g. inside a sidebar or dense toolbar -->\n<mds-tab size=\"sm\">\n <mds-tab-item label=\"Vista elenco\" selected></mds-tab-item>\n <mds-tab-item label=\"Vista griglia\"></mds-tab-item>\n</mds-tab>\n```\n\n#### Navigation Links (href on Tab Items)\n\nWhen each tab
|
|
39
|
-
"3. Antipattern": "Common incorrect uses of `<mds-tab>`. Each entry pairs the wrong form with the right one and a one-line reason. System-wide rules (boolean-as-string, shadow piercing, Tailwind color utilities, raw native event listening) live in [`agents/anti-patterns.md`](../../../../agents/anti-patterns.md) - they apply here too but are not repeated.\n\n#### Do Not Size Individual Tab Items\n\nSetting `size` on a `<mds-tab-item>` directly is overridden by the parent at render time. Use the `size` prop on `<mds-tab>` to size all tabs uniformly.\n\n```html\n<!-- INCORRECT -->\n<mds-tab>\n <mds-tab-item label=\"Elenco\" size=\"sm\" selected></mds-tab-item>\n <mds-tab-item label=\"Griglia\" size=\"sm\"></mds-tab-item>\n</mds-tab>\n\n<!-- CORRECT -->\n<mds-tab size=\"sm\">\n <mds-tab-item label=\"Elenco\" selected></mds-tab-item>\n <mds-tab-item label=\"Griglia\"></mds-tab-item>\n</mds-tab>\n```\n\n#### Do Not Mix Tab Items and Content Panels Out of Order\n\nPanels in `slot=\"content\"` are wired to `<mds-tab-item>` elements by document order. A missing panel leaves its tab with no content, a wrong ordering shows the wrong panel when a tab is selected.\n\n```html\n<!-- INCORRECT: only two content panels for three tab items -->\n<mds-tab>\n <mds-tab-item label=\"A\" selected></mds-tab-item>\n <mds-tab-item label=\"B\"></mds-tab-item>\n <mds-tab-item label=\"C\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Pannello A.</mds-text></div>\n <div slot=\"content\"><mds-text>Pannello B.</mds-text></div>\n</mds-tab>\n\n<!-- CORRECT: one content panel per tab item, same order -->\n<mds-tab>\n <mds-tab-item label=\"A\" selected></mds-tab-item>\n <mds-tab-item label=\"B\"></mds-tab-item>\n <mds-tab-item label=\"C\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Pannello A.</mds-text></div>\n <div slot=\"content\"><mds-text>Pannello B.</mds-text></div>\n <div slot=\"content\"><mds-text>Pannello C.</mds-text></div>\n</mds-tab>\n```\n\n#### Do Not Put Tab Items Outside `<mds-tab>`\n\n`<mds-tab-item>` communicates with its parent through internal Stencil events. Used outside `<mds-tab>` it renders as an inert button with no selection, panel, or keyboard management.\n\n```html\n<!-- INCORRECT -->\n<div class=\"my-tab-wrapper\">\n <mds-tab-item label=\"Scheda uno\" selected></mds-tab-item>\n <mds-tab-item label=\"Scheda due\"></mds-tab-item>\n</div>\n<div>...</div>\n\n<!-- CORRECT -->\n<mds-tab>\n <mds-tab-item label=\"Scheda uno\" selected></mds-tab-item>\n <mds-tab-item label=\"Scheda due\"></mds-tab-item>\n <div slot=\"content\">...</div>\n <div slot=\"content\">...</div>\n</mds-tab>\n```\n\n#### Do Not Listen to the `mdsTabItemSelect` Event from Outside\n\n`mdsTabItemSelect` is the item-level event that `<mds-tab-item>` fires to its parent `<mds-tab>`: its `detail` carries the item element (`target`) and `value`, not the position of the tab. To react to the active tab of the group listen to `mdsTabChange` on `<mds-tab>`, whose `detail` has the tab index (`id`) and `value`.\n\n```html\n<!-- INCORRECT -->\n<mds-tab id=\"schede\">\n <mds-tab-item label=\"Prima\" selected></mds-tab-item>\n <mds-tab-item label=\"Seconda\"></mds-tab-item>\n</mds-tab>\n\n<script>\n document.querySelector('#schede').addEventListener('mdsTabItemSelect', handler);\n</script>\n\n<!-- CORRECT -->\n<mds-tab id=\"schede\">\n <mds-tab-item label=\"Prima\" selected></mds-tab-item>\n <mds-tab-item label=\"Seconda\"></mds-tab-item>\n</mds-tab>\n\n<script>\n document.querySelector('#schede').addEventListener('mdsTabChange', handler);\n</script>\n```\n\n#### Do Not Use `scrollbar=\"false\"` or `overflow=\"false\"` to Turn Off Boolean Props\n\nStencil reads `\"false\"` as `false` and, since both props are reflected, removes the attribute at the first render, so this happens to work; but the markup says the opposite of what it does, and on a prop that is not reflected the attribute stays in the DOM, where `[attr]` selectors still match it. Remove the attribute entirely to turn a prop off.\n\n```html\n<!-- INCORRECT -->\n<mds-tab scrollbar=\"false\" overflow=\"false\">\n <mds-tab-item label=\"Prima\" selected></mds-tab-item>\n</mds-tab>\n\n<!-- CORRECT -->\n<mds-tab>\n <mds-tab-item label=\"Prima\" selected></mds-tab-item>\n</mds-tab>\n```\n\n#### Do Not Place Raw HTML Instead of `<mds-tab-item>` in the Default Slot\n\nThe default slot expects `<mds-tab-item>` elements only. Placing a raw `<button>` or `<a>` there bypasses the ARIA `tablist` structure, selection management, and keyboard handling that `<mds-tab>` provides.\n\n```html\n<!-- INCORRECT -->\n<mds-tab>\n <button class=\"tab\">Documenti</button>\n <button class=\"tab\">Messaggi</button>\n <div slot=\"content\">...</div>\n <div slot=\"content\">...</div>\n</mds-tab>\n\n<!-- CORRECT -->\n<mds-tab>\n <mds-tab-item label=\"Documenti\" selected></mds-tab-item>\n <mds-tab-item label=\"Messaggi\"></mds-tab-item>\n <div slot=\"content\">...</div>\n <div slot=\"content\">...</div>\n</mds-tab>\n```\n\n#### Do Not Customize via Undocumented Shadow Parts or Internal Selectors\n\nThe supported customization surface is the `--mds-tab-*` CSS custom properties and the documented shadow parts (`tabs`, `contents`, `slider`). Targeting other internals via `>>>`, `/deep/`, or undocumented class names couples your code to the shadow DOM implementation and will break on minor releases.\n\n```css\n/* INCORRECT */\nmds-tab >>> .tabs-wrapper {\n background: red;\n}\nmds-tab::part(tabs-wrapper) {\n padding: 0;\n}\n\n/* CORRECT */\nmds-tab {\n --mds-tab-tabs-background: rgb(var(--magma-accent-surface));\n --mds-tab-tabs-padding: calc(var(--spacing) * 400);\n --mds-tab-tabs-radius: var(--magma-radius-xl);\n}\nmds-tab::part(tabs) {\n outline: 2px solid rgb(var(--magma-accent-border));\n}\n```\n"
|
|
37
|
+
"1. Description": "The `<mds-tab>` web component is the compound container that orchestrates a tabbed navigation in the Magma Design System. It is the parent wrapper around a set of `<mds-tab-item>` triggers and, when the component shows the content itself, their content panels, providing the ARIA `tablist` structure, selection state, scrolling and the animated selection indicator.\n\n#### Semantic Behavior\n\n- **Compound parent**: Expects `<mds-tab-item>` elements in the default slot; each panel in the named `content` slot is wired up automatically and paired by document order. The panels are optional: without them the component shows the strip alone, and the page shows the content, driven by `mdsTabChange` or by navigation.\n- **Navigation strip**: When every item has `href`, the items are links (announced as such, the selected one as current) and the strip is no longer a `tablist`: the browser follows the links, in a new tab on a modifier or middle click, and the strip keeps the selected item highlighted. A client-side router cancels the click on the item with `preventDefault()` and routes; a modifier click leaves the selection alone.\n- **Selection ownership**: The active tab is whichever `<mds-tab-item>` carries `selected`; the parent flips `selected` across siblings, shows the corresponding content panel and hides the rest.\n- **Change event**: Emits `mdsTabChange` with the selected item's index (`id`) and `value` whenever the active child changes.\n- **Focus restoration**: After a keyboard activation it re-focuses the selected item's button, so the user does not have to re-locate the tab.\n- **Auto-scroll into view**: On selection or child focus, the active tab is scrolled to the center of its strip.\n- **Overflow tracking**: When `overflow` is enabled, left/right inset shadows appear while the tabs overflow their container.\n- **Size propagation**: The parent `size` is pushed down onto every nested `<mds-tab-item>`, so children should not be sized individually.\n\n#### Properties & Visual Configurations\n\n- **`direction`** chooses whether the tab strip is laid out `'horizontal'` (default) or `'vertical'`.\n- **`animation`** governs the transition between active items: `'slide'` (default) renders the moving slider indicator, while `'fade'` cross-fades without the slider. The slider slides only when the selection changes: on load, and when the strip is shown again after being hidden, it is already under the selected tab.\n- **`fill`** makes the tab strip stretch to occupy the full available width rather than hugging its content.\n- **`overflow`** enables the inset-shadow affordance that signals more tabs exist beyond the visible edges; **`scrollbar`** instead exposes the native horizontal scrollbar for accessibility.\n\n#### Other behavioral props\n\n- **`size`** sets the scale (`'sm'` / `'md'`) for the whole group and is forwarded to the child items; it is the only way to size the tabs consistently.\n",
|
|
38
|
+
"2. Pattern": "Correct and idiomatic ways to use the `<mds-tab>` component, ordered from most common to most specialized. Patterns assume a working knowledge of the shared component rules in [`agents/conventions.md`](../../../../agents/conventions.md).\n\n#### Basic Tab Group with Managed Panels\n\nThe canonical form. Put `<mds-tab-item>` elements in the default slot and one content element per tab in the named `content` slot. Mark the initially-visible tab with `selected`. Panels are wired up by document order - the first `[slot=content]` element is paired with the first `<mds-tab-item>`.\n\n```html\n<mds-tab>\n <mds-tab-item label=\"Panoramica\" selected></mds-tab-item>\n <mds-tab-item label=\"Dettagli\"></mds-tab-item>\n <mds-tab-item label=\"Allegati\"></mds-tab-item>\n\n <div slot=\"content\">\n <mds-text>Contenuto della scheda Panoramica.</mds-text>\n </div>\n <div slot=\"content\">\n <mds-text>Contenuto della scheda Dettagli.</mds-text>\n </div>\n <div slot=\"content\">\n <mds-text>Contenuto della scheda Allegati.</mds-text>\n </div>\n</mds-tab>\n```\n\n#### Listening to Tab Changes\n\nListen to the `mdsTabChange` event to react when the active panel changes. The event detail carries the zero-based `id` (index) and the optional `value` of the newly selected `<mds-tab-item>`.\n\n```html\n<mds-tab id=\"schede-pratica\">\n <mds-tab-item label=\"Anagrafica\" value=\"anagrafica\" selected></mds-tab-item>\n <mds-tab-item label=\"Documenti\" value=\"documenti\"></mds-tab-item>\n <mds-tab-item label=\"Pagamenti\" value=\"pagamenti\"></mds-tab-item>\n</mds-tab>\n\n<script>\n document.querySelector('#schede-pratica').addEventListener('mdsTabChange', (e) => {\n console.log('scheda attiva:', e.detail.id, e.detail.value);\n });\n</script>\n```\n\n#### Tab Items with Icons\n\nPass an icon slug to `<mds-tab-item>` via the `icon` prop. Icon position defaults to `left`; use `icon-position=\"right\"` for forward-navigation tabs.\n\n```html\n<mds-tab>\n <mds-tab-item label=\"Utente\" icon=\"mi/baseline/person\" selected></mds-tab-item>\n <mds-tab-item label=\"Impostazioni\" icon=\"mi/baseline/settings\"></mds-tab-item>\n <mds-tab-item label=\"Notifiche\" icon=\"mi/baseline/notifications\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Profilo utente.</mds-text></div>\n <div slot=\"content\"><mds-text>Impostazioni account.</mds-text></div>\n <div slot=\"content\"><mds-text>Cronologia notifiche.</mds-text></div>\n</mds-tab>\n```\n\n#### Fill the Available Width\n\nSet `fill` when the tab strip should stretch to occupy the full container width instead of hugging its content.\n\n```html\n<mds-tab fill>\n <mds-tab-item label=\"Riepilogo\" selected></mds-tab-item>\n <mds-tab-item label=\"Cronologia\"></mds-tab-item>\n <mds-tab-item label=\"Statistiche\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Riepilogo pratica.</mds-text></div>\n <div slot=\"content\"><mds-text>Registro modifiche.</mds-text></div>\n <div slot=\"content\"><mds-text>Dati statistici.</mds-text></div>\n</mds-tab>\n```\n\n#### Vertical Direction\n\nUse `direction=\"vertical\"` to stack the tab strip on the side. Pair it with `--mds-tab-direction-vertical-columns` to control the column widths of the sidebar and the content area.\n\n```html\n<mds-tab direction=\"vertical\">\n <mds-tab-item label=\"Dati generali\" selected></mds-tab-item>\n <mds-tab-item label=\"Indirizzi\"></mds-tab-item>\n <mds-tab-item label=\"Contatti\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Dati generali.</mds-text></div>\n <div slot=\"content\"><mds-text>Indirizzi registrati.</mds-text></div>\n <div slot=\"content\"><mds-text>Recapiti di contatto.</mds-text></div>\n</mds-tab>\n```\n\n#### Fade Animation\n\nSwitch to `animation=\"fade\"` to highlight the selected tab in place instead of moving the slider indicator. The panels switch without animation in both modes.\n\n```html\n<mds-tab animation=\"fade\">\n <mds-tab-item label=\"Prima\" selected></mds-tab-item>\n <mds-tab-item label=\"Seconda\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Pannello 1.</mds-text></div>\n <div slot=\"content\"><mds-text>Pannello 2.</mds-text></div>\n</mds-tab>\n```\n\n#### Overflow Shadow for Many Tabs\n\nEnable `overflow` when the tab strip can contain more items than the viewport permits. Left and right inset shadows appear whenever tabs overflow their container, signalling that scrolling is possible.\n\n```html\n<mds-tab overflow>\n <mds-tab-item label=\"Gennaio\" selected></mds-tab-item>\n <mds-tab-item label=\"Febbraio\"></mds-tab-item>\n <mds-tab-item label=\"Marzo\"></mds-tab-item>\n <mds-tab-item label=\"Aprile\"></mds-tab-item>\n <mds-tab-item label=\"Maggio\"></mds-tab-item>\n <mds-tab-item label=\"Giugno\"></mds-tab-item>\n <mds-tab-item label=\"Luglio\"></mds-tab-item>\n <mds-tab-item label=\"Agosto\"></mds-tab-item>\n <mds-tab-item label=\"Settembre\"></mds-tab-item>\n <mds-tab-item label=\"Ottobre\"></mds-tab-item>\n <mds-tab-item label=\"Novembre\"></mds-tab-item>\n <mds-tab-item label=\"Dicembre\"></mds-tab-item>\n</mds-tab>\n```\n\n#### Scrollbar for Accessible Overflow\n\nUse `scrollbar` instead of (or alongside) `overflow` to expose the native horizontal scrollbar. This is the accessible complement for users who navigate via keyboard or who have motor difficulties.\n\n```html\n<mds-tab scrollbar overflow>\n <mds-tab-item label=\"Sezione A\" selected></mds-tab-item>\n <mds-tab-item label=\"Sezione B\"></mds-tab-item>\n <mds-tab-item label=\"Sezione C\"></mds-tab-item>\n <mds-tab-item label=\"Sezione D\"></mds-tab-item>\n <mds-tab-item label=\"Sezione E\"></mds-tab-item>\n</mds-tab>\n```\n\n#### Sizing\n\nSet `size` on the parent to scale all tabs uniformly. Do not set `size` on individual `<mds-tab-item>` elements - the parent propagates the value automatically.\n\n```html\n<!-- Compact strip, e.g. inside a sidebar or dense toolbar -->\n<mds-tab size=\"sm\">\n <mds-tab-item label=\"Vista elenco\" selected></mds-tab-item>\n <mds-tab-item label=\"Vista griglia\"></mds-tab-item>\n</mds-tab>\n```\n\n#### Navigation Links (href on Tab Items)\n\nWhen each tab leads to an anchor, another page or a route, set `href` on every `<mds-tab-item>` and omit the `content` slot: the items render as links, the browser follows them (in a new tab on a modifier or middle click) and the strip keeps the selected item highlighted. The page content is driven by navigation, not by the managed-panels mechanism.\n\n```html\n<mds-tab>\n <mds-tab-item href=\"#sezione-1\" label=\"Introduzione\" selected></mds-tab-item>\n <mds-tab-item href=\"#sezione-2\" label=\"Requisiti\"></mds-tab-item>\n <mds-tab-item href=\"#sezione-3\" label=\"Conclusioni\"></mds-tab-item>\n</mds-tab>\n```\n\n#### Client-Side Routing (href on Tab Items)\n\nIn a single-page app keep `href` on the items and register the router once with `NavigationService`, from `@maggioli-design-system/magma/services`: a plain click on an item is routed on the client and the selection still moves, with no listener per item. A modifier or middle click stays with the browser, which opens the link in a new tab while the strip stays as it is.\n\n```html\n<mds-tab id=\"sezioni\">\n <mds-tab-item href=\"/pratiche\" label=\"Pratiche\" selected></mds-tab-item>\n <mds-tab-item href=\"/documenti\" label=\"Documenti\"></mds-tab-item>\n <mds-tab-item href=\"/pagamenti\" label=\"Pagamenti\"></mds-tab-item>\n</mds-tab>\n\n<script type=\"module\">\n import { NavigationService } from '@maggioli-design-system/magma/services';\n\n NavigationService.setHandler((href) => router.navigate(href));\n</script>\n```\n\nWithout a registered router, cancel the click on the items and route by hand: the component honours `preventDefault()` and still moves the selection. Leave a modifier click alone.\n\n```html\n<script>\n document.querySelectorAll('#sezioni mds-tab-item').forEach((item) => {\n item.addEventListener('click', (event) => {\n if (event.ctrlKey || event.metaKey || event.shiftKey || event.altKey) return;\n event.preventDefault();\n router.navigate(item.href);\n });\n });\n</script>\n```\n\n#### Disabled Tab Item\n\nMark an individual tab as unavailable with `disabled`. The parent's selection mechanism skips it; the tab is removed from the tab order automatically.\n\n```html\n<mds-tab>\n <mds-tab-item label=\"Attivo\" selected></mds-tab-item>\n <mds-tab-item label=\"Non disponibile\" disabled></mds-tab-item>\n <mds-tab-item label=\"Altro\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Contenuto disponibile.</mds-text></div>\n <div slot=\"content\"><mds-text>Contenuto non disponibile.</mds-text></div>\n <div slot=\"content\"><mds-text>Altro contenuto.</mds-text></div>\n</mds-tab>\n```\n\n#### Styling Customization\n\nStyle the component only through its documented `--mds-tab-*` CSS custom properties. Set them on the host or a parent selector; use semantic color roles via `rgb(var(--magma-<role>))` so dark mode and high-contrast modes keep working.\n\n```css\n.scheda-primaria mds-tab {\n --mds-tab-tabs-background: rgb(var(--magma-accent-surface));\n --mds-tab-tabs-radius: var(--magma-radius-xl);\n --mds-tab-item-selected-background: rgb(var(--magma-accent-emphasis));\n --mds-tab-item-selected-color: rgb(var(--magma-accent-on-emphasis));\n --mds-tab-transition-duration: 0.3s;\n}\n```\n",
|
|
39
|
+
"3. Antipattern": "Common incorrect uses of `<mds-tab>`. Each entry pairs the wrong form with the right one and a one-line reason. System-wide rules (boolean-as-string, shadow piercing, Tailwind color utilities, raw native event listening) live in [`agents/anti-patterns.md`](../../../../agents/anti-patterns.md) - they apply here too but are not repeated.\n\n#### Do Not Size Individual Tab Items\n\nSetting `size` on a `<mds-tab-item>` directly is overridden by the parent at render time. Use the `size` prop on `<mds-tab>` to size all tabs uniformly.\n\n```html\n<!-- INCORRECT -->\n<mds-tab>\n <mds-tab-item label=\"Elenco\" size=\"sm\" selected></mds-tab-item>\n <mds-tab-item label=\"Griglia\" size=\"sm\"></mds-tab-item>\n</mds-tab>\n\n<!-- CORRECT -->\n<mds-tab size=\"sm\">\n <mds-tab-item label=\"Elenco\" selected></mds-tab-item>\n <mds-tab-item label=\"Griglia\"></mds-tab-item>\n</mds-tab>\n```\n\n#### Do Not Mix Tab Items and Content Panels Out of Order\n\nPanels in `slot=\"content\"` are wired to `<mds-tab-item>` elements by document order. A missing panel leaves its tab with no content, a wrong ordering shows the wrong panel when a tab is selected.\n\n```html\n<!-- INCORRECT: only two content panels for three tab items -->\n<mds-tab>\n <mds-tab-item label=\"A\" selected></mds-tab-item>\n <mds-tab-item label=\"B\"></mds-tab-item>\n <mds-tab-item label=\"C\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Pannello A.</mds-text></div>\n <div slot=\"content\"><mds-text>Pannello B.</mds-text></div>\n</mds-tab>\n\n<!-- CORRECT: one content panel per tab item, same order -->\n<mds-tab>\n <mds-tab-item label=\"A\" selected></mds-tab-item>\n <mds-tab-item label=\"B\"></mds-tab-item>\n <mds-tab-item label=\"C\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Pannello A.</mds-text></div>\n <div slot=\"content\"><mds-text>Pannello B.</mds-text></div>\n <div slot=\"content\"><mds-text>Pannello C.</mds-text></div>\n</mds-tab>\n```\n\n#### Do Not Mix Link Items and Panel Tabs in One Strip\n\nA strip is either a `tablist` of tabs, each controlling a panel, or a navigation of links (`href` on every item): a link inside a tablist is not a child the role allows, and assistive technology announces the strip wrong. Keep the link out of the strip, as an `<mds-button>` next to it.\n\n```html\n<!-- INCORRECT -->\n<mds-tab>\n <mds-tab-item label=\"Dettagli\" selected></mds-tab-item>\n <mds-tab-item label=\"Allegati\"></mds-tab-item>\n <mds-tab-item label=\"Portale\" href=\"https://portale.example.com\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Dettagli.</mds-text></div>\n <div slot=\"content\"><mds-text>Allegati.</mds-text></div>\n <div slot=\"content\"></div>\n</mds-tab>\n\n<!-- CORRECT -->\n<mds-tab>\n <mds-tab-item label=\"Dettagli\" selected></mds-tab-item>\n <mds-tab-item label=\"Allegati\"></mds-tab-item>\n\n <div slot=\"content\"><mds-text>Dettagli.</mds-text></div>\n <div slot=\"content\"><mds-text>Allegati.</mds-text></div>\n</mds-tab>\n<mds-button label=\"Portale\" href=\"https://portale.example.com\" target=\"blank\" tone=\"text\"></mds-button>\n```\n\n#### Do Not Put Tab Items Outside `<mds-tab>`\n\n`<mds-tab-item>` communicates with its parent through internal Stencil events. Used outside `<mds-tab>` it renders as an inert button with no selection, panel, or keyboard management.\n\n```html\n<!-- INCORRECT -->\n<div class=\"my-tab-wrapper\">\n <mds-tab-item label=\"Scheda uno\" selected></mds-tab-item>\n <mds-tab-item label=\"Scheda due\"></mds-tab-item>\n</div>\n<div>...</div>\n\n<!-- CORRECT -->\n<mds-tab>\n <mds-tab-item label=\"Scheda uno\" selected></mds-tab-item>\n <mds-tab-item label=\"Scheda due\"></mds-tab-item>\n <div slot=\"content\">...</div>\n <div slot=\"content\">...</div>\n</mds-tab>\n```\n\n#### Do Not Listen to the `mdsTabItemSelect` Event from Outside\n\n`mdsTabItemSelect` is the item-level event that `<mds-tab-item>` fires to its parent `<mds-tab>`: its `detail` carries the item element (`target`) and `value`, not the position of the tab. To react to the active tab of the group listen to `mdsTabChange` on `<mds-tab>`, whose `detail` has the tab index (`id`) and `value`.\n\n```html\n<!-- INCORRECT -->\n<mds-tab id=\"schede\">\n <mds-tab-item label=\"Prima\" selected></mds-tab-item>\n <mds-tab-item label=\"Seconda\"></mds-tab-item>\n</mds-tab>\n\n<script>\n document.querySelector('#schede').addEventListener('mdsTabItemSelect', handler);\n</script>\n\n<!-- CORRECT -->\n<mds-tab id=\"schede\">\n <mds-tab-item label=\"Prima\" selected></mds-tab-item>\n <mds-tab-item label=\"Seconda\"></mds-tab-item>\n</mds-tab>\n\n<script>\n document.querySelector('#schede').addEventListener('mdsTabChange', handler);\n</script>\n```\n\n#### Do Not Use `scrollbar=\"false\"` or `overflow=\"false\"` to Turn Off Boolean Props\n\nStencil reads `\"false\"` as `false` and, since both props are reflected, removes the attribute at the first render, so this happens to work; but the markup says the opposite of what it does, and on a prop that is not reflected the attribute stays in the DOM, where `[attr]` selectors still match it. Remove the attribute entirely to turn a prop off.\n\n```html\n<!-- INCORRECT -->\n<mds-tab scrollbar=\"false\" overflow=\"false\">\n <mds-tab-item label=\"Prima\" selected></mds-tab-item>\n</mds-tab>\n\n<!-- CORRECT -->\n<mds-tab>\n <mds-tab-item label=\"Prima\" selected></mds-tab-item>\n</mds-tab>\n```\n\n#### Do Not Place Raw HTML Instead of `<mds-tab-item>` in the Default Slot\n\nThe default slot expects `<mds-tab-item>` elements only. Placing a raw `<button>` or `<a>` there bypasses the ARIA `tablist` structure, selection management, and keyboard handling that `<mds-tab>` provides.\n\n```html\n<!-- INCORRECT -->\n<mds-tab>\n <button class=\"tab\">Documenti</button>\n <button class=\"tab\">Messaggi</button>\n <div slot=\"content\">...</div>\n <div slot=\"content\">...</div>\n</mds-tab>\n\n<!-- CORRECT -->\n<mds-tab>\n <mds-tab-item label=\"Documenti\" selected></mds-tab-item>\n <mds-tab-item label=\"Messaggi\"></mds-tab-item>\n <div slot=\"content\">...</div>\n <div slot=\"content\">...</div>\n</mds-tab>\n```\n\n#### Do Not Customize via Undocumented Shadow Parts or Internal Selectors\n\nThe supported customization surface is the `--mds-tab-*` CSS custom properties and the documented shadow parts (`tabs`, `contents`, `slider`). Targeting other internals via `>>>`, `/deep/`, or undocumented class names couples your code to the shadow DOM implementation and will break on minor releases.\n\n```css\n/* INCORRECT */\nmds-tab >>> .tabs-wrapper {\n background: red;\n}\nmds-tab::part(tabs-wrapper) {\n padding: 0;\n}\n\n/* CORRECT */\nmds-tab {\n --mds-tab-tabs-background: rgb(var(--magma-accent-surface));\n --mds-tab-tabs-padding: calc(var(--spacing) * 400);\n --mds-tab-tabs-radius: var(--magma-radius-xl);\n}\nmds-tab::part(tabs) {\n outline: 2px solid rgb(var(--magma-accent-border));\n}\n```\n"
|
|
40
40
|
},
|
|
41
41
|
"props": [
|
|
42
42
|
{
|
|
@@ -439,7 +439,7 @@
|
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
441
|
"name": "content",
|
|
442
|
-
"docs": "Add `HTML elements` or `components`, one per mds-tab-item added."
|
|
442
|
+
"docs": "Add `HTML elements` or `components`, one per mds-tab-item added; or none, when the\nitems are links (`href`) to other pages or places and the page, not the component, shows the\ncontent."
|
|
443
443
|
}
|
|
444
444
|
],
|
|
445
445
|
"parts": [
|
|
@@ -99,35 +99,47 @@ mds-tab-item {
|
|
|
99
99
|
:host {
|
|
100
100
|
--mds-tab-direction-vertical-columns: auto auto;
|
|
101
101
|
--mds-tab-item-default-background: transparent;
|
|
102
|
-
--mds-tab-item-default-color: rgb(var(--magma-text-muted, var(--
|
|
102
|
+
--mds-tab-item-default-color: rgb(var(--magma-text-muted, var(--text-neutral-muted, 73 73 73)));
|
|
103
103
|
--mds-tab-item-default-shadow: transparent;
|
|
104
104
|
--mds-tab-item-hover-background: transparent;
|
|
105
|
-
--mds-tab-item-hover-color: rgb(var(--magma-text-default, var(--
|
|
105
|
+
--mds-tab-item-hover-color: rgb(var(--magma-text-default, var(--text-neutral-default, 5 5 5)));
|
|
106
106
|
--mds-tab-item-hover-shadow: transparent;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
|
|
108
|
+
/* the items are buttons: their radius is capped at a part of their height like mds-button's
|
|
109
|
+
(#913), and the strip, one row of them, at that radius plus its padding */
|
|
110
|
+
--mds-tab-item-radius: min(
|
|
111
|
+
calc(var(--mds-tab-tabs-radius, var(--magma-radius-2xl, var(--radius-squircle-2xl, 40px))) - var(--mds-tab-tabs-padding, --spacing(200))),
|
|
112
|
+
var(--magma-corner-cap, 0.5) * var(--private-tab-item-height)
|
|
113
|
+
);
|
|
114
|
+
--mds-tab-item-selected-background: rgb(var(--magma-surface-overlay, var(--surface-neutral-overlay, 255 255 255)));
|
|
115
|
+
--mds-tab-item-selected-color: rgb(var(--magma-text-default, var(--text-neutral-default, 5 5 5)));
|
|
110
116
|
--mds-tab-item-selected-shadow: var(--shadow-sm, 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1));
|
|
111
117
|
--mds-tab-scroll-behavior: smooth;
|
|
112
118
|
--mds-tab-scroll-scrollbar-margin: 0;
|
|
113
119
|
--mds-tab-scroll-scrollbar-radius: 0;
|
|
114
120
|
--mds-tab-scroll-scrollbar-size: --spacing(200);
|
|
115
|
-
--mds-tab-scroll-scrollbar-thumb-background: rgb(var(--magma-surface-inverse, var(--
|
|
116
|
-
--mds-tab-scroll-scrollbar-track-background: rgb(var(--magma-wash-base, var(--
|
|
121
|
+
--mds-tab-scroll-scrollbar-thumb-background: rgb(var(--magma-surface-inverse, var(--tone-neutral-02, 42 42 42)) / 0.3);
|
|
122
|
+
--mds-tab-scroll-scrollbar-track-background: rgb(var(--magma-wash-base, var(--tone-neutral-09, 225 225 225)));
|
|
117
123
|
--mds-tab-slide-delay: 0.125s;
|
|
118
|
-
--mds-tab-tabs-background: rgb(var(--magma-wash-soft, var(--
|
|
124
|
+
--mds-tab-tabs-background: rgb(var(--magma-wash-soft, var(--tone-neutral-10, 237 237 237)));
|
|
119
125
|
--mds-tab-tabs-gap: --spacing(200);
|
|
120
126
|
--mds-tab-tabs-overflow-shadow-size: --spacing(600);
|
|
121
127
|
--mds-tab-tabs-overflow-shadow: 0 0 var(--mds-tab-tabs-overflow-shadow-size, --spacing(600)) -2px
|
|
122
128
|
rgb(0 0 0 / 0.375);
|
|
123
129
|
--mds-tab-tabs-padding: --spacing(200);
|
|
124
|
-
--mds-tab-tabs-radius:
|
|
130
|
+
--mds-tab-tabs-radius: min(
|
|
131
|
+
var(--magma-radius-2xl, var(--radius-squircle-2xl, 40px)),
|
|
132
|
+
var(--magma-corner-cap, 0.5) * var(--private-tab-item-height) + var(--mds-tab-tabs-padding, --spacing(200))
|
|
133
|
+
);
|
|
125
134
|
--mds-tab-tabs-wrapper-margin: 0;
|
|
126
135
|
--mds-tab-tabs-wrapper-outline-opacity: 0.7;
|
|
127
|
-
--mds-tab-tabs-wrapper-shadow-color: var(--mds-tab-tabs-background, rgb(var(--magma-wash-soft, var(--
|
|
128
|
-
--mds-tab-tabs-wrapper-shadow: 0 0 0 2px var(--mds-tab-tabs-wrapper-shadow-color, rgb(var(--magma-wash-soft, var(--
|
|
136
|
+
--mds-tab-tabs-wrapper-shadow-color: var(--mds-tab-tabs-background, rgb(var(--magma-wash-soft, var(--tone-neutral-10, 237 237 237))));
|
|
137
|
+
--mds-tab-tabs-wrapper-shadow: 0 0 0 2px var(--mds-tab-tabs-wrapper-shadow-color, rgb(var(--magma-wash-soft, var(--tone-neutral-10, 237 237 237)))) inset;
|
|
129
138
|
--mds-tab-transition-duration: 0.5s;
|
|
130
139
|
--private-tab-transition-duration: var(--mds-tab-transition-duration, 0.5s);
|
|
140
|
+
|
|
141
|
+
/* the height of an item, an mds-button md unless the tab sets size="sm" */
|
|
142
|
+
--private-tab-item-height: --spacing(900);
|
|
131
143
|
--mds-tab-transition-timing-function: var(--ease-out-expo, cubic-bezier(0.19, 1, 0.22, 1));
|
|
132
144
|
--mds-tab-corner-shape: var(--magma-corner-shape, squircle);
|
|
133
145
|
|
|
@@ -151,6 +163,10 @@ mds-tab-item {
|
|
|
151
163
|
}
|
|
152
164
|
}
|
|
153
165
|
|
|
166
|
+
:host([size='sm']) {
|
|
167
|
+
--private-tab-item-height: --spacing(700);
|
|
168
|
+
}
|
|
169
|
+
|
|
154
170
|
:host([animation='slide']) ::slotted(mds-tab-item) {
|
|
155
171
|
--mds-tab-item-hover-background: transparent;
|
|
156
172
|
--mds-tab-item-selected-background: transparent;
|
|
@@ -161,7 +177,7 @@ mds-tab-item {
|
|
|
161
177
|
|
|
162
178
|
.tabs {
|
|
163
179
|
align-items: flex-start;
|
|
164
|
-
background-color: var(--mds-tab-tabs-background, rgb(var(--magma-wash-soft, var(--
|
|
180
|
+
background-color: var(--mds-tab-tabs-background, rgb(var(--magma-wash-soft, var(--tone-neutral-10, 237 237 237))));
|
|
165
181
|
border-radius: inherit;
|
|
166
182
|
box-sizing: border-box;
|
|
167
183
|
corner-shape: inherit;
|
|
@@ -227,7 +243,9 @@ mds-tab-item {
|
|
|
227
243
|
transition-timing-function: var(--mds-tab-transition-timing-function);
|
|
228
244
|
}
|
|
229
245
|
|
|
230
|
-
|
|
246
|
+
/* a strip without panels: the slot is still there, waiting for them, so :empty never matched */
|
|
247
|
+
|
|
248
|
+
.contents--empty {
|
|
231
249
|
display: none;
|
|
232
250
|
}
|
|
233
251
|
|
|
@@ -270,12 +288,24 @@ mds-tab-item {
|
|
|
270
288
|
z-index: -1;
|
|
271
289
|
}
|
|
272
290
|
|
|
291
|
+
/* Drawn in place, not slid there: on load, after a change of the layout, when the strip is
|
|
292
|
+
shown again (#924). Only the geometry stops, a change of theme still fades the colours. */
|
|
293
|
+
|
|
294
|
+
.slider--still {
|
|
295
|
+
transition-property: background-color, box-shadow;
|
|
296
|
+
}
|
|
297
|
+
|
|
273
298
|
::slotted(mds-tab-item) {
|
|
274
299
|
position: relative;
|
|
275
300
|
z-index: 1;
|
|
276
301
|
}
|
|
277
302
|
|
|
303
|
+
/* a column of items is tall: the browser does not clamp the radius of the strip, nor does
|
|
304
|
+
the cap */
|
|
305
|
+
|
|
278
306
|
:host([direction='vertical']) {
|
|
307
|
+
--mds-tab-tabs-radius: var(--magma-radius-2xl, var(--radius-squircle-2xl, 40px));
|
|
308
|
+
|
|
279
309
|
grid-template-columns: var(--mds-tab-direction-vertical-columns, auto auto);
|
|
280
310
|
grid-template-rows: 1fr;
|
|
281
311
|
}
|
|
@@ -295,6 +325,13 @@ mds-tab-item {
|
|
|
295
325
|
align-self: auto;
|
|
296
326
|
}
|
|
297
327
|
|
|
328
|
+
/* without panels the column of the contents is empty, but it still takes its share of the
|
|
329
|
+
width: the strip spans it too */
|
|
330
|
+
|
|
331
|
+
:host([direction='vertical']) .tabs-wrapper--no-content {
|
|
332
|
+
grid-column: 1 / -1;
|
|
333
|
+
}
|
|
334
|
+
|
|
298
335
|
:host([direction='vertical'])::slotted(mds-tab-item) {
|
|
299
336
|
width: 100%;
|
|
300
337
|
}
|
|
@@ -313,21 +350,21 @@ mds-tab-item {
|
|
|
313
350
|
}
|
|
314
351
|
|
|
315
352
|
:host([scrollbar]) .tabs::-webkit-scrollbar-track {
|
|
316
|
-
background-color: var(--mds-tab-scroll-scrollbar-track-background, rgb(var(--magma-wash-base, var(--
|
|
353
|
+
background-color: var(--mds-tab-scroll-scrollbar-track-background, rgb(var(--magma-wash-base, var(--tone-neutral-09, 225 225 225))));
|
|
317
354
|
border-radius: var(--mds-tab-scroll-scrollbar-radius, 0);
|
|
318
355
|
margin-block: var(--mds-tab-scroll-scrollbar-margin, 0);
|
|
319
356
|
margin-inline: var(--mds-tab-scroll-scrollbar-margin, 0);
|
|
320
357
|
}
|
|
321
358
|
|
|
322
359
|
:host([scrollbar]) .tabs::-webkit-scrollbar-thumb {
|
|
323
|
-
background-color: var(--mds-tab-scroll-scrollbar-thumb-background, rgb(var(--magma-surface-inverse, var(--
|
|
360
|
+
background-color: var(--mds-tab-scroll-scrollbar-thumb-background, rgb(var(--magma-surface-inverse, var(--tone-neutral-02, 42 42 42)) / 0.3));
|
|
324
361
|
border-radius: var(--mds-tab-scroll-scrollbar-radius, 0);
|
|
325
362
|
}
|
|
326
363
|
|
|
327
364
|
@supports (scrollbar-color: transparent transparent) {
|
|
328
365
|
.tabs {
|
|
329
|
-
scrollbar-color: var(--mds-tab-scroll-scrollbar-thumb-background, rgb(var(--magma-surface-inverse, var(--
|
|
330
|
-
var(--mds-tab-scroll-scrollbar-track-background, rgb(var(--magma-wash-base, var(--
|
|
366
|
+
scrollbar-color: var(--mds-tab-scroll-scrollbar-thumb-background, rgb(var(--magma-surface-inverse, var(--tone-neutral-02, 42 42 42)) / 0.3))
|
|
367
|
+
var(--mds-tab-scroll-scrollbar-track-background, rgb(var(--magma-wash-base, var(--tone-neutral-09, 225 225 225))));
|
|
331
368
|
scrollbar-width: thin;
|
|
332
369
|
}
|
|
333
370
|
}
|
|
@@ -337,7 +374,7 @@ mds-tab-item {
|
|
|
337
374
|
--size: calc(var(--mds-tab-tabs-padding, --spacing(200)) * 2);
|
|
338
375
|
--offset-outside: calc(var(--size) + var(--mds-tab-tabs-overflow-shadow-size, --spacing(600)));
|
|
339
376
|
|
|
340
|
-
background-color: var(--mds-tab-tabs-background, rgb(var(--magma-wash-soft, var(--
|
|
377
|
+
background-color: var(--mds-tab-tabs-background, rgb(var(--magma-wash-soft, var(--tone-neutral-10, 237 237 237))));
|
|
341
378
|
border-radius: 100%;
|
|
342
379
|
box-shadow: var(--mds-tab-tabs-overflow-shadow);
|
|
343
380
|
content: '';
|
|
@@ -395,13 +432,13 @@ mds-tab-item {
|
|
|
395
432
|
* sits too close to the dark track to read as selected. */
|
|
396
433
|
|
|
397
434
|
:host([pref-mode='dark']:not([pref-theme-scheme='light'])) {
|
|
398
|
-
--mds-tab-item-selected-background: rgb(var(--magma-wash-strong, var(--
|
|
435
|
+
--mds-tab-item-selected-background: rgb(var(--magma-wash-strong, var(--tone-neutral-08, 208 208 208)));
|
|
399
436
|
}
|
|
400
437
|
|
|
401
438
|
@media (prefers-color-scheme: dark) {
|
|
402
439
|
:host([pref-mode='system']:not([pref-theme-scheme='light'])),
|
|
403
440
|
:host(:not([pref-mode])) {
|
|
404
|
-
--mds-tab-item-selected-background: rgb(var(--magma-wash-strong, var(--
|
|
441
|
+
--mds-tab-item-selected-background: rgb(var(--magma-wash-strong, var(--tone-neutral-08, 208 208 208)));
|
|
405
442
|
}
|
|
406
443
|
}
|
|
407
444
|
|
|
@@ -412,8 +449,8 @@ mds-tab-item {
|
|
|
412
449
|
|
|
413
450
|
:host([pref-contrast='more']) {
|
|
414
451
|
--mds-tab-item-selected-shadow: var(--shadow-ring-2, 0 0 0 2px rgb(var(--tone-neutral-01, 5 5 5) / 0.3));
|
|
415
|
-
--mds-tab-tabs-wrapper-shadow: 0 0 0 --spacing(50) var(--mds-tab-tabs-wrapper-shadow-color, rgb(var(--magma-wash-soft, var(--
|
|
416
|
-
--mds-tab-tabs-wrapper-shadow-color: rgb(var(--magma-border-strong, var(--
|
|
452
|
+
--mds-tab-tabs-wrapper-shadow: 0 0 0 --spacing(50) var(--mds-tab-tabs-wrapper-shadow-color, rgb(var(--magma-wash-soft, var(--tone-neutral-10, 237 237 237)))) inset;
|
|
453
|
+
--mds-tab-tabs-wrapper-shadow-color: rgb(var(--magma-border-strong, var(--border-neutral-strong, 140 140 140)));
|
|
417
454
|
--mds-tab-tabs-wrapper-outline-opacity: 0.3;
|
|
418
455
|
}
|
|
419
456
|
|
|
@@ -421,9 +458,9 @@ mds-tab-item {
|
|
|
421
458
|
:host([pref-contrast='system']),
|
|
422
459
|
:host(:not([pref-contrast])) {
|
|
423
460
|
--mds-tab-item-selected-shadow: var(--shadow-ring-2, 0 0 0 2px rgb(var(--tone-neutral-01, 5 5 5) / 0.3));
|
|
424
|
-
--mds-tab-tabs-wrapper-shadow: 0 0 0 --spacing(50) var(--mds-tab-tabs-wrapper-shadow-color, rgb(var(--magma-wash-soft, var(--
|
|
461
|
+
--mds-tab-tabs-wrapper-shadow: 0 0 0 --spacing(50) var(--mds-tab-tabs-wrapper-shadow-color, rgb(var(--magma-wash-soft, var(--tone-neutral-10, 237 237 237))))
|
|
425
462
|
inset;
|
|
426
|
-
--mds-tab-tabs-wrapper-shadow-color: rgb(var(--magma-border-strong, var(--
|
|
463
|
+
--mds-tab-tabs-wrapper-shadow-color: rgb(var(--magma-border-strong, var(--border-neutral-strong, 140 140 140)));
|
|
427
464
|
--mds-tab-tabs-wrapper-outline-opacity: 0.3;
|
|
428
465
|
}
|
|
429
466
|
}
|
|
@@ -8,7 +8,9 @@ import { preferenceStore } from "../../common/preference";
|
|
|
8
8
|
* @part contents - Selects the container of the tabbed contents elements.
|
|
9
9
|
* @part slider - Selects the slider element which is visible when attribute `animation` is set to `slide`.
|
|
10
10
|
* @part tabs - Selects the container of `mds-tab-item` list elements.
|
|
11
|
-
* @slot content - Add `HTML elements` or `components`, one per mds-tab-item added
|
|
11
|
+
* @slot content - Add `HTML elements` or `components`, one per mds-tab-item added; or none, when the
|
|
12
|
+
* items are links (`href`) to other pages or places and the page, not the component, shows the
|
|
13
|
+
* content.
|
|
12
14
|
* @slot - Add `mds-tab-item` element/s.
|
|
13
15
|
*/
|
|
14
16
|
export class MdsTab {
|
|
@@ -20,8 +22,13 @@ export class MdsTab {
|
|
|
20
22
|
this.sliderHeight = -1;
|
|
21
23
|
this.sliderOffsetX = -1;
|
|
22
24
|
this.sliderOffsetY = -1;
|
|
25
|
+
/** the slider slides only to follow a selection, any other move draws it in place */
|
|
26
|
+
this.sliderSlides = false;
|
|
23
27
|
this.overflowLeft = false;
|
|
24
28
|
this.overflowRight = false;
|
|
29
|
+
/** every item is a link: the strip is a navigation, not a tablist */
|
|
30
|
+
this.navigation = false;
|
|
31
|
+
this.hasContent = false;
|
|
25
32
|
/**
|
|
26
33
|
* Sets if the component distributes item vertically or horzontally
|
|
27
34
|
*/
|
|
@@ -33,6 +40,7 @@ export class MdsTab {
|
|
|
33
40
|
this.queryContentItems = () => queryChildrenBySlot(this.element, 'content');
|
|
34
41
|
this.updateContentItems = () => {
|
|
35
42
|
this.contentItems = this.queryContentItems();
|
|
43
|
+
this.hasContent = this.contentItems.length > 0;
|
|
36
44
|
this.contentItems.forEach((item, key) => {
|
|
37
45
|
setAttributeIfEmpty(item, 'role', 'tabpanel');
|
|
38
46
|
setAttributeIfEmpty(item, 'aria-labelledby', this.tabItems[key].id);
|
|
@@ -42,6 +50,8 @@ export class MdsTab {
|
|
|
42
50
|
this.setTabsItems = () => {
|
|
43
51
|
this.tabItems = Array.from(this.element.querySelectorAll('mds-tab-item'));
|
|
44
52
|
this.currentItemIndex = -1;
|
|
53
|
+
this.navigation =
|
|
54
|
+
this.tabItems.length > 0 && this.tabItems.every((item) => { var _a; return ((_a = item.href) !== null && _a !== void 0 ? _a : '') !== ''; });
|
|
45
55
|
this.tabItems.forEach((item) => {
|
|
46
56
|
item.size = this.size;
|
|
47
57
|
item.direction = this.direction;
|
|
@@ -87,9 +97,20 @@ export class MdsTab {
|
|
|
87
97
|
this.overflowLeft = scrollLeft > 0;
|
|
88
98
|
this.overflowRight = Math.ceil(scrollLeft + containerWidth) < tabsWidth - 1;
|
|
89
99
|
};
|
|
90
|
-
|
|
100
|
+
/**
|
|
101
|
+
* Moves the slider under the selected item. It slides there only to follow a selection
|
|
102
|
+
* (`slide`): on load, after a change of the layout, or when the strip is shown again after
|
|
103
|
+
* being hidden, it is drawn in place, so the strip appears with the selected tab already
|
|
104
|
+
* marked (#924).
|
|
105
|
+
*/
|
|
106
|
+
this.updateSliderPosition = (slide = false) => {
|
|
91
107
|
if (this.animation === 'slide' && this.currentItemIndex >= 0) {
|
|
92
108
|
self.requestAnimationFrame(() => {
|
|
109
|
+
// a hidden strip has no box, and every measure reads 0: the slider keeps its place
|
|
110
|
+
// instead of collapsing in the corner, and the observer moves it once the strip is shown
|
|
111
|
+
if (!this.currentItemEl.offsetWidth)
|
|
112
|
+
return;
|
|
113
|
+
this.sliderSlides = slide;
|
|
93
114
|
this.sliderWidth = this.currentItemEl.offsetWidth;
|
|
94
115
|
this.sliderHeight = this.currentItemEl.offsetHeight;
|
|
95
116
|
this.sliderOffsetX = this.currentItemEl.offsetLeft - this.tabsContainer.offsetLeft;
|
|
@@ -108,6 +129,9 @@ export class MdsTab {
|
|
|
108
129
|
}
|
|
109
130
|
};
|
|
110
131
|
this.scrollTabs = (key) => {
|
|
132
|
+
// no item selected: nothing to bring into view
|
|
133
|
+
if (key < 0 || key >= this.tabItems.length)
|
|
134
|
+
return;
|
|
111
135
|
const tabItem = this.tabItems[key];
|
|
112
136
|
setTimeout(() => {
|
|
113
137
|
this.tabs.scrollLeft =
|
|
@@ -135,6 +159,7 @@ export class MdsTab {
|
|
|
135
159
|
}
|
|
136
160
|
componentWillLoad() {
|
|
137
161
|
this.setTabsItems();
|
|
162
|
+
this.hasContent = this.queryContentItems().length > 0;
|
|
138
163
|
}
|
|
139
164
|
disconnectedCallback() {
|
|
140
165
|
this.unsetOverflowCheck();
|
|
@@ -175,7 +200,7 @@ export class MdsTab {
|
|
|
175
200
|
item.selected = undefined;
|
|
176
201
|
});
|
|
177
202
|
this.selectContentItem();
|
|
178
|
-
this.updateSliderPosition();
|
|
203
|
+
this.updateSliderPosition(true);
|
|
179
204
|
}
|
|
180
205
|
focusEventHandler(event) {
|
|
181
206
|
this.tabItems.forEach((item, key) => {
|
|
@@ -218,12 +243,12 @@ export class MdsTab {
|
|
|
218
243
|
});
|
|
219
244
|
}
|
|
220
245
|
render() {
|
|
221
|
-
return (h(Host, { key: '
|
|
246
|
+
return (h(Host, { key: 'cd4099108ea07ad5e23f6ff1d85d473f9b3aa908', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, h("div", { key: '4cb36490dc47b012362aef2a8715e73818e4dc10', class: clsx('tabs-wrapper', this.fill && 'tabs-wrapper--fill', !this.hasContent && 'tabs-wrapper--no-content') }, this.overflow && (h("div", { key: '3383208dc4594679b38bc66b21dfac2579c37369', class: clsx('tabs-wrapper-overflow-left', this.overflowLeft && 'tabs-wrapper-overflow-left--show') })), this.overflow && (h("div", { key: '9920ee4a75aaf6d05427ee10eb690c5b2258e6e5', class: clsx('tabs-wrapper-overflow-right', this.overflowRight && 'tabs-wrapper-overflow-right--show') })), h("div", { key: '76c292c9b65df4933411da50ea7c016a156c78c9', class: "tabs", part: "tabs", role: this.navigation ? undefined : 'tablist' }, h("slot", { key: '5a5dda062820ec7d3c9323bf4f5c329d958a0889' }), this.animation === 'slide' && (h("div", { key: 'ee5cef90a082056a6fa7a607fd745591a5305b9d', class: clsx('slider', !this.sliderSlides && 'slider--still'), part: "slider", style: {
|
|
222
247
|
'--mds-tab-slider-width': `${this.sliderWidth}px`,
|
|
223
248
|
'--mds-tab-slider-height': `${this.sliderHeight}px`,
|
|
224
249
|
'--mds-tab-slider-offset-x': `${this.sliderOffsetX}px`,
|
|
225
250
|
'--mds-tab-slider-offset-y': `${this.sliderOffsetY}px`,
|
|
226
|
-
} })))), h("div", { key: '
|
|
251
|
+
} })))), h("div", { key: '2151d66bddf1eb9297b6714801267489405f55ee', class: clsx('contents', !this.hasContent && 'contents--empty'), part: "contents" }, h("slot", { key: 'f0efc24b4e891ed38a05bb9972c71ca0dfcd6758', name: "content", onSlotchange: this.updateContentItems }))));
|
|
227
252
|
}
|
|
228
253
|
static get is() { return "mds-tab"; }
|
|
229
254
|
static get encapsulation() { return "shadow"; }
|
|
@@ -384,8 +409,11 @@ export class MdsTab {
|
|
|
384
409
|
"sliderHeight": {},
|
|
385
410
|
"sliderOffsetX": {},
|
|
386
411
|
"sliderOffsetY": {},
|
|
412
|
+
"sliderSlides": {},
|
|
387
413
|
"overflowLeft": {},
|
|
388
|
-
"overflowRight": {}
|
|
414
|
+
"overflowRight": {},
|
|
415
|
+
"navigation": {},
|
|
416
|
+
"hasContent": {}
|
|
389
417
|
};
|
|
390
418
|
}
|
|
391
419
|
static get events() {
|
|
@@ -160,7 +160,7 @@ Set `size` on the parent to scale all tabs uniformly. Do not set `size` on indiv
|
|
|
160
160
|
|
|
161
161
|
#### Navigation Links (href on Tab Items)
|
|
162
162
|
|
|
163
|
-
When each tab
|
|
163
|
+
When each tab leads to an anchor, another page or a route, set `href` on every `<mds-tab-item>` and omit the `content` slot: the items render as links, the browser follows them (in a new tab on a modifier or middle click) and the strip keeps the selected item highlighted. The page content is driven by navigation, not by the managed-panels mechanism.
|
|
164
164
|
|
|
165
165
|
```html
|
|
166
166
|
<mds-tab>
|
|
@@ -170,6 +170,38 @@ When each tab should navigate to an anchor or a separate URL, set `href` on `<md
|
|
|
170
170
|
</mds-tab>
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
+
#### Client-Side Routing (href on Tab Items)
|
|
174
|
+
|
|
175
|
+
In a single-page app keep `href` on the items and register the router once with `NavigationService`, from `@maggioli-design-system/magma/services`: a plain click on an item is routed on the client and the selection still moves, with no listener per item. A modifier or middle click stays with the browser, which opens the link in a new tab while the strip stays as it is.
|
|
176
|
+
|
|
177
|
+
```html
|
|
178
|
+
<mds-tab id="sezioni">
|
|
179
|
+
<mds-tab-item href="/pratiche" label="Pratiche" selected></mds-tab-item>
|
|
180
|
+
<mds-tab-item href="/documenti" label="Documenti"></mds-tab-item>
|
|
181
|
+
<mds-tab-item href="/pagamenti" label="Pagamenti"></mds-tab-item>
|
|
182
|
+
</mds-tab>
|
|
183
|
+
|
|
184
|
+
<script type="module">
|
|
185
|
+
import { NavigationService } from '@maggioli-design-system/magma/services';
|
|
186
|
+
|
|
187
|
+
NavigationService.setHandler((href) => router.navigate(href));
|
|
188
|
+
</script>
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Without a registered router, cancel the click on the items and route by hand: the component honours `preventDefault()` and still moves the selection. Leave a modifier click alone.
|
|
192
|
+
|
|
193
|
+
```html
|
|
194
|
+
<script>
|
|
195
|
+
document.querySelectorAll('#sezioni mds-tab-item').forEach((item) => {
|
|
196
|
+
item.addEventListener('click', (event) => {
|
|
197
|
+
if (event.ctrlKey || event.metaKey || event.shiftKey || event.altKey) return;
|
|
198
|
+
event.preventDefault();
|
|
199
|
+
router.navigate(item.href);
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
</script>
|
|
203
|
+
```
|
|
204
|
+
|
|
173
205
|
#### Disabled Tab Item
|
|
174
206
|
|
|
175
207
|
Mark an individual tab as unavailable with `disabled`. The parent's selection mechanism skips it; the tab is removed from the tab order automatically.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# mds-tab-bar
|
|
8
8
|
|
|
9
|
-
> `@maggioli-design-system/magma` 2.
|
|
9
|
+
> `@maggioli-design-system/magma` 2.3.0. Shadow DOM: style it only through the CSS custom properties and parts below.
|
|
10
10
|
|
|
11
11
|
The `<mds-tab-bar>` web component is the compound container of the Magma Design System that groups a set of `<mds-tab-bar-item>` children into a single selectable navigation bar, owning the mutual-exclusion logic that keeps exactly one item active at a time. The bar is fixed to the bottom edge of the viewport (`position: fixed`), full width.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ mds-tab-bar-item {
|
|
|
16
16
|
|
|
17
17
|
@apply ease-out;
|
|
18
18
|
|
|
19
|
-
background-color: rgb(var(--magma-surface-raised, var(--
|
|
19
|
+
background-color: rgb(var(--magma-surface-raised, var(--surface-neutral-raised, 248 248 248)));
|
|
20
20
|
bottom: 0;
|
|
21
21
|
box-shadow: var(--shadow-ring-weak-2, 0 0 0 2px rgb(var(--tone-neutral-01, 5 5 5) / 0.15));
|
|
22
22
|
display: flex;
|
|
@@ -21,7 +21,7 @@ export class MdsTabBar {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '9ab51cbd84a4cc05f5eeddc4de653a37fe20ea04', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, h("slot", { key: '2a9714515c52dcac254c3fedb9154b754e57a2e4' })));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "mds-tab-bar"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# mds-tab-bar-item
|
|
8
8
|
|
|
9
|
-
> `@maggioli-design-system/magma` 2.
|
|
9
|
+
> `@maggioli-design-system/magma` 2.3.0. Shadow DOM: style it only through the CSS custom properties and parts below.
|
|
10
10
|
|
|
11
11
|
The `<mds-tab-bar-item>` web component is a single selectable tab within the [`<mds-tab-bar>`](../mds-tab-bar/AGENTS.md) container. It renders an icon stacked over a text label and acts as one option in the bar's mutually-exclusive selection group.
|
|
12
12
|
|