@fluentui/web-components 3.0.0-rc.29 → 3.0.0-rc.30

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 (331) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/custom-elements.json +654 -654
  3. package/dist/esm/accordion/accordion.bench.d.ts +2 -0
  4. package/dist/esm/accordion/accordion.bench.js +2 -5
  5. package/dist/esm/accordion/accordion.bench.js.map +1 -1
  6. package/dist/esm/accordion/accordion.definition.d.ts +4 -4
  7. package/dist/esm/accordion/accordion.definition.js +7 -6
  8. package/dist/esm/accordion/accordion.definition.js.map +1 -1
  9. package/dist/esm/accordion/define.js +2 -2
  10. package/dist/esm/accordion/define.js.map +1 -1
  11. package/dist/esm/accordion-item/accordion-item.bench.d.ts +1 -0
  12. package/dist/esm/accordion-item/accordion-item.bench.js +1 -3
  13. package/dist/esm/accordion-item/accordion-item.bench.js.map +1 -1
  14. package/dist/esm/accordion-item/accordion-item.definition.d.ts +3 -4
  15. package/dist/esm/accordion-item/accordion-item.definition.js +6 -6
  16. package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -1
  17. package/dist/esm/accordion-item/define.js +2 -2
  18. package/dist/esm/accordion-item/define.js.map +1 -1
  19. package/dist/esm/anchor-button/anchor-button.bench.d.ts +1 -0
  20. package/dist/esm/anchor-button/anchor-button.bench.js +1 -3
  21. package/dist/esm/anchor-button/anchor-button.bench.js.map +1 -1
  22. package/dist/esm/anchor-button/anchor-button.definition.d.ts +4 -4
  23. package/dist/esm/anchor-button/anchor-button.definition.js +7 -6
  24. package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
  25. package/dist/esm/anchor-button/define.js +2 -2
  26. package/dist/esm/anchor-button/define.js.map +1 -1
  27. package/dist/esm/avatar/avatar.bench.d.ts +1 -0
  28. package/dist/esm/avatar/avatar.bench.js +1 -3
  29. package/dist/esm/avatar/avatar.bench.js.map +1 -1
  30. package/dist/esm/avatar/avatar.definition.d.ts +3 -5
  31. package/dist/esm/avatar/avatar.definition.js +6 -7
  32. package/dist/esm/avatar/avatar.definition.js.map +1 -1
  33. package/dist/esm/avatar/define.js +2 -2
  34. package/dist/esm/avatar/define.js.map +1 -1
  35. package/dist/esm/badge/badge.bench.d.ts +1 -0
  36. package/dist/esm/badge/badge.bench.js +1 -3
  37. package/dist/esm/badge/badge.bench.js.map +1 -1
  38. package/dist/esm/badge/badge.definition.d.ts +3 -4
  39. package/dist/esm/badge/badge.definition.js +6 -6
  40. package/dist/esm/badge/badge.definition.js.map +1 -1
  41. package/dist/esm/badge/define.js +2 -2
  42. package/dist/esm/badge/define.js.map +1 -1
  43. package/dist/esm/button/button.bench.d.ts +1 -0
  44. package/dist/esm/button/button.bench.js +1 -3
  45. package/dist/esm/button/button.bench.js.map +1 -1
  46. package/dist/esm/button/button.definition.d.ts +3 -5
  47. package/dist/esm/button/button.definition.js +6 -7
  48. package/dist/esm/button/button.definition.js.map +1 -1
  49. package/dist/esm/button/define.js +2 -2
  50. package/dist/esm/button/define.js.map +1 -1
  51. package/dist/esm/checkbox/checkbox.bench.d.ts +1 -0
  52. package/dist/esm/checkbox/checkbox.bench.js +1 -3
  53. package/dist/esm/checkbox/checkbox.bench.js.map +1 -1
  54. package/dist/esm/checkbox/checkbox.definition.d.ts +3 -5
  55. package/dist/esm/checkbox/checkbox.definition.js +6 -7
  56. package/dist/esm/checkbox/checkbox.definition.js.map +1 -1
  57. package/dist/esm/checkbox/define.js +2 -2
  58. package/dist/esm/checkbox/define.js.map +1 -1
  59. package/dist/esm/compound-button/compound-button.bench.d.ts +1 -0
  60. package/dist/esm/compound-button/compound-button.bench.js +1 -3
  61. package/dist/esm/compound-button/compound-button.bench.js.map +1 -1
  62. package/dist/esm/compound-button/compound-button.definition.d.ts +4 -4
  63. package/dist/esm/compound-button/compound-button.definition.js +7 -6
  64. package/dist/esm/compound-button/compound-button.definition.js.map +1 -1
  65. package/dist/esm/compound-button/define.js +2 -2
  66. package/dist/esm/compound-button/define.js.map +1 -1
  67. package/dist/esm/counter-badge/counter-badge.bench.d.ts +1 -0
  68. package/dist/esm/counter-badge/counter-badge.bench.js +1 -3
  69. package/dist/esm/counter-badge/counter-badge.bench.js.map +1 -1
  70. package/dist/esm/counter-badge/counter-badge.definition.d.ts +4 -4
  71. package/dist/esm/counter-badge/counter-badge.definition.js +7 -6
  72. package/dist/esm/counter-badge/counter-badge.definition.js.map +1 -1
  73. package/dist/esm/counter-badge/define.js +2 -2
  74. package/dist/esm/counter-badge/define.js.map +1 -1
  75. package/dist/esm/dialog/define.js +2 -2
  76. package/dist/esm/dialog/define.js.map +1 -1
  77. package/dist/esm/dialog/dialog.bench.d.ts +1 -0
  78. package/dist/esm/dialog/dialog.bench.js +1 -3
  79. package/dist/esm/dialog/dialog.bench.js.map +1 -1
  80. package/dist/esm/dialog/dialog.definition.d.ts +3 -5
  81. package/dist/esm/dialog/dialog.definition.js +7 -8
  82. package/dist/esm/dialog/dialog.definition.js.map +1 -1
  83. package/dist/esm/dialog-body/define.js +2 -2
  84. package/dist/esm/dialog-body/define.js.map +1 -1
  85. package/dist/esm/dialog-body/dialog-body.bench.d.ts +1 -0
  86. package/dist/esm/dialog-body/dialog-body.bench.js +1 -3
  87. package/dist/esm/dialog-body/dialog-body.bench.js.map +1 -1
  88. package/dist/esm/dialog-body/dialog-body.definition.d.ts +3 -5
  89. package/dist/esm/dialog-body/dialog-body.definition.js +7 -8
  90. package/dist/esm/dialog-body/dialog-body.definition.js.map +1 -1
  91. package/dist/esm/divider/define.js +2 -2
  92. package/dist/esm/divider/define.js.map +1 -1
  93. package/dist/esm/divider/divider.bench.d.ts +1 -0
  94. package/dist/esm/divider/divider.bench.js +1 -3
  95. package/dist/esm/divider/divider.bench.js.map +1 -1
  96. package/dist/esm/divider/divider.definition.d.ts +3 -5
  97. package/dist/esm/divider/divider.definition.js +7 -8
  98. package/dist/esm/divider/divider.definition.js.map +1 -1
  99. package/dist/esm/drawer/define.js +2 -2
  100. package/dist/esm/drawer/define.js.map +1 -1
  101. package/dist/esm/drawer/drawer.definition.d.ts +3 -4
  102. package/dist/esm/drawer/drawer.definition.js +6 -6
  103. package/dist/esm/drawer/drawer.definition.js.map +1 -1
  104. package/dist/esm/drawer/drawer.styles.css +15 -16
  105. package/dist/esm/drawer-body/define.js +2 -2
  106. package/dist/esm/drawer-body/define.js.map +1 -1
  107. package/dist/esm/drawer-body/drawer-body.definition.d.ts +3 -4
  108. package/dist/esm/drawer-body/drawer-body.definition.js +6 -6
  109. package/dist/esm/drawer-body/drawer-body.definition.js.map +1 -1
  110. package/dist/esm/dropdown/define.js +2 -2
  111. package/dist/esm/dropdown/define.js.map +1 -1
  112. package/dist/esm/dropdown/dropdown.definition.d.ts +3 -5
  113. package/dist/esm/dropdown/dropdown.definition.js +6 -7
  114. package/dist/esm/dropdown/dropdown.definition.js.map +1 -1
  115. package/dist/esm/field/define.js +2 -2
  116. package/dist/esm/field/define.js.map +1 -1
  117. package/dist/esm/field/field.bench.d.ts +1 -0
  118. package/dist/esm/field/field.bench.js +1 -3
  119. package/dist/esm/field/field.bench.js.map +1 -1
  120. package/dist/esm/field/field.definition.d.ts +3 -5
  121. package/dist/esm/field/field.definition.js +7 -8
  122. package/dist/esm/field/field.definition.js.map +1 -1
  123. package/dist/esm/image/define.js +2 -2
  124. package/dist/esm/image/define.js.map +1 -1
  125. package/dist/esm/image/image.bench.d.ts +1 -0
  126. package/dist/esm/image/image.bench.js +1 -3
  127. package/dist/esm/image/image.bench.js.map +1 -1
  128. package/dist/esm/image/image.definition.d.ts +3 -5
  129. package/dist/esm/image/image.definition.js +7 -8
  130. package/dist/esm/image/image.definition.js.map +1 -1
  131. package/dist/esm/label/define.js +2 -2
  132. package/dist/esm/label/define.js.map +1 -1
  133. package/dist/esm/label/label.bench.d.ts +1 -0
  134. package/dist/esm/label/label.bench.js +1 -3
  135. package/dist/esm/label/label.bench.js.map +1 -1
  136. package/dist/esm/label/label.definition.d.ts +3 -6
  137. package/dist/esm/label/label.definition.js +6 -8
  138. package/dist/esm/label/label.definition.js.map +1 -1
  139. package/dist/esm/link/define.js +2 -2
  140. package/dist/esm/link/define.js.map +1 -1
  141. package/dist/esm/link/link.bench.d.ts +1 -0
  142. package/dist/esm/link/link.bench.js +1 -3
  143. package/dist/esm/link/link.bench.js.map +1 -1
  144. package/dist/esm/link/link.definition.d.ts +4 -4
  145. package/dist/esm/link/link.definition.js +7 -6
  146. package/dist/esm/link/link.definition.js.map +1 -1
  147. package/dist/esm/listbox/define.js +2 -2
  148. package/dist/esm/listbox/define.js.map +1 -1
  149. package/dist/esm/listbox/listbox.definition.d.ts +3 -5
  150. package/dist/esm/listbox/listbox.definition.js +6 -7
  151. package/dist/esm/listbox/listbox.definition.js.map +1 -1
  152. package/dist/esm/listbox/listbox.styles.css +2 -2
  153. package/dist/esm/menu/define.js +2 -2
  154. package/dist/esm/menu/define.js.map +1 -1
  155. package/dist/esm/menu/menu.bench.d.ts +4 -0
  156. package/dist/esm/menu/menu.bench.js +4 -9
  157. package/dist/esm/menu/menu.bench.js.map +1 -1
  158. package/dist/esm/menu/menu.definition.d.ts +3 -5
  159. package/dist/esm/menu/menu.definition.js +6 -7
  160. package/dist/esm/menu/menu.definition.js.map +1 -1
  161. package/dist/esm/menu/menu.styles.css +5 -5
  162. package/dist/esm/menu-button/define.js +2 -2
  163. package/dist/esm/menu-button/define.js.map +1 -1
  164. package/dist/esm/menu-button/menu-button.bench.d.ts +1 -0
  165. package/dist/esm/menu-button/menu-button.bench.js +1 -3
  166. package/dist/esm/menu-button/menu-button.bench.js.map +1 -1
  167. package/dist/esm/menu-button/menu-button.definition.d.ts +4 -4
  168. package/dist/esm/menu-button/menu-button.definition.js +8 -7
  169. package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
  170. package/dist/esm/menu-item/define.js +2 -2
  171. package/dist/esm/menu-item/define.js.map +1 -1
  172. package/dist/esm/menu-item/menu-item.bench.d.ts +1 -0
  173. package/dist/esm/menu-item/menu-item.bench.js +1 -3
  174. package/dist/esm/menu-item/menu-item.bench.js.map +1 -1
  175. package/dist/esm/menu-item/menu-item.definition.d.ts +4 -4
  176. package/dist/esm/menu-item/menu-item.definition.js +7 -6
  177. package/dist/esm/menu-item/menu-item.definition.js.map +1 -1
  178. package/dist/esm/menu-item/menu-item.styles.css +8 -3
  179. package/dist/esm/menu-list/define.js +2 -2
  180. package/dist/esm/menu-list/define.js.map +1 -1
  181. package/dist/esm/menu-list/menu-list.bench.d.ts +2 -0
  182. package/dist/esm/menu-list/menu-list.bench.js +2 -5
  183. package/dist/esm/menu-list/menu-list.bench.js.map +1 -1
  184. package/dist/esm/menu-list/menu-list.definition.d.ts +4 -4
  185. package/dist/esm/menu-list/menu-list.definition.js +7 -6
  186. package/dist/esm/menu-list/menu-list.definition.js.map +1 -1
  187. package/dist/esm/message-bar/define.js +2 -2
  188. package/dist/esm/message-bar/define.js.map +1 -1
  189. package/dist/esm/message-bar/message-bar.bench.d.ts +2 -0
  190. package/dist/esm/message-bar/message-bar.bench.js +2 -5
  191. package/dist/esm/message-bar/message-bar.bench.js.map +1 -1
  192. package/dist/esm/message-bar/message-bar.definition.d.ts +3 -5
  193. package/dist/esm/message-bar/message-bar.definition.js +5 -10
  194. package/dist/esm/message-bar/message-bar.definition.js.map +1 -1
  195. package/dist/esm/option/define.js +2 -2
  196. package/dist/esm/option/define.js.map +1 -1
  197. package/dist/esm/option/option.definition.d.ts +3 -5
  198. package/dist/esm/option/option.definition.js +6 -7
  199. package/dist/esm/option/option.definition.js.map +1 -1
  200. package/dist/esm/progress-bar/define.js +2 -2
  201. package/dist/esm/progress-bar/define.js.map +1 -1
  202. package/dist/esm/progress-bar/progress-bar.bench.d.ts +1 -0
  203. package/dist/esm/progress-bar/progress-bar.bench.js +1 -3
  204. package/dist/esm/progress-bar/progress-bar.bench.js.map +1 -1
  205. package/dist/esm/progress-bar/progress-bar.definition.d.ts +3 -6
  206. package/dist/esm/progress-bar/progress-bar.definition.js +6 -8
  207. package/dist/esm/progress-bar/progress-bar.definition.js.map +1 -1
  208. package/dist/esm/radio/define.js +2 -2
  209. package/dist/esm/radio/define.js.map +1 -1
  210. package/dist/esm/radio/radio.bench.d.ts +1 -0
  211. package/dist/esm/radio/radio.bench.js +1 -3
  212. package/dist/esm/radio/radio.bench.js.map +1 -1
  213. package/dist/esm/radio/radio.definition.d.ts +3 -6
  214. package/dist/esm/radio/radio.definition.js +6 -8
  215. package/dist/esm/radio/radio.definition.js.map +1 -1
  216. package/dist/esm/radio-group/define.js +2 -2
  217. package/dist/esm/radio-group/define.js.map +1 -1
  218. package/dist/esm/radio-group/radio-group.bench.d.ts +2 -0
  219. package/dist/esm/radio-group/radio-group.bench.js +2 -5
  220. package/dist/esm/radio-group/radio-group.bench.js.map +1 -1
  221. package/dist/esm/radio-group/radio-group.definition.d.ts +3 -6
  222. package/dist/esm/radio-group/radio-group.definition.js +6 -8
  223. package/dist/esm/radio-group/radio-group.definition.js.map +1 -1
  224. package/dist/esm/rating-display/define.js +2 -2
  225. package/dist/esm/rating-display/define.js.map +1 -1
  226. package/dist/esm/rating-display/rating-display.definition.d.ts +3 -5
  227. package/dist/esm/rating-display/rating-display.definition.js +6 -7
  228. package/dist/esm/rating-display/rating-display.definition.js.map +1 -1
  229. package/dist/esm/slider/define.js +2 -2
  230. package/dist/esm/slider/define.js.map +1 -1
  231. package/dist/esm/slider/slider.bench.d.ts +1 -0
  232. package/dist/esm/slider/slider.bench.js +1 -3
  233. package/dist/esm/slider/slider.bench.js.map +1 -1
  234. package/dist/esm/slider/slider.definition.d.ts +3 -6
  235. package/dist/esm/slider/slider.definition.js +6 -8
  236. package/dist/esm/slider/slider.definition.js.map +1 -1
  237. package/dist/esm/spinner/define.js +2 -2
  238. package/dist/esm/spinner/define.js.map +1 -1
  239. package/dist/esm/spinner/spinner.bench.d.ts +1 -0
  240. package/dist/esm/spinner/spinner.bench.js +1 -3
  241. package/dist/esm/spinner/spinner.bench.js.map +1 -1
  242. package/dist/esm/spinner/spinner.definition.d.ts +4 -4
  243. package/dist/esm/spinner/spinner.definition.js +7 -6
  244. package/dist/esm/spinner/spinner.definition.js.map +1 -1
  245. package/dist/esm/switch/define.js +2 -2
  246. package/dist/esm/switch/define.js.map +1 -1
  247. package/dist/esm/switch/switch.bench.d.ts +1 -0
  248. package/dist/esm/switch/switch.bench.js +1 -3
  249. package/dist/esm/switch/switch.bench.js.map +1 -1
  250. package/dist/esm/switch/switch.definition.d.ts +3 -5
  251. package/dist/esm/switch/switch.definition.js +7 -8
  252. package/dist/esm/switch/switch.definition.js.map +1 -1
  253. package/dist/esm/tab/define.js +2 -2
  254. package/dist/esm/tab/define.js.map +1 -1
  255. package/dist/esm/tab/tab.bench.d.ts +1 -0
  256. package/dist/esm/tab/tab.bench.js +1 -3
  257. package/dist/esm/tab/tab.bench.js.map +1 -1
  258. package/dist/esm/tab/tab.definition.d.ts +7 -2
  259. package/dist/esm/tab/tab.definition.js +11 -5
  260. package/dist/esm/tab/tab.definition.js.map +1 -1
  261. package/dist/esm/tablist/define.js +2 -2
  262. package/dist/esm/tablist/define.js.map +1 -1
  263. package/dist/esm/tablist/tablist.bench.d.ts +2 -0
  264. package/dist/esm/tablist/tablist.bench.js +2 -5
  265. package/dist/esm/tablist/tablist.bench.js.map +1 -1
  266. package/dist/esm/tablist/tablist.definition.d.ts +4 -4
  267. package/dist/esm/tablist/tablist.definition.js +8 -7
  268. package/dist/esm/tablist/tablist.definition.js.map +1 -1
  269. package/dist/esm/text/define.js +2 -2
  270. package/dist/esm/text/define.js.map +1 -1
  271. package/dist/esm/text/text.bench.d.ts +1 -0
  272. package/dist/esm/text/text.bench.js +1 -3
  273. package/dist/esm/text/text.bench.js.map +1 -1
  274. package/dist/esm/text/text.definition.d.ts +3 -6
  275. package/dist/esm/text/text.definition.js +6 -8
  276. package/dist/esm/text/text.definition.js.map +1 -1
  277. package/dist/esm/text-input/define.js +2 -2
  278. package/dist/esm/text-input/define.js.map +1 -1
  279. package/dist/esm/text-input/text-input.bench.d.ts +1 -0
  280. package/dist/esm/text-input/text-input.bench.js +1 -3
  281. package/dist/esm/text-input/text-input.bench.js.map +1 -1
  282. package/dist/esm/text-input/text-input.definition.d.ts +3 -5
  283. package/dist/esm/text-input/text-input.definition.js +7 -8
  284. package/dist/esm/text-input/text-input.definition.js.map +1 -1
  285. package/dist/esm/text-input/text-input.template.html +1 -2
  286. package/dist/esm/textarea/define.js +2 -2
  287. package/dist/esm/textarea/define.js.map +1 -1
  288. package/dist/esm/textarea/textarea.bench.d.ts +1 -0
  289. package/dist/esm/textarea/textarea.bench.js +1 -3
  290. package/dist/esm/textarea/textarea.bench.js.map +1 -1
  291. package/dist/esm/textarea/textarea.definition.d.ts +3 -5
  292. package/dist/esm/textarea/textarea.definition.js +7 -8
  293. package/dist/esm/textarea/textarea.definition.js.map +1 -1
  294. package/dist/esm/toggle-button/define.js +2 -2
  295. package/dist/esm/toggle-button/define.js.map +1 -1
  296. package/dist/esm/toggle-button/toggle-button.bench.d.ts +1 -0
  297. package/dist/esm/toggle-button/toggle-button.bench.js +1 -3
  298. package/dist/esm/toggle-button/toggle-button.bench.js.map +1 -1
  299. package/dist/esm/toggle-button/toggle-button.definition.d.ts +3 -4
  300. package/dist/esm/toggle-button/toggle-button.definition.js +6 -6
  301. package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -1
  302. package/dist/esm/toggle-button/toggle-button.styles.css +3 -0
  303. package/dist/esm/toggle-button/toggle-button.styles.js +3 -0
  304. package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -1
  305. package/dist/esm/tooltip/define.js +2 -2
  306. package/dist/esm/tooltip/define.js.map +1 -1
  307. package/dist/esm/tooltip/tooltip.definition.d.ts +3 -5
  308. package/dist/esm/tooltip/tooltip.definition.js +6 -7
  309. package/dist/esm/tooltip/tooltip.definition.js.map +1 -1
  310. package/dist/esm/tree/define.js +2 -2
  311. package/dist/esm/tree/define.js.map +1 -1
  312. package/dist/esm/tree/tree.bench.d.ts +1 -0
  313. package/dist/esm/tree/tree.bench.js +1 -3
  314. package/dist/esm/tree/tree.bench.js.map +1 -1
  315. package/dist/esm/tree/tree.definition.d.ts +3 -4
  316. package/dist/esm/tree/tree.definition.js +9 -9
  317. package/dist/esm/tree/tree.definition.js.map +1 -1
  318. package/dist/esm/tree-item/define.js +2 -2
  319. package/dist/esm/tree-item/define.js.map +1 -1
  320. package/dist/esm/tree-item/tree-item.bench.d.ts +1 -0
  321. package/dist/esm/tree-item/tree-item.bench.js +1 -3
  322. package/dist/esm/tree-item/tree-item.bench.js.map +1 -1
  323. package/dist/esm/tree-item/tree-item.definition.d.ts +3 -4
  324. package/dist/esm/tree-item/tree-item.definition.js +9 -9
  325. package/dist/esm/tree-item/tree-item.definition.js.map +1 -1
  326. package/dist/web-components-all.js +788 -749
  327. package/dist/web-components-all.min.js +6 -6
  328. package/dist/web-components.d.ts +99 -155
  329. package/dist/web-components.js +760 -721
  330. package/dist/web-components.min.js +5 -5
  331. package/package.json +1 -1
@@ -4685,114 +4685,6 @@ const FASTElement = Object.assign(createFASTElement(HTMLElement), {
4685
4685
  defineAsync,
4686
4686
  });
4687
4687
 
4688
- function staticallyCompose(item) {
4689
- if (!item) {
4690
- return InlineTemplateDirective.empty;
4691
- }
4692
- if (typeof item === "string") {
4693
- return new InlineTemplateDirective(item);
4694
- }
4695
- if ("inline" in item) {
4696
- return item.inline();
4697
- }
4698
- return item;
4699
- }
4700
-
4701
- class StartEnd {
4702
- }
4703
- function endSlotTemplate(options) {
4704
- return html`<slot name=end ${ref("end")}>${staticallyCompose(options.end)}</slot>`.inline();
4705
- }
4706
- function startSlotTemplate(options) {
4707
- return html`<slot name=start ${ref("start")}>${staticallyCompose(options.start)}</slot>`.inline();
4708
- }
4709
-
4710
- function applyMixins(derivedCtor, ...baseCtors) {
4711
- const derivedAttributes = AttributeConfiguration.locate(derivedCtor);
4712
- baseCtors.forEach((baseCtor) => {
4713
- Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {
4714
- if (name !== "constructor") {
4715
- Object.defineProperty(
4716
- derivedCtor.prototype,
4717
- name,
4718
- /* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */
4719
- Object.getOwnPropertyDescriptor(baseCtor.prototype, name)
4720
- );
4721
- }
4722
- });
4723
- const baseAttributes = AttributeConfiguration.locate(baseCtor);
4724
- baseAttributes.forEach((x) => derivedAttributes.push(x));
4725
- });
4726
- }
4727
-
4728
- var __defProp$P = Object.defineProperty;
4729
- var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
4730
- var __decorateClass$P = (decorators, target, key, kind) => {
4731
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
4732
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
4733
- if (decorator = decorators[i])
4734
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4735
- if (kind && result) __defProp$P(target, key, result);
4736
- return result;
4737
- };
4738
- class BaseAccordionItem extends FASTElement {
4739
- constructor() {
4740
- super(...arguments);
4741
- /**
4742
- * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
4743
- *
4744
- * @internal
4745
- */
4746
- this.elementInternals = this.attachInternals();
4747
- this.headinglevel = 2;
4748
- this.expanded = false;
4749
- this.disabled = false;
4750
- }
4751
- }
4752
- __decorateClass$P([
4753
- attr({
4754
- attribute: "heading-level",
4755
- mode: "fromView",
4756
- converter: nullableNumberConverter
4757
- })
4758
- ], BaseAccordionItem.prototype, "headinglevel", 2);
4759
- __decorateClass$P([
4760
- attr({ mode: "boolean" })
4761
- ], BaseAccordionItem.prototype, "expanded", 2);
4762
- __decorateClass$P([
4763
- attr({ mode: "boolean" })
4764
- ], BaseAccordionItem.prototype, "disabled", 2);
4765
- __decorateClass$P([
4766
- observable
4767
- ], BaseAccordionItem.prototype, "expandbutton", 2);
4768
-
4769
- var __defProp$O = Object.defineProperty;
4770
- var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
4771
- var __decorateClass$O = (decorators, target, key, kind) => {
4772
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
4773
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
4774
- if (decorator = decorators[i])
4775
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4776
- if (kind && result) __defProp$O(target, key, result);
4777
- return result;
4778
- };
4779
- class AccordionItem extends BaseAccordionItem {
4780
- constructor() {
4781
- super(...arguments);
4782
- this.block = false;
4783
- }
4784
- }
4785
- __decorateClass$O([
4786
- attr
4787
- ], AccordionItem.prototype, "size", 2);
4788
- __decorateClass$O([
4789
- attr({ attribute: "marker-position" })
4790
- ], AccordionItem.prototype, "markerPosition", 2);
4791
- __decorateClass$O([
4792
- attr({ mode: "boolean" })
4793
- ], AccordionItem.prototype, "block", 2);
4794
- applyMixins(AccordionItem, StartEnd);
4795
-
4796
4688
  const hidden = `:host([hidden]){display:none}`;
4797
4689
  function display(displayValue) {
4798
4690
  return `${hidden}:host{display:${displayValue}}`;
@@ -5046,6 +4938,28 @@ const curveLinear = "var(--curveLinear)";
5046
4938
 
5047
4939
  const styles$F = css`${display("block")} :host{max-width:fit-content;contain:content;color:${colorNeutralForeground1}}.heading{height:44px;display:grid;position:relative;padding-inline:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${colorTransparentBackground};border:none;box-sizing:border-box;color:inherit;cursor:pointer;font:inherit;grid-column:auto/span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${spacingHorizontalS};grid-column:1/span 1;grid-row:1}.content{margin:0 ${spacingHorizontalM}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall};outline:none;border:2px solid ${colorStrokeFocus1};box-shadow:inset 0 0 0 1px ${colorStrokeFocus2}}:host([disabled]) .button{color:${colorNeutralForegroundDisabled}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='small']) .heading{font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) .heading{font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='extra-large']) .heading{font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1;color:currentColor}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4/span 1;padding-inline-start:${spacingHorizontalS};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2/span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${spacingHorizontalM}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${spacingHorizontalMNudge} ${spacingHorizontalM}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5/span 1}`;
5048
4940
 
4941
+ function staticallyCompose(item) {
4942
+ if (!item) {
4943
+ return InlineTemplateDirective.empty;
4944
+ }
4945
+ if (typeof item === "string") {
4946
+ return new InlineTemplateDirective(item);
4947
+ }
4948
+ if ("inline" in item) {
4949
+ return item.inline();
4950
+ }
4951
+ return item;
4952
+ }
4953
+
4954
+ class StartEnd {
4955
+ }
4956
+ function endSlotTemplate(options) {
4957
+ return html`<slot name=end ${ref("end")}>${staticallyCompose(options.end)}</slot>`.inline();
4958
+ }
4959
+ function startSlotTemplate(options) {
4960
+ return html`<slot name=start ${ref("start")}>${staticallyCompose(options.start)}</slot>`.inline();
4961
+ }
4962
+
5049
4963
  const chevronRight20Filled = html.partial(`<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-collapsed aria-hidden=true><path d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z" fill=currentColor /></svg>`);
5050
4964
  const chevronDown20Filled = html.partial(`<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-expanded aria-hidden=true><path d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z" fill=currentColor /></svg>`);
5051
4965
  function accordionItemTemplate(options = {}) {
@@ -5056,13 +4970,100 @@ const template$F = accordionItemTemplate({
5056
4970
  expandedIcon: chevronDown20Filled
5057
4971
  });
5058
4972
 
5059
- const definition$F = AccordionItem.compose({
4973
+ const definition$F = {
5060
4974
  name: tagName$F,
5061
- template: template$F,
5062
- styles: styles$F
5063
- });
4975
+ registry: FluentDesignSystem.registry,
4976
+ styles: styles$F,
4977
+ template: template$F
4978
+ };
4979
+
4980
+ function applyMixins(derivedCtor, ...baseCtors) {
4981
+ const derivedAttributes = AttributeConfiguration.locate(derivedCtor);
4982
+ baseCtors.forEach((baseCtor) => {
4983
+ Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {
4984
+ if (name !== "constructor") {
4985
+ Object.defineProperty(
4986
+ derivedCtor.prototype,
4987
+ name,
4988
+ /* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */
4989
+ Object.getOwnPropertyDescriptor(baseCtor.prototype, name)
4990
+ );
4991
+ }
4992
+ });
4993
+ const baseAttributes = AttributeConfiguration.locate(baseCtor);
4994
+ baseAttributes.forEach((x) => derivedAttributes.push(x));
4995
+ });
4996
+ }
4997
+
4998
+ var __defProp$P = Object.defineProperty;
4999
+ var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
5000
+ var __decorateClass$P = (decorators, target, key, kind) => {
5001
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
5002
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
5003
+ if (decorator = decorators[i])
5004
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5005
+ if (kind && result) __defProp$P(target, key, result);
5006
+ return result;
5007
+ };
5008
+ class BaseAccordionItem extends FASTElement {
5009
+ constructor() {
5010
+ super(...arguments);
5011
+ /**
5012
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
5013
+ *
5014
+ * @internal
5015
+ */
5016
+ this.elementInternals = this.attachInternals();
5017
+ this.headinglevel = 2;
5018
+ this.expanded = false;
5019
+ this.disabled = false;
5020
+ }
5021
+ }
5022
+ __decorateClass$P([
5023
+ attr({
5024
+ attribute: "heading-level",
5025
+ mode: "fromView",
5026
+ converter: nullableNumberConverter
5027
+ })
5028
+ ], BaseAccordionItem.prototype, "headinglevel", 2);
5029
+ __decorateClass$P([
5030
+ attr({ mode: "boolean" })
5031
+ ], BaseAccordionItem.prototype, "expanded", 2);
5032
+ __decorateClass$P([
5033
+ attr({ mode: "boolean" })
5034
+ ], BaseAccordionItem.prototype, "disabled", 2);
5035
+ __decorateClass$P([
5036
+ observable
5037
+ ], BaseAccordionItem.prototype, "expandbutton", 2);
5064
5038
 
5065
- definition$F.define(FluentDesignSystem.registry);
5039
+ var __defProp$O = Object.defineProperty;
5040
+ var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
5041
+ var __decorateClass$O = (decorators, target, key, kind) => {
5042
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
5043
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
5044
+ if (decorator = decorators[i])
5045
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5046
+ if (kind && result) __defProp$O(target, key, result);
5047
+ return result;
5048
+ };
5049
+ class AccordionItem extends BaseAccordionItem {
5050
+ constructor() {
5051
+ super(...arguments);
5052
+ this.block = false;
5053
+ }
5054
+ }
5055
+ __decorateClass$O([
5056
+ attr
5057
+ ], AccordionItem.prototype, "size", 2);
5058
+ __decorateClass$O([
5059
+ attr({ attribute: "marker-position" })
5060
+ ], AccordionItem.prototype, "markerPosition", 2);
5061
+ __decorateClass$O([
5062
+ attr({ mode: "boolean" })
5063
+ ], AccordionItem.prototype, "block", 2);
5064
+ applyMixins(AccordionItem, StartEnd);
5065
+
5066
+ AccordionItem.define(definition$F);
5066
5067
 
5067
5068
  const AccordionExpandMode = {
5068
5069
  single: "single",
@@ -5070,6 +5071,20 @@ const AccordionExpandMode = {
5070
5071
  };
5071
5072
  const tagName$E = `${FluentDesignSystem.prefix}-accordion`;
5072
5073
 
5074
+ const styles$E = css`${display("flex")} :host{flex-direction:column;width:100%;contain:content}`;
5075
+
5076
+ function accordionTemplate() {
5077
+ return html`<template><slot ${slotted({ property: "slottedAccordionItems", filter: elements() })}></slot></template>`;
5078
+ }
5079
+ const template$E = accordionTemplate();
5080
+
5081
+ const definition$E = {
5082
+ name: tagName$E,
5083
+ registry: FluentDesignSystem.registry,
5084
+ styles: styles$E,
5085
+ template: template$E
5086
+ };
5087
+
5073
5088
  function requestIdleCallback$1(callback, options) {
5074
5089
  if ("requestIdleCallback" in globalThis) {
5075
5090
  return globalThis.requestIdleCallback(callback, options);
@@ -5260,20 +5275,7 @@ __decorateClass$N([
5260
5275
  observable
5261
5276
  ], Accordion.prototype, "slottedAccordionItems", 2);
5262
5277
 
5263
- const styles$E = css`${display("flex")} :host{flex-direction:column;width:100%;contain:content}`;
5264
-
5265
- function accordionTemplate() {
5266
- return html`<template><slot ${slotted({ property: "slottedAccordionItems", filter: elements() })}></slot></template>`;
5267
- }
5268
- const template$E = accordionTemplate();
5269
-
5270
- const definition$E = Accordion.compose({
5271
- name: tagName$E,
5272
- template: template$E,
5273
- styles: styles$E
5274
- });
5275
-
5276
- definition$E.define(FluentDesignSystem.registry);
5278
+ Accordion.define(definition$E);
5277
5279
 
5278
5280
  const ButtonAppearance = {
5279
5281
  primary: "primary",
@@ -5313,6 +5315,23 @@ const AnchorAttributes = {
5313
5315
  };
5314
5316
  const tagName$C = `${FluentDesignSystem.prefix}-anchor-button`;
5315
5317
 
5318
+ const baseButtonStyles = css`${display("inline-flex")} :host{--icon-spacing:${spacingHorizontalSNudge};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${colorNeutralBackground1};color:${colorNeutralForeground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};padding:0 ${spacingHorizontalM};min-width:96px;border-radius:${borderRadiusMedium};font-size:${fontSizeBase300};font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};line-height:${lineHeightBase300};transition-duration:${durationFaster};transition-property:background,border,color;transition-timing-function:${curveEasyEase};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active){background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host(:focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${spacingHorizontalXS};min-height:24px;min-width:64px;padding:0 ${spacingHorizontalS};border-radius:${borderRadiusSmall};font-size:${fontSizeBase200};line-height:${lineHeightBase200};font-weight:${fontWeightRegular}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${borderRadiusCircular}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${borderRadiusNone}}:host([appearance='primary']){background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host([appearance='primary']:hover){background-color:${colorBrandBackgroundHover}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${colorNeutralForegroundOnBrand}}:host([appearance='primary']:hover:active){background-color:${colorBrandBackgroundPressed}}:host([appearance='primary']:focus-visible){border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host([appearance='outline']){background-color:${colorTransparentBackground}}:host([appearance='outline']:hover){background-color:${colorTransparentBackgroundHover}}:host([appearance='outline']:hover:active){background-color:${colorTransparentBackgroundPressed}}:host([appearance='subtle']){background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host([appearance='subtle']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host([appearance='transparent']){background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host([appearance='transparent']:hover){background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host([appearance='transparent']:hover:active){background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`;
5319
+ const styles$D = css`${baseButtonStyles} :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled};color:${colorNeutralForegroundDisabled};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${colorTransparentBackground}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`;
5320
+
5321
+ const styles$C = css`${baseButtonStyles} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;
5322
+
5323
+ function anchorTemplate$1(options = {}) {
5324
+ return html`<template tabindex=0 @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}>${startSlotTemplate(options)} <span class=content part=content><slot></slot></span>${endSlotTemplate(options)}</template>`;
5325
+ }
5326
+ const template$D = anchorTemplate$1();
5327
+
5328
+ const definition$D = {
5329
+ name: tagName$C,
5330
+ registry: FluentDesignSystem.registry,
5331
+ styles: styles$C,
5332
+ template: template$D
5333
+ };
5334
+
5316
5335
  const AnchorPositioningCSSSupported = CSS.supports("anchor-name: --a");
5317
5336
  const AnchorPositioningHTMLSupported = "anchor" in HTMLElement.prototype;
5318
5337
  const CustomStatesSetSupported = CSS.supports("selector(:state(g))");
@@ -5560,23 +5579,7 @@ __decorateClass$L([
5560
5579
  ], AnchorButton.prototype, "iconOnly", 2);
5561
5580
  applyMixins(AnchorButton, StartEnd);
5562
5581
 
5563
- const baseButtonStyles = css`${display("inline-flex")} :host{--icon-spacing:${spacingHorizontalSNudge};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${colorNeutralBackground1};color:${colorNeutralForeground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};padding:0 ${spacingHorizontalM};min-width:96px;border-radius:${borderRadiusMedium};font-size:${fontSizeBase300};font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};line-height:${lineHeightBase300};transition-duration:${durationFaster};transition-property:background,border,color;transition-timing-function:${curveEasyEase};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active){background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host(:focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${spacingHorizontalXS};min-height:24px;min-width:64px;padding:0 ${spacingHorizontalS};border-radius:${borderRadiusSmall};font-size:${fontSizeBase200};line-height:${lineHeightBase200};font-weight:${fontWeightRegular}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${borderRadiusCircular}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${borderRadiusNone}}:host([appearance='primary']){background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host([appearance='primary']:hover){background-color:${colorBrandBackgroundHover}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${colorNeutralForegroundOnBrand}}:host([appearance='primary']:hover:active){background-color:${colorBrandBackgroundPressed}}:host([appearance='primary']:focus-visible){border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host([appearance='outline']){background-color:${colorTransparentBackground}}:host([appearance='outline']:hover){background-color:${colorTransparentBackgroundHover}}:host([appearance='outline']:hover:active){background-color:${colorTransparentBackgroundPressed}}:host([appearance='subtle']){background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host([appearance='subtle']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host([appearance='transparent']){background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host([appearance='transparent']:hover){background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host([appearance='transparent']:hover:active){background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`;
5564
- const styles$D = css`${baseButtonStyles} :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled};color:${colorNeutralForegroundDisabled};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${colorTransparentBackground}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`;
5565
-
5566
- const styles$C = css`${baseButtonStyles} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;
5567
-
5568
- function anchorTemplate$1(options = {}) {
5569
- return html`<template tabindex=0 @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}>${startSlotTemplate(options)} <span class=content part=content><slot></slot></span>${endSlotTemplate(options)}</template>`;
5570
- }
5571
- const template$D = anchorTemplate$1();
5572
-
5573
- const definition$D = AnchorButton.compose({
5574
- name: tagName$C,
5575
- template: template$D,
5576
- styles: styles$C
5577
- });
5578
-
5579
- definition$D.define(FluentDesignSystem.registry);
5582
+ AnchorButton.define(definition$D);
5580
5583
 
5581
5584
  const AvatarNamedColor = {
5582
5585
  darkRed: "dark-red",
@@ -5618,6 +5621,32 @@ const AvatarColor = {
5618
5621
  };
5619
5622
  const tagName$B = `${FluentDesignSystem.prefix}-avatar`;
5620
5623
 
5624
+ const animations = {
5625
+ fastOutSlowInMax: curveDecelerateMax,
5626
+ fastOutSlowInMid: curveDecelerateMid,
5627
+ fastOutSlowInMin: curveDecelerateMin,
5628
+ slowOutFastInMax: curveAccelerateMax,
5629
+ slowOutFastInMid: curveAccelerateMid,
5630
+ slowOutFastInMin: curveAccelerateMin,
5631
+ fastEase: curveEasyEaseMax,
5632
+ normalEase: curveEasyEase,
5633
+ nullEasing: curveLinear
5634
+ };
5635
+ const styles$B = css`${display("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase300};border-radius:${borderRadiusCircular};color:${colorNeutralForeground3};background-color:${colorNeutralBackground6};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${borderRadiusCircular}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${strokeWidthThin} ${colorNeutralBackground1}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${strokeWidthThick} ${colorNeutralBackground1}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${fontSizeBase100};font-weight:${fontWeightRegular}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${fontSizeBase200}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fontSizeBase400}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${fontSizeBase500}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${fontSizeBase600}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${borderRadiusMedium}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${borderRadiusSmall}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${borderRadiusLarge}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${borderRadiusXLarge}}:host([data-color='brand']){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host([data-color='dark-red']){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host([data-color='cranberry']){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host([data-color='red']){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host([data-color='pumpkin']){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host([data-color='peach']){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host([data-color='marigold']){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host([data-color='gold']){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host([data-color='brass']){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host([data-color='brown']){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host([data-color='forest']){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host([data-color='seafoam']){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host([data-color='dark-green']){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host([data-color='light-teal']){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host([data-color='teal']){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host([data-color='steel']){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host([data-color='blue']){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host([data-color='royal-blue']){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host([data-color='cornflower']){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host([data-color='navy']){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host([data-color='lavender']){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host([data-color='purple']){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host([data-color='grape']){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host([data-color='lilac']){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host([data-color='pink']){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host([data-color='magenta']){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host([data-color='plum']){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host([data-color='beige']){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host([data-color='mink']){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host([data-color='platinum']){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host([data-color='anchor']){color:${colorPaletteAnchorForeground2};background-color:${colorPaletteAnchorBackground2}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{box-shadow:${shadow8};border-style:solid;border-color:${colorBrandBackgroundStatic}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThick});border-width:${strokeWidthThick}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThicker});border-width:${strokeWidthThicker}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThickest});border-width:${strokeWidthThickest}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${shadow4}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${shadow16}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${shadow28}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`;
5636
+
5637
+ const defaultIconTemplate = html`<svg width=1em height=1em viewBox="0 0 20 20" class=default-icon fill=currentcolor aria-hidden=true><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;
5638
+ function avatarTemplate() {
5639
+ return html`<slot class=default-slot ${slotted("slottedDefaults")} ${ref("defaultSlot")}></slot><span class=monogram ${ref("monogram")}>${(x) => x.initials}</span> ${defaultIconTemplate}<slot name=badge></slot>`;
5640
+ }
5641
+ const template$C = avatarTemplate();
5642
+
5643
+ const definition$C = {
5644
+ name: tagName$B,
5645
+ registry: FluentDesignSystem.registry,
5646
+ styles: styles$B,
5647
+ template: template$C
5648
+ };
5649
+
5621
5650
  const UNWANTED_ENCLOSURES_REGEX = /[\(\[\{][^\)\]\}]*[\)\]\}]/g;
5622
5651
  const UNWANTED_CHARS_REGEX = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g;
5623
5652
  const PHONENUMBER_REGEX = /^\d+[\d\s]*(:?ext|x|)\s*\d+$/i;
@@ -5882,32 +5911,7 @@ const getHashCode = (str) => {
5882
5911
  return hashCode;
5883
5912
  };
5884
5913
 
5885
- const animations = {
5886
- fastOutSlowInMax: curveDecelerateMax,
5887
- fastOutSlowInMid: curveDecelerateMid,
5888
- fastOutSlowInMin: curveDecelerateMin,
5889
- slowOutFastInMax: curveAccelerateMax,
5890
- slowOutFastInMid: curveAccelerateMid,
5891
- slowOutFastInMin: curveAccelerateMin,
5892
- fastEase: curveEasyEaseMax,
5893
- normalEase: curveEasyEase,
5894
- nullEasing: curveLinear
5895
- };
5896
- const styles$B = css`${display("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase300};border-radius:${borderRadiusCircular};color:${colorNeutralForeground3};background-color:${colorNeutralBackground6};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${borderRadiusCircular}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${strokeWidthThin} ${colorNeutralBackground1}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${strokeWidthThick} ${colorNeutralBackground1}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${fontSizeBase100};font-weight:${fontWeightRegular}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${fontSizeBase200}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fontSizeBase400}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${fontSizeBase500}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${fontSizeBase600}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${borderRadiusMedium}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${borderRadiusSmall}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${borderRadiusLarge}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${borderRadiusXLarge}}:host([data-color='brand']){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host([data-color='dark-red']){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host([data-color='cranberry']){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host([data-color='red']){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host([data-color='pumpkin']){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host([data-color='peach']){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host([data-color='marigold']){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host([data-color='gold']){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host([data-color='brass']){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host([data-color='brown']){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host([data-color='forest']){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host([data-color='seafoam']){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host([data-color='dark-green']){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host([data-color='light-teal']){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host([data-color='teal']){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host([data-color='steel']){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host([data-color='blue']){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host([data-color='royal-blue']){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host([data-color='cornflower']){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host([data-color='navy']){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host([data-color='lavender']){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host([data-color='purple']){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host([data-color='grape']){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host([data-color='lilac']){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host([data-color='pink']){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host([data-color='magenta']){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host([data-color='plum']){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host([data-color='beige']){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host([data-color='mink']){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host([data-color='platinum']){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host([data-color='anchor']){color:${colorPaletteAnchorForeground2};background-color:${colorPaletteAnchorBackground2}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{box-shadow:${shadow8};border-style:solid;border-color:${colorBrandBackgroundStatic}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThick});border-width:${strokeWidthThick}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThicker});border-width:${strokeWidthThicker}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThickest});border-width:${strokeWidthThickest}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${shadow4}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${shadow16}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${shadow28}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`;
5897
-
5898
- const defaultIconTemplate = html`<svg width=1em height=1em viewBox="0 0 20 20" class=default-icon fill=currentcolor aria-hidden=true><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;
5899
- function avatarTemplate() {
5900
- return html`<slot class=default-slot ${slotted("slottedDefaults")} ${ref("defaultSlot")}></slot><span class=monogram ${ref("monogram")}>${(x) => x.initials}</span> ${defaultIconTemplate}<slot name=badge></slot>`;
5901
- }
5902
- const template$C = avatarTemplate();
5903
-
5904
- const definition$C = Avatar.compose({
5905
- name: tagName$B,
5906
- template: template$C,
5907
- styles: styles$B
5908
- });
5909
-
5910
- definition$C.define(FluentDesignSystem.registry);
5914
+ Avatar.define(definition$C);
5911
5915
 
5912
5916
  const BadgeAppearance = {
5913
5917
  filled: "filled",
@@ -5927,6 +5931,27 @@ const BadgeColor = {
5927
5931
  };
5928
5932
  const tagName$A = `${FluentDesignSystem.prefix}-badge`;
5929
5933
 
5934
+ const badgeBaseStyles = css.partial`${display("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase200};line-height:${lineHeightBase200};min-width:20px;height:20px;padding-inline:calc(${spacingHorizontalXS} + ${spacingHorizontalXXS});border-radius:${borderRadiusCircular};border-color:${colorTransparentStroke};background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${strokeWidthThin};border-color:inherit;border-radius:inherit}`;
5935
+ const badgeSizeStyles = css.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${fontSizeBase100};line-height:${lineHeightBase100};padding-inline:calc(${spacingHorizontalXXS} + ${spacingHorizontalXXS})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${fontSizeBase200};line-height:${lineHeightBase200};padding-inline:calc(${spacingHorizontalXS} + ${spacingHorizontalXXS})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${fontSizeBase200};line-height:${lineHeightBase200};padding-inline:calc(${spacingHorizontalSNudge} + ${spacingHorizontalXXS})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`;
5936
+ const badgeFilledStyles = css.partial`:host([color='danger']){background-color:${colorPaletteRedBackground3};color:${colorNeutralForegroundOnBrand}}:host([color='important']){background-color:${colorNeutralForeground1};color:${colorNeutralBackground1}}:host([color='informative']){background-color:${colorNeutralBackground5};color:${colorNeutralForeground3}}:host([color='severe']){background-color:${colorPaletteDarkOrangeBackground3};color:${colorNeutralForegroundOnBrand}}:host([color='subtle']){background-color:${colorNeutralBackground1};color:${colorNeutralForeground1}}:host([color='success']){background-color:${colorPaletteGreenBackground3};color:${colorNeutralForegroundOnBrand}}:host([color='warning']){background-color:${colorPaletteYellowBackground3};color:${colorNeutralForeground1Static}}`;
5937
+ const badgeGhostStyles = css.partial`:host([appearance='ghost']){color:${colorBrandForeground1};background-color:initial}:host([appearance='ghost'][color='danger']){color:${colorPaletteRedForeground3}}:host([appearance='ghost'][color='important']){color:${colorNeutralForeground1}}:host([appearance='ghost'][color='informative']){color:${colorNeutralForeground3}}:host([appearance='ghost'][color='severe']){color:${colorPaletteDarkOrangeForeground3}}:host([appearance='ghost'][color='subtle']){color:${colorNeutralForegroundInverted}}:host([appearance='ghost'][color='success']){color:${colorPaletteGreenForeground3}}:host([appearance='ghost'][color='warning']){color:${colorPaletteYellowForeground2}}`;
5938
+ const badgeOutlineStyles = css.partial`:host([appearance='outline']){border-color:currentColor;color:${colorBrandForeground1};background-color:initial}:host([appearance='outline'][color='danger']){color:${colorPaletteRedForeground3}}:host([appearance='outline'][color='important']){color:${colorNeutralForeground3};border-color:${colorNeutralStrokeAccessible}}:host([appearance='outline'][color='informative']){color:${colorNeutralForeground3};border-color:${colorNeutralStroke2}}:host([appearance='outline'][color='severe']){color:${colorPaletteDarkOrangeForeground3}}:host([appearance='outline'][color='subtle']){color:${colorNeutralForegroundStaticInverted}}:host([appearance='outline'][color='success']){color:${colorPaletteGreenForeground2}}:host([appearance='outline'][color='warning']){color:${colorPaletteYellowForeground2}}`;
5939
+ const badgeTintStyles = css.partial`:host([appearance='tint']){background-color:${colorBrandBackground2};color:${colorBrandForeground2};border-color:${colorBrandStroke2}}:host([appearance='tint'][color='danger']){background-color:${colorPaletteRedBackground1};color:${colorPaletteRedForeground1};border-color:${colorPaletteRedBorder1}}:host([appearance='tint'][color='important']){background-color:${colorNeutralForeground3};color:${colorNeutralBackground1};border-color:${colorTransparentStroke}}:host([appearance='tint'][color='informative']){background-color:${colorNeutralBackground4};color:${colorNeutralForeground3};border-color:${colorNeutralStroke2}}:host([appearance='tint'][color='severe']){background-color:${colorPaletteDarkOrangeBackground1};color:${colorPaletteDarkOrangeForeground1};border-color:${colorPaletteDarkOrangeBorder1}}:host([appearance='tint'][color='subtle']){background-color:${colorNeutralBackground1};color:${colorNeutralForeground3};border-color:${colorNeutralStroke2}}:host([appearance='tint'][color='success']){background-color:${colorPaletteGreenBackground1};color:${colorPaletteGreenForeground1};border-color:${colorPaletteGreenBorder2}}:host([appearance='tint'][color='warning']){background-color:${colorPaletteYellowBackground1};color:${colorPaletteYellowForeground2};border-color:${colorPaletteYellowBorder1}}`;
5940
+
5941
+ const styles$A = css`:host([shape='square']){border-radius:${borderRadiusNone}}:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${borderRadiusSmall}}${badgeTintStyles} ${badgeOutlineStyles} ${badgeGhostStyles} ${badgeFilledStyles} ${badgeSizeStyles} ${badgeBaseStyles} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;
5942
+
5943
+ function badgeTemplate(options = {}) {
5944
+ return html`${startSlotTemplate(options)}<slot>${staticallyCompose(options.defaultContent)}</slot>${endSlotTemplate(options)}`;
5945
+ }
5946
+ const template$B = badgeTemplate();
5947
+
5948
+ const definition$B = {
5949
+ name: tagName$A,
5950
+ registry: FluentDesignSystem.registry,
5951
+ styles: styles$A,
5952
+ template: template$B
5953
+ };
5954
+
5930
5955
  var __defProp$I = Object.defineProperty;
5931
5956
  var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
5932
5957
  var __decorateClass$I = (decorators, target, key, kind) => {
@@ -5958,27 +5983,19 @@ __decorateClass$I([
5958
5983
  ], Badge.prototype, "size", 2);
5959
5984
  applyMixins(Badge, StartEnd);
5960
5985
 
5961
- const badgeBaseStyles = css.partial`${display("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase200};line-height:${lineHeightBase200};min-width:20px;height:20px;padding-inline:calc(${spacingHorizontalXS} + ${spacingHorizontalXXS});border-radius:${borderRadiusCircular};border-color:${colorTransparentStroke};background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${strokeWidthThin};border-color:inherit;border-radius:inherit}`;
5962
- const badgeSizeStyles = css.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${fontSizeBase100};line-height:${lineHeightBase100};padding-inline:calc(${spacingHorizontalXXS} + ${spacingHorizontalXXS})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${fontSizeBase200};line-height:${lineHeightBase200};padding-inline:calc(${spacingHorizontalXS} + ${spacingHorizontalXXS})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${fontSizeBase200};line-height:${lineHeightBase200};padding-inline:calc(${spacingHorizontalSNudge} + ${spacingHorizontalXXS})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`;
5963
- const badgeFilledStyles = css.partial`:host([color='danger']){background-color:${colorPaletteRedBackground3};color:${colorNeutralForegroundOnBrand}}:host([color='important']){background-color:${colorNeutralForeground1};color:${colorNeutralBackground1}}:host([color='informative']){background-color:${colorNeutralBackground5};color:${colorNeutralForeground3}}:host([color='severe']){background-color:${colorPaletteDarkOrangeBackground3};color:${colorNeutralForegroundOnBrand}}:host([color='subtle']){background-color:${colorNeutralBackground1};color:${colorNeutralForeground1}}:host([color='success']){background-color:${colorPaletteGreenBackground3};color:${colorNeutralForegroundOnBrand}}:host([color='warning']){background-color:${colorPaletteYellowBackground3};color:${colorNeutralForeground1Static}}`;
5964
- const badgeGhostStyles = css.partial`:host([appearance='ghost']){color:${colorBrandForeground1};background-color:initial}:host([appearance='ghost'][color='danger']){color:${colorPaletteRedForeground3}}:host([appearance='ghost'][color='important']){color:${colorNeutralForeground1}}:host([appearance='ghost'][color='informative']){color:${colorNeutralForeground3}}:host([appearance='ghost'][color='severe']){color:${colorPaletteDarkOrangeForeground3}}:host([appearance='ghost'][color='subtle']){color:${colorNeutralForegroundInverted}}:host([appearance='ghost'][color='success']){color:${colorPaletteGreenForeground3}}:host([appearance='ghost'][color='warning']){color:${colorPaletteYellowForeground2}}`;
5965
- const badgeOutlineStyles = css.partial`:host([appearance='outline']){border-color:currentColor;color:${colorBrandForeground1};background-color:initial}:host([appearance='outline'][color='danger']){color:${colorPaletteRedForeground3}}:host([appearance='outline'][color='important']){color:${colorNeutralForeground3};border-color:${colorNeutralStrokeAccessible}}:host([appearance='outline'][color='informative']){color:${colorNeutralForeground3};border-color:${colorNeutralStroke2}}:host([appearance='outline'][color='severe']){color:${colorPaletteDarkOrangeForeground3}}:host([appearance='outline'][color='subtle']){color:${colorNeutralForegroundStaticInverted}}:host([appearance='outline'][color='success']){color:${colorPaletteGreenForeground2}}:host([appearance='outline'][color='warning']){color:${colorPaletteYellowForeground2}}`;
5966
- const badgeTintStyles = css.partial`:host([appearance='tint']){background-color:${colorBrandBackground2};color:${colorBrandForeground2};border-color:${colorBrandStroke2}}:host([appearance='tint'][color='danger']){background-color:${colorPaletteRedBackground1};color:${colorPaletteRedForeground1};border-color:${colorPaletteRedBorder1}}:host([appearance='tint'][color='important']){background-color:${colorNeutralForeground3};color:${colorNeutralBackground1};border-color:${colorTransparentStroke}}:host([appearance='tint'][color='informative']){background-color:${colorNeutralBackground4};color:${colorNeutralForeground3};border-color:${colorNeutralStroke2}}:host([appearance='tint'][color='severe']){background-color:${colorPaletteDarkOrangeBackground1};color:${colorPaletteDarkOrangeForeground1};border-color:${colorPaletteDarkOrangeBorder1}}:host([appearance='tint'][color='subtle']){background-color:${colorNeutralBackground1};color:${colorNeutralForeground3};border-color:${colorNeutralStroke2}}:host([appearance='tint'][color='success']){background-color:${colorPaletteGreenBackground1};color:${colorPaletteGreenForeground1};border-color:${colorPaletteGreenBorder2}}:host([appearance='tint'][color='warning']){background-color:${colorPaletteYellowBackground1};color:${colorPaletteYellowForeground2};border-color:${colorPaletteYellowBorder1}}`;
5967
-
5968
- const styles$A = css`:host([shape='square']){border-radius:${borderRadiusNone}}:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${borderRadiusSmall}}${badgeTintStyles} ${badgeOutlineStyles} ${badgeGhostStyles} ${badgeFilledStyles} ${badgeSizeStyles} ${badgeBaseStyles} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;
5969
-
5970
- function badgeTemplate(options = {}) {
5971
- return html`${startSlotTemplate(options)}<slot>${staticallyCompose(options.defaultContent)}</slot>${endSlotTemplate(options)}`;
5972
- }
5973
- const template$B = badgeTemplate();
5986
+ Badge.define(definition$B);
5974
5987
 
5975
- const definition$B = Badge.compose({
5976
- name: tagName$A,
5977
- template: template$B,
5978
- styles: styles$A
5979
- });
5988
+ function buttonTemplate$1(options = {}) {
5989
+ return html`<template @click=${(x, c) => x.clickHandler(c.event)} @keypress=${(x, c) => x.keypressHandler(c.event)}>${startSlotTemplate(options)} <span class=content part=content><slot ${slotted("defaultSlottedContent")}></slot></span>${endSlotTemplate(options)}</template>`;
5990
+ }
5991
+ const template$A = buttonTemplate$1();
5980
5992
 
5981
- definition$B.define(FluentDesignSystem.registry);
5993
+ const definition$A = {
5994
+ name: tagName$D,
5995
+ registry: FluentDesignSystem.registry,
5996
+ styles: styles$D,
5997
+ template: template$A
5998
+ };
5982
5999
 
5983
6000
  function maybeSetAutoFocus(element) {
5984
6001
  const doc = element.ownerDocument;
@@ -6290,20 +6307,63 @@ __decorateClass$G([
6290
6307
  ], Button.prototype, "iconOnly", 2);
6291
6308
  applyMixins(Button, StartEnd);
6292
6309
 
6293
- function buttonTemplate$1(options = {}) {
6294
- return html`<template @click=${(x, c) => x.clickHandler(c.event)} @keypress=${(x, c) => x.keypressHandler(c.event)}>${startSlotTemplate(options)} <span class=content part=content><slot ${slotted("defaultSlottedContent")}></slot></span>${endSlotTemplate(options)}</template>`;
6295
- }
6296
- const template$A = buttonTemplate$1();
6310
+ Button.define(definition$A);
6297
6311
 
6298
- const definition$A = Button.compose({
6299
- name: tagName$D,
6300
- template: template$A,
6301
- styles: styles$D
6302
- });
6312
+ const tagName$z = `${FluentDesignSystem.prefix}-checkbox`;
6313
+
6314
+ const activeState = stateSelector("active");
6315
+ const badInputState = stateSelector("bad-input");
6316
+ const checkedState = stateSelector("checked");
6317
+ const customErrorState = stateSelector("custom-error");
6318
+ const descriptionState = stateSelector("description");
6319
+ const disabledState = stateSelector("disabled");
6320
+ stateSelector("error");
6321
+ const flipBlockState = stateSelector("flip-block");
6322
+ const focusVisibleState = stateSelector("focus-visible");
6323
+ stateSelector("has-message");
6324
+ const indeterminateState = stateSelector("indeterminate");
6325
+ const multipleState = stateSelector("multiple");
6326
+ const openState = stateSelector("open");
6327
+ const patternMismatchState = stateSelector("pattern-mismatch");
6328
+ const placeholderShownState = stateSelector("placeholder-shown");
6329
+ const pressedState = stateSelector("pressed");
6330
+ const rangeOverflowState = stateSelector("range-overflow");
6331
+ const rangeUnderflowState = stateSelector("range-underflow");
6332
+ const requiredState = stateSelector("required");
6333
+ const selectedState = stateSelector("selected");
6334
+ const stepMismatchState = stateSelector("step-mismatch");
6335
+ const submenuState = stateSelector("submenu");
6336
+ const tooLongState = stateSelector("too-long");
6337
+ const tooShortState = stateSelector("too-short");
6338
+ const typeMismatchState = stateSelector("type-mismatch");
6339
+ const userInvalidState = stateSelector("user-invalid");
6340
+ const validState = stateSelector("valid");
6341
+ const valueMissingState = stateSelector("value-missing");
6303
6342
 
6304
- definition$A.define(FluentDesignSystem.registry);
6343
+ const styles$z = css`${display("inline-flex")} :host{--size:16px;background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:hover){background-color:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandStrokeHover}}:host(${checkedState}:active){background-color:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandStrokePressed}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}.indeterminate-indicator,.checked-indicator{color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${checkedState})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${checkedState}),:host(${indeterminateState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:${colorCompoundBrandBackground}}:host(${indeterminateState}) .indeterminate-indicator{border-radius:${borderRadiusSmall};position:absolute;width:calc(var(--size)/2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${borderRadiusCircular}}:host([disabled]),:host([disabled]${checkedState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host([disabled]){cursor:unset}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:${colorNeutralStrokeDisabled}}:host([disabled]${checkedState}) .checked-indicator{color:${colorNeutralStrokeDisabled}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${checkedState}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:FieldText}:host(${checkedState}:not([disabled]):hover),:host(${indeterminateState}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${checkedState}) .checked-indicator{color:GrayText}}`;
6305
6344
 
6306
- const tagName$z = `${FluentDesignSystem.prefix}-checkbox`;
6345
+ const checkedIndicator$2 = html.partial(
6346
+ /* html */
6347
+ `<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>`
6348
+ );
6349
+ const indeterminateIndicator = html.partial(
6350
+ /* html */
6351
+ `<span class=indeterminate-indicator></span>`
6352
+ );
6353
+ function checkboxTemplate(options = {}) {
6354
+ return html`<template @click=${(x, c) => x.clickHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @keyup=${(x, c) => x.keyupHandler(c.event)}><slot name=checked-indicator>${staticallyCompose(options.checkedIndicator)}</slot><slot name=indeterminate-indicator>${staticallyCompose(options.indeterminateIndicator)}</slot></template>`;
6355
+ }
6356
+ const template$z = checkboxTemplate({
6357
+ checkedIndicator: checkedIndicator$2,
6358
+ indeterminateIndicator
6359
+ });
6360
+
6361
+ const definition$z = {
6362
+ name: tagName$z,
6363
+ registry: FluentDesignSystem.registry,
6364
+ styles: styles$z,
6365
+ template: template$z
6366
+ };
6307
6367
 
6308
6368
  var __defProp$F = Object.defineProperty;
6309
6369
  var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
@@ -6747,66 +6807,10 @@ __decorateClass$E([
6747
6807
  attr
6748
6808
  ], Checkbox.prototype, "size", 2);
6749
6809
 
6750
- const activeState = stateSelector("active");
6751
- const badInputState = stateSelector("bad-input");
6752
- const checkedState = stateSelector("checked");
6753
- const customErrorState = stateSelector("custom-error");
6754
- const descriptionState = stateSelector("description");
6755
- const disabledState = stateSelector("disabled");
6756
- stateSelector("error");
6757
- const flipBlockState = stateSelector("flip-block");
6758
- const focusVisibleState = stateSelector("focus-visible");
6759
- stateSelector("has-message");
6760
- const indeterminateState = stateSelector("indeterminate");
6761
- const multipleState = stateSelector("multiple");
6762
- const openState = stateSelector("open");
6763
- const patternMismatchState = stateSelector("pattern-mismatch");
6764
- const placeholderShownState = stateSelector("placeholder-shown");
6765
- const pressedState = stateSelector("pressed");
6766
- const rangeOverflowState = stateSelector("range-overflow");
6767
- const rangeUnderflowState = stateSelector("range-underflow");
6768
- const requiredState = stateSelector("required");
6769
- const selectedState = stateSelector("selected");
6770
- const stepMismatchState = stateSelector("step-mismatch");
6771
- const submenuState = stateSelector("submenu");
6772
- const tooLongState = stateSelector("too-long");
6773
- const tooShortState = stateSelector("too-short");
6774
- const typeMismatchState = stateSelector("type-mismatch");
6775
- const userInvalidState = stateSelector("user-invalid");
6776
- const validState = stateSelector("valid");
6777
- const valueMissingState = stateSelector("value-missing");
6778
-
6779
- const styles$z = css`${display("inline-flex")} :host{--size:16px;background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:hover){background-color:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandStrokeHover}}:host(${checkedState}:active){background-color:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandStrokePressed}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}.indeterminate-indicator,.checked-indicator{color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${checkedState})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${checkedState}),:host(${indeterminateState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:${colorCompoundBrandBackground}}:host(${indeterminateState}) .indeterminate-indicator{border-radius:${borderRadiusSmall};position:absolute;width:calc(var(--size)/2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${borderRadiusCircular}}:host([disabled]),:host([disabled]${checkedState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host([disabled]){cursor:unset}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:${colorNeutralStrokeDisabled}}:host([disabled]${checkedState}) .checked-indicator{color:${colorNeutralStrokeDisabled}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${checkedState}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:FieldText}:host(${checkedState}:not([disabled]):hover),:host(${indeterminateState}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${checkedState}) .checked-indicator{color:GrayText}}`;
6780
-
6781
- const checkedIndicator$2 = html.partial(
6782
- /* html */
6783
- `<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>`
6784
- );
6785
- const indeterminateIndicator = html.partial(
6786
- /* html */
6787
- `<span class=indeterminate-indicator></span>`
6788
- );
6789
- function checkboxTemplate(options = {}) {
6790
- return html`<template @click=${(x, c) => x.clickHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @keyup=${(x, c) => x.keyupHandler(c.event)}><slot name=checked-indicator>${staticallyCompose(options.checkedIndicator)}</slot><slot name=indeterminate-indicator>${staticallyCompose(options.indeterminateIndicator)}</slot></template>`;
6791
- }
6792
- const template$z = checkboxTemplate({
6793
- checkedIndicator: checkedIndicator$2,
6794
- indeterminateIndicator
6795
- });
6796
-
6797
- const definition$z = Checkbox.compose({
6798
- name: tagName$z,
6799
- template: template$z,
6800
- styles: styles$z
6801
- });
6802
-
6803
- definition$z.define(FluentDesignSystem.registry);
6810
+ Checkbox.define(definition$z);
6804
6811
 
6805
6812
  const tagName$y = `${FluentDesignSystem.prefix}-compound-button`;
6806
6813
 
6807
- class CompoundButton extends Button {
6808
- }
6809
-
6810
6814
  const styles$y = css`${styles$D} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${colorNeutralForeground2};line-height:100%;font-size:${fontSizeBase200};font-weight:${fontWeightRegular}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${colorNeutralForeground2Hover}}:host(:active) ::slotted([slot='description']){color:${colorNeutralForeground2Pressed}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${colorNeutralForegroundOnBrand}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${colorNeutralForeground2}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${colorNeutralForeground2BrandHover}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${colorNeutralForeground2BrandPressed}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${colorNeutralForegroundDisabled}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${spacingHorizontalSNudge}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${spacingHorizontalXS}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${spacingHorizontalS}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large']) ::slotted([slot='description']){font-size:${fontSizeBase300}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;
6811
6815
 
6812
6816
  function buttonTemplate(options = {}) {
@@ -6814,16 +6818,34 @@ function buttonTemplate(options = {}) {
6814
6818
  }
6815
6819
  const template$y = buttonTemplate();
6816
6820
 
6817
- const definition$y = CompoundButton.compose({
6821
+ const definition$y = {
6818
6822
  name: tagName$y,
6819
- template: template$y,
6820
- styles: styles$y
6821
- });
6823
+ registry: FluentDesignSystem.registry,
6824
+ styles: styles$y,
6825
+ template: template$y
6826
+ };
6827
+
6828
+ class CompoundButton extends Button {
6829
+ }
6822
6830
 
6823
- definition$y.define(FluentDesignSystem.registry);
6831
+ CompoundButton.define(definition$y);
6824
6832
 
6825
6833
  const tagName$x = `${FluentDesignSystem.prefix}-counter-badge`;
6826
6834
 
6835
+ const styles$x = css`:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${borderRadiusSmall}}${badgeSizeStyles} ${badgeFilledStyles} ${badgeGhostStyles} ${badgeBaseStyles} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;
6836
+
6837
+ function counterBadgeTemplate(options = {}) {
6838
+ return html`${startSlotTemplate(options)} <span>${(x) => x.displayValue}</span> ${endSlotTemplate(options)}`;
6839
+ }
6840
+ const template$x = counterBadgeTemplate();
6841
+
6842
+ const definition$x = {
6843
+ name: tagName$x,
6844
+ registry: FluentDesignSystem.registry,
6845
+ styles: styles$x,
6846
+ template: template$x
6847
+ };
6848
+
6827
6849
  var __defProp$D = Object.defineProperty;
6828
6850
  var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
6829
6851
  var __decorateClass$D = (decorators, target, key, kind) => {
@@ -6901,20 +6923,7 @@ __decorateClass$C([
6901
6923
  ], CounterBadge.prototype, "size", 2);
6902
6924
  applyMixins(CounterBadge, StartEnd);
6903
6925
 
6904
- const styles$x = css`:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${borderRadiusSmall}}${badgeSizeStyles} ${badgeFilledStyles} ${badgeGhostStyles} ${badgeBaseStyles} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;
6905
-
6906
- function counterBadgeTemplate(options = {}) {
6907
- return html`${startSlotTemplate(options)} <span>${(x) => x.displayValue}</span> ${endSlotTemplate(options)}`;
6908
- }
6909
- const template$x = counterBadgeTemplate();
6910
-
6911
- const definition$x = CounterBadge.compose({
6912
- name: tagName$x,
6913
- template: template$x,
6914
- styles: styles$x
6915
- });
6916
-
6917
- definition$x.define(FluentDesignSystem.registry);
6926
+ CounterBadge.define(definition$x);
6918
6927
 
6919
6928
  const DialogType = {
6920
6929
  modal: "modal",
@@ -6929,6 +6938,17 @@ function isDialog(element, tagName2 = "-dialog") {
6929
6938
  }
6930
6939
  const tagName$w = `${FluentDesignSystem.prefix}-dialog`;
6931
6940
 
6941
+ const styles$w = css`@layer base{:host{--dialog-backdrop:${colorBackgroundOverlay};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${colorNeutralBackground1};border-radius:${borderRadiusXLarge};border:none;box-shadow:${shadow64};color:${colorNeutralForeground1};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};opacity:0}::backdrop{transition-timing-function:${curveLinear}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${curveAccelerateMid}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${strokeWidthThin} solid ${colorTransparentStroke}}}}`;
6942
+
6943
+ const template$w = html`<dialog class=dialog part=dialog aria-modal=${(x) => x.dialogModal} aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} role=${(x) => x.dialogRole} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.hide()} ${ref("dialog")}><div tabindex=-1></div><slot></slot></dialog>`;
6944
+
6945
+ const definition$w = {
6946
+ name: tagName$w,
6947
+ registry: FluentDesignSystem.registry,
6948
+ styles: styles$w,
6949
+ template: template$w
6950
+ };
6951
+
6932
6952
  var __defProp$B = Object.defineProperty;
6933
6953
  var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
6934
6954
  var __decorateClass$B = (decorators, target, key, kind) => {
@@ -7069,19 +7089,20 @@ __decorateClass$B([
7069
7089
  volatile
7070
7090
  ], Dialog.prototype, "dialogRole", 1);
7071
7091
 
7072
- const template$w = html`<dialog class=dialog part=dialog aria-modal=${(x) => x.dialogModal} aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} role=${(x) => x.dialogRole} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.hide()} ${ref("dialog")}><div tabindex=-1></div><slot></slot></dialog>`;
7092
+ Dialog.define(definition$w);
7073
7093
 
7074
- const styles$w = css`@layer base{:host{--dialog-backdrop:${colorBackgroundOverlay};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${colorNeutralBackground1};border-radius:${borderRadiusXLarge};border:none;box-shadow:${shadow64};color:${colorNeutralForeground1};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};opacity:0}::backdrop{transition-timing-function:${curveLinear}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${curveAccelerateMid}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${strokeWidthThin} solid ${colorTransparentStroke}}}}`;
7094
+ const tagName$v = `${FluentDesignSystem.prefix}-dialog-body`;
7075
7095
 
7076
- const definition$w = Dialog.compose({
7077
- name: tagName$w,
7078
- template: template$w,
7079
- styles: styles$w
7080
- });
7096
+ const styles$v = css`${display("grid")} :host{background:${colorNeutralBackground1};box-sizing:border-box;gap:${spacingVerticalS};padding:${spacingVerticalXXL} ${spacingHorizontalXXL};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${colorNeutralBackground1};color:${colorNeutralForeground1};column-gap:8px;display:flex;font-family:${fontFamilyBase};font-size:${fontSizeBase500};font-weight:${fontWeightSemibold};inset-block-start:0;justify-content:space-between;line-height:${lineHeightBase500};margin-block-end:calc(${spacingVerticalS} * -1);margin-block-start:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalS};padding-block-start:${spacingVerticalXXL}}.content{box-sizing:border-box;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};min-height:32px}.actions{box-sizing:border-box;background:${colorNeutralBackground1};display:flex;flex-direction:column;gap:${spacingVerticalS};inset-block-end:0;margin-block-end:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalXXL};padding-block-start:${spacingVerticalL}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${spacingVerticalS} * -1);padding-block-start:${spacingVerticalS}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`;
7081
7097
 
7082
- definition$w.define(FluentDesignSystem.registry);
7098
+ const template$v = html`<template><div class=title part=title><slot name=title></slot><slot name=title-action></slot><slot name=close @click=${(x, c) => x.clickHandler(c.event)}></slot></div><div class=content part=content><slot></slot></div><div class=actions part=actions><slot name=action></slot></div></template>`;
7083
7099
 
7084
- const tagName$v = `${FluentDesignSystem.prefix}-dialog-body`;
7100
+ const definition$v = {
7101
+ name: tagName$v,
7102
+ registry: FluentDesignSystem.registry,
7103
+ styles: styles$v,
7104
+ template: template$v
7105
+ };
7085
7106
 
7086
7107
  class DialogBody extends FASTElement {
7087
7108
  /**
@@ -7101,17 +7122,7 @@ class DialogBody extends FASTElement {
7101
7122
  }
7102
7123
  }
7103
7124
 
7104
- const template$v = html`<template><div class=title part=title><slot name=title></slot><slot name=title-action></slot><slot name=close @click=${(x, c) => x.clickHandler(c.event)}></slot></div><div class=content part=content><slot></slot></div><div class=actions part=actions><slot name=action></slot></div></template>`;
7105
-
7106
- const styles$v = css`${display("grid")} :host{background:${colorNeutralBackground1};box-sizing:border-box;gap:${spacingVerticalS};padding:${spacingVerticalXXL} ${spacingHorizontalXXL};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${colorNeutralBackground1};color:${colorNeutralForeground1};column-gap:8px;display:flex;font-family:${fontFamilyBase};font-size:${fontSizeBase500};font-weight:${fontWeightSemibold};inset-block-start:0;justify-content:space-between;line-height:${lineHeightBase500};margin-block-end:calc(${spacingVerticalS} * -1);margin-block-start:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalS};padding-block-start:${spacingVerticalXXL}}.content{box-sizing:border-box;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};min-height:32px}.actions{box-sizing:border-box;background:${colorNeutralBackground1};display:flex;flex-direction:column;gap:${spacingVerticalS};inset-block-end:0;margin-block-end:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalXXL};padding-block-start:${spacingVerticalL}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${spacingVerticalS} * -1);padding-block-start:${spacingVerticalS}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`;
7107
-
7108
- const definition$v = DialogBody.compose({
7109
- name: tagName$v,
7110
- template: template$v,
7111
- styles: styles$v
7112
- });
7113
-
7114
- definition$v.define(FluentDesignSystem.registry);
7125
+ DialogBody.define(definition$v);
7115
7126
 
7116
7127
  const Orientation = {
7117
7128
  horizontal: "horizontal",
@@ -7131,6 +7142,20 @@ const DividerRole = {
7131
7142
  const DividerOrientation = Orientation;
7132
7143
  const tagName$u = `${FluentDesignSystem.prefix}-divider`;
7133
7144
 
7145
+ const styles$u = css`${display("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${strokeWidthThin};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${colorNeutralStroke1}}:host([appearance='strong']) ::slotted(*){color:${colorNeutralForeground1}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${colorBrandStroke1}}:host([appearance='brand']) ::slotted(*){color:${colorBrandForeground1}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${colorNeutralStroke3}}:host([appearance='subtle']) ::slotted(*){color:${colorNeutralForeground3}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`;
7146
+
7147
+ function dividerTemplate() {
7148
+ return html`<slot></slot>`;
7149
+ }
7150
+ const template$u = dividerTemplate();
7151
+
7152
+ const definition$u = {
7153
+ name: tagName$u,
7154
+ registry: FluentDesignSystem.registry,
7155
+ styles: styles$u,
7156
+ template: template$u
7157
+ };
7158
+
7134
7159
  var __defProp$A = Object.defineProperty;
7135
7160
  var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
7136
7161
  var __decorateClass$A = (decorators, target, key, kind) => {
@@ -7214,20 +7239,7 @@ __decorateClass$z([
7214
7239
  attr({ mode: "boolean" })
7215
7240
  ], Divider.prototype, "inset", 2);
7216
7241
 
7217
- function dividerTemplate() {
7218
- return html`<slot></slot>`;
7219
- }
7220
- const template$u = dividerTemplate();
7221
-
7222
- const styles$u = css`${display("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${strokeWidthThin};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${colorNeutralStroke1}}:host([appearance='strong']) ::slotted(*){color:${colorNeutralForeground1}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${colorBrandStroke1}}:host([appearance='brand']) ::slotted(*){color:${colorBrandForeground1}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${colorNeutralStroke3}}:host([appearance='subtle']) ::slotted(*){color:${colorNeutralForeground3}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`;
7223
-
7224
- const definition$u = Divider.compose({
7225
- name: tagName$u,
7226
- template: template$u,
7227
- styles: styles$u
7228
- });
7229
-
7230
- definition$u.define(FluentDesignSystem.registry);
7242
+ Divider.define(definition$u);
7231
7243
 
7232
7244
  const DrawerPosition = {
7233
7245
  start: "start",
@@ -7246,6 +7258,20 @@ const DrawerType = {
7246
7258
  };
7247
7259
  const tagName$t = `${FluentDesignSystem.prefix}-drawer`;
7248
7260
 
7261
+ const styles$t = css`${display("block")} :host{--dialog-backdrop:${colorBackgroundOverlay}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{background:${colorNeutralBackground1};border-radius:0;border:${strokeWidthThin} solid ${colorTransparentStroke};border-inline-end-color:${colorTransparentStroke};border-inline-start-color:var(--drawer-separator,${colorTransparentStroke});box-shadow:${shadow64};box-sizing:border-box;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};height:100%;line-height:${lineHeightBase300};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${spacingHorizontalXXL});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${curveAccelerateMid}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${curveAccelerateMid}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};background:var(--dialog-backdrop,${colorBackgroundOverlay});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${curveLinear}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;
7262
+
7263
+ function drawerTemplate() {
7264
+ return html`<dialog class=dialog part=dialog aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} aria-modal=${(x) => x.dialogModal} role=${(x) => x.dialogRole} size=${(x) => x.size} position=${(x) => x.position} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.cancelHandler()} ${ref("dialog")}><slot></slot></dialog>`;
7265
+ }
7266
+ const template$t = drawerTemplate();
7267
+
7268
+ const definition$t = {
7269
+ name: tagName$t,
7270
+ registry: FluentDesignSystem.registry,
7271
+ styles: styles$t,
7272
+ template: template$t
7273
+ };
7274
+
7249
7275
  var __defProp$y = Object.defineProperty;
7250
7276
  var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
7251
7277
  var __decorateClass$y = (decorators, target, key, kind) => {
@@ -7402,41 +7428,10 @@ __decorateClass$y([
7402
7428
  volatile
7403
7429
  ], Drawer.prototype, "dialogRole", 1);
7404
7430
 
7405
- const styles$t = css`${display("block")} :host{--dialog-backdrop:${colorBackgroundOverlay}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{background:${colorNeutralBackground1};border-radius:0;border:${strokeWidthThin} solid ${colorTransparentStroke};border-inline-end-color:${colorTransparentStroke};border-inline-start-color:var(--drawer-separator,${colorTransparentStroke});box-shadow:${shadow64};box-sizing:border-box;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};height:100%;line-height:${lineHeightBase300};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${spacingHorizontalXXL});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${curveAccelerateMid}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${curveAccelerateMid}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};background:var(--dialog-backdrop,${colorBackgroundOverlay});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${curveLinear}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;
7406
-
7407
- function drawerTemplate() {
7408
- return html`<dialog class=dialog part=dialog aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} aria-modal=${(x) => x.dialogModal} role=${(x) => x.dialogRole} size=${(x) => x.size} position=${(x) => x.position} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.cancelHandler()} ${ref("dialog")}><slot></slot></dialog>`;
7409
- }
7410
- const template$t = drawerTemplate();
7411
-
7412
- const definition$t = Drawer.compose({
7413
- name: tagName$t,
7414
- template: template$t,
7415
- styles: styles$t
7416
- });
7417
-
7418
- definition$t.define(FluentDesignSystem.registry);
7431
+ Drawer.define(definition$t);
7419
7432
 
7420
7433
  const tagName$s = `${FluentDesignSystem.prefix}-drawer-body`;
7421
7434
 
7422
- class DrawerBody extends FASTElement {
7423
- /**
7424
- * Handles click event for the close slot
7425
- *
7426
- * @param e - the click event
7427
- * @internal
7428
- */
7429
- clickHandler(event) {
7430
- if (!event.defaultPrevented) {
7431
- const dialog = this.parentElement;
7432
- if (isDialog(dialog, "-drawer")) {
7433
- dialog.hide();
7434
- }
7435
- }
7436
- return true;
7437
- }
7438
- }
7439
-
7440
7435
  const typographyBody1Styles = css.partial`font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};`;
7441
7436
  css.partial`font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightSemibold};`;
7442
7437
  css.partial`font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightBold};`;
@@ -7462,13 +7457,32 @@ function drawerBodyTemplate() {
7462
7457
  }
7463
7458
  const template$s = drawerBodyTemplate();
7464
7459
 
7465
- const definition$s = DrawerBody.compose({
7460
+ const definition$s = {
7466
7461
  name: tagName$s,
7467
- template: template$s,
7468
- styles: styles$s
7469
- });
7462
+ registry: FluentDesignSystem.registry,
7463
+ styles: styles$s,
7464
+ template: template$s
7465
+ };
7470
7466
 
7471
- definition$s.define(FluentDesignSystem.registry);
7467
+ class DrawerBody extends FASTElement {
7468
+ /**
7469
+ * Handles click event for the close slot
7470
+ *
7471
+ * @param e - the click event
7472
+ * @internal
7473
+ */
7474
+ clickHandler(event) {
7475
+ if (!event.defaultPrevented) {
7476
+ const dialog = this.parentElement;
7477
+ if (isDialog(dialog, "-drawer")) {
7478
+ dialog.hide();
7479
+ }
7480
+ }
7481
+ return true;
7482
+ }
7483
+ }
7484
+
7485
+ DrawerBody.define(definition$s);
7472
7486
 
7473
7487
  const DropdownAppearance = {
7474
7488
  filledDarker: "filled-darker",
@@ -7481,7 +7495,26 @@ const DropdownType = {
7481
7495
  dropdown: "dropdown",
7482
7496
  select: "select"
7483
7497
  };
7484
- const tagName$r = `${FluentDesignSystem.prefix}-dropdown`;
7498
+ const tagName$r = `${FluentDesignSystem.prefix}-dropdown`;
7499
+
7500
+ const styles$r = css`${display("inline-flex")} :host{box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer}:host(${placeholderShownState}){color:${colorNeutralForeground4}}.control{appearance:none;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:inset 0 0 0 ${strokeWidthThin} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${spacingHorizontalXXS};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${spacingVerticalSNudge} ${spacingHorizontalMNudge};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${typographyBody1Styles}}:host([size='small']) .control{column-gap:${spacingHorizontalXXS};padding:${spacingVerticalXS} ${spacingHorizontalSNudge};${typographyCaption1Styles}}:host([size='large']) .control{column-gap:${spacingHorizontalS};padding:${spacingVerticalS} ${spacingHorizontalM};${typographyBody2Styles}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${colorNeutralForeground3};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${strokeWidthThin}}.control::after{background-color:${colorCompoundBrandStroke};height:${strokeWidthThick};scale:0 1;transition:scale ${durationUltraFast} ${curveDecelerateMid}}:host(:where(:focus-within)) .control{border-radius:${borderRadiusMedium};box-shadow:inset 0 0 0 1px ${colorStrokeFocus1};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}:host(:where(${openState},:focus-within)) .control::after{scale:1 1;transition-duration:${durationNormal};transition-timing-function:${curveAccelerateMid}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${colorNeutralStrokeAccessible}}:host([appearance='transparent']) .control{--control-border-color:${colorTransparentStrokeInteractive};background-color:${colorTransparentBackground};border-radius:${borderRadiusNone}}:host([appearance='outline']) .control{--control-border-color:${colorNeutralStroke1}}:host([appearance='outline']) .control:hover{--control-border-color:${colorNeutralStroke1Hover}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='outline']) .control:hover::after{background-color:${colorCompoundBrandBackgroundHover}}:host([appearance='outline']) .control:active{--control-border-color:${colorNeutralStroke1Pressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${colorNeutralStrokeAccessiblePressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${colorCompoundBrandBackgroundPressed}}:host([appearance='filled-darker']) .control{background-color:${colorNeutralBackground3}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${colorTransparentStroke}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${colorNeutralStrokeDisabled};background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${lineHeightBase300} + (${spacingVerticalSNudge} * 2) + ${strokeWidthThin})}:host([size='small']){--margin-offset:calc(${lineHeightBase200} + (${spacingVerticalXS} * 2) + ${strokeWidthThin})}:host([size='large']){--margin-offset:calc(${lineHeightBase400} + (${spacingVerticalS} * 2) + ${strokeWidthThin})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`;
7501
+
7502
+ const dropdownIndicatorTemplate = html`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${ref("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill=currentColor /></svg>`;
7503
+ const dropdownInputTemplate = html`<input @input=${(x, c) => x.inputHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} aria-activedescendant=${(x) => x.activeDescendant} aria-controls=${(x) => x.listbox?.id ?? null} aria-labelledby=${(x) => x.ariaLabelledBy} aria-expanded=${(x) => x.open} aria-haspopup=listbox placeholder=${(x) => x.placeholder} role=combobox ?disabled=${(x) => x.disabled} type=${(x) => x.type} value=${(x) => x.valueAttribute} slot=control ${ref("control")}>`;
7504
+ const dropdownButtonTemplate = html`<button aria-activedescendant=${(x) => x.activeDescendant} aria-controls=${(x) => x.listbox?.id ?? null} aria-expanded=${(x) => x.open} aria-haspopup=listbox role=combobox ?disabled=${(x) => x.disabled} type=button slot=control ${ref("control")}>${(x) => x.displayValue}</button>`;
7505
+ function dropdownTemplate(options = {}) {
7506
+ return html`<template @click=${(x, c) => x.clickHandler(c.event)} @focusout=${(x, c) => x.focusoutHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @mousedown=${(x, c) => x.mousedownHandler(c.event)}><div class=control><slot name=control ${ref("controlSlot")}></slot><slot name=indicator ${ref("indicatorSlot")}>${staticallyCompose(options.indicator)}</slot></div><slot @slotchange=${(x, c) => x.slotchangeHandler(c.event)}></slot></template>`;
7507
+ }
7508
+ const template$r = dropdownTemplate({
7509
+ indicator: dropdownIndicatorTemplate
7510
+ });
7511
+
7512
+ const definition$r = {
7513
+ name: tagName$r,
7514
+ registry: FluentDesignSystem.registry,
7515
+ styles: styles$r,
7516
+ template: template$r
7517
+ };
7485
7518
 
7486
7519
  function isListbox(element, tagName2 = "-listbox") {
7487
7520
  if (element?.nodeType !== Node.ELEMENT_NODE) {
@@ -7517,16 +7550,6 @@ function uniqueId(prefix = "id-") {
7517
7550
  return document.getElementById(str) ? uniqueId(prefix) : str;
7518
7551
  }
7519
7552
 
7520
- const dropdownIndicatorTemplate = html`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${ref("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill=currentColor /></svg>`;
7521
- const dropdownInputTemplate = html`<input @input=${(x, c) => x.inputHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} aria-activedescendant=${(x) => x.activeDescendant} aria-controls=${(x) => x.listbox?.id ?? null} aria-labelledby=${(x) => x.ariaLabelledBy} aria-expanded=${(x) => x.open} aria-haspopup=listbox placeholder=${(x) => x.placeholder} role=combobox ?disabled=${(x) => x.disabled} type=${(x) => x.type} value=${(x) => x.valueAttribute} slot=control ${ref("control")}>`;
7522
- const dropdownButtonTemplate = html`<button aria-activedescendant=${(x) => x.activeDescendant} aria-controls=${(x) => x.listbox?.id ?? null} aria-expanded=${(x) => x.open} aria-haspopup=listbox role=combobox ?disabled=${(x) => x.disabled} type=button slot=control ${ref("control")}>${(x) => x.displayValue}</button>`;
7523
- function dropdownTemplate(options = {}) {
7524
- return html`<template @click=${(x, c) => x.clickHandler(c.event)} @focusout=${(x, c) => x.focusoutHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @mousedown=${(x, c) => x.mousedownHandler(c.event)}><div class=control><slot name=control ${ref("controlSlot")}></slot><slot name=indicator ${ref("indicatorSlot")}>${staticallyCompose(options.indicator)}</slot></div><slot @slotchange=${(x, c) => x.slotchangeHandler(c.event)}></slot></template>`;
7525
- }
7526
- const template$r = dropdownTemplate({
7527
- indicator: dropdownIndicatorTemplate
7528
- });
7529
-
7530
7553
  var __defProp$x = Object.defineProperty;
7531
7554
  var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
7532
7555
  var __decorateClass$x = (decorators, target, key, kind) => {
@@ -8394,15 +8417,7 @@ __decorateClass$w([
8394
8417
  attr
8395
8418
  ], Dropdown.prototype, "size", 2);
8396
8419
 
8397
- const styles$r = css`${display("inline-flex")} :host{box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer}:host(${placeholderShownState}){color:${colorNeutralForeground4}}.control{appearance:none;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:inset 0 0 0 ${strokeWidthThin} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${spacingHorizontalXXS};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${spacingVerticalSNudge} ${spacingHorizontalMNudge};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${typographyBody1Styles}}:host([size='small']) .control{column-gap:${spacingHorizontalXXS};padding:${spacingVerticalXS} ${spacingHorizontalSNudge};${typographyCaption1Styles}}:host([size='large']) .control{column-gap:${spacingHorizontalS};padding:${spacingVerticalS} ${spacingHorizontalM};${typographyBody2Styles}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${colorNeutralForeground3};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${strokeWidthThin}}.control::after{background-color:${colorCompoundBrandStroke};height:${strokeWidthThick};scale:0 1;transition:scale ${durationUltraFast} ${curveDecelerateMid}}:host(:where(:focus-within)) .control{border-radius:${borderRadiusMedium};box-shadow:inset 0 0 0 1px ${colorStrokeFocus1};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}:host(:where(${openState},:focus-within)) .control::after{scale:1 1;transition-duration:${durationNormal};transition-timing-function:${curveAccelerateMid}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${colorNeutralStrokeAccessible}}:host([appearance='transparent']) .control{--control-border-color:${colorTransparentStrokeInteractive};background-color:${colorTransparentBackground};border-radius:${borderRadiusNone}}:host([appearance='outline']) .control{--control-border-color:${colorNeutralStroke1}}:host([appearance='outline']) .control:hover{--control-border-color:${colorNeutralStroke1Hover}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='outline']) .control:hover::after{background-color:${colorCompoundBrandBackgroundHover}}:host([appearance='outline']) .control:active{--control-border-color:${colorNeutralStroke1Pressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${colorNeutralStrokeAccessiblePressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${colorCompoundBrandBackgroundPressed}}:host([appearance='filled-darker']) .control{background-color:${colorNeutralBackground3}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${colorTransparentStroke}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${colorNeutralStrokeDisabled};background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${lineHeightBase300} + (${spacingVerticalSNudge} * 2) + ${strokeWidthThin})}:host([size='small']){--margin-offset:calc(${lineHeightBase200} + (${spacingVerticalXS} * 2) + ${strokeWidthThin})}:host([size='large']){--margin-offset:calc(${lineHeightBase400} + (${spacingVerticalS} * 2) + ${strokeWidthThin})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`;
8398
-
8399
- const definition$r = Dropdown.compose({
8400
- name: tagName$r,
8401
- template: template$r,
8402
- styles: styles$r
8403
- });
8404
-
8405
- definition$r.define(FluentDesignSystem.registry);
8420
+ Dropdown.define(definition$r);
8406
8421
 
8407
8422
  const LabelPosition = {
8408
8423
  above: "above",
@@ -8424,6 +8439,20 @@ const ValidationFlags = {
8424
8439
  };
8425
8440
  const tagName$o = `${FluentDesignSystem.prefix}-field`;
8426
8441
 
8442
+ const styles$q = css`${display("inline-grid")} :host{color:${colorNeutralForeground1};align-items:center;gap:0 ${spacingHorizontalM};justify-items:start}:has([slot='message']){color:${colorNeutralForeground1};row-gap:${spacingVerticalS}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${spacingHorizontalM}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${spacingVerticalXXS}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${spacingVerticalM}}:host(${requiredState}) ::slotted([slot='label'])::after{content:'*'/'';color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${colorNeutralForeground3};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};grid-area:message;line-height:${lineHeightBase200};margin-block-start:${spacingVerticalXXS}}:host(${focusVisibleState}:focus-within){border-radius:${borderRadiusMedium};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};grid-area:label;line-height:${lineHeightBase300};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) ::slotted(label){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${fontWeightSemibold}}:host(${disabledState}){cursor:default}::slotted([flag]){display:none}:host(${badInputState}) ::slotted([flag='${ValidationFlags.badInput}']),:host(${customErrorState}) ::slotted([flag='${ValidationFlags.customError}']),:host(${patternMismatchState}) ::slotted([flag='${ValidationFlags.patternMismatch}']),:host(${rangeOverflowState}) ::slotted([flag='${ValidationFlags.rangeOverflow}']),:host(${rangeUnderflowState}) ::slotted([flag='${ValidationFlags.rangeUnderflow}']),:host(${stepMismatchState}) ::slotted([flag='${ValidationFlags.stepMismatch}']),:host(${tooLongState}) ::slotted([flag='${ValidationFlags.tooLong}']),:host(${tooShortState}) ::slotted([flag='${ValidationFlags.tooShort}']),:host(${typeMismatchState}) ::slotted([flag='${ValidationFlags.typeMismatch}']),:host(${valueMissingState}) ::slotted([flag='${ValidationFlags.valueMissing}']),:host(${validState}) ::slotted([flag='${ValidationFlags.valid}']){display:block}`;
8443
+
8444
+ const template$q = html`<template @click=${(x, c) => x.clickHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} @focusin=${(x, c) => x.focusinHandler(c.event)} @focusout=${(x, c) => x.focusoutHandler(c.event)}><slot name=label part=label ${slotted("labelSlot")}></slot><slot name=input part=input ${slotted("slottedInputs")}></slot><slot name=message part=message ${slotted({ property: "messageSlot", filter: elements("[flag]") })}></slot></template>`;
8445
+
8446
+ const definition$q = {
8447
+ name: tagName$o,
8448
+ registry: FluentDesignSystem.registry,
8449
+ shadowOptions: {
8450
+ delegatesFocus: true
8451
+ },
8452
+ styles: styles$q,
8453
+ template: template$q
8454
+ };
8455
+
8427
8456
  var __defProp$v = Object.defineProperty;
8428
8457
  var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
8429
8458
  var __decorateClass$v = (decorators, target, key, kind) => {
@@ -8639,22 +8668,20 @@ __decorateClass$u([
8639
8668
  attr({ attribute: "label-position" })
8640
8669
  ], Field.prototype, "labelPosition", 2);
8641
8670
 
8642
- const styles$q = css`${display("inline-grid")} :host{color:${colorNeutralForeground1};align-items:center;gap:0 ${spacingHorizontalM};justify-items:start}:has([slot='message']){color:${colorNeutralForeground1};row-gap:${spacingVerticalS}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${spacingHorizontalM}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${spacingVerticalXXS}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${spacingVerticalM}}:host(${requiredState}) ::slotted([slot='label'])::after{content:'*'/'';color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${colorNeutralForeground3};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};grid-area:message;line-height:${lineHeightBase200};margin-block-start:${spacingVerticalXXS}}:host(${focusVisibleState}:focus-within){border-radius:${borderRadiusMedium};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};grid-area:label;line-height:${lineHeightBase300};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) ::slotted(label){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${fontWeightSemibold}}:host(${disabledState}){cursor:default}::slotted([flag]){display:none}:host(${badInputState}) ::slotted([flag='${ValidationFlags.badInput}']),:host(${customErrorState}) ::slotted([flag='${ValidationFlags.customError}']),:host(${patternMismatchState}) ::slotted([flag='${ValidationFlags.patternMismatch}']),:host(${rangeOverflowState}) ::slotted([flag='${ValidationFlags.rangeOverflow}']),:host(${rangeUnderflowState}) ::slotted([flag='${ValidationFlags.rangeUnderflow}']),:host(${stepMismatchState}) ::slotted([flag='${ValidationFlags.stepMismatch}']),:host(${tooLongState}) ::slotted([flag='${ValidationFlags.tooLong}']),:host(${tooShortState}) ::slotted([flag='${ValidationFlags.tooShort}']),:host(${typeMismatchState}) ::slotted([flag='${ValidationFlags.typeMismatch}']),:host(${valueMissingState}) ::slotted([flag='${ValidationFlags.valueMissing}']),:host(${validState}) ::slotted([flag='${ValidationFlags.valid}']){display:block}`;
8671
+ Field.define(definition$q);
8643
8672
 
8644
- const template$q = html`<template @click=${(x, c) => x.clickHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} @focusin=${(x, c) => x.focusinHandler(c.event)} @focusout=${(x, c) => x.focusoutHandler(c.event)}><slot name=label part=label ${slotted("labelSlot")}></slot><slot name=input part=input ${slotted("slottedInputs")}></slot><slot name=message part=message ${slotted({ property: "messageSlot", filter: elements("[flag]") })}></slot></template>`;
8673
+ const tagName$n = `${FluentDesignSystem.prefix}-image`;
8645
8674
 
8646
- const definition$q = Field.compose({
8647
- name: tagName$o,
8648
- template: template$q,
8649
- styles: styles$q,
8650
- shadowOptions: {
8651
- delegatesFocus: true
8652
- }
8653
- });
8675
+ const styles$p = css`:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${strokeWidthThin} solid ${colorNeutralStroke2}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${shadow4}}:host([shape='circular']) ::slotted(img){border-radius:${borderRadiusCircular}}:host([shape='rounded']) ::slotted(img){border-radius:${borderRadiusMedium}}`;
8654
8676
 
8655
- definition$q.define(FluentDesignSystem.registry);
8677
+ const template$p = html`<slot></slot>`;
8656
8678
 
8657
- const tagName$n = `${FluentDesignSystem.prefix}-image`;
8679
+ const definition$p = {
8680
+ name: tagName$n,
8681
+ registry: FluentDesignSystem.registry,
8682
+ styles: styles$p,
8683
+ template: template$p
8684
+ };
8658
8685
 
8659
8686
  var __defProp$t = Object.defineProperty;
8660
8687
  var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
@@ -8684,19 +8711,23 @@ __decorateClass$t([
8684
8711
  attr
8685
8712
  ], Image.prototype, "shape", 2);
8686
8713
 
8687
- const template$p = html`<slot></slot>`;
8714
+ Image.define(definition$p);
8688
8715
 
8689
- const styles$p = css`:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${strokeWidthThin} solid ${colorNeutralStroke2}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${shadow4}}:host([shape='circular']) ::slotted(img){border-radius:${borderRadiusCircular}}:host([shape='rounded']) ::slotted(img){border-radius:${borderRadiusMedium}}`;
8716
+ const tagName$m = `${FluentDesignSystem.prefix}-label`;
8690
8717
 
8691
- const definition$p = Image.compose({
8692
- name: tagName$n,
8693
- template: template$p,
8694
- styles: styles$p
8695
- });
8718
+ const styles$o = css`${display("inline-flex")} :host{color:${colorNeutralForeground1};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};user-select:none}.asterisk{color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}:host([size='small']){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(:is([size='large'],[weight='semibold'])){font-weight:${fontWeightSemibold}}:host([disabled]),:host([disabled]) .asterisk{color:${colorNeutralForegroundDisabled}}`;
8696
8719
 
8697
- definition$p.define(FluentDesignSystem.registry);
8720
+ function labelTemplate() {
8721
+ return html`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${(x) => !x.required}>*</span>`;
8722
+ }
8723
+ const template$o = labelTemplate();
8698
8724
 
8699
- const tagName$m = `${FluentDesignSystem.prefix}-label`;
8725
+ const definition$o = {
8726
+ name: tagName$m,
8727
+ registry: FluentDesignSystem.registry,
8728
+ styles: styles$o,
8729
+ template: template$o
8730
+ };
8700
8731
 
8701
8732
  var __defProp$s = Object.defineProperty;
8702
8733
  var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
@@ -8728,22 +8759,23 @@ __decorateClass$s([
8728
8759
  attr({ mode: "boolean" })
8729
8760
  ], Label.prototype, "required", 2);
8730
8761
 
8731
- const styles$o = css`${display("inline-flex")} :host{color:${colorNeutralForeground1};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};user-select:none}.asterisk{color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}:host([size='small']){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(:is([size='large'],[weight='semibold'])){font-weight:${fontWeightSemibold}}:host([disabled]),:host([disabled]) .asterisk{color:${colorNeutralForegroundDisabled}}`;
8762
+ Label.define(definition$o);
8732
8763
 
8733
- function labelTemplate() {
8734
- return html`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${(x) => !x.required}>*</span>`;
8735
- }
8736
- const template$o = labelTemplate();
8764
+ const tagName$l = `${FluentDesignSystem.prefix}-link`;
8737
8765
 
8738
- const definition$o = Label.compose({
8739
- name: tagName$m,
8740
- template: template$o,
8741
- styles: styles$o
8742
- });
8766
+ const styles$n = css`${display("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${colorBrandForegroundLink};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${strokeWidthThin};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${colorBrandForegroundLinkHover}}:host(:active){color:${colorBrandForegroundLinkPressed}}:host([appearance='subtle']:hover){color:${colorNeutralForeground2LinkHover}}:host([appearance='subtle']:active){color:${colorNeutralForeground2LinkPressed}}}:host([appearance='subtle']){color:${colorNeutralForeground2Link}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;
8743
8767
 
8744
- definition$o.define(FluentDesignSystem.registry);
8768
+ function anchorTemplate() {
8769
+ return html`<template tabindex=0 @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}><slot></slot></template>`;
8770
+ }
8771
+ const template$n = anchorTemplate();
8745
8772
 
8746
- const tagName$l = `${FluentDesignSystem.prefix}-link`;
8773
+ const definition$n = {
8774
+ name: tagName$l,
8775
+ registry: FluentDesignSystem.registry,
8776
+ styles: styles$n,
8777
+ template: template$n
8778
+ };
8747
8779
 
8748
8780
  var __defProp$r = Object.defineProperty;
8749
8781
  var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
@@ -8768,20 +8800,21 @@ __decorateClass$r([
8768
8800
  attr({ mode: "boolean" })
8769
8801
  ], Link.prototype, "inline", 2);
8770
8802
 
8771
- const styles$n = css`${display("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${colorBrandForegroundLink};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${strokeWidthThin};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${colorBrandForegroundLinkHover}}:host(:active){color:${colorBrandForegroundLinkPressed}}:host([appearance='subtle']:hover){color:${colorNeutralForeground2LinkHover}}:host([appearance='subtle']:active){color:${colorNeutralForeground2LinkPressed}}}:host([appearance='subtle']){color:${colorNeutralForeground2Link}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;
8803
+ Link.define(definition$n);
8772
8804
 
8773
- function anchorTemplate() {
8774
- return html`<template tabindex=0 @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}><slot></slot></template>`;
8775
- }
8776
- const template$n = anchorTemplate();
8805
+ const styles$m = css`${display("inline-flex")} :host{background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow16};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${spacingHorizontalXS};row-gap:${spacingHorizontalXXS};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:fixed;max-block-size:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-inline-size:anchor-size(inline);inset-block-start:anchor(outside);inset-inline-start:anchor(inside);position-try-fallbacks:flip-block,flip-inline,flip-inline flip-block}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-block-size:var(--listbox-max-height,50vh);position:absolute}:host([popover]${flipBlockState}){margin-block-start:revert;translate:0 -100%}}`;
8777
8806
 
8778
- const definition$n = Link.compose({
8779
- name: tagName$l,
8780
- template: template$n,
8781
- styles: styles$n
8782
- });
8807
+ function listboxTemplate() {
8808
+ return html`<template @beforetoggle=${(x, c) => x.beforetoggleHandler(c.event)} @click=${(x, c) => x.clickHandler(c.event)}><slot ${ref("defaultSlot")} @slotchange=${(x, c) => x.slotchangeHandler(c.event)}></slot></template>`;
8809
+ }
8810
+ const template$m = listboxTemplate();
8783
8811
 
8784
- definition$n.define(FluentDesignSystem.registry);
8812
+ const definition$m = {
8813
+ name: tagName$q,
8814
+ registry: FluentDesignSystem.registry,
8815
+ styles: styles$m,
8816
+ template: template$m
8817
+ };
8785
8818
 
8786
8819
  var __defProp$q = Object.defineProperty;
8787
8820
  var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
@@ -8973,27 +9006,11 @@ __decorateClass$q([
8973
9006
  observable
8974
9007
  ], Listbox.prototype, "dropdown", 2);
8975
9008
 
8976
- const styles$m = css`${display("inline-flex")} :host{background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow16};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${spacingHorizontalXS};row-gap:${spacingHorizontalXXS};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:fixed;max-block-size:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-inline-size:anchor-size(inline);inset-block-start:anchor(outside);inset-inline-start:anchor(inside);position-try-fallbacks:flip-block,flip-inline,flip-inline flip-block}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-block-size:var(--listbox-max-height,50vh);position:absolute}:host([popover]${flipBlockState}){margin-block-start:revert;translate:0 -100%}}`;
8977
-
8978
- function listboxTemplate() {
8979
- return html`<template @beforetoggle=${(x, c) => x.beforetoggleHandler(c.event)} @click=${(x, c) => x.clickHandler(c.event)}><slot ${ref("defaultSlot")} @slotchange=${(x, c) => x.slotchangeHandler(c.event)}></slot></template>`;
8980
- }
8981
- const template$m = listboxTemplate();
8982
-
8983
- const definition$m = Listbox.compose({
8984
- name: tagName$q,
8985
- template: template$m,
8986
- styles: styles$m
8987
- });
8988
-
8989
- definition$m.define(FluentDesignSystem.registry);
8990
-
8991
- const styles$l = styles$D;
9009
+ Listbox.define(definition$m);
8992
9010
 
8993
9011
  const tagName$k = `${FluentDesignSystem.prefix}-menu-button`;
8994
9012
 
8995
- class MenuButton extends Button {
8996
- }
9013
+ const styles$l = styles$D;
8997
9014
 
8998
9015
  const template$l = buttonTemplate$1({
8999
9016
  end: html.partial(
@@ -9002,13 +9019,17 @@ const template$l = buttonTemplate$1({
9002
9019
  )
9003
9020
  });
9004
9021
 
9005
- const definition$l = MenuButton.compose({
9022
+ const definition$l = {
9006
9023
  name: tagName$k,
9007
- template: template$l,
9008
- styles: styles$l
9009
- });
9024
+ registry: FluentDesignSystem.registry,
9025
+ styles: styles$l,
9026
+ template: template$l
9027
+ };
9028
+
9029
+ class MenuButton extends Button {
9030
+ }
9010
9031
 
9011
- definition$l.define(FluentDesignSystem.registry);
9032
+ MenuButton.define(definition$l);
9012
9033
 
9013
9034
  const MenuItemRole = {
9014
9035
  /**
@@ -9037,6 +9058,29 @@ function isMenuItem(element, tagName2 = "-menu-item") {
9037
9058
  }
9038
9059
  const tagName$j = `${FluentDesignSystem.prefix}-menu-item`;
9039
9060
 
9061
+ const styles$k = css`${display("grid")} :host{--indent:0;align-items:center;background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};color:${colorNeutralForeground2};contain:layout;cursor:pointer;flex-shrink:0;font:${fontWeightRegular} ${fontSizeBase300}/${lineHeightBase300} ${fontFamilyBase};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground2Pressed}}:host(:active) ::slotted([slot='start']){color:${colorCompoundBrandForeground1Pressed}}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}:host(:focus-visible){border-radius:${borderRadiusMedium};outline:2px solid ${colorStrokeFocus2}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${checkedState})) .indicator,:host(:not(${checkedState})) ::slotted([slot='indicator']),:host(:not(${submenuState})) .submenu-glyph,:host(:not(${submenuState})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${colorNeutralForeground3};font:${fontWeightRegular} ${fontSizeBase200}/${lineHeightBase200} ${fontFamilyBase};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${submenuState}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${submenuState}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent))/span 1}.content{grid-column:calc(var(--indent) + 1)/span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2)/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}@position-try --inline-inside{inset-inline-start:unset;inset-inline-end:anchor(inside)}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(inside);inset-inline-start:anchor(outside);position-try-fallbacks:--inline-inside,flip-block,flip-block --inline-inside;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${disabledState}),:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:GrayText}}`;
9062
+
9063
+ const Checkmark16Filled = html.partial(
9064
+ `<svg class=indicator fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill=currentColor></path></svg>`
9065
+ );
9066
+ const chevronRight16Filled = html.partial(
9067
+ `<svg class=submenu-glyph fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill=currentColor></path></svg>`
9068
+ );
9069
+ function menuItemTemplate(options = {}) {
9070
+ return html`<template tabindex=0 @keydown=${(x, c) => x.handleMenuItemKeyDown(c.event)} @click=${(x, c) => x.handleMenuItemClick(c.event)} @mouseover=${(x, c) => x.handleMouseOver(c.event)} @mouseout=${(x, c) => x.handleMouseOut(c.event)} @toggle=${(x, c) => x.handleToggle(c.event)}><slot name=indicator>${staticallyCompose(options.indicator)}</slot>${startSlotTemplate(options)}<div part=content class=content><slot></slot></div>${endSlotTemplate(options)}<slot name=submenu-glyph>${staticallyCompose(options.submenuGlyph)}</slot><slot name=submenu ${slotted({ property: "slottedSubmenu" })}></slot></template>`;
9071
+ }
9072
+ const template$k = menuItemTemplate({
9073
+ indicator: Checkmark16Filled,
9074
+ submenuGlyph: chevronRight16Filled
9075
+ });
9076
+
9077
+ const definition$k = {
9078
+ name: tagName$j,
9079
+ registry: FluentDesignSystem.registry,
9080
+ styles: styles$k,
9081
+ template: template$k
9082
+ };
9083
+
9040
9084
  var __defProp$p = Object.defineProperty;
9041
9085
  var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
9042
9086
  var __decorateClass$p = (decorators, target, key, kind) => {
@@ -9264,31 +9308,23 @@ __decorateClass$p([
9264
9308
  ], MenuItem.prototype, "submenu", 2);
9265
9309
  applyMixins(MenuItem, StartEnd);
9266
9310
 
9267
- const styles$k = css`${display("grid")} :host{--indent:0;align-items:center;background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};color:${colorNeutralForeground2};contain:layout;cursor:pointer;flex-shrink:0;font:${fontWeightRegular} ${fontSizeBase300}/${lineHeightBase300} ${fontFamilyBase};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground2Pressed}}:host(:active) ::slotted([slot='start']){color:${colorCompoundBrandForeground1Pressed}}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}:host(:focus-visible){border-radius:${borderRadiusMedium};outline:2px solid ${colorStrokeFocus2}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${checkedState})) .indicator,:host(:not(${checkedState})) ::slotted([slot='indicator']),:host(:not(${submenuState})) .submenu-glyph,:host(:not(${submenuState})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${colorNeutralForeground3};font:${fontWeightRegular} ${fontSizeBase200}/${lineHeightBase200} ${fontFamilyBase};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${submenuState}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${submenuState}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent))/span 1}.content{grid-column:calc(var(--indent) + 1)/span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2)/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}@position-try --inline-inside{inset-inline-start:unset;inset-inline-end:anchor(inside)}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(inside);inset-inline-start:anchor(outside);position-try-fallbacks:--inline-inside,flip-block,flip-block --inline-inside;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${disabledState}),:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:GrayText}}`;
9311
+ MenuItem.define(definition$k);
9268
9312
 
9269
- const Checkmark16Filled = html.partial(
9270
- `<svg class=indicator fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill=currentColor></path></svg>`
9271
- );
9272
- const chevronRight16Filled = html.partial(
9273
- `<svg class=submenu-glyph fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill=currentColor></path></svg>`
9274
- );
9275
- function menuItemTemplate(options = {}) {
9276
- return html`<template tabindex=0 @keydown=${(x, c) => x.handleMenuItemKeyDown(c.event)} @click=${(x, c) => x.handleMenuItemClick(c.event)} @mouseover=${(x, c) => x.handleMouseOver(c.event)} @mouseout=${(x, c) => x.handleMouseOut(c.event)} @toggle=${(x, c) => x.handleToggle(c.event)}><slot name=indicator>${staticallyCompose(options.indicator)}</slot>${startSlotTemplate(options)}<div part=content class=content><slot></slot></div>${endSlotTemplate(options)}<slot name=submenu-glyph>${staticallyCompose(options.submenuGlyph)}</slot><slot name=submenu ${slotted({ property: "slottedSubmenu" })}></slot></template>`;
9277
- }
9278
- const template$k = menuItemTemplate({
9279
- indicator: Checkmark16Filled,
9280
- submenuGlyph: chevronRight16Filled
9281
- });
9313
+ const tagName$i = `${FluentDesignSystem.prefix}-menu-list`;
9282
9314
 
9283
- const definition$k = MenuItem.compose({
9284
- name: tagName$j,
9285
- template: template$k,
9286
- styles: styles$k
9287
- });
9315
+ const styles$j = css`${display("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${colorNeutralBackground1};border:1px solid ${colorTransparentStroke};border-radius:${borderRadiusMedium};box-shadow:${shadow16};padding:4px;row-gap:2px}`;
9288
9316
 
9289
- definition$k.define(FluentDesignSystem.registry);
9317
+ function menuTemplate$1() {
9318
+ return html`<template focusgroup=menu><slot ${slotted("items")}></slot></template>`;
9319
+ }
9320
+ const template$j = menuTemplate$1();
9290
9321
 
9291
- const tagName$i = `${FluentDesignSystem.prefix}-menu-list`;
9322
+ const definition$j = {
9323
+ name: tagName$i,
9324
+ registry: FluentDesignSystem.registry,
9325
+ styles: styles$j,
9326
+ template: template$j
9327
+ };
9292
9328
 
9293
9329
  //#region src/constants.js
9294
9330
  /** @enum {string} */
@@ -9921,22 +9957,23 @@ class MenuList extends BaseMenuList {
9921
9957
  }
9922
9958
  }
9923
9959
 
9924
- const styles$j = css`${display("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${colorNeutralBackground1};border:1px solid ${colorTransparentStroke};border-radius:${borderRadiusMedium};box-shadow:${shadow16};padding:4px;row-gap:2px}`;
9960
+ MenuList.define(definition$j);
9925
9961
 
9926
- function menuTemplate$1() {
9927
- return html`<template focusgroup=menu><slot ${slotted("items")}></slot></template>`;
9928
- }
9929
- const template$j = menuTemplate$1();
9962
+ const tagName$h = `${FluentDesignSystem.prefix}-menu`;
9930
9963
 
9931
- const definition$j = MenuList.compose({
9932
- name: tagName$i,
9933
- template: template$j,
9934
- styles: styles$j
9935
- });
9964
+ const styles$i = css`${display("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(outside);inset-inline-start:anchor(self-start);position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline;position:fixed;z-index:1}:host([split]) ::slotted([popover]){inset-inline-start:unset;inset-inline-end:anchor(self-end)}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${strokeWidthThin} solid ${colorNeutralStroke1};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${strokeWidthThin} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;
9936
9965
 
9937
- definition$j.define(FluentDesignSystem.registry);
9966
+ function menuTemplate() {
9967
+ return html`<template @keydown=${(x, c) => x.menuKeydownHandler(c.event)}><slot name=primary-action ${ref("primaryAction")}></slot><slot name=trigger ${slotted({ property: "slottedTriggers", filter: elements() })}></slot><slot ${slotted({ property: "slottedMenuList", filter: elements() })}></slot></template>`;
9968
+ }
9969
+ const template$i = menuTemplate();
9938
9970
 
9939
- const tagName$h = `${FluentDesignSystem.prefix}-menu`;
9971
+ const definition$i = {
9972
+ name: tagName$h,
9973
+ registry: FluentDesignSystem.registry,
9974
+ styles: styles$i,
9975
+ template: template$i
9976
+ };
9940
9977
 
9941
9978
  var __defProp$n = Object.defineProperty;
9942
9979
  var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
@@ -10264,22 +10301,23 @@ __decorateClass$n([
10264
10301
  observable
10265
10302
  ], Menu.prototype, "primaryAction", 2);
10266
10303
 
10267
- const styles$i = css`${display("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(outside);inset-inline-start:anchor(self-start);position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline;position:fixed;z-index:1}:host([split]) ::slotted([popover]){inset-inline-start:unset;inset-inline-end:anchor(self-end)}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${strokeWidthThin} solid ${colorNeutralStroke1};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${strokeWidthThin} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;
10304
+ Menu.define(definition$i);
10268
10305
 
10269
- function menuTemplate() {
10270
- return html`<template @keydown=${(x, c) => x.menuKeydownHandler(c.event)}><slot name=primary-action ${ref("primaryAction")}></slot><slot name=trigger ${slotted({ property: "slottedTriggers", filter: elements() })}></slot><slot ${slotted({ property: "slottedMenuList", filter: elements() })}></slot></template>`;
10271
- }
10272
- const template$i = menuTemplate();
10306
+ const tagName$g = `${FluentDesignSystem.prefix}-message-bar`;
10273
10307
 
10274
- const definition$i = Menu.compose({
10275
- name: tagName$h,
10276
- template: template$i,
10277
- styles: styles$i
10278
- });
10308
+ const styles$h = css`:host{display:grid;box-sizing:border-box;font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};width:100%;background:${colorNeutralBackground3};color:${colorNeutralForeground3};border:1px solid ${colorNeutralStroke1};padding-inline:${spacingHorizontalM};border-radius:${borderRadiusMedium};min-height:36px;align-items:center;grid-template:'icon body actions dismiss'/auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${colorPaletteGreenBackground1};border-color:${colorPaletteGreenBorder1}}:host([intent='warning']){background-color:${colorPaletteDarkOrangeBackground1};border-color:${colorPaletteDarkOrangeBorder1}}:host([intent='error']){background-color:${colorPaletteRedBackground1};border-color:${colorPaletteRedBorder1}}:host([layout='multiline']){grid-template-areas:'icon body dismiss' 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${spacingVerticalMNudge};padding-inline:${spacingHorizontalM}}.content{grid-area:body;max-width:520px;padding-block:${spacingVerticalMNudge};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${colorNeutralForeground3};margin-inline-end:${spacingHorizontalS}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${spacingHorizontalS};gap:${spacingHorizontalS}}:host([layout='multiline']) .actions{margin-block-start:${spacingVerticalMNudge};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${spacingVerticalS}}::slotted(*){font-size:inherit}`;
10279
10309
 
10280
- definition$i.define(FluentDesignSystem.registry);
10310
+ function messageBarTemplate() {
10311
+ return html`<slot name=icon></slot><div class=content><slot></slot></div><div class=actions><slot name=actions></slot></div><slot name=dismiss></slot>`;
10312
+ }
10313
+ const template$h = messageBarTemplate();
10281
10314
 
10282
- const tagName$g = `${FluentDesignSystem.prefix}-message-bar`;
10315
+ const definition$h = {
10316
+ name: tagName$g,
10317
+ registry: FluentDesignSystem.registry,
10318
+ styles: styles$h,
10319
+ template: template$h
10320
+ };
10283
10321
 
10284
10322
  var __defProp$m = Object.defineProperty;
10285
10323
  var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
@@ -10321,23 +10359,27 @@ __decorateClass$m([
10321
10359
  attr
10322
10360
  ], MessageBar.prototype, "intent", 2);
10323
10361
 
10324
- const styles$h = css`:host{display:grid;box-sizing:border-box;font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};width:100%;background:${colorNeutralBackground3};color:${colorNeutralForeground3};border:1px solid ${colorNeutralStroke1};padding-inline:${spacingHorizontalM};border-radius:${borderRadiusMedium};min-height:36px;align-items:center;grid-template:'icon body actions dismiss'/auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${colorPaletteGreenBackground1};border-color:${colorPaletteGreenBorder1}}:host([intent='warning']){background-color:${colorPaletteDarkOrangeBackground1};border-color:${colorPaletteDarkOrangeBorder1}}:host([intent='error']){background-color:${colorPaletteRedBackground1};border-color:${colorPaletteRedBorder1}}:host([layout='multiline']){grid-template-areas:'icon body dismiss' 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${spacingVerticalMNudge};padding-inline:${spacingHorizontalM}}.content{grid-area:body;max-width:520px;padding-block:${spacingVerticalMNudge};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${colorNeutralForeground3};margin-inline-end:${spacingHorizontalS}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${spacingHorizontalS};gap:${spacingHorizontalS}}:host([layout='multiline']) .actions{margin-block-start:${spacingVerticalMNudge};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${spacingVerticalS}}::slotted(*){font-size:inherit}`;
10362
+ MessageBar.define(definition$h);
10325
10363
 
10326
- function messageBarTemplate() {
10327
- return html`<slot name=icon></slot><div class=content><slot></slot></div><div class=actions><slot name=actions></slot></div><slot name=dismiss></slot>`;
10328
- }
10329
- const template$h = messageBarTemplate();
10364
+ const styles$g = css`${display("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${typographyBody1Styles} align-items:center;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};box-sizing:border-box;color:${colorNeutralForeground2};column-gap:${spacingHorizontalXS};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${spacingHorizontalSNudge};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Pressed};color:${colorNeutralForeground2Pressed}}:host(:disabled){background-color:${colorNeutralBackground1};color:${colorNeutralForegroundDisabled};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${selectedState}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${multipleState}) .checkmark-16-filled,:host(:not(${multipleState})) .checkmark-12-regular{display:none}:host(${multipleState}) .checkmark-12-regular{background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${multipleState}${selectedState}) .checkmark-12-regular{background-color:${colorCompoundBrandBackground};border-color:${colorCompoundBrandStroke};fill:${colorNeutralForegroundInverted}}:host(:disabled${multipleState}) .checkmark-12-regular{border-color:${colorNeutralStrokeDisabled}}:host(:disabled${multipleState}${selectedState}) .checkmark-12-regular{background-color:${colorNeutralBackgroundDisabled}}:host(${activeState}){border:${strokeWidthThick} solid ${colorStrokeFocus2}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${spacingHorizontalSNudge}}}:host(${descriptionState}){column-gap:${spacingHorizontalSNudge};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${colorNeutralForeground3};grid-area:description;${typographyCaption1Styles}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`;
10330
10365
 
10331
- const definition$h = MessageBar.compose({
10332
- name: tagName$g,
10333
- template: template$h,
10334
- styles: styles$h,
10335
- shadowOptions: {
10336
- mode: FluentDesignSystem.shadowRootMode
10337
- }
10366
+ const checkedIndicator$1 = html.partial(
10367
+ /* html */
10368
+ `<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"/></svg>`
10369
+ );
10370
+ function dropdownOptionTemplate(options = {}) {
10371
+ return html`<slot name=checked-indicator>${staticallyCompose(options.checkedIndicator)}</slot>${startSlotTemplate(options)}<div class=content part=content><slot ${slotted({ property: "freeformOutputs", filter: elements("output") })}></slot></div><div class=description part=description><slot name=description ${slotted("descriptionSlot")}></slot></div>`;
10372
+ }
10373
+ const template$g = dropdownOptionTemplate({
10374
+ checkedIndicator: checkedIndicator$1
10338
10375
  });
10339
10376
 
10340
- definition$h.define(FluentDesignSystem.registry);
10377
+ const definition$g = {
10378
+ name: tagName$p,
10379
+ registry: FluentDesignSystem.registry,
10380
+ styles: styles$g,
10381
+ template: template$g
10382
+ };
10341
10383
 
10342
10384
  var __defProp$l = Object.defineProperty;
10343
10385
  var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
@@ -10600,26 +10642,7 @@ __decorateClass$l([
10600
10642
  attr({ attribute: "text", mode: "fromView" })
10601
10643
  ], DropdownOption.prototype, "textAttribute", 2);
10602
10644
 
10603
- const styles$g = css`${display("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${typographyBody1Styles} align-items:center;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};box-sizing:border-box;color:${colorNeutralForeground2};column-gap:${spacingHorizontalXS};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${spacingHorizontalSNudge};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Pressed};color:${colorNeutralForeground2Pressed}}:host(:disabled){background-color:${colorNeutralBackground1};color:${colorNeutralForegroundDisabled};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${selectedState}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${multipleState}) .checkmark-16-filled,:host(:not(${multipleState})) .checkmark-12-regular{display:none}:host(${multipleState}) .checkmark-12-regular{background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${multipleState}${selectedState}) .checkmark-12-regular{background-color:${colorCompoundBrandBackground};border-color:${colorCompoundBrandStroke};fill:${colorNeutralForegroundInverted}}:host(:disabled${multipleState}) .checkmark-12-regular{border-color:${colorNeutralStrokeDisabled}}:host(:disabled${multipleState}${selectedState}) .checkmark-12-regular{background-color:${colorNeutralBackgroundDisabled}}:host(${activeState}){border:${strokeWidthThick} solid ${colorStrokeFocus2}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${spacingHorizontalSNudge}}}:host(${descriptionState}){column-gap:${spacingHorizontalSNudge};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${colorNeutralForeground3};grid-area:description;${typographyCaption1Styles}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`;
10604
-
10605
- const checkedIndicator$1 = html.partial(
10606
- /* html */
10607
- `<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"/></svg>`
10608
- );
10609
- function dropdownOptionTemplate(options = {}) {
10610
- return html`<slot name=checked-indicator>${staticallyCompose(options.checkedIndicator)}</slot>${startSlotTemplate(options)}<div class=content part=content><slot ${slotted({ property: "freeformOutputs", filter: elements("output") })}></slot></div><div class=description part=description><slot name=description ${slotted("descriptionSlot")}></slot></div>`;
10611
- }
10612
- const template$g = dropdownOptionTemplate({
10613
- checkedIndicator: checkedIndicator$1
10614
- });
10615
-
10616
- const definition$g = DropdownOption.compose({
10617
- name: tagName$p,
10618
- template: template$g,
10619
- styles: styles$g
10620
- });
10621
-
10622
- definition$g.define(FluentDesignSystem.registry);
10645
+ DropdownOption.define(definition$g);
10623
10646
 
10624
10647
  const ProgressBarValidationState = {
10625
10648
  success: "success",
@@ -10628,6 +10651,20 @@ const ProgressBarValidationState = {
10628
10651
  };
10629
10652
  const tagName$f = `${FluentDesignSystem.prefix}-progress-bar`;
10630
10653
 
10654
+ const styles$f = css`${display("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${colorNeutralBackground6};border-radius:${borderRadiusMedium};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${borderRadiusNone}}.indicator{background-color:${colorCompoundBrandBackground};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient( to right,${colorNeutralBackground6} 0%,${colorTransparentBackground} 50%,${colorNeutralBackground6} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${colorPaletteRedBackground3}}:host([validation-state='warning']) .indicator{background-color:${colorPaletteDarkOrangeBackground3}}:host([validation-state='success']) .indicator{background-color:${colorPaletteGreenBackground3}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;
10655
+
10656
+ function progressTemplate() {
10657
+ return html`<div class=indicator part=indicator ${ref("indicator")}></div>`;
10658
+ }
10659
+ const template$f = progressTemplate();
10660
+
10661
+ const definition$f = {
10662
+ name: tagName$f,
10663
+ registry: FluentDesignSystem.registry,
10664
+ styles: styles$f,
10665
+ template: template$f
10666
+ };
10667
+
10631
10668
  var __defProp$k = Object.defineProperty;
10632
10669
  var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
10633
10670
  var __decorateClass$k = (decorators, target, key, kind) => {
@@ -10761,23 +10798,24 @@ __decorateClass$j([
10761
10798
  attr
10762
10799
  ], ProgressBar.prototype, "shape", 2);
10763
10800
 
10764
- const styles$f = css`${display("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${colorNeutralBackground6};border-radius:${borderRadiusMedium};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${borderRadiusNone}}.indicator{background-color:${colorCompoundBrandBackground};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient( to right,${colorNeutralBackground6} 0%,${colorTransparentBackground} 50%,${colorNeutralBackground6} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${colorPaletteRedBackground3}}:host([validation-state='warning']) .indicator{background-color:${colorPaletteDarkOrangeBackground3}}:host([validation-state='success']) .indicator{background-color:${colorPaletteGreenBackground3}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;
10801
+ ProgressBar.define(definition$f);
10765
10802
 
10766
- function progressTemplate() {
10767
- return html`<div class=indicator part=indicator ${ref("indicator")}></div>`;
10768
- }
10769
- const template$f = progressTemplate();
10803
+ const RadioGroupOrientation = Orientation;
10804
+ const tagName$e = `${FluentDesignSystem.prefix}-radio-group`;
10770
10805
 
10771
- const definition$f = ProgressBar.compose({
10772
- name: tagName$f,
10773
- template: template$f,
10774
- styles: styles$f
10775
- });
10806
+ const styles$e = css`${display("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${spacingVerticalL}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${colorNeutralForeground3}}::slotted(:hover){color:${colorNeutralForeground2}}::slotted(:active){color:${colorNeutralForeground1}}::slotted(${disabledState}){color:${colorNeutralForegroundDisabled}}::slotted(${checkedState}){color:${colorNeutralForeground1}}:host([slot='input']){margin:${spacingVerticalS} ${spacingHorizontalS}}`;
10776
10807
 
10777
- definition$f.define(FluentDesignSystem.registry);
10808
+ function radioGroupTemplate() {
10809
+ return html`<template focusgroup="radiogroup wrap" @disabled=${(x, c) => x.disabledRadioHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} @click=${(x, c) => x.clickHandler(c.event)} @focusin=${(x, c) => x.focusinHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}><slot ${slotted("slottedRadios")}></slot></template>`;
10810
+ }
10811
+ const template$e = radioGroupTemplate();
10778
10812
 
10779
- const RadioGroupOrientation = Orientation;
10780
- const tagName$e = `${FluentDesignSystem.prefix}-radio-group`;
10813
+ const definition$e = {
10814
+ name: tagName$e,
10815
+ registry: FluentDesignSystem.registry,
10816
+ styles: styles$e,
10817
+ template: template$e
10818
+ };
10781
10819
 
10782
10820
  function isRadio(element, tagName2 = "-radio") {
10783
10821
  return isCustomElement(tagName2)(element);
@@ -11235,20 +11273,25 @@ class RadioGroup extends BaseRadioGroup {
11235
11273
  }
11236
11274
  }
11237
11275
 
11238
- const styles$e = css`${display("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${spacingVerticalL}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${colorNeutralForeground3}}::slotted(:hover){color:${colorNeutralForeground2}}::slotted(:active){color:${colorNeutralForeground1}}::slotted(${disabledState}){color:${colorNeutralForegroundDisabled}}::slotted(${checkedState}){color:${colorNeutralForeground1}}:host([slot='input']){margin:${spacingVerticalS} ${spacingHorizontalS}}`;
11276
+ RadioGroup.define(definition$e);
11239
11277
 
11240
- function radioGroupTemplate() {
11241
- return html`<template focusgroup="radiogroup wrap" @disabled=${(x, c) => x.disabledRadioHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} @click=${(x, c) => x.clickHandler(c.event)} @focusin=${(x, c) => x.focusinHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}><slot ${slotted("slottedRadios")}></slot></template>`;
11278
+ const styles$d = css`${display("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${borderRadiusCircular};color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:''/'';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(${checkedState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}) .checked-indicator{background-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover) .checked-indicator{background-color:${colorCompoundBrandBackgroundHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:active) .checked-indicator{background-color:${colorCompoundBrandBackgroundPressed}}:host(:focus-visible){outline:none}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host(${checkedState}${disabledState}) .checked-indicator{background-color:${colorNeutralStrokeDisabled}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${disabledState}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${checkedState}) .checked-indicator{background-color:FieldText}:host(${checkedState}:not(${disabledState}):hover) .checked-indicator{background-color:Highlight}:host(${disabledState}){border-color:GrayText;color:GrayText}:host(${disabledState}${checkedState}) .checked-indicator{background-color:GrayText}}`;
11279
+
11280
+ const checkedIndicator = html.partial(
11281
+ /* html */
11282
+ `<span part=checked-indicator class=checked-indicator role=presentation></span>`
11283
+ );
11284
+ function radioTemplate(options = {}) {
11285
+ return html`<template @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @keyup=${(x, c) => x.keyupHandler(c.event)}><slot name=checked-indicator>${staticallyCompose(options.checkedIndicator)}</slot></template>`;
11242
11286
  }
11243
- const template$e = radioGroupTemplate();
11244
-
11245
- const definition$e = RadioGroup.compose({
11246
- name: tagName$e,
11247
- template: template$e,
11248
- styles: styles$e
11249
- });
11287
+ const template$d = radioTemplate({ checkedIndicator });
11250
11288
 
11251
- definition$e.define(FluentDesignSystem.registry);
11289
+ const definition$d = {
11290
+ name: tagName$d,
11291
+ registry: FluentDesignSystem.registry,
11292
+ styles: styles$d,
11293
+ template: template$d
11294
+ };
11252
11295
 
11253
11296
  class Radio extends BaseCheckbox {
11254
11297
  constructor() {
@@ -11314,24 +11357,7 @@ class Radio extends BaseCheckbox {
11314
11357
  }
11315
11358
  }
11316
11359
 
11317
- const styles$d = css`${display("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${borderRadiusCircular};color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:''/'';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(${checkedState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}) .checked-indicator{background-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover) .checked-indicator{background-color:${colorCompoundBrandBackgroundHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:active) .checked-indicator{background-color:${colorCompoundBrandBackgroundPressed}}:host(:focus-visible){outline:none}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host(${checkedState}${disabledState}) .checked-indicator{background-color:${colorNeutralStrokeDisabled}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${disabledState}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${checkedState}) .checked-indicator{background-color:FieldText}:host(${checkedState}:not(${disabledState}):hover) .checked-indicator{background-color:Highlight}:host(${disabledState}){border-color:GrayText;color:GrayText}:host(${disabledState}${checkedState}) .checked-indicator{background-color:GrayText}}`;
11318
-
11319
- const checkedIndicator = html.partial(
11320
- /* html */
11321
- `<span part=checked-indicator class=checked-indicator role=presentation></span>`
11322
- );
11323
- function radioTemplate(options = {}) {
11324
- return html`<template @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @keyup=${(x, c) => x.keyupHandler(c.event)}><slot name=checked-indicator>${staticallyCompose(options.checkedIndicator)}</slot></template>`;
11325
- }
11326
- const template$d = radioTemplate({ checkedIndicator });
11327
-
11328
- const definition$d = Radio.compose({
11329
- name: tagName$d,
11330
- template: template$d,
11331
- styles: styles$d
11332
- });
11333
-
11334
- definition$d.define(FluentDesignSystem.registry);
11360
+ Radio.define(definition$d);
11335
11361
 
11336
11362
  const tagName$c = `${FluentDesignSystem.prefix}-rating-display`;
11337
11363
 
@@ -11457,6 +11483,29 @@ __decorateClass$h([
11457
11483
  attr({ converter: nullableNumberConverter })
11458
11484
  ], BaseRatingDisplay.prototype, "value", 2);
11459
11485
 
11486
+ const defaultIconPath = `<path d="M5.28347 1.54605C5.57692 0.951448 6.42479 0.951449 6.71825 1.54605L7.82997 3.79866L10.3159 4.15988C10.9721 4.25523 11.2341 5.0616 10.7592 5.52443L8.96043 7.27785L9.38507 9.7537C9.49716 10.4072 8.81122 10.9056 8.22431 10.597L6.00086 9.4281L3.7774 10.597C3.19049 10.9056 2.50455 10.4072 2.61664 9.7537L3.04128 7.27784L1.24246 5.52443C0.767651 5.0616 1.02966 4.25523 1.68584 4.15988L4.17174 3.79865L5.28347 1.54605Z" />`;
11487
+ const defaultIconFilled = `
11488
+ <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${defaultIconPath}</svg>
11489
+ `;
11490
+ const defaultIconOutlined = `
11491
+ <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
11492
+ fill="none" stroke="black" stroke-width="2"
11493
+ >${defaultIconPath}</svg>
11494
+ `;
11495
+ function ratingDisplayTemplate() {
11496
+ return html`<div ${ref("display")} class=display aria-hidden=true></div><slot name=icon ${ref("iconSlot")} @slotchange=${(x) => x.handleSlotChange()}></slot><slot name=value><span class=value-label aria-hidden=true>${(x) => x.value}</span></slot><slot name=count><span class=count-label aria-hidden=true>${(x) => x.formattedCount}</span></slot>`;
11497
+ }
11498
+ const template$c = ratingDisplayTemplate();
11499
+
11500
+ const styles$c = css`${display("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${colorPaletteMarigoldBorderActive};--_icon-color-empty:${colorPaletteMarigoldBackground2};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${svgToDataURI(defaultIconFilled)});--_mask-image-outlined:url(${svgToDataURI(defaultIconOutlined)});--_mask-position-x:left;align-items:center;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${colorNeutralForeground1};--_icon-color-empty:${colorNeutralBackground6}}:host([color='brand']){--_icon-color-value:${colorBrandForeground1};--_icon-color-empty:${colorBrandBackground2}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${spacingHorizontalXXS});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${spacingHorizontalXXS}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${spacingHorizontalXS};font-weight:${fontWeightSemibold}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalXXS}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalSNudge}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${spacingHorizontalXS}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalXXS}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalSNudge}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`;
11501
+
11502
+ const definition$c = {
11503
+ name: tagName$c,
11504
+ registry: FluentDesignSystem.registry,
11505
+ styles: styles$c,
11506
+ template: template$c
11507
+ };
11508
+
11460
11509
  var __defProp$g = Object.defineProperty;
11461
11510
  var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
11462
11511
  var __decorateClass$g = (decorators, target, key, kind) => {
@@ -11483,29 +11532,7 @@ __decorateClass$g([
11483
11532
  attr({ mode: "boolean" })
11484
11533
  ], RatingDisplay.prototype, "compact", 2);
11485
11534
 
11486
- const defaultIconPath = `<path d="M5.28347 1.54605C5.57692 0.951448 6.42479 0.951449 6.71825 1.54605L7.82997 3.79866L10.3159 4.15988C10.9721 4.25523 11.2341 5.0616 10.7592 5.52443L8.96043 7.27785L9.38507 9.7537C9.49716 10.4072 8.81122 10.9056 8.22431 10.597L6.00086 9.4281L3.7774 10.597C3.19049 10.9056 2.50455 10.4072 2.61664 9.7537L3.04128 7.27784L1.24246 5.52443C0.767651 5.0616 1.02966 4.25523 1.68584 4.15988L4.17174 3.79865L5.28347 1.54605Z" />`;
11487
- const defaultIconFilled = `
11488
- <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${defaultIconPath}</svg>
11489
- `;
11490
- const defaultIconOutlined = `
11491
- <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
11492
- fill="none" stroke="black" stroke-width="2"
11493
- >${defaultIconPath}</svg>
11494
- `;
11495
- function ratingDisplayTemplate() {
11496
- return html`<div ${ref("display")} class=display aria-hidden=true></div><slot name=icon ${ref("iconSlot")} @slotchange=${(x) => x.handleSlotChange()}></slot><slot name=value><span class=value-label aria-hidden=true>${(x) => x.value}</span></slot><slot name=count><span class=count-label aria-hidden=true>${(x) => x.formattedCount}</span></slot>`;
11497
- }
11498
- const template$c = ratingDisplayTemplate();
11499
-
11500
- const styles$c = css`${display("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${colorPaletteMarigoldBorderActive};--_icon-color-empty:${colorPaletteMarigoldBackground2};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${svgToDataURI(defaultIconFilled)});--_mask-image-outlined:url(${svgToDataURI(defaultIconOutlined)});--_mask-position-x:left;align-items:center;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${colorNeutralForeground1};--_icon-color-empty:${colorNeutralBackground6}}:host([color='brand']){--_icon-color-value:${colorBrandForeground1};--_icon-color-empty:${colorBrandBackground2}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${spacingHorizontalXXS});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${spacingHorizontalXXS}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${spacingHorizontalXS};font-weight:${fontWeightSemibold}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalXXS}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalSNudge}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${spacingHorizontalXS}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalXXS}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalSNudge}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`;
11501
-
11502
- const definition$c = RatingDisplay.compose({
11503
- name: tagName$c,
11504
- template: template$c,
11505
- styles: styles$c
11506
- });
11507
-
11508
- definition$c.define(FluentDesignSystem.registry);
11535
+ RatingDisplay.define(definition$c);
11509
11536
 
11510
11537
  const SliderOrientation = Orientation;
11511
11538
  const SliderMode = {
@@ -11513,6 +11540,22 @@ const SliderMode = {
11513
11540
  };
11514
11541
  const tagName$b = `${FluentDesignSystem.prefix}-slider`;
11515
11542
 
11543
+ const styles$b = css`${display("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${colorCompoundBrandBackground};--track-color:${colorNeutralStrokeAccessible};--slider-direction:90deg;--border-radius:${borderRadiusMedium};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${colorCompoundBrandBackgroundHover}}:host(:active){--rail-color:${colorCompoundBrandBackgroundPressed}}:host(:disabled){--rail-color:${colorNeutralForegroundDisabled};--track-color:${colorNeutralBackgroundDisabled}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${borderRadiusSmall}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );border-radius:var(--border-radius);content:'';grid-row:1/-1;grid-column:1/-1}.track{position:relative;background-color:var(--track-color);grid-row:2/2;grid-column:2/2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${colorNeutralBackground1} calc(var(--step-rate) - 1px),${colorNeutralBackground1} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${borderRadiusCircular};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${colorNeutralBackground1} inset;border:calc(var(--thumb-size) * 0.05) solid ${colorNeutralStroke1};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}}`;
11544
+
11545
+ function sliderTemplate(options = {}) {
11546
+ return html`<template @pointerdown=${(x, c) => x.handlePointerDown(c.event)} @keydown=${(x, c) => x.handleKeydown(c.event)}><div ${ref("track")} part=track-container class=track style=${(x) => x.position}></div><div ${ref("thumb")} part=thumb-container class=thumb-container style=${(x) => x.position} @pointerdown=${(x, c) => x.handleThumbPointerDown(c.event)}><slot name=thumb>${staticallyCompose(options.thumb)}</slot></div></template>`;
11547
+ }
11548
+ const template$b = sliderTemplate({
11549
+ thumb: `<div class="thumb"></div>`
11550
+ });
11551
+
11552
+ const definition$b = {
11553
+ name: tagName$b,
11554
+ registry: FluentDesignSystem.registry,
11555
+ styles: styles$b,
11556
+ template: template$b
11557
+ };
11558
+
11516
11559
  function limit(min, max, value) {
11517
11560
  return Math.min(Math.max(value, min), max);
11518
11561
  }
@@ -12136,24 +12179,20 @@ __decorateClass$f([
12136
12179
  attr
12137
12180
  ], Slider.prototype, "mode", 2);
12138
12181
 
12139
- const styles$b = css`${display("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${colorCompoundBrandBackground};--track-color:${colorNeutralStrokeAccessible};--slider-direction:90deg;--border-radius:${borderRadiusMedium};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${colorCompoundBrandBackgroundHover}}:host(:active){--rail-color:${colorCompoundBrandBackgroundPressed}}:host(:disabled){--rail-color:${colorNeutralForegroundDisabled};--track-color:${colorNeutralBackgroundDisabled}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${borderRadiusSmall}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );border-radius:var(--border-radius);content:'';grid-row:1/-1;grid-column:1/-1}.track{position:relative;background-color:var(--track-color);grid-row:2/2;grid-column:2/2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${colorNeutralBackground1} calc(var(--step-rate) - 1px),${colorNeutralBackground1} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${borderRadiusCircular};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${colorNeutralBackground1} inset;border:calc(var(--thumb-size) * 0.05) solid ${colorNeutralStroke1};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}}`;
12182
+ Slider.define(definition$b);
12140
12183
 
12141
- function sliderTemplate(options = {}) {
12142
- return html`<template @pointerdown=${(x, c) => x.handlePointerDown(c.event)} @keydown=${(x, c) => x.handleKeydown(c.event)}><div ${ref("track")} part=track-container class=track style=${(x) => x.position}></div><div ${ref("thumb")} part=thumb-container class=thumb-container style=${(x) => x.position} @pointerdown=${(x, c) => x.handleThumbPointerDown(c.event)}><slot name=thumb>${staticallyCompose(options.thumb)}</slot></div></template>`;
12143
- }
12144
- const template$b = sliderTemplate({
12145
- thumb: `<div class="thumb"></div>`
12146
- });
12184
+ const tagName$a = `${FluentDesignSystem.prefix}-spinner`;
12147
12185
 
12148
- const definition$b = Slider.compose({
12149
- name: tagName$b,
12150
- template: template$b,
12151
- styles: styles$b
12152
- });
12186
+ const styles$a = css`${display("inline-flex")} :host{--duration:1.5s;--indicatorSize:${strokeWidthThicker};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${strokeWidthThick};--size:20px}:host([size='extra-small']){--indicatorSize:${strokeWidthThick};--size:24px}:host([size='small']){--indicatorSize:${strokeWidthThick};--size:28px}:host([size='large']){--indicatorSize:${strokeWidthThicker};--size:36px}:host([size='extra-large']){--indicatorSize:${strokeWidthThicker};--size:40px}:host([size='huge']){--indicatorSize:${strokeWidthThickest};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${curveEasyEase}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${colorBrandStroke2};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${colorBrandStroke1};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${colorNeutralStrokeOnBrand2}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`;
12153
12187
 
12154
- definition$b.define(FluentDesignSystem.registry);
12188
+ const template$a = html`<slot name=indicator><div class=background></div><div class=progress><div class=spinner><div class=start><div class=indicator></div></div><div class=end><div class=indicator></div></div></div></div></slot>`;
12155
12189
 
12156
- const tagName$a = `${FluentDesignSystem.prefix}-spinner`;
12190
+ const definition$a = {
12191
+ name: tagName$a,
12192
+ registry: FluentDesignSystem.registry,
12193
+ styles: styles$a,
12194
+ template: template$a
12195
+ };
12157
12196
 
12158
12197
  class BaseSpinner extends FASTElement {
12159
12198
  constructor() {
@@ -12187,26 +12226,11 @@ __decorateClass$e([
12187
12226
  attr
12188
12227
  ], Spinner.prototype, "appearance", 2);
12189
12228
 
12190
- const styles$a = css`${display("inline-flex")} :host{--duration:1.5s;--indicatorSize:${strokeWidthThicker};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${strokeWidthThick};--size:20px}:host([size='extra-small']){--indicatorSize:${strokeWidthThick};--size:24px}:host([size='small']){--indicatorSize:${strokeWidthThick};--size:28px}:host([size='large']){--indicatorSize:${strokeWidthThicker};--size:36px}:host([size='extra-large']){--indicatorSize:${strokeWidthThicker};--size:40px}:host([size='huge']){--indicatorSize:${strokeWidthThickest};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${curveEasyEase}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${colorBrandStroke2};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${colorBrandStroke1};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${colorNeutralStrokeOnBrand2}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`;
12191
-
12192
- const template$a = html`<slot name=indicator><div class=background></div><div class=progress><div class=spinner><div class=start><div class=indicator></div></div><div class=end><div class=indicator></div></div></div></div></slot>`;
12193
-
12194
- const definition$a = Spinner.compose({
12195
- name: tagName$a,
12196
- template: template$a,
12197
- styles: styles$a
12198
- });
12199
-
12200
- definition$a.define(FluentDesignSystem.registry);
12229
+ Spinner.define(definition$a);
12201
12230
 
12202
12231
  const tagName$9 = `${FluentDesignSystem.prefix}-switch`;
12203
12232
 
12204
- class Switch extends BaseCheckbox {
12205
- constructor() {
12206
- super();
12207
- this.elementInternals.role = "switch";
12208
- }
12209
- }
12233
+ const styles$9 = css`${display("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${spacingHorizontalXXS};width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(:disabled),:host([readonly]){border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host(${checkedState}){background:${colorCompoundBrandBackground};border-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover){background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host(${checkedState}:active){background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host(${checkedState}:disabled){background:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${colorNeutralForeground3};transition-duration:${durationNormal};transition-timing-function:${curveEasyEase};transition-property:margin-inline-start}:host(${checkedState}) .checked-indicator{background-color:${colorNeutralForegroundInverted};margin-inline-start:calc(100% - 14px)}:host(${checkedState}:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host(${checkedState}:active) .checked-indicator{background:${colorNeutralForegroundInvertedPressed}}:host(:hover) .checked-indicator{background-color:${colorNeutralForeground3Hover}}:host(:active) .checked-indicator{background-color:${colorNeutralForeground3Pressed}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(${checkedState}:disabled) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};outline-offset:1px;box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${checkedState}),:host(${checkedState}:active),:host(${checkedState}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${checkedState}) .checked-indicator,:host(${checkedState}:hover) .checked-indicator,:host(${checkedState}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${checkedState}:disabled) .checked-indicator{background-color:GrayText}}`;
12210
12234
 
12211
12235
  function switchTemplate(options = {}) {
12212
12236
  return html`<template @click=${(x, c) => x.clickHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @keyup=${(x, c) => x.keyupHandler(c.event)}><slot name=switch>${staticallyCompose(options.switch)}</slot></template>`;
@@ -12215,15 +12239,21 @@ const template$9 = switchTemplate({
12215
12239
  switch: `<span class="checked-indicator" part="checked-indicator"></span>`
12216
12240
  });
12217
12241
 
12218
- const styles$9 = css`${display("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${spacingHorizontalXXS};width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(:disabled),:host([readonly]){border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host(${checkedState}){background:${colorCompoundBrandBackground};border-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover){background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host(${checkedState}:active){background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host(${checkedState}:disabled){background:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${colorNeutralForeground3};transition-duration:${durationNormal};transition-timing-function:${curveEasyEase};transition-property:margin-inline-start}:host(${checkedState}) .checked-indicator{background-color:${colorNeutralForegroundInverted};margin-inline-start:calc(100% - 14px)}:host(${checkedState}:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host(${checkedState}:active) .checked-indicator{background:${colorNeutralForegroundInvertedPressed}}:host(:hover) .checked-indicator{background-color:${colorNeutralForeground3Hover}}:host(:active) .checked-indicator{background-color:${colorNeutralForeground3Pressed}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(${checkedState}:disabled) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};outline-offset:1px;box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${checkedState}),:host(${checkedState}:active),:host(${checkedState}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${checkedState}) .checked-indicator,:host(${checkedState}:hover) .checked-indicator,:host(${checkedState}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${checkedState}:disabled) .checked-indicator{background-color:GrayText}}`;
12219
-
12220
- const definition$9 = Switch.compose({
12242
+ const definition$9 = {
12221
12243
  name: tagName$9,
12222
- template: template$9,
12223
- styles: styles$9
12224
- });
12244
+ registry: FluentDesignSystem.registry,
12245
+ styles: styles$9,
12246
+ template: template$9
12247
+ };
12248
+
12249
+ class Switch extends BaseCheckbox {
12250
+ constructor() {
12251
+ super();
12252
+ this.elementInternals.role = "switch";
12253
+ }
12254
+ }
12225
12255
 
12226
- definition$9.define(FluentDesignSystem.registry);
12256
+ Switch.define(definition$9);
12227
12257
 
12228
12258
  function isTab(element, tagName2 = "-tab") {
12229
12259
  if (element?.nodeType !== Node.ELEMENT_NODE) {
@@ -12233,6 +12263,20 @@ function isTab(element, tagName2 = "-tab") {
12233
12263
  }
12234
12264
  const tagName$8 = `${FluentDesignSystem.prefix}-tab`;
12235
12265
 
12266
+ const styles$8 = css`${display("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${lineHeightBase300};font-family:${fontFamilyBase};font-size:${fontSizeBase300};color:${colorNeutralForeground2};fill:currentcolor;grid-row:1;padding:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${colorNeutralForeground1};font-weight:${fontWeightSemibold}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${lineHeightBase300};font-weight:${fontWeightSemibold}}:host([aria-selected='true'])::after{background-color:${colorCompoundBrandStroke};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${colorNeutralStroke1Hover};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${colorNeutralStroke1Hover}}}:host([aria-selected='true'][disabled])::after{background-color:${colorNeutralForegroundDisabled}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${colorNeutralForegroundDisabled};color:${colorNeutralForegroundDisabled};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${borderRadiusSmall};box-shadow:0 0 0 3px ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;
12267
+
12268
+ function tabTemplate(options = {}) {
12269
+ return html`<template slot=tab role=tab>${startSlotTemplate(options)} <span class=tab-content><slot></slot></span>${endSlotTemplate(options)}</template>`;
12270
+ }
12271
+ const template$8 = tabTemplate({});
12272
+
12273
+ const definition$8 = {
12274
+ name: tagName$8,
12275
+ registry: FluentDesignSystem.registry,
12276
+ styles: styles$8,
12277
+ template: template$8
12278
+ };
12279
+
12236
12280
  var __defProp$d = Object.defineProperty;
12237
12281
  var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
12238
12282
  var __decorateClass$d = (decorators, target, key, kind) => {
@@ -12282,20 +12326,7 @@ __decorateClass$d([
12282
12326
  ], Tab.prototype, "disabled", 2);
12283
12327
  applyMixins(Tab, StartEnd);
12284
12328
 
12285
- function tabTemplate(options = {}) {
12286
- return html`<template slot=tab role=tab>${startSlotTemplate(options)} <span class=tab-content><slot></slot></span>${endSlotTemplate(options)}</template>`;
12287
- }
12288
- const template$8 = tabTemplate({});
12289
-
12290
- const styles$8 = css`${display("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${lineHeightBase300};font-family:${fontFamilyBase};font-size:${fontSizeBase300};color:${colorNeutralForeground2};fill:currentcolor;grid-row:1;padding:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${colorNeutralForeground1};font-weight:${fontWeightSemibold}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${lineHeightBase300};font-weight:${fontWeightSemibold}}:host([aria-selected='true'])::after{background-color:${colorCompoundBrandStroke};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${colorNeutralStroke1Hover};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${colorNeutralStroke1Hover}}}:host([aria-selected='true'][disabled])::after{background-color:${colorNeutralForegroundDisabled}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${colorNeutralForegroundDisabled};color:${colorNeutralForegroundDisabled};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${borderRadiusSmall};box-shadow:0 0 0 3px ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;
12291
-
12292
- const definition$8 = Tab.compose({
12293
- name: tagName$8,
12294
- template: template$8,
12295
- styles: styles$8
12296
- });
12297
-
12298
- definition$8.define(FluentDesignSystem.registry);
12329
+ Tab.define(definition$8);
12299
12330
 
12300
12331
  const TablistAppearance = {
12301
12332
  subtle: "subtle",
@@ -12304,6 +12335,17 @@ const TablistAppearance = {
12304
12335
  const TablistOrientation = Orientation;
12305
12336
  const tagName$7 = `${FluentDesignSystem.prefix}-tablist`;
12306
12337
 
12338
+ const styles$7 = css`${display("flex")} :host{--tabPaddingInline:${spacingHorizontalMNudge};--tabPaddingBlock:${spacingHorizontalM};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${colorNeutralForeground2};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${spacingVerticalSNudge};--tabPaddingInline:${spacingHorizontalSNudge}}:host([size='large']){--tabPaddingBlock:${spacingVerticalL};--tabPaddingInline:${spacingHorizontalMNudge}}:host([orientation='vertical']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalS};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${spacingVerticalXXS};--tabIndicatorInsetBlock:${spacingVerticalSNudge}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalMNudge}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${strokeWidthThicker};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${strokeWidthThicker};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='large']) ::slotted([slot='tab']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${colorCompoundBrandStroke};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${durationSlow};transition-timing-function:${curveDecelerateMax};z-index:3;border-radius:${borderRadiusCircular};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${strokeWidthThicker}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${strokeWidthThicker};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${colorNeutralForegroundDisabled}}}`;
12339
+
12340
+ const template$7 = html`<template role=tablist focusgroup="tablist inline block" @focusin=${(x, c) => x.handleFocusIn(c.event)}><slot name=tab ${slotted("slottedTabs")}></slot></template>`;
12341
+
12342
+ const definition$7 = {
12343
+ name: tagName$7,
12344
+ registry: FluentDesignSystem.registry,
12345
+ styles: styles$7,
12346
+ template: template$7
12347
+ };
12348
+
12307
12349
  var __defProp$c = Object.defineProperty;
12308
12350
  var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
12309
12351
  var __decorateClass$c = (decorators, target, key, kind) => {
@@ -12514,17 +12556,7 @@ __decorateClass$b([
12514
12556
  attr
12515
12557
  ], Tablist.prototype, "size", 2);
12516
12558
 
12517
- const template$7 = html`<template role=tablist focusgroup="tablist inline block" @focusin=${(x, c) => x.handleFocusIn(c.event)}><slot name=tab ${slotted("slottedTabs")}></slot></template>`;
12518
-
12519
- const styles$7 = css`${display("flex")} :host{--tabPaddingInline:${spacingHorizontalMNudge};--tabPaddingBlock:${spacingHorizontalM};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${colorNeutralForeground2};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${spacingVerticalSNudge};--tabPaddingInline:${spacingHorizontalSNudge}}:host([size='large']){--tabPaddingBlock:${spacingVerticalL};--tabPaddingInline:${spacingHorizontalMNudge}}:host([orientation='vertical']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalS};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${spacingVerticalXXS};--tabIndicatorInsetBlock:${spacingVerticalSNudge}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalMNudge}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${strokeWidthThicker};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${strokeWidthThicker};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='large']) ::slotted([slot='tab']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${colorCompoundBrandStroke};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${durationSlow};transition-timing-function:${curveDecelerateMax};z-index:3;border-radius:${borderRadiusCircular};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${strokeWidthThicker}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${strokeWidthThicker};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${colorNeutralForegroundDisabled}}}`;
12520
-
12521
- const definition$7 = Tablist.compose({
12522
- name: tagName$7,
12523
- template: template$7,
12524
- styles: styles$7
12525
- });
12526
-
12527
- definition$7.define(FluentDesignSystem.registry);
12559
+ Tablist.define(definition$7);
12528
12560
 
12529
12561
  const TextAreaAppearance = {
12530
12562
  outline: "outline",
@@ -12539,6 +12571,23 @@ const TextAreaResize = {
12539
12571
  };
12540
12572
  const tagName$6 = `${FluentDesignSystem.prefix}-textarea`;
12541
12573
 
12574
+ const styles$6 = css`${display("inline-block")} :host{--font-size:${fontSizeBase300};--line-height:${lineHeightBase300};--padding-inline:${spacingHorizontalMNudge};--padding-block:${spacingVerticalSNudge};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${strokeWidthThin};--control-padding-inline:${spacingHorizontalXXS};--color:${colorNeutralForeground1};--background-color:${colorNeutralBackground1};--border-color:${colorNeutralStroke1};--border-block-end-color:${colorNeutralStrokeAccessible};--placeholder-color:${colorNeutralForeground4};--focus-indicator-color:${colorCompoundBrandStroke};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${fontFamilyBase};font-size:var(--font-size);font-weight:${fontWeightRegular};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${colorNeutralStroke1Hover};--border-block-end-color:${colorNeutralStrokeAccessibleHover}}:host(:active){--border-color:${colorNeutralStroke1Pressed};--border-block-end-color:${colorNeutralStrokeAccessiblePressed}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${fontSizeBase200};--line-height:${lineHeightBase200};--min-block-size:40px;--padding-block:${spacingVerticalXS};--padding-inline:${spacingHorizontalSNudge};--control-padding-inline:${spacingHorizontalXXS}}:host([size='large']){--font-size:${fontSizeBase400};--line-height:${lineHeightBase400};--min-block-size:64px;--padding-block:${spacingVerticalS};--padding-inline:${spacingHorizontalM};--control-padding-inline:${spacingHorizontalSNudge}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${colorNeutralBackground3};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${shadow2}}:host(${userInvalidState}){--border-color:${colorPaletteRedBorder2};--border-block-end-color:${colorPaletteRedBorder2}}:host(:disabled){--color:${colorNeutralForegroundDisabled};--background-color:${colorTransparentBackground};--border-color:${colorNeutralStrokeDisabled};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${colorNeutralForegroundDisabled};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${borderRadiusMedium};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr/1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${borderRadiusMedium});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${curveAccelerateMid};transition-duration:${durationUltraFast};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${spacingVerticalXS};padding-inline-end:${spacingHorizontalXS}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1/-1;grid-row:1/-1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;
12575
+
12576
+ function textAreaTemplate() {
12577
+ return html`<template><label ${ref("labelEl")} for=control part=label><slot name=label ${slotted("labelSlottedNodes")}></slot></label><div class=root part=root ${ref("rootEl")}><textarea ${ref("controlEl")} id=control class=control part=control ?required=${(x) => x.required} ?disabled=${(x) => x.disabled} ?readonly=${(x) => x.readOnly} ?spellcheck=${(x) => x.spellcheck} autocomplete=${(x) => x.autocomplete} maxlength=${(x) => x.maxLength} minlength=${(x) => x.minLength} placeholder=${(x) => x.placeholder} @change=${(x) => x.handleControlChange()} @select=${(x) => x.handleControlSelect()} @input=${(x) => x.handleControlInput()}></textarea></div><div hidden><slot ${slotted("defaultSlottedNodes")}></slot></div></template>`;
12578
+ }
12579
+ const template$6 = textAreaTemplate();
12580
+
12581
+ const definition$6 = {
12582
+ name: tagName$6,
12583
+ registry: FluentDesignSystem.registry,
12584
+ shadowOptions: {
12585
+ delegatesFocus: true
12586
+ },
12587
+ styles: styles$6,
12588
+ template: template$6
12589
+ };
12590
+
12542
12591
  const whitespaceFilter = (value) => value.nodeType !== Node.TEXT_NODE || !!value.nodeValue?.trim().length;
12543
12592
 
12544
12593
  var __defProp$a = Object.defineProperty;
@@ -13047,23 +13096,7 @@ __decorateClass$9([
13047
13096
  attr
13048
13097
  ], TextArea.prototype, "size", 2);
13049
13098
 
13050
- const styles$6 = css`${display("inline-block")} :host{--font-size:${fontSizeBase300};--line-height:${lineHeightBase300};--padding-inline:${spacingHorizontalMNudge};--padding-block:${spacingVerticalSNudge};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${strokeWidthThin};--control-padding-inline:${spacingHorizontalXXS};--color:${colorNeutralForeground1};--background-color:${colorNeutralBackground1};--border-color:${colorNeutralStroke1};--border-block-end-color:${colorNeutralStrokeAccessible};--placeholder-color:${colorNeutralForeground4};--focus-indicator-color:${colorCompoundBrandStroke};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${fontFamilyBase};font-size:var(--font-size);font-weight:${fontWeightRegular};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${colorNeutralStroke1Hover};--border-block-end-color:${colorNeutralStrokeAccessibleHover}}:host(:active){--border-color:${colorNeutralStroke1Pressed};--border-block-end-color:${colorNeutralStrokeAccessiblePressed}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${fontSizeBase200};--line-height:${lineHeightBase200};--min-block-size:40px;--padding-block:${spacingVerticalXS};--padding-inline:${spacingHorizontalSNudge};--control-padding-inline:${spacingHorizontalXXS}}:host([size='large']){--font-size:${fontSizeBase400};--line-height:${lineHeightBase400};--min-block-size:64px;--padding-block:${spacingVerticalS};--padding-inline:${spacingHorizontalM};--control-padding-inline:${spacingHorizontalSNudge}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${colorNeutralBackground3};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${shadow2}}:host(${userInvalidState}){--border-color:${colorPaletteRedBorder2};--border-block-end-color:${colorPaletteRedBorder2}}:host(:disabled){--color:${colorNeutralForegroundDisabled};--background-color:${colorTransparentBackground};--border-color:${colorNeutralStrokeDisabled};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${colorNeutralForegroundDisabled};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${borderRadiusMedium};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr/1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${borderRadiusMedium});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${curveAccelerateMid};transition-duration:${durationUltraFast};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${spacingVerticalXS};padding-inline-end:${spacingHorizontalXS}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1/-1;grid-row:1/-1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;
13051
-
13052
- function textAreaTemplate() {
13053
- return html`<template><label ${ref("labelEl")} for=control part=label><slot name=label ${slotted("labelSlottedNodes")}></slot></label><div class=root part=root ${ref("rootEl")}><textarea ${ref("controlEl")} id=control class=control part=control ?required=${(x) => x.required} ?disabled=${(x) => x.disabled} ?readonly=${(x) => x.readOnly} ?spellcheck=${(x) => x.spellcheck} autocomplete=${(x) => x.autocomplete} maxlength=${(x) => x.maxLength} minlength=${(x) => x.minLength} placeholder=${(x) => x.placeholder} @change=${(x) => x.handleControlChange()} @select=${(x) => x.handleControlSelect()} @input=${(x) => x.handleControlInput()}></textarea></div><div hidden><slot ${slotted("defaultSlottedNodes")}></slot></div></template>`;
13054
- }
13055
- const template$6 = textAreaTemplate();
13056
-
13057
- const definition$6 = TextArea.compose({
13058
- name: tagName$6,
13059
- template: template$6,
13060
- styles: styles$6,
13061
- shadowOptions: {
13062
- delegatesFocus: true
13063
- }
13064
- });
13065
-
13066
- definition$6.define(FluentDesignSystem.registry);
13099
+ TextArea.define(definition$6);
13067
13100
 
13068
13101
  const TextInputType = {
13069
13102
  email: "email",
@@ -13088,6 +13121,23 @@ const ImplicitSubmissionBlockingTypes = [
13088
13121
  ];
13089
13122
  const tagName$5 = `${FluentDesignSystem.prefix}-text-input`;
13090
13123
 
13124
+ const styles$5 = css`${display("block")} :host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};max-width:400px}.label{display:flex;color:${colorNeutralForeground1};padding-bottom:${spacingVerticalXS};flex-shrink:0;padding-inline-end:${spacingHorizontalXS}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};border-bottom-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalMNudge};position:relative;width:100%}:has(.control:user-invalid){border-color:${colorPaletteRedBorder2}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${borderRadiusMedium});border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};border-bottom:2px solid ${colorCompoundBrandStroke};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${durationUltraFast};transition-delay:${curveAccelerateMid}}.control{width:100%;height:100%;box-sizing:border-box;color:${colorNeutralForeground1};border-radius:${borderRadiusMedium};background:${colorTransparentBackground};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};font-size:${fontSizeBase300};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${colorNeutralForeground4}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${colorNeutralForeground3};font-size:${fontSizeBase500}}:host ::slotted([slot='start']){padding-right:${spacingHorizontalXXS}}:host ::slotted([slot='end']){padding-left:${spacingHorizontalXXS};gap:${spacingHorizontalXS}}:host(:hover) .root{border-color:${colorNeutralStroke1Hover};border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .root{border-color:${colorNeutralStroke1Pressed}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host(:focus-within:active) .root:after{border-bottom-color:${colorCompoundBrandStrokePressed}}:host([appearance='outline']:focus-within) .root{border:${strokeWidthThin} solid ${colorNeutralStroke1}}:host(:focus-within) .control{color:${colorNeutralForeground1}}:host([disabled]) .root{background:${colorTransparentBackground};border:${strokeWidthThin} solid ${colorNeutralStrokeDisabled}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}:host([control-size='small']) .control{font-size:${fontSizeBase200};font-weight:${fontWeightRegular};line-height:${lineHeightBase200}}:host([control-size='small']) .root{height:24px;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalSNudge}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${fontSizeBase400}}:host([control-size='large']) .control{font-size:${fontSizeBase400};font-weight:${fontWeightRegular};line-height:${lineHeightBase400}}:host([control-size='large']) .root{height:40px;gap:${spacingHorizontalS};padding:0 ${spacingHorizontalM}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${fontSizeBase600}}:host([appearance='underline']) .root{background:${colorTransparentBackground};border:0;border-radius:0;border-bottom:${strokeWidthThin} solid ${colorNeutralStrokeAccessible}}:host([appearance='underline']:hover) .root{border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='underline']:active) .root{border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${colorNeutralStrokeDisabled}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow2}}:host([appearance='filled-lighter']) .root{background:${colorNeutralBackground1}}:host([appearance='filled-darker']) .root{background:${colorNeutralBackground3}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${colorTransparentStrokeInteractive}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${colorTransparentStrokeInteractive};background:${colorNeutralBackground3}}`;
13125
+
13126
+ function textInputTemplate(options = {}) {
13127
+ return html`<template @keydown=${(x, c) => x.keydownHandler(c.event)}><label part=label for=control class=label ${ref("controlLabel")}><slot ${slotted("defaultSlottedNodes")}></slot></label><div class=root part=root>${startSlotTemplate(options)} <input class=control part=control id=control @change=${(x, c) => x.changeHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} autocomplete=${(x) => x.autocomplete} ?disabled=${(x) => x.disabled} list=${(x) => x.list} maxlength=${(x) => x.maxlength} minlength=${(x) => x.minlength} ?multiple=${(x) => x.multiple} name=${(x) => x.name} pattern=${(x) => x.pattern} placeholder=${(x) => x.placeholder} ?readonly=${(x) => x.readOnly} ?required=${(x) => x.required} size=${(x) => x.size} spellcheck=${(x) => x.spellcheck} type=${(x) => x.type} value=${(x) => x.value} ${ref("control")}> ${endSlotTemplate(options)}</div></template>`;
13128
+ }
13129
+ const template$5 = textInputTemplate();
13130
+
13131
+ const definition$5 = {
13132
+ name: tagName$5,
13133
+ registry: FluentDesignSystem.registry,
13134
+ shadowOptions: {
13135
+ delegatesFocus: true
13136
+ },
13137
+ styles: styles$5,
13138
+ template: template$5
13139
+ };
13140
+
13091
13141
  var __defProp$8 = Object.defineProperty;
13092
13142
  var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
13093
13143
  var __decorateClass$8 = (decorators, target, key, kind) => {
@@ -13506,25 +13556,20 @@ __decorateClass$7([
13506
13556
  ], TextInput.prototype, "controlSize", 2);
13507
13557
  applyMixins(TextInput, StartEnd);
13508
13558
 
13509
- const styles$5 = css`${display("block")} :host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};max-width:400px}.label{display:flex;color:${colorNeutralForeground1};padding-bottom:${spacingVerticalXS};flex-shrink:0;padding-inline-end:${spacingHorizontalXS}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};border-bottom-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalMNudge};position:relative;width:100%}:has(.control:user-invalid){border-color:${colorPaletteRedBorder2}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${borderRadiusMedium});border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};border-bottom:2px solid ${colorCompoundBrandStroke};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${durationUltraFast};transition-delay:${curveAccelerateMid}}.control{width:100%;height:100%;box-sizing:border-box;color:${colorNeutralForeground1};border-radius:${borderRadiusMedium};background:${colorTransparentBackground};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};font-size:${fontSizeBase300};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${colorNeutralForeground4}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${colorNeutralForeground3};font-size:${fontSizeBase500}}:host ::slotted([slot='start']){padding-right:${spacingHorizontalXXS}}:host ::slotted([slot='end']){padding-left:${spacingHorizontalXXS};gap:${spacingHorizontalXS}}:host(:hover) .root{border-color:${colorNeutralStroke1Hover};border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .root{border-color:${colorNeutralStroke1Pressed}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host(:focus-within:active) .root:after{border-bottom-color:${colorCompoundBrandStrokePressed}}:host([appearance='outline']:focus-within) .root{border:${strokeWidthThin} solid ${colorNeutralStroke1}}:host(:focus-within) .control{color:${colorNeutralForeground1}}:host([disabled]) .root{background:${colorTransparentBackground};border:${strokeWidthThin} solid ${colorNeutralStrokeDisabled}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}:host([control-size='small']) .control{font-size:${fontSizeBase200};font-weight:${fontWeightRegular};line-height:${lineHeightBase200}}:host([control-size='small']) .root{height:24px;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalSNudge}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${fontSizeBase400}}:host([control-size='large']) .control{font-size:${fontSizeBase400};font-weight:${fontWeightRegular};line-height:${lineHeightBase400}}:host([control-size='large']) .root{height:40px;gap:${spacingHorizontalS};padding:0 ${spacingHorizontalM}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${fontSizeBase600}}:host([appearance='underline']) .root{background:${colorTransparentBackground};border:0;border-radius:0;border-bottom:${strokeWidthThin} solid ${colorNeutralStrokeAccessible}}:host([appearance='underline']:hover) .root{border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='underline']:active) .root{border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${colorNeutralStrokeDisabled}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow2}}:host([appearance='filled-lighter']) .root{background:${colorNeutralBackground1}}:host([appearance='filled-darker']) .root{background:${colorNeutralBackground3}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${colorTransparentStrokeInteractive}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${colorTransparentStrokeInteractive};background:${colorNeutralBackground3}}`;
13559
+ TextInput.define(definition$5);
13510
13560
 
13511
- function textInputTemplate(options = {}) {
13512
- return html`<template @keydown=${(x, c) => x.keydownHandler(c.event)}><label part=label for=control class=label ${ref("controlLabel")}><slot ${slotted("defaultSlottedNodes")}></slot></label><div class=root part=root>${startSlotTemplate(options)} <input class=control part=control id=control @change=${(x, c) => x.changeHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} autocomplete=${(x) => x.autocomplete} ?disabled=${(x) => x.disabled} list=${(x) => x.list} maxlength=${(x) => x.maxlength} minlength=${(x) => x.minlength} ?multiple=${(x) => x.multiple} name=${(x) => x.name} pattern=${(x) => x.pattern} placeholder=${(x) => x.placeholder} ?readonly=${(x) => x.readOnly} ?required=${(x) => x.required} size=${(x) => x.size} spellcheck=${(x) => x.spellcheck} type=${(x) => x.type} value=${(x) => x.value} ${ref("control")}> ${endSlotTemplate(options)}</div></template>`;
13513
- }
13514
- const template$5 = textInputTemplate();
13561
+ const tagName$4 = `${FluentDesignSystem.prefix}-text`;
13515
13562
 
13516
- const definition$5 = TextInput.compose({
13517
- name: tagName$5,
13518
- template: template$5,
13519
- styles: styles$5,
13520
- shadowOptions: {
13521
- delegatesFocus: true
13522
- }
13523
- });
13563
+ const styles$4 = css`${display("inline")} :host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${fontSizeBase100};line-height:${lineHeightBase100}}:host([size='200']){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='400']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='500']){font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([size='600']){font-size:${fontSizeBase600};line-height:${lineHeightBase600}}:host([size='700']){font-size:${fontSizeHero700};line-height:${lineHeightHero700}}:host([size='800']){font-size:${fontSizeHero800};line-height:${lineHeightHero800}}:host([size='900']){font-size:${fontSizeHero900};line-height:${lineHeightHero900}}:host([size='1000']){font-size:${fontSizeHero1000};line-height:${lineHeightHero1000}}:host([font='monospace']){font-family:${fontFamilyMonospace}}:host([font='numeric']){font-family:${fontFamilyNumeric}}:host([weight='medium']){font-weight:${fontWeightMedium}}:host([weight='semibold']){font-weight:${fontWeightSemibold}}:host([weight='bold']){font-weight:${fontWeightBold}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`;
13524
13564
 
13525
- definition$5.define(FluentDesignSystem.registry);
13565
+ const template$4 = html`<slot></slot>`;
13526
13566
 
13527
- const tagName$4 = `${FluentDesignSystem.prefix}-text`;
13567
+ const definition$4 = {
13568
+ name: tagName$4,
13569
+ registry: FluentDesignSystem.registry,
13570
+ styles: styles$4,
13571
+ template: template$4
13572
+ };
13528
13573
 
13529
13574
  var __defProp$6 = Object.defineProperty;
13530
13575
  var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
@@ -13584,19 +13629,20 @@ __decorateClass$6([
13584
13629
  attr
13585
13630
  ], Text.prototype, "align", 2);
13586
13631
 
13587
- const styles$4 = css`${display("inline")} :host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${fontSizeBase100};line-height:${lineHeightBase100}}:host([size='200']){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='400']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='500']){font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([size='600']){font-size:${fontSizeBase600};line-height:${lineHeightBase600}}:host([size='700']){font-size:${fontSizeHero700};line-height:${lineHeightHero700}}:host([size='800']){font-size:${fontSizeHero800};line-height:${lineHeightHero800}}:host([size='900']){font-size:${fontSizeHero900};line-height:${lineHeightHero900}}:host([size='1000']){font-size:${fontSizeHero1000};line-height:${lineHeightHero1000}}:host([font='monospace']){font-family:${fontFamilyMonospace}}:host([font='numeric']){font-family:${fontFamilyNumeric}}:host([weight='medium']){font-weight:${fontWeightMedium}}:host([weight='semibold']){font-weight:${fontWeightSemibold}}:host([weight='bold']){font-weight:${fontWeightBold}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`;
13632
+ Text.define(definition$4);
13588
13633
 
13589
- const template$4 = html`<slot></slot>`;
13634
+ const tagName$3 = `${FluentDesignSystem.prefix}-toggle-button`;
13590
13635
 
13591
- const definition$4 = Text.compose({
13592
- name: tagName$4,
13593
- template: template$4,
13594
- styles: styles$4
13595
- });
13636
+ const styles$3 = css`${styles$D} :host(${pressedState}){border-color:${colorNeutralStroke1};background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground1};border-width:${strokeWidthThin}}:host(${pressedState}:hover){border-color:${colorNeutralStroke1Hover};background-color:${colorNeutralBackground1Hover}}:host(${pressedState}:active){border-color:${colorNeutralStroke1Pressed};background-color:${colorNeutralBackground1Pressed}}:host(${pressedState}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${pressedState}[appearance='primary']){background-color:${colorBrandBackgroundSelected};color:${colorNeutralForegroundOnBrand}}:host(${pressedState}[appearance='primary']:hover){background-color:${colorBrandBackgroundHover}}:host(${pressedState}[appearance='primary']:active){background-color:${colorBrandBackgroundPressed}}:host(${pressedState}[appearance='subtle']){border-color:transparent;background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host(${pressedState}[appearance='subtle']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}:host(${pressedState}[appearance='subtle']:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}:host(${pressedState}[appearance='outline']),:host(${pressedState}[appearance='transparent']){background-color:${colorTransparentBackgroundSelected}}:host(${pressedState}[appearance='outline']:hover),:host(${pressedState}[appearance='transparent']:hover){background-color:${colorTransparentBackgroundHover}}:host(${pressedState}[appearance='outline']:active),:host(${pressedState}[appearance='transparent']:active){background-color:${colorTransparentBackgroundPressed}}:host(${pressedState}[appearance='transparent']){border-color:transparent;color:${colorNeutralForeground2BrandSelected}}:host(${pressedState}[appearance='transparent']:hover){color:${colorNeutralForeground2BrandHover}}:host(${pressedState}[appearance='transparent']:active){color:${colorNeutralForeground2BrandPressed}}@media (forced-colors:active){:host(${pressedState}),:host( ${pressedState}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem}:host(${pressedState}[appearance='primary']){color:SelectedItemText}}`;
13596
13637
 
13597
- definition$4.define(FluentDesignSystem.registry);
13638
+ const template$3 = buttonTemplate$1();
13598
13639
 
13599
- const tagName$3 = `${FluentDesignSystem.prefix}-toggle-button`;
13640
+ const definition$3 = {
13641
+ name: tagName$3,
13642
+ registry: FluentDesignSystem.registry,
13643
+ styles: styles$3,
13644
+ template: template$3
13645
+ };
13600
13646
 
13601
13647
  var __defProp$5 = Object.defineProperty;
13602
13648
  var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
@@ -13658,17 +13704,7 @@ __decorateClass$5([
13658
13704
  attr({ mode: "boolean" })
13659
13705
  ], ToggleButton.prototype, "mixed", 2);
13660
13706
 
13661
- const styles$3 = css`${styles$D} :host(${pressedState}){border-color:${colorNeutralStroke1};background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground1};border-width:${strokeWidthThin}}:host(${pressedState}:hover){border-color:${colorNeutralStroke1Hover};background-color:${colorNeutralBackground1Hover}}:host(${pressedState}:active){border-color:${colorNeutralStroke1Pressed};background-color:${colorNeutralBackground1Pressed}}:host(${pressedState}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${pressedState}[appearance='primary']){background-color:${colorBrandBackgroundSelected};color:${colorNeutralForegroundOnBrand}}:host(${pressedState}[appearance='primary']:hover){background-color:${colorBrandBackgroundHover}}:host(${pressedState}[appearance='primary']:active){background-color:${colorBrandBackgroundPressed}}:host(${pressedState}[appearance='subtle']){border-color:transparent;background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host(${pressedState}[appearance='subtle']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}:host(${pressedState}[appearance='subtle']:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}:host(${pressedState}[appearance='outline']),:host(${pressedState}[appearance='transparent']){background-color:${colorTransparentBackgroundSelected}}:host(${pressedState}[appearance='outline']:hover),:host(${pressedState}[appearance='transparent']:hover){background-color:${colorTransparentBackgroundHover}}:host(${pressedState}[appearance='outline']:active),:host(${pressedState}[appearance='transparent']:active){background-color:${colorTransparentBackgroundPressed}}:host(${pressedState}[appearance='transparent']){border-color:transparent;color:${colorNeutralForeground2BrandSelected}}:host(${pressedState}[appearance='transparent']:hover){color:${colorNeutralForeground2BrandHover}}:host(${pressedState}[appearance='transparent']:active){color:${colorNeutralForeground2BrandPressed}}@media (forced-colors:active){:host(${pressedState}),:host( ${pressedState}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem;color:SelectedItemText}}`;
13662
-
13663
- const template$3 = buttonTemplate$1();
13664
-
13665
- const definition$3 = ToggleButton.compose({
13666
- name: tagName$3,
13667
- template: template$3,
13668
- styles: styles$3
13669
- });
13670
-
13671
- definition$3.define(FluentDesignSystem.registry);
13707
+ ToggleButton.define(definition$3);
13672
13708
 
13673
13709
  const TooltipPositioningOption = {
13674
13710
  "above-start": "block-start span-inline-end",
@@ -13686,6 +13722,17 @@ const TooltipPositioningOption = {
13686
13722
  };
13687
13723
  const tagName$2 = `${FluentDesignSystem.prefix}-tooltip`;
13688
13724
 
13725
+ const styles$2 = css`${display("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${spacingVerticalXS};--inline-offset:${spacingHorizontalXS};background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:1px solid ${colorTransparentStroke};box-sizing:border-box;color:${colorNeutralForeground1};display:inline-flex;filter:drop-shadow(0 0 2px ${colorNeutralShadowAmbient}) drop-shadow(0 4px 8px ${colorNeutralShadowKey});font-family:${fontFamilyBase};font-size:${fontSizeBase200};inset:unset;line-height:${lineHeightBase200};margin:unset;max-width:240px;overflow:visible;padding:4px ${spacingHorizontalMNudge} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${TooltipPositioningOption["above-start"]}}:host([positioning='above']){--position-area:${TooltipPositioningOption.above}}:host([positioning='above-end']){--position-area:${TooltipPositioningOption["above-end"]}}:host([positioning='below-start']){--position-area:${TooltipPositioningOption["below-start"]}}:host([positioning='below']){--position-area:${TooltipPositioningOption.below}}:host([positioning='below-end']){--position-area:${TooltipPositioningOption["below-end"]}}:host([positioning='before-top']){--position-area:${TooltipPositioningOption["before-top"]}}:host([positioning='before']){--position-area:${TooltipPositioningOption.before}}:host([positioning='before-bottom']){--position-area:${TooltipPositioningOption["before-bottom"]}}:host([positioning='after-top']){--position-area:${TooltipPositioningOption["after-top"]}}:host([positioning='after']){--position-area:${TooltipPositioningOption.after}}:host([positioning='after-bottom']){--position-area:${TooltipPositioningOption["after-bottom"]}}`;
13726
+
13727
+ const template$2 = html`<template popover aria-hidden=true><slot></slot></template>`;
13728
+
13729
+ const definition$2 = {
13730
+ name: tagName$2,
13731
+ registry: FluentDesignSystem.registry,
13732
+ styles: styles$2,
13733
+ template: template$2
13734
+ };
13735
+
13689
13736
  var __defProp$4 = Object.defineProperty;
13690
13737
  var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
13691
13738
  var __decorateClass$4 = (decorators, target, key, kind) => {
@@ -13898,19 +13945,20 @@ __decorateClass$4([
13898
13945
  attr
13899
13946
  ], Tooltip.prototype, "anchor", 2);
13900
13947
 
13901
- const styles$2 = css`${display("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${spacingVerticalXS};--inline-offset:${spacingHorizontalXS};background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:1px solid ${colorTransparentStroke};box-sizing:border-box;color:${colorNeutralForeground1};display:inline-flex;filter:drop-shadow(0 0 2px ${colorNeutralShadowAmbient}) drop-shadow(0 4px 8px ${colorNeutralShadowKey});font-family:${fontFamilyBase};font-size:${fontSizeBase200};inset:unset;line-height:${lineHeightBase200};margin:unset;max-width:240px;overflow:visible;padding:4px ${spacingHorizontalMNudge} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${TooltipPositioningOption["above-start"]}}:host([positioning='above']){--position-area:${TooltipPositioningOption.above}}:host([positioning='above-end']){--position-area:${TooltipPositioningOption["above-end"]}}:host([positioning='below-start']){--position-area:${TooltipPositioningOption["below-start"]}}:host([positioning='below']){--position-area:${TooltipPositioningOption.below}}:host([positioning='below-end']){--position-area:${TooltipPositioningOption["below-end"]}}:host([positioning='before-top']){--position-area:${TooltipPositioningOption["before-top"]}}:host([positioning='before']){--position-area:${TooltipPositioningOption.before}}:host([positioning='before-bottom']){--position-area:${TooltipPositioningOption["before-bottom"]}}:host([positioning='after-top']){--position-area:${TooltipPositioningOption["after-top"]}}:host([positioning='after']){--position-area:${TooltipPositioningOption.after}}:host([positioning='after-bottom']){--position-area:${TooltipPositioningOption["after-bottom"]}}`;
13948
+ Tooltip.define(definition$2);
13902
13949
 
13903
- const template$2 = html`<template popover aria-hidden=true><slot></slot></template>`;
13950
+ const tagName$1 = `${FluentDesignSystem.prefix}-tree`;
13904
13951
 
13905
- const definition$2 = Tooltip.compose({
13906
- name: tagName$2,
13907
- template: template$2,
13908
- styles: styles$2
13909
- });
13952
+ const styles$1 = css`${display("block")} :host{outline:none}`;
13910
13953
 
13911
- definition$2.define(FluentDesignSystem.registry);
13954
+ const template$1 = html`<template tabindex=0 focusgroup="menu inline block nowrap nomemory" @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} @toggle=${(x, c) => x.itemToggleHandler()}><slot ${ref("defaultSlot")} @slotchange=${(x) => x.handleDefaultSlotChange()}></slot></template>`;
13912
13955
 
13913
- const tagName$1 = `${FluentDesignSystem.prefix}-tree`;
13956
+ const definition$1 = {
13957
+ name: tagName$1,
13958
+ registry: FluentDesignSystem.registry,
13959
+ styles: styles$1,
13960
+ template: template$1
13961
+ };
13914
13962
 
13915
13963
  const TreeItemAppearance = {
13916
13964
  subtle: "subtle",
@@ -14160,17 +14208,19 @@ __decorateClass$2([
14160
14208
  attr
14161
14209
  ], Tree.prototype, "appearance", 2);
14162
14210
 
14163
- const styles$1 = css`${display("block")} :host{outline:none}`;
14211
+ Tree.define(definition$1);
14164
14212
 
14165
- const template$1 = html`<template tabindex=0 focusgroup="menu inline block nowrap nomemory" @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} @toggle=${(x, c) => x.itemToggleHandler()}><slot ${ref("defaultSlot")} @slotchange=${(x) => x.handleDefaultSlotChange()}></slot></template>`;
14213
+ const styles = css`${display("block")} :host{outline:none;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host(:focus-visible) .positioning-region{box-shadow:${spacingVerticalNone} ${spacingVerticalNone} ${spacingVerticalNone} ${spacingVerticalXXS} ${colorStrokeFocus2} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${spacingVerticalXXXL};padding-inline-start:calc(var(--indent) * ${spacingHorizontalXXL});padding-inline-end:${spacingVerticalS};border-radius:${borderRadiusMedium};background-color:${colorSubtleBackground};color:${colorNeutralForeground2};gap:${spacingHorizontalXS}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${colorStrokeFocus2}}}.content{display:flex;align-items:center;gap:${spacingHorizontalXS}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${spacingHorizontalXXL};height:${spacingVerticalXXL};transition:transform ${durationFaster} ${curveEasyEaseMax};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}.positioning-region:active{background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${spacingHorizontalXXS}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host([selected]) .content,:host([selected]) .chevron{color:${colorNeutralForeground3Selected}}:host([size='small']) .positioning-region{height:${spacingVerticalXXL};padding-inline-start:calc(var(--indent) * ${spacingHorizontalM})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${colorSubtleBackgroundLightAlphaHover}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${colorSubtleBackgroundLightAlphaPressed}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${colorSubtleBackgroundLightAlphaSelected};color:${colorNeutralForeground2Selected}}:host([appearance='transparent']) .positioning-region{background-color:${colorTransparentBackground}}:host([appearance='transparent']) .positioning-region:hover{background-color:${colorTransparentBackgroundHover}}:host([appearance='transparent']) .positioning-region:active{background-color:${colorTransparentBackgroundPressed}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${colorTransparentBackgroundSelected};color:${colorNeutralForeground2Selected}}:host([expanded]) .chevron{transform:rotate(90deg)}`;
14166
14214
 
14167
- const definition$1 = Tree.compose({
14168
- name: tagName$1,
14169
- template: template$1,
14170
- styles: styles$1
14171
- });
14215
+ const chevronIcon = html`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`;
14216
+ const template = html`<template tabindex=0 ?focusgroupstart=${(x) => x.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${chevronIcon}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${ref("itemSlot")} @slotchange=${(x) => x.handleItemSlotChange()}></slot></div></template>`;
14172
14217
 
14173
- definition$1.define(FluentDesignSystem.registry);
14218
+ const definition = {
14219
+ name: tagName,
14220
+ registry: FluentDesignSystem.registry,
14221
+ styles,
14222
+ template
14223
+ };
14174
14224
 
14175
14225
  var __defProp$1 = Object.defineProperty;
14176
14226
  var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
@@ -14419,18 +14469,7 @@ __decorateClass([
14419
14469
  attr
14420
14470
  ], TreeItem.prototype, "appearance", 2);
14421
14471
 
14422
- const styles = css`${display("block")} :host{outline:none;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host(:focus-visible) .positioning-region{box-shadow:${spacingVerticalNone} ${spacingVerticalNone} ${spacingVerticalNone} ${spacingVerticalXXS} ${colorStrokeFocus2} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${spacingVerticalXXXL};padding-inline-start:calc(var(--indent) * ${spacingHorizontalXXL});padding-inline-end:${spacingVerticalS};border-radius:${borderRadiusMedium};background-color:${colorSubtleBackground};color:${colorNeutralForeground2};gap:${spacingHorizontalXS}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${colorStrokeFocus2}}}.content{display:flex;align-items:center;gap:${spacingHorizontalXS}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${spacingHorizontalXXL};height:${spacingVerticalXXL};transition:transform ${durationFaster} ${curveEasyEaseMax};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}.positioning-region:active{background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${spacingHorizontalXXS}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host([selected]) .content,:host([selected]) .chevron{color:${colorNeutralForeground3Selected}}:host([size='small']) .positioning-region{height:${spacingVerticalXXL};padding-inline-start:calc(var(--indent) * ${spacingHorizontalM})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${colorSubtleBackgroundLightAlphaHover}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${colorSubtleBackgroundLightAlphaPressed}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${colorSubtleBackgroundLightAlphaSelected};color:${colorNeutralForeground2Selected}}:host([appearance='transparent']) .positioning-region{background-color:${colorTransparentBackground}}:host([appearance='transparent']) .positioning-region:hover{background-color:${colorTransparentBackgroundHover}}:host([appearance='transparent']) .positioning-region:active{background-color:${colorTransparentBackgroundPressed}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${colorTransparentBackgroundSelected};color:${colorNeutralForeground2Selected}}:host([expanded]) .chevron{transform:rotate(90deg)}`;
14423
-
14424
- const chevronIcon = html`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`;
14425
- const template = html`<template tabindex=0 ?focusgroupstart=${(x) => x.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${chevronIcon}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${ref("itemSlot")} @slotchange=${(x) => x.handleItemSlotChange()}></slot></div></template>`;
14426
-
14427
- const definition = TreeItem.compose({
14428
- name: tagName,
14429
- template: template,
14430
- styles: styles
14431
- });
14432
-
14433
- definition.define(FluentDesignSystem.registry);
14472
+ TreeItem.define(definition);
14434
14473
 
14435
14474
  const SUPPORTS_ADOPTED_STYLE_SHEETS = "adoptedStyleSheets" in document;
14436
14475
  const SUPPORTS_CSS_SCOPE = "CSSScopeRule" in window;