@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.
Files changed (739) hide show
  1. package/dist/cjs/{floating-controller-65286655.js → floating-controller-a52af7cc.js} +1 -1
  2. package/dist/cjs/{floating-ui.dom.esm-12c5956b.js → floating-ui.dom.esm-0a090151.js} +1 -1
  3. package/dist/cjs/index-de0ace0a.js +4 -4
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/magma-components.cjs.js +1 -1
  6. package/dist/cjs/mds-banner_3.cjs.entry.js +11 -5
  7. package/dist/cjs/mds-button_3.cjs.entry.js +1 -1
  8. package/dist/cjs/mds-dropdown.cjs.entry.js +2 -2
  9. package/dist/cjs/mds-header.cjs.entry.js +1 -1
  10. package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
  11. package/dist/cjs/mds-input-date.cjs.entry.js +57 -54
  12. package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
  13. package/dist/cjs/mds-input-otp.cjs.entry.js +1 -1
  14. package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
  15. package/dist/cjs/mds-input-select.cjs.entry.js +2 -2
  16. package/dist/cjs/mds-input-switch_2.cjs.entry.js +3 -3
  17. package/dist/cjs/mds-input-tip_2.cjs.entry.js +8 -8
  18. package/dist/cjs/mds-input-upload.cjs.entry.js +11 -4
  19. package/dist/cjs/mds-keyboard-key.cjs.entry.js +2 -2
  20. package/dist/cjs/mds-keyboard.cjs.entry.js +1 -1
  21. package/dist/cjs/mds-kpi-item.cjs.entry.js +2 -2
  22. package/dist/cjs/mds-kpi.cjs.entry.js +1 -1
  23. package/dist/cjs/mds-label.cjs.entry.js +1 -1
  24. package/dist/cjs/mds-list-item.cjs.entry.js +1 -1
  25. package/dist/cjs/mds-list.cjs.entry.js +1 -1
  26. package/dist/cjs/mds-mention.cjs.entry.js +1 -1
  27. package/dist/cjs/mds-modal.cjs.entry.js +3 -2
  28. package/dist/cjs/mds-note.cjs.entry.js +1 -1
  29. package/dist/cjs/mds-notification.cjs.entry.js +2 -2
  30. package/dist/cjs/mds-paginator-item.cjs.entry.js +1 -1
  31. package/dist/cjs/mds-paginator.cjs.entry.js +2 -2
  32. package/dist/cjs/mds-policy-ai.cjs.entry.js +38 -38
  33. package/dist/cjs/mds-pref-animation.cjs.entry.js +1 -1
  34. package/dist/cjs/mds-pref-consumption.cjs.entry.js +1 -1
  35. package/dist/cjs/mds-pref-contrast.cjs.entry.js +1 -1
  36. package/dist/cjs/mds-pref-language-item.cjs.entry.js +1 -1
  37. package/dist/cjs/mds-pref-language.cjs.entry.js +1 -1
  38. package/dist/cjs/mds-pref-theme.cjs.entry.js +3 -3
  39. package/dist/cjs/mds-pref.cjs.entry.js +1 -1
  40. package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +6 -6
  41. package/dist/cjs/mds-price-table-features-row.cjs.entry.js +1 -1
  42. package/dist/cjs/mds-price-table-features.cjs.entry.js +2 -2
  43. package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
  44. package/dist/cjs/mds-price-table-list-item.cjs.entry.js +2 -2
  45. package/dist/cjs/mds-price-table-list.cjs.entry.js +2 -2
  46. package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
  47. package/dist/cjs/mds-progress.cjs.entry.js +1 -1
  48. package/dist/cjs/mds-push-notification-item.cjs.entry.js +2 -2
  49. package/dist/cjs/mds-push-notification.cjs.entry.js +1 -1
  50. package/dist/cjs/mds-quote.cjs.entry.js +1 -1
  51. package/dist/cjs/mds-radial-menu-item.cjs.entry.js +1 -1
  52. package/dist/cjs/mds-radial-menu.cjs.entry.js +3 -3
  53. package/dist/cjs/mds-separator.cjs.entry.js +1 -1
  54. package/dist/cjs/mds-status-bar.cjs.entry.js +1 -1
  55. package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +1 -1
  56. package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
  57. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +1 -1
  58. package/dist/cjs/mds-tab-bar.cjs.entry.js +1 -1
  59. package/dist/cjs/mds-tab_2.cjs.entry.js +4 -4
  60. package/dist/cjs/mds-table-body.cjs.entry.js +1 -1
  61. package/dist/cjs/mds-table-footer.cjs.entry.js +1 -1
  62. package/dist/cjs/mds-table-header-cell.cjs.entry.js +1 -1
  63. package/dist/cjs/mds-table-header.cjs.entry.js +2 -2
  64. package/dist/cjs/mds-table-row.cjs.entry.js +6 -6
  65. package/dist/cjs/mds-table.cjs.entry.js +1 -1
  66. package/dist/cjs/mds-text.cjs.entry.js +1 -1
  67. package/dist/cjs/mds-toast.cjs.entry.js +3 -3
  68. package/dist/cjs/mds-tooltip.cjs.entry.js +3 -3
  69. package/dist/cjs/mds-tree-item.cjs.entry.js +1 -1
  70. package/dist/cjs/mds-tree.cjs.entry.js +1 -1
  71. package/dist/cjs/mds-url-view.cjs.entry.js +1 -1
  72. package/dist/cjs/mds-usage.cjs.entry.js +1 -1
  73. package/dist/cjs/mds-video-wall.cjs.entry.js +3 -3
  74. package/dist/cjs/mds-zero.cjs.entry.js +1 -1
  75. package/dist/collection/components/mds-accordion/test/mds-accordion.stories.js +21 -14
  76. package/dist/collection/components/mds-accordion-item/test/mds-accordion-item.stories.js +12 -8
  77. package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +38 -27
  78. package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js +22 -16
  79. package/dist/collection/components/mds-author/test/mds-author.stories.js +8 -4
  80. package/dist/collection/components/mds-avatar/test/mds-avatar.stories.js +31 -19
  81. package/dist/collection/components/mds-avatar-stack/test/mds-avatar-stack.stories.js +15 -9
  82. package/dist/collection/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.js +25 -17
  83. package/dist/collection/components/mds-badge/test/mds-badge.stories.js +8 -6
  84. package/dist/collection/components/mds-banner/test/mds-banner.stories.js +65 -45
  85. package/dist/collection/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.js +17 -11
  86. package/dist/collection/components/mds-bibliography/test/mds-bibliography.stories.js +45 -35
  87. package/dist/collection/components/mds-breadcrumb/test/mds-breadcrumb.stories.js +4 -2
  88. package/dist/collection/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.js +9 -5
  89. package/dist/collection/components/mds-button/test/mds-button.stories.js +142 -84
  90. package/dist/collection/components/mds-button-dropdown/test/mds-button-dropdown.stories.js +8 -6
  91. package/dist/collection/components/mds-button-group/test/mds-button-group.stories.js +8 -4
  92. package/dist/collection/components/mds-calendar/test/mds-calendar.stories.js +6 -4
  93. package/dist/collection/components/mds-card/test/mds-card.stories.js +71 -37
  94. package/dist/collection/components/mds-chip/mds-chip.css +6 -1
  95. package/dist/collection/components/mds-chip/mds-chip.js +30 -4
  96. package/dist/collection/components/mds-chip/test/mds-chip.stories.js +60 -31
  97. package/dist/collection/components/mds-details/test/mds-details.stories.js +9 -5
  98. package/dist/collection/components/mds-dropdown/test/mds-dropdown.stories.js +153 -113
  99. package/dist/collection/components/mds-emoji/test/mds-emoji.stories.js +12 -5
  100. package/dist/collection/components/mds-entity/test/mds-entity.stories.js +43 -21
  101. package/dist/collection/components/mds-file/test/mds-file.stories.js +30 -20
  102. package/dist/collection/components/mds-file-preview/test/mds-file-preview.stories.js +86 -62
  103. package/dist/collection/components/mds-filter/test/mds-filter.stories.js +23 -15
  104. package/dist/collection/components/mds-filter-item/test/mds-filter-item.stories.js +12 -8
  105. package/dist/collection/components/mds-header/mds-header.css +1 -2
  106. package/dist/collection/components/mds-header/test/mds-header.stories.js +34 -20
  107. package/dist/collection/components/mds-header-bar/test/mds-header-bar.stories.js +4 -2
  108. package/dist/collection/components/mds-help/test/mds-help.stories.js +9 -5
  109. package/dist/collection/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.js +21 -13
  110. package/dist/collection/components/mds-hr/test/mds-hr.stories.js +8 -4
  111. package/dist/collection/components/mds-icon/test/mds-icon.stories.js +49 -31
  112. package/dist/collection/components/mds-img/test/mds-img-accessibility.stories.js +24 -16
  113. package/dist/collection/components/mds-img/test/mds-img.stories.js +55 -41
  114. package/dist/collection/components/mds-input/test/mds-input.stories.js +158 -109
  115. package/dist/collection/components/mds-input-date/mds-input-date.css +3 -0
  116. package/dist/collection/components/mds-input-date/mds-input-date.js +146 -56
  117. package/dist/collection/components/mds-input-date/test/mds-input-date.stories.js +41 -11
  118. package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +23 -15
  119. package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.js +1 -1
  120. package/dist/collection/components/mds-input-field/mds-input-field.js +1 -1
  121. package/dist/collection/components/mds-input-field/test/mds-input-field.stories.js +37 -25
  122. package/dist/collection/components/mds-input-otp/mds-input-otp.js +1 -1
  123. package/dist/collection/components/mds-input-otp/test/mds-input-otp.stories.js +30 -14
  124. package/dist/collection/components/mds-input-range/mds-input-range.js +1 -1
  125. package/dist/collection/components/mds-input-range/test/mds-input-range.stories.js +37 -21
  126. package/dist/collection/components/mds-input-select/mds-input-select.js +2 -2
  127. package/dist/collection/components/mds-input-select/test/mds-input-select.stories.js +34 -20
  128. package/dist/collection/components/mds-input-switch/mds-input-switch.js +2 -2
  129. package/dist/collection/components/mds-input-switch/test/mds-input-switch.stories.js +93 -71
  130. package/dist/collection/components/mds-input-tip/mds-input-tip.js +1 -1
  131. package/dist/collection/components/mds-input-tip/test/mds-input-tip.stories.js +4 -2
  132. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +7 -7
  133. package/dist/collection/components/mds-input-tip-item/test/mds-input-tip.stories.js +3 -1
  134. package/dist/collection/components/mds-input-upload/mds-input-upload.js +28 -4
  135. package/dist/collection/components/mds-input-upload/test/mds-input-upload.stories.js +20 -14
  136. package/dist/collection/components/mds-keyboard/mds-keyboard.js +1 -1
  137. package/dist/collection/components/mds-keyboard/test/mds-keyboard.stories.js +17 -9
  138. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +2 -2
  139. package/dist/collection/components/mds-keyboard-key/test/mds-keyboard-key.stories.js +6 -4
  140. package/dist/collection/components/mds-kpi/mds-kpi.js +1 -1
  141. package/dist/collection/components/mds-kpi/test/mds-kpi.stories.js +8 -4
  142. package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +2 -2
  143. package/dist/collection/components/mds-kpi-item/test/mds-kpi-item.stories.js +12 -8
  144. package/dist/collection/components/mds-label/mds-label.js +1 -1
  145. package/dist/collection/components/mds-label/test/mds-label.stories.js +28 -16
  146. package/dist/collection/components/mds-list/mds-list.js +1 -1
  147. package/dist/collection/components/mds-list/test/mds-list.stories.js +4 -2
  148. package/dist/collection/components/mds-list-item/mds-list-item.js +1 -1
  149. package/dist/collection/components/mds-list-item/test/mds-list-item.stories.js +5 -3
  150. package/dist/collection/components/mds-mention/mds-mention.js +1 -1
  151. package/dist/collection/components/mds-mention/test/mds-mention.stories.js +6 -4
  152. package/dist/collection/components/mds-modal/mds-modal.js +3 -2
  153. package/dist/collection/components/mds-modal/test/mds-modal.stories.js +54 -37
  154. package/dist/collection/components/mds-note/mds-note.js +1 -1
  155. package/dist/collection/components/mds-note/test/mds-note.stories.js +13 -7
  156. package/dist/collection/components/mds-notification/mds-notification.js +1 -1
  157. package/dist/collection/components/mds-notification/test/mds-notification.stories.js +38 -26
  158. package/dist/collection/components/mds-paginator/mds-paginator.js +2 -2
  159. package/dist/collection/components/mds-paginator/test/mds-paginator.stories.js +12 -8
  160. package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +1 -1
  161. package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +1 -1
  162. package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +1 -1
  163. package/dist/collection/components/mds-policy-ai/test/mds-policy.stories.js +52 -34
  164. package/dist/collection/components/mds-pref/mds-pref.js +1 -1
  165. package/dist/collection/components/mds-pref/test/mds-pref.stories.js +9 -5
  166. package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +1 -1
  167. package/dist/collection/components/mds-pref-animation/test/mds-pref-animation.stories.js +4 -2
  168. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +1 -1
  169. package/dist/collection/components/mds-pref-consumption/test/mds-pref-consumption.stories.js +4 -2
  170. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +1 -1
  171. package/dist/collection/components/mds-pref-contrast/test/mds-pref-contrast.stories.js +4 -2
  172. package/dist/collection/components/mds-pref-language/mds-pref-language.js +1 -1
  173. package/dist/collection/components/mds-pref-language/test/mds-pref-language.stories.js +5 -3
  174. package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +1 -1
  175. package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +3 -3
  176. package/dist/collection/components/mds-pref-theme/test/mds-pref-theme.stories.js +4 -2
  177. package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
  178. package/dist/collection/components/mds-price-table/test/mds-price-table.stories.js +6 -4
  179. package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +2 -2
  180. package/dist/collection/components/mds-price-table-features/test/mds-price-table-features.stories.js +6 -4
  181. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +6 -6
  182. package/dist/collection/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.js +6 -4
  183. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +1 -1
  184. package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
  185. package/dist/collection/components/mds-price-table-header/test/mds-price-table-header.stories.js +4 -2
  186. package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +2 -2
  187. package/dist/collection/components/mds-price-table-list/test/mds-price-table-list.stories.js +8 -4
  188. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +2 -2
  189. package/dist/collection/components/mds-progress/mds-progress.js +1 -1
  190. package/dist/collection/components/mds-progress/test/mds-progress.stories.js +6 -4
  191. package/dist/collection/components/mds-push-notification/mds-push-notification.js +1 -1
  192. package/dist/collection/components/mds-push-notification/test/mds-push-notification.stories.js +24 -18
  193. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +2 -2
  194. package/dist/collection/components/mds-push-notification-item/test/mds-push-notification-item.stories.js +115 -93
  195. package/dist/collection/components/mds-quote/mds-quote.js +1 -1
  196. package/dist/collection/components/mds-quote/test/mds-quote.stories.js +13 -9
  197. package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +1 -3
  198. package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +1 -1
  199. package/dist/collection/components/mds-radial-menu/test/mds-radial-menu.stories.js +27 -19
  200. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
  201. package/dist/collection/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.js +6 -4
  202. package/dist/collection/components/mds-separator/mds-separator.js +1 -1
  203. package/dist/collection/components/mds-separator/test/mds-separator.stories.js +4 -2
  204. package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
  205. package/dist/collection/components/mds-spinner/test/mds-spinner.stories.js +10 -6
  206. package/dist/collection/components/mds-status-bar/mds-status-bar.css +1 -2
  207. package/dist/collection/components/mds-status-bar/mds-status-bar.js +1 -1
  208. package/dist/collection/components/mds-status-bar/test/mds-status-bar.stories.js +5 -3
  209. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +1 -1
  210. package/dist/collection/components/mds-stepper-bar/test/mds-stepper-bar.stories.js +49 -5
  211. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
  212. package/dist/collection/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.js +26 -14
  213. package/dist/collection/components/mds-tab/mds-tab.js +3 -3
  214. package/dist/collection/components/mds-tab/test/mds-tab.stories.js +62 -34
  215. package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +1 -1
  216. package/dist/collection/components/mds-tab-bar/test/mds-tab-bar.stories.js +4 -2
  217. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +1 -1
  218. package/dist/collection/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.js +4 -2
  219. package/dist/collection/components/mds-tab-item/mds-tab-item.js +1 -1
  220. package/dist/collection/components/mds-tab-item/test/mds-tab-item.stories.js +13 -7
  221. package/dist/collection/components/mds-table/mds-table.js +1 -1
  222. package/dist/collection/components/mds-table/test/mds-table.stories.js +46 -29
  223. package/dist/collection/components/mds-table-body/mds-table-body.js +1 -1
  224. package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
  225. package/dist/collection/components/mds-table-footer/mds-table-footer.js +1 -1
  226. package/dist/collection/components/mds-table-header/mds-table-header.js +2 -2
  227. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +1 -1
  228. package/dist/collection/components/mds-table-row/mds-table-row.js +6 -6
  229. package/dist/collection/components/mds-text/mds-text.js +1 -1
  230. package/dist/collection/components/mds-text/test/mds-text.stories.js +134 -90
  231. package/dist/collection/components/mds-toast/mds-toast.js +3 -3
  232. package/dist/collection/components/mds-toast/test/mds-toast.stories.js +9 -5
  233. package/dist/collection/components/mds-tooltip/mds-tooltip.js +1 -1
  234. package/dist/collection/components/mds-tooltip/test/mds-tooltip.stories.js +69 -47
  235. package/dist/collection/components/mds-tree/mds-tree.js +1 -1
  236. package/dist/collection/components/mds-tree/test/mds-tree-apk.stories.js +22 -8
  237. package/dist/collection/components/mds-tree/test/mds-tree.stories.js +22 -14
  238. package/dist/collection/components/mds-tree-item/mds-tree-item.js +1 -1
  239. package/dist/collection/components/mds-tree-item/test/mds-tree-item.stories.js +7 -3
  240. package/dist/collection/components/mds-url-view/mds-url-view.js +1 -1
  241. package/dist/collection/components/mds-url-view/test/mds-url-view.stories.js +26 -19
  242. package/dist/collection/components/mds-usage/mds-usage.js +1 -1
  243. package/dist/collection/components/mds-usage/test/mds-usage.stories.js +14 -8
  244. package/dist/collection/components/mds-video-wall/mds-video-wall.js +3 -3
  245. package/dist/collection/components/mds-video-wall/test/mds-video-wall.stories.js +64 -49
  246. package/dist/collection/components/mds-zero/mds-zero.js +1 -1
  247. package/dist/collection/components/mds-zero/test/mds-zero.stories.js +4 -2
  248. package/dist/collection/storybook/components-version.stories.js +6 -2
  249. package/dist/collection/storybook/example-page.stories.js +6 -2
  250. package/dist/collection/storybook/fouc-hydrated.stories.js +4 -2
  251. package/dist/collection/storybook/input-form.stories.js +4 -2
  252. package/dist/collection/storybook/same-childrend-slot-names.stories.js +4 -2
  253. package/dist/components/floating-ui.dom.esm.js +1 -1
  254. package/dist/components/mds-chip2.js +11 -5
  255. package/dist/components/mds-header.js +1 -1
  256. package/dist/components/mds-input-date-range-preselection.js +1 -1
  257. package/dist/components/mds-input-date.js +85 -66
  258. package/dist/components/mds-input-field.js +1 -1
  259. package/dist/components/mds-input-otp.js +1 -1
  260. package/dist/components/mds-input-range.js +1 -1
  261. package/dist/components/mds-input-select.js +2 -2
  262. package/dist/components/mds-input-switch2.js +2 -2
  263. package/dist/components/mds-input-tip-item2.js +7 -7
  264. package/dist/components/mds-input-tip2.js +1 -1
  265. package/dist/components/mds-input-upload.js +13 -5
  266. package/dist/components/mds-keyboard-key.js +2 -2
  267. package/dist/components/mds-keyboard.js +1 -1
  268. package/dist/components/mds-kpi-item.js +2 -2
  269. package/dist/components/mds-kpi.js +1 -1
  270. package/dist/components/mds-label.js +1 -1
  271. package/dist/components/mds-list-item.js +1 -1
  272. package/dist/components/mds-list.js +1 -1
  273. package/dist/components/mds-mention.js +1 -1
  274. package/dist/components/mds-modal2.js +3 -2
  275. package/dist/components/mds-note.js +1 -1
  276. package/dist/components/mds-notification.js +1 -1
  277. package/dist/components/mds-paginator-item2.js +1 -1
  278. package/dist/components/mds-paginator.js +2 -2
  279. package/dist/components/mds-policy-ai.js +38 -38
  280. package/dist/components/mds-pref-animation.js +1 -1
  281. package/dist/components/mds-pref-consumption.js +1 -1
  282. package/dist/components/mds-pref-contrast.js +1 -1
  283. package/dist/components/mds-pref-language-item.js +1 -1
  284. package/dist/components/mds-pref-language.js +1 -1
  285. package/dist/components/mds-pref-theme.js +3 -3
  286. package/dist/components/mds-pref.js +1 -1
  287. package/dist/components/mds-price-table-features-cell.js +6 -6
  288. package/dist/components/mds-price-table-features-row.js +1 -1
  289. package/dist/components/mds-price-table-features.js +2 -2
  290. package/dist/components/mds-price-table-header.js +1 -1
  291. package/dist/components/mds-price-table-list-item.js +2 -2
  292. package/dist/components/mds-price-table-list.js +2 -2
  293. package/dist/components/mds-price-table.js +1 -1
  294. package/dist/components/mds-progress2.js +1 -1
  295. package/dist/components/mds-push-notification-item.js +2 -2
  296. package/dist/components/mds-push-notification.js +1 -1
  297. package/dist/components/mds-quote.js +1 -1
  298. package/dist/components/mds-radial-menu-item.js +1 -1
  299. package/dist/components/mds-radial-menu.js +1 -1
  300. package/dist/components/mds-separator2.js +1 -1
  301. package/dist/components/mds-spinner2.js +1 -1
  302. package/dist/components/mds-status-bar.js +1 -1
  303. package/dist/components/mds-stepper-bar-item.js +1 -1
  304. package/dist/components/mds-stepper-bar.js +1 -1
  305. package/dist/components/mds-tab-bar-item.js +1 -1
  306. package/dist/components/mds-tab-bar.js +1 -1
  307. package/dist/components/mds-tab-item2.js +1 -1
  308. package/dist/components/mds-tab2.js +3 -3
  309. package/dist/components/mds-table-body.js +1 -1
  310. package/dist/components/mds-table-cell2.js +1 -1
  311. package/dist/components/mds-table-footer.js +1 -1
  312. package/dist/components/mds-table-header-cell2.js +1 -1
  313. package/dist/components/mds-table-header.js +2 -2
  314. package/dist/components/mds-table-row.js +6 -6
  315. package/dist/components/mds-table.js +1 -1
  316. package/dist/components/mds-text2.js +1 -1
  317. package/dist/components/mds-toast.js +3 -3
  318. package/dist/components/mds-tooltip2.js +1 -1
  319. package/dist/components/mds-tree-item.js +1 -1
  320. package/dist/components/mds-tree.js +1 -1
  321. package/dist/components/mds-url-view.js +1 -1
  322. package/dist/components/mds-usage.js +1 -1
  323. package/dist/components/mds-video-wall.js +3 -3
  324. package/dist/components/mds-zero.js +1 -1
  325. package/dist/documentation.json +194 -2
  326. package/dist/esm/{floating-controller-698c4c16.js → floating-controller-a9b05f8d.js} +1 -1
  327. package/dist/esm/{floating-ui.dom.esm-e0f44fc0.js → floating-ui.dom.esm-05026c49.js} +1 -1
  328. package/dist/esm/index-7f153b9b.js +4 -4
  329. package/dist/esm/loader.js +1 -1
  330. package/dist/esm/magma-components.js +1 -1
  331. package/dist/esm/mds-banner_3.entry.js +11 -5
  332. package/dist/esm/mds-button_3.entry.js +1 -1
  333. package/dist/esm/mds-dropdown.entry.js +2 -2
  334. package/dist/esm/mds-header.entry.js +1 -1
  335. package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
  336. package/dist/esm/mds-input-date.entry.js +57 -54
  337. package/dist/esm/mds-input-field.entry.js +1 -1
  338. package/dist/esm/mds-input-otp.entry.js +1 -1
  339. package/dist/esm/mds-input-range.entry.js +1 -1
  340. package/dist/esm/mds-input-select.entry.js +2 -2
  341. package/dist/esm/mds-input-switch_2.entry.js +3 -3
  342. package/dist/esm/mds-input-tip_2.entry.js +8 -8
  343. package/dist/esm/mds-input-upload.entry.js +11 -4
  344. package/dist/esm/mds-keyboard-key.entry.js +2 -2
  345. package/dist/esm/mds-keyboard.entry.js +1 -1
  346. package/dist/esm/mds-kpi-item.entry.js +2 -2
  347. package/dist/esm/mds-kpi.entry.js +1 -1
  348. package/dist/esm/mds-label.entry.js +1 -1
  349. package/dist/esm/mds-list-item.entry.js +1 -1
  350. package/dist/esm/mds-list.entry.js +1 -1
  351. package/dist/esm/mds-mention.entry.js +1 -1
  352. package/dist/esm/mds-modal.entry.js +3 -2
  353. package/dist/esm/mds-note.entry.js +1 -1
  354. package/dist/esm/mds-notification.entry.js +2 -2
  355. package/dist/esm/mds-paginator-item.entry.js +1 -1
  356. package/dist/esm/mds-paginator.entry.js +2 -2
  357. package/dist/esm/mds-policy-ai.entry.js +38 -38
  358. package/dist/esm/mds-pref-animation.entry.js +1 -1
  359. package/dist/esm/mds-pref-consumption.entry.js +1 -1
  360. package/dist/esm/mds-pref-contrast.entry.js +1 -1
  361. package/dist/esm/mds-pref-language-item.entry.js +1 -1
  362. package/dist/esm/mds-pref-language.entry.js +1 -1
  363. package/dist/esm/mds-pref-theme.entry.js +3 -3
  364. package/dist/esm/mds-pref.entry.js +1 -1
  365. package/dist/esm/mds-price-table-features-cell.entry.js +6 -6
  366. package/dist/esm/mds-price-table-features-row.entry.js +1 -1
  367. package/dist/esm/mds-price-table-features.entry.js +2 -2
  368. package/dist/esm/mds-price-table-header.entry.js +1 -1
  369. package/dist/esm/mds-price-table-list-item.entry.js +2 -2
  370. package/dist/esm/mds-price-table-list.entry.js +2 -2
  371. package/dist/esm/mds-price-table.entry.js +1 -1
  372. package/dist/esm/mds-progress.entry.js +1 -1
  373. package/dist/esm/mds-push-notification-item.entry.js +2 -2
  374. package/dist/esm/mds-push-notification.entry.js +1 -1
  375. package/dist/esm/mds-quote.entry.js +1 -1
  376. package/dist/esm/mds-radial-menu-item.entry.js +1 -1
  377. package/dist/esm/mds-radial-menu.entry.js +3 -3
  378. package/dist/esm/mds-separator.entry.js +1 -1
  379. package/dist/esm/mds-status-bar.entry.js +1 -1
  380. package/dist/esm/mds-stepper-bar-item.entry.js +1 -1
  381. package/dist/esm/mds-stepper-bar.entry.js +1 -1
  382. package/dist/esm/mds-tab-bar-item.entry.js +1 -1
  383. package/dist/esm/mds-tab-bar.entry.js +1 -1
  384. package/dist/esm/mds-tab_2.entry.js +4 -4
  385. package/dist/esm/mds-table-body.entry.js +1 -1
  386. package/dist/esm/mds-table-footer.entry.js +1 -1
  387. package/dist/esm/mds-table-header-cell.entry.js +1 -1
  388. package/dist/esm/mds-table-header.entry.js +2 -2
  389. package/dist/esm/mds-table-row.entry.js +6 -6
  390. package/dist/esm/mds-table.entry.js +1 -1
  391. package/dist/esm/mds-text.entry.js +1 -1
  392. package/dist/esm/mds-toast.entry.js +3 -3
  393. package/dist/esm/mds-tooltip.entry.js +3 -3
  394. package/dist/esm/mds-tree-item.entry.js +1 -1
  395. package/dist/esm/mds-tree.entry.js +1 -1
  396. package/dist/esm/mds-url-view.entry.js +1 -1
  397. package/dist/esm/mds-usage.entry.js +1 -1
  398. package/dist/esm/mds-video-wall.entry.js +3 -3
  399. package/dist/esm/mds-zero.entry.js +1 -1
  400. package/dist/esm-es5/{floating-controller-698c4c16.js → floating-controller-a9b05f8d.js} +1 -1
  401. package/dist/esm-es5/floating-ui.dom.esm-05026c49.js +1 -0
  402. package/dist/esm-es5/index-7f153b9b.js +1 -1
  403. package/dist/esm-es5/loader.js +1 -1
  404. package/dist/esm-es5/magma-components.js +1 -1
  405. package/dist/esm-es5/mds-banner_3.entry.js +1 -1
  406. package/dist/esm-es5/mds-button_3.entry.js +1 -1
  407. package/dist/esm-es5/mds-dropdown.entry.js +1 -1
  408. package/dist/esm-es5/mds-header.entry.js +1 -1
  409. package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
  410. package/dist/esm-es5/mds-input-date.entry.js +1 -1
  411. package/dist/esm-es5/mds-input-field.entry.js +1 -1
  412. package/dist/esm-es5/mds-input-otp.entry.js +1 -1
  413. package/dist/esm-es5/mds-input-range.entry.js +1 -1
  414. package/dist/esm-es5/mds-input-select.entry.js +1 -1
  415. package/dist/esm-es5/mds-input-switch_2.entry.js +1 -1
  416. package/dist/esm-es5/mds-input-tip_2.entry.js +1 -1
  417. package/dist/esm-es5/mds-input-upload.entry.js +1 -1
  418. package/dist/esm-es5/mds-keyboard-key.entry.js +1 -1
  419. package/dist/esm-es5/mds-keyboard.entry.js +1 -1
  420. package/dist/esm-es5/mds-kpi-item.entry.js +1 -1
  421. package/dist/esm-es5/mds-kpi.entry.js +1 -1
  422. package/dist/esm-es5/mds-label.entry.js +1 -1
  423. package/dist/esm-es5/mds-list-item.entry.js +1 -1
  424. package/dist/esm-es5/mds-list.entry.js +1 -1
  425. package/dist/esm-es5/mds-mention.entry.js +1 -1
  426. package/dist/esm-es5/mds-modal.entry.js +1 -1
  427. package/dist/esm-es5/mds-note.entry.js +1 -1
  428. package/dist/esm-es5/mds-notification.entry.js +1 -1
  429. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  430. package/dist/esm-es5/mds-paginator.entry.js +1 -1
  431. package/dist/esm-es5/mds-policy-ai.entry.js +1 -1
  432. package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
  433. package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
  434. package/dist/esm-es5/mds-pref-contrast.entry.js +1 -1
  435. package/dist/esm-es5/mds-pref-language-item.entry.js +1 -1
  436. package/dist/esm-es5/mds-pref-language.entry.js +1 -1
  437. package/dist/esm-es5/mds-pref-theme.entry.js +1 -1
  438. package/dist/esm-es5/mds-pref.entry.js +1 -1
  439. package/dist/esm-es5/mds-price-table-features-cell.entry.js +1 -1
  440. package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
  441. package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
  442. package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
  443. package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
  444. package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
  445. package/dist/esm-es5/mds-price-table.entry.js +1 -1
  446. package/dist/esm-es5/mds-progress.entry.js +1 -1
  447. package/dist/esm-es5/mds-push-notification-item.entry.js +1 -1
  448. package/dist/esm-es5/mds-push-notification.entry.js +1 -1
  449. package/dist/esm-es5/mds-quote.entry.js +1 -1
  450. package/dist/esm-es5/mds-radial-menu-item.entry.js +1 -1
  451. package/dist/esm-es5/mds-radial-menu.entry.js +1 -1
  452. package/dist/esm-es5/mds-separator.entry.js +1 -1
  453. package/dist/esm-es5/mds-status-bar.entry.js +1 -1
  454. package/dist/esm-es5/mds-stepper-bar-item.entry.js +1 -1
  455. package/dist/esm-es5/mds-stepper-bar.entry.js +1 -1
  456. package/dist/esm-es5/mds-tab-bar-item.entry.js +1 -1
  457. package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
  458. package/dist/esm-es5/mds-tab_2.entry.js +1 -1
  459. package/dist/esm-es5/mds-table-body.entry.js +1 -1
  460. package/dist/esm-es5/mds-table-footer.entry.js +1 -1
  461. package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
  462. package/dist/esm-es5/mds-table-header.entry.js +1 -1
  463. package/dist/esm-es5/mds-table-row.entry.js +1 -1
  464. package/dist/esm-es5/mds-table.entry.js +1 -1
  465. package/dist/esm-es5/mds-text.entry.js +1 -1
  466. package/dist/esm-es5/mds-toast.entry.js +1 -1
  467. package/dist/esm-es5/mds-tooltip.entry.js +1 -1
  468. package/dist/esm-es5/mds-tree-item.entry.js +1 -1
  469. package/dist/esm-es5/mds-tree.entry.js +1 -1
  470. package/dist/esm-es5/mds-url-view.entry.js +1 -1
  471. package/dist/esm-es5/mds-usage.entry.js +1 -1
  472. package/dist/esm-es5/mds-video-wall.entry.js +1 -1
  473. package/dist/esm-es5/mds-zero.entry.js +1 -1
  474. package/dist/hydrate/index.js +231 -208
  475. package/dist/hydrate/index.mjs +231 -208
  476. package/dist/magma-components/magma-components.esm.js +1 -1
  477. package/dist/magma-components/{p-c2677087.system.entry.js → p-001cc260.system.entry.js} +1 -1
  478. package/dist/magma-components/{p-1ecac480.system.entry.js → p-006e893f.system.entry.js} +1 -1
  479. package/dist/magma-components/{p-7a740feb.entry.js → p-00aa638c.entry.js} +1 -1
  480. package/dist/magma-components/{p-0a0bfb70.entry.js → p-00ac9a49.entry.js} +1 -1
  481. package/dist/magma-components/{p-527fe1c1.entry.js → p-05577b4d.entry.js} +1 -1
  482. package/dist/magma-components/p-06237b42.entry.js +1 -0
  483. package/dist/magma-components/{p-1d680517.system.entry.js → p-081aa7ee.system.entry.js} +1 -1
  484. package/dist/magma-components/{p-6f203ab0.entry.js → p-08406828.entry.js} +1 -1
  485. package/dist/magma-components/{p-c0101ed6.system.entry.js → p-091813e6.system.entry.js} +1 -1
  486. package/dist/magma-components/{p-5246ea45.entry.js → p-09393d3b.entry.js} +1 -1
  487. package/dist/magma-components/{p-deaefdd1.system.entry.js → p-09d10951.system.entry.js} +1 -1
  488. package/dist/magma-components/{p-9ffb1050.system.entry.js → p-0a223c02.system.entry.js} +1 -1
  489. package/dist/magma-components/{p-4aa97921.system.entry.js → p-0a274718.system.entry.js} +1 -1
  490. package/dist/magma-components/{p-e6505fa3.system.entry.js → p-0d8d18e3.system.entry.js} +1 -1
  491. package/dist/magma-components/{p-43174e79.system.entry.js → p-1078ebfe.system.entry.js} +1 -1
  492. package/dist/magma-components/{p-d48d507b.system.entry.js → p-10fcea5e.system.entry.js} +1 -1
  493. package/dist/magma-components/{p-ebb104a1.entry.js → p-127fe680.entry.js} +1 -1
  494. package/dist/magma-components/{p-0e40732e.entry.js → p-12eb16ec.entry.js} +1 -1
  495. package/dist/magma-components/{p-2cff47b8.entry.js → p-13ffe71c.entry.js} +1 -1
  496. package/dist/magma-components/{p-4b7381ef.entry.js → p-144204e1.entry.js} +1 -1
  497. package/dist/magma-components/{p-35e5acff.system.entry.js → p-1756f4bc.system.entry.js} +1 -1
  498. package/dist/magma-components/{p-c92787d8.system.entry.js → p-19e5f4c3.system.entry.js} +1 -1
  499. package/dist/magma-components/{p-6d93c041.system.entry.js → p-1a3b821f.system.entry.js} +1 -1
  500. package/dist/magma-components/{p-beb1945f.system.entry.js → p-1aa6b055.system.entry.js} +1 -1
  501. package/dist/magma-components/{p-e79ad06f.entry.js → p-1ed308fc.entry.js} +1 -1
  502. package/dist/magma-components/{p-f3ca67d8.system.entry.js → p-1f7c5ab7.system.entry.js} +1 -1
  503. package/dist/magma-components/{p-9b542466.system.entry.js → p-2063dff7.system.entry.js} +1 -1
  504. package/dist/magma-components/{p-5fa6848c.entry.js → p-22c5a63b.entry.js} +1 -1
  505. package/dist/magma-components/{p-72b05a33.entry.js → p-23be61b8.entry.js} +1 -1
  506. package/dist/magma-components/{p-5a69383b.entry.js → p-25c8b684.entry.js} +1 -1
  507. package/dist/magma-components/p-26cd6ec8.system.js +1 -1
  508. package/dist/magma-components/{p-42986683.system.entry.js → p-28ddfbd3.system.entry.js} +1 -1
  509. package/dist/magma-components/{p-00f29074.entry.js → p-28ef20b4.entry.js} +1 -1
  510. package/dist/magma-components/{p-3c1d0160.system.entry.js → p-2d57f515.system.entry.js} +1 -1
  511. package/dist/magma-components/{p-df5c06e0.js → p-2dedb8fa.js} +1 -1
  512. package/dist/magma-components/{p-80fd7065.system.entry.js → p-2e51fde1.system.entry.js} +1 -1
  513. package/dist/magma-components/{p-85a5afa3.system.entry.js → p-2e8507ab.system.entry.js} +1 -1
  514. package/dist/magma-components/{p-0b821f3d.system.entry.js → p-31064475.system.entry.js} +1 -1
  515. package/dist/magma-components/{p-d369fa04.entry.js → p-31e33341.entry.js} +1 -1
  516. package/dist/magma-components/{p-882a97d8.system.js → p-323ba5fb.system.js} +1 -1
  517. package/dist/magma-components/{p-11eb10c4.entry.js → p-3290bb60.entry.js} +1 -1
  518. package/dist/magma-components/{p-d2ed7790.entry.js → p-329929bd.entry.js} +1 -1
  519. package/dist/magma-components/{p-9f961b1c.system.entry.js → p-337e6444.system.entry.js} +1 -1
  520. package/dist/magma-components/{p-4391f6e9.system.entry.js → p-35025ff8.system.entry.js} +1 -1
  521. package/dist/magma-components/p-358ede7f.system.entry.js +1 -0
  522. package/dist/magma-components/{p-2f5539ca.entry.js → p-370f0fdd.entry.js} +1 -1
  523. package/dist/magma-components/{p-01b3232b.system.entry.js → p-3d687658.system.entry.js} +1 -1
  524. package/dist/magma-components/{p-9a9822af.entry.js → p-42b75f26.entry.js} +1 -1
  525. package/dist/magma-components/{p-500bbf65.system.entry.js → p-42da7445.system.entry.js} +1 -1
  526. package/dist/magma-components/{p-6e43b31f.system.entry.js → p-44ca0625.system.entry.js} +1 -1
  527. package/dist/magma-components/p-471e1ac0.entry.js +1 -0
  528. package/dist/magma-components/{p-9982f020.system.entry.js → p-47376db8.system.entry.js} +1 -1
  529. package/dist/magma-components/{p-4720618f.system.entry.js → p-495057a5.system.entry.js} +1 -1
  530. package/dist/magma-components/{p-2186e1dc.system.entry.js → p-4c22fc2e.system.entry.js} +1 -1
  531. package/dist/magma-components/{p-4243e0da.entry.js → p-4c387bc1.entry.js} +1 -1
  532. package/dist/magma-components/{p-ea431a4e.entry.js → p-4d67a4ce.entry.js} +1 -1
  533. package/dist/magma-components/{p-55d9b195.system.entry.js → p-4eab6bb0.system.entry.js} +1 -1
  534. package/dist/magma-components/{p-bc57a875.entry.js → p-4fe5f7b6.entry.js} +1 -1
  535. package/dist/magma-components/{p-8581c96f.system.entry.js → p-4fe78b18.system.entry.js} +1 -1
  536. package/dist/magma-components/{p-eb642a91.system.entry.js → p-5014f1fb.system.entry.js} +1 -1
  537. package/dist/magma-components/{p-b03baae5.entry.js → p-5406ab26.entry.js} +1 -1
  538. package/dist/magma-components/{p-2d1dfea5.system.entry.js → p-55bedd2e.system.entry.js} +1 -1
  539. package/dist/magma-components/p-55f0a8a1.entry.js +1 -0
  540. package/dist/magma-components/{p-d4afc5d8.entry.js → p-5cf203bd.entry.js} +1 -1
  541. package/dist/magma-components/{p-13281423.entry.js → p-6081f9f1.entry.js} +1 -1
  542. package/dist/magma-components/{p-1eb0c1ae.system.entry.js → p-60d58044.system.entry.js} +1 -1
  543. package/dist/magma-components/{p-96283555.entry.js → p-615e2a35.entry.js} +1 -1
  544. package/dist/magma-components/{p-821d060d.entry.js → p-6176990a.entry.js} +1 -1
  545. package/dist/magma-components/{p-7a81a089.system.entry.js → p-639b3f08.system.entry.js} +1 -1
  546. package/dist/magma-components/{p-62e52542.entry.js → p-6668dff1.entry.js} +1 -1
  547. package/dist/magma-components/{p-46e32897.system.entry.js → p-6ac166ca.system.entry.js} +1 -1
  548. package/dist/magma-components/{p-bf675a67.system.entry.js → p-6ad547b8.system.entry.js} +1 -1
  549. package/dist/magma-components/{p-20792537.system.entry.js → p-6c0bb0ac.system.entry.js} +1 -1
  550. package/dist/magma-components/p-6d06c94a.system.entry.js +1 -0
  551. package/dist/magma-components/{p-640b3eb0.entry.js → p-717e04fe.entry.js} +1 -1
  552. package/dist/magma-components/{p-27307498.entry.js → p-74482672.entry.js} +1 -1
  553. package/dist/magma-components/p-76988cf0.entry.js +1 -0
  554. package/dist/magma-components/{p-c1a3d464.entry.js → p-7bd9cd6d.entry.js} +1 -1
  555. package/dist/magma-components/{p-98a3fdcd.system.entry.js → p-7f71e011.system.entry.js} +1 -1
  556. package/dist/magma-components/{p-da987dac.entry.js → p-81831452.entry.js} +1 -1
  557. package/dist/magma-components/{p-3453961a.system.entry.js → p-838d3f0c.system.entry.js} +1 -1
  558. package/dist/magma-components/{p-2b11f724.entry.js → p-84d8bbe2.entry.js} +1 -1
  559. package/dist/magma-components/{p-3495f4d9.system.entry.js → p-862d6e7b.system.entry.js} +1 -1
  560. package/dist/magma-components/{p-a66523f8.system.entry.js → p-86cc801d.system.entry.js} +1 -1
  561. package/dist/magma-components/{p-62fecb08.system.entry.js → p-881c6b67.system.entry.js} +1 -1
  562. package/dist/magma-components/{p-f1bd12fc.entry.js → p-889a054d.entry.js} +1 -1
  563. package/dist/magma-components/{p-13407df1.entry.js → p-89146878.entry.js} +1 -1
  564. package/dist/magma-components/{p-4c0f35ae.system.entry.js → p-89e16946.system.entry.js} +1 -1
  565. package/dist/magma-components/{p-e3059ce5.entry.js → p-92c15250.entry.js} +1 -1
  566. package/dist/magma-components/{p-474698f4.entry.js → p-92f2ae1b.entry.js} +1 -1
  567. package/dist/magma-components/{p-3421f2a8.system.entry.js → p-99354c73.system.entry.js} +1 -1
  568. package/dist/magma-components/{p-e521f356.entry.js → p-99788dd0.entry.js} +1 -1
  569. package/dist/magma-components/{p-feef2597.system.entry.js → p-9999e0fe.system.entry.js} +1 -1
  570. package/dist/magma-components/{p-36b10db4.entry.js → p-a6daa115.entry.js} +1 -1
  571. package/dist/magma-components/{p-fb4dc59b.entry.js → p-a7145767.entry.js} +1 -1
  572. package/dist/magma-components/{p-8823ee2c.system.entry.js → p-ac5f329f.system.entry.js} +1 -1
  573. package/dist/magma-components/{p-a2e2c6a7.system.entry.js → p-b0ef86f1.system.entry.js} +1 -1
  574. package/dist/magma-components/{p-6f4923a6.system.entry.js → p-b19dfe4f.system.entry.js} +1 -1
  575. package/dist/magma-components/{p-7f60d4a7.system.entry.js → p-b1a9ea15.system.entry.js} +1 -1
  576. package/dist/magma-components/{p-4524c9f4.entry.js → p-b35bd860.entry.js} +1 -1
  577. package/dist/magma-components/{p-b1f28a4b.entry.js → p-bdccc582.entry.js} +1 -1
  578. package/dist/magma-components/p-bf91885f.system.entry.js +1 -0
  579. package/dist/magma-components/{p-b370571f.entry.js → p-c1a03b57.entry.js} +1 -1
  580. package/dist/magma-components/{p-4071e51c.entry.js → p-c543b673.entry.js} +1 -1
  581. package/dist/magma-components/{p-b35b4cef.system.entry.js → p-c7bf8b1c.system.entry.js} +1 -1
  582. package/dist/magma-components/{p-f7af27c6.system.entry.js → p-c7d99ad5.system.entry.js} +1 -1
  583. package/dist/magma-components/{p-bd604ad3.entry.js → p-c97bce16.entry.js} +1 -1
  584. package/dist/magma-components/{p-00d4677a.entry.js → p-c9b125c5.entry.js} +1 -1
  585. package/dist/magma-components/p-ca52a8dd.system.entry.js +1 -0
  586. package/dist/magma-components/{p-35e21802.entry.js → p-ca88389f.entry.js} +1 -1
  587. package/dist/magma-components/{p-8cb86efd.entry.js → p-cb10b405.entry.js} +1 -1
  588. package/dist/magma-components/{p-624da686.entry.js → p-cd1aad9b.entry.js} +1 -1
  589. package/dist/magma-components/{p-bbad26c3.system.entry.js → p-cd996c6d.system.entry.js} +1 -1
  590. package/dist/magma-components/{p-780a5f88.system.entry.js → p-cdf3bd7d.system.entry.js} +1 -1
  591. package/dist/magma-components/{p-20d16a0f.system.entry.js → p-ce5959b4.system.entry.js} +1 -1
  592. package/dist/magma-components/{p-6568531a.entry.js → p-ce7332b0.entry.js} +1 -1
  593. package/dist/magma-components/{p-f9450ce4.entry.js → p-cf09a880.entry.js} +1 -1
  594. package/dist/magma-components/{p-ef4131d9.entry.js → p-cf3b59cb.entry.js} +1 -1
  595. package/dist/magma-components/{p-7ce597ac.system.entry.js → p-cfe04065.system.entry.js} +1 -1
  596. package/dist/magma-components/{p-7c48015c.entry.js → p-d1ca25ad.entry.js} +1 -1
  597. package/dist/magma-components/{p-4d3a2cb3.system.entry.js → p-d1ed3c80.system.entry.js} +1 -1
  598. package/dist/magma-components/{p-9f921773.entry.js → p-d50398c7.entry.js} +1 -1
  599. package/dist/magma-components/p-d6b2a3fd.system.js +1 -0
  600. package/dist/magma-components/{p-0e98680f.entry.js → p-d809143d.entry.js} +1 -1
  601. package/dist/magma-components/{p-2d875595.system.entry.js → p-dc17f8bb.system.entry.js} +1 -1
  602. package/dist/magma-components/{p-692985ad.entry.js → p-dd08e161.entry.js} +1 -1
  603. package/dist/magma-components/{p-fdd10055.entry.js → p-e275baec.entry.js} +1 -1
  604. package/dist/magma-components/p-e46e6d8c.system.entry.js +1 -0
  605. package/dist/magma-components/{p-12dbf8cb.system.entry.js → p-e5b99b2f.system.entry.js} +1 -1
  606. package/dist/magma-components/{p-1ee3741a.system.entry.js → p-e9af7047.system.entry.js} +1 -1
  607. package/dist/magma-components/{p-6040abb9.js → p-edd2d1ad.js} +1 -1
  608. package/dist/magma-components/{p-d6c7f107.system.entry.js → p-ee7ccede.system.entry.js} +1 -1
  609. package/dist/magma-components/{p-e76b3d63.entry.js → p-eef3b47c.entry.js} +1 -1
  610. package/dist/magma-components/{p-1d2ef203.system.entry.js → p-ef28cf05.system.entry.js} +1 -1
  611. package/dist/magma-components/{p-9a60a899.entry.js → p-f0d1ec10.entry.js} +1 -1
  612. package/dist/magma-components/{p-7557aa42.entry.js → p-f11d8f6d.entry.js} +1 -1
  613. package/dist/magma-components/{p-b986a6c2.entry.js → p-f1227e58.entry.js} +1 -1
  614. package/dist/magma-components/{p-75ee38e7.entry.js → p-f26c2da4.entry.js} +1 -1
  615. package/dist/magma-components/{p-63f6704b.system.entry.js → p-f326ae49.system.entry.js} +1 -1
  616. package/dist/magma-components/{p-258ca966.entry.js → p-fa4bd146.entry.js} +1 -1
  617. package/dist/magma-components/{p-555596f6.system.entry.js → p-fb829b57.system.entry.js} +1 -1
  618. package/dist/magma-components/{p-fde47f0b.entry.js → p-fbc8d55b.entry.js} +1 -1
  619. package/dist/magma-components/{p-a85c5d17.entry.js → p-fe2f494e.entry.js} +1 -1
  620. package/dist/stats.json +1367 -1067
  621. package/dist/types/components/mds-accordion/test/mds-accordion.stories.d.ts +21 -4
  622. package/dist/types/components/mds-accordion-item/test/mds-accordion-item.stories.d.ts +13 -2
  623. package/dist/types/components/mds-accordion-timer/test/mds-accordion-timer.stories.d.ts +47 -6
  624. package/dist/types/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.d.ts +42 -3
  625. package/dist/types/components/mds-author/test/mds-author.stories.d.ts +6 -2
  626. package/dist/types/components/mds-avatar/test/mds-avatar.stories.d.ts +41 -6
  627. package/dist/types/components/mds-avatar-stack/test/mds-avatar-stack.stories.d.ts +16 -3
  628. package/dist/types/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.d.ts +27 -4
  629. package/dist/types/components/mds-badge/test/mds-badge.stories.d.ts +7 -1
  630. package/dist/types/components/mds-banner/test/mds-banner.stories.d.ts +66 -10
  631. package/dist/types/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.d.ts +19 -3
  632. package/dist/types/components/mds-bibliography/test/mds-bibliography.stories.d.ts +47 -5
  633. package/dist/types/components/mds-breadcrumb/test/mds-breadcrumb.stories.d.ts +3 -1
  634. package/dist/types/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.d.ts +9 -2
  635. package/dist/types/components/mds-button/test/mds-button.stories.d.ts +130 -19
  636. package/dist/types/components/mds-button-dropdown/test/mds-button-dropdown.stories.d.ts +8 -1
  637. package/dist/types/components/mds-button-group/test/mds-button-group.stories.d.ts +6 -2
  638. package/dist/types/components/mds-calendar/test/mds-calendar.stories.d.ts +7 -1
  639. package/dist/types/components/mds-card/test/mds-card.stories.d.ts +54 -17
  640. package/dist/types/components/mds-chip/mds-chip.d.ts +4 -0
  641. package/dist/types/components/mds-chip/meta/interface.d.ts +1 -0
  642. package/dist/types/components/mds-chip/test/mds-chip.stories.d.ts +47 -6
  643. package/dist/types/components/mds-details/test/mds-details.stories.d.ts +9 -2
  644. package/dist/types/components/mds-dropdown/test/mds-dropdown.stories.d.ts +177 -16
  645. package/dist/types/components/mds-emoji/test/mds-emoji.stories.d.ts +6 -2
  646. package/dist/types/components/mds-entity/test/mds-entity.stories.d.ts +30 -5
  647. package/dist/types/components/mds-file/test/mds-file.stories.d.ts +35 -5
  648. package/dist/types/components/mds-file-preview/test/mds-file-preview.stories.d.ts +92 -11
  649. package/dist/types/components/mds-filter/test/mds-filter.stories.d.ts +26 -4
  650. package/dist/types/components/mds-filter-item/test/mds-filter-item.stories.d.ts +13 -2
  651. package/dist/types/components/mds-header/test/mds-header.stories.d.ts +26 -4
  652. package/dist/types/components/mds-header-bar/test/mds-header-bar.stories.d.ts +3 -1
  653. package/dist/types/components/mds-help/test/mds-help.stories.d.ts +9 -2
  654. package/dist/types/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.d.ts +21 -4
  655. package/dist/types/components/mds-hr/test/mds-hr.stories.d.ts +9 -2
  656. package/dist/types/components/mds-icon/test/mds-icon.stories.d.ts +39 -7
  657. package/dist/types/components/mds-img/test/mds-img-accessibility.stories.d.ts +24 -4
  658. package/dist/types/components/mds-img/test/mds-img.stories.d.ts +54 -7
  659. package/dist/types/components/mds-input/test/mds-input.stories.d.ts +175 -23
  660. package/dist/types/components/mds-input-date/mds-input-date.d.ts +23 -6
  661. package/dist/types/components/mds-input-date/test/mds-input-date.stories.d.ts +49 -3
  662. package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +22 -4
  663. package/dist/types/components/mds-input-field/test/mds-input-field.stories.d.ts +42 -6
  664. package/dist/types/components/mds-input-otp/test/mds-input-otp.stories.d.ts +18 -3
  665. package/dist/types/components/mds-input-range/test/mds-input-range.stories.d.ts +39 -8
  666. package/dist/types/components/mds-input-select/test/mds-input-select.stories.d.ts +33 -6
  667. package/dist/types/components/mds-input-switch/test/mds-input-switch.stories.d.ts +100 -11
  668. package/dist/types/components/mds-input-tip/test/mds-input-tip.stories.d.ts +3 -1
  669. package/dist/types/components/mds-input-tip-item/test/mds-input-tip.stories.d.ts +3 -1
  670. package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +4 -0
  671. package/dist/types/components/mds-input-upload/test/mds-input-upload.stories.d.ts +21 -3
  672. package/dist/types/components/mds-keyboard/test/mds-keyboard.stories.d.ts +15 -4
  673. package/dist/types/components/mds-keyboard-key/test/mds-keyboard-key.stories.d.ts +6 -1
  674. package/dist/types/components/mds-kpi/test/mds-kpi.stories.d.ts +6 -2
  675. package/dist/types/components/mds-kpi-item/test/mds-kpi-item.stories.d.ts +8 -1
  676. package/dist/types/components/mds-label/test/mds-label.stories.d.ts +28 -6
  677. package/dist/types/components/mds-list/test/mds-list.stories.d.ts +3 -1
  678. package/dist/types/components/mds-list-item/test/mds-list-item.stories.d.ts +3 -1
  679. package/dist/types/components/mds-mention/test/mds-mention.stories.d.ts +6 -1
  680. package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +49 -8
  681. package/dist/types/components/mds-note/test/mds-note.stories.d.ts +12 -3
  682. package/dist/types/components/mds-notification/test/mds-notification.stories.d.ts +40 -6
  683. package/dist/types/components/mds-paginator/test/mds-paginator.stories.d.ts +20 -2
  684. package/dist/types/components/mds-policy-ai/test/mds-policy.stories.d.ts +55 -9
  685. package/dist/types/components/mds-pref/test/mds-pref.stories.d.ts +7 -2
  686. package/dist/types/components/mds-pref-animation/test/mds-pref-animation.stories.d.ts +4 -1
  687. package/dist/types/components/mds-pref-consumption/test/mds-pref-consumption.stories.d.ts +4 -1
  688. package/dist/types/components/mds-pref-contrast/test/mds-pref-contrast.stories.d.ts +4 -1
  689. package/dist/types/components/mds-pref-language/test/mds-pref-language.stories.d.ts +4 -1
  690. package/dist/types/components/mds-pref-theme/test/mds-pref-theme.stories.d.ts +4 -1
  691. package/dist/types/components/mds-price-table/test/mds-price-table.stories.d.ts +6 -1
  692. package/dist/types/components/mds-price-table-features/test/mds-price-table-features.stories.d.ts +6 -1
  693. package/dist/types/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.d.ts +6 -1
  694. package/dist/types/components/mds-price-table-header/test/mds-price-table-header.stories.d.ts +3 -1
  695. package/dist/types/components/mds-price-table-list/test/mds-price-table-list.stories.d.ts +6 -2
  696. package/dist/types/components/mds-progress/test/mds-progress.stories.d.ts +6 -1
  697. package/dist/types/components/mds-push-notification/test/mds-push-notification.stories.d.ts +15 -3
  698. package/dist/types/components/mds-push-notification-item/test/mds-push-notification-item.stories.d.ts +118 -11
  699. package/dist/types/components/mds-quote/test/mds-quote.stories.d.ts +14 -2
  700. package/dist/types/components/mds-radial-menu/test/mds-radial-menu.stories.d.ts +26 -4
  701. package/dist/types/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.d.ts +6 -1
  702. package/dist/types/components/mds-separator/test/mds-separator.stories.d.ts +3 -1
  703. package/dist/types/components/mds-spinner/test/mds-spinner.stories.d.ts +23 -2
  704. package/dist/types/components/mds-status-bar/test/mds-status-bar.stories.d.ts +6 -1
  705. package/dist/types/components/mds-stepper-bar/test/mds-stepper-bar.stories.d.ts +9 -2
  706. package/dist/types/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.d.ts +48 -6
  707. package/dist/types/components/mds-tab/test/mds-tab.stories.d.ts +54 -12
  708. package/dist/types/components/mds-tab-bar/test/mds-tab-bar.stories.d.ts +3 -1
  709. package/dist/types/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.d.ts +3 -1
  710. package/dist/types/components/mds-tab-item/test/mds-tab-item.stories.d.ts +15 -3
  711. package/dist/types/components/mds-table/test/mds-table.stories.d.ts +38 -7
  712. package/dist/types/components/mds-text/test/mds-text.stories.d.ts +131 -22
  713. package/dist/types/components/mds-toast/test/mds-toast.stories.d.ts +6 -2
  714. package/dist/types/components/mds-tooltip/test/mds-tooltip.stories.d.ts +110 -11
  715. package/dist/types/components/mds-tree/test/mds-tree-apk.stories.d.ts +12 -4
  716. package/dist/types/components/mds-tree/test/mds-tree.stories.d.ts +27 -3
  717. package/dist/types/components/mds-tree-item/test/mds-tree-item.stories.d.ts +10 -2
  718. package/dist/types/components/mds-url-view/test/mds-url-view.stories.d.ts +20 -3
  719. package/dist/types/components/mds-usage/test/mds-usage.stories.d.ts +15 -3
  720. package/dist/types/components/mds-video-wall/test/mds-video-wall.stories.d.ts +112 -8
  721. package/dist/types/components/mds-zero/test/mds-zero.stories.d.ts +3 -1
  722. package/dist/types/components.d.ts +41 -0
  723. package/dist/types/storybook/components-version.stories.d.ts +3 -1
  724. package/dist/types/storybook/example-page.stories.d.ts +3 -1
  725. package/dist/types/storybook/fouc-hydrated.stories.d.ts +3 -1
  726. package/dist/types/storybook/input-form.stories.d.ts +3 -1
  727. package/dist/types/storybook/same-childrend-slot-names.stories.d.ts +3 -1
  728. package/package.json +10 -12
  729. package/dist/esm-es5/floating-ui.dom.esm-e0f44fc0.js +0 -1
  730. package/dist/magma-components/p-3831d174.system.entry.js +0 -1
  731. package/dist/magma-components/p-5572a1d2.system.js +0 -1
  732. package/dist/magma-components/p-5935557f.entry.js +0 -1
  733. package/dist/magma-components/p-70a2b929.system.entry.js +0 -1
  734. package/dist/magma-components/p-7fb2cd70.entry.js +0 -1
  735. package/dist/magma-components/p-86d703f7.entry.js +0 -1
  736. package/dist/magma-components/p-961c011d.system.entry.js +0 -1
  737. package/dist/magma-components/p-ac059e66.system.entry.js +0 -1
  738. package/dist/magma-components/p-b326b3d7.entry.js +0 -1
  739. 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: '1fd68fe6768324adc1fdc94a83e21b540c02e3aa', "aria-disabled": this.disabled ? 'true' : 'false' }, this.icon &&
132
- h("div", { key: '970432deda3880f256adc1724d6c7e16b23f0ca9', "aria-hidden": "true", class: "icon-area" }, h("mds-icon", { key: '62937d3e14206cca3b66eeb24cc0bb995c933318', class: "icon", name: this.icon })), this.clickable
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: '0fcf99ae3e741190c8138154c33e06b2f27a6a1f', class: "button-delete", icon: miBaselineCancel, onClick: this.onDeleteHandler.bind(this), title: `${this.t.get('deleteLabel')} ${this.label}`, variant: "dark", tone: "quiet", size: "sm" })));
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 => h("mds-chip", Object.assign({}, args, { onDelete: () => { console.info('onDelete'); } }));
52
- export const Default = Template.bind({});
53
- Default.args = {
54
- label: 'Bovaro del Bernese',
55
- icon: 'mi/baseline/pets',
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 Selected = Template.bind({});
58
- Selected.args = {
59
- label: 'Bovaro del Bernese',
60
- icon: 'mi/baseline/pets',
61
- selected: true,
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 Icon = Template.bind({});
64
- Icon.args = {
65
- label: 'Bovaro del Bernese',
66
- icon: 'mi/baseline/eco',
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 Deletable = Template.bind({});
69
- Deletable.args = {
70
- deletable: true,
71
- label: 'Bovaro del Bernese',
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 Clickable = Template.bind({});
74
- Clickable.args = {
75
- clickable: true,
76
- selectable: true,
77
- icon: 'mi/baseline/eco',
78
- label: 'Hover me to interact',
91
+ export const Deletable = {
92
+ render: Template,
93
+ args: {
94
+ deletable: true,
95
+ label: 'Bovaro del Bernese',
96
+ },
79
97
  };
80
- export const FullyInteractive = Template.bind({});
81
- FullyInteractive.args = {
82
- clickable: true,
83
- deletable: true,
84
- icon: 'mi/baseline/downhill-skiing',
85
- label: 'Downhill skiing',
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 = Template.bind({});
13
- export const Opened = Template.bind({});
14
- Opened.args = {
15
- opened: true,
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: '' }, h("mds-text", null, "Ciao")));
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).fill(null).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))))));
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(false);
99
- 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, onMdsModalClose: () => { setModalOpen(false); } }, 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
+ 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: '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"))));
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: '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"));
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 = Template.bind({});
109
- Default.args = {
110
- class: 'max-w-[350px] w-full',
111
- layout: 'flex justify-center',
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 = Template.bind({});
114
- Arrow.args = {
115
- class: 'max-w-[350px] w-full',
116
- arrow: true,
117
- backdrop: true,
118
- 'shift-padding': 32,
119
- layout: 'flex justify-start',
120
- visible: false,
121
- };
122
- export const ArrowPadding = Template.bind({});
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 Placement = TemplatePlacement.bind({});
170
- Placement.args = {
171
- class: 'max-w-[350px] w-full',
172
- layout: 'flex justify-center items-center',
173
- placement: 'right-start',
174
- backdrop: true,
175
- visible: false,
176
- };
177
- export const Shift = Template.bind({});
178
- Shift.args = {
179
- class: 'max-w-[350px] w-full',
180
- layout: 'flex justify-end',
181
- shift: true,
182
- visible: false,
183
- };
184
- export const ShiftPadding = Template.bind({});
185
- ShiftPadding.args = {
186
- class: 'max-w-[350px] w-full',
187
- layout: 'flex justify-end',
188
- shift: true,
189
- 'shift-padding': 50,
190
- visible: false,
191
- };
192
- export const Smooth = Template.bind({});
193
- Smooth.args = {
194
- class: 'max-w-[350px] w-full',
195
- layout: 'flex justify-start h-[100vh] mt-[25vh]',
196
- smooth: true,
197
- visible: false,
198
- };
199
- export const Strategy = TemplateStrategy.bind({});
200
- Strategy.args = {
201
- class: 'max-w-[350px] w-full',
202
- layout: 'flex justify-start',
203
- visible: false,
204
- };
205
- export const NestedBestPractice = TemplateNested.bind({});
206
- NestedBestPractice.args = {
207
- backdrop: true,
208
- strategy: 'fixed',
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 = TemplateModalNested.bind({});
214
- ModalNested.args = {};
215
- export const Target = TemplateTarget.bind({});
216
- Target.args = {};
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: '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" })));
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: '#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: () => { openModalResults(); } })), 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 ? 'Ecco la risposta! Ricorda che posso commettere errori, pertanto verifica sempre le fonti se non ti sento sicuro!' : '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" })))) :
142
- 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 })))));
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({});