@maggioli-design-system/magma 2.4.0 → 2.4.1

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 (362) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +13 -0
  3. package/dist/cjs/{floating-controller-BxER7sig.js → floating-controller-BiwDIKXd.js} +1 -1
  4. package/dist/cjs/mds-dropdown.cjs.entry.js +2 -2
  5. package/dist/cjs/mds-emoji.cjs.entry.js +35 -5
  6. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
  7. package/dist/cjs/mds-input-switch_2.cjs.entry.js +1 -1
  8. package/dist/cjs/mds-modal.cjs.entry.js +1 -1
  9. package/dist/cjs/mds-pref-mode.cjs.entry.js +1 -1
  10. package/dist/cjs/mds-push-notification.cjs.entry.js +1 -1
  11. package/dist/cjs/mds-radial-menu.cjs.entry.js +2 -2
  12. package/dist/cjs/mds-tab_2.cjs.entry.js +1 -1
  13. package/dist/cjs/mds-toast.cjs.entry.js +1 -1
  14. package/dist/cjs/mds-tooltip.cjs.entry.js +2 -2
  15. package/dist/cjs/mds-tree-item.cjs.entry.js +2 -2
  16. package/dist/cjs/{unit-Cm341q1R.js → unit-JdmHaLT3.js} +1 -1
  17. package/dist/collection/common/unit.js +1 -1
  18. package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
  19. package/dist/collection/components/mds-accordion/documentation.json +1 -1
  20. package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
  21. package/dist/collection/components/mds-accordion-item/documentation.json +1 -1
  22. package/dist/collection/components/mds-accordion-timer/AGENTS.md +1 -1
  23. package/dist/collection/components/mds-accordion-timer/documentation.json +1 -1
  24. package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +1 -1
  25. package/dist/collection/components/mds-accordion-timer-item/documentation.json +1 -1
  26. package/dist/collection/components/mds-author/AGENTS.md +1 -1
  27. package/dist/collection/components/mds-author/documentation.json +1 -1
  28. package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
  29. package/dist/collection/components/mds-avatar/documentation.json +1 -1
  30. package/dist/collection/components/mds-avatar-stack/AGENTS.md +1 -1
  31. package/dist/collection/components/mds-avatar-stack/documentation.json +1 -1
  32. package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
  33. package/dist/collection/components/mds-avatar-stack-item/documentation.json +1 -1
  34. package/dist/collection/components/mds-badge/AGENTS.md +1 -1
  35. package/dist/collection/components/mds-badge/documentation.json +1 -1
  36. package/dist/collection/components/mds-banner/AGENTS.md +1 -1
  37. package/dist/collection/components/mds-banner/documentation.json +1 -1
  38. package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
  39. package/dist/collection/components/mds-benchmark-bar/documentation.json +1 -1
  40. package/dist/collection/components/mds-bibliography/AGENTS.md +1 -1
  41. package/dist/collection/components/mds-bibliography/documentation.json +1 -1
  42. package/dist/collection/components/mds-breadcrumb/AGENTS.md +1 -1
  43. package/dist/collection/components/mds-breadcrumb/documentation.json +1 -1
  44. package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +1 -1
  45. package/dist/collection/components/mds-breadcrumb-item/documentation.json +1 -1
  46. package/dist/collection/components/mds-button/AGENTS.md +1 -1
  47. package/dist/collection/components/mds-button/documentation.json +1 -1
  48. package/dist/collection/components/mds-button-dropdown/AGENTS.md +1 -1
  49. package/dist/collection/components/mds-button-dropdown/documentation.json +1 -1
  50. package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
  51. package/dist/collection/components/mds-button-group/documentation.json +1 -1
  52. package/dist/collection/components/mds-calendar/AGENTS.md +1 -1
  53. package/dist/collection/components/mds-calendar/documentation.json +1 -1
  54. package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
  55. package/dist/collection/components/mds-calendar-cell/documentation.json +1 -1
  56. package/dist/collection/components/mds-card/AGENTS.md +1 -1
  57. package/dist/collection/components/mds-card/documentation.json +1 -1
  58. package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
  59. package/dist/collection/components/mds-card-content/documentation.json +1 -1
  60. package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
  61. package/dist/collection/components/mds-card-footer/documentation.json +1 -1
  62. package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
  63. package/dist/collection/components/mds-card-header/documentation.json +1 -1
  64. package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
  65. package/dist/collection/components/mds-card-media/documentation.json +1 -1
  66. package/dist/collection/components/mds-chip/AGENTS.md +1 -1
  67. package/dist/collection/components/mds-chip/documentation.json +1 -1
  68. package/dist/collection/components/mds-details/AGENTS.md +1 -1
  69. package/dist/collection/components/mds-details/documentation.json +1 -1
  70. package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
  71. package/dist/collection/components/mds-dropdown/documentation.json +1 -1
  72. package/dist/collection/components/mds-emoji/AGENTS.md +2 -2
  73. package/dist/collection/components/mds-emoji/documentation.json +2 -2
  74. package/dist/collection/components/mds-emoji/mds-emoji.js +34 -4
  75. package/dist/collection/components/mds-entity/AGENTS.md +1 -1
  76. package/dist/collection/components/mds-entity/documentation.json +1 -1
  77. package/dist/collection/components/mds-file/AGENTS.md +1 -1
  78. package/dist/collection/components/mds-file/documentation.json +1 -1
  79. package/dist/collection/components/mds-file-preview/AGENTS.md +1 -1
  80. package/dist/collection/components/mds-file-preview/documentation.json +1 -1
  81. package/dist/collection/components/mds-filter/AGENTS.md +1 -1
  82. package/dist/collection/components/mds-filter/documentation.json +1 -1
  83. package/dist/collection/components/mds-filter-item/AGENTS.md +1 -1
  84. package/dist/collection/components/mds-filter-item/documentation.json +1 -1
  85. package/dist/collection/components/mds-header/AGENTS.md +1 -1
  86. package/dist/collection/components/mds-header/documentation.json +1 -1
  87. package/dist/collection/components/mds-header-bar/AGENTS.md +1 -1
  88. package/dist/collection/components/mds-header-bar/documentation.json +1 -1
  89. package/dist/collection/components/mds-help/AGENTS.md +1 -1
  90. package/dist/collection/components/mds-help/documentation.json +1 -1
  91. package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +1 -1
  92. package/dist/collection/components/mds-horizontal-scroll/documentation.json +1 -1
  93. package/dist/collection/components/mds-hr/AGENTS.md +1 -1
  94. package/dist/collection/components/mds-hr/documentation.json +1 -1
  95. package/dist/collection/components/mds-icon/AGENTS.md +1 -1
  96. package/dist/collection/components/mds-icon/documentation.json +1 -1
  97. package/dist/collection/components/mds-img/AGENTS.md +1 -1
  98. package/dist/collection/components/mds-img/documentation.json +1 -1
  99. package/dist/collection/components/mds-input/AGENTS.md +1 -1
  100. package/dist/collection/components/mds-input/documentation.json +1 -1
  101. package/dist/collection/components/mds-input-date/AGENTS.md +1 -1
  102. package/dist/collection/components/mds-input-date/documentation.json +1 -1
  103. package/dist/collection/components/mds-input-date-range/AGENTS.md +1 -1
  104. package/dist/collection/components/mds-input-date-range/documentation.json +1 -1
  105. package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +1 -1
  106. package/dist/collection/components/mds-input-date-range-preselection/documentation.json +1 -1
  107. package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
  108. package/dist/collection/components/mds-input-field/documentation.json +1 -1
  109. package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
  110. package/dist/collection/components/mds-input-otp/documentation.json +1 -1
  111. package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
  112. package/dist/collection/components/mds-input-range/documentation.json +1 -1
  113. package/dist/collection/components/mds-input-select/AGENTS.md +1 -1
  114. package/dist/collection/components/mds-input-select/documentation.json +1 -1
  115. package/dist/collection/components/mds-input-switch/AGENTS.md +1 -1
  116. package/dist/collection/components/mds-input-switch/documentation.json +1 -1
  117. package/dist/collection/components/mds-input-switch/mds-input-switch.css +5 -3
  118. package/dist/collection/components/mds-input-tip/AGENTS.md +1 -1
  119. package/dist/collection/components/mds-input-tip/documentation.json +1 -1
  120. package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
  121. package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
  122. package/dist/collection/components/mds-input-upload/AGENTS.md +1 -1
  123. package/dist/collection/components/mds-input-upload/documentation.json +1 -1
  124. package/dist/collection/components/mds-keyboard/AGENTS.md +1 -1
  125. package/dist/collection/components/mds-keyboard/documentation.json +1 -1
  126. package/dist/collection/components/mds-keyboard-key/AGENTS.md +1 -1
  127. package/dist/collection/components/mds-keyboard-key/documentation.json +1 -1
  128. package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
  129. package/dist/collection/components/mds-kpi/documentation.json +1 -1
  130. package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
  131. package/dist/collection/components/mds-kpi-item/documentation.json +1 -1
  132. package/dist/collection/components/mds-label/AGENTS.md +1 -1
  133. package/dist/collection/components/mds-label/documentation.json +1 -1
  134. package/dist/collection/components/mds-list/AGENTS.md +1 -1
  135. package/dist/collection/components/mds-list/documentation.json +1 -1
  136. package/dist/collection/components/mds-list-item/AGENTS.md +1 -1
  137. package/dist/collection/components/mds-list-item/documentation.json +1 -1
  138. package/dist/collection/components/mds-mention/AGENTS.md +1 -1
  139. package/dist/collection/components/mds-mention/documentation.json +1 -1
  140. package/dist/collection/components/mds-modal/AGENTS.md +1 -1
  141. package/dist/collection/components/mds-modal/documentation.json +1 -1
  142. package/dist/collection/components/mds-note/AGENTS.md +1 -1
  143. package/dist/collection/components/mds-note/documentation.json +1 -1
  144. package/dist/collection/components/mds-notification/AGENTS.md +1 -1
  145. package/dist/collection/components/mds-notification/documentation.json +1 -1
  146. package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
  147. package/dist/collection/components/mds-paginator/documentation.json +1 -1
  148. package/dist/collection/components/mds-paginator-item/AGENTS.md +1 -1
  149. package/dist/collection/components/mds-paginator-item/documentation.json +1 -1
  150. package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
  151. package/dist/collection/components/mds-policy-ai/documentation.json +1 -1
  152. package/dist/collection/components/mds-pref/AGENTS.md +1 -1
  153. package/dist/collection/components/mds-pref/documentation.json +1 -1
  154. package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
  155. package/dist/collection/components/mds-pref-animation/documentation.json +1 -1
  156. package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
  157. package/dist/collection/components/mds-pref-consumption/documentation.json +1 -1
  158. package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
  159. package/dist/collection/components/mds-pref-contrast/documentation.json +1 -1
  160. package/dist/collection/components/mds-pref-language/AGENTS.md +1 -1
  161. package/dist/collection/components/mds-pref-language/documentation.json +1 -1
  162. package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
  163. package/dist/collection/components/mds-pref-language-item/documentation.json +1 -1
  164. package/dist/collection/components/mds-pref-mode/AGENTS.md +1 -1
  165. package/dist/collection/components/mds-pref-mode/documentation.json +1 -1
  166. package/dist/collection/components/mds-pref-theme/AGENTS.md +1 -1
  167. package/dist/collection/components/mds-pref-theme/documentation.json +1 -1
  168. package/dist/collection/components/mds-pref-theme-item/AGENTS.md +1 -1
  169. package/dist/collection/components/mds-pref-theme-item/documentation.json +1 -1
  170. package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
  171. package/dist/collection/components/mds-price-table/documentation.json +1 -1
  172. package/dist/collection/components/mds-price-table-features/AGENTS.md +1 -1
  173. package/dist/collection/components/mds-price-table-features/documentation.json +1 -1
  174. package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +1 -1
  175. package/dist/collection/components/mds-price-table-features-cell/documentation.json +1 -1
  176. package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
  177. package/dist/collection/components/mds-price-table-features-row/documentation.json +1 -1
  178. package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
  179. package/dist/collection/components/mds-price-table-header/documentation.json +1 -1
  180. package/dist/collection/components/mds-price-table-list/AGENTS.md +1 -1
  181. package/dist/collection/components/mds-price-table-list/documentation.json +1 -1
  182. package/dist/collection/components/mds-price-table-list-item/AGENTS.md +1 -1
  183. package/dist/collection/components/mds-price-table-list-item/documentation.json +1 -1
  184. package/dist/collection/components/mds-progress/AGENTS.md +1 -1
  185. package/dist/collection/components/mds-progress/documentation.json +1 -1
  186. package/dist/collection/components/mds-push-notification/AGENTS.md +1 -1
  187. package/dist/collection/components/mds-push-notification/documentation.json +1 -1
  188. package/dist/collection/components/mds-push-notification-item/AGENTS.md +1 -1
  189. package/dist/collection/components/mds-push-notification-item/documentation.json +1 -1
  190. package/dist/collection/components/mds-quote/AGENTS.md +1 -1
  191. package/dist/collection/components/mds-quote/documentation.json +1 -1
  192. package/dist/collection/components/mds-radial-menu/AGENTS.md +1 -1
  193. package/dist/collection/components/mds-radial-menu/documentation.json +1 -1
  194. package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
  195. package/dist/collection/components/mds-radial-menu-item/documentation.json +1 -1
  196. package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
  197. package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
  198. package/dist/collection/components/mds-separator/AGENTS.md +1 -1
  199. package/dist/collection/components/mds-separator/documentation.json +1 -1
  200. package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
  201. package/dist/collection/components/mds-spinner/documentation.json +1 -1
  202. package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
  203. package/dist/collection/components/mds-status-bar/documentation.json +1 -1
  204. package/dist/collection/components/mds-stepper-bar/AGENTS.md +1 -1
  205. package/dist/collection/components/mds-stepper-bar/documentation.json +1 -1
  206. package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +1 -1
  207. package/dist/collection/components/mds-stepper-bar-item/documentation.json +1 -1
  208. package/dist/collection/components/mds-tab/AGENTS.md +1 -1
  209. package/dist/collection/components/mds-tab/documentation.json +1 -1
  210. package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
  211. package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
  212. package/dist/collection/components/mds-tab-bar-item/AGENTS.md +1 -1
  213. package/dist/collection/components/mds-tab-bar-item/documentation.json +1 -1
  214. package/dist/collection/components/mds-tab-item/AGENTS.md +1 -1
  215. package/dist/collection/components/mds-tab-item/documentation.json +1 -1
  216. package/dist/collection/components/mds-table/AGENTS.md +1 -1
  217. package/dist/collection/components/mds-table/documentation.json +1 -1
  218. package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
  219. package/dist/collection/components/mds-table-body/documentation.json +1 -1
  220. package/dist/collection/components/mds-table-cell/AGENTS.md +1 -1
  221. package/dist/collection/components/mds-table-cell/documentation.json +1 -1
  222. package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
  223. package/dist/collection/components/mds-table-footer/documentation.json +1 -1
  224. package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
  225. package/dist/collection/components/mds-table-header/documentation.json +1 -1
  226. package/dist/collection/components/mds-table-header-cell/AGENTS.md +1 -1
  227. package/dist/collection/components/mds-table-header-cell/documentation.json +1 -1
  228. package/dist/collection/components/mds-table-row/AGENTS.md +1 -1
  229. package/dist/collection/components/mds-table-row/documentation.json +1 -1
  230. package/dist/collection/components/mds-text/AGENTS.md +1 -1
  231. package/dist/collection/components/mds-text/documentation.json +1 -1
  232. package/dist/collection/components/mds-toast/AGENTS.md +1 -1
  233. package/dist/collection/components/mds-toast/documentation.json +1 -1
  234. package/dist/collection/components/mds-toast-region/AGENTS.md +1 -1
  235. package/dist/collection/components/mds-toast-region/documentation.json +1 -1
  236. package/dist/collection/components/mds-tooltip/AGENTS.md +1 -1
  237. package/dist/collection/components/mds-tooltip/documentation.json +1 -1
  238. package/dist/collection/components/mds-tree/AGENTS.md +1 -1
  239. package/dist/collection/components/mds-tree/documentation.json +1 -1
  240. package/dist/collection/components/mds-tree-item/AGENTS.md +1 -1
  241. package/dist/collection/components/mds-tree-item/documentation.json +1 -1
  242. package/dist/collection/components/mds-tree-item/mds-tree-item.css +8 -5
  243. package/dist/collection/components/mds-url-view/AGENTS.md +1 -1
  244. package/dist/collection/components/mds-url-view/documentation.json +1 -1
  245. package/dist/collection/components/mds-usage/AGENTS.md +1 -1
  246. package/dist/collection/components/mds-usage/documentation.json +1 -1
  247. package/dist/collection/components/mds-video-wall/AGENTS.md +1 -1
  248. package/dist/collection/components/mds-video-wall/documentation.json +1 -1
  249. package/dist/collection/components/mds-zero/AGENTS.md +1 -1
  250. package/dist/collection/components/mds-zero/documentation.json +1 -1
  251. package/dist/components/mds-button-dropdown.js +1 -1
  252. package/dist/components/mds-dropdown.js +1 -1
  253. package/dist/components/mds-emoji.js +3 -3
  254. package/dist/components/mds-header.js +1 -1
  255. package/dist/components/mds-help.js +1 -1
  256. package/dist/components/mds-horizontal-scroll.js +1 -1
  257. package/dist/components/mds-input-date-range.js +1 -1
  258. package/dist/components/mds-input-date.js +1 -1
  259. package/dist/components/mds-input-switch.js +1 -1
  260. package/dist/components/mds-input-upload.js +1 -1
  261. package/dist/components/mds-keyboard.js +1 -1
  262. package/dist/components/mds-modal.js +1 -1
  263. package/dist/components/mds-policy-ai.js +1 -1
  264. package/dist/components/mds-pref-animation.js +1 -1
  265. package/dist/components/mds-pref-consumption.js +1 -1
  266. package/dist/components/mds-pref-contrast.js +1 -1
  267. package/dist/components/mds-pref-language.js +1 -1
  268. package/dist/components/mds-pref-mode.js +1 -1
  269. package/dist/components/mds-pref-theme.js +1 -1
  270. package/dist/components/mds-push-notification.js +1 -1
  271. package/dist/components/mds-radial-menu-item.js +1 -1
  272. package/dist/components/mds-radial-menu.js +1 -1
  273. package/dist/components/mds-status-bar.js +1 -1
  274. package/dist/components/mds-tab.js +1 -1
  275. package/dist/components/mds-table-header.js +1 -1
  276. package/dist/components/mds-table-row.js +1 -1
  277. package/dist/components/mds-toast.js +1 -1
  278. package/dist/components/mds-tooltip.js +1 -1
  279. package/dist/components/mds-tree-item.js +1 -1
  280. package/dist/components/{p-CylHulxe.js → p-BHy4k3pJ.js} +1 -1
  281. package/dist/components/{p-2gaGDQwL.js → p-BLXRGNya.js} +1 -1
  282. package/dist/components/p-C2fyy4Mv.js +1 -0
  283. package/dist/components/p-CWk1SCJg.js +1 -0
  284. package/dist/components/{p-BjFCjSw6.js → p-CWwWCzma.js} +1 -1
  285. package/dist/components/{p-DGGk8PS_.js → p-ChrRK8N9.js} +1 -1
  286. package/dist/components/{p-wHQGpA62.js → p-Ea5ilDf6.js} +1 -1
  287. package/dist/components/{p-Dleapw-k.js → p-Ebefwvkw.js} +1 -1
  288. package/dist/documentation.json +2 -2
  289. package/dist/esm/{floating-controller-BV0E_Juq.js → floating-controller-CVVcyKew.js} +1 -1
  290. package/dist/esm/mds-dropdown.entry.js +2 -2
  291. package/dist/esm/mds-emoji.entry.js +35 -5
  292. package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
  293. package/dist/esm/mds-input-switch_2.entry.js +1 -1
  294. package/dist/esm/mds-modal.entry.js +1 -1
  295. package/dist/esm/mds-pref-mode.entry.js +1 -1
  296. package/dist/esm/mds-push-notification.entry.js +1 -1
  297. package/dist/esm/mds-radial-menu.entry.js +2 -2
  298. package/dist/esm/mds-tab_2.entry.js +1 -1
  299. package/dist/esm/mds-toast.entry.js +1 -1
  300. package/dist/esm/mds-tooltip.entry.js +2 -2
  301. package/dist/esm/mds-tree-item.entry.js +2 -2
  302. package/dist/esm/polyfills/core-js.js +0 -0
  303. package/dist/esm/polyfills/dom.js +0 -0
  304. package/dist/esm/polyfills/es5-html-element.js +0 -0
  305. package/dist/esm/polyfills/index.js +0 -0
  306. package/dist/esm/polyfills/system.js +0 -0
  307. package/dist/esm/{unit-D8eZRaSQ.js → unit-CWk1SCJg.js} +1 -1
  308. package/dist/esm-es5/{floating-controller-BV0E_Juq.js → floating-controller-CVVcyKew.js} +1 -1
  309. package/dist/esm-es5/mds-dropdown.entry.js +1 -1
  310. package/dist/esm-es5/mds-emoji.entry.js +271 -251
  311. package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
  312. package/dist/esm-es5/mds-input-switch_2.entry.js +1 -1
  313. package/dist/esm-es5/mds-modal.entry.js +1 -1
  314. package/dist/esm-es5/mds-pref-mode.entry.js +1 -1
  315. package/dist/esm-es5/mds-push-notification.entry.js +1 -1
  316. package/dist/esm-es5/mds-radial-menu.entry.js +1 -1
  317. package/dist/esm-es5/mds-tab_2.entry.js +1 -1
  318. package/dist/esm-es5/mds-toast.entry.js +1 -1
  319. package/dist/esm-es5/mds-tooltip.entry.js +1 -1
  320. package/dist/esm-es5/mds-tree-item.entry.js +1 -1
  321. package/dist/esm-es5/unit-CWk1SCJg.js +1 -0
  322. package/dist/hydrate/index.js +37 -7
  323. package/dist/hydrate/index.mjs +37 -7
  324. package/dist/magma-components/magma-components.esm.js +1 -1
  325. package/dist/magma-components/{p-b9e0b31d.entry.js → p-14ef1aec.entry.js} +1 -1
  326. package/dist/magma-components/{p-d0f257d9.system.entry.js → p-1d68fc4a.system.entry.js} +1 -1
  327. package/dist/magma-components/{p-1809e47d.system.entry.js → p-287d1253.system.entry.js} +51 -31
  328. package/dist/magma-components/{p-53bcfdbb.entry.js → p-2e8f703e.entry.js} +1 -1
  329. package/dist/magma-components/{p-dba5a6da.entry.js → p-357ec8c0.entry.js} +1 -1
  330. package/dist/magma-components/{p-3725c2c1.entry.js → p-4800a310.entry.js} +1 -1
  331. package/dist/magma-components/{p-b6b7dc40.entry.js → p-5cef4711.entry.js} +1 -1
  332. package/dist/magma-components/p-61f0ebf3.entry.js +1 -0
  333. package/dist/magma-components/{p-f28e048b.system.entry.js → p-677ef2a3.system.entry.js} +1 -1
  334. package/dist/magma-components/{p-b728638c.system.entry.js → p-7448435b.system.entry.js} +1 -1
  335. package/dist/magma-components/{p-2aab3752.entry.js → p-7502528c.entry.js} +1 -1
  336. package/dist/magma-components/{p-8f5f2dfe.system.entry.js → p-815801dd.system.entry.js} +2 -2
  337. package/dist/magma-components/{p-be741e35.entry.js → p-8c66c761.entry.js} +1 -1
  338. package/dist/magma-components/{p-9e4e1a86.system.entry.js → p-914d1b2a.system.entry.js} +1 -1
  339. package/dist/magma-components/{p-505fb7d4.entry.js → p-91ed604f.entry.js} +1 -1
  340. package/dist/magma-components/{p-dc3ef031.system.entry.js → p-938dbe67.system.entry.js} +3 -3
  341. package/dist/magma-components/p-B-nayZ3E.system.js +1 -0
  342. package/dist/magma-components/p-CWk1SCJg.js +1 -0
  343. package/dist/magma-components/{p-5vJawLPw.system.js → p-DVjUXVFl.system.js} +1 -1
  344. package/dist/magma-components/{p-ZaZnuNvg.js → p-DmFo8_MF.js} +1 -1
  345. package/dist/magma-components/p-QYez4sql.system.js +1 -1
  346. package/dist/magma-components/{p-2f3c6105.entry.js → p-b169ee9b.entry.js} +1 -1
  347. package/dist/magma-components/{p-3eaeb263.system.entry.js → p-bdd18c90.system.entry.js} +1 -1
  348. package/dist/magma-components/{p-db75bf05.system.entry.js → p-c6b16493.system.entry.js} +1 -1
  349. package/dist/magma-components/{p-ce2ef293.system.entry.js → p-c6b9a14e.system.entry.js} +1 -1
  350. package/dist/magma-components/{p-2a2b7c43.entry.js → p-c72651b2.entry.js} +1 -1
  351. package/dist/magma-components/{p-dbb82d72.system.entry.js → p-cfe080ab.system.entry.js} +1 -1
  352. package/dist/magma-components/{p-a61623f9.system.entry.js → p-e1ce306a.system.entry.js} +1 -1
  353. package/dist/magma-components/{p-972ff8a9.entry.js → p-e73cc6fc.entry.js} +3 -3
  354. package/dist/stats.json +220 -220
  355. package/dist/types/components/mds-emoji/mds-emoji.d.ts +2 -0
  356. package/package.json +8 -8
  357. package/dist/components/p-AFBkzOrP.js +0 -1
  358. package/dist/components/p-D8eZRaSQ.js +0 -1
  359. package/dist/esm-es5/unit-D8eZRaSQ.js +0 -1
  360. package/dist/magma-components/p-6b01ef3b.entry.js +0 -1
  361. package/dist/magma-components/p-D8eZRaSQ.js +0 -1
  362. package/dist/magma-components/p-_X0N_X__.system.js +0 -1
@@ -1 +1 @@
1
- import{p as t,H as a,d as s,h as r,c as e,t as i}from"./p-B2p5a1Y8.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-D8eZRaSQ.js";import{p as b}from"./p-BlnEiKN4.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:"780966a4389bc21db5a6236aad4e2af6b2d3192b","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:"2f75159dd2f2d3157942333d6fbe38d50db7eefc",class:l("tabs-wrapper",this.fill&&"tabs-wrapper--fill",!this.hasContent&&"tabs-wrapper--no-content")},this.overflow&&r("div",{key:"fed97d11b8ecaad311ba6d2786f9b943746db74d",class:l("tabs-wrapper-overflow-left",this.overflowLeft&&"tabs-wrapper-overflow-left--show")}),this.overflow&&r("div",{key:"e3820235416a017c11a709512f88b04a4e3011c4",class:l("tabs-wrapper-overflow-right",this.overflowRight&&"tabs-wrapper-overflow-right--show")}),r("div",{key:"e5e2dbfd2794f24e70ca7f6a3b16945abd65edd0",class:"tabs",part:"tabs",role:this.navigation?void 0:"tablist"},r("slot",{key:"d918fa0ba194bffdc4f563e17450cc3c4b6704ca"}),"slide"===this.animation&&r("div",{key:"49e15a844be7dd7632191e9f7f1b508be34a2f62",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:"5906706f684aeb6f0be7dd1abea27746d71716cf",class:l("contents",!this.hasContent&&"contents--empty"),part:"contents"},r("slot",{key:"088916022b6a8cbc4ab595202aadbfac4bd16d4d",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)) -2px #00000060;--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 2px var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-transition-duration:.5s;--private-tab-transition-duration:var(--mds-tab-transition-duration,.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,.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,.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:.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
+ import{p as t,H as a,d as s,h as r,c as e,t as i}from"./p-B2p5a1Y8.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-BlnEiKN4.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:"780966a4389bc21db5a6236aad4e2af6b2d3192b","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:"2f75159dd2f2d3157942333d6fbe38d50db7eefc",class:l("tabs-wrapper",this.fill&&"tabs-wrapper--fill",!this.hasContent&&"tabs-wrapper--no-content")},this.overflow&&r("div",{key:"fed97d11b8ecaad311ba6d2786f9b943746db74d",class:l("tabs-wrapper-overflow-left",this.overflowLeft&&"tabs-wrapper-overflow-left--show")}),this.overflow&&r("div",{key:"e3820235416a017c11a709512f88b04a4e3011c4",class:l("tabs-wrapper-overflow-right",this.overflowRight&&"tabs-wrapper-overflow-right--show")}),r("div",{key:"e5e2dbfd2794f24e70ca7f6a3b16945abd65edd0",class:"tabs",part:"tabs",role:this.navigation?void 0:"tablist"},r("slot",{key:"d918fa0ba194bffdc4f563e17450cc3c4b6704ca"}),"slide"===this.animation&&r("div",{key:"49e15a844be7dd7632191e9f7f1b508be34a2f62",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:"5906706f684aeb6f0be7dd1abea27746d71716cf",class:l("contents",!this.hasContent&&"contents--empty"),part:"contents"},r("slot",{key:"088916022b6a8cbc4ab595202aadbfac4bd16d4d",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)) -2px #00000060;--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 2px var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-transition-duration:.5s;--private-tab-transition-duration:var(--mds-tab-transition-duration,.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,.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,.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:.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{o as t,f as i,s,a as e,c as r,b as h}from"./p-BaFfIZGB.js";import{c as a}from"./p-D8eZRaSQ.js";import{s as o,h as n}from"./p-Cvhn9asj.js";import{B as l}from"./p-B2p5a1Y8.js";const c=["dialog","grid","listbox","menu","tree"],d=["button","combobox","link","menuitem","tab","treeitem"],m=["A","BUTTON","INPUT","SELECT","SUMMARY","TEXTAREA"];class p{constructor(a,p,u="menu"){this._wired=!1,this._written=[],this._labelledByOurs=!1,this.unwireCaller=()=>{this._written.forEach((t=>this._caller.removeAttribute(t))),this._written=[],this._labelledByOurs&&(this._host.removeAttribute("aria-labelledby"),this._labelledByOurs=!1)},this.writeOnCaller=(t,i)=>{this._caller.hasAttribute(t)||(this._caller.setAttribute(t,i),this._written.push(t))},this.sameRoot=()=>this._caller.getRootNode()===this._host.getRootNode(),this.callerAcceptsWiring=()=>{const t=this._caller.getAttribute("role");return null!==t?d.includes(t):m.includes(this._caller.tagName)},this.wireCaller=async()=>{var t,i,s;const e=this._caller;if(l.isBrowser&&e.tagName.startsWith("MDS-")&&(await customElements.whenDefined(e.tagName.toLowerCase()),await(null===(i=(t=e).componentOnReady)||void 0===i?void 0:i.call(t))),e!==this._caller)return;if("tooltip"===this._role){if(this.sameRoot()){const t=o(this._host,"id",n("mds-tooltip"));this.writeOnCaller("label"===this._host.relation?"aria-labelledby":"aria-describedby",t)}return}if(!this.callerAcceptsWiring())return;if(this.sameRoot()){const t=o(this._host,"id",n("mds-dropdown")),i=o(e,"id",n("mds-dropdown-caller"));this.writeOnCaller("aria-controls",t),this._labelledByOurs=!this._host.hasAttribute("aria-labelledby"),o(this._host,"aria-labelledby",i)}const r=null!==(s=this._host.getAttribute("role"))&&void 0!==s?s:"";c.includes(r)&&this.writeOnCaller("aria-haspopup",r),e.hasAttribute("aria-expanded")||this._written.push("aria-expanded"),this._wired=!0,this.syncExpanded(this._host.visible)},this.arrowInset=(t,i)=>{const{arrow:s}=t,e={bottom:"",left:"",right:"",top:""};if(void 0===s)return{};switch(i){case"bottom":e.left=null!==s.x?`${s.x}px`:"",e.top="100%";break;case"left":e.right="100%",e.top=null!==s.y?`${s.y}px`:"";break;case"right":e.left="100%",e.top=null!==s.y?`${s.y}px`:"";break;case"top":e.left=null!==s.x?`${s.x}px`:"",e.top=""}return e},this.arrowTransform=t=>{let i=!this._host.hideArrow&&this._host.visible?"scale(1)":"scale(0)";switch(t){case"bottom":i=`rotate(180deg) ${i} translate(0, -100%)`;break;case"left":i=`rotate(-90deg) ${i} translate(50%, -50%)`;break;case"right":i=`rotate(90deg) ${i} translate(-50%, -50%)`;break;case"top":i=`rotate(0deg) ${i} translate(0, 0)`}return{transform:i}},this.arrowTransformOrigin=t=>{switch(t){case"bottom":default:return{transformOrigin:"center top"};case"left":return{transformOrigin:"right center"};case"right":return{transformOrigin:"left center"};case"top":return{transformOrigin:"center bottom"}}},this.arrowOrigin=(t,i)=>{const{arrow:s}=i;if(!this.arrowEl||this._host.hideArrow||void 0===s)return null;const e=t.split("-")[0];if(null!=s.x){const t=s.x+this.arrowEl.offsetWidth/2;if("bottom"===e)return`${t}px top`;if("top"===e)return`${t}px bottom`}if(null!=s.y){const t=s.y+this.arrowEl.offsetHeight/2;if("right"===e)return`left ${t}px`;if("left"===e)return`right ${t}px`}return null},this.convertToTransformOrigin=t=>({top:"center bottom",right:"left center",bottom:"center top",left:"right center","bottom-end":"top right","bottom-start":"top left","left-end":"right bottom","left-start":"right top","right-end":"left bottom","right-start":"left top","top-end":"bottom right","top-start":"bottom left"}[t]),this.calculatePosition=()=>{if(!this._caller)return;const h=new Array,a={};this._host.shiftPadding&&(a.padding=this._host.shiftPadding),this._host.offset&&h.push(t(this._host.offset)),this._host.disableAutoPlacement?this._host.flip&&h.push(i(a)):h.push(i(Object.assign(Object.assign({},a),{crossAxis:"alignment",fallbackAxisSideDirection:"end"}))),this._host.disableShift||h.push(s(a)),this.arrowEl&&!this._host.hideArrow&&h.push(e({element:this.arrowEl,padding:this._host.arrowPadding})),r(this._caller,this._host,{middleware:h,placement:this._host.placement,strategy:this._host.strategy}).then((({x:t,y:i,placement:s,middlewareData:e})=>{var r;const h=!this._host.hasAttribute("data-floating-placed");Object.assign(this._host.style,{left:`${t}px`,top:`${i}px`,transformOrigin:null!==(r=this.arrowOrigin(s,e))&&void 0!==r?r:this.convertToTransformOrigin(s),position:this._host.strategy}),h&&requestAnimationFrame((()=>this._host.setAttribute("data-floating-placed","")));const a={},o={top:"bottom",right:"left",bottom:"top",left:"right"}[s.split("-")[0]];o&&this.arrowEl&&(Object.assign(a,this.arrowTransform(o)),Object.assign(a,this.arrowInset(e,o)),Object.assign(a,this.arrowTransformOrigin(o)),Object.assign(this.arrowEl.style,a))}))},this.startWhenMeasurable=t=>{this._host.visible&&(0===this._host.offsetWidth&&t>0?requestAnimationFrame((()=>this.startWhenMeasurable(t-1))):this.cleanupAutoUpdate=h(this._caller,this._host,this.calculatePosition))},this._host=a,this.arrowEl=p,this._role=u}updateCaller(t){var i,s,e;const r=null!==(e=null===(s=null===(i=this._host.parentElement)||void 0===i?void 0:i.shadowRoot)||void 0===s?void 0:s.querySelector(t))&&void 0!==e?e:this._host.getRootNode().querySelector(t);return r?(this._caller&&this._caller!==r&&this.unwireCaller(),this._caller=r,this._wired=!1,o(this._host,"role",this._role),this.wireCaller(),r):(console.warn(`FloatingController: target not found: ${t}`),null)}rewire(){this._caller&&(this.unwireCaller(),this._wired=!1,this.wireCaller())}syncExpanded(t){this._wired&&this._caller.setAttribute("aria-expanded",`${t}`)}updatePosition(){this._host.visible&&(this.dismiss(),this.startWhenMeasurable(3))}dismiss(){this.cleanupAutoUpdate&&this.cleanupAutoUpdate()}}class u{constructor(t){this.defaultBackdropId="magma-backdrop",this.backdropBackgroundVisible="rgba(var(--magma-backdrop-color, 0 0 0) / var(--magma-backdrop-opacity, 0.1))",this.backdropBackgroundHidden="rgba(var(--magma-backdrop-color, 0 0 0) / 0)",this.backdropId=null!=t?t:this.defaultBackdropId,this.cssBackdropZIndex=`var(--${this.backdropId}-z-index, 4000)`,this.cssBackdropDuration=`var(--${this.backdropId}-animation-duration, 300ms)`}attachBackdrop(t={}){this.backdropEl||(this.backdropEl=document.createElement("div"),this.backdropEl.className=this.backdropId,this.backdropEl.style.inset="0",this.backdropEl.style.pointerEvents="none",this.backdropEl.style.position="fixed"),this.duration=t.duration||this.cssBackdropDuration,this.backdropEl.style.transition=`background-color ${this.duration} ease-out`,this.backdropEl.style.zIndex=t.zIndex||this.cssBackdropZIndex,this.backdropEl.style.backgroundColor=this.backdropBackgroundHidden,document.body.appendChild(this.backdropEl),clearTimeout(this.backdropTimer),this.backdropTimer=setTimeout((()=>{this.backdropEl.style.backgroundColor=this.backdropBackgroundVisible}),1)}detachBackdrop(){var t;this.backdropEl&&(this.backdropEl.style.backgroundColor="transparent",clearTimeout(this.backdropTimer),this.backdropTimer=setTimeout((()=>{this.backdropEl.remove()}),a(null!==(t=this.duration)&&void 0!==t?t:this.cssBackdropDuration)))}}export{u as B,p as F}
1
+ import{o as t,f as i,s,a as e,c as r,b as h}from"./p-BaFfIZGB.js";import{c as a}from"./p-CWk1SCJg.js";import{s as o,h as n}from"./p-Cvhn9asj.js";import{B as l}from"./p-B2p5a1Y8.js";const c=["dialog","grid","listbox","menu","tree"],d=["button","combobox","link","menuitem","tab","treeitem"],m=["A","BUTTON","INPUT","SELECT","SUMMARY","TEXTAREA"];class p{constructor(a,p,u="menu"){this._wired=!1,this._written=[],this._labelledByOurs=!1,this.unwireCaller=()=>{this._written.forEach((t=>this._caller.removeAttribute(t))),this._written=[],this._labelledByOurs&&(this._host.removeAttribute("aria-labelledby"),this._labelledByOurs=!1)},this.writeOnCaller=(t,i)=>{this._caller.hasAttribute(t)||(this._caller.setAttribute(t,i),this._written.push(t))},this.sameRoot=()=>this._caller.getRootNode()===this._host.getRootNode(),this.callerAcceptsWiring=()=>{const t=this._caller.getAttribute("role");return null!==t?d.includes(t):m.includes(this._caller.tagName)},this.wireCaller=async()=>{var t,i,s;const e=this._caller;if(l.isBrowser&&e.tagName.startsWith("MDS-")&&(await customElements.whenDefined(e.tagName.toLowerCase()),await(null===(i=(t=e).componentOnReady)||void 0===i?void 0:i.call(t))),e!==this._caller)return;if("tooltip"===this._role){if(this.sameRoot()){const t=o(this._host,"id",n("mds-tooltip"));this.writeOnCaller("label"===this._host.relation?"aria-labelledby":"aria-describedby",t)}return}if(!this.callerAcceptsWiring())return;if(this.sameRoot()){const t=o(this._host,"id",n("mds-dropdown")),i=o(e,"id",n("mds-dropdown-caller"));this.writeOnCaller("aria-controls",t),this._labelledByOurs=!this._host.hasAttribute("aria-labelledby"),o(this._host,"aria-labelledby",i)}const r=null!==(s=this._host.getAttribute("role"))&&void 0!==s?s:"";c.includes(r)&&this.writeOnCaller("aria-haspopup",r),e.hasAttribute("aria-expanded")||this._written.push("aria-expanded"),this._wired=!0,this.syncExpanded(this._host.visible)},this.arrowInset=(t,i)=>{const{arrow:s}=t,e={bottom:"",left:"",right:"",top:""};if(void 0===s)return{};switch(i){case"bottom":e.left=null!==s.x?`${s.x}px`:"",e.top="100%";break;case"left":e.right="100%",e.top=null!==s.y?`${s.y}px`:"";break;case"right":e.left="100%",e.top=null!==s.y?`${s.y}px`:"";break;case"top":e.left=null!==s.x?`${s.x}px`:"",e.top=""}return e},this.arrowTransform=t=>{let i=!this._host.hideArrow&&this._host.visible?"scale(1)":"scale(0)";switch(t){case"bottom":i=`rotate(180deg) ${i} translate(0, -100%)`;break;case"left":i=`rotate(-90deg) ${i} translate(50%, -50%)`;break;case"right":i=`rotate(90deg) ${i} translate(-50%, -50%)`;break;case"top":i=`rotate(0deg) ${i} translate(0, 0)`}return{transform:i}},this.arrowTransformOrigin=t=>{switch(t){case"bottom":default:return{transformOrigin:"center top"};case"left":return{transformOrigin:"right center"};case"right":return{transformOrigin:"left center"};case"top":return{transformOrigin:"center bottom"}}},this.arrowOrigin=(t,i)=>{const{arrow:s}=i;if(!this.arrowEl||this._host.hideArrow||void 0===s)return null;const e=t.split("-")[0];if(null!=s.x){const t=s.x+this.arrowEl.offsetWidth/2;if("bottom"===e)return`${t}px top`;if("top"===e)return`${t}px bottom`}if(null!=s.y){const t=s.y+this.arrowEl.offsetHeight/2;if("right"===e)return`left ${t}px`;if("left"===e)return`right ${t}px`}return null},this.convertToTransformOrigin=t=>({top:"center bottom",right:"left center",bottom:"center top",left:"right center","bottom-end":"top right","bottom-start":"top left","left-end":"right bottom","left-start":"right top","right-end":"left bottom","right-start":"left top","top-end":"bottom right","top-start":"bottom left"}[t]),this.calculatePosition=()=>{if(!this._caller)return;const h=new Array,a={};this._host.shiftPadding&&(a.padding=this._host.shiftPadding),this._host.offset&&h.push(t(this._host.offset)),this._host.disableAutoPlacement?this._host.flip&&h.push(i(a)):h.push(i(Object.assign(Object.assign({},a),{crossAxis:"alignment",fallbackAxisSideDirection:"end"}))),this._host.disableShift||h.push(s(a)),this.arrowEl&&!this._host.hideArrow&&h.push(e({element:this.arrowEl,padding:this._host.arrowPadding})),r(this._caller,this._host,{middleware:h,placement:this._host.placement,strategy:this._host.strategy}).then((({x:t,y:i,placement:s,middlewareData:e})=>{var r;const h=!this._host.hasAttribute("data-floating-placed");Object.assign(this._host.style,{left:`${t}px`,top:`${i}px`,transformOrigin:null!==(r=this.arrowOrigin(s,e))&&void 0!==r?r:this.convertToTransformOrigin(s),position:this._host.strategy}),h&&requestAnimationFrame((()=>this._host.setAttribute("data-floating-placed","")));const a={},o={top:"bottom",right:"left",bottom:"top",left:"right"}[s.split("-")[0]];o&&this.arrowEl&&(Object.assign(a,this.arrowTransform(o)),Object.assign(a,this.arrowInset(e,o)),Object.assign(a,this.arrowTransformOrigin(o)),Object.assign(this.arrowEl.style,a))}))},this.startWhenMeasurable=t=>{this._host.visible&&(0===this._host.offsetWidth&&t>0?requestAnimationFrame((()=>this.startWhenMeasurable(t-1))):this.cleanupAutoUpdate=h(this._caller,this._host,this.calculatePosition))},this._host=a,this.arrowEl=p,this._role=u}updateCaller(t){var i,s,e;const r=null!==(e=null===(s=null===(i=this._host.parentElement)||void 0===i?void 0:i.shadowRoot)||void 0===s?void 0:s.querySelector(t))&&void 0!==e?e:this._host.getRootNode().querySelector(t);return r?(this._caller&&this._caller!==r&&this.unwireCaller(),this._caller=r,this._wired=!1,o(this._host,"role",this._role),this.wireCaller(),r):(console.warn(`FloatingController: target not found: ${t}`),null)}rewire(){this._caller&&(this.unwireCaller(),this._wired=!1,this.wireCaller())}syncExpanded(t){this._wired&&this._caller.setAttribute("aria-expanded",`${t}`)}updatePosition(){this._host.visible&&(this.dismiss(),this.startWhenMeasurable(3))}dismiss(){this.cleanupAutoUpdate&&this.cleanupAutoUpdate()}}class u{constructor(t){this.defaultBackdropId="magma-backdrop",this.backdropBackgroundVisible="rgba(var(--magma-backdrop-color, 0 0 0) / var(--magma-backdrop-opacity, 0.1))",this.backdropBackgroundHidden="rgba(var(--magma-backdrop-color, 0 0 0) / 0)",this.backdropId=null!=t?t:this.defaultBackdropId,this.cssBackdropZIndex=`var(--${this.backdropId}-z-index, 4000)`,this.cssBackdropDuration=`var(--${this.backdropId}-animation-duration, 300ms)`}attachBackdrop(t={}){this.backdropEl||(this.backdropEl=document.createElement("div"),this.backdropEl.className=this.backdropId,this.backdropEl.style.inset="0",this.backdropEl.style.pointerEvents="none",this.backdropEl.style.position="fixed"),this.duration=t.duration||this.cssBackdropDuration,this.backdropEl.style.transition=`background-color ${this.duration} ease-out`,this.backdropEl.style.zIndex=t.zIndex||this.cssBackdropZIndex,this.backdropEl.style.backgroundColor=this.backdropBackgroundHidden,document.body.appendChild(this.backdropEl),clearTimeout(this.backdropTimer),this.backdropTimer=setTimeout((()=>{this.backdropEl.style.backgroundColor=this.backdropBackgroundVisible}),1)}detachBackdrop(){var t;this.backdropEl&&(this.backdropEl.style.backgroundColor="transparent",clearTimeout(this.backdropTimer),this.backdropTimer=setTimeout((()=>{this.backdropEl.remove()}),a(null!==(t=this.duration)&&void 0!==t?t:this.cssBackdropDuration)))}}export{u as B,p as F}
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-10-20T14:19:46",
2
+ "timestamp": "2026-10-21T15:26:40",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.45.2",
@@ -7960,7 +7960,7 @@
7960
7960
  "docs": "This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.",
7961
7961
  "docsTags": [],
7962
7962
  "usage": {
7963
- "1. Description": "The `<mds-emoji>` web component renders one of the Magma Design System's animated mascot illustrations (`mia` or `simi`) as an interactive SVG. It is a decorative, expressive element with no native HTML equivalent: its personality is driven entirely through imperative animation methods rather than markup or props. The illustrations are drawn in the [Magma Emoji](https://www.figma.com/design/09SuDQMZYyOKGyomr87G9c/Emoji?node-id=0-1&t=U3txjHfdwaMIRRAC-1) Figma file.\n\n#### Semantic Behavior\n\n- **Mouse following**: When started, the emoji tracks the pointer with a 3D head rotation and parallax on each facial part; it is off by default and only reacts after `startFollowMouse()` is called. It turns toward the pointer: the direction is the direction of the pointer from the centre of the emoji, and the turn grows with the distance until the pointer is half the short side of the viewport away, the same at every size of the emoji. When the user prefers reduced motion, neither the pointer tracking nor the blinking moves the face, and the expressions (`agree`, `smile`, `disagree`, `startThinking`) show their face - a smile, a frown, the thinking hand - without moving the head or the features, for as long as they would have lasted.\n- **Single-animation lock**: Only one expression plays at a time - `agree`, `smile`, `disagree`, and `startThinking` take the face over: each stops whatever is playing (a thinking pose included) and starts from the neutral face, so a later call cuts an earlier one short. `startThinking` is a no-op only while the emoji is already thinking.\n- **Promise-based methods**: Every expressive action returns a `Promise<void>` that resolves when its animation finishes, letting callers await one expression before chaining the next.\n- **State restoration**: An expression pauses mouse-following and, when it completes, restarts it if it was on: `startFollowMouse()` called and not stopped by a later `stopFollowMouse()`.\n- **Idle blinking**: `startBlinking()` runs a random blink loop on the eyes; blinks are suppressed while the emoji is busy with another animation.\n\n#### Properties & Visual Configurations\n\nThe only public prop is `name`, which selects the mascot identity. It accepts `'mia'` (the default) or `'simi'`; changing it at runtime swaps the mascot.\n\n#### Other behavioral props\n\nThere are no variant, tone, or size props. The expression is configured imperatively through method calls (`agree`, `smile`, `disagree`, `startThinking` / `stopThinking`, `startBlinking` / `stopBlinking`, `startFollowMouse` / `stopFollowMouse`), and the timing and reach of those animations are tuned through CSS custom properties - `--mds-emoji-expression-max-rotation`, the `--mds-emoji-expression-follow-mouse-*-duration` pair, the per-part `--mds-emoji-offset-*` values, and the per-mascot color tokens - rather than through attributes.\n",
7963
+ "1. Description": "The `<mds-emoji>` web component renders one of the Magma Design System's animated mascot illustrations (`mia` or `simi`) as an interactive SVG. It is a decorative, expressive element with no native HTML equivalent: its personality is driven entirely through imperative animation methods rather than markup or props. The illustrations are drawn in the [Magma Emoji](https://www.figma.com/design/09SuDQMZYyOKGyomr87G9c/Emoji?node-id=0-1&t=U3txjHfdwaMIRRAC-1) Figma file.\n\n#### Semantic Behavior\n\n- **Mouse following**: When started, the emoji tracks the pointer with a 3D head rotation and parallax on each facial part; it is off by default and only reacts after `startFollowMouse()` is called. It turns toward the pointer: the direction is the direction of the pointer from the centre of the emoji, and the turn grows with the distance until the pointer is half the short side of the viewport away, the same at every size of the emoji. An emoji placed in a slot its host renders later, or moved in the page, follows the pointer at the speed of its `--mds-emoji-expression-follow-mouse-*-duration` all the same. When the user prefers reduced motion, neither the pointer tracking nor the blinking moves the face, and the expressions (`agree`, `smile`, `disagree`, `startThinking`) show their face - a smile, a frown, the thinking hand - without moving the head or the features, for as long as they would have lasted.\n- **Single-animation lock**: Only one expression plays at a time - `agree`, `smile`, `disagree`, and `startThinking` take the face over: each stops whatever is playing (a thinking pose included) and starts from the neutral face, so a later call cuts an earlier one short. `startThinking` is a no-op only while the emoji is already thinking.\n- **Promise-based methods**: Every expressive action returns a `Promise<void>` that resolves when its animation finishes, letting callers await one expression before chaining the next.\n- **State restoration**: An expression pauses mouse-following and, when it completes, restarts it if it was on: `startFollowMouse()` called and not stopped by a later `stopFollowMouse()`.\n- **Idle blinking**: `startBlinking()` runs a random blink loop on the eyes; blinks are suppressed while the emoji is busy with another animation.\n\n#### Properties & Visual Configurations\n\nThe only public prop is `name`, which selects the mascot identity. It accepts `'mia'` (the default) or `'simi'`; changing it at runtime swaps the mascot.\n\n#### Other behavioral props\n\nThere are no variant, tone, or size props. The expression is configured imperatively through method calls (`agree`, `smile`, `disagree`, `startThinking` / `stopThinking`, `startBlinking` / `stopBlinking`, `startFollowMouse` / `stopFollowMouse`), and the timing and reach of those animations are tuned through CSS custom properties - `--mds-emoji-expression-max-rotation`, the `--mds-emoji-expression-follow-mouse-*-duration` pair, the per-part `--mds-emoji-offset-*` values, and the per-mascot color tokens - rather than through attributes.\n",
7964
7964
  "2. Pattern": "Correct and idiomatic ways to use the `<mds-emoji>` component, ordered from most common to most specialized. Patterns assume a working knowledge of the shared component rules in [`agents/conventions.md`](../../../../agents/conventions.md).\n\n#### Basic Mascot Display\n\nDrop the component anywhere to render the default mascot, Mia. The element is a square and sizes itself to the value applied via CSS `width` / `height` (it has its own default). No props are required for a static illustration.\n\n```html\n<mds-emoji></mds-emoji>\n```\n\n#### Choosing a Mascot with `name`\n\nThe `name` prop selects between the two available mascots. Use `\"mia\"` (default) for the AI-branded identity and `\"simi\"` for the human-like character. Changing `name` at runtime swaps the mascot without a page reload.\n\n```html\n<!-- Mia - the AI mascot (default) -->\n<mds-emoji name=\"mia\"></mds-emoji>\n\n<!-- Simi - the human-like mascot -->\n<mds-emoji name=\"simi\"></mds-emoji>\n```\n\n#### Sizing via CSS\n\nControl the rendered size with CSS `width` and `height` on the host - the SVG fills 100% of the host's box. The component keeps a 1:1 aspect ratio automatically.\n\n```html\n<mds-emoji name=\"mia\" style=\"width: 128px; height: 128px;\"></mds-emoji>\n```\n\n```css\n.mascot-hero mds-emoji {\n width: 240px;\n height: 240px;\n}\n```\n\n#### Mouse-Following Interaction\n\nCall `startFollowMouse()` to activate the 3D head-rotation that tracks the pointer. The feature is off by default. Call `stopFollowMouse()` to deactivate it cleanly.\n\n```html\n<mds-emoji id=\"mascot\" name=\"mia\"></mds-emoji>\n\n<script>\n const emoji = document.querySelector('#mascot');\n emoji.startFollowMouse();\n\n // later, e.g. when leaving a focused section:\n emoji.stopFollowMouse();\n</script>\n```\n\n#### Idle Blinking\n\nStart the automatic random-interval blink loop with `startBlinking()`. The blink is suppressed while another animation owns the eyes and resumes automatically afterwards.\n\n```html\n<mds-emoji id=\"mascot\" name=\"simi\"></mds-emoji>\n\n<script>\n const emoji = document.querySelector('#mascot');\n emoji.startBlinking();\n</script>\n```\n\n#### Expressing Agreement or Confirmation\n\nCall `agree()` after a successful form submission or confirmed action. The emoji nods and briefly smiles. The returned `Promise` resolves when the animation completes.\n\n```html\n<mds-emoji id=\"mascot\" name=\"mia\"></mds-emoji>\n<mds-button id=\"save-btn\" label=\"Salva\" variant=\"primary\" tone=\"strong\"></mds-button>\n\n<script>\n const emoji = document.querySelector('#mascot');\n document.querySelector('#save-btn').addEventListener('click', async () => {\n await fetch('/api/save');\n emoji.agree();\n });\n</script>\n```\n\n#### Expressing a Smile\n\nCall `smile()` for lighter positive feedback - a bounce and closed-eyes smile without the full nod. Useful on hover or focus of a featured element.\n\n```html\n<mds-emoji id=\"mascot\" name=\"mia\"></mds-emoji>\n\n<script>\n const emoji = document.querySelector('#mascot');\n document.querySelector('.feature-card').addEventListener('mouseenter', () => {\n emoji.smile();\n });\n</script>\n```\n\n#### Expressing Disagreement or Errors\n\nCall `disagree()` on validation failure or destructive confirmation. An optional `turnHappyDelay` number (in milliseconds) delays the return to the neutral face - useful when you want the serious expression to linger while an error message is visible.\n\n```html\n<mds-emoji id=\"mascot\" name=\"mia\"></mds-emoji>\n\n<script>\n const emoji = document.querySelector('#mascot');\n\n formEl.addEventListener('submit', async (e) => {\n e.preventDefault();\n const ok = await submitForm();\n if (!ok) {\n emoji.disagree(2000); // stay serious for 2 s while the error banner is visible\n }\n });\n</script>\n```\n\n#### Thinking State During Async Operations\n\nCall `startThinking()` while a request is in flight - the emoji raises a thinking hand and shifts its gaze. Call `stopThinking()` when the operation settles. Both methods accept an optional `duration` (seconds) for the transition animation.\n\n```html\n<mds-emoji id=\"mascot\" name=\"mia\"></mds-emoji>\n\n<script>\n const emoji = document.querySelector('#mascot');\n\n async function caricaDati() {\n await emoji.startThinking();\n const data = await fetch('/api/data').then((r) => r.json());\n await emoji.stopThinking();\n return data;\n }\n</script>\n```\n\n#### Chaining Expressions\n\nBecause every method returns a `Promise<void>`, you can `await` one before triggering the next. Without awaiting they still never overlap, but each call takes the face over and cuts the previous expression short.\n\n```html\n<mds-emoji id=\"mascot\" name=\"simi\"></mds-emoji>\n\n<script>\n const emoji = document.querySelector('#mascot');\n\n async function onSave() {\n await emoji.startThinking(0.4); // mostri caricamento\n await fetch('/api/salva');\n await emoji.stopThinking(0.4);\n await emoji.agree(); // conferma riuscita\n }\n</script>\n```\n\n#### CSS Customization - Animation Timing\n\nTune the mouse-follow responsiveness by overriding the documented `--mds-emoji-expression-*` custom properties on the host or a parent selector. The initial values are reasonable for most placements; reduce them for snappier feedback.\n\n```css\n.mascot-container mds-emoji {\n --mds-emoji-expression-follow-mouse-head-duration: 150ms;\n --mds-emoji-expression-follow-mouse-traits-duration: 100ms;\n --mds-emoji-expression-max-rotation: 10deg;\n}\n```\n\n#### CSS Customization - Mascot Colors\n\nOverride per-mascot color tokens to adapt the character to a custom brand palette. Use the semantic color roles (`rgb(var(--magma-<role>))`) so dark mode and named themes keep working; Simi's skin tones are data, so hex values are fine there.\n\n```css\n/* Theming Mia for a custom brand */\nmds-emoji[name='mia'] {\n --mds-emoji-mia-head-color: rgb(var(--magma-accent-surface-hover));\n --mds-emoji-mia-eyes-color: rgb(var(--magma-accent-emphasis-hover));\n --mds-emoji-mia-mouth-color: rgb(var(--magma-accent-emphasis));\n --mds-emoji-mia-hands-color: rgb(var(--magma-accent-emphasis));\n}\n\n/* Theming Simi */\nmds-emoji[name='simi'] {\n --mds-emoji-simi-skin: #f5c8a0;\n --mds-emoji-simi-skin-dark: #c8895e;\n --mds-emoji-simi-skin-light: #fdebd8;\n}\n```\n\n#### CSS Customization - Parallax Offsets\n\nIncrease or decrease the per-layer offset values to control how pronounced the parallax depth effect is when the emoji follows the mouse. Set all offsets to `0` to flatten the effect entirely.\n\n```css\n/* Subtle parallax - small offsets for compact placements */\n.compact mds-emoji {\n --mds-emoji-offset-eyes: 0.5px;\n --mds-emoji-offset-mouth: 0.5px;\n --mds-emoji-offset-eyebrows: 4px;\n --mds-emoji-offset-head: 0;\n}\n\n/* Dramatic parallax - large offsets for hero sections */\n.hero mds-emoji {\n --mds-emoji-offset-eyes: 3px;\n --mds-emoji-offset-mouth: 3px;\n --mds-emoji-offset-eyebrows: 20px;\n --mds-emoji-perspective: 250px;\n}\n```\n",
7965
7965
  "3. Antipattern": "Common incorrect uses of `<mds-emoji>`. Each entry pairs the wrong form with the right one and a one-line reason. System-wide rules (boolean-as-string, shadow piercing, Tailwind color utilities, raw native event listening) live in [`agents/anti-patterns.md`](../../../../agents/anti-patterns.md) - they apply here too but are not repeated.\n\n#### Do Not Use an Unknown `name` Value\n\nOnly `\"mia\"` and `\"simi\"` are valid values for the `name` prop. Any other string falls outside the `EmojiNames` type and is ignored with a console warning: on load no mascot is rendered, after load the mascot on screen stays.\n\n```html\n<!-- INCORRECT -->\n<mds-emoji name=\"luigi\"></mds-emoji>\n<mds-emoji name=\"robot\"></mds-emoji>\n\n<!-- CORRECT -->\n<mds-emoji name=\"mia\"></mds-emoji>\n<mds-emoji name=\"simi\"></mds-emoji>\n```\n\n#### Do Not Put Content in the Component - It Has No Slots\n\n`<mds-emoji>` renders a self-contained SVG through its shadow root and exposes no slots. Any child nodes placed between the tags are ignored entirely.\n\n```html\n<!-- INCORRECT -->\n<mds-emoji name=\"mia\">\n <span>Ciao!</span>\n</mds-emoji>\n\n<!-- CORRECT - place sibling elements outside the component -->\n<div class=\"mascot-wrapper\">\n <mds-emoji name=\"mia\"></mds-emoji>\n <p>Ciao!</p>\n</div>\n```\n\n#### Do Not Trigger Expressions Without Awaiting a Running Animation\n\n`agree()`, `smile()`, `disagree()`, and `startThinking()` each take the face over: they stop whatever is playing (a thinking pose included) and start from the neutral face. Firing them without awaiting the previous call cuts the earlier expression short.\n\n```html\n<!-- INCORRECT - the second call cuts the first one short -->\n<script>\n emoji.startThinking(); // starts thinking\n emoji.agree(); // takes over: the thinking pose is dropped at once\n</script>\n\n<!-- CORRECT - await each expression before chaining the next -->\n<script type=\"module\">\n const emoji = document.querySelector('mds-emoji');\n await emoji.startThinking(0.5);\n await fetch('/api/salva');\n await emoji.stopThinking(0.5);\n await emoji.agree();\n</script>\n```\n\n#### Do Not Use `stopThinking()` to Cancel Mid-Expression\n\n`stopThinking()` is the paired counterpart to `startThinking()`. Calling it to interrupt `agree()`, `smile()`, or `disagree()` has no effect: `stopThinking()` returns at once unless the emoji is thinking. An expression runs to completion unless another expression takes the face over.\n\n```html\n<!-- INCORRECT - stopThinking() won't cut short an agree() animation -->\n<script>\n emoji.agree();\n emoji.stopThinking(); // no-op\n</script>\n\n<!-- CORRECT - let the animation complete (await it), or accept that expressions run to completion -->\n<script type=\"module\">\n const emoji = document.querySelector('mds-emoji');\n await emoji.agree();\n // now the emoji is idle and ready for the next call\n</script>\n```\n\n#### Do Not Pierce Shadow DOM to Animate SVG Parts Directly\n\nThe internal SVG elements (eyes, mouth, head, etc.) are part of the shadow DOM and are managed by GSAP inside the component. Querying them from outside and applying CSS transforms or animations creates conflicting tweens and breaks the component's state machine.\n\n```css\n/* INCORRECT */\nmds-emoji >>> #eyes-default {\n transform: scaleY(0.5);\n}\n```\n\n```html\n<!-- CORRECT - use the documented imperative methods instead -->\n<script>\n const emoji = document.querySelector('mds-emoji');\n emoji.startBlinking(); // let the component own eye animations\n</script>\n```\n\n#### Do Not Set Per-Layer Offsets with Unitless Numbers\n\nThe `--mds-emoji-offset-*` custom properties are declared as `<length>` values. Unitless numbers are not valid lengths and will be ignored, leaving the parallax effect at the CSS `@property` initial value.\n\n```css\n/* INCORRECT - unitless values are invalid <length> */\nmds-emoji {\n --mds-emoji-offset-eyes: 3;\n --mds-emoji-offset-mouth: 2;\n}\n\n/* CORRECT - always supply a length unit */\nmds-emoji {\n --mds-emoji-offset-eyes: 3px;\n --mds-emoji-offset-mouth: 2px;\n}\n```\n\n#### Do Not Set `--mds-emoji-expression-max-rotation` Without an Angle Unit\n\n`--mds-emoji-expression-max-rotation` is declared as `<angle>`. A bare number is invalid and the property falls back to the initial value of `16deg`, so the constraint you intended is silently ignored.\n\n```css\n/* INCORRECT */\nmds-emoji {\n --mds-emoji-expression-max-rotation: 8;\n}\n\n/* CORRECT */\nmds-emoji {\n --mds-emoji-expression-max-rotation: 8deg;\n}\n```\n"
7966
7966
  },
@@ -1,5 +1,5 @@
1
1
  import { o as offset, f as flip, s as shift, a as arrow, c as computePosition, b as autoUpdate } from './floating-ui.dom-BaFfIZGB.js';
2
- import { c as cssDurationToMilliseconds } from './unit-D8eZRaSQ.js';
2
+ import { c as cssDurationToMilliseconds } from './unit-CWk1SCJg.js';
3
3
  import { s as setAttributeIfEmpty, h as hashRandomValue } from './aria-Cvhn9asj.js';
4
4
  import { B as Build } from './index-CPRkNQdE.js';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, d as createEvent, h, e as Host, g as getElement } from './index-CPRkNQdE.js';
2
2
  import { K as KeyboardManager } from './keyboard-manager-CGrPq3C4.js';
3
- import { c as cssDurationToMilliseconds } from './unit-D8eZRaSQ.js';
4
- import { B as Backdrop, F as FloatingController } from './floating-controller-BV0E_Juq.js';
3
+ import { c as cssDurationToMilliseconds } from './unit-CWk1SCJg.js';
4
+ import { B as Backdrop, F as FloatingController } from './floating-controller-CVVcyKew.js';
5
5
  import { p as preferenceStore } from './preference-Ch1zJnqq.js';
6
6
  import './floating-ui.dom-BaFfIZGB.js';
7
7
  import './aria-Cvhn9asj.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, e as Host, g as getElement, B as Build } from './index-CPRkNQdE.js';
2
- import { b as cssRotationToNumber, d as cssDurationToSeconds, a as cssSizeToNumber } from './unit-D8eZRaSQ.js';
2
+ import { b as cssRotationToNumber, d as cssDurationToSeconds, a as cssSizeToNumber } from './unit-CWk1SCJg.js';
3
3
  import { a as prefersReducedMotion } from './preference-Ch1zJnqq.js';
4
4
 
5
5
  /**
@@ -6255,6 +6255,9 @@ const MdsEmoji = class {
6255
6255
  this.mouseY = 0;
6256
6256
  this.currentRotateX = 0;
6257
6257
  this.currentRotateY = 0;
6258
+ // Whether the values below come from the computed style. They are read lazily
6259
+ // by rotate until it is available: see updateCSSCustomProps.
6260
+ this.cssCustomPropsRead = false;
6258
6261
  this.expressionAngleMax = 16; // massimo angolo di rotazione della emoji
6259
6262
  this.expressionFollowMouseHeadDuration = 0.3; // durata dell'animazione di rotazione della testa quando segue il mouse
6260
6263
  this.expressionFollowMouseTraitsDuration = 0.2; // durata dell'animazione di rotazione degli occhi e della bocca quando segue il mouse
@@ -6280,9 +6283,19 @@ const MdsEmoji = class {
6280
6283
  if (typeof window === 'undefined')
6281
6284
  return;
6282
6285
  const elementStyles = window.getComputedStyle(this.host);
6286
+ // Stencil loads children before their parents, so a slotted emoji reaches
6287
+ // componentDidLoad while its host's shadow DOM has not rendered the slot yet.
6288
+ // Outside the flat tree the computed style is empty, every value fell back and
6289
+ // the durations became 1000 seconds: the head took minutes to follow the
6290
+ // pointer. Keep the current values and let rotate read them again later.
6291
+ if (elementStyles.display === '') {
6292
+ this.cssCustomPropsRead = false;
6293
+ return;
6294
+ }
6295
+ this.cssCustomPropsRead = true;
6283
6296
  this.expressionAngleMax = cssRotationToNumber(elementStyles.getPropertyValue('--mds-emoji-expression-max-rotation'), 16);
6284
- this.expressionFollowMouseHeadDuration = cssDurationToSeconds(elementStyles.getPropertyValue('--mds-emoji-expression-follow-mouse-head-duration'));
6285
- this.expressionFollowMouseTraitsDuration = cssDurationToSeconds(elementStyles.getPropertyValue('--mds-emoji-expression-follow-mouse-traits-duration'));
6297
+ this.expressionFollowMouseHeadDuration = cssDurationToSeconds(elementStyles.getPropertyValue('--mds-emoji-expression-follow-mouse-head-duration'), 0.3);
6298
+ this.expressionFollowMouseTraitsDuration = cssDurationToSeconds(elementStyles.getPropertyValue('--mds-emoji-expression-follow-mouse-traits-duration'), 0.2);
6286
6299
  this.headOffset = cssSizeToNumber(elementStyles.getPropertyValue('--mds-emoji-offset-head'), 1);
6287
6300
  this.eyesOffset = cssSizeToNumber(elementStyles.getPropertyValue('--mds-emoji-offset-eyes'), 1);
6288
6301
  this.mouthOffset = cssSizeToNumber(elementStyles.getPropertyValue('--mds-emoji-offset-mouth'), 1);
@@ -6866,6 +6879,8 @@ const MdsEmoji = class {
6866
6879
  this.rotate(gaze.x, gaze.y, immediate);
6867
6880
  };
6868
6881
  this.rotate = (percentX, percentY, immediate = false) => {
6882
+ if (!this.cssCustomPropsRead)
6883
+ this.updateCSSCustomProps();
6869
6884
  const ease = 'power1.out';
6870
6885
  // The traits can be put in place at once instead of eased there: an expression
6871
6886
  // about to take the face over owns them from this very frame, and a tween still
@@ -6915,6 +6930,9 @@ const MdsEmoji = class {
6915
6930
  transformOrigin: '50% 50%',
6916
6931
  duration: this.expressionFollowMouseHeadDuration,
6917
6932
  ease,
6933
+ // A newer pose replaces the previous one: without it a slower tween still
6934
+ // running kept writing its own angles once the newer one had finished.
6935
+ overwrite: 'auto',
6918
6936
  });
6919
6937
  if (this.eyesEl) {
6920
6938
  gsapWithCSS.to(this.eyesEl, Object.assign({ translateX: this.eyesOffsetX, translateY: this.eyesOffsetY, transformOrigin: '50% 50%' }, traitVars));
@@ -6939,17 +6957,29 @@ const MdsEmoji = class {
6939
6957
  }
6940
6958
  };
6941
6959
  }
6960
+ // A move disconnects the host and connects it again, while componentDidLoad runs
6961
+ // once: the pointer listener follows the connection, so a moved emoji still hears it.
6962
+ connectedCallback() {
6963
+ if (typeof window === 'undefined')
6964
+ return;
6965
+ window.addEventListener('mousemove', this.handleFollowMouse);
6966
+ }
6942
6967
  componentDidLoad() {
6943
6968
  if (typeof window === 'undefined')
6944
6969
  return;
6945
6970
  this.updateCSSCustomProps();
6946
- window.addEventListener('mousemove', this.handleFollowMouse);
6947
6971
  this.checkNameChanged(this.name);
6948
6972
  }
6949
6973
  disconnectedCallback() {
6950
6974
  var _a, _b;
6951
6975
  if (typeof window === 'undefined')
6952
6976
  return;
6977
+ // In the lazy build the instance can hear of a disconnect after the host is back on
6978
+ // the page. GSAP causes one: to read the transform of a host that is not drawn (a
6979
+ // slotted emoji before its slot is rendered) it appends it to <html> for a moment
6980
+ // and puts it back. The emoji is still mounted then, nothing to tear down.
6981
+ if (this.host.isConnected)
6982
+ return;
6953
6983
  window.removeEventListener('mousemove', this.handleFollowMouse);
6954
6984
  this.isThinking = false;
6955
6985
  this.isBlinking = false;
@@ -7125,7 +7155,7 @@ const MdsEmoji = class {
7125
7155
  return element;
7126
7156
  }
7127
7157
  render() {
7128
- return h(Host, { key: '675f1b4d903aace1d61bf4b9a5e10fda8e947109' });
7158
+ return h(Host, { key: '228ea1ce5afd636026b77ac0a00462a7e2471470' });
7129
7159
  }
7130
7160
  get host() { return getElement(this); }
7131
7161
  static get watchers() { return {
@@ -2,7 +2,7 @@ import { r as registerInstance, h, e as Host, g as getElement } from './index-CP
2
2
  import { m as miBaselineArrowBack } from './arrow-back-DnEUG7st.js';
3
3
  import { m as miBaselineArrowForward } from './arrow-forward-Bd0uuNDE.js';
4
4
  import { c as clsx } from './clsx-ChV9xqsO.js';
5
- import { a as cssSizeToNumber } from './unit-D8eZRaSQ.js';
5
+ import { a as cssSizeToNumber } from './unit-CWk1SCJg.js';
6
6
  import { L as Locale } from './locale-DfpXg7qZ.js';
7
7
  import './preference-Ch1zJnqq.js';
8
8
 
@@ -69,7 +69,7 @@ var localeIt = {
69
69
  unselect: unselect
70
70
  };
71
71
 
72
- const mdsInputSwitchCss = () => `@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-font-weight:initial}}}: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-input-switch-animation-timing-adjust:1.4;--mds-input-switch-animation-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955));--mds-input-switch-box-color-enabled-checked:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-switch-box-color-enabled-unchecked:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-input-switch-box-color-disabled-checked:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-box-color-disabled-unchecked:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-box-padding-lg:calc(var(--spacing,.0025rem)*100);--mds-input-switch-box-padding-md:calc(var(--spacing,.0025rem)*100);--mds-input-switch-box-padding-sm:calc(var(--spacing,.0025rem)*100);--mds-input-switch-box-padding:var(--mds-input-switch-box-padding-md,calc(var(--spacing,.0025rem)*100));--mds-input-switch-duration:.3s;--mds-input-switch-icon-color-checked-disabled:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-checked:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-switch-icon-color-indeterminate-disabled:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-indeterminate:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-unchecked-disabled:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-unchecked:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-input-switch-icon-explicit-color:var(--mds-input-switch-icon-color-checked,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-switch-toggle-color-enabled-checked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-color-enabled-unchecked:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-input-switch-toggle-color-disabled-checked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-color-disabled-unchecked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-container-size:calc(calc(var(--mds-input-switch-toggle-size-md,calc(var(--spacing,.0025rem) * 600)) * 2) + calc(var(--mds-input-switch-box-padding-md,calc(var(--spacing,.0025rem) * 100)) * 2));--mds-input-switch-toggle-size-lg:calc(var(--spacing,.0025rem)*800);--mds-input-switch-toggle-size-md:calc(var(--spacing,.0025rem)*600);--mds-input-switch-toggle-size-sm:calc(var(--spacing,.0025rem)*400);--mds-input-switch-toggle-size:var(--mds-input-switch-toggle-size-md,calc(var(--spacing,.0025rem)*600));align-items:flex-start;display:inline-flex;gap:calc(var(--spacing,.0025rem)*200)}.field{height:0;margin:0;opacity:0;pointer-events:none;position:absolute;width:0}.label-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(--magma-radius-3xs,var(--radius-squircle-3xs,6px));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;corner-shape:var(--magma-corner-shape,squircle);align-items:baseline;cursor:pointer;display:flex;position:relative;transition-property:outline-offset,opacity}.field:focus-visible+.label-icon,.label-icon:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.label-text{cursor:pointer;display:flex}.label-text--empty{display:none}:host([type=switch]) .label-text{align-items:center;align-self:center}.icon-explicit{fill:var(--mds-input-switch-icon-explicit-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));height:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600));width:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600))}.icon-typography-checked,.icon-typography-unchecked{align-items:center;display:inline-flex}.icon-typography-checked{left:0;position:absolute;top:0}.switch-container{align-self:stretch;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));box-sizing:border-box;display:flex;flex-shrink:0;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-property:width,outline-offset,opacity;transition-timing-function:ease-in-out;width:var(--mds-input-switch-toggle-container-size,calc(var(--spacing,.0025rem)*600*2 + var(--spacing,.0025rem)*100*2))}.field:focus-visible+.switch-container,.switch-container:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.switch{background-color:var(--mds-input-switch-box-color-enabled-unchecked,rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140))));box-sizing:border-box;cursor:pointer;display:inline-flex;flex-shrink:0;height:min-content;padding:var(--mds-input-switch-box-padding,calc(var(--spacing,.0025rem)*100));transition-duration:var(--mds-input-switch-duration,.3s);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1));width:var(--mds-input-switch-toggle-container-size,calc(var(--spacing,.0025rem)*600*2 + var(--spacing,.0025rem)*100*2))}.switch,.switch-toggle{border-radius:var(--magma-radius-full,var(--radius-full,1000px))}.switch-toggle{align-items:center;animation-duration:calc(var(--mds-input-switch-duration,.3s)*1.5);animation-fill-mode:forwards;animation-iteration-count:1;animation-timing-function:var(--mds-input-switch-animation-timing-function);background-color:var(--mds-input-switch-toggle-color-enabled-unchecked,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));box-shadow:var(--shadow-sm,0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a);display:flex;height:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600));justify-content:center;transition-duration:var(--duration-200,.2s);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,width;transition-timing-function:var(--ease-linear);width:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600))}.field:checked+.switch-container .switch{background-color:var(--mds-input-switch-box-color-enabled-checked,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))))}.field:checked+.switch-container .switch-toggle{background-color:var(--mds-input-switch-toggle-color-enabled-checked,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));transform:translate(100%)}.field:checked+.switch-container--sliding .switch-toggle{animation-name:check}.field:not(:checked)+.switch-container--sliding .switch-toggle{animation-name:uncheck}.field:disabled+.switch-container .switch{background-color:var(--mds-input-switch-box-color-disabled-unchecked,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))))}.field:checked:disabled+.switch-container .switch{background-color:var(--mds-input-switch-box-color-disabled-checked,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))))}.field:disabled+.switch-container .switch-toggle{background-color:var(--mds-input-switch-toggle-color-disabled-unchecked,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}.field:checked:disabled+.switch-container .switch-toggle{background-color:var(--mds-input-switch-toggle-color-disabled-checked,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}@keyframes check{0%{transform:translate(0);width:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600))}50%{transform:translate(0);width:calc(var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem) * 600)) * var(--mds-input-switch-animation-timing-adjust,1.4))}to{transform:translate(100%);width:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600))}}@keyframes uncheck{0%{transform:translate(100%);width:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600))}50%{transform:translate(0);width:calc(var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem) * 600)) * var(--mds-input-switch-animation-timing-adjust,1.4))}to{transform:translate(0);width:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600))}}:host(:disabled),:host([disabled]){pointer-events:none}.icon-checked,.icon-unchecked{--tw-font-weight:var(--font-weight-normal,400);font-weight:var(--font-weight-normal,400);transition-duration:var(--duration-200,.2s);transition-property:fill,transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.icon-unchecked{fill:var(--mds-input-switch-icon-color-unchecked,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));opacity:1;transform:scale(1)}.icon-checked,.icon-unchecked{transition-duration:var(--mds-input-switch-duration,.3s)}.icon-checked{fill:var(--mds-input-switch-icon-color-checked,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));transform:scale(0)}.field:disabled+.label-icon,.field:disabled+.label-icon+.label-text{cursor:default}.field:checked+.label-icon .icon-unchecked{opacity:0;transform:scale(1.5);transition-duration:calc(var(--mds-input-switch-duration,.3s)*2)}.field:checked+.label-icon .icon-checked{transform:scale(1);transition-duration:calc(var(--mds-input-switch-duration,.3s)*1.5)}.field:disabled+.label-icon .icon-unchecked{fill:var(--mds-input-switch-icon-color-unchecked-disabled,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))))}.field:disabled+.label-icon .icon-checked{fill:var(--mds-input-switch-icon-color-checked-disabled,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))))}.field:disabled:indeterminate+.label-icon .icon-checked{fill:var(--mds-input-switch-icon-color-indeterminate-disabled,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))))}.field:indeterminate+.label-icon .icon-checked{fill:var(--mds-input-switch-icon-color-indeterminate,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));transform:scale(1)}:host([explicit]:not([disabled]):not([checked])){--mds-input-switch-icon-explicit-color:var(--mds-input-switch-icon-color-unchecked,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([explicit][checked]:not([disabled])){--mds-input-switch-icon-explicit-color:var(--mds-input-switch-icon-color-checked,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))))}:host([explicit][checked][disabled]){--mds-input-switch-icon-explicit-color:var(--mds-input-switch-icon-color-checked-disabled,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))))}:host([explicit][disabled]:not([checked])){--mds-input-switch-icon-explicit-color:var(--mds-input-switch-icon-color-unchecked-disabled,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))))}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-switch-box-color-enabled-checked:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-switch-box-color-enabled-unchecked:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-input-switch-box-color-disabled-checked:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-box-color-disabled-unchecked:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-toggle-color-enabled-checked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-color-enabled-unchecked:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-input-switch-toggle-color-disabled-checked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-color-disabled-unchecked:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-checked:rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218)));--mds-input-switch-icon-color-unchecked:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-input-switch-icon-color-unchecked-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-icon-color-indeterminate-disabled:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-indeterminate:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)))}:host([size=sm]){--mds-input-switch-box-padding:var(--mds-input-switch-box-padding-sm,calc(var(--spacing,.0025rem)*100));--mds-input-switch-toggle-size:var(--mds-input-switch-toggle-size-sm,calc(var(--spacing,.0025rem)*400));--mds-input-switch-toggle-container-size:calc(calc(var(--mds-input-switch-toggle-size-sm,calc(var(--spacing,.0025rem) * 400)) * 2) + calc(var(--mds-input-switch-box-padding-sm,calc(var(--spacing,.0025rem) * 100)) * 2))}:host([size=md]){--mds-input-switch-box-padding:var(--mds-input-switch-box-padding-md,calc(var(--spacing,.0025rem)*100));--mds-input-switch-toggle-size:var(--mds-input-switch-toggle-size-md,calc(var(--spacing,.0025rem)*600));--mds-input-switch-toggle-container-size:calc(calc(var(--mds-input-switch-toggle-size-md,calc(var(--spacing,.0025rem) * 600)) * 2) + calc(var(--mds-input-switch-box-padding-md,calc(var(--spacing,.0025rem) * 100)) * 2))}:host([size=lg]){--mds-input-switch-box-padding:var(--mds-input-switch-box-padding-lg,calc(var(--spacing,.0025rem)*100));--mds-input-switch-toggle-size:var(--mds-input-switch-toggle-size-lg,calc(var(--spacing,.0025rem)*800));--mds-input-switch-toggle-container-size:calc(calc(var(--mds-input-switch-toggle-size-lg,calc(var(--spacing,.0025rem) * 800)) * 2) + calc(var(--mds-input-switch-box-padding-lg,calc(var(--spacing,.0025rem) * 100)) * 2))}@property --tw-font-weight{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-switch-box-color-enabled-checked:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-switch-box-color-enabled-unchecked:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-input-switch-box-color-disabled-checked:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-box-color-disabled-unchecked:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-toggle-color-enabled-checked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-color-enabled-unchecked:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-input-switch-toggle-color-disabled-checked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-color-disabled-unchecked:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-checked:rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218)));--mds-input-switch-icon-color-unchecked:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-input-switch-icon-color-unchecked-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-icon-color-indeterminate-disabled:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-indeterminate:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)))}}`;
72
+ const mdsInputSwitchCss = () => `@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-font-weight:initial}}}: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-input-switch-animation-timing-adjust:1.4;--mds-input-switch-animation-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955));--mds-input-switch-box-color-enabled-checked:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-switch-box-color-enabled-unchecked:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-input-switch-box-color-disabled-checked:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-box-color-disabled-unchecked:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-box-padding-lg:calc(var(--spacing,.0025rem)*100);--mds-input-switch-box-padding-md:calc(var(--spacing,.0025rem)*100);--mds-input-switch-box-padding-sm:calc(var(--spacing,.0025rem)*100);--mds-input-switch-box-padding:var(--mds-input-switch-box-padding-md,calc(var(--spacing,.0025rem)*100));--mds-input-switch-duration:.3s;--mds-input-switch-icon-color-checked-disabled:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-checked:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-switch-icon-color-indeterminate-disabled:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-indeterminate:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-unchecked-disabled:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-unchecked:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-input-switch-icon-explicit-color:var(--mds-input-switch-icon-color-checked,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-switch-toggle-color-enabled-checked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-color-enabled-unchecked:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-input-switch-toggle-color-disabled-checked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-color-disabled-unchecked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-container-size:calc(calc(var(--mds-input-switch-toggle-size-md,calc(var(--spacing,.0025rem) * 600)) * 2) + calc(var(--mds-input-switch-box-padding-md,calc(var(--spacing,.0025rem) * 100)) * 2));--mds-input-switch-toggle-size-lg:calc(var(--spacing,.0025rem)*800);--mds-input-switch-toggle-size-md:calc(var(--spacing,.0025rem)*600);--mds-input-switch-toggle-size-sm:calc(var(--spacing,.0025rem)*400);--mds-input-switch-toggle-size:var(--mds-input-switch-toggle-size-md,calc(var(--spacing,.0025rem)*600));align-items:flex-start;display:inline-flex;gap:calc(var(--spacing,.0025rem)*200);position:relative}.field{height:0;margin:0;opacity:0;pointer-events:none;position:absolute;width:0}.label-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(--magma-radius-3xs,var(--radius-squircle-3xs,6px));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;corner-shape:var(--magma-corner-shape,squircle);align-items:baseline;cursor:pointer;display:flex;position:relative;transition-property:outline-offset,opacity}.field:focus-visible+.label-icon,.label-icon:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.label-text{cursor:pointer;display:flex}.label-text--empty{display:none}:host([type=switch]) .label-text{align-items:center;align-self:center}.icon-explicit{fill:var(--mds-input-switch-icon-explicit-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));height:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600));width:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600))}.icon-typography-checked,.icon-typography-unchecked{align-items:center;display:inline-flex}.icon-typography-checked{left:0;position:absolute;top:0}.switch-container{align-self:stretch;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));box-sizing:border-box;display:flex;flex-shrink:0;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-property:width,outline-offset,opacity;transition-timing-function:ease-in-out;width:var(--mds-input-switch-toggle-container-size,calc(var(--spacing,.0025rem)*600*2 + var(--spacing,.0025rem)*100*2))}.field:focus-visible+.switch-container,.switch-container:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.switch{background-color:var(--mds-input-switch-box-color-enabled-unchecked,rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140))));box-sizing:border-box;cursor:pointer;display:inline-flex;flex-shrink:0;height:min-content;padding:var(--mds-input-switch-box-padding,calc(var(--spacing,.0025rem)*100));transition-duration:var(--mds-input-switch-duration,.3s);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1));width:var(--mds-input-switch-toggle-container-size,calc(var(--spacing,.0025rem)*600*2 + var(--spacing,.0025rem)*100*2))}.switch,.switch-toggle{border-radius:var(--magma-radius-full,var(--radius-full,1000px))}.switch-toggle{align-items:center;animation-duration:calc(var(--mds-input-switch-duration,.3s)*1.5);animation-fill-mode:forwards;animation-iteration-count:1;animation-timing-function:var(--mds-input-switch-animation-timing-function);background-color:var(--mds-input-switch-toggle-color-enabled-unchecked,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));box-shadow:var(--shadow-sm,0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a);display:flex;height:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600));justify-content:center;transition-duration:var(--duration-200,.2s);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,width;transition-timing-function:var(--ease-linear);width:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600))}.field:checked+.switch-container .switch{background-color:var(--mds-input-switch-box-color-enabled-checked,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))))}.field:checked+.switch-container .switch-toggle{background-color:var(--mds-input-switch-toggle-color-enabled-checked,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));transform:translate(100%)}.field:checked+.switch-container--sliding .switch-toggle{animation-name:check}.field:not(:checked)+.switch-container--sliding .switch-toggle{animation-name:uncheck}.field:disabled+.switch-container .switch{background-color:var(--mds-input-switch-box-color-disabled-unchecked,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))))}.field:checked:disabled+.switch-container .switch{background-color:var(--mds-input-switch-box-color-disabled-checked,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))))}.field:disabled+.switch-container .switch-toggle{background-color:var(--mds-input-switch-toggle-color-disabled-unchecked,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}.field:checked:disabled+.switch-container .switch-toggle{background-color:var(--mds-input-switch-toggle-color-disabled-checked,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}@keyframes check{0%{transform:translate(0);width:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600))}50%{transform:translate(0);width:calc(var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem) * 600)) * var(--mds-input-switch-animation-timing-adjust,1.4))}to{transform:translate(100%);width:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600))}}@keyframes uncheck{0%{transform:translate(100%);width:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600))}50%{transform:translate(0);width:calc(var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem) * 600)) * var(--mds-input-switch-animation-timing-adjust,1.4))}to{transform:translate(0);width:var(--mds-input-switch-toggle-size,calc(var(--spacing,.0025rem)*600))}}:host(:disabled),:host([disabled]){pointer-events:none}.icon-checked,.icon-unchecked{--tw-font-weight:var(--font-weight-normal,400);font-weight:var(--font-weight-normal,400);transition-duration:var(--duration-200,.2s);transition-property:fill,transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.icon-unchecked{fill:var(--mds-input-switch-icon-color-unchecked,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));opacity:1;transform:scale(1)}.icon-checked,.icon-unchecked{transition-duration:var(--mds-input-switch-duration,.3s)}.icon-checked{fill:var(--mds-input-switch-icon-color-checked,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));transform:scale(0)}.field:disabled+.label-icon,.field:disabled+.label-icon+.label-text{cursor:default}.field:checked+.label-icon .icon-unchecked{opacity:0;transform:scale(1.5);transition-duration:calc(var(--mds-input-switch-duration,.3s)*2)}.field:checked+.label-icon .icon-checked{transform:scale(1);transition-duration:calc(var(--mds-input-switch-duration,.3s)*1.5)}.field:disabled+.label-icon .icon-unchecked{fill:var(--mds-input-switch-icon-color-unchecked-disabled,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))))}.field:disabled+.label-icon .icon-checked{fill:var(--mds-input-switch-icon-color-checked-disabled,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))))}.field:disabled:indeterminate+.label-icon .icon-checked{fill:var(--mds-input-switch-icon-color-indeterminate-disabled,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))))}.field:indeterminate+.label-icon .icon-checked{fill:var(--mds-input-switch-icon-color-indeterminate,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));transform:scale(1)}:host([explicit]:not([disabled]):not([checked])){--mds-input-switch-icon-explicit-color:var(--mds-input-switch-icon-color-unchecked,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([explicit][checked]:not([disabled])){--mds-input-switch-icon-explicit-color:var(--mds-input-switch-icon-color-checked,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))))}:host([explicit][checked][disabled]){--mds-input-switch-icon-explicit-color:var(--mds-input-switch-icon-color-checked-disabled,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))))}:host([explicit][disabled]:not([checked])){--mds-input-switch-icon-explicit-color:var(--mds-input-switch-icon-color-unchecked-disabled,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))))}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-switch-box-color-enabled-checked:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-switch-box-color-enabled-unchecked:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-input-switch-box-color-disabled-checked:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-box-color-disabled-unchecked:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-toggle-color-enabled-checked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-color-enabled-unchecked:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-input-switch-toggle-color-disabled-checked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-color-disabled-unchecked:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-checked:rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218)));--mds-input-switch-icon-color-unchecked:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-input-switch-icon-color-unchecked-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-icon-color-indeterminate-disabled:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-indeterminate:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)))}:host([size=sm]){--mds-input-switch-box-padding:var(--mds-input-switch-box-padding-sm,calc(var(--spacing,.0025rem)*100));--mds-input-switch-toggle-size:var(--mds-input-switch-toggle-size-sm,calc(var(--spacing,.0025rem)*400));--mds-input-switch-toggle-container-size:calc(calc(var(--mds-input-switch-toggle-size-sm,calc(var(--spacing,.0025rem) * 400)) * 2) + calc(var(--mds-input-switch-box-padding-sm,calc(var(--spacing,.0025rem) * 100)) * 2))}:host([size=md]){--mds-input-switch-box-padding:var(--mds-input-switch-box-padding-md,calc(var(--spacing,.0025rem)*100));--mds-input-switch-toggle-size:var(--mds-input-switch-toggle-size-md,calc(var(--spacing,.0025rem)*600));--mds-input-switch-toggle-container-size:calc(calc(var(--mds-input-switch-toggle-size-md,calc(var(--spacing,.0025rem) * 600)) * 2) + calc(var(--mds-input-switch-box-padding-md,calc(var(--spacing,.0025rem) * 100)) * 2))}:host([size=lg]){--mds-input-switch-box-padding:var(--mds-input-switch-box-padding-lg,calc(var(--spacing,.0025rem)*100));--mds-input-switch-toggle-size:var(--mds-input-switch-toggle-size-lg,calc(var(--spacing,.0025rem)*800));--mds-input-switch-toggle-container-size:calc(calc(var(--mds-input-switch-toggle-size-lg,calc(var(--spacing,.0025rem) * 800)) * 2) + calc(var(--mds-input-switch-box-padding-lg,calc(var(--spacing,.0025rem) * 100)) * 2))}@property --tw-font-weight{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-switch-box-color-enabled-checked:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-switch-box-color-enabled-unchecked:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-input-switch-box-color-disabled-checked:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-box-color-disabled-unchecked:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-toggle-color-enabled-checked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-color-enabled-unchecked:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-input-switch-toggle-color-disabled-checked:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-input-switch-toggle-color-disabled-unchecked:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-checked:rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218)));--mds-input-switch-icon-color-unchecked:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-input-switch-icon-color-unchecked-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-switch-icon-color-indeterminate-disabled:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-switch-icon-color-indeterminate:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)))}}`;
73
73
 
74
74
  const MdsInputSwitch = class {
75
75
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, d as createEvent, h, e as Host, g as getElement } from './index-CPRkNQdE.js';
2
2
  import { c as clsx } from './clsx-ChV9xqsO.js';
3
3
  import { h as hasChildWithSlot } from './slot-AEckDMXh.js';
4
- import { c as cssDurationToMilliseconds } from './unit-D8eZRaSQ.js';
4
+ import { c as cssDurationToMilliseconds } from './unit-CWk1SCJg.js';
5
5
  import { p as preferenceStore } from './preference-Ch1zJnqq.js';
6
6
  import { m as miBaselineClose } from './close-J-ikDhyq.js';
7
7
  import { L as Locale } from './locale-DfpXg7qZ.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, d as createEvent, h, e as Host, g as getElement } from './index-CPRkNQdE.js';
2
- import { c as cssDurationToMilliseconds } from './unit-D8eZRaSQ.js';
2
+ import { c as cssDurationToMilliseconds } from './unit-CWk1SCJg.js';
3
3
  import { m as miBaselineSettings } from './settings-XQgkfNpn.js';
4
4
  import { L as Locale } from './locale-DfpXg7qZ.js';
5
5
  import { p as preferenceStore } from './preference-Ch1zJnqq.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, d as createEvent, h, e as Host, g as getElement } from './index-CPRkNQdE.js';
2
- import { a as cssSizeToNumber, c as cssDurationToMilliseconds } from './unit-D8eZRaSQ.js';
2
+ import { a as cssSizeToNumber, c as cssDurationToMilliseconds } from './unit-CWk1SCJg.js';
3
3
  import { L as Locale } from './locale-DfpXg7qZ.js';
4
4
  import { p as preferenceStore } from './preference-Ch1zJnqq.js';
5
5
 
@@ -2,10 +2,10 @@ import { r as registerInstance, h, e as Host, g as getElement } from './index-CP
2
2
  import { b as queryChildrenBySlot } from './slot-AEckDMXh.js';
3
3
  import { m as miBaselineClose } from './close-J-ikDhyq.js';
4
4
  import { c as clsx } from './clsx-ChV9xqsO.js';
5
- import { B as Backdrop } from './floating-controller-BV0E_Juq.js';
5
+ import { B as Backdrop } from './floating-controller-CVVcyKew.js';
6
6
  import { L as Locale } from './locale-DfpXg7qZ.js';
7
7
  import './floating-ui.dom-BaFfIZGB.js';
8
- import './unit-D8eZRaSQ.js';
8
+ import './unit-CWk1SCJg.js';
9
9
  import './aria-Cvhn9asj.js';
10
10
  import './preference-Ch1zJnqq.js';
11
11
 
@@ -2,7 +2,7 @@ import { r as registerInstance, d as createEvent, h, e as Host, g as getElement
2
2
  import { b as queryChildrenBySlot } from './slot-AEckDMXh.js';
3
3
  import { s as setAttributeIfEmpty, h as hashRandomValue } from './aria-Cvhn9asj.js';
4
4
  import { c as clsx } from './clsx-ChV9xqsO.js';
5
- import { c as cssDurationToMilliseconds } from './unit-D8eZRaSQ.js';
5
+ import { c as cssDurationToMilliseconds } from './unit-CWk1SCJg.js';
6
6
  import { p as preferenceStore } from './preference-Ch1zJnqq.js';
7
7
 
8
8
  const mdsTabCss = () => `@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)) -2px #00000060;--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 2px var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-transition-duration:.5s;--private-tab-transition-duration:var(--mds-tab-transition-duration,.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,.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,.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:.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}}`;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, d as createEvent, h, e as Host, g as getElement } from './index-CPRkNQdE.js';
2
- import { c as cssDurationToMilliseconds } from './unit-D8eZRaSQ.js';
2
+ import { c as cssDurationToMilliseconds } from './unit-CWk1SCJg.js';
3
3
  import { p as preferenceStore } from './preference-Ch1zJnqq.js';
4
4
  import { L as Locale } from './locale-DfpXg7qZ.js';
5
5
  import { h as hasChildWithSlot } from './slot-AEckDMXh.js';
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h, e as Host, g as getElement } from './index-CPRkNQdE.js';
2
- import { F as FloatingController } from './floating-controller-BV0E_Juq.js';
2
+ import { F as FloatingController } from './floating-controller-CVVcyKew.js';
3
3
  import { p as preferenceStore } from './preference-Ch1zJnqq.js';
4
4
  import './floating-ui.dom-BaFfIZGB.js';
5
- import './unit-D8eZRaSQ.js';
5
+ import './unit-CWk1SCJg.js';
6
6
  import './aria-Cvhn9asj.js';
7
7
 
8
8
  var arrowSvg = `<svg width="15" height="9" viewBox="0 0 15 9" xmlns="http://www.w3.org/2000/svg">
@@ -2,7 +2,7 @@ import { r as registerInstance, d as createEvent, h, e as Host, g as getElement
2
2
  import { c as clsx } from './clsx-ChV9xqsO.js';
3
3
  import { h as hasChildWithSlot } from './slot-AEckDMXh.js';
4
4
  import { L as Locale } from './locale-DfpXg7qZ.js';
5
- import { c as cssDurationToMilliseconds } from './unit-D8eZRaSQ.js';
5
+ import { c as cssDurationToMilliseconds } from './unit-CWk1SCJg.js';
6
6
  import './preference-Ch1zJnqq.js';
7
7
 
8
8
  const expand$3 = "Ανάπτυξη {{ label }}";
@@ -39,7 +39,7 @@ var mdiFolderOpen = `<svg xmlns="http://www.w3.org/2000/svg" id="mdi-folder-open
39
39
 
40
40
  var miBaselineFolderClosed = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/></svg>`;
41
41
 
42
- const mdsTreeItemCss = () => `@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}@container style(--mds-tree-branch-use-rounded-border:true){:host{--mds-tree-branch-border-radius:var(--private-tree-item-branch-border-radius)}}@container style(--mds-tree-branch-use-rounded-border:false){:host{--mds-tree-branch-border-radius:0px}}:host{--mds-tree-item-actions-border-radius:var(--mds-tree-actions-border-radius);--mds-tree-item-actions-gap:var(--mds-tree-actions-gap);--mds-tree-item-branch-border-color:var(--mds-tree-branch-border-color);--mds-tree-item-branch-border-radius:var(--mds-tree-branch-border-radius,var(--private-tree-item-branch-border-radius));--mds-tree-item-branch-border-size:var(--mds-tree-branch-border-size);--mds-tree-item-branch-dot-default-color:var(--mds-tree-branch-dot-default-color);--mds-tree-item-branch-dot-expanded-color:var(--mds-tree-branch-dot-expanded-color);--mds-tree-item-label-default-background:var(--mds-tree-label-default-background);--mds-tree-item-label-hover-background:var(--mds-tree-label-hover-background);--mds-tree-item-label-icon-default-color:var(--mds-tree-label-icon-default-color);--mds-tree-item-label-icon-hover-color:var(--mds-tree-label-icon-hover-color);--mds-tree-item-line-clamp:var(--mds-tree-line-clamp);--mds-tree-item-toggle-gap:var(--mds-tree-toggle-gap,calc(var(--spacing,.0025rem)*100));--mds-tree-item-toggle-icon-async-background:var(--mds-tree-toggle-icon-async-background);--mds-tree-item-toggle-icon-async-color:var(--mds-tree-toggle-icon-async-color);--mds-tree-item-toggle-icon-chevron-default-background:var(--mds-tree-toggle-icon-chevron-default-background);--mds-tree-item-toggle-icon-chevron-default-color:var(--mds-tree-toggle-icon-chevron-default-color);--mds-tree-item-toggle-icon-chevron-expanded-background:var(--mds-tree-toggle-icon-chevron-expanded-background,var(--mds-tree-item-toggle-icon-chevron-default-background));--mds-tree-item-toggle-icon-chevron-expanded-color:var(--mds-tree-toggle-icon-chevron-expanded-color,var(--mds-tree-item-toggle-icon-chevron-default-color));--mds-tree-item-toggle-icon-folder-default-background:var(--mds-tree-toggle-icon-folder-default-background);--mds-tree-item-toggle-icon-folder-default-color:var(--mds-tree-toggle-icon-folder-default-color);--mds-tree-item-toggle-icon-folder-expanded-background:var(--mds-tree-item-toggle-icon-folder-default-background);--mds-tree-item-toggle-icon-folder-expanded-color:var(--mds-tree-toggle-icon-folder-expanded-color,var(--mds-tree-item-toggle-icon-folder-default-color));--mds-tree-item-toggle-icon-position-right-default-background:var(--mds-tree-toggle-icon-position-right-default-background);--mds-tree-item-toggle-icon-position-right-default-color:var(--mds-tree-toggle-icon-position-right-default-color);--mds-tree-item-toggle-icon-position-right-expanded-background:var(--mds-tree-toggle-icon-position-right-expanded-background);--mds-tree-item-toggle-icon-position-right-expanded-color:var(--mds-tree-toggle-icon-position-right-expanded-color);--mds-tree-item-toggle-size:var(--mds-tree-toggle-size);--mds-tree-item-transition-duration:var(--mds-tree-transition-duration);--mds-tree-item-transition-timing-function:var(--mds-tree-transition-timing-function);--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-chevron-default-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-chevron-default-color);--header-gap:var(--mds-tree-item-toggle-gap);--private-tree-item-branch-border-radius:min(var(--magma-radius-lg,var(--radius-squircle-lg,28px)),var(--magma-corner-cap,.5) * var(--mds-tree-item-toggle-size));display:grid;transition-duration:var(--mds-tree-item-transition-duration);transition-timing-function:var(--mds-tree-item-transition-timing-function)}.header{--offset:calc(var(--mds-tree-item-toggle-size) + var(--header-gap));align-items:flex-start;gap:var(--header-gap);position:relative;z-index:1}.header,.title{display:flex;min-width:0}.title{align-items:stretch;flex-grow:1;gap:calc(var(--spacing,.0025rem)*200);justify-content:space-between}.label-action{--mds-button-line-clamp:var(--mds-tree-item-line-clamp);--padding:calc(var(--spacing,.0025rem)*100);background-color:var(--mds-tree-item-label-default-background);border-radius:min(var(--magma-radius-lg,var(--radius-squircle-lg,28px)),var(--magma-corner-cap,.5) * calc(var(--spacing,.0025rem)*900));fill:var(--mds-tree-item-label-icon-default-color);flex-grow:1;justify-content:flex-start;margin-left:calc(var(--padding)*-1);padding-left:var(--padding);padding-right:var(--padding)}.label-action:hover{background-color:var(--mds-tree-item-label-hover-background);fill:var(--mds-tree-item-label-icon-hover-color)}.actions-container{--duration-300:.3s;--ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));border-radius:var(--mds-tree-item-actions-border-radius);corner-shape:var(--magma-corner-shape,squircle);interpolate-size:allow-keywords;align-items:center;display:none;justify-content:flex-start;min-width:0;overflow:hidden;transition-behavior:allow-discrete;transition-duration:var(--duration-300,.3s);transition-property:min-width,width,overflow;transition-timing-function:var(--ease);width:0}.actions-container--has-actions{display:flex}.actions{border-radius:var(--mds-tree-item-actions-border-radius);corner-shape:var(--magma-corner-shape,squircle);align-items:center;display:inline-flex;flex-shrink:0;gap:var(--mds-tree-item-actions-gap);pointer-events:none;transform:scale(0);transition-duration:var(--duration-300,.3s);transition-property:transform;transition-timing-function:var(--ease)}.header:focus-within .actions,.header:hover .actions,:host([resolved-actions=visible]) .actions-container{pointer-events:auto}.header:focus-within .actions-container,.header:hover .actions-container,:host([resolved-actions=visible]) .actions-container{animation:toggleOverflow var(--duration-300,.3s) forwards;min-width:fit-content;width:fit-content}.header:focus-within .actions,.header:hover .actions,:host([resolved-actions=visible]) .actions{transform:scale(1)}.children{--mds-tree-item-children-padding-left:calc(var(--mds-tree-item-toggle-size)/2 - var(--mds-tree-item-branch-border-size)/2);interpolate-size:allow-keywords;display:flex;flex-direction:column;height:0;overflow:clip;padding-left:var(--mds-tree-item-children-padding-left);position:relative;transform:translateY(calc(var(--mds-tree-item-toggle-size)/2*-1));transition-duration:var(--mds-tree-item-transition-duration);transition-property:height,transform,visibility;transition-timing-function:var(--mds-tree-item-transition-timing-function);visibility:hidden;z-index:0}.children--expanded{animation:toggleOverflow var(--mds-tree-item-transition-duration) forwards;animation-timing-function:var(--mds-tree-item-transition-timing-function);display:flex;height:auto;transform:translateY(0);visibility:inherit}.children--empty,.children--hidden{display:none}@keyframes toggleOverflow{99.99%{overflow:hidden}to{overflow:visible}}@keyframes toggleDisplay{99.99%{display:flex}to{display:none}}.tree-node{--middle-pos-x:calc(50% - var(--mds-tree-item-branch-border-size)/2);align-items:center;box-sizing:border-box;display:inline-flex;flex-shrink:0;height:var(--mds-tree-item-toggle-size);justify-content:center;pointer-events:none;position:relative;width:var(--mds-tree-item-toggle-size);z-index:0}.tree-branch{--pos-y:calc(calc(var(--mds-tree-item-toggle-size) / 2 + var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)))) * -1);--tree-height:calc(var(--mds-tree-item-toggle-size) + var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px))) + var(--mds-tree-item-branch-border-size) / 2);--tree-width:calc(var(--mds-tree-item-toggle-size)/2);border-color:var(--mds-tree-item-branch-border-color);border-radius:0 0 0 var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)));border-style:solid;border-width:0 0 var(--mds-tree-item-branch-border-size) var(--mds-tree-item-branch-border-size);box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);display:flex;height:var(--tree-height);inset:0;position:absolute;transform:translateY(var(--pos-y));width:calc(var(--mds-tree-item-toggle-size)/2);z-index:1}:host(:first-child) .tree-branch{--pos-y:calc(var(--mds-tree-item-toggle-size)/2*-1);--tree-height:calc(var(--mds-tree-item-toggle-size) + var(--mds-tree-item-branch-border-size)/2)}.tree-dot{--size:calc(var(--spacing,.0025rem)*300 + var(--mds-tree-item-branch-border-size)*2);background-color:var(--mds-tree-item-branch-border-color);border-radius:var(--size);display:none;height:var(--size);position:relative;width:var(--size)}.header--has-children .tree-dot{display:inline-flex}.header:not(.header--has-children) .tree-node .tree-branch{width:calc(var(--mds-tree-item-toggle-size) - var(--header-gap))}:host(:not(:last-child)) .header--has-children .tree-node:after{--size:calc(calc(var(--mds-tree-item-toggle-size) / 2) + var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px))));--pos-y:calc(var(--size)/2);border-color:var(--mds-tree-item-branch-border-color);border-radius:0 0 0 var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)));border-style:solid;border-width:0 0 var(--mds-tree-item-branch-border-size) var(--mds-tree-item-branch-border-size);box-sizing:border-box;content:"";corner-shape:var(--magma-corner-shape,squircle);display:flex;height:var(--size);inset:0;position:absolute;transform:translateY(var(--pos-y));width:var(--mds-tree-item-branch-border-size);z-index:1}:host(:not(:last-child)) .children--has-children:before{border-left:var(--mds-tree-item-branch-border-size) solid var(--mds-tree-item-branch-border-color);content:"";display:flex;height:calc(100% + var(--mds-tree-item-toggle-size));left:0;position:absolute;top:calc(var(--mds-tree-item-toggle-size)*-1)}.tree-dot:after{--pos-y:calc(var(--size)/2);background-color:var(--mds-tree-item-branch-border-color);box-sizing:border-box;content:"";display:inline-flex;height:calc(var(--size)/2);inset:0 50% 0 0;position:absolute;transform:translate(calc(var(--pos-y) - var(--mds-tree-item-branch-border-size)/2),var(--pos-y));transition-duration:var(--mds-tree-item-transition-duration);transition-property:height;transition-timing-function:var(--mds-tree-item-transition-timing-function);width:var(--mds-tree-item-branch-border-size);z-index:1}:host([expanded]) .tree-dot:after{height:calc(var(--size) + var(--mds-tree-item-branch-border-size))}:host([depth="0"]) .children--has-children .tree-branch,:host([depth="0"]) .children--has-children:before,:host([depth="0"]) .header--has-children .tree-node:after,:host([depth="0"]) .tree-node .tree-branch,:host([depth="0"]) .tree-node:before{display:none}.toggle-icon{align-items:center;align-self:center;display:inline-flex;flex-shrink:0;height:var(--mds-tree-item-toggle-size);justify-content:center;margin-left:calc(var(--offset)*-1);position:relative;transform:rotate(0);transition-duration:var(--mds-tree-item-transition-duration);transition-property:transform;transition-timing-function:var(--mds-tree-item-transition-timing-function);width:var(--mds-tree-item-toggle-size);z-index:1}.toggle-icon mds-button{--size:calc(var(--spacing,.0025rem)*600);align-self:center;background-color:var(--mds-tree-item-icon-background-color);border:0;border-radius:var(--mds-tree-item-toggle-size);color:var(--mds-tree-item-icon-color);fill:var(--mds-tree-item-icon-color);height:var(--size);min-height:var(--size);min-width:var(--size);overflow:hidden;width:var(--size)}.toggle-icon mds-button[await]{background-color:var(--mds-tree-item-toggle-icon-async-background);color:var(--mds-tree-item-toggle-icon-async-color)}:host([toggle=chevron]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-chevron-default-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-chevron-default-color)}:host([expanded][toggle=chevron]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-chevron-expanded-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-chevron-expanded-color)}:host([toggle=folder][toggle-position=left]) .toggle-icon mds-button{box-shadow:0 calc(var(--spacing,.0025rem)*25) 0 0 var(--mds-tree-item-branch-border-color)}:host([toggle=folder]) .toggle-icon mds-button{--size:auto;border-radius:var(--magma-radius-3xs,var(--radius-squircle-3xs,6px));padding:calc(var(--spacing,.0025rem)*25) calc(var(--spacing,.0025rem)*50)}:host([toggle=folder]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-folder-default-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-folder-default-color)}:host([toggle=folder][expanded]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-folder-expanded-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-folder-expanded-color)}:host([toggle-position=right]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-position-right-default-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-position-right-default-color);background-color:#0000;order:1}:host([expanded][toggle-position=right]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-position-right-expanded-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-position-right-expanded-color)}:host([expanded][toggle-position=left][toggle=chevron]) .toggle-icon{transform:rotate(90deg)}.header:not(.header--has-children) .toggle-icon{display:none}:host([toggle-position=left]) .toggle-icon{order:0}:host([toggle-position=right]) .header--has-children .title{margin-right:var(--offset)}:host([toggle-position=left][toggle=chevron][expanded]) .toggle-icon{transform:rotate(90deg)}:host([toggle-position=left][toggle=chevron]:not([expanded])) .toggle-icon{transform:rotate(0)}:host([toggle=chevron][toggle-position=right]) .toggle-icon{transform:rotate(90deg)}:host([toggle=chevron][expanded][toggle-position=right]) .toggle-icon{transform:rotate(270deg)}:host([toggle=chevron][toggle-position=right]) .toggle-icon--dot,:host([toggle=folder][toggle-position=right]) .toggle-icon--dot{transform:rotate(0)scale(.825)}:host([toggle=chevron][toggle-position=right]) .toggle-icon,:host([toggle=folder][toggle-position=right]) .toggle-icon{background-color:#0000;fill:var(--mds-tree-item-branch-dot-default-color)}:host([toggle=chevron][expanded][toggle-position=right]) .toggle-icon,:host([toggle=folder][expanded][toggle-position=right]) .toggle-icon{background-color:#0000;fill:var(--mds-tree-item-branch-dot-expanded-color)}:host([appearance=none]) .header{--offset:0;gap:0}:host([appearance=none]) .tree-dot,:host([appearance=none]) .tree-node,:host([appearance=none]:not(:last-child)) .children--has-children:before{display:none}:host([appearance=none]) .label-action{--padding:calc(var(--spacing,.0025rem)*200);margin-left:0;padding-left:var(--padding);padding-right:var(--padding)}:host([appearance=none][toggle-position=left]) .children{padding-left:calc(var(--header-gap)*2 + var(--mds-tree-item-branch-border-size) + var(--mds-tree-item-children-padding-left)*2)}:host([appearance=none][toggle-position=right]) .children{padding-left:var(--mds-tree-item-children-padding-left)}`;
42
+ const mdsTreeItemCss = () => `@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}@container style(--mds-tree-branch-use-rounded-border:true){:host{--mds-tree-branch-border-radius:var(--private-tree-item-branch-border-radius)}}@container style(--mds-tree-branch-use-rounded-border:false){:host{--mds-tree-branch-border-radius:0px}}:host{--mds-tree-item-actions-border-radius:var(--mds-tree-actions-border-radius);--mds-tree-item-actions-gap:var(--mds-tree-actions-gap);--mds-tree-item-branch-border-color:var(--mds-tree-branch-border-color);--mds-tree-item-branch-border-radius:var(--mds-tree-branch-border-radius,var(--private-tree-item-branch-border-radius));--mds-tree-item-branch-border-size:var(--mds-tree-branch-border-size);--mds-tree-item-branch-dot-default-color:var(--mds-tree-branch-dot-default-color);--mds-tree-item-branch-dot-expanded-color:var(--mds-tree-branch-dot-expanded-color);--mds-tree-item-label-default-background:var(--mds-tree-label-default-background);--mds-tree-item-label-hover-background:var(--mds-tree-label-hover-background);--mds-tree-item-label-icon-default-color:var(--mds-tree-label-icon-default-color);--mds-tree-item-label-icon-hover-color:var(--mds-tree-label-icon-hover-color);--mds-tree-item-line-clamp:var(--mds-tree-line-clamp);--mds-tree-item-toggle-gap:var(--mds-tree-toggle-gap,calc(var(--spacing,.0025rem)*100));--mds-tree-item-toggle-icon-async-background:var(--mds-tree-toggle-icon-async-background);--mds-tree-item-toggle-icon-async-color:var(--mds-tree-toggle-icon-async-color);--mds-tree-item-toggle-icon-chevron-default-background:var(--mds-tree-toggle-icon-chevron-default-background);--mds-tree-item-toggle-icon-chevron-default-color:var(--mds-tree-toggle-icon-chevron-default-color);--mds-tree-item-toggle-icon-chevron-expanded-background:var(--mds-tree-toggle-icon-chevron-expanded-background,var(--mds-tree-item-toggle-icon-chevron-default-background));--mds-tree-item-toggle-icon-chevron-expanded-color:var(--mds-tree-toggle-icon-chevron-expanded-color,var(--mds-tree-item-toggle-icon-chevron-default-color));--mds-tree-item-toggle-icon-folder-default-background:var(--mds-tree-toggle-icon-folder-default-background);--mds-tree-item-toggle-icon-folder-default-color:var(--mds-tree-toggle-icon-folder-default-color);--mds-tree-item-toggle-icon-folder-expanded-background:var(--mds-tree-item-toggle-icon-folder-default-background);--mds-tree-item-toggle-icon-folder-expanded-color:var(--mds-tree-toggle-icon-folder-expanded-color,var(--mds-tree-item-toggle-icon-folder-default-color));--mds-tree-item-toggle-icon-position-right-default-background:var(--mds-tree-toggle-icon-position-right-default-background);--mds-tree-item-toggle-icon-position-right-default-color:var(--mds-tree-toggle-icon-position-right-default-color);--mds-tree-item-toggle-icon-position-right-expanded-background:var(--mds-tree-toggle-icon-position-right-expanded-background);--mds-tree-item-toggle-icon-position-right-expanded-color:var(--mds-tree-toggle-icon-position-right-expanded-color);--mds-tree-item-toggle-size:var(--mds-tree-toggle-size);--mds-tree-item-transition-duration:var(--mds-tree-transition-duration);--mds-tree-item-transition-timing-function:var(--mds-tree-transition-timing-function);--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-chevron-default-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-chevron-default-color);--header-gap:var(--mds-tree-item-toggle-gap);--private-tree-item-branch-border-radius:min(var(--magma-radius-lg,var(--radius-squircle-lg,28px)),var(--magma-corner-cap,.5) * var(--mds-tree-item-toggle-size));display:grid;transition-duration:var(--mds-tree-item-transition-duration);transition-timing-function:var(--mds-tree-item-transition-timing-function)}.header{--offset:calc(var(--mds-tree-item-toggle-size) + var(--header-gap));align-items:flex-start;gap:var(--header-gap);position:relative;z-index:1}.header,.title{display:flex;min-width:0}.title{align-items:stretch;flex-grow:1;gap:calc(var(--spacing,.0025rem)*200);justify-content:space-between}.label-action{--mds-button-line-clamp:var(--mds-tree-item-line-clamp);--padding:calc(var(--spacing,.0025rem)*100);background-color:var(--mds-tree-item-label-default-background);border-radius:min(var(--magma-radius-lg,var(--radius-squircle-lg,28px)),var(--magma-corner-cap,.5) * calc(var(--spacing,.0025rem)*900));fill:var(--mds-tree-item-label-icon-default-color);flex-grow:1;justify-content:flex-start;margin-left:calc(var(--padding)*-1);padding-left:var(--padding);padding-right:var(--padding)}.label-action:hover{background-color:var(--mds-tree-item-label-hover-background);fill:var(--mds-tree-item-label-icon-hover-color)}.actions-container{--duration-300:.3s;--ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));border-radius:var(--mds-tree-item-actions-border-radius);corner-shape:var(--magma-corner-shape,squircle);interpolate-size:allow-keywords;align-items:center;display:none;justify-content:flex-start;min-width:0;overflow:hidden;transition-behavior:allow-discrete;transition-duration:var(--duration-300,.3s);transition-property:min-width,width,overflow;transition-timing-function:var(--ease);width:0}.actions-container--has-actions{display:flex}.actions{border-radius:var(--mds-tree-item-actions-border-radius);corner-shape:var(--magma-corner-shape,squircle);align-items:center;display:inline-flex;flex-shrink:0;gap:var(--mds-tree-item-actions-gap);pointer-events:none;transform:scale(0);transition-duration:var(--duration-300,.3s);transition-property:transform;transition-timing-function:var(--ease)}.header:focus-within .actions,.header:hover .actions,:host([resolved-actions=visible]) .actions-container{pointer-events:auto}.header:focus-within .actions-container,.header:hover .actions-container,:host([resolved-actions=visible]) .actions-container{animation:toggleOverflow var(--duration-300,.3s) forwards;min-width:fit-content;width:fit-content}.header:focus-within .actions,.header:hover .actions,:host([resolved-actions=visible]) .actions{transform:scale(1)}.children{--mds-tree-item-children-padding-left:calc(var(--mds-tree-item-toggle-size)/2 - var(--mds-tree-item-branch-border-size)/2);interpolate-size:allow-keywords;display:flex;flex-direction:column;height:0;overflow:clip;padding-left:var(--mds-tree-item-children-padding-left);position:relative;transform:translateY(calc(var(--mds-tree-item-toggle-size)/2*-1));transition-duration:var(--mds-tree-item-transition-duration);transition-property:height,transform,visibility;transition-timing-function:var(--mds-tree-item-transition-timing-function);visibility:hidden;z-index:0}.children--expanded{animation:toggleOverflow var(--mds-tree-item-transition-duration) forwards;animation-timing-function:var(--mds-tree-item-transition-timing-function);display:flex;height:auto;transform:translateY(0);visibility:inherit}.children--empty,.children--hidden{display:none}@keyframes toggleOverflow{99.99%{overflow:hidden}to{overflow:visible}}@keyframes toggleDisplay{99.99%{display:flex}to{display:none}}.tree-node{--middle-pos-x:calc(50% - var(--mds-tree-item-branch-border-size)/2);align-items:center;box-sizing:border-box;display:inline-flex;flex-shrink:0;height:var(--mds-tree-item-toggle-size);justify-content:center;pointer-events:none;position:relative;width:var(--mds-tree-item-toggle-size);z-index:0}.tree-branch{--pos-y:calc(calc(var(--mds-tree-item-toggle-size) / 2 + var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)))) * -1);--tree-height:calc(var(--mds-tree-item-toggle-size) + var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px))) + var(--mds-tree-item-branch-border-size) / 2);--tree-width:calc(var(--mds-tree-item-toggle-size)/2);border-color:var(--mds-tree-item-branch-border-color);border-radius:0 0 0 var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)));border-style:solid;border-width:0 0 var(--mds-tree-item-branch-border-size) var(--mds-tree-item-branch-border-size);box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);display:flex;height:var(--tree-height);inset:0;position:absolute;transform:translateY(var(--pos-y));width:calc(var(--mds-tree-item-toggle-size)/2);z-index:1}:host(:first-of-type) .tree-branch{--pos-y:calc(var(--mds-tree-item-toggle-size)/2*-1);--tree-height:calc(var(--mds-tree-item-toggle-size) + var(--mds-tree-item-branch-border-size)/2)}.tree-dot{--size:calc(var(--spacing,.0025rem)*300 + var(--mds-tree-item-branch-border-size)*2);background-color:var(--mds-tree-item-branch-border-color);border-radius:var(--size);display:none;height:var(--size);position:relative;width:var(--size)}.header--has-children .tree-dot{display:inline-flex}.header:not(.header--has-children) .tree-node .tree-branch{width:calc(var(--mds-tree-item-toggle-size) - var(--header-gap))}:host(:not(:last-of-type)) .header--has-children .tree-node:after{--size:calc(calc(var(--mds-tree-item-toggle-size) / 2) + var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px))));--pos-y:calc(var(--size)/2);border-color:var(--mds-tree-item-branch-border-color);border-radius:0 0 0 var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)));border-style:solid;border-width:0 0 var(--mds-tree-item-branch-border-size) var(--mds-tree-item-branch-border-size);box-sizing:border-box;content:"";corner-shape:var(--magma-corner-shape,squircle);display:flex;height:var(--size);inset:0;position:absolute;transform:translateY(var(--pos-y));width:var(--mds-tree-item-branch-border-size);z-index:1}:host(:not(:last-of-type)) .children--has-children:before{border-left:var(--mds-tree-item-branch-border-size) solid var(--mds-tree-item-branch-border-color);content:"";display:flex;height:calc(100% + var(--mds-tree-item-toggle-size));left:0;position:absolute;top:calc(var(--mds-tree-item-toggle-size)*-1)}.tree-dot:after{--pos-y:calc(var(--size)/2);background-color:var(--mds-tree-item-branch-border-color);box-sizing:border-box;content:"";display:inline-flex;height:calc(var(--size)/2);inset:0 50% 0 0;position:absolute;transform:translate(calc(var(--pos-y) - var(--mds-tree-item-branch-border-size)/2),var(--pos-y));transition-duration:var(--mds-tree-item-transition-duration);transition-property:height;transition-timing-function:var(--mds-tree-item-transition-timing-function);width:var(--mds-tree-item-branch-border-size);z-index:1}:host([expanded]) .tree-dot:after{height:calc(var(--size) + var(--mds-tree-item-branch-border-size))}:host([depth="0"]) .children--has-children .tree-branch,:host([depth="0"]) .children--has-children:before,:host([depth="0"]) .header--has-children .tree-node:after,:host([depth="0"]) .tree-node .tree-branch,:host([depth="0"]) .tree-node:before{display:none}.toggle-icon{align-items:center;align-self:center;display:inline-flex;flex-shrink:0;height:var(--mds-tree-item-toggle-size);justify-content:center;margin-left:calc(var(--offset)*-1);position:relative;transform:rotate(0);transition-duration:var(--mds-tree-item-transition-duration);transition-property:transform;transition-timing-function:var(--mds-tree-item-transition-timing-function);width:var(--mds-tree-item-toggle-size);z-index:1}.toggle-icon mds-button{--size:calc(var(--spacing,.0025rem)*600);align-self:center;background-color:var(--mds-tree-item-icon-background-color);border:0;border-radius:var(--mds-tree-item-toggle-size);color:var(--mds-tree-item-icon-color);fill:var(--mds-tree-item-icon-color);height:var(--size);min-height:var(--size);min-width:var(--size);overflow:hidden;width:var(--size)}.toggle-icon mds-button[await]{background-color:var(--mds-tree-item-toggle-icon-async-background);color:var(--mds-tree-item-toggle-icon-async-color)}:host([toggle=chevron]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-chevron-default-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-chevron-default-color)}:host([expanded][toggle=chevron]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-chevron-expanded-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-chevron-expanded-color)}:host([toggle=folder][toggle-position=left]) .toggle-icon mds-button{box-shadow:0 calc(var(--spacing,.0025rem)*25) 0 0 var(--mds-tree-item-branch-border-color)}:host([toggle=folder]) .toggle-icon mds-button{--size:auto;border-radius:var(--magma-radius-3xs,var(--radius-squircle-3xs,6px));padding:calc(var(--spacing,.0025rem)*25) calc(var(--spacing,.0025rem)*50)}:host([toggle=folder]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-folder-default-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-folder-default-color)}:host([toggle=folder][expanded]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-folder-expanded-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-folder-expanded-color)}:host([toggle-position=right]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-position-right-default-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-position-right-default-color);background-color:#0000;order:1}:host([expanded][toggle-position=right]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-position-right-expanded-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-position-right-expanded-color)}:host([expanded][toggle-position=left][toggle=chevron]) .toggle-icon{transform:rotate(90deg)}.header:not(.header--has-children) .toggle-icon{display:none}:host([toggle-position=left]) .toggle-icon{order:0}:host([toggle-position=right]) .header--has-children .title{margin-right:var(--offset)}:host([toggle-position=left][toggle=chevron][expanded]) .toggle-icon{transform:rotate(90deg)}:host([toggle-position=left][toggle=chevron]:not([expanded])) .toggle-icon{transform:rotate(0)}:host([toggle=chevron][toggle-position=right]) .toggle-icon{transform:rotate(90deg)}:host([toggle=chevron][expanded][toggle-position=right]) .toggle-icon{transform:rotate(270deg)}:host([toggle=chevron][toggle-position=right]) .toggle-icon--dot,:host([toggle=folder][toggle-position=right]) .toggle-icon--dot{transform:rotate(0)scale(.825)}:host([toggle=chevron][toggle-position=right]) .toggle-icon,:host([toggle=folder][toggle-position=right]) .toggle-icon{background-color:#0000;fill:var(--mds-tree-item-branch-dot-default-color)}:host([toggle=chevron][expanded][toggle-position=right]) .toggle-icon,:host([toggle=folder][expanded][toggle-position=right]) .toggle-icon{background-color:#0000;fill:var(--mds-tree-item-branch-dot-expanded-color)}:host([appearance=none]) .header{--offset:0;gap:0}:host([appearance=none]) .tree-dot,:host([appearance=none]) .tree-node,:host([appearance=none]:not(:last-of-type)) .children--has-children:before{display:none}:host([appearance=none]) .label-action{--padding:calc(var(--spacing,.0025rem)*200);margin-left:0;padding-left:var(--padding);padding-right:var(--padding)}:host([appearance=none][toggle-position=left]) .children{padding-left:calc(var(--header-gap)*2 + var(--mds-tree-item-branch-border-size) + var(--mds-tree-item-children-padding-left)*2)}:host([appearance=none][toggle-position=right]) .children{padding-left:var(--mds-tree-item-children-padding-left)}`;
43
43
 
44
44
  const MdsTreeItem = class {
45
45
  constructor(hostRef) {