@maggioli-design-system/magma 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1515) hide show
  1. package/AGENTS.md +19 -4
  2. package/CHANGELOG.md +61 -0
  3. package/LICENSE +21 -0
  4. package/agents/assets.md +1 -1
  5. package/agents/color.md +22 -4
  6. package/agents/components.md +164 -92
  7. package/agents/conventions.md +24 -7
  8. package/agents/install.md +7 -0
  9. package/agents/lint.md +270 -0
  10. package/agents/mcp.md +103 -0
  11. package/agents/theming.md +8 -0
  12. package/dist/cjs/index-BQNHYWJg.js +4 -0
  13. package/dist/cjs/{index-CWTZb9W2.js → index-Bg68W-da.js} +1 -1
  14. package/dist/cjs/loader.cjs.js +1 -1
  15. package/dist/cjs/{locale-Os4wg65H.js → locale-CaR39iYg.js} +12 -6
  16. package/dist/cjs/magma-components.cjs.js +1 -1
  17. package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
  18. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
  19. package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
  20. package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
  21. package/dist/cjs/mds-author.cjs.entry.js +1 -1
  22. package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
  23. package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
  24. package/dist/cjs/mds-avatar.cjs.entry.js +1 -1
  25. package/dist/cjs/mds-badge.cjs.entry.js +1 -1
  26. package/dist/cjs/mds-banner_3.cjs.entry.js +4 -4
  27. package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
  28. package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
  29. package/dist/cjs/mds-book.cjs.entry.js +703 -0
  30. package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
  31. package/dist/cjs/mds-breadcrumb.cjs.entry.js +2 -2
  32. package/dist/cjs/mds-button-dropdown.cjs.entry.js +2 -2
  33. package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
  34. package/dist/cjs/mds-button_3.cjs.entry.js +6 -6
  35. package/dist/cjs/mds-calendar_2.cjs.entry.js +7 -7
  36. package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
  37. package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
  38. package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
  39. package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
  40. package/dist/cjs/mds-card.cjs.entry.js +1 -1
  41. package/dist/cjs/mds-details.cjs.entry.js +1 -1
  42. package/dist/cjs/mds-dropdown.cjs.entry.js +2 -2
  43. package/dist/cjs/mds-emoji.cjs.entry.js +2 -2
  44. package/dist/cjs/mds-entity.cjs.entry.js +1 -1
  45. package/dist/cjs/mds-file-preview.cjs.entry.js +3 -3
  46. package/dist/cjs/mds-file.cjs.entry.js +2 -2
  47. package/dist/cjs/mds-filter-item.cjs.entry.js +2 -2
  48. package/dist/cjs/mds-filter.cjs.entry.js +2 -2
  49. package/dist/cjs/mds-header-bar.cjs.entry.js +2 -2
  50. package/dist/cjs/mds-header.cjs.entry.js +2 -2
  51. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +2 -2
  52. package/dist/cjs/mds-hr.cjs.entry.js +1 -1
  53. package/dist/cjs/mds-img.cjs.entry.js +1 -1
  54. package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
  55. package/dist/cjs/mds-input-date-range.cjs.entry.js +3 -3
  56. package/dist/cjs/mds-input-date.cjs.entry.js +4 -4
  57. package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
  58. package/dist/cjs/mds-input-otp.cjs.entry.js +2 -2
  59. package/dist/cjs/mds-input-range.cjs.entry.js +2 -2
  60. package/dist/cjs/mds-input-select.cjs.entry.js +9 -5
  61. package/dist/cjs/mds-input-switch_2.cjs.entry.js +3 -3
  62. package/dist/cjs/mds-input-tip_2.cjs.entry.js +4 -4
  63. package/dist/cjs/mds-input-upload.cjs.entry.js +6 -6
  64. package/dist/cjs/mds-input.cjs.entry.js +154 -37
  65. package/dist/cjs/mds-keyboard-key.cjs.entry.js +3 -3
  66. package/dist/cjs/mds-keyboard.cjs.entry.js +8 -4
  67. package/dist/cjs/mds-kpi-item.cjs.entry.js +1 -1
  68. package/dist/cjs/mds-kpi.cjs.entry.js +1 -1
  69. package/dist/cjs/mds-label.cjs.entry.js +2 -2
  70. package/dist/cjs/mds-link.cjs.entry.js +4 -4
  71. package/dist/cjs/mds-list-item.cjs.entry.js +1 -1
  72. package/dist/cjs/mds-list.cjs.entry.js +1 -1
  73. package/dist/cjs/mds-mention.cjs.entry.js +2 -2
  74. package/dist/cjs/mds-modal.cjs.entry.js +4 -4
  75. package/dist/cjs/mds-note.cjs.entry.js +2 -2
  76. package/dist/cjs/mds-notification.cjs.entry.js +1 -1
  77. package/dist/cjs/mds-paginator-item.cjs.entry.js +1 -1
  78. package/dist/cjs/mds-paginator.cjs.entry.js +2 -2
  79. package/dist/cjs/mds-policy-ai.cjs.entry.js +2 -2
  80. package/dist/cjs/mds-pref-animation.cjs.entry.js +2 -2
  81. package/dist/cjs/mds-pref-consumption.cjs.entry.js +2 -2
  82. package/dist/cjs/mds-pref-contrast.cjs.entry.js +2 -2
  83. package/dist/cjs/mds-pref-language-item.cjs.entry.js +2 -2
  84. package/dist/cjs/mds-pref-language.cjs.entry.js +2 -2
  85. package/dist/cjs/mds-pref-mode.cjs.entry.js +2 -2
  86. package/dist/cjs/mds-pref-theme-item.cjs.entry.js +1 -1
  87. package/dist/cjs/mds-pref-theme.cjs.entry.js +2 -2
  88. package/dist/cjs/mds-pref.cjs.entry.js +2 -2
  89. package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +1 -1
  90. package/dist/cjs/mds-price-table-features-row.cjs.entry.js +1 -1
  91. package/dist/cjs/mds-price-table-features.cjs.entry.js +1 -1
  92. package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
  93. package/dist/cjs/mds-price-table-list-item.cjs.entry.js +1 -1
  94. package/dist/cjs/mds-price-table-list.cjs.entry.js +1 -1
  95. package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
  96. package/dist/cjs/mds-progress_2.cjs.entry.js +2 -2
  97. package/dist/cjs/mds-push-notification-item.cjs.entry.js +3 -3
  98. package/dist/cjs/mds-push-notification.cjs.entry.js +3 -3
  99. package/dist/cjs/mds-quote.cjs.entry.js +1 -1
  100. package/dist/cjs/mds-radial-menu-item.cjs.entry.js +1 -1
  101. package/dist/cjs/mds-radial-menu.cjs.entry.js +2 -2
  102. package/dist/cjs/mds-separator.cjs.entry.js +1 -1
  103. package/dist/cjs/mds-status-bar.cjs.entry.js +2 -2
  104. package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +7 -5
  105. package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
  106. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +1 -1
  107. package/dist/cjs/mds-tab-bar.cjs.entry.js +1 -1
  108. package/dist/cjs/mds-tab_2.cjs.entry.js +4 -4
  109. package/dist/cjs/mds-table-body.cjs.entry.js +1 -1
  110. package/dist/cjs/mds-table-footer.cjs.entry.js +1 -1
  111. package/dist/cjs/mds-table-header-cell.cjs.entry.js +1 -1
  112. package/dist/cjs/mds-table-header.cjs.entry.js +2 -2
  113. package/dist/cjs/mds-table-row.cjs.entry.js +3 -3
  114. package/dist/cjs/mds-table.cjs.entry.js +2 -2
  115. package/dist/cjs/mds-text.cjs.entry.js +1 -1
  116. package/dist/cjs/mds-toast-region.cjs.entry.js +1 -1
  117. package/dist/cjs/mds-toast.cjs.entry.js +2 -2
  118. package/dist/cjs/mds-tooltip.cjs.entry.js +2 -2
  119. package/dist/cjs/mds-tree-item.cjs.entry.js +2 -2
  120. package/dist/cjs/mds-tree.cjs.entry.js +1 -1
  121. package/dist/cjs/mds-url-view.cjs.entry.js +2 -2
  122. package/dist/cjs/mds-usage.cjs.entry.js +2 -2
  123. package/dist/cjs/mds-video-wall.cjs.entry.js +1 -1
  124. package/dist/cjs/mds-zero.cjs.entry.js +1 -1
  125. package/dist/collection/collection-manifest.json +1 -0
  126. package/dist/collection/common/locale.js +12 -6
  127. package/dist/collection/components/mds-accordion/AGENTS.md +3 -5
  128. package/dist/collection/components/mds-accordion/antipattern.md +1 -2
  129. package/dist/collection/components/mds-accordion/documentation.json +21 -10
  130. package/dist/collection/components/mds-accordion/mds-accordion.css +3 -3
  131. package/dist/collection/components/mds-accordion/mds-accordion.js +2 -1
  132. package/dist/collection/components/mds-accordion/pattern.md +1 -4
  133. package/dist/collection/components/mds-accordion-item/AGENTS.md +3 -7
  134. package/dist/collection/components/mds-accordion-item/documentation.json +20 -9
  135. package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +1 -1
  136. package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +2 -1
  137. package/dist/collection/components/mds-accordion-item/pattern.md +3 -5
  138. package/dist/collection/components/mds-accordion-timer/AGENTS.md +3 -5
  139. package/dist/collection/components/mds-accordion-timer/antipattern.md +5 -3
  140. package/dist/collection/components/mds-accordion-timer/documentation.json +17 -8
  141. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +1 -1
  142. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +2 -1
  143. package/dist/collection/components/mds-accordion-timer/pattern.md +6 -6
  144. package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +3 -5
  145. package/dist/collection/components/mds-accordion-timer-item/antipattern.md +1 -2
  146. package/dist/collection/components/mds-accordion-timer-item/documentation.json +17 -8
  147. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +1 -1
  148. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +2 -1
  149. package/dist/collection/components/mds-accordion-timer-item/pattern.md +1 -5
  150. package/dist/collection/components/mds-author/AGENTS.md +1 -1
  151. package/dist/collection/components/mds-author/documentation.json +5 -1
  152. package/dist/collection/components/mds-author/mds-author.js +2 -1
  153. package/dist/collection/components/mds-avatar/AGENTS.md +3 -3
  154. package/dist/collection/components/mds-avatar/antipattern.md +1 -1
  155. package/dist/collection/components/mds-avatar/documentation.json +17 -8
  156. package/dist/collection/components/mds-avatar/mds-avatar.css +3 -3
  157. package/dist/collection/components/mds-avatar/mds-avatar.js +2 -1
  158. package/dist/collection/components/mds-avatar/pattern.md +1 -2
  159. package/dist/collection/components/mds-avatar-stack/AGENTS.md +3 -12
  160. package/dist/collection/components/mds-avatar-stack/antipattern.md +1 -2
  161. package/dist/collection/components/mds-avatar-stack/documentation.json +31 -15
  162. package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +1 -1
  163. package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +2 -1
  164. package/dist/collection/components/mds-avatar-stack/pattern.md +2 -5
  165. package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +3 -6
  166. package/dist/collection/components/mds-avatar-stack-item/documentation.json +22 -10
  167. package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.css +2 -2
  168. package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.js +4 -1
  169. package/dist/collection/components/mds-avatar-stack-item/pattern.md +4 -5
  170. package/dist/collection/components/mds-badge/AGENTS.md +3 -3
  171. package/dist/collection/components/mds-badge/antipattern.md +1 -1
  172. package/dist/collection/components/mds-badge/documentation.json +17 -8
  173. package/dist/collection/components/mds-badge/mds-badge.css +3 -3
  174. package/dist/collection/components/mds-badge/mds-badge.js +2 -1
  175. package/dist/collection/components/mds-badge/pattern.md +4 -7
  176. package/dist/collection/components/mds-banner/AGENTS.md +3 -8
  177. package/dist/collection/components/mds-banner/antipattern.md +1 -2
  178. package/dist/collection/components/mds-banner/documentation.json +29 -14
  179. package/dist/collection/components/mds-banner/mds-banner.css +4 -4
  180. package/dist/collection/components/mds-banner/mds-banner.js +2 -1
  181. package/dist/collection/components/mds-banner/pattern.md +1 -2
  182. package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
  183. package/dist/collection/components/mds-benchmark-bar/documentation.json +5 -1
  184. package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +2 -1
  185. package/dist/collection/components/mds-bibliography/AGENTS.md +3 -3
  186. package/dist/collection/components/mds-bibliography/antipattern.md +1 -3
  187. package/dist/collection/components/mds-bibliography/documentation.json +15 -7
  188. package/dist/collection/components/mds-bibliography/mds-bibliography.css +1 -1
  189. package/dist/collection/components/mds-bibliography/mds-bibliography.js +4 -1
  190. package/dist/collection/components/mds-bibliography/pattern.md +1 -3
  191. package/dist/collection/components/mds-book/AGENTS.md +79 -0
  192. package/dist/collection/components/mds-book/antipattern.md +88 -0
  193. package/dist/collection/components/mds-book/documentation.json +482 -0
  194. package/dist/collection/components/mds-book/mds-book.css +901 -0
  195. package/dist/collection/components/mds-book/mds-book.js +731 -0
  196. package/dist/collection/components/mds-book/meta/dictionary.js +5 -0
  197. package/dist/collection/components/mds-book/meta/format.js +57 -0
  198. package/dist/collection/components/mds-book/meta/pose.js +107 -0
  199. package/dist/collection/components/mds-book/meta/spine.js +61 -0
  200. package/dist/collection/components/mds-book/meta/types.js +1 -0
  201. package/dist/collection/components/mds-book/meta/volume.js +23 -0
  202. package/dist/collection/components/mds-book/pattern.md +111 -0
  203. package/dist/collection/components/mds-breadcrumb/AGENTS.md +3 -14
  204. package/dist/collection/components/mds-breadcrumb/antipattern.md +1 -1
  205. package/dist/collection/components/mds-breadcrumb/documentation.json +28 -14
  206. package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +2 -1
  207. package/dist/collection/components/mds-breadcrumb/pattern.md +6 -6
  208. package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +3 -11
  209. package/dist/collection/components/mds-breadcrumb-item/antipattern.md +3 -3
  210. package/dist/collection/components/mds-breadcrumb-item/documentation.json +22 -11
  211. package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +2 -1
  212. package/dist/collection/components/mds-breadcrumb-item/pattern.md +12 -14
  213. package/dist/collection/components/mds-button/AGENTS.md +3 -12
  214. package/dist/collection/components/mds-button/documentation.json +37 -17
  215. package/dist/collection/components/mds-button/mds-button.css +5 -5
  216. package/dist/collection/components/mds-button/mds-button.js +5 -4
  217. package/dist/collection/components/mds-button-dropdown/AGENTS.md +1 -1
  218. package/dist/collection/components/mds-button-dropdown/documentation.json +7 -2
  219. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +1 -1
  220. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +2 -1
  221. package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
  222. package/dist/collection/components/mds-button-group/documentation.json +5 -1
  223. package/dist/collection/components/mds-button-group/mds-button-group.js +2 -1
  224. package/dist/collection/components/mds-calendar/AGENTS.md +3 -6
  225. package/dist/collection/components/mds-calendar/antipattern.md +1 -1
  226. package/dist/collection/components/mds-calendar/documentation.json +25 -12
  227. package/dist/collection/components/mds-calendar/mds-calendar.css +4 -4
  228. package/dist/collection/components/mds-calendar/mds-calendar.js +6 -5
  229. package/dist/collection/components/mds-calendar/pattern.md +1 -3
  230. package/dist/collection/components/mds-calendar-cell/AGENTS.md +3 -35
  231. package/dist/collection/components/mds-calendar-cell/antipattern.md +1 -2
  232. package/dist/collection/components/mds-calendar-cell/documentation.json +81 -40
  233. package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +2 -2
  234. package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +4 -1
  235. package/dist/collection/components/mds-calendar-cell/pattern.md +4 -5
  236. package/dist/collection/components/mds-card/AGENTS.md +1 -1
  237. package/dist/collection/components/mds-card/antipattern.md +2 -2
  238. package/dist/collection/components/mds-card/documentation.json +13 -6
  239. package/dist/collection/components/mds-card/mds-card.css +3 -3
  240. package/dist/collection/components/mds-card/mds-card.js +2 -1
  241. package/dist/collection/components/mds-card/pattern.md +4 -4
  242. package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
  243. package/dist/collection/components/mds-card-content/documentation.json +5 -1
  244. package/dist/collection/components/mds-card-content/mds-card-content.js +2 -1
  245. package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
  246. package/dist/collection/components/mds-card-footer/documentation.json +5 -1
  247. package/dist/collection/components/mds-card-footer/mds-card-footer.js +2 -1
  248. package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
  249. package/dist/collection/components/mds-card-header/documentation.json +5 -1
  250. package/dist/collection/components/mds-card-header/mds-card-header.js +2 -1
  251. package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
  252. package/dist/collection/components/mds-card-media/documentation.json +5 -1
  253. package/dist/collection/components/mds-card-media/mds-card-media.js +2 -1
  254. package/dist/collection/components/mds-chip/AGENTS.md +3 -10
  255. package/dist/collection/components/mds-chip/antipattern.md +2 -3
  256. package/dist/collection/components/mds-chip/documentation.json +35 -17
  257. package/dist/collection/components/mds-chip/mds-chip.css +4 -4
  258. package/dist/collection/components/mds-chip/mds-chip.js +4 -1
  259. package/dist/collection/components/mds-chip/pattern.md +4 -6
  260. package/dist/collection/components/mds-details/AGENTS.md +3 -7
  261. package/dist/collection/components/mds-details/antipattern.md +1 -5
  262. package/dist/collection/components/mds-details/documentation.json +14 -7
  263. package/dist/collection/components/mds-details/mds-details.js +2 -1
  264. package/dist/collection/components/mds-details/pattern.md +4 -6
  265. package/dist/collection/components/mds-dropdown/AGENTS.md +3 -9
  266. package/dist/collection/components/mds-dropdown/antipattern.md +1 -1
  267. package/dist/collection/components/mds-dropdown/documentation.json +31 -15
  268. package/dist/collection/components/mds-dropdown/mds-dropdown.css +4 -4
  269. package/dist/collection/components/mds-dropdown/mds-dropdown.js +3 -2
  270. package/dist/collection/components/mds-dropdown/pattern.md +2 -4
  271. package/dist/collection/components/mds-emoji/AGENTS.md +8 -32
  272. package/dist/collection/components/mds-emoji/antipattern.md +0 -18
  273. package/dist/collection/components/mds-emoji/documentation.json +73 -35
  274. package/dist/collection/components/mds-emoji/mds-emoji.css +8 -5
  275. package/dist/collection/components/mds-emoji/mds-emoji.js +4 -1
  276. package/dist/collection/components/mds-emoji/pattern.md +9 -25
  277. package/dist/collection/components/mds-entity/AGENTS.md +3 -4
  278. package/dist/collection/components/mds-entity/antipattern.md +10 -3
  279. package/dist/collection/components/mds-entity/documentation.json +17 -8
  280. package/dist/collection/components/mds-entity/mds-entity.css +2 -2
  281. package/dist/collection/components/mds-entity/mds-entity.js +2 -1
  282. package/dist/collection/components/mds-entity/pattern.md +1 -4
  283. package/dist/collection/components/mds-file/AGENTS.md +3 -3
  284. package/dist/collection/components/mds-file/antipattern.md +2 -3
  285. package/dist/collection/components/mds-file/documentation.json +15 -7
  286. package/dist/collection/components/mds-file/mds-file.css +1 -1
  287. package/dist/collection/components/mds-file/mds-file.js +4 -1
  288. package/dist/collection/components/mds-file/pattern.md +1 -3
  289. package/dist/collection/components/mds-file-preview/AGENTS.md +3 -3
  290. package/dist/collection/components/mds-file-preview/antipattern.md +1 -1
  291. package/dist/collection/components/mds-file-preview/documentation.json +17 -8
  292. package/dist/collection/components/mds-file-preview/mds-file-preview.css +3 -3
  293. package/dist/collection/components/mds-file-preview/mds-file-preview.js +3 -2
  294. package/dist/collection/components/mds-file-preview/pattern.md +2 -3
  295. package/dist/collection/components/mds-filter/AGENTS.md +3 -8
  296. package/dist/collection/components/mds-filter/antipattern.md +2 -2
  297. package/dist/collection/components/mds-filter/documentation.json +27 -13
  298. package/dist/collection/components/mds-filter/mds-filter.css +3 -3
  299. package/dist/collection/components/mds-filter/mds-filter.js +2 -1
  300. package/dist/collection/components/mds-filter/pattern.md +2 -5
  301. package/dist/collection/components/mds-filter-item/AGENTS.md +2 -7
  302. package/dist/collection/components/mds-filter-item/antipattern.md +4 -4
  303. package/dist/collection/components/mds-filter-item/documentation.json +17 -8
  304. package/dist/collection/components/mds-filter-item/mds-filter-item.js +4 -1
  305. package/dist/collection/components/mds-filter-item/pattern.md +5 -7
  306. package/dist/collection/components/mds-header/AGENTS.md +4 -8
  307. package/dist/collection/components/mds-header/documentation.json +28 -13
  308. package/dist/collection/components/mds-header/mds-header.css +7 -7
  309. package/dist/collection/components/mds-header/mds-header.js +2 -1
  310. package/dist/collection/components/mds-header/pattern.md +1 -3
  311. package/dist/collection/components/mds-header-bar/AGENTS.md +2 -4
  312. package/dist/collection/components/mds-header-bar/antipattern.md +6 -8
  313. package/dist/collection/components/mds-header-bar/documentation.json +9 -4
  314. package/dist/collection/components/mds-header-bar/mds-header-bar.js +2 -1
  315. package/dist/collection/components/mds-header-bar/pattern.md +10 -6
  316. package/dist/collection/components/mds-help/AGENTS.md +1 -1
  317. package/dist/collection/components/mds-help/documentation.json +13 -5
  318. package/dist/collection/components/mds-help/mds-help.css +4 -4
  319. package/dist/collection/components/mds-help/mds-help.js +2 -1
  320. package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +5 -11
  321. package/dist/collection/components/mds-horizontal-scroll/antipattern.md +2 -2
  322. package/dist/collection/components/mds-horizontal-scroll/documentation.json +34 -14
  323. package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +2 -1
  324. package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +2 -1
  325. package/dist/collection/components/mds-horizontal-scroll/pattern.md +4 -15
  326. package/dist/collection/components/mds-hr/AGENTS.md +1 -1
  327. package/dist/collection/components/mds-hr/documentation.json +7 -2
  328. package/dist/collection/components/mds-hr/mds-hr.js +4 -1
  329. package/dist/collection/components/mds-icon/AGENTS.md +1 -1
  330. package/dist/collection/components/mds-icon/documentation.json +5 -1
  331. package/dist/collection/components/mds-icon/mds-icon.js +2 -1
  332. package/dist/collection/components/mds-img/AGENTS.md +3 -5
  333. package/dist/collection/components/mds-img/antipattern.md +1 -1
  334. package/dist/collection/components/mds-img/documentation.json +19 -9
  335. package/dist/collection/components/mds-img/mds-img.css +2 -2
  336. package/dist/collection/components/mds-img/mds-img.js +1 -0
  337. package/dist/collection/components/mds-img/pattern.md +1 -4
  338. package/dist/collection/components/mds-input/AGENTS.md +6 -10
  339. package/dist/collection/components/mds-input/antipattern.md +1 -1
  340. package/dist/collection/components/mds-input/documentation.json +40 -20
  341. package/dist/collection/components/mds-input/mds-input.css +8 -8
  342. package/dist/collection/components/mds-input/mds-input.js +13 -7
  343. package/dist/collection/components/mds-input/meta/input-type/InputValidationManager.js +3 -3
  344. package/dist/collection/components/mds-input/meta/validators.js +28 -13
  345. package/dist/collection/components/mds-input/meta/validity.js +8 -10
  346. package/dist/collection/components/mds-input/pattern.md +1 -3
  347. package/dist/collection/components/mds-input-date/AGENTS.md +3 -8
  348. package/dist/collection/components/mds-input-date/antipattern.md +1 -1
  349. package/dist/collection/components/mds-input-date/documentation.json +31 -15
  350. package/dist/collection/components/mds-input-date/mds-input-date.css +5 -5
  351. package/dist/collection/components/mds-input-date/mds-input-date.js +3 -2
  352. package/dist/collection/components/mds-input-date/pattern.md +1 -2
  353. package/dist/collection/components/mds-input-date-range/AGENTS.md +3 -4
  354. package/dist/collection/components/mds-input-date-range/documentation.json +22 -10
  355. package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +5 -5
  356. package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +3 -2
  357. package/dist/collection/components/mds-input-date-range/pattern.md +1 -2
  358. package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +3 -13
  359. package/dist/collection/components/mds-input-date-range-preselection/antipattern.md +11 -6
  360. package/dist/collection/components/mds-input-date-range-preselection/documentation.json +26 -13
  361. package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.js +2 -1
  362. package/dist/collection/components/mds-input-date-range-preselection/pattern.md +1 -11
  363. package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
  364. package/dist/collection/components/mds-input-field/documentation.json +9 -3
  365. package/dist/collection/components/mds-input-field/mds-input-field.css +2 -2
  366. package/dist/collection/components/mds-input-field/mds-input-field.js +2 -1
  367. package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
  368. package/dist/collection/components/mds-input-otp/documentation.json +7 -2
  369. package/dist/collection/components/mds-input-otp/mds-input-otp.js +4 -1
  370. package/dist/collection/components/mds-input-range/AGENTS.md +3 -13
  371. package/dist/collection/components/mds-input-range/antipattern.md +1 -5
  372. package/dist/collection/components/mds-input-range/documentation.json +26 -13
  373. package/dist/collection/components/mds-input-range/mds-input-range.css +26 -19
  374. package/dist/collection/components/mds-input-range/mds-input-range.js +2 -1
  375. package/dist/collection/components/mds-input-range/pattern.md +2 -12
  376. package/dist/collection/components/mds-input-select/AGENTS.md +4 -8
  377. package/dist/collection/components/mds-input-select/antipattern.md +1 -1
  378. package/dist/collection/components/mds-input-select/documentation.json +26 -13
  379. package/dist/collection/components/mds-input-select/mds-input-select.css +3 -3
  380. package/dist/collection/components/mds-input-select/mds-input-select.js +8 -3
  381. package/dist/collection/components/mds-input-select/pattern.md +1 -3
  382. package/dist/collection/components/mds-input-switch/AGENTS.md +2 -30
  383. package/dist/collection/components/mds-input-switch/antipattern.md +5 -6
  384. package/dist/collection/components/mds-input-switch/documentation.json +61 -30
  385. package/dist/collection/components/mds-input-switch/mds-input-switch.js +2 -1
  386. package/dist/collection/components/mds-input-switch/pattern.md +2 -11
  387. package/dist/collection/components/mds-input-tip/AGENTS.md +3 -5
  388. package/dist/collection/components/mds-input-tip/antipattern.md +10 -6
  389. package/dist/collection/components/mds-input-tip/documentation.json +17 -8
  390. package/dist/collection/components/mds-input-tip/mds-input-tip.css +1 -1
  391. package/dist/collection/components/mds-input-tip/mds-input-tip.js +2 -1
  392. package/dist/collection/components/mds-input-tip/pattern.md +1 -4
  393. package/dist/collection/components/mds-input-tip-item/AGENTS.md +4 -3
  394. package/dist/collection/components/mds-input-tip-item/antipattern.md +2 -2
  395. package/dist/collection/components/mds-input-tip-item/documentation.json +14 -7
  396. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +2 -2
  397. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +3 -2
  398. package/dist/collection/components/mds-input-tip-item/pattern.md +1 -2
  399. package/dist/collection/components/mds-input-upload/AGENTS.md +3 -5
  400. package/dist/collection/components/mds-input-upload/antipattern.md +2 -3
  401. package/dist/collection/components/mds-input-upload/documentation.json +19 -9
  402. package/dist/collection/components/mds-input-upload/mds-input-upload.css +1 -1
  403. package/dist/collection/components/mds-input-upload/mds-input-upload.js +8 -5
  404. package/dist/collection/components/mds-input-upload/pattern.md +1 -5
  405. package/dist/collection/components/mds-keyboard/AGENTS.md +4 -19
  406. package/dist/collection/components/mds-keyboard/antipattern.md +3 -3
  407. package/dist/collection/components/mds-keyboard/documentation.json +48 -24
  408. package/dist/collection/components/mds-keyboard/mds-keyboard.css +17 -5
  409. package/dist/collection/components/mds-keyboard/mds-keyboard.js +7 -2
  410. package/dist/collection/components/mds-keyboard/pattern.md +1 -2
  411. package/dist/collection/components/mds-keyboard-key/AGENTS.md +3 -6
  412. package/dist/collection/components/mds-keyboard-key/antipattern.md +1 -2
  413. package/dist/collection/components/mds-keyboard-key/documentation.json +21 -10
  414. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +7 -3
  415. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +4 -1
  416. package/dist/collection/components/mds-keyboard-key/pattern.md +1 -12
  417. package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
  418. package/dist/collection/components/mds-kpi/documentation.json +10 -4
  419. package/dist/collection/components/mds-kpi/mds-kpi.css +2 -2
  420. package/dist/collection/components/mds-kpi/mds-kpi.js +2 -1
  421. package/dist/collection/components/mds-kpi/pattern.md +7 -4
  422. package/dist/collection/components/mds-kpi-item/AGENTS.md +3 -8
  423. package/dist/collection/components/mds-kpi-item/antipattern.md +2 -4
  424. package/dist/collection/components/mds-kpi-item/documentation.json +16 -8
  425. package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +2 -1
  426. package/dist/collection/components/mds-kpi-item/pattern.md +9 -7
  427. package/dist/collection/components/mds-label/AGENTS.md +3 -7
  428. package/dist/collection/components/mds-label/documentation.json +24 -11
  429. package/dist/collection/components/mds-label/mds-label.css +2 -2
  430. package/dist/collection/components/mds-label/mds-label.js +4 -1
  431. package/dist/collection/components/mds-label/pattern.md +1 -3
  432. package/dist/collection/components/mds-link/AGENTS.md +4 -9
  433. package/dist/collection/components/mds-link/documentation.json +22 -10
  434. package/dist/collection/components/mds-link/mds-link.css +1 -1
  435. package/dist/collection/components/mds-link/mds-link.js +4 -3
  436. package/dist/collection/components/mds-list/AGENTS.md +1 -1
  437. package/dist/collection/components/mds-list/documentation.json +6 -2
  438. package/dist/collection/components/mds-list/mds-list.js +2 -1
  439. package/dist/collection/components/mds-list/pattern.md +5 -5
  440. package/dist/collection/components/mds-list-item/AGENTS.md +2 -4
  441. package/dist/collection/components/mds-list-item/antipattern.md +1 -1
  442. package/dist/collection/components/mds-list-item/documentation.json +9 -4
  443. package/dist/collection/components/mds-list-item/mds-list-item.js +2 -1
  444. package/dist/collection/components/mds-list-item/pattern.md +4 -4
  445. package/dist/collection/components/mds-mention/AGENTS.md +2 -4
  446. package/dist/collection/components/mds-mention/antipattern.md +5 -5
  447. package/dist/collection/components/mds-mention/documentation.json +11 -5
  448. package/dist/collection/components/mds-mention/mds-mention.js +4 -1
  449. package/dist/collection/components/mds-mention/pattern.md +3 -5
  450. package/dist/collection/components/mds-modal/AGENTS.md +3 -9
  451. package/dist/collection/components/mds-modal/antipattern.md +1 -3
  452. package/dist/collection/components/mds-modal/documentation.json +37 -18
  453. package/dist/collection/components/mds-modal/mds-modal.css +7 -7
  454. package/dist/collection/components/mds-modal/mds-modal.js +4 -3
  455. package/dist/collection/components/mds-modal/pattern.md +2 -6
  456. package/dist/collection/components/mds-note/AGENTS.md +3 -5
  457. package/dist/collection/components/mds-note/documentation.json +18 -8
  458. package/dist/collection/components/mds-note/mds-note.css +2 -2
  459. package/dist/collection/components/mds-note/mds-note.js +2 -1
  460. package/dist/collection/components/mds-note/pattern.md +1 -3
  461. package/dist/collection/components/mds-notification/AGENTS.md +3 -11
  462. package/dist/collection/components/mds-notification/antipattern.md +2 -2
  463. package/dist/collection/components/mds-notification/documentation.json +33 -16
  464. package/dist/collection/components/mds-notification/mds-notification.css +2 -2
  465. package/dist/collection/components/mds-notification/mds-notification.js +4 -1
  466. package/dist/collection/components/mds-notification/pattern.md +3 -5
  467. package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
  468. package/dist/collection/components/mds-paginator/documentation.json +12 -5
  469. package/dist/collection/components/mds-paginator/mds-paginator.css +2 -2
  470. package/dist/collection/components/mds-paginator/mds-paginator.js +4 -1
  471. package/dist/collection/components/mds-paginator/pattern.md +1 -3
  472. package/dist/collection/components/mds-paginator-item/AGENTS.md +3 -10
  473. package/dist/collection/components/mds-paginator-item/documentation.json +34 -16
  474. package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +5 -5
  475. package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +2 -1
  476. package/dist/collection/components/mds-paginator-item/pattern.md +5 -6
  477. package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
  478. package/dist/collection/components/mds-policy-ai/documentation.json +6 -2
  479. package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +2 -1
  480. package/dist/collection/components/mds-policy-ai/pattern.md +4 -4
  481. package/dist/collection/components/mds-pref/AGENTS.md +1 -1
  482. package/dist/collection/components/mds-pref/documentation.json +5 -5
  483. package/dist/collection/components/mds-pref/mds-pref.js +2 -2
  484. package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
  485. package/dist/collection/components/mds-pref-animation/documentation.json +7 -2
  486. package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +4 -1
  487. package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
  488. package/dist/collection/components/mds-pref-consumption/documentation.json +7 -2
  489. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +4 -1
  490. package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
  491. package/dist/collection/components/mds-pref-contrast/documentation.json +7 -2
  492. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +4 -1
  493. package/dist/collection/components/mds-pref-language/AGENTS.md +1 -1
  494. package/dist/collection/components/mds-pref-language/documentation.json +5 -1
  495. package/dist/collection/components/mds-pref-language/mds-pref-language.js +2 -1
  496. package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
  497. package/dist/collection/components/mds-pref-language-item/documentation.json +7 -2
  498. package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +4 -1
  499. package/dist/collection/components/mds-pref-mode/AGENTS.md +3 -3
  500. package/dist/collection/components/mds-pref-mode/antipattern.md +1 -2
  501. package/dist/collection/components/mds-pref-mode/documentation.json +15 -7
  502. package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +1 -1
  503. package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +4 -1
  504. package/dist/collection/components/mds-pref-mode/pattern.md +1 -3
  505. package/dist/collection/components/mds-pref-theme/AGENTS.md +1 -1
  506. package/dist/collection/components/mds-pref-theme/documentation.json +6 -2
  507. package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +2 -1
  508. package/dist/collection/components/mds-pref-theme/pattern.md +1 -2
  509. package/dist/collection/components/mds-pref-theme-item/AGENTS.md +3 -5
  510. package/dist/collection/components/mds-pref-theme-item/antipattern.md +1 -2
  511. package/dist/collection/components/mds-pref-theme-item/documentation.json +19 -9
  512. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +1 -1
  513. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +4 -1
  514. package/dist/collection/components/mds-pref-theme-item/pattern.md +2 -6
  515. package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
  516. package/dist/collection/components/mds-price-table/documentation.json +6 -2
  517. package/dist/collection/components/mds-price-table/mds-price-table.js +2 -1
  518. package/dist/collection/components/mds-price-table/pattern.md +4 -4
  519. package/dist/collection/components/mds-price-table-features/AGENTS.md +4 -3
  520. package/dist/collection/components/mds-price-table-features/antipattern.md +0 -1
  521. package/dist/collection/components/mds-price-table-features/documentation.json +12 -6
  522. package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +1 -1
  523. package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +2 -1
  524. package/dist/collection/components/mds-price-table-features/pattern.md +2 -3
  525. package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +3 -6
  526. package/dist/collection/components/mds-price-table-features-cell/antipattern.md +3 -3
  527. package/dist/collection/components/mds-price-table-features-cell/documentation.json +19 -9
  528. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +1 -1
  529. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +2 -1
  530. package/dist/collection/components/mds-price-table-features-cell/pattern.md +1 -6
  531. package/dist/collection/components/mds-price-table-features-row/AGENTS.md +3 -3
  532. package/dist/collection/components/mds-price-table-features-row/documentation.json +14 -6
  533. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +2 -2
  534. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +2 -1
  535. package/dist/collection/components/mds-price-table-features-row/pattern.md +1 -3
  536. package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
  537. package/dist/collection/components/mds-price-table-header/documentation.json +5 -1
  538. package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +2 -1
  539. package/dist/collection/components/mds-price-table-list/AGENTS.md +3 -5
  540. package/dist/collection/components/mds-price-table-list/antipattern.md +1 -4
  541. package/dist/collection/components/mds-price-table-list/documentation.json +10 -5
  542. package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +2 -1
  543. package/dist/collection/components/mds-price-table-list/pattern.md +12 -7
  544. package/dist/collection/components/mds-price-table-list-item/AGENTS.md +2 -6
  545. package/dist/collection/components/mds-price-table-list-item/antipattern.md +1 -5
  546. package/dist/collection/components/mds-price-table-list-item/documentation.json +13 -6
  547. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +2 -1
  548. package/dist/collection/components/mds-price-table-list-item/pattern.md +7 -4
  549. package/dist/collection/components/mds-progress/AGENTS.md +1 -1
  550. package/dist/collection/components/mds-progress/documentation.json +15 -6
  551. package/dist/collection/components/mds-progress/mds-progress.css +5 -5
  552. package/dist/collection/components/mds-progress/mds-progress.js +2 -1
  553. package/dist/collection/components/mds-push-notification/AGENTS.md +4 -7
  554. package/dist/collection/components/mds-push-notification/antipattern.md +2 -2
  555. package/dist/collection/components/mds-push-notification/documentation.json +24 -12
  556. package/dist/collection/components/mds-push-notification/mds-push-notification.css +11 -11
  557. package/dist/collection/components/mds-push-notification/mds-push-notification.js +2 -1
  558. package/dist/collection/components/mds-push-notification/pattern.md +2 -5
  559. package/dist/collection/components/mds-push-notification-item/AGENTS.md +3 -5
  560. package/dist/collection/components/mds-push-notification-item/documentation.json +20 -9
  561. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +3 -3
  562. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +3 -2
  563. package/dist/collection/components/mds-push-notification-item/pattern.md +1 -3
  564. package/dist/collection/components/mds-quote/AGENTS.md +1 -1
  565. package/dist/collection/components/mds-quote/documentation.json +5 -1
  566. package/dist/collection/components/mds-quote/mds-quote.js +2 -1
  567. package/dist/collection/components/mds-radial-menu/AGENTS.md +4 -11
  568. package/dist/collection/components/mds-radial-menu/documentation.json +31 -15
  569. package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +3 -3
  570. package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +2 -1
  571. package/dist/collection/components/mds-radial-menu/pattern.md +2 -6
  572. package/dist/collection/components/mds-radial-menu-item/AGENTS.md +2 -5
  573. package/dist/collection/components/mds-radial-menu-item/antipattern.md +7 -5
  574. package/dist/collection/components/mds-radial-menu-item/documentation.json +13 -6
  575. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +4 -1
  576. package/dist/collection/components/mds-radial-menu-item/pattern.md +6 -8
  577. package/dist/collection/components/mds-radial-progress/AGENTS.md +3 -3
  578. package/dist/collection/components/mds-radial-progress/documentation.json +15 -6
  579. package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +3 -3
  580. package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +2 -1
  581. package/dist/collection/components/mds-separator/AGENTS.md +1 -1
  582. package/dist/collection/components/mds-separator/documentation.json +9 -3
  583. package/dist/collection/components/mds-separator/mds-separator.css +1 -1
  584. package/dist/collection/components/mds-separator/mds-separator.js +4 -1
  585. package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
  586. package/dist/collection/components/mds-spinner/documentation.json +9 -3
  587. package/dist/collection/components/mds-spinner/mds-spinner.css +1 -1
  588. package/dist/collection/components/mds-spinner/mds-spinner.js +4 -1
  589. package/dist/collection/components/mds-status-bar/AGENTS.md +3 -3
  590. package/dist/collection/components/mds-status-bar/antipattern.md +0 -1
  591. package/dist/collection/components/mds-status-bar/documentation.json +13 -6
  592. package/dist/collection/components/mds-status-bar/mds-status-bar.css +2 -1
  593. package/dist/collection/components/mds-status-bar/mds-status-bar.js +2 -1
  594. package/dist/collection/components/mds-status-bar/pattern.md +1 -3
  595. package/dist/collection/components/mds-stepper-bar/AGENTS.md +3 -7
  596. package/dist/collection/components/mds-stepper-bar/documentation.json +22 -10
  597. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +2 -2
  598. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +2 -1
  599. package/dist/collection/components/mds-stepper-bar/pattern.md +2 -6
  600. package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +3 -11
  601. package/dist/collection/components/mds-stepper-bar-item/antipattern.md +3 -3
  602. package/dist/collection/components/mds-stepper-bar-item/documentation.json +31 -15
  603. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +2 -2
  604. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +7 -4
  605. package/dist/collection/components/mds-stepper-bar-item/pattern.md +2 -5
  606. package/dist/collection/components/mds-tab/AGENTS.md +3 -27
  607. package/dist/collection/components/mds-tab/antipattern.md +1 -3
  608. package/dist/collection/components/mds-tab/documentation.json +67 -33
  609. package/dist/collection/components/mds-tab/mds-tab.css +5 -5
  610. package/dist/collection/components/mds-tab/mds-tab.js +3 -2
  611. package/dist/collection/components/mds-tab/pattern.md +3 -13
  612. package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
  613. package/dist/collection/components/mds-tab-bar/antipattern.md +2 -2
  614. package/dist/collection/components/mds-tab-bar/documentation.json +7 -3
  615. package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +2 -1
  616. package/dist/collection/components/mds-tab-bar/pattern.md +3 -3
  617. package/dist/collection/components/mds-tab-bar-item/AGENTS.md +4 -4
  618. package/dist/collection/components/mds-tab-bar-item/documentation.json +15 -7
  619. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +2 -2
  620. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +2 -1
  621. package/dist/collection/components/mds-tab-bar-item/pattern.md +1 -3
  622. package/dist/collection/components/mds-tab-item/AGENTS.md +2 -8
  623. package/dist/collection/components/mds-tab-item/antipattern.md +3 -3
  624. package/dist/collection/components/mds-tab-item/documentation.json +17 -8
  625. package/dist/collection/components/mds-tab-item/mds-tab-item.js +2 -1
  626. package/dist/collection/components/mds-tab-item/pattern.md +6 -5
  627. package/dist/collection/components/mds-table/AGENTS.md +3 -7
  628. package/dist/collection/components/mds-table/documentation.json +24 -11
  629. package/dist/collection/components/mds-table/mds-table.css +3 -3
  630. package/dist/collection/components/mds-table/mds-table.js +2 -1
  631. package/dist/collection/components/mds-table/pattern.md +2 -6
  632. package/dist/collection/components/mds-table-body/AGENTS.md +3 -4
  633. package/dist/collection/components/mds-table-body/antipattern.md +1 -2
  634. package/dist/collection/components/mds-table-body/documentation.json +17 -8
  635. package/dist/collection/components/mds-table-body/mds-table-body.css +2 -2
  636. package/dist/collection/components/mds-table-body/mds-table-body.js +2 -1
  637. package/dist/collection/components/mds-table-body/pattern.md +1 -4
  638. package/dist/collection/components/mds-table-cell/AGENTS.md +4 -4
  639. package/dist/collection/components/mds-table-cell/antipattern.md +1 -1
  640. package/dist/collection/components/mds-table-cell/documentation.json +16 -8
  641. package/dist/collection/components/mds-table-cell/mds-table-cell.css +2 -2
  642. package/dist/collection/components/mds-table-cell/mds-table-cell.js +2 -1
  643. package/dist/collection/components/mds-table-cell/pattern.md +1 -7
  644. package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
  645. package/dist/collection/components/mds-table-footer/antipattern.md +2 -2
  646. package/dist/collection/components/mds-table-footer/documentation.json +7 -3
  647. package/dist/collection/components/mds-table-footer/mds-table-footer.js +2 -1
  648. package/dist/collection/components/mds-table-footer/pattern.md +2 -4
  649. package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
  650. package/dist/collection/components/mds-table-header/documentation.json +5 -1
  651. package/dist/collection/components/mds-table-header/mds-table-header.js +2 -1
  652. package/dist/collection/components/mds-table-header-cell/AGENTS.md +1 -1
  653. package/dist/collection/components/mds-table-header-cell/documentation.json +5 -1
  654. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +2 -1
  655. package/dist/collection/components/mds-table-row/AGENTS.md +2 -8
  656. package/dist/collection/components/mds-table-row/antipattern.md +4 -5
  657. package/dist/collection/components/mds-table-row/documentation.json +17 -8
  658. package/dist/collection/components/mds-table-row/mds-table-row.js +4 -3
  659. package/dist/collection/components/mds-table-row/pattern.md +5 -8
  660. package/dist/collection/components/mds-text/AGENTS.md +3 -3
  661. package/dist/collection/components/mds-text/antipattern.md +1 -2
  662. package/dist/collection/components/mds-text/documentation.json +17 -8
  663. package/dist/collection/components/mds-text/mds-text.css +3 -3
  664. package/dist/collection/components/mds-text/mds-text.js +2 -1
  665. package/dist/collection/components/mds-text/pattern.md +0 -11
  666. package/dist/collection/components/mds-toast/AGENTS.md +3 -3
  667. package/dist/collection/components/mds-toast/antipattern.md +2 -2
  668. package/dist/collection/components/mds-toast/documentation.json +19 -9
  669. package/dist/collection/components/mds-toast/mds-toast.css +4 -4
  670. package/dist/collection/components/mds-toast/mds-toast.js +2 -1
  671. package/dist/collection/components/mds-toast/pattern.md +2 -3
  672. package/dist/collection/components/mds-toast-region/AGENTS.md +1 -1
  673. package/dist/collection/components/mds-toast-region/documentation.json +7 -2
  674. package/dist/collection/components/mds-toast-region/mds-toast-region.css +1 -1
  675. package/dist/collection/components/mds-toast-region/mds-toast-region.js +2 -1
  676. package/dist/collection/components/mds-tooltip/AGENTS.md +3 -8
  677. package/dist/collection/components/mds-tooltip/antipattern.md +1 -1
  678. package/dist/collection/components/mds-tooltip/documentation.json +27 -13
  679. package/dist/collection/components/mds-tooltip/mds-tooltip.css +5 -5
  680. package/dist/collection/components/mds-tooltip/mds-tooltip.js +2 -1
  681. package/dist/collection/components/mds-tooltip/pattern.md +1 -3
  682. package/dist/collection/components/mds-tree/AGENTS.md +3 -28
  683. package/dist/collection/components/mds-tree/antipattern.md +3 -4
  684. package/dist/collection/components/mds-tree/documentation.json +63 -31
  685. package/dist/collection/components/mds-tree/mds-tree.css +1 -1
  686. package/dist/collection/components/mds-tree/mds-tree.js +2 -1
  687. package/dist/collection/components/mds-tree/pattern.md +3 -9
  688. package/dist/collection/components/mds-tree-item/AGENTS.md +2 -33
  689. package/dist/collection/components/mds-tree-item/antipattern.md +1 -5
  690. package/dist/collection/components/mds-tree-item/documentation.json +67 -33
  691. package/dist/collection/components/mds-tree-item/mds-tree-item.js +2 -1
  692. package/dist/collection/components/mds-tree-item/pattern.md +5 -10
  693. package/dist/collection/components/mds-url-view/AGENTS.md +3 -2
  694. package/dist/collection/components/mds-url-view/antipattern.md +1 -2
  695. package/dist/collection/components/mds-url-view/documentation.json +19 -9
  696. package/dist/collection/components/mds-url-view/mds-url-view.css +4 -4
  697. package/dist/collection/components/mds-url-view/mds-url-view.js +4 -1
  698. package/dist/collection/components/mds-url-view/pattern.md +1 -2
  699. package/dist/collection/components/mds-usage/AGENTS.md +2 -6
  700. package/dist/collection/components/mds-usage/antipattern.md +6 -4
  701. package/dist/collection/components/mds-usage/documentation.json +13 -6
  702. package/dist/collection/components/mds-usage/mds-usage.js +2 -1
  703. package/dist/collection/components/mds-usage/pattern.md +10 -6
  704. package/dist/collection/components/mds-video-wall/AGENTS.md +3 -4
  705. package/dist/collection/components/mds-video-wall/antipattern.md +5 -5
  706. package/dist/collection/components/mds-video-wall/documentation.json +15 -7
  707. package/dist/collection/components/mds-video-wall/mds-video-wall.css +1 -1
  708. package/dist/collection/components/mds-video-wall/mds-video-wall.js +2 -1
  709. package/dist/collection/components/mds-video-wall/pattern.md +2 -4
  710. package/dist/collection/components/mds-zero/AGENTS.md +1 -1
  711. package/dist/collection/components/mds-zero/antipattern.md +6 -6
  712. package/dist/collection/components/mds-zero/documentation.json +9 -4
  713. package/dist/collection/components/mds-zero/mds-zero.css +1 -1
  714. package/dist/collection/components/mds-zero/mds-zero.js +2 -1
  715. package/dist/collection/components/mds-zero/pattern.md +3 -3
  716. package/dist/components/index.d.ts +2 -0
  717. package/dist/components/index.js +1 -1
  718. package/dist/components/mds-accordion-item.js +1 -1
  719. package/dist/components/mds-accordion-timer-item.js +1 -1
  720. package/dist/components/mds-accordion-timer.js +1 -1
  721. package/dist/components/mds-accordion.js +1 -1
  722. package/dist/components/mds-author.js +1 -1
  723. package/dist/components/mds-avatar-stack-item.js +1 -1
  724. package/dist/components/mds-avatar-stack.js +1 -1
  725. package/dist/components/mds-avatar.js +1 -1
  726. package/dist/components/mds-badge.js +1 -1
  727. package/dist/components/mds-banner.js +1 -1
  728. package/dist/components/mds-benchmark-bar.js +1 -1
  729. package/dist/components/mds-bibliography.js +1 -1
  730. package/dist/components/mds-book.d.ts +11 -0
  731. package/dist/components/mds-book.js +1 -0
  732. package/dist/components/mds-breadcrumb-item.js +1 -1
  733. package/dist/components/mds-breadcrumb.js +1 -1
  734. package/dist/components/mds-button-dropdown.js +1 -1
  735. package/dist/components/mds-button-group.js +1 -1
  736. package/dist/components/mds-button.js +1 -1
  737. package/dist/components/mds-calendar-cell.js +1 -1
  738. package/dist/components/mds-calendar.js +1 -1
  739. package/dist/components/mds-card-content.js +1 -1
  740. package/dist/components/mds-card-footer.js +1 -1
  741. package/dist/components/mds-card-header.js +1 -1
  742. package/dist/components/mds-card-media.js +1 -1
  743. package/dist/components/mds-card.js +1 -1
  744. package/dist/components/mds-chip.js +1 -1
  745. package/dist/components/mds-details.js +1 -1
  746. package/dist/components/mds-dropdown.js +1 -1
  747. package/dist/components/mds-emoji.js +2 -2
  748. package/dist/components/mds-entity.js +1 -1
  749. package/dist/components/mds-file-preview.js +1 -1
  750. package/dist/components/mds-file.js +1 -1
  751. package/dist/components/mds-filter-item.js +1 -1
  752. package/dist/components/mds-filter.js +1 -1
  753. package/dist/components/mds-header-bar.js +1 -1
  754. package/dist/components/mds-header.js +1 -1
  755. package/dist/components/mds-help.js +1 -1
  756. package/dist/components/mds-horizontal-scroll.js +1 -1
  757. package/dist/components/mds-hr.js +1 -1
  758. package/dist/components/mds-icon.js +1 -1
  759. package/dist/components/mds-img.js +1 -1
  760. package/dist/components/mds-input-date-range-preselection.js +1 -1
  761. package/dist/components/mds-input-date-range.js +1 -1
  762. package/dist/components/mds-input-date.js +1 -1
  763. package/dist/components/mds-input-field.js +1 -1
  764. package/dist/components/mds-input-otp.js +1 -1
  765. package/dist/components/mds-input-range.js +1 -1
  766. package/dist/components/mds-input-select.js +1 -1
  767. package/dist/components/mds-input-switch.js +1 -1
  768. package/dist/components/mds-input-tip-item.js +1 -1
  769. package/dist/components/mds-input-tip.js +1 -1
  770. package/dist/components/mds-input-upload.js +1 -1
  771. package/dist/components/mds-input.js +1 -1
  772. package/dist/components/mds-keyboard-key.js +1 -1
  773. package/dist/components/mds-keyboard.js +1 -1
  774. package/dist/components/mds-kpi-item.js +1 -1
  775. package/dist/components/mds-kpi.js +1 -1
  776. package/dist/components/mds-label.js +1 -1
  777. package/dist/components/mds-link.js +1 -1
  778. package/dist/components/mds-list-item.js +1 -1
  779. package/dist/components/mds-list.js +1 -1
  780. package/dist/components/mds-mention.js +1 -1
  781. package/dist/components/mds-modal.js +1 -1
  782. package/dist/components/mds-note.js +1 -1
  783. package/dist/components/mds-notification.js +1 -1
  784. package/dist/components/mds-paginator-item.js +1 -1
  785. package/dist/components/mds-paginator.js +1 -1
  786. package/dist/components/mds-policy-ai.js +1 -1
  787. package/dist/components/mds-pref-animation.js +1 -1
  788. package/dist/components/mds-pref-consumption.js +1 -1
  789. package/dist/components/mds-pref-contrast.js +1 -1
  790. package/dist/components/mds-pref-language-item.js +1 -1
  791. package/dist/components/mds-pref-language.js +1 -1
  792. package/dist/components/mds-pref-mode.js +1 -1
  793. package/dist/components/mds-pref-theme-item.js +1 -1
  794. package/dist/components/mds-pref-theme.js +1 -1
  795. package/dist/components/mds-pref.js +1 -1
  796. package/dist/components/mds-price-table-features-cell.js +1 -1
  797. package/dist/components/mds-price-table-features-row.js +1 -1
  798. package/dist/components/mds-price-table-features.js +1 -1
  799. package/dist/components/mds-price-table-header.js +1 -1
  800. package/dist/components/mds-price-table-list-item.js +1 -1
  801. package/dist/components/mds-price-table-list.js +1 -1
  802. package/dist/components/mds-price-table.js +1 -1
  803. package/dist/components/mds-progress.js +1 -1
  804. package/dist/components/mds-push-notification-item.js +1 -1
  805. package/dist/components/mds-push-notification.js +1 -1
  806. package/dist/components/mds-quote.js +1 -1
  807. package/dist/components/mds-radial-menu-item.js +1 -1
  808. package/dist/components/mds-radial-menu.js +1 -1
  809. package/dist/components/mds-radial-progress.js +1 -1
  810. package/dist/components/mds-separator.js +1 -1
  811. package/dist/components/mds-spinner.js +1 -1
  812. package/dist/components/mds-status-bar.js +1 -1
  813. package/dist/components/mds-stepper-bar-item.js +1 -1
  814. package/dist/components/mds-stepper-bar.js +1 -1
  815. package/dist/components/mds-tab-bar-item.js +1 -1
  816. package/dist/components/mds-tab-bar.js +1 -1
  817. package/dist/components/mds-tab-item.js +1 -1
  818. package/dist/components/mds-tab.js +1 -1
  819. package/dist/components/mds-table-body.js +1 -1
  820. package/dist/components/mds-table-cell.js +1 -1
  821. package/dist/components/mds-table-footer.js +1 -1
  822. package/dist/components/mds-table-header-cell.js +1 -1
  823. package/dist/components/mds-table-header.js +1 -1
  824. package/dist/components/mds-table-row.js +1 -1
  825. package/dist/components/mds-table.js +1 -1
  826. package/dist/components/mds-text.js +1 -1
  827. package/dist/components/mds-toast-region.js +1 -1
  828. package/dist/components/mds-toast.js +1 -1
  829. package/dist/components/mds-tooltip.js +1 -1
  830. package/dist/components/mds-tree-item.js +1 -1
  831. package/dist/components/mds-tree.js +1 -1
  832. package/dist/components/mds-url-view.js +1 -1
  833. package/dist/components/mds-usage.js +1 -1
  834. package/dist/components/mds-video-wall.js +1 -1
  835. package/dist/components/mds-zero.js +1 -1
  836. package/dist/components/p-B8hgyXdE.js +1 -0
  837. package/dist/components/{p-DkUdrGHq.js → p-BBO_llcO.js} +1 -1
  838. package/dist/components/{p-nsbhb0lz.js → p-BM7joOdq.js} +1 -1
  839. package/dist/components/{p-DNeEn8Rr.js → p-BMIaZ4HY.js} +1 -1
  840. package/dist/components/{p-BwJQB6rG.js → p-BOJQ3tkp.js} +1 -1
  841. package/dist/components/{p-DCrdKrky.js → p-BU1O2DcC.js} +1 -1
  842. package/dist/components/{p-Cd8id3Br.js → p-Bo6ezD1p.js} +1 -1
  843. package/dist/components/p-C0H8bZpf.js +1 -0
  844. package/dist/components/{p-s1CktmPS.js → p-C1YH20BL.js} +1 -1
  845. package/dist/components/{p-Cmn1DJAB.js → p-CEw7GvM-.js} +1 -1
  846. package/dist/components/{p-D-DdDIb9.js → p-CNUWS_Mg.js} +1 -1
  847. package/dist/components/{p-uqwixjju.js → p-CNpL55c-.js} +1 -1
  848. package/dist/components/{p-DnySYX0L.js → p-CV7wjM1c.js} +1 -1
  849. package/dist/components/{p-BU3bsIX2.js → p-CWSIl1jl.js} +1 -1
  850. package/dist/components/{p-C99SMdU_.js → p-CYK2Xr_v.js} +1 -1
  851. package/dist/components/{p-B8x-d2fx.js → p-CZjwSwe5.js} +1 -1
  852. package/dist/components/p-Czqtt8kO.js +1 -0
  853. package/dist/components/{p-Dm-OUwDe.js → p-DD2muCqG.js} +1 -1
  854. package/dist/components/{p-ZuubAcA3.js → p-DDTJwlAd.js} +1 -1
  855. package/dist/components/{p-DF3PrYBI.js → p-DJ401QTd.js} +1 -1
  856. package/dist/components/{p-BbK4qeM7.js → p-DMyL4CYh.js} +1 -1
  857. package/dist/components/{p-DiUUZ7ZA.js → p-DTtmr_Y9.js} +1 -1
  858. package/dist/components/{p-CfQETwAK.js → p-DbVGGhs_.js} +1 -1
  859. package/dist/components/{p-C4XdTZQ-.js → p-DccBbfK8.js} +1 -1
  860. package/dist/components/{p-CNZ8_QvE.js → p-H0YXZ5fD.js} +2 -2
  861. package/dist/components/p-IaXq1Xsc.js +1 -0
  862. package/dist/components/{p-ClPv-Ljc.js → p-M8dGB4KH.js} +1 -1
  863. package/dist/components/{p-C1CTahjH.js → p-TNn_HE5x.js} +1 -1
  864. package/dist/components/{p-CNF3u0Li.js → p-aujz-VM9.js} +1 -1
  865. package/dist/components/{p-CSxW5f2f.js → p-e9NGNm7d.js} +1 -1
  866. package/dist/components/{p-D2d9eOLi.js → p-kZBPId_x.js} +1 -1
  867. package/dist/components/{p-CLe_N2_H.js → p-qnCVkeGX.js} +1 -1
  868. package/dist/documentation.json +2616 -921
  869. package/dist/esm/{index-D2_gI0qp.js → index-BJVvHlvf.js} +1 -1
  870. package/dist/esm/index-CvLLN-QH.js +4 -0
  871. package/dist/esm/loader.js +1 -1
  872. package/dist/esm/{locale-BQmO6K_S.js → locale-B6cOkl4I.js} +12 -6
  873. package/dist/esm/magma-components.js +1 -1
  874. package/dist/esm/mds-accordion-item.entry.js +1 -1
  875. package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
  876. package/dist/esm/mds-accordion-timer.entry.js +1 -1
  877. package/dist/esm/mds-accordion.entry.js +1 -1
  878. package/dist/esm/mds-author.entry.js +1 -1
  879. package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
  880. package/dist/esm/mds-avatar-stack.entry.js +1 -1
  881. package/dist/esm/mds-avatar.entry.js +1 -1
  882. package/dist/esm/mds-badge.entry.js +1 -1
  883. package/dist/esm/mds-banner_3.entry.js +4 -4
  884. package/dist/esm/mds-benchmark-bar.entry.js +1 -1
  885. package/dist/esm/mds-bibliography.entry.js +1 -1
  886. package/dist/esm/mds-book.entry.js +701 -0
  887. package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
  888. package/dist/esm/mds-breadcrumb.entry.js +2 -2
  889. package/dist/esm/mds-button-dropdown.entry.js +2 -2
  890. package/dist/esm/mds-button-group.entry.js +1 -1
  891. package/dist/esm/mds-button_3.entry.js +6 -6
  892. package/dist/esm/mds-calendar_2.entry.js +7 -7
  893. package/dist/esm/mds-card-content.entry.js +1 -1
  894. package/dist/esm/mds-card-footer.entry.js +1 -1
  895. package/dist/esm/mds-card-header.entry.js +1 -1
  896. package/dist/esm/mds-card-media.entry.js +1 -1
  897. package/dist/esm/mds-card.entry.js +1 -1
  898. package/dist/esm/mds-details.entry.js +1 -1
  899. package/dist/esm/mds-dropdown.entry.js +2 -2
  900. package/dist/esm/mds-emoji.entry.js +2 -2
  901. package/dist/esm/mds-entity.entry.js +1 -1
  902. package/dist/esm/mds-file-preview.entry.js +3 -3
  903. package/dist/esm/mds-file.entry.js +2 -2
  904. package/dist/esm/mds-filter-item.entry.js +2 -2
  905. package/dist/esm/mds-filter.entry.js +2 -2
  906. package/dist/esm/mds-header-bar.entry.js +2 -2
  907. package/dist/esm/mds-header.entry.js +2 -2
  908. package/dist/esm/mds-horizontal-scroll.entry.js +2 -2
  909. package/dist/esm/mds-hr.entry.js +1 -1
  910. package/dist/esm/mds-img.entry.js +1 -1
  911. package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
  912. package/dist/esm/mds-input-date-range.entry.js +3 -3
  913. package/dist/esm/mds-input-date.entry.js +4 -4
  914. package/dist/esm/mds-input-field.entry.js +1 -1
  915. package/dist/esm/mds-input-otp.entry.js +2 -2
  916. package/dist/esm/mds-input-range.entry.js +2 -2
  917. package/dist/esm/mds-input-select.entry.js +9 -5
  918. package/dist/esm/mds-input-switch_2.entry.js +3 -3
  919. package/dist/esm/mds-input-tip_2.entry.js +4 -4
  920. package/dist/esm/mds-input-upload.entry.js +6 -6
  921. package/dist/esm/mds-input.entry.js +154 -37
  922. package/dist/esm/mds-keyboard-key.entry.js +3 -3
  923. package/dist/esm/mds-keyboard.entry.js +8 -4
  924. package/dist/esm/mds-kpi-item.entry.js +1 -1
  925. package/dist/esm/mds-kpi.entry.js +1 -1
  926. package/dist/esm/mds-label.entry.js +2 -2
  927. package/dist/esm/mds-link.entry.js +4 -4
  928. package/dist/esm/mds-list-item.entry.js +1 -1
  929. package/dist/esm/mds-list.entry.js +1 -1
  930. package/dist/esm/mds-mention.entry.js +2 -2
  931. package/dist/esm/mds-modal.entry.js +4 -4
  932. package/dist/esm/mds-note.entry.js +2 -2
  933. package/dist/esm/mds-notification.entry.js +1 -1
  934. package/dist/esm/mds-paginator-item.entry.js +1 -1
  935. package/dist/esm/mds-paginator.entry.js +2 -2
  936. package/dist/esm/mds-policy-ai.entry.js +2 -2
  937. package/dist/esm/mds-pref-animation.entry.js +2 -2
  938. package/dist/esm/mds-pref-consumption.entry.js +2 -2
  939. package/dist/esm/mds-pref-contrast.entry.js +2 -2
  940. package/dist/esm/mds-pref-language-item.entry.js +2 -2
  941. package/dist/esm/mds-pref-language.entry.js +2 -2
  942. package/dist/esm/mds-pref-mode.entry.js +2 -2
  943. package/dist/esm/mds-pref-theme-item.entry.js +1 -1
  944. package/dist/esm/mds-pref-theme.entry.js +2 -2
  945. package/dist/esm/mds-pref.entry.js +2 -2
  946. package/dist/esm/mds-price-table-features-cell.entry.js +1 -1
  947. package/dist/esm/mds-price-table-features-row.entry.js +1 -1
  948. package/dist/esm/mds-price-table-features.entry.js +1 -1
  949. package/dist/esm/mds-price-table-header.entry.js +1 -1
  950. package/dist/esm/mds-price-table-list-item.entry.js +1 -1
  951. package/dist/esm/mds-price-table-list.entry.js +1 -1
  952. package/dist/esm/mds-price-table.entry.js +1 -1
  953. package/dist/esm/mds-progress_2.entry.js +2 -2
  954. package/dist/esm/mds-push-notification-item.entry.js +3 -3
  955. package/dist/esm/mds-push-notification.entry.js +3 -3
  956. package/dist/esm/mds-quote.entry.js +1 -1
  957. package/dist/esm/mds-radial-menu-item.entry.js +1 -1
  958. package/dist/esm/mds-radial-menu.entry.js +2 -2
  959. package/dist/esm/mds-separator.entry.js +1 -1
  960. package/dist/esm/mds-status-bar.entry.js +2 -2
  961. package/dist/esm/mds-stepper-bar-item.entry.js +7 -5
  962. package/dist/esm/mds-stepper-bar.entry.js +1 -1
  963. package/dist/esm/mds-tab-bar-item.entry.js +1 -1
  964. package/dist/esm/mds-tab-bar.entry.js +1 -1
  965. package/dist/esm/mds-tab_2.entry.js +4 -4
  966. package/dist/esm/mds-table-body.entry.js +1 -1
  967. package/dist/esm/mds-table-footer.entry.js +1 -1
  968. package/dist/esm/mds-table-header-cell.entry.js +1 -1
  969. package/dist/esm/mds-table-header.entry.js +2 -2
  970. package/dist/esm/mds-table-row.entry.js +3 -3
  971. package/dist/esm/mds-table.entry.js +2 -2
  972. package/dist/esm/mds-text.entry.js +1 -1
  973. package/dist/esm/mds-toast-region.entry.js +1 -1
  974. package/dist/esm/mds-toast.entry.js +2 -2
  975. package/dist/esm/mds-tooltip.entry.js +2 -2
  976. package/dist/esm/mds-tree-item.entry.js +2 -2
  977. package/dist/esm/mds-tree.entry.js +1 -1
  978. package/dist/esm/mds-url-view.entry.js +2 -2
  979. package/dist/esm/mds-usage.entry.js +2 -2
  980. package/dist/esm/mds-video-wall.entry.js +1 -1
  981. package/dist/esm/mds-zero.entry.js +1 -1
  982. package/dist/esm-es5/{index-D2_gI0qp.js → index-BJVvHlvf.js} +1 -1
  983. package/dist/esm-es5/index-CvLLN-QH.js +8 -6
  984. package/dist/esm-es5/loader.js +1 -1
  985. package/dist/esm-es5/{locale-BQmO6K_S.js → locale-B6cOkl4I.js} +22 -18
  986. package/dist/esm-es5/magma-components.js +2 -2
  987. package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
  988. package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
  989. package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
  990. package/dist/esm-es5/mds-accordion.entry.js +2 -2
  991. package/dist/esm-es5/mds-author.entry.js +1 -1
  992. package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
  993. package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
  994. package/dist/esm-es5/mds-avatar.entry.js +5 -5
  995. package/dist/esm-es5/mds-badge.entry.js +1 -1
  996. package/dist/esm-es5/mds-banner_3.entry.js +4 -4
  997. package/dist/esm-es5/mds-benchmark-bar.entry.js +3 -3
  998. package/dist/esm-es5/mds-bibliography.entry.js +2 -2
  999. package/dist/esm-es5/mds-book.entry.js +207 -0
  1000. package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
  1001. package/dist/esm-es5/mds-breadcrumb.entry.js +4 -4
  1002. package/dist/esm-es5/mds-button-dropdown.entry.js +2 -2
  1003. package/dist/esm-es5/mds-button-group.entry.js +1 -1
  1004. package/dist/esm-es5/mds-button_3.entry.js +5 -5
  1005. package/dist/esm-es5/mds-calendar_2.entry.js +4 -4
  1006. package/dist/esm-es5/mds-card-content.entry.js +1 -1
  1007. package/dist/esm-es5/mds-card-footer.entry.js +1 -1
  1008. package/dist/esm-es5/mds-card-header.entry.js +1 -1
  1009. package/dist/esm-es5/mds-card-media.entry.js +1 -1
  1010. package/dist/esm-es5/mds-card.entry.js +1 -1
  1011. package/dist/esm-es5/mds-details.entry.js +1 -1
  1012. package/dist/esm-es5/mds-dropdown.entry.js +1 -1
  1013. package/dist/esm-es5/mds-emoji.entry.js +2 -2
  1014. package/dist/esm-es5/mds-entity.entry.js +1 -1
  1015. package/dist/esm-es5/mds-file-preview.entry.js +8 -8
  1016. package/dist/esm-es5/mds-file.entry.js +2 -2
  1017. package/dist/esm-es5/mds-filter-item.entry.js +2 -2
  1018. package/dist/esm-es5/mds-filter.entry.js +2 -2
  1019. package/dist/esm-es5/mds-header-bar.entry.js +2 -2
  1020. package/dist/esm-es5/mds-header.entry.js +2 -2
  1021. package/dist/esm-es5/mds-horizontal-scroll.entry.js +2 -2
  1022. package/dist/esm-es5/mds-hr.entry.js +1 -1
  1023. package/dist/esm-es5/mds-img.entry.js +1 -1
  1024. package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
  1025. package/dist/esm-es5/mds-input-date-range.entry.js +3 -3
  1026. package/dist/esm-es5/mds-input-date.entry.js +3 -3
  1027. package/dist/esm-es5/mds-input-field.entry.js +1 -1
  1028. package/dist/esm-es5/mds-input-otp.entry.js +2 -2
  1029. package/dist/esm-es5/mds-input-range.entry.js +7 -7
  1030. package/dist/esm-es5/mds-input-select.entry.js +5 -4
  1031. package/dist/esm-es5/mds-input-switch_2.entry.js +2 -2
  1032. package/dist/esm-es5/mds-input-tip_2.entry.js +3 -3
  1033. package/dist/esm-es5/mds-input-upload.entry.js +2 -2
  1034. package/dist/esm-es5/mds-input.entry.js +53 -50
  1035. package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
  1036. package/dist/esm-es5/mds-keyboard.entry.js +6 -3
  1037. package/dist/esm-es5/mds-kpi-item.entry.js +3 -3
  1038. package/dist/esm-es5/mds-kpi.entry.js +1 -1
  1039. package/dist/esm-es5/mds-label.entry.js +2 -2
  1040. package/dist/esm-es5/mds-link.entry.js +2 -2
  1041. package/dist/esm-es5/mds-list-item.entry.js +1 -1
  1042. package/dist/esm-es5/mds-list.entry.js +1 -1
  1043. package/dist/esm-es5/mds-mention.entry.js +2 -2
  1044. package/dist/esm-es5/mds-modal.entry.js +2 -2
  1045. package/dist/esm-es5/mds-note.entry.js +2 -2
  1046. package/dist/esm-es5/mds-notification.entry.js +1 -1
  1047. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  1048. package/dist/esm-es5/mds-paginator.entry.js +3 -3
  1049. package/dist/esm-es5/mds-policy-ai.entry.js +2 -2
  1050. package/dist/esm-es5/mds-pref-animation.entry.js +2 -2
  1051. package/dist/esm-es5/mds-pref-consumption.entry.js +2 -2
  1052. package/dist/esm-es5/mds-pref-contrast.entry.js +2 -2
  1053. package/dist/esm-es5/mds-pref-language-item.entry.js +2 -2
  1054. package/dist/esm-es5/mds-pref-language.entry.js +2 -2
  1055. package/dist/esm-es5/mds-pref-mode.entry.js +2 -2
  1056. package/dist/esm-es5/mds-pref-theme-item.entry.js +3 -3
  1057. package/dist/esm-es5/mds-pref-theme.entry.js +6 -6
  1058. package/dist/esm-es5/mds-pref.entry.js +2 -2
  1059. package/dist/esm-es5/mds-price-table-features-cell.entry.js +1 -1
  1060. package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
  1061. package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
  1062. package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
  1063. package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
  1064. package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
  1065. package/dist/esm-es5/mds-price-table.entry.js +1 -1
  1066. package/dist/esm-es5/mds-progress_2.entry.js +2 -2
  1067. package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
  1068. package/dist/esm-es5/mds-push-notification.entry.js +2 -2
  1069. package/dist/esm-es5/mds-quote.entry.js +1 -1
  1070. package/dist/esm-es5/mds-radial-menu-item.entry.js +1 -1
  1071. package/dist/esm-es5/mds-radial-menu.entry.js +2 -2
  1072. package/dist/esm-es5/mds-separator.entry.js +1 -1
  1073. package/dist/esm-es5/mds-status-bar.entry.js +2 -2
  1074. package/dist/esm-es5/mds-stepper-bar-item.entry.js +6 -3
  1075. package/dist/esm-es5/mds-stepper-bar.entry.js +1 -1
  1076. package/dist/esm-es5/mds-tab-bar-item.entry.js +1 -1
  1077. package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
  1078. package/dist/esm-es5/mds-tab_2.entry.js +3 -3
  1079. package/dist/esm-es5/mds-table-body.entry.js +1 -1
  1080. package/dist/esm-es5/mds-table-footer.entry.js +1 -1
  1081. package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
  1082. package/dist/esm-es5/mds-table-header.entry.js +4 -4
  1083. package/dist/esm-es5/mds-table-row.entry.js +2 -2
  1084. package/dist/esm-es5/mds-table.entry.js +2 -2
  1085. package/dist/esm-es5/mds-text.entry.js +1 -1
  1086. package/dist/esm-es5/mds-toast-region.entry.js +1 -1
  1087. package/dist/esm-es5/mds-toast.entry.js +2 -2
  1088. package/dist/esm-es5/mds-tooltip.entry.js +2 -2
  1089. package/dist/esm-es5/mds-tree-item.entry.js +2 -2
  1090. package/dist/esm-es5/mds-tree.entry.js +1 -1
  1091. package/dist/esm-es5/mds-url-view.entry.js +2 -2
  1092. package/dist/esm-es5/mds-usage.entry.js +2 -2
  1093. package/dist/esm-es5/mds-video-wall.entry.js +1 -1
  1094. package/dist/esm-es5/mds-zero.entry.js +1 -1
  1095. package/dist/hydrate/index.js +1228 -207
  1096. package/dist/hydrate/index.mjs +1228 -207
  1097. package/dist/lint/core/checks.d.ts +26 -0
  1098. package/dist/lint/core/checks.js +135 -0
  1099. package/dist/lint/core/colors.d.ts +2 -0
  1100. package/dist/lint/core/colors.js +40 -0
  1101. package/dist/lint/core/data.d.ts +82 -0
  1102. package/dist/lint/core/data.js +171 -0
  1103. package/dist/lint/core/element.d.ts +55 -0
  1104. package/dist/lint/core/element.js +19 -0
  1105. package/dist/lint/eslint/adapters.d.ts +53 -0
  1106. package/dist/lint/eslint/adapters.js +217 -0
  1107. package/dist/lint/eslint/index.d.ts +7 -0
  1108. package/dist/lint/eslint/index.js +86 -0
  1109. package/dist/lint/index.d.ts +4 -0
  1110. package/dist/lint/index.js +10 -0
  1111. package/dist/lint/mcp/checks.d.ts +15 -0
  1112. package/dist/lint/mcp/checks.js +407 -0
  1113. package/dist/lint/mcp/cli.d.ts +2 -0
  1114. package/dist/lint/mcp/cli.js +29 -0
  1115. package/dist/lint/mcp/color.d.ts +12 -0
  1116. package/dist/lint/mcp/color.js +87 -0
  1117. package/dist/lint/mcp/components.d.ts +5 -0
  1118. package/dist/lint/mcp/components.js +362 -0
  1119. package/dist/lint/mcp/context.d.ts +25 -0
  1120. package/dist/lint/mcp/context.js +87 -0
  1121. package/dist/lint/mcp/guides.d.ts +3 -0
  1122. package/dist/lint/mcp/guides.js +137 -0
  1123. package/dist/lint/mcp/icon.svg +11 -0
  1124. package/dist/lint/mcp/icons.d.ts +3 -0
  1125. package/dist/lint/mcp/icons.js +170 -0
  1126. package/dist/lint/mcp/protocol.d.ts +42 -0
  1127. package/dist/lint/mcp/protocol.js +106 -0
  1128. package/dist/lint/mcp/server.d.ts +20 -0
  1129. package/dist/lint/mcp/server.js +67 -0
  1130. package/dist/lint/mcp/tokens.d.ts +22 -0
  1131. package/dist/lint/mcp/tokens.js +507 -0
  1132. package/dist/lint/package.json +3 -0
  1133. package/dist/lint/stylelint/index.d.ts +3 -0
  1134. package/dist/lint/stylelint/index.js +137 -0
  1135. package/dist/lint/stylelint/recommended.d.ts +3 -0
  1136. package/dist/lint/stylelint/recommended.js +10 -0
  1137. package/dist/lint/stylelint/strict.d.ts +3 -0
  1138. package/dist/lint/stylelint/strict.js +10 -0
  1139. package/dist/magma-components/magma-components.esm.js +1 -1
  1140. package/dist/magma-components/{p-26451eb6.entry.js → p-00aa9a51.entry.js} +1 -1
  1141. package/dist/magma-components/{p-5533b60d.system.entry.js → p-00acb2e1.system.entry.js} +3 -3
  1142. package/dist/magma-components/{p-4bc3335f.system.entry.js → p-037126b7.system.entry.js} +1 -1
  1143. package/dist/magma-components/{p-e5d41024.system.entry.js → p-03da0376.system.entry.js} +1 -1
  1144. package/dist/magma-components/{p-25a6e977.entry.js → p-0417391b.entry.js} +1 -1
  1145. package/dist/magma-components/{p-377d0661.entry.js → p-05ef91a5.entry.js} +1 -1
  1146. package/dist/magma-components/{p-336f56a4.entry.js → p-07d35da6.entry.js} +1 -1
  1147. package/dist/magma-components/{p-f4d80d9a.entry.js → p-09c80fdb.entry.js} +1 -1
  1148. package/dist/magma-components/{p-5cfa0dce.entry.js → p-0b0ca53c.entry.js} +1 -1
  1149. package/dist/magma-components/{p-617370e7.system.entry.js → p-0babf674.system.entry.js} +7 -7
  1150. package/dist/magma-components/{p-29162c98.entry.js → p-0d90c991.entry.js} +1 -1
  1151. package/dist/magma-components/{p-9745dc51.entry.js → p-103465cf.entry.js} +1 -1
  1152. package/dist/magma-components/{p-919f9dce.entry.js → p-10983da0.entry.js} +1 -1
  1153. package/dist/magma-components/{p-52d905fe.system.entry.js → p-109926ce.system.entry.js} +2 -2
  1154. package/dist/magma-components/{p-70d38284.entry.js → p-14b13850.entry.js} +1 -1
  1155. package/dist/magma-components/{p-bf0cb77d.system.entry.js → p-154ba354.system.entry.js} +2 -2
  1156. package/dist/magma-components/{p-73833405.entry.js → p-160cd923.entry.js} +1 -1
  1157. package/dist/magma-components/{p-5ef0fb69.system.entry.js → p-1685e74c.system.entry.js} +1 -1
  1158. package/dist/magma-components/p-1748ca8b.system.entry.js +1 -0
  1159. package/dist/magma-components/{p-729c89f9.system.entry.js → p-17a43cb6.system.entry.js} +2 -2
  1160. package/dist/magma-components/p-17ccfc01.system.entry.js +208 -0
  1161. package/dist/magma-components/{p-f670ed20.entry.js → p-198ea5d8.entry.js} +1 -1
  1162. package/dist/magma-components/{p-d561062f.system.entry.js → p-1b415625.system.entry.js} +3 -3
  1163. package/dist/magma-components/{p-4bc47ff0.system.entry.js → p-1b67b149.system.entry.js} +2 -2
  1164. package/dist/magma-components/p-1c00d0f7.entry.js +1 -0
  1165. package/dist/magma-components/{p-05ed801b.system.entry.js → p-1cd75adf.system.entry.js} +3 -3
  1166. package/dist/magma-components/{p-244676d3.system.entry.js → p-1d8485de.system.entry.js} +4 -4
  1167. package/dist/magma-components/{p-23c057a9.entry.js → p-2006cfeb.entry.js} +1 -1
  1168. package/dist/magma-components/{p-02fe26b4.system.entry.js → p-2216f207.system.entry.js} +2 -2
  1169. package/dist/magma-components/{p-edf003f1.system.entry.js → p-22f24125.system.entry.js} +1 -1
  1170. package/dist/magma-components/{p-6560b426.system.entry.js → p-25c07b67.system.entry.js} +1 -1
  1171. package/dist/magma-components/{p-e3a65644.entry.js → p-29fbb7cf.entry.js} +1 -1
  1172. package/dist/magma-components/{p-f7147d05.entry.js → p-2a26b614.entry.js} +1 -1
  1173. package/dist/magma-components/p-2a6c2a41.entry.js +1 -0
  1174. package/dist/magma-components/{p-06fde29d.entry.js → p-2c28056d.entry.js} +1 -1
  1175. package/dist/magma-components/{p-23722401.entry.js → p-2c5e5cd1.entry.js} +1 -1
  1176. package/dist/magma-components/{p-d92ccce5.system.entry.js → p-2c7d091e.system.entry.js} +3 -3
  1177. package/dist/magma-components/{p-3abaa053.entry.js → p-2c997b47.entry.js} +1 -1
  1178. package/dist/magma-components/{p-0a8e8525.entry.js → p-2f39f4e4.entry.js} +1 -1
  1179. package/dist/magma-components/{p-02298ed0.system.entry.js → p-31370fdb.system.entry.js} +1 -1
  1180. package/dist/magma-components/{p-3df07021.system.entry.js → p-3139988c.system.entry.js} +1 -1
  1181. package/dist/magma-components/p-32418266.entry.js +1 -0
  1182. package/dist/magma-components/{p-cc9659e1.system.entry.js → p-33c80de3.system.entry.js} +1 -1
  1183. package/dist/magma-components/{p-09a7b578.system.entry.js → p-34c0e63c.system.entry.js} +1 -1
  1184. package/dist/magma-components/{p-ca1969c5.entry.js → p-354a5b47.entry.js} +1 -1
  1185. package/dist/magma-components/{p-81e02997.system.entry.js → p-35c6341a.system.entry.js} +3 -3
  1186. package/dist/magma-components/{p-b476435f.entry.js → p-379f51a6.entry.js} +1 -1
  1187. package/dist/magma-components/{p-7c217aa5.entry.js → p-381f49ea.entry.js} +1 -1
  1188. package/dist/magma-components/{p-221c2f0d.entry.js → p-384ab014.entry.js} +1 -1
  1189. package/dist/magma-components/{p-29ab84bf.system.entry.js → p-386bb24e.system.entry.js} +4 -4
  1190. package/dist/magma-components/{p-1e18fcc5.system.entry.js → p-39a2df98.system.entry.js} +1 -1
  1191. package/dist/magma-components/{p-5c4e41d3.system.entry.js → p-3a7c4314.system.entry.js} +3 -3
  1192. package/dist/magma-components/{p-e5950aee.entry.js → p-3a9a75e5.entry.js} +1 -1
  1193. package/dist/magma-components/{p-5435f2a9.entry.js → p-3b691cc3.entry.js} +1 -1
  1194. package/dist/magma-components/{p-3fd8ff0e.system.entry.js → p-3bdb541f.system.entry.js} +2 -2
  1195. package/dist/magma-components/{p-dbd34e3b.entry.js → p-3ca004c3.entry.js} +1 -1
  1196. package/dist/magma-components/{p-4776ac1f.entry.js → p-3caf6a26.entry.js} +1 -1
  1197. package/dist/magma-components/{p-1faa4f71.entry.js → p-3dccd446.entry.js} +1 -1
  1198. package/dist/magma-components/{p-396d95a1.system.entry.js → p-3dde41b0.system.entry.js} +3 -3
  1199. package/dist/magma-components/{p-6f81c9ef.system.entry.js → p-3e8e0003.system.entry.js} +2 -2
  1200. package/dist/magma-components/{p-21547758.system.entry.js → p-3f0e6729.system.entry.js} +3 -3
  1201. package/dist/magma-components/{p-481897a7.entry.js → p-42ab27de.entry.js} +1 -1
  1202. package/dist/magma-components/{p-80eea067.system.entry.js → p-430a4c4b.system.entry.js} +2 -2
  1203. package/dist/magma-components/{p-d48c40ab.system.entry.js → p-47b05fa1.system.entry.js} +1 -1
  1204. package/dist/magma-components/{p-e5eb2390.entry.js → p-47db3155.entry.js} +1 -1
  1205. package/dist/magma-components/{p-2c845743.system.entry.js → p-48f86057.system.entry.js} +1 -1
  1206. package/dist/magma-components/{p-7961c335.system.entry.js → p-4a72d72c.system.entry.js} +1 -1
  1207. package/dist/magma-components/{p-2d3b5eb5.entry.js → p-4aa94380.entry.js} +1 -1
  1208. package/dist/magma-components/{p-ab00b7b9.entry.js → p-4ab2eb7e.entry.js} +1 -1
  1209. package/dist/magma-components/{p-c3c487aa.system.entry.js → p-4bea91e1.system.entry.js} +1 -1
  1210. package/dist/magma-components/{p-f588cf9e.entry.js → p-4cd21f19.entry.js} +1 -1
  1211. package/dist/magma-components/{p-287601bb.entry.js → p-4de89d1b.entry.js} +1 -1
  1212. package/dist/magma-components/{p-23fabd66.system.entry.js → p-50c8f36c.system.entry.js} +1 -1
  1213. package/dist/magma-components/{p-d0bfdb44.system.entry.js → p-5200ab23.system.entry.js} +2 -2
  1214. package/dist/magma-components/{p-f35608b2.entry.js → p-52211fa3.entry.js} +1 -1
  1215. package/dist/magma-components/{p-74f515c3.system.entry.js → p-53981624.system.entry.js} +2 -2
  1216. package/dist/magma-components/p-53acdc6b.entry.js +1 -0
  1217. package/dist/magma-components/p-5660182a.system.entry.js +1 -0
  1218. package/dist/magma-components/{p-464e6431.entry.js → p-56c5ca6f.entry.js} +1 -1
  1219. package/dist/magma-components/p-57e92942.system.entry.js +20 -0
  1220. package/dist/magma-components/{p-63b10a6e.entry.js → p-59aa4994.entry.js} +1 -1
  1221. package/dist/magma-components/{p-9a3ddc91.entry.js → p-59f06b9c.entry.js} +1 -1
  1222. package/dist/magma-components/{p-3d95e688.system.entry.js → p-5aa78075.system.entry.js} +3 -3
  1223. package/dist/magma-components/p-5cf87a7f.entry.js +1 -0
  1224. package/dist/magma-components/{p-5da14e81.entry.js → p-5e8df58d.entry.js} +1 -1
  1225. package/dist/magma-components/{p-880f3eac.system.entry.js → p-5ed74216.system.entry.js} +1 -1
  1226. package/dist/magma-components/{p-84777b38.system.entry.js → p-5f064376.system.entry.js} +2 -2
  1227. package/dist/magma-components/{p-8173ed07.entry.js → p-60727165.entry.js} +2 -2
  1228. package/dist/magma-components/{p-278c362d.entry.js → p-6093aa8e.entry.js} +1 -1
  1229. package/dist/magma-components/{p-29450db3.entry.js → p-62d9eaca.entry.js} +1 -1
  1230. package/dist/magma-components/{p-4c6da1db.system.entry.js → p-6b402a09.system.entry.js} +9 -9
  1231. package/dist/magma-components/p-6b55c5fe.system.entry.js +1 -0
  1232. package/dist/magma-components/{p-3d162e99.system.entry.js → p-6d57674c.system.entry.js} +2 -2
  1233. package/dist/magma-components/p-6d96d223.entry.js +1 -0
  1234. package/dist/magma-components/{p-47717251.system.entry.js → p-6df26141.system.entry.js} +4 -4
  1235. package/dist/magma-components/{p-5f8db04c.system.entry.js → p-6df7da52.system.entry.js} +1 -1
  1236. package/dist/magma-components/{p-9250ec26.system.entry.js → p-6e751bcc.system.entry.js} +2 -2
  1237. package/dist/magma-components/{p-656b00df.system.entry.js → p-718d6384.system.entry.js} +8 -8
  1238. package/dist/magma-components/{p-8279056b.system.entry.js → p-71dab494.system.entry.js} +3 -3
  1239. package/dist/magma-components/{p-b5789a7c.entry.js → p-732d09b6.entry.js} +1 -1
  1240. package/dist/magma-components/{p-fac6f123.entry.js → p-73f4f67e.entry.js} +1 -1
  1241. package/dist/magma-components/{p-772c18f4.entry.js → p-785fa112.entry.js} +1 -1
  1242. package/dist/magma-components/{p-26b9f2b7.system.entry.js → p-79fd07e7.system.entry.js} +2 -2
  1243. package/dist/magma-components/{p-0033cb92.system.entry.js → p-7acbc6ea.system.entry.js} +1 -1
  1244. package/dist/magma-components/{p-67eb3881.entry.js → p-7dd0364b.entry.js} +1 -1
  1245. package/dist/magma-components/{p-cbb80188.entry.js → p-7e7391fd.entry.js} +1 -1
  1246. package/dist/magma-components/{p-f889d413.system.entry.js → p-7ec28ff1.system.entry.js} +2 -2
  1247. package/dist/magma-components/{p-71cbc840.entry.js → p-7f74ec99.entry.js} +1 -1
  1248. package/dist/magma-components/{p-0679c988.system.entry.js → p-7ffce9e8.system.entry.js} +1 -1
  1249. package/dist/magma-components/{p-06ccc40d.entry.js → p-81212e34.entry.js} +1 -1
  1250. package/dist/magma-components/{p-cf6f54e5.system.entry.js → p-8219e58f.system.entry.js} +2 -2
  1251. package/dist/magma-components/{p-860bce85.system.entry.js → p-84711ab6.system.entry.js} +3 -3
  1252. package/dist/magma-components/p-84bf333b.entry.js +1 -0
  1253. package/dist/magma-components/{p-4792ff7f.entry.js → p-84d0d701.entry.js} +1 -1
  1254. package/dist/magma-components/{p-30be5c39.entry.js → p-857ae762.entry.js} +1 -1
  1255. package/dist/magma-components/{p-8f63f1a1.system.entry.js → p-87395a4d.system.entry.js} +1 -1
  1256. package/dist/magma-components/{p-2431fbfa.system.entry.js → p-87831da2.system.entry.js} +1 -1
  1257. package/dist/magma-components/{p-e39518b4.system.entry.js → p-896310aa.system.entry.js} +2 -2
  1258. package/dist/magma-components/{p-dc1a5826.system.entry.js → p-8ac1ba5c.system.entry.js} +1 -1
  1259. package/dist/magma-components/{p-86cf87fb.entry.js → p-8b8a6662.entry.js} +1 -1
  1260. package/dist/magma-components/{p-62fc9695.entry.js → p-8d7093af.entry.js} +1 -1
  1261. package/dist/magma-components/{p-8ab9ff37.system.entry.js → p-8e15c151.system.entry.js} +1 -1
  1262. package/dist/magma-components/{p-a9ba496d.entry.js → p-8f1c529f.entry.js} +1 -1
  1263. package/dist/magma-components/{p-94289f3d.system.entry.js → p-8f1e9021.system.entry.js} +5 -5
  1264. package/dist/magma-components/{p-69abd1d1.entry.js → p-904c1222.entry.js} +1 -1
  1265. package/dist/magma-components/{p-a70fb4fb.system.entry.js → p-907f06cd.system.entry.js} +9 -9
  1266. package/dist/magma-components/{p-000c315c.entry.js → p-9332358d.entry.js} +1 -1
  1267. package/dist/magma-components/{p-2eb4efcd.system.entry.js → p-93b9d39d.system.entry.js} +2 -2
  1268. package/dist/magma-components/{p-d8ae0f02.system.entry.js → p-965e7a82.system.entry.js} +1 -1
  1269. package/dist/magma-components/{p-c50e20cf.system.entry.js → p-96dfb60e.system.entry.js} +1 -1
  1270. package/dist/magma-components/{p-835d79e5.system.entry.js → p-99bfa07e.system.entry.js} +1 -1
  1271. package/dist/magma-components/{p-3beea731.system.entry.js → p-9c408768.system.entry.js} +1 -1
  1272. package/dist/magma-components/{p-1d2220f0.system.entry.js → p-9e792bed.system.entry.js} +1 -1
  1273. package/dist/magma-components/{p-8258733b.entry.js → p-9fdd477a.entry.js} +1 -1
  1274. package/dist/magma-components/{p-f82c2b7e.system.entry.js → p-9fefa077.system.entry.js} +1 -1
  1275. package/dist/magma-components/p-B8zYiZQY.system.js +2 -2
  1276. package/dist/magma-components/{p-OOCOFWC0.system.js → p-CuHZXISO.system.js} +7 -3
  1277. package/dist/magma-components/{p-DXAjcaHM.system.js → p-CxTugGM9.system.js} +1 -1
  1278. package/dist/magma-components/{p-U5iXN1wy.js → p-Dx_cCOTw.js} +1 -1
  1279. package/dist/magma-components/{p-Raj-urIN.js → p-OafT80hV.js} +1 -1
  1280. package/dist/magma-components/{p-458eb34c.system.entry.js → p-a0d637b6.system.entry.js} +2 -2
  1281. package/dist/magma-components/p-a26c05b6.entry.js +1 -0
  1282. package/dist/magma-components/{p-ccc40c6a.system.entry.js → p-a7baf451.system.entry.js} +2 -2
  1283. package/dist/magma-components/p-ac9feb04.entry.js +1 -0
  1284. package/dist/magma-components/p-ad383f92.entry.js +1 -0
  1285. package/dist/magma-components/{p-42e50f25.system.entry.js → p-ae4736a0.system.entry.js} +4 -4
  1286. package/dist/magma-components/{p-9fc385aa.entry.js → p-b3332c5f.entry.js} +1 -1
  1287. package/dist/magma-components/{p-d37fe692.system.entry.js → p-b3e2b68a.system.entry.js} +2 -2
  1288. package/dist/magma-components/{p-808b9277.entry.js → p-b86144d4.entry.js} +1 -1
  1289. package/dist/magma-components/{p-2cbd532a.system.entry.js → p-bbde5701.system.entry.js} +2 -2
  1290. package/dist/magma-components/{p-577ae081.system.entry.js → p-bc075b3b.system.entry.js} +2 -2
  1291. package/dist/magma-components/{p-068e30a5.entry.js → p-bc19b136.entry.js} +1 -1
  1292. package/dist/magma-components/{p-254ee71d.entry.js → p-bcca26d9.entry.js} +1 -1
  1293. package/dist/magma-components/{p-fc2d1134.entry.js → p-bf35627d.entry.js} +1 -1
  1294. package/dist/magma-components/p-bfd95736.entry.js +1 -0
  1295. package/dist/magma-components/{p-6a2d67d1.system.entry.js → p-c086a5a4.system.entry.js} +1 -1
  1296. package/dist/magma-components/{p-41a0f896.entry.js → p-c27206ca.entry.js} +1 -1
  1297. package/dist/magma-components/{p-762a6b7b.entry.js → p-c2758b81.entry.js} +1 -1
  1298. package/dist/magma-components/{p-a76a9f92.system.entry.js → p-c2c693ed.system.entry.js} +2 -2
  1299. package/dist/magma-components/{p-642925b7.system.entry.js → p-c4a5ab6e.system.entry.js} +1 -1
  1300. package/dist/magma-components/{p-b23bee0c.entry.js → p-c58157cf.entry.js} +1 -1
  1301. package/dist/magma-components/{p-8a9544aa.entry.js → p-c597ad47.entry.js} +1 -1
  1302. package/dist/magma-components/{p-295d8fab.entry.js → p-c7b2ebb5.entry.js} +1 -1
  1303. package/dist/magma-components/{p-ae3bf24c.system.entry.js → p-c8b06821.system.entry.js} +2 -2
  1304. package/dist/magma-components/p-ca1143bc.entry.js +1 -0
  1305. package/dist/magma-components/p-cb88fa71.entry.js +1 -0
  1306. package/dist/magma-components/{p-471227f2.system.entry.js → p-cd783f9e.system.entry.js} +2 -2
  1307. package/dist/magma-components/{p-bd97e368.system.entry.js → p-cd955bc7.system.entry.js} +1 -1
  1308. package/dist/magma-components/{p-1f623b75.entry.js → p-ce42e251.entry.js} +1 -1
  1309. package/dist/magma-components/{p-7bf46d43.entry.js → p-cf4f4561.entry.js} +1 -1
  1310. package/dist/magma-components/{p-0d32e196.system.entry.js → p-d0a15a3a.system.entry.js} +5 -4
  1311. package/dist/magma-components/{p-96bb36b9.entry.js → p-d218ae47.entry.js} +1 -1
  1312. package/dist/magma-components/{p-b738d3c1.entry.js → p-d331ff5c.entry.js} +1 -1
  1313. package/dist/magma-components/{p-34c2daa9.system.entry.js → p-d3844c9a.system.entry.js} +4 -4
  1314. package/dist/magma-components/{p-837d31b8.entry.js → p-d3ac9a1a.entry.js} +1 -1
  1315. package/dist/magma-components/{p-8740403e.system.entry.js → p-d4c3250f.system.entry.js} +2 -2
  1316. package/dist/magma-components/p-d638bbb0.entry.js +1 -0
  1317. package/dist/magma-components/{p-72ad419d.system.entry.js → p-d65e9f0a.system.entry.js} +1 -1
  1318. package/dist/magma-components/{p-358aa5e7.entry.js → p-d87ecd68.entry.js} +1 -1
  1319. package/dist/magma-components/{p-2e48f88d.system.entry.js → p-d93b48b4.system.entry.js} +1 -1
  1320. package/dist/magma-components/{p-9855b517.entry.js → p-d94281cb.entry.js} +1 -1
  1321. package/dist/magma-components/{p-55746791.entry.js → p-d9f92ff8.entry.js} +1 -1
  1322. package/dist/magma-components/{p-4cabfdbc.entry.js → p-da9bc02a.entry.js} +1 -1
  1323. package/dist/magma-components/{p-0148cf0a.entry.js → p-dc618cae.entry.js} +1 -1
  1324. package/dist/magma-components/p-de38f745.entry.js +1 -0
  1325. package/dist/magma-components/{p-0b3e4a97.system.entry.js → p-dee123c7.system.entry.js} +2 -2
  1326. package/dist/magma-components/p-df387755.entry.js +1 -0
  1327. package/dist/magma-components/p-dfab370b.entry.js +1 -0
  1328. package/dist/magma-components/{p-0e887379.system.entry.js → p-e30d0684.system.entry.js} +2 -2
  1329. package/dist/magma-components/{p-f66675f5.system.entry.js → p-e371f9e1.system.entry.js} +1 -1
  1330. package/dist/magma-components/{p-8f7daab1.system.entry.js → p-e3b9ea0b.system.entry.js} +1 -1
  1331. package/dist/magma-components/{p-104ba54e.system.entry.js → p-e3d262d9.system.entry.js} +2 -2
  1332. package/dist/magma-components/{p-7fde3025.system.entry.js → p-e54587e7.system.entry.js} +3 -3
  1333. package/dist/magma-components/{p-2cdf450c.system.entry.js → p-e5f893f9.system.entry.js} +2 -2
  1334. package/dist/magma-components/{p-d0a93a14.system.entry.js → p-e709a52e.system.entry.js} +6 -3
  1335. package/dist/magma-components/{p-8680f63e.entry.js → p-e8452cce.entry.js} +1 -1
  1336. package/dist/magma-components/{p-09f621ea.entry.js → p-ea503851.entry.js} +1 -1
  1337. package/dist/magma-components/{p-3dc81ab9.system.entry.js → p-ec44a4ea.system.entry.js} +4 -4
  1338. package/dist/magma-components/{p-8645533a.entry.js → p-ed133270.entry.js} +1 -1
  1339. package/dist/magma-components/{p-77939a25.system.entry.js → p-ee780f82.system.entry.js} +2 -2
  1340. package/dist/magma-components/p-ef4ee9ca.entry.js +1 -0
  1341. package/dist/magma-components/{p-15ffdcf6.entry.js → p-f045b018.entry.js} +1 -1
  1342. package/dist/magma-components/{p-87ce9d6c.entry.js → p-f2211b1f.entry.js} +1 -1
  1343. package/dist/magma-components/{p-2aac4003.entry.js → p-f267ff68.entry.js} +1 -1
  1344. package/dist/magma-components/{p-41a28f2a.system.entry.js → p-f27de6cb.system.entry.js} +3 -3
  1345. package/dist/magma-components/{p-1908f808.entry.js → p-f2ef884c.entry.js} +1 -1
  1346. package/dist/magma-components/{p-9f8ce68f.entry.js → p-f3f88f32.entry.js} +1 -1
  1347. package/dist/magma-components/{p-1eee93c8.system.entry.js → p-f40e3918.system.entry.js} +2 -2
  1348. package/dist/magma-components/{p-6e32bf99.entry.js → p-f4181b35.entry.js} +1 -1
  1349. package/dist/magma-components/{p-8a76097f.entry.js → p-f4351160.entry.js} +1 -1
  1350. package/dist/magma-components/{p-c3a3caae.system.entry.js → p-f4fc9f29.system.entry.js} +1 -1
  1351. package/dist/magma-components/{p-f2f992c2.system.entry.js → p-f5c7b147.system.entry.js} +2 -2
  1352. package/dist/magma-components/{p-84ed22ea.system.entry.js → p-f7d5445c.system.entry.js} +1 -1
  1353. package/dist/magma-components/{p-08370fc2.system.entry.js → p-f7e9af99.system.entry.js} +1 -1
  1354. package/dist/magma-components/{p-95478664.system.entry.js → p-f8c85ad7.system.entry.js} +1 -1
  1355. package/dist/magma-components/{p-c6819aad.entry.js → p-f9b601de.entry.js} +1 -1
  1356. package/dist/magma-components/{p-357724ab.entry.js → p-fa44d0d2.entry.js} +1 -1
  1357. package/dist/magma-components/{p-d3d74616.entry.js → p-fba648e0.entry.js} +1 -1
  1358. package/dist/magma-components/p-fe8e3721.system.entry.js +225 -0
  1359. package/dist/magma-components/{p-8d6470fb.system.entry.js → p-fe98a77e.system.entry.js} +2 -2
  1360. package/dist/magma-components/{p-d980c3d2.system.entry.js → p-ff7fc1f6.system.entry.js} +2 -2
  1361. package/dist/stats.json +3498 -1516
  1362. package/dist/types/common/locale.d.ts +5 -0
  1363. package/dist/types/components/mds-accordion/mds-accordion.d.ts +1 -0
  1364. package/dist/types/components/mds-accordion-item/mds-accordion-item.d.ts +1 -0
  1365. package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +1 -0
  1366. package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +1 -0
  1367. package/dist/types/components/mds-author/mds-author.d.ts +1 -0
  1368. package/dist/types/components/mds-avatar/mds-avatar.d.ts +1 -0
  1369. package/dist/types/components/mds-avatar-stack/mds-avatar-stack.d.ts +1 -0
  1370. package/dist/types/components/mds-avatar-stack-item/mds-avatar-stack-item.d.ts +3 -0
  1371. package/dist/types/components/mds-badge/mds-badge.d.ts +1 -0
  1372. package/dist/types/components/mds-banner/mds-banner.d.ts +1 -0
  1373. package/dist/types/components/mds-benchmark-bar/mds-benchmark-bar.d.ts +1 -0
  1374. package/dist/types/components/mds-bibliography/mds-bibliography.d.ts +3 -0
  1375. package/dist/types/components/mds-book/mds-book.d.ts +114 -0
  1376. package/dist/types/components/mds-book/meta/dictionary.d.ts +4 -0
  1377. package/dist/types/components/mds-book/meta/format.d.ts +30 -0
  1378. package/dist/types/components/mds-book/meta/pose.d.ts +64 -0
  1379. package/dist/types/components/mds-book/meta/spine.d.ts +33 -0
  1380. package/dist/types/components/mds-book/meta/types.d.ts +3 -0
  1381. package/dist/types/components/mds-book/meta/volume.d.ts +22 -0
  1382. package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +1 -0
  1383. package/dist/types/components/mds-breadcrumb-item/mds-breadcrumb-item.d.ts +1 -0
  1384. package/dist/types/components/mds-button/mds-button.d.ts +1 -0
  1385. package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +1 -0
  1386. package/dist/types/components/mds-button-group/mds-button-group.d.ts +1 -0
  1387. package/dist/types/components/mds-calendar/mds-calendar.d.ts +1 -0
  1388. package/dist/types/components/mds-calendar-cell/mds-calendar-cell.d.ts +3 -0
  1389. package/dist/types/components/mds-card/mds-card.d.ts +1 -0
  1390. package/dist/types/components/mds-card-content/mds-card-content.d.ts +1 -0
  1391. package/dist/types/components/mds-card-footer/mds-card-footer.d.ts +1 -0
  1392. package/dist/types/components/mds-card-header/mds-card-header.d.ts +1 -0
  1393. package/dist/types/components/mds-card-media/mds-card-media.d.ts +1 -0
  1394. package/dist/types/components/mds-chip/mds-chip.d.ts +3 -0
  1395. package/dist/types/components/mds-details/mds-details.d.ts +1 -0
  1396. package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +1 -0
  1397. package/dist/types/components/mds-emoji/mds-emoji.d.ts +3 -0
  1398. package/dist/types/components/mds-entity/mds-entity.d.ts +1 -0
  1399. package/dist/types/components/mds-file/mds-file.d.ts +3 -0
  1400. package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +1 -0
  1401. package/dist/types/components/mds-filter/mds-filter.d.ts +1 -0
  1402. package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +3 -0
  1403. package/dist/types/components/mds-header/mds-header.d.ts +1 -0
  1404. package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +1 -0
  1405. package/dist/types/components/mds-help/mds-help.d.ts +1 -0
  1406. package/dist/types/components/mds-horizontal-scroll/mds-horizontal-scroll.d.ts +1 -0
  1407. package/dist/types/components/mds-hr/mds-hr.d.ts +3 -0
  1408. package/dist/types/components/mds-icon/mds-icon.d.ts +1 -0
  1409. package/dist/types/components/mds-img/mds-img.d.ts +1 -0
  1410. package/dist/types/components/mds-input/mds-input.d.ts +1 -0
  1411. package/dist/types/components/mds-input/meta/validators.d.ts +7 -2
  1412. package/dist/types/components/mds-input/meta/validity.d.ts +3 -2
  1413. package/dist/types/components/mds-input-date/mds-input-date.d.ts +1 -0
  1414. package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +1 -0
  1415. package/dist/types/components/mds-input-date-range-preselection/mds-input-date-range-preselection.d.ts +1 -0
  1416. package/dist/types/components/mds-input-field/mds-input-field.d.ts +1 -0
  1417. package/dist/types/components/mds-input-otp/mds-input-otp.d.ts +3 -0
  1418. package/dist/types/components/mds-input-range/mds-input-range.d.ts +1 -0
  1419. package/dist/types/components/mds-input-select/mds-input-select.d.ts +3 -1
  1420. package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +1 -0
  1421. package/dist/types/components/mds-input-tip/mds-input-tip.d.ts +1 -0
  1422. package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +1 -0
  1423. package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +3 -0
  1424. package/dist/types/components/mds-keyboard/mds-keyboard.d.ts +1 -0
  1425. package/dist/types/components/mds-keyboard-key/mds-keyboard-key.d.ts +3 -0
  1426. package/dist/types/components/mds-kpi/mds-kpi.d.ts +1 -0
  1427. package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +1 -0
  1428. package/dist/types/components/mds-label/mds-label.d.ts +3 -0
  1429. package/dist/types/components/mds-link/mds-link.d.ts +1 -0
  1430. package/dist/types/components/mds-list/mds-list.d.ts +1 -0
  1431. package/dist/types/components/mds-list-item/mds-list-item.d.ts +1 -0
  1432. package/dist/types/components/mds-mention/mds-mention.d.ts +3 -0
  1433. package/dist/types/components/mds-modal/mds-modal.d.ts +1 -0
  1434. package/dist/types/components/mds-note/mds-note.d.ts +1 -0
  1435. package/dist/types/components/mds-notification/mds-notification.d.ts +3 -0
  1436. package/dist/types/components/mds-paginator/mds-paginator.d.ts +3 -0
  1437. package/dist/types/components/mds-paginator-item/mds-paginator-item.d.ts +1 -0
  1438. package/dist/types/components/mds-policy-ai/mds-policy-ai.d.ts +1 -0
  1439. package/dist/types/components/mds-pref/mds-pref.d.ts +1 -1
  1440. package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +3 -0
  1441. package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +3 -0
  1442. package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +3 -0
  1443. package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +1 -0
  1444. package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +3 -0
  1445. package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +3 -0
  1446. package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +1 -0
  1447. package/dist/types/components/mds-pref-theme-item/mds-pref-theme-item.d.ts +3 -0
  1448. package/dist/types/components/mds-price-table/mds-price-table.d.ts +1 -0
  1449. package/dist/types/components/mds-price-table-features/mds-price-table-features.d.ts +1 -0
  1450. package/dist/types/components/mds-price-table-features-cell/mds-price-table-features-cell.d.ts +1 -0
  1451. package/dist/types/components/mds-price-table-features-row/mds-price-table-features-row.d.ts +1 -0
  1452. package/dist/types/components/mds-price-table-header/mds-price-table-header.d.ts +1 -0
  1453. package/dist/types/components/mds-price-table-list/mds-price-table-list.d.ts +1 -0
  1454. package/dist/types/components/mds-price-table-list-item/mds-price-table-list-item.d.ts +1 -0
  1455. package/dist/types/components/mds-progress/mds-progress.d.ts +1 -0
  1456. package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +1 -0
  1457. package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +1 -0
  1458. package/dist/types/components/mds-quote/mds-quote.d.ts +1 -0
  1459. package/dist/types/components/mds-radial-menu/mds-radial-menu.d.ts +1 -0
  1460. package/dist/types/components/mds-radial-menu-item/mds-radial-menu-item.d.ts +3 -0
  1461. package/dist/types/components/mds-radial-progress/mds-radial-progress.d.ts +1 -0
  1462. package/dist/types/components/mds-separator/mds-separator.d.ts +3 -0
  1463. package/dist/types/components/mds-spinner/mds-spinner.d.ts +3 -0
  1464. package/dist/types/components/mds-status-bar/mds-status-bar.d.ts +1 -0
  1465. package/dist/types/components/mds-stepper-bar/mds-stepper-bar.d.ts +1 -0
  1466. package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +1 -0
  1467. package/dist/types/components/mds-tab/mds-tab.d.ts +1 -0
  1468. package/dist/types/components/mds-tab-bar/mds-tab-bar.d.ts +1 -0
  1469. package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +1 -0
  1470. package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +1 -0
  1471. package/dist/types/components/mds-table/mds-table.d.ts +1 -0
  1472. package/dist/types/components/mds-table-body/mds-table-body.d.ts +1 -0
  1473. package/dist/types/components/mds-table-cell/mds-table-cell.d.ts +1 -0
  1474. package/dist/types/components/mds-table-footer/mds-table-footer.d.ts +1 -0
  1475. package/dist/types/components/mds-table-header/mds-table-header.d.ts +1 -0
  1476. package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +1 -0
  1477. package/dist/types/components/mds-table-row/mds-table-row.d.ts +1 -0
  1478. package/dist/types/components/mds-text/mds-text.d.ts +1 -0
  1479. package/dist/types/components/mds-toast/mds-toast.d.ts +1 -0
  1480. package/dist/types/components/mds-toast-region/mds-toast-region.d.ts +1 -0
  1481. package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +1 -0
  1482. package/dist/types/components/mds-tree/mds-tree.d.ts +1 -0
  1483. package/dist/types/components/mds-tree-item/mds-tree-item.d.ts +1 -0
  1484. package/dist/types/components/mds-url-view/mds-url-view.d.ts +3 -0
  1485. package/dist/types/components/mds-usage/mds-usage.d.ts +1 -0
  1486. package/dist/types/components/mds-video-wall/mds-video-wall.d.ts +1 -0
  1487. package/dist/types/components/mds-zero/mds-zero.d.ts +1 -0
  1488. package/dist/types/components.d.ts +1517 -6
  1489. package/package.json +42 -5
  1490. package/dist/components/p-B0AnE3sA.js +0 -1
  1491. package/dist/components/p-BbTcXgbr.js +0 -1
  1492. package/dist/components/p-CHHEp_7y.js +0 -1
  1493. package/dist/components/p-D8wd-EZX.js +0 -1
  1494. package/dist/magma-components/p-083dceb8.system.entry.js +0 -1
  1495. package/dist/magma-components/p-0eb3558a.entry.js +0 -1
  1496. package/dist/magma-components/p-2a964578.entry.js +0 -1
  1497. package/dist/magma-components/p-335244bb.entry.js +0 -1
  1498. package/dist/magma-components/p-3fb46ab9.system.entry.js +0 -1
  1499. package/dist/magma-components/p-4d485e1f.system.entry.js +0 -1
  1500. package/dist/magma-components/p-57839384.system.entry.js +0 -17
  1501. package/dist/magma-components/p-632ad925.system.entry.js +0 -222
  1502. package/dist/magma-components/p-6436178a.entry.js +0 -1
  1503. package/dist/magma-components/p-644e64a0.entry.js +0 -1
  1504. package/dist/magma-components/p-791a6a6f.entry.js +0 -1
  1505. package/dist/magma-components/p-7ec1ea2e.entry.js +0 -1
  1506. package/dist/magma-components/p-89d4b6e9.entry.js +0 -1
  1507. package/dist/magma-components/p-984dd850.entry.js +0 -1
  1508. package/dist/magma-components/p-a7c01334.entry.js +0 -1
  1509. package/dist/magma-components/p-a8e1ce2f.entry.js +0 -1
  1510. package/dist/magma-components/p-ab4b617d.entry.js +0 -1
  1511. package/dist/magma-components/p-d6b38d8a.entry.js +0 -1
  1512. package/dist/magma-components/p-da24a265.entry.js +0 -1
  1513. package/dist/magma-components/p-e1383302.entry.js +0 -1
  1514. package/dist/magma-components/p-f1aafe07.entry.js +0 -1
  1515. package/dist/magma-components/p-f78c1699.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{p as e,H as r,h as a,c as n,t}from"./p-TZJN-ygm.js";import{d as l}from"./p-M8dGB4KH.js";import{d as o}from"./p-CEw7GvM-.js";import{d as c}from"./p-DDTJwlAd.js";import{d as i}from"./p-aujz-VM9.js";const d=e(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.month="current",this.orientation="horizontal",this.preview=!1,this.disabled=void 0,this.today=void 0}render(){return a(n,{key:"a393822aa73f1d6094e8b0faa05ebe863ce20749"},a("div",{key:"c80b08e7bf127713f261c35b0807d21fae450950",class:"inner-dot"}),a("div",{key:"571f5470a1465c2541bb1328ad6a3b1600af64bb",class:"area-background"}),a("mds-button",{key:"d303799a03cd311d4dcb7aaf0141838d7f99cde7",class:"action",variant:"dark",tone:"text",disabled:this.disabled,label:this.label}))}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--private-calendar-cell-background:var(--mds-calendar-cell-background,#0000);--private-calendar-cell-boundaries-padding:var(--mds-calendar-cell-boundaries-padding,calc(var(--spacing,.0025rem)*100));--private-calendar-cell-color:var(--mds-calendar-cell-color,var(--mds-calendar-day-number-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));--private-calendar-cell-other-month-background:var(--mds-calendar-cell-other-month-background,#0000);--private-calendar-cell-other-month-color:var(--mds-calendar-cell-other-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-disabled-background:var(--mds-calendar-cell-disabled-background,#0000);--private-calendar-cell-disabled-color:var(--mds-calendar-cell-disabled-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-weekend-background:var(--mds-calendar-cell-weekend-background,#0000);--private-calendar-cell-weekend-color:var(--mds-calendar-cell-weekend-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));--private-calendar-cell-selection-boundaries-border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,var(--magma-radius-full,var(--radius-full,1000px)));--private-calendar-cell-selection-week-boundaries-border-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,var(--magma-radius-full,var(--radius-full,1000px)));--private-calendar-cell-preselection-today-background:var(--mds-calendar-cell-preselection-today-background,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));--private-calendar-cell-preselection-today-color:var(--mds-calendar-cell-preselection-today-color,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));--private-calendar-cell-preselection-current-month-background:var(--mds-calendar-cell-preselection-current-month-background,rgb(var(--magma-accent-surface-hover,var(--variant-primary-08,204 212 226))));--private-calendar-cell-preselection-current-month-color:var(--mds-calendar-cell-preselection-current-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-current-month-boundaries-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-current-month-boundaries-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--private-calendar-cell-preselection-other-month-background:var(--mds-calendar-cell-preselection-other-month-background,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));--private-calendar-cell-preselection-other-month-color:var(--mds-calendar-cell-preselection-other-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-other-month-boundaries-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-other-month-boundaries-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));--private-calendar-cell-selection-current-month-background:var(--mds-calendar-cell-selection-current-month-background,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--private-calendar-cell-selection-current-month-color:var(--mds-calendar-cell-selection-current-month-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--private-calendar-cell-selection-current-month-boundaries-background:var(--mds-calendar-cell-selection-current-month-boundaries-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));--private-calendar-cell-selection-current-month-boundaries-color:var(--mds-calendar-cell-selection-current-month-boundaries-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--private-calendar-cell-selection-current-month-weekend-background:var(--mds-calendar-cell-selection-current-month-weekend-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--private-calendar-cell-selection-current-month-weekend-color:var(--mds-calendar-cell-selection-current-month-weekend-color,rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218))));--private-calendar-cell-selection-current-month-weekend-boundaries-background:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--private-calendar-cell-selection-current-month-weekend-boundaries-color:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--private-calendar-cell-selection-other-month-background:var(--mds-calendar-cell-selection-other-month-background,rgb(var(--magma-accent-surface-hover,var(--variant-primary-08,204 212 226))));--private-calendar-cell-selection-other-month-color:var(--mds-calendar-cell-selection-other-month-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));--private-calendar-cell-selection-other-month-boundaries-background:var(--mds-calendar-cell-selection-other-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--private-calendar-cell-selection-other-month-boundaries-color:var(--mds-calendar-cell-selection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));align-items:center;aspect-ratio:1;display:flex;justify-content:center;padding:var(--private-calendar-cell-boundaries-padding);position:relative}:host([month=other]){visibility:var(--mds-calendar-cell-other-month-visibility,hidden)}.inner-dot{aspect-ratio:1;background-color:var(--private-calendar-cell-inner-background);border-radius:var(--private-calendar-cell-selection-boundaries-border-radius);display:flex;min-height:0;min-width:0;width:100%;z-index:1}.area-background{background-color:var(--private-calendar-cell-background);inset:0;position:absolute;z-index:0}.action,.area-background{color:var(--private-calendar-cell-color)}.action{align-items:center;background-color:#0000;border-radius:0;display:flex;inset:calc(var(--mds-calendar-cell-gap)*-1);justify-content:center;min-height:0;min-width:0;padding:0;place-self:stretch stretch;position:absolute;width:auto;z-index:2}:host([selection]:not(:where([selection=none]))[orientation=horizontal]) .area-background{margin-left:calc(var(--mds-calendar-cell-gap)*-1);margin-right:calc(var(--mds-calendar-cell-gap)*-1)}:host([selection=start][orientation=horizontal]) .area-background{border-bottom-left-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-left-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-left:0}:host([selection=end][orientation=horizontal]) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-right:0}:host([selection]:not(:where([selection=none]))[orientation=vertical]) .area-background{margin-bottom:calc(var(--mds-calendar-cell-gap)*-1);margin-top:calc(var(--mds-calendar-cell-gap)*-1)}:host([selection=start][orientation=vertical]) .area-background{border-radius:var(--private-calendar-cell-selection-boundaries-border-radius) var(--private-calendar-cell-selection-boundaries-border-radius) 0 0;margin-top:0}:host([selection=end][orientation=vertical]) .area-background{border-radius:0 0 var(--private-calendar-cell-selection-boundaries-border-radius) var(--private-calendar-cell-selection-boundaries-border-radius);margin-bottom:0}:host([orientation=vertical]:not([selection=start],[selection=end])) .area-background{border-radius:0}:host(:nth-child(7n-6)) .area-background,:host([selection=end][orientation=horizontal]:nth-child(7n-6)) .area-background{border-bottom-left-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius);border-top-left-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius)}:host(:nth-child(7n)) .area-background,:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius)}:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius)}:host([selection]:not(:where([selection=none]))[orientation=horizontal]:nth-child(7n-6)) .area-background{margin-left:0}:host([selection]:not(:where([selection=none]))[orientation=horizontal]:nth-child(7n)) .area-background{margin-right:0}:host([selection=single][orientation=horizontal]) .area-background{border-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-left:0;margin-right:0}:host(:nth-child(7n)),:host(:nth-child(7n-1)){--private-calendar-cell-color:var(--private-calendar-cell-weekend-color);--private-calendar-cell-background:var(--private-calendar-cell-weekend-background)}:host([month=other]:not([selection]:not(:where([selection=none])))){--private-calendar-cell-color:var(--private-calendar-cell-other-month-color);--private-calendar-cell-background:var(--private-calendar-cell-other-month-background)}:host([disabled]){--private-calendar-cell-color:var(--private-calendar-cell-disabled-color);--private-calendar-cell-background:var(--private-calendar-cell-disabled-background);cursor:auto;pointer-events:none}:host(:not([selection]:not(:where([selection=none])))[today]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-today-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-today-color)}:host([selection]:not(:where([selection=none]))[month=current]){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-color)}:host([selection]:not(:where([selection=none]))[month=current]:nth-child(7n)),:host([selection]:not(:where([selection=none]))[month=current]:nth-child(7n-1)){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-weekend-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-weekend-color)}:host([selection=end][month=current]:nth-child(7n)),:host([selection=end][month=current]:nth-child(7n-1)),:host([selection=start][month=current]:nth-child(7n)),:host([selection=start][month=current]:nth-child(7n-1)){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-weekend-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-weekend-boundaries-color)}:host([selection]:not(:where([selection=none]))[month=other]){--private-calendar-cell-background:var(--private-calendar-cell-selection-other-month-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-other-month-color)}:host([selection=end][month=current]),:host([selection=start][month=current]){--private-calendar-cell-inner-background:var(--private-calendar-cell-selection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-boundaries-color)}:host([selection=end][month=other]),:host([selection=start][month=other]){--private-calendar-cell-inner-background:var(--private-calendar-cell-selection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-other-month-boundaries-color)}:host([selection]:not(:where([selection=none]))[month=current][preview]:not([preview=false])){--private-calendar-cell-background:var(--private-calendar-cell-preselection-current-month-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-color)}:host([selection]:not(:where([selection=none]))[month=other][preview]:not([preview=false])){--private-calendar-cell-background:var(--private-calendar-cell-preselection-other-month-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-color)}:host([selection=end][month=current][preview]:not([preview=false])),:host([selection=start][month=current][preview]:not([preview=false])){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-boundaries-color)}:host([selection=end][month=other][preview]:not([preview=false])),:host([selection=start][month=other][preview]:not([preview=false])){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-boundaries-color)}:host([selection=single][month=current]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-boundaries-color)}:host([selection=single][month=other]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-boundaries-color)}"}},[1,"mds-calendar-cell",{month:[513],label:[513],date:[513],orientation:[513],preview:[516],selection:[513],disabled:[516],today:[516]}]);function s(){"undefined"!=typeof customElements&&["mds-calendar-cell","mds-button","mds-icon","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-calendar-cell":customElements.get(t(e))||customElements.define(t(e),d);break;case"mds-button":customElements.get(t(e))||l();break;case"mds-icon":customElements.get(t(e))||o();break;case"mds-spinner":customElements.get(t(e))||c();break;case"mds-text":customElements.get(t(e))||i()}}))}export{d as M,s as d}
@@ -1 +1 @@
1
- import{p as t,H as e,d as i,h as s,c as n,t as r,B as o}from"./p-TZJN-ygm.js";import{p as a}from"./p-CVRN4LDc.js";import{m as l}from"./p-Ccz0jCNB.js";import{m as d}from"./p-DiWN48aq.js";import{c as h}from"./p-ChV9xqsO.js";import{d as c}from"./p-ClPv-Ljc.js";import{d as m}from"./p-Cmn1DJAB.js";import{d as p}from"./p-ZuubAcA3.js";import{d as u}from"./p-CNF3u0Li.js";const b=["none","ascending","descending"],f=new WeakMap,v=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.sortEvent=i(this,"mdsTableHeaderCellSort",7),this.writingDirection=!1,this.direction="none",this.table=()=>this.element.closest("mds-table"),this.body=()=>{var t;return null===(t=this.table())||void 0===t?void 0:t.querySelector("mds-table-body")},this.rows=t=>Array.from(t.children),this.index=()=>{var t,e;return Array.from(null!==(e=null===(t=this.element.closest("mds-table-header"))||void 0===t?void 0:t.children)&&void 0!==e?e:[]).indexOf(this.element)},this.siblings=()=>{var t,e;return Array.from(null!==(e=null===(t=this.element.closest("mds-table-header"))||void 0===t?void 0:t.querySelectorAll("mds-table-header-cell"))&&void 0!==e?e:[]).filter((t=>t!==this.element))},this.hasSortedSibling=()=>this.siblings().some((t=>"none"!==t.direction)),this.isExternal=()=>{var t;const e=this.table();return"external"===(null!==(t=null==e?void 0:e.sorting)&&void 0!==t?t:null==e?void 0:e.getAttribute("sorting"))},this.getValue=t=>null==t.value||""===t.value||0===t.value||Number.isNaN(t.value)?null!==t.textContent&&""!==t.textContent?t.textContent.trim():"":t.value,this.sortRows=t=>{if("none"===this.direction){if(this.hasSortedSibling())return;const e=f.get(t);if(f.delete(t),!e)return;const i=new Set(e),s=this.rows(t).filter((t=>!i.has(t)));return void[...e.filter((e=>e.parentElement===t)),...s].forEach((e=>t.appendChild(e)))}f.has(t)||f.set(t,this.rows(t));const e=this.index();[...this.rows(t)].sort(((t,i)=>{const s=this.getValue(t.querySelectorAll("mds-table-cell")[e]),n=this.getValue(i.querySelectorAll("mds-table-cell")[e]);return isNaN(Number(s))||isNaN(Number(n))?"ascending"===this.direction?String(s).localeCompare(String(n)):String(n).localeCompare(String(s)):"ascending"===this.direction?Number(s)-Number(n):Number(n)-Number(s)})).forEach((e=>t.appendChild(e)))},this.markRows=t=>{const e=this.index(),i="none"!==this.direction,s=!i&&this.hasSortedSibling();this.rows(t).forEach((t=>{i?t.setAttribute("sorted",""):s||t.removeAttribute("sorted");const n=t.children[e];i?null==n||n.setAttribute("sorted",""):null==n||n.removeAttribute("sorted")}))},this.observeRows=t=>{var e;null===(e=this.bodyObserver)||void 0===e||e.disconnect(),this.bodyObserver=void 0,"none"!==this.direction&&o.isBrowser&&(this.bodyObserver=new MutationObserver((()=>this.markRows(t))),this.bodyObserver.observe(t,{childList:!0}))},this.applyDirection=()=>{const t=this.body();this.sortable&&t&&("none"!==this.direction&&this.siblings().forEach((t=>{"none"!==t.direction&&(t.direction="none")})),this.isExternal()||this.sortRows(t),this.markRows(t),this.observeRows(t))},this.sort=()=>{const t=b[(b.indexOf(this.direction)+1)%b.length];this.writingDirection=!0,this.direction=t,this.writingDirection=!1,this.applyDirection(),this.sortEvent.emit({direction:t,index:this.index(),sortKey:this.sortKey})}}componentDidLoad(){"none"!==this.direction&&this.applyDirection()}disconnectedCallback(){var t;null===(t=this.bodyObserver)||void 0===t||t.disconnect()}directionHandler(){this.writingDirection||this.applyDirection()}render(){return s(n,{key:"76813fcc6d44572d0db8b843ecd236cd0eaf6054",role:"columnheader","aria-sort":this.direction,"pref-animation":a.state.animation},this.sortable?s("mds-button",{class:"action",icon:h("none"===this.direction&&'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5.83L15.17 9l1.41-1.41L12 3L7.41 7.59L8.83 9L12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15L12 18.17z"/></svg>',"ascending"===this.direction&&l,"descending"===this.direction&&d),"icon-position":"right",onClick:this.sort,tone:"text",variant:"dark",size:"sm",part:"action",label:this.label}):s("mds-text",{class:"label",typography:"label",part:"label"},this.label))}get element(){return this}static get watchers(){return{direction:[{directionHandler:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial;--tw-font-weight:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-table-header-cell-transition-duration:var(--duration-200,.2s);--private-table-header-cell-transition-duration:var(--mds-table-header-cell-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:var(--mds-table-background);border-bottom:var(--private-cell-border-width) solid var(--private-cell-border-color)!important;border-top:var(--private-cell-border-width) solid #0000!important;display:table-cell;padding:var(--mds-table-cell-padding);transition-duration:var(--private-table-header-cell-transition-duration);transition-property:background-color,border-color,color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));vertical-align:top;white-space:nowrap}.action{margin-inline:calc(var(--spacing,.0025rem)*-200);padding-inline:calc(var(--spacing,.0025rem)*200)}.action:hover,:host([direction=ascending]) .action,:host([direction=descending]) .action{background-color:var(--mds-table-background-alt)}.action::part(label){font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);min-height:auto;text-box:trim-both cap alphabetic;--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700);text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--text-size-info-label,.75rem);font-weight:var(--tw-font-weight,var(--text-size-info-label--font-weight,700));line-height:var(--tw-leading,var(--text-size-info-label--line-height,1rem))}.label{align-items:center;display:inline-flex;height:calc(var(--spacing,.0025rem)*700)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-table-header-cell-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-table-header-cell-transition-duration:0s}}'}},[1,"mds-table-header-cell",{sortable:[516],label:[513],sortKey:[513,"sort-key"],direction:[1537]},void 0,{direction:[{directionHandler:0}]}]);function g(){"undefined"!=typeof customElements&&["mds-table-header-cell","mds-button","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-table-header-cell":customElements.get(r(t))||customElements.define(r(t),v);break;case"mds-button":customElements.get(r(t))||c();break;case"mds-icon":customElements.get(r(t))||m();break;case"mds-spinner":customElements.get(r(t))||p();break;case"mds-text":customElements.get(r(t))||u()}}))}export{v as M,g as d}
1
+ import{p as t,H as e,d as i,h as s,c as n,t as r,B as o}from"./p-TZJN-ygm.js";import{p as a}from"./p-CVRN4LDc.js";import{m as l}from"./p-Ccz0jCNB.js";import{m as d}from"./p-DiWN48aq.js";import{c as h}from"./p-ChV9xqsO.js";import{d as c}from"./p-M8dGB4KH.js";import{d as m}from"./p-CEw7GvM-.js";import{d as p}from"./p-DDTJwlAd.js";import{d as u}from"./p-aujz-VM9.js";const b=["none","ascending","descending"],f=new WeakMap,v=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.sortEvent=i(this,"mdsTableHeaderCellSort",7),this.writingDirection=!1,this.direction="none",this.table=()=>this.element.closest("mds-table"),this.body=()=>{var t;return null===(t=this.table())||void 0===t?void 0:t.querySelector("mds-table-body")},this.rows=t=>Array.from(t.children),this.index=()=>{var t,e;return Array.from(null!==(e=null===(t=this.element.closest("mds-table-header"))||void 0===t?void 0:t.children)&&void 0!==e?e:[]).indexOf(this.element)},this.siblings=()=>{var t,e;return Array.from(null!==(e=null===(t=this.element.closest("mds-table-header"))||void 0===t?void 0:t.querySelectorAll("mds-table-header-cell"))&&void 0!==e?e:[]).filter((t=>t!==this.element))},this.hasSortedSibling=()=>this.siblings().some((t=>"none"!==t.direction)),this.isExternal=()=>{var t;const e=this.table();return"external"===(null!==(t=null==e?void 0:e.sorting)&&void 0!==t?t:null==e?void 0:e.getAttribute("sorting"))},this.getValue=t=>null==t.value||""===t.value||0===t.value||Number.isNaN(t.value)?null!==t.textContent&&""!==t.textContent?t.textContent.trim():"":t.value,this.sortRows=t=>{if("none"===this.direction){if(this.hasSortedSibling())return;const e=f.get(t);if(f.delete(t),!e)return;const i=new Set(e),s=this.rows(t).filter((t=>!i.has(t)));return void[...e.filter((e=>e.parentElement===t)),...s].forEach((e=>t.appendChild(e)))}f.has(t)||f.set(t,this.rows(t));const e=this.index();[...this.rows(t)].sort(((t,i)=>{const s=this.getValue(t.querySelectorAll("mds-table-cell")[e]),n=this.getValue(i.querySelectorAll("mds-table-cell")[e]);return isNaN(Number(s))||isNaN(Number(n))?"ascending"===this.direction?String(s).localeCompare(String(n)):String(n).localeCompare(String(s)):"ascending"===this.direction?Number(s)-Number(n):Number(n)-Number(s)})).forEach((e=>t.appendChild(e)))},this.markRows=t=>{const e=this.index(),i="none"!==this.direction,s=!i&&this.hasSortedSibling();this.rows(t).forEach((t=>{i?t.setAttribute("sorted",""):s||t.removeAttribute("sorted");const n=t.children[e];i?null==n||n.setAttribute("sorted",""):null==n||n.removeAttribute("sorted")}))},this.observeRows=t=>{var e;null===(e=this.bodyObserver)||void 0===e||e.disconnect(),this.bodyObserver=void 0,"none"!==this.direction&&o.isBrowser&&(this.bodyObserver=new MutationObserver((()=>this.markRows(t))),this.bodyObserver.observe(t,{childList:!0}))},this.applyDirection=()=>{const t=this.body();this.sortable&&t&&("none"!==this.direction&&this.siblings().forEach((t=>{"none"!==t.direction&&(t.direction="none")})),this.isExternal()||this.sortRows(t),this.markRows(t),this.observeRows(t))},this.sort=()=>{const t=b[(b.indexOf(this.direction)+1)%b.length];this.writingDirection=!0,this.direction=t,this.writingDirection=!1,this.applyDirection(),this.sortEvent.emit({direction:t,index:this.index(),sortKey:this.sortKey})}}componentDidLoad(){"none"!==this.direction&&this.applyDirection()}disconnectedCallback(){var t;null===(t=this.bodyObserver)||void 0===t||t.disconnect()}directionHandler(){this.writingDirection||this.applyDirection()}render(){return s(n,{key:"ddc6a1adb04709d096fe1ac70c23d70759818997",role:"columnheader","aria-sort":this.direction,"pref-animation":a.state.animation},this.sortable?s("mds-button",{class:"action",icon:h("none"===this.direction&&'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5.83L15.17 9l1.41-1.41L12 3L7.41 7.59L8.83 9L12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15L12 18.17z"/></svg>',"ascending"===this.direction&&l,"descending"===this.direction&&d),"icon-position":"right",onClick:this.sort,tone:"text",variant:"dark",size:"sm",part:"action",label:this.label}):s("mds-text",{class:"label",typography:"label",part:"label"},this.label))}get element(){return this}static get watchers(){return{direction:[{directionHandler:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial;--tw-font-weight:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-table-header-cell-transition-duration:var(--duration-200,.2s);--private-table-header-cell-transition-duration:var(--mds-table-header-cell-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:var(--mds-table-background);border-bottom:var(--private-cell-border-width) solid var(--private-cell-border-color)!important;border-top:var(--private-cell-border-width) solid #0000!important;display:table-cell;padding:var(--mds-table-cell-padding);transition-duration:var(--private-table-header-cell-transition-duration);transition-property:background-color,border-color,color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));vertical-align:top;white-space:nowrap}.action{margin-inline:calc(var(--spacing,.0025rem)*-200);padding-inline:calc(var(--spacing,.0025rem)*200)}.action:hover,:host([direction=ascending]) .action,:host([direction=descending]) .action{background-color:var(--mds-table-background-alt)}.action::part(label){font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);min-height:auto;text-box:trim-both cap alphabetic;--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700);text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--text-size-info-label,.75rem);font-weight:var(--tw-font-weight,var(--text-size-info-label--font-weight,700));line-height:var(--tw-leading,var(--text-size-info-label--line-height,1rem))}.label{align-items:center;display:inline-flex;height:calc(var(--spacing,.0025rem)*700)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-table-header-cell-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-table-header-cell-transition-duration:0s}}'}},[1,"mds-table-header-cell",{sortable:[516],label:[513],sortKey:[513,"sort-key"],direction:[1537]},void 0,{direction:[{directionHandler:0}]}]);function g(){"undefined"!=typeof customElements&&["mds-table-header-cell","mds-button","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-table-header-cell":customElements.get(r(t))||customElements.define(r(t),v);break;case"mds-button":customElements.get(r(t))||c();break;case"mds-icon":customElements.get(r(t))||m();break;case"mds-spinner":customElements.get(r(t))||p();break;case"mds-text":customElements.get(r(t))||u()}}))}export{v as M,g as d}
@@ -1 +1 @@
1
- import{p as a,H as e,d as r,h as t,c as o,t as s}from"./p-TZJN-ygm.js";import{m as i}from"./p-BJ8rpzfj.js";import{K as c}from"./p-CGrPq3C4.js";import{L as n}from"./p-B8x-d2fx.js";import{p as d}from"./p-CVRN4LDc.js";import{d as l}from"./p-ClPv-Ljc.js";import{d as m}from"./p-Cmn1DJAB.js";import{d as b}from"./p-ZuubAcA3.js";import{d as g}from"./p-CNF3u0Li.js";var h={deleteLabel:"Αφαίρεση"},p={deleteLabel:"Remove"},v={deleteLabel:"Eliminar"},u={deleteLabel:"Rimuovi"};const f=a(class extends e{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.clickLabelEvent=r(this,"mdsChipClickLabel",7),this.deleteEvent=r(this,"mdsChipDelete",7),this.selectEvent=r(this,"mdsChipSelect",7),this.km=new c,this.t=new n({el:h,en:p,es:v,it:u}),this.disabled=!1,this.selectable=!1,this.variant="primary",this.tone="strong",this.onClickLabelHandler=a=>{if(this.clickable&&!this.disabled)return this.selectable?(this.selected=!this.selected,!1===this.selected&&(this.selected=void 0),void this.selectEvent.emit({event:a,element:this.host,selected:this.selected})):void this.clickLabelEvent.emit({event:a,element:this.host})},this.onDeleteHandler=a=>{this.disabled||this.deleteEvent.emit({event:a,element:this.host})},this.labelRef=a=>{a!==this.labelElement&&(this.km.removeElement("label"),this.labelElement=null!=a?a:void 0,this.attachLabelKeyboard())},this.attachLabelKeyboard=()=>{this.labelElement&&(this.km.addElement(this.labelElement,"label"),this.km.attachClickBehavior("label",{space:!0}))}}handleSelectableProp(a){a&&(this.clickable=!0)}handleSelectedProp(a){!1===a&&(this.selected=void 0)}componentWillLoad(){this.selectable&&(this.clickable=!0)}connectedCallback(){this.attachLabelKeyboard()}disconnectedCallback(){this.km.detachClickBehavior("label")}render(){const a=!!this.clickable;return t(o,{key:"2d065bea1e0b3f3925f6594552a33481bf3e2a6e","aria-disabled":this.disabled?"true":"false","pref-animation":d.state.animation,"pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},this.icon&&t("div",{key:"b6553fe81c22c68c84f845eca9e8f4f670e7db9a","aria-hidden":"true",class:"icon-area"},t("mds-icon",{key:"ba2ecff4547aa9935e142c83758bb7ce3cbc5e3f",class:"icon",name:this.icon})),t("div",{key:"dc85ce5b4e46f334bf359bc482fb48e01b3753f8",class:"label-wrapper"},t("mds-text",{key:"0ee9459a99e0f7e366c7a2ddffccfd1da24ee867","aria-disabled":a&&this.disabled?"true":void 0,"aria-pressed":a&&this.selectable?this.selected?"true":"false":void 0,class:{label:!0,"label--interactive":a},onClick:this.onClickLabelHandler,ref:this.labelRef,role:a?"button":void 0,tabindex:a&&!this.disabled?"0":void 0,typography:"caption",truncate:"word"},this.label)),this.deletable&&t("mds-button",{key:"b9afbb0a6e7868d3722d9495166444f9247682d1",class:"button-delete",icon:i,disabled:this.disabled,onClick:this.onDeleteHandler,title:`${this.t.get("deleteLabel")} ${this.label}`,variant:"dark",tone:"text",size:"sm"}))}get host(){return this}static get watchers(){return{selectable:[{handleSelectableProp:0}],selected:[{handleSelectedProp:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-chip-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-chip-opacity-disabled:.5;--mds-chip-transition-duration:var(--duration-150,.15s);--mds-chip-label-transition-duration:var(--duration-200,.2s);--private-chip-transition-duration:var(--mds-chip-transition-duration);--private-chip-label-transition-duration:var(--mds-chip-label-transition-duration);align-items:center;align-self:self-start;background-color:var(--mds-chip-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border:calc(var(--spacing,.0025rem)*50) solid var(--mds-chip-border,#0000);border-radius:var(--magma-radius-full,var(--radius-full,1000px));box-shadow:var(--mds-chip-shadow);box-sizing:border-box;color:var(--mds-chip-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));display:inline-flex;gap:calc(var(--spacing,.0025rem)*150);justify-content:center;justify-self:start;max-width:min-content;min-width:min-content;padding:0 calc(var(--spacing,.0025rem)*50);transition-duration:var(--private-chip-transition-duration);transition-property:background-color,border-color,box-shadow,color,opacity;transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955));--mds-chip-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-chip-background-selected:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-chip-border:#0000;--mds-chip-border-selected:#0000;--mds-chip-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-chip-color-selected:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-chip-icon-background:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-chip-shadow-selected:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a)}.label-wrapper{align-items:center;display:inline-flex;height:calc(var(--spacing,.0025rem)*800);justify-content:start}.label-wrapper:first-child{padding-left:calc(var(--spacing,.0025rem)*200)}.label-wrapper:last-child{padding-right:calc(var(--spacing,.0025rem)*200)}:host([disabled]:not([disabled=false])){opacity:var(--mds-chip-opacity-disabled,.5);pointer-events:none}.label{border-radius:var(--magma-radius-full,var(--radius-full,1000px));flex-grow:1;text-decoration-color:#0000;transition-duration:var(--private-chip-label-transition-duration);transition-property:color,text-decoration-color,outline,outline-offset;transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94))}:host([clickable]:not([clickable=false])) .label{cursor:pointer;text-decoration:underline}:host([clickable]:not([clickable=false])) .label:hover{-webkit-text-decoration-color:unset;text-decoration-color:unset}.label--interactive{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out}.label--interactive:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running;z-index:10}.icon-area{align-items:center;background-color:var(--mds-chip-icon-background,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:flex;flex-shrink:0;height:calc(var(--spacing,.0025rem)*700);justify-content:center;transition-duration:inherit;transition-timing-function:inherit;width:calc(var(--spacing,.0025rem)*700)}.icon{fill:var(--mds-chip-icon-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));height:calc(var(--spacing,.0025rem)*400);transition:fill;transition-duration:var(--private-chip-label-transition-duration);width:calc(var(--spacing,.0025rem)*400)}.button-delete{border-radius:var(--magma-radius-full,var(--radius-full,1000px));corner-shape:round;align-self:center;height:auto;padding:0}.button-delete--hidden{display:none}:host([variant][tone][selected]){--mds-chip-background:var(--mds-chip-background-selected);--mds-chip-border:var(--mds-chip-border-selected);--mds-chip-color:var(--mds-chip-color-selected);--mds-chip-icon-background:var(--mds-chip-icon-background-selected);--mds-chip-icon-color:var(--mds-chip-icon-color-selected);--mds-chip-shadow:var(--mds-chip-shadow-selected)}:host([variant=primary][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-chip-icon-background:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=primary][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218)));--mds-chip-icon-background:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-chip-icon-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-chip-icon-color-selected:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([variant=secondary][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-chip-icon-background:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=secondary][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218)));--mds-chip-icon-background:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-chip-icon-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-chip-icon-color-selected:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([variant=ai][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-chip-icon-background:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=ai][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-accent-ai-border,var(--variant-ai-06,184 156 250)));--mds-chip-icon-background:rgb(var(--magma-accent-ai-surface,var(--variant-ai-09,229 218 253)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-ai-surface,var(--variant-ai-09,229 218 253)));--mds-chip-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-chip-icon-color-selected:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)))}:host([variant=success][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-chip-icon-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-chip-icon-background-selected:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-chip-icon-color:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=success][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-success-border-strong,var(--border-success-strong,17 166 98)));--mds-chip-icon-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-chip-icon-background-selected:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-chip-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-chip-icon-color-selected:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-chip-icon-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-chip-icon-background-selected:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-chip-icon-color:rgb(var(--magma-warning-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-warning-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=warning][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-warning-border-strong,var(--border-warning-strong,184 130 0)));--mds-chip-icon-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-chip-icon-background-selected:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-chip-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)));--mds-chip-icon-color-selected:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=error][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-chip-icon-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-chip-icon-background-selected:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-chip-icon-color:rgb(var(--magma-danger-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-danger-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=error][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-danger-border-strong,var(--border-error-strong,218 96 93)));--mds-chip-icon-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-chip-icon-background-selected:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-chip-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-chip-icon-color-selected:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=info][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-chip-icon-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-chip-icon-background-selected:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-chip-icon-color:rgb(var(--magma-info-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-info-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=info][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-info-border-strong,var(--border-info-strong,18 154 196)));--mds-chip-icon-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-chip-icon-background-selected:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-chip-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)));--mds-chip-icon-color-selected:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=amaranth][tone=strong]){--mds-chip-border-selected:rgb(var(--label-amaranth-04,213 12 47));--mds-chip-icon-background:rgb(var(--label-amaranth-05,242 37 72));--mds-chip-icon-background-selected:rgb(var(--label-amaranth-05,242 37 72));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=amaranth][tone=weak]){--mds-chip-border-selected:rgb(var(--label-amaranth-06,248 138 157));--mds-chip-icon-background:rgb(var(--label-amaranth-09,253 214 221));--mds-chip-icon-background-selected:rgb(var(--label-amaranth-09,253 214 221));--mds-chip-icon-color:rgb(var(--label-amaranth-04,213 12 47));--mds-chip-icon-color-selected:rgb(var(--label-amaranth-04,213 12 47))}:host([variant=aqua][tone=strong]){--mds-chip-border-selected:rgb(var(--label-aqua-04,4 122 143));--mds-chip-icon-background:rgb(var(--label-aqua-05,5 141 165));--mds-chip-icon-background-selected:rgb(var(--label-aqua-05,5 141 165));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=aqua][tone=weak]){--mds-chip-border-selected:rgb(var(--label-aqua-06,6 186 217));--mds-chip-icon-background:rgb(var(--label-aqua-09,151 237 252));--mds-chip-icon-background-selected:rgb(var(--label-aqua-09,151 237 252));--mds-chip-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-chip-icon-color-selected:rgb(var(--label-aqua-04,4 122 143))}:host([variant=blue][tone=strong]){--mds-chip-border-selected:rgb(var(--label-blue-04,63 94 248));--mds-chip-icon-background:rgb(var(--label-blue-05,90 117 249));--mds-chip-icon-background-selected:rgb(var(--label-blue-05,90 117 249));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=blue][tone=weak]){--mds-chip-border-selected:rgb(var(--label-blue-06,149 166 251));--mds-chip-icon-background:rgb(var(--label-blue-09,216 222 254));--mds-chip-icon-background-selected:rgb(var(--label-blue-09,216 222 254));--mds-chip-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-chip-icon-color-selected:rgb(var(--label-blue-04,63 94 248))}:host([variant=green][tone=strong]){--mds-chip-border-selected:rgb(var(--label-green-04,22 128 61));--mds-chip-icon-background:rgb(var(--label-green-05,26 148 71));--mds-chip-icon-background-selected:rgb(var(--label-green-05,26 148 71));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=green][tone=weak]){--mds-chip-border-selected:rgb(var(--label-green-06,34 195 93));--mds-chip-icon-background:rgb(var(--label-green-09,165 240 193));--mds-chip-icon-background-selected:rgb(var(--label-green-09,165 240 193));--mds-chip-icon-color:rgb(var(--label-green-04,22 128 61));--mds-chip-icon-color-selected:rgb(var(--label-green-04,22 128 61))}:host([variant=lime][tone=strong]){--mds-chip-border-selected:rgb(var(--label-lime-04,81 124 13));--mds-chip-icon-background:rgb(var(--label-lime-05,93 143 15));--mds-chip-icon-background-selected:rgb(var(--label-lime-05,93 143 15));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=lime][tone=weak]){--mds-chip-border-selected:rgb(var(--label-lime-06,123 189 20));--mds-chip-icon-background:rgb(var(--label-lime-09,189 239 111));--mds-chip-icon-background-selected:rgb(var(--label-lime-09,189 239 111));--mds-chip-icon-color:rgb(var(--label-lime-04,81 124 13));--mds-chip-icon-color-selected:rgb(var(--label-lime-04,81 124 13))}:host([variant=orange][tone=strong]){--mds-chip-border-selected:rgb(var(--label-orange-04,185 78 5));--mds-chip-icon-background:rgb(var(--label-orange-05,213 90 5));--mds-chip-icon-background-selected:rgb(var(--label-orange-05,213 90 5));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=orange][tone=weak]){--mds-chip-border-selected:rgb(var(--label-orange-06,250 143 69));--mds-chip-icon-background:rgb(var(--label-orange-09,253 217 191));--mds-chip-icon-background-selected:rgb(var(--label-orange-09,253 217 191));--mds-chip-icon-color:rgb(var(--label-orange-04,185 78 5));--mds-chip-icon-color-selected:rgb(var(--label-orange-04,185 78 5))}:host([variant=orchid][tone=strong]){--mds-chip-border-selected:rgb(var(--label-orchid-04,206 21 113));--mds-chip-icon-background:rgb(var(--label-orchid-05,233 44 137));--mds-chip-icon-background-selected:rgb(var(--label-orchid-05,233 44 137));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=orchid][tone=weak]){--mds-chip-border-selected:rgb(var(--label-orchid-06,243 137 189));--mds-chip-icon-background:rgb(var(--label-orchid-09,251 213 232));--mds-chip-icon-background-selected:rgb(var(--label-orchid-09,251 213 232));--mds-chip-icon-color:rgb(var(--label-orchid-04,206 21 113));--mds-chip-icon-color-selected:rgb(var(--label-orchid-04,206 21 113))}:host([variant=purple][tone=strong]){--mds-chip-border-selected:rgb(var(--label-purple-04,150 51 245));--mds-chip-icon-background:rgb(var(--label-purple-05,168 86 247));--mds-chip-icon-background-selected:rgb(var(--label-purple-05,168 86 247));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=purple][tone=weak]){--mds-chip-border-selected:rgb(var(--label-purple-06,201 149 250));--mds-chip-icon-background:rgb(var(--label-purple-09,235 216 253));--mds-chip-icon-background-selected:rgb(var(--label-purple-09,235 216 253));--mds-chip-icon-color:rgb(var(--label-purple-04,150 51 245));--mds-chip-icon-color-selected:rgb(var(--label-purple-04,150 51 245))}:host([variant=red][tone=strong]){--mds-chip-border-selected:rgb(var(--label-red-04,212 28 28));--mds-chip-icon-background:rgb(var(--label-red-05,230 66 66));--mds-chip-icon-background-selected:rgb(var(--label-red-05,230 66 66));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=red][tone=weak]){--mds-chip-border-selected:rgb(var(--label-red-06,241 144 144));--mds-chip-icon-background:rgb(var(--label-red-09,250 215 215));--mds-chip-icon-background-selected:rgb(var(--label-red-09,250 215 215));--mds-chip-icon-color:rgb(var(--label-red-04,212 28 28));--mds-chip-icon-color-selected:rgb(var(--label-red-04,212 28 28))}:host([variant=sky][tone=strong]){--mds-chip-border-selected:rgb(var(--label-sky-04,10 118 167));--mds-chip-icon-background:rgb(var(--label-sky-05,12 136 193));--mds-chip-icon-background-selected:rgb(var(--label-sky-05,12 136 193));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=sky][tone=weak]){--mds-chip-border-selected:rgb(var(--label-sky-06,47 182 243));--mds-chip-icon-background:rgb(var(--label-sky-09,185 231 251));--mds-chip-icon-background-selected:rgb(var(--label-sky-09,185 231 251));--mds-chip-icon-color:rgb(var(--label-sky-04,10 118 167));--mds-chip-icon-color-selected:rgb(var(--label-sky-04,10 118 167))}:host([variant=violet][tone=strong]){--mds-chip-border-selected:rgb(var(--label-violet-04,126 73 245));--mds-chip-icon-background:rgb(var(--label-violet-05,145 100 246));--mds-chip-icon-background-selected:rgb(var(--label-violet-05,145 100 246));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=violet][tone=weak]){--mds-chip-border-selected:rgb(var(--label-violet-06,184 156 250));--mds-chip-icon-background:rgb(var(--label-violet-09,229 218 253));--mds-chip-icon-background-selected:rgb(var(--label-violet-09,229 218 253));--mds-chip-icon-color:rgb(var(--label-violet-04,126 73 245));--mds-chip-icon-color-selected:rgb(var(--label-violet-04,126 73 245))}:host([variant=yellow][tone=strong]){--mds-chip-border-selected:rgb(var(--label-yellow-04,141 107 5));--mds-chip-icon-background:rgb(var(--label-yellow-05,161 124 6));--mds-chip-icon-background-selected:rgb(var(--label-yellow-05,161 124 6));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=yellow][tone=weak]){--mds-chip-border-selected:rgb(var(--label-yellow-06,214 163 7));--mds-chip-icon-background:rgb(var(--label-yellow-09,251 221 131));--mds-chip-icon-background-selected:rgb(var(--label-yellow-09,251 221 131));--mds-chip-icon-color:rgb(var(--label-yellow-04,141 107 5));--mds-chip-icon-color-selected:rgb(var(--label-yellow-04,141 107 5))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-chip-transition-duration:0s;--private-chip-label-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){--mds-chip-background:rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242)));--mds-chip-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-chip-color-selected:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-opacity-disabled:var(--opacity-disabled,.6);box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-chip-transition-duration:0s;--private-chip-label-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-chip-background:rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242)));--mds-chip-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-chip-color-selected:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-opacity-disabled:var(--opacity-disabled,.6);box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}"}},[1,"mds-chip",{clickable:[1540],deletable:[4],disabled:[516],icon:[1],label:[513],selected:[1540],selectable:[516],variant:[513],tone:[513]},void 0,{selectable:[{handleSelectableProp:0}],selected:[{handleSelectedProp:0}]}]);function k(){"undefined"!=typeof customElements&&["mds-chip","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-chip":customElements.get(s(a))||customElements.define(s(a),f);break;case"mds-button":customElements.get(s(a))||l();break;case"mds-icon":customElements.get(s(a))||m();break;case"mds-spinner":customElements.get(s(a))||b();break;case"mds-text":customElements.get(s(a))||g()}}))}export{f as M,k as d}
1
+ import{p as a,H as e,d as r,h as t,c as o,t as s}from"./p-TZJN-ygm.js";import{m as i}from"./p-BJ8rpzfj.js";import{K as c}from"./p-CGrPq3C4.js";import{L as n}from"./p-CZjwSwe5.js";import{p as d}from"./p-CVRN4LDc.js";import{d as l}from"./p-M8dGB4KH.js";import{d as m}from"./p-CEw7GvM-.js";import{d as b}from"./p-DDTJwlAd.js";import{d as g}from"./p-aujz-VM9.js";var h={deleteLabel:"Αφαίρεση"},p={deleteLabel:"Remove"},v={deleteLabel:"Eliminar"},u={deleteLabel:"Rimuovi"};const f=a(class extends e{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.clickLabelEvent=r(this,"mdsChipClickLabel",7),this.deleteEvent=r(this,"mdsChipDelete",7),this.selectEvent=r(this,"mdsChipSelect",7),this.km=new c,this.t=new n({el:h,en:p,es:v,it:u}),this.disabled=!1,this.selectable=!1,this.variant="primary",this.tone="strong",this.onClickLabelHandler=a=>{if(this.clickable&&!this.disabled)return this.selectable?(this.selected=!this.selected,!1===this.selected&&(this.selected=void 0),void this.selectEvent.emit({event:a,element:this.host,selected:this.selected})):void this.clickLabelEvent.emit({event:a,element:this.host})},this.onDeleteHandler=a=>{this.disabled||this.deleteEvent.emit({event:a,element:this.host})},this.labelRef=a=>{a!==this.labelElement&&(this.km.removeElement("label"),this.labelElement=null!=a?a:void 0,this.attachLabelKeyboard())},this.attachLabelKeyboard=()=>{this.labelElement&&(this.km.addElement(this.labelElement,"label"),this.km.attachClickBehavior("label",{space:!0}))}}handleSelectableProp(a){a&&(this.clickable=!0)}handleSelectedProp(a){!1===a&&(this.selected=void 0)}componentWillLoad(){this.selectable&&(this.clickable=!0)}connectedCallback(){this.attachLabelKeyboard()}disconnectedCallback(){this.km.detachClickBehavior("label")}render(){const a=!!this.clickable;return t(o,{key:"04218bf152dffaf70777dcbe192c930f1a64fc88","aria-disabled":this.disabled?"true":"false","pref-animation":d.state.animation,"pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},this.icon&&t("div",{key:"3b6fd50d222075ad6ea7442b67127f3eb0d9a2c0","aria-hidden":"true",class:"icon-area"},t("mds-icon",{key:"f8657edafd0f72f4034e271267792b09ce7cc32d",class:"icon",name:this.icon})),t("div",{key:"54b52bfd1078efade24fe0b723acf26da8cb4d4d",class:"label-wrapper"},t("mds-text",{key:"161fb605708ac7a737b6efe78acc4e71c649e773","aria-disabled":a&&this.disabled?"true":void 0,"aria-pressed":a&&this.selectable?this.selected?"true":"false":void 0,class:{label:!0,"label--interactive":a},onClick:this.onClickLabelHandler,ref:this.labelRef,role:a?"button":void 0,tabindex:a&&!this.disabled?"0":void 0,typography:"caption",truncate:"word"},this.label)),this.deletable&&t("mds-button",{key:"d21397ba941b9210ab484ab42f17c42b55923ba4",class:"button-delete",icon:i,disabled:this.disabled,onClick:this.onDeleteHandler,title:`${this.t.get("deleteLabel")} ${this.label}`,variant:"dark",tone:"text",size:"sm"}))}get host(){return this}static get watchers(){return{selectable:[{handleSelectableProp:0}],selected:[{handleSelectedProp:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-chip-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-chip-opacity-disabled:.5;--mds-chip-transition-duration:var(--duration-150,.15s);--mds-chip-label-transition-duration:var(--duration-200,.2s);--private-chip-transition-duration:var(--mds-chip-transition-duration);--private-chip-label-transition-duration:var(--mds-chip-label-transition-duration);align-items:center;align-self:self-start;background-color:var(--mds-chip-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border:calc(var(--spacing,.0025rem)*50) solid var(--mds-chip-border,#0000);border-radius:var(--magma-radius-full,var(--radius-full,1000px));box-shadow:var(--mds-chip-shadow);box-sizing:border-box;color:var(--mds-chip-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));display:inline-flex;gap:calc(var(--spacing,.0025rem)*150);justify-content:center;justify-self:start;max-width:min-content;min-width:min-content;padding:0 calc(var(--spacing,.0025rem)*50);transition-duration:var(--private-chip-transition-duration);transition-property:background-color,border-color,box-shadow,color,opacity;transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955));--mds-chip-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-chip-background-selected:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-chip-border:#0000;--mds-chip-border-selected:#0000;--mds-chip-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-chip-color-selected:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-chip-icon-background:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-chip-shadow-selected:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a)}.label-wrapper{align-items:center;display:inline-flex;height:calc(var(--spacing,.0025rem)*800);justify-content:start}.label-wrapper:first-child{padding-left:calc(var(--spacing,.0025rem)*200)}.label-wrapper:last-child{padding-right:calc(var(--spacing,.0025rem)*200)}:host([disabled]:not([disabled=false])){opacity:var(--mds-chip-opacity-disabled,.5);pointer-events:none}.label{border-radius:var(--magma-radius-full,var(--radius-full,1000px));flex-grow:1;text-decoration-color:#0000;transition-duration:var(--private-chip-label-transition-duration);transition-property:color,text-decoration-color,outline,outline-offset;transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94))}:host([clickable]:not([clickable=false])) .label{cursor:pointer;text-decoration:underline}:host([clickable]:not([clickable=false])) .label:hover{-webkit-text-decoration-color:unset;text-decoration-color:unset}.label--interactive{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out}.label--interactive:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running;z-index:10}.icon-area{align-items:center;background-color:var(--mds-chip-icon-background,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:flex;flex-shrink:0;height:calc(var(--spacing,.0025rem)*700);justify-content:center;transition-duration:inherit;transition-timing-function:inherit;width:calc(var(--spacing,.0025rem)*700)}.icon{fill:var(--mds-chip-icon-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));height:calc(var(--spacing,.0025rem)*400);transition:fill;transition-duration:var(--private-chip-label-transition-duration);width:calc(var(--spacing,.0025rem)*400)}.button-delete{border-radius:var(--magma-radius-full,var(--radius-full,1000px));corner-shape:round;align-self:center;height:auto;padding:0}.button-delete--hidden{display:none}:host([variant][tone][selected]){--mds-chip-background:var(--mds-chip-background-selected);--mds-chip-border:var(--mds-chip-border-selected);--mds-chip-color:var(--mds-chip-color-selected);--mds-chip-icon-background:var(--mds-chip-icon-background-selected);--mds-chip-icon-color:var(--mds-chip-icon-color-selected);--mds-chip-shadow:var(--mds-chip-shadow-selected)}:host([variant=primary][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-chip-icon-background:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=primary][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218)));--mds-chip-icon-background:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-chip-icon-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-chip-icon-color-selected:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([variant=secondary][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-chip-icon-background:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=secondary][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218)));--mds-chip-icon-background:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-chip-icon-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-chip-icon-color-selected:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([variant=ai][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-chip-icon-background:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=ai][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-accent-ai-border,var(--variant-ai-06,184 156 250)));--mds-chip-icon-background:rgb(var(--magma-accent-ai-surface,var(--variant-ai-09,229 218 253)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-ai-surface,var(--variant-ai-09,229 218 253)));--mds-chip-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-chip-icon-color-selected:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)))}:host([variant=success][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-chip-icon-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-chip-icon-background-selected:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-chip-icon-color:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=success][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-success-border-strong,var(--border-success-strong,17 166 98)));--mds-chip-icon-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-chip-icon-background-selected:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-chip-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-chip-icon-color-selected:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-chip-icon-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-chip-icon-background-selected:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-chip-icon-color:rgb(var(--magma-warning-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-warning-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=warning][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-warning-border-strong,var(--border-warning-strong,184 130 0)));--mds-chip-icon-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-chip-icon-background-selected:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-chip-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)));--mds-chip-icon-color-selected:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=error][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-chip-icon-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-chip-icon-background-selected:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-chip-icon-color:rgb(var(--magma-danger-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-danger-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=error][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-danger-border-strong,var(--border-error-strong,218 96 93)));--mds-chip-icon-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-chip-icon-background-selected:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-chip-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-chip-icon-color-selected:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=info][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-chip-icon-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-chip-icon-background-selected:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-chip-icon-color:rgb(var(--magma-info-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-info-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=info][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-info-border-strong,var(--border-info-strong,18 154 196)));--mds-chip-icon-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-chip-icon-background-selected:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-chip-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)));--mds-chip-icon-color-selected:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=amaranth][tone=strong]){--mds-chip-border-selected:rgb(var(--label-amaranth-04,213 12 47));--mds-chip-icon-background:rgb(var(--label-amaranth-05,242 37 72));--mds-chip-icon-background-selected:rgb(var(--label-amaranth-05,242 37 72));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=amaranth][tone=weak]){--mds-chip-border-selected:rgb(var(--label-amaranth-06,248 138 157));--mds-chip-icon-background:rgb(var(--label-amaranth-09,253 214 221));--mds-chip-icon-background-selected:rgb(var(--label-amaranth-09,253 214 221));--mds-chip-icon-color:rgb(var(--label-amaranth-04,213 12 47));--mds-chip-icon-color-selected:rgb(var(--label-amaranth-04,213 12 47))}:host([variant=aqua][tone=strong]){--mds-chip-border-selected:rgb(var(--label-aqua-04,4 122 143));--mds-chip-icon-background:rgb(var(--label-aqua-05,5 141 165));--mds-chip-icon-background-selected:rgb(var(--label-aqua-05,5 141 165));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=aqua][tone=weak]){--mds-chip-border-selected:rgb(var(--label-aqua-06,6 186 217));--mds-chip-icon-background:rgb(var(--label-aqua-09,151 237 252));--mds-chip-icon-background-selected:rgb(var(--label-aqua-09,151 237 252));--mds-chip-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-chip-icon-color-selected:rgb(var(--label-aqua-04,4 122 143))}:host([variant=blue][tone=strong]){--mds-chip-border-selected:rgb(var(--label-blue-04,63 94 248));--mds-chip-icon-background:rgb(var(--label-blue-05,90 117 249));--mds-chip-icon-background-selected:rgb(var(--label-blue-05,90 117 249));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=blue][tone=weak]){--mds-chip-border-selected:rgb(var(--label-blue-06,149 166 251));--mds-chip-icon-background:rgb(var(--label-blue-09,216 222 254));--mds-chip-icon-background-selected:rgb(var(--label-blue-09,216 222 254));--mds-chip-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-chip-icon-color-selected:rgb(var(--label-blue-04,63 94 248))}:host([variant=green][tone=strong]){--mds-chip-border-selected:rgb(var(--label-green-04,22 128 61));--mds-chip-icon-background:rgb(var(--label-green-05,26 148 71));--mds-chip-icon-background-selected:rgb(var(--label-green-05,26 148 71));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=green][tone=weak]){--mds-chip-border-selected:rgb(var(--label-green-06,34 195 93));--mds-chip-icon-background:rgb(var(--label-green-09,165 240 193));--mds-chip-icon-background-selected:rgb(var(--label-green-09,165 240 193));--mds-chip-icon-color:rgb(var(--label-green-04,22 128 61));--mds-chip-icon-color-selected:rgb(var(--label-green-04,22 128 61))}:host([variant=lime][tone=strong]){--mds-chip-border-selected:rgb(var(--label-lime-04,81 124 13));--mds-chip-icon-background:rgb(var(--label-lime-05,93 143 15));--mds-chip-icon-background-selected:rgb(var(--label-lime-05,93 143 15));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=lime][tone=weak]){--mds-chip-border-selected:rgb(var(--label-lime-06,123 189 20));--mds-chip-icon-background:rgb(var(--label-lime-09,189 239 111));--mds-chip-icon-background-selected:rgb(var(--label-lime-09,189 239 111));--mds-chip-icon-color:rgb(var(--label-lime-04,81 124 13));--mds-chip-icon-color-selected:rgb(var(--label-lime-04,81 124 13))}:host([variant=orange][tone=strong]){--mds-chip-border-selected:rgb(var(--label-orange-04,185 78 5));--mds-chip-icon-background:rgb(var(--label-orange-05,213 90 5));--mds-chip-icon-background-selected:rgb(var(--label-orange-05,213 90 5));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=orange][tone=weak]){--mds-chip-border-selected:rgb(var(--label-orange-06,250 143 69));--mds-chip-icon-background:rgb(var(--label-orange-09,253 217 191));--mds-chip-icon-background-selected:rgb(var(--label-orange-09,253 217 191));--mds-chip-icon-color:rgb(var(--label-orange-04,185 78 5));--mds-chip-icon-color-selected:rgb(var(--label-orange-04,185 78 5))}:host([variant=orchid][tone=strong]){--mds-chip-border-selected:rgb(var(--label-orchid-04,206 21 113));--mds-chip-icon-background:rgb(var(--label-orchid-05,233 44 137));--mds-chip-icon-background-selected:rgb(var(--label-orchid-05,233 44 137));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=orchid][tone=weak]){--mds-chip-border-selected:rgb(var(--label-orchid-06,243 137 189));--mds-chip-icon-background:rgb(var(--label-orchid-09,251 213 232));--mds-chip-icon-background-selected:rgb(var(--label-orchid-09,251 213 232));--mds-chip-icon-color:rgb(var(--label-orchid-04,206 21 113));--mds-chip-icon-color-selected:rgb(var(--label-orchid-04,206 21 113))}:host([variant=purple][tone=strong]){--mds-chip-border-selected:rgb(var(--label-purple-04,150 51 245));--mds-chip-icon-background:rgb(var(--label-purple-05,168 86 247));--mds-chip-icon-background-selected:rgb(var(--label-purple-05,168 86 247));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=purple][tone=weak]){--mds-chip-border-selected:rgb(var(--label-purple-06,201 149 250));--mds-chip-icon-background:rgb(var(--label-purple-09,235 216 253));--mds-chip-icon-background-selected:rgb(var(--label-purple-09,235 216 253));--mds-chip-icon-color:rgb(var(--label-purple-04,150 51 245));--mds-chip-icon-color-selected:rgb(var(--label-purple-04,150 51 245))}:host([variant=red][tone=strong]){--mds-chip-border-selected:rgb(var(--label-red-04,212 28 28));--mds-chip-icon-background:rgb(var(--label-red-05,230 66 66));--mds-chip-icon-background-selected:rgb(var(--label-red-05,230 66 66));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=red][tone=weak]){--mds-chip-border-selected:rgb(var(--label-red-06,241 144 144));--mds-chip-icon-background:rgb(var(--label-red-09,250 215 215));--mds-chip-icon-background-selected:rgb(var(--label-red-09,250 215 215));--mds-chip-icon-color:rgb(var(--label-red-04,212 28 28));--mds-chip-icon-color-selected:rgb(var(--label-red-04,212 28 28))}:host([variant=sky][tone=strong]){--mds-chip-border-selected:rgb(var(--label-sky-04,10 118 167));--mds-chip-icon-background:rgb(var(--label-sky-05,12 136 193));--mds-chip-icon-background-selected:rgb(var(--label-sky-05,12 136 193));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=sky][tone=weak]){--mds-chip-border-selected:rgb(var(--label-sky-06,47 182 243));--mds-chip-icon-background:rgb(var(--label-sky-09,185 231 251));--mds-chip-icon-background-selected:rgb(var(--label-sky-09,185 231 251));--mds-chip-icon-color:rgb(var(--label-sky-04,10 118 167));--mds-chip-icon-color-selected:rgb(var(--label-sky-04,10 118 167))}:host([variant=violet][tone=strong]){--mds-chip-border-selected:rgb(var(--label-violet-04,126 73 245));--mds-chip-icon-background:rgb(var(--label-violet-05,145 100 246));--mds-chip-icon-background-selected:rgb(var(--label-violet-05,145 100 246));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=violet][tone=weak]){--mds-chip-border-selected:rgb(var(--label-violet-06,184 156 250));--mds-chip-icon-background:rgb(var(--label-violet-09,229 218 253));--mds-chip-icon-background-selected:rgb(var(--label-violet-09,229 218 253));--mds-chip-icon-color:rgb(var(--label-violet-04,126 73 245));--mds-chip-icon-color-selected:rgb(var(--label-violet-04,126 73 245))}:host([variant=yellow][tone=strong]){--mds-chip-border-selected:rgb(var(--label-yellow-04,141 107 5));--mds-chip-icon-background:rgb(var(--label-yellow-05,161 124 6));--mds-chip-icon-background-selected:rgb(var(--label-yellow-05,161 124 6));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=yellow][tone=weak]){--mds-chip-border-selected:rgb(var(--label-yellow-06,214 163 7));--mds-chip-icon-background:rgb(var(--label-yellow-09,251 221 131));--mds-chip-icon-background-selected:rgb(var(--label-yellow-09,251 221 131));--mds-chip-icon-color:rgb(var(--label-yellow-04,141 107 5));--mds-chip-icon-color-selected:rgb(var(--label-yellow-04,141 107 5))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-chip-transition-duration:0s;--private-chip-label-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){--mds-chip-background:rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242)));--mds-chip-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-chip-color-selected:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-opacity-disabled:var(--opacity-disabled,.6);box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-chip-transition-duration:0s;--private-chip-label-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-chip-background:rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242)));--mds-chip-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-chip-color-selected:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-opacity-disabled:var(--opacity-disabled,.6);box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}"}},[1,"mds-chip",{clickable:[1540],deletable:[4],disabled:[516],icon:[1],label:[513],selected:[1540],selectable:[516],variant:[513],tone:[513]},void 0,{selectable:[{handleSelectableProp:0}],selected:[{handleSelectedProp:0}]}]);function k(){"undefined"!=typeof customElements&&["mds-chip","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-chip":customElements.get(s(a))||customElements.define(s(a),f);break;case"mds-button":customElements.get(s(a))||l();break;case"mds-icon":customElements.get(s(a))||m();break;case"mds-spinner":customElements.get(s(a))||b();break;case"mds-text":customElements.get(s(a))||g()}}))}export{f as M,k as d}
@@ -1 +1 @@
1
- import{p as t,H as i,h as a,c as e,t as o}from"./p-TZJN-ygm.js";import{d as s}from"./p-Cmn1DJAB.js";import{d as n}from"./p-CNF3u0Li.js";import{d as r}from"./p-D8wd-EZX.js";const l=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.disableAutoPlacement=!1,this.placement="top"}render(){var t;return a(e,{key:"12802e6b440317a986748341f0f155c93870312d"},a("mds-icon",{key:"6ff29b1bda90f363ff200563463df555f08f156d",class:"icon",name:null!==(t=this.icon)&&void 0!==t?t:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"/></svg>',part:"icon",role:"img",tabindex:"0"}),a("mds-tooltip",{key:"cbfae147a94707d4a1b3ce9bced581deb65fcd25",placement:this.placement,disableAutoPlacement:this.disableAutoPlacement,relation:"label",strategy:"absolute",target:".icon"},a("slot",{key:"85ca58f78905896bc9512dbea424d539c6b03da2"})))}static get style(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-tooltip):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-help-tooltip-width:fit-content;--mds-help-tooltip-max-width:calc(var(--spacing,.0025rem)*7500);--mds-help-tooltip-min-width:calc(var(--spacing,.0025rem)*5000);--mds-help-tooltip-delay:.25s;color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));cursor:help;display:inline-flex;fill:currentColor;height:calc(var(--spacing,.0025rem)*400);justify-content:flex-start;margin-left:calc(var(--spacing,.0025rem)*100);overflow:visible;position:relative;width:calc(var(--spacing,.0025rem)*400)}i{display:flex}i svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}mds-tooltip{--mds-tooltip-delay:var(--mds-help-tooltip-delay,.25s);max-width:var(--mds-help-tooltip-max-width,calc(var(--spacing,.0025rem)*7500));min-width:var(--mds-help-tooltip-min-width,calc(var(--spacing,.0025rem)*5000))}mds-tooltip::part(text){max-width:var(--mds-help-tooltip-max-width,calc(var(--spacing,.0025rem)*7500));min-width:var(--mds-help-tooltip-width);width:var(--mds-help-tooltip-width)}i,mds-icon{fill:inherit;height:inherit;width:inherit}.icon{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));border-radius:var(--radius-full,1000px);outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out}.icon:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}"}},[257,"mds-help",{icon:[1],disableAutoPlacement:[516,"disable-auto-placement"],placement:[513]}]);function m(){"undefined"!=typeof customElements&&["mds-help","mds-icon","mds-text","mds-tooltip"].forEach((t=>{switch(t){case"mds-help":customElements.get(o(t))||customElements.define(o(t),l);break;case"mds-icon":customElements.get(o(t))||s();break;case"mds-text":customElements.get(o(t))||n();break;case"mds-tooltip":customElements.get(o(t))||r()}}))}export{l as M,m as d}
1
+ import{p as t,H as i,h as e,c as a,t as o}from"./p-TZJN-ygm.js";import{d as s}from"./p-CEw7GvM-.js";import{d as n}from"./p-aujz-VM9.js";import{d as r}from"./p-Czqtt8kO.js";const l=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.disableAutoPlacement=!1,this.placement="top"}render(){var t;return e(a,{key:"78ecf5c4c62cd208353376c2ac9ba8de18d5d0b6"},e("mds-icon",{key:"e683d1f3df7a63ba5860e3d8b47cc62460ca6382",class:"icon",name:null!==(t=this.icon)&&void 0!==t?t:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"/></svg>',part:"icon",role:"img",tabindex:"0"}),e("mds-tooltip",{key:"66842f14438cf1d5be07fca6b926230f46871475",placement:this.placement,disableAutoPlacement:this.disableAutoPlacement,relation:"label",strategy:"absolute",target:".icon"},e("slot",{key:"e24564be11067ab98fdc50000afae46d07966eed"})))}static get style(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-tooltip):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-help-tooltip-width:fit-content;--mds-help-tooltip-max-width:calc(var(--spacing,.0025rem)*7500);--mds-help-tooltip-min-width:calc(var(--spacing,.0025rem)*5000);--mds-help-tooltip-delay:.25s;color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));cursor:help;display:inline-flex;fill:currentColor;height:calc(var(--spacing,.0025rem)*400);justify-content:flex-start;margin-left:calc(var(--spacing,.0025rem)*100);overflow:visible;position:relative;width:calc(var(--spacing,.0025rem)*400)}i{display:flex}i svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}mds-tooltip{--mds-tooltip-delay:var(--mds-help-tooltip-delay,.25s);max-width:var(--mds-help-tooltip-max-width,calc(var(--spacing,.0025rem)*7500));min-width:var(--mds-help-tooltip-min-width,calc(var(--spacing,.0025rem)*5000))}mds-tooltip::part(text){max-width:var(--mds-help-tooltip-max-width,calc(var(--spacing,.0025rem)*7500));min-width:var(--mds-help-tooltip-width);width:var(--mds-help-tooltip-width)}i,mds-icon{fill:inherit;height:inherit;width:inherit}.icon{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));border-radius:var(--radius-full,1000px);outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out}.icon:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}"}},[257,"mds-help",{icon:[1],disableAutoPlacement:[516,"disable-auto-placement"],placement:[513]}]);function m(){"undefined"!=typeof customElements&&["mds-help","mds-icon","mds-text","mds-tooltip"].forEach((t=>{switch(t){case"mds-help":customElements.get(o(t))||customElements.define(o(t),l);break;case"mds-icon":customElements.get(o(t))||s();break;case"mds-text":customElements.get(o(t))||n();break;case"mds-tooltip":customElements.get(o(t))||r()}}))}export{l as M,m as d}
@@ -1 +1 @@
1
- import{p as t,H as a,d as r,h as e,c as o,t as s}from"./p-TZJN-ygm.js";import{K as d}from"./p-CGrPq3C4.js";import{c as i}from"./p-CWk1SCJg.js";import{B as n,F as h}from"./p-jasGzfhE.js";import{p as m}from"./p-CVRN4LDc.js";const l=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.visibleEvent=r(this,"mdsDropdownVisible",7),this.hiddenEvent=r(this,"mdsDropdownHide",7),this.changedEvent=r(this,"mdsDropdownChange",7),this.km=new d,this.backdropController=new n,this.hideArrow=!1,this.arrowPadding=24,this.disableAutoPlacement=!1,this.backdrop=!1,this.flip=!1,this.interaction="click",this.offset=24,this.placement="bottom",this.disableShift=!1,this.shiftPadding=24,this.disableSmooth=!1,this.strategy="absolute",this.visible=!1,this.onClickTarget=t=>{t.stopPropagation();const a=this.visible;document.body.click(),this.visible=!a,this.visible&&this.isMenu&&0===t.detail&&this.focusEntry(0)},this.onMouseOverTarget=()=>{this.mouseoverTimer=setTimeout((()=>{clearTimeout(this.mouseoverTimer),this.visible=!0}),i(this.cssMouseOverDelayDuration))},this.onMouseOutTarget=()=>{clearTimeout(this.mouseoverTimer),this.mouseoverTimer=setTimeout((()=>{clearTimeout(this.mouseoverTimer),this.visible=!1}),i(this.cssMouseOverDelayDuration))},this.markEntries=()=>{this.isMenu&&this.entries().forEach((t=>{const a=t.getAttribute("role");null!==a&&"button"!==a||t.setAttribute("role","menuitem"),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1")}))},this.entries=()=>{var t,a;const r=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector("slot");return this.slottedEntries(null!==(a=null==r?void 0:r.assignedElements())&&void 0!==a?a:[])},this.slottedEntries=t=>t.flatMap((t=>"SLOT"===t.tagName?this.slottedEntries(t.assignedElements()):[t])),this.focusEntry=(t,a=3)=>{const r=this.entries();if(0===r.length||!this.visible)return;const e=r[(t+r.length)%r.length];0===e.offsetWidth&&a>0?requestAnimationFrame((()=>this.focusEntry(t,a-1))):e.focus()},this.onCallerKeydown=t=>{!this.isMenu||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),this.visible=!0,this.focusEntry("ArrowUp"===t.key?-1:0))},this.onPanelKeydown=t=>{var a;if(!this.isMenu||!this.visible)return;const r=this.entries();if(0===r.length)return;const e=r.findIndex((t=>t.contains(document.activeElement))),o=-1===e?null:e;switch(t.key){case"ArrowDown":t.preventDefault(),this.focusEntry(null===o?0:o+1);break;case"ArrowUp":t.preventDefault(),this.focusEntry(null===o?-1:o-1);break;case"Home":t.preventDefault(),this.focusEntry(0);break;case"End":t.preventDefault(),this.focusEntry(-1);break;case"Tab":this.visible=!1,null===(a=this.caller)||void 0===a||a.focus()}},this.closeFromKeyboard=()=>{var t;if(!this.visible)return;const a=this.host.contains(document.activeElement);this.visible=!1,a&&(null===(t=this.caller)||void 0===t||t.focus())},this.attachBackdrop=()=>{var t,a;const r=window.getComputedStyle(this.host);this.backdropController.attachBackdrop({duration:null===(t=r.getPropertyValue("--private-dropdown-backdrop-duration"))||void 0===t?void 0:t.trim(),zIndex:null===(a=r.getPropertyValue("--mds-dropdown-backdrop-z-index"))||void 0===a?void 0:a.trim()})},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const t=window.getComputedStyle(this.host);this.cssMouseOverDelayDuration=t.getPropertyValue("--mds-dropdown-mouseover-delay")},this.handleCloseDropdown=t=>{if("mouseleave"===t.type)return this.host.removeEventListener("mouseleave",this.handleCloseDropdown),this.caller.removeEventListener("mouseleave",this.handleCloseDropdown),void(this.visible=!1);this.host.contains(t.target)||t.target===this.caller||(this.visible=!1,document.removeEventListener("click",this.handleCloseDropdown))},this.setInteractionBehaviour=()=>{"none"!==this.interaction&&("click"===this.interaction&&(this.caller.addEventListener("click",this.onClickTarget),this.caller.addEventListener("keydown",this.onCallerKeydown)),"mouseover"===this.interaction&&(this.caller.addEventListener("mouseover",this.onMouseOverTarget),this.caller.addEventListener("mouseout",this.onMouseOutTarget),this.host.addEventListener("mouseover",this.handleCloseDropdownMouseLeave)))},this.unsetInteractionBehaviour=t=>{t.removeEventListener("click",this.onClickTarget),t.removeEventListener("keydown",this.onCallerKeydown),t.removeEventListener("mouseover",this.onMouseOverTarget),t.removeEventListener("mouseout",this.onMouseOutTarget)},this.handleCloseDropdownMouseLeave=()=>{clearTimeout(this.mouseoverTimer),this.host.removeEventListener("mouseover",this.handleCloseDropdownMouseLeave),this.host.addEventListener("mouseleave",this.handleCloseDropdown)}}hideArrowChanged(){this.floatingController.updatePosition()}arrowPaddingChanged(){this.floatingController.updatePosition()}disableAutoPlacementChanged(){this.floatingController.updatePosition()}backdropChanged(t){!1===t&&(this.backdrop=void 0),this.visible&&(t?this.attachBackdrop():this.backdropController.detachBackdrop())}flipChanged(){this.floatingController.updatePosition()}offsetChanged(){this.floatingController.updatePosition()}placementChanged(){this.floatingController.updatePosition()}disableShiftChanged(){this.floatingController.updatePosition()}shiftPaddingChanged(){this.floatingController.updatePosition()}strategyChanged(){this.floatingController.updatePosition()}targetChanged(){var t;if(""===(null!==(t=this.target)&&void 0!==t?t:"")||null==this.floatingController)return;const a=this.floatingController.updateCaller(this.target);a&&(this.caller&&this.caller!==a&&this.unsetInteractionBehaviour(this.caller),this.caller=a,this.markEntries(),this.setInteractionBehaviour(),this.km.addElement(this.host),this.km.attachEscapeBehavior(this.closeFromKeyboard))}visibleChanged(t){if(this.changedEvent.emit({caller:this.caller,visible:t}),this.floatingController.syncExpanded(t),t)return document.addEventListener("click",this.handleCloseDropdown),this.floatingController.updatePosition(),this.backdrop&&this.attachBackdrop(),void this.visibleEvent.emit({caller:this.caller,visible:!0});this.floatingController.dismiss(),this.backdrop&&this.backdropController.detachBackdrop(),this.hiddenEvent.emit({caller:this.caller,visible:!1})}get isMenu(){return"menu"===this.host.getAttribute("role")}componentDidLoad(){var t,a,r;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".arrow");this.floatingController=new h(this.host,e),this.updateCSSCustomProps(),this.targetChanged(),null===(r=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector("slot"))||void 0===r||r.addEventListener("slotchange",this.markEntries),this.host.addEventListener("slotchange",this.markEntries),this.host.addEventListener("keydown",this.onPanelKeydown),this.visible&&this.visibleChanged(!0)}disconnectedCallback(){this.floatingController.dismiss(),this.backdropController.detachBackdrop(),this.km.detachEscapeBehavior()}render(){return e(o,{key:"3abe65235e61e07eb3a0664c20fb341739dcf352",style:{zIndex:`${this.zIndex}`},"pref-animation":m.state.animation,"pref-contrast":m.state.contrast,"pref-mode":m.state.mode,"pref-theme-scheme":m.state["theme-scheme"]},e("div",{key:"87e8822bec5fda29f80b28affd87ebe1d934b948",class:"arrow",innerHTML:'<svg width="30" height="16" viewBox="0 0 30 16" xmlns="http://www.w3.org/2000/svg">\n <path d="M10.2 2.4C12.6 -0.800001 17.4 -0.800001 19.8 2.4L30 16H0L10.2 2.4Z"/>\n</svg>\n'}),e("slot",{key:"8c305d9981dc320401b194ba388f073018e55409"}))}get host(){return this}static get watchers(){return{hideArrow:[{hideArrowChanged:0}],arrowPadding:[{arrowPaddingChanged:0}],disableAutoPlacement:[{disableAutoPlacementChanged:0}],backdrop:[{backdropChanged:0}],flip:[{flipChanged:0}],offset:[{offsetChanged:0}],placement:[{placementChanged:0}],disableShift:[{disableShiftChanged:0}],shiftPadding:[{shiftPaddingChanged:0}],strategy:[{strategyChanged:0}],target:[{targetChanged:0}],visible:[{visibleChanged:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-dropdown-arrow-background:var(--mds-dropdown-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-dropdown-backdrop-duration:var(--magma-backdrop-animation-duration,.3s);--private-dropdown-backdrop-duration:var(--mds-dropdown-backdrop-duration,var(--magma-backdrop-animation-duration,.3s));--mds-dropdown-backdrop-z-index:var(--magma-backdrop-z-index,4000);--mds-dropdown-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-dropdown-drop-shadow-color-rgb:var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5));--private-dropdown-shadow-strength:1;--mds-dropdown-drop-shadow:drop-shadow(0 calc(var(--spacing,.0025rem)*250) calc(var(--spacing,.0025rem)*200) rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5)))/calc(var(--private-dropdown-shadow-strength)*0.05))) drop-shadow(0 calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*75) rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5)))/calc(var(--private-dropdown-shadow-strength)*0.15))) drop-shadow(0 0 1px rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5)))/calc(var(--private-dropdown-shadow-strength)*0.15)));--mds-dropdown-duration:var(--duration-500,.5s);--private-dropdown-duration:var(--mds-dropdown-duration,var(--duration-500,.5s));--mds-dropdown-ease:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-dropdown-mouseover-delay:var(--duration-500,.5s);--mds-dropdown-transform-from:scale(.9) translateY(-3%);--mds-dropdown-transform-to:scale(1) translate(0,0);--mds-dropdown-z-index:var(--magma-dropdown-z-index,5000);background-color:var(--mds-dropdown-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);display:none;filter:var(--mds-dropdown-drop-shadow);gap:calc(var(--spacing,.0025rem)*400);opacity:0;padding:calc(var(--spacing,.0025rem)*600);pointer-events:none;position:fixed;transform:var(--mds-dropdown-transform-from,scale(.9) translateY(-3%));transition-behavior:allow-discrete;transition-duration:var(--private-dropdown-duration);transition-property:opacity,transform,display;transition-timing-function:var(--mds-dropdown-ease);z-index:var(--mds-dropdown-z-index,var(--magma-dropdown-z-index,5000))}:host([visible]:not([visible=false])){display:grid;opacity:1;pointer-events:auto;transform:var(--mds-dropdown-transform-to,scale(1) translate(0,0))}@starting-style{:host([visible]:not([visible=false])){opacity:0;transform:scale(0)}}:host([data-floating-placed]:not([disable-smooth])),:host([data-floating-placed][disable-smooth=false]){transition-property:bottom,left,display,opacity,right,top,transform}.arrow{display:flex;fill:var(--mds-dropdown-arrow-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));pointer-events:none;position:fixed;top:calc(var(--spacing,.0025rem)*-400)}::slotted(*){position:relative;z-index:10}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-dropdown-duration:0s;--private-dropdown-backdrop-duration:0s}:host([pref-mode=dark]),:host([pref-theme-scheme=dark]){--private-dropdown-shadow-strength:3}:host([pref-theme-scheme=light]){--private-dropdown-shadow-strength:1}:host([pref-contrast=more]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}:host([pref-contrast=more][pref-mode=dark]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.075)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-dropdown-duration:0s;--private-dropdown-backdrop-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]){--private-dropdown-shadow-strength:3}:host([pref-contrast=more][pref-mode=system]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}:host([pref-contrast=system][pref-mode=dark]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){:host([pref-contrast=system][pref-mode=system]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}}"}},[257,"mds-dropdown",{hideArrow:[516,"hide-arrow"],arrowPadding:[2,"arrow-padding"],disableAutoPlacement:[4,"disable-auto-placement"],backdrop:[516],flip:[4],interaction:[513],target:[1],offset:[2],placement:[1],disableShift:[4,"disable-shift"],shiftPadding:[2,"shift-padding"],disableSmooth:[4,"disable-smooth"],strategy:[1],visible:[1540],zIndex:[2,"z-index"]},void 0,{hideArrow:[{hideArrowChanged:0}],arrowPadding:[{arrowPaddingChanged:0}],disableAutoPlacement:[{disableAutoPlacementChanged:0}],backdrop:[{backdropChanged:0}],flip:[{flipChanged:0}],offset:[{offsetChanged:0}],placement:[{placementChanged:0}],disableShift:[{disableShiftChanged:0}],shiftPadding:[{shiftPaddingChanged:0}],strategy:[{strategyChanged:0}],target:[{targetChanged:0}],visible:[{visibleChanged:0}]}]);function p(){"undefined"!=typeof customElements&&["mds-dropdown"].forEach((t=>{"mds-dropdown"===t&&(customElements.get(s(t))||customElements.define(s(t),l))}))}export{l as M,p as d}
1
+ import{p as a,H as t,d as r,h as e,c as o,t as s}from"./p-TZJN-ygm.js";import{K as d}from"./p-CGrPq3C4.js";import{c as i}from"./p-CWk1SCJg.js";import{B as n,F as h}from"./p-jasGzfhE.js";import{p as m}from"./p-CVRN4LDc.js";const l=a(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.visibleEvent=r(this,"mdsDropdownVisible",7),this.hiddenEvent=r(this,"mdsDropdownHide",7),this.changedEvent=r(this,"mdsDropdownChange",7),this.km=new d,this.backdropController=new n,this.hideArrow=!1,this.arrowPadding=24,this.disableAutoPlacement=!1,this.backdrop=!1,this.flip=!1,this.interaction="click",this.offset=24,this.placement="bottom",this.disableShift=!1,this.shiftPadding=24,this.disableSmooth=!1,this.strategy="absolute",this.visible=!1,this.onClickTarget=a=>{a.stopPropagation();const t=this.visible;document.body.click(),this.visible=!t,this.visible&&this.isMenu&&0===a.detail&&this.focusEntry(0)},this.onMouseOverTarget=()=>{this.mouseoverTimer=setTimeout((()=>{clearTimeout(this.mouseoverTimer),this.visible=!0}),i(this.cssMouseOverDelayDuration))},this.onMouseOutTarget=()=>{clearTimeout(this.mouseoverTimer),this.mouseoverTimer=setTimeout((()=>{clearTimeout(this.mouseoverTimer),this.visible=!1}),i(this.cssMouseOverDelayDuration))},this.markEntries=()=>{this.isMenu&&this.entries().forEach((a=>{const t=a.getAttribute("role");null!==t&&"button"!==t||a.setAttribute("role","menuitem"),a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1")}))},this.entries=()=>{var a,t;const r=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector("slot");return this.slottedEntries(null!==(t=null==r?void 0:r.assignedElements())&&void 0!==t?t:[])},this.slottedEntries=a=>a.flatMap((a=>"SLOT"===a.tagName?this.slottedEntries(a.assignedElements()):[a])),this.focusEntry=(a,t=3)=>{const r=this.entries();if(0===r.length||!this.visible)return;const e=r[(a+r.length)%r.length];0===e.offsetWidth&&t>0?requestAnimationFrame((()=>this.focusEntry(a,t-1))):e.focus()},this.onCallerKeydown=a=>{!this.isMenu||"ArrowDown"!==a.key&&"ArrowUp"!==a.key||(a.preventDefault(),this.visible=!0,this.focusEntry("ArrowUp"===a.key?-1:0))},this.onPanelKeydown=a=>{var t;if(!this.isMenu||!this.visible)return;const r=this.entries();if(0===r.length)return;const e=r.findIndex((a=>a.contains(document.activeElement))),o=-1===e?null:e;switch(a.key){case"ArrowDown":a.preventDefault(),this.focusEntry(null===o?0:o+1);break;case"ArrowUp":a.preventDefault(),this.focusEntry(null===o?-1:o-1);break;case"Home":a.preventDefault(),this.focusEntry(0);break;case"End":a.preventDefault(),this.focusEntry(-1);break;case"Tab":this.visible=!1,null===(t=this.caller)||void 0===t||t.focus()}},this.closeFromKeyboard=()=>{var a;if(!this.visible)return;const t=this.host.contains(document.activeElement);this.visible=!1,t&&(null===(a=this.caller)||void 0===a||a.focus())},this.attachBackdrop=()=>{var a,t;const r=window.getComputedStyle(this.host);this.backdropController.attachBackdrop({duration:null===(a=r.getPropertyValue("--private-dropdown-backdrop-duration"))||void 0===a?void 0:a.trim(),zIndex:null===(t=r.getPropertyValue("--mds-dropdown-backdrop-z-index"))||void 0===t?void 0:t.trim()})},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const a=window.getComputedStyle(this.host);this.cssMouseOverDelayDuration=a.getPropertyValue("--mds-dropdown-mouseover-delay")},this.handleCloseDropdown=a=>{if("mouseleave"===a.type)return this.host.removeEventListener("mouseleave",this.handleCloseDropdown),this.caller.removeEventListener("mouseleave",this.handleCloseDropdown),void(this.visible=!1);this.host.contains(a.target)||a.target===this.caller||(this.visible=!1,document.removeEventListener("click",this.handleCloseDropdown))},this.setInteractionBehaviour=()=>{"none"!==this.interaction&&("click"===this.interaction&&(this.caller.addEventListener("click",this.onClickTarget),this.caller.addEventListener("keydown",this.onCallerKeydown)),"mouseover"===this.interaction&&(this.caller.addEventListener("mouseover",this.onMouseOverTarget),this.caller.addEventListener("mouseout",this.onMouseOutTarget),this.host.addEventListener("mouseover",this.handleCloseDropdownMouseLeave)))},this.unsetInteractionBehaviour=a=>{a.removeEventListener("click",this.onClickTarget),a.removeEventListener("keydown",this.onCallerKeydown),a.removeEventListener("mouseover",this.onMouseOverTarget),a.removeEventListener("mouseout",this.onMouseOutTarget)},this.handleCloseDropdownMouseLeave=()=>{clearTimeout(this.mouseoverTimer),this.host.removeEventListener("mouseover",this.handleCloseDropdownMouseLeave),this.host.addEventListener("mouseleave",this.handleCloseDropdown)}}hideArrowChanged(){this.floatingController.updatePosition()}arrowPaddingChanged(){this.floatingController.updatePosition()}disableAutoPlacementChanged(){this.floatingController.updatePosition()}backdropChanged(a){!1===a&&(this.backdrop=void 0),this.visible&&(a?this.attachBackdrop():this.backdropController.detachBackdrop())}flipChanged(){this.floatingController.updatePosition()}offsetChanged(){this.floatingController.updatePosition()}placementChanged(){this.floatingController.updatePosition()}disableShiftChanged(){this.floatingController.updatePosition()}shiftPaddingChanged(){this.floatingController.updatePosition()}strategyChanged(){this.floatingController.updatePosition()}targetChanged(){var a;if(""===(null!==(a=this.target)&&void 0!==a?a:"")||null==this.floatingController)return;const t=this.floatingController.updateCaller(this.target);t&&(this.caller&&this.caller!==t&&this.unsetInteractionBehaviour(this.caller),this.caller=t,this.markEntries(),this.setInteractionBehaviour(),this.km.addElement(this.host),this.km.attachEscapeBehavior(this.closeFromKeyboard))}visibleChanged(a){if(this.changedEvent.emit({caller:this.caller,visible:a}),this.floatingController.syncExpanded(a),a)return document.addEventListener("click",this.handleCloseDropdown),this.floatingController.updatePosition(),this.backdrop&&this.attachBackdrop(),void this.visibleEvent.emit({caller:this.caller,visible:!0});this.floatingController.dismiss(),this.backdrop&&this.backdropController.detachBackdrop(),this.hiddenEvent.emit({caller:this.caller,visible:!1})}get isMenu(){return"menu"===this.host.getAttribute("role")}componentDidLoad(){var a,t,r;const e=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".arrow");this.floatingController=new h(this.host,e),this.updateCSSCustomProps(),this.targetChanged(),null===(r=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector("slot"))||void 0===r||r.addEventListener("slotchange",this.markEntries),this.host.addEventListener("slotchange",this.markEntries),this.host.addEventListener("keydown",this.onPanelKeydown),this.visible&&this.visibleChanged(!0)}disconnectedCallback(){this.floatingController.dismiss(),this.backdropController.detachBackdrop(),this.km.detachEscapeBehavior()}render(){return e(o,{key:"9c74b0961efa29a02485dcbc7a786d34b8cca453",style:{zIndex:`${this.zIndex}`},"pref-animation":m.state.animation,"pref-contrast":m.state.contrast,"pref-mode":m.state.mode,"pref-theme-scheme":m.state["theme-scheme"]},e("div",{key:"ddf4fb1de145d4ecd9a20e07c9313ab04bb5a3c4",class:"arrow",innerHTML:'<svg width="30" height="16" viewBox="0 0 30 16" xmlns="http://www.w3.org/2000/svg">\n <path d="M10.2 2.4C12.6 -0.800001 17.4 -0.800001 19.8 2.4L30 16H0L10.2 2.4Z"/>\n</svg>\n'}),e("slot",{key:"7e6941f27ddee6c8fddf0d93a13847d95a340fb4"}))}get host(){return this}static get watchers(){return{hideArrow:[{hideArrowChanged:0}],arrowPadding:[{arrowPaddingChanged:0}],disableAutoPlacement:[{disableAutoPlacementChanged:0}],backdrop:[{backdropChanged:0}],flip:[{flipChanged:0}],offset:[{offsetChanged:0}],placement:[{placementChanged:0}],disableShift:[{disableShiftChanged:0}],shiftPadding:[{shiftPaddingChanged:0}],strategy:[{strategyChanged:0}],target:[{targetChanged:0}],visible:[{visibleChanged:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-dropdown-arrow-background:var(--mds-dropdown-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-dropdown-backdrop-duration:var(--magma-backdrop-animation-duration,.3s);--private-dropdown-backdrop-duration:var(--mds-dropdown-backdrop-duration,var(--magma-backdrop-animation-duration,.3s));--mds-dropdown-backdrop-z-index:var(--magma-backdrop-z-index,4000);--mds-dropdown-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-dropdown-drop-shadow-color-rgb:var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5));--private-dropdown-shadow-strength:1;--mds-dropdown-drop-shadow:drop-shadow(0 calc(var(--spacing,.0025rem)*250) calc(var(--spacing,.0025rem)*200) rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5)))/calc(var(--private-dropdown-shadow-strength)*0.05))) drop-shadow(0 calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*75) rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5)))/calc(var(--private-dropdown-shadow-strength)*0.15))) drop-shadow(0 0 1px rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5)))/calc(var(--private-dropdown-shadow-strength)*0.15)));--mds-dropdown-duration:var(--duration-500,.5s);--private-dropdown-duration:var(--mds-dropdown-duration,var(--duration-500,.5s));--mds-dropdown-ease:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-dropdown-mouseover-delay:var(--duration-500,.5s);--mds-dropdown-transform-from:scale(.9) translateY(-3%);--mds-dropdown-transform-to:scale(1) translate(0,0);--mds-dropdown-z-index:var(--magma-dropdown-z-index,5000);background-color:var(--mds-dropdown-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);display:none;filter:var(--mds-dropdown-drop-shadow);gap:calc(var(--spacing,.0025rem)*400);opacity:0;padding:calc(var(--spacing,.0025rem)*600);pointer-events:none;position:fixed;transform:var(--mds-dropdown-transform-from,scale(.9) translateY(-3%));transition-behavior:allow-discrete;transition-duration:var(--private-dropdown-duration);transition-property:opacity,transform,display;transition-timing-function:var(--mds-dropdown-ease);z-index:var(--mds-dropdown-z-index,var(--magma-dropdown-z-index,5000))}:host([visible]:not([visible=false])){display:grid;opacity:1;pointer-events:auto;transform:var(--mds-dropdown-transform-to,scale(1) translate(0,0))}@starting-style{:host([visible]:not([visible=false])){opacity:0;transform:scale(0)}}:host([data-floating-placed]:not([disable-smooth])),:host([data-floating-placed][disable-smooth=false]){transition-property:bottom,left,display,opacity,right,top,transform}.arrow{display:flex;fill:var(--mds-dropdown-arrow-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));pointer-events:none;position:fixed;top:calc(var(--spacing,.0025rem)*-400)}::slotted(*){position:relative;z-index:10}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-dropdown-duration:0s;--private-dropdown-backdrop-duration:0s}:host([pref-mode=dark]),:host([pref-theme-scheme=dark]){--private-dropdown-shadow-strength:3}:host([pref-theme-scheme=light]){--private-dropdown-shadow-strength:1}:host([pref-contrast=more]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}:host([pref-contrast=more][pref-mode=dark]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.075)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-dropdown-duration:0s;--private-dropdown-backdrop-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]){--private-dropdown-shadow-strength:3}:host([pref-contrast=more][pref-mode=system]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}:host([pref-contrast=system][pref-mode=dark]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){:host([pref-contrast=system][pref-mode=system]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}}"}},[257,"mds-dropdown",{hideArrow:[516,"hide-arrow"],arrowPadding:[2,"arrow-padding"],disableAutoPlacement:[4,"disable-auto-placement"],backdrop:[516],flip:[4],interaction:[513],target:[1],offset:[2],placement:[1],disableShift:[4,"disable-shift"],shiftPadding:[2,"shift-padding"],disableSmooth:[4,"disable-smooth"],strategy:[1],visible:[1540],zIndex:[2,"z-index"]},void 0,{hideArrow:[{hideArrowChanged:0}],arrowPadding:[{arrowPaddingChanged:0}],disableAutoPlacement:[{disableAutoPlacementChanged:0}],backdrop:[{backdropChanged:0}],flip:[{flipChanged:0}],offset:[{offsetChanged:0}],placement:[{placementChanged:0}],disableShift:[{disableShiftChanged:0}],shiftPadding:[{shiftPaddingChanged:0}],strategy:[{strategyChanged:0}],target:[{targetChanged:0}],visible:[{visibleChanged:0}]}]);function p(){"undefined"!=typeof customElements&&["mds-dropdown"].forEach((a=>{"mds-dropdown"===a&&(customElements.get(s(a))||customElements.define(s(a),l))}))}export{l as M,p as d}
@@ -1 +1 @@
1
- import{p as t,H as e,d as a,h as r,c as o,t as s}from"./p-TZJN-ygm.js";import{K as i}from"./p-CGrPq3C4.js";import{p as n}from"./p-CVRN4LDc.js";import{a as l,i as d,d as m}from"./p-Cmn1DJAB.js";import{u as c}from"./p-Cvhn9asj.js";import{L as u}from"./p-B8x-d2fx.js";import{d as h}from"./p-CNF3u0Li.js";var f={result:"{{count}} αποτέλεσμα",results:"{{count}} αποτελέσματα"},p={result:"{{count}} result",results:"{{count}} results"},g={result:"{{count}} resultado",results:"{{count}} resultados"},v={result:"{{count}} risultato",results:"{{count}} risultati"};const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.selectedEvent=a(this,"mdsFilterItemSelect",7),this.km=new i,this.t=new u({el:f,en:p,es:g,it:v}),this.isFilter=()=>null!==this.element.closest("mds-filter"),this.toggle=()=>{!this.disabled&&this.isFilter()&&(this.selected=!this.selected,this.selectedEvent.emit({id:this.element.id,selected:this.selected}))},this.computeName=()=>{var t,e,a;const r=null!==(t=this.icon)&&void 0!==t?t:"",o=""===r||l(r)||d(r)?void 0:c(r),s=""!==(null!==(e=this.label)&&void 0!==e?e:"")?this.label:o,i=null!==(a=this.count)&&void 0!==a?a:"";return void 0===s||""===i?s:`${s}, ${this.t.get(1===Number(i)?"result":"results",{count:i})}`},this.resolveName=()=>{const t=this.computeName(),e=this.element.getAttribute("aria-label");return null!==e&&e!==this.appliedName&&e!==t?e:(this.appliedName=t,t)}}componentDidLoad(){this.km.addElement(this.element),this.km.attachClickBehavior("element",{space:!0})}disconnectedCallback(){this.km.detachClickBehavior()}render(){return r(o,{key:"f1ef6941608007f52eb235b1b502bdb4787d278d",tabindex:this.disabled?"-1":"0",role:"button","aria-disabled":this.disabled?"true":void 0,"aria-label":this.resolveName(),"aria-pressed":this.isFilter()?this.selected?"true":"false":void 0,onClick:this.toggle,"pref-animation":n.state.animation,"pref-contrast":n.state.contrast,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},this.icon&&r("mds-icon",{key:"b5248c91a21cc6f9c403482d43cd4568a2046dde","aria-hidden":"true",name:this.icon}),this.label&&r("mds-text",{key:"6e1830e5365641b7d7817c1207ae7ab7cd61db62","aria-hidden":"true",variant:"info",typography:"caption"},this.label),this.count&&r("div",{key:"fb7d7cafdfe2b917f8ec52917e0a42bca2374526",class:"count"},r("mds-text",{key:"947694558d5ae21a4d44bb2e1c65adc8ba695f35","aria-hidden":"true",variant:"info",typography:"option"},this.count)))}get element(){return this}static get style(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-filter-item-transition-duration:var(--duration-200,.2s);--private-filter-item-transition-duration:var(--mds-filter-item-transition-duration);--mds-filter-item-count-background-default:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-filter-item-count-color-default:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-filter-item-count-background-selected:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-filter-item-count-color-selected:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));align-items:center;animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));border-radius:var(--magma-radius-full,var(--radius-full,1000px));color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));cursor:pointer;display:flex;fill:currentColor;gap:calc(var(--spacing,.0025rem)*100);justify-content:center;outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));padding:calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*400);transition-duration:.2s;transition-duration:var(--private-filter-item-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-property:background-color,box-shadow,color,outline,outline-offset;transition-timing-function:ease-in-out;transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));-webkit-user-select:none;user-select:none;white-space:nowrap}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}mds-text{white-space:nowrap}.count{align-items:center;background-color:var(--mds-filter-item-count-background-default,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));box-sizing:border-box;color:var(--mds-filter-item-count-color-default,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));display:inline-flex;flex-shrink:0;height:calc(var(--spacing,.0025rem)*400);justify-content:center;min-width:calc(var(--spacing,.0025rem)*400);padding-left:calc(var(--spacing,.0025rem)*150);padding-right:calc(var(--spacing,.0025rem)*150);transition-duration:var(--duration-200,.2s);transition-property:background-color,color;transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));-webkit-user-select:none;user-select:none}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host([disabled]:not([disabled=false])){color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));pointer-events:none}:host([icon]:not([label])){height:calc(var(--spacing,.0025rem)*900);padding:0;width:calc(var(--spacing,.0025rem)*900)}:host(:hover),:host([selected]:not([selected=false])){background-color:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)))}:host(:hover){box-shadow:var(--shadow-sm,0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a)}:host([selected]:not([selected=false])){color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([selected]:not([selected=false])) .count{background-color:var(--mds-filter-item-count-background-selected,rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73))));color:var(--mds-filter-item-count-color-selected,rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-filter-item-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){background-color:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([selected]:not([selected=false])){background-color:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host(:hover){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]):host(:hover),:host([pref-contrast=more]):host([selected]:not([selected=false])){box-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-filter-item-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){background-color:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([selected]:not([selected=false])){background-color:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host(:hover){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host(:hover),:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([selected]:not([selected=false])){box-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}}"}},[1,"mds-filter-item",{selected:[1540],label:[513],icon:[513],value:[513],count:[513],disabled:[516]}]);function x(){"undefined"!=typeof customElements&&["mds-filter-item","mds-icon","mds-text"].forEach((t=>{switch(t){case"mds-filter-item":customElements.get(s(t))||customElements.define(s(t),b);break;case"mds-icon":customElements.get(s(t))||m();break;case"mds-text":customElements.get(s(t))||h()}}))}export{b as M,x as d}
1
+ import{p as t,H as e,d as a,h as r,c as o,t as s}from"./p-TZJN-ygm.js";import{K as i}from"./p-CGrPq3C4.js";import{p as n}from"./p-CVRN4LDc.js";import{a as l,i as d,d as m}from"./p-CEw7GvM-.js";import{u as c}from"./p-Cvhn9asj.js";import{L as u}from"./p-CZjwSwe5.js";import{d as h}from"./p-aujz-VM9.js";var f={result:"{{count}} αποτέλεσμα",results:"{{count}} αποτελέσματα"},p={result:"{{count}} result",results:"{{count}} results"},g={result:"{{count}} resultado",results:"{{count}} resultados"},v={result:"{{count}} risultato",results:"{{count}} risultati"};const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.selectedEvent=a(this,"mdsFilterItemSelect",7),this.km=new i,this.t=new u({el:f,en:p,es:g,it:v}),this.isFilter=()=>null!==this.element.closest("mds-filter"),this.toggle=()=>{!this.disabled&&this.isFilter()&&(this.selected=!this.selected,this.selectedEvent.emit({id:this.element.id,selected:this.selected}))},this.computeName=()=>{var t,e,a;const r=null!==(t=this.icon)&&void 0!==t?t:"",o=""===r||l(r)||d(r)?void 0:c(r),s=""!==(null!==(e=this.label)&&void 0!==e?e:"")?this.label:o,i=null!==(a=this.count)&&void 0!==a?a:"";return void 0===s||""===i?s:`${s}, ${this.t.get(1===Number(i)?"result":"results",{count:i})}`},this.resolveName=()=>{const t=this.computeName(),e=this.element.getAttribute("aria-label");return null!==e&&e!==this.appliedName&&e!==t?e:(this.appliedName=t,t)}}componentDidLoad(){this.km.addElement(this.element),this.km.attachClickBehavior("element",{space:!0})}disconnectedCallback(){this.km.detachClickBehavior()}render(){return r(o,{key:"695616e7d403f01a28c368f5511fd0664f4d8ba4",tabindex:this.disabled?"-1":"0",role:"button","aria-disabled":this.disabled?"true":void 0,"aria-label":this.resolveName(),"aria-pressed":this.isFilter()?this.selected?"true":"false":void 0,onClick:this.toggle,"pref-animation":n.state.animation,"pref-contrast":n.state.contrast,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},this.icon&&r("mds-icon",{key:"80c99cbbdbcdcb1328c12ece845a6116b623cacf","aria-hidden":"true",name:this.icon}),this.label&&r("mds-text",{key:"1f743ee11b605d6ac816c08a9d07a75ee20dff3c","aria-hidden":"true",variant:"info",typography:"caption"},this.label),this.count&&r("div",{key:"0b43d0c41b730a94e8309b7be1619a343a517018",class:"count"},r("mds-text",{key:"9e31474c8b583167d5086f23350a35e54cff7e74","aria-hidden":"true",variant:"info",typography:"option"},this.count)))}get element(){return this}static get style(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-filter-item-transition-duration:var(--duration-200,.2s);--private-filter-item-transition-duration:var(--mds-filter-item-transition-duration);--mds-filter-item-count-background-default:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-filter-item-count-color-default:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-filter-item-count-background-selected:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-filter-item-count-color-selected:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));align-items:center;animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));border-radius:var(--magma-radius-full,var(--radius-full,1000px));color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));cursor:pointer;display:flex;fill:currentColor;gap:calc(var(--spacing,.0025rem)*100);justify-content:center;outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));padding:calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*400);transition-duration:.2s;transition-duration:var(--private-filter-item-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-property:background-color,box-shadow,color,outline,outline-offset;transition-timing-function:ease-in-out;transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));-webkit-user-select:none;user-select:none;white-space:nowrap}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}mds-text{white-space:nowrap}.count{align-items:center;background-color:var(--mds-filter-item-count-background-default,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));box-sizing:border-box;color:var(--mds-filter-item-count-color-default,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));display:inline-flex;flex-shrink:0;height:calc(var(--spacing,.0025rem)*400);justify-content:center;min-width:calc(var(--spacing,.0025rem)*400);padding-left:calc(var(--spacing,.0025rem)*150);padding-right:calc(var(--spacing,.0025rem)*150);transition-duration:var(--duration-200,.2s);transition-property:background-color,color;transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));-webkit-user-select:none;user-select:none}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host([disabled]:not([disabled=false])){color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));pointer-events:none}:host([icon]:not([label])){height:calc(var(--spacing,.0025rem)*900);padding:0;width:calc(var(--spacing,.0025rem)*900)}:host(:hover),:host([selected]:not([selected=false])){background-color:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)))}:host(:hover){box-shadow:var(--shadow-sm,0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a)}:host([selected]:not([selected=false])){color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([selected]:not([selected=false])) .count{background-color:var(--mds-filter-item-count-background-selected,rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73))));color:var(--mds-filter-item-count-color-selected,rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-filter-item-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){background-color:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([selected]:not([selected=false])){background-color:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host(:hover){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]):host(:hover),:host([pref-contrast=more]):host([selected]:not([selected=false])){box-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-filter-item-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){background-color:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([selected]:not([selected=false])){background-color:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host(:hover){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host(:hover),:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([selected]:not([selected=false])){box-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}}"}},[1,"mds-filter-item",{selected:[1540],label:[513],icon:[513],value:[513],count:[513],disabled:[516]}]);function x(){"undefined"!=typeof customElements&&["mds-filter-item","mds-icon","mds-text"].forEach((t=>{switch(t){case"mds-filter-item":customElements.get(s(t))||customElements.define(s(t),b);break;case"mds-icon":customElements.get(s(t))||m();break;case"mds-text":customElements.get(s(t))||h()}}))}export{b as M,x as d}
@@ -1 +1 @@
1
- import{p as t,H as r,d as i,h as s,c as a,t as e}from"./p-TZJN-ygm.js";import{b as o}from"./p-CGFwoK_U.js";import{m as n}from"./p-0FAG3rkw.js";import{L as c}from"./p-B8x-d2fx.js";import{p as d}from"./p-CVRN4LDc.js";import{d as m}from"./p-ClPv-Ljc.js";import{d as l}from"./p-Cmn1DJAB.js";import{d as h}from"./p-ZuubAcA3.js";import{d as g}from"./p-CNF3u0Li.js";var u={clickToLoad:"Φόρτωση εικόνας"},v={clickToLoad:"Load image"},p={clickToLoad:"Cargar imagen"},b={clickToLoad:"Carica immagine"};const f=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.loadErrorEvent=i(this,"mdsImgLoadError",7),this.loadSuccessEvent=i(this,"mdsImgLoadSuccess",7),this.imageConsumptionLoaded=!1,this.imageError=!1,this.storedConsumption=null,this.t=new c({el:u,en:v,es:p,it:b}),this.loading="lazy",this.onSuccess=t=>{this.image=t.target,this.loadSuccessEvent.emit({image:this.image})},this.onError=t=>{this.image=t.target,this.loadErrorEvent.emit({image:this.image}),this.imageError=!0},this.formatConsumptionData=t=>{const r={};return t.split(",").forEach((t=>{var i;const s=t.trim().split(/\s+/);if(""===s[0])return;const a=null===(i=s[1])||void 0===i?void 0:i.toLocaleLowerCase();"low"===a||"medium"===a||"high"===a?r[a]=s[0]:console.warn(`mds-img: ignoring the srcset-consumption entry "${t.trim()}", an image followed by low, medium or high`)})),r},this.autoAltName=()=>{if(void 0!==this.src&&""!==this.src){const t=this.src.lastIndexOf("/")+1;return this.src.substring(t)}return""},this.handleConsumptionLoadClick=()=>{this.imageConsumptionLoaded=!0},this.hostRole=()=>{var t;return""===(null!==(t=this.alt)&&void 0!==t?t:"")?{role:"presentation"}:{role:"img","aria-label":this.alt}}}get consumptionMode(){var t,r;return null!==(r=null!==(t=d.state.consumption)&&void 0!==t?t:this.storedConsumption)&&void 0!==r?r:"high"}srcsetConsumptionHandler(t){this.srcsetConsumptionData=null!=t&&""!==t?this.formatConsumptionData(t):void 0}srcHandler(){this.imageError=!1}componentWillLoad(){this.storedConsumption=localStorage.getItem("mdsPrefConsumption"),null!=this.srcsetConsumption&&""!==this.srcsetConsumption&&(this.srcsetConsumptionData=this.formatConsumptionData(this.srcsetConsumption)),this.image=this.host.querySelector("img"),null==this.alt&&(this.alt=this.autoAltName())}render(){var t,r,i,e,c;return this.imageError?s(a,Object.assign({},this.hostRole()),s("div",{class:"contrast-area-50"}),s("div",{class:"alt-text-container alt-text-container--error alt-text-container--default-aspect-ratio"},s("mds-icon",{class:"icon",name:n}),s("mds-text",{class:"alt-text","aria-hidden":"true",typography:"h6"},s("i",null,this.alt)))):this.srcsetConsumptionData?"low"===this.consumptionMode?s(a,Object.assign({},this.hostRole(),{onClick:this.handleConsumptionLoadClick}),s("div",{class:"contrast-area-50"}),this.imageConsumptionLoaded?s("img",{alt:null!==(t=this.alt)&&void 0!==t?t:"","aria-hidden":"true",crossorigin:this.crossorigin,height:this.height,loading:this.loading,onError:this.onError,onLoad:this.onSuccess,part:"media",referrerPolicy:this.referrerpolicy,sizes:this.sizes,src:null!==(r=this.srcsetConsumptionData[this.consumptionMode])&&void 0!==r?r:this.src,srcset:this.srcset,width:this.width}):s("div",{"aria-hidden":"true",class:"alt-text-container alt-text-container--default-aspect-ratio"},s("mds-icon",{class:"icon",name:o}),s("mds-text",{class:"alt-text",typography:"h6"},s("i",null,this.alt)),s("mds-button",{"aria-hidden":"true",role:"none",class:"click-to-load",tabIndex:-1,variant:"light",tone:"outline",label:this.t.get("clickToLoad")}))):s(a,Object.assign({},this.hostRole()),s("div",{class:"contrast-area-50"}),s("img",{alt:null!==(i=this.alt)&&void 0!==i?i:"","aria-hidden":"true",crossorigin:this.crossorigin,height:this.height,loading:this.loading,onError:this.onError,onLoad:this.onSuccess,part:"media",referrerPolicy:this.referrerpolicy,sizes:this.sizes,src:null!==(e=this.srcsetConsumptionData[this.consumptionMode])&&void 0!==e?e:this.src,srcset:this.srcset,width:this.width})):s(a,Object.assign({},this.hostRole()),s("div",{class:"contrast-area-50"}),s("img",{alt:null!==(c=this.alt)&&void 0!==c?c:"","aria-hidden":"true",crossorigin:this.crossorigin,height:this.height,loading:this.loading,onError:this.onError,onLoad:this.onSuccess,part:"media",referrerPolicy:this.referrerpolicy,sizes:this.sizes,src:this.src,srcset:this.srcset,width:this.width}))}get host(){return this}static get watchers(){return{srcsetConsumption:[{srcsetConsumptionHandler:0}],src:[{srcHandler:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-img-background:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-img-color:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-img-icon-color:rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218)));--mds-img-error-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-img-error-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-img-error-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));display:flex;height:auto;object-fit:contain;overflow:hidden;position:relative;width:100%}img{height:inherit;object-fit:inherit;width:inherit}.alt-text-container{align-items:center;background-color:var(--mds-img-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));color:var(--mds-img-color,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));display:flex;flex-direction:column;gap:calc(var(--spacing,.0025rem)*600);justify-content:center;padding:calc(var(--spacing,.0025rem)*600);text-align:center}.alt-text-container--absolute{cursor:pointer;inset:0;position:absolute}.alt-text-container--error{--mds-img-background:var(--mds-img-error-background,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))));--mds-img-color:var(--mds-img-error-color,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))));--mds-img-icon-color:var(--mds-img-error-icon-color,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))));cursor:not-allowed}.alt-text-container--default-aspect-ratio{cursor:pointer;width:100%}.click-to-load{pointer-events:none}.icon{fill:var(--mds-img-icon-color,rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218))));width:calc(var(--spacing,.0025rem)*900)}"}},[1,"mds-img",{alt:[1537],crossorigin:[1],height:[1],loading:[1],referrerpolicy:[1],sizes:[1],src:[1],srcset:[1],srcsetConsumption:[1,"srcset-consumption"],width:[1],imageConsumptionLoaded:[32],imageError:[32]},void 0,{srcsetConsumption:[{srcsetConsumptionHandler:0}],src:[{srcHandler:0}]}]);function x(){"undefined"!=typeof customElements&&["mds-img","mds-button","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-img":customElements.get(e(t))||customElements.define(e(t),f);break;case"mds-button":customElements.get(e(t))||m();break;case"mds-icon":customElements.get(e(t))||l();break;case"mds-spinner":customElements.get(e(t))||h();break;case"mds-text":customElements.get(e(t))||g()}}))}export{f as M,x as d}
1
+ import{p as t,H as r,d as i,h as s,c as a,t as e}from"./p-TZJN-ygm.js";import{b as o}from"./p-CGFwoK_U.js";import{m as n}from"./p-0FAG3rkw.js";import{L as c}from"./p-CZjwSwe5.js";import{p as d}from"./p-CVRN4LDc.js";import{d as m}from"./p-M8dGB4KH.js";import{d as l}from"./p-CEw7GvM-.js";import{d as h}from"./p-DDTJwlAd.js";import{d as g}from"./p-aujz-VM9.js";var u={clickToLoad:"Φόρτωση εικόνας"},v={clickToLoad:"Load image"},p={clickToLoad:"Cargar imagen"},b={clickToLoad:"Carica immagine"};const f=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.loadErrorEvent=i(this,"mdsImgLoadError",7),this.loadSuccessEvent=i(this,"mdsImgLoadSuccess",7),this.imageConsumptionLoaded=!1,this.imageError=!1,this.storedConsumption=null,this.t=new c({el:u,en:v,es:p,it:b}),this.loading="lazy",this.onSuccess=t=>{this.image=t.target,this.loadSuccessEvent.emit({image:this.image})},this.onError=t=>{this.image=t.target,this.loadErrorEvent.emit({image:this.image}),this.imageError=!0},this.formatConsumptionData=t=>{const r={};return t.split(",").forEach((t=>{var i;const s=t.trim().split(/\s+/);if(""===s[0])return;const a=null===(i=s[1])||void 0===i?void 0:i.toLocaleLowerCase();"low"===a||"medium"===a||"high"===a?r[a]=s[0]:console.warn(`mds-img: ignoring the srcset-consumption entry "${t.trim()}", an image followed by low, medium or high`)})),r},this.autoAltName=()=>{if(void 0!==this.src&&""!==this.src){const t=this.src.lastIndexOf("/")+1;return this.src.substring(t)}return""},this.handleConsumptionLoadClick=()=>{this.imageConsumptionLoaded=!0},this.hostRole=()=>{var t;return""===(null!==(t=this.alt)&&void 0!==t?t:"")?{role:"presentation"}:{role:"img","aria-label":this.alt}}}get consumptionMode(){var t,r;return null!==(r=null!==(t=d.state.consumption)&&void 0!==t?t:this.storedConsumption)&&void 0!==r?r:"high"}srcsetConsumptionHandler(t){this.srcsetConsumptionData=null!=t&&""!==t?this.formatConsumptionData(t):void 0}srcHandler(){this.imageError=!1}componentWillLoad(){this.storedConsumption=localStorage.getItem("mdsPrefConsumption"),null!=this.srcsetConsumption&&""!==this.srcsetConsumption&&(this.srcsetConsumptionData=this.formatConsumptionData(this.srcsetConsumption)),this.image=this.host.querySelector("img"),null==this.alt&&(this.alt=this.autoAltName())}render(){var t,r,i,e,c;return this.imageError?s(a,Object.assign({},this.hostRole()),s("div",{class:"contrast-area-50"}),s("div",{class:"alt-text-container alt-text-container--error alt-text-container--default-aspect-ratio"},s("mds-icon",{class:"icon",name:n}),s("mds-text",{class:"alt-text","aria-hidden":"true",typography:"h6"},s("i",null,this.alt)))):this.srcsetConsumptionData?"low"===this.consumptionMode?s(a,Object.assign({},this.hostRole(),{onClick:this.handleConsumptionLoadClick}),s("div",{class:"contrast-area-50"}),this.imageConsumptionLoaded?s("img",{alt:null!==(t=this.alt)&&void 0!==t?t:"","aria-hidden":"true",crossorigin:this.crossorigin,height:this.height,loading:this.loading,onError:this.onError,onLoad:this.onSuccess,part:"media",referrerPolicy:this.referrerpolicy,sizes:this.sizes,src:null!==(r=this.srcsetConsumptionData[this.consumptionMode])&&void 0!==r?r:this.src,srcset:this.srcset,width:this.width}):s("div",{"aria-hidden":"true",class:"alt-text-container alt-text-container--default-aspect-ratio"},s("mds-icon",{class:"icon",name:o}),s("mds-text",{class:"alt-text",typography:"h6"},s("i",null,this.alt)),s("mds-button",{"aria-hidden":"true",role:"none",class:"click-to-load",tabIndex:-1,variant:"light",tone:"outline",label:this.t.get("clickToLoad")}))):s(a,Object.assign({},this.hostRole()),s("div",{class:"contrast-area-50"}),s("img",{alt:null!==(i=this.alt)&&void 0!==i?i:"","aria-hidden":"true",crossorigin:this.crossorigin,height:this.height,loading:this.loading,onError:this.onError,onLoad:this.onSuccess,part:"media",referrerPolicy:this.referrerpolicy,sizes:this.sizes,src:null!==(e=this.srcsetConsumptionData[this.consumptionMode])&&void 0!==e?e:this.src,srcset:this.srcset,width:this.width})):s(a,Object.assign({},this.hostRole()),s("div",{class:"contrast-area-50"}),s("img",{alt:null!==(c=this.alt)&&void 0!==c?c:"","aria-hidden":"true",crossorigin:this.crossorigin,height:this.height,loading:this.loading,onError:this.onError,onLoad:this.onSuccess,part:"media",referrerPolicy:this.referrerpolicy,sizes:this.sizes,src:this.src,srcset:this.srcset,width:this.width}))}get host(){return this}static get watchers(){return{srcsetConsumption:[{srcsetConsumptionHandler:0}],src:[{srcHandler:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-img-background:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-img-color:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-img-icon-color:rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218)));--mds-img-error-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-img-error-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-img-error-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));display:flex;height:auto;object-fit:contain;overflow:hidden;position:relative;width:100%}img{height:inherit;object-fit:inherit;width:inherit}.alt-text-container{align-items:center;background-color:var(--mds-img-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));color:var(--mds-img-color,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));display:flex;flex-direction:column;gap:calc(var(--spacing,.0025rem)*600);justify-content:center;padding:calc(var(--spacing,.0025rem)*600);text-align:center}.alt-text-container--absolute{cursor:pointer;inset:0;position:absolute}.alt-text-container--error{--mds-img-background:var(--mds-img-error-background,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))));--mds-img-color:var(--mds-img-error-color,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))));--mds-img-icon-color:var(--mds-img-error-icon-color,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))));cursor:not-allowed}.alt-text-container--default-aspect-ratio{cursor:pointer;width:100%}.click-to-load{pointer-events:none}.icon{fill:var(--mds-img-icon-color,rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218))));width:calc(var(--spacing,.0025rem)*900)}"}},[1,"mds-img",{alt:[1537],crossorigin:[1],height:[1],loading:[1],referrerpolicy:[1],sizes:[1],src:[1],srcset:[1],srcsetConsumption:[1,"srcset-consumption"],width:[1],imageConsumptionLoaded:[32],imageError:[32]},void 0,{srcsetConsumption:[{srcsetConsumptionHandler:0}],src:[{srcHandler:0}]}]);function x(){"undefined"!=typeof customElements&&["mds-img","mds-button","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-img":customElements.get(e(t))||customElements.define(e(t),f);break;case"mds-button":customElements.get(e(t))||m();break;case"mds-icon":customElements.get(e(t))||l();break;case"mds-spinner":customElements.get(e(t))||h();break;case"mds-text":customElements.get(e(t))||g()}}))}export{f as M,x as d}
@@ -0,0 +1 @@
1
+ import{p as t,H as a,d as s,h as r,c as e,t as i}from"./p-TZJN-ygm.js";import{q as o}from"./p-DWIIDHSa.js";import{s as n,h as d}from"./p-Cvhn9asj.js";import{c as l}from"./p-ChV9xqsO.js";import{c as h}from"./p-CWk1SCJg.js";import{p as b}from"./p-CVRN4LDc.js";const m=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.changedEvent=s(this,"mdsTabChange",7),this.currentItemIndex=-1,this.tabItems=[],this.contentItems=[],this.sliderWidth=-1,this.sliderHeight=-1,this.sliderOffsetX=-1,this.sliderOffsetY=-1,this.sliderSlides=!1,this.overflowLeft=!1,this.overflowRight=!1,this.navigation=!1,this.hasContent=!1,this.direction="horizontal",this.animation="slide",this.queryContentItems=()=>o(this.element,"content"),this.updateContentItems=()=>{this.contentItems=this.queryContentItems(),this.hasContent=this.contentItems.length>0,this.contentItems.length>this.tabItems.length&&console.warn(`mds-tab: ${this.contentItems.length} content panels for ${this.tabItems.length} mds-tab-item, the panels past the last item are never shown`),this.contentItems.forEach(((t,a)=>{n(t,"role","tabpanel"),a<this.tabItems.length&&n(t,"aria-labelledby",this.tabItems[a].id)})),this.selectContentItem()},this.setTabsItems=()=>{this.tabItems=Array.from(this.element.querySelectorAll("mds-tab-item")),this.currentItemIndex=-1,this.navigation=this.tabItems.length>0&&this.tabItems.every((t=>{var a;return""!==(null!==(a=t.href)&&void 0!==a?a:"")})),this.tabItems.forEach((t=>{t.size=this.size,t.direction=this.direction,t.animation=this.animation})),this.tabItems.forEach(((t,a)=>{""===t.id&&n(t,"id",d("mds-tab-item")),t.selected&&(this.currentItemIndex=a,this.currentItemEl=this.tabItems[this.currentItemIndex])}))},this.updateTabItems=()=>{this.setTabsItems(),this.overflow&&this.updateOverflowState(),this.updateSliderPosition(),this.scrollTabs(this.currentItemIndex)},this.unsetOverflowCheck=()=>{this.tabs.removeEventListener("scroll",this.updateOverflowState),this.observer.unobserve(this.tabsContainer)},this.initOverflowCheck=()=>{this.tabs.addEventListener("scroll",this.updateOverflowState),this.observer=new ResizeObserver((()=>{this.overflow&&this.updateOverflowState(),this.updateSliderPosition()})),this.observer.observe(this.tabsContainer),this.updateOverflowState()},this.updateOverflowState=()=>{if(null==this.tabs||null==this.tabsContainer)return;const t=this.tabsContainer.offsetWidth,a=this.tabs.scrollWidth,{scrollLeft:s}=this.tabs;this.overflowLeft=s>0,this.overflowRight=Math.ceil(s+t)<a-1},this.updateSliderPosition=(t=!1)=>{"slide"===this.animation&&this.currentItemIndex>=0?self.requestAnimationFrame((()=>{this.currentItemEl.offsetWidth&&(this.sliderSlides=t,this.sliderWidth=this.currentItemEl.offsetWidth,this.sliderHeight=this.currentItemEl.offsetHeight,this.sliderOffsetX=this.currentItemEl.offsetLeft-this.tabsContainer.offsetLeft,this.sliderOffsetY=this.currentItemEl.offsetTop-this.tabsContainer.offsetTop+this.currentItemEl.offsetHeight-this.sliderHeight)})):(this.sliderHeight=-1,this.sliderOffsetX=-1,this.sliderOffsetY=-1,this.sliderWidth=-1)},this.scrollTabs=t=>{if(t<0||t>=this.tabItems.length)return;const a=this.tabItems[t];setTimeout((()=>{this.tabs.scrollLeft=a.offsetLeft-this.tabs.offsetLeft-this.tabs.offsetWidth/2+a.offsetWidth/2,this.updateOverflowState()}),h(this.cssSlideDelayDuration))},this.selectContentItem=()=>{this.contentItems.forEach(((t,a)=>{t.setAttribute("mds-tab-content-hidden",""),a===this.currentItemIndex&&t.removeAttribute("mds-tab-content-hidden")}))},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const t=window.getComputedStyle(this.element);this.cssSlideDelayDuration=t.getPropertyValue("--mds-tab-slide-delay")}}componentWillLoad(){this.setTabsItems(),this.hasContent=this.queryContentItems().length>0}disconnectedCallback(){this.unsetOverflowCheck()}componentDidLoad(){var t,a,s,r;this.updateCSSCustomProps(),this.tabs=null===(t=this.element.shadowRoot)||void 0===t?void 0:t.querySelector(".tabs"),this.tabsContainer=null===(a=this.element.shadowRoot)||void 0===a?void 0:a.querySelector(".tabs-wrapper"),null===(r=null===(s=this.element.shadowRoot)||void 0===s?void 0:s.querySelector("slot"))||void 0===r||r.addEventListener("slotchange",this.updateTabItems.bind(this)),this.updateContentItems(),this.initOverflowCheck(),this.updateSliderPosition(),this.currentItemIndex>0&&this.scrollTabs(this.currentItemIndex)}changeEventHandler(t){this.tabItems.forEach(((a,s)=>{var r;if(a.id!==t.detail.target.id)a.selected=void 0;else{this.changedEvent.emit({id:s,value:a.value}),this.currentItemIndex=s,this.currentItemEl=this.tabItems[this.currentItemIndex],this.scrollTabs(s),a.selected=!0;const t=null===(r=this.tabItems[this.currentItemIndex].shadowRoot)||void 0===r?void 0:r.querySelector("mds-button");setTimeout((()=>{t.focus()}),0)}})),this.selectContentItem(),this.updateSliderPosition(!0)}focusEventHandler(t){this.tabItems.forEach(((a,s)=>{a.id===t.detail.target.id&&this.scrollTabs(s)}))}handleAnimationChange(t){this.tabItems.forEach((a=>{a.animation=t})),this.updateSliderPosition()}handleDirectionChange(t){this.tabItems.forEach((a=>{a.direction=t}))}handleScrollbarChange(t){!1===t&&(this.scrollbar=void 0)}handleFillChange(t){!1===t&&(this.fill=void 0)}handleOverflowChange(t){t?this.initOverflowCheck():this.unsetOverflowCheck()}handleSizeChange(t){this.tabItems.forEach((a=>{a.size=t}))}render(){return r(e,{key:"e41e15dbbd47eabed43ae17abbd703a6da8b6007","pref-animation":b.state.animation,"pref-contrast":b.state.contrast,"pref-mode":b.state.mode,"pref-theme-scheme":b.state["theme-scheme"]},r("div",{key:"4c0fcf160e458ca25bcec4bc863ff94b07a9c983",class:l("tabs-wrapper",this.fill&&"tabs-wrapper--fill",!this.hasContent&&"tabs-wrapper--no-content")},this.overflow&&r("div",{key:"0b5a123fe3098e7f4bb0c5e3d15848bec0f1695f",class:l("tabs-wrapper-overflow-left",this.overflowLeft&&"tabs-wrapper-overflow-left--show")}),this.overflow&&r("div",{key:"2b4f8854e9254ddaa76e05a9bc1c65a89c09a2d8",class:l("tabs-wrapper-overflow-right",this.overflowRight&&"tabs-wrapper-overflow-right--show")}),r("div",{key:"ba7763d0bcebdc5efeeff1e3d4492ad4a345bec3",class:"tabs",part:"tabs",role:this.navigation?void 0:"tablist"},r("slot",{key:"059b6fb51f7e089d324550366309d994ffa15cef"}),"slide"===this.animation&&r("div",{key:"d5e5ad377db64705ac0e7b517e8778b8fb11cb69",class:l("slider",!this.sliderSlides&&"slider--still"),part:"slider",style:{"--mds-tab-slider-width":`${this.sliderWidth}px`,"--mds-tab-slider-height":`${this.sliderHeight}px`,"--mds-tab-slider-offset-x":`${this.sliderOffsetX}px`,"--mds-tab-slider-offset-y":`${this.sliderOffsetY}px`}}))),r("div",{key:"877d854bae6e40e3d64ebbcb9e56cf743b12ad5b",class:l("contents",!this.hasContent&&"contents--empty"),part:"contents"},r("slot",{key:"895b5f0c44848aad39a6083d44ca196b4fbf88d2",name:"content",onSlotchange:this.updateContentItems})))}get element(){return this}static get watchers(){return{animation:[{handleAnimationChange:0}],direction:[{handleDirectionChange:0}],scrollbar:[{handleScrollbarChange:0}],fill:[{handleFillChange:0}],overflow:[{handleOverflowChange:0}],size:[{handleSizeChange:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-tab-item:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-direction-vertical-columns:auto auto;--mds-tab-item-default-background:#0000;--mds-tab-item-default-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-tab-item-default-shadow:none;--mds-tab-item-hover-background:#0000;--mds-tab-item-hover-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-radius:min(calc(var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px))) - var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200))),var(--magma-corner-cap,.5) * var(--private-tab-item-height));--mds-tab-item-selected-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-selected-shadow:var(--shadow-sm,0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a);--mds-tab-scroll-behavior:smooth;--mds-tab-scroll-scrollbar-margin:0;--mds-tab-scroll-scrollbar-radius:0;--mds-tab-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-tab-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3);--mds-tab-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-tab-slide-delay:.125s;--mds-tab-tabs-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-tab-tabs-gap:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-overflow-shadow-size:calc(var(--spacing,.0025rem)*600);--mds-tab-tabs-overflow-shadow:0 0 var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem)*600)) calc(var(--spacing,.0025rem)*-50) rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.375);--mds-tab-tabs-padding:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-radius:min(var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)),var(--magma-corner-cap,.5) * var(--private-tab-item-height) + var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem)*200)));--mds-tab-tabs-wrapper-margin:0;--mds-tab-tabs-wrapper-outline-opacity:.7;--mds-tab-tabs-wrapper-shadow-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-transition-duration:var(--duration-500,.5s);--private-tab-transition-duration:var(--mds-tab-transition-duration,var(--duration-500,.5s));--private-tab-item-height:calc(var(--spacing,.0025rem)*900);--mds-tab-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-tab-corner-shape:var(--magma-corner-shape,squircle);border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));corner-shape:var(--mds-tab-corner-shape,round);display:grid;gap:0 calc(var(--spacing,.0025rem)*600);grid-template-rows:min-content auto;position:relative}:host([size=sm]){--private-tab-item-height:calc(var(--spacing,.0025rem)*700)}:host([animation=slide]) ::slotted(mds-tab-item){--mds-tab-item-hover-background:#0000;--mds-tab-item-hover-shadow:none;--mds-tab-item-selected-background:#0000;--mds-tab-item-selected-shadow:#0000;--mds-tab-item-default-background:#0000;--mds-tab-item-default-shadow:none}.tabs{align-items:flex-start;background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));box-sizing:border-box;display:flex;gap:var(--mds-tab-tabs-gap,calc(var(--spacing,.0025rem)*200));overflow:auto;padding:var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem)*200));scroll-behavior:var(--mds-tab-scroll-behavior);scroll-snap-type:x mandatory;transition-duration:var(--private-tab-transition-duration);transition-property:background-color;transition-timing-function:var(--mds-tab-transition-timing-function);z-index:0}.tabs,.tabs-wrapper{border-radius:inherit;corner-shape:inherit;position:relative}.tabs-wrapper{display:grid;flex-shrink:0;margin:var(--mds-tab-tabs-wrapper-margin,0);max-width:max-content;overflow:hidden}.tabs-wrapper--fill{max-width:100%}.tabs-wrapper:after{border-radius:inherit;corner-shape:inherit;border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));box-shadow:var(--mds-tab-tabs-wrapper-shadow);content:"";inset:0;opacity:var(--mds-tab-tabs-wrapper-outline-opacity,.7);pointer-events:none;position:absolute;transition-duration:var(--private-tab-transition-duration);transition-duration:var(--mds-tab-transition-duration,var(--duration-500,.5s));transition-property:box-shadow,opacity;transition-timing-function:var(--mds-tab-transition-timing-function);z-index:1}.contents{--mds-tab-contents-height:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;align-items:stretch;box-sizing:border-box;display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*600);height:var(--mds-tab-contents-height);overflow:auto hidden;position:relative;scroll-behavior:var(--mds-tab-scroll-behavior);scroll-snap-type:x mandatory;scrollbar-width:none;transition-duration:var(--private-tab-transition-duration);transition-property:height;transition-timing-function:var(--mds-tab-transition-timing-function)}.contents::-webkit-scrollbar{display:none}.contents--empty{display:none}::slotted([slot=content]){flex-basis:0;flex-grow:1;min-width:100%;scroll-snap-align:start;width:100%}::slotted([slot=content][mds-tab-content-hidden]){display:none!important}.slider{--mds-tab-slider-offset-x:0;--mds-tab-slider-offset-y:0;--mds-tab-slider-width:0;--mds-tab-slider-height:0;background-color:var(--mds-tab-item-selected-background);border-radius:var(--mds-tab-item-radius);box-shadow:var(--mds-tab-item-selected-shadow);corner-shape:var(--mds-tab-corner-shape);height:var(--mds-tab-slider-height);inset:0 auto auto 0;pointer-events:none;position:absolute;transform:translate(var(--mds-tab-slider-offset-x),var(--mds-tab-slider-offset-y));transition-duration:var(--mds-tab-transition-duration,var(--duration-500,.5s));transition-property:background-color,box-shadow,transform,width;transition-timing-function:var(--mds-tab-transition-timing-function);width:var(--mds-tab-slider-width);will-change:height,transform,width;z-index:-1}.slider--still{transition-property:background-color,box-shadow}::slotted(mds-tab-item){position:relative;z-index:1}:host([direction=vertical]){--mds-tab-tabs-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));grid-template-columns:var(--mds-tab-direction-vertical-columns,auto auto);grid-template-rows:1fr}:host([direction=vertical]) .tabs{align-self:start;flex-direction:column}:host([direction=vertical]) .tabs-wrapper{align-self:start;max-width:none}:host([direction=vertical][fill]) :is(.tabs,.tabs-wrapper){align-self:auto}:host([direction=vertical]) .tabs-wrapper--no-content{grid-column:1/-1}:host([direction=vertical])::slotted(mds-tab-item){width:100%}:host(:not([scrollbar])) .tabs{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([scrollbar])) .tabs::-webkit-scrollbar{display:none}:host([scrollbar]) .tabs::-webkit-scrollbar{height:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([scrollbar]) .tabs::-webkit-scrollbar-track{background-color:var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-tab-scroll-scrollbar-radius,0);margin-block:var(--mds-tab-scroll-scrollbar-margin,0);margin-inline:var(--mds-tab-scroll-scrollbar-margin,0)}:host([scrollbar]) .tabs::-webkit-scrollbar-thumb{background-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3));border-radius:var(--mds-tab-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.tabs{scrollbar-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3)) var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));scrollbar-width:thin}}.tabs-wrapper-overflow-left,.tabs-wrapper-overflow-right{--size:calc(var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200)) * 2);--offset-outside:calc(var(--size) + var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem) * 600)));background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));border-radius:100%;box-shadow:var(--mds-tab-tabs-overflow-shadow);content:"";display:inline-flex;height:auto;pointer-events:none;position:absolute;transition-duration:var(--duration-500,.5s);transition-property:transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:var(--size);z-index:2}.tabs-wrapper-overflow-left{inset:0 auto 0 0;transform:translateX(calc(var(--offset-outside)*-1))}.tabs-wrapper-overflow-right{inset:0 0 0 auto;transform:translateX(var(--offset-outside))}.tabs-wrapper-overflow-left--show{transform:translate(-100%)}.tabs-wrapper-overflow-right--show{transform:translate(100%)}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-tab-item-selected-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([pref-contrast=more]){--mds-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-tab-tabs-wrapper-outline-opacity:.3}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-tab-transition-duration:0s}@media (prefers-reduced-motion:reduce){:host{--mds-tab-scroll-behavior:auto}:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-tab-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-tab-item-selected-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-tab-tabs-wrapper-outline-opacity:.3}}'}},[257,"mds-tab",{direction:[1537],scrollbar:[1540],animation:[513],fill:[1540],overflow:[1540],size:[1537],sliderWidth:[32],sliderHeight:[32],sliderOffsetX:[32],sliderOffsetY:[32],sliderSlides:[32],overflowLeft:[32],overflowRight:[32],navigation:[32],hasContent:[32]},[[0,"mdsTabItemSelect","changeEventHandler"],[0,"mdsTabItemFocus","focusEventHandler"]],{animation:[{handleAnimationChange:0}],direction:[{handleDirectionChange:0}],scrollbar:[{handleScrollbarChange:0}],fill:[{handleFillChange:0}],overflow:[{handleOverflowChange:0}],size:[{handleSizeChange:0}]}]);function c(){"undefined"!=typeof customElements&&["mds-tab"].forEach((t=>{"mds-tab"===t&&(customElements.get(i(t))||customElements.define(i(t),m))}))}export{m as M,c as d}
@@ -1 +1 @@
1
- import{p as a,H as r,h as e,c as o,t}from"./p-TZJN-ygm.js";import{r as s,s as d}from"./p-DWIIDHSa.js";import{p as n}from"./p-CVRN4LDc.js";import{d as b}from"./p-CNF3u0Li.js";const g=a(class extends r{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.variant="green",this.tone="weak",this.typography="option",this.onSlotChangeHandler=()=>{var a;""===(null!==(a=this.label)&&void 0!==a?a:"")&&(this.label=s(this.host))}}labelChanged(a){this.label=d(a)}render(){return e(o,{key:"30205c3754c77ad904a3a01a695ec9daf058bd81","pref-animation":n.state.animation,"pref-contrast":n.state.contrast,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},e("mds-text",{key:"3a850df57ca87e8efbf505094f3d1e4e309deb42",tag:"span",typography:this.typography,variant:"info",text:this.label},this.label||e("slot",{key:"99531173211bd788d288b9d20d36d5eb7b2dc95e",onSlotchange:this.onSlotChangeHandler})))}get host(){return this}static get watchers(){return{label:[{labelChanged:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-badge-background:rgb(var(--label-sky-09,185 231 251));--mds-badge-border-color:rgb(var(--label-sky-06,47 182 243));--mds-badge-border-width:1px;--mds-badge-color:rgb(var(--label-sky-03,8 94 133));--mds-badge-radius:var(--magma-radius-full,var(--radius-full,1000px));--mds-badge-transition-duration:var(--duration-200,.2s);--private-badge-transition-duration:var(--mds-badge-transition-duration);align-items:center;background-color:var(--mds-badge-background,rgb(var(--label-sky-09,185 231 251)));border-radius:var(--mds-badge-radius,var(--magma-radius-full,var(--radius-full,1000px)));color:var(--mds-badge-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));display:inline-flex;min-width:min-content;padding:calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*200);transition-duration:var(--private-badge-transition-duration);transition-property:background-color,border-color,border-width,color;transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));--mds-badge-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([tone=outline]){background-color:#0000;border-color:var(--mds-badge-border-color,rgb(var(--label-sky-06,47 182 243)));border-style:solid;border-width:var(--mds-badge-border-width,1px)}:host([variant=red]){--mds-badge-background:rgb(var(--label-red-04,212 28 28))}:host([variant=red]):host([tone=weak]){--mds-badge-background:rgb(var(--label-red-09,250 215 215));--mds-badge-color:rgb(var(--label-red-02,131 17 17))}:host([variant=red]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-red-06,241 144 144));--mds-badge-color:rgb(var(--label-red-04,212 28 28))}:host([variant=amaranth]){--mds-badge-background:rgb(var(--label-amaranth-04,213 12 47))}:host([variant=amaranth]):host([tone=weak]){--mds-badge-background:rgb(var(--label-amaranth-09,253 214 221));--mds-badge-color:rgb(var(--label-amaranth-02,131 8 29))}:host([variant=amaranth]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-amaranth-06,248 138 157));--mds-badge-color:rgb(var(--label-amaranth-04,213 12 47))}:host([variant=aqua]){--mds-badge-background:rgb(var(--label-aqua-04,4 122 143))}:host([variant=aqua]):host([tone=weak]){--mds-badge-background:rgb(var(--label-aqua-09,151 237 252));--mds-badge-color:rgb(var(--label-aqua-02,2 75 88))}:host([variant=aqua]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-aqua-06,6 186 217));--mds-badge-color:rgb(var(--label-aqua-04,4 122 143))}:host([variant=blue]){--mds-badge-background:rgb(var(--label-blue-04,63 94 248))}:host([variant=blue]):host([tone=weak]){--mds-badge-background:rgb(var(--label-blue-09,216 222 254));--mds-badge-color:rgb(var(--label-blue-02,7 39 192))}:host([variant=blue]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-blue-06,149 166 251));--mds-badge-color:rgb(var(--label-blue-04,63 94 248))}:host([variant=green]){--mds-badge-background:rgb(var(--label-green-04,22 128 61))}:host([variant=green]):host([tone=weak]){--mds-badge-background:rgb(var(--label-green-09,165 240 193));--mds-badge-color:rgb(var(--label-green-02,14 80 38))}:host([variant=green]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-green-06,34 195 93));--mds-badge-color:rgb(var(--label-green-04,22 128 61))}:host([variant=lime]){--mds-badge-background:rgb(var(--label-lime-04,81 124 13))}:host([variant=lime]):host([tone=weak]){--mds-badge-background:rgb(var(--label-lime-09,189 239 111));--mds-badge-color:rgb(var(--label-lime-02,49 76 8))}:host([variant=lime]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-lime-06,123 189 20));--mds-badge-color:rgb(var(--label-lime-04,81 124 13))}:host([variant=orange]){--mds-badge-background:rgb(var(--label-orange-04,185 78 5))}:host([variant=orange]):host([tone=weak]){--mds-badge-background:rgb(var(--label-orange-09,253 217 191));--mds-badge-color:rgb(var(--label-orange-02,114 48 3))}:host([variant=orange]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-orange-06,250 143 69));--mds-badge-color:rgb(var(--label-orange-04,185 78 5))}:host([variant=orchid]){--mds-badge-background:rgb(var(--label-orchid-04,206 21 113))}:host([variant=orchid]):host([tone=weak]){--mds-badge-background:rgb(var(--label-orchid-09,251 213 232));--mds-badge-color:rgb(var(--label-orchid-02,127 13 70))}:host([variant=orchid]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-orchid-06,243 137 189));--mds-badge-color:rgb(var(--label-orchid-04,206 21 113))}:host([variant=sky]){--mds-badge-background:rgb(var(--label-sky-04,10 118 167))}:host([variant=sky]):host([tone=weak]){--mds-badge-background:rgb(var(--label-sky-09,185 231 251));--mds-badge-color:rgb(var(--label-sky-02,6 73 104))}:host([variant=sky]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-sky-06,47 182 243));--mds-badge-color:rgb(var(--label-sky-04,10 118 167))}:host([variant=violet]){--mds-badge-background:rgb(var(--label-violet-04,126 73 245))}:host([variant=violet]):host([tone=weak]){--mds-badge-background:rgb(var(--label-violet-09,229 218 253));--mds-badge-color:rgb(var(--label-violet-02,65 11 190))}:host([variant=violet]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-violet-06,184 156 250));--mds-badge-color:rgb(var(--label-violet-04,126 73 245))}:host([variant=purple]){--mds-badge-background:rgb(var(--label-purple-04,150 51 245))}:host([variant=purple]):host([tone=weak]){--mds-badge-background:rgb(var(--label-purple-09,235 216 253));--mds-badge-color:rgb(var(--label-purple-02,90 8 168))}:host([variant=purple]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-purple-06,201 149 250));--mds-badge-color:rgb(var(--label-purple-04,150 51 245))}:host([variant=yellow]){--mds-badge-background:rgb(var(--label-yellow-04,141 107 5))}:host([variant=yellow]):host([tone=weak]){--mds-badge-background:rgb(var(--label-yellow-09,251 221 131));--mds-badge-color:rgb(var(--label-yellow-02,87 67 3))}:host([variant=yellow]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-yellow-06,214 163 7));--mds-badge-color:rgb(var(--label-yellow-04,141 107 5))}:host([variant=warning]){--mds-badge-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)))}:host([variant=warning]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-badge-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)))}:host([variant=warning]):host([tone=outline]){--mds-badge-border-color:rgb(var(--magma-warning-border-strong,var(--border-warning-strong,184 130 0)));--mds-badge-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)))}:host([variant=error]){--mds-badge-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)))}:host([variant=error]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-badge-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)))}:host([variant=error]):host([tone=outline]){--mds-badge-border-color:rgb(var(--magma-danger-border-strong,var(--border-error-strong,218 96 93)));--mds-badge-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)))}:host([variant=success]){--mds-badge-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}:host([variant=success]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-badge-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)))}:host([variant=success]):host([tone=outline]){--mds-badge-border-color:rgb(var(--magma-success-border-strong,var(--border-success-strong,17 166 98)));--mds-badge-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}:host([variant=info]){--mds-badge-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)))}:host([variant=info]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-badge-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)))}:host([variant=info]):host([tone=outline]){--mds-badge-border-color:rgb(var(--magma-info-border-strong,var(--border-info-strong,18 154 196)));--mds-badge-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)))}:host([variant=light]){--mds-badge-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-badge-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([variant=light]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-badge-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([variant=light]):host([tone=outline]){--mds-badge-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-badge-border-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)))}:host([variant=dark]){--mds-badge-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-badge-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)))}:host([variant=dark]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-badge-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([variant=dark]):host([tone=outline]){--mds-badge-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-badge-border-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-badge-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([tone=strong]),:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([tone=weak]){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=more]):host([tone=weak]){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=more][pref-mode=dark][tone=strong]),:host([pref-contrast=more][pref-mode=dark][tone=weak]){box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-badge-transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([tone=strong]),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([tone=weak]){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=more][pref-mode=system][tone=strong]),:host([pref-contrast=more][pref-mode=system][tone=weak]){box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset}}@media (prefers-contrast:more){:host(:not([pref-contrast])):host([tone=weak]),:host([pref-contrast=system]){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=system][pref-mode=dark][tone=strong]),:host([pref-contrast=system][pref-mode=dark][tone=weak]){box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){:host([pref-contrast=system][pref-mode=system][tone=strong]),:host([pref-contrast=system][pref-mode=system][tone=weak]){box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset}}"}},[257,"mds-badge",{label:[1537],variant:[513],tone:[513],typography:[513]},void 0,{label:[{labelChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["mds-badge","mds-text"].forEach((a=>{switch(a){case"mds-badge":customElements.get(t(a))||customElements.define(t(a),g);break;case"mds-text":customElements.get(t(a))||b()}}))}export{g as M,l as d}
1
+ import{p as a,H as r,h as e,c as o,t}from"./p-TZJN-ygm.js";import{r as s,s as d}from"./p-DWIIDHSa.js";import{p as n}from"./p-CVRN4LDc.js";import{d as b}from"./p-aujz-VM9.js";const g=a(class extends r{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.variant="green",this.tone="weak",this.typography="option",this.onSlotChangeHandler=()=>{var a;""===(null!==(a=this.label)&&void 0!==a?a:"")&&(this.label=s(this.host))}}labelChanged(a){this.label=d(a)}render(){return e(o,{key:"456d67933cc3173230a2149ef2920af0f977bf11","pref-animation":n.state.animation,"pref-contrast":n.state.contrast,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},e("mds-text",{key:"2048a2dd8db4ef19ff8d53172312a27dbcee90b6",tag:"span",typography:this.typography,variant:"info",text:this.label},this.label||e("slot",{key:"eb1c0c93b7c80208f11171032b4288c66329234a",onSlotchange:this.onSlotChangeHandler})))}get host(){return this}static get watchers(){return{label:[{labelChanged:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-badge-background:rgb(var(--label-sky-09,185 231 251));--mds-badge-border-color:rgb(var(--label-sky-06,47 182 243));--mds-badge-border-width:1px;--mds-badge-color:rgb(var(--label-sky-03,8 94 133));--mds-badge-radius:var(--magma-radius-full,var(--radius-full,1000px));--mds-badge-transition-duration:var(--duration-200,.2s);--private-badge-transition-duration:var(--mds-badge-transition-duration);align-items:center;background-color:var(--mds-badge-background,rgb(var(--label-sky-09,185 231 251)));border-radius:var(--mds-badge-radius,var(--magma-radius-full,var(--radius-full,1000px)));color:var(--mds-badge-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));display:inline-flex;min-width:min-content;padding:calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*200);transition-duration:var(--private-badge-transition-duration);transition-property:background-color,border-color,border-width,color;transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));--mds-badge-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([tone=outline]){background-color:#0000;border-color:var(--mds-badge-border-color,rgb(var(--label-sky-06,47 182 243)));border-style:solid;border-width:var(--mds-badge-border-width,1px)}:host([variant=red]){--mds-badge-background:rgb(var(--label-red-04,212 28 28))}:host([variant=red]):host([tone=weak]){--mds-badge-background:rgb(var(--label-red-09,250 215 215));--mds-badge-color:rgb(var(--label-red-02,131 17 17))}:host([variant=red]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-red-06,241 144 144));--mds-badge-color:rgb(var(--label-red-04,212 28 28))}:host([variant=amaranth]){--mds-badge-background:rgb(var(--label-amaranth-04,213 12 47))}:host([variant=amaranth]):host([tone=weak]){--mds-badge-background:rgb(var(--label-amaranth-09,253 214 221));--mds-badge-color:rgb(var(--label-amaranth-02,131 8 29))}:host([variant=amaranth]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-amaranth-06,248 138 157));--mds-badge-color:rgb(var(--label-amaranth-04,213 12 47))}:host([variant=aqua]){--mds-badge-background:rgb(var(--label-aqua-04,4 122 143))}:host([variant=aqua]):host([tone=weak]){--mds-badge-background:rgb(var(--label-aqua-09,151 237 252));--mds-badge-color:rgb(var(--label-aqua-02,2 75 88))}:host([variant=aqua]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-aqua-06,6 186 217));--mds-badge-color:rgb(var(--label-aqua-04,4 122 143))}:host([variant=blue]){--mds-badge-background:rgb(var(--label-blue-04,63 94 248))}:host([variant=blue]):host([tone=weak]){--mds-badge-background:rgb(var(--label-blue-09,216 222 254));--mds-badge-color:rgb(var(--label-blue-02,7 39 192))}:host([variant=blue]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-blue-06,149 166 251));--mds-badge-color:rgb(var(--label-blue-04,63 94 248))}:host([variant=green]){--mds-badge-background:rgb(var(--label-green-04,22 128 61))}:host([variant=green]):host([tone=weak]){--mds-badge-background:rgb(var(--label-green-09,165 240 193));--mds-badge-color:rgb(var(--label-green-02,14 80 38))}:host([variant=green]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-green-06,34 195 93));--mds-badge-color:rgb(var(--label-green-04,22 128 61))}:host([variant=lime]){--mds-badge-background:rgb(var(--label-lime-04,81 124 13))}:host([variant=lime]):host([tone=weak]){--mds-badge-background:rgb(var(--label-lime-09,189 239 111));--mds-badge-color:rgb(var(--label-lime-02,49 76 8))}:host([variant=lime]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-lime-06,123 189 20));--mds-badge-color:rgb(var(--label-lime-04,81 124 13))}:host([variant=orange]){--mds-badge-background:rgb(var(--label-orange-04,185 78 5))}:host([variant=orange]):host([tone=weak]){--mds-badge-background:rgb(var(--label-orange-09,253 217 191));--mds-badge-color:rgb(var(--label-orange-02,114 48 3))}:host([variant=orange]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-orange-06,250 143 69));--mds-badge-color:rgb(var(--label-orange-04,185 78 5))}:host([variant=orchid]){--mds-badge-background:rgb(var(--label-orchid-04,206 21 113))}:host([variant=orchid]):host([tone=weak]){--mds-badge-background:rgb(var(--label-orchid-09,251 213 232));--mds-badge-color:rgb(var(--label-orchid-02,127 13 70))}:host([variant=orchid]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-orchid-06,243 137 189));--mds-badge-color:rgb(var(--label-orchid-04,206 21 113))}:host([variant=sky]){--mds-badge-background:rgb(var(--label-sky-04,10 118 167))}:host([variant=sky]):host([tone=weak]){--mds-badge-background:rgb(var(--label-sky-09,185 231 251));--mds-badge-color:rgb(var(--label-sky-02,6 73 104))}:host([variant=sky]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-sky-06,47 182 243));--mds-badge-color:rgb(var(--label-sky-04,10 118 167))}:host([variant=violet]){--mds-badge-background:rgb(var(--label-violet-04,126 73 245))}:host([variant=violet]):host([tone=weak]){--mds-badge-background:rgb(var(--label-violet-09,229 218 253));--mds-badge-color:rgb(var(--label-violet-02,65 11 190))}:host([variant=violet]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-violet-06,184 156 250));--mds-badge-color:rgb(var(--label-violet-04,126 73 245))}:host([variant=purple]){--mds-badge-background:rgb(var(--label-purple-04,150 51 245))}:host([variant=purple]):host([tone=weak]){--mds-badge-background:rgb(var(--label-purple-09,235 216 253));--mds-badge-color:rgb(var(--label-purple-02,90 8 168))}:host([variant=purple]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-purple-06,201 149 250));--mds-badge-color:rgb(var(--label-purple-04,150 51 245))}:host([variant=yellow]){--mds-badge-background:rgb(var(--label-yellow-04,141 107 5))}:host([variant=yellow]):host([tone=weak]){--mds-badge-background:rgb(var(--label-yellow-09,251 221 131));--mds-badge-color:rgb(var(--label-yellow-02,87 67 3))}:host([variant=yellow]):host([tone=outline]){--mds-badge-border-color:rgb(var(--label-yellow-06,214 163 7));--mds-badge-color:rgb(var(--label-yellow-04,141 107 5))}:host([variant=warning]){--mds-badge-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)))}:host([variant=warning]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-badge-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)))}:host([variant=warning]):host([tone=outline]){--mds-badge-border-color:rgb(var(--magma-warning-border-strong,var(--border-warning-strong,184 130 0)));--mds-badge-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)))}:host([variant=error]){--mds-badge-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)))}:host([variant=error]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-badge-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)))}:host([variant=error]):host([tone=outline]){--mds-badge-border-color:rgb(var(--magma-danger-border-strong,var(--border-error-strong,218 96 93)));--mds-badge-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)))}:host([variant=success]){--mds-badge-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}:host([variant=success]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-badge-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)))}:host([variant=success]):host([tone=outline]){--mds-badge-border-color:rgb(var(--magma-success-border-strong,var(--border-success-strong,17 166 98)));--mds-badge-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}:host([variant=info]){--mds-badge-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)))}:host([variant=info]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-badge-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)))}:host([variant=info]):host([tone=outline]){--mds-badge-border-color:rgb(var(--magma-info-border-strong,var(--border-info-strong,18 154 196)));--mds-badge-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)))}:host([variant=light]){--mds-badge-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-badge-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([variant=light]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-badge-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([variant=light]):host([tone=outline]){--mds-badge-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-badge-border-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)))}:host([variant=dark]){--mds-badge-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-badge-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)))}:host([variant=dark]):host([tone=weak]){--mds-badge-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-badge-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([variant=dark]):host([tone=outline]){--mds-badge-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-badge-border-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-badge-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([tone=strong]),:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([tone=weak]){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=more]):host([tone=weak]){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=more][pref-mode=dark][tone=strong]),:host([pref-contrast=more][pref-mode=dark][tone=weak]){box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-badge-transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([tone=strong]),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([tone=weak]){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=more][pref-mode=system][tone=strong]),:host([pref-contrast=more][pref-mode=system][tone=weak]){box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset}}@media (prefers-contrast:more){:host(:not([pref-contrast])):host([tone=weak]),:host([pref-contrast=system]){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=system][pref-mode=dark][tone=strong]),:host([pref-contrast=system][pref-mode=dark][tone=weak]){box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){:host([pref-contrast=system][pref-mode=system][tone=strong]),:host([pref-contrast=system][pref-mode=system][tone=weak]){box-shadow:var(--shadow-outline-strong,#00000040 0 1px 1px,#00000021 0 0 1px 1px) inset}}"}},[257,"mds-badge",{label:[1537],variant:[513],tone:[513],typography:[513]},void 0,{label:[{labelChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["mds-badge","mds-text"].forEach((a=>{switch(a){case"mds-badge":customElements.get(t(a))||customElements.define(t(a),g);break;case"mds-text":customElements.get(t(a))||b()}}))}export{g as M,l as d}
@@ -1 +1 @@
1
- import{B as t,p as e,H as s,h as i,c as n,t as r}from"./p-TZJN-ygm.js";function o(t){return new Promise(((e,s)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>s(t.error)}))}let a;function c(){return a||(a=function(t,e){let s;return(i,n)=>(()=>{if(s)return s;const i=indexedDB.open(t);return i.onupgradeneeded=()=>i.result.createObjectStore(e),s=o(i),s.then((t=>{t.onclose=()=>s=void 0}),(()=>{s=void 0})),s})().then((t=>n(t.transaction(e,i).objectStore(e))))}("keyval-store","keyval")),a}class h{resolveIconName(t){return this._resolveIconName(t,this.name,this.path)}constructor(t,e,s){this.name=t,this.path=e,this._resolveIconName=s}get resolver(){return this._resolveIconName}}const d=Symbol.for("@maggioli-design-system/magma:mdsIconSvgPath"),u=new class{constructor(){this._svgPathKey="mdsIconSvgPath",this._iconsSets=new Map,this._svgPathUpdate="mdsIconSvgPathUpdate",this.cacheExp=864e5,this.listeners=new Set,this.memoryCache={},this.isCacheAvailable=async t=>{if("undefined"==typeof indexedDB)return!1;try{const e=await function(t,e=c()){return e("readonly",(e=>o(e.get(t))))}(`loader_${t}`);if(!e)return!1;const s=JSON.parse(e);return Date.now()<s.expiry?s.data:(function(t,e=c()){e("readwrite",(e=>(e.delete(t),o(e.transaction))))}(`loader_${t}`),!1)}catch(t){return console.error("isCacheAvailable error",t),!1}},this.setCache=async(t,e)=>{if("undefined"!=typeof indexedDB)try{await function(t,e,s=c()){return s("readwrite",(s=>(s.put(e,t),o(s.transaction))))}(`loader_${t}`,JSON.stringify({data:e,expiry:Date.now()+this.cacheExp}))}catch(t){console.error("setCache error",t)}},this.setUpListener()}get _svgPath(){var t;return"undefined"==typeof globalThis?"":null!==(t=globalThis[d])&&void 0!==t?t:""}set _svgPath(t){"undefined"!=typeof globalThis&&(globalThis[d]=t)}addIconSet(t,e,s){let i=s;const n=this._iconsSets.get(t);if(!i&&n&&"function"==typeof n.resolver)i=n.resolver;else{if(i&&"function"!=typeof i)return console.error("MdsIconSvg: the third input of addIconSet should be a function that parses and returns the icons's filename."),!1;if(!i)return console.error(`MdsIconSvg: the set ${t} needs a resolve function for the icon names.`),!1}return this._iconsSets.set(t,new h(t,e,i)),!0}getIconSet(t){return t?{set:this._iconsSets.get(t.split("/")[0])}:{set:null}}setSvgPath(t){const e=Error(`Svg path not recognize ${t}, ensure is a absolute path starting with '/' or a url`);if("string"!=typeof t||""===t.trim())throw e;const s=t.trim(),i=/^[\w.-]+:\d+(\/|$)/.test(s)?`//${s}`:s;let n;try{n=new URL(i,"http://localhost/")}catch(t){throw e}"undefined"!=typeof window&&(/^[a-z][a-z\d+.-]*:/i.test(i)?(n.search="",n.hash="",this._svgPath=n.href):this._svgPath=i.replace(/[?#].*$/,""),window.dispatchEvent(new Event(this._svgPathUpdate)))}getSvgPath(){return this._svgPath}registerListener(t){this.listeners.add(t)}unregisterListener(t){this.listeners.delete(t)}setUpListener(){"undefined"!=typeof window&&window.addEventListener(this._svgPathUpdate,(()=>{for(const t of this.listeners)t()}))}async fetchSvg(e){var s;if(t.isServer&&!t.isTesting)return"";if(!e)return"";try{if(!this._svgPath&&"undefined"==typeof window)throw Error("Cant find svgPath, ensure you set it");if(!this._svgPath){let t="";try{t=null!==(s=window.sessionStorage.getItem(u._svgPathKey))&&void 0!==s?s:""}catch(t){}t&&this.setSvgPath(t)}const t=this._svgPath&&!e.startsWith("http")?this._svgPath.concat(e,".svg"):e;if(this.memoryCache[t])return this.memoryCache[t];const i=await this.isCacheAvailable(t);if(i)return this.memoryCache[t]=i,i;const n=await fetch(t);if(!n.ok)throw Error(`Request for '${t}' returned ${n.status} (${n.statusText})`);const r=await n.text(),o=r.toLowerCase().trim();if(!o.startsWith("<svg")&&!o.startsWith("<?xml"))throw Error(`Resource '${t}' returned an invalid SVG file`);return this.setCache(t,r),this.memoryCache[t]=r,r}catch(t){return console.error("fetchSvg error",t),""}}},l="data:image/svg+xml;base64,",f=/^\s*(<\?xml[\s\S]*?\?>\s*)?(<!DOCTYPE[^>]*>\s*|<!--[\s\S]*?-->\s*)*<svg[\s>]/i,g=t=>!!t&&t.startsWith(l),m=t=>!!t&&f.test(t),y=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.lastUpdate=0,this.wasDisconnected=!1,this.onSvgPathUpdate=()=>{this.updateIcon()},this.convertBase64ToSvg=()=>{const t=this.name.replace(l,"");try{return(new TextDecoder).decode(Uint8Array.from(atob(t),(t=>t.charCodeAt(0))))}catch(t){return console.warn("mds-icon: ignoring an icon that is not valid base64"),""}}}connectedCallback(){u.registerListener(this.onSvgPathUpdate),this.wasDisconnected&&(this.wasDisconnected=!1,this.updateIcon())}disconnectedCallback(){u.unregisterListener(this.onSvgPathUpdate),this.wasDisconnected=!0}componentWillLoad(){this.updateIcon()}async setSvgPath(t){return u.setSvgPath(t),Promise.resolve()}async updateIcon(){var t;const e=++this.lastUpdate;if(""===(null!==(t=this.name)&&void 0!==t?t:""))return this.svgHTML="",Promise.resolve();if(g(this.name))return this.svgHTML=this.convertBase64ToSvg(),Promise.resolve();if(m(this.name))return this.svgHTML=this.name,Promise.resolve();const s=await u.fetchSvg(this.name);e===this.lastUpdate&&(this.svgHTML=s)}render(){return i(n,{key:"b7f622f4c93eff897cb5d67ac548dbcdce59d022"},this.svgHTML&&i("i",{key:"be836db7e275c2a072ac72cb0f70b19a448765c3","aria-hidden":"true",class:"icon",part:"svg",innerHTML:this.svgHTML}))}get hostElement(){return this}static get watchers(){return{name:[{updateIcon:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{align-items:center;aspect-ratio:var(--aspect-square,1/1);display:inline-flex;justify-content:center;width:calc(var(--spacing,.0025rem)*600)}.icon{align-items:center;display:inline-flex;font-style:normal;justify-content:center;width:100%}.icon svg{height:auto;width:100%}"}},[1,"mds-icon",{name:[513],svgHTML:[32],_iconHref:[32],setSvgPath:[64]},void 0,{name:[{updateIcon:0}]}]);function v(){"undefined"!=typeof customElements&&["mds-icon"].forEach((t=>{"mds-icon"===t&&(customElements.get(r(t))||customElements.define(r(t),y))}))}export{u as I,y as M,m as a,v as d,g as i}
1
+ import{B as t,p as e,H as s,h as i,c as n,t as r}from"./p-TZJN-ygm.js";function o(t){return new Promise(((e,s)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>s(t.error)}))}let a;function h(){return a||(a=function(t,e){let s;return(i,n)=>(()=>{if(s)return s;const i=indexedDB.open(t);return i.onupgradeneeded=()=>i.result.createObjectStore(e),s=o(i),s.then((t=>{t.onclose=()=>s=void 0}),(()=>{s=void 0})),s})().then((t=>n(t.transaction(e,i).objectStore(e))))}("keyval-store","keyval")),a}class c{resolveIconName(t){return this._resolveIconName(t,this.name,this.path)}constructor(t,e,s){this.name=t,this.path=e,this._resolveIconName=s}get resolver(){return this._resolveIconName}}const d=Symbol.for("@maggioli-design-system/magma:mdsIconSvgPath"),u=new class{constructor(){this._svgPathKey="mdsIconSvgPath",this._iconsSets=new Map,this._svgPathUpdate="mdsIconSvgPathUpdate",this.cacheExp=864e5,this.listeners=new Set,this.memoryCache={},this.isCacheAvailable=async t=>{if("undefined"==typeof indexedDB)return!1;try{const e=await function(t,e=h()){return e("readonly",(e=>o(e.get(t))))}(`loader_${t}`);if(!e)return!1;const s=JSON.parse(e);return Date.now()<s.expiry?s.data:(function(t,e=h()){e("readwrite",(e=>(e.delete(t),o(e.transaction))))}(`loader_${t}`),!1)}catch(t){return console.error("isCacheAvailable error",t),!1}},this.setCache=async(t,e)=>{if("undefined"!=typeof indexedDB)try{await function(t,e,s=h()){return s("readwrite",(s=>(s.put(e,t),o(s.transaction))))}(`loader_${t}`,JSON.stringify({data:e,expiry:Date.now()+this.cacheExp}))}catch(t){console.error("setCache error",t)}},this.setUpListener()}get _svgPath(){var t;return"undefined"==typeof globalThis?"":null!==(t=globalThis[d])&&void 0!==t?t:""}set _svgPath(t){"undefined"!=typeof globalThis&&(globalThis[d]=t)}addIconSet(t,e,s){let i=s;const n=this._iconsSets.get(t);if(!i&&n&&"function"==typeof n.resolver)i=n.resolver;else{if(i&&"function"!=typeof i)return console.error("MdsIconSvg: the third input of addIconSet should be a function that parses and returns the icons's filename."),!1;if(!i)return console.error(`MdsIconSvg: the set ${t} needs a resolve function for the icon names.`),!1}return this._iconsSets.set(t,new c(t,e,i)),!0}getIconSet(t){return t?{set:this._iconsSets.get(t.split("/")[0])}:{set:null}}setSvgPath(t){const e=Error(`Svg path not recognize ${t}, ensure is a absolute path starting with '/' or a url`);if("string"!=typeof t||""===t.trim())throw e;const s=t.trim(),i=/^[\w.-]+:\d+(\/|$)/.test(s)?`//${s}`:s;let n;try{n=new URL(i,"http://localhost/")}catch(t){throw e}"undefined"!=typeof window&&(/^[a-z][a-z\d+.-]*:/i.test(i)?(n.search="",n.hash="",this._svgPath=n.href):this._svgPath=i.replace(/[?#].*$/,""),window.dispatchEvent(new Event(this._svgPathUpdate)))}getSvgPath(){return this._svgPath}registerListener(t){this.listeners.add(t)}unregisterListener(t){this.listeners.delete(t)}setUpListener(){"undefined"!=typeof window&&window.addEventListener(this._svgPathUpdate,(()=>{for(const t of this.listeners)t()}))}async fetchSvg(e){var s;if(t.isServer&&!t.isTesting)return"";if(!e)return"";try{if(!this._svgPath&&"undefined"==typeof window)throw Error("Cant find svgPath, ensure you set it");if(!this._svgPath){let t="";try{t=null!==(s=window.sessionStorage.getItem(u._svgPathKey))&&void 0!==s?s:""}catch(t){}t&&this.setSvgPath(t)}const t=this._svgPath&&!e.startsWith("http")?this._svgPath.concat(e,".svg"):e;if(this.memoryCache[t])return this.memoryCache[t];const i=await this.isCacheAvailable(t);if(i)return this.memoryCache[t]=i,i;const n=await fetch(t);if(!n.ok)throw Error(`Request for '${t}' returned ${n.status} (${n.statusText})`);const r=await n.text(),o=r.toLowerCase().trim();if(!o.startsWith("<svg")&&!o.startsWith("<?xml"))throw Error(`Resource '${t}' returned an invalid SVG file`);return this.setCache(t,r),this.memoryCache[t]=r,r}catch(t){return console.error("fetchSvg error",t),""}}},l="data:image/svg+xml;base64,",f=/^\s*(<\?xml[\s\S]*?\?>\s*)?(<!DOCTYPE[^>]*>\s*|<!--[\s\S]*?-->\s*)*<svg[\s>]/i,g=t=>!!t&&t.startsWith(l),m=t=>!!t&&f.test(t),y=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.lastUpdate=0,this.wasDisconnected=!1,this.onSvgPathUpdate=()=>{this.updateIcon()},this.convertBase64ToSvg=()=>{const t=this.name.replace(l,"");try{return(new TextDecoder).decode(Uint8Array.from(atob(t),(t=>t.charCodeAt(0))))}catch(t){return console.warn("mds-icon: ignoring an icon that is not valid base64"),""}}}connectedCallback(){u.registerListener(this.onSvgPathUpdate),this.wasDisconnected&&(this.wasDisconnected=!1,this.updateIcon())}disconnectedCallback(){u.unregisterListener(this.onSvgPathUpdate),this.wasDisconnected=!0}componentWillLoad(){this.updateIcon()}async setSvgPath(t){return u.setSvgPath(t),Promise.resolve()}async updateIcon(){var t;const e=++this.lastUpdate;if(""===(null!==(t=this.name)&&void 0!==t?t:""))return this.svgHTML="",Promise.resolve();if(g(this.name))return this.svgHTML=this.convertBase64ToSvg(),Promise.resolve();if(m(this.name))return this.svgHTML=this.name,Promise.resolve();const s=await u.fetchSvg(this.name);e===this.lastUpdate&&(this.svgHTML=s)}render(){return i(n,{key:"cad78449760538aff33f53ecaadc71193d7fdbb8"},this.svgHTML&&i("i",{key:"5cebc9a01a40ce5cfba4508932bf2d270f061327","aria-hidden":"true",class:"icon",part:"svg",innerHTML:this.svgHTML}))}get hostElement(){return this}static get watchers(){return{name:[{updateIcon:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{align-items:center;aspect-ratio:var(--aspect-square,1/1);display:inline-flex;justify-content:center;width:calc(var(--spacing,.0025rem)*600)}.icon{align-items:center;display:inline-flex;font-style:normal;justify-content:center;width:100%}.icon svg{height:auto;width:100%}"}},[1,"mds-icon",{name:[513],svgHTML:[32],_iconHref:[32],setSvgPath:[64]},void 0,{name:[{updateIcon:0}]}]);function v(){"undefined"!=typeof customElements&&["mds-icon"].forEach((t=>{"mds-icon"===t&&(customElements.get(r(t))||customElements.define(r(t),y))}))}export{u as I,y as M,m as a,v as d,g as i}