@maggioli-design-system/magma 1.10.1 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{floating-controller-65286655.js → floating-controller-a52af7cc.js} +1 -1
- package/dist/cjs/{floating-ui.dom.esm-12c5956b.js → floating-ui.dom.esm-0a090151.js} +1 -1
- package/dist/cjs/index-de0ace0a.js +4 -4
- 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 +11 -5
- package/dist/cjs/mds-button_3.cjs.entry.js +1 -1
- package/dist/cjs/mds-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/mds-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date.cjs.entry.js +57 -54
- package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-otp.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 +2 -2
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +8 -8
- package/dist/cjs/mds-input-upload.cjs.entry.js +11 -4
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +2 -2
- package/dist/cjs/mds-keyboard.cjs.entry.js +1 -1
- package/dist/cjs/mds-kpi-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-kpi.cjs.entry.js +1 -1
- package/dist/cjs/mds-label.cjs.entry.js +1 -1
- package/dist/cjs/mds-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-list.cjs.entry.js +1 -1
- package/dist/cjs/mds-mention.cjs.entry.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +3 -2
- 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 +2 -2
- package/dist/cjs/mds-policy-ai.cjs.entry.js +38 -38
- 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-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-language.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-theme.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +6 -6
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +1 -1
- 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.cjs.entry.js +1 -1
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-push-notification.cjs.entry.js +1 -1
- package/dist/cjs/mds-quote.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu.cjs.entry.js +3 -3
- package/dist/cjs/mds-separator.cjs.entry.js +1 -1
- package/dist/cjs/mds-status-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab_2.cjs.entry.js +4 -4
- package/dist/cjs/mds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-row.cjs.entry.js +6 -6
- package/dist/cjs/mds-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-text.cjs.entry.js +1 -1
- package/dist/cjs/mds-toast.cjs.entry.js +3 -3
- package/dist/cjs/mds-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/mds-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-tree.cjs.entry.js +1 -1
- package/dist/cjs/mds-url-view.cjs.entry.js +1 -1
- package/dist/cjs/mds-usage.cjs.entry.js +1 -1
- package/dist/cjs/mds-video-wall.cjs.entry.js +3 -3
- package/dist/cjs/mds-zero.cjs.entry.js +1 -1
- package/dist/collection/components/mds-accordion/test/mds-accordion.stories.js +21 -14
- package/dist/collection/components/mds-accordion-item/test/mds-accordion-item.stories.js +12 -8
- package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +38 -27
- package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js +22 -16
- package/dist/collection/components/mds-author/test/mds-author.stories.js +8 -4
- package/dist/collection/components/mds-avatar/test/mds-avatar.stories.js +31 -19
- package/dist/collection/components/mds-avatar-stack/test/mds-avatar-stack.stories.js +15 -9
- package/dist/collection/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.js +25 -17
- package/dist/collection/components/mds-badge/test/mds-badge.stories.js +8 -6
- package/dist/collection/components/mds-banner/test/mds-banner.stories.js +65 -45
- package/dist/collection/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.js +17 -11
- package/dist/collection/components/mds-bibliography/test/mds-bibliography.stories.js +45 -35
- package/dist/collection/components/mds-breadcrumb/test/mds-breadcrumb.stories.js +4 -2
- package/dist/collection/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.js +9 -5
- package/dist/collection/components/mds-button/test/mds-button.stories.js +142 -84
- package/dist/collection/components/mds-button-dropdown/test/mds-button-dropdown.stories.js +8 -6
- package/dist/collection/components/mds-button-group/test/mds-button-group.stories.js +8 -4
- package/dist/collection/components/mds-calendar/test/mds-calendar.stories.js +6 -4
- package/dist/collection/components/mds-card/test/mds-card.stories.js +71 -37
- package/dist/collection/components/mds-chip/mds-chip.css +6 -1
- package/dist/collection/components/mds-chip/mds-chip.js +30 -4
- package/dist/collection/components/mds-chip/test/mds-chip.stories.js +60 -31
- package/dist/collection/components/mds-details/test/mds-details.stories.js +9 -5
- package/dist/collection/components/mds-dropdown/test/mds-dropdown.stories.js +153 -113
- package/dist/collection/components/mds-emoji/test/mds-emoji.stories.js +12 -5
- package/dist/collection/components/mds-entity/test/mds-entity.stories.js +43 -21
- package/dist/collection/components/mds-file/test/mds-file.stories.js +30 -20
- package/dist/collection/components/mds-file-preview/test/mds-file-preview.stories.js +86 -62
- package/dist/collection/components/mds-filter/test/mds-filter.stories.js +23 -15
- package/dist/collection/components/mds-filter-item/test/mds-filter-item.stories.js +12 -8
- package/dist/collection/components/mds-header/mds-header.css +1 -2
- package/dist/collection/components/mds-header/test/mds-header.stories.js +34 -20
- package/dist/collection/components/mds-header-bar/test/mds-header-bar.stories.js +4 -2
- package/dist/collection/components/mds-help/test/mds-help.stories.js +9 -5
- package/dist/collection/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.js +21 -13
- package/dist/collection/components/mds-hr/test/mds-hr.stories.js +8 -4
- package/dist/collection/components/mds-icon/test/mds-icon.stories.js +49 -31
- package/dist/collection/components/mds-img/test/mds-img-accessibility.stories.js +24 -16
- package/dist/collection/components/mds-img/test/mds-img.stories.js +55 -41
- package/dist/collection/components/mds-input/test/mds-input.stories.js +158 -109
- package/dist/collection/components/mds-input-date/mds-input-date.css +3 -0
- package/dist/collection/components/mds-input-date/mds-input-date.js +146 -56
- package/dist/collection/components/mds-input-date/test/mds-input-date.stories.js +41 -11
- package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +23 -15
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.js +1 -1
- package/dist/collection/components/mds-input-field/mds-input-field.js +1 -1
- package/dist/collection/components/mds-input-field/test/mds-input-field.stories.js +37 -25
- package/dist/collection/components/mds-input-otp/mds-input-otp.js +1 -1
- package/dist/collection/components/mds-input-otp/test/mds-input-otp.stories.js +30 -14
- package/dist/collection/components/mds-input-range/mds-input-range.js +1 -1
- package/dist/collection/components/mds-input-range/test/mds-input-range.stories.js +37 -21
- package/dist/collection/components/mds-input-select/mds-input-select.js +2 -2
- package/dist/collection/components/mds-input-select/test/mds-input-select.stories.js +34 -20
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +2 -2
- package/dist/collection/components/mds-input-switch/test/mds-input-switch.stories.js +93 -71
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +1 -1
- package/dist/collection/components/mds-input-tip/test/mds-input-tip.stories.js +4 -2
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +7 -7
- package/dist/collection/components/mds-input-tip-item/test/mds-input-tip.stories.js +3 -1
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +28 -4
- package/dist/collection/components/mds-input-upload/test/mds-input-upload.stories.js +20 -14
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +1 -1
- package/dist/collection/components/mds-keyboard/test/mds-keyboard.stories.js +17 -9
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +2 -2
- package/dist/collection/components/mds-keyboard-key/test/mds-keyboard-key.stories.js +6 -4
- package/dist/collection/components/mds-kpi/mds-kpi.js +1 -1
- package/dist/collection/components/mds-kpi/test/mds-kpi.stories.js +8 -4
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +2 -2
- package/dist/collection/components/mds-kpi-item/test/mds-kpi-item.stories.js +12 -8
- package/dist/collection/components/mds-label/mds-label.js +1 -1
- package/dist/collection/components/mds-label/test/mds-label.stories.js +28 -16
- package/dist/collection/components/mds-list/mds-list.js +1 -1
- package/dist/collection/components/mds-list/test/mds-list.stories.js +4 -2
- package/dist/collection/components/mds-list-item/mds-list-item.js +1 -1
- package/dist/collection/components/mds-list-item/test/mds-list-item.stories.js +5 -3
- package/dist/collection/components/mds-mention/mds-mention.js +1 -1
- package/dist/collection/components/mds-mention/test/mds-mention.stories.js +6 -4
- package/dist/collection/components/mds-modal/mds-modal.js +3 -2
- package/dist/collection/components/mds-modal/test/mds-modal.stories.js +54 -37
- package/dist/collection/components/mds-note/mds-note.js +1 -1
- package/dist/collection/components/mds-note/test/mds-note.stories.js +13 -7
- package/dist/collection/components/mds-notification/mds-notification.js +1 -1
- package/dist/collection/components/mds-notification/test/mds-notification.stories.js +38 -26
- package/dist/collection/components/mds-paginator/mds-paginator.js +2 -2
- package/dist/collection/components/mds-paginator/test/mds-paginator.stories.js +12 -8
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +1 -1
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +1 -1
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +1 -1
- package/dist/collection/components/mds-policy-ai/test/mds-policy.stories.js +52 -34
- package/dist/collection/components/mds-pref/mds-pref.js +1 -1
- package/dist/collection/components/mds-pref/test/mds-pref.stories.js +9 -5
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +1 -1
- package/dist/collection/components/mds-pref-animation/test/mds-pref-animation.stories.js +4 -2
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +1 -1
- package/dist/collection/components/mds-pref-consumption/test/mds-pref-consumption.stories.js +4 -2
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +1 -1
- package/dist/collection/components/mds-pref-contrast/test/mds-pref-contrast.stories.js +4 -2
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +1 -1
- package/dist/collection/components/mds-pref-language/test/mds-pref-language.stories.js +5 -3
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +1 -1
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +3 -3
- package/dist/collection/components/mds-pref-theme/test/mds-pref-theme.stories.js +4 -2
- package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
- package/dist/collection/components/mds-price-table/test/mds-price-table.stories.js +6 -4
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +2 -2
- package/dist/collection/components/mds-price-table-features/test/mds-price-table-features.stories.js +6 -4
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +6 -6
- package/dist/collection/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.js +6 -4
- 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/mds-price-table-header.js +1 -1
- package/dist/collection/components/mds-price-table-header/test/mds-price-table-header.stories.js +4 -2
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +2 -2
- package/dist/collection/components/mds-price-table-list/test/mds-price-table-list.stories.js +8 -4
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +2 -2
- package/dist/collection/components/mds-progress/mds-progress.js +1 -1
- package/dist/collection/components/mds-progress/test/mds-progress.stories.js +6 -4
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +1 -1
- package/dist/collection/components/mds-push-notification/test/mds-push-notification.stories.js +24 -18
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +2 -2
- package/dist/collection/components/mds-push-notification-item/test/mds-push-notification-item.stories.js +115 -93
- package/dist/collection/components/mds-quote/mds-quote.js +1 -1
- package/dist/collection/components/mds-quote/test/mds-quote.stories.js +13 -9
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +1 -3
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +1 -1
- package/dist/collection/components/mds-radial-menu/test/mds-radial-menu.stories.js +27 -19
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
- package/dist/collection/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.js +6 -4
- package/dist/collection/components/mds-separator/mds-separator.js +1 -1
- package/dist/collection/components/mds-separator/test/mds-separator.stories.js +4 -2
- package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
- package/dist/collection/components/mds-spinner/test/mds-spinner.stories.js +10 -6
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +1 -2
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +1 -1
- package/dist/collection/components/mds-status-bar/test/mds-status-bar.stories.js +5 -3
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +1 -1
- package/dist/collection/components/mds-stepper-bar/test/mds-stepper-bar.stories.js +49 -5
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
- package/dist/collection/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.js +26 -14
- package/dist/collection/components/mds-tab/mds-tab.js +3 -3
- package/dist/collection/components/mds-tab/test/mds-tab.stories.js +62 -34
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +1 -1
- package/dist/collection/components/mds-tab-bar/test/mds-tab-bar.stories.js +4 -2
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +1 -1
- package/dist/collection/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.js +4 -2
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +1 -1
- package/dist/collection/components/mds-tab-item/test/mds-tab-item.stories.js +13 -7
- package/dist/collection/components/mds-table/mds-table.js +1 -1
- package/dist/collection/components/mds-table/test/mds-table.stories.js +46 -29
- package/dist/collection/components/mds-table-body/mds-table-body.js +1 -1
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +1 -1
- package/dist/collection/components/mds-table-header/mds-table-header.js +2 -2
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +1 -1
- package/dist/collection/components/mds-table-row/mds-table-row.js +6 -6
- package/dist/collection/components/mds-text/mds-text.js +1 -1
- package/dist/collection/components/mds-text/test/mds-text.stories.js +134 -90
- package/dist/collection/components/mds-toast/mds-toast.js +3 -3
- package/dist/collection/components/mds-toast/test/mds-toast.stories.js +9 -5
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +1 -1
- package/dist/collection/components/mds-tooltip/test/mds-tooltip.stories.js +69 -47
- package/dist/collection/components/mds-tree/mds-tree.js +1 -1
- package/dist/collection/components/mds-tree/test/mds-tree-apk.stories.js +22 -8
- package/dist/collection/components/mds-tree/test/mds-tree.stories.js +22 -14
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +1 -1
- package/dist/collection/components/mds-tree-item/test/mds-tree-item.stories.js +7 -3
- package/dist/collection/components/mds-url-view/mds-url-view.js +1 -1
- package/dist/collection/components/mds-url-view/test/mds-url-view.stories.js +26 -19
- package/dist/collection/components/mds-usage/mds-usage.js +1 -1
- package/dist/collection/components/mds-usage/test/mds-usage.stories.js +14 -8
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +3 -3
- package/dist/collection/components/mds-video-wall/test/mds-video-wall.stories.js +64 -49
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/collection/components/mds-zero/test/mds-zero.stories.js +4 -2
- package/dist/collection/storybook/components-version.stories.js +6 -2
- package/dist/collection/storybook/example-page.stories.js +6 -2
- package/dist/collection/storybook/fouc-hydrated.stories.js +4 -2
- package/dist/collection/storybook/input-form.stories.js +4 -2
- package/dist/collection/storybook/same-childrend-slot-names.stories.js +4 -2
- package/dist/components/floating-ui.dom.esm.js +1 -1
- package/dist/components/mds-chip2.js +11 -5
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date.js +85 -66
- 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 +2 -2
- package/dist/components/mds-input-switch2.js +2 -2
- package/dist/components/mds-input-tip-item2.js +7 -7
- package/dist/components/mds-input-tip2.js +1 -1
- package/dist/components/mds-input-upload.js +13 -5
- package/dist/components/mds-keyboard-key.js +2 -2
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +2 -2
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal2.js +3 -2
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item2.js +1 -1
- package/dist/components/mds-paginator.js +2 -2
- package/dist/components/mds-policy-ai.js +38 -38
- 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-theme.js +3 -3
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +6 -6
- package/dist/components/mds-price-table-features-row.js +1 -1
- package/dist/components/mds-price-table-features.js +2 -2
- package/dist/components/mds-price-table-header.js +1 -1
- package/dist/components/mds-price-table-list-item.js +2 -2
- package/dist/components/mds-price-table-list.js +2 -2
- package/dist/components/mds-price-table.js +1 -1
- package/dist/components/mds-progress2.js +1 -1
- package/dist/components/mds-push-notification-item.js +2 -2
- 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-separator2.js +1 -1
- package/dist/components/mds-spinner2.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-item2.js +1 -1
- package/dist/components/mds-tab2.js +3 -3
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell2.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell2.js +1 -1
- package/dist/components/mds-table-header.js +2 -2
- package/dist/components/mds-table-row.js +6 -6
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text2.js +1 -1
- package/dist/components/mds-toast.js +3 -3
- package/dist/components/mds-tooltip2.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 +3 -3
- package/dist/components/mds-zero.js +1 -1
- package/dist/documentation.json +194 -2
- package/dist/esm/{floating-controller-698c4c16.js → floating-controller-a9b05f8d.js} +1 -1
- package/dist/esm/{floating-ui.dom.esm-e0f44fc0.js → floating-ui.dom.esm-05026c49.js} +1 -1
- package/dist/esm/index-7f153b9b.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-banner_3.entry.js +11 -5
- package/dist/esm/mds-button_3.entry.js +1 -1
- package/dist/esm/mds-dropdown.entry.js +2 -2
- package/dist/esm/mds-header.entry.js +1 -1
- package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm/mds-input-date.entry.js +57 -54
- package/dist/esm/mds-input-field.entry.js +1 -1
- package/dist/esm/mds-input-otp.entry.js +1 -1
- package/dist/esm/mds-input-range.entry.js +1 -1
- package/dist/esm/mds-input-select.entry.js +2 -2
- package/dist/esm/mds-input-switch_2.entry.js +3 -3
- package/dist/esm/mds-input-tip_2.entry.js +8 -8
- package/dist/esm/mds-input-upload.entry.js +11 -4
- package/dist/esm/mds-keyboard-key.entry.js +2 -2
- package/dist/esm/mds-keyboard.entry.js +1 -1
- package/dist/esm/mds-kpi-item.entry.js +2 -2
- package/dist/esm/mds-kpi.entry.js +1 -1
- package/dist/esm/mds-label.entry.js +1 -1
- package/dist/esm/mds-list-item.entry.js +1 -1
- package/dist/esm/mds-list.entry.js +1 -1
- package/dist/esm/mds-mention.entry.js +1 -1
- package/dist/esm/mds-modal.entry.js +3 -2
- 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 +2 -2
- package/dist/esm/mds-policy-ai.entry.js +38 -38
- 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-item.entry.js +1 -1
- package/dist/esm/mds-pref-language.entry.js +1 -1
- package/dist/esm/mds-pref-theme.entry.js +3 -3
- package/dist/esm/mds-pref.entry.js +1 -1
- package/dist/esm/mds-price-table-features-cell.entry.js +6 -6
- package/dist/esm/mds-price-table-features-row.entry.js +1 -1
- 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.entry.js +1 -1
- package/dist/esm/mds-push-notification-item.entry.js +2 -2
- package/dist/esm/mds-push-notification.entry.js +1 -1
- package/dist/esm/mds-quote.entry.js +1 -1
- package/dist/esm/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm/mds-radial-menu.entry.js +3 -3
- package/dist/esm/mds-separator.entry.js +1 -1
- package/dist/esm/mds-status-bar.entry.js +1 -1
- package/dist/esm/mds-stepper-bar-item.entry.js +1 -1
- package/dist/esm/mds-stepper-bar.entry.js +1 -1
- package/dist/esm/mds-tab-bar-item.entry.js +1 -1
- package/dist/esm/mds-tab-bar.entry.js +1 -1
- package/dist/esm/mds-tab_2.entry.js +4 -4
- package/dist/esm/mds-table-body.entry.js +1 -1
- package/dist/esm/mds-table-footer.entry.js +1 -1
- package/dist/esm/mds-table-header-cell.entry.js +1 -1
- package/dist/esm/mds-table-header.entry.js +2 -2
- package/dist/esm/mds-table-row.entry.js +6 -6
- package/dist/esm/mds-table.entry.js +1 -1
- package/dist/esm/mds-text.entry.js +1 -1
- package/dist/esm/mds-toast.entry.js +3 -3
- package/dist/esm/mds-tooltip.entry.js +3 -3
- package/dist/esm/mds-tree-item.entry.js +1 -1
- package/dist/esm/mds-tree.entry.js +1 -1
- package/dist/esm/mds-url-view.entry.js +1 -1
- package/dist/esm/mds-usage.entry.js +1 -1
- package/dist/esm/mds-video-wall.entry.js +3 -3
- package/dist/esm/mds-zero.entry.js +1 -1
- package/dist/esm-es5/{floating-controller-698c4c16.js → floating-controller-a9b05f8d.js} +1 -1
- package/dist/esm-es5/floating-ui.dom.esm-05026c49.js +1 -0
- package/dist/esm-es5/index-7f153b9b.js +1 -1
- 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 +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +1 -1
- package/dist/esm-es5/mds-dropdown.entry.js +1 -1
- package/dist/esm-es5/mds-header.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm-es5/mds-input-date.entry.js +1 -1
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-otp.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-select.entry.js +1 -1
- package/dist/esm-es5/mds-input-switch_2.entry.js +1 -1
- package/dist/esm-es5/mds-input-tip_2.entry.js +1 -1
- package/dist/esm-es5/mds-input-upload.entry.js +1 -1
- package/dist/esm-es5/mds-keyboard-key.entry.js +1 -1
- package/dist/esm-es5/mds-keyboard.entry.js +1 -1
- package/dist/esm-es5/mds-kpi-item.entry.js +1 -1
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +1 -1
- package/dist/esm-es5/mds-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-note.entry.js +1 -1
- package/dist/esm-es5/mds-notification.entry.js +1 -1
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +1 -1
- 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 +1 -1
- package/dist/esm-es5/mds-pref-contrast.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language-item.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme.entry.js +1 -1
- package/dist/esm-es5/mds-pref.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +1 -1
- 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 +1 -1
- 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.entry.js +1 -1
- package/dist/esm-es5/mds-push-notification-item.entry.js +1 -1
- package/dist/esm-es5/mds-push-notification.entry.js +1 -1
- package/dist/esm-es5/mds-quote.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu.entry.js +1 -1
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab_2.entry.js +1 -1
- 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 +1 -1
- package/dist/esm-es5/mds-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/esm-es5/mds-table.entry.js +1 -1
- package/dist/esm-es5/mds-text.entry.js +1 -1
- package/dist/esm-es5/mds-toast.entry.js +1 -1
- package/dist/esm-es5/mds-tooltip.entry.js +1 -1
- package/dist/esm-es5/mds-tree-item.entry.js +1 -1
- package/dist/esm-es5/mds-tree.entry.js +1 -1
- package/dist/esm-es5/mds-url-view.entry.js +1 -1
- package/dist/esm-es5/mds-usage.entry.js +1 -1
- package/dist/esm-es5/mds-video-wall.entry.js +1 -1
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/hydrate/index.js +231 -208
- package/dist/hydrate/index.mjs +231 -208
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-c2677087.system.entry.js → p-001cc260.system.entry.js} +1 -1
- package/dist/magma-components/{p-1ecac480.system.entry.js → p-006e893f.system.entry.js} +1 -1
- package/dist/magma-components/{p-7a740feb.entry.js → p-00aa638c.entry.js} +1 -1
- package/dist/magma-components/{p-0a0bfb70.entry.js → p-00ac9a49.entry.js} +1 -1
- package/dist/magma-components/{p-527fe1c1.entry.js → p-05577b4d.entry.js} +1 -1
- package/dist/magma-components/p-06237b42.entry.js +1 -0
- package/dist/magma-components/{p-1d680517.system.entry.js → p-081aa7ee.system.entry.js} +1 -1
- package/dist/magma-components/{p-6f203ab0.entry.js → p-08406828.entry.js} +1 -1
- package/dist/magma-components/{p-c0101ed6.system.entry.js → p-091813e6.system.entry.js} +1 -1
- package/dist/magma-components/{p-5246ea45.entry.js → p-09393d3b.entry.js} +1 -1
- package/dist/magma-components/{p-deaefdd1.system.entry.js → p-09d10951.system.entry.js} +1 -1
- package/dist/magma-components/{p-9ffb1050.system.entry.js → p-0a223c02.system.entry.js} +1 -1
- package/dist/magma-components/{p-4aa97921.system.entry.js → p-0a274718.system.entry.js} +1 -1
- package/dist/magma-components/{p-e6505fa3.system.entry.js → p-0d8d18e3.system.entry.js} +1 -1
- package/dist/magma-components/{p-43174e79.system.entry.js → p-1078ebfe.system.entry.js} +1 -1
- package/dist/magma-components/{p-d48d507b.system.entry.js → p-10fcea5e.system.entry.js} +1 -1
- package/dist/magma-components/{p-ebb104a1.entry.js → p-127fe680.entry.js} +1 -1
- package/dist/magma-components/{p-0e40732e.entry.js → p-12eb16ec.entry.js} +1 -1
- package/dist/magma-components/{p-2cff47b8.entry.js → p-13ffe71c.entry.js} +1 -1
- package/dist/magma-components/{p-4b7381ef.entry.js → p-144204e1.entry.js} +1 -1
- package/dist/magma-components/{p-35e5acff.system.entry.js → p-1756f4bc.system.entry.js} +1 -1
- package/dist/magma-components/{p-c92787d8.system.entry.js → p-19e5f4c3.system.entry.js} +1 -1
- package/dist/magma-components/{p-6d93c041.system.entry.js → p-1a3b821f.system.entry.js} +1 -1
- package/dist/magma-components/{p-beb1945f.system.entry.js → p-1aa6b055.system.entry.js} +1 -1
- package/dist/magma-components/{p-e79ad06f.entry.js → p-1ed308fc.entry.js} +1 -1
- package/dist/magma-components/{p-f3ca67d8.system.entry.js → p-1f7c5ab7.system.entry.js} +1 -1
- package/dist/magma-components/{p-9b542466.system.entry.js → p-2063dff7.system.entry.js} +1 -1
- package/dist/magma-components/{p-5fa6848c.entry.js → p-22c5a63b.entry.js} +1 -1
- package/dist/magma-components/{p-72b05a33.entry.js → p-23be61b8.entry.js} +1 -1
- package/dist/magma-components/{p-5a69383b.entry.js → p-25c8b684.entry.js} +1 -1
- package/dist/magma-components/p-26cd6ec8.system.js +1 -1
- package/dist/magma-components/{p-42986683.system.entry.js → p-28ddfbd3.system.entry.js} +1 -1
- package/dist/magma-components/{p-00f29074.entry.js → p-28ef20b4.entry.js} +1 -1
- package/dist/magma-components/{p-3c1d0160.system.entry.js → p-2d57f515.system.entry.js} +1 -1
- package/dist/magma-components/{p-df5c06e0.js → p-2dedb8fa.js} +1 -1
- package/dist/magma-components/{p-80fd7065.system.entry.js → p-2e51fde1.system.entry.js} +1 -1
- package/dist/magma-components/{p-85a5afa3.system.entry.js → p-2e8507ab.system.entry.js} +1 -1
- package/dist/magma-components/{p-0b821f3d.system.entry.js → p-31064475.system.entry.js} +1 -1
- package/dist/magma-components/{p-d369fa04.entry.js → p-31e33341.entry.js} +1 -1
- package/dist/magma-components/{p-882a97d8.system.js → p-323ba5fb.system.js} +1 -1
- package/dist/magma-components/{p-11eb10c4.entry.js → p-3290bb60.entry.js} +1 -1
- package/dist/magma-components/{p-d2ed7790.entry.js → p-329929bd.entry.js} +1 -1
- package/dist/magma-components/{p-9f961b1c.system.entry.js → p-337e6444.system.entry.js} +1 -1
- package/dist/magma-components/{p-4391f6e9.system.entry.js → p-35025ff8.system.entry.js} +1 -1
- package/dist/magma-components/p-358ede7f.system.entry.js +1 -0
- package/dist/magma-components/{p-2f5539ca.entry.js → p-370f0fdd.entry.js} +1 -1
- package/dist/magma-components/{p-01b3232b.system.entry.js → p-3d687658.system.entry.js} +1 -1
- package/dist/magma-components/{p-9a9822af.entry.js → p-42b75f26.entry.js} +1 -1
- package/dist/magma-components/{p-500bbf65.system.entry.js → p-42da7445.system.entry.js} +1 -1
- package/dist/magma-components/{p-6e43b31f.system.entry.js → p-44ca0625.system.entry.js} +1 -1
- package/dist/magma-components/p-471e1ac0.entry.js +1 -0
- package/dist/magma-components/{p-9982f020.system.entry.js → p-47376db8.system.entry.js} +1 -1
- package/dist/magma-components/{p-4720618f.system.entry.js → p-495057a5.system.entry.js} +1 -1
- package/dist/magma-components/{p-2186e1dc.system.entry.js → p-4c22fc2e.system.entry.js} +1 -1
- package/dist/magma-components/{p-4243e0da.entry.js → p-4c387bc1.entry.js} +1 -1
- package/dist/magma-components/{p-ea431a4e.entry.js → p-4d67a4ce.entry.js} +1 -1
- package/dist/magma-components/{p-55d9b195.system.entry.js → p-4eab6bb0.system.entry.js} +1 -1
- package/dist/magma-components/{p-bc57a875.entry.js → p-4fe5f7b6.entry.js} +1 -1
- package/dist/magma-components/{p-8581c96f.system.entry.js → p-4fe78b18.system.entry.js} +1 -1
- package/dist/magma-components/{p-eb642a91.system.entry.js → p-5014f1fb.system.entry.js} +1 -1
- package/dist/magma-components/{p-b03baae5.entry.js → p-5406ab26.entry.js} +1 -1
- package/dist/magma-components/{p-2d1dfea5.system.entry.js → p-55bedd2e.system.entry.js} +1 -1
- package/dist/magma-components/p-55f0a8a1.entry.js +1 -0
- package/dist/magma-components/{p-d4afc5d8.entry.js → p-5cf203bd.entry.js} +1 -1
- package/dist/magma-components/{p-13281423.entry.js → p-6081f9f1.entry.js} +1 -1
- package/dist/magma-components/{p-1eb0c1ae.system.entry.js → p-60d58044.system.entry.js} +1 -1
- package/dist/magma-components/{p-96283555.entry.js → p-615e2a35.entry.js} +1 -1
- package/dist/magma-components/{p-821d060d.entry.js → p-6176990a.entry.js} +1 -1
- package/dist/magma-components/{p-7a81a089.system.entry.js → p-639b3f08.system.entry.js} +1 -1
- package/dist/magma-components/{p-62e52542.entry.js → p-6668dff1.entry.js} +1 -1
- package/dist/magma-components/{p-46e32897.system.entry.js → p-6ac166ca.system.entry.js} +1 -1
- package/dist/magma-components/{p-bf675a67.system.entry.js → p-6ad547b8.system.entry.js} +1 -1
- package/dist/magma-components/{p-20792537.system.entry.js → p-6c0bb0ac.system.entry.js} +1 -1
- package/dist/magma-components/p-6d06c94a.system.entry.js +1 -0
- package/dist/magma-components/{p-640b3eb0.entry.js → p-717e04fe.entry.js} +1 -1
- package/dist/magma-components/{p-27307498.entry.js → p-74482672.entry.js} +1 -1
- package/dist/magma-components/p-76988cf0.entry.js +1 -0
- package/dist/magma-components/{p-c1a3d464.entry.js → p-7bd9cd6d.entry.js} +1 -1
- package/dist/magma-components/{p-98a3fdcd.system.entry.js → p-7f71e011.system.entry.js} +1 -1
- package/dist/magma-components/{p-da987dac.entry.js → p-81831452.entry.js} +1 -1
- package/dist/magma-components/{p-3453961a.system.entry.js → p-838d3f0c.system.entry.js} +1 -1
- package/dist/magma-components/{p-2b11f724.entry.js → p-84d8bbe2.entry.js} +1 -1
- package/dist/magma-components/{p-3495f4d9.system.entry.js → p-862d6e7b.system.entry.js} +1 -1
- package/dist/magma-components/{p-a66523f8.system.entry.js → p-86cc801d.system.entry.js} +1 -1
- package/dist/magma-components/{p-62fecb08.system.entry.js → p-881c6b67.system.entry.js} +1 -1
- package/dist/magma-components/{p-f1bd12fc.entry.js → p-889a054d.entry.js} +1 -1
- package/dist/magma-components/{p-13407df1.entry.js → p-89146878.entry.js} +1 -1
- package/dist/magma-components/{p-4c0f35ae.system.entry.js → p-89e16946.system.entry.js} +1 -1
- package/dist/magma-components/{p-e3059ce5.entry.js → p-92c15250.entry.js} +1 -1
- package/dist/magma-components/{p-474698f4.entry.js → p-92f2ae1b.entry.js} +1 -1
- package/dist/magma-components/{p-3421f2a8.system.entry.js → p-99354c73.system.entry.js} +1 -1
- package/dist/magma-components/{p-e521f356.entry.js → p-99788dd0.entry.js} +1 -1
- package/dist/magma-components/{p-feef2597.system.entry.js → p-9999e0fe.system.entry.js} +1 -1
- package/dist/magma-components/{p-36b10db4.entry.js → p-a6daa115.entry.js} +1 -1
- package/dist/magma-components/{p-fb4dc59b.entry.js → p-a7145767.entry.js} +1 -1
- package/dist/magma-components/{p-8823ee2c.system.entry.js → p-ac5f329f.system.entry.js} +1 -1
- package/dist/magma-components/{p-a2e2c6a7.system.entry.js → p-b0ef86f1.system.entry.js} +1 -1
- package/dist/magma-components/{p-6f4923a6.system.entry.js → p-b19dfe4f.system.entry.js} +1 -1
- package/dist/magma-components/{p-7f60d4a7.system.entry.js → p-b1a9ea15.system.entry.js} +1 -1
- package/dist/magma-components/{p-4524c9f4.entry.js → p-b35bd860.entry.js} +1 -1
- package/dist/magma-components/{p-b1f28a4b.entry.js → p-bdccc582.entry.js} +1 -1
- package/dist/magma-components/p-bf91885f.system.entry.js +1 -0
- package/dist/magma-components/{p-b370571f.entry.js → p-c1a03b57.entry.js} +1 -1
- package/dist/magma-components/{p-4071e51c.entry.js → p-c543b673.entry.js} +1 -1
- package/dist/magma-components/{p-b35b4cef.system.entry.js → p-c7bf8b1c.system.entry.js} +1 -1
- package/dist/magma-components/{p-f7af27c6.system.entry.js → p-c7d99ad5.system.entry.js} +1 -1
- package/dist/magma-components/{p-bd604ad3.entry.js → p-c97bce16.entry.js} +1 -1
- package/dist/magma-components/{p-00d4677a.entry.js → p-c9b125c5.entry.js} +1 -1
- package/dist/magma-components/p-ca52a8dd.system.entry.js +1 -0
- package/dist/magma-components/{p-35e21802.entry.js → p-ca88389f.entry.js} +1 -1
- package/dist/magma-components/{p-8cb86efd.entry.js → p-cb10b405.entry.js} +1 -1
- package/dist/magma-components/{p-624da686.entry.js → p-cd1aad9b.entry.js} +1 -1
- package/dist/magma-components/{p-bbad26c3.system.entry.js → p-cd996c6d.system.entry.js} +1 -1
- package/dist/magma-components/{p-780a5f88.system.entry.js → p-cdf3bd7d.system.entry.js} +1 -1
- package/dist/magma-components/{p-20d16a0f.system.entry.js → p-ce5959b4.system.entry.js} +1 -1
- package/dist/magma-components/{p-6568531a.entry.js → p-ce7332b0.entry.js} +1 -1
- package/dist/magma-components/{p-f9450ce4.entry.js → p-cf09a880.entry.js} +1 -1
- package/dist/magma-components/{p-ef4131d9.entry.js → p-cf3b59cb.entry.js} +1 -1
- package/dist/magma-components/{p-7ce597ac.system.entry.js → p-cfe04065.system.entry.js} +1 -1
- package/dist/magma-components/{p-7c48015c.entry.js → p-d1ca25ad.entry.js} +1 -1
- package/dist/magma-components/{p-4d3a2cb3.system.entry.js → p-d1ed3c80.system.entry.js} +1 -1
- package/dist/magma-components/{p-9f921773.entry.js → p-d50398c7.entry.js} +1 -1
- package/dist/magma-components/p-d6b2a3fd.system.js +1 -0
- package/dist/magma-components/{p-0e98680f.entry.js → p-d809143d.entry.js} +1 -1
- package/dist/magma-components/{p-2d875595.system.entry.js → p-dc17f8bb.system.entry.js} +1 -1
- package/dist/magma-components/{p-692985ad.entry.js → p-dd08e161.entry.js} +1 -1
- package/dist/magma-components/{p-fdd10055.entry.js → p-e275baec.entry.js} +1 -1
- package/dist/magma-components/p-e46e6d8c.system.entry.js +1 -0
- package/dist/magma-components/{p-12dbf8cb.system.entry.js → p-e5b99b2f.system.entry.js} +1 -1
- package/dist/magma-components/{p-1ee3741a.system.entry.js → p-e9af7047.system.entry.js} +1 -1
- package/dist/magma-components/{p-6040abb9.js → p-edd2d1ad.js} +1 -1
- package/dist/magma-components/{p-d6c7f107.system.entry.js → p-ee7ccede.system.entry.js} +1 -1
- package/dist/magma-components/{p-e76b3d63.entry.js → p-eef3b47c.entry.js} +1 -1
- package/dist/magma-components/{p-1d2ef203.system.entry.js → p-ef28cf05.system.entry.js} +1 -1
- package/dist/magma-components/{p-9a60a899.entry.js → p-f0d1ec10.entry.js} +1 -1
- package/dist/magma-components/{p-7557aa42.entry.js → p-f11d8f6d.entry.js} +1 -1
- package/dist/magma-components/{p-b986a6c2.entry.js → p-f1227e58.entry.js} +1 -1
- package/dist/magma-components/{p-75ee38e7.entry.js → p-f26c2da4.entry.js} +1 -1
- package/dist/magma-components/{p-63f6704b.system.entry.js → p-f326ae49.system.entry.js} +1 -1
- package/dist/magma-components/{p-258ca966.entry.js → p-fa4bd146.entry.js} +1 -1
- package/dist/magma-components/{p-555596f6.system.entry.js → p-fb829b57.system.entry.js} +1 -1
- package/dist/magma-components/{p-fde47f0b.entry.js → p-fbc8d55b.entry.js} +1 -1
- package/dist/magma-components/{p-a85c5d17.entry.js → p-fe2f494e.entry.js} +1 -1
- package/dist/stats.json +1367 -1067
- package/dist/types/components/mds-accordion/test/mds-accordion.stories.d.ts +21 -4
- package/dist/types/components/mds-accordion-item/test/mds-accordion-item.stories.d.ts +13 -2
- package/dist/types/components/mds-accordion-timer/test/mds-accordion-timer.stories.d.ts +47 -6
- package/dist/types/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.d.ts +42 -3
- package/dist/types/components/mds-author/test/mds-author.stories.d.ts +6 -2
- package/dist/types/components/mds-avatar/test/mds-avatar.stories.d.ts +41 -6
- package/dist/types/components/mds-avatar-stack/test/mds-avatar-stack.stories.d.ts +16 -3
- package/dist/types/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.d.ts +27 -4
- package/dist/types/components/mds-badge/test/mds-badge.stories.d.ts +7 -1
- package/dist/types/components/mds-banner/test/mds-banner.stories.d.ts +66 -10
- package/dist/types/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.d.ts +19 -3
- package/dist/types/components/mds-bibliography/test/mds-bibliography.stories.d.ts +47 -5
- package/dist/types/components/mds-breadcrumb/test/mds-breadcrumb.stories.d.ts +3 -1
- package/dist/types/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.d.ts +9 -2
- package/dist/types/components/mds-button/test/mds-button.stories.d.ts +130 -19
- package/dist/types/components/mds-button-dropdown/test/mds-button-dropdown.stories.d.ts +8 -1
- package/dist/types/components/mds-button-group/test/mds-button-group.stories.d.ts +6 -2
- package/dist/types/components/mds-calendar/test/mds-calendar.stories.d.ts +7 -1
- package/dist/types/components/mds-card/test/mds-card.stories.d.ts +54 -17
- package/dist/types/components/mds-chip/mds-chip.d.ts +4 -0
- package/dist/types/components/mds-chip/meta/interface.d.ts +1 -0
- package/dist/types/components/mds-chip/test/mds-chip.stories.d.ts +47 -6
- package/dist/types/components/mds-details/test/mds-details.stories.d.ts +9 -2
- package/dist/types/components/mds-dropdown/test/mds-dropdown.stories.d.ts +177 -16
- package/dist/types/components/mds-emoji/test/mds-emoji.stories.d.ts +6 -2
- package/dist/types/components/mds-entity/test/mds-entity.stories.d.ts +30 -5
- package/dist/types/components/mds-file/test/mds-file.stories.d.ts +35 -5
- package/dist/types/components/mds-file-preview/test/mds-file-preview.stories.d.ts +92 -11
- package/dist/types/components/mds-filter/test/mds-filter.stories.d.ts +26 -4
- package/dist/types/components/mds-filter-item/test/mds-filter-item.stories.d.ts +13 -2
- package/dist/types/components/mds-header/test/mds-header.stories.d.ts +26 -4
- package/dist/types/components/mds-header-bar/test/mds-header-bar.stories.d.ts +3 -1
- package/dist/types/components/mds-help/test/mds-help.stories.d.ts +9 -2
- package/dist/types/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.d.ts +21 -4
- package/dist/types/components/mds-hr/test/mds-hr.stories.d.ts +9 -2
- package/dist/types/components/mds-icon/test/mds-icon.stories.d.ts +39 -7
- package/dist/types/components/mds-img/test/mds-img-accessibility.stories.d.ts +24 -4
- package/dist/types/components/mds-img/test/mds-img.stories.d.ts +54 -7
- package/dist/types/components/mds-input/test/mds-input.stories.d.ts +175 -23
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +23 -6
- package/dist/types/components/mds-input-date/test/mds-input-date.stories.d.ts +49 -3
- package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +22 -4
- package/dist/types/components/mds-input-field/test/mds-input-field.stories.d.ts +42 -6
- package/dist/types/components/mds-input-otp/test/mds-input-otp.stories.d.ts +18 -3
- package/dist/types/components/mds-input-range/test/mds-input-range.stories.d.ts +39 -8
- package/dist/types/components/mds-input-select/test/mds-input-select.stories.d.ts +33 -6
- package/dist/types/components/mds-input-switch/test/mds-input-switch.stories.d.ts +100 -11
- package/dist/types/components/mds-input-tip/test/mds-input-tip.stories.d.ts +3 -1
- package/dist/types/components/mds-input-tip-item/test/mds-input-tip.stories.d.ts +3 -1
- package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +4 -0
- package/dist/types/components/mds-input-upload/test/mds-input-upload.stories.d.ts +21 -3
- package/dist/types/components/mds-keyboard/test/mds-keyboard.stories.d.ts +15 -4
- package/dist/types/components/mds-keyboard-key/test/mds-keyboard-key.stories.d.ts +6 -1
- package/dist/types/components/mds-kpi/test/mds-kpi.stories.d.ts +6 -2
- package/dist/types/components/mds-kpi-item/test/mds-kpi-item.stories.d.ts +8 -1
- package/dist/types/components/mds-label/test/mds-label.stories.d.ts +28 -6
- package/dist/types/components/mds-list/test/mds-list.stories.d.ts +3 -1
- package/dist/types/components/mds-list-item/test/mds-list-item.stories.d.ts +3 -1
- package/dist/types/components/mds-mention/test/mds-mention.stories.d.ts +6 -1
- package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +49 -8
- package/dist/types/components/mds-note/test/mds-note.stories.d.ts +12 -3
- package/dist/types/components/mds-notification/test/mds-notification.stories.d.ts +40 -6
- package/dist/types/components/mds-paginator/test/mds-paginator.stories.d.ts +20 -2
- package/dist/types/components/mds-policy-ai/test/mds-policy.stories.d.ts +55 -9
- package/dist/types/components/mds-pref/test/mds-pref.stories.d.ts +7 -2
- package/dist/types/components/mds-pref-animation/test/mds-pref-animation.stories.d.ts +4 -1
- package/dist/types/components/mds-pref-consumption/test/mds-pref-consumption.stories.d.ts +4 -1
- package/dist/types/components/mds-pref-contrast/test/mds-pref-contrast.stories.d.ts +4 -1
- package/dist/types/components/mds-pref-language/test/mds-pref-language.stories.d.ts +4 -1
- package/dist/types/components/mds-pref-theme/test/mds-pref-theme.stories.d.ts +4 -1
- package/dist/types/components/mds-price-table/test/mds-price-table.stories.d.ts +6 -1
- package/dist/types/components/mds-price-table-features/test/mds-price-table-features.stories.d.ts +6 -1
- package/dist/types/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.d.ts +6 -1
- package/dist/types/components/mds-price-table-header/test/mds-price-table-header.stories.d.ts +3 -1
- package/dist/types/components/mds-price-table-list/test/mds-price-table-list.stories.d.ts +6 -2
- package/dist/types/components/mds-progress/test/mds-progress.stories.d.ts +6 -1
- package/dist/types/components/mds-push-notification/test/mds-push-notification.stories.d.ts +15 -3
- package/dist/types/components/mds-push-notification-item/test/mds-push-notification-item.stories.d.ts +118 -11
- package/dist/types/components/mds-quote/test/mds-quote.stories.d.ts +14 -2
- package/dist/types/components/mds-radial-menu/test/mds-radial-menu.stories.d.ts +26 -4
- package/dist/types/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.d.ts +6 -1
- package/dist/types/components/mds-separator/test/mds-separator.stories.d.ts +3 -1
- package/dist/types/components/mds-spinner/test/mds-spinner.stories.d.ts +23 -2
- package/dist/types/components/mds-status-bar/test/mds-status-bar.stories.d.ts +6 -1
- package/dist/types/components/mds-stepper-bar/test/mds-stepper-bar.stories.d.ts +9 -2
- package/dist/types/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.d.ts +48 -6
- package/dist/types/components/mds-tab/test/mds-tab.stories.d.ts +54 -12
- package/dist/types/components/mds-tab-bar/test/mds-tab-bar.stories.d.ts +3 -1
- package/dist/types/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.d.ts +3 -1
- package/dist/types/components/mds-tab-item/test/mds-tab-item.stories.d.ts +15 -3
- package/dist/types/components/mds-table/test/mds-table.stories.d.ts +38 -7
- package/dist/types/components/mds-text/test/mds-text.stories.d.ts +131 -22
- package/dist/types/components/mds-toast/test/mds-toast.stories.d.ts +6 -2
- package/dist/types/components/mds-tooltip/test/mds-tooltip.stories.d.ts +110 -11
- package/dist/types/components/mds-tree/test/mds-tree-apk.stories.d.ts +12 -4
- package/dist/types/components/mds-tree/test/mds-tree.stories.d.ts +27 -3
- package/dist/types/components/mds-tree-item/test/mds-tree-item.stories.d.ts +10 -2
- package/dist/types/components/mds-url-view/test/mds-url-view.stories.d.ts +20 -3
- package/dist/types/components/mds-usage/test/mds-usage.stories.d.ts +15 -3
- package/dist/types/components/mds-video-wall/test/mds-video-wall.stories.d.ts +112 -8
- package/dist/types/components/mds-zero/test/mds-zero.stories.d.ts +3 -1
- package/dist/types/components.d.ts +41 -0
- package/dist/types/storybook/components-version.stories.d.ts +3 -1
- package/dist/types/storybook/example-page.stories.d.ts +3 -1
- package/dist/types/storybook/fouc-hydrated.stories.d.ts +3 -1
- package/dist/types/storybook/input-form.stories.d.ts +3 -1
- package/dist/types/storybook/same-childrend-slot-names.stories.d.ts +3 -1
- package/package.json +10 -12
- package/dist/esm-es5/floating-ui.dom.esm-e0f44fc0.js +0 -1
- package/dist/magma-components/p-3831d174.system.entry.js +0 -1
- package/dist/magma-components/p-5572a1d2.system.js +0 -1
- package/dist/magma-components/p-5935557f.entry.js +0 -1
- package/dist/magma-components/p-70a2b929.system.entry.js +0 -1
- package/dist/magma-components/p-7fb2cd70.entry.js +0 -1
- package/dist/magma-components/p-86d703f7.entry.js +0 -1
- package/dist/magma-components/p-961c011d.system.entry.js +0 -1
- package/dist/magma-components/p-ac059e66.system.entry.js +0 -1
- package/dist/magma-components/p-b326b3d7.entry.js +0 -1
- package/dist/magma-components/p-e1351334.system.entry.js +0 -1
|
@@ -102,10 +102,15 @@ export class MdsChip {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
onClickLabelHandler(event) {
|
|
105
|
-
this.clickLabelEvent.emit({ event, element: this.host });
|
|
106
105
|
if (this.selectable) {
|
|
107
106
|
this.selected = !this.selected;
|
|
107
|
+
if (this.selected === false) {
|
|
108
|
+
this.selected = undefined;
|
|
109
|
+
}
|
|
110
|
+
this.selectEvent.emit({ event, element: this.host, selected: this.selected });
|
|
111
|
+
return;
|
|
108
112
|
}
|
|
113
|
+
this.clickLabelEvent.emit({ event, element: this.host });
|
|
109
114
|
}
|
|
110
115
|
onDeleteHandler(event) {
|
|
111
116
|
this.deleteEvent.emit({ event, element: this.host });
|
|
@@ -128,10 +133,10 @@ export class MdsChip {
|
|
|
128
133
|
this.km.detachClickBehavior('delete');
|
|
129
134
|
}
|
|
130
135
|
render() {
|
|
131
|
-
return (h(Host, { key: '
|
|
132
|
-
h("div", { key: '
|
|
136
|
+
return (h(Host, { key: '17468677d828388fa41e38f7b74be27e1e35553a', "aria-disabled": this.disabled ? 'true' : 'false' }, this.icon &&
|
|
137
|
+
h("div", { key: 'b86852c1e15e990fadc462cb371467bb70d42907', "aria-hidden": "true", class: "icon-area" }, h("mds-icon", { key: '8281aebce5646136442ca70d2c7d12a1746b1edc', class: "icon", name: this.icon })), this.clickable
|
|
133
138
|
? h("mds-text", { class: "label label--interactive", tabindex: "0", typography: "caption", truncate: "word" }, this.label)
|
|
134
|
-
: h("mds-text", { class: "label", typography: "caption", truncate: "word" }, this.label), this.deletable && h("mds-button", { key: '
|
|
139
|
+
: h("mds-text", { class: "label", typography: "caption", truncate: "word" }, this.label), this.deletable && h("mds-button", { key: 'af570ba680b51ae21a3a517e22cda03ef06f0203', class: "button-delete", icon: miBaselineCancel, onClick: this.onDeleteHandler.bind(this), title: `${this.t.get('deleteLabel')} ${this.label}`, variant: "dark", tone: "quiet", size: "sm" })));
|
|
135
140
|
}
|
|
136
141
|
static get is() { return "mds-chip"; }
|
|
137
142
|
static get encapsulation() { return "shadow"; }
|
|
@@ -384,6 +389,27 @@ export class MdsChip {
|
|
|
384
389
|
}
|
|
385
390
|
}
|
|
386
391
|
}
|
|
392
|
+
}, {
|
|
393
|
+
"method": "selectEvent",
|
|
394
|
+
"name": "mdsChipSelect",
|
|
395
|
+
"bubbles": true,
|
|
396
|
+
"cancelable": true,
|
|
397
|
+
"composed": true,
|
|
398
|
+
"docs": {
|
|
399
|
+
"tags": [],
|
|
400
|
+
"text": "Emits when the component's label is clicked and when `selectable` attribute is set to `true`"
|
|
401
|
+
},
|
|
402
|
+
"complexType": {
|
|
403
|
+
"original": "MdsChipEvent",
|
|
404
|
+
"resolved": "MdsChipEvent",
|
|
405
|
+
"references": {
|
|
406
|
+
"MdsChipEvent": {
|
|
407
|
+
"location": "import",
|
|
408
|
+
"path": "./meta/interface",
|
|
409
|
+
"id": "src/components/mds-chip/meta/interface.ts::MdsChipEvent"
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
387
413
|
}];
|
|
388
414
|
}
|
|
389
415
|
static get methods() {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { iconsDictionary } from "../../../dictionary/icon";
|
|
3
|
-
import { themeVariantChipDictionary, toneMinimalVariantDictionary } from "../../../dictionary/variant";
|
|
3
|
+
import { themeVariantChipDictionary, toneMinimalVariantDictionary, } from "../../../dictionary/variant";
|
|
4
|
+
import { useEffect } from "react";
|
|
4
5
|
export default {
|
|
5
6
|
title: 'UI / Chip',
|
|
6
7
|
argTypes: {
|
|
@@ -48,39 +49,67 @@ export default {
|
|
|
48
49
|
},
|
|
49
50
|
},
|
|
50
51
|
};
|
|
51
|
-
const Template = args =>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
const Template = args => {
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
const chipEl = document.querySelector('mds-chip');
|
|
55
|
+
chipEl.addEventListener('mdsChipClickLabel', (e) => {
|
|
56
|
+
console.info('mdsChipClickLabel', e.detail);
|
|
57
|
+
});
|
|
58
|
+
chipEl.addEventListener('mdsChipDelete', (e) => {
|
|
59
|
+
console.info('mdsChipDelete', e.detail);
|
|
60
|
+
});
|
|
61
|
+
chipEl.addEventListener('mdsChipSelect', (e) => {
|
|
62
|
+
console.info('mdsChipSelect', e.detail);
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
return (h("mds-chip", Object.assign({}, args, { onDelete: () => {
|
|
66
|
+
console.info('onDelete');
|
|
67
|
+
} })));
|
|
56
68
|
};
|
|
57
|
-
export const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
69
|
+
export const Default = {
|
|
70
|
+
render: Template,
|
|
71
|
+
args: {
|
|
72
|
+
label: 'Bovaro del Bernese',
|
|
73
|
+
icon: 'mi/baseline/pets',
|
|
74
|
+
},
|
|
62
75
|
};
|
|
63
|
-
export const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
76
|
+
export const Selected = {
|
|
77
|
+
render: Template,
|
|
78
|
+
args: {
|
|
79
|
+
label: 'Bovaro del Bernese',
|
|
80
|
+
icon: 'mi/baseline/pets',
|
|
81
|
+
selected: true,
|
|
82
|
+
},
|
|
67
83
|
};
|
|
68
|
-
export const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
84
|
+
export const Icon = {
|
|
85
|
+
render: Template,
|
|
86
|
+
args: {
|
|
87
|
+
label: 'Bovaro del Bernese',
|
|
88
|
+
icon: 'mi/baseline/eco',
|
|
89
|
+
},
|
|
72
90
|
};
|
|
73
|
-
export const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
91
|
+
export const Deletable = {
|
|
92
|
+
render: Template,
|
|
93
|
+
args: {
|
|
94
|
+
deletable: true,
|
|
95
|
+
label: 'Bovaro del Bernese',
|
|
96
|
+
},
|
|
79
97
|
};
|
|
80
|
-
export const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
98
|
+
export const Clickable = {
|
|
99
|
+
render: Template,
|
|
100
|
+
args: {
|
|
101
|
+
clickable: true,
|
|
102
|
+
selectable: true,
|
|
103
|
+
icon: 'mi/baseline/eco',
|
|
104
|
+
label: 'Hover me to interact',
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
export const FullyInteractive = {
|
|
108
|
+
render: Template,
|
|
109
|
+
args: {
|
|
110
|
+
clickable: true,
|
|
111
|
+
deletable: true,
|
|
112
|
+
icon: 'mi/baseline/downhill-skiing',
|
|
113
|
+
label: 'Downhill skiing',
|
|
114
|
+
},
|
|
86
115
|
};
|
|
@@ -8,9 +8,13 @@ export default {
|
|
|
8
8
|
},
|
|
9
9
|
},
|
|
10
10
|
};
|
|
11
|
-
const Template = args => h("mds-details", Object.assign({}, args), h("mds-icon", { slot: "icon", name: "mi/baseline/check-circle" }), h("mds-text", { typography: "h6", slot: "title" }, "Vision"), h("mds-text", { typography: "detail" }, "Perch\u00E9 esisti, quali sono i tuoi valori e come questi aiuteranno a guidare il futuro del tuo prodotto."), h("mds-button", { slot: "action", size: "sm" }, "Vai al contenuto"));
|
|
12
|
-
export const Default =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
const Template = args => (h("mds-details", Object.assign({}, args), h("mds-icon", { slot: "icon", name: "mi/baseline/check-circle" }), h("mds-text", { typography: "h6", slot: "title" }, "Vision"), h("mds-text", { typography: "detail" }, "Perch\u00E9 esisti, quali sono i tuoi valori e come questi aiuteranno a guidare il futuro del tuo prodotto."), h("mds-button", { slot: "action", size: "sm" }, "Vai al contenuto")));
|
|
12
|
+
export const Default = {
|
|
13
|
+
render: Template,
|
|
14
|
+
};
|
|
15
|
+
export const Opened = {
|
|
16
|
+
render: Template,
|
|
17
|
+
args: {
|
|
18
|
+
opened: true,
|
|
19
|
+
},
|
|
16
20
|
};
|
|
@@ -13,7 +13,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
import { floatingUIPlacementDictionary, floatingUIStrategyDictionary, } from "../../../dictionary/floating-ui";
|
|
14
14
|
import { dropdownInteractionDictionary } from "../meta/dictionary";
|
|
15
15
|
import { h } from "@stencil/core";
|
|
16
|
-
import { useState } from "react";
|
|
16
|
+
import { useState, useEffect } from "react";
|
|
17
17
|
export default {
|
|
18
18
|
title: 'UI / Dropdown',
|
|
19
19
|
argTypes: {
|
|
@@ -79,138 +79,178 @@ export default {
|
|
|
79
79
|
};
|
|
80
80
|
const Template = (_a) => {
|
|
81
81
|
var { layout } = _a, args = __rest(_a, ["layout"]);
|
|
82
|
-
return h("div", { class: layout }, h("mds-button", { id: "my-dropdown" }, "Show Fred"), h("mds-dropdown", Object.assign({ target: "#my-dropdown" }, args), h("mds-author", { class: "text-tone-neutral-04" }, h("mds-avatar", { "aria-describedby": "A protrait of Frederick Phillips Brooks Jr.", initials: "fb", src: "./fred-brooks-zoom.webp", slot: "avatar", class: "w-2000 bg-brand-maggioli-06" }), h("mds-text", { typography: "h6", class: "text-tone-neutral-02" }, "Fred Brooks"), h("mds-text", { typography: "caption" }, "Software engineer"), h("mds-text", { typography: "caption" }, "IT")), h("mds-text", { typography: "detail", class: "text-tone-neutral-04" }, "Frederick Phillips \"Fred\" Brooks Jr. (born April 19, 1931) is an American computer architect, software engineer, and computer scientist."), h("mds-hr", { class: "h-[2px] bg-tone-neutral-08" }), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/info", variant: "dark", tone: "quiet" }, "User infos"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/settings", variant: "dark", tone: "quiet" }, "Account"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/logout", variant: "dark", tone: "quiet" }, "Exit")));
|
|
82
|
+
return (h("div", { class: layout }, h("mds-button", { id: "my-dropdown" }, "Show Fred"), h("mds-dropdown", Object.assign({ target: "#my-dropdown" }, args), h("mds-author", { class: "text-tone-neutral-04" }, h("mds-avatar", { "aria-describedby": "A protrait of Frederick Phillips Brooks Jr.", initials: "fb", src: "./fred-brooks-zoom.webp", slot: "avatar", class: "w-2000 bg-brand-maggioli-06" }), h("mds-text", { typography: "h6", class: "text-tone-neutral-02" }, "Fred Brooks"), h("mds-text", { typography: "caption" }, "Software engineer"), h("mds-text", { typography: "caption" }, "IT")), h("mds-text", { typography: "detail", class: "text-tone-neutral-04" }, "Frederick Phillips \"Fred\" Brooks Jr. (born April 19, 1931) is an American computer architect, software engineer, and computer scientist."), h("mds-hr", { class: "h-[2px] bg-tone-neutral-08" }), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/info", variant: "dark", tone: "quiet" }, "User infos"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/settings", variant: "dark", tone: "quiet" }, "Account"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/logout", variant: "dark", tone: "quiet" }, "Exit"))));
|
|
83
83
|
};
|
|
84
84
|
const TemplatePlacement = (_a) => {
|
|
85
85
|
var args = __rest(_a, []);
|
|
86
|
-
return h("div", { class: "min-h-dvh flex items-center justify-center" }, h("mds-button", { id: "my-dropdown" }, "Show Fred"), h("mds-dropdown", Object.assign({ target: "#my-dropdown" }, args), h("mds-author", { class: "text-tone-neutral-04" }, h("mds-avatar", { "aria-describedby": "A protrait of Frederick Phillips Brooks Jr.", initials: "fb", src: "./fred-brooks-zoom.webp", slot: "avatar", class: "w-2000 bg-brand-maggioli-06" }), h("mds-text", { typography: "h6", class: "text-tone-neutral-02" }, "Fred Brooks"), h("mds-text", { typography: "caption" }, "Software engineer"), h("mds-text", { typography: "caption" }, "IT")), h("mds-text", { typography: "detail", class: "text-tone-neutral-04" }, "Frederick Phillips \"Fred\" Brooks Jr. (born April 19, 1931) is an American computer architect, software engineer, and computer scientist."), h("mds-hr", { class: "h-[2px] bg-tone-neutral-08" }), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/info", variant: "dark", tone: "quiet" }, "User infos"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/settings", variant: "dark", tone: "quiet" }, "Account"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/logout", variant: "dark", tone: "quiet" }, "Exit")));
|
|
86
|
+
return (h("div", { class: "min-h-dvh flex items-center justify-center" }, h("mds-button", { id: "my-dropdown" }, "Show Fred"), h("mds-dropdown", Object.assign({ target: "#my-dropdown" }, args), h("mds-author", { class: "text-tone-neutral-04" }, h("mds-avatar", { "aria-describedby": "A protrait of Frederick Phillips Brooks Jr.", initials: "fb", src: "./fred-brooks-zoom.webp", slot: "avatar", class: "w-2000 bg-brand-maggioli-06" }), h("mds-text", { typography: "h6", class: "text-tone-neutral-02" }, "Fred Brooks"), h("mds-text", { typography: "caption" }, "Software engineer"), h("mds-text", { typography: "caption" }, "IT")), h("mds-text", { typography: "detail", class: "text-tone-neutral-04" }, "Frederick Phillips \"Fred\" Brooks Jr. (born April 19, 1931) is an American computer architect, software engineer, and computer scientist."), h("mds-hr", { class: "h-[2px] bg-tone-neutral-08" }), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/info", variant: "dark", tone: "quiet" }, "User infos"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/settings", variant: "dark", tone: "quiet" }, "Account"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/logout", variant: "dark", tone: "quiet" }, "Exit"))));
|
|
87
87
|
};
|
|
88
|
-
export const NoTarget = () => h("div", null, h("mds-button", { id: "dropdown-trigger" }, "Trigger"), h("mds-dropdown", { target:
|
|
88
|
+
export const NoTarget = () => (h("div", null, h("mds-button", { id: "dropdown-trigger" }, "Trigger"), h("mds-dropdown", { target: "" }, h("mds-text", null, "Ciao"))));
|
|
89
89
|
const TemplateNested = (_a) => {
|
|
90
90
|
var args = __rest(_a, []);
|
|
91
|
-
return h("div", { class: "min-h-[200vh]" }, h("mds-header", null, h("mds-header-bar", null, h("div", { class: "flex gap-2 items-center" }, h("mds-img", { class: "w-1000", src: "./logo-gruppo-maggioli.svg" }), h("div", { class: "mb-1" }, h("mds-text", { typography: "h6" }, "Gruppo Maggioli"), h("mds-text", { class: "text-tone-neutral-04", typography: "option" }, "Header by RD Team"))), h("mds-button", { slot: "nav", id: "my-dropdown" }, "Show Fred"))), h("mds-dropdown", Object.assign({ target: "#my-dropdown", class: "max-w-[350px]" }, args), h("mds-author", { class: "text-tone-neutral-04" }, h("mds-avatar", { "aria-describedby": "A protrait of Frederick Phillips Brooks Jr.", initials: "fb", src: "./fred-brooks-zoom.webp", slot: "avatar", class: "w-20 bg-brand-maggioli-06" }), h("mds-text", { typography: "h6", class: "text-tone-neutral-02" }, "Fred Brooks"), h("mds-text", { typography: "caption" }, "Software engineer"), h("mds-text", { typography: "caption" }, "IT")), h("mds-text", { typography: "detail", class: "text-tone-neutral-04" }, "Frederick Phillips \"Fred\" Brooks Jr. (born April 19, 1931) is an American computer architect, software engineer, and computer scientist."), h("mds-hr", { class: "h-[2px] bg-tone-neutral-08" }), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/info", variant: "dark", tone: "quiet" }, "User infos"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/settings", variant: "dark", tone: "quiet" }, "Account"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/logout", variant: "dark", tone: "quiet" }, "Exit")));
|
|
91
|
+
return (h("div", { class: "min-h-[200vh]" }, h("mds-header", null, h("mds-header-bar", null, h("div", { class: "flex gap-2 items-center" }, h("mds-img", { class: "w-1000", src: "./logo-gruppo-maggioli.svg" }), h("div", { class: "mb-1" }, h("mds-text", { typography: "h6" }, "Gruppo Maggioli"), h("mds-text", { class: "text-tone-neutral-04", typography: "option" }, "Header by RD Team"))), h("mds-button", { slot: "nav", id: "my-dropdown" }, "Show Fred"))), h("mds-dropdown", Object.assign({ target: "#my-dropdown", class: "max-w-[350px]" }, args), h("mds-author", { class: "text-tone-neutral-04" }, h("mds-avatar", { "aria-describedby": "A protrait of Frederick Phillips Brooks Jr.", initials: "fb", src: "./fred-brooks-zoom.webp", slot: "avatar", class: "w-20 bg-brand-maggioli-06" }), h("mds-text", { typography: "h6", class: "text-tone-neutral-02" }, "Fred Brooks"), h("mds-text", { typography: "caption" }, "Software engineer"), h("mds-text", { typography: "caption" }, "IT")), h("mds-text", { typography: "detail", class: "text-tone-neutral-04" }, "Frederick Phillips \"Fred\" Brooks Jr. (born April 19, 1931) is an American computer architect, software engineer, and computer scientist."), h("mds-hr", { class: "h-[2px] bg-tone-neutral-08" }), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/info", variant: "dark", tone: "quiet" }, "User infos"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/settings", variant: "dark", tone: "quiet" }, "Account"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/logout", variant: "dark", tone: "quiet" }, "Exit"))));
|
|
92
92
|
};
|
|
93
93
|
const TemplatePerformance = (_a) => {
|
|
94
94
|
var args = __rest(_a, []);
|
|
95
|
-
return h("div", { class: "grid" }, Array(400)
|
|
95
|
+
return (h("div", { class: "grid" }, Array(400)
|
|
96
|
+
.fill(null)
|
|
97
|
+
.map((_value, index) => (h("div", { key: index, class: "h-[100px] flex items-start justify-center text-center border-0 border-t border-solid border-t-tone-neutral-07" }, h("p", { id: 'button-' + index, class: "px-200 py-100 rounded-b-lg bg-tone-neutral-10 border-t-0 border border-solid border-tone-neutral-07" }, "Pseudo-button ", index), h("mds-dropdown", Object.assign({ target: '#button-' + index }, args), h("p", null, " Testo del dropdown per il bottone ", index)))))));
|
|
96
98
|
};
|
|
97
99
|
const TemplateModalNested = () => {
|
|
98
|
-
const [isModalOpened, setModalOpen] = useState(
|
|
99
|
-
|
|
100
|
+
const [isModalOpened, setModalOpen] = useState(true);
|
|
101
|
+
useEffect(() => {
|
|
102
|
+
var _a;
|
|
103
|
+
(_a = document.querySelector('mds-modal')) === null || _a === void 0 ? void 0 : _a.addEventListener('mdsModalClose', () => {
|
|
104
|
+
setModalOpen(false);
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
return (h("div", { class: "grid" }, h("div", null, h("mds-button", { id: "open-modal", onClick: () => setModalOpen(true) }, "Open modal")), h("mds-modal", { position: "right", opened: isModalOpened }, h("header", { slot: "top", class: "p-800 flex gap-400 items-center border-b border-solid border-0 border-tone-neutral-09 max-w-[400px]" }, h("mds-img", { class: "w-1600", src: "./logo-gruppo-maggioli-512w.webp" }), h("div", { class: "text-tone-neutral-02" }, h("mds-text", { typography: "h5", class: "truncate min-w-0" }, "Maggioli Editore"), h("mds-text", { typography: "detail", class: "truncate min-w-0" }, "Menu di servizio"))), h("div", { class: "p-800 max-w-[400px] flex flex-col gap-400" }, h("mds-button", { variant: "primary", id: "open-dropdown" }, "Show dropdown"), h("mds-dropdown", { target: "#open-dropdown", backdrop: false, strategy: "fixed" }, h("mds-button", { variant: "light", class: "justify-start" }, "Dropdown action"), h("mds-button", { variant: "light", class: "justify-start" }, "Dropdown action"), h("mds-button", { variant: "light", class: "justify-start" }, "Dropdown action")), h("mds-button", { variant: "light", class: "justify-start" }, "Other action"), h("mds-button", { variant: "light", class: "justify-start" }, "Other action"), h("mds-button", { variant: "light", class: "justify-start" }, "Other action")))));
|
|
100
108
|
};
|
|
101
109
|
const TemplateStrategy = (_a) => {
|
|
102
110
|
var args = __rest(_a, []);
|
|
103
|
-
return h("div", { class: "min-h-[200vh]" }, h("mds-header", null, h("mds-header-bar", null, h("div", { class: "flex gap-2 items-center" }, h("mds-img", { class: "w-1000", src: "./logo-gruppo-maggioli.svg" }), h("div", { class: "mb-1" }, h("mds-text", { typography: "h6" }, "Gruppo Maggioli"), h("mds-text", { class: "text-tone-neutral-04", typography: "option" }, "Header by RD Team"))), h("mds-button", { slot: "nav", id: "my-dropdown" }, "Strategy fixed"), h("mds-dropdown", Object.assign({ target: "#my-dropdown", class: "max-w-[350px]" }, args, { strategy:
|
|
111
|
+
return (h("div", { class: "min-h-[200vh]" }, h("mds-header", null, h("mds-header-bar", null, h("div", { class: "flex gap-2 items-center" }, h("mds-img", { class: "w-1000", src: "./logo-gruppo-maggioli.svg" }), h("div", { class: "mb-1" }, h("mds-text", { typography: "h6" }, "Gruppo Maggioli"), h("mds-text", { class: "text-tone-neutral-04", typography: "option" }, "Header by RD Team"))), h("mds-button", { slot: "nav", id: "my-dropdown" }, "Strategy fixed"), h("mds-dropdown", Object.assign({ target: "#my-dropdown", class: "max-w-[350px]" }, args, { strategy: "fixed" }), h("mds-author", { class: "text-tone-neutral-04" }, h("mds-avatar", { "aria-describedby": "A protrait of Frederick Phillips Brooks Jr.", initials: "fb", src: "./fred-brooks-zoom.webp", slot: "avatar", class: "w-20 bg-brand-maggioli-06" }), h("mds-text", { typography: "h6", class: "text-tone-neutral-02" }, "Fred Brooks"), h("mds-text", { typography: "caption" }, "Software engineer"), h("mds-text", { typography: "caption" }, "IT")), h("mds-text", { typography: "detail", class: "text-tone-neutral-04" }, "Frederick Phillips \"Fred\" Brooks Jr. (born April 19, 1931) is an American computer architect, software engineer, and computer scientist."), h("mds-hr", { class: "h-[2px] bg-tone-neutral-08" }), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/info", variant: "dark", tone: "quiet" }, "User infos"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/settings", variant: "dark", tone: "quiet" }, "Account"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/logout", variant: "dark", tone: "quiet" }, "Exit")))), h("div", { class: "flex justify-end flex-col min-h-3200" }, h("mds-button", { id: "dropdown-absolute" }, "Strategy absolute"), h("mds-dropdown", Object.assign({ target: "#dropdown-absolute", class: "max-w-[350px]" }, args, { strategy: "absolute", "z-index": 10, shift: true, shiftPadding: 50 }), h("mds-author", { class: "text-tone-neutral-04" }, h("mds-avatar", { "aria-describedby": "A protrait of Frederick Phillips Brooks Jr.", initials: "fb", src: "./fred-brooks-zoom.webp", slot: "avatar", class: "w-20 bg-brand-maggioli-06" }), h("mds-text", { typography: "h6", class: "text-tone-neutral-02" }, "Fred Brooks"), h("mds-text", { typography: "caption" }, "Software engineer"), h("mds-text", { typography: "caption" }, "IT")), h("mds-text", { typography: "detail", class: "text-tone-neutral-04" }, "Frederick Phillips \"Fred\" Brooks Jr. (born April 19, 1931) is an American computer architect, software engineer, and computer scientist."), h("mds-hr", { class: "h-[2px] bg-tone-neutral-08" }), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/info", variant: "dark", tone: "quiet" }, "User infos"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/settings", variant: "dark", tone: "quiet" }, "Account"), h("mds-button", { class: "justify-start px-0", icon: "mi/baseline/logout", variant: "dark", tone: "quiet" }, "Exit")))));
|
|
104
112
|
};
|
|
105
113
|
const TemplateTarget = args => {
|
|
106
|
-
return h("div", { class: "grid gap-400 p-600 rounded-xl bg-tone-neutral-09" }, h("mds-entity", { icon:
|
|
114
|
+
return (h("div", { class: "grid gap-400 p-600 rounded-xl bg-tone-neutral-09" }, h("mds-entity", { icon: "mi/baseline/info", id: "opendropdown" }, h("mds-text", null, "click to open dropdown"), h("mds-button", { slot: "action", icon: "mi/baseline/warning", variant: "warning", tone: "weak", onClick: () => console.info('') })), h("mds-dropdown", Object.assign({ target: "#opendropdown" }, args), "Dropdown"), h("mds-text", { typography: "paragraph" }, "Do not use other click actions inside a element designed as dropdown target because its never been executed")));
|
|
107
115
|
};
|
|
108
|
-
export const Default =
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
116
|
+
export const Default = {
|
|
117
|
+
render: Template,
|
|
118
|
+
args: {
|
|
119
|
+
class: 'max-w-[350px] w-full',
|
|
120
|
+
layout: 'flex justify-center',
|
|
121
|
+
},
|
|
112
122
|
};
|
|
113
|
-
export const Arrow =
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
ArrowPadding.args = {
|
|
124
|
-
class: 'max-w-[350px] w-full',
|
|
125
|
-
arrow: true,
|
|
126
|
-
backdrop: true,
|
|
127
|
-
'arrow-padding': 50,
|
|
128
|
-
'shift-padding': 32,
|
|
129
|
-
layout: 'flex justify-start',
|
|
130
|
-
visible: false,
|
|
131
|
-
};
|
|
132
|
-
export const AutoPlacement = Template.bind({});
|
|
133
|
-
AutoPlacement.args = {
|
|
134
|
-
class: 'max-w-[350px] w-full',
|
|
135
|
-
'auto-placement': true,
|
|
136
|
-
layout: 'flex justify-end',
|
|
137
|
-
visible: false,
|
|
138
|
-
};
|
|
139
|
-
export const Backdrop = Template.bind({});
|
|
140
|
-
Backdrop.args = {
|
|
141
|
-
class: 'max-w-[350px] w-full',
|
|
142
|
-
backdrop: true,
|
|
143
|
-
layout: 'flex justify-center',
|
|
144
|
-
visible: false,
|
|
145
|
-
};
|
|
146
|
-
export const Flip = Template.bind({});
|
|
147
|
-
Flip.args = {
|
|
148
|
-
class: 'max-w-[350px] w-full',
|
|
149
|
-
layout: 'flex h-[150vh] justify-center items-center',
|
|
150
|
-
flip: true,
|
|
151
|
-
visible: false,
|
|
152
|
-
};
|
|
153
|
-
export const Interaction = Template.bind({});
|
|
154
|
-
Interaction.args = {
|
|
155
|
-
class: 'max-w-[350px] w-full',
|
|
156
|
-
backdrop: true,
|
|
157
|
-
interaction: 'mouseover',
|
|
158
|
-
layout: 'flex justify-center',
|
|
159
|
-
visible: false,
|
|
160
|
-
};
|
|
161
|
-
export const Offset = Template.bind({});
|
|
162
|
-
Offset.args = {
|
|
163
|
-
class: 'max-w-[350px] w-full',
|
|
164
|
-
layout: 'flex justify-center items-center',
|
|
165
|
-
offset: 50,
|
|
166
|
-
backdrop: true,
|
|
167
|
-
visible: false,
|
|
123
|
+
export const Arrow = {
|
|
124
|
+
render: Template,
|
|
125
|
+
args: {
|
|
126
|
+
class: 'max-w-[350px] w-full',
|
|
127
|
+
arrow: true,
|
|
128
|
+
backdrop: true,
|
|
129
|
+
'shift-padding': 32,
|
|
130
|
+
layout: 'flex justify-start',
|
|
131
|
+
visible: false,
|
|
132
|
+
},
|
|
168
133
|
};
|
|
169
|
-
export const
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
};
|
|
199
|
-
export const
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
134
|
+
export const ArrowPadding = {
|
|
135
|
+
render: Template,
|
|
136
|
+
args: {
|
|
137
|
+
class: 'max-w-[350px] w-full',
|
|
138
|
+
arrow: true,
|
|
139
|
+
backdrop: true,
|
|
140
|
+
'arrow-padding': 50,
|
|
141
|
+
'shift-padding': 32,
|
|
142
|
+
layout: 'flex justify-start',
|
|
143
|
+
visible: false,
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
export const AutoPlacement = {
|
|
147
|
+
render: Template,
|
|
148
|
+
args: {
|
|
149
|
+
class: 'max-w-[350px] w-full',
|
|
150
|
+
'auto-placement': true,
|
|
151
|
+
layout: 'flex justify-end',
|
|
152
|
+
visible: false,
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
export const Backdrop = {
|
|
156
|
+
render: Template,
|
|
157
|
+
args: {
|
|
158
|
+
class: 'max-w-[350px] w-full',
|
|
159
|
+
backdrop: true,
|
|
160
|
+
layout: 'flex justify-center',
|
|
161
|
+
visible: false,
|
|
162
|
+
},
|
|
163
|
+
};
|
|
164
|
+
export const Flip = {
|
|
165
|
+
render: Template,
|
|
166
|
+
args: {
|
|
167
|
+
class: 'max-w-[350px] w-full',
|
|
168
|
+
layout: 'flex h-[150vh] justify-center items-center',
|
|
169
|
+
flip: true,
|
|
170
|
+
visible: false,
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
export const Interaction = {
|
|
174
|
+
render: Template,
|
|
175
|
+
args: {
|
|
176
|
+
class: 'max-w-[350px] w-full',
|
|
177
|
+
backdrop: true,
|
|
178
|
+
interaction: 'mouseover',
|
|
179
|
+
layout: 'flex justify-center',
|
|
180
|
+
visible: false,
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
export const Offset = {
|
|
184
|
+
render: Template,
|
|
185
|
+
args: {
|
|
186
|
+
class: 'max-w-[350px] w-full',
|
|
187
|
+
layout: 'flex justify-center items-center',
|
|
188
|
+
offset: 50,
|
|
189
|
+
backdrop: true,
|
|
190
|
+
visible: false,
|
|
191
|
+
},
|
|
192
|
+
};
|
|
193
|
+
export const Placement = {
|
|
194
|
+
render: TemplatePlacement,
|
|
195
|
+
args: {
|
|
196
|
+
class: 'max-w-[350px] w-full',
|
|
197
|
+
layout: 'flex justify-center items-center',
|
|
198
|
+
placement: 'right-start',
|
|
199
|
+
backdrop: true,
|
|
200
|
+
visible: false,
|
|
201
|
+
},
|
|
202
|
+
};
|
|
203
|
+
export const Shift = {
|
|
204
|
+
render: Template,
|
|
205
|
+
args: {
|
|
206
|
+
class: 'max-w-[350px] w-full',
|
|
207
|
+
layout: 'flex justify-end',
|
|
208
|
+
shift: true,
|
|
209
|
+
visible: false,
|
|
210
|
+
},
|
|
211
|
+
};
|
|
212
|
+
export const ShiftPadding = {
|
|
213
|
+
render: Template,
|
|
214
|
+
args: {
|
|
215
|
+
class: 'max-w-[350px] w-full',
|
|
216
|
+
layout: 'flex justify-end',
|
|
217
|
+
shift: true,
|
|
218
|
+
'shift-padding': 50,
|
|
219
|
+
visible: false,
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
export const Smooth = {
|
|
223
|
+
render: Template,
|
|
224
|
+
args: {
|
|
225
|
+
class: 'max-w-[350px] w-full',
|
|
226
|
+
layout: 'flex justify-start h-[100vh] mt-[25vh]',
|
|
227
|
+
smooth: true,
|
|
228
|
+
visible: false,
|
|
229
|
+
},
|
|
230
|
+
};
|
|
231
|
+
export const Strategy = {
|
|
232
|
+
render: TemplateStrategy,
|
|
233
|
+
args: {
|
|
234
|
+
class: 'max-w-[350px] w-full',
|
|
235
|
+
layout: 'flex justify-start',
|
|
236
|
+
visible: false,
|
|
237
|
+
},
|
|
238
|
+
};
|
|
239
|
+
export const NestedBestPractice = {
|
|
240
|
+
render: TemplateNested,
|
|
241
|
+
args: {
|
|
242
|
+
backdrop: true,
|
|
243
|
+
strategy: 'fixed',
|
|
244
|
+
},
|
|
209
245
|
};
|
|
210
246
|
export const Performance = TemplatePerformance.bind({
|
|
211
247
|
backdrop: true,
|
|
212
248
|
});
|
|
213
|
-
export const ModalNested =
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
249
|
+
export const ModalNested = {
|
|
250
|
+
render: TemplateModalNested,
|
|
251
|
+
args: {},
|
|
252
|
+
};
|
|
253
|
+
export const Target = {
|
|
254
|
+
render: TemplateTarget,
|
|
255
|
+
args: {},
|
|
256
|
+
};
|
|
@@ -69,7 +69,7 @@ const Template = () => {
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
}, []);
|
|
72
|
-
return h("div", { class: "grid grid-cols-[300px_auto] gap-600 -m-600 min-h-dvh bg-tone-neutral-10" }, h("div", { class: "grid gap-200 auto-rows-min p-600" }, h("mds-input-switch", { id: "follow-mouse", size:
|
|
72
|
+
return (h("div", { class: "grid grid-cols-[300px_auto] gap-600 -m-600 min-h-dvh bg-tone-neutral-10" }, h("div", { class: "grid gap-200 auto-rows-min p-600" }, h("mds-input-switch", { id: "follow-mouse", size: "sm", checked: followMouse || undefined }, "Follow mouse"), h("mds-input-switch", { id: "eye-blinking", size: "sm", checked: eyeBlinking || undefined }, "Eye blinking"), h("mds-input-range", { id: "size", min: 24, max: 320, step: 8, value: svgSize }), h("mds-input-switch", { id: "think", size: "sm", checked: thinking || undefined }, "Think"), h("mds-button", { id: "agree", variant: "success", tone: "weak" }, "Agree"), h("mds-button", { id: "disagree", variant: "error", tone: "weak" }, "Disgree")), h("div", { class: "flex items-center justify-center bg-tone-neutral rounded-2xl shadow-md m-600 ml-0" }, h("mds-emoji", { style: { width: `${svgSize}px`, height: `${svgSize}px` }, name: "hexabot" }))));
|
|
73
73
|
};
|
|
74
74
|
const TemplateHeader = () => {
|
|
75
75
|
const [modalOpened, setModalOpen] = useState(false);
|
|
@@ -138,8 +138,15 @@ const TemplateHeader = () => {
|
|
|
138
138
|
emojiResults.stopFollowMouse();
|
|
139
139
|
emojiResults.stopBlinking();
|
|
140
140
|
};
|
|
141
|
-
return (h(Fragment, null, h("mds-tooltip", { target:
|
|
142
|
-
|
|
141
|
+
return (h(Fragment, null, h("mds-tooltip", { target: "#emoji", style: { '--mds-tooltip-delay': '0s' } }, "Chiedimi qualcosa!"), h("mds-header", { nav: "all", menu: "none" }, h("mds-header-bar", null, h("mds-img", { class: "w-1000", src: "./logo-mindy-small.svg" }), h("mds-emoji", { id: "emoji", name: "hexabot", class: "w-1000 h-1000 cursor-pointer", slot: "nav", onClick: openModal }), h("mds-button-dropdown", { variant: "dark", tone: "weak", slot: "nav", label: "Account" }, h("mds-button", { variant: "light", size: "sm" }, "Settings"), h("mds-button", { variant: "light", size: "sm" }, "Options"), h("mds-button", { variant: "light", size: "sm" }, "Logout")))), h("mds-modal", { id: "modal", opened: modalOpened === true ? true : undefined, onMdsModalClose: () => closeModal(), position: "top" }, h("div", { slot: "window", class: "max-w-[600px] w-full overflow-hidden grid rounded-xl shadow-lg bg-tone-neutral" }, h("div", { class: "flex gap-400 p-600" }, h("mds-input", { id: "input", class: "flex-grow", variant: "ai", placeholder: "Hi, feel free to ask me something...", mic: true }), h("mds-button", { icon: "mi/baseline/chevron-right", class: "shrink-0", variant: "ai", tone: "weak", size: "lg", onClick: () => {
|
|
142
|
+
openModalResults();
|
|
143
|
+
} })), h("mds-hr", { class: "bg-tone-neutral-09 rounded-none h-50" }), h("div", { class: "grid gap-200 p-600 bg-tone-neutral-10" }, h("mds-text", { typography: "label" }, "Esempi di uilizzo"), h("mds-button", { icon: "mi/baseline/search", class: "justify-start", variant: "light", tone: "weak" }, "Trovami documenti che parlano di infrazioni stradali di massimo 6 mesi fa"), h("mds-button", { icon: "mi/baseline/search", class: "justify-start", variant: "light", tone: "weak" }, "Cerca volumi sui fallimenti aziendali solo per aziende di grandi dimensioni")))), h("mds-modal", { id: "modal-results", opened: modalResultsOpened === true ? true : undefined, position: "right" }, h("div", { class: "p-600 grid gap-600 auto-rows-min" }, h("div", { class: "grid gap-600" }, h("div", { class: "p-600 bg-tone-neutral-10 rounded-lg rounded-br-none shadow-sm-sharp" }, h("mds-text", null, "Lorem ipsum dolor sit amet consectetur adipisicing elit?")), h("mds-tooltip", { target: "#emoji-results", style: { '--mds-tooltip-delay': '0s' } }, showResults
|
|
144
|
+
? 'Ecco la risposta! Ricorda che posso commettere errori, pertanto verifica sempre le fonti se non ti sento sicuro!'
|
|
145
|
+
: 'ci sono quasi...'), h("mds-emoji", { id: "emoji-results", name: "hexabot", class: clsx(showResults ? 'w-1800 h-1800' : 'w-2400 h-2400', 'm-auto transition-cosmetic hydrated duration-700 ease-in-out-quart') }), showResults ? (h("div", { class: "grid gap-400" }, h("mds-text", null, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Quo sed quaerat alias optio praesentium minus provident tempore laboriosam sequi minima? Quaerat laborum suscipit velit atque consectetur expedita error laboriosam maxime?"), h("mds-list", null, h("mds-list-item", null, "Lorem ipsum dolor sit amet consectetur adipisicing elit"), h("mds-list-item", null, "Quo sed quaerat alias optio praesentium minus provident tempore laboriosam sequi minima"), h("mds-list-item", null, "Quaerat laborum suscipit velit atque consectetur expedita error laboriosam maxime")), h("div", { class: "flex items-center justify-end gap-200" }, h("mds-button-group", null, h("mds-button", { icon: "mi/outline/thumb-up", variant: "dark", tone: "quiet", size: "sm" }), h("mds-button", { icon: "mi/outline/thumb-down", variant: "dark", tone: "quiet", size: "sm" }), h("mds-button", { icon: "mi/outline/ios-share", variant: "dark", tone: "quiet", size: "sm" }))))) : (h("mds-text", { class: "text-center" }, "Sto pensando..."))), h("mds-input", { id: "input-results", class: "flex-grow", variant: "ai", placeholder: "Hi, feel free to ask me something...", mic: true })))));
|
|
146
|
+
};
|
|
147
|
+
export const Default = {
|
|
148
|
+
render: Template,
|
|
149
|
+
};
|
|
150
|
+
export const HeaderExample = {
|
|
151
|
+
render: TemplateHeader,
|
|
143
152
|
};
|
|
144
|
-
export const Default = Template.bind({});
|
|
145
|
-
export const HeaderExample = TemplateHeader.bind({});
|