@maggioli-design-system/magma 2.7.0 → 2.9.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 +1 -1
- package/CHANGELOG.md +45 -0
- package/agents/lint.md +20 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-banner_3.cjs.entry.js +7 -6
- package/dist/cjs/mds-book.cjs.entry.js +53 -5
- package/dist/cjs/mds-calendar_2.cjs.entry.js +1 -1
- package/dist/cjs/mds-emoji.cjs.entry.js +39 -9
- package/dist/cjs/mds-filter.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +1 -1
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +17 -4
- package/dist/cjs/mds-toast.cjs.entry.js +2 -2
- package/dist/collection/components/mds-accordion/AGENTS.md +2 -1
- package/dist/collection/components/mds-accordion/documentation.json +4 -2
- package/dist/collection/components/mds-accordion-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-accordion-item/documentation.json +4 -2
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +2 -1
- package/dist/collection/components/mds-accordion-timer/documentation.json +4 -2
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +4 -2
- package/dist/collection/components/mds-author/AGENTS.md +2 -1
- package/dist/collection/components/mds-author/documentation.json +4 -2
- package/dist/collection/components/mds-avatar/AGENTS.md +2 -1
- package/dist/collection/components/mds-avatar/documentation.json +4 -2
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +2 -1
- package/dist/collection/components/mds-avatar-stack/documentation.json +4 -2
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +4 -2
- package/dist/collection/components/mds-badge/AGENTS.md +2 -1
- package/dist/collection/components/mds-badge/documentation.json +4 -2
- package/dist/collection/components/mds-banner/AGENTS.md +7 -4
- package/dist/collection/components/mds-banner/antipattern.md +5 -5
- package/dist/collection/components/mds-banner/documentation.json +40 -6
- package/dist/collection/components/mds-banner/mds-banner.css +7 -10
- package/dist/collection/components/mds-banner/mds-banner.js +30 -7
- package/dist/collection/components/mds-banner/pattern.md +4 -4
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-benchmark-bar/documentation.json +4 -2
- package/dist/collection/components/mds-bibliography/AGENTS.md +2 -1
- package/dist/collection/components/mds-bibliography/documentation.json +4 -2
- package/dist/collection/components/mds-book/AGENTS.md +9 -4
- package/dist/collection/components/mds-book/documentation.json +46 -6
- package/dist/collection/components/mds-book/mds-book.css +91 -7
- package/dist/collection/components/mds-book/mds-book.js +79 -7
- package/dist/collection/components/mds-book/pattern.md +14 -0
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +2 -1
- package/dist/collection/components/mds-breadcrumb/documentation.json +4 -2
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +4 -2
- package/dist/collection/components/mds-button/AGENTS.md +2 -1
- package/dist/collection/components/mds-button/documentation.json +4 -2
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +2 -1
- package/dist/collection/components/mds-button-dropdown/documentation.json +4 -2
- package/dist/collection/components/mds-button-group/AGENTS.md +2 -1
- package/dist/collection/components/mds-button-group/documentation.json +4 -2
- package/dist/collection/components/mds-calendar/AGENTS.md +2 -1
- package/dist/collection/components/mds-calendar/documentation.json +4 -2
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +2 -1
- package/dist/collection/components/mds-calendar-cell/documentation.json +4 -2
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +4 -1
- package/dist/collection/components/mds-card/AGENTS.md +2 -1
- package/dist/collection/components/mds-card/documentation.json +4 -2
- package/dist/collection/components/mds-card-content/AGENTS.md +2 -1
- package/dist/collection/components/mds-card-content/documentation.json +4 -2
- package/dist/collection/components/mds-card-footer/AGENTS.md +2 -1
- package/dist/collection/components/mds-card-footer/documentation.json +4 -2
- package/dist/collection/components/mds-card-header/AGENTS.md +2 -1
- package/dist/collection/components/mds-card-header/documentation.json +4 -2
- package/dist/collection/components/mds-card-media/AGENTS.md +2 -1
- package/dist/collection/components/mds-card-media/documentation.json +4 -2
- package/dist/collection/components/mds-chip/AGENTS.md +2 -1
- package/dist/collection/components/mds-chip/documentation.json +4 -2
- package/dist/collection/components/mds-details/AGENTS.md +2 -1
- package/dist/collection/components/mds-details/documentation.json +4 -2
- package/dist/collection/components/mds-dropdown/AGENTS.md +2 -1
- package/dist/collection/components/mds-dropdown/documentation.json +4 -2
- package/dist/collection/components/mds-emoji/AGENTS.md +2 -1
- package/dist/collection/components/mds-emoji/asset/simi.svg +1 -1
- package/dist/collection/components/mds-emoji/documentation.json +4 -2
- package/dist/collection/components/mds-emoji/mds-emoji.js +38 -8
- package/dist/collection/components/mds-entity/AGENTS.md +2 -1
- package/dist/collection/components/mds-entity/documentation.json +4 -2
- package/dist/collection/components/mds-file/AGENTS.md +2 -1
- package/dist/collection/components/mds-file/documentation.json +4 -2
- package/dist/collection/components/mds-file-preview/AGENTS.md +2 -1
- package/dist/collection/components/mds-file-preview/documentation.json +4 -2
- package/dist/collection/components/mds-filter/AGENTS.md +3 -2
- package/dist/collection/components/mds-filter/documentation.json +10 -2
- package/dist/collection/components/mds-filter/mds-filter.css +5 -1
- package/dist/collection/components/mds-filter-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-filter-item/documentation.json +4 -2
- package/dist/collection/components/mds-header/AGENTS.md +2 -1
- package/dist/collection/components/mds-header/documentation.json +5 -3
- package/dist/collection/components/mds-header/pattern.md +3 -3
- package/dist/collection/components/mds-header-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-header-bar/documentation.json +4 -2
- package/dist/collection/components/mds-help/AGENTS.md +2 -1
- package/dist/collection/components/mds-help/documentation.json +4 -2
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +2 -1
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +4 -2
- package/dist/collection/components/mds-hr/AGENTS.md +2 -1
- package/dist/collection/components/mds-hr/documentation.json +4 -2
- package/dist/collection/components/mds-icon/AGENTS.md +2 -1
- package/dist/collection/components/mds-icon/documentation.json +4 -2
- package/dist/collection/components/mds-img/AGENTS.md +2 -1
- package/dist/collection/components/mds-img/documentation.json +4 -2
- package/dist/collection/components/mds-input/AGENTS.md +2 -1
- package/dist/collection/components/mds-input/documentation.json +4 -2
- package/dist/collection/components/mds-input-date/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-date/documentation.json +4 -2
- package/dist/collection/components/mds-input-date-range/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-date-range/documentation.json +4 -2
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +4 -2
- package/dist/collection/components/mds-input-field/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-field/documentation.json +4 -2
- package/dist/collection/components/mds-input-otp/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-otp/documentation.json +5 -3
- package/dist/collection/components/mds-input-otp/pattern.md +1 -1
- package/dist/collection/components/mds-input-range/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-range/documentation.json +4 -2
- package/dist/collection/components/mds-input-range/mds-input-range.css +7 -5
- package/dist/collection/components/mds-input-select/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-select/documentation.json +4 -2
- package/dist/collection/components/mds-input-switch/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-switch/documentation.json +4 -2
- package/dist/collection/components/mds-input-tip/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-tip/documentation.json +4 -2
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-tip-item/documentation.json +4 -2
- package/dist/collection/components/mds-input-upload/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-upload/documentation.json +4 -2
- package/dist/collection/components/mds-keyboard/AGENTS.md +2 -1
- package/dist/collection/components/mds-keyboard/documentation.json +4 -2
- package/dist/collection/components/mds-keyboard-key/AGENTS.md +2 -1
- package/dist/collection/components/mds-keyboard-key/documentation.json +4 -2
- package/dist/collection/components/mds-kpi/AGENTS.md +2 -1
- package/dist/collection/components/mds-kpi/documentation.json +4 -2
- package/dist/collection/components/mds-kpi-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-kpi-item/documentation.json +4 -2
- package/dist/collection/components/mds-label/AGENTS.md +2 -1
- package/dist/collection/components/mds-label/documentation.json +4 -2
- package/dist/collection/components/mds-link/AGENTS.md +2 -1
- package/dist/collection/components/mds-link/documentation.json +4 -2
- package/dist/collection/components/mds-list/AGENTS.md +2 -1
- package/dist/collection/components/mds-list/documentation.json +4 -2
- package/dist/collection/components/mds-list-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-list-item/documentation.json +4 -2
- package/dist/collection/components/mds-mention/AGENTS.md +2 -1
- package/dist/collection/components/mds-mention/documentation.json +4 -2
- package/dist/collection/components/mds-modal/AGENTS.md +5 -1
- package/dist/collection/components/mds-modal/documentation.json +5 -3
- package/dist/collection/components/mds-modal/mds-modal.css +136 -3
- package/dist/collection/components/mds-note/AGENTS.md +2 -1
- package/dist/collection/components/mds-note/documentation.json +4 -2
- package/dist/collection/components/mds-notification/AGENTS.md +2 -1
- package/dist/collection/components/mds-notification/documentation.json +4 -2
- package/dist/collection/components/mds-paginator/AGENTS.md +2 -1
- package/dist/collection/components/mds-paginator/documentation.json +4 -2
- package/dist/collection/components/mds-paginator-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-paginator-item/documentation.json +4 -2
- package/dist/collection/components/mds-policy-ai/AGENTS.md +2 -1
- package/dist/collection/components/mds-policy-ai/documentation.json +4 -2
- package/dist/collection/components/mds-pref/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref/documentation.json +4 -2
- package/dist/collection/components/mds-pref-animation/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +4 -2
- package/dist/collection/components/mds-pref-consumption/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-consumption/documentation.json +4 -2
- package/dist/collection/components/mds-pref-contrast/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-contrast/documentation.json +4 -2
- package/dist/collection/components/mds-pref-language/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-language/documentation.json +4 -2
- package/dist/collection/components/mds-pref-language-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-language-item/documentation.json +4 -2
- package/dist/collection/components/mds-pref-mode/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-mode/documentation.json +4 -2
- package/dist/collection/components/mds-pref-theme/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-theme/documentation.json +4 -2
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-theme-item/documentation.json +4 -2
- package/dist/collection/components/mds-price-table/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-features/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-features/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-features-cell/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-features-row/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-header/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-header/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-list/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-list/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-list-item/documentation.json +4 -2
- package/dist/collection/components/mds-progress/AGENTS.md +2 -1
- package/dist/collection/components/mds-progress/documentation.json +4 -2
- package/dist/collection/components/mds-push-notification/AGENTS.md +3 -2
- package/dist/collection/components/mds-push-notification/documentation.json +6 -4
- package/dist/collection/components/mds-push-notification/pattern.md +2 -2
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +6 -3
- package/dist/collection/components/mds-push-notification-item/documentation.json +38 -5
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +1 -0
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +40 -5
- package/dist/collection/components/mds-push-notification-item/pattern.md +3 -3
- package/dist/collection/components/mds-quote/AGENTS.md +2 -1
- package/dist/collection/components/mds-quote/documentation.json +4 -2
- package/dist/collection/components/mds-radial-menu/AGENTS.md +2 -1
- package/dist/collection/components/mds-radial-menu/documentation.json +4 -2
- package/dist/collection/components/mds-radial-menu-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-radial-menu-item/documentation.json +4 -2
- package/dist/collection/components/mds-radial-progress/AGENTS.md +2 -1
- package/dist/collection/components/mds-radial-progress/documentation.json +4 -2
- package/dist/collection/components/mds-separator/AGENTS.md +2 -1
- package/dist/collection/components/mds-separator/documentation.json +4 -2
- package/dist/collection/components/mds-spinner/AGENTS.md +2 -1
- package/dist/collection/components/mds-spinner/documentation.json +5 -3
- package/dist/collection/components/mds-spinner/pattern.md +9 -6
- package/dist/collection/components/mds-status-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-status-bar/documentation.json +4 -2
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-stepper-bar/documentation.json +4 -2
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +4 -2
- package/dist/collection/components/mds-tab/AGENTS.md +2 -1
- package/dist/collection/components/mds-tab/documentation.json +4 -2
- package/dist/collection/components/mds-tab-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-tab-bar/documentation.json +4 -2
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-tab-bar-item/documentation.json +4 -2
- package/dist/collection/components/mds-tab-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-tab-item/documentation.json +4 -2
- package/dist/collection/components/mds-table/AGENTS.md +2 -1
- package/dist/collection/components/mds-table/documentation.json +4 -2
- package/dist/collection/components/mds-table-body/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-body/documentation.json +4 -2
- package/dist/collection/components/mds-table-cell/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-cell/documentation.json +4 -2
- package/dist/collection/components/mds-table-footer/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-footer/documentation.json +4 -2
- package/dist/collection/components/mds-table-header/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-header/documentation.json +4 -2
- package/dist/collection/components/mds-table-header-cell/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-header-cell/documentation.json +4 -2
- package/dist/collection/components/mds-table-row/AGENTS.md +7 -2
- package/dist/collection/components/mds-table-row/documentation.json +11 -3
- package/dist/collection/components/mds-table-row/mds-table-row.css +1 -0
- package/dist/collection/components/mds-table-row/pattern.md +14 -1
- package/dist/collection/components/mds-text/AGENTS.md +2 -1
- package/dist/collection/components/mds-text/documentation.json +4 -2
- package/dist/collection/components/mds-toast/AGENTS.md +8 -5
- package/dist/collection/components/mds-toast/antipattern.md +2 -2
- package/dist/collection/components/mds-toast/documentation.json +40 -6
- package/dist/collection/components/mds-toast/mds-toast.js +26 -4
- package/dist/collection/components/mds-toast/pattern.md +2 -2
- package/dist/collection/components/mds-toast-region/AGENTS.md +2 -1
- package/dist/collection/components/mds-toast-region/documentation.json +5 -3
- package/dist/collection/components/mds-toast-region/pattern.md +10 -2
- package/dist/collection/components/mds-tooltip/AGENTS.md +2 -1
- package/dist/collection/components/mds-tooltip/documentation.json +4 -2
- package/dist/collection/components/mds-tree/AGENTS.md +3 -2
- package/dist/collection/components/mds-tree/documentation.json +5 -3
- package/dist/collection/components/mds-tree/pattern.md +13 -13
- package/dist/collection/components/mds-tree-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-tree-item/documentation.json +4 -2
- package/dist/collection/components/mds-url-view/AGENTS.md +2 -1
- package/dist/collection/components/mds-url-view/documentation.json +4 -2
- package/dist/collection/components/mds-usage/AGENTS.md +2 -1
- package/dist/collection/components/mds-usage/documentation.json +4 -2
- package/dist/collection/components/mds-video-wall/AGENTS.md +2 -1
- package/dist/collection/components/mds-video-wall/documentation.json +4 -2
- package/dist/collection/components/mds-zero/AGENTS.md +2 -1
- package/dist/collection/components/mds-zero/documentation.json +4 -2
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-book.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-emoji.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header.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-range.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/p-BeZGLnJJ.js +1 -0
- package/dist/components/p-Chk4rI7N.js +1 -0
- package/dist/components/{p-CNpL55c-.js → p-Cwg4vtOr.js} +1 -1
- package/dist/components/p-Dzkiu-es.js +1 -0
- package/dist/documentation.json +406 -143
- package/dist/esm/loader.js +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-banner_3.entry.js +7 -6
- package/dist/esm/mds-book.entry.js +53 -5
- package/dist/esm/mds-calendar_2.entry.js +1 -1
- package/dist/esm/mds-emoji.entry.js +39 -9
- package/dist/esm/mds-filter.entry.js +1 -1
- package/dist/esm/mds-input-range.entry.js +1 -1
- package/dist/esm/mds-modal.entry.js +1 -1
- package/dist/esm/mds-push-notification-item.entry.js +17 -4
- package/dist/esm/mds-toast.entry.js +2 -2
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +2 -2
- package/dist/esm-es5/mds-book.entry.js +33 -26
- package/dist/esm-es5/mds-calendar_2.entry.js +8 -8
- package/dist/esm-es5/mds-emoji.entry.js +40 -31
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +7 -7
- package/dist/esm-es5/mds-modal.entry.js +15 -15
- package/dist/esm-es5/mds-push-notification-item.entry.js +7 -3
- package/dist/esm-es5/mds-toast.entry.js +2 -2
- package/dist/hydrate/index.js +130 -32
- package/dist/hydrate/index.mjs +130 -32
- package/dist/lint/core/checks.d.ts +5 -0
- package/dist/lint/core/checks.js +17 -0
- package/dist/lint/core/data.d.ts +4 -1
- package/dist/lint/core/data.js +3 -1
- package/dist/lint/eslint/index.js +6 -4
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-354a5b47.entry.js → p-02b106c2.entry.js} +1 -1
- package/dist/magma-components/{p-17ccfc01.system.entry.js → p-3bc65166.system.entry.js} +55 -48
- package/dist/magma-components/p-425ca155.entry.js +1 -0
- package/dist/magma-components/p-523f0c30.system.entry.js +80 -0
- package/dist/magma-components/{p-07d35da6.entry.js → p-5306606b.entry.js} +1 -1
- package/dist/magma-components/{p-1b67b149.system.entry.js → p-798f460b.system.entry.js} +1 -1
- package/dist/magma-components/{p-e5f893f9.system.entry.js → p-7db14777.system.entry.js} +1 -1
- package/dist/magma-components/{p-e8452cce.entry.js → p-8641b7b2.entry.js} +1 -1
- package/dist/magma-components/{p-3a7c4314.system.entry.js → p-95ccf46d.system.entry.js} +4 -4
- package/dist/magma-components/p-968a2237.entry.js +1 -0
- package/dist/magma-components/p-9dd9eadd.entry.js +1 -0
- package/dist/magma-components/p-B8zYiZQY.system.js +1 -1
- package/dist/magma-components/{p-160cd923.entry.js → p-a25327a1.entry.js} +1 -1
- package/dist/magma-components/p-a67381bf.entry.js +1 -0
- package/dist/magma-components/{p-c2c693ed.system.entry.js → p-b27cb1ac.system.entry.js} +14 -5
- package/dist/magma-components/{p-6df26141.system.entry.js → p-c0286dc3.system.entry.js} +1 -1
- package/dist/magma-components/p-c89060ec.system.entry.js +41 -0
- package/dist/magma-components/p-eb12be86.system.entry.js +24 -0
- package/dist/magma-components/p-ebeb3fff.entry.js +1 -0
- package/dist/stats.json +383 -139
- package/dist/types/components/mds-banner/mds-banner.d.ts +9 -2
- package/dist/types/components/mds-book/mds-book.d.ts +19 -2
- package/dist/types/components/mds-emoji/mds-emoji.d.ts +1 -0
- package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +10 -1
- package/dist/types/components/mds-toast/mds-toast.d.ts +7 -1
- package/dist/types/components.d.ts +56 -12
- package/package.json +8 -8
- package/dist/components/p-B8hgyXdE.js +0 -1
- package/dist/components/p-CYK2Xr_v.js +0 -1
- package/dist/components/p-DbVGGhs_.js +0 -1
- package/dist/magma-components/p-14b13850.entry.js +0 -1
- package/dist/magma-components/p-386bb24e.system.entry.js +0 -41
- package/dist/magma-components/p-6d96d223.entry.js +0 -1
- package/dist/magma-components/p-79fd07e7.system.entry.js +0 -80
- package/dist/magma-components/p-7e7391fd.entry.js +0 -1
- package/dist/magma-components/p-df387755.entry.js +0 -1
- package/dist/magma-components/p-ee780f82.system.entry.js +0 -20
- package/dist/magma-components/p-f2211b1f.entry.js +0 -1
|
@@ -5,6 +5,22 @@ import { gazeReach, gazeToward } from "./meta/gaze";
|
|
|
5
5
|
import { gsap } from "gsap";
|
|
6
6
|
import miaSvg from "./asset/mia.svg";
|
|
7
7
|
import simiSvg from "./asset/simi.svg";
|
|
8
|
+
/**
|
|
9
|
+
* The transform origin of each part of a face, in the box of the part: the head turns from its
|
|
10
|
+
* bottom left corner, the others from their centre. Every state of a part gets it as soon as
|
|
11
|
+
* the face is in the shadow root, and the tweens of moveHead repeat it (#1140): a tween that
|
|
12
|
+
* moves the origin of a part while a blink has it scaled makes GSAP add a translation to keep
|
|
13
|
+
* the part still, and the translation stays once the scale is back to 1.
|
|
14
|
+
*/
|
|
15
|
+
const PART_ORIGINS = {
|
|
16
|
+
ears: '50% 50%',
|
|
17
|
+
eyebrows: '50% 50%',
|
|
18
|
+
eyes: '50% 50%',
|
|
19
|
+
gadget: '50% 50%',
|
|
20
|
+
hand: '50% 50%',
|
|
21
|
+
head: '0% 100%',
|
|
22
|
+
mouth: '50% 50%',
|
|
23
|
+
};
|
|
8
24
|
/**
|
|
9
25
|
* @category content
|
|
10
26
|
*/
|
|
@@ -123,6 +139,9 @@ export class MdsEmoji {
|
|
|
123
139
|
this.resetAnimationState();
|
|
124
140
|
if (this.host.shadowRoot)
|
|
125
141
|
this.host.shadowRoot.innerHTML = this.svgRootEl.outerHTML;
|
|
142
|
+
// before the blink timeline, whose fromTo scales the eyes at once: see PART_ORIGINS
|
|
143
|
+
if (Build.isBrowser)
|
|
144
|
+
this.setPartOrigins();
|
|
126
145
|
if (this.isBlinking) {
|
|
127
146
|
this.blinkTimeline = this.buildBlinkTimeline();
|
|
128
147
|
this.scheduleBlink();
|
|
@@ -174,6 +193,17 @@ export class MdsEmoji {
|
|
|
174
193
|
this.eyebrowsEl = null;
|
|
175
194
|
this.earsEl = null;
|
|
176
195
|
};
|
|
196
|
+
this.setPartOrigins = () => {
|
|
197
|
+
var _a;
|
|
198
|
+
const face = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
199
|
+
if (!face)
|
|
200
|
+
return;
|
|
201
|
+
for (const [part, transformOrigin] of Object.entries(PART_ORIGINS)) {
|
|
202
|
+
const states = face.querySelectorAll(`[id^='${part}-']`);
|
|
203
|
+
if (states.length > 0)
|
|
204
|
+
gsap.set(states, { transformOrigin });
|
|
205
|
+
}
|
|
206
|
+
};
|
|
177
207
|
this.queryPart = (id) => { var _a, _b, _c; return (_c = (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.firstElementChild) === null || _b === void 0 ? void 0 : _b.querySelector(`[id='${id}']`)) !== null && _c !== void 0 ? _c : null; };
|
|
178
208
|
this.resetEyesToDefault = () => {
|
|
179
209
|
this.svgPartState('eyes', 'default');
|
|
@@ -742,25 +772,25 @@ export class MdsEmoji {
|
|
|
742
772
|
overwrite: 'auto',
|
|
743
773
|
});
|
|
744
774
|
if (this.eyesEl) {
|
|
745
|
-
gsap.to(this.eyesEl, Object.assign({ translateX: this.eyesOffsetX, translateY: this.eyesOffsetY, transformOrigin:
|
|
775
|
+
gsap.to(this.eyesEl, Object.assign({ translateX: this.eyesOffsetX, translateY: this.eyesOffsetY, transformOrigin: PART_ORIGINS.eyes }, traitVars));
|
|
746
776
|
}
|
|
747
777
|
if (this.handEl) {
|
|
748
|
-
gsap.to(this.handEl, Object.assign({ translateX: this.handOffsetX, translateY: this.handOffsetY, transformOrigin:
|
|
778
|
+
gsap.to(this.handEl, Object.assign({ translateX: this.handOffsetX, translateY: this.handOffsetY, transformOrigin: PART_ORIGINS.hand }, traitVars));
|
|
749
779
|
}
|
|
750
780
|
if (this.headEl) {
|
|
751
|
-
gsap.to(this.headEl, Object.assign({ translateX: this.headOffsetX, translateY: this.headOffsetY, transformOrigin:
|
|
781
|
+
gsap.to(this.headEl, Object.assign({ translateX: this.headOffsetX, translateY: this.headOffsetY, transformOrigin: PART_ORIGINS.head }, traitVars));
|
|
752
782
|
}
|
|
753
783
|
if (this.mouthEl) {
|
|
754
|
-
gsap.to(this.mouthEl, Object.assign({ translateX: this.mouthOffsetX, translateY: this.mouthOffsetY, transformOrigin:
|
|
784
|
+
gsap.to(this.mouthEl, Object.assign({ translateX: this.mouthOffsetX, translateY: this.mouthOffsetY, transformOrigin: PART_ORIGINS.mouth }, traitVars));
|
|
755
785
|
}
|
|
756
786
|
if (this.gadgetEl) {
|
|
757
|
-
gsap.to(this.gadgetEl, Object.assign({ translateX: this.gadgetOffsetX, translateY: this.gadgetOffsetY, transformOrigin:
|
|
787
|
+
gsap.to(this.gadgetEl, Object.assign({ translateX: this.gadgetOffsetX, translateY: this.gadgetOffsetY, transformOrigin: PART_ORIGINS.gadget }, traitVars));
|
|
758
788
|
}
|
|
759
789
|
if (this.eyebrowsEl) {
|
|
760
|
-
gsap.to(this.eyebrowsEl, Object.assign({ translateX: this.eyebrowsOffsetX, translateY: this.eyebrowsOffsetY, transformOrigin:
|
|
790
|
+
gsap.to(this.eyebrowsEl, Object.assign({ translateX: this.eyebrowsOffsetX, translateY: this.eyebrowsOffsetY, transformOrigin: PART_ORIGINS.eyebrows }, traitVars));
|
|
761
791
|
}
|
|
762
792
|
if (this.earsEl) {
|
|
763
|
-
gsap.to(this.earsEl, Object.assign({ translateX: this.earsOffsetX, translateY: this.earsOffsetY, transformOrigin:
|
|
793
|
+
gsap.to(this.earsEl, Object.assign({ translateX: this.earsOffsetX, translateY: this.earsOffsetY, transformOrigin: PART_ORIGINS.ears }, traitVars));
|
|
764
794
|
}
|
|
765
795
|
};
|
|
766
796
|
}
|
|
@@ -962,7 +992,7 @@ export class MdsEmoji {
|
|
|
962
992
|
return element;
|
|
963
993
|
}
|
|
964
994
|
render() {
|
|
965
|
-
return h(Host, { key: '
|
|
995
|
+
return h(Host, { key: '550c06664af9d33f4a0217b09c6eeb5194c64ba7' });
|
|
966
996
|
}
|
|
967
997
|
static get is() { return "mds-emoji"; }
|
|
968
998
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# mds-entity
|
|
8
8
|
|
|
9
|
-
> `@maggioli-design-system/magma` 2.
|
|
9
|
+
> `@maggioli-design-system/magma` 2.9.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.
|
|
10
10
|
|
|
11
11
|
The `<mds-entity>` web component represents a person, organization, or resource as a compact identity block in the Magma Design System, pairing an avatar with a name, optional secondary details, and contextual actions. It has no native HTML equivalent; it standardises how entities are surfaced in lists, headers, and cards.
|
|
12
12
|
|
|
@@ -33,6 +33,7 @@ The shared `tone` / `variant` ladders are defined in [`agents/variants.md`](../.
|
|
|
33
33
|
|
|
34
34
|
- [`pattern.md`](pattern.md) - correct usage, with examples
|
|
35
35
|
- [`antipattern.md`](antipattern.md) - mistakes to avoid
|
|
36
|
+
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-entity--docs) - the live examples, in the published Storybook of `main`
|
|
36
37
|
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`anti-patterns.md`](../../../../agents/anti-patterns.md) - the rules shared by every component
|
|
37
38
|
|
|
38
39
|
## Props
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-10-
|
|
2
|
+
"timestamp": "2026-10-27T10:28:31",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.45.2",
|
|
6
6
|
"typescriptVersion": "5.8.3"
|
|
7
7
|
},
|
|
8
|
+
"storybook": "https://magma-design-system.github.io/magma/storybook/",
|
|
8
9
|
"components": [
|
|
9
10
|
{
|
|
10
11
|
"filePath": "src/components/mds-entity/mds-entity.tsx",
|
|
@@ -376,7 +377,8 @@
|
|
|
376
377
|
"mds-icon",
|
|
377
378
|
"mds-text"
|
|
378
379
|
]
|
|
379
|
-
}
|
|
380
|
+
},
|
|
381
|
+
"storybook": "ui-entity--docs"
|
|
380
382
|
}
|
|
381
383
|
]
|
|
382
384
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# mds-file
|
|
8
8
|
|
|
9
|
-
> `@maggioli-design-system/magma` 2.
|
|
9
|
+
> `@maggioli-design-system/magma` 2.9.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.
|
|
10
10
|
|
|
11
11
|
The `<mds-file>` web component is the Magma Design System control for representing a downloadable file as a rich, clickable card. It pairs a filename with an auto-detected file-type icon, badge, and human-readable description, and tracks whether the file has already been downloaded.
|
|
12
12
|
|
|
@@ -31,6 +31,7 @@ The `<mds-file>` web component is the Magma Design System control for representi
|
|
|
31
31
|
|
|
32
32
|
- [`pattern.md`](pattern.md) - correct usage, with examples
|
|
33
33
|
- [`antipattern.md`](antipattern.md) - mistakes to avoid
|
|
34
|
+
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-file--docs) - the live examples, in the published Storybook of `main`
|
|
34
35
|
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`anti-patterns.md`](../../../../agents/anti-patterns.md) - the rules shared by every component
|
|
35
36
|
|
|
36
37
|
## Props
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-10-
|
|
2
|
+
"timestamp": "2026-10-27T10:28:31",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.45.2",
|
|
6
6
|
"typescriptVersion": "5.8.3"
|
|
7
7
|
},
|
|
8
|
+
"storybook": "https://magma-design-system.github.io/magma/storybook/",
|
|
8
9
|
"components": [
|
|
9
10
|
{
|
|
10
11
|
"filePath": "src/components/mds-file/mds-file.tsx",
|
|
@@ -486,7 +487,8 @@
|
|
|
486
487
|
"mds-badge": [
|
|
487
488
|
"mds-text"
|
|
488
489
|
]
|
|
489
|
-
}
|
|
490
|
+
},
|
|
491
|
+
"storybook": "ui-file--docs"
|
|
490
492
|
}
|
|
491
493
|
]
|
|
492
494
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# mds-file-preview
|
|
8
8
|
|
|
9
|
-
> `@maggioli-design-system/magma` 2.
|
|
9
|
+
> `@maggioli-design-system/magma` 2.9.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.
|
|
10
10
|
|
|
11
11
|
The `<mds-file-preview>` web component is the Magma Design System card that previews an uploaded or referenced file, surfacing its name, size, type, and a format-aware icon or thumbnail. It pairs with `<mds-input-upload>` to represent each attached file and adds download/delete affordances around the bare file metadata.
|
|
12
12
|
|
|
@@ -40,6 +40,7 @@ The shared `variant` / `tone` ladders are defined in [`agents/variants.md`](../.
|
|
|
40
40
|
|
|
41
41
|
- [`pattern.md`](pattern.md) - correct usage, with examples
|
|
42
42
|
- [`antipattern.md`](antipattern.md) - mistakes to avoid
|
|
43
|
+
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-file-preview--docs) - the live examples, in the published Storybook of `main`
|
|
43
44
|
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`anti-patterns.md`](../../../../agents/anti-patterns.md) - the rules shared by every component
|
|
44
45
|
|
|
45
46
|
## Props
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-10-
|
|
2
|
+
"timestamp": "2026-10-27T10:28:31",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.45.2",
|
|
6
6
|
"typescriptVersion": "5.8.3"
|
|
7
7
|
},
|
|
8
|
+
"storybook": "https://magma-design-system.github.io/magma/storybook/",
|
|
8
9
|
"components": [
|
|
9
10
|
{
|
|
10
11
|
"filePath": "src/components/mds-file-preview/mds-file-preview.tsx",
|
|
@@ -793,7 +794,8 @@
|
|
|
793
794
|
"mds-input-upload": [
|
|
794
795
|
"mds-file-preview"
|
|
795
796
|
]
|
|
796
|
-
}
|
|
797
|
+
},
|
|
798
|
+
"storybook": "ui-file-preview--docs"
|
|
797
799
|
}
|
|
798
800
|
]
|
|
799
801
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# mds-filter
|
|
8
8
|
|
|
9
|
-
> `@maggioli-design-system/magma` 2.
|
|
9
|
+
> `@maggioli-design-system/magma` 2.9.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.
|
|
10
10
|
|
|
11
11
|
The `<mds-filter>` web component is a compound container that groups a set of `<mds-filter-item>` chips into a single, scrollable filter bar, coordinating their selection state and exposing the active values as one combined change event. It has no native HTML equivalent: it orchestrates its children rather than rendering a control of its own.
|
|
12
12
|
|
|
@@ -31,6 +31,7 @@ The `<mds-filter>` web component is a compound container that groups a set of `<
|
|
|
31
31
|
|
|
32
32
|
- [`pattern.md`](pattern.md) - correct usage, with examples
|
|
33
33
|
- [`antipattern.md`](antipattern.md) - mistakes to avoid
|
|
34
|
+
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-filter--docs) - the live examples, in the published Storybook of `main`
|
|
34
35
|
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`anti-patterns.md`](../../../../agents/anti-patterns.md) - the rules shared by every component
|
|
35
36
|
|
|
36
37
|
## Props
|
|
@@ -62,7 +63,7 @@ The `<mds-filter>` web component is a compound container that groups a set of `<
|
|
|
62
63
|
| `--mds-filter-items-background-active` | Sets the background-color of the items row area when a filter is active |
|
|
63
64
|
| `--mds-filter-wrapper-shadow` | Sets the shadow used as outline border |
|
|
64
65
|
|
|
65
|
-
Only these are public. Its other
|
|
66
|
+
Only these are public. Its other 8 are internal: they may change in any release, do not set them.
|
|
66
67
|
|
|
67
68
|
## Dependencies
|
|
68
69
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-10-
|
|
2
|
+
"timestamp": "2026-10-27T10:28:31",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.45.2",
|
|
6
6
|
"typescriptVersion": "5.8.3"
|
|
7
7
|
},
|
|
8
|
+
"storybook": "https://magma-design-system.github.io/magma/storybook/",
|
|
8
9
|
"components": [
|
|
9
10
|
{
|
|
10
11
|
"filePath": "src/components/mds-filter/mds-filter.tsx",
|
|
@@ -200,6 +201,12 @@
|
|
|
200
201
|
"docs": "Sets the scroll-behavior animation;",
|
|
201
202
|
"visibility": "internal"
|
|
202
203
|
},
|
|
204
|
+
{
|
|
205
|
+
"name": "--mds-filter-label-gap",
|
|
206
|
+
"annotation": "prop",
|
|
207
|
+
"docs": "Sets the gap between the label and the items row area",
|
|
208
|
+
"visibility": "internal"
|
|
209
|
+
},
|
|
203
210
|
{
|
|
204
211
|
"name": "--mds-filter-label-padding",
|
|
205
212
|
"annotation": "prop",
|
|
@@ -247,7 +254,8 @@
|
|
|
247
254
|
"mds-icon",
|
|
248
255
|
"mds-text"
|
|
249
256
|
]
|
|
250
|
-
}
|
|
257
|
+
},
|
|
258
|
+
"storybook": "ui-filter--docs"
|
|
251
259
|
}
|
|
252
260
|
]
|
|
253
261
|
}
|
|
@@ -18,6 +18,7 @@ mds-text {
|
|
|
18
18
|
* @prop --mds-filter-items-padding: Sets the padding of the items row area
|
|
19
19
|
* @prop --mds-filter-items-radius: Sets the border-radius of the items row area
|
|
20
20
|
* @prop --mds-filter-items-scroll-behavior: Sets the scroll-behavior animation;
|
|
21
|
+
* @prop --mds-filter-label-gap: Sets the gap between the label and the items row area
|
|
21
22
|
* @prop --mds-filter-label-padding: Sets the padding of the label
|
|
22
23
|
* @prop --mds-filter-wrapper-shadow-color: Sets the effect of the outline border
|
|
23
24
|
* @prop --mds-filter-wrapper-shadow: Public. Sets the shadow used as outline border
|
|
@@ -41,13 +42,16 @@ mds-text {
|
|
|
41
42
|
--mds-filter-items-scroll-behavior: smooth;
|
|
42
43
|
--mds-filter-items-transition-duration: var(--duration-300, 300ms);
|
|
43
44
|
--private-filter-items-transition-duration: var(--mds-filter-items-transition-duration);
|
|
45
|
+
|
|
46
|
+
/* the gap a field leaves under its label (mds-input-field): 4px glued it to the ring (#1144) */
|
|
47
|
+
--mds-filter-label-gap: --spacing(300);
|
|
44
48
|
--mds-filter-label-padding: 0 --spacing(600);
|
|
45
49
|
--mds-filter-wrapper-shadow-color: rgb(var(--magma-border-default, var(--border-neutral-default, 196 196 196)));
|
|
46
50
|
--mds-filter-wrapper-shadow: 0 0 0 --spacing(50) var(--mds-filter-wrapper-shadow-color, rgb(var(--magma-border-default, var(--border-neutral-default, 196 196 196)))) inset;
|
|
47
51
|
--mds-filter-wrapper-shadow-opacity: 0.1;
|
|
48
52
|
|
|
49
53
|
display: grid;
|
|
50
|
-
gap: --spacing(
|
|
54
|
+
gap: var(--mds-filter-label-gap, --spacing(300));
|
|
51
55
|
grid-auto-rows: min-content;
|
|
52
56
|
}
|
|
53
57
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# mds-filter-item
|
|
8
8
|
|
|
9
|
-
> `@maggioli-design-system/magma` 2.
|
|
9
|
+
> `@maggioli-design-system/magma` 2.9.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.
|
|
10
10
|
|
|
11
11
|
The `<mds-filter-item>` web component is a single selectable option inside the [`<mds-filter>`](../mds-filter/AGENTS.md) container of the Magma Design System. It renders as a toggle button (icon, label, and an optional count badge) and acts as the toggleable unit that drives the parent's filter selection - it has no standalone HTML primitive equivalent.
|
|
12
12
|
|
|
@@ -31,6 +31,7 @@ The `<mds-filter-item>` web component is a single selectable option inside the [
|
|
|
31
31
|
|
|
32
32
|
- [`pattern.md`](pattern.md) - correct usage, with examples
|
|
33
33
|
- [`antipattern.md`](antipattern.md) - mistakes to avoid
|
|
34
|
+
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-filter-filter-item--docs) - the live examples, in the published Storybook of `main`
|
|
34
35
|
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`anti-patterns.md`](../../../../agents/anti-patterns.md) - the rules shared by every component
|
|
35
36
|
|
|
36
37
|
## Props
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-10-
|
|
2
|
+
"timestamp": "2026-10-27T10:28:31",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.45.2",
|
|
6
6
|
"typescriptVersion": "5.8.3"
|
|
7
7
|
},
|
|
8
|
+
"storybook": "https://magma-design-system.github.io/magma/storybook/",
|
|
8
9
|
"components": [
|
|
9
10
|
{
|
|
10
11
|
"filePath": "src/components/mds-filter-item/mds-filter-item.tsx",
|
|
@@ -243,7 +244,8 @@
|
|
|
243
244
|
"mds-filter": [
|
|
244
245
|
"mds-filter-item"
|
|
245
246
|
]
|
|
246
|
-
}
|
|
247
|
+
},
|
|
248
|
+
"storybook": "ui-filter-filter-item--docs"
|
|
247
249
|
}
|
|
248
250
|
]
|
|
249
251
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# mds-header
|
|
8
8
|
|
|
9
|
-
> `@maggioli-design-system/magma` 2.
|
|
9
|
+
> `@maggioli-design-system/magma` 2.9.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.
|
|
10
10
|
|
|
11
11
|
The `<mds-header>` web component is the top-level page header container of the Magma Design System. It is a compound parent that wraps one or more `<mds-header-bar>` elements, orchestrating their scroll-driven appearance, auto-hide visibility, and an optional mobile menu rendered as a side modal.
|
|
12
12
|
|
|
@@ -33,6 +33,7 @@ The `<mds-header>` web component is the top-level page header container of the M
|
|
|
33
33
|
|
|
34
34
|
- [`pattern.md`](pattern.md) - correct usage, with examples
|
|
35
35
|
- [`antipattern.md`](antipattern.md) - mistakes to avoid
|
|
36
|
+
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-header--docs) - the live examples, in the published Storybook of `main`
|
|
36
37
|
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`anti-patterns.md`](../../../../agents/anti-patterns.md) - the rules shared by every component
|
|
37
38
|
|
|
38
39
|
## Props
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-10-
|
|
2
|
+
"timestamp": "2026-10-27T10:28:31",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.45.2",
|
|
6
6
|
"typescriptVersion": "5.8.3"
|
|
7
7
|
},
|
|
8
|
+
"storybook": "https://magma-design-system.github.io/magma/storybook/",
|
|
8
9
|
"components": [
|
|
9
10
|
{
|
|
10
11
|
"filePath": "src/components/mds-header/mds-header.tsx",
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
],
|
|
32
33
|
"usage": {
|
|
33
34
|
"1. Description": "The `<mds-header>` web component is the top-level page header container of the Magma Design System. It is a compound parent that wraps one or more `<mds-header-bar>` elements, orchestrating their scroll-driven appearance, auto-hide visibility, and an optional mobile menu rendered as a side modal.\n\n#### Semantic Behavior\n\n- **Compound parent**: Hosts `<mds-header-bar>` children in the default slot and relays its `menu` and `nav` settings down to the bar.\n- **Mobile menu**: A `[slot=\"menu\"]` child is rendered inside a right-positioned modal. When it is absent there is no modal, and the bar receives `menu=\"none\"` whatever `menu` says, so no hamburger shows that would open nothing.\n- **Open/close control**: The menu modal is opened by the bar's hamburger or programmatically via the `setOpened()` method; when the user closes it, `mdsHeaderClose` is emitted (with the bound bar).\n- **Scroll-driven appearance**: When `appearanceSet` names two appearances, `appearance` swaps between them as the page scrolls past its pixel threshold (300 when the third token is omitted).\n- **Auto-hide on scroll**: When `autoHide` is set, scrolling down past that pixel offset hides the bar and scrolling up reveals it again, governed by `threshold` as the directional margin.\n- **Visibility event**: Any change to `visibility` (`'visible'`/`'hidden'`) emits `mdsHeaderVisibilityChange`, whose `detail.visibility` is that string.\n\n#### Properties & Visual Configurations\n\n- **`appearance`** is the bar's current visual mode (`'stripe'` or `'inline'`) and is mutable because the component rewrites it as the page scrolls.\n- **`appearanceSet`** is a space/comma-separated string declaring scroll behavior as three tokens: initial appearance, changed appearance, and the `scrollY` pixel threshold (e.g. `\"stripe, inline 200\"`). Use it instead of `appearance` when the header should transform on scroll; `appearance` alone keeps a fixed look.\n- **`autoHide`** is the pixel offset past which the bar starts hiding on downward scroll; leave it unset to keep the bar always present.\n- **`threshold`** tunes how many pixels of opposite-direction scroll are required to flip the auto-hide state - raise it to make hide/show less twitchy.\n- **`menu`** and **`nav`** select on which viewports the hamburger menu and the navigation are shown (`'all'`, `'desktop'`, `'mobile'`, `'none'`); they are relayed to the child bar.\n- **`hideBackdrop`** removes the blurred backdrop layer shown behind the bar when its appearance is `'inline'`.\n- **`visibility`** reflects the current shown/hidden state of the bar and can be set to force it.\n",
|
|
34
|
-
"2. Pattern": "Correct and idiomatic ways to use the `<mds-header>` 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#### Minimal Header with Navigation Bar\n\nThe default form. Place exactly one `<mds-header-bar>` in the default slot. The bar receives the `menu` and `nav` breakpoint settings from the parent automatically; without a `menu` slot
|
|
35
|
+
"2. Pattern": "Correct and idiomatic ways to use the `<mds-header>` 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#### Minimal Header with Navigation Bar\n\nThe default form. Place exactly one `<mds-header-bar>` in the default slot. The bar receives the `menu` and `nav` breakpoint settings from the parent automatically; without a `menu` slot it receives `menu=\"none\"`, so it shows no hamburger that would open nothing.\n\n```html\n<mds-header>\n <mds-header-bar>\n <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n <mds-button slot=\"nav\" label=\"Registrati\" variant=\"primary\" tone=\"strong\"></mds-button>\n </mds-header-bar>\n</mds-header>\n```\n\n#### Mobile Menu via the `menu` Slot\n\nProvide a `[slot=\"menu\"]` child to enable the hamburger-triggered side modal. When this slot is filled, the mobile menu icon is shown according to the `menu` breakpoint prop; without it the bar receives `menu=\"none\"` whatever `menu` says, and shows no hamburger.\n\n```html\n<mds-header menu=\"mobile\">\n <mds-header-bar>\n <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n </mds-header-bar>\n\n <div slot=\"menu\">\n <div class=\"p-600\">\n <mds-button label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n <mds-button label=\"Registrati\" variant=\"primary\" tone=\"strong\"></mds-button>\n </div>\n </div>\n</mds-header>\n```\n\n#### Inline Appearance (Floating Bar)\n\nSet `appearance=\"inline\"` to detach the bar from the top edge and give it a rounded, floating look. A blurred backdrop is shown by default; add `hide-backdrop` to remove it.\n\n```html\n<mds-header appearance=\"inline\">\n <mds-header-bar>\n <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n </mds-header-bar>\n</mds-header>\n```\n\n#### Scroll-Driven Appearance Change via `appearance-set`\n\nUse `appearance-set` to declare an initial appearance, a changed appearance, and a scroll threshold in pixels. The component swaps `appearance` automatically as the page scrolls past the threshold - no JavaScript needed. Do not combine `appearance-set` with manual writes to `appearance`.\n\n```html\n<!-- Starts inline (floating), switches to stripe (full-width) after 300 px of scroll -->\n<mds-header appearance-set=\"inline, stripe 300\" appearance=\"inline\">\n <mds-header-bar>\n <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n </mds-header-bar>\n</mds-header>\n```\n\n#### Auto-Hide on Downward Scroll\n\nSet `auto-hide` to the pixel offset at which the bar should start hiding when the user scrolls down. The bar reappears when the user scrolls back up. Use `threshold` (default `1`) to control how many pixels of reverse-scroll are required before the bar snaps back - raise it to reduce twitchiness.\n\n```html\n<mds-header auto-hide=\"300\" threshold=\"10\">\n <mds-header-bar>\n <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n </mds-header-bar>\n</mds-header>\n```\n\n#### Controlling Menu and Nav Breakpoints\n\n`menu` controls on which viewports the hamburger icon is visible; `nav` controls on which viewports the inline navigation is visible. Both accept `'all'`, `'desktop'`, `'mobile'`, or `'none'`.\n\n```html\n<!-- Hamburger shown on all screen sizes; inline nav shown only on desktop -->\n<mds-header menu=\"all\" nav=\"desktop\">\n <mds-header-bar>\n <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n </mds-header-bar>\n\n <div slot=\"menu\">\n <div class=\"p-600\">\n <mds-button label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n </div>\n </div>\n</mds-header>\n```\n\n#### Reacting to Visibility Changes\n\nListen for `mdsHeaderVisibilityChange` to know when the bar is hidden or shown by auto-hide. The event detail carries `visibility` as the string `'visible'` or `'hidden'`.\n\n```html\n<mds-header auto-hide=\"200\" id=\"siteHeader\">\n <mds-header-bar>\n <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n </mds-header-bar>\n</mds-header>\n\n<script>\n document.getElementById('siteHeader').addEventListener('mdsHeaderVisibilityChange', (e) => {\n console.log('header visibile:', e.detail.visibility);\n });\n</script>\n```\n\n#### Reacting to Mobile Menu Close\n\nListen for `mdsHeaderClose` to run cleanup logic when the side modal is dismissed. The event detail carries the bound `<mds-header-bar>` reference.\n\n```html\n<mds-header id=\"siteHeader\">\n <mds-header-bar>\n <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n </mds-header-bar>\n <div slot=\"menu\">\n <mds-button label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n </div>\n</mds-header>\n\n<script>\n document.getElementById('siteHeader').addEventListener('mdsHeaderClose', (e) => {\n console.log('menu chiuso, bar:', e.detail.bar);\n });\n</script>\n```\n\n#### Programmatic Open/Close via `setOpened()`\n\nUse the `setOpened()` method to open or close the mobile menu from JavaScript - for example after a navigation event inside the menu panel.\n\n```html\n<mds-header id=\"siteHeader\">\n <mds-header-bar>\n <mds-img class=\"w-800\" src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n </mds-header-bar>\n <div slot=\"menu\">\n <mds-button label=\"Vai alla home\" id=\"homeBtn\" variant=\"primary\" tone=\"strong\"></mds-button>\n </div>\n</mds-header>\n\n<script>\n document.getElementById('homeBtn').addEventListener('click', async () => {\n window.location.href = '/';\n await document.getElementById('siteHeader').setOpened(false);\n });\n</script>\n```\n\n#### Styling Customization\n\nCustomize the header through its public `--mds-header-*` CSS custom properties. Use the semantic color roles via `rgb(var(--magma-<role>))` so dark mode and high-contrast continue to work. `--mds-header-color` also colors the icons, the hamburger of the child `mds-header-bar` included.\n\n```css\nmds-header {\n --mds-header-color: rgb(var(--magma-text-muted));\n --mds-header-z-index: 200;\n}\n\n/* Inline appearance: wider floating margin on desktop */\nmds-header[appearance='inline'] {\n --mds-header-inline-margin: 2rem;\n}\n```\n",
|
|
35
36
|
"3. Antipattern": "Common incorrect uses of `<mds-header>`. 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 Place `<mds-header-bar>` Outside `<mds-header>`\n\n`<mds-header-bar>` is a compound child; it must be a direct slot child of `<mds-header>`, which relays breakpoint and appearance state down to it. Using the bar standalone breaks that communication: its hamburger has no menu to open, and appearance and auto-hide do not apply.\n\n```html\n<!-- INCORRECT -->\n<mds-header-bar>\n <mds-img src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n</mds-header-bar>\n\n<!-- CORRECT -->\n<mds-header>\n <mds-header-bar>\n <mds-img src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n </mds-header-bar>\n</mds-header>\n```\n\n#### Do Not Drive Scroll Appearance with JavaScript When `appearance-set` Is Available\n\nManually toggling `appearance` on a scroll listener duplicates what `appearance-set` already handles declaratively, and once `appearance-set` is also set the component's own scroll handler rewrites `appearance` on every scroll.\n\n```html\n<!-- INCORRECT -->\n<mds-header id=\"hdr\" appearance=\"inline\">\n <mds-header-bar>...</mds-header-bar>\n</mds-header>\n<script>\n window.addEventListener('scroll', () => {\n document.getElementById('hdr').appearance = window.scrollY > 300 ? 'stripe' : 'inline';\n });\n</script>\n\n<!-- CORRECT -->\n<mds-header appearance-set=\"inline, stripe 300\" appearance=\"inline\">\n <mds-header-bar>...</mds-header-bar>\n</mds-header>\n```\n\n#### Do Not Omit the `menu` Slot When Providing a Hamburger-Only Nav\n\nIf no `[slot=\"menu\"]` child is present there is no modal to open, so the bar shows no hamburger icon whatever `menu` says: on the viewports where `nav` hides the navigation, nothing is left to navigate with. Always provide menu content when you want the mobile toggle to be visible.\n\n```html\n<!-- INCORRECT: no hamburger and, on mobile, no navigation -->\n<mds-header menu=\"mobile\">\n <mds-header-bar>\n <mds-img src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n </mds-header-bar>\n</mds-header>\n\n<!-- CORRECT -->\n<mds-header menu=\"mobile\">\n <mds-header-bar>\n <mds-img src=\"/logo.svg\" alt=\"Logo\"></mds-img>\n <mds-button slot=\"nav\" label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n </mds-header-bar>\n <div slot=\"menu\">\n <mds-button label=\"Accedi\" variant=\"dark\" tone=\"outline\"></mds-button>\n </div>\n</mds-header>\n```\n\n#### Do Not Listen to Native `scroll` Events to Detect Auto-Hide State\n\nThe component already emits `mdsHeaderVisibilityChange` when the bar flips between hidden and visible. Attaching a second `scroll` listener couples your code to the same threshold logic and risks running out of sync.\n\n```html\n<!-- INCORRECT -->\n<mds-header auto-hide=\"300\" id=\"hdr\">\n <mds-header-bar>...</mds-header-bar>\n</mds-header>\n<script>\n window.addEventListener('scroll', () => {\n const hidden = window.scrollY > 300;\n document.body.classList.toggle('header-hidden', hidden);\n });\n</script>\n\n<!-- CORRECT -->\n<mds-header auto-hide=\"300\" id=\"hdr\">\n <mds-header-bar>...</mds-header-bar>\n</mds-header>\n<script>\n document.getElementById('hdr').addEventListener('mdsHeaderVisibilityChange', (e) => {\n document.body.classList.toggle('header-hidden', e.detail.visibility === 'hidden');\n });\n</script>\n```\n\n#### Do Not Pierce Shadow DOM to Style the Internal Modal\n\nThe side-modal container is exposed as `::part(menu)` and its stacking is controllable via `--mds-header-z-index`. Do not use `>>>`, `/deep/`, or undocumented internal selectors.\n\n```css\n/* INCORRECT */\nmds-header >>> .menu mds-modal {\n background: red;\n}\n\n/* CORRECT */\nmds-header {\n --mds-header-z-index: 500;\n}\nmds-header::part(menu) {\n /* documented part - safe to target */\n}\n```\n"
|
|
36
37
|
},
|
|
37
38
|
"props": [
|
|
@@ -505,7 +506,8 @@
|
|
|
505
506
|
"mds-icon",
|
|
506
507
|
"mds-text"
|
|
507
508
|
]
|
|
508
|
-
}
|
|
509
|
+
},
|
|
510
|
+
"storybook": "ui-header--docs"
|
|
509
511
|
}
|
|
510
512
|
]
|
|
511
513
|
}
|
|
@@ -11,10 +11,10 @@ Correct and idiomatic ways to use the `<mds-header>` component, ordered from mos
|
|
|
11
11
|
|
|
12
12
|
#### Minimal Header with Navigation Bar
|
|
13
13
|
|
|
14
|
-
The default form. Place exactly one `<mds-header-bar>` in the default slot. The bar receives the `menu` and `nav` breakpoint settings from the parent automatically; without a `menu` slot
|
|
14
|
+
The default form. Place exactly one `<mds-header-bar>` in the default slot. The bar receives the `menu` and `nav` breakpoint settings from the parent automatically; without a `menu` slot it receives `menu="none"`, so it shows no hamburger that would open nothing.
|
|
15
15
|
|
|
16
16
|
```html
|
|
17
|
-
<mds-header
|
|
17
|
+
<mds-header>
|
|
18
18
|
<mds-header-bar>
|
|
19
19
|
<mds-img class="w-800" src="/logo.svg" alt="Logo"></mds-img>
|
|
20
20
|
<mds-button slot="nav" label="Accedi" variant="dark" tone="outline"></mds-button>
|
|
@@ -25,7 +25,7 @@ The default form. Place exactly one `<mds-header-bar>` in the default slot. The
|
|
|
25
25
|
|
|
26
26
|
#### Mobile Menu via the `menu` Slot
|
|
27
27
|
|
|
28
|
-
Provide a `[slot="menu"]` child to enable the hamburger-triggered side modal. When this slot is filled, the mobile menu icon is shown according to the `menu` breakpoint prop; without it the
|
|
28
|
+
Provide a `[slot="menu"]` child to enable the hamburger-triggered side modal. When this slot is filled, the mobile menu icon is shown according to the `menu` breakpoint prop; without it the bar receives `menu="none"` whatever `menu` says, and shows no hamburger.
|
|
29
29
|
|
|
30
30
|
```html
|
|
31
31
|
<mds-header menu="mobile">
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# mds-header-bar
|
|
8
8
|
|
|
9
|
-
> `@maggioli-design-system/magma` 2.
|
|
9
|
+
> `@maggioli-design-system/magma` 2.9.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.
|
|
10
10
|
|
|
11
11
|
The `<mds-header-bar>` web component is the top bar of a Magma application layout: it holds the product branding on the left and the primary navigation actions on the right, collapsing those actions into a hamburger menu on smaller viewports. It is a structural compound element, typically nested inside an `<mds-header>`, with no native HTML primitive equivalent.
|
|
12
12
|
|
|
@@ -32,6 +32,7 @@ Inside `mds-header` both are written by the header from its own `menu` and `nav`
|
|
|
32
32
|
|
|
33
33
|
- [`pattern.md`](pattern.md) - correct usage, with examples
|
|
34
34
|
- [`antipattern.md`](antipattern.md) - mistakes to avoid
|
|
35
|
+
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-header-header-bar--docs) - the live examples, in the published Storybook of `main`
|
|
35
36
|
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`anti-patterns.md`](../../../../agents/anti-patterns.md) - the rules shared by every component
|
|
36
37
|
|
|
37
38
|
## Props
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-10-
|
|
2
|
+
"timestamp": "2026-10-27T10:28:31",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.45.2",
|
|
6
6
|
"typescriptVersion": "5.8.3"
|
|
7
7
|
},
|
|
8
|
+
"storybook": "https://magma-design-system.github.io/magma/storybook/",
|
|
8
9
|
"components": [
|
|
9
10
|
{
|
|
10
11
|
"filePath": "src/components/mds-header-bar/mds-header-bar.tsx",
|
|
@@ -254,7 +255,8 @@
|
|
|
254
255
|
"mds-icon",
|
|
255
256
|
"mds-text"
|
|
256
257
|
]
|
|
257
|
-
}
|
|
258
|
+
},
|
|
259
|
+
"storybook": "ui-header-header-bar--docs"
|
|
258
260
|
}
|
|
259
261
|
]
|
|
260
262
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# mds-help
|
|
8
8
|
|
|
9
|
-
> `@maggioli-design-system/magma` 2.
|
|
9
|
+
> `@maggioli-design-system/magma` 2.9.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.
|
|
10
10
|
|
|
11
11
|
The `<mds-help>` web component is a contextual help affordance of the Magma Design System: a small help icon that reveals an explanatory tooltip on interaction. It composes [`mds-icon`](../mds-icon/AGENTS.md) and [`mds-tooltip`](../mds-tooltip/AGENTS.md) into a single drop-in element, so there is no native HTML primitive it replaces.
|
|
12
12
|
|
|
@@ -28,6 +28,7 @@ The tooltip's dimensions and reveal timing are tuned via the CSS custom properti
|
|
|
28
28
|
|
|
29
29
|
- [`pattern.md`](pattern.md) - correct usage, with examples
|
|
30
30
|
- [`antipattern.md`](antipattern.md) - mistakes to avoid
|
|
31
|
+
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-help--docs) - the live examples, in the published Storybook of `main`
|
|
31
32
|
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`anti-patterns.md`](../../../../agents/anti-patterns.md) - the rules shared by every component
|
|
32
33
|
|
|
33
34
|
## Props
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-10-
|
|
2
|
+
"timestamp": "2026-10-27T10:28:31",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.45.2",
|
|
6
6
|
"typescriptVersion": "5.8.3"
|
|
7
7
|
},
|
|
8
|
+
"storybook": "https://magma-design-system.github.io/magma/storybook/",
|
|
8
9
|
"components": [
|
|
9
10
|
{
|
|
10
11
|
"filePath": "src/components/mds-help/mds-help.tsx",
|
|
@@ -234,7 +235,8 @@
|
|
|
234
235
|
"mds-policy-ai": [
|
|
235
236
|
"mds-help"
|
|
236
237
|
]
|
|
237
|
-
}
|
|
238
|
+
},
|
|
239
|
+
"storybook": "ui-help--docs"
|
|
238
240
|
}
|
|
239
241
|
]
|
|
240
242
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# mds-horizontal-scroll
|
|
8
8
|
|
|
9
|
-
> `@maggioli-design-system/magma` 2.
|
|
9
|
+
> `@maggioli-design-system/magma` 2.9.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.
|
|
10
10
|
|
|
11
11
|
The `<mds-horizontal-scroll>` web component is a horizontally scrolling container of the Magma Design System. It wraps any slotted content in a snap-scrolling viewport and overlays optional navigation controls, replacing the manual overflow/scroll-snap CSS plumbing you would otherwise write around a `<div>`.
|
|
12
12
|
|
|
@@ -30,6 +30,7 @@ This component does not use the shared `variant` / `tone` ladders defined in [`a
|
|
|
30
30
|
|
|
31
31
|
- [`pattern.md`](pattern.md) - correct usage, with examples
|
|
32
32
|
- [`antipattern.md`](antipattern.md) - mistakes to avoid
|
|
33
|
+
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/layout-horizontal-scroll--docs) - the live examples, in the published Storybook of `main`
|
|
33
34
|
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`anti-patterns.md`](../../../../agents/anti-patterns.md) - the rules shared by every component
|
|
34
35
|
|
|
35
36
|
## Props
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-10-
|
|
2
|
+
"timestamp": "2026-10-27T10:28:31",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.45.2",
|
|
6
6
|
"typescriptVersion": "5.8.3"
|
|
7
7
|
},
|
|
8
|
+
"storybook": "https://magma-design-system.github.io/magma/storybook/",
|
|
8
9
|
"components": [
|
|
9
10
|
{
|
|
10
11
|
"filePath": "src/components/mds-horizontal-scroll/mds-horizontal-scroll.tsx",
|
|
@@ -297,7 +298,8 @@
|
|
|
297
298
|
"mds-icon",
|
|
298
299
|
"mds-text"
|
|
299
300
|
]
|
|
300
|
-
}
|
|
301
|
+
},
|
|
302
|
+
"storybook": "layout-horizontal-scroll--docs"
|
|
301
303
|
}
|
|
302
304
|
]
|
|
303
305
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# mds-hr
|
|
8
8
|
|
|
9
|
-
> `@maggioli-design-system/magma` 2.
|
|
9
|
+
> `@maggioli-design-system/magma` 2.9.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.
|
|
10
10
|
|
|
11
11
|
The `<mds-hr>` web component is the horizontal rule of the Magma Design System. It is a purely presentational separator that replaces the native `<hr>` element, rendering a thin themed divider line to split content into visual sections.
|
|
12
12
|
|
|
@@ -24,4 +24,5 @@ The `<mds-hr>` web component is the horizontal rule of the Magma Design System.
|
|
|
24
24
|
|
|
25
25
|
- [`pattern.md`](pattern.md) - correct usage, with examples
|
|
26
26
|
- [`antipattern.md`](antipattern.md) - mistakes to avoid
|
|
27
|
+
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-hr--docs) - the live examples, in the published Storybook of `main`
|
|
27
28
|
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`anti-patterns.md`](../../../../agents/anti-patterns.md) - the rules shared by every component
|