@mattermost/compass-ui 0.1.0-alpha.5 → 0.1.0-alpha.7

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 (977) hide show
  1. package/README.md +1 -0
  2. package/dist/components/action-button/ActionButton.cjs.map +1 -1
  3. package/dist/components/action-button/ActionButton.d.ts +1 -0
  4. package/dist/components/action-button/ActionButton.d.ts.map +1 -1
  5. package/dist/components/action-button/ActionButton.js.map +1 -1
  6. package/dist/components/admin-panel/AdminPanel.cjs.map +1 -1
  7. package/dist/components/admin-panel/AdminPanel.d.ts +1 -0
  8. package/dist/components/admin-panel/AdminPanel.d.ts.map +1 -1
  9. package/dist/components/admin-panel/AdminPanel.js.map +1 -1
  10. package/dist/components/admin-panel-header/AdminPanelHeader.cjs.map +1 -1
  11. package/dist/components/admin-panel-header/AdminPanelHeader.d.ts +1 -0
  12. package/dist/components/admin-panel-header/AdminPanelHeader.d.ts.map +1 -1
  13. package/dist/components/admin-panel-header/AdminPanelHeader.js.map +1 -1
  14. package/dist/components/button/Button.cjs +1 -1
  15. package/dist/components/button/Button.cjs.map +1 -1
  16. package/dist/components/button/Button.d.ts +2 -2
  17. package/dist/components/button/Button.d.ts.map +1 -1
  18. package/dist/components/button/Button.js +24 -24
  19. package/dist/components/button/Button.js.map +1 -1
  20. package/dist/components/button/Button.module.css +1 -1
  21. package/dist/components/button/Button.module.scss.cjs +1 -1
  22. package/dist/components/button/Button.module.scss.js +13 -12
  23. package/dist/components/button/Button.module.scss.js.map +1 -1
  24. package/dist/components/card-button/CardButton.cjs +2 -0
  25. package/dist/components/card-button/CardButton.cjs.map +1 -0
  26. package/dist/components/card-button/CardButton.d.ts +20 -0
  27. package/dist/components/card-button/CardButton.d.ts.map +1 -0
  28. package/dist/components/card-button/CardButton.js +45 -0
  29. package/dist/components/card-button/CardButton.js.map +1 -0
  30. package/dist/components/card-button/CardButton.module.css +1 -0
  31. package/dist/components/card-button/CardButton.module.scss.cjs +2 -0
  32. package/dist/components/card-button/CardButton.module.scss.cjs.map +1 -0
  33. package/dist/components/card-button/CardButton.module.scss.js +13 -0
  34. package/dist/components/card-button/CardButton.module.scss.js.map +1 -0
  35. package/dist/components/card-button/CardButtonGroup.cjs +2 -0
  36. package/dist/components/card-button/CardButtonGroup.cjs.map +1 -0
  37. package/dist/components/card-button/CardButtonGroup.d.ts +13 -0
  38. package/dist/components/card-button/CardButtonGroup.d.ts.map +1 -0
  39. package/dist/components/card-button/CardButtonGroup.js +85 -0
  40. package/dist/components/card-button/CardButtonGroup.js.map +1 -0
  41. package/dist/components/card-button/CardButtonGroup.module.css +1 -0
  42. package/dist/components/card-button/CardButtonGroup.module.scss.cjs +2 -0
  43. package/dist/components/card-button/CardButtonGroup.module.scss.cjs.map +1 -0
  44. package/dist/components/card-button/CardButtonGroup.module.scss.js +7 -0
  45. package/dist/components/card-button/CardButtonGroup.module.scss.js.map +1 -0
  46. package/dist/components/card-button/index.cjs +2 -0
  47. package/dist/components/card-button/index.d.ts +5 -0
  48. package/dist/components/card-button/index.d.ts.map +1 -0
  49. package/dist/components/card-button/index.js +7 -0
  50. package/dist/components/emoji-button/EmojiButton.cjs +2 -0
  51. package/dist/components/emoji-button/EmojiButton.cjs.map +1 -0
  52. package/dist/components/emoji-button/EmojiButton.d.ts +30 -0
  53. package/dist/components/emoji-button/EmojiButton.d.ts.map +1 -0
  54. package/dist/components/emoji-button/EmojiButton.js +35 -0
  55. package/dist/components/emoji-button/EmojiButton.js.map +1 -0
  56. package/dist/components/emoji-button/EmojiButton.module.css +1 -0
  57. package/dist/components/emoji-button/EmojiButton.module.scss.cjs +2 -0
  58. package/dist/components/emoji-button/EmojiButton.module.scss.cjs.map +1 -0
  59. package/dist/components/emoji-button/EmojiButton.module.scss.js +15 -0
  60. package/dist/components/emoji-button/EmojiButton.module.scss.js.map +1 -0
  61. package/dist/components/emoji-button/index.cjs +2 -0
  62. package/dist/components/emoji-button/index.d.ts +3 -0
  63. package/dist/components/emoji-button/index.d.ts.map +1 -0
  64. package/dist/components/emoji-button/index.js +6 -0
  65. package/dist/components/emoji-popover/EmojiPopover.cjs +2 -0
  66. package/dist/components/emoji-popover/EmojiPopover.cjs.map +1 -0
  67. package/dist/components/emoji-popover/EmojiPopover.d.ts +34 -0
  68. package/dist/components/emoji-popover/EmojiPopover.d.ts.map +1 -0
  69. package/dist/components/emoji-popover/EmojiPopover.js +244 -0
  70. package/dist/components/emoji-popover/EmojiPopover.js.map +1 -0
  71. package/dist/components/emoji-popover/EmojiPopover.module.css +1 -0
  72. package/dist/components/emoji-popover/EmojiPopover.module.scss.cjs +2 -0
  73. package/dist/components/emoji-popover/EmojiPopover.module.scss.cjs.map +1 -0
  74. package/dist/components/emoji-popover/EmojiPopover.module.scss.js +27 -0
  75. package/dist/components/emoji-popover/EmojiPopover.module.scss.js.map +1 -0
  76. package/dist/components/{message-input → emoji-popover}/index.cjs +1 -1
  77. package/dist/components/emoji-popover/index.d.ts +3 -0
  78. package/dist/components/{reaction-pill → emoji-popover}/index.d.ts.map +1 -1
  79. package/dist/components/emoji-popover/index.js +5 -0
  80. package/dist/components/global-banner/GlobalBanner.cjs.map +1 -1
  81. package/dist/components/global-banner/GlobalBanner.d.ts +1 -1
  82. package/dist/components/global-banner/GlobalBanner.d.ts.map +1 -1
  83. package/dist/components/global-banner/GlobalBanner.js.map +1 -1
  84. package/dist/components/global-header/GlobalHeader.module.css +1 -1
  85. package/dist/components/global-header/GlobalHeader.module.scss.cjs +1 -1
  86. package/dist/components/global-header/GlobalHeader.module.scss.js +16 -16
  87. package/dist/components/icon/Icon.js +6 -6
  88. package/dist/components/illustration/Illustration.cjs.map +1 -1
  89. package/dist/components/illustration/Illustration.d.ts +5 -5
  90. package/dist/components/illustration/Illustration.d.ts.map +1 -1
  91. package/dist/components/illustration/Illustration.js.map +1 -1
  92. package/dist/components/menu-group-heading/MenuGroupHeading.cjs +2 -0
  93. package/dist/components/menu-group-heading/MenuGroupHeading.cjs.map +1 -0
  94. package/dist/components/menu-group-heading/MenuGroupHeading.d.ts +11 -0
  95. package/dist/components/menu-group-heading/MenuGroupHeading.d.ts.map +1 -0
  96. package/dist/components/menu-group-heading/MenuGroupHeading.js +20 -0
  97. package/dist/components/menu-group-heading/MenuGroupHeading.js.map +1 -0
  98. package/dist/components/menu-group-heading/MenuGroupHeading.module.css +1 -0
  99. package/dist/components/menu-group-heading/MenuGroupHeading.module.scss.cjs +2 -0
  100. package/dist/components/menu-group-heading/MenuGroupHeading.module.scss.cjs.map +1 -0
  101. package/dist/components/menu-group-heading/MenuGroupHeading.module.scss.js +8 -0
  102. package/dist/components/menu-group-heading/MenuGroupHeading.module.scss.js.map +1 -0
  103. package/dist/components/{message-reactions → menu-group-heading}/index.cjs +1 -1
  104. package/dist/components/menu-group-heading/index.d.ts +3 -0
  105. package/dist/components/menu-group-heading/index.d.ts.map +1 -0
  106. package/dist/components/menu-group-heading/index.js +5 -0
  107. package/dist/components/menu-item/MenuItem.cjs.map +1 -1
  108. package/dist/components/menu-item/MenuItem.d.ts +2 -2
  109. package/dist/components/menu-item/MenuItem.d.ts.map +1 -1
  110. package/dist/components/menu-item/MenuItem.js.map +1 -1
  111. package/dist/components/message-separator/MessageSeparator.cjs +1 -1
  112. package/dist/components/message-separator/MessageSeparator.cjs.map +1 -1
  113. package/dist/components/message-separator/MessageSeparator.d.ts +1 -1
  114. package/dist/components/message-separator/MessageSeparator.js +1 -1
  115. package/dist/components/message-separator/MessageSeparator.js.map +1 -1
  116. package/dist/components/modal/Modal.cjs +1 -1
  117. package/dist/components/modal/Modal.cjs.map +1 -1
  118. package/dist/components/modal/Modal.d.ts +43 -11
  119. package/dist/components/modal/Modal.d.ts.map +1 -1
  120. package/dist/components/modal/Modal.js +56 -74
  121. package/dist/components/modal/Modal.js.map +1 -1
  122. package/dist/components/modal/Modal.module.css +1 -1
  123. package/dist/components/modal/Modal.module.scss.cjs +1 -1
  124. package/dist/components/modal/Modal.module.scss.js +12 -25
  125. package/dist/components/modal/Modal.module.scss.js.map +1 -1
  126. package/dist/components/modal/index.d.ts +1 -1
  127. package/dist/components/modal/index.d.ts.map +1 -1
  128. package/dist/components/modal-footer/ModalFooter.cjs +2 -0
  129. package/dist/components/modal-footer/ModalFooter.cjs.map +1 -0
  130. package/dist/components/modal-footer/ModalFooter.d.ts +29 -0
  131. package/dist/components/modal-footer/ModalFooter.d.ts.map +1 -0
  132. package/dist/components/modal-footer/ModalFooter.js +31 -0
  133. package/dist/components/modal-footer/ModalFooter.js.map +1 -0
  134. package/dist/components/modal-footer/ModalFooter.module.css +1 -0
  135. package/dist/components/modal-footer/ModalFooter.module.scss.cjs +2 -0
  136. package/dist/components/modal-footer/ModalFooter.module.scss.cjs.map +1 -0
  137. package/dist/components/modal-footer/ModalFooter.module.scss.js +17 -0
  138. package/dist/components/modal-footer/ModalFooter.module.scss.js.map +1 -0
  139. package/dist/components/{app-bar-item → modal-footer}/index.cjs +1 -1
  140. package/dist/components/modal-footer/index.d.ts +3 -0
  141. package/dist/components/modal-footer/index.d.ts.map +1 -0
  142. package/dist/components/modal-footer/index.js +5 -0
  143. package/dist/components/modal-header/ModalHeader.cjs +2 -0
  144. package/dist/components/modal-header/ModalHeader.cjs.map +1 -0
  145. package/dist/components/modal-header/ModalHeader.d.ts +38 -0
  146. package/dist/components/modal-header/ModalHeader.d.ts.map +1 -0
  147. package/dist/components/modal-header/ModalHeader.js +74 -0
  148. package/dist/components/modal-header/ModalHeader.js.map +1 -0
  149. package/dist/components/modal-header/ModalHeader.module.css +1 -0
  150. package/dist/components/modal-header/ModalHeader.module.scss.cjs +2 -0
  151. package/dist/components/modal-header/ModalHeader.module.scss.cjs.map +1 -0
  152. package/dist/components/modal-header/ModalHeader.module.scss.js +19 -0
  153. package/dist/components/modal-header/ModalHeader.module.scss.js.map +1 -0
  154. package/dist/components/{reaction-pill → modal-header}/index.cjs +1 -1
  155. package/dist/components/modal-header/index.d.ts +3 -0
  156. package/dist/components/modal-header/index.d.ts.map +1 -0
  157. package/dist/components/modal-header/index.js +5 -0
  158. package/dist/components/popover-notice/PopoverNotice.cjs.map +1 -1
  159. package/dist/components/popover-notice/PopoverNotice.d.ts +1 -1
  160. package/dist/components/popover-notice/PopoverNotice.d.ts.map +1 -1
  161. package/dist/components/popover-notice/PopoverNotice.js.map +1 -1
  162. package/dist/components/reaction-button/ReactionButton.cjs +2 -0
  163. package/dist/components/reaction-button/ReactionButton.cjs.map +1 -0
  164. package/dist/components/reaction-button/ReactionButton.d.ts +17 -0
  165. package/dist/components/reaction-button/ReactionButton.d.ts.map +1 -0
  166. package/dist/components/reaction-button/ReactionButton.js +42 -0
  167. package/dist/components/reaction-button/ReactionButton.js.map +1 -0
  168. package/dist/components/reaction-button/ReactionButton.module.css +1 -0
  169. package/dist/components/reaction-button/ReactionButton.module.scss.cjs +2 -0
  170. package/dist/components/reaction-button/ReactionButton.module.scss.cjs.map +1 -0
  171. package/dist/components/reaction-button/ReactionButton.module.scss.js +12 -0
  172. package/dist/components/reaction-button/ReactionButton.module.scss.js.map +1 -0
  173. package/dist/components/reaction-button/index.cjs +2 -0
  174. package/dist/components/reaction-button/index.d.ts +3 -0
  175. package/dist/components/reaction-button/index.d.ts.map +1 -0
  176. package/dist/components/reaction-button/index.js +5 -0
  177. package/dist/components/reaction-button/index.js.map +1 -0
  178. package/dist/components/reactions-row/ReactionsRow.cjs +2 -0
  179. package/dist/components/reactions-row/ReactionsRow.cjs.map +1 -0
  180. package/dist/components/{message-reactions/MessageReactions.d.ts → reactions-row/ReactionsRow.d.ts} +5 -5
  181. package/dist/components/reactions-row/ReactionsRow.d.ts.map +1 -0
  182. package/dist/components/reactions-row/ReactionsRow.js +71 -0
  183. package/dist/components/reactions-row/ReactionsRow.js.map +1 -0
  184. package/dist/components/reactions-row/ReactionsRow.module.css +1 -0
  185. package/dist/components/reactions-row/ReactionsRow.module.scss.cjs +2 -0
  186. package/dist/components/reactions-row/ReactionsRow.module.scss.cjs.map +1 -0
  187. package/dist/components/reactions-row/ReactionsRow.module.scss.js +14 -0
  188. package/dist/components/reactions-row/ReactionsRow.module.scss.js.map +1 -0
  189. package/dist/components/{channel-header → reactions-row}/index.cjs +1 -1
  190. package/dist/components/reactions-row/index.cjs.map +1 -0
  191. package/dist/components/reactions-row/index.d.ts +3 -0
  192. package/dist/components/{message-input → reactions-row}/index.d.ts.map +1 -1
  193. package/dist/components/reactions-row/index.js +5 -0
  194. package/dist/components/reactions-row/index.js.map +1 -0
  195. package/dist/components/right-sidebar-header/RightSidebarHeader.cjs +2 -0
  196. package/dist/components/right-sidebar-header/RightSidebarHeader.cjs.map +1 -0
  197. package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.d.ts +2 -2
  198. package/dist/components/right-sidebar-header/RightSidebarHeader.d.ts.map +1 -0
  199. package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.js +3 -3
  200. package/dist/components/right-sidebar-header/RightSidebarHeader.js.map +1 -0
  201. package/dist/components/right-sidebar-header/RightSidebarHeader.module.css +1 -0
  202. package/dist/components/right-sidebar-header/RightSidebarHeader.module.scss.cjs +2 -0
  203. package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.module.scss.js +12 -12
  204. package/dist/components/right-sidebar-header/index.cjs +2 -0
  205. package/dist/components/right-sidebar-header/index.cjs.map +1 -0
  206. package/dist/components/right-sidebar-header/index.d.ts +3 -0
  207. package/dist/components/right-sidebar-header/index.d.ts.map +1 -0
  208. package/dist/components/right-sidebar-header/index.js +5 -0
  209. package/dist/components/right-sidebar-header/index.js.map +1 -0
  210. package/dist/components/section-notice/SectionNotice.cjs.map +1 -1
  211. package/dist/components/section-notice/SectionNotice.d.ts +1 -1
  212. package/dist/components/section-notice/SectionNotice.d.ts.map +1 -1
  213. package/dist/components/section-notice/SectionNotice.js.map +1 -1
  214. package/dist/components/tag/Tag.cjs.map +1 -1
  215. package/dist/components/tag/Tag.d.ts +1 -1
  216. package/dist/components/tag/Tag.d.ts.map +1 -1
  217. package/dist/components/tag/Tag.js.map +1 -1
  218. package/dist/components/text-input/TextInput.cjs.map +1 -1
  219. package/dist/components/text-input/TextInput.d.ts +1 -1
  220. package/dist/components/text-input/TextInput.d.ts.map +1 -1
  221. package/dist/components/text-input/TextInput.js.map +1 -1
  222. package/dist/components/thread-footer/ThreadFooter.module.css +1 -1
  223. package/dist/components/thread-footer/ThreadFooter.module.scss.cjs +1 -1
  224. package/dist/components/thread-footer/ThreadFooter.module.scss.js +19 -19
  225. package/dist/components/toast/Toast.cjs +1 -1
  226. package/dist/components/toast/Toast.cjs.map +1 -1
  227. package/dist/components/toast/Toast.d.ts.map +1 -1
  228. package/dist/components/toast/Toast.js +31 -31
  229. package/dist/components/toast/Toast.js.map +1 -1
  230. package/dist/components/toast/Toast.module.css +1 -1
  231. package/dist/components/toast/Toast.module.scss.cjs +1 -1
  232. package/dist/components/toast/Toast.module.scss.js +14 -13
  233. package/dist/components/toast/Toast.module.scss.js.map +1 -1
  234. package/dist/components/tooltip/Tooltip.cjs.map +1 -1
  235. package/dist/components/tooltip/Tooltip.d.ts +1 -1
  236. package/dist/components/tooltip/Tooltip.d.ts.map +1 -1
  237. package/dist/components/tooltip/Tooltip.js.map +1 -1
  238. package/dist/components/tour-point/TourPoint.module.css +1 -1
  239. package/dist/components/tour-point/TourPoint.module.scss.cjs +1 -1
  240. package/dist/components/tour-point/TourPoint.module.scss.js +28 -28
  241. package/dist/illustrations/ai-copilot-intro.cjs +2 -0
  242. package/dist/illustrations/ai-copilot-intro.cjs.map +1 -0
  243. package/dist/illustrations/ai-copilot-intro.d.ts +4 -0
  244. package/dist/illustrations/ai-copilot-intro.js +5 -0
  245. package/dist/illustrations/ai-copilot-intro.js.map +1 -0
  246. package/dist/illustrations/ai-copilot-intro.svg.cjs +2 -0
  247. package/dist/illustrations/ai-copilot-intro.svg.cjs.map +1 -0
  248. package/dist/illustrations/ai-copilot-intro.svg.js +6 -0
  249. package/dist/illustrations/ai-copilot-intro.svg.js.map +1 -0
  250. package/dist/illustrations/alert-on-sidebar-bg.cjs +2 -0
  251. package/dist/illustrations/alert-on-sidebar-bg.cjs.map +1 -0
  252. package/dist/illustrations/alert-on-sidebar-bg.d.ts +4 -0
  253. package/dist/illustrations/alert-on-sidebar-bg.js +5 -0
  254. package/dist/illustrations/alert-on-sidebar-bg.js.map +1 -0
  255. package/dist/illustrations/alert-on-sidebar-bg.svg.cjs +2 -0
  256. package/dist/illustrations/alert-on-sidebar-bg.svg.cjs.map +1 -0
  257. package/dist/illustrations/alert-on-sidebar-bg.svg.js +6 -0
  258. package/dist/illustrations/alert-on-sidebar-bg.svg.js.map +1 -0
  259. package/dist/illustrations/alert.cjs +2 -0
  260. package/dist/illustrations/alert.cjs.map +1 -0
  261. package/dist/illustrations/alert.d.ts +4 -0
  262. package/dist/illustrations/alert.js +5 -0
  263. package/dist/illustrations/alert.js.map +1 -0
  264. package/dist/illustrations/alert.svg.cjs +2 -0
  265. package/dist/illustrations/alert.svg.cjs.map +1 -0
  266. package/dist/illustrations/alert.svg.js +6 -0
  267. package/dist/illustrations/alert.svg.js.map +1 -0
  268. package/dist/illustrations/archived-channel.cjs +2 -0
  269. package/dist/illustrations/archived-channel.cjs.map +1 -0
  270. package/dist/illustrations/archived-channel.d.ts +4 -0
  271. package/dist/illustrations/archived-channel.js +5 -0
  272. package/dist/illustrations/archived-channel.js.map +1 -0
  273. package/dist/illustrations/archived-channel.svg.cjs +2 -0
  274. package/dist/illustrations/archived-channel.svg.cjs.map +1 -0
  275. package/dist/illustrations/archived-channel.svg.js +6 -0
  276. package/dist/illustrations/archived-channel.svg.js.map +1 -0
  277. package/dist/illustrations/auto-translation.cjs +2 -0
  278. package/dist/illustrations/auto-translation.cjs.map +1 -0
  279. package/dist/illustrations/auto-translation.d.ts +4 -0
  280. package/dist/illustrations/auto-translation.js +5 -0
  281. package/dist/illustrations/auto-translation.js.map +1 -0
  282. package/dist/illustrations/auto-translation.svg.cjs +2 -0
  283. package/dist/illustrations/auto-translation.svg.cjs.map +1 -0
  284. package/dist/illustrations/auto-translation.svg.js +6 -0
  285. package/dist/illustrations/auto-translation.svg.js.map +1 -0
  286. package/dist/illustrations/banners.cjs +2 -0
  287. package/dist/illustrations/banners.cjs.map +1 -0
  288. package/dist/illustrations/banners.d.ts +4 -0
  289. package/dist/illustrations/banners.js +5 -0
  290. package/dist/illustrations/banners.js.map +1 -0
  291. package/dist/illustrations/banners.svg.cjs +2 -0
  292. package/dist/illustrations/banners.svg.cjs.map +1 -0
  293. package/dist/illustrations/banners.svg.js +6 -0
  294. package/dist/illustrations/banners.svg.js.map +1 -0
  295. package/dist/illustrations/billing-history.cjs +2 -0
  296. package/dist/illustrations/billing-history.cjs.map +1 -0
  297. package/dist/illustrations/billing-history.d.ts +4 -0
  298. package/dist/illustrations/billing-history.js +5 -0
  299. package/dist/illustrations/billing-history.js.map +1 -0
  300. package/dist/illustrations/billing-history.svg.cjs +2 -0
  301. package/dist/illustrations/billing-history.svg.cjs.map +1 -0
  302. package/dist/illustrations/billing-history.svg.js +6 -0
  303. package/dist/illustrations/billing-history.svg.js.map +1 -0
  304. package/dist/illustrations/blank-playbook.cjs +2 -0
  305. package/dist/illustrations/blank-playbook.cjs.map +1 -0
  306. package/dist/illustrations/blank-playbook.d.ts +4 -0
  307. package/dist/illustrations/blank-playbook.js +5 -0
  308. package/dist/illustrations/blank-playbook.js.map +1 -0
  309. package/dist/illustrations/blank-playbook.svg.cjs +2 -0
  310. package/dist/illustrations/blank-playbook.svg.cjs.map +1 -0
  311. package/dist/illustrations/blank-playbook.svg.js +6 -0
  312. package/dist/illustrations/blank-playbook.svg.js.map +1 -0
  313. package/dist/illustrations/bot-accounts.cjs +2 -0
  314. package/dist/illustrations/bot-accounts.cjs.map +1 -0
  315. package/dist/illustrations/bot-accounts.d.ts +4 -0
  316. package/dist/illustrations/bot-accounts.js +5 -0
  317. package/dist/illustrations/bot-accounts.js.map +1 -0
  318. package/dist/illustrations/bot-accounts.svg.cjs +2 -0
  319. package/dist/illustrations/bot-accounts.svg.cjs.map +1 -0
  320. package/dist/illustrations/bot-accounts.svg.js +6 -0
  321. package/dist/illustrations/bot-accounts.svg.js.map +1 -0
  322. package/dist/illustrations/browser-or-desktop.cjs +2 -0
  323. package/dist/illustrations/browser-or-desktop.cjs.map +1 -0
  324. package/dist/illustrations/browser-or-desktop.d.ts +4 -0
  325. package/dist/illustrations/browser-or-desktop.js +5 -0
  326. package/dist/illustrations/browser-or-desktop.js.map +1 -0
  327. package/dist/illustrations/browser-or-desktop.svg.cjs +2 -0
  328. package/dist/illustrations/browser-or-desktop.svg.cjs.map +1 -0
  329. package/dist/illustrations/browser-or-desktop.svg.js +6 -0
  330. package/dist/illustrations/browser-or-desktop.svg.js.map +1 -0
  331. package/dist/illustrations/bug-bash.cjs +2 -0
  332. package/dist/illustrations/bug-bash.cjs.map +1 -0
  333. package/dist/illustrations/bug-bash.d.ts +4 -0
  334. package/dist/illustrations/bug-bash.js +5 -0
  335. package/dist/illustrations/bug-bash.js.map +1 -0
  336. package/dist/illustrations/bug-bash.svg.cjs +2 -0
  337. package/dist/illustrations/bug-bash.svg.cjs.map +1 -0
  338. package/dist/illustrations/bug-bash.svg.js +6 -0
  339. package/dist/illustrations/bug-bash.svg.js.map +1 -0
  340. package/dist/illustrations/calls.cjs +2 -0
  341. package/dist/illustrations/calls.cjs.map +1 -0
  342. package/dist/illustrations/calls.d.ts +4 -0
  343. package/dist/illustrations/calls.js +5 -0
  344. package/dist/illustrations/calls.js.map +1 -0
  345. package/dist/illustrations/calls.svg.cjs +2 -0
  346. package/dist/illustrations/calls.svg.cjs.map +1 -0
  347. package/dist/illustrations/calls.svg.js +6 -0
  348. package/dist/illustrations/calls.svg.js.map +1 -0
  349. package/dist/illustrations/collaborate.cjs +2 -0
  350. package/dist/illustrations/collaborate.cjs.map +1 -0
  351. package/dist/illustrations/collaborate.d.ts +4 -0
  352. package/dist/illustrations/collaborate.js +5 -0
  353. package/dist/illustrations/collaborate.js.map +1 -0
  354. package/dist/illustrations/collaborate.svg.cjs +2 -0
  355. package/dist/illustrations/collaborate.svg.cjs.map +1 -0
  356. package/dist/illustrations/collaborate.svg.js +6 -0
  357. package/dist/illustrations/collaborate.svg.js.map +1 -0
  358. package/dist/illustrations/compliance-exports.cjs +2 -0
  359. package/dist/illustrations/compliance-exports.cjs.map +1 -0
  360. package/dist/illustrations/compliance-exports.d.ts +4 -0
  361. package/dist/illustrations/compliance-exports.js +5 -0
  362. package/dist/illustrations/compliance-exports.js.map +1 -0
  363. package/dist/illustrations/compliance-exports.svg.cjs +2 -0
  364. package/dist/illustrations/compliance-exports.svg.cjs.map +1 -0
  365. package/dist/illustrations/compliance-exports.svg.js +6 -0
  366. package/dist/illustrations/compliance-exports.svg.js.map +1 -0
  367. package/dist/illustrations/copilot-bot.cjs +2 -0
  368. package/dist/illustrations/copilot-bot.cjs.map +1 -0
  369. package/dist/illustrations/copilot-bot.d.ts +4 -0
  370. package/dist/illustrations/copilot-bot.js +5 -0
  371. package/dist/illustrations/copilot-bot.js.map +1 -0
  372. package/dist/illustrations/copilot-bot.svg.cjs +2 -0
  373. package/dist/illustrations/copilot-bot.svg.cjs.map +1 -0
  374. package/dist/illustrations/copilot-bot.svg.js +6 -0
  375. package/dist/illustrations/copilot-bot.svg.js.map +1 -0
  376. package/dist/illustrations/custom-branding.cjs +2 -0
  377. package/dist/illustrations/custom-branding.cjs.map +1 -0
  378. package/dist/illustrations/custom-branding.d.ts +4 -0
  379. package/dist/illustrations/custom-branding.js +5 -0
  380. package/dist/illustrations/custom-branding.js.map +1 -0
  381. package/dist/illustrations/custom-branding.svg.cjs +2 -0
  382. package/dist/illustrations/custom-branding.svg.cjs.map +1 -0
  383. package/dist/illustrations/custom-branding.svg.js +6 -0
  384. package/dist/illustrations/custom-branding.svg.js.map +1 -0
  385. package/dist/illustrations/custom-terms.cjs +2 -0
  386. package/dist/illustrations/custom-terms.cjs.map +1 -0
  387. package/dist/illustrations/custom-terms.d.ts +4 -0
  388. package/dist/illustrations/custom-terms.js +5 -0
  389. package/dist/illustrations/custom-terms.js.map +1 -0
  390. package/dist/illustrations/custom-terms.svg.cjs +2 -0
  391. package/dist/illustrations/custom-terms.svg.cjs.map +1 -0
  392. package/dist/illustrations/custom-terms.svg.js +6 -0
  393. package/dist/illustrations/custom-terms.svg.js.map +1 -0
  394. package/dist/illustrations/customer-onboarding.cjs +2 -0
  395. package/dist/illustrations/customer-onboarding.cjs.map +1 -0
  396. package/dist/illustrations/customer-onboarding.d.ts +4 -0
  397. package/dist/illustrations/customer-onboarding.js +5 -0
  398. package/dist/illustrations/customer-onboarding.js.map +1 -0
  399. package/dist/illustrations/customer-onboarding.svg.cjs +2 -0
  400. package/dist/illustrations/customer-onboarding.svg.cjs.map +1 -0
  401. package/dist/illustrations/customer-onboarding.svg.js +6 -0
  402. package/dist/illustrations/customer-onboarding.svg.js.map +1 -0
  403. package/dist/illustrations/data-retention.cjs +2 -0
  404. package/dist/illustrations/data-retention.cjs.map +1 -0
  405. package/dist/illustrations/data-retention.d.ts +4 -0
  406. package/dist/illustrations/data-retention.js +5 -0
  407. package/dist/illustrations/data-retention.js.map +1 -0
  408. package/dist/illustrations/data-retention.svg.cjs +2 -0
  409. package/dist/illustrations/data-retention.svg.cjs.map +1 -0
  410. package/dist/illustrations/data-retention.svg.js +6 -0
  411. package/dist/illustrations/data-retention.svg.js.map +1 -0
  412. package/dist/illustrations/drafts-empty.cjs +2 -0
  413. package/dist/illustrations/drafts-empty.cjs.map +1 -0
  414. package/dist/illustrations/drafts-empty.d.ts +4 -0
  415. package/dist/illustrations/drafts-empty.js +5 -0
  416. package/dist/illustrations/drafts-empty.js.map +1 -0
  417. package/dist/illustrations/drafts-empty.svg.cjs +2 -0
  418. package/dist/illustrations/drafts-empty.svg.cjs.map +1 -0
  419. package/dist/illustrations/drafts-empty.svg.js +6 -0
  420. package/dist/illustrations/drafts-empty.svg.js.map +1 -0
  421. package/dist/illustrations/employee-onboarding.cjs +2 -0
  422. package/dist/illustrations/employee-onboarding.cjs.map +1 -0
  423. package/dist/illustrations/employee-onboarding.d.ts +4 -0
  424. package/dist/illustrations/employee-onboarding.js +5 -0
  425. package/dist/illustrations/employee-onboarding.js.map +1 -0
  426. package/dist/illustrations/employee-onboarding.svg.cjs +2 -0
  427. package/dist/illustrations/employee-onboarding.svg.cjs.map +1 -0
  428. package/dist/illustrations/employee-onboarding.svg.js +6 -0
  429. package/dist/illustrations/employee-onboarding.svg.js.map +1 -0
  430. package/dist/illustrations/feature-lifecycle.cjs +2 -0
  431. package/dist/illustrations/feature-lifecycle.cjs.map +1 -0
  432. package/dist/illustrations/feature-lifecycle.d.ts +4 -0
  433. package/dist/illustrations/feature-lifecycle.js +5 -0
  434. package/dist/illustrations/feature-lifecycle.js.map +1 -0
  435. package/dist/illustrations/feature-lifecycle.svg.cjs +2 -0
  436. package/dist/illustrations/feature-lifecycle.svg.cjs.map +1 -0
  437. package/dist/illustrations/feature-lifecycle.svg.js +6 -0
  438. package/dist/illustrations/feature-lifecycle.svg.js.map +1 -0
  439. package/dist/illustrations/file-search-empty.cjs +2 -0
  440. package/dist/illustrations/file-search-empty.cjs.map +1 -0
  441. package/dist/illustrations/file-search-empty.d.ts +4 -0
  442. package/dist/illustrations/file-search-empty.js +5 -0
  443. package/dist/illustrations/file-search-empty.js.map +1 -0
  444. package/dist/illustrations/file-search-empty.svg.cjs +2 -0
  445. package/dist/illustrations/file-search-empty.svg.cjs.map +1 -0
  446. package/dist/illustrations/file-search-empty.svg.js +6 -0
  447. package/dist/illustrations/file-search-empty.svg.js.map +1 -0
  448. package/dist/illustrations/globe.cjs +2 -0
  449. package/dist/illustrations/globe.cjs.map +1 -0
  450. package/dist/illustrations/globe.d.ts +4 -0
  451. package/dist/illustrations/globe.js +5 -0
  452. package/dist/illustrations/globe.js.map +1 -0
  453. package/dist/illustrations/globe.svg.cjs +2 -0
  454. package/dist/illustrations/globe.svg.cjs.map +1 -0
  455. package/dist/illustrations/globe.svg.js +6 -0
  456. package/dist/illustrations/globe.svg.js.map +1 -0
  457. package/dist/illustrations/group.cjs +2 -0
  458. package/dist/illustrations/group.cjs.map +1 -0
  459. package/dist/illustrations/group.d.ts +4 -0
  460. package/dist/illustrations/group.js +5 -0
  461. package/dist/illustrations/group.js.map +1 -0
  462. package/dist/illustrations/group.svg.cjs +2 -0
  463. package/dist/illustrations/group.svg.cjs.map +1 -0
  464. package/dist/illustrations/group.svg.js +12 -0
  465. package/dist/illustrations/group.svg.js.map +1 -0
  466. package/dist/illustrations/groups.cjs +2 -0
  467. package/dist/illustrations/groups.cjs.map +1 -0
  468. package/dist/illustrations/groups.d.ts +4 -0
  469. package/dist/illustrations/groups.js +5 -0
  470. package/dist/illustrations/groups.js.map +1 -0
  471. package/dist/illustrations/groups.svg.cjs +2 -0
  472. package/dist/illustrations/groups.svg.cjs.map +1 -0
  473. package/dist/illustrations/groups.svg.js +12 -0
  474. package/dist/illustrations/groups.svg.js.map +1 -0
  475. package/dist/illustrations/incident-resolution.cjs +2 -0
  476. package/dist/illustrations/incident-resolution.cjs.map +1 -0
  477. package/dist/illustrations/incident-resolution.d.ts +4 -0
  478. package/dist/illustrations/incident-resolution.js +5 -0
  479. package/dist/illustrations/incident-resolution.js.map +1 -0
  480. package/dist/illustrations/incident-resolution.svg.cjs +2 -0
  481. package/dist/illustrations/incident-resolution.svg.cjs.map +1 -0
  482. package/dist/illustrations/incident-resolution.svg.js +6 -0
  483. package/dist/illustrations/incident-resolution.svg.js.map +1 -0
  484. package/dist/illustrations/incoming-webhook.cjs +2 -0
  485. package/dist/illustrations/incoming-webhook.cjs.map +1 -0
  486. package/dist/illustrations/incoming-webhook.d.ts +4 -0
  487. package/dist/illustrations/incoming-webhook.js +5 -0
  488. package/dist/illustrations/incoming-webhook.js.map +1 -0
  489. package/dist/illustrations/incoming-webhook.svg.cjs +2 -0
  490. package/dist/illustrations/incoming-webhook.svg.cjs.map +1 -0
  491. package/dist/illustrations/incoming-webhook.svg.js +6 -0
  492. package/dist/illustrations/incoming-webhook.svg.js.map +1 -0
  493. package/dist/illustrations/intune-mam.cjs +2 -0
  494. package/dist/illustrations/intune-mam.cjs.map +1 -0
  495. package/dist/illustrations/intune-mam.d.ts +4 -0
  496. package/dist/illustrations/intune-mam.js +5 -0
  497. package/dist/illustrations/intune-mam.js.map +1 -0
  498. package/dist/illustrations/intune-mam.svg.cjs +2 -0
  499. package/dist/illustrations/intune-mam.svg.cjs.map +1 -0
  500. package/dist/illustrations/intune-mam.svg.js +8 -0
  501. package/dist/illustrations/intune-mam.svg.js.map +1 -0
  502. package/dist/illustrations/learn-playbooks.cjs +2 -0
  503. package/dist/illustrations/learn-playbooks.cjs.map +1 -0
  504. package/dist/illustrations/learn-playbooks.d.ts +4 -0
  505. package/dist/illustrations/learn-playbooks.js +5 -0
  506. package/dist/illustrations/learn-playbooks.js.map +1 -0
  507. package/dist/illustrations/learn-playbooks.svg.cjs +2 -0
  508. package/dist/illustrations/learn-playbooks.svg.cjs.map +1 -0
  509. package/dist/illustrations/learn-playbooks.svg.js +6 -0
  510. package/dist/illustrations/learn-playbooks.svg.js.map +1 -0
  511. package/dist/illustrations/locked-messages.cjs +2 -0
  512. package/dist/illustrations/locked-messages.cjs.map +1 -0
  513. package/dist/illustrations/locked-messages.d.ts +4 -0
  514. package/dist/illustrations/locked-messages.js +5 -0
  515. package/dist/illustrations/locked-messages.js.map +1 -0
  516. package/dist/illustrations/locked-messages.svg.cjs +2 -0
  517. package/dist/illustrations/locked-messages.svg.cjs.map +1 -0
  518. package/dist/illustrations/locked-messages.svg.js +6 -0
  519. package/dist/illustrations/locked-messages.svg.js.map +1 -0
  520. package/dist/illustrations/mentions-empty.cjs +2 -0
  521. package/dist/illustrations/mentions-empty.cjs.map +1 -0
  522. package/dist/illustrations/mentions-empty.d.ts +4 -0
  523. package/dist/illustrations/mentions-empty.js +5 -0
  524. package/dist/illustrations/mentions-empty.js.map +1 -0
  525. package/dist/illustrations/mentions-empty.svg.cjs +2 -0
  526. package/dist/illustrations/mentions-empty.svg.cjs.map +1 -0
  527. package/dist/illustrations/mentions-empty.svg.js +6 -0
  528. package/dist/illustrations/mentions-empty.svg.js.map +1 -0
  529. package/dist/illustrations/message-not-viewable.cjs +2 -0
  530. package/dist/illustrations/message-not-viewable.cjs.map +1 -0
  531. package/dist/illustrations/message-not-viewable.d.ts +4 -0
  532. package/dist/illustrations/message-not-viewable.js +5 -0
  533. package/dist/illustrations/message-not-viewable.js.map +1 -0
  534. package/dist/illustrations/message-not-viewable.svg.cjs +2 -0
  535. package/dist/illustrations/message-not-viewable.svg.cjs.map +1 -0
  536. package/dist/illustrations/message-not-viewable.svg.js +6 -0
  537. package/dist/illustrations/message-not-viewable.svg.js.map +1 -0
  538. package/dist/illustrations/message-search-empty.cjs +2 -0
  539. package/dist/illustrations/message-search-empty.cjs.map +1 -0
  540. package/dist/illustrations/message-search-empty.d.ts +4 -0
  541. package/dist/illustrations/message-search-empty.js +5 -0
  542. package/dist/illustrations/message-search-empty.js.map +1 -0
  543. package/dist/illustrations/message-search-empty.svg.cjs +2 -0
  544. package/dist/illustrations/message-search-empty.svg.cjs.map +1 -0
  545. package/dist/illustrations/message-search-empty.svg.js +6 -0
  546. package/dist/illustrations/message-search-empty.svg.js.map +1 -0
  547. package/dist/illustrations/mfa-complete.cjs +2 -0
  548. package/dist/illustrations/mfa-complete.cjs.map +1 -0
  549. package/dist/illustrations/mfa-complete.d.ts +4 -0
  550. package/dist/illustrations/mfa-complete.js +5 -0
  551. package/dist/illustrations/mfa-complete.js.map +1 -0
  552. package/dist/illustrations/mfa-complete.svg.cjs +2 -0
  553. package/dist/illustrations/mfa-complete.svg.cjs.map +1 -0
  554. package/dist/illustrations/mfa-complete.svg.js +6 -0
  555. package/dist/illustrations/mfa-complete.svg.js.map +1 -0
  556. package/dist/illustrations/mfa.cjs +2 -0
  557. package/dist/illustrations/mfa.cjs.map +1 -0
  558. package/dist/illustrations/mfa.d.ts +4 -0
  559. package/dist/illustrations/mfa.js +5 -0
  560. package/dist/illustrations/mfa.js.map +1 -0
  561. package/dist/illustrations/mfa.svg.cjs +2 -0
  562. package/dist/illustrations/mfa.svg.cjs.map +1 -0
  563. package/dist/illustrations/mfa.svg.js +6 -0
  564. package/dist/illustrations/mfa.svg.js.map +1 -0
  565. package/dist/illustrations/mobile-protection.cjs +2 -0
  566. package/dist/illustrations/mobile-protection.cjs.map +1 -0
  567. package/dist/illustrations/mobile-protection.d.ts +4 -0
  568. package/dist/illustrations/mobile-protection.js +5 -0
  569. package/dist/illustrations/mobile-protection.js.map +1 -0
  570. package/dist/illustrations/mobile-protection.svg.cjs +2 -0
  571. package/dist/illustrations/mobile-protection.svg.cjs.map +1 -0
  572. package/dist/illustrations/mobile-protection.svg.js +6 -0
  573. package/dist/illustrations/mobile-protection.svg.js.map +1 -0
  574. package/dist/illustrations/mobile-security.cjs +2 -0
  575. package/dist/illustrations/mobile-security.cjs.map +1 -0
  576. package/dist/illustrations/mobile-security.d.ts +4 -0
  577. package/dist/illustrations/mobile-security.js +5 -0
  578. package/dist/illustrations/mobile-security.js.map +1 -0
  579. package/dist/illustrations/mobile-security.svg.cjs +2 -0
  580. package/dist/illustrations/mobile-security.svg.cjs.map +1 -0
  581. package/dist/illustrations/mobile-security.svg.js +6 -0
  582. package/dist/illustrations/mobile-security.svg.js.map +1 -0
  583. package/dist/illustrations/names.cjs +2 -0
  584. package/dist/illustrations/names.cjs.map +1 -0
  585. package/dist/illustrations/names.d.ts +3 -0
  586. package/dist/illustrations/names.d.ts.map +1 -0
  587. package/dist/illustrations/names.js +73 -0
  588. package/dist/illustrations/names.js.map +1 -0
  589. package/dist/illustrations/new-password.cjs +2 -0
  590. package/dist/illustrations/new-password.cjs.map +1 -0
  591. package/dist/illustrations/new-password.d.ts +4 -0
  592. package/dist/illustrations/new-password.js +5 -0
  593. package/dist/illustrations/new-password.js.map +1 -0
  594. package/dist/illustrations/new-password.svg.cjs +2 -0
  595. package/dist/illustrations/new-password.svg.cjs.map +1 -0
  596. package/dist/illustrations/new-password.svg.js +6 -0
  597. package/dist/illustrations/new-password.svg.js.map +1 -0
  598. package/dist/illustrations/no-unreads-on-sidebar-bg.cjs +2 -0
  599. package/dist/illustrations/no-unreads-on-sidebar-bg.cjs.map +1 -0
  600. package/dist/illustrations/no-unreads-on-sidebar-bg.d.ts +4 -0
  601. package/dist/illustrations/no-unreads-on-sidebar-bg.js +5 -0
  602. package/dist/illustrations/no-unreads-on-sidebar-bg.js.map +1 -0
  603. package/dist/illustrations/no-unreads-on-sidebar-bg.svg.cjs +2 -0
  604. package/dist/illustrations/no-unreads-on-sidebar-bg.svg.cjs.map +1 -0
  605. package/dist/illustrations/no-unreads-on-sidebar-bg.svg.js +6 -0
  606. package/dist/illustrations/no-unreads-on-sidebar-bg.svg.js.map +1 -0
  607. package/dist/illustrations/office.cjs +2 -0
  608. package/dist/illustrations/office.cjs.map +1 -0
  609. package/dist/illustrations/office.d.ts +4 -0
  610. package/dist/illustrations/office.js +5 -0
  611. package/dist/illustrations/office.js.map +1 -0
  612. package/dist/illustrations/office.svg.cjs +2 -0
  613. package/dist/illustrations/office.svg.cjs.map +1 -0
  614. package/dist/illustrations/office.svg.js +6 -0
  615. package/dist/illustrations/office.svg.js.map +1 -0
  616. package/dist/illustrations/outgoing-webhook.cjs +2 -0
  617. package/dist/illustrations/outgoing-webhook.cjs.map +1 -0
  618. package/dist/illustrations/outgoing-webhook.d.ts +4 -0
  619. package/dist/illustrations/outgoing-webhook.js +5 -0
  620. package/dist/illustrations/outgoing-webhook.js.map +1 -0
  621. package/dist/illustrations/outgoing-webhook.svg.cjs +2 -0
  622. package/dist/illustrations/outgoing-webhook.svg.cjs.map +1 -0
  623. package/dist/illustrations/outgoing-webhook.svg.js +6 -0
  624. package/dist/illustrations/outgoing-webhook.svg.js.map +1 -0
  625. package/dist/illustrations/pinned-empty.cjs +2 -0
  626. package/dist/illustrations/pinned-empty.cjs.map +1 -0
  627. package/dist/illustrations/pinned-empty.d.ts +4 -0
  628. package/dist/illustrations/pinned-empty.js +5 -0
  629. package/dist/illustrations/pinned-empty.js.map +1 -0
  630. package/dist/illustrations/pinned-empty.svg.cjs +2 -0
  631. package/dist/illustrations/pinned-empty.svg.cjs.map +1 -0
  632. package/dist/illustrations/pinned-empty.svg.js +6 -0
  633. package/dist/illustrations/pinned-empty.svg.js.map +1 -0
  634. package/dist/illustrations/playbooks-empty.cjs +2 -0
  635. package/dist/illustrations/playbooks-empty.cjs.map +1 -0
  636. package/dist/illustrations/playbooks-empty.d.ts +4 -0
  637. package/dist/illustrations/playbooks-empty.js +5 -0
  638. package/dist/illustrations/playbooks-empty.js.map +1 -0
  639. package/dist/illustrations/playbooks-empty.svg.cjs +2 -0
  640. package/dist/illustrations/playbooks-empty.svg.cjs.map +1 -0
  641. package/dist/illustrations/playbooks-empty.svg.js +6 -0
  642. package/dist/illustrations/playbooks-empty.svg.js.map +1 -0
  643. package/dist/illustrations/private-channel-intro.cjs +2 -0
  644. package/dist/illustrations/private-channel-intro.cjs.map +1 -0
  645. package/dist/illustrations/private-channel-intro.d.ts +4 -0
  646. package/dist/illustrations/private-channel-intro.js +5 -0
  647. package/dist/illustrations/private-channel-intro.js.map +1 -0
  648. package/dist/illustrations/private-channel-intro.svg.cjs +2 -0
  649. package/dist/illustrations/private-channel-intro.svg.cjs.map +1 -0
  650. package/dist/illustrations/private-channel-intro.svg.js +6 -0
  651. package/dist/illustrations/private-channel-intro.svg.js.map +1 -0
  652. package/dist/illustrations/product-release.cjs +2 -0
  653. package/dist/illustrations/product-release.cjs.map +1 -0
  654. package/dist/illustrations/product-release.d.ts +4 -0
  655. package/dist/illustrations/product-release.js +5 -0
  656. package/dist/illustrations/product-release.js.map +1 -0
  657. package/dist/illustrations/product-release.svg.cjs +2 -0
  658. package/dist/illustrations/product-release.svg.cjs.map +1 -0
  659. package/dist/illustrations/product-release.svg.js +6 -0
  660. package/dist/illustrations/product-release.svg.js.map +1 -0
  661. package/dist/illustrations/public-channel-intro.cjs +2 -0
  662. package/dist/illustrations/public-channel-intro.cjs.map +1 -0
  663. package/dist/illustrations/public-channel-intro.d.ts +4 -0
  664. package/dist/illustrations/public-channel-intro.js +5 -0
  665. package/dist/illustrations/public-channel-intro.js.map +1 -0
  666. package/dist/illustrations/public-channel-intro.svg.cjs +2 -0
  667. package/dist/illustrations/public-channel-intro.svg.cjs.map +1 -0
  668. package/dist/illustrations/public-channel-intro.svg.js +6 -0
  669. package/dist/illustrations/public-channel-intro.svg.js.map +1 -0
  670. package/dist/illustrations/rating-desktop.cjs +2 -0
  671. package/dist/illustrations/rating-desktop.cjs.map +1 -0
  672. package/dist/illustrations/rating-desktop.d.ts +4 -0
  673. package/dist/illustrations/rating-desktop.js +5 -0
  674. package/dist/illustrations/rating-desktop.js.map +1 -0
  675. package/dist/illustrations/rating-desktop.svg.cjs +2 -0
  676. package/dist/illustrations/rating-desktop.svg.cjs.map +1 -0
  677. package/dist/illustrations/rating-desktop.svg.js +6 -0
  678. package/dist/illustrations/rating-desktop.svg.js.map +1 -0
  679. package/dist/illustrations/rating.cjs +2 -0
  680. package/dist/illustrations/rating.cjs.map +1 -0
  681. package/dist/illustrations/rating.d.ts +4 -0
  682. package/dist/illustrations/rating.js +5 -0
  683. package/dist/illustrations/rating.js.map +1 -0
  684. package/dist/illustrations/rating.svg.cjs +2 -0
  685. package/dist/illustrations/rating.svg.cjs.map +1 -0
  686. package/dist/illustrations/rating.svg.js +6 -0
  687. package/dist/illustrations/rating.svg.js.map +1 -0
  688. package/dist/illustrations/read-only.cjs +2 -0
  689. package/dist/illustrations/read-only.cjs.map +1 -0
  690. package/dist/illustrations/read-only.d.ts +4 -0
  691. package/dist/illustrations/read-only.js +5 -0
  692. package/dist/illustrations/read-only.js.map +1 -0
  693. package/dist/illustrations/read-only.svg.cjs +2 -0
  694. package/dist/illustrations/read-only.svg.cjs.map +1 -0
  695. package/dist/illustrations/read-only.svg.js +6 -0
  696. package/dist/illustrations/read-only.svg.js.map +1 -0
  697. package/dist/illustrations/reset-password.cjs +2 -0
  698. package/dist/illustrations/reset-password.cjs.map +1 -0
  699. package/dist/illustrations/reset-password.d.ts +4 -0
  700. package/dist/illustrations/reset-password.js +5 -0
  701. package/dist/illustrations/reset-password.js.map +1 -0
  702. package/dist/illustrations/reset-password.svg.cjs +2 -0
  703. package/dist/illustrations/reset-password.svg.cjs.map +1 -0
  704. package/dist/illustrations/reset-password.svg.js +8 -0
  705. package/dist/illustrations/reset-password.svg.js.map +1 -0
  706. package/dist/illustrations/saved-empty.cjs +2 -0
  707. package/dist/illustrations/saved-empty.cjs.map +1 -0
  708. package/dist/illustrations/saved-empty.d.ts +4 -0
  709. package/dist/illustrations/saved-empty.js +5 -0
  710. package/dist/illustrations/saved-empty.js.map +1 -0
  711. package/dist/illustrations/saved-empty.svg.cjs +2 -0
  712. package/dist/illustrations/saved-empty.svg.cjs.map +1 -0
  713. package/dist/illustrations/saved-empty.svg.js +6 -0
  714. package/dist/illustrations/saved-empty.svg.js.map +1 -0
  715. package/dist/illustrations/scheduled-empty.cjs +2 -0
  716. package/dist/illustrations/scheduled-empty.cjs.map +1 -0
  717. package/dist/illustrations/scheduled-empty.d.ts +4 -0
  718. package/dist/illustrations/scheduled-empty.js +5 -0
  719. package/dist/illustrations/scheduled-empty.js.map +1 -0
  720. package/dist/illustrations/scheduled-empty.svg.cjs +2 -0
  721. package/dist/illustrations/scheduled-empty.svg.cjs.map +1 -0
  722. package/dist/illustrations/scheduled-empty.svg.js +6 -0
  723. package/dist/illustrations/scheduled-empty.svg.js.map +1 -0
  724. package/dist/illustrations/search.cjs +2 -0
  725. package/dist/illustrations/search.cjs.map +1 -0
  726. package/dist/illustrations/search.d.ts +4 -0
  727. package/dist/illustrations/search.js +5 -0
  728. package/dist/illustrations/search.js.map +1 -0
  729. package/dist/illustrations/search.svg.cjs +2 -0
  730. package/dist/illustrations/search.svg.cjs.map +1 -0
  731. package/dist/illustrations/search.svg.js +6 -0
  732. package/dist/illustrations/search.svg.js.map +1 -0
  733. package/dist/illustrations/server.cjs +2 -0
  734. package/dist/illustrations/server.cjs.map +1 -0
  735. package/dist/illustrations/server.d.ts +4 -0
  736. package/dist/illustrations/server.js +5 -0
  737. package/dist/illustrations/server.js.map +1 -0
  738. package/dist/illustrations/server.svg.cjs +2 -0
  739. package/dist/illustrations/server.svg.cjs.map +1 -0
  740. package/dist/illustrations/server.svg.js +6 -0
  741. package/dist/illustrations/server.svg.js.map +1 -0
  742. package/dist/illustrations/setup-system.cjs +2 -0
  743. package/dist/illustrations/setup-system.cjs.map +1 -0
  744. package/dist/illustrations/setup-system.d.ts +4 -0
  745. package/dist/illustrations/setup-system.js +5 -0
  746. package/dist/illustrations/setup-system.js.map +1 -0
  747. package/dist/illustrations/setup-system.svg.cjs +2 -0
  748. package/dist/illustrations/setup-system.svg.cjs.map +1 -0
  749. package/dist/illustrations/setup-system.svg.js +6 -0
  750. package/dist/illustrations/setup-system.svg.js.map +1 -0
  751. package/dist/illustrations/site-error.cjs +2 -0
  752. package/dist/illustrations/site-error.cjs.map +1 -0
  753. package/dist/illustrations/site-error.d.ts +4 -0
  754. package/dist/illustrations/site-error.js +5 -0
  755. package/dist/illustrations/site-error.js.map +1 -0
  756. package/dist/illustrations/site-error.svg.cjs +2 -0
  757. package/dist/illustrations/site-error.svg.cjs.map +1 -0
  758. package/dist/illustrations/site-error.svg.js +6 -0
  759. package/dist/illustrations/site-error.svg.js.map +1 -0
  760. package/dist/illustrations/slash-commands.cjs +2 -0
  761. package/dist/illustrations/slash-commands.cjs.map +1 -0
  762. package/dist/illustrations/slash-commands.d.ts +4 -0
  763. package/dist/illustrations/slash-commands.js +5 -0
  764. package/dist/illustrations/slash-commands.js.map +1 -0
  765. package/dist/illustrations/slash-commands.svg.cjs +2 -0
  766. package/dist/illustrations/slash-commands.svg.cjs.map +1 -0
  767. package/dist/illustrations/slash-commands.svg.js +6 -0
  768. package/dist/illustrations/slash-commands.svg.js.map +1 -0
  769. package/dist/illustrations/success.cjs +2 -0
  770. package/dist/illustrations/success.cjs.map +1 -0
  771. package/dist/illustrations/success.d.ts +4 -0
  772. package/dist/illustrations/success.js +5 -0
  773. package/dist/illustrations/success.js.map +1 -0
  774. package/dist/illustrations/success.svg.cjs +2 -0
  775. package/dist/illustrations/success.svg.cjs.map +1 -0
  776. package/dist/illustrations/success.svg.js +6 -0
  777. package/dist/illustrations/success.svg.js.map +1 -0
  778. package/dist/illustrations/system-admins.cjs +2 -0
  779. package/dist/illustrations/system-admins.cjs.map +1 -0
  780. package/dist/illustrations/system-admins.d.ts +4 -0
  781. package/dist/illustrations/system-admins.js +5 -0
  782. package/dist/illustrations/system-admins.js.map +1 -0
  783. package/dist/illustrations/system-admins.svg.cjs +2 -0
  784. package/dist/illustrations/system-admins.svg.cjs.map +1 -0
  785. package/dist/illustrations/system-admins.svg.js +14 -0
  786. package/dist/illustrations/system-admins.svg.js.map +1 -0
  787. package/dist/illustrations/threads-empty.cjs +2 -0
  788. package/dist/illustrations/threads-empty.cjs.map +1 -0
  789. package/dist/illustrations/threads-empty.d.ts +4 -0
  790. package/dist/illustrations/threads-empty.js +5 -0
  791. package/dist/illustrations/threads-empty.js.map +1 -0
  792. package/dist/illustrations/threads-empty.svg.cjs +2 -0
  793. package/dist/illustrations/threads-empty.svg.cjs.map +1 -0
  794. package/dist/illustrations/threads-empty.svg.js +6 -0
  795. package/dist/illustrations/threads-empty.svg.js.map +1 -0
  796. package/dist/illustrations/timer.cjs +2 -0
  797. package/dist/illustrations/timer.cjs.map +1 -0
  798. package/dist/illustrations/timer.d.ts +4 -0
  799. package/dist/illustrations/timer.js +5 -0
  800. package/dist/illustrations/timer.js.map +1 -0
  801. package/dist/illustrations/timer.svg.cjs +2 -0
  802. package/dist/illustrations/timer.svg.cjs.map +1 -0
  803. package/dist/illustrations/timer.svg.js +6 -0
  804. package/dist/illustrations/timer.svg.js.map +1 -0
  805. package/dist/illustrations/tls-certificate.cjs +2 -0
  806. package/dist/illustrations/tls-certificate.cjs.map +1 -0
  807. package/dist/illustrations/tls-certificate.d.ts +4 -0
  808. package/dist/illustrations/tls-certificate.js +5 -0
  809. package/dist/illustrations/tls-certificate.js.map +1 -0
  810. package/dist/illustrations/tls-certificate.svg.cjs +2 -0
  811. package/dist/illustrations/tls-certificate.svg.cjs.map +1 -0
  812. package/dist/illustrations/tls-certificate.svg.js +6 -0
  813. package/dist/illustrations/tls-certificate.svg.js.map +1 -0
  814. package/dist/illustrations/tools.cjs +2 -0
  815. package/dist/illustrations/tools.cjs.map +1 -0
  816. package/dist/illustrations/tools.d.ts +4 -0
  817. package/dist/illustrations/tools.js +5 -0
  818. package/dist/illustrations/tools.js.map +1 -0
  819. package/dist/illustrations/tools.svg.cjs +2 -0
  820. package/dist/illustrations/tools.svg.cjs.map +1 -0
  821. package/dist/illustrations/tools.svg.js +6 -0
  822. package/dist/illustrations/tools.svg.js.map +1 -0
  823. package/dist/illustrations/town-square-channel-intro.cjs +2 -0
  824. package/dist/illustrations/town-square-channel-intro.cjs.map +1 -0
  825. package/dist/illustrations/town-square-channel-intro.d.ts +4 -0
  826. package/dist/illustrations/town-square-channel-intro.js +5 -0
  827. package/dist/illustrations/town-square-channel-intro.js.map +1 -0
  828. package/dist/illustrations/town-square-channel-intro.svg.cjs +2 -0
  829. package/dist/illustrations/town-square-channel-intro.svg.cjs.map +1 -0
  830. package/dist/illustrations/town-square-channel-intro.svg.js +6 -0
  831. package/dist/illustrations/town-square-channel-intro.svg.js.map +1 -0
  832. package/dist/illustrations/upload-license.cjs +2 -0
  833. package/dist/illustrations/upload-license.cjs.map +1 -0
  834. package/dist/illustrations/upload-license.d.ts +4 -0
  835. package/dist/illustrations/upload-license.js +5 -0
  836. package/dist/illustrations/upload-license.js.map +1 -0
  837. package/dist/illustrations/upload-license.svg.cjs +2 -0
  838. package/dist/illustrations/upload-license.svg.cjs.map +1 -0
  839. package/dist/illustrations/upload-license.svg.js +6 -0
  840. package/dist/illustrations/upload-license.svg.js.map +1 -0
  841. package/dist/illustrations/verify-email.cjs +2 -0
  842. package/dist/illustrations/verify-email.cjs.map +1 -0
  843. package/dist/illustrations/verify-email.d.ts +4 -0
  844. package/dist/illustrations/verify-email.js +5 -0
  845. package/dist/illustrations/verify-email.js.map +1 -0
  846. package/dist/illustrations/verify-email.svg.cjs +2 -0
  847. package/dist/illustrations/verify-email.svg.cjs.map +1 -0
  848. package/dist/illustrations/verify-email.svg.js +8 -0
  849. package/dist/illustrations/verify-email.svg.js.map +1 -0
  850. package/dist/index.cjs +1 -1
  851. package/dist/index.css +22 -18
  852. package/dist/index.d.ts +9 -9
  853. package/dist/index.d.ts.map +1 -1
  854. package/dist/index.js +186 -183
  855. package/dist/index.js.map +1 -1
  856. package/package.json +239 -21
  857. package/dist/components/app-bar-item/AppBarItem.cjs +0 -2
  858. package/dist/components/app-bar-item/AppBarItem.cjs.map +0 -1
  859. package/dist/components/app-bar-item/AppBarItem.d.ts +0 -25
  860. package/dist/components/app-bar-item/AppBarItem.d.ts.map +0 -1
  861. package/dist/components/app-bar-item/AppBarItem.js +0 -49
  862. package/dist/components/app-bar-item/AppBarItem.js.map +0 -1
  863. package/dist/components/app-bar-item/AppBarItem.module.css +0 -1
  864. package/dist/components/app-bar-item/AppBarItem.module.scss.cjs +0 -2
  865. package/dist/components/app-bar-item/AppBarItem.module.scss.cjs.map +0 -1
  866. package/dist/components/app-bar-item/AppBarItem.module.scss.js +0 -11
  867. package/dist/components/app-bar-item/AppBarItem.module.scss.js.map +0 -1
  868. package/dist/components/app-bar-item/index.d.ts +0 -3
  869. package/dist/components/app-bar-item/index.d.ts.map +0 -1
  870. package/dist/components/app-bar-item/index.js +0 -5
  871. package/dist/components/channel-header/ChannelHeader.cjs +0 -2
  872. package/dist/components/channel-header/ChannelHeader.cjs.map +0 -1
  873. package/dist/components/channel-header/ChannelHeader.d.ts +0 -37
  874. package/dist/components/channel-header/ChannelHeader.d.ts.map +0 -1
  875. package/dist/components/channel-header/ChannelHeader.js +0 -174
  876. package/dist/components/channel-header/ChannelHeader.js.map +0 -1
  877. package/dist/components/channel-header/ChannelHeader.module.css +0 -1
  878. package/dist/components/channel-header/ChannelHeader.module.scss.cjs +0 -2
  879. package/dist/components/channel-header/ChannelHeader.module.scss.cjs.map +0 -1
  880. package/dist/components/channel-header/ChannelHeader.module.scss.js +0 -20
  881. package/dist/components/channel-header/ChannelHeader.module.scss.js.map +0 -1
  882. package/dist/components/channel-header/index.d.ts +0 -3
  883. package/dist/components/channel-header/index.d.ts.map +0 -1
  884. package/dist/components/channel-header/index.js +0 -5
  885. package/dist/components/message/Message.cjs +0 -2
  886. package/dist/components/message/Message.cjs.map +0 -1
  887. package/dist/components/message/Message.d.ts +0 -34
  888. package/dist/components/message/Message.d.ts.map +0 -1
  889. package/dist/components/message/Message.js +0 -54
  890. package/dist/components/message/Message.js.map +0 -1
  891. package/dist/components/message/Message.module.css +0 -1
  892. package/dist/components/message/Message.module.scss.cjs +0 -2
  893. package/dist/components/message/Message.module.scss.cjs.map +0 -1
  894. package/dist/components/message/Message.module.scss.js +0 -26
  895. package/dist/components/message/Message.module.scss.js.map +0 -1
  896. package/dist/components/message/index.cjs +0 -2
  897. package/dist/components/message/index.d.ts +0 -4
  898. package/dist/components/message/index.d.ts.map +0 -1
  899. package/dist/components/message/index.js +0 -7
  900. package/dist/components/message-input/MessageInput.cjs +0 -2
  901. package/dist/components/message-input/MessageInput.cjs.map +0 -1
  902. package/dist/components/message-input/MessageInput.d.ts +0 -15
  903. package/dist/components/message-input/MessageInput.d.ts.map +0 -1
  904. package/dist/components/message-input/MessageInput.js +0 -407
  905. package/dist/components/message-input/MessageInput.js.map +0 -1
  906. package/dist/components/message-input/MessageInput.module.css +0 -1
  907. package/dist/components/message-input/MessageInput.module.scss.cjs +0 -2
  908. package/dist/components/message-input/MessageInput.module.scss.cjs.map +0 -1
  909. package/dist/components/message-input/MessageInput.module.scss.js +0 -37
  910. package/dist/components/message-input/MessageInput.module.scss.js.map +0 -1
  911. package/dist/components/message-input/index.d.ts +0 -3
  912. package/dist/components/message-input/index.js +0 -5
  913. package/dist/components/message-reactions/MessageReactions.cjs +0 -2
  914. package/dist/components/message-reactions/MessageReactions.cjs.map +0 -1
  915. package/dist/components/message-reactions/MessageReactions.d.ts.map +0 -1
  916. package/dist/components/message-reactions/MessageReactions.js +0 -85
  917. package/dist/components/message-reactions/MessageReactions.js.map +0 -1
  918. package/dist/components/message-reactions/MessageReactions.module.css +0 -1
  919. package/dist/components/message-reactions/MessageReactions.module.scss.cjs +0 -2
  920. package/dist/components/message-reactions/MessageReactions.module.scss.cjs.map +0 -1
  921. package/dist/components/message-reactions/MessageReactions.module.scss.js +0 -18
  922. package/dist/components/message-reactions/MessageReactions.module.scss.js.map +0 -1
  923. package/dist/components/message-reactions/index.d.ts +0 -3
  924. package/dist/components/message-reactions/index.d.ts.map +0 -1
  925. package/dist/components/message-reactions/index.js +0 -5
  926. package/dist/components/reaction-pill/ReactionPill.cjs +0 -2
  927. package/dist/components/reaction-pill/ReactionPill.cjs.map +0 -1
  928. package/dist/components/reaction-pill/ReactionPill.d.ts +0 -24
  929. package/dist/components/reaction-pill/ReactionPill.d.ts.map +0 -1
  930. package/dist/components/reaction-pill/ReactionPill.js +0 -51
  931. package/dist/components/reaction-pill/ReactionPill.js.map +0 -1
  932. package/dist/components/reaction-pill/ReactionPill.module.css +0 -1
  933. package/dist/components/reaction-pill/ReactionPill.module.scss.cjs +0 -2
  934. package/dist/components/reaction-pill/ReactionPill.module.scss.cjs.map +0 -1
  935. package/dist/components/reaction-pill/ReactionPill.module.scss.js +0 -17
  936. package/dist/components/reaction-pill/ReactionPill.module.scss.js.map +0 -1
  937. package/dist/components/reaction-pill/index.d.ts +0 -3
  938. package/dist/components/reaction-pill/index.js +0 -5
  939. package/dist/components/right-sidebar/RightSidebar.cjs +0 -2
  940. package/dist/components/right-sidebar/RightSidebar.cjs.map +0 -1
  941. package/dist/components/right-sidebar/RightSidebar.d.ts +0 -23
  942. package/dist/components/right-sidebar/RightSidebar.d.ts.map +0 -1
  943. package/dist/components/right-sidebar/RightSidebar.js +0 -29
  944. package/dist/components/right-sidebar/RightSidebar.js.map +0 -1
  945. package/dist/components/right-sidebar/RightSidebar.module.css +0 -1
  946. package/dist/components/right-sidebar/RightSidebar.module.scss.cjs +0 -2
  947. package/dist/components/right-sidebar/RightSidebar.module.scss.cjs.map +0 -1
  948. package/dist/components/right-sidebar/RightSidebar.module.scss.js +0 -12
  949. package/dist/components/right-sidebar/RightSidebar.module.scss.js.map +0 -1
  950. package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.cjs +0 -2
  951. package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.cjs.map +0 -1
  952. package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.d.ts.map +0 -1
  953. package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.js.map +0 -1
  954. package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.module.css +0 -1
  955. package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.module.scss.cjs +0 -2
  956. package/dist/components/right-sidebar/RightSidebarHeader/index.d.ts +0 -3
  957. package/dist/components/right-sidebar/RightSidebarHeader/index.d.ts.map +0 -1
  958. package/dist/components/right-sidebar/index.cjs +0 -2
  959. package/dist/components/right-sidebar/index.d.ts +0 -5
  960. package/dist/components/right-sidebar/index.d.ts.map +0 -1
  961. package/dist/components/right-sidebar/index.js +0 -7
  962. package/dist/components/right-sidebar/index.js.map +0 -1
  963. /package/dist/components/{app-bar-item → card-button}/index.cjs.map +0 -0
  964. /package/dist/components/{message → card-button}/index.js.map +0 -0
  965. /package/dist/components/{channel-header → emoji-button}/index.cjs.map +0 -0
  966. /package/dist/components/{app-bar-item → emoji-button}/index.js.map +0 -0
  967. /package/dist/components/{message-input → emoji-popover}/index.cjs.map +0 -0
  968. /package/dist/components/{channel-header → emoji-popover}/index.js.map +0 -0
  969. /package/dist/components/{message-reactions → menu-group-heading}/index.cjs.map +0 -0
  970. /package/dist/components/{message-input → menu-group-heading}/index.js.map +0 -0
  971. /package/dist/components/{message → modal-footer}/index.cjs.map +0 -0
  972. /package/dist/components/{message-reactions → modal-footer}/index.js.map +0 -0
  973. /package/dist/components/{reaction-pill → modal-header}/index.cjs.map +0 -0
  974. /package/dist/components/{reaction-pill → modal-header}/index.js.map +0 -0
  975. /package/dist/components/{right-sidebar → reaction-button}/index.cjs.map +0 -0
  976. /package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.module.scss.cjs.map +0 -0
  977. /package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.module.scss.js.map +0 -0
@@ -0,0 +1,11 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export interface MenuGroupHeadingProps extends HTMLAttributes<HTMLDivElement> {
3
+ /** The section label text. Rendered in all-caps. */
4
+ label: string;
5
+ }
6
+ /**
7
+ * Menu Group Heading is an optional all-caps label that titles a grouped
8
+ * section of Menu Items inside a dropdown or context menu.
9
+ */
10
+ export default function MenuGroupHeading({ label, className, ...rest }: MenuGroupHeadingProps): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=MenuGroupHeading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuGroupHeading.d.ts","sourceRoot":"","sources":["../../../src/components/menu-group-heading/MenuGroupHeading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC3E,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,KAAK,EACL,SAAc,EACd,GAAG,IAAI,EACR,EAAE,qBAAqB,2CAWvB"}
@@ -0,0 +1,20 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import n from "./MenuGroupHeading.module.scss.js";
3
+ function s({
4
+ label: r,
5
+ className: a = "",
6
+ ...o
7
+ }) {
8
+ return /* @__PURE__ */ e(
9
+ "div",
10
+ {
11
+ className: [n["menu-group-heading"], a].filter(Boolean).join(" "),
12
+ ...o,
13
+ children: /* @__PURE__ */ e("span", { className: n["menu-group-heading__label"], children: r })
14
+ }
15
+ );
16
+ }
17
+ export {
18
+ s as default
19
+ };
20
+ //# sourceMappingURL=MenuGroupHeading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuGroupHeading.js","sources":["../../../src/components/menu-group-heading/MenuGroupHeading.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport styles from './MenuGroupHeading.module.scss';\n\nexport interface MenuGroupHeadingProps extends HTMLAttributes<HTMLDivElement> {\n /** The section label text. Rendered in all-caps. */\n label: string;\n}\n\n/**\n * Menu Group Heading is an optional all-caps label that titles a grouped\n * section of Menu Items inside a dropdown or context menu.\n */\nexport default function MenuGroupHeading({\n label,\n className = '',\n ...rest\n}: MenuGroupHeadingProps) {\n return (\n <div\n className={[styles['menu-group-heading'], className]\n .filter(Boolean)\n .join(' ')}\n {...rest}\n >\n <span className={styles['menu-group-heading__label']}>{label}</span>\n </div>\n );\n}\n"],"names":["MenuGroupHeading","label","className","rest","jsx","styles"],"mappings":";;AAYA,SAAwBA,EAAiB;AAAA,EACvC,OAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,GAAGC;AACL,GAA0B;AACxB,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,CAACC,EAAO,oBAAoB,GAAGH,CAAS,EAChD,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,MACV,GAAGC;AAAA,MAEJ,4BAAC,QAAA,EAAK,WAAWE,EAAO,2BAA2B,GAAI,UAAAJ,EAAA,CAAM;AAAA,IAAA;AAAA,EAAA;AAGnE;"}
@@ -0,0 +1 @@
1
+ ._menu-group-heading_ca9me_2{display:flex;align-items:center;padding:var(--spacing-xxs) var(--spacing-xl);background-color:var(--center-channel-bg);width:100%}._menu-group-heading__label_ca9me_9{font-size:var(--font-size-75);font-weight:var(--font-weight-semibold);line-height:var(--line-height-75);letter-spacing:.05em;text-transform:uppercase;color:rgba(var(--center-channel-color-rgb),.72);width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./MenuGroupHeading.module.css');const e={"menu-group-heading":"_menu-group-heading_ca9me_2","menu-group-heading__label":"_menu-group-heading__label_ca9me_9"};exports.default=e;
2
+ //# sourceMappingURL=MenuGroupHeading.module.scss.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuGroupHeading.module.scss.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import './MenuGroupHeading.module.css';const e = {
2
+ "menu-group-heading": "_menu-group-heading_ca9me_2",
3
+ "menu-group-heading__label": "_menu-group-heading__label_ca9me_9"
4
+ };
5
+ export {
6
+ e as default
7
+ };
8
+ //# sourceMappingURL=MenuGroupHeading.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuGroupHeading.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MessageReactions.cjs");exports.MessageReactions=e.default;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MenuGroupHeading.cjs");exports.MenuGroupHeading=e.default;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,3 @@
1
+ export { default as MenuGroupHeading } from './MenuGroupHeading';
2
+ export type { MenuGroupHeadingProps } from './MenuGroupHeading';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/menu-group-heading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { default as o } from "./MenuGroupHeading.js";
2
+ export {
3
+ o as MenuGroupHeading
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.cjs","sources":["../../../src/components/menu-item/MenuItem.tsx"],"sourcesContent":["import type { ButtonHTMLAttributes, ReactNode } from 'react';\nimport EmoticonHappyOutlineIcon from '@mattermost/compass-icons/components/emoticon-happy-outline';\nimport CheckIcon from '@mattermost/compass-icons/components/check';\nimport Icon from '@/components/icon/Icon';\nimport Tag from '@/components/tag/Tag';\nimport MentionBadge from '@/components/mention-badge/MentionBadge';\nimport styles from './MenuItem.module.scss';\n\nexport interface MenuItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Primary label text. */\n label: string;\n /** Optional secondary label. */\n secondaryLabel?: ReactNode;\n /** Where the secondary label appears. Default: 'below'. */\n secondaryLabelPosition?: 'inline' | 'below';\n /** Custom content for the leading slot. When omitted, shows placeholder icon. */\n leadingVisual?: ReactNode;\n /** Show the leading visual slot. Default: true. */\n leadingElement?: boolean;\n /** Custom content for the trailing slot. When omitted with trailingElement=true, shows check icon. */\n trailingVisual?: ReactNode;\n /** Show the trailing visual slot. Default: false. */\n trailingElement?: boolean;\n /** Emoji character for custom status, shown inline after the label. */\n customStatusEmoji?: string;\n /** Show \"NEW\" label tag. */\n tag?: boolean;\n /** Inline mention count badge. */\n mentionCount?: number;\n /** Destructive (danger) styling. */\n destructive?: boolean;\n /** Highlight row (e.g. submenu parent while child menu is open). */\n active?: boolean;\n}\n\n/**\n * Menu Items are the rows inside a Menu — the smallest selectable unit in any dropdown,\n * kebab, or context menu. One label, optional supporting visuals, and a clear hit target.\n */\nexport default function MenuItem({\n label,\n secondaryLabel,\n secondaryLabelPosition = 'below',\n leadingVisual,\n leadingElement = true,\n trailingVisual,\n trailingElement = false,\n customStatusEmoji,\n tag = false,\n mentionCount,\n destructive = false,\n active = false,\n className = '',\n disabled,\n type = 'button',\n ...rest\n}: MenuItemProps) {\n const rootClass = [\n styles['menu-item'],\n destructive ? styles['menu-item--destructive'] : '',\n active ? styles['menu-item--active'] : '',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <button className={rootClass} type={type} disabled={disabled} {...rest}>\n <div className={styles['menu-item__content']}>\n {leadingElement && (\n <div className={styles['menu-item__left']}>\n <span className={styles['menu-item__leading-visual']} aria-hidden>\n {leadingVisual ?? (\n <Icon glyph={<EmoticonHappyOutlineIcon />} size=\"16\" />\n )}\n </span>\n </div>\n )}\n <div className={styles['menu-item__middle']}>\n <div className={styles['menu-item__top-row']}>\n <span className={styles['menu-item__label']}>{label}</span>\n {secondaryLabel && secondaryLabelPosition === 'inline' && (\n <span className={styles['menu-item__secondary-label-inline']}>\n {secondaryLabel}\n </span>\n )}\n {customStatusEmoji && (\n <span className={styles['menu-item__custom-status']} aria-hidden>\n {customStatusEmoji}\n </span>\n )}\n {tag && <Tag label=\"NEW\" />}\n {mentionCount != null && mentionCount > 0 && (\n <MentionBadge\n count={mentionCount}\n location=\"menu-item\"\n size=\"small\"\n />\n )}\n </div>\n {secondaryLabel && secondaryLabelPosition === 'below' && (\n <div className={styles['menu-item__bottom-row']}>\n <span className={styles['menu-item__secondary-label-below']}>\n {secondaryLabel}\n </span>\n </div>\n )}\n </div>\n {trailingElement && (\n <div className={styles['menu-item__right']}>\n <span\n className={[\n styles['menu-item__trailing-visual'],\n !trailingVisual\n ? styles['menu-item__trailing-visual--check']\n : '',\n ]\n .filter(Boolean)\n .join(' ')}\n >\n {trailingVisual ?? <Icon glyph={<CheckIcon />} size=\"16\" />}\n </span>\n </div>\n )}\n </div>\n </button>\n );\n}\n"],"names":["MenuItem","label","secondaryLabel","secondaryLabelPosition","leadingVisual","leadingElement","trailingVisual","trailingElement","customStatusEmoji","tag","mentionCount","destructive","active","className","disabled","type","rest","rootClass","styles","jsx","jsxs","Icon","EmoticonHappyOutlineIcon","Tag","MentionBadge","CheckIcon"],"mappings":"kaAuCA,SAAwBA,EAAS,CAC/B,MAAAC,EACA,eAAAC,EACA,uBAAAC,EAAyB,QACzB,cAAAC,EACA,eAAAC,EAAiB,GACjB,eAAAC,EACA,gBAAAC,EAAkB,GAClB,kBAAAC,EACA,IAAAC,EAAM,GACN,aAAAC,EACA,YAAAC,EAAc,GACd,OAAAC,EAAS,GACT,UAAAC,EAAY,GACZ,SAAAC,EACA,KAAAC,EAAO,SACP,GAAGC,CACL,EAAkB,CAChB,MAAMC,EAAY,CAChBC,EAAAA,QAAO,WAAW,EAClBP,EAAcO,EAAAA,QAAO,wBAAwB,EAAI,GACjDN,EAASM,EAAAA,QAAO,mBAAmB,EAAI,GACvCL,CAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG,EAEX,OACEM,EAAAA,IAAC,SAAA,CAAO,UAAWF,EAAW,KAAAF,EAAY,SAAAD,EAAqB,GAAGE,EAChE,SAAAI,EAAAA,KAAC,MAAA,CAAI,UAAWF,EAAAA,QAAO,oBAAoB,EACxC,SAAA,CAAAb,GACCc,EAAAA,IAAC,MAAA,CAAI,UAAWD,EAAAA,QAAO,iBAAiB,EACtC,SAAAC,EAAAA,IAAC,OAAA,CAAK,UAAWD,EAAAA,QAAO,2BAA2B,EAAG,cAAW,GAC9D,SAAAd,GACCe,EAAAA,IAACE,EAAAA,QAAA,CAAK,MAAOF,EAAAA,IAACG,IAAyB,EAAI,KAAK,IAAA,CAAK,CAAA,CAEzD,CAAA,CACF,EAEFF,EAAAA,KAAC,MAAA,CAAI,UAAWF,EAAAA,QAAO,mBAAmB,EACxC,SAAA,CAAAE,EAAAA,KAAC,MAAA,CAAI,UAAWF,EAAAA,QAAO,oBAAoB,EACzC,SAAA,CAAAC,MAAC,OAAA,CAAK,UAAWD,EAAAA,QAAO,kBAAkB,EAAI,SAAAjB,EAAM,EACnDC,GAAkBC,IAA2B,UAC5CgB,EAAAA,IAAC,QAAK,UAAWD,EAAAA,QAAO,mCAAmC,EACxD,SAAAhB,CAAA,CACH,EAEDM,SACE,OAAA,CAAK,UAAWU,EAAAA,QAAO,0BAA0B,EAAG,cAAW,GAC7D,SAAAV,CAAA,CACH,EAEDC,GAAOU,EAAAA,IAACI,EAAAA,QAAA,CAAI,MAAM,KAAA,CAAM,EACxBb,GAAgB,MAAQA,EAAe,GACtCS,EAAAA,IAACK,EAAAA,QAAA,CACC,MAAOd,EACP,SAAS,YACT,KAAK,OAAA,CAAA,CACP,EAEJ,EACCR,GAAkBC,IAA2B,SAC5CgB,EAAAA,IAAC,MAAA,CAAI,UAAWD,EAAAA,QAAO,uBAAuB,EAC5C,SAAAC,MAAC,QAAK,UAAWD,EAAAA,QAAO,kCAAkC,EACvD,WACH,CAAA,CACF,CAAA,EAEJ,EACCX,GACCY,EAAAA,IAAC,MAAA,CAAI,UAAWD,EAAAA,QAAO,kBAAkB,EACvC,SAAAC,EAAAA,IAAC,OAAA,CACC,UAAW,CACTD,EAAAA,QAAO,4BAA4B,EAClCZ,EAEG,GADAY,UAAO,mCAAmC,CAC1C,EAEH,OAAO,OAAO,EACd,KAAK,GAAG,EAEV,SAAAZ,SAAmBe,EAAAA,QAAA,CAAK,YAAQI,EAAA,CAAA,CAAU,EAAI,KAAK,IAAA,CAAK,CAAA,CAAA,CAC3D,CACF,CAAA,CAAA,CAEJ,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"MenuItem.cjs","sources":["../../../src/components/menu-item/MenuItem.tsx"],"sourcesContent":["import type { ButtonHTMLAttributes, ReactNode } from 'react';\nimport EmoticonHappyOutlineIcon from '@mattermost/compass-icons/components/emoticon-happy-outline';\nimport CheckIcon from '@mattermost/compass-icons/components/check';\nimport Icon from '@/components/icon/Icon';\nimport Tag from '@/components/tag/Tag';\nimport MentionBadge from '@/components/mention-badge/MentionBadge';\nimport styles from './MenuItem.module.scss';\n\nexport interface MenuItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Primary label text. */\n label: string;\n /** Optional secondary label. */\n secondaryLabel?: ReactNode;\n /** Where the secondary label appears. Default: 'below'. */\n secondaryLabelPosition?: 'inline' | 'below';\n /** Custom content for the leading slot. When omitted, shows placeholder icon. When passing an icon, use `<Icon glyph={<SomeIcon />} size=\"16\" />`. */\n leadingVisual?: ReactNode;\n /** Show the leading visual slot. Default: true. */\n leadingElement?: boolean;\n /** Custom content for the trailing slot. When omitted with trailingElement=true, shows check icon. When passing an icon, use `<Icon glyph={<SomeIcon />} size=\"16\" />`. */\n trailingVisual?: ReactNode;\n /** Show the trailing visual slot. Default: false. */\n trailingElement?: boolean;\n /** Emoji character for custom status, shown inline after the label. */\n customStatusEmoji?: string;\n /** Show \"NEW\" label tag. */\n tag?: boolean;\n /** Inline mention count badge. */\n mentionCount?: number;\n /** Destructive (danger) styling. */\n destructive?: boolean;\n /** Highlight row (e.g. submenu parent while child menu is open). */\n active?: boolean;\n}\n\n/**\n * Menu Items are the rows inside a Menu — the smallest selectable unit in any dropdown,\n * kebab, or context menu. One label, optional supporting visuals, and a clear hit target.\n */\nexport default function MenuItem({\n label,\n secondaryLabel,\n secondaryLabelPosition = 'below',\n leadingVisual,\n leadingElement = true,\n trailingVisual,\n trailingElement = false,\n customStatusEmoji,\n tag = false,\n mentionCount,\n destructive = false,\n active = false,\n className = '',\n disabled,\n type = 'button',\n ...rest\n}: MenuItemProps) {\n const rootClass = [\n styles['menu-item'],\n destructive ? styles['menu-item--destructive'] : '',\n active ? styles['menu-item--active'] : '',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <button className={rootClass} type={type} disabled={disabled} {...rest}>\n <div className={styles['menu-item__content']}>\n {leadingElement && (\n <div className={styles['menu-item__left']}>\n <span className={styles['menu-item__leading-visual']} aria-hidden>\n {leadingVisual ?? (\n <Icon glyph={<EmoticonHappyOutlineIcon />} size=\"16\" />\n )}\n </span>\n </div>\n )}\n <div className={styles['menu-item__middle']}>\n <div className={styles['menu-item__top-row']}>\n <span className={styles['menu-item__label']}>{label}</span>\n {secondaryLabel && secondaryLabelPosition === 'inline' && (\n <span className={styles['menu-item__secondary-label-inline']}>\n {secondaryLabel}\n </span>\n )}\n {customStatusEmoji && (\n <span className={styles['menu-item__custom-status']} aria-hidden>\n {customStatusEmoji}\n </span>\n )}\n {tag && <Tag label=\"NEW\" />}\n {mentionCount != null && mentionCount > 0 && (\n <MentionBadge\n count={mentionCount}\n location=\"menu-item\"\n size=\"small\"\n />\n )}\n </div>\n {secondaryLabel && secondaryLabelPosition === 'below' && (\n <div className={styles['menu-item__bottom-row']}>\n <span className={styles['menu-item__secondary-label-below']}>\n {secondaryLabel}\n </span>\n </div>\n )}\n </div>\n {trailingElement && (\n <div className={styles['menu-item__right']}>\n <span\n className={[\n styles['menu-item__trailing-visual'],\n !trailingVisual\n ? styles['menu-item__trailing-visual--check']\n : '',\n ]\n .filter(Boolean)\n .join(' ')}\n >\n {trailingVisual ?? <Icon glyph={<CheckIcon />} size=\"16\" />}\n </span>\n </div>\n )}\n </div>\n </button>\n );\n}\n"],"names":["MenuItem","label","secondaryLabel","secondaryLabelPosition","leadingVisual","leadingElement","trailingVisual","trailingElement","customStatusEmoji","tag","mentionCount","destructive","active","className","disabled","type","rest","rootClass","styles","jsx","jsxs","Icon","EmoticonHappyOutlineIcon","Tag","MentionBadge","CheckIcon"],"mappings":"kaAuCA,SAAwBA,EAAS,CAC/B,MAAAC,EACA,eAAAC,EACA,uBAAAC,EAAyB,QACzB,cAAAC,EACA,eAAAC,EAAiB,GACjB,eAAAC,EACA,gBAAAC,EAAkB,GAClB,kBAAAC,EACA,IAAAC,EAAM,GACN,aAAAC,EACA,YAAAC,EAAc,GACd,OAAAC,EAAS,GACT,UAAAC,EAAY,GACZ,SAAAC,EACA,KAAAC,EAAO,SACP,GAAGC,CACL,EAAkB,CAChB,MAAMC,EAAY,CAChBC,EAAAA,QAAO,WAAW,EAClBP,EAAcO,EAAAA,QAAO,wBAAwB,EAAI,GACjDN,EAASM,EAAAA,QAAO,mBAAmB,EAAI,GACvCL,CAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG,EAEX,OACEM,EAAAA,IAAC,SAAA,CAAO,UAAWF,EAAW,KAAAF,EAAY,SAAAD,EAAqB,GAAGE,EAChE,SAAAI,EAAAA,KAAC,MAAA,CAAI,UAAWF,EAAAA,QAAO,oBAAoB,EACxC,SAAA,CAAAb,GACCc,EAAAA,IAAC,MAAA,CAAI,UAAWD,EAAAA,QAAO,iBAAiB,EACtC,SAAAC,EAAAA,IAAC,OAAA,CAAK,UAAWD,EAAAA,QAAO,2BAA2B,EAAG,cAAW,GAC9D,SAAAd,GACCe,EAAAA,IAACE,EAAAA,QAAA,CAAK,MAAOF,EAAAA,IAACG,IAAyB,EAAI,KAAK,IAAA,CAAK,CAAA,CAEzD,CAAA,CACF,EAEFF,EAAAA,KAAC,MAAA,CAAI,UAAWF,EAAAA,QAAO,mBAAmB,EACxC,SAAA,CAAAE,EAAAA,KAAC,MAAA,CAAI,UAAWF,EAAAA,QAAO,oBAAoB,EACzC,SAAA,CAAAC,MAAC,OAAA,CAAK,UAAWD,EAAAA,QAAO,kBAAkB,EAAI,SAAAjB,EAAM,EACnDC,GAAkBC,IAA2B,UAC5CgB,EAAAA,IAAC,QAAK,UAAWD,EAAAA,QAAO,mCAAmC,EACxD,SAAAhB,CAAA,CACH,EAEDM,SACE,OAAA,CAAK,UAAWU,EAAAA,QAAO,0BAA0B,EAAG,cAAW,GAC7D,SAAAV,CAAA,CACH,EAEDC,GAAOU,EAAAA,IAACI,EAAAA,QAAA,CAAI,MAAM,KAAA,CAAM,EACxBb,GAAgB,MAAQA,EAAe,GACtCS,EAAAA,IAACK,EAAAA,QAAA,CACC,MAAOd,EACP,SAAS,YACT,KAAK,OAAA,CAAA,CACP,EAEJ,EACCR,GAAkBC,IAA2B,SAC5CgB,EAAAA,IAAC,MAAA,CAAI,UAAWD,EAAAA,QAAO,uBAAuB,EAC5C,SAAAC,MAAC,QAAK,UAAWD,EAAAA,QAAO,kCAAkC,EACvD,WACH,CAAA,CACF,CAAA,EAEJ,EACCX,GACCY,EAAAA,IAAC,MAAA,CAAI,UAAWD,EAAAA,QAAO,kBAAkB,EACvC,SAAAC,EAAAA,IAAC,OAAA,CACC,UAAW,CACTD,EAAAA,QAAO,4BAA4B,EAClCZ,EAEG,GADAY,UAAO,mCAAmC,CAC1C,EAEH,OAAO,OAAO,EACd,KAAK,GAAG,EAEV,SAAAZ,SAAmBe,EAAAA,QAAA,CAAK,YAAQI,EAAA,CAAA,CAAU,EAAI,KAAK,IAAA,CAAK,CAAA,CAAA,CAC3D,CACF,CAAA,CAAA,CAEJ,CAAA,CACF,CAEJ"}
@@ -6,11 +6,11 @@ export interface MenuItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
6
6
  secondaryLabel?: ReactNode;
7
7
  /** Where the secondary label appears. Default: 'below'. */
8
8
  secondaryLabelPosition?: 'inline' | 'below';
9
- /** Custom content for the leading slot. When omitted, shows placeholder icon. */
9
+ /** Custom content for the leading slot. When omitted, shows placeholder icon. When passing an icon, use `<Icon glyph={<SomeIcon />} size="16" />`. */
10
10
  leadingVisual?: ReactNode;
11
11
  /** Show the leading visual slot. Default: true. */
12
12
  leadingElement?: boolean;
13
- /** Custom content for the trailing slot. When omitted with trailingElement=true, shows check icon. */
13
+ /** Custom content for the trailing slot. When omitted with trailingElement=true, shows check icon. When passing an icon, use `<Icon glyph={<SomeIcon />} size="16" />`. */
14
14
  trailingVisual?: ReactNode;
15
15
  /** Show the trailing visual slot. Default: false. */
16
16
  trailingElement?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/menu-item/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQ7D,MAAM,WAAW,aAAc,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC5E,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,2DAA2D;IAC3D,sBAAsB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC5C,iFAAiF;IACjF,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,mDAAmD;IACnD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,sGAAsG;IACtG,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,qDAAqD;IACrD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4BAA4B;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oCAAoC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,KAAK,EACL,cAAc,EACd,sBAAgC,EAChC,aAAa,EACb,cAAqB,EACrB,cAAc,EACd,eAAuB,EACvB,iBAAiB,EACjB,GAAW,EACX,YAAY,EACZ,WAAmB,EACnB,MAAc,EACd,SAAc,EACd,QAAQ,EACR,IAAe,EACf,GAAG,IAAI,EACR,EAAE,aAAa,2CAuEf"}
1
+ {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/menu-item/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQ7D,MAAM,WAAW,aAAc,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC5E,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,2DAA2D;IAC3D,sBAAsB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC5C,sJAAsJ;IACtJ,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,mDAAmD;IACnD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2KAA2K;IAC3K,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,qDAAqD;IACrD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4BAA4B;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oCAAoC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,KAAK,EACL,cAAc,EACd,sBAAgC,EAChC,aAAa,EACb,cAAqB,EACrB,cAAc,EACd,eAAuB,EACvB,iBAAiB,EACjB,GAAW,EACX,YAAY,EACZ,WAAmB,EACnB,MAAc,EACd,SAAc,EACd,QAAQ,EACR,IAAe,EACf,GAAG,IAAI,EACR,EAAE,aAAa,2CAuEf"}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.js","sources":["../../../src/components/menu-item/MenuItem.tsx"],"sourcesContent":["import type { ButtonHTMLAttributes, ReactNode } from 'react';\nimport EmoticonHappyOutlineIcon from '@mattermost/compass-icons/components/emoticon-happy-outline';\nimport CheckIcon from '@mattermost/compass-icons/components/check';\nimport Icon from '@/components/icon/Icon';\nimport Tag from '@/components/tag/Tag';\nimport MentionBadge from '@/components/mention-badge/MentionBadge';\nimport styles from './MenuItem.module.scss';\n\nexport interface MenuItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Primary label text. */\n label: string;\n /** Optional secondary label. */\n secondaryLabel?: ReactNode;\n /** Where the secondary label appears. Default: 'below'. */\n secondaryLabelPosition?: 'inline' | 'below';\n /** Custom content for the leading slot. When omitted, shows placeholder icon. */\n leadingVisual?: ReactNode;\n /** Show the leading visual slot. Default: true. */\n leadingElement?: boolean;\n /** Custom content for the trailing slot. When omitted with trailingElement=true, shows check icon. */\n trailingVisual?: ReactNode;\n /** Show the trailing visual slot. Default: false. */\n trailingElement?: boolean;\n /** Emoji character for custom status, shown inline after the label. */\n customStatusEmoji?: string;\n /** Show \"NEW\" label tag. */\n tag?: boolean;\n /** Inline mention count badge. */\n mentionCount?: number;\n /** Destructive (danger) styling. */\n destructive?: boolean;\n /** Highlight row (e.g. submenu parent while child menu is open). */\n active?: boolean;\n}\n\n/**\n * Menu Items are the rows inside a Menu — the smallest selectable unit in any dropdown,\n * kebab, or context menu. One label, optional supporting visuals, and a clear hit target.\n */\nexport default function MenuItem({\n label,\n secondaryLabel,\n secondaryLabelPosition = 'below',\n leadingVisual,\n leadingElement = true,\n trailingVisual,\n trailingElement = false,\n customStatusEmoji,\n tag = false,\n mentionCount,\n destructive = false,\n active = false,\n className = '',\n disabled,\n type = 'button',\n ...rest\n}: MenuItemProps) {\n const rootClass = [\n styles['menu-item'],\n destructive ? styles['menu-item--destructive'] : '',\n active ? styles['menu-item--active'] : '',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <button className={rootClass} type={type} disabled={disabled} {...rest}>\n <div className={styles['menu-item__content']}>\n {leadingElement && (\n <div className={styles['menu-item__left']}>\n <span className={styles['menu-item__leading-visual']} aria-hidden>\n {leadingVisual ?? (\n <Icon glyph={<EmoticonHappyOutlineIcon />} size=\"16\" />\n )}\n </span>\n </div>\n )}\n <div className={styles['menu-item__middle']}>\n <div className={styles['menu-item__top-row']}>\n <span className={styles['menu-item__label']}>{label}</span>\n {secondaryLabel && secondaryLabelPosition === 'inline' && (\n <span className={styles['menu-item__secondary-label-inline']}>\n {secondaryLabel}\n </span>\n )}\n {customStatusEmoji && (\n <span className={styles['menu-item__custom-status']} aria-hidden>\n {customStatusEmoji}\n </span>\n )}\n {tag && <Tag label=\"NEW\" />}\n {mentionCount != null && mentionCount > 0 && (\n <MentionBadge\n count={mentionCount}\n location=\"menu-item\"\n size=\"small\"\n />\n )}\n </div>\n {secondaryLabel && secondaryLabelPosition === 'below' && (\n <div className={styles['menu-item__bottom-row']}>\n <span className={styles['menu-item__secondary-label-below']}>\n {secondaryLabel}\n </span>\n </div>\n )}\n </div>\n {trailingElement && (\n <div className={styles['menu-item__right']}>\n <span\n className={[\n styles['menu-item__trailing-visual'],\n !trailingVisual\n ? styles['menu-item__trailing-visual--check']\n : '',\n ]\n .filter(Boolean)\n .join(' ')}\n >\n {trailingVisual ?? <Icon glyph={<CheckIcon />} size=\"16\" />}\n </span>\n </div>\n )}\n </div>\n </button>\n );\n}\n"],"names":["MenuItem","label","secondaryLabel","secondaryLabelPosition","leadingVisual","leadingElement","trailingVisual","trailingElement","customStatusEmoji","tag","mentionCount","destructive","active","className","disabled","type","rest","rootClass","styles","jsx","jsxs","Icon","EmoticonHappyOutlineIcon","Tag","MentionBadge","CheckIcon"],"mappings":";;;;;;;AAuCA,SAAwBA,EAAS;AAAA,EAC/B,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,wBAAAC,IAAyB;AAAA,EACzB,eAAAC;AAAA,EACA,gBAAAC,IAAiB;AAAA,EACjB,gBAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,mBAAAC;AAAA,EACA,KAAAC,IAAM;AAAA,EACN,cAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,QAAAC,IAAS;AAAA,EACT,WAAAC,IAAY;AAAA,EACZ,UAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGC;AACL,GAAkB;AAChB,QAAMC,IAAY;AAAA,IAChBC,EAAO,WAAW;AAAA,IAClBP,IAAcO,EAAO,wBAAwB,IAAI;AAAA,IACjDN,IAASM,EAAO,mBAAmB,IAAI;AAAA,IACvCL;AAAA,EAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,SACE,gBAAAM,EAAC,UAAA,EAAO,WAAWF,GAAW,MAAAF,GAAY,UAAAD,GAAqB,GAAGE,GAChE,UAAA,gBAAAI,EAAC,OAAA,EAAI,WAAWF,EAAO,oBAAoB,GACxC,UAAA;AAAA,IAAAb,KACC,gBAAAc,EAAC,OAAA,EAAI,WAAWD,EAAO,iBAAiB,GACtC,UAAA,gBAAAC,EAAC,QAAA,EAAK,WAAWD,EAAO,2BAA2B,GAAG,eAAW,IAC9D,UAAAd,KACC,gBAAAe,EAACE,GAAA,EAAK,OAAO,gBAAAF,EAACG,KAAyB,GAAI,MAAK,KAAA,CAAK,EAAA,CAEzD,EAAA,CACF;AAAA,IAEF,gBAAAF,EAAC,OAAA,EAAI,WAAWF,EAAO,mBAAmB,GACxC,UAAA;AAAA,MAAA,gBAAAE,EAAC,OAAA,EAAI,WAAWF,EAAO,oBAAoB,GACzC,UAAA;AAAA,QAAA,gBAAAC,EAAC,QAAA,EAAK,WAAWD,EAAO,kBAAkB,GAAI,UAAAjB,GAAM;AAAA,QACnDC,KAAkBC,MAA2B,YAC5C,gBAAAgB,EAAC,UAAK,WAAWD,EAAO,mCAAmC,GACxD,UAAAhB,EAAA,CACH;AAAA,QAEDM,uBACE,QAAA,EAAK,WAAWU,EAAO,0BAA0B,GAAG,eAAW,IAC7D,UAAAV,EAAA,CACH;AAAA,QAEDC,KAAO,gBAAAU,EAACI,GAAA,EAAI,OAAM,MAAA,CAAM;AAAA,QACxBb,KAAgB,QAAQA,IAAe,KACtC,gBAAAS;AAAA,UAACK;AAAA,UAAA;AAAA,YACC,OAAOd;AAAA,YACP,UAAS;AAAA,YACT,MAAK;AAAA,UAAA;AAAA,QAAA;AAAA,MACP,GAEJ;AAAA,MACCR,KAAkBC,MAA2B,WAC5C,gBAAAgB,EAAC,OAAA,EAAI,WAAWD,EAAO,uBAAuB,GAC5C,UAAA,gBAAAC,EAAC,UAAK,WAAWD,EAAO,kCAAkC,GACvD,aACH,EAAA,CACF;AAAA,IAAA,GAEJ;AAAA,IACCX,KACC,gBAAAY,EAAC,OAAA,EAAI,WAAWD,EAAO,kBAAkB,GACvC,UAAA,gBAAAC;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW;AAAA,UACTD,EAAO,4BAA4B;AAAA,UAClCZ,IAEG,KADAY,EAAO,mCAAmC;AAAA,QAC1C,EAEH,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,QAEV,UAAAZ,uBAAmBe,GAAA,EAAK,yBAAQI,GAAA,CAAA,CAAU,GAAI,MAAK,KAAA,CAAK;AAAA,MAAA;AAAA,IAAA,EAC3D,CACF;AAAA,EAAA,EAAA,CAEJ,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"MenuItem.js","sources":["../../../src/components/menu-item/MenuItem.tsx"],"sourcesContent":["import type { ButtonHTMLAttributes, ReactNode } from 'react';\nimport EmoticonHappyOutlineIcon from '@mattermost/compass-icons/components/emoticon-happy-outline';\nimport CheckIcon from '@mattermost/compass-icons/components/check';\nimport Icon from '@/components/icon/Icon';\nimport Tag from '@/components/tag/Tag';\nimport MentionBadge from '@/components/mention-badge/MentionBadge';\nimport styles from './MenuItem.module.scss';\n\nexport interface MenuItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Primary label text. */\n label: string;\n /** Optional secondary label. */\n secondaryLabel?: ReactNode;\n /** Where the secondary label appears. Default: 'below'. */\n secondaryLabelPosition?: 'inline' | 'below';\n /** Custom content for the leading slot. When omitted, shows placeholder icon. When passing an icon, use `<Icon glyph={<SomeIcon />} size=\"16\" />`. */\n leadingVisual?: ReactNode;\n /** Show the leading visual slot. Default: true. */\n leadingElement?: boolean;\n /** Custom content for the trailing slot. When omitted with trailingElement=true, shows check icon. When passing an icon, use `<Icon glyph={<SomeIcon />} size=\"16\" />`. */\n trailingVisual?: ReactNode;\n /** Show the trailing visual slot. Default: false. */\n trailingElement?: boolean;\n /** Emoji character for custom status, shown inline after the label. */\n customStatusEmoji?: string;\n /** Show \"NEW\" label tag. */\n tag?: boolean;\n /** Inline mention count badge. */\n mentionCount?: number;\n /** Destructive (danger) styling. */\n destructive?: boolean;\n /** Highlight row (e.g. submenu parent while child menu is open). */\n active?: boolean;\n}\n\n/**\n * Menu Items are the rows inside a Menu — the smallest selectable unit in any dropdown,\n * kebab, or context menu. One label, optional supporting visuals, and a clear hit target.\n */\nexport default function MenuItem({\n label,\n secondaryLabel,\n secondaryLabelPosition = 'below',\n leadingVisual,\n leadingElement = true,\n trailingVisual,\n trailingElement = false,\n customStatusEmoji,\n tag = false,\n mentionCount,\n destructive = false,\n active = false,\n className = '',\n disabled,\n type = 'button',\n ...rest\n}: MenuItemProps) {\n const rootClass = [\n styles['menu-item'],\n destructive ? styles['menu-item--destructive'] : '',\n active ? styles['menu-item--active'] : '',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <button className={rootClass} type={type} disabled={disabled} {...rest}>\n <div className={styles['menu-item__content']}>\n {leadingElement && (\n <div className={styles['menu-item__left']}>\n <span className={styles['menu-item__leading-visual']} aria-hidden>\n {leadingVisual ?? (\n <Icon glyph={<EmoticonHappyOutlineIcon />} size=\"16\" />\n )}\n </span>\n </div>\n )}\n <div className={styles['menu-item__middle']}>\n <div className={styles['menu-item__top-row']}>\n <span className={styles['menu-item__label']}>{label}</span>\n {secondaryLabel && secondaryLabelPosition === 'inline' && (\n <span className={styles['menu-item__secondary-label-inline']}>\n {secondaryLabel}\n </span>\n )}\n {customStatusEmoji && (\n <span className={styles['menu-item__custom-status']} aria-hidden>\n {customStatusEmoji}\n </span>\n )}\n {tag && <Tag label=\"NEW\" />}\n {mentionCount != null && mentionCount > 0 && (\n <MentionBadge\n count={mentionCount}\n location=\"menu-item\"\n size=\"small\"\n />\n )}\n </div>\n {secondaryLabel && secondaryLabelPosition === 'below' && (\n <div className={styles['menu-item__bottom-row']}>\n <span className={styles['menu-item__secondary-label-below']}>\n {secondaryLabel}\n </span>\n </div>\n )}\n </div>\n {trailingElement && (\n <div className={styles['menu-item__right']}>\n <span\n className={[\n styles['menu-item__trailing-visual'],\n !trailingVisual\n ? styles['menu-item__trailing-visual--check']\n : '',\n ]\n .filter(Boolean)\n .join(' ')}\n >\n {trailingVisual ?? <Icon glyph={<CheckIcon />} size=\"16\" />}\n </span>\n </div>\n )}\n </div>\n </button>\n );\n}\n"],"names":["MenuItem","label","secondaryLabel","secondaryLabelPosition","leadingVisual","leadingElement","trailingVisual","trailingElement","customStatusEmoji","tag","mentionCount","destructive","active","className","disabled","type","rest","rootClass","styles","jsx","jsxs","Icon","EmoticonHappyOutlineIcon","Tag","MentionBadge","CheckIcon"],"mappings":";;;;;;;AAuCA,SAAwBA,EAAS;AAAA,EAC/B,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,wBAAAC,IAAyB;AAAA,EACzB,eAAAC;AAAA,EACA,gBAAAC,IAAiB;AAAA,EACjB,gBAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,mBAAAC;AAAA,EACA,KAAAC,IAAM;AAAA,EACN,cAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,QAAAC,IAAS;AAAA,EACT,WAAAC,IAAY;AAAA,EACZ,UAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGC;AACL,GAAkB;AAChB,QAAMC,IAAY;AAAA,IAChBC,EAAO,WAAW;AAAA,IAClBP,IAAcO,EAAO,wBAAwB,IAAI;AAAA,IACjDN,IAASM,EAAO,mBAAmB,IAAI;AAAA,IACvCL;AAAA,EAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,SACE,gBAAAM,EAAC,UAAA,EAAO,WAAWF,GAAW,MAAAF,GAAY,UAAAD,GAAqB,GAAGE,GAChE,UAAA,gBAAAI,EAAC,OAAA,EAAI,WAAWF,EAAO,oBAAoB,GACxC,UAAA;AAAA,IAAAb,KACC,gBAAAc,EAAC,OAAA,EAAI,WAAWD,EAAO,iBAAiB,GACtC,UAAA,gBAAAC,EAAC,QAAA,EAAK,WAAWD,EAAO,2BAA2B,GAAG,eAAW,IAC9D,UAAAd,KACC,gBAAAe,EAACE,GAAA,EAAK,OAAO,gBAAAF,EAACG,KAAyB,GAAI,MAAK,KAAA,CAAK,EAAA,CAEzD,EAAA,CACF;AAAA,IAEF,gBAAAF,EAAC,OAAA,EAAI,WAAWF,EAAO,mBAAmB,GACxC,UAAA;AAAA,MAAA,gBAAAE,EAAC,OAAA,EAAI,WAAWF,EAAO,oBAAoB,GACzC,UAAA;AAAA,QAAA,gBAAAC,EAAC,QAAA,EAAK,WAAWD,EAAO,kBAAkB,GAAI,UAAAjB,GAAM;AAAA,QACnDC,KAAkBC,MAA2B,YAC5C,gBAAAgB,EAAC,UAAK,WAAWD,EAAO,mCAAmC,GACxD,UAAAhB,EAAA,CACH;AAAA,QAEDM,uBACE,QAAA,EAAK,WAAWU,EAAO,0BAA0B,GAAG,eAAW,IAC7D,UAAAV,EAAA,CACH;AAAA,QAEDC,KAAO,gBAAAU,EAACI,GAAA,EAAI,OAAM,MAAA,CAAM;AAAA,QACxBb,KAAgB,QAAQA,IAAe,KACtC,gBAAAS;AAAA,UAACK;AAAA,UAAA;AAAA,YACC,OAAOd;AAAA,YACP,UAAS;AAAA,YACT,MAAK;AAAA,UAAA;AAAA,QAAA;AAAA,MACP,GAEJ;AAAA,MACCR,KAAkBC,MAA2B,WAC5C,gBAAAgB,EAAC,OAAA,EAAI,WAAWD,EAAO,uBAAuB,GAC5C,UAAA,gBAAAC,EAAC,UAAK,WAAWD,EAAO,kCAAkC,GACvD,aACH,EAAA,CACF;AAAA,IAAA,GAEJ;AAAA,IACCX,KACC,gBAAAY,EAAC,OAAA,EAAI,WAAWD,EAAO,kBAAkB,GACvC,UAAA,gBAAAC;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW;AAAA,UACTD,EAAO,4BAA4B;AAAA,UAClCZ,IAEG,KADAY,EAAO,mCAAmC;AAAA,QAC1C,EAEH,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,QAEV,UAAAZ,uBAAmBe,GAAA,EAAK,yBAAQI,GAAA,CAAA,CAAU,GAAI,MAAK,KAAA,CAAK;AAAA,MAAA;AAAA,IAAA,EAC3D,CACF;AAAA,EAAA,EAAA,CAEJ,EAAA,CACF;AAEJ;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),m=require("../icon/Icon.cjs"),__c=require("@mattermost/compass-icons/components/creation-outline.js"),c=__c?.default??__c,a=require("./MessageSeparator.module.scss.cjs"),g={date:"Today","new-messages":"new-messages","reply-count":"4 replies"};function p({type:s="date",label:t,showAiSummary:l=!1,onSummarize:i,className:n="",...d}){const o=t??g[s],u=[a.default["message-separator"],a.default[`message-separator--${s==="new-messages"?"new":s==="reply-count"?"reply":"date"}`],n].filter(Boolean).join(" "),r=e.jsxs("div",{className:a.default["message-separator__label"],children:[e.jsx("span",{className:a.default["message-separator__text"],children:o}),s==="new-messages"&&l&&e.jsxs("button",{type:"button",className:a.default["message-separator__summarize"],onClick:i,"aria-label":"Summarize new messages with AI",children:[e.jsx("span",{className:a.default["message-separator__summarize-icon"],"aria-hidden":!0,children:e.jsx(m.default,{size:"12",glyph:e.jsx(c,{})})}),"Summarize"]})]});return e.jsx("div",{className:u,role:"separator",...d,children:s==="reply-count"?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:a.default["message-separator__reply-gutter"],"aria-hidden":!0,children:e.jsx("div",{className:a.default["message-separator__reply-line-start"]})}),r,e.jsx("div",{className:a.default["message-separator__line"],"aria-hidden":!0})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:a.default["message-separator__line"],"aria-hidden":!0}),r,e.jsx("div",{className:a.default["message-separator__line"],"aria-hidden":!0})]})})}exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),m=require("../icon/Icon.cjs"),__c=require("@mattermost/compass-icons/components/creation-outline.js"),c=__c?.default??__c,a=require("./MessageSeparator.module.scss.cjs"),g={date:"Today","new-messages":"New messages","reply-count":"4 replies"};function p({type:s="date",label:t,showAiSummary:l=!1,onSummarize:i,className:n="",...d}){const o=t??g[s],u=[a.default["message-separator"],a.default[`message-separator--${s==="new-messages"?"new":s==="reply-count"?"reply":"date"}`],n].filter(Boolean).join(" "),r=e.jsxs("div",{className:a.default["message-separator__label"],children:[e.jsx("span",{className:a.default["message-separator__text"],children:o}),s==="new-messages"&&l&&e.jsxs("button",{type:"button",className:a.default["message-separator__summarize"],onClick:i,"aria-label":"Summarize new messages with AI",children:[e.jsx("span",{className:a.default["message-separator__summarize-icon"],"aria-hidden":!0,children:e.jsx(m.default,{size:"12",glyph:e.jsx(c,{})})}),"Summarize"]})]});return e.jsx("div",{className:u,role:"separator",...d,children:s==="reply-count"?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:a.default["message-separator__reply-gutter"],"aria-hidden":!0,children:e.jsx("div",{className:a.default["message-separator__reply-line-start"]})}),r,e.jsx("div",{className:a.default["message-separator__line"],"aria-hidden":!0})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:a.default["message-separator__line"],"aria-hidden":!0}),r,e.jsx("div",{className:a.default["message-separator__line"],"aria-hidden":!0})]})})}exports.default=p;
2
2
  //# sourceMappingURL=MessageSeparator.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageSeparator.cjs","sources":["../../../src/components/message-separator/MessageSeparator.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport Icon from '@/components/icon/Icon';\nimport CreationOutlineIcon from '@mattermost/compass-icons/components/creation-outline';\nimport styles from './MessageSeparator.module.scss';\n\nexport type MessageSeparatorType = 'date' | 'new-messages' | 'reply-count';\n\nexport interface MessageSeparatorProps extends HTMLAttributes<HTMLDivElement> {\n /** Separator variant. Default: Date. */\n type?: MessageSeparatorType;\n /** Label text. Defaults: 'Today' / 'new-messages' / '4 replies'. */\n label?: string;\n /** Show AI summarize button (New Messages type only). Default: false. */\n showAiSummary?: boolean;\n /** Called when Summarize button is clicked. */\n onSummarize?: () => void;\n /** Optional CSS class name. */\n className?: string;\n}\n\nconst DEFAULT_LABELS: Record<MessageSeparatorType, string> = {\n date: 'Today',\n 'new-messages': 'new-messages',\n 'reply-count': '4 replies',\n};\n\n/**\n * Message Separators sit between messages in the stream to group them — by day, by reply\n * count, or to mark the boundary between read and unread. They help readers orient\n * themselves when scrolling back through history or returning to a busy channel.\n */\nexport default function MessageSeparator({\n type = 'date',\n label,\n showAiSummary = false,\n onSummarize,\n className = '',\n ...rest\n}: MessageSeparatorProps) {\n const displayLabel = label ?? DEFAULT_LABELS[type];\n\n const rootClass = [\n styles['message-separator'],\n styles[\n `message-separator--${type === 'new-messages' ? 'new' : type === 'reply-count' ? 'reply' : 'date'}`\n ],\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const labelBlock = (\n <div className={styles['message-separator__label']}>\n <span className={styles['message-separator__text']}>\n {displayLabel}\n </span>\n\n {type === 'new-messages' && showAiSummary && (\n <button\n type=\"button\"\n className={styles['message-separator__summarize']}\n onClick={onSummarize}\n aria-label=\"Summarize new messages with AI\"\n >\n <span\n className={styles['message-separator__summarize-icon']}\n aria-hidden\n >\n <Icon size=\"12\" glyph={<CreationOutlineIcon />} />\n </span>\n Summarize\n </button>\n )}\n </div>\n );\n\n return (\n <div className={rootClass} role=\"separator\" {...rest}>\n {type === 'reply-count' ? (\n <>\n <div className={styles['message-separator__reply-gutter']} aria-hidden>\n <div className={styles['message-separator__reply-line-start']} />\n </div>\n {labelBlock}\n <div className={styles['message-separator__line']} aria-hidden />\n </>\n ) : (\n <>\n <div className={styles['message-separator__line']} aria-hidden />\n {labelBlock}\n <div className={styles['message-separator__line']} aria-hidden />\n </>\n )}\n </div>\n );\n}\n"],"names":["DEFAULT_LABELS","MessageSeparator","type","label","showAiSummary","onSummarize","className","rest","displayLabel","rootClass","styles","labelBlock","jsxs","jsx","Icon","CreationOutlineIcon","Fragment"],"mappings":"kSAoBMA,EAAuD,CAC3D,KAAM,QACN,eAAgB,eAChB,cAAe,WACjB,EAOA,SAAwBC,EAAiB,CACvC,KAAAC,EAAO,OACP,MAAAC,EACA,cAAAC,EAAgB,GAChB,YAAAC,EACA,UAAAC,EAAY,GACZ,GAAGC,CACL,EAA0B,CACxB,MAAMC,EAAeL,GAASH,EAAeE,CAAI,EAE3CO,EAAY,CAChBC,EAAAA,QAAO,mBAAmB,EAC1BA,EAAAA,QACE,sBAAsBR,IAAS,eAAiB,MAAQA,IAAS,cAAgB,QAAU,MAAM,EACnG,EACAI,CAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG,EAELK,EACJC,EAAAA,KAAC,MAAA,CAAI,UAAWF,UAAO,0BAA0B,EAC/C,SAAA,CAAAG,MAAC,OAAA,CAAK,UAAWH,EAAAA,QAAO,yBAAyB,EAC9C,SAAAF,EACH,EAECN,IAAS,gBAAkBE,GAC1BQ,EAAAA,KAAC,SAAA,CACC,KAAK,SACL,UAAWF,EAAAA,QAAO,8BAA8B,EAChD,QAASL,EACT,aAAW,iCAEX,SAAA,CAAAQ,EAAAA,IAAC,OAAA,CACC,UAAWH,EAAAA,QAAO,mCAAmC,EACrD,cAAW,GAEX,eAACI,EAAAA,QAAA,CAAK,KAAK,KAAK,MAAOD,EAAAA,IAACE,IAAoB,CAAA,CAAI,CAAA,CAAA,EAC3C,WAAA,CAAA,CAAA,CAET,EAEJ,EAGF,OACEF,EAAAA,IAAC,MAAA,CAAI,UAAWJ,EAAW,KAAK,YAAa,GAAGF,EAC7C,SAAAL,IAAS,cACRU,EAAAA,KAAAI,EAAAA,SAAA,CACE,SAAA,CAAAH,EAAAA,IAAC,MAAA,CAAI,UAAWH,EAAAA,QAAO,iCAAiC,EAAG,cAAW,GACpE,SAAAG,EAAAA,IAAC,MAAA,CAAI,UAAWH,EAAAA,QAAO,qCAAqC,EAAG,EACjE,EACCC,QACA,MAAA,CAAI,UAAWD,EAAAA,QAAO,yBAAyB,EAAG,cAAW,EAAA,CAAC,CAAA,CAAA,CACjE,EAEAE,EAAAA,KAAAI,EAAAA,SAAA,CACE,SAAA,CAAAH,MAAC,OAAI,UAAWH,EAAAA,QAAO,yBAAyB,EAAG,cAAW,GAAC,EAC9DC,QACA,MAAA,CAAI,UAAWD,EAAAA,QAAO,yBAAyB,EAAG,cAAW,EAAA,CAAC,CAAA,CAAA,CACjE,CAAA,CAEJ,CAEJ"}
1
+ {"version":3,"file":"MessageSeparator.cjs","sources":["../../../src/components/message-separator/MessageSeparator.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport Icon from '@/components/icon/Icon';\nimport CreationOutlineIcon from '@mattermost/compass-icons/components/creation-outline';\nimport styles from './MessageSeparator.module.scss';\n\nexport type MessageSeparatorType = 'date' | 'new-messages' | 'reply-count';\n\nexport interface MessageSeparatorProps extends HTMLAttributes<HTMLDivElement> {\n /** Separator variant. Default: Date. */\n type?: MessageSeparatorType;\n /** Label text. Defaults: 'Today' / 'New messages' / '4 replies'. */\n label?: string;\n /** Show AI summarize button (New Messages type only). Default: false. */\n showAiSummary?: boolean;\n /** Called when Summarize button is clicked. */\n onSummarize?: () => void;\n /** Optional CSS class name. */\n className?: string;\n}\n\nconst DEFAULT_LABELS: Record<MessageSeparatorType, string> = {\n date: 'Today',\n 'new-messages': 'New messages',\n 'reply-count': '4 replies',\n};\n\n/**\n * Message Separators sit between messages in the stream to group them — by day, by reply\n * count, or to mark the boundary between read and unread. They help readers orient\n * themselves when scrolling back through history or returning to a busy channel.\n */\nexport default function MessageSeparator({\n type = 'date',\n label,\n showAiSummary = false,\n onSummarize,\n className = '',\n ...rest\n}: MessageSeparatorProps) {\n const displayLabel = label ?? DEFAULT_LABELS[type];\n\n const rootClass = [\n styles['message-separator'],\n styles[\n `message-separator--${type === 'new-messages' ? 'new' : type === 'reply-count' ? 'reply' : 'date'}`\n ],\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const labelBlock = (\n <div className={styles['message-separator__label']}>\n <span className={styles['message-separator__text']}>\n {displayLabel}\n </span>\n\n {type === 'new-messages' && showAiSummary && (\n <button\n type=\"button\"\n className={styles['message-separator__summarize']}\n onClick={onSummarize}\n aria-label=\"Summarize new messages with AI\"\n >\n <span\n className={styles['message-separator__summarize-icon']}\n aria-hidden\n >\n <Icon size=\"12\" glyph={<CreationOutlineIcon />} />\n </span>\n Summarize\n </button>\n )}\n </div>\n );\n\n return (\n <div className={rootClass} role=\"separator\" {...rest}>\n {type === 'reply-count' ? (\n <>\n <div className={styles['message-separator__reply-gutter']} aria-hidden>\n <div className={styles['message-separator__reply-line-start']} />\n </div>\n {labelBlock}\n <div className={styles['message-separator__line']} aria-hidden />\n </>\n ) : (\n <>\n <div className={styles['message-separator__line']} aria-hidden />\n {labelBlock}\n <div className={styles['message-separator__line']} aria-hidden />\n </>\n )}\n </div>\n );\n}\n"],"names":["DEFAULT_LABELS","MessageSeparator","type","label","showAiSummary","onSummarize","className","rest","displayLabel","rootClass","styles","labelBlock","jsxs","jsx","Icon","CreationOutlineIcon","Fragment"],"mappings":"kSAoBMA,EAAuD,CAC3D,KAAM,QACN,eAAgB,eAChB,cAAe,WACjB,EAOA,SAAwBC,EAAiB,CACvC,KAAAC,EAAO,OACP,MAAAC,EACA,cAAAC,EAAgB,GAChB,YAAAC,EACA,UAAAC,EAAY,GACZ,GAAGC,CACL,EAA0B,CACxB,MAAMC,EAAeL,GAASH,EAAeE,CAAI,EAE3CO,EAAY,CAChBC,EAAAA,QAAO,mBAAmB,EAC1BA,EAAAA,QACE,sBAAsBR,IAAS,eAAiB,MAAQA,IAAS,cAAgB,QAAU,MAAM,EACnG,EACAI,CAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG,EAELK,EACJC,EAAAA,KAAC,MAAA,CAAI,UAAWF,UAAO,0BAA0B,EAC/C,SAAA,CAAAG,MAAC,OAAA,CAAK,UAAWH,EAAAA,QAAO,yBAAyB,EAC9C,SAAAF,EACH,EAECN,IAAS,gBAAkBE,GAC1BQ,EAAAA,KAAC,SAAA,CACC,KAAK,SACL,UAAWF,EAAAA,QAAO,8BAA8B,EAChD,QAASL,EACT,aAAW,iCAEX,SAAA,CAAAQ,EAAAA,IAAC,OAAA,CACC,UAAWH,EAAAA,QAAO,mCAAmC,EACrD,cAAW,GAEX,eAACI,EAAAA,QAAA,CAAK,KAAK,KAAK,MAAOD,EAAAA,IAACE,IAAoB,CAAA,CAAI,CAAA,CAAA,EAC3C,WAAA,CAAA,CAAA,CAET,EAEJ,EAGF,OACEF,EAAAA,IAAC,MAAA,CAAI,UAAWJ,EAAW,KAAK,YAAa,GAAGF,EAC7C,SAAAL,IAAS,cACRU,EAAAA,KAAAI,EAAAA,SAAA,CACE,SAAA,CAAAH,EAAAA,IAAC,MAAA,CAAI,UAAWH,EAAAA,QAAO,iCAAiC,EAAG,cAAW,GACpE,SAAAG,EAAAA,IAAC,MAAA,CAAI,UAAWH,EAAAA,QAAO,qCAAqC,EAAG,EACjE,EACCC,QACA,MAAA,CAAI,UAAWD,EAAAA,QAAO,yBAAyB,EAAG,cAAW,EAAA,CAAC,CAAA,CAAA,CACjE,EAEAE,EAAAA,KAAAI,EAAAA,SAAA,CACE,SAAA,CAAAH,MAAC,OAAI,UAAWH,EAAAA,QAAO,yBAAyB,EAAG,cAAW,GAAC,EAC9DC,QACA,MAAA,CAAI,UAAWD,EAAAA,QAAO,yBAAyB,EAAG,cAAW,EAAA,CAAC,CAAA,CAAA,CACjE,CAAA,CAEJ,CAEJ"}
@@ -3,7 +3,7 @@ export type MessageSeparatorType = 'date' | 'new-messages' | 'reply-count';
3
3
  export interface MessageSeparatorProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /** Separator variant. Default: Date. */
5
5
  type?: MessageSeparatorType;
6
- /** Label text. Defaults: 'Today' / 'new-messages' / '4 replies'. */
6
+ /** Label text. Defaults: 'Today' / 'New messages' / '4 replies'. */
7
7
  label?: string;
8
8
  /** Show AI summarize button (New Messages type only). Default: false. */
9
9
  showAiSummary?: boolean;
@@ -4,7 +4,7 @@ import __u from "@mattermost/compass-icons/components/creation-outline.js";const
4
4
  import e from "./MessageSeparator.module.scss.js";
5
5
  const _ = {
6
6
  date: "Today",
7
- "new-messages": "new-messages",
7
+ "new-messages": "New messages",
8
8
  "reply-count": "4 replies"
9
9
  };
10
10
  function w({
@@ -1 +1 @@
1
- {"version":3,"file":"MessageSeparator.js","sources":["../../../src/components/message-separator/MessageSeparator.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport Icon from '@/components/icon/Icon';\nimport CreationOutlineIcon from '@mattermost/compass-icons/components/creation-outline';\nimport styles from './MessageSeparator.module.scss';\n\nexport type MessageSeparatorType = 'date' | 'new-messages' | 'reply-count';\n\nexport interface MessageSeparatorProps extends HTMLAttributes<HTMLDivElement> {\n /** Separator variant. Default: Date. */\n type?: MessageSeparatorType;\n /** Label text. Defaults: 'Today' / 'new-messages' / '4 replies'. */\n label?: string;\n /** Show AI summarize button (New Messages type only). Default: false. */\n showAiSummary?: boolean;\n /** Called when Summarize button is clicked. */\n onSummarize?: () => void;\n /** Optional CSS class name. */\n className?: string;\n}\n\nconst DEFAULT_LABELS: Record<MessageSeparatorType, string> = {\n date: 'Today',\n 'new-messages': 'new-messages',\n 'reply-count': '4 replies',\n};\n\n/**\n * Message Separators sit between messages in the stream to group them — by day, by reply\n * count, or to mark the boundary between read and unread. They help readers orient\n * themselves when scrolling back through history or returning to a busy channel.\n */\nexport default function MessageSeparator({\n type = 'date',\n label,\n showAiSummary = false,\n onSummarize,\n className = '',\n ...rest\n}: MessageSeparatorProps) {\n const displayLabel = label ?? DEFAULT_LABELS[type];\n\n const rootClass = [\n styles['message-separator'],\n styles[\n `message-separator--${type === 'new-messages' ? 'new' : type === 'reply-count' ? 'reply' : 'date'}`\n ],\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const labelBlock = (\n <div className={styles['message-separator__label']}>\n <span className={styles['message-separator__text']}>\n {displayLabel}\n </span>\n\n {type === 'new-messages' && showAiSummary && (\n <button\n type=\"button\"\n className={styles['message-separator__summarize']}\n onClick={onSummarize}\n aria-label=\"Summarize new messages with AI\"\n >\n <span\n className={styles['message-separator__summarize-icon']}\n aria-hidden\n >\n <Icon size=\"12\" glyph={<CreationOutlineIcon />} />\n </span>\n Summarize\n </button>\n )}\n </div>\n );\n\n return (\n <div className={rootClass} role=\"separator\" {...rest}>\n {type === 'reply-count' ? (\n <>\n <div className={styles['message-separator__reply-gutter']} aria-hidden>\n <div className={styles['message-separator__reply-line-start']} />\n </div>\n {labelBlock}\n <div className={styles['message-separator__line']} aria-hidden />\n </>\n ) : (\n <>\n <div className={styles['message-separator__line']} aria-hidden />\n {labelBlock}\n <div className={styles['message-separator__line']} aria-hidden />\n </>\n )}\n </div>\n );\n}\n"],"names":["DEFAULT_LABELS","MessageSeparator","type","label","showAiSummary","onSummarize","className","rest","displayLabel","rootClass","styles","labelBlock","jsxs","jsx","Icon","CreationOutlineIcon","Fragment"],"mappings":";;;;AAoBA,MAAMA,IAAuD;AAAA,EAC3D,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,eAAe;AACjB;AAOA,SAAwBC,EAAiB;AAAA,EACvC,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,aAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,GAAGC;AACL,GAA0B;AACxB,QAAMC,IAAeL,KAASH,EAAeE,CAAI,GAE3CO,IAAY;AAAA,IAChBC,EAAO,mBAAmB;AAAA,IAC1BA,EACE,sBAAsBR,MAAS,iBAAiB,QAAQA,MAAS,gBAAgB,UAAU,MAAM,EACnG;AAAA,IACAI;AAAA,EAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG,GAELK,IACJ,gBAAAC,EAAC,OAAA,EAAI,WAAWF,EAAO,0BAA0B,GAC/C,UAAA;AAAA,IAAA,gBAAAG,EAAC,QAAA,EAAK,WAAWH,EAAO,yBAAyB,GAC9C,UAAAF,GACH;AAAA,IAECN,MAAS,kBAAkBE,KAC1B,gBAAAQ;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAWF,EAAO,8BAA8B;AAAA,QAChD,SAASL;AAAA,QACT,cAAW;AAAA,QAEX,UAAA;AAAA,UAAA,gBAAAQ;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAWH,EAAO,mCAAmC;AAAA,cACrD,eAAW;AAAA,cAEX,4BAACI,GAAA,EAAK,MAAK,MAAK,OAAO,gBAAAD,EAACE,KAAoB,EAAA,CAAI;AAAA,YAAA;AAAA,UAAA;AAAA,UAC3C;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAET,GAEJ;AAGF,SACE,gBAAAF,EAAC,OAAA,EAAI,WAAWJ,GAAW,MAAK,aAAa,GAAGF,GAC7C,UAAAL,MAAS,gBACR,gBAAAU,EAAAI,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAH,EAAC,OAAA,EAAI,WAAWH,EAAO,iCAAiC,GAAG,eAAW,IACpE,UAAA,gBAAAG,EAAC,OAAA,EAAI,WAAWH,EAAO,qCAAqC,GAAG,GACjE;AAAA,IACCC;AAAA,sBACA,OAAA,EAAI,WAAWD,EAAO,yBAAyB,GAAG,eAAW,GAAA,CAAC;AAAA,EAAA,EAAA,CACjE,IAEA,gBAAAE,EAAAI,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAH,EAAC,SAAI,WAAWH,EAAO,yBAAyB,GAAG,eAAW,IAAC;AAAA,IAC9DC;AAAA,sBACA,OAAA,EAAI,WAAWD,EAAO,yBAAyB,GAAG,eAAW,GAAA,CAAC;AAAA,EAAA,EAAA,CACjE,EAAA,CAEJ;AAEJ;"}
1
+ {"version":3,"file":"MessageSeparator.js","sources":["../../../src/components/message-separator/MessageSeparator.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport Icon from '@/components/icon/Icon';\nimport CreationOutlineIcon from '@mattermost/compass-icons/components/creation-outline';\nimport styles from './MessageSeparator.module.scss';\n\nexport type MessageSeparatorType = 'date' | 'new-messages' | 'reply-count';\n\nexport interface MessageSeparatorProps extends HTMLAttributes<HTMLDivElement> {\n /** Separator variant. Default: Date. */\n type?: MessageSeparatorType;\n /** Label text. Defaults: 'Today' / 'New messages' / '4 replies'. */\n label?: string;\n /** Show AI summarize button (New Messages type only). Default: false. */\n showAiSummary?: boolean;\n /** Called when Summarize button is clicked. */\n onSummarize?: () => void;\n /** Optional CSS class name. */\n className?: string;\n}\n\nconst DEFAULT_LABELS: Record<MessageSeparatorType, string> = {\n date: 'Today',\n 'new-messages': 'New messages',\n 'reply-count': '4 replies',\n};\n\n/**\n * Message Separators sit between messages in the stream to group them — by day, by reply\n * count, or to mark the boundary between read and unread. They help readers orient\n * themselves when scrolling back through history or returning to a busy channel.\n */\nexport default function MessageSeparator({\n type = 'date',\n label,\n showAiSummary = false,\n onSummarize,\n className = '',\n ...rest\n}: MessageSeparatorProps) {\n const displayLabel = label ?? DEFAULT_LABELS[type];\n\n const rootClass = [\n styles['message-separator'],\n styles[\n `message-separator--${type === 'new-messages' ? 'new' : type === 'reply-count' ? 'reply' : 'date'}`\n ],\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const labelBlock = (\n <div className={styles['message-separator__label']}>\n <span className={styles['message-separator__text']}>\n {displayLabel}\n </span>\n\n {type === 'new-messages' && showAiSummary && (\n <button\n type=\"button\"\n className={styles['message-separator__summarize']}\n onClick={onSummarize}\n aria-label=\"Summarize new messages with AI\"\n >\n <span\n className={styles['message-separator__summarize-icon']}\n aria-hidden\n >\n <Icon size=\"12\" glyph={<CreationOutlineIcon />} />\n </span>\n Summarize\n </button>\n )}\n </div>\n );\n\n return (\n <div className={rootClass} role=\"separator\" {...rest}>\n {type === 'reply-count' ? (\n <>\n <div className={styles['message-separator__reply-gutter']} aria-hidden>\n <div className={styles['message-separator__reply-line-start']} />\n </div>\n {labelBlock}\n <div className={styles['message-separator__line']} aria-hidden />\n </>\n ) : (\n <>\n <div className={styles['message-separator__line']} aria-hidden />\n {labelBlock}\n <div className={styles['message-separator__line']} aria-hidden />\n </>\n )}\n </div>\n );\n}\n"],"names":["DEFAULT_LABELS","MessageSeparator","type","label","showAiSummary","onSummarize","className","rest","displayLabel","rootClass","styles","labelBlock","jsxs","jsx","Icon","CreationOutlineIcon","Fragment"],"mappings":";;;;AAoBA,MAAMA,IAAuD;AAAA,EAC3D,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,eAAe;AACjB;AAOA,SAAwBC,EAAiB;AAAA,EACvC,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,aAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,GAAGC;AACL,GAA0B;AACxB,QAAMC,IAAeL,KAASH,EAAeE,CAAI,GAE3CO,IAAY;AAAA,IAChBC,EAAO,mBAAmB;AAAA,IAC1BA,EACE,sBAAsBR,MAAS,iBAAiB,QAAQA,MAAS,gBAAgB,UAAU,MAAM,EACnG;AAAA,IACAI;AAAA,EAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG,GAELK,IACJ,gBAAAC,EAAC,OAAA,EAAI,WAAWF,EAAO,0BAA0B,GAC/C,UAAA;AAAA,IAAA,gBAAAG,EAAC,QAAA,EAAK,WAAWH,EAAO,yBAAyB,GAC9C,UAAAF,GACH;AAAA,IAECN,MAAS,kBAAkBE,KAC1B,gBAAAQ;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAWF,EAAO,8BAA8B;AAAA,QAChD,SAASL;AAAA,QACT,cAAW;AAAA,QAEX,UAAA;AAAA,UAAA,gBAAAQ;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAWH,EAAO,mCAAmC;AAAA,cACrD,eAAW;AAAA,cAEX,4BAACI,GAAA,EAAK,MAAK,MAAK,OAAO,gBAAAD,EAACE,KAAoB,EAAA,CAAI;AAAA,YAAA;AAAA,UAAA;AAAA,UAC3C;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAET,GAEJ;AAGF,SACE,gBAAAF,EAAC,OAAA,EAAI,WAAWJ,GAAW,MAAK,aAAa,GAAGF,GAC7C,UAAAL,MAAS,gBACR,gBAAAU,EAAAI,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAH,EAAC,OAAA,EAAI,WAAWH,EAAO,iCAAiC,GAAG,eAAW,IACpE,UAAA,gBAAAG,EAAC,OAAA,EAAI,WAAWH,EAAO,qCAAqC,GAAG,GACjE;AAAA,IACCC;AAAA,sBACA,OAAA,EAAI,WAAWD,EAAO,yBAAyB,GAAG,eAAW,GAAA,CAAC;AAAA,EAAA,EAAA,CACjE,IAEA,gBAAAE,EAAAI,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAH,EAAC,SAAI,WAAWH,EAAO,yBAAyB,GAAG,eAAW,IAAC;AAAA,IAC9DC;AAAA,sBACA,OAAA,EAAI,WAAWD,EAAO,yBAAyB,GAAG,eAAW,GAAA,CAAC;AAAA,EAAA,EAAA,CACjE,EAAA,CAEJ;AAEJ;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),b=require("react"),s=require("../icon-button/IconButton.cjs"),i=require("../icon/Icon.cjs"),v=require("../scrollbar/Scrollbar.cjs"),__N=require("@mattermost/compass-icons/components/close.js"),N=__N?.default??__N,__q=require("@mattermost/compass-icons/components/arrow-left.js"),q=__q?.default??__q,y=require("../../utils/string.cjs"),l=require("./Modal.module.scss.cjs");function g({size:t="small",title:r,subtitle:a,showBackButton:n=!1,onBack:u,onClose:c,headerDivider:m=!0,bodyPadding:f="default",children:_,footer:o,footerDivider:j=!0}){const d=b.useId(),x=l.default[`modal--size-${y.toKebab(t)}`],h=f==="menu";return e.jsxs("div",{className:[l.default.modal,x].filter(Boolean).join(" "),role:"dialog","aria-modal":"true","aria-labelledby":d,children:[e.jsxs("div",{className:[l.default.modal__header,!m&&l.default["modal__header--no-divider"]].filter(Boolean).join(" "),children:[e.jsxs("div",{className:l.default["modal__header-inner"],children:[n&&e.jsx(s.default,{"aria-label":"Go back",icon:e.jsx(i.default,{glyph:e.jsx(q,{}),size:"20"}),onClick:u}),e.jsxs("div",{className:l.default["modal__title-group"],children:[e.jsx("h2",{id:d,className:l.default.modal__title,children:r}),a&&e.jsx("p",{className:l.default.modal__subtitle,children:a})]})]}),e.jsx(s.default,{"aria-label":"Close",className:l.default.modal__close,icon:e.jsx(i.default,{glyph:e.jsx(N,{}),size:"20"}),onClick:c})]}),e.jsx("div",{className:l.default.modal__body,children:e.jsx(v.default,{children:e.jsx("div",{className:[l.default["modal__body-inner"],h&&l.default["modal__body-inner--menu"]].filter(Boolean).join(" "),children:_})})}),o&&e.jsx("div",{className:[l.default.modal__footer,!j&&l.default["modal__footer--no-divider"]].filter(Boolean).join(" "),children:o})]})}exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),S=require("react"),p=require("../scrollbar/Scrollbar.cjs"),w=require("../modal-footer/ModalFooter.cjs"),z=require("../modal-header/ModalHeader.cjs"),B=require("../../utils/string.cjs"),l=require("./Modal.module.scss.cjs");function C({className:t="",style:i,size:u="small",title:c,subtitle:m,subtitlePlacement:b="below",hideTitle:f=!1,showBackButton:_=!1,onBack:j,onClose:q,headerDivider:v=!0,headerAction:x,bodyPadding:s="default",scrollable:y=!0,children:M,footer:o,footerLeading:r,footerType:a="2-actions",footerDivider:h=!0}){const d=S.useId(),g=l.default[`modal--size-${B.toKebab(u)}`],I=[l.default["modal__body-inner"],s==="menu"&&l.default["modal__body-inner--menu"],s==="none"&&l.default["modal__body-inner--none"]].filter(Boolean).join(" "),n=e.jsx("div",{className:I,children:M}),N=o!=null||r!=null||a==="spacer-small"||a==="spacer-large";return e.jsxs("div",{className:[l.default.modal,g,t].filter(Boolean).join(" "),style:i,role:"dialog","aria-modal":"true","aria-labelledby":d,children:[e.jsx(z.default,{title:c,titleId:d,subtitle:m,subtitlePlacement:b,hideTitle:f,showBackButton:_,onBack:j,onClose:q,divider:v,headerAction:x}),e.jsx("div",{className:l.default.modal__body,children:y?e.jsx(p.default,{children:n}):n}),N&&e.jsx(w.default,{type:a,divider:h,leading:r,children:o})]})}exports.default=C;
2
2
  //# sourceMappingURL=Modal.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.cjs","sources":["../../../src/components/modal/Modal.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { useId } from 'react';\nimport IconButton from '@/components/icon-button/IconButton';\nimport Icon from '@/components/icon/Icon';\nimport Scrollbar from '@/components/scrollbar/Scrollbar';\nimport CloseIcon from '@mattermost/compass-icons/components/close';\nimport ArrowLeftIcon from '@mattermost/compass-icons/components/arrow-left';\nimport { toKebab } from '@/utils/string';\nimport styles from './Modal.module.scss';\n\nexport type ModalSize = 'small' | 'medium' | 'large';\n\n/** Body inset. `menu` is for MenuItem lists — 8px vertical / 16px horizontal so row labels align with the 32px header/footer margins. */\nexport type ModalBodyPadding = 'default' | 'menu';\n\nexport interface ModalProps {\n /** Width variant. Figma: Size — Small 600px, Medium 704px, Large 832px. */\n size?: ModalSize;\n /** Modal heading text. Always visible. */\n title: ReactNode;\n /** Optional secondary line below the title. */\n subtitle?: ReactNode;\n /** When true, shows a back-arrow button before the title. */\n showBackButton?: boolean;\n /** Called when the back button is clicked. */\n onBack?: () => void;\n /** Called when the × close button is clicked. */\n onClose?: () => void;\n /** Show divider between header and body. Figma: Divider = On. Default: true. */\n headerDivider?: boolean;\n /**\n * Body inset. Default is 32px horizontal / 28px vertical. Use `menu` for\n * MenuItem lists (8px vertical / 16px horizontal so row labels align with\n * the 32px header/footer margins).\n */\n bodyPadding?: ModalBodyPadding;\n /** Body content. */\n children: ReactNode;\n /** Footer slot — typically a group of Buttons, right-aligned by default. */\n footer?: ReactNode;\n /** Show divider between body and footer. Figma: Divider = On. Default: true. */\n footerDivider?: boolean;\n}\n\nexport default function Modal({\n size = 'small',\n title,\n subtitle,\n showBackButton = false,\n onBack,\n onClose,\n headerDivider = true,\n bodyPadding = 'default',\n children,\n footer,\n footerDivider = true,\n}: ModalProps) {\n const titleId = useId();\n const sizeClass = styles[`modal--size-${toKebab(size)}`];\n const menuBody = bodyPadding === 'menu';\n\n return (\n <div\n className={[styles.modal, sizeClass].filter(Boolean).join(' ')}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={titleId}\n >\n <div\n className={[\n styles['modal__header'],\n !headerDivider && styles['modal__header--no-divider'],\n ]\n .filter(Boolean)\n .join(' ')}\n >\n <div className={styles['modal__header-inner']}>\n {showBackButton && (\n <IconButton\n aria-label=\"Go back\"\n icon={<Icon glyph={<ArrowLeftIcon />} size=\"20\" />}\n onClick={onBack}\n />\n )}\n <div className={styles['modal__title-group']}>\n <h2 id={titleId} className={styles['modal__title']}>\n {title}\n </h2>\n {subtitle && (\n <p className={styles['modal__subtitle']}>{subtitle}</p>\n )}\n </div>\n </div>\n <IconButton\n aria-label=\"Close\"\n className={styles['modal__close']}\n icon={<Icon glyph={<CloseIcon />} size=\"20\" />}\n onClick={onClose}\n />\n </div>\n\n <div className={styles['modal__body']}>\n <Scrollbar>\n <div\n className={[\n styles['modal__body-inner'],\n menuBody && styles['modal__body-inner--menu'],\n ]\n .filter(Boolean)\n .join(' ')}\n >\n {children}\n </div>\n </Scrollbar>\n </div>\n\n {footer && (\n <div\n className={[\n styles['modal__footer'],\n !footerDivider && styles['modal__footer--no-divider'],\n ]\n .filter(Boolean)\n .join(' ')}\n >\n {footer}\n </div>\n )}\n </div>\n );\n}\n"],"names":["Modal","size","title","subtitle","showBackButton","onBack","onClose","headerDivider","bodyPadding","children","footer","footerDivider","titleId","useId","sizeClass","styles","toKebab","menuBody","jsxs","jsx","IconButton","Icon","ArrowLeftIcon","CloseIcon","Scrollbar"],"mappings":"kdA4CA,SAAwBA,EAAM,CAC5B,KAAAC,EAAO,QACP,MAAAC,EACA,SAAAC,EACA,eAAAC,EAAiB,GACjB,OAAAC,EACA,QAAAC,EACA,cAAAC,EAAgB,GAChB,YAAAC,EAAc,UACd,SAAAC,EACA,OAAAC,EACA,cAAAC,EAAgB,EAClB,EAAe,CACb,MAAMC,EAAUC,EAAAA,MAAA,EACVC,EAAYC,EAAAA,QAAO,eAAeC,EAAAA,QAAQf,CAAI,CAAC,EAAE,EACjDgB,EAAWT,IAAgB,OAEjC,OACEU,EAAAA,KAAC,MAAA,CACC,UAAW,CAACH,UAAO,MAAOD,CAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAC7D,KAAK,SACL,aAAW,OACX,kBAAiBF,EAEjB,SAAA,CAAAM,EAAAA,KAAC,MAAA,CACC,UAAW,CACTH,EAAAA,QAAO,cACP,CAACR,GAAiBQ,EAAAA,QAAO,2BAA2B,CAAA,EAEnD,OAAO,OAAO,EACd,KAAK,GAAG,EAEX,SAAA,CAAAG,EAAAA,KAAC,MAAA,CAAI,UAAWH,EAAAA,QAAO,qBAAqB,EACzC,SAAA,CAAAX,GACCe,EAAAA,IAACC,EAAAA,QAAA,CACC,aAAW,UACX,WAAOC,UAAA,CAAK,YAAQC,EAAA,EAAc,EAAI,KAAK,KAAK,EAChD,QAASjB,CAAA,CAAA,EAGba,EAAAA,KAAC,MAAA,CAAI,UAAWH,EAAAA,QAAO,oBAAoB,EACzC,SAAA,CAAAI,EAAAA,IAAC,MAAG,GAAIP,EAAS,UAAWG,EAAAA,QAAO,aAChC,SAAAb,EACH,EACCC,GACCgB,EAAAA,IAAC,IAAA,CAAE,UAAWJ,EAAAA,QAAO,gBAAqB,SAAAZ,CAAA,CAAS,CAAA,CAAA,CAEvD,CAAA,EACF,EACAgB,EAAAA,IAACC,EAAAA,QAAA,CACC,aAAW,QACX,UAAWL,EAAAA,QAAO,aAClB,WAAOM,UAAA,CAAK,YAAQE,EAAA,EAAU,EAAI,KAAK,KAAK,EAC5C,QAASjB,CAAA,CAAA,CACX,CAAA,CAAA,QAGD,MAAA,CAAI,UAAWS,UAAO,YACrB,eAACS,UAAA,CACC,SAAAL,EAAAA,IAAC,MAAA,CACC,UAAW,CACTJ,EAAAA,QAAO,mBAAmB,EAC1BE,GAAYF,EAAAA,QAAO,yBAAyB,CAAA,EAE3C,OAAO,OAAO,EACd,KAAK,GAAG,EAEV,SAAAN,CAAA,CAAA,EAEL,CAAA,CACF,EAECC,GACCS,EAAAA,IAAC,MAAA,CACC,UAAW,CACTJ,EAAAA,QAAO,cACP,CAACJ,GAAiBI,EAAAA,QAAO,2BAA2B,CAAA,EAEnD,OAAO,OAAO,EACd,KAAK,GAAG,EAEV,SAAAL,CAAA,CAAA,CACH,CAAA,CAAA,CAIR"}
1
+ {"version":3,"file":"Modal.cjs","sources":["../../../src/components/modal/Modal.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode } from 'react';\nimport { useId } from 'react';\nimport Scrollbar from '@/components/scrollbar/Scrollbar';\nimport ModalFooter from '@/components/modal-footer/ModalFooter';\nimport type { ModalFooterType } from '@/components/modal-footer/ModalFooter';\nimport ModalHeader from '@/components/modal-header/ModalHeader';\nimport type { ModalSubtitlePlacement } from '@/components/modal-header/ModalHeader';\nimport { toKebab } from '@/utils/string';\nimport styles from './Modal.module.scss';\n\nexport type ModalSize = 'small' | 'medium' | 'large';\n\n/**\n * Body inset. `menu` is for MenuItem lists — 8px vertical / 16px horizontal so\n * row labels align with the 32px header/footer margins. `none` removes inset\n * for host-owned full-bleed layouts (e.g. settings sidebars).\n */\nexport type ModalBodyPadding = 'default' | 'menu' | 'none';\n\nexport type { ModalFooterType, ModalSubtitlePlacement };\n\nexport interface ModalProps {\n /** Extra class on the dialog root (size + chrome classes still apply). */\n className?: string;\n /** Inline style on the dialog root — prefer `className` for layout overrides. */\n style?: CSSProperties;\n /** Width variant. Figma: Size — Small 600px, Medium 704px, Large 832px. */\n size?: ModalSize;\n /** Modal heading text. Required for a11y; use `hideTitle` for close-only chrome. */\n title: ReactNode;\n /** Optional secondary line — placement via `subtitlePlacement`. */\n subtitle?: ReactNode;\n /**\n * Where the subtitle sits. Figma Modal Header: Below | Beside.\n * Default: `below`.\n */\n subtitlePlacement?: ModalSubtitlePlacement;\n /** Visually hide the title (close-only header); title remains for `aria-labelledby`. */\n hideTitle?: boolean;\n /** When true, shows a back-arrow button before the title. */\n showBackButton?: boolean;\n /** Called when the back button is clicked. */\n onBack?: () => void;\n /** Called when the × close button is clicked. */\n onClose?: () => void;\n /** Show divider between header and body. Default: true. */\n headerDivider?: boolean;\n /** Optional control before close (Button, search field, …). */\n headerAction?: ReactNode;\n /**\n * Body inset. Default is 32px horizontal / 28px vertical. Use `menu` for\n * MenuItem lists. Use `none` when the host owns padding.\n */\n bodyPadding?: ModalBodyPadding;\n /**\n * When true (default), wraps body content in Scrollbar. Set false when the\n * host manages scroll inside panes.\n */\n scrollable?: boolean;\n /** Body content. */\n children: ReactNode;\n /** Footer slot — typically Buttons. Wrapped in `ModalFooter`. */\n footer?: ReactNode;\n /** Left footer slot (pagination status, PaginationDots, …). */\n footerLeading?: ReactNode;\n /** Footer layout. Figma Modal Footer Type. Default: `2-actions`. */\n footerType?: ModalFooterType;\n /** Show divider between body and footer. Default: true. */\n footerDivider?: boolean;\n}\n\n/**\n * Modal dialog shell — composes ModalHeader, scrollable body, and ModalFooter.\n * Host owns portal, overlay, focus trap, and open/close.\n */\nexport default function Modal({\n className = '',\n style,\n size = 'small',\n title,\n subtitle,\n subtitlePlacement = 'below',\n hideTitle = false,\n showBackButton = false,\n onBack,\n onClose,\n headerDivider = true,\n headerAction,\n bodyPadding = 'default',\n scrollable = true,\n children,\n footer,\n footerLeading,\n footerType = '2-actions',\n footerDivider = true,\n}: ModalProps) {\n const titleId = useId();\n const sizeClass = styles[`modal--size-${toKebab(size)}`];\n const bodyInnerClass = [\n styles['modal__body-inner'],\n bodyPadding === 'menu' && styles['modal__body-inner--menu'],\n bodyPadding === 'none' && styles['modal__body-inner--none'],\n ]\n .filter(Boolean)\n .join(' ');\n\n const bodyInner = <div className={bodyInnerClass}>{children}</div>;\n const showFooter =\n footer != null ||\n footerLeading != null ||\n footerType === 'spacer-small' ||\n footerType === 'spacer-large';\n\n return (\n <div\n className={[styles.modal, sizeClass, className].filter(Boolean).join(' ')}\n style={style}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={titleId}\n >\n <ModalHeader\n title={title}\n titleId={titleId}\n subtitle={subtitle}\n subtitlePlacement={subtitlePlacement}\n hideTitle={hideTitle}\n showBackButton={showBackButton}\n onBack={onBack}\n onClose={onClose}\n divider={headerDivider}\n headerAction={headerAction}\n />\n\n <div className={styles['modal__body']}>\n {scrollable ? <Scrollbar>{bodyInner}</Scrollbar> : bodyInner}\n </div>\n\n {showFooter && (\n <ModalFooter\n type={footerType}\n divider={footerDivider}\n leading={footerLeading}\n >\n {footer}\n </ModalFooter>\n )}\n </div>\n );\n}\n"],"names":["Modal","className","style","size","title","subtitle","subtitlePlacement","hideTitle","showBackButton","onBack","onClose","headerDivider","headerAction","bodyPadding","scrollable","children","footer","footerLeading","footerType","footerDivider","titleId","useId","sizeClass","styles","toKebab","bodyInnerClass","bodyInner","jsx","showFooter","jsxs","ModalHeader","Scrollbar","ModalFooter"],"mappings":"6WA2EA,SAAwBA,EAAM,CAC5B,UAAAC,EAAY,GACZ,MAAAC,EACA,KAAAC,EAAO,QACP,MAAAC,EACA,SAAAC,EACA,kBAAAC,EAAoB,QACpB,UAAAC,EAAY,GACZ,eAAAC,EAAiB,GACjB,OAAAC,EACA,QAAAC,EACA,cAAAC,EAAgB,GAChB,aAAAC,EACA,YAAAC,EAAc,UACd,WAAAC,EAAa,GACb,SAAAC,EACA,OAAAC,EACA,cAAAC,EACA,WAAAC,EAAa,YACb,cAAAC,EAAgB,EAClB,EAAe,CACb,MAAMC,EAAUC,EAAAA,MAAA,EACVC,EAAYC,EAAAA,QAAO,eAAeC,EAAAA,QAAQrB,CAAI,CAAC,EAAE,EACjDsB,EAAiB,CACrBF,EAAAA,QAAO,mBAAmB,EAC1BV,IAAgB,QAAUU,EAAAA,QAAO,yBAAyB,EAC1DV,IAAgB,QAAUU,EAAAA,QAAO,yBAAyB,CAAA,EAEzD,OAAO,OAAO,EACd,KAAK,GAAG,EAELG,EAAYC,EAAAA,IAAC,MAAA,CAAI,UAAWF,EAAiB,SAAAV,EAAS,EACtDa,EACJZ,GAAU,MACVC,GAAiB,MACjBC,IAAe,gBACfA,IAAe,eAEjB,OACEW,EAAAA,KAAC,MAAA,CACC,UAAW,CAACN,EAAAA,QAAO,MAAOD,EAAWrB,CAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EACxE,MAAAC,EACA,KAAK,SACL,aAAW,OACX,kBAAiBkB,EAEjB,SAAA,CAAAO,EAAAA,IAACG,EAAAA,QAAA,CACC,MAAA1B,EACA,QAAAgB,EACA,SAAAf,EACA,kBAAAC,EACA,UAAAC,EACA,eAAAC,EACA,OAAAC,EACA,QAAAC,EACA,QAASC,EACT,aAAAC,CAAA,CAAA,EAGFe,EAAAA,IAAC,MAAA,CAAI,UAAWJ,EAAAA,QAAO,YACpB,SAAAT,EAAaa,EAAAA,IAACI,EAAAA,QAAA,CAAW,SAAAL,CAAA,CAAU,EAAeA,EACrD,EAECE,GACCD,EAAAA,IAACK,EAAAA,QAAA,CACC,KAAMd,EACN,QAASC,EACT,QAASF,EAER,SAAAD,CAAA,CAAA,CACH,CAAA,CAAA,CAIR"}
@@ -1,34 +1,66 @@
1
- import { ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { ModalFooterType } from '../modal-footer/ModalFooter';
3
+ import { ModalSubtitlePlacement } from '../modal-header/ModalHeader';
2
4
  export type ModalSize = 'small' | 'medium' | 'large';
3
- /** Body inset. `menu` is for MenuItem lists — 8px vertical / 16px horizontal so row labels align with the 32px header/footer margins. */
4
- export type ModalBodyPadding = 'default' | 'menu';
5
+ /**
6
+ * Body inset. `menu` is for MenuItem lists — 8px vertical / 16px horizontal so
7
+ * row labels align with the 32px header/footer margins. `none` removes inset
8
+ * for host-owned full-bleed layouts (e.g. settings sidebars).
9
+ */
10
+ export type ModalBodyPadding = 'default' | 'menu' | 'none';
11
+ export type { ModalFooterType, ModalSubtitlePlacement };
5
12
  export interface ModalProps {
13
+ /** Extra class on the dialog root (size + chrome classes still apply). */
14
+ className?: string;
15
+ /** Inline style on the dialog root — prefer `className` for layout overrides. */
16
+ style?: CSSProperties;
6
17
  /** Width variant. Figma: Size — Small 600px, Medium 704px, Large 832px. */
7
18
  size?: ModalSize;
8
- /** Modal heading text. Always visible. */
19
+ /** Modal heading text. Required for a11y; use `hideTitle` for close-only chrome. */
9
20
  title: ReactNode;
10
- /** Optional secondary line below the title. */
21
+ /** Optional secondary line — placement via `subtitlePlacement`. */
11
22
  subtitle?: ReactNode;
23
+ /**
24
+ * Where the subtitle sits. Figma Modal Header: Below | Beside.
25
+ * Default: `below`.
26
+ */
27
+ subtitlePlacement?: ModalSubtitlePlacement;
28
+ /** Visually hide the title (close-only header); title remains for `aria-labelledby`. */
29
+ hideTitle?: boolean;
12
30
  /** When true, shows a back-arrow button before the title. */
13
31
  showBackButton?: boolean;
14
32
  /** Called when the back button is clicked. */
15
33
  onBack?: () => void;
16
34
  /** Called when the × close button is clicked. */
17
35
  onClose?: () => void;
18
- /** Show divider between header and body. Figma: Divider = On. Default: true. */
36
+ /** Show divider between header and body. Default: true. */
19
37
  headerDivider?: boolean;
38
+ /** Optional control before close (Button, search field, …). */
39
+ headerAction?: ReactNode;
20
40
  /**
21
41
  * Body inset. Default is 32px horizontal / 28px vertical. Use `menu` for
22
- * MenuItem lists (8px vertical / 16px horizontal so row labels align with
23
- * the 32px header/footer margins).
42
+ * MenuItem lists. Use `none` when the host owns padding.
24
43
  */
25
44
  bodyPadding?: ModalBodyPadding;
45
+ /**
46
+ * When true (default), wraps body content in Scrollbar. Set false when the
47
+ * host manages scroll inside panes.
48
+ */
49
+ scrollable?: boolean;
26
50
  /** Body content. */
27
51
  children: ReactNode;
28
- /** Footer slot — typically a group of Buttons, right-aligned by default. */
52
+ /** Footer slot — typically Buttons. Wrapped in `ModalFooter`. */
29
53
  footer?: ReactNode;
30
- /** Show divider between body and footer. Figma: Divider = On. Default: true. */
54
+ /** Left footer slot (pagination status, PaginationDots, …). */
55
+ footerLeading?: ReactNode;
56
+ /** Footer layout. Figma Modal Footer Type. Default: `2-actions`. */
57
+ footerType?: ModalFooterType;
58
+ /** Show divider between body and footer. Default: true. */
31
59
  footerDivider?: boolean;
32
60
  }
33
- export default function Modal({ size, title, subtitle, showBackButton, onBack, onClose, headerDivider, bodyPadding, children, footer, footerDivider, }: ModalProps): import("react/jsx-runtime").JSX.Element;
61
+ /**
62
+ * Modal dialog shell — composes ModalHeader, scrollable body, and ModalFooter.
63
+ * Host owns portal, overlay, focus trap, and open/close.
64
+ */
65
+ export default function Modal({ className, style, size, title, subtitle, subtitlePlacement, hideTitle, showBackButton, onBack, onClose, headerDivider, headerAction, bodyPadding, scrollable, children, footer, footerLeading, footerType, footerDivider, }: ModalProps): import("react/jsx-runtime").JSX.Element;
34
66
  //# sourceMappingURL=Modal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD,yIAAyI;AACzI,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,MAAM,CAAC;AAElD,MAAM,WAAW,UAAU;IACzB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,0CAA0C;IAC1C,KAAK,EAAE,SAAS,CAAC;IACjB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,6DAA6D;IAC7D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,gFAAgF;IAChF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,oBAAoB;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,gFAAgF;IAChF,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,IAAc,EACd,KAAK,EACL,QAAQ,EACR,cAAsB,EACtB,MAAM,EACN,OAAO,EACP,aAAoB,EACpB,WAAuB,EACvB,QAAQ,EACR,MAAM,EACN,aAAoB,GACrB,EAAE,UAAU,2CA0EZ"}
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAItD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAInF,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3D,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,CAAC;AAExD,MAAM,WAAW,UAAU;IACzB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,oFAAoF;IACpF,KAAK,EAAE,SAAS,CAAC;IACjB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C,wFAAwF;IACxF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,iEAAiE;IACjE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,+DAA+D;IAC/D,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,oEAAoE;IACpE,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,2DAA2D;IAC3D,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,SAAc,EACd,KAAK,EACL,IAAc,EACd,KAAK,EACL,QAAQ,EACR,iBAA2B,EAC3B,SAAiB,EACjB,cAAsB,EACtB,MAAM,EACN,OAAO,EACP,aAAoB,EACpB,YAAY,EACZ,WAAuB,EACvB,UAAiB,EACjB,QAAQ,EACR,MAAM,EACN,aAAa,EACb,UAAwB,EACxB,aAAoB,GACrB,EAAE,UAAU,2CAsDZ"}
@@ -1,86 +1,68 @@
1
- import { jsxs as e, jsx as l } from "react/jsx-runtime";
2
- import { useId as v } from "react";
3
- import d from "../icon-button/IconButton.js";
4
- import m from "../icon/Icon.js";
5
- import y from "../scrollbar/Scrollbar.js";
6
- import __j from "@mattermost/compass-icons/components/close.js";const j=__j&&__j.default?__j.default:__j;
7
- import __B from "@mattermost/compass-icons/components/arrow-left.js";const B=__B&&__B.default?__B.default:__B;
8
- import { toKebab as I } from "../../utils/string.js";
9
- import o from "./Modal.module.scss.js";
10
- function L({
11
- size: n = "small",
12
- title: s,
13
- subtitle: a,
14
- showBackButton: t = !1,
15
- onBack: c,
16
- onClose: _,
17
- headerDivider: f = !0,
18
- bodyPadding: h = "default",
19
- children: p,
20
- footer: i,
21
- footerDivider: u = !0
1
+ import { jsxs as z, jsx as o } from "react/jsx-runtime";
2
+ import { useId as B } from "react";
3
+ import C from "../scrollbar/Scrollbar.js";
4
+ import F from "../modal-footer/ModalFooter.js";
5
+ import g from "../modal-header/ModalHeader.js";
6
+ import { toKebab as H } from "../../utils/string.js";
7
+ import l from "./Modal.module.scss.js";
8
+ function E({
9
+ className: d = "",
10
+ style: m,
11
+ size: t = "small",
12
+ title: c,
13
+ subtitle: u,
14
+ subtitlePlacement: b = "below",
15
+ hideTitle: f = !1,
16
+ showBackButton: p = !1,
17
+ onBack: _,
18
+ onClose: y,
19
+ headerDivider: h = !0,
20
+ headerAction: v,
21
+ bodyPadding: r = "default",
22
+ scrollable: j = !0,
23
+ children: I,
24
+ footer: a,
25
+ footerLeading: n,
26
+ footerType: e = "2-actions",
27
+ footerDivider: x = !0
22
28
  }) {
23
- const r = v(), b = o[`modal--size-${I(n)}`], N = h === "menu";
24
- return /* @__PURE__ */ e(
29
+ const i = B(), M = l[`modal--size-${H(t)}`], N = [
30
+ l["modal__body-inner"],
31
+ r === "menu" && l["modal__body-inner--menu"],
32
+ r === "none" && l["modal__body-inner--none"]
33
+ ].filter(Boolean).join(" "), s = /* @__PURE__ */ o("div", { className: N, children: I }), w = a != null || n != null || e === "spacer-small" || e === "spacer-large";
34
+ return /* @__PURE__ */ z(
25
35
  "div",
26
36
  {
27
- className: [o.modal, b].filter(Boolean).join(" "),
37
+ className: [l.modal, M, d].filter(Boolean).join(" "),
38
+ style: m,
28
39
  role: "dialog",
29
40
  "aria-modal": "true",
30
- "aria-labelledby": r,
41
+ "aria-labelledby": i,
31
42
  children: [
32
- /* @__PURE__ */ e(
33
- "div",
43
+ /* @__PURE__ */ o(
44
+ g,
34
45
  {
35
- className: [
36
- o.modal__header,
37
- !f && o["modal__header--no-divider"]
38
- ].filter(Boolean).join(" "),
39
- children: [
40
- /* @__PURE__ */ e("div", { className: o["modal__header-inner"], children: [
41
- t && /* @__PURE__ */ l(
42
- d,
43
- {
44
- "aria-label": "Go back",
45
- icon: /* @__PURE__ */ l(m, { glyph: /* @__PURE__ */ l(B, {}), size: "20" }),
46
- onClick: c
47
- }
48
- ),
49
- /* @__PURE__ */ e("div", { className: o["modal__title-group"], children: [
50
- /* @__PURE__ */ l("h2", { id: r, className: o.modal__title, children: s }),
51
- a && /* @__PURE__ */ l("p", { className: o.modal__subtitle, children: a })
52
- ] })
53
- ] }),
54
- /* @__PURE__ */ l(
55
- d,
56
- {
57
- "aria-label": "Close",
58
- className: o.modal__close,
59
- icon: /* @__PURE__ */ l(m, { glyph: /* @__PURE__ */ l(j, {}), size: "20" }),
60
- onClick: _
61
- }
62
- )
63
- ]
46
+ title: c,
47
+ titleId: i,
48
+ subtitle: u,
49
+ subtitlePlacement: b,
50
+ hideTitle: f,
51
+ showBackButton: p,
52
+ onBack: _,
53
+ onClose: y,
54
+ divider: h,
55
+ headerAction: v
64
56
  }
65
57
  ),
66
- /* @__PURE__ */ l("div", { className: o.modal__body, children: /* @__PURE__ */ l(y, { children: /* @__PURE__ */ l(
67
- "div",
58
+ /* @__PURE__ */ o("div", { className: l.modal__body, children: j ? /* @__PURE__ */ o(C, { children: s }) : s }),
59
+ w && /* @__PURE__ */ o(
60
+ F,
68
61
  {
69
- className: [
70
- o["modal__body-inner"],
71
- N && o["modal__body-inner--menu"]
72
- ].filter(Boolean).join(" "),
73
- children: p
74
- }
75
- ) }) }),
76
- i && /* @__PURE__ */ l(
77
- "div",
78
- {
79
- className: [
80
- o.modal__footer,
81
- !u && o["modal__footer--no-divider"]
82
- ].filter(Boolean).join(" "),
83
- children: i
62
+ type: e,
63
+ divider: x,
64
+ leading: n,
65
+ children: a
84
66
  }
85
67
  )
86
68
  ]
@@ -88,6 +70,6 @@ function L({
88
70
  );
89
71
  }
90
72
  export {
91
- L as default
73
+ E as default
92
74
  };
93
75
  //# sourceMappingURL=Modal.js.map