@maggioli-design-system/magma 2.10.0 → 2.11.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 (502) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +21 -0
  3. package/README.md +7 -3
  4. package/agents/assets.md +1 -1
  5. package/agents/color.md +2 -2
  6. package/agents/mcp.md +1 -1
  7. package/agents/patterns/previews/actions/banner.dark.webp +0 -0
  8. package/agents/patterns/previews/actions/banner.light.webp +0 -0
  9. package/agents/patterns/previews/actions/confirm.dark.webp +0 -0
  10. package/agents/patterns/previews/actions/confirm.light.webp +0 -0
  11. package/agents/patterns/previews/actions/danger-zone.dark.webp +0 -0
  12. package/agents/patterns/previews/actions/danger-zone.light.webp +0 -0
  13. package/agents/patterns/previews/actions/destructive-in-menu.dark.webp +0 -0
  14. package/agents/patterns/previews/actions/destructive-in-menu.light.webp +0 -0
  15. package/agents/patterns/previews/actions/dismiss-message.dark.webp +0 -0
  16. package/agents/patterns/previews/actions/dismiss-message.light.webp +0 -0
  17. package/agents/patterns/previews/actions/dismiss.dark.webp +0 -0
  18. package/agents/patterns/previews/actions/dismiss.light.webp +0 -0
  19. package/agents/patterns/previews/actions/more-in-menu.dark.webp +0 -0
  20. package/agents/patterns/previews/actions/more-in-menu.light.webp +0 -0
  21. package/agents/patterns/previews/actions/part-primary.dark.webp +0 -0
  22. package/agents/patterns/previews/actions/part-primary.light.webp +0 -0
  23. package/agents/patterns/previews/actions/primary.dark.webp +0 -0
  24. package/agents/patterns/previews/actions/primary.light.webp +0 -0
  25. package/agents/patterns/previews/actions/remove.dark.webp +0 -0
  26. package/agents/patterns/previews/actions/remove.light.webp +0 -0
  27. package/agents/patterns/previews/actions/secondary.dark.webp +0 -0
  28. package/agents/patterns/previews/actions/secondary.light.webp +0 -0
  29. package/agents/patterns/previews/actions/stacked.dark.webp +0 -0
  30. package/agents/patterns/previews/actions/stacked.light.webp +0 -0
  31. package/agents/patterns/previews/actions/toast.dark.webp +0 -0
  32. package/agents/patterns/previews/actions/toast.light.webp +0 -0
  33. package/agents/patterns/previews/app-shell/back-office.dark.webp +0 -0
  34. package/agents/patterns/previews/app-shell/back-office.light.webp +0 -0
  35. package/agents/patterns/previews/app-shell/many-sections.dark.webp +0 -0
  36. package/agents/patterns/previews/app-shell/many-sections.light.webp +0 -0
  37. package/agents/patterns/previews/app-shell/public-service.dark.webp +0 -0
  38. package/agents/patterns/previews/app-shell/public-service.light.webp +0 -0
  39. package/agents/patterns/previews/confirm-action/act-then-undo.dark.webp +0 -0
  40. package/agents/patterns/previews/confirm-action/act-then-undo.light.webp +0 -0
  41. package/agents/patterns/previews/confirm-action/ask-before-sending.dark.webp +0 -0
  42. package/agents/patterns/previews/confirm-action/ask-before-sending.light.webp +0 -0
  43. package/agents/patterns/previews/confirm-action/ask-first-many.dark.webp +0 -0
  44. package/agents/patterns/previews/confirm-action/ask-first-many.light.webp +0 -0
  45. package/agents/patterns/previews/confirm-action/ask-first.dark.webp +0 -0
  46. package/agents/patterns/previews/confirm-action/ask-first.light.webp +0 -0
  47. package/agents/patterns/previews/confirm-action/make-reversible.dark.webp +0 -0
  48. package/agents/patterns/previews/confirm-action/make-reversible.light.webp +0 -0
  49. package/agents/patterns/previews/confirm-action/send-as-shown.dark.webp +0 -0
  50. package/agents/patterns/previews/confirm-action/send-as-shown.light.webp +0 -0
  51. package/agents/patterns/previews/empty-state/add-the-first.dark.webp +0 -0
  52. package/agents/patterns/previews/empty-state/add-the-first.light.webp +0 -0
  53. package/agents/patterns/previews/empty-state/all-done.dark.webp +0 -0
  54. package/agents/patterns/previews/empty-state/all-done.light.webp +0 -0
  55. package/agents/patterns/previews/empty-state/clear-filters.dark.webp +0 -0
  56. package/agents/patterns/previews/empty-state/clear-filters.light.webp +0 -0
  57. package/agents/patterns/previews/empty-state/filled-by-others.dark.webp +0 -0
  58. package/agents/patterns/previews/empty-state/filled-by-others.light.webp +0 -0
  59. package/agents/patterns/previews/empty-state/not-found.dark.webp +0 -0
  60. package/agents/patterns/previews/empty-state/not-found.light.webp +0 -0
  61. package/agents/patterns/previews/empty-state/one-line.dark.webp +0 -0
  62. package/agents/patterns/previews/empty-state/one-line.light.webp +0 -0
  63. package/agents/patterns/previews/error-recovery/action-another-way.dark.webp +0 -0
  64. package/agents/patterns/previews/error-recovery/action-another-way.light.webp +0 -0
  65. package/agents/patterns/previews/error-recovery/changed-meanwhile.dark.webp +0 -0
  66. package/agents/patterns/previews/error-recovery/changed-meanwhile.light.webp +0 -0
  67. package/agents/patterns/previews/error-recovery/check-or-repeat.dark.webp +0 -0
  68. package/agents/patterns/previews/error-recovery/check-or-repeat.light.webp +0 -0
  69. package/agents/patterns/previews/error-recovery/content-another-way.dark.webp +0 -0
  70. package/agents/patterns/previews/error-recovery/content-another-way.light.webp +0 -0
  71. package/agents/patterns/previews/error-recovery/partial.dark.webp +0 -0
  72. package/agents/patterns/previews/error-recovery/partial.light.webp +0 -0
  73. package/agents/patterns/previews/error-recovery/retry-action.dark.webp +0 -0
  74. package/agents/patterns/previews/error-recovery/retry-action.light.webp +0 -0
  75. package/agents/patterns/previews/error-recovery/retry-content.dark.webp +0 -0
  76. package/agents/patterns/previews/error-recovery/retry-content.light.webp +0 -0
  77. package/agents/patterns/previews/error-recovery/sign-in-again.dark.webp +0 -0
  78. package/agents/patterns/previews/error-recovery/sign-in-again.light.webp +0 -0
  79. package/agents/patterns/previews/item-list/documents-of-a-request.dark.webp +0 -0
  80. package/agents/patterns/previews/item-list/documents-of-a-request.light.webp +0 -0
  81. package/agents/patterns/previews/item-list/queue-of-a-desk.dark.webp +0 -0
  82. package/agents/patterns/previews/item-list/queue-of-a-desk.light.webp +0 -0
  83. package/agents/patterns/previews/item-list/requests-of-an-office.dark.webp +0 -0
  84. package/agents/patterns/previews/item-list/requests-of-an-office.light.webp +0 -0
  85. package/agents/patterns/previews/item-list/requests-to-assign.dark.webp +0 -0
  86. package/agents/patterns/previews/item-list/requests-to-assign.light.webp +0 -0
  87. package/agents/patterns/previews/labels-and-values/data-of-a-contact.dark.webp +0 -0
  88. package/agents/patterns/previews/labels-and-values/data-of-a-contact.light.webp +0 -0
  89. package/agents/patterns/previews/labels-and-values/payment-before-paying.dark.webp +0 -0
  90. package/agents/patterns/previews/labels-and-values/payment-before-paying.light.webp +0 -0
  91. package/agents/patterns/previews/labels-and-values/what-is-sent.dark.webp +0 -0
  92. package/agents/patterns/previews/labels-and-values/what-is-sent.light.webp +0 -0
  93. package/agents/patterns/previews/list-with-filters/act-on-many.dark.webp +0 -0
  94. package/agents/patterns/previews/list-with-filters/act-on-many.light.webp +0 -0
  95. package/agents/patterns/previews/list-with-filters/find-and-open.dark.webp +0 -0
  96. package/agents/patterns/previews/list-with-filters/find-and-open.light.webp +0 -0
  97. package/agents/patterns/previews/list-with-filters/show-new-items.dark.webp +0 -0
  98. package/agents/patterns/previews/list-with-filters/show-new-items.light.webp +0 -0
  99. package/agents/patterns/previews/loading/await-and-say.dark.webp +0 -0
  100. package/agents/patterns/previews/loading/await-and-say.light.webp +0 -0
  101. package/agents/patterns/previews/loading/await-the-control.dark.webp +0 -0
  102. package/agents/patterns/previews/loading/await-the-control.light.webp +0 -0
  103. package/agents/patterns/previews/loading/first-load.dark.webp +0 -0
  104. package/agents/patterns/previews/loading/first-load.light.webp +0 -0
  105. package/agents/patterns/previews/loading/keep-while-reloading.dark.webp +0 -0
  106. package/agents/patterns/previews/loading/keep-while-reloading.light.webp +0 -0
  107. package/agents/patterns/previews/loading/long-load-measured.dark.webp +0 -0
  108. package/agents/patterns/previews/loading/long-load-measured.light.webp +0 -0
  109. package/agents/patterns/previews/loading/long-load.dark.webp +0 -0
  110. package/agents/patterns/previews/loading/long-load.light.webp +0 -0
  111. package/agents/patterns/previews/loading/progress-in-place.dark.webp +0 -0
  112. package/agents/patterns/previews/loading/progress-in-place.light.webp +0 -0
  113. package/agents/patterns/previews/loading/run-in-background.dark.webp +0 -0
  114. package/agents/patterns/previews/loading/run-in-background.light.webp +0 -0
  115. package/agents/patterns/previews/message-placement/action-done-elsewhere.dark.webp +0 -0
  116. package/agents/patterns/previews/message-placement/action-done-elsewhere.light.webp +0 -0
  117. package/agents/patterns/previews/message-placement/action-done-in-page.dark.webp +0 -0
  118. package/agents/patterns/previews/message-placement/action-done-in-page.light.webp +0 -0
  119. package/agents/patterns/previews/message-placement/action-done-in-part.dark.webp +0 -0
  120. package/agents/patterns/previews/message-placement/action-done-in-part.light.webp +0 -0
  121. package/agents/patterns/previews/message-placement/action-failed-elsewhere.dark.webp +0 -0
  122. package/agents/patterns/previews/message-placement/action-failed-elsewhere.light.webp +0 -0
  123. package/agents/patterns/previews/message-placement/action-failed-in-place.dark.webp +0 -0
  124. package/agents/patterns/previews/message-placement/action-failed-in-place.light.webp +0 -0
  125. package/agents/patterns/previews/message-placement/action-later.dark.webp +0 -0
  126. package/agents/patterns/previews/message-placement/action-later.light.webp +0 -0
  127. package/agents/patterns/previews/message-placement/action-partial-elsewhere.dark.webp +0 -0
  128. package/agents/patterns/previews/message-placement/action-partial-elsewhere.light.webp +0 -0
  129. package/agents/patterns/previews/message-placement/action-partial-in-place.dark.webp +0 -0
  130. package/agents/patterns/previews/message-placement/action-partial-in-place.light.webp +0 -0
  131. package/agents/patterns/previews/message-placement/action-taken.dark.webp +0 -0
  132. package/agents/patterns/previews/message-placement/action-taken.light.webp +0 -0
  133. package/agents/patterns/previews/message-placement/app-deadline.dark.webp +0 -0
  134. package/agents/patterns/previews/message-placement/app-deadline.light.webp +0 -0
  135. package/agents/patterns/previews/message-placement/app-failed.dark.webp +0 -0
  136. package/agents/patterns/previews/message-placement/app-failed.light.webp +0 -0
  137. package/agents/patterns/previews/message-placement/app-info.dark.webp +0 -0
  138. package/agents/patterns/previews/message-placement/app-info.light.webp +0 -0
  139. package/agents/patterns/previews/message-placement/decision.dark.webp +0 -0
  140. package/agents/patterns/previews/message-placement/decision.light.webp +0 -0
  141. package/agents/patterns/previews/message-placement/field-error.dark.webp +0 -0
  142. package/agents/patterns/previews/message-placement/field-error.light.webp +0 -0
  143. package/agents/patterns/previews/message-placement/field-hint.dark.webp +0 -0
  144. package/agents/patterns/previews/message-placement/field-hint.light.webp +0 -0
  145. package/agents/patterns/previews/message-placement/field-valid.dark.webp +0 -0
  146. package/agents/patterns/previews/message-placement/field-valid.light.webp +0 -0
  147. package/agents/patterns/previews/message-placement/region-failed.dark.webp +0 -0
  148. package/agents/patterns/previews/message-placement/region-failed.light.webp +0 -0
  149. package/agents/patterns/previews/message-placement/region-info.dark.webp +0 -0
  150. package/agents/patterns/previews/message-placement/region-info.light.webp +0 -0
  151. package/agents/patterns/previews/page-header/contact-being-edited.dark.webp +0 -0
  152. package/agents/patterns/previews/page-header/contact-being-edited.light.webp +0 -0
  153. package/agents/patterns/previews/page-header/members-of-a-group.dark.webp +0 -0
  154. package/agents/patterns/previews/page-header/members-of-a-group.light.webp +0 -0
  155. package/agents/patterns/previews/page-header/own-profile.dark.webp +0 -0
  156. package/agents/patterns/previews/page-header/own-profile.light.webp +0 -0
  157. package/agents/patterns/previews/page-header/request-from-the-list.dark.webp +0 -0
  158. package/agents/patterns/previews/page-header/request-from-the-list.light.webp +0 -0
  159. package/agents/patterns/previews/page-header/requests-of-an-office.dark.webp +0 -0
  160. package/agents/patterns/previews/page-header/requests-of-an-office.light.webp +0 -0
  161. package/agents/patterns/previews/record-detail/ask-for-words.dark.webp +0 -0
  162. package/agents/patterns/previews/record-detail/ask-for-words.light.webp +0 -0
  163. package/agents/patterns/previews/record-detail/edit-data.dark.webp +0 -0
  164. package/agents/patterns/previews/record-detail/edit-data.light.webp +0 -0
  165. package/agents/patterns/previews/record-detail/read-the-data.dark.webp +0 -0
  166. package/agents/patterns/previews/record-detail/read-the-data.light.webp +0 -0
  167. package/agents/patterns/previews/record-detail/record-changed.dark.webp +0 -0
  168. package/agents/patterns/previews/record-detail/record-changed.light.webp +0 -0
  169. package/agents/patterns/previews/record-detail/run-at-once.dark.webp +0 -0
  170. package/agents/patterns/previews/record-detail/run-at-once.light.webp +0 -0
  171. package/agents/patterns/previews/record-detail/work-on-it.dark.webp +0 -0
  172. package/agents/patterns/previews/record-detail/work-on-it.light.webp +0 -0
  173. package/agents/patterns/previews/rhythm/between-containers.dark.webp +0 -0
  174. package/agents/patterns/previews/rhythm/between-containers.light.webp +0 -0
  175. package/agents/patterns/previews/rhythm/between-fields.dark.webp +0 -0
  176. package/agents/patterns/previews/rhythm/between-fields.light.webp +0 -0
  177. package/agents/patterns/previews/rhythm/between-groups.dark.webp +0 -0
  178. package/agents/patterns/previews/rhythm/between-groups.light.webp +0 -0
  179. package/agents/patterns/previews/rhythm/between-sections.dark.webp +0 -0
  180. package/agents/patterns/previews/rhythm/between-sections.light.webp +0 -0
  181. package/agents/patterns/previews/rhythm/content-actions.dark.webp +0 -0
  182. package/agents/patterns/previews/rhythm/content-actions.light.webp +0 -0
  183. package/agents/patterns/previews/rhythm/inline.dark.webp +0 -0
  184. package/agents/patterns/previews/rhythm/inline.light.webp +0 -0
  185. package/agents/patterns/previews/rhythm/inset.dark.webp +0 -0
  186. package/agents/patterns/previews/rhythm/inset.light.webp +0 -0
  187. package/agents/patterns/previews/rhythm/label-control.dark.webp +0 -0
  188. package/agents/patterns/previews/rhythm/label-control.light.webp +0 -0
  189. package/agents/patterns/previews/rhythm/title-content.dark.webp +0 -0
  190. package/agents/patterns/previews/rhythm/title-content.light.webp +0 -0
  191. package/agents/patterns/previews/surfaces/band.dark.webp +0 -0
  192. package/agents/patterns/previews/surfaces/band.light.webp +0 -0
  193. package/agents/patterns/previews/surfaces/canvas.dark.webp +0 -0
  194. package/agents/patterns/previews/surfaces/canvas.light.webp +0 -0
  195. package/agents/patterns/previews/surfaces/card.dark.webp +0 -0
  196. package/agents/patterns/previews/surfaces/card.light.webp +0 -0
  197. package/agents/patterns/previews/surfaces/dialog.dark.webp +0 -0
  198. package/agents/patterns/previews/surfaces/dialog.light.webp +0 -0
  199. package/agents/patterns/previews/surfaces/edit-actions.dark.webp +0 -0
  200. package/agents/patterns/previews/surfaces/edit-actions.light.webp +0 -0
  201. package/agents/patterns/previews/surfaces/section.dark.webp +0 -0
  202. package/agents/patterns/previews/surfaces/section.light.webp +0 -0
  203. package/agents/patterns/previews/titles/dialog.dark.webp +0 -0
  204. package/agents/patterns/previews/titles/dialog.light.webp +0 -0
  205. package/agents/patterns/previews/titles/group.dark.webp +0 -0
  206. package/agents/patterns/previews/titles/group.light.webp +0 -0
  207. package/agents/patterns/previews/titles/page.dark.webp +0 -0
  208. package/agents/patterns/previews/titles/page.light.webp +0 -0
  209. package/agents/patterns/previews/titles/part.dark.webp +0 -0
  210. package/agents/patterns/previews/titles/part.light.webp +0 -0
  211. package/agents/patterns/previews/titles/section.dark.webp +0 -0
  212. package/agents/patterns/previews/titles/section.light.webp +0 -0
  213. package/agents/patterns/previews/widths/dialog.dark.webp +0 -0
  214. package/agents/patterns/previews/widths/dialog.light.webp +0 -0
  215. package/agents/patterns/previews/widths/field.dark.webp +0 -0
  216. package/agents/patterns/previews/widths/field.light.webp +0 -0
  217. package/agents/patterns/previews/widths/form.dark.webp +0 -0
  218. package/agents/patterns/previews/widths/form.light.webp +0 -0
  219. package/agents/patterns/previews/widths/page.dark.webp +0 -0
  220. package/agents/patterns/previews/widths/page.light.webp +0 -0
  221. package/agents/patterns/previews/widths/reading.dark.webp +0 -0
  222. package/agents/patterns/previews/widths/reading.light.webp +0 -0
  223. package/agents/theming.md +14 -9
  224. package/dist/cjs/mds-emoji.cjs.entry.js +39 -10
  225. package/dist/cjs/mds-pref-theme-item.cjs.entry.js +18 -4
  226. package/dist/cjs/mds-pref-theme.cjs.entry.js +12 -3
  227. package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
  228. package/dist/collection/components/mds-accordion/documentation.json +1 -1
  229. package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
  230. package/dist/collection/components/mds-accordion-item/documentation.json +1 -1
  231. package/dist/collection/components/mds-accordion-timer/AGENTS.md +1 -1
  232. package/dist/collection/components/mds-accordion-timer/documentation.json +1 -1
  233. package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +1 -1
  234. package/dist/collection/components/mds-accordion-timer-item/documentation.json +1 -1
  235. package/dist/collection/components/mds-author/AGENTS.md +1 -1
  236. package/dist/collection/components/mds-author/documentation.json +1 -1
  237. package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
  238. package/dist/collection/components/mds-avatar/documentation.json +1 -1
  239. package/dist/collection/components/mds-avatar-stack/AGENTS.md +1 -1
  240. package/dist/collection/components/mds-avatar-stack/documentation.json +1 -1
  241. package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
  242. package/dist/collection/components/mds-avatar-stack-item/documentation.json +1 -1
  243. package/dist/collection/components/mds-badge/AGENTS.md +1 -1
  244. package/dist/collection/components/mds-badge/documentation.json +1 -1
  245. package/dist/collection/components/mds-banner/AGENTS.md +1 -1
  246. package/dist/collection/components/mds-banner/documentation.json +1 -1
  247. package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
  248. package/dist/collection/components/mds-benchmark-bar/documentation.json +1 -1
  249. package/dist/collection/components/mds-bibliography/AGENTS.md +1 -1
  250. package/dist/collection/components/mds-bibliography/documentation.json +1 -1
  251. package/dist/collection/components/mds-book/AGENTS.md +1 -1
  252. package/dist/collection/components/mds-book/documentation.json +1 -1
  253. package/dist/collection/components/mds-breadcrumb/AGENTS.md +1 -1
  254. package/dist/collection/components/mds-breadcrumb/documentation.json +1 -1
  255. package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +1 -1
  256. package/dist/collection/components/mds-breadcrumb-item/documentation.json +1 -1
  257. package/dist/collection/components/mds-button/AGENTS.md +1 -1
  258. package/dist/collection/components/mds-button/documentation.json +1 -1
  259. package/dist/collection/components/mds-button-dropdown/AGENTS.md +1 -1
  260. package/dist/collection/components/mds-button-dropdown/documentation.json +1 -1
  261. package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
  262. package/dist/collection/components/mds-button-group/documentation.json +1 -1
  263. package/dist/collection/components/mds-calendar/AGENTS.md +1 -1
  264. package/dist/collection/components/mds-calendar/documentation.json +1 -1
  265. package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
  266. package/dist/collection/components/mds-calendar-cell/documentation.json +1 -1
  267. package/dist/collection/components/mds-card/AGENTS.md +1 -1
  268. package/dist/collection/components/mds-card/documentation.json +1 -1
  269. package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
  270. package/dist/collection/components/mds-card-content/documentation.json +1 -1
  271. package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
  272. package/dist/collection/components/mds-card-footer/documentation.json +1 -1
  273. package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
  274. package/dist/collection/components/mds-card-header/documentation.json +1 -1
  275. package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
  276. package/dist/collection/components/mds-card-media/documentation.json +1 -1
  277. package/dist/collection/components/mds-chip/AGENTS.md +1 -1
  278. package/dist/collection/components/mds-chip/documentation.json +1 -1
  279. package/dist/collection/components/mds-details/AGENTS.md +1 -1
  280. package/dist/collection/components/mds-details/documentation.json +1 -1
  281. package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
  282. package/dist/collection/components/mds-dropdown/documentation.json +1 -1
  283. package/dist/collection/components/mds-emoji/AGENTS.md +1 -1
  284. package/dist/collection/components/mds-emoji/documentation.json +1 -1
  285. package/dist/collection/components/mds-entity/AGENTS.md +1 -1
  286. package/dist/collection/components/mds-entity/documentation.json +1 -1
  287. package/dist/collection/components/mds-file/AGENTS.md +1 -1
  288. package/dist/collection/components/mds-file/documentation.json +1 -1
  289. package/dist/collection/components/mds-file-preview/AGENTS.md +1 -1
  290. package/dist/collection/components/mds-file-preview/documentation.json +1 -1
  291. package/dist/collection/components/mds-filter/AGENTS.md +1 -1
  292. package/dist/collection/components/mds-filter/documentation.json +1 -1
  293. package/dist/collection/components/mds-filter-item/AGENTS.md +1 -1
  294. package/dist/collection/components/mds-filter-item/documentation.json +1 -1
  295. package/dist/collection/components/mds-header/AGENTS.md +1 -1
  296. package/dist/collection/components/mds-header/documentation.json +1 -1
  297. package/dist/collection/components/mds-header-bar/AGENTS.md +1 -1
  298. package/dist/collection/components/mds-header-bar/documentation.json +1 -1
  299. package/dist/collection/components/mds-help/AGENTS.md +1 -1
  300. package/dist/collection/components/mds-help/documentation.json +1 -1
  301. package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +1 -1
  302. package/dist/collection/components/mds-horizontal-scroll/documentation.json +1 -1
  303. package/dist/collection/components/mds-hr/AGENTS.md +1 -1
  304. package/dist/collection/components/mds-hr/documentation.json +1 -1
  305. package/dist/collection/components/mds-icon/AGENTS.md +1 -1
  306. package/dist/collection/components/mds-icon/documentation.json +1 -1
  307. package/dist/collection/components/mds-img/AGENTS.md +1 -1
  308. package/dist/collection/components/mds-img/documentation.json +1 -1
  309. package/dist/collection/components/mds-input/AGENTS.md +1 -1
  310. package/dist/collection/components/mds-input/documentation.json +1 -1
  311. package/dist/collection/components/mds-input-date/AGENTS.md +1 -1
  312. package/dist/collection/components/mds-input-date/documentation.json +1 -1
  313. package/dist/collection/components/mds-input-date-range/AGENTS.md +1 -1
  314. package/dist/collection/components/mds-input-date-range/documentation.json +1 -1
  315. package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +1 -1
  316. package/dist/collection/components/mds-input-date-range-preselection/documentation.json +1 -1
  317. package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
  318. package/dist/collection/components/mds-input-field/documentation.json +1 -1
  319. package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
  320. package/dist/collection/components/mds-input-otp/documentation.json +1 -1
  321. package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
  322. package/dist/collection/components/mds-input-range/documentation.json +1 -1
  323. package/dist/collection/components/mds-input-select/AGENTS.md +1 -1
  324. package/dist/collection/components/mds-input-select/documentation.json +1 -1
  325. package/dist/collection/components/mds-input-switch/AGENTS.md +1 -1
  326. package/dist/collection/components/mds-input-switch/documentation.json +1 -1
  327. package/dist/collection/components/mds-input-tip/AGENTS.md +1 -1
  328. package/dist/collection/components/mds-input-tip/documentation.json +1 -1
  329. package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
  330. package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
  331. package/dist/collection/components/mds-input-upload/AGENTS.md +1 -1
  332. package/dist/collection/components/mds-input-upload/documentation.json +1 -1
  333. package/dist/collection/components/mds-keyboard/AGENTS.md +1 -1
  334. package/dist/collection/components/mds-keyboard/documentation.json +1 -1
  335. package/dist/collection/components/mds-keyboard-key/AGENTS.md +1 -1
  336. package/dist/collection/components/mds-keyboard-key/documentation.json +1 -1
  337. package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
  338. package/dist/collection/components/mds-kpi/documentation.json +1 -1
  339. package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
  340. package/dist/collection/components/mds-kpi-item/documentation.json +1 -1
  341. package/dist/collection/components/mds-label/AGENTS.md +1 -1
  342. package/dist/collection/components/mds-label/documentation.json +1 -1
  343. package/dist/collection/components/mds-link/AGENTS.md +1 -1
  344. package/dist/collection/components/mds-link/documentation.json +1 -1
  345. package/dist/collection/components/mds-list/AGENTS.md +1 -1
  346. package/dist/collection/components/mds-list/documentation.json +1 -1
  347. package/dist/collection/components/mds-list-item/AGENTS.md +1 -1
  348. package/dist/collection/components/mds-list-item/documentation.json +1 -1
  349. package/dist/collection/components/mds-mention/AGENTS.md +1 -1
  350. package/dist/collection/components/mds-mention/documentation.json +1 -1
  351. package/dist/collection/components/mds-modal/AGENTS.md +1 -1
  352. package/dist/collection/components/mds-modal/documentation.json +1 -1
  353. package/dist/collection/components/mds-note/AGENTS.md +1 -1
  354. package/dist/collection/components/mds-note/documentation.json +1 -1
  355. package/dist/collection/components/mds-notification/AGENTS.md +1 -1
  356. package/dist/collection/components/mds-notification/documentation.json +1 -1
  357. package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
  358. package/dist/collection/components/mds-paginator/documentation.json +1 -1
  359. package/dist/collection/components/mds-paginator-item/AGENTS.md +1 -1
  360. package/dist/collection/components/mds-paginator-item/documentation.json +1 -1
  361. package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
  362. package/dist/collection/components/mds-policy-ai/documentation.json +1 -1
  363. package/dist/collection/components/mds-pref/AGENTS.md +1 -1
  364. package/dist/collection/components/mds-pref/documentation.json +1 -1
  365. package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
  366. package/dist/collection/components/mds-pref-animation/documentation.json +1 -1
  367. package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
  368. package/dist/collection/components/mds-pref-consumption/documentation.json +1 -1
  369. package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
  370. package/dist/collection/components/mds-pref-contrast/documentation.json +1 -1
  371. package/dist/collection/components/mds-pref-language/AGENTS.md +1 -1
  372. package/dist/collection/components/mds-pref-language/documentation.json +1 -1
  373. package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
  374. package/dist/collection/components/mds-pref-language-item/documentation.json +1 -1
  375. package/dist/collection/components/mds-pref-mode/AGENTS.md +1 -1
  376. package/dist/collection/components/mds-pref-mode/documentation.json +1 -1
  377. package/dist/collection/components/mds-pref-theme/AGENTS.md +2 -2
  378. package/dist/collection/components/mds-pref-theme/documentation.json +4 -4
  379. package/dist/collection/components/mds-pref-theme/examples.md +17 -20
  380. package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +12 -3
  381. package/dist/collection/components/mds-pref-theme/mistakes.md +14 -14
  382. package/dist/collection/components/mds-pref-theme-item/AGENTS.md +5 -5
  383. package/dist/collection/components/mds-pref-theme-item/documentation.json +8 -8
  384. package/dist/collection/components/mds-pref-theme-item/examples.md +18 -24
  385. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +13 -7
  386. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +19 -5
  387. package/dist/collection/components/mds-pref-theme-item/mistakes.md +14 -16
  388. package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
  389. package/dist/collection/components/mds-price-table/documentation.json +1 -1
  390. package/dist/collection/components/mds-price-table-features/AGENTS.md +1 -1
  391. package/dist/collection/components/mds-price-table-features/documentation.json +1 -1
  392. package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +1 -1
  393. package/dist/collection/components/mds-price-table-features-cell/documentation.json +1 -1
  394. package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
  395. package/dist/collection/components/mds-price-table-features-row/documentation.json +1 -1
  396. package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
  397. package/dist/collection/components/mds-price-table-header/documentation.json +1 -1
  398. package/dist/collection/components/mds-price-table-list/AGENTS.md +1 -1
  399. package/dist/collection/components/mds-price-table-list/documentation.json +1 -1
  400. package/dist/collection/components/mds-price-table-list-item/AGENTS.md +1 -1
  401. package/dist/collection/components/mds-price-table-list-item/documentation.json +1 -1
  402. package/dist/collection/components/mds-progress/AGENTS.md +1 -1
  403. package/dist/collection/components/mds-progress/documentation.json +1 -1
  404. package/dist/collection/components/mds-push-notification/AGENTS.md +1 -1
  405. package/dist/collection/components/mds-push-notification/documentation.json +1 -1
  406. package/dist/collection/components/mds-push-notification-item/AGENTS.md +1 -1
  407. package/dist/collection/components/mds-push-notification-item/documentation.json +1 -1
  408. package/dist/collection/components/mds-quote/AGENTS.md +1 -1
  409. package/dist/collection/components/mds-quote/documentation.json +1 -1
  410. package/dist/collection/components/mds-radial-menu/AGENTS.md +1 -1
  411. package/dist/collection/components/mds-radial-menu/documentation.json +1 -1
  412. package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
  413. package/dist/collection/components/mds-radial-menu-item/documentation.json +1 -1
  414. package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
  415. package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
  416. package/dist/collection/components/mds-separator/AGENTS.md +1 -1
  417. package/dist/collection/components/mds-separator/documentation.json +1 -1
  418. package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
  419. package/dist/collection/components/mds-spinner/documentation.json +1 -1
  420. package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
  421. package/dist/collection/components/mds-status-bar/documentation.json +1 -1
  422. package/dist/collection/components/mds-stepper-bar/AGENTS.md +1 -1
  423. package/dist/collection/components/mds-stepper-bar/documentation.json +1 -1
  424. package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +1 -1
  425. package/dist/collection/components/mds-stepper-bar-item/documentation.json +1 -1
  426. package/dist/collection/components/mds-tab/AGENTS.md +1 -1
  427. package/dist/collection/components/mds-tab/documentation.json +1 -1
  428. package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
  429. package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
  430. package/dist/collection/components/mds-tab-bar-item/AGENTS.md +1 -1
  431. package/dist/collection/components/mds-tab-bar-item/documentation.json +1 -1
  432. package/dist/collection/components/mds-tab-item/AGENTS.md +1 -1
  433. package/dist/collection/components/mds-tab-item/documentation.json +1 -1
  434. package/dist/collection/components/mds-table/AGENTS.md +1 -1
  435. package/dist/collection/components/mds-table/documentation.json +1 -1
  436. package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
  437. package/dist/collection/components/mds-table-body/documentation.json +1 -1
  438. package/dist/collection/components/mds-table-cell/AGENTS.md +1 -1
  439. package/dist/collection/components/mds-table-cell/documentation.json +1 -1
  440. package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
  441. package/dist/collection/components/mds-table-footer/documentation.json +1 -1
  442. package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
  443. package/dist/collection/components/mds-table-header/documentation.json +1 -1
  444. package/dist/collection/components/mds-table-header-cell/AGENTS.md +1 -1
  445. package/dist/collection/components/mds-table-header-cell/documentation.json +1 -1
  446. package/dist/collection/components/mds-table-row/AGENTS.md +1 -1
  447. package/dist/collection/components/mds-table-row/documentation.json +1 -1
  448. package/dist/collection/components/mds-text/AGENTS.md +1 -1
  449. package/dist/collection/components/mds-text/documentation.json +1 -1
  450. package/dist/collection/components/mds-toast/AGENTS.md +1 -1
  451. package/dist/collection/components/mds-toast/documentation.json +1 -1
  452. package/dist/collection/components/mds-toast-region/AGENTS.md +1 -1
  453. package/dist/collection/components/mds-toast-region/documentation.json +1 -1
  454. package/dist/collection/components/mds-tooltip/AGENTS.md +1 -1
  455. package/dist/collection/components/mds-tooltip/documentation.json +1 -1
  456. package/dist/collection/components/mds-tree/AGENTS.md +1 -1
  457. package/dist/collection/components/mds-tree/documentation.json +1 -1
  458. package/dist/collection/components/mds-tree-item/AGENTS.md +1 -1
  459. package/dist/collection/components/mds-tree-item/documentation.json +1 -1
  460. package/dist/collection/components/mds-url-view/AGENTS.md +1 -1
  461. package/dist/collection/components/mds-url-view/documentation.json +1 -1
  462. package/dist/collection/components/mds-usage/AGENTS.md +1 -1
  463. package/dist/collection/components/mds-usage/documentation.json +1 -1
  464. package/dist/collection/components/mds-video-wall/AGENTS.md +1 -1
  465. package/dist/collection/components/mds-video-wall/documentation.json +1 -1
  466. package/dist/collection/components/mds-zero/AGENTS.md +1 -1
  467. package/dist/collection/components/mds-zero/documentation.json +1 -1
  468. package/dist/components/mds-emoji.js +3 -3
  469. package/dist/components/mds-pref-theme-item.js +1 -1
  470. package/dist/components/mds-pref-theme.js +1 -1
  471. package/dist/documentation.json +11 -11
  472. package/dist/esm/mds-emoji.entry.js +39 -10
  473. package/dist/esm/mds-pref-theme-item.entry.js +18 -4
  474. package/dist/esm/mds-pref-theme.entry.js +12 -3
  475. package/dist/esm-es5/mds-emoji.entry.js +109 -107
  476. package/dist/esm-es5/mds-pref-theme-item.entry.js +12 -5
  477. package/dist/esm-es5/mds-pref-theme.entry.js +9 -4
  478. package/dist/hydrate/index.js +69 -17
  479. package/dist/hydrate/index.mjs +69 -17
  480. package/dist/lint/core/patterns.d.ts +30 -0
  481. package/dist/lint/core/patterns.js +90 -0
  482. package/dist/lint/mcp/patterns.js +21 -11
  483. package/dist/lint/mcp/render-page.d.ts +5 -1
  484. package/dist/lint/mcp/render-page.js +17 -0
  485. package/dist/lint/mcp/render.d.ts +22 -1
  486. package/dist/lint/mcp/render.js +101 -20
  487. package/dist/lint/mcp/tools.json +2 -2
  488. package/dist/magma-components/magma-components.esm.js +1 -1
  489. package/dist/magma-components/{p-0dcde20a.system.entry.js → p-2a445b98.system.entry.js} +15 -13
  490. package/dist/magma-components/p-97c6e10a.entry.js +1 -0
  491. package/dist/magma-components/{p-4e072e24.system.entry.js → p-9e07535e.system.entry.js} +10 -5
  492. package/dist/magma-components/{p-77001a72.entry.js → p-9ef64212.entry.js} +3 -3
  493. package/dist/magma-components/p-B8zYiZQY.system.js +1 -1
  494. package/dist/magma-components/p-c915fba5.system.entry.js +21 -0
  495. package/dist/magma-components/p-cd6dd836.entry.js +1 -0
  496. package/dist/stats.json +48 -47
  497. package/dist/types/components/mds-pref-theme-item/mds-pref-theme-item.d.ts +9 -2
  498. package/dist/types/components.d.ts +4 -4
  499. package/package.json +6 -5
  500. package/dist/magma-components/p-34d58345.entry.js +0 -1
  501. package/dist/magma-components/p-52e2b0d4.system.entry.js +0 -14
  502. package/dist/magma-components/p-f3708d1a.entry.js +0 -1
package/dist/stats.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-11-04T07:18:12",
2
+ "timestamp": "2026-11-04T15:13:27",
3
3
  "compiler": {
4
4
  "name": "node",
5
5
  "version": "24.14.0"
@@ -1081,7 +1081,6 @@
1081
1081
  "./dist/magma-components/p-0c8f22dc.system.entry.js",
1082
1082
  "./dist/magma-components/p-0d3da482.system.entry.js",
1083
1083
  "./dist/magma-components/p-0d42ac4a.entry.js",
1084
- "./dist/magma-components/p-0dcde20a.system.entry.js",
1085
1084
  "./dist/magma-components/p-0fc41e34.system.entry.js",
1086
1085
  "./dist/magma-components/p-109926ce.system.entry.js",
1087
1086
  "./dist/magma-components/p-10d52280.entry.js",
@@ -1103,6 +1102,7 @@
1103
1102
  "./dist/magma-components/p-27254fbd.entry.js",
1104
1103
  "./dist/magma-components/p-299dab17.entry.js",
1105
1104
  "./dist/magma-components/p-29dd6d94.entry.js",
1105
+ "./dist/magma-components/p-2a445b98.system.entry.js",
1106
1106
  "./dist/magma-components/p-2d199db0.system.entry.js",
1107
1107
  "./dist/magma-components/p-2d2cdf0d.entry.js",
1108
1108
  "./dist/magma-components/p-2e68180d.system.entry.js",
@@ -1110,7 +1110,6 @@
1110
1110
  "./dist/magma-components/p-30f95d10.entry.js",
1111
1111
  "./dist/magma-components/p-3139988c.system.entry.js",
1112
1112
  "./dist/magma-components/p-34421ef2.system.entry.js",
1113
- "./dist/magma-components/p-34d58345.entry.js",
1114
1113
  "./dist/magma-components/p-35c170ba.system.entry.js",
1115
1114
  "./dist/magma-components/p-37881115.system.entry.js",
1116
1115
  "./dist/magma-components/p-384d93dc.system.entry.js",
@@ -1132,7 +1131,6 @@
1132
1131
  "./dist/magma-components/p-4a72d72c.system.entry.js",
1133
1132
  "./dist/magma-components/p-4cd21f19.entry.js",
1134
1133
  "./dist/magma-components/p-4da1c089.entry.js",
1135
- "./dist/magma-components/p-4e072e24.system.entry.js",
1136
1134
  "./dist/magma-components/p-4e5b8618.system.entry.js",
1137
1135
  "./dist/magma-components/p-4e8c5b68.entry.js",
1138
1136
  "./dist/magma-components/p-4f0153cd.entry.js",
@@ -1140,7 +1138,6 @@
1140
1138
  "./dist/magma-components/p-4fc0e294.entry.js",
1141
1139
  "./dist/magma-components/p-4fd0fdb8.system.entry.js",
1142
1140
  "./dist/magma-components/p-52211fa3.entry.js",
1143
- "./dist/magma-components/p-52e2b0d4.system.entry.js",
1144
1141
  "./dist/magma-components/p-5575f198.entry.js",
1145
1142
  "./dist/magma-components/p-5686da49.system.entry.js",
1146
1143
  "./dist/magma-components/p-56a25ec6.entry.js",
@@ -1167,7 +1164,6 @@
1167
1164
  "./dist/magma-components/p-6pgPWpGI.js",
1168
1165
  "./dist/magma-components/p-72971cf7.system.entry.js",
1169
1166
  "./dist/magma-components/p-741f8f45.system.entry.js",
1170
- "./dist/magma-components/p-77001a72.entry.js",
1171
1167
  "./dist/magma-components/p-7837856f.entry.js",
1172
1168
  "./dist/magma-components/p-797c64f4.system.entry.js",
1173
1169
  "./dist/magma-components/p-7a920b70.entry.js",
@@ -1200,14 +1196,17 @@
1200
1196
  "./dist/magma-components/p-948ecde4.entry.js",
1201
1197
  "./dist/magma-components/p-95ddc950.system.entry.js",
1202
1198
  "./dist/magma-components/p-97217527.system.entry.js",
1199
+ "./dist/magma-components/p-97c6e10a.entry.js",
1203
1200
  "./dist/magma-components/p-98e167e8.system.entry.js",
1204
1201
  "./dist/magma-components/p-99bfa07e.system.entry.js",
1205
1202
  "./dist/magma-components/p-9a0f8eb1.entry.js",
1206
1203
  "./dist/magma-components/p-9c2b67fc.system.entry.js",
1207
1204
  "./dist/magma-components/p-9c784173.entry.js",
1205
+ "./dist/magma-components/p-9e07535e.system.entry.js",
1208
1206
  "./dist/magma-components/p-9e2b1a29.entry.js",
1209
1207
  "./dist/magma-components/p-9ed54db1.entry.js",
1210
1208
  "./dist/magma-components/p-9ef0d4e5.system.entry.js",
1209
+ "./dist/magma-components/p-9ef64212.entry.js",
1211
1210
  "./dist/magma-components/p-9f55fa7a.system.entry.js",
1212
1211
  "./dist/magma-components/p-AEckDMXh.js",
1213
1212
  "./dist/magma-components/p-B-nayZ3E.system.js",
@@ -1308,9 +1307,11 @@
1308
1307
  "./dist/magma-components/p-c35ea44d.system.entry.js",
1309
1308
  "./dist/magma-components/p-c683cd13.entry.js",
1310
1309
  "./dist/magma-components/p-c7dc17f8.entry.js",
1310
+ "./dist/magma-components/p-c915fba5.system.entry.js",
1311
1311
  "./dist/magma-components/p-c9553777.entry.js",
1312
1312
  "./dist/magma-components/p-c9bd81c5.system.entry.js",
1313
1313
  "./dist/magma-components/p-ccffdf0b.system.entry.js",
1314
+ "./dist/magma-components/p-cd6dd836.entry.js",
1314
1315
  "./dist/magma-components/p-cf42d6ea.system.entry.js",
1315
1316
  "./dist/magma-components/p-cfbf3a76.system.entry.js",
1316
1317
  "./dist/magma-components/p-d29c959d.entry.js",
@@ -1337,7 +1338,6 @@
1337
1338
  "./dist/magma-components/p-f09f3fe1.system.entry.js",
1338
1339
  "./dist/magma-components/p-f181c679.system.entry.js",
1339
1340
  "./dist/magma-components/p-f22b8091.entry.js",
1340
- "./dist/magma-components/p-f3708d1a.entry.js",
1341
1341
  "./dist/magma-components/p-f40e3918.system.entry.js",
1342
1342
  "./dist/magma-components/p-f493fdc3.entry.js",
1343
1343
  "./dist/magma-components/p-f4fc9f29.system.entry.js",
@@ -1378,7 +1378,6 @@
1378
1378
  "./www/build/p-0c8f22dc.system.entry.js",
1379
1379
  "./www/build/p-0d3da482.system.entry.js",
1380
1380
  "./www/build/p-0d42ac4a.entry.js",
1381
- "./www/build/p-0dcde20a.system.entry.js",
1382
1381
  "./www/build/p-0fc41e34.system.entry.js",
1383
1382
  "./www/build/p-109926ce.system.entry.js",
1384
1383
  "./www/build/p-10d52280.entry.js",
@@ -1400,6 +1399,7 @@
1400
1399
  "./www/build/p-27254fbd.entry.js",
1401
1400
  "./www/build/p-299dab17.entry.js",
1402
1401
  "./www/build/p-29dd6d94.entry.js",
1402
+ "./www/build/p-2a445b98.system.entry.js",
1403
1403
  "./www/build/p-2d199db0.system.entry.js",
1404
1404
  "./www/build/p-2d2cdf0d.entry.js",
1405
1405
  "./www/build/p-2e68180d.system.entry.js",
@@ -1407,7 +1407,6 @@
1407
1407
  "./www/build/p-30f95d10.entry.js",
1408
1408
  "./www/build/p-3139988c.system.entry.js",
1409
1409
  "./www/build/p-34421ef2.system.entry.js",
1410
- "./www/build/p-34d58345.entry.js",
1411
1410
  "./www/build/p-35c170ba.system.entry.js",
1412
1411
  "./www/build/p-37881115.system.entry.js",
1413
1412
  "./www/build/p-384d93dc.system.entry.js",
@@ -1429,7 +1428,6 @@
1429
1428
  "./www/build/p-4a72d72c.system.entry.js",
1430
1429
  "./www/build/p-4cd21f19.entry.js",
1431
1430
  "./www/build/p-4da1c089.entry.js",
1432
- "./www/build/p-4e072e24.system.entry.js",
1433
1431
  "./www/build/p-4e5b8618.system.entry.js",
1434
1432
  "./www/build/p-4e8c5b68.entry.js",
1435
1433
  "./www/build/p-4f0153cd.entry.js",
@@ -1437,7 +1435,6 @@
1437
1435
  "./www/build/p-4fc0e294.entry.js",
1438
1436
  "./www/build/p-4fd0fdb8.system.entry.js",
1439
1437
  "./www/build/p-52211fa3.entry.js",
1440
- "./www/build/p-52e2b0d4.system.entry.js",
1441
1438
  "./www/build/p-5575f198.entry.js",
1442
1439
  "./www/build/p-5686da49.system.entry.js",
1443
1440
  "./www/build/p-56a25ec6.entry.js",
@@ -1464,7 +1461,6 @@
1464
1461
  "./www/build/p-6pgPWpGI.js",
1465
1462
  "./www/build/p-72971cf7.system.entry.js",
1466
1463
  "./www/build/p-741f8f45.system.entry.js",
1467
- "./www/build/p-77001a72.entry.js",
1468
1464
  "./www/build/p-7837856f.entry.js",
1469
1465
  "./www/build/p-797c64f4.system.entry.js",
1470
1466
  "./www/build/p-7a920b70.entry.js",
@@ -1497,14 +1493,17 @@
1497
1493
  "./www/build/p-948ecde4.entry.js",
1498
1494
  "./www/build/p-95ddc950.system.entry.js",
1499
1495
  "./www/build/p-97217527.system.entry.js",
1496
+ "./www/build/p-97c6e10a.entry.js",
1500
1497
  "./www/build/p-98e167e8.system.entry.js",
1501
1498
  "./www/build/p-99bfa07e.system.entry.js",
1502
1499
  "./www/build/p-9a0f8eb1.entry.js",
1503
1500
  "./www/build/p-9c2b67fc.system.entry.js",
1504
1501
  "./www/build/p-9c784173.entry.js",
1502
+ "./www/build/p-9e07535e.system.entry.js",
1505
1503
  "./www/build/p-9e2b1a29.entry.js",
1506
1504
  "./www/build/p-9ed54db1.entry.js",
1507
1505
  "./www/build/p-9ef0d4e5.system.entry.js",
1506
+ "./www/build/p-9ef64212.entry.js",
1508
1507
  "./www/build/p-9f55fa7a.system.entry.js",
1509
1508
  "./www/build/p-AEckDMXh.js",
1510
1509
  "./www/build/p-B-nayZ3E.system.js",
@@ -1605,9 +1604,11 @@
1605
1604
  "./www/build/p-c35ea44d.system.entry.js",
1606
1605
  "./www/build/p-c683cd13.entry.js",
1607
1606
  "./www/build/p-c7dc17f8.entry.js",
1607
+ "./www/build/p-c915fba5.system.entry.js",
1608
1608
  "./www/build/p-c9553777.entry.js",
1609
1609
  "./www/build/p-c9bd81c5.system.entry.js",
1610
1610
  "./www/build/p-ccffdf0b.system.entry.js",
1611
+ "./www/build/p-cd6dd836.entry.js",
1611
1612
  "./www/build/p-cf42d6ea.system.entry.js",
1612
1613
  "./www/build/p-cfbf3a76.system.entry.js",
1613
1614
  "./www/build/p-d29c959d.entry.js",
@@ -1634,7 +1635,6 @@
1634
1635
  "./www/build/p-f09f3fe1.system.entry.js",
1635
1636
  "./www/build/p-f181c679.system.entry.js",
1636
1637
  "./www/build/p-f22b8091.entry.js",
1637
- "./www/build/p-f3708d1a.entry.js",
1638
1638
  "./www/build/p-f40e3918.system.entry.js",
1639
1639
  "./www/build/p-f493fdc3.entry.js",
1640
1640
  "./www/build/p-f4fc9f29.system.entry.js",
@@ -2038,15 +2038,15 @@
2038
2038
  "components": [
2039
2039
  "mds-pref-theme-item"
2040
2040
  ],
2041
- "bundleId": "p-f3708d1a",
2042
- "fileName": "p-f3708d1a.entry.js",
2041
+ "bundleId": "p-cd6dd836",
2042
+ "fileName": "p-cd6dd836.entry.js",
2043
2043
  "imports": [
2044
2044
  "p-CvLLN-QH.js",
2045
2045
  "p-BFhO-KUe.js",
2046
2046
  "p-lZldSMeV.js",
2047
2047
  "p-6pgPWpGI.js"
2048
2048
  ],
2049
- "originalByteSize": 4889
2049
+ "originalByteSize": 5759
2050
2050
  },
2051
2051
  {
2052
2052
  "key": "mds-price-table.entry",
@@ -2881,8 +2881,8 @@
2881
2881
  "components": [
2882
2882
  "mds-pref-theme"
2883
2883
  ],
2884
- "bundleId": "p-34d58345",
2885
- "fileName": "p-34d58345.entry.js",
2884
+ "bundleId": "p-97c6e10a",
2885
+ "fileName": "p-97c6e10a.entry.js",
2886
2886
  "imports": [
2887
2887
  "p-CvLLN-QH.js",
2888
2888
  "p-OafT80hV.js",
@@ -2891,7 +2891,7 @@
2891
2891
  "p-DiWN48aq.js",
2892
2892
  "p-Ccz0jCNB.js"
2893
2893
  ],
2894
- "originalByteSize": 16291
2894
+ "originalByteSize": 16714
2895
2895
  },
2896
2896
  {
2897
2897
  "key": "mds-radial-menu.entry",
@@ -2971,14 +2971,14 @@
2971
2971
  "components": [
2972
2972
  "mds-emoji"
2973
2973
  ],
2974
- "bundleId": "p-77001a72",
2975
- "fileName": "p-77001a72.entry.js",
2974
+ "bundleId": "p-9ef64212",
2975
+ "fileName": "p-9ef64212.entry.js",
2976
2976
  "imports": [
2977
2977
  "p-CvLLN-QH.js",
2978
2978
  "p-CWk1SCJg.js",
2979
2979
  "p-iX3kcwYg.js"
2980
2980
  ],
2981
- "originalByteSize": 308026
2981
+ "originalByteSize": 308965
2982
2982
  },
2983
2983
  {
2984
2984
  "key": "mds-policy-ai.entry",
@@ -3673,7 +3673,7 @@
3673
3673
  "circle-lZldSMeV.js",
3674
3674
  "string-6pgPWpGI.js"
3675
3675
  ],
3676
- "originalByteSize": 4914
3676
+ "originalByteSize": 5784
3677
3677
  },
3678
3678
  {
3679
3679
  "key": "mds-price-table.entry",
@@ -4518,7 +4518,7 @@
4518
4518
  "keyboard-arrow-down-DiWN48aq.js",
4519
4519
  "keyboard-arrow-up-Ccz0jCNB.js"
4520
4520
  ],
4521
- "originalByteSize": 16348
4521
+ "originalByteSize": 16771
4522
4522
  },
4523
4523
  {
4524
4524
  "key": "mds-radial-menu.entry",
@@ -4605,7 +4605,7 @@
4605
4605
  "unit-CWk1SCJg.js",
4606
4606
  "preference-C5XjgGCb.js"
4607
4607
  ],
4608
- "originalByteSize": 308042
4608
+ "originalByteSize": 308981
4609
4609
  },
4610
4610
  {
4611
4611
  "key": "mds-policy-ai.entry",
@@ -5300,7 +5300,7 @@
5300
5300
  "circle-lZldSMeV.js",
5301
5301
  "string-6pgPWpGI.js"
5302
5302
  ],
5303
- "originalByteSize": 4914
5303
+ "originalByteSize": 5784
5304
5304
  },
5305
5305
  {
5306
5306
  "key": "mds-price-table.entry",
@@ -6145,7 +6145,7 @@
6145
6145
  "keyboard-arrow-down-DiWN48aq.js",
6146
6146
  "keyboard-arrow-up-Ccz0jCNB.js"
6147
6147
  ],
6148
- "originalByteSize": 16348
6148
+ "originalByteSize": 16771
6149
6149
  },
6150
6150
  {
6151
6151
  "key": "mds-radial-menu.entry",
@@ -6232,7 +6232,7 @@
6232
6232
  "unit-CWk1SCJg.js",
6233
6233
  "preference-C5XjgGCb.js"
6234
6234
  ],
6235
- "originalByteSize": 308042
6235
+ "originalByteSize": 308981
6236
6236
  },
6237
6237
  {
6238
6238
  "key": "mds-policy-ai.entry",
@@ -6919,15 +6919,15 @@
6919
6919
  "components": [
6920
6920
  "mds-pref-theme-item"
6921
6921
  ],
6922
- "bundleId": "p-52e2b0d4.system",
6923
- "fileName": "p-52e2b0d4.system.entry.js",
6922
+ "bundleId": "p-c915fba5.system",
6923
+ "fileName": "p-c915fba5.system.entry.js",
6924
6924
  "imports": [
6925
6925
  "p-BZP13mns.system.js",
6926
6926
  "p-Cwb0_qSC.system.js",
6927
6927
  "p-C7XBwPt0.system.js",
6928
6928
  "p-pxyGaQ-P.system.js"
6929
6929
  ],
6930
- "originalByteSize": 5478
6930
+ "originalByteSize": 6432
6931
6931
  },
6932
6932
  {
6933
6933
  "key": "mds-price-table.entry",
@@ -7762,8 +7762,8 @@
7762
7762
  "components": [
7763
7763
  "mds-pref-theme"
7764
7764
  ],
7765
- "bundleId": "p-4e072e24.system",
7766
- "fileName": "p-4e072e24.system.entry.js",
7765
+ "bundleId": "p-9e07535e.system",
7766
+ "fileName": "p-9e07535e.system.entry.js",
7767
7767
  "imports": [
7768
7768
  "p-BZP13mns.system.js",
7769
7769
  "p-CuHZXISO.system.js",
@@ -7772,7 +7772,7 @@
7772
7772
  "p-C0tqOovl.system.js",
7773
7773
  "p-BcI1w9tp.system.js"
7774
7774
  ],
7775
- "originalByteSize": 20454
7775
+ "originalByteSize": 20985
7776
7776
  },
7777
7777
  {
7778
7778
  "key": "mds-radial-menu.entry",
@@ -7852,14 +7852,14 @@
7852
7852
  "components": [
7853
7853
  "mds-emoji"
7854
7854
  ],
7855
- "bundleId": "p-0dcde20a.system",
7856
- "fileName": "p-0dcde20a.system.entry.js",
7855
+ "bundleId": "p-2a445b98.system",
7856
+ "fileName": "p-2a445b98.system.entry.js",
7857
7857
  "imports": [
7858
7858
  "p-BZP13mns.system.js",
7859
7859
  "p-B-nayZ3E.system.js",
7860
7860
  "p-mGgjNqBm.system.js"
7861
7861
  ],
7862
- "originalByteSize": 381275
7862
+ "originalByteSize": 382490
7863
7863
  },
7864
7864
  {
7865
7865
  "key": "mds-policy-ai.entry",
@@ -8554,7 +8554,7 @@
8554
8554
  "circle-Cd893kVJ.js",
8555
8555
  "string-RoXIuD3q.js"
8556
8556
  ],
8557
- "originalByteSize": 4918
8557
+ "originalByteSize": 5788
8558
8558
  },
8559
8559
  {
8560
8560
  "key": "mds-price-table.entry",
@@ -9399,7 +9399,7 @@
9399
9399
  "keyboard-arrow-down-BNOA3Lin.js",
9400
9400
  "keyboard-arrow-up-C6Wsxo6j.js"
9401
9401
  ],
9402
- "originalByteSize": 16365
9402
+ "originalByteSize": 16788
9403
9403
  },
9404
9404
  {
9405
9405
  "key": "mds-radial-menu.entry",
@@ -9486,7 +9486,7 @@
9486
9486
  "unit-JdmHaLT3.js",
9487
9487
  "preference-CQQ3eb9W.js"
9488
9488
  ],
9489
- "originalByteSize": 308070
9489
+ "originalByteSize": 309009
9490
9490
  },
9491
9491
  {
9492
9492
  "key": "mds-policy-ai.entry",
@@ -26839,14 +26839,14 @@
26839
26839
  "tags": [
26840
26840
  {
26841
26841
  "name": "example",
26842
- "text": "'maggioli-editore'"
26842
+ "text": "'editorial'"
26843
26843
  },
26844
26844
  {
26845
26845
  "name": "default",
26846
26846
  "text": "'default'"
26847
26847
  }
26848
26848
  ],
26849
- "text": "Specifies the theme name"
26849
+ "text": "Specifies the theme name; the swatch shows the preview that theme publishes,\n`--magma-preview-<name>-wash` and `--magma-preview-<name>-accent`"
26850
26850
  },
26851
26851
  "internal": false,
26852
26852
  "getter": false,
@@ -52344,14 +52344,14 @@
52344
52344
  "tags": [
52345
52345
  {
52346
52346
  "name": "example",
52347
- "text": "'maggioli-editore'"
52347
+ "text": "'editorial'"
52348
52348
  },
52349
52349
  {
52350
52350
  "name": "default",
52351
52351
  "text": "'default'"
52352
52352
  }
52353
52353
  ],
52354
- "text": "Specifies the theme name"
52354
+ "text": "Specifies the theme name; the swatch shows the preview that theme publishes,\n`--magma-preview-<name>-wash` and `--magma-preview-<name>-accent`"
52355
52355
  },
52356
52356
  "internal": false,
52357
52357
  "getter": false,
@@ -52471,7 +52471,7 @@
52471
52471
  "styleDocs": [
52472
52472
  {
52473
52473
  "name": "--mds-pref-theme-item-color-background",
52474
- "docs": "Public. Background color of a theme item.",
52474
+ "docs": "Public. Background color of a theme item: the wash of the theme it names.",
52475
52475
  "annotation": "prop",
52476
52476
  "mode": "$"
52477
52477
  },
@@ -52495,7 +52495,7 @@
52495
52495
  },
52496
52496
  {
52497
52497
  "name": "--mds-pref-theme-item-color-variant-primary",
52498
- "docs": "Color for the primary variant item.",
52498
+ "docs": "Color for the primary variant item: the accent of the theme it names.",
52499
52499
  "annotation": "prop",
52500
52500
  "mode": "$"
52501
52501
  }
@@ -52559,7 +52559,7 @@
52559
52559
  "hasVdomPropOrAttr": true,
52560
52560
  "hasVdomRef": false,
52561
52561
  "hasVdomRender": true,
52562
- "hasVdomStyle": false,
52562
+ "hasVdomStyle": true,
52563
52563
  "hasVdomText": false,
52564
52564
  "hasWatchCallback": false,
52565
52565
  "isPlain": false,
@@ -52567,6 +52567,7 @@
52567
52567
  "key",
52568
52568
  "onClick",
52569
52569
  "role",
52570
+ "style",
52570
52571
  "icon",
52571
52572
  "variant",
52572
52573
  "tone",
@@ -10,8 +10,9 @@ export declare class MdsPrefThemeItem {
10
10
  */
11
11
  label?: string;
12
12
  /**
13
- * Specifies the theme name
14
- * @example 'maggioli-editore'
13
+ * Specifies the theme name; the swatch shows the preview that theme publishes,
14
+ * `--magma-preview-<name>-wash` and `--magma-preview-<name>-accent`
15
+ * @example 'editorial'
15
16
  */
16
17
  readonly name: string;
17
18
  /**
@@ -28,5 +29,11 @@ export declare class MdsPrefThemeItem {
28
29
  selectThemeEvent: EventEmitter<MdsPrefThemeEventDetail>;
29
30
  componentWillRender(): void;
30
31
  private handleClick;
32
+ /**
33
+ * The preview of the theme the item names, which the styles of that theme publish on the page
34
+ * (`--magma-preview-<name>-{wash,accent}`, #692), so the item shows its own theme and not the
35
+ * active one. The stylesheet falls back to the active theme when a theme publishes none.
36
+ */
37
+ private previewStyle;
31
38
  render(): any;
32
39
  }
@@ -2503,8 +2503,8 @@ export namespace Components {
2503
2503
  */
2504
2504
  "label"?: string;
2505
2505
  /**
2506
- * Specifies the theme name
2507
- * @example 'maggioli-editore'
2506
+ * Specifies the theme name; the swatch shows the preview that theme publishes, `--magma-preview-<name>-wash` and `--magma-preview-<name>-accent`
2507
+ * @example 'editorial'
2508
2508
  * @default 'default'
2509
2509
  */
2510
2510
  "name": string;
@@ -8042,8 +8042,8 @@ declare namespace LocalJSX {
8042
8042
  */
8043
8043
  "label"?: string;
8044
8044
  /**
8045
- * Specifies the theme name
8046
- * @example 'maggioli-editore'
8045
+ * Specifies the theme name; the swatch shows the preview that theme publishes, `--magma-preview-<name>-wash` and `--magma-preview-<name>-accent`
8046
+ * @example 'editorial'
8047
8047
  * @default 'default'
8048
8048
  */
8049
8049
  "name"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/magma",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "description": "Magma is Maggioli Design System's web-components library.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -95,12 +95,13 @@
95
95
  "CHANGELOG.md"
96
96
  ],
97
97
  "scripts": {
98
- "build": "npm run clean && npm run build.icons && npm run sync.agent-docs && stencil build --prerender --docs-readme --docs-json dist/documentation.json && npm run patch.custom-elements && npm run build.component-docs && npm run build.api-snapshot && npm run build.lint",
98
+ "build": "npm run clean && npm run build.icons && npm run sync.agent-docs && stencil build --prerender --docs-readme --docs-json dist/documentation.json && npm run patch.custom-elements && npm run build.component-docs && npm run build.api-snapshot && npm run build.lint && npm run build.preview-images",
99
99
  "build.api-snapshot": "tsx --tsconfig script.tsconfig.json ./scripts/api-snapshot.ts",
100
100
  "build.component-docs": "tsx --tsconfig script.tsconfig.json ./scripts/component-docs.ts",
101
101
  "build.docs": "stencil docs",
102
102
  "build.icons": "iconsauce --verbose --config ./.storybook/iconsauce.config.mjs --output-dictionary ./src/fixtures/icons.json --output-svg ./assets/svg --output-dump-dictionary ./src/fixtures/icons-dictionary.json && npm run sort.icons-dictionary",
103
103
  "build.lint": "tsx --tsconfig script.tsconfig.json ./scripts/build-lint.ts",
104
+ "build.preview-images": "tsx --tsconfig script.tsconfig.json ./scripts/preview-images.ts",
104
105
  "build.no-cache": "stencil build --no-cache",
105
106
  "build.watch": "npm run build.icons && stencil build -c stencil.dev.config.ts --dev --watch",
106
107
  "build.watch-no-cache": "stencil build --no-cache --watch",
@@ -141,14 +142,14 @@
141
142
  },
142
143
  "dependencies": {
143
144
  "@floating-ui/dom": "1.8.0",
144
- "@maggioli-design-system/design-tokens": "^15.4.0",
145
- "@maggioli-design-system/styles": "^17.5.0",
145
+ "@maggioli-design-system/design-tokens": "^15.5.0",
146
+ "@maggioli-design-system/styles": "^17.6.0",
146
147
  "@stencil/core": "4.45.2",
147
148
  "clsx": "2.1.1",
148
149
  "dayjs": "1.11.23",
149
150
  "filesize": "10.1.6",
150
151
  "fitty": "2.4.2",
151
- "gsap": "3.15.0",
152
+ "gsap": "3.15.1",
152
153
  "idb-keyval": "6.3.0",
153
154
  "luxon": "3.7.2",
154
155
  "mime": "4.1.2",
@@ -1 +0,0 @@
1
- import{r as e,d as t,f as s,h as i,e as h,g as a,B as n}from"./p-CvLLN-QH.js";import{L as l}from"./p-OafT80hV.js";import{M as r,p as o}from"./p-iX3kcwYg.js";import{l as d}from"./p-6pgPWpGI.js";import{m}from"./p-DiWN48aq.js";import{m as c}from"./p-Ccz0jCNB.js";const f=["bevel","notch","round","scoop","square","squircle","default"];var u={label:"Θέμα"},p={label:"Theme"},b={label:"Tema"},g={label:"Tema"};const v=class{constructor(s){e(this,s),this.themeChangeEvent=t(this,"mdsPrefThemeChange",7),this.prefChangeEvent=t(this,"mdsPrefChange",7),this.showDropdown=!1,this.localStorageAliasThemeName="mdsPrefTheme",this.localStorageAliasThemeScheme="mdsPrefThemeScheme",this.localStorageAliasCornerShape="mdsPrefCornerShape",this.t=new l({el:u,en:p,es:b,it:g}),this.clasNameThemeNamePrefix="pref-theme-",this.previousName=null,this.customPropertyAliasThemeScheme="--magma-pref-theme-scheme",this.customPropertyAliasThemeName="--magma-pref-theme",this.schemeSet={light:"pref-theme-scheme-light",dark:"pref-theme-scheme-dark",all:"pref-theme-scheme-all"},this.name="default",this.scheme="all",this.storedChoice=(e,t)=>{const s=localStorage.getItem(e);return null===s||t(s)?s:(localStorage.removeItem(e),null)},this.isThemeName=e=>null!=e&&/^[a-z]+(-[a-z]+)*$/.test(e)&&!r.includes(e)&&"scheme"!==e&&!e.startsWith("scheme-"),this.isScheme=e=>null!=e&&{}.hasOwnProperty.call(this.schemeSet,e),this.isCornerShape=e=>f.includes(e),this.triggerLabel=()=>{const e=Array.from(this.element.querySelectorAll("mds-pref-theme-item")).find((e=>{var t,s;return(null!==(s=null!==(t=e.name)&&void 0!==t?t:e.getAttribute("name"))&&void 0!==s?s:"default")===this.name}));return(null==e?void 0:e.label)||(null==e?void 0:e.getAttribute("label"))||d(this.name)},this.toggleDropdown=()=>{this.showDropdown=!this.showDropdown},this.hideThemeDropdownSelect=()=>{this.showDropdown=!1},this.changeThemeItem=()=>{this.themeItems.forEach((e=>{e.selected=!1}))},this.checkThemeSelect=()=>{this.themeItems=this.element.querySelectorAll("mds-pref-theme-item"),this.themeItems.forEach((e=>{e.selected=e.name===this.name}))},this.setTheme=(e,t)=>{if(!this.isThemeName(e))return void console.warn(`mds-pref-theme: ignoring the invalid theme name "${e}", a kebab-case name that is no mode or scheme name`);if(!this.isScheme(t))return void console.warn(`mds-pref-theme: ignoring the invalid scheme "${t}", use one of: ${Object.keys(this.schemeSet).join(", ")}`);this.name=e,this.scheme=t;const s=`${e}/${t}`;if(s===this.appliedTheme)return;const i=void 0===this.appliedTheme;if(this.appliedTheme=s,localStorage.setItem(this.localStorageAliasThemeName,this.name),localStorage.setItem(this.localStorageAliasThemeScheme,this.scheme),"undefined"!=typeof document){const e=document.querySelector("html");for(const t in this.schemeSet)({}).hasOwnProperty.call(this.schemeSet,t)&&(null==e||e.classList.remove(this.schemeSet[t]));null!==this.previousName&&""!==this.previousName&&(null==e||e.classList.remove(this.clasNameThemeNamePrefix+this.previousName)),null==e||e.setAttribute("data-theme-name",this.name),null==e||e.classList.add(this.schemeSet[this.scheme]),null==e||e.classList.add(this.clasNameThemeNamePrefix+this.name),null==e||e.style.setProperty(this.customPropertyAliasThemeName,this.name),null==e||e.style.setProperty(this.customPropertyAliasThemeScheme,this.scheme),this.previousName=this.name}o.state["theme-scheme"]=this.scheme,i||this.prefChangeEvent.emit({preference:"theme"})},this.setCornerShape=e=>{if(null==e)return;if(!this.isCornerShape(e))return void console.warn(`mds-pref-theme: ignoring the invalid corner shape "${e}", use one of: ${f.join(", ")}`);if(this.cornerShape=e,e===this.appliedCornerShape)return;const t=void 0===this.appliedCornerShape;if(this.appliedCornerShape=e,localStorage.setItem(this.localStorageAliasCornerShape,e),"undefined"!=typeof document){const t=document.querySelector("html");"default"===e?null==t||t.removeAttribute("data-corner-shape"):null==t||t.setAttribute("data-corner-shape",e)}o.state["corner-shape"]="default"===e?void 0:e,t||this.prefChangeEvent.emit({preference:"corner-shape"})}}handleNameChange(e){null!=e&&/^[a-z]+(-[a-z]+)*$/.test(e)&&(r.includes(e)||"scheme"===e||e.startsWith("scheme-")||localStorage.setItem(this.localStorageAliasThemeName,e))}handleSchemeChange(e){null!=e&&{}.hasOwnProperty.call(this.schemeSet,e)&&localStorage.setItem(this.localStorageAliasThemeScheme,e)}handleCornerShapeChange(e){null!=e&&f.includes(e)&&localStorage.setItem(this.localStorageAliasCornerShape,e)}connectedCallback(){n.isBrowser&&(this.itemsObserver=new MutationObserver((()=>s(this.element))),this.itemsObserver.observe(this.element,{attributeFilter:["label","name"],childList:!0,subtree:!0}))}componentDidLoad(){this.checkThemeSelect()}disconnectedCallback(){var e;null===(e=this.itemsObserver)||void 0===e||e.disconnect(),this.itemsObserver=void 0}componentWillRender(){var e,t,s;this.userThemeName=this.storedChoice(this.localStorageAliasThemeName,this.isThemeName),this.userThemeScheme=this.storedChoice(this.localStorageAliasThemeScheme,this.isScheme),this.setTheme(null!==(e=this.userThemeName)&&void 0!==e?e:this.name,null!==(t=this.userThemeScheme)&&void 0!==t?t:this.scheme),this.userCornerShape=this.storedChoice(this.localStorageAliasCornerShape,this.isCornerShape),this.setCornerShape(null!==(s=this.userCornerShape)&&void 0!==s?s:this.cornerShape)}handleItemSelect(e){this.changeThemeItem(),this.currentSelectedItem=e.target,this.currentSelectedItem.selected=!0;const t=e.detail.name.toLowerCase(),s=e.detail.scheme.toLowerCase();this.themeChangeEvent.emit({name:t,scheme:s}),this.showDropdown=!1,this.setTheme(t,s)}render(){return i(h,{key:"1db386671b7cfe5dc72b394d2e6a72ec4652a6eb"},i("div",{key:"b7310d70f4070deadac9f3c6f5f388d28e001da7",class:"menu"},i("mds-text",{key:"e5745f15f5b995f07fcce81d90a66e969c768f89",class:"info",typography:"caption"},i("b",{key:"e8a3c37d04d723d93affd820bc58697885298536"},this.t.get("label"))),i("mds-tab",{key:"3ae7ba5e9228edaf52967cbf1c9f194cb78824b7",fill:!0,size:this.size},i("mds-tab-item",{key:"1e6f65a7d255450d5c20bfe413cad7dd89ea85b2",selected:!0,onClick:this.toggleDropdown,expanded:this.showDropdown,id:"mds-pref-theme-nav",class:"item item--theme","icon-position":"right",icon:this.showDropdown?c:m,label:this.triggerLabel()}))),i("mds-dropdown",{key:"763f46b624f7b5c58a487cd5290b639e00c2a86a",class:"mds-pref-theme-dropdown",target:"#mds-pref-theme-nav",interaction:"none",visible:this.showDropdown,onMdsDropdownHide:this.hideThemeDropdownSelect},i("slot",{key:"0557e6dfa086c0173c3df88fe08a8a80edf74386",onSlotchange:this.checkThemeSelect})))}get element(){return a(this)}static get watchers(){return{name:[{handleNameChange:0}],scheme:[{handleSchemeChange:0}],cornerShape:[{handleCornerShapeChange:0}]}}};v.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-dropdown,mds-tab,mds-tab-item,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{display:grid;gap:calc(var(--spacing,.0025rem)*400)}.menu{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.mds-pref-theme-dropdown{gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*400)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--theme{cursor:pointer}.item--auto,.item--theme{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}";export{v as mds_pref_theme}
@@ -1,14 +0,0 @@
1
- System.register(["./p-BZP13mns.system.js","./p-Cwb0_qSC.system.js","./p-C7XBwPt0.system.js","./p-pxyGaQ-P.system.js"],(function(e){"use strict";var a,r,t,s,o,c,i;return{setters:[function(e){a=e.r;r=e.d;t=e.h;s=e.e},function(e){o=e.m},function(e){c=e.m},function(e){i=e.l}],execute:function(){var n=function(){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{--mds-pref-theme-item-color-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-pref-theme-item-color-status-error:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-pref-theme-item-color-status-success:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-pref-theme-item-color-status-warning:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-pref-theme-item-color-variant-primary:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));align-items:center;cursor:pointer;display:flex;gap:calc(var(--spacing,.0025rem)*400);justify-content:space-between}.theme-preview{background-color:var(--mds-pref-theme-item-color-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15));box-sizing:border-box;display:inline-flex;flex:none;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*100);height:calc(var(--spacing,.0025rem)*600);margin:1px;padding:calc(var(--spacing,.0025rem)*100);width:calc(var(--spacing,.0025rem)*600)}.theme-color,.theme-preview{border-radius:var(--magma-radius-full,var(--radius-full,1000px))}.theme-color{background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));height:calc(var(--spacing,.0025rem)*150);position:relative;width:calc(var(--spacing,.0025rem)*150)}.theme-color:after{border-radius:inherit;box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15)) inset;content:"";display:flex;inset:0;position:absolute}.theme-color--variant-primary{background-color:var(--mds-pref-theme-item-color-variant-primary,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))))}.theme-color--status-success{background-color:var(--mds-pref-theme-item-color-status-success,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))))}.theme-color--status-warning{background-color:var(--mds-pref-theme-item-color-status-warning,rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))))}.theme-color--status-error{background-color:var(--mds-pref-theme-item-color-status-error,rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65))))}'};var m=e("mds_pref_theme_item",/** @class */function(){function e(e){var t=this;a(this,e);this.selectThemeEvent=r(this,"mdsPrefThemeItemSelect",7);
2
- /**
3
- * Specifies the theme name
4
- * @example 'maggioli-editore'
5
- */this.name="default";
6
- /**
7
- * Specifies the theme scheme which can be 'light', 'dark' or 'all'
8
- */this.scheme="all";
9
- /**
10
- * Specifies if the element is selected
11
- */this.selected=false;this.handleClick=function(){t.selectThemeEvent.emit({name:t.name,scheme:t.scheme})}}e.prototype.componentWillRender=function(){var e;if(((e=this.label)!==null&&e!==void 0?e:"")===""){this.label=i(this.name)}};e.prototype.render=function(){
12
- // the item is an entry of the `menu` the mds-dropdown of the controller opens:
13
- // without the role axe rejects it as a child of that menu (aria-required-children)
14
- return t(s,{key:"167ef44045cb7292a32c73669516c6fb9c686686",onClick:this.handleClick,role:"menuitem"},t("mds-button",{key:"62368f8c0500ead7f3efef7dc4464e90fa4e9c4f",icon:this.selected?o:c,variant:"dark",tone:"text",label:this.label}),t("span",{key:"cca2d409f862a20476cbf2de195506c21d26faab","aria-hidden":"true",class:"theme-preview"},t("span",{key:"e4d5f799fa31cbe336a18b8caeb65abc95c8ed1f",class:"theme-color theme-color--variant-primary"}),t("span",{key:"a0d9672e7e59c86147cbe2cf0d4006c14b8b9b82",class:"theme-color theme-color--status-success"}),t("span",{key:"86f92c2637a84aa08ff6b4d2bced727e66f6533d",class:"theme-color theme-color--status-warning"}),t("span",{key:"fc15c8e6dc928760e2aa9dbad27a8250fd194d00",class:"theme-color theme-color--status-error"})))};return e}());m.style=n()}}}));
@@ -1 +0,0 @@
1
- import{r as a,d as e,h as r,e as s}from"./p-CvLLN-QH.js";import{m as t}from"./p-BFhO-KUe.js";import{m as o}from"./p-lZldSMeV.js";import{l as i}from"./p-6pgPWpGI.js";const c=class{constructor(r){a(this,r),this.selectThemeEvent=e(this,"mdsPrefThemeItemSelect",7),this.name="default",this.scheme="all",this.selected=!1,this.handleClick=()=>{this.selectThemeEvent.emit({name:this.name,scheme:this.scheme})}}componentWillRender(){var a;""===(null!==(a=this.label)&&void 0!==a?a:"")&&(this.label=i(this.name))}render(){return r(s,{key:"167ef44045cb7292a32c73669516c6fb9c686686",onClick:this.handleClick,role:"menuitem"},r("mds-button",{key:"62368f8c0500ead7f3efef7dc4464e90fa4e9c4f",icon:this.selected?t:o,variant:"dark",tone:"text",label:this.label}),r("span",{key:"cca2d409f862a20476cbf2de195506c21d26faab","aria-hidden":"true",class:"theme-preview"},r("span",{key:"e4d5f799fa31cbe336a18b8caeb65abc95c8ed1f",class:"theme-color theme-color--variant-primary"}),r("span",{key:"a0d9672e7e59c86147cbe2cf0d4006c14b8b9b82",class:"theme-color theme-color--status-success"}),r("span",{key:"86f92c2637a84aa08ff6b4d2bced727e66f6533d",class:"theme-color theme-color--status-warning"}),r("span",{key:"fc15c8e6dc928760e2aa9dbad27a8250fd194d00",class:"theme-color theme-color--status-error"})))}};c.style='@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{--mds-pref-theme-item-color-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-pref-theme-item-color-status-error:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-pref-theme-item-color-status-success:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-pref-theme-item-color-status-warning:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-pref-theme-item-color-variant-primary:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));align-items:center;cursor:pointer;display:flex;gap:calc(var(--spacing,.0025rem)*400);justify-content:space-between}.theme-preview{background-color:var(--mds-pref-theme-item-color-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15));box-sizing:border-box;display:inline-flex;flex:none;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*100);height:calc(var(--spacing,.0025rem)*600);margin:1px;padding:calc(var(--spacing,.0025rem)*100);width:calc(var(--spacing,.0025rem)*600)}.theme-color,.theme-preview{border-radius:var(--magma-radius-full,var(--radius-full,1000px))}.theme-color{background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));height:calc(var(--spacing,.0025rem)*150);position:relative;width:calc(var(--spacing,.0025rem)*150)}.theme-color:after{border-radius:inherit;box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15)) inset;content:"";display:flex;inset:0;position:absolute}.theme-color--variant-primary{background-color:var(--mds-pref-theme-item-color-variant-primary,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))))}.theme-color--status-success{background-color:var(--mds-pref-theme-item-color-status-success,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))))}.theme-color--status-warning{background-color:var(--mds-pref-theme-item-color-status-warning,rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))))}.theme-color--status-error{background-color:var(--mds-pref-theme-item-color-status-error,rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65))))}';export{c as mds_pref_theme_item}