@mattermost/compass-ui 0.1.0-alpha.4 → 0.1.0-alpha.6

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 (970) hide show
  1. package/README.md +1 -0
  2. package/dist/compass-ui-standalone.css +10 -0
  3. package/dist/compass-ui.css +2 -0
  4. package/dist/components/action-button/ActionButton.cjs +1 -1
  5. package/dist/components/action-button/ActionButton.cjs.map +1 -1
  6. package/dist/components/action-button/ActionButton.d.ts +2 -1
  7. package/dist/components/action-button/ActionButton.d.ts.map +1 -1
  8. package/dist/components/action-button/ActionButton.js +22 -12
  9. package/dist/components/action-button/ActionButton.js.map +1 -1
  10. package/dist/components/action-button/ActionButton.module.css +1 -1
  11. package/dist/components/action-button/ActionButton.module.scss.cjs +1 -1
  12. package/dist/components/action-button/ActionButton.module.scss.js +5 -5
  13. package/dist/components/attachment-card/AttachmentCard.cjs +1 -1
  14. package/dist/components/attachment-card/AttachmentCard.cjs.map +1 -1
  15. package/dist/components/attachment-card/AttachmentCard.d.ts +3 -1
  16. package/dist/components/attachment-card/AttachmentCard.d.ts.map +1 -1
  17. package/dist/components/attachment-card/AttachmentCard.js +92 -82
  18. package/dist/components/attachment-card/AttachmentCard.js.map +1 -1
  19. package/dist/components/attachment-card/AttachmentCard.module.css +1 -1
  20. package/dist/components/attachment-card/AttachmentCard.module.scss.cjs +1 -1
  21. package/dist/components/attachment-card/AttachmentCard.module.scss.js +19 -18
  22. package/dist/components/attachment-card/AttachmentCard.module.scss.js.map +1 -1
  23. package/dist/components/button/Button.module.css +1 -1
  24. package/dist/components/button/Button.module.scss.cjs +1 -1
  25. package/dist/components/button/Button.module.scss.js +15 -15
  26. package/dist/components/channel-sidebar-item/ChannelSidebarItem.cjs +1 -1
  27. package/dist/components/channel-sidebar-item/ChannelSidebarItem.cjs.map +1 -1
  28. package/dist/components/channel-sidebar-item/ChannelSidebarItem.d.ts +4 -1
  29. package/dist/components/channel-sidebar-item/ChannelSidebarItem.d.ts.map +1 -1
  30. package/dist/components/channel-sidebar-item/ChannelSidebarItem.js +112 -92
  31. package/dist/components/channel-sidebar-item/ChannelSidebarItem.js.map +1 -1
  32. package/dist/components/channel-sidebar-item/ChannelSidebarItem.module.css +1 -1
  33. package/dist/components/channel-sidebar-item/ChannelSidebarItem.module.scss.cjs +1 -1
  34. package/dist/components/channel-sidebar-item/ChannelSidebarItem.module.scss.js +22 -20
  35. package/dist/components/channel-sidebar-item/ChannelSidebarItem.module.scss.js.map +1 -1
  36. package/dist/components/checkbox/Checkbox.cjs +1 -1
  37. package/dist/components/checkbox/Checkbox.cjs.map +1 -1
  38. package/dist/components/checkbox/Checkbox.d.ts +3 -3
  39. package/dist/components/checkbox/Checkbox.d.ts.map +1 -1
  40. package/dist/components/checkbox/Checkbox.js +21 -20
  41. package/dist/components/checkbox/Checkbox.js.map +1 -1
  42. package/dist/components/checkbox/Checkbox.module.css +1 -1
  43. package/dist/components/checkbox/Checkbox.module.scss.cjs +1 -1
  44. package/dist/components/checkbox/Checkbox.module.scss.js +7 -7
  45. package/dist/components/chip/Chip.cjs +1 -1
  46. package/dist/components/chip/Chip.cjs.map +1 -1
  47. package/dist/components/chip/Chip.d.ts +3 -5
  48. package/dist/components/chip/Chip.d.ts.map +1 -1
  49. package/dist/components/chip/Chip.js +90 -48
  50. package/dist/components/chip/Chip.js.map +1 -1
  51. package/dist/components/chip/Chip.module.css +1 -1
  52. package/dist/components/chip/Chip.module.scss.cjs +1 -1
  53. package/dist/components/chip/Chip.module.scss.js +9 -9
  54. package/dist/components/chip/ChipGroup.cjs +2 -0
  55. package/dist/components/chip/ChipGroup.cjs.map +1 -0
  56. package/dist/components/chip/ChipGroup.d.ts +16 -0
  57. package/dist/components/chip/ChipGroup.d.ts.map +1 -0
  58. package/dist/components/chip/ChipGroup.js +112 -0
  59. package/dist/components/chip/ChipGroup.js.map +1 -0
  60. package/dist/components/chip/ChipGroup.module.css +1 -0
  61. package/dist/components/chip/ChipGroup.module.scss.cjs +2 -0
  62. package/dist/components/chip/ChipGroup.module.scss.cjs.map +1 -0
  63. package/dist/components/chip/ChipGroup.module.scss.js +7 -0
  64. package/dist/components/chip/ChipGroup.module.scss.js.map +1 -0
  65. package/dist/components/chip/index.cjs +1 -1
  66. package/dist/components/chip/index.d.ts +2 -0
  67. package/dist/components/chip/index.d.ts.map +1 -1
  68. package/dist/components/chip/index.js +4 -2
  69. package/dist/components/chip/index.js.map +1 -1
  70. package/dist/components/combobox/Combobox.cjs +1 -1
  71. package/dist/components/combobox/Combobox.cjs.map +1 -1
  72. package/dist/components/combobox/Combobox.d.ts.map +1 -1
  73. package/dist/components/combobox/Combobox.js +115 -109
  74. package/dist/components/combobox/Combobox.js.map +1 -1
  75. package/dist/components/combobox/Combobox.module.css +1 -1
  76. package/dist/components/combobox/Combobox.module.scss.cjs +1 -1
  77. package/dist/components/combobox/Combobox.module.scss.js +27 -29
  78. package/dist/components/date-range-picker/DateRangePicker.cjs +1 -1
  79. package/dist/components/date-range-picker/DateRangePicker.cjs.map +1 -1
  80. package/dist/components/date-range-picker/DateRangePicker.js +154 -154
  81. package/dist/components/date-range-picker/DateRangePicker.js.map +1 -1
  82. package/dist/components/date-range-picker/DateRangePicker.module.css +1 -1
  83. package/dist/components/date-range-picker/DateRangePicker.module.scss.cjs +1 -1
  84. package/dist/components/date-range-picker/DateRangePicker.module.scss.js +28 -45
  85. package/dist/components/dropdown/Dropdown.cjs +1 -1
  86. package/dist/components/dropdown/Dropdown.cjs.map +1 -1
  87. package/dist/components/dropdown/Dropdown.js +1 -1
  88. package/dist/components/dropdown/Dropdown.js.map +1 -1
  89. package/dist/components/dropdown/Dropdown.module.css +1 -1
  90. package/dist/components/dropdown/Dropdown.module.scss.cjs +1 -1
  91. package/dist/components/dropdown/Dropdown.module.scss.js +15 -16
  92. package/dist/components/global-banner/GlobalBanner.module.css +1 -1
  93. package/dist/components/global-banner/GlobalBanner.module.scss.cjs +1 -1
  94. package/dist/components/global-banner/GlobalBanner.module.scss.js +10 -10
  95. package/dist/components/icon/Icon.js +6 -6
  96. package/dist/components/icon-button/IconButton.cjs +1 -1
  97. package/dist/components/icon-button/IconButton.cjs.map +1 -1
  98. package/dist/components/icon-button/IconButton.d.ts +1 -1
  99. package/dist/components/icon-button/IconButton.d.ts.map +1 -1
  100. package/dist/components/icon-button/IconButton.js +14 -14
  101. package/dist/components/icon-button/IconButton.js.map +1 -1
  102. package/dist/components/icon-button/IconButton.module.css +1 -1
  103. package/dist/components/icon-button/IconButton.module.scss.cjs +1 -1
  104. package/dist/components/icon-button/IconButton.module.scss.js +15 -15
  105. package/dist/components/illustration/Illustration.cjs.map +1 -1
  106. package/dist/components/illustration/Illustration.d.ts +5 -5
  107. package/dist/components/illustration/Illustration.d.ts.map +1 -1
  108. package/dist/components/illustration/Illustration.js.map +1 -1
  109. package/dist/components/image-preview/ImagePreview.cjs +1 -1
  110. package/dist/components/image-preview/ImagePreview.cjs.map +1 -1
  111. package/dist/components/image-preview/ImagePreview.d.ts +2 -1
  112. package/dist/components/image-preview/ImagePreview.d.ts.map +1 -1
  113. package/dist/components/image-preview/ImagePreview.js +70 -52
  114. package/dist/components/image-preview/ImagePreview.js.map +1 -1
  115. package/dist/components/image-preview/ImagePreview.module.css +1 -1
  116. package/dist/components/image-preview/ImagePreview.module.scss.cjs +1 -1
  117. package/dist/components/image-preview/ImagePreview.module.scss.js +15 -15
  118. package/dist/components/menu-item/MenuItem.cjs +1 -1
  119. package/dist/components/menu-item/MenuItem.cjs.map +1 -1
  120. package/dist/components/menu-item/MenuItem.js +11 -11
  121. package/dist/components/menu-item/MenuItem.js.map +1 -1
  122. package/dist/components/menu-item/MenuItem.module.css +1 -1
  123. package/dist/components/menu-item/MenuItem.module.scss.cjs +1 -1
  124. package/dist/components/menu-item/MenuItem.module.scss.js +16 -16
  125. package/dist/components/message-reactions/MessageReactions.module.css +1 -1
  126. package/dist/components/message-reactions/MessageReactions.module.scss.cjs +1 -1
  127. package/dist/components/message-reactions/MessageReactions.module.scss.js +12 -12
  128. package/dist/components/more-unreads-banner/MoreUnreadsBanner.module.css +1 -1
  129. package/dist/components/more-unreads-banner/MoreUnreadsBanner.module.scss.cjs +1 -1
  130. package/dist/components/more-unreads-banner/MoreUnreadsBanner.module.scss.js +5 -5
  131. package/dist/components/pagination-dots/PaginationDots.module.css +1 -1
  132. package/dist/components/pagination-dots/PaginationDots.module.scss.cjs +1 -1
  133. package/dist/components/pagination-dots/PaginationDots.module.scss.js +8 -8
  134. package/dist/components/radio/Radio.cjs +1 -1
  135. package/dist/components/radio/Radio.cjs.map +1 -1
  136. package/dist/components/radio/Radio.d.ts +3 -3
  137. package/dist/components/radio/Radio.d.ts.map +1 -1
  138. package/dist/components/radio/Radio.js +11 -11
  139. package/dist/components/radio/Radio.js.map +1 -1
  140. package/dist/components/radio/Radio.module.css +1 -1
  141. package/dist/components/radio/Radio.module.scss.cjs +1 -1
  142. package/dist/components/radio/Radio.module.scss.js +11 -11
  143. package/dist/components/right-sidebar-header/RightSidebarHeader.cjs +2 -0
  144. package/dist/components/right-sidebar-header/RightSidebarHeader.cjs.map +1 -0
  145. package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.d.ts +1 -1
  146. package/dist/components/right-sidebar-header/RightSidebarHeader.d.ts.map +1 -0
  147. package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.js +3 -3
  148. package/dist/components/right-sidebar-header/RightSidebarHeader.js.map +1 -0
  149. package/dist/components/right-sidebar-header/RightSidebarHeader.module.css +1 -0
  150. package/dist/components/right-sidebar-header/RightSidebarHeader.module.scss.cjs +2 -0
  151. package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.module.scss.js +12 -12
  152. package/dist/components/{app-bar-item → right-sidebar-header}/index.cjs +1 -1
  153. package/dist/components/right-sidebar-header/index.d.ts +3 -0
  154. package/dist/components/right-sidebar-header/index.d.ts.map +1 -0
  155. package/dist/components/right-sidebar-header/index.js +5 -0
  156. package/dist/components/search-input/SearchInput.cjs +1 -1
  157. package/dist/components/search-input/SearchInput.cjs.map +1 -1
  158. package/dist/components/search-input/SearchInput.d.ts +2 -0
  159. package/dist/components/search-input/SearchInput.d.ts.map +1 -1
  160. package/dist/components/search-input/SearchInput.js +78 -64
  161. package/dist/components/search-input/SearchInput.js.map +1 -1
  162. package/dist/components/search-input/SearchInput.module.css +1 -1
  163. package/dist/components/search-input/SearchInput.module.scss.cjs +1 -1
  164. package/dist/components/search-input/SearchInput.module.scss.js +16 -23
  165. package/dist/components/search-input/SearchInput.module.scss.js.map +1 -1
  166. package/dist/components/select/Select.cjs +1 -1
  167. package/dist/components/select/Select.cjs.map +1 -1
  168. package/dist/components/select/Select.d.ts.map +1 -1
  169. package/dist/components/select/Select.js +64 -64
  170. package/dist/components/select/Select.js.map +1 -1
  171. package/dist/components/select/Select.module.css +1 -1
  172. package/dist/components/select/Select.module.scss.cjs +1 -1
  173. package/dist/components/select/Select.module.scss.js +24 -26
  174. package/dist/components/switch/Switch.cjs +1 -1
  175. package/dist/components/switch/Switch.cjs.map +1 -1
  176. package/dist/components/switch/Switch.d.ts.map +1 -1
  177. package/dist/components/switch/Switch.js +2 -2
  178. package/dist/components/switch/Switch.js.map +1 -1
  179. package/dist/components/switch/Switch.module.css +1 -1
  180. package/dist/components/switch/Switch.module.scss.cjs +1 -1
  181. package/dist/components/switch/Switch.module.scss.js +15 -15
  182. package/dist/components/tabs/Tabs.cjs +1 -1
  183. package/dist/components/tabs/Tabs.cjs.map +1 -1
  184. package/dist/components/tabs/Tabs.d.ts +4 -0
  185. package/dist/components/tabs/Tabs.d.ts.map +1 -1
  186. package/dist/components/tabs/Tabs.js +47 -31
  187. package/dist/components/tabs/Tabs.js.map +1 -1
  188. package/dist/components/tabs/Tabs.module.css +1 -1
  189. package/dist/components/tabs/Tabs.module.scss.cjs +1 -1
  190. package/dist/components/tabs/Tabs.module.scss.js +8 -7
  191. package/dist/components/tabs/Tabs.module.scss.js.map +1 -1
  192. package/dist/components/tag/Tag.module.css +1 -1
  193. package/dist/components/tag/Tag.module.scss.cjs +1 -1
  194. package/dist/components/tag/Tag.module.scss.js +15 -15
  195. package/dist/components/text-area/TextArea.cjs +1 -1
  196. package/dist/components/text-area/TextArea.cjs.map +1 -1
  197. package/dist/components/text-area/TextArea.d.ts.map +1 -1
  198. package/dist/components/text-area/TextArea.js +57 -56
  199. package/dist/components/text-area/TextArea.js.map +1 -1
  200. package/dist/components/text-area/TextArea.module.css +1 -1
  201. package/dist/components/text-area/TextArea.module.scss.cjs +1 -1
  202. package/dist/components/text-area/TextArea.module.scss.js +12 -17
  203. package/dist/components/text-input/TextInput.cjs +1 -1
  204. package/dist/components/text-input/TextInput.cjs.map +1 -1
  205. package/dist/components/text-input/TextInput.d.ts.map +1 -1
  206. package/dist/components/text-input/TextInput.js +59 -58
  207. package/dist/components/text-input/TextInput.js.map +1 -1
  208. package/dist/components/text-input/TextInput.module.css +1 -1
  209. package/dist/components/text-input/TextInput.module.scss.cjs +1 -1
  210. package/dist/components/text-input/TextInput.module.scss.js +16 -24
  211. package/dist/components/thread-footer/ThreadFooter.cjs +1 -1
  212. package/dist/components/thread-footer/ThreadFooter.cjs.map +1 -1
  213. package/dist/components/thread-footer/ThreadFooter.d.ts +7 -8
  214. package/dist/components/thread-footer/ThreadFooter.d.ts.map +1 -1
  215. package/dist/components/thread-footer/ThreadFooter.js +59 -62
  216. package/dist/components/thread-footer/ThreadFooter.js.map +1 -1
  217. package/dist/components/thread-footer/ThreadFooter.module.css +1 -1
  218. package/dist/components/thread-footer/ThreadFooter.module.scss.cjs +1 -1
  219. package/dist/components/thread-footer/ThreadFooter.module.scss.js +17 -17
  220. package/dist/components/thread-footer/index.d.ts +7 -1
  221. package/dist/components/thread-footer/index.d.ts.map +1 -1
  222. package/dist/components/thread-list-item/ThreadListItem.cjs +1 -1
  223. package/dist/components/thread-list-item/ThreadListItem.cjs.map +1 -1
  224. package/dist/components/thread-list-item/ThreadListItem.d.ts +1 -1
  225. package/dist/components/thread-list-item/ThreadListItem.d.ts.map +1 -1
  226. package/dist/components/thread-list-item/ThreadListItem.js +102 -87
  227. package/dist/components/thread-list-item/ThreadListItem.js.map +1 -1
  228. package/dist/components/thread-list-item/ThreadListItem.module.css +1 -1
  229. package/dist/components/thread-list-item/ThreadListItem.module.scss.cjs +1 -1
  230. package/dist/components/thread-list-item/ThreadListItem.module.scss.js +26 -23
  231. package/dist/components/thread-list-item/ThreadListItem.module.scss.js.map +1 -1
  232. package/dist/components/toast/Toast.cjs +1 -1
  233. package/dist/components/toast/Toast.cjs.map +1 -1
  234. package/dist/components/toast/Toast.d.ts.map +1 -1
  235. package/dist/components/toast/Toast.js +31 -31
  236. package/dist/components/toast/Toast.js.map +1 -1
  237. package/dist/components/toast/Toast.module.css +1 -1
  238. package/dist/components/toast/Toast.module.scss.cjs +1 -1
  239. package/dist/components/toast/Toast.module.scss.js +14 -13
  240. package/dist/components/toast/Toast.module.scss.js.map +1 -1
  241. package/dist/components/tour-point/TourPoint.module.css +1 -1
  242. package/dist/components/tour-point/TourPoint.module.scss.cjs +1 -1
  243. package/dist/components/tour-point/TourPoint.module.scss.js +28 -28
  244. package/dist/illustrations/ai-copilot-intro.cjs +2 -0
  245. package/dist/illustrations/ai-copilot-intro.cjs.map +1 -0
  246. package/dist/illustrations/ai-copilot-intro.d.ts +4 -0
  247. package/dist/illustrations/ai-copilot-intro.js +5 -0
  248. package/dist/illustrations/ai-copilot-intro.js.map +1 -0
  249. package/dist/illustrations/ai-copilot-intro.svg.cjs +2 -0
  250. package/dist/illustrations/ai-copilot-intro.svg.cjs.map +1 -0
  251. package/dist/illustrations/ai-copilot-intro.svg.js +6 -0
  252. package/dist/illustrations/ai-copilot-intro.svg.js.map +1 -0
  253. package/dist/illustrations/alert-on-sidebar-bg.cjs +2 -0
  254. package/dist/illustrations/alert-on-sidebar-bg.cjs.map +1 -0
  255. package/dist/illustrations/alert-on-sidebar-bg.d.ts +4 -0
  256. package/dist/illustrations/alert-on-sidebar-bg.js +5 -0
  257. package/dist/illustrations/alert-on-sidebar-bg.js.map +1 -0
  258. package/dist/illustrations/alert-on-sidebar-bg.svg.cjs +2 -0
  259. package/dist/illustrations/alert-on-sidebar-bg.svg.cjs.map +1 -0
  260. package/dist/illustrations/alert-on-sidebar-bg.svg.js +6 -0
  261. package/dist/illustrations/alert-on-sidebar-bg.svg.js.map +1 -0
  262. package/dist/illustrations/alert.cjs +2 -0
  263. package/dist/illustrations/alert.cjs.map +1 -0
  264. package/dist/illustrations/alert.d.ts +4 -0
  265. package/dist/illustrations/alert.js +5 -0
  266. package/dist/illustrations/alert.js.map +1 -0
  267. package/dist/illustrations/alert.svg.cjs +2 -0
  268. package/dist/illustrations/alert.svg.cjs.map +1 -0
  269. package/dist/illustrations/alert.svg.js +6 -0
  270. package/dist/illustrations/alert.svg.js.map +1 -0
  271. package/dist/illustrations/archived-channel.cjs +2 -0
  272. package/dist/illustrations/archived-channel.cjs.map +1 -0
  273. package/dist/illustrations/archived-channel.d.ts +4 -0
  274. package/dist/illustrations/archived-channel.js +5 -0
  275. package/dist/illustrations/archived-channel.js.map +1 -0
  276. package/dist/illustrations/archived-channel.svg.cjs +2 -0
  277. package/dist/illustrations/archived-channel.svg.cjs.map +1 -0
  278. package/dist/illustrations/archived-channel.svg.js +6 -0
  279. package/dist/illustrations/archived-channel.svg.js.map +1 -0
  280. package/dist/illustrations/auto-translation.cjs +2 -0
  281. package/dist/illustrations/auto-translation.cjs.map +1 -0
  282. package/dist/illustrations/auto-translation.d.ts +4 -0
  283. package/dist/illustrations/auto-translation.js +5 -0
  284. package/dist/illustrations/auto-translation.js.map +1 -0
  285. package/dist/illustrations/auto-translation.svg.cjs +2 -0
  286. package/dist/illustrations/auto-translation.svg.cjs.map +1 -0
  287. package/dist/illustrations/auto-translation.svg.js +6 -0
  288. package/dist/illustrations/auto-translation.svg.js.map +1 -0
  289. package/dist/illustrations/banners.cjs +2 -0
  290. package/dist/illustrations/banners.cjs.map +1 -0
  291. package/dist/illustrations/banners.d.ts +4 -0
  292. package/dist/illustrations/banners.js +5 -0
  293. package/dist/illustrations/banners.js.map +1 -0
  294. package/dist/illustrations/banners.svg.cjs +2 -0
  295. package/dist/illustrations/banners.svg.cjs.map +1 -0
  296. package/dist/illustrations/banners.svg.js +6 -0
  297. package/dist/illustrations/banners.svg.js.map +1 -0
  298. package/dist/illustrations/billing-history.cjs +2 -0
  299. package/dist/illustrations/billing-history.cjs.map +1 -0
  300. package/dist/illustrations/billing-history.d.ts +4 -0
  301. package/dist/illustrations/billing-history.js +5 -0
  302. package/dist/illustrations/billing-history.js.map +1 -0
  303. package/dist/illustrations/billing-history.svg.cjs +2 -0
  304. package/dist/illustrations/billing-history.svg.cjs.map +1 -0
  305. package/dist/illustrations/billing-history.svg.js +6 -0
  306. package/dist/illustrations/billing-history.svg.js.map +1 -0
  307. package/dist/illustrations/blank-playbook.cjs +2 -0
  308. package/dist/illustrations/blank-playbook.cjs.map +1 -0
  309. package/dist/illustrations/blank-playbook.d.ts +4 -0
  310. package/dist/illustrations/blank-playbook.js +5 -0
  311. package/dist/illustrations/blank-playbook.js.map +1 -0
  312. package/dist/illustrations/blank-playbook.svg.cjs +2 -0
  313. package/dist/illustrations/blank-playbook.svg.cjs.map +1 -0
  314. package/dist/illustrations/blank-playbook.svg.js +6 -0
  315. package/dist/illustrations/blank-playbook.svg.js.map +1 -0
  316. package/dist/illustrations/bot-accounts.cjs +2 -0
  317. package/dist/illustrations/bot-accounts.cjs.map +1 -0
  318. package/dist/illustrations/bot-accounts.d.ts +4 -0
  319. package/dist/illustrations/bot-accounts.js +5 -0
  320. package/dist/illustrations/bot-accounts.js.map +1 -0
  321. package/dist/illustrations/bot-accounts.svg.cjs +2 -0
  322. package/dist/illustrations/bot-accounts.svg.cjs.map +1 -0
  323. package/dist/illustrations/bot-accounts.svg.js +6 -0
  324. package/dist/illustrations/bot-accounts.svg.js.map +1 -0
  325. package/dist/illustrations/browser-or-desktop.cjs +2 -0
  326. package/dist/illustrations/browser-or-desktop.cjs.map +1 -0
  327. package/dist/illustrations/browser-or-desktop.d.ts +4 -0
  328. package/dist/illustrations/browser-or-desktop.js +5 -0
  329. package/dist/illustrations/browser-or-desktop.js.map +1 -0
  330. package/dist/illustrations/browser-or-desktop.svg.cjs +2 -0
  331. package/dist/illustrations/browser-or-desktop.svg.cjs.map +1 -0
  332. package/dist/illustrations/browser-or-desktop.svg.js +6 -0
  333. package/dist/illustrations/browser-or-desktop.svg.js.map +1 -0
  334. package/dist/illustrations/bug-bash.cjs +2 -0
  335. package/dist/illustrations/bug-bash.cjs.map +1 -0
  336. package/dist/illustrations/bug-bash.d.ts +4 -0
  337. package/dist/illustrations/bug-bash.js +5 -0
  338. package/dist/illustrations/bug-bash.js.map +1 -0
  339. package/dist/illustrations/bug-bash.svg.cjs +2 -0
  340. package/dist/illustrations/bug-bash.svg.cjs.map +1 -0
  341. package/dist/illustrations/bug-bash.svg.js +6 -0
  342. package/dist/illustrations/bug-bash.svg.js.map +1 -0
  343. package/dist/illustrations/calls.cjs +2 -0
  344. package/dist/illustrations/calls.cjs.map +1 -0
  345. package/dist/illustrations/calls.d.ts +4 -0
  346. package/dist/illustrations/calls.js +5 -0
  347. package/dist/illustrations/calls.js.map +1 -0
  348. package/dist/illustrations/calls.svg.cjs +2 -0
  349. package/dist/illustrations/calls.svg.cjs.map +1 -0
  350. package/dist/illustrations/calls.svg.js +6 -0
  351. package/dist/illustrations/calls.svg.js.map +1 -0
  352. package/dist/illustrations/collaborate.cjs +2 -0
  353. package/dist/illustrations/collaborate.cjs.map +1 -0
  354. package/dist/illustrations/collaborate.d.ts +4 -0
  355. package/dist/illustrations/collaborate.js +5 -0
  356. package/dist/illustrations/collaborate.js.map +1 -0
  357. package/dist/illustrations/collaborate.svg.cjs +2 -0
  358. package/dist/illustrations/collaborate.svg.cjs.map +1 -0
  359. package/dist/illustrations/collaborate.svg.js +6 -0
  360. package/dist/illustrations/collaborate.svg.js.map +1 -0
  361. package/dist/illustrations/compliance-exports.cjs +2 -0
  362. package/dist/illustrations/compliance-exports.cjs.map +1 -0
  363. package/dist/illustrations/compliance-exports.d.ts +4 -0
  364. package/dist/illustrations/compliance-exports.js +5 -0
  365. package/dist/illustrations/compliance-exports.js.map +1 -0
  366. package/dist/illustrations/compliance-exports.svg.cjs +2 -0
  367. package/dist/illustrations/compliance-exports.svg.cjs.map +1 -0
  368. package/dist/illustrations/compliance-exports.svg.js +6 -0
  369. package/dist/illustrations/compliance-exports.svg.js.map +1 -0
  370. package/dist/illustrations/copilot-bot.cjs +2 -0
  371. package/dist/illustrations/copilot-bot.cjs.map +1 -0
  372. package/dist/illustrations/copilot-bot.d.ts +4 -0
  373. package/dist/illustrations/copilot-bot.js +5 -0
  374. package/dist/illustrations/copilot-bot.js.map +1 -0
  375. package/dist/illustrations/copilot-bot.svg.cjs +2 -0
  376. package/dist/illustrations/copilot-bot.svg.cjs.map +1 -0
  377. package/dist/illustrations/copilot-bot.svg.js +6 -0
  378. package/dist/illustrations/copilot-bot.svg.js.map +1 -0
  379. package/dist/illustrations/custom-branding.cjs +2 -0
  380. package/dist/illustrations/custom-branding.cjs.map +1 -0
  381. package/dist/illustrations/custom-branding.d.ts +4 -0
  382. package/dist/illustrations/custom-branding.js +5 -0
  383. package/dist/illustrations/custom-branding.js.map +1 -0
  384. package/dist/illustrations/custom-branding.svg.cjs +2 -0
  385. package/dist/illustrations/custom-branding.svg.cjs.map +1 -0
  386. package/dist/illustrations/custom-branding.svg.js +6 -0
  387. package/dist/illustrations/custom-branding.svg.js.map +1 -0
  388. package/dist/illustrations/custom-terms.cjs +2 -0
  389. package/dist/illustrations/custom-terms.cjs.map +1 -0
  390. package/dist/illustrations/custom-terms.d.ts +4 -0
  391. package/dist/illustrations/custom-terms.js +5 -0
  392. package/dist/illustrations/custom-terms.js.map +1 -0
  393. package/dist/illustrations/custom-terms.svg.cjs +2 -0
  394. package/dist/illustrations/custom-terms.svg.cjs.map +1 -0
  395. package/dist/illustrations/custom-terms.svg.js +6 -0
  396. package/dist/illustrations/custom-terms.svg.js.map +1 -0
  397. package/dist/illustrations/customer-onboarding.cjs +2 -0
  398. package/dist/illustrations/customer-onboarding.cjs.map +1 -0
  399. package/dist/illustrations/customer-onboarding.d.ts +4 -0
  400. package/dist/illustrations/customer-onboarding.js +5 -0
  401. package/dist/illustrations/customer-onboarding.js.map +1 -0
  402. package/dist/illustrations/customer-onboarding.svg.cjs +2 -0
  403. package/dist/illustrations/customer-onboarding.svg.cjs.map +1 -0
  404. package/dist/illustrations/customer-onboarding.svg.js +6 -0
  405. package/dist/illustrations/customer-onboarding.svg.js.map +1 -0
  406. package/dist/illustrations/data-retention.cjs +2 -0
  407. package/dist/illustrations/data-retention.cjs.map +1 -0
  408. package/dist/illustrations/data-retention.d.ts +4 -0
  409. package/dist/illustrations/data-retention.js +5 -0
  410. package/dist/illustrations/data-retention.js.map +1 -0
  411. package/dist/illustrations/data-retention.svg.cjs +2 -0
  412. package/dist/illustrations/data-retention.svg.cjs.map +1 -0
  413. package/dist/illustrations/data-retention.svg.js +6 -0
  414. package/dist/illustrations/data-retention.svg.js.map +1 -0
  415. package/dist/illustrations/drafts-empty.cjs +2 -0
  416. package/dist/illustrations/drafts-empty.cjs.map +1 -0
  417. package/dist/illustrations/drafts-empty.d.ts +4 -0
  418. package/dist/illustrations/drafts-empty.js +5 -0
  419. package/dist/illustrations/drafts-empty.js.map +1 -0
  420. package/dist/illustrations/drafts-empty.svg.cjs +2 -0
  421. package/dist/illustrations/drafts-empty.svg.cjs.map +1 -0
  422. package/dist/illustrations/drafts-empty.svg.js +6 -0
  423. package/dist/illustrations/drafts-empty.svg.js.map +1 -0
  424. package/dist/illustrations/employee-onboarding.cjs +2 -0
  425. package/dist/illustrations/employee-onboarding.cjs.map +1 -0
  426. package/dist/illustrations/employee-onboarding.d.ts +4 -0
  427. package/dist/illustrations/employee-onboarding.js +5 -0
  428. package/dist/illustrations/employee-onboarding.js.map +1 -0
  429. package/dist/illustrations/employee-onboarding.svg.cjs +2 -0
  430. package/dist/illustrations/employee-onboarding.svg.cjs.map +1 -0
  431. package/dist/illustrations/employee-onboarding.svg.js +6 -0
  432. package/dist/illustrations/employee-onboarding.svg.js.map +1 -0
  433. package/dist/illustrations/feature-lifecycle.cjs +2 -0
  434. package/dist/illustrations/feature-lifecycle.cjs.map +1 -0
  435. package/dist/illustrations/feature-lifecycle.d.ts +4 -0
  436. package/dist/illustrations/feature-lifecycle.js +5 -0
  437. package/dist/illustrations/feature-lifecycle.js.map +1 -0
  438. package/dist/illustrations/feature-lifecycle.svg.cjs +2 -0
  439. package/dist/illustrations/feature-lifecycle.svg.cjs.map +1 -0
  440. package/dist/illustrations/feature-lifecycle.svg.js +6 -0
  441. package/dist/illustrations/feature-lifecycle.svg.js.map +1 -0
  442. package/dist/illustrations/file-search-empty.cjs +2 -0
  443. package/dist/illustrations/file-search-empty.cjs.map +1 -0
  444. package/dist/illustrations/file-search-empty.d.ts +4 -0
  445. package/dist/illustrations/file-search-empty.js +5 -0
  446. package/dist/illustrations/file-search-empty.js.map +1 -0
  447. package/dist/illustrations/file-search-empty.svg.cjs +2 -0
  448. package/dist/illustrations/file-search-empty.svg.cjs.map +1 -0
  449. package/dist/illustrations/file-search-empty.svg.js +6 -0
  450. package/dist/illustrations/file-search-empty.svg.js.map +1 -0
  451. package/dist/illustrations/globe.cjs +2 -0
  452. package/dist/illustrations/globe.cjs.map +1 -0
  453. package/dist/illustrations/globe.d.ts +4 -0
  454. package/dist/illustrations/globe.js +5 -0
  455. package/dist/illustrations/globe.js.map +1 -0
  456. package/dist/illustrations/globe.svg.cjs +2 -0
  457. package/dist/illustrations/globe.svg.cjs.map +1 -0
  458. package/dist/illustrations/globe.svg.js +6 -0
  459. package/dist/illustrations/globe.svg.js.map +1 -0
  460. package/dist/illustrations/group.cjs +2 -0
  461. package/dist/illustrations/group.cjs.map +1 -0
  462. package/dist/illustrations/group.d.ts +4 -0
  463. package/dist/illustrations/group.js +5 -0
  464. package/dist/illustrations/group.js.map +1 -0
  465. package/dist/illustrations/group.svg.cjs +2 -0
  466. package/dist/illustrations/group.svg.cjs.map +1 -0
  467. package/dist/illustrations/group.svg.js +12 -0
  468. package/dist/illustrations/group.svg.js.map +1 -0
  469. package/dist/illustrations/groups.cjs +2 -0
  470. package/dist/illustrations/groups.cjs.map +1 -0
  471. package/dist/illustrations/groups.d.ts +4 -0
  472. package/dist/illustrations/groups.js +5 -0
  473. package/dist/illustrations/groups.js.map +1 -0
  474. package/dist/illustrations/groups.svg.cjs +2 -0
  475. package/dist/illustrations/groups.svg.cjs.map +1 -0
  476. package/dist/illustrations/groups.svg.js +12 -0
  477. package/dist/illustrations/groups.svg.js.map +1 -0
  478. package/dist/illustrations/incident-resolution.cjs +2 -0
  479. package/dist/illustrations/incident-resolution.cjs.map +1 -0
  480. package/dist/illustrations/incident-resolution.d.ts +4 -0
  481. package/dist/illustrations/incident-resolution.js +5 -0
  482. package/dist/illustrations/incident-resolution.js.map +1 -0
  483. package/dist/illustrations/incident-resolution.svg.cjs +2 -0
  484. package/dist/illustrations/incident-resolution.svg.cjs.map +1 -0
  485. package/dist/illustrations/incident-resolution.svg.js +6 -0
  486. package/dist/illustrations/incident-resolution.svg.js.map +1 -0
  487. package/dist/illustrations/incoming-webhook.cjs +2 -0
  488. package/dist/illustrations/incoming-webhook.cjs.map +1 -0
  489. package/dist/illustrations/incoming-webhook.d.ts +4 -0
  490. package/dist/illustrations/incoming-webhook.js +5 -0
  491. package/dist/illustrations/incoming-webhook.js.map +1 -0
  492. package/dist/illustrations/incoming-webhook.svg.cjs +2 -0
  493. package/dist/illustrations/incoming-webhook.svg.cjs.map +1 -0
  494. package/dist/illustrations/incoming-webhook.svg.js +6 -0
  495. package/dist/illustrations/incoming-webhook.svg.js.map +1 -0
  496. package/dist/illustrations/intune-mam.cjs +2 -0
  497. package/dist/illustrations/intune-mam.cjs.map +1 -0
  498. package/dist/illustrations/intune-mam.d.ts +4 -0
  499. package/dist/illustrations/intune-mam.js +5 -0
  500. package/dist/illustrations/intune-mam.js.map +1 -0
  501. package/dist/illustrations/intune-mam.svg.cjs +2 -0
  502. package/dist/illustrations/intune-mam.svg.cjs.map +1 -0
  503. package/dist/illustrations/intune-mam.svg.js +8 -0
  504. package/dist/illustrations/intune-mam.svg.js.map +1 -0
  505. package/dist/illustrations/learn-playbooks.cjs +2 -0
  506. package/dist/illustrations/learn-playbooks.cjs.map +1 -0
  507. package/dist/illustrations/learn-playbooks.d.ts +4 -0
  508. package/dist/illustrations/learn-playbooks.js +5 -0
  509. package/dist/illustrations/learn-playbooks.js.map +1 -0
  510. package/dist/illustrations/learn-playbooks.svg.cjs +2 -0
  511. package/dist/illustrations/learn-playbooks.svg.cjs.map +1 -0
  512. package/dist/illustrations/learn-playbooks.svg.js +6 -0
  513. package/dist/illustrations/learn-playbooks.svg.js.map +1 -0
  514. package/dist/illustrations/locked-messages.cjs +2 -0
  515. package/dist/illustrations/locked-messages.cjs.map +1 -0
  516. package/dist/illustrations/locked-messages.d.ts +4 -0
  517. package/dist/illustrations/locked-messages.js +5 -0
  518. package/dist/illustrations/locked-messages.js.map +1 -0
  519. package/dist/illustrations/locked-messages.svg.cjs +2 -0
  520. package/dist/illustrations/locked-messages.svg.cjs.map +1 -0
  521. package/dist/illustrations/locked-messages.svg.js +6 -0
  522. package/dist/illustrations/locked-messages.svg.js.map +1 -0
  523. package/dist/illustrations/mentions-empty.cjs +2 -0
  524. package/dist/illustrations/mentions-empty.cjs.map +1 -0
  525. package/dist/illustrations/mentions-empty.d.ts +4 -0
  526. package/dist/illustrations/mentions-empty.js +5 -0
  527. package/dist/illustrations/mentions-empty.js.map +1 -0
  528. package/dist/illustrations/mentions-empty.svg.cjs +2 -0
  529. package/dist/illustrations/mentions-empty.svg.cjs.map +1 -0
  530. package/dist/illustrations/mentions-empty.svg.js +6 -0
  531. package/dist/illustrations/mentions-empty.svg.js.map +1 -0
  532. package/dist/illustrations/message-not-viewable.cjs +2 -0
  533. package/dist/illustrations/message-not-viewable.cjs.map +1 -0
  534. package/dist/illustrations/message-not-viewable.d.ts +4 -0
  535. package/dist/illustrations/message-not-viewable.js +5 -0
  536. package/dist/illustrations/message-not-viewable.js.map +1 -0
  537. package/dist/illustrations/message-not-viewable.svg.cjs +2 -0
  538. package/dist/illustrations/message-not-viewable.svg.cjs.map +1 -0
  539. package/dist/illustrations/message-not-viewable.svg.js +6 -0
  540. package/dist/illustrations/message-not-viewable.svg.js.map +1 -0
  541. package/dist/illustrations/message-search-empty.cjs +2 -0
  542. package/dist/illustrations/message-search-empty.cjs.map +1 -0
  543. package/dist/illustrations/message-search-empty.d.ts +4 -0
  544. package/dist/illustrations/message-search-empty.js +5 -0
  545. package/dist/illustrations/message-search-empty.js.map +1 -0
  546. package/dist/illustrations/message-search-empty.svg.cjs +2 -0
  547. package/dist/illustrations/message-search-empty.svg.cjs.map +1 -0
  548. package/dist/illustrations/message-search-empty.svg.js +6 -0
  549. package/dist/illustrations/message-search-empty.svg.js.map +1 -0
  550. package/dist/illustrations/mfa-complete.cjs +2 -0
  551. package/dist/illustrations/mfa-complete.cjs.map +1 -0
  552. package/dist/illustrations/mfa-complete.d.ts +4 -0
  553. package/dist/illustrations/mfa-complete.js +5 -0
  554. package/dist/illustrations/mfa-complete.js.map +1 -0
  555. package/dist/illustrations/mfa-complete.svg.cjs +2 -0
  556. package/dist/illustrations/mfa-complete.svg.cjs.map +1 -0
  557. package/dist/illustrations/mfa-complete.svg.js +6 -0
  558. package/dist/illustrations/mfa-complete.svg.js.map +1 -0
  559. package/dist/illustrations/mfa.cjs +2 -0
  560. package/dist/illustrations/mfa.cjs.map +1 -0
  561. package/dist/illustrations/mfa.d.ts +4 -0
  562. package/dist/illustrations/mfa.js +5 -0
  563. package/dist/illustrations/mfa.js.map +1 -0
  564. package/dist/illustrations/mfa.svg.cjs +2 -0
  565. package/dist/illustrations/mfa.svg.cjs.map +1 -0
  566. package/dist/illustrations/mfa.svg.js +6 -0
  567. package/dist/illustrations/mfa.svg.js.map +1 -0
  568. package/dist/illustrations/mobile-protection.cjs +2 -0
  569. package/dist/illustrations/mobile-protection.cjs.map +1 -0
  570. package/dist/illustrations/mobile-protection.d.ts +4 -0
  571. package/dist/illustrations/mobile-protection.js +5 -0
  572. package/dist/illustrations/mobile-protection.js.map +1 -0
  573. package/dist/illustrations/mobile-protection.svg.cjs +2 -0
  574. package/dist/illustrations/mobile-protection.svg.cjs.map +1 -0
  575. package/dist/illustrations/mobile-protection.svg.js +6 -0
  576. package/dist/illustrations/mobile-protection.svg.js.map +1 -0
  577. package/dist/illustrations/mobile-security.cjs +2 -0
  578. package/dist/illustrations/mobile-security.cjs.map +1 -0
  579. package/dist/illustrations/mobile-security.d.ts +4 -0
  580. package/dist/illustrations/mobile-security.js +5 -0
  581. package/dist/illustrations/mobile-security.js.map +1 -0
  582. package/dist/illustrations/mobile-security.svg.cjs +2 -0
  583. package/dist/illustrations/mobile-security.svg.cjs.map +1 -0
  584. package/dist/illustrations/mobile-security.svg.js +6 -0
  585. package/dist/illustrations/mobile-security.svg.js.map +1 -0
  586. package/dist/illustrations/names.cjs +2 -0
  587. package/dist/illustrations/names.cjs.map +1 -0
  588. package/dist/illustrations/names.d.ts +3 -0
  589. package/dist/illustrations/names.d.ts.map +1 -0
  590. package/dist/illustrations/names.js +73 -0
  591. package/dist/illustrations/names.js.map +1 -0
  592. package/dist/illustrations/new-password.cjs +2 -0
  593. package/dist/illustrations/new-password.cjs.map +1 -0
  594. package/dist/illustrations/new-password.d.ts +4 -0
  595. package/dist/illustrations/new-password.js +5 -0
  596. package/dist/illustrations/new-password.js.map +1 -0
  597. package/dist/illustrations/new-password.svg.cjs +2 -0
  598. package/dist/illustrations/new-password.svg.cjs.map +1 -0
  599. package/dist/illustrations/new-password.svg.js +6 -0
  600. package/dist/illustrations/new-password.svg.js.map +1 -0
  601. package/dist/illustrations/no-unreads-on-sidebar-bg.cjs +2 -0
  602. package/dist/illustrations/no-unreads-on-sidebar-bg.cjs.map +1 -0
  603. package/dist/illustrations/no-unreads-on-sidebar-bg.d.ts +4 -0
  604. package/dist/illustrations/no-unreads-on-sidebar-bg.js +5 -0
  605. package/dist/illustrations/no-unreads-on-sidebar-bg.js.map +1 -0
  606. package/dist/illustrations/no-unreads-on-sidebar-bg.svg.cjs +2 -0
  607. package/dist/illustrations/no-unreads-on-sidebar-bg.svg.cjs.map +1 -0
  608. package/dist/illustrations/no-unreads-on-sidebar-bg.svg.js +6 -0
  609. package/dist/illustrations/no-unreads-on-sidebar-bg.svg.js.map +1 -0
  610. package/dist/illustrations/office.cjs +2 -0
  611. package/dist/illustrations/office.cjs.map +1 -0
  612. package/dist/illustrations/office.d.ts +4 -0
  613. package/dist/illustrations/office.js +5 -0
  614. package/dist/illustrations/office.js.map +1 -0
  615. package/dist/illustrations/office.svg.cjs +2 -0
  616. package/dist/illustrations/office.svg.cjs.map +1 -0
  617. package/dist/illustrations/office.svg.js +6 -0
  618. package/dist/illustrations/office.svg.js.map +1 -0
  619. package/dist/illustrations/outgoing-webhook.cjs +2 -0
  620. package/dist/illustrations/outgoing-webhook.cjs.map +1 -0
  621. package/dist/illustrations/outgoing-webhook.d.ts +4 -0
  622. package/dist/illustrations/outgoing-webhook.js +5 -0
  623. package/dist/illustrations/outgoing-webhook.js.map +1 -0
  624. package/dist/illustrations/outgoing-webhook.svg.cjs +2 -0
  625. package/dist/illustrations/outgoing-webhook.svg.cjs.map +1 -0
  626. package/dist/illustrations/outgoing-webhook.svg.js +6 -0
  627. package/dist/illustrations/outgoing-webhook.svg.js.map +1 -0
  628. package/dist/illustrations/pinned-empty.cjs +2 -0
  629. package/dist/illustrations/pinned-empty.cjs.map +1 -0
  630. package/dist/illustrations/pinned-empty.d.ts +4 -0
  631. package/dist/illustrations/pinned-empty.js +5 -0
  632. package/dist/illustrations/pinned-empty.js.map +1 -0
  633. package/dist/illustrations/pinned-empty.svg.cjs +2 -0
  634. package/dist/illustrations/pinned-empty.svg.cjs.map +1 -0
  635. package/dist/illustrations/pinned-empty.svg.js +6 -0
  636. package/dist/illustrations/pinned-empty.svg.js.map +1 -0
  637. package/dist/illustrations/playbooks-empty.cjs +2 -0
  638. package/dist/illustrations/playbooks-empty.cjs.map +1 -0
  639. package/dist/illustrations/playbooks-empty.d.ts +4 -0
  640. package/dist/illustrations/playbooks-empty.js +5 -0
  641. package/dist/illustrations/playbooks-empty.js.map +1 -0
  642. package/dist/illustrations/playbooks-empty.svg.cjs +2 -0
  643. package/dist/illustrations/playbooks-empty.svg.cjs.map +1 -0
  644. package/dist/illustrations/playbooks-empty.svg.js +6 -0
  645. package/dist/illustrations/playbooks-empty.svg.js.map +1 -0
  646. package/dist/illustrations/private-channel-intro.cjs +2 -0
  647. package/dist/illustrations/private-channel-intro.cjs.map +1 -0
  648. package/dist/illustrations/private-channel-intro.d.ts +4 -0
  649. package/dist/illustrations/private-channel-intro.js +5 -0
  650. package/dist/illustrations/private-channel-intro.js.map +1 -0
  651. package/dist/illustrations/private-channel-intro.svg.cjs +2 -0
  652. package/dist/illustrations/private-channel-intro.svg.cjs.map +1 -0
  653. package/dist/illustrations/private-channel-intro.svg.js +6 -0
  654. package/dist/illustrations/private-channel-intro.svg.js.map +1 -0
  655. package/dist/illustrations/product-release.cjs +2 -0
  656. package/dist/illustrations/product-release.cjs.map +1 -0
  657. package/dist/illustrations/product-release.d.ts +4 -0
  658. package/dist/illustrations/product-release.js +5 -0
  659. package/dist/illustrations/product-release.js.map +1 -0
  660. package/dist/illustrations/product-release.svg.cjs +2 -0
  661. package/dist/illustrations/product-release.svg.cjs.map +1 -0
  662. package/dist/illustrations/product-release.svg.js +6 -0
  663. package/dist/illustrations/product-release.svg.js.map +1 -0
  664. package/dist/illustrations/public-channel-intro.cjs +2 -0
  665. package/dist/illustrations/public-channel-intro.cjs.map +1 -0
  666. package/dist/illustrations/public-channel-intro.d.ts +4 -0
  667. package/dist/illustrations/public-channel-intro.js +5 -0
  668. package/dist/illustrations/public-channel-intro.js.map +1 -0
  669. package/dist/illustrations/public-channel-intro.svg.cjs +2 -0
  670. package/dist/illustrations/public-channel-intro.svg.cjs.map +1 -0
  671. package/dist/illustrations/public-channel-intro.svg.js +6 -0
  672. package/dist/illustrations/public-channel-intro.svg.js.map +1 -0
  673. package/dist/illustrations/rating-desktop.cjs +2 -0
  674. package/dist/illustrations/rating-desktop.cjs.map +1 -0
  675. package/dist/illustrations/rating-desktop.d.ts +4 -0
  676. package/dist/illustrations/rating-desktop.js +5 -0
  677. package/dist/illustrations/rating-desktop.js.map +1 -0
  678. package/dist/illustrations/rating-desktop.svg.cjs +2 -0
  679. package/dist/illustrations/rating-desktop.svg.cjs.map +1 -0
  680. package/dist/illustrations/rating-desktop.svg.js +6 -0
  681. package/dist/illustrations/rating-desktop.svg.js.map +1 -0
  682. package/dist/illustrations/rating.cjs +2 -0
  683. package/dist/illustrations/rating.cjs.map +1 -0
  684. package/dist/illustrations/rating.d.ts +4 -0
  685. package/dist/illustrations/rating.js +5 -0
  686. package/dist/illustrations/rating.js.map +1 -0
  687. package/dist/illustrations/rating.svg.cjs +2 -0
  688. package/dist/illustrations/rating.svg.cjs.map +1 -0
  689. package/dist/illustrations/rating.svg.js +6 -0
  690. package/dist/illustrations/rating.svg.js.map +1 -0
  691. package/dist/illustrations/read-only.cjs +2 -0
  692. package/dist/illustrations/read-only.cjs.map +1 -0
  693. package/dist/illustrations/read-only.d.ts +4 -0
  694. package/dist/illustrations/read-only.js +5 -0
  695. package/dist/illustrations/read-only.js.map +1 -0
  696. package/dist/illustrations/read-only.svg.cjs +2 -0
  697. package/dist/illustrations/read-only.svg.cjs.map +1 -0
  698. package/dist/illustrations/read-only.svg.js +6 -0
  699. package/dist/illustrations/read-only.svg.js.map +1 -0
  700. package/dist/illustrations/reset-password.cjs +2 -0
  701. package/dist/illustrations/reset-password.cjs.map +1 -0
  702. package/dist/illustrations/reset-password.d.ts +4 -0
  703. package/dist/illustrations/reset-password.js +5 -0
  704. package/dist/illustrations/reset-password.js.map +1 -0
  705. package/dist/illustrations/reset-password.svg.cjs +2 -0
  706. package/dist/illustrations/reset-password.svg.cjs.map +1 -0
  707. package/dist/illustrations/reset-password.svg.js +8 -0
  708. package/dist/illustrations/reset-password.svg.js.map +1 -0
  709. package/dist/illustrations/saved-empty.cjs +2 -0
  710. package/dist/illustrations/saved-empty.cjs.map +1 -0
  711. package/dist/illustrations/saved-empty.d.ts +4 -0
  712. package/dist/illustrations/saved-empty.js +5 -0
  713. package/dist/illustrations/saved-empty.js.map +1 -0
  714. package/dist/illustrations/saved-empty.svg.cjs +2 -0
  715. package/dist/illustrations/saved-empty.svg.cjs.map +1 -0
  716. package/dist/illustrations/saved-empty.svg.js +6 -0
  717. package/dist/illustrations/saved-empty.svg.js.map +1 -0
  718. package/dist/illustrations/scheduled-empty.cjs +2 -0
  719. package/dist/illustrations/scheduled-empty.cjs.map +1 -0
  720. package/dist/illustrations/scheduled-empty.d.ts +4 -0
  721. package/dist/illustrations/scheduled-empty.js +5 -0
  722. package/dist/illustrations/scheduled-empty.js.map +1 -0
  723. package/dist/illustrations/scheduled-empty.svg.cjs +2 -0
  724. package/dist/illustrations/scheduled-empty.svg.cjs.map +1 -0
  725. package/dist/illustrations/scheduled-empty.svg.js +6 -0
  726. package/dist/illustrations/scheduled-empty.svg.js.map +1 -0
  727. package/dist/illustrations/search.cjs +2 -0
  728. package/dist/illustrations/search.cjs.map +1 -0
  729. package/dist/illustrations/search.d.ts +4 -0
  730. package/dist/illustrations/search.js +5 -0
  731. package/dist/illustrations/search.js.map +1 -0
  732. package/dist/illustrations/search.svg.cjs +2 -0
  733. package/dist/illustrations/search.svg.cjs.map +1 -0
  734. package/dist/illustrations/search.svg.js +6 -0
  735. package/dist/illustrations/search.svg.js.map +1 -0
  736. package/dist/illustrations/server.cjs +2 -0
  737. package/dist/illustrations/server.cjs.map +1 -0
  738. package/dist/illustrations/server.d.ts +4 -0
  739. package/dist/illustrations/server.js +5 -0
  740. package/dist/illustrations/server.js.map +1 -0
  741. package/dist/illustrations/server.svg.cjs +2 -0
  742. package/dist/illustrations/server.svg.cjs.map +1 -0
  743. package/dist/illustrations/server.svg.js +6 -0
  744. package/dist/illustrations/server.svg.js.map +1 -0
  745. package/dist/illustrations/setup-system.cjs +2 -0
  746. package/dist/illustrations/setup-system.cjs.map +1 -0
  747. package/dist/illustrations/setup-system.d.ts +4 -0
  748. package/dist/illustrations/setup-system.js +5 -0
  749. package/dist/illustrations/setup-system.js.map +1 -0
  750. package/dist/illustrations/setup-system.svg.cjs +2 -0
  751. package/dist/illustrations/setup-system.svg.cjs.map +1 -0
  752. package/dist/illustrations/setup-system.svg.js +6 -0
  753. package/dist/illustrations/setup-system.svg.js.map +1 -0
  754. package/dist/illustrations/site-error.cjs +2 -0
  755. package/dist/illustrations/site-error.cjs.map +1 -0
  756. package/dist/illustrations/site-error.d.ts +4 -0
  757. package/dist/illustrations/site-error.js +5 -0
  758. package/dist/illustrations/site-error.js.map +1 -0
  759. package/dist/illustrations/site-error.svg.cjs +2 -0
  760. package/dist/illustrations/site-error.svg.cjs.map +1 -0
  761. package/dist/illustrations/site-error.svg.js +6 -0
  762. package/dist/illustrations/site-error.svg.js.map +1 -0
  763. package/dist/illustrations/slash-commands.cjs +2 -0
  764. package/dist/illustrations/slash-commands.cjs.map +1 -0
  765. package/dist/illustrations/slash-commands.d.ts +4 -0
  766. package/dist/illustrations/slash-commands.js +5 -0
  767. package/dist/illustrations/slash-commands.js.map +1 -0
  768. package/dist/illustrations/slash-commands.svg.cjs +2 -0
  769. package/dist/illustrations/slash-commands.svg.cjs.map +1 -0
  770. package/dist/illustrations/slash-commands.svg.js +6 -0
  771. package/dist/illustrations/slash-commands.svg.js.map +1 -0
  772. package/dist/illustrations/success.cjs +2 -0
  773. package/dist/illustrations/success.cjs.map +1 -0
  774. package/dist/illustrations/success.d.ts +4 -0
  775. package/dist/illustrations/success.js +5 -0
  776. package/dist/illustrations/success.js.map +1 -0
  777. package/dist/illustrations/success.svg.cjs +2 -0
  778. package/dist/illustrations/success.svg.cjs.map +1 -0
  779. package/dist/illustrations/success.svg.js +6 -0
  780. package/dist/illustrations/success.svg.js.map +1 -0
  781. package/dist/illustrations/system-admins.cjs +2 -0
  782. package/dist/illustrations/system-admins.cjs.map +1 -0
  783. package/dist/illustrations/system-admins.d.ts +4 -0
  784. package/dist/illustrations/system-admins.js +5 -0
  785. package/dist/illustrations/system-admins.js.map +1 -0
  786. package/dist/illustrations/system-admins.svg.cjs +2 -0
  787. package/dist/illustrations/system-admins.svg.cjs.map +1 -0
  788. package/dist/illustrations/system-admins.svg.js +14 -0
  789. package/dist/illustrations/system-admins.svg.js.map +1 -0
  790. package/dist/illustrations/threads-empty.cjs +2 -0
  791. package/dist/illustrations/threads-empty.cjs.map +1 -0
  792. package/dist/illustrations/threads-empty.d.ts +4 -0
  793. package/dist/illustrations/threads-empty.js +5 -0
  794. package/dist/illustrations/threads-empty.js.map +1 -0
  795. package/dist/illustrations/threads-empty.svg.cjs +2 -0
  796. package/dist/illustrations/threads-empty.svg.cjs.map +1 -0
  797. package/dist/illustrations/threads-empty.svg.js +6 -0
  798. package/dist/illustrations/threads-empty.svg.js.map +1 -0
  799. package/dist/illustrations/timer.cjs +2 -0
  800. package/dist/illustrations/timer.cjs.map +1 -0
  801. package/dist/illustrations/timer.d.ts +4 -0
  802. package/dist/illustrations/timer.js +5 -0
  803. package/dist/illustrations/timer.js.map +1 -0
  804. package/dist/illustrations/timer.svg.cjs +2 -0
  805. package/dist/illustrations/timer.svg.cjs.map +1 -0
  806. package/dist/illustrations/timer.svg.js +6 -0
  807. package/dist/illustrations/timer.svg.js.map +1 -0
  808. package/dist/illustrations/tls-certificate.cjs +2 -0
  809. package/dist/illustrations/tls-certificate.cjs.map +1 -0
  810. package/dist/illustrations/tls-certificate.d.ts +4 -0
  811. package/dist/illustrations/tls-certificate.js +5 -0
  812. package/dist/illustrations/tls-certificate.js.map +1 -0
  813. package/dist/illustrations/tls-certificate.svg.cjs +2 -0
  814. package/dist/illustrations/tls-certificate.svg.cjs.map +1 -0
  815. package/dist/illustrations/tls-certificate.svg.js +6 -0
  816. package/dist/illustrations/tls-certificate.svg.js.map +1 -0
  817. package/dist/illustrations/tools.cjs +2 -0
  818. package/dist/illustrations/tools.cjs.map +1 -0
  819. package/dist/illustrations/tools.d.ts +4 -0
  820. package/dist/illustrations/tools.js +5 -0
  821. package/dist/illustrations/tools.js.map +1 -0
  822. package/dist/illustrations/tools.svg.cjs +2 -0
  823. package/dist/illustrations/tools.svg.cjs.map +1 -0
  824. package/dist/illustrations/tools.svg.js +6 -0
  825. package/dist/illustrations/tools.svg.js.map +1 -0
  826. package/dist/illustrations/town-square-channel-intro.cjs +2 -0
  827. package/dist/illustrations/town-square-channel-intro.cjs.map +1 -0
  828. package/dist/illustrations/town-square-channel-intro.d.ts +4 -0
  829. package/dist/illustrations/town-square-channel-intro.js +5 -0
  830. package/dist/illustrations/town-square-channel-intro.js.map +1 -0
  831. package/dist/illustrations/town-square-channel-intro.svg.cjs +2 -0
  832. package/dist/illustrations/town-square-channel-intro.svg.cjs.map +1 -0
  833. package/dist/illustrations/town-square-channel-intro.svg.js +6 -0
  834. package/dist/illustrations/town-square-channel-intro.svg.js.map +1 -0
  835. package/dist/illustrations/upload-license.cjs +2 -0
  836. package/dist/illustrations/upload-license.cjs.map +1 -0
  837. package/dist/illustrations/upload-license.d.ts +4 -0
  838. package/dist/illustrations/upload-license.js +5 -0
  839. package/dist/illustrations/upload-license.js.map +1 -0
  840. package/dist/illustrations/upload-license.svg.cjs +2 -0
  841. package/dist/illustrations/upload-license.svg.cjs.map +1 -0
  842. package/dist/illustrations/upload-license.svg.js +6 -0
  843. package/dist/illustrations/upload-license.svg.js.map +1 -0
  844. package/dist/illustrations/verify-email.cjs +2 -0
  845. package/dist/illustrations/verify-email.cjs.map +1 -0
  846. package/dist/illustrations/verify-email.d.ts +4 -0
  847. package/dist/illustrations/verify-email.js +5 -0
  848. package/dist/illustrations/verify-email.js.map +1 -0
  849. package/dist/illustrations/verify-email.svg.cjs +2 -0
  850. package/dist/illustrations/verify-email.svg.cjs.map +1 -0
  851. package/dist/illustrations/verify-email.svg.js +8 -0
  852. package/dist/illustrations/verify-email.svg.js.map +1 -0
  853. package/dist/index.cjs +1 -1
  854. package/dist/index.css +31 -41
  855. package/dist/index.d.ts +1 -8
  856. package/dist/index.d.ts.map +1 -1
  857. package/dist/index.js +177 -189
  858. package/dist/index.js.map +1 -1
  859. package/package.json +216 -19
  860. package/dist/components/app-bar-item/AppBarItem.cjs +0 -2
  861. package/dist/components/app-bar-item/AppBarItem.cjs.map +0 -1
  862. package/dist/components/app-bar-item/AppBarItem.d.ts +0 -25
  863. package/dist/components/app-bar-item/AppBarItem.d.ts.map +0 -1
  864. package/dist/components/app-bar-item/AppBarItem.js +0 -49
  865. package/dist/components/app-bar-item/AppBarItem.js.map +0 -1
  866. package/dist/components/app-bar-item/AppBarItem.module.css +0 -1
  867. package/dist/components/app-bar-item/AppBarItem.module.scss.cjs +0 -2
  868. package/dist/components/app-bar-item/AppBarItem.module.scss.cjs.map +0 -1
  869. package/dist/components/app-bar-item/AppBarItem.module.scss.js +0 -11
  870. package/dist/components/app-bar-item/AppBarItem.module.scss.js.map +0 -1
  871. package/dist/components/app-bar-item/index.d.ts +0 -3
  872. package/dist/components/app-bar-item/index.d.ts.map +0 -1
  873. package/dist/components/app-bar-item/index.js +0 -5
  874. package/dist/components/channel-header/ChannelHeader.cjs +0 -2
  875. package/dist/components/channel-header/ChannelHeader.cjs.map +0 -1
  876. package/dist/components/channel-header/ChannelHeader.d.ts +0 -37
  877. package/dist/components/channel-header/ChannelHeader.d.ts.map +0 -1
  878. package/dist/components/channel-header/ChannelHeader.js +0 -174
  879. package/dist/components/channel-header/ChannelHeader.js.map +0 -1
  880. package/dist/components/channel-header/ChannelHeader.module.css +0 -1
  881. package/dist/components/channel-header/ChannelHeader.module.scss.cjs +0 -2
  882. package/dist/components/channel-header/ChannelHeader.module.scss.cjs.map +0 -1
  883. package/dist/components/channel-header/ChannelHeader.module.scss.js +0 -20
  884. package/dist/components/channel-header/ChannelHeader.module.scss.js.map +0 -1
  885. package/dist/components/channel-header/index.cjs +0 -2
  886. package/dist/components/channel-header/index.cjs.map +0 -1
  887. package/dist/components/channel-header/index.d.ts +0 -3
  888. package/dist/components/channel-header/index.d.ts.map +0 -1
  889. package/dist/components/channel-header/index.js +0 -5
  890. package/dist/components/channel-header/index.js.map +0 -1
  891. package/dist/components/message/Message.cjs +0 -2
  892. package/dist/components/message/Message.cjs.map +0 -1
  893. package/dist/components/message/Message.d.ts +0 -34
  894. package/dist/components/message/Message.d.ts.map +0 -1
  895. package/dist/components/message/Message.js +0 -54
  896. package/dist/components/message/Message.js.map +0 -1
  897. package/dist/components/message/Message.module.css +0 -1
  898. package/dist/components/message/Message.module.scss.cjs +0 -2
  899. package/dist/components/message/Message.module.scss.cjs.map +0 -1
  900. package/dist/components/message/Message.module.scss.js +0 -26
  901. package/dist/components/message/Message.module.scss.js.map +0 -1
  902. package/dist/components/message/index.cjs +0 -2
  903. package/dist/components/message/index.cjs.map +0 -1
  904. package/dist/components/message/index.d.ts +0 -4
  905. package/dist/components/message/index.d.ts.map +0 -1
  906. package/dist/components/message/index.js +0 -7
  907. package/dist/components/message/index.js.map +0 -1
  908. package/dist/components/message-input/MessageInput.cjs +0 -2
  909. package/dist/components/message-input/MessageInput.cjs.map +0 -1
  910. package/dist/components/message-input/MessageInput.d.ts +0 -15
  911. package/dist/components/message-input/MessageInput.d.ts.map +0 -1
  912. package/dist/components/message-input/MessageInput.js +0 -407
  913. package/dist/components/message-input/MessageInput.js.map +0 -1
  914. package/dist/components/message-input/MessageInput.module.css +0 -1
  915. package/dist/components/message-input/MessageInput.module.scss.cjs +0 -2
  916. package/dist/components/message-input/MessageInput.module.scss.cjs.map +0 -1
  917. package/dist/components/message-input/MessageInput.module.scss.js +0 -37
  918. package/dist/components/message-input/MessageInput.module.scss.js.map +0 -1
  919. package/dist/components/message-input/index.cjs +0 -2
  920. package/dist/components/message-input/index.cjs.map +0 -1
  921. package/dist/components/message-input/index.d.ts +0 -3
  922. package/dist/components/message-input/index.d.ts.map +0 -1
  923. package/dist/components/message-input/index.js +0 -5
  924. package/dist/components/message-input/index.js.map +0 -1
  925. package/dist/components/reaction-pill/ReactionPill.cjs +0 -2
  926. package/dist/components/reaction-pill/ReactionPill.cjs.map +0 -1
  927. package/dist/components/reaction-pill/ReactionPill.d.ts +0 -24
  928. package/dist/components/reaction-pill/ReactionPill.d.ts.map +0 -1
  929. package/dist/components/reaction-pill/ReactionPill.js +0 -51
  930. package/dist/components/reaction-pill/ReactionPill.js.map +0 -1
  931. package/dist/components/reaction-pill/ReactionPill.module.css +0 -1
  932. package/dist/components/reaction-pill/ReactionPill.module.scss.cjs +0 -2
  933. package/dist/components/reaction-pill/ReactionPill.module.scss.cjs.map +0 -1
  934. package/dist/components/reaction-pill/ReactionPill.module.scss.js +0 -17
  935. package/dist/components/reaction-pill/ReactionPill.module.scss.js.map +0 -1
  936. package/dist/components/reaction-pill/index.cjs +0 -2
  937. package/dist/components/reaction-pill/index.cjs.map +0 -1
  938. package/dist/components/reaction-pill/index.d.ts +0 -3
  939. package/dist/components/reaction-pill/index.d.ts.map +0 -1
  940. package/dist/components/reaction-pill/index.js +0 -5
  941. package/dist/components/reaction-pill/index.js.map +0 -1
  942. package/dist/components/right-sidebar/RightSidebar.cjs +0 -2
  943. package/dist/components/right-sidebar/RightSidebar.cjs.map +0 -1
  944. package/dist/components/right-sidebar/RightSidebar.d.ts +0 -23
  945. package/dist/components/right-sidebar/RightSidebar.d.ts.map +0 -1
  946. package/dist/components/right-sidebar/RightSidebar.js +0 -29
  947. package/dist/components/right-sidebar/RightSidebar.js.map +0 -1
  948. package/dist/components/right-sidebar/RightSidebar.module.css +0 -1
  949. package/dist/components/right-sidebar/RightSidebar.module.scss.cjs +0 -2
  950. package/dist/components/right-sidebar/RightSidebar.module.scss.cjs.map +0 -1
  951. package/dist/components/right-sidebar/RightSidebar.module.scss.js +0 -12
  952. package/dist/components/right-sidebar/RightSidebar.module.scss.js.map +0 -1
  953. package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.cjs +0 -2
  954. package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.cjs.map +0 -1
  955. package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.d.ts.map +0 -1
  956. package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.js.map +0 -1
  957. package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.module.css +0 -1
  958. package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.module.scss.cjs +0 -2
  959. package/dist/components/right-sidebar/RightSidebarHeader/index.d.ts +0 -3
  960. package/dist/components/right-sidebar/RightSidebarHeader/index.d.ts.map +0 -1
  961. package/dist/components/right-sidebar/index.cjs +0 -2
  962. package/dist/components/right-sidebar/index.cjs.map +0 -1
  963. package/dist/components/right-sidebar/index.d.ts +0 -5
  964. package/dist/components/right-sidebar/index.d.ts.map +0 -1
  965. package/dist/components/right-sidebar/index.js +0 -7
  966. package/dist/components/right-sidebar/index.js.map +0 -1
  967. /package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.module.scss.cjs.map +0 -0
  968. /package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.module.scss.js.map +0 -0
  969. /package/dist/components/{app-bar-item → right-sidebar-header}/index.cjs.map +0 -0
  970. /package/dist/components/{app-bar-item → right-sidebar-header}/index.js.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ThreadListItem.cjs","sources":["../../../src/components/thread-list-item/ThreadListItem.tsx"],"sourcesContent":["import DotsHorizontalIcon from '@mattermost/compass-icons/components/dots-horizontal';\nimport { type KeyboardEvent, type MouseEvent, useCallback } from 'react';\nimport Icon from '@/components/icon/Icon';\nimport IconButton from '@/components/icon-button/IconButton';\nimport Tag from '@/components/tag/Tag';\nimport MentionBadge from '../mention-badge/MentionBadge';\nimport UnreadBadge from '../unread-badge/UnreadBadge';\nimport UserAvatarGroup, {\n type UserAvatarGroupItem,\n} from '../user-avatar-group/UserAvatarGroup';\nimport styles from './ThreadListItem.module.scss';\n\nconst DEFAULT_PARTICIPANTS: UserAvatarGroupItem[] = [\n { key: 'leonard', name: 'Leonard Riley' },\n { key: 'aiko', name: 'Aiko Tan' },\n { key: 'arjun', name: 'Arjun Patel' },\n { key: 'marco', name: 'Marco Rinaldi' },\n { key: 'sofia', name: 'Sofia Bauer' },\n];\n\nexport interface ThreadListItemProps {\n /** Whether this item is the active/selected thread. */\n active?: boolean;\n /** Badge in the left gutter. Default: None. Hidden when `active` is true. */\n badge?: 'none' | 'unread' | 'mention';\n /** Shown when `badge` is Mention. Default: 1. */\n mentionCount?: number;\n /** Author name. */\n authorName?: string;\n /** Channel/team label. */\n channelLabel?: string;\n /** Message preview text. */\n previewText?: string;\n /** Timestamp label. */\n timestamp?: string;\n /** Number of replies. */\n replyCount?: number;\n /** Stacked avatars for recent participants. Pass `[]` to hide. When omitted, uses demo participants. */\n participants?: UserAvatarGroupItem[];\n /** Optional thread title. */\n threadTitle?: string;\n /** Optional CSS class name. */\n className?: string;\n /** Click handler. */\n onClick?: () => void;\n /** Thread overflow menu handler. */\n onMenuClick?: (event: MouseEvent<HTMLButtonElement>) => void;\n}\n\n/**\n * The Thread List Item is a single entry in the Threads view. Each row gives the user enough\n * context — who, where, what, when — to decide whether to open the thread without opening\n * it.\n */\nexport default function ThreadListItem({\n active = false,\n badge = 'none',\n mentionCount = 1,\n authorName = 'Martin Kraft',\n channelLabel = 'ENTERPRISE TEAM',\n previewText = 'Do we have a guideline for what minimum width we should support in the system console? I know that…',\n timestamp = '5 mins ago',\n replyCount = 3,\n participants: participantsProp,\n threadTitle,\n className = '',\n onClick,\n onMenuClick,\n}: ThreadListItemProps) {\n const participants =\n participantsProp === undefined ? DEFAULT_PARTICIPANTS : participantsProp;\n const showParticipants = participants.length > 0;\n const showGutterBadge =\n !active && (badge === 'unread' || badge === 'mention');\n const replyLabel = replyCount === 1 ? '1 reply' : `${replyCount} replies`;\n\n const rootClass = [\n styles['thread-list-item'],\n active ? styles['thread-list-item--active'] : '',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n if (!onClick) return;\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n onClick();\n }\n },\n [onClick],\n );\n\n return (\n <div\n className={rootClass}\n onClick={onClick}\n role={onClick ? 'button' : undefined}\n tabIndex={onClick ? 0 : undefined}\n onKeyDown={onClick ? handleKeyDown : undefined}\n >\n <div className={styles['thread-list-item__thread']}>\n <div className={styles['thread-list-item__container']}>\n <div className={styles['thread-list-item__post-content']}>\n <div className={styles['thread-list-item__gutter']}>\n {showGutterBadge && badge === 'unread' && (\n <UnreadBadge\n className={styles['thread-list-item__unread-badge']}\n context=\"icon-button\"\n />\n )}\n {showGutterBadge && badge === 'mention' && (\n <span className={styles['thread-list-item__mention-gutter']}>\n <MentionBadge\n count={mentionCount}\n location=\"channel\"\n size=\"medium\"\n />\n </span>\n )}\n </div>\n <div className={styles['thread-list-item__post-body']}>\n <div className={styles['thread-list-item__post-body-content']}>\n <div className={styles['thread-list-item__name-row']}>\n <div className={styles['thread-list-item__name-group']}>\n <span className={styles['thread-list-item__author']}>\n {authorName}\n </span>\n <Tag\n casing=\"all-caps\"\n label={channelLabel}\n />\n </div>\n <span className={styles['thread-list-item__timestamp']}>\n {timestamp}\n </span>\n </div>\n {threadTitle != null && (\n <div className={styles['thread-list-item__title-row']}>\n <p className={styles['thread-list-item__title']}>\n {threadTitle}\n </p>\n </div>\n )}\n <p className={styles['thread-list-item__preview']}>\n {previewText}\n </p>\n </div>\n </div>\n </div>\n <div className={styles['thread-list-item__replies']}>\n <div className={styles['thread-list-item__replies-inner']}>\n {showParticipants && (\n <UserAvatarGroup\n avatars={participants}\n className={styles['thread-list-item__avatar-group']}\n max={3}\n size=\"20\"\n />\n )}\n <span className={styles['thread-list-item__reply-count']}>\n {replyLabel}\n </span>\n </div>\n </div>\n </div>\n </div>\n <div className={styles['thread-list-item__actions']}>\n <span className={styles['thread-list-item__menu-button']}>\n <IconButton\n aria-label=\"Thread actions\"\n icon={<Icon size=\"16\" glyph={<DotsHorizontalIcon />} />}\n padding=\"compact\"\n size=\"small\"\n style=\"default\"\n type=\"button\"\n onClick={(e) => {\n e.stopPropagation();\n onMenuClick?.(e);\n }}\n />\n </span>\n </div>\n </div>\n );\n}\n"],"names":["DEFAULT_PARTICIPANTS","ThreadListItem","active","badge","mentionCount","authorName","channelLabel","previewText","timestamp","replyCount","participantsProp","threadTitle","className","onClick","onMenuClick","participants","showParticipants","showGutterBadge","replyLabel","rootClass","styles","handleKeyDown","useCallback","event","jsxs","jsx","UnreadBadge","MentionBadge","Tag","UserAvatarGroup","IconButton","Icon","DotsHorizontalIcon","e"],"mappings":"sgBAYMA,EAA8C,CAClD,CAAE,IAAK,UAAW,KAAM,eAAA,EACxB,CAAE,IAAK,OAAQ,KAAM,UAAA,EACrB,CAAE,IAAK,QAAS,KAAM,aAAA,EACtB,CAAE,IAAK,QAAS,KAAM,eAAA,EACtB,CAAE,IAAK,QAAS,KAAM,aAAA,CACxB,EAoCA,SAAwBC,EAAe,CACrC,OAAAC,EAAS,GACT,MAAAC,EAAQ,OACR,aAAAC,EAAe,EACf,WAAAC,EAAa,eACb,aAAAC,EAAe,kBACf,YAAAC,EAAc,sGACd,UAAAC,EAAY,aACZ,WAAAC,EAAa,EACb,aAAcC,EACd,YAAAC,EACA,UAAAC,EAAY,GACZ,QAAAC,EACA,YAAAC,CACF,EAAwB,CACtB,MAAMC,EACJL,IAAqB,OAAYV,EAAuBU,EACpDM,EAAmBD,EAAa,OAAS,EACzCE,EACJ,CAACf,IAAWC,IAAU,UAAYA,IAAU,WACxCe,EAAaT,IAAe,EAAI,UAAY,GAAGA,CAAU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,QAAUC,GAAM,CACdA,EAAE,gBAAA,EACFnB,GAAA,MAAAA,EAAcmB,EAChB,CAAA,CAAA,EAEJ,CAAA,CACF,CAAA,CAAA,CAAA,CAGN"}
1
+ {"version":3,"file":"ThreadListItem.cjs","sources":["../../../src/components/thread-list-item/ThreadListItem.tsx"],"sourcesContent":["import DotsHorizontalIcon from '@mattermost/compass-icons/components/dots-horizontal';\nimport type { KeyboardEvent, MouseEvent } from 'react';\nimport Icon from '@/components/icon/Icon';\nimport IconButton from '@/components/icon-button/IconButton';\nimport Tag from '@/components/tag/Tag';\nimport MentionBadge from '../mention-badge/MentionBadge';\nimport UnreadBadge from '../unread-badge/UnreadBadge';\nimport UserAvatarGroup, {\n type UserAvatarGroupItem,\n} from '../user-avatar-group/UserAvatarGroup';\nimport styles from './ThreadListItem.module.scss';\n\nconst DEFAULT_PARTICIPANTS: UserAvatarGroupItem[] = [\n { key: 'leonard', name: 'Leonard Riley' },\n { key: 'aiko', name: 'Aiko Tan' },\n { key: 'arjun', name: 'Arjun Patel' },\n { key: 'marco', name: 'Marco Rinaldi' },\n { key: 'sofia', name: 'Sofia Bauer' },\n];\n\nexport interface ThreadListItemProps {\n /** Whether this item is the active/selected thread. */\n active?: boolean;\n /** Badge in the left gutter. Default: None. Hidden when `active` is true. */\n badge?: 'none' | 'unread' | 'mention';\n /** Shown when `badge` is Mention. Default: 1. */\n mentionCount?: number;\n /** Author name. */\n authorName?: string;\n /** Channel/team label. */\n channelLabel?: string;\n /** Message preview text. */\n previewText?: string;\n /** Timestamp label. */\n timestamp?: string;\n /** Number of replies. */\n replyCount?: number;\n /** Stacked avatars for recent participants. Pass `[]` to hide. When omitted, uses demo participants. */\n participants?: UserAvatarGroupItem[];\n /** Optional thread title. */\n threadTitle?: string;\n /** Optional CSS class name. */\n className?: string;\n /** Opens the thread. Sibling of the overflow menu for keyboard reachability. */\n onClick?: () => void;\n /** Thread overflow menu handler. */\n onMenuClick?: (event: MouseEvent<HTMLButtonElement>) => void;\n}\n\n/**\n * The Thread List Item is a single entry in the Threads view. Each row gives the user enough\n * context — who, where, what, when — to decide whether to open the thread without opening\n * it.\n */\nexport default function ThreadListItem({\n active = false,\n badge = 'none',\n mentionCount = 1,\n authorName = 'Martin Kraft',\n channelLabel = 'ENTERPRISE TEAM',\n previewText = 'Do we have a guideline for what minimum width we should support in the system console? I know that…',\n timestamp = '5 mins ago',\n replyCount = 3,\n participants: participantsProp,\n threadTitle,\n className = '',\n onClick,\n onMenuClick,\n}: ThreadListItemProps) {\n const participants =\n participantsProp === undefined ? DEFAULT_PARTICIPANTS : participantsProp;\n const showParticipants = participants.length > 0;\n const showGutterBadge =\n !active && (badge === 'unread' || badge === 'mention');\n const replyLabel = replyCount === 1 ? '1 reply' : `${replyCount} replies`;\n\n const rootClass = [\n styles['thread-list-item'],\n active ? styles['thread-list-item--active'] : '',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const statusHint =\n badge === 'mention'\n ? `${mentionCount} mention${mentionCount === 1 ? '' : 's'}`\n : badge === 'unread'\n ? 'unread'\n : undefined;\n\n const handleMainClick = (event: MouseEvent<HTMLDivElement>) => {\n const selection = window.getSelection();\n if (\n selection?.type === 'Range' &&\n selection.toString().length > 0 &&\n event.currentTarget.contains(selection.getRangeAt(0).commonAncestorContainer)\n ) {\n return;\n }\n onClick?.();\n };\n\n const handleMainKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key !== 'Enter' && event.key !== ' ') {\n return;\n }\n event.preventDefault();\n onClick?.();\n };\n\n return (\n <div className={rootClass}>\n <div\n className={styles['thread-list-item__main']}\n role={onClick ? 'button' : undefined}\n tabIndex={onClick ? 0 : undefined}\n onClick={onClick ? handleMainClick : undefined}\n onKeyDown={onClick ? handleMainKeyDown : undefined}\n aria-current={active ? true : undefined}\n >\n <div className={styles['thread-list-item__thread']}>\n <div className={styles['thread-list-item__container']}>\n <div className={styles['thread-list-item__post-content']}>\n <div className={styles['thread-list-item__gutter']}>\n {showGutterBadge && badge === 'unread' && (\n <span\n className={styles['thread-list-item__unread-gutter']}\n aria-hidden\n >\n <UnreadBadge\n className={styles['thread-list-item__unread-badge']}\n context=\"icon-button\"\n />\n </span>\n )}\n {showGutterBadge && badge === 'mention' && (\n <span\n className={styles['thread-list-item__mention-gutter']}\n aria-hidden\n >\n <MentionBadge\n count={mentionCount}\n location=\"channel\"\n size=\"medium\"\n />\n </span>\n )}\n </div>\n <div className={styles['thread-list-item__post-body']}>\n <div className={styles['thread-list-item__post-body-content']}>\n <div className={styles['thread-list-item__name-row']}>\n <div className={styles['thread-list-item__name-group']}>\n <span className={styles['thread-list-item__author']}>\n {authorName}\n </span>\n <Tag casing=\"all-caps\" label={channelLabel} />\n {statusHint && (\n <span\n className={styles['thread-list-item__status-hint']}\n >\n {statusHint}\n </span>\n )}\n </div>\n <span className={styles['thread-list-item__timestamp']}>\n {timestamp}\n </span>\n </div>\n {threadTitle != null && (\n <div className={styles['thread-list-item__title-row']}>\n <p className={styles['thread-list-item__title']}>\n {threadTitle}\n </p>\n </div>\n )}\n <p className={styles['thread-list-item__preview']}>\n {previewText}\n </p>\n </div>\n </div>\n </div>\n <div className={styles['thread-list-item__replies']}>\n <div className={styles['thread-list-item__replies-inner']}>\n {showParticipants && (\n <UserAvatarGroup\n avatars={participants}\n className={styles['thread-list-item__avatar-group']}\n max={3}\n size=\"20\"\n />\n )}\n <span className={styles['thread-list-item__reply-count']}>\n {replyLabel}\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n {onMenuClick && (\n <div className={styles['thread-list-item__actions']}>\n <span className={styles['thread-list-item__menu-button']}>\n <IconButton\n aria-label=\"Thread actions\"\n icon={<Icon size=\"16\" glyph={<DotsHorizontalIcon />} />}\n padding=\"compact\"\n size=\"small\"\n style=\"default\"\n type=\"button\"\n onClick={(event) => {\n event.stopPropagation();\n onMenuClick(event);\n }}\n />\n </span>\n </div>\n )}\n </div>\n );\n}\n"],"names":["DEFAULT_PARTICIPANTS","ThreadListItem","active","badge","mentionCount","authorName","channelLabel","previewText","timestamp","replyCount","participantsProp","threadTitle","className","onClick","onMenuClick","participants","showParticipants","showGutterBadge","replyLabel","rootClass","styles","statusHint","handleMainClick","event","selection","handleMainKeyDown","jsxs","jsx","UnreadBadge","MentionBadge","Tag","UserAvatarGroup","IconButton","Icon","DotsHorizontalIcon"],"mappings":"mfAYMA,EAA8C,CAClD,CAAE,IAAK,UAAW,KAAM,eAAA,EACxB,CAAE,IAAK,OAAQ,KAAM,UAAA,EACrB,CAAE,IAAK,QAAS,KAAM,aAAA,EACtB,CAAE,IAAK,QAAS,KAAM,eAAA,EACtB,CAAE,IAAK,QAAS,KAAM,aAAA,CACxB,EAoCA,SAAwBC,EAAe,CACrC,OAAAC,EAAS,GACT,MAAAC,EAAQ,OACR,aAAAC,EAAe,EACf,WAAAC,EAAa,eACb,aAAAC,EAAe,kBACf,YAAAC,EAAc,sGACd,UAAAC,EAAY,aACZ,WAAAC,EAAa,EACb,aAAcC,EACd,YAAAC,EACA,UAAAC,EAAY,GACZ,QAAAC,EACA,YAAAC,CACF,EAAwB,CACtB,MAAMC,EACJL,IAAqB,OAAYV,EAAuBU,EACpDM,EAAmBD,EAAa,OAAS,EACzCE,EACJ,CAACf,IAAWC,IAAU,UAAYA,IAAU,WACxCe,EAAaT,IAAe,EAAI,UAAY,GAAGA,CAAU,WAEzDU,EAAY,CAChBC,EAAAA,QAAO,kBAAkB,EACzBlB,EAASkB,EAAAA,QAAO,0BAA0B,EAAI,GAC9CR,CAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG,EAELS,EACJlB,IAAU,UACN,GAAGC,CAAY,WAAWA,IAAiB,EAAI,GAAK,GAAG,GACvDD,IAAU,SACR,SACA,OAEFmB,EAAmBC,GAAsC,CAC7D,MAAMC,EAAY,OAAO,aAAA,GAEvBA,GAAA,YAAAA,EAAW,QAAS,SACpBA,EAAU,SAAA,EAAW,OAAS,GAC9BD,EAAM,cAAc,SAASC,EAAU,WAAW,CAAC,EAA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AA,IAAC,OAAA,CAAK,UAAWP,EAAAA,QAAO,+BAA+B,EACrD,SAAAO,EAAAA,IAACK,EAAAA,QAAA,CACC,aAAW,iBACX,WAAOC,UAAA,CAAK,KAAK,KAAK,MAAON,MAACO,IAAmB,EAAI,EACrD,QAAQ,UACR,KAAK,QACL,MAAM,UACN,KAAK,SACL,QAAUX,GAAU,CAClBA,EAAM,gBAAA,EACNT,EAAYS,CAAK,CACnB,CAAA,CAAA,EAEJ,CAAA,CACF,CAAA,EAEJ,CAEJ"}
@@ -23,7 +23,7 @@ export interface ThreadListItemProps {
23
23
  threadTitle?: string;
24
24
  /** Optional CSS class name. */
25
25
  className?: string;
26
- /** Click handler. */
26
+ /** Opens the thread. Sibling of the overflow menu for keyboard reachability. */
27
27
  onClick?: () => void;
28
28
  /** Thread overflow menu handler. */
29
29
  onMenuClick?: (event: MouseEvent<HTMLButtonElement>) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"ThreadListItem.d.ts","sourceRoot":"","sources":["../../../src/components/thread-list-item/ThreadListItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,UAAU,EAAe,MAAM,OAAO,CAAC;AAMzE,OAAwB,EACtB,KAAK,mBAAmB,EACzB,MAAM,oCAAoC,CAAC;AAW5C,MAAM,WAAW,mBAAmB;IAClC,uDAAuD;IACvD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IACtC,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wGAAwG;IACxG,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACrC,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,oCAAoC;IACpC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC9D;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,MAAc,EACd,KAAc,EACd,YAAgB,EAChB,UAA2B,EAC3B,YAAgC,EAChC,WAAmH,EACnH,SAAwB,EACxB,UAAc,EACd,YAAY,EAAE,gBAAgB,EAC9B,WAAW,EACX,SAAc,EACd,OAAO,EACP,WAAW,GACZ,EAAE,mBAAmB,2CAuHrB"}
1
+ {"version":3,"file":"ThreadListItem.d.ts","sourceRoot":"","sources":["../../../src/components/thread-list-item/ThreadListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,UAAU,EAAE,MAAM,OAAO,CAAC;AAMvD,OAAwB,EACtB,KAAK,mBAAmB,EACzB,MAAM,oCAAoC,CAAC;AAW5C,MAAM,WAAW,mBAAmB;IAClC,uDAAuD;IACvD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IACtC,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wGAAwG;IACxG,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACrC,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,oCAAoC;IACpC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC9D;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,MAAc,EACd,KAAc,EACd,YAAgB,EAChB,UAA2B,EAC3B,YAAgC,EAChC,WAAmH,EACnH,SAAwB,EACxB,UAAc,EACd,YAAY,EAAE,gBAAgB,EAC9B,WAAW,EACX,SAAc,EACd,OAAO,EACP,WAAW,GACZ,EAAE,mBAAmB,2CAwJrB"}
@@ -1,123 +1,138 @@
1
- import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
- import __I from "@mattermost/compass-icons/components/dots-horizontal.js";const I=__I&&__I.default?__I.default:__I;
3
- import { useCallback as T } from "react";
4
- import A from "../icon/Icon.js";
5
- import x from "../icon-button/IconButton.js";
6
- import B from "../tag/Tag.js";
7
- import D from "../mention-badge/MentionBadge.js";
8
- import E from "../unread-badge/UnreadBadge.js";
9
- import j from "../user-avatar-group/UserAvatarGroup.js";
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
+ import __b from "@mattermost/compass-icons/components/dots-horizontal.js";const b=__b&&__b.default?__b.default:__b;
3
+ import x from "../icon/Icon.js";
4
+ import B from "../icon-button/IconButton.js";
5
+ import D from "../tag/Tag.js";
6
+ import E from "../mention-badge/MentionBadge.js";
7
+ import j from "../unread-badge/UnreadBadge.js";
8
+ import z from "../user-avatar-group/UserAvatarGroup.js";
10
9
  import e from "./ThreadListItem.module.scss.js";
11
- const z = [
10
+ const M = [
12
11
  { key: "leonard", name: "Leonard Riley" },
13
12
  { key: "aiko", name: "Aiko Tan" },
14
13
  { key: "arjun", name: "Arjun Patel" },
15
14
  { key: "marco", name: "Marco Rinaldi" },
16
15
  { key: "sofia", name: "Sofia Bauer" }
17
16
  ];
18
- function $({
19
- active: n = !1,
17
+ function q({
18
+ active: l = !1,
20
19
  badge: r = "none",
21
- mentionCount: p = 1,
22
- authorName: _ = "Martin Kraft",
23
- channelLabel: u = "ENTERPRISE TEAM",
24
- previewText: N = "Do we have a guideline for what minimum width we should support in the system console? I know that…",
25
- timestamp: f = "5 mins ago",
20
+ mentionCount: d = 1,
21
+ authorName: N = "Martin Kraft",
22
+ channelLabel: v = "ENTERPRISE TEAM",
23
+ previewText: f = "Do we have a guideline for what minimum width we should support in the system console? I know that…",
24
+ timestamp: y = "5 mins ago",
26
25
  replyCount: o = 3,
27
26
  participants: m,
28
- threadTitle: d,
29
- className: v = "",
30
- onClick: i,
31
- onMenuClick: l
27
+ threadTitle: c,
28
+ className: g = "",
29
+ onClick: a,
30
+ onMenuClick: h
32
31
  }) {
33
- const c = m === void 0 ? z : m, y = c.length > 0, h = !n && (r === "unread" || r === "mention"), g = o === 1 ? "1 reply" : `${o} replies`, w = [
32
+ const _ = m === void 0 ? M : m, w = _.length > 0, p = !l && (r === "unread" || r === "mention"), A = o === 1 ? "1 reply" : `${o} replies`, I = [
34
33
  e["thread-list-item"],
35
- n ? e["thread-list-item--active"] : "",
36
- v
37
- ].filter(Boolean).join(" "), b = T(
38
- (s) => {
39
- i && (s.key === "Enter" || s.key === " ") && (s.preventDefault(), i());
40
- },
41
- [i]
42
- );
43
- return /* @__PURE__ */ a(
44
- "div",
45
- {
46
- className: w,
47
- onClick: i,
48
- role: i ? "button" : void 0,
49
- tabIndex: i ? 0 : void 0,
50
- onKeyDown: i ? b : void 0,
51
- children: [
52
- /* @__PURE__ */ t("div", { className: e["thread-list-item__thread"], children: /* @__PURE__ */ a("div", { className: e["thread-list-item__container"], children: [
53
- /* @__PURE__ */ a("div", { className: e["thread-list-item__post-content"], children: [
54
- /* @__PURE__ */ a("div", { className: e["thread-list-item__gutter"], children: [
55
- h && r === "unread" && /* @__PURE__ */ t(
56
- E,
34
+ l ? e["thread-list-item--active"] : "",
35
+ g
36
+ ].filter(Boolean).join(" "), u = r === "mention" ? `${d} mention${d === 1 ? "" : "s"}` : r === "unread" ? "unread" : void 0, T = (i) => {
37
+ const n = window.getSelection();
38
+ (n == null ? void 0 : n.type) === "Range" && n.toString().length > 0 && i.currentTarget.contains(n.getRangeAt(0).commonAncestorContainer) || a == null || a();
39
+ }, R = (i) => {
40
+ i.key !== "Enter" && i.key !== " " || (i.preventDefault(), a == null || a());
41
+ };
42
+ return /* @__PURE__ */ s("div", { className: I, children: [
43
+ /* @__PURE__ */ t(
44
+ "div",
45
+ {
46
+ className: e["thread-list-item__main"],
47
+ role: a ? "button" : void 0,
48
+ tabIndex: a ? 0 : void 0,
49
+ onClick: a ? T : void 0,
50
+ onKeyDown: a ? R : void 0,
51
+ "aria-current": l ? !0 : void 0,
52
+ children: /* @__PURE__ */ t("div", { className: e["thread-list-item__thread"], children: /* @__PURE__ */ s("div", { className: e["thread-list-item__container"], children: [
53
+ /* @__PURE__ */ s("div", { className: e["thread-list-item__post-content"], children: [
54
+ /* @__PURE__ */ s("div", { className: e["thread-list-item__gutter"], children: [
55
+ p && r === "unread" && /* @__PURE__ */ t(
56
+ "span",
57
57
  {
58
- className: e["thread-list-item__unread-badge"],
59
- context: "icon-button"
58
+ className: e["thread-list-item__unread-gutter"],
59
+ "aria-hidden": !0,
60
+ children: /* @__PURE__ */ t(
61
+ j,
62
+ {
63
+ className: e["thread-list-item__unread-badge"],
64
+ context: "icon-button"
65
+ }
66
+ )
60
67
  }
61
68
  ),
62
- h && r === "mention" && /* @__PURE__ */ t("span", { className: e["thread-list-item__mention-gutter"], children: /* @__PURE__ */ t(
63
- D,
69
+ p && r === "mention" && /* @__PURE__ */ t(
70
+ "span",
64
71
  {
65
- count: p,
66
- location: "channel",
67
- size: "medium"
72
+ className: e["thread-list-item__mention-gutter"],
73
+ "aria-hidden": !0,
74
+ children: /* @__PURE__ */ t(
75
+ E,
76
+ {
77
+ count: d,
78
+ location: "channel",
79
+ size: "medium"
80
+ }
81
+ )
68
82
  }
69
- ) })
83
+ )
70
84
  ] }),
71
- /* @__PURE__ */ t("div", { className: e["thread-list-item__post-body"], children: /* @__PURE__ */ a("div", { className: e["thread-list-item__post-body-content"], children: [
72
- /* @__PURE__ */ a("div", { className: e["thread-list-item__name-row"], children: [
73
- /* @__PURE__ */ a("div", { className: e["thread-list-item__name-group"], children: [
74
- /* @__PURE__ */ t("span", { className: e["thread-list-item__author"], children: _ }),
75
- /* @__PURE__ */ t(
76
- B,
85
+ /* @__PURE__ */ t("div", { className: e["thread-list-item__post-body"], children: /* @__PURE__ */ s("div", { className: e["thread-list-item__post-body-content"], children: [
86
+ /* @__PURE__ */ s("div", { className: e["thread-list-item__name-row"], children: [
87
+ /* @__PURE__ */ s("div", { className: e["thread-list-item__name-group"], children: [
88
+ /* @__PURE__ */ t("span", { className: e["thread-list-item__author"], children: N }),
89
+ /* @__PURE__ */ t(D, { casing: "all-caps", label: v }),
90
+ u && /* @__PURE__ */ t(
91
+ "span",
77
92
  {
78
- casing: "all-caps",
79
- label: u
93
+ className: e["thread-list-item__status-hint"],
94
+ children: u
80
95
  }
81
96
  )
82
97
  ] }),
83
- /* @__PURE__ */ t("span", { className: e["thread-list-item__timestamp"], children: f })
98
+ /* @__PURE__ */ t("span", { className: e["thread-list-item__timestamp"], children: y })
84
99
  ] }),
85
- d != null && /* @__PURE__ */ t("div", { className: e["thread-list-item__title-row"], children: /* @__PURE__ */ t("p", { className: e["thread-list-item__title"], children: d }) }),
86
- /* @__PURE__ */ t("p", { className: e["thread-list-item__preview"], children: N })
100
+ c != null && /* @__PURE__ */ t("div", { className: e["thread-list-item__title-row"], children: /* @__PURE__ */ t("p", { className: e["thread-list-item__title"], children: c }) }),
101
+ /* @__PURE__ */ t("p", { className: e["thread-list-item__preview"], children: f })
87
102
  ] }) })
88
103
  ] }),
89
- /* @__PURE__ */ t("div", { className: e["thread-list-item__replies"], children: /* @__PURE__ */ a("div", { className: e["thread-list-item__replies-inner"], children: [
90
- y && /* @__PURE__ */ t(
91
- j,
104
+ /* @__PURE__ */ t("div", { className: e["thread-list-item__replies"], children: /* @__PURE__ */ s("div", { className: e["thread-list-item__replies-inner"], children: [
105
+ w && /* @__PURE__ */ t(
106
+ z,
92
107
  {
93
- avatars: c,
108
+ avatars: _,
94
109
  className: e["thread-list-item__avatar-group"],
95
110
  max: 3,
96
111
  size: "20"
97
112
  }
98
113
  ),
99
- /* @__PURE__ */ t("span", { className: e["thread-list-item__reply-count"], children: g })
114
+ /* @__PURE__ */ t("span", { className: e["thread-list-item__reply-count"], children: A })
100
115
  ] }) })
101
- ] }) }),
102
- /* @__PURE__ */ t("div", { className: e["thread-list-item__actions"], children: /* @__PURE__ */ t("span", { className: e["thread-list-item__menu-button"], children: /* @__PURE__ */ t(
103
- x,
104
- {
105
- "aria-label": "Thread actions",
106
- icon: /* @__PURE__ */ t(A, { size: "16", glyph: /* @__PURE__ */ t(I, {}) }),
107
- padding: "compact",
108
- size: "small",
109
- style: "default",
110
- type: "button",
111
- onClick: (s) => {
112
- s.stopPropagation(), l == null || l(s);
113
- }
114
- }
115
- ) }) })
116
- ]
117
- }
118
- );
116
+ ] }) })
117
+ }
118
+ ),
119
+ h && /* @__PURE__ */ t("div", { className: e["thread-list-item__actions"], children: /* @__PURE__ */ t("span", { className: e["thread-list-item__menu-button"], children: /* @__PURE__ */ t(
120
+ B,
121
+ {
122
+ "aria-label": "Thread actions",
123
+ icon: /* @__PURE__ */ t(x, { size: "16", glyph: /* @__PURE__ */ t(b, {}) }),
124
+ padding: "compact",
125
+ size: "small",
126
+ style: "default",
127
+ type: "button",
128
+ onClick: (i) => {
129
+ i.stopPropagation(), h(i);
130
+ }
131
+ }
132
+ ) }) })
133
+ ] });
119
134
  }
120
135
  export {
121
- $ as default
136
+ q as default
122
137
  };
123
138
  //# sourceMappingURL=ThreadListItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThreadListItem.js","sources":["../../../src/components/thread-list-item/ThreadListItem.tsx"],"sourcesContent":["import DotsHorizontalIcon from '@mattermost/compass-icons/components/dots-horizontal';\nimport { type KeyboardEvent, type MouseEvent, useCallback } from 'react';\nimport Icon from '@/components/icon/Icon';\nimport IconButton from '@/components/icon-button/IconButton';\nimport Tag from '@/components/tag/Tag';\nimport MentionBadge from '../mention-badge/MentionBadge';\nimport UnreadBadge from '../unread-badge/UnreadBadge';\nimport UserAvatarGroup, {\n type UserAvatarGroupItem,\n} from '../user-avatar-group/UserAvatarGroup';\nimport styles from './ThreadListItem.module.scss';\n\nconst DEFAULT_PARTICIPANTS: UserAvatarGroupItem[] = [\n { key: 'leonard', name: 'Leonard Riley' },\n { key: 'aiko', name: 'Aiko Tan' },\n { key: 'arjun', name: 'Arjun Patel' },\n { key: 'marco', name: 'Marco Rinaldi' },\n { key: 'sofia', name: 'Sofia Bauer' },\n];\n\nexport interface ThreadListItemProps {\n /** Whether this item is the active/selected thread. */\n active?: boolean;\n /** Badge in the left gutter. Default: None. Hidden when `active` is true. */\n badge?: 'none' | 'unread' | 'mention';\n /** Shown when `badge` is Mention. Default: 1. */\n mentionCount?: number;\n /** Author name. */\n authorName?: string;\n /** Channel/team label. */\n channelLabel?: string;\n /** Message preview text. */\n previewText?: string;\n /** Timestamp label. */\n timestamp?: string;\n /** Number of replies. */\n replyCount?: number;\n /** Stacked avatars for recent participants. Pass `[]` to hide. When omitted, uses demo participants. */\n participants?: UserAvatarGroupItem[];\n /** Optional thread title. */\n threadTitle?: string;\n /** Optional CSS class name. */\n className?: string;\n /** Click handler. */\n onClick?: () => void;\n /** Thread overflow menu handler. */\n onMenuClick?: (event: MouseEvent<HTMLButtonElement>) => void;\n}\n\n/**\n * The Thread List Item is a single entry in the Threads view. Each row gives the user enough\n * context — who, where, what, when — to decide whether to open the thread without opening\n * it.\n */\nexport default function ThreadListItem({\n active = false,\n badge = 'none',\n mentionCount = 1,\n authorName = 'Martin Kraft',\n channelLabel = 'ENTERPRISE TEAM',\n previewText = 'Do we have a guideline for what minimum width we should support in the system console? I know that…',\n timestamp = '5 mins ago',\n replyCount = 3,\n participants: participantsProp,\n threadTitle,\n className = '',\n onClick,\n onMenuClick,\n}: ThreadListItemProps) {\n const participants =\n participantsProp === undefined ? DEFAULT_PARTICIPANTS : participantsProp;\n const showParticipants = participants.length > 0;\n const showGutterBadge =\n !active && (badge === 'unread' || badge === 'mention');\n const replyLabel = replyCount === 1 ? '1 reply' : `${replyCount} replies`;\n\n const rootClass = [\n styles['thread-list-item'],\n active ? styles['thread-list-item--active'] : '',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n if (!onClick) return;\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n onClick();\n }\n },\n [onClick],\n );\n\n return (\n <div\n className={rootClass}\n onClick={onClick}\n role={onClick ? 'button' : undefined}\n tabIndex={onClick ? 0 : undefined}\n onKeyDown={onClick ? handleKeyDown : undefined}\n >\n <div className={styles['thread-list-item__thread']}>\n <div className={styles['thread-list-item__container']}>\n <div className={styles['thread-list-item__post-content']}>\n <div className={styles['thread-list-item__gutter']}>\n {showGutterBadge && badge === 'unread' && (\n <UnreadBadge\n className={styles['thread-list-item__unread-badge']}\n context=\"icon-button\"\n />\n )}\n {showGutterBadge && badge === 'mention' && (\n <span className={styles['thread-list-item__mention-gutter']}>\n <MentionBadge\n count={mentionCount}\n location=\"channel\"\n size=\"medium\"\n />\n </span>\n )}\n </div>\n <div className={styles['thread-list-item__post-body']}>\n <div className={styles['thread-list-item__post-body-content']}>\n <div className={styles['thread-list-item__name-row']}>\n <div className={styles['thread-list-item__name-group']}>\n <span className={styles['thread-list-item__author']}>\n {authorName}\n </span>\n <Tag\n casing=\"all-caps\"\n label={channelLabel}\n />\n </div>\n <span className={styles['thread-list-item__timestamp']}>\n {timestamp}\n </span>\n </div>\n {threadTitle != null && (\n <div className={styles['thread-list-item__title-row']}>\n <p className={styles['thread-list-item__title']}>\n {threadTitle}\n </p>\n </div>\n )}\n <p className={styles['thread-list-item__preview']}>\n {previewText}\n </p>\n </div>\n </div>\n </div>\n <div className={styles['thread-list-item__replies']}>\n <div className={styles['thread-list-item__replies-inner']}>\n {showParticipants && (\n <UserAvatarGroup\n avatars={participants}\n className={styles['thread-list-item__avatar-group']}\n max={3}\n size=\"20\"\n />\n )}\n <span className={styles['thread-list-item__reply-count']}>\n {replyLabel}\n </span>\n </div>\n </div>\n </div>\n </div>\n <div className={styles['thread-list-item__actions']}>\n <span className={styles['thread-list-item__menu-button']}>\n <IconButton\n aria-label=\"Thread actions\"\n icon={<Icon size=\"16\" glyph={<DotsHorizontalIcon />} />}\n padding=\"compact\"\n size=\"small\"\n style=\"default\"\n type=\"button\"\n onClick={(e) => {\n e.stopPropagation();\n onMenuClick?.(e);\n }}\n />\n </span>\n </div>\n </div>\n );\n}\n"],"names":["DEFAULT_PARTICIPANTS","ThreadListItem","active","badge","mentionCount","authorName","channelLabel","previewText","timestamp","replyCount","participantsProp","threadTitle","className","onClick","onMenuClick","participants","showParticipants","showGutterBadge","replyLabel","rootClass","styles","handleKeyDown","useCallback","event","jsxs","jsx","UnreadBadge","MentionBadge","Tag","UserAvatarGroup","IconButton","Icon","DotsHorizontalIcon","e"],"mappings":";;;;;;;;;;AAYA,MAAMA,IAA8C;AAAA,EAClD,EAAE,KAAK,WAAW,MAAM,gBAAA;AAAA,EACxB,EAAE,KAAK,QAAQ,MAAM,WAAA;AAAA,EACrB,EAAE,KAAK,SAAS,MAAM,cAAA;AAAA,EACtB,EAAE,KAAK,SAAS,MAAM,gBAAA;AAAA,EACtB,EAAE,KAAK,SAAS,MAAM,cAAA;AACxB;AAoCA,SAAwBC,EAAe;A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A,UAAA,GACF;AAAA,UACA,gBAAAkB,EAAC,OAAA,EAAI,WAAWL,EAAO,2BAA2B,GAChD,UAAA,gBAAAI,EAAC,OAAA,EAAI,WAAWJ,EAAO,iCAAiC,GACrD,UAAA;AAAA,YAAAJ,KACC,gBAAAS;AAAA,cAACI;AAAA,cAAA;AAAA,gBACC,SAASd;AAAA,gBACT,WAAWK,EAAO,gCAAgC;AAAA,gBAClD,KAAK;AAAA,gBACL,MAAK;AAAA,cAAA;AAAA,YAAA;AAAA,8BAGR,QAAA,EAAK,WAAWA,EAAO,+BAA+B,GACpD,UAAAF,EAAA,CACH;AAAA,UAAA,EAAA,CACF,EAAA,CACF;AAAA,QAAA,EAAA,CACF,EAAA,CACF;AAAA,QACA,gBAAAO,EAAC,OAAA,EAAI,WAAWL,EAAO,2BAA2B,GAChD,UAAA,gBAAAK,EAAC,QAAA,EAAK,WAAWL,EAAO,+BAA+B,GACrD,UAAA,gBAAAK;AAAA,UAACK;AAAA,UAAA;AAAA,YACC,cAAW;AAAA,YACX,wBAAOC,GAAA,EAAK,MAAK,MAAK,OAAO,gBAAAN,EAACO,KAAmB,GAAI;AAAA,YACrD,SAAQ;AAAA,YACR,MAAK;AAAA,YACL,OAAM;AAAA,YACN,MAAK;AAAA,YACL,SAAS,CAACC,MAAM;AACd,cAAAA,EAAE,gBAAA,GACFnB,KAAA,QAAAA,EAAcmB;AAAA,YAChB;AAAA,UAAA;AAAA,QAAA,GAEJ,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"ThreadListItem.js","sources":["../../../src/components/thread-list-item/ThreadListItem.tsx"],"sourcesContent":["import DotsHorizontalIcon from '@mattermost/compass-icons/components/dots-horizontal';\nimport type { KeyboardEvent, MouseEvent } from 'react';\nimport Icon from '@/components/icon/Icon';\nimport IconButton from '@/components/icon-button/IconButton';\nimport Tag from '@/components/tag/Tag';\nimport MentionBadge from '../mention-badge/MentionBadge';\nimport UnreadBadge from '../unread-badge/UnreadBadge';\nimport UserAvatarGroup, {\n type UserAvatarGroupItem,\n} from '../user-avatar-group/UserAvatarGroup';\nimport styles from './ThreadListItem.module.scss';\n\nconst DEFAULT_PARTICIPANTS: UserAvatarGroupItem[] = [\n { key: 'leonard', name: 'Leonard Riley' },\n { key: 'aiko', name: 'Aiko Tan' },\n { key: 'arjun', name: 'Arjun Patel' },\n { key: 'marco', name: 'Marco Rinaldi' },\n { key: 'sofia', name: 'Sofia Bauer' },\n];\n\nexport interface ThreadListItemProps {\n /** Whether this item is the active/selected thread. */\n active?: boolean;\n /** Badge in the left gutter. Default: None. Hidden when `active` is true. */\n badge?: 'none' | 'unread' | 'mention';\n /** Shown when `badge` is Mention. Default: 1. */\n mentionCount?: number;\n /** Author name. */\n authorName?: string;\n /** Channel/team label. */\n channelLabel?: string;\n /** Message preview text. */\n previewText?: string;\n /** Timestamp label. */\n timestamp?: string;\n /** Number of replies. */\n replyCount?: number;\n /** Stacked avatars for recent participants. Pass `[]` to hide. When omitted, uses demo participants. */\n participants?: UserAvatarGroupItem[];\n /** Optional thread title. */\n threadTitle?: string;\n /** Optional CSS class name. */\n className?: string;\n /** Opens the thread. Sibling of the overflow menu for keyboard reachability. */\n onClick?: () => void;\n /** Thread overflow menu handler. */\n onMenuClick?: (event: MouseEvent<HTMLButtonElement>) => void;\n}\n\n/**\n * The Thread List Item is a single entry in the Threads view. Each row gives the user enough\n * context — who, where, what, when — to decide whether to open the thread without opening\n * it.\n */\nexport default function ThreadListItem({\n active = false,\n badge = 'none',\n mentionCount = 1,\n authorName = 'Martin Kraft',\n channelLabel = 'ENTERPRISE TEAM',\n previewText = 'Do we have a guideline for what minimum width we should support in the system console? I know that…',\n timestamp = '5 mins ago',\n replyCount = 3,\n participants: participantsProp,\n threadTitle,\n className = '',\n onClick,\n onMenuClick,\n}: ThreadListItemProps) {\n const participants =\n participantsProp === undefined ? DEFAULT_PARTICIPANTS : participantsProp;\n const showParticipants = participants.length > 0;\n const showGutterBadge =\n !active && (badge === 'unread' || badge === 'mention');\n const replyLabel = replyCount === 1 ? '1 reply' : `${replyCount} replies`;\n\n const rootClass = [\n styles['thread-list-item'],\n active ? styles['thread-list-item--active'] : '',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const statusHint =\n badge === 'mention'\n ? `${mentionCount} mention${mentionCount === 1 ? '' : 's'}`\n : badge === 'unread'\n ? 'unread'\n : undefined;\n\n const handleMainClick = (event: MouseEvent<HTMLDivElement>) => {\n const selection = window.getSelection();\n if (\n selection?.type === 'Range' &&\n selection.toString().length > 0 &&\n event.currentTarget.contains(selection.getRangeAt(0).commonAncestorContainer)\n ) {\n return;\n }\n onClick?.();\n };\n\n const handleMainKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key !== 'Enter' && event.key !== ' ') {\n return;\n }\n event.preventDefault();\n onClick?.();\n };\n\n return (\n <div className={rootClass}>\n <div\n className={styles['thread-list-item__main']}\n role={onClick ? 'button' : undefined}\n tabIndex={onClick ? 0 : undefined}\n onClick={onClick ? handleMainClick : undefined}\n onKeyDown={onClick ? handleMainKeyDown : undefined}\n aria-current={active ? true : undefined}\n >\n <div className={styles['thread-list-item__thread']}>\n <div className={styles['thread-list-item__container']}>\n <div className={styles['thread-list-item__post-content']}>\n <div className={styles['thread-list-item__gutter']}>\n {showGutterBadge && badge === 'unread' && (\n <span\n className={styles['thread-list-item__unread-gutter']}\n aria-hidden\n >\n <UnreadBadge\n className={styles['thread-list-item__unread-badge']}\n context=\"icon-button\"\n />\n </span>\n )}\n {showGutterBadge && badge === 'mention' && (\n <span\n className={styles['thread-list-item__mention-gutter']}\n aria-hidden\n >\n <MentionBadge\n count={mentionCount}\n location=\"channel\"\n size=\"medium\"\n />\n </span>\n )}\n </div>\n <div className={styles['thread-list-item__post-body']}>\n <div className={styles['thread-list-item__post-body-content']}>\n <div className={styles['thread-list-item__name-row']}>\n <div className={styles['thread-list-item__name-group']}>\n <span className={styles['thread-list-item__author']}>\n {authorName}\n </span>\n <Tag casing=\"all-caps\" label={channelLabel} />\n {statusHint && (\n <span\n className={styles['thread-list-item__status-hint']}\n >\n {statusHint}\n </span>\n )}\n </div>\n <span className={styles['thread-list-item__timestamp']}>\n {timestamp}\n </span>\n </div>\n {threadTitle != null && (\n <div className={styles['thread-list-item__title-row']}>\n <p className={styles['thread-list-item__title']}>\n {threadTitle}\n </p>\n </div>\n )}\n <p className={styles['thread-list-item__preview']}>\n {previewText}\n </p>\n </div>\n </div>\n </div>\n <div className={styles['thread-list-item__replies']}>\n <div className={styles['thread-list-item__replies-inner']}>\n {showParticipants && (\n <UserAvatarGroup\n avatars={participants}\n className={styles['thread-list-item__avatar-group']}\n max={3}\n size=\"20\"\n />\n )}\n <span className={styles['thread-list-item__reply-count']}>\n {replyLabel}\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n {onMenuClick && (\n <div className={styles['thread-list-item__actions']}>\n <span className={styles['thread-list-item__menu-button']}>\n <IconButton\n aria-label=\"Thread actions\"\n icon={<Icon size=\"16\" glyph={<DotsHorizontalIcon />} />}\n padding=\"compact\"\n size=\"small\"\n style=\"default\"\n type=\"button\"\n onClick={(event) => {\n event.stopPropagation();\n onMenuClick(event);\n }}\n />\n </span>\n </div>\n )}\n </div>\n );\n}\n"],"names":["DEFAULT_PARTICIPANTS","ThreadListItem","active","badge","mentionCount","authorName","channelLabel","previewText","timestamp","replyCount","participantsProp","threadTitle","className","onClick","onMenuClick","participants","showParticipants","showGutterBadge","replyLabel","rootClass","styles","statusHint","handleMainClick","event","selection","handleMainKeyDown","jsxs","jsx","UnreadBadge","MentionBadge","Tag","UserAvatarGroup","IconButton","Icon","DotsHorizontalIcon"],"mappings":";;;;;;;;;AAYA,MAAMA,IAA8C;AAAA,EAClD,EAAE,KAAK,WAAW,MAAM,gBAAA;AAAA,EACxB,EAAE,KAAK,QAAQ,MAAM,WAAA;AAAA,EACrB,EAAE,KAAK,SAAS,MAAM,cAAA;AAAA,EACtB,EAAE,KAAK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AA;AAAA,IAAA;AAAA,IAEDJ,KACC,gBAAAa,EAAC,OAAA,EAAI,WAAWP,EAAO,2BAA2B,GAChD,UAAA,gBAAAO,EAAC,QAAA,EAAK,WAAWP,EAAO,+BAA+B,GACrD,UAAA,gBAAAO;AAAA,MAACK;AAAA,MAAA;AAAA,QACC,cAAW;AAAA,QACX,wBAAOC,GAAA,EAAK,MAAK,MAAK,OAAO,gBAAAN,EAACO,KAAmB,GAAI;AAAA,QACrD,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,OAAM;AAAA,QACN,MAAK;AAAA,QACL,SAAS,CAACX,MAAU;AAClB,UAAAA,EAAM,gBAAA,GACNT,EAAYS,CAAK;AAAA,QACnB;AAAA,MAAA;AAAA,IAAA,GAEJ,EAAA,CACF;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -1 +1 @@
1
- ._thread-list-item_1fxzs_2{position:relative;display:flex;flex-direction:column;align-items:flex-end;background-color:var(--center-channel-bg);border-bottom:1px solid rgba(var(--center-channel-color-rgb),.08);cursor:default}._thread-list-item_1fxzs_2[role=button]{cursor:pointer}._thread-list-item_1fxzs_2:hover,._thread-list-item_1fxzs_2:focus-within{background-color:rgba(var(--center-channel-color-rgb),.08)}._thread-list-item_1fxzs_2:hover ._thread-list-item__menu-button_1fxzs_17,._thread-list-item_1fxzs_2:focus-within ._thread-list-item__menu-button_1fxzs_17{display:flex}._thread-list-item_1fxzs_2:hover ._thread-list-item__timestamp_1fxzs_20,._thread-list-item_1fxzs_2:focus-within ._thread-list-item__timestamp_1fxzs_20{display:none}._thread-list-item_1fxzs_2:focus-visible{outline:none;box-shadow:inset 0 0 0 2px rgba(var(--center-channel-color-rgb),.32)}._thread-list-item--active_1fxzs_27{background-color:rgba(var(--button-bg-rgb),.04)}._thread-list-item--active_1fxzs_27:hover{background-color:rgba(var(--button-bg-rgb),.08)}._thread-list-item__thread_1fxzs_33{display:flex;flex-direction:column;align-items:flex-start;padding:var(--spacing-l);width:100%}._thread-list-item__container_1fxzs_40{display:flex;flex-direction:column;gap:var(--spacing-s);align-items:flex-start;border-radius:var(--radius-s);width:100%}._thread-list-item__post-content_1fxzs_48{display:flex;gap:var(--spacing-xxxxs, 4px);align-items:flex-start;width:100%}._thread-list-item__gutter_1fxzs_54{position:relative;flex-shrink:0;width:8px;min-height:21px;display:flex;align-items:flex-start;justify-content:flex-start}._thread-list-item__unread-badge_1fxzs_63{position:absolute;top:var(--spacing-xxs);left:-4px}._thread-list-item__mention-gutter_1fxzs_68{position:absolute;top:1px;left:-12px;display:flex;align-items:center;justify-content:center}._thread-list-item__post-body_1fxzs_76{display:flex;flex-direction:column;flex:1 0 0;align-items:flex-start;min-width:0}._thread-list-item__post-body-content_1fxzs_83{display:flex;flex-direction:column;gap:var(--spacing-xxxxs, 4px);align-items:flex-start;width:100%}._thread-list-item__name-row_1fxzs_90{position:relative;height:20px;width:100%;display:flex;align-items:center;justify-content:space-between;overflow:hidden}._thread-list-item__name-group_1fxzs_99{display:flex;gap:var(--spacing-xs);align-items:center;overflow:hidden}._thread-list-item__author_1fxzs_105{font-size:var(--font-size-100);font-weight:var(--font-weight-semibold);line-height:var(--line-height-100);color:var(--center-channel-color);white-space:nowrap;flex-shrink:0}._thread-list-item__timestamp_1fxzs_20{font-size:var(--font-size-75);font-weight:var(--font-weight-regular);line-height:var(--line-height-25);color:rgba(var(--center-channel-color-rgb),.64);white-space:nowrap;flex-shrink:0}._thread-list-item__title-row_1fxzs_121{display:flex;align-items:center;width:100%}._thread-list-item__title_1fxzs_121{flex:1 0 0;font-size:var(--font-size-200);font-weight:var(--font-weight-semibold);line-height:var(--line-height-200);color:var(--center-channel-color);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}._thread-list-item__preview_1fxzs_137{font-size:var(--font-size-100);font-weight:var(--font-weight-regular);line-height:var(--line-height-100);color:var(--center-channel-color);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;width:100%}._thread-list-item__replies_1fxzs_148{display:flex;flex-direction:column;align-items:flex-start;padding-left:var(--spacing-m)}._thread-list-item__replies-inner_1fxzs_154{display:flex;align-items:center;gap:var(--spacing-xxxxs, 4px);min-height:24px;border-radius:var(--radius-s)}._thread-list-item__avatar-group_1fxzs_161{flex-shrink:0}._thread-list-item__reply-count_1fxzs_164{font-size:var(--font-size-75);font-weight:var(--font-weight-semibold);line-height:var(--line-height-25);color:rgba(var(--center-channel-color-rgb),.64);padding:4.5px var(--spacing-s)}._thread-list-item__actions_1fxzs_171{position:absolute;top:var(--spacing-m);right:var(--spacing-m);z-index:1;pointer-events:none}._thread-list-item__actions_1fxzs_171 ._thread-list-item__menu-button_1fxzs_17{pointer-events:auto}._thread-list-item__menu-button_1fxzs_17{display:none;align-items:center;justify-content:center}
1
+ ._thread-list-item_5rzhy_2{position:relative;display:flex;flex-direction:column;align-items:flex-end;background-color:var(--center-channel-bg);border-bottom:1px solid rgba(var(--center-channel-color-rgb),.08)}._thread-list-item__actions_5rzhy_10{position:absolute;top:var(--spacing-m);right:var(--spacing-m);z-index:2}._thread-list-item_5rzhy_2:hover ._thread-list-item__timestamp_5rzhy_16,._thread-list-item_5rzhy_2:focus-within ._thread-list-item__timestamp_5rzhy_16{visibility:hidden}._thread-list-item__menu-button_5rzhy_19{display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity var(--duration-quick) var(--ease-transition)}._thread-list-item_5rzhy_2:hover ._thread-list-item__menu-button_5rzhy_19,._thread-list-item_5rzhy_2:focus-within ._thread-list-item__menu-button_5rzhy_19{opacity:1;pointer-events:auto}._thread-list-item_5rzhy_2:not(:hover):not(:focus-within) ._thread-list-item__menu-button_5rzhy_19{pointer-events:none}._thread-list-item_5rzhy_2:hover:not(._thread-list-item--active_5rzhy_33),._thread-list-item_5rzhy_2:focus-within:not(._thread-list-item--active_5rzhy_33){background-color:rgba(var(--center-channel-color-rgb),.04)}._thread-list-item__main_5rzhy_36{position:relative;z-index:0;display:flex;flex-direction:column;align-items:flex-end;width:100%;padding:0;cursor:pointer;font:inherit;color:inherit;text-align:left;-webkit-user-select:text;user-select:text}._thread-list-item__main_5rzhy_36:focus{outline:none}._thread-list-item__main_5rzhy_36:focus-visible{box-shadow:inset 0 0 0 2px rgba(var(--center-channel-color-rgb),.32)}._thread-list-item--active_5rzhy_33{background-color:rgba(var(--button-bg-rgb),.04)}._thread-list-item--active_5rzhy_33:hover,._thread-list-item--active_5rzhy_33:focus-within{background-color:rgba(var(--button-bg-rgb),.08)}._thread-list-item__thread_5rzhy_62{display:flex;flex-direction:column;align-items:flex-start;padding:var(--spacing-l);width:100%}._thread-list-item__container_5rzhy_69{display:flex;flex-direction:column;gap:var(--spacing-s);align-items:flex-start;border-radius:var(--radius-s);width:100%}._thread-list-item__post-content_5rzhy_77{display:flex;gap:var(--spacing-xxxxs, 4px);align-items:flex-start;width:100%}._thread-list-item__gutter_5rzhy_83{position:relative;flex-shrink:0;width:8px;min-height:21px;display:flex;align-items:flex-start;justify-content:flex-start}._thread-list-item__unread-gutter_5rzhy_92{position:absolute;top:var(--spacing-xxs);left:-4px;display:flex;align-items:center;justify-content:center}._thread-list-item__unread-badge_5rzhy_100{position:static}._thread-list-item__mention-gutter_5rzhy_103{position:absolute;top:1px;left:-12px;display:flex;align-items:center;justify-content:center}._thread-list-item__post-body_5rzhy_111{display:flex;flex-direction:column;flex:1 0 0;align-items:flex-start;min-width:0}._thread-list-item__post-body-content_5rzhy_118{display:flex;flex-direction:column;gap:var(--spacing-xxxxs, 4px);align-items:flex-start;width:100%}._thread-list-item__name-row_5rzhy_125{position:relative;height:20px;width:100%;display:flex;align-items:center;justify-content:space-between;overflow:hidden}._thread-list-item__name-group_5rzhy_134{display:flex;gap:var(--spacing-xs);align-items:center;overflow:hidden}._thread-list-item__author_5rzhy_140{font-size:var(--font-size-100);font-weight:var(--font-weight-semibold);line-height:var(--line-height-100);color:var(--center-channel-color);white-space:nowrap;flex-shrink:0}._thread-list-item__status-hint_5rzhy_148{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}._thread-list-item__timestamp_5rzhy_16{font-size:var(--font-size-75);font-weight:var(--font-weight-regular);line-height:var(--line-height-25);color:rgba(var(--center-channel-color-rgb),.64);white-space:nowrap;flex-shrink:0}._thread-list-item__title-row_5rzhy_167{display:flex;align-items:center;width:100%}._thread-list-item__title_5rzhy_167{flex:1 0 0;font-size:var(--font-size-200);font-weight:var(--font-weight-semibold);line-height:var(--line-height-200);color:var(--center-channel-color);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}._thread-list-item__preview_5rzhy_183{font-size:var(--font-size-100);font-weight:var(--font-weight-regular);line-height:var(--line-height-100);color:var(--center-channel-color);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;width:100%}._thread-list-item__replies_5rzhy_194{display:flex;flex-direction:column;align-items:flex-start;padding-left:var(--spacing-m)}._thread-list-item__replies-inner_5rzhy_200{display:flex;align-items:center;gap:var(--spacing-xxxxs, 4px);min-height:24px;border-radius:var(--radius-s)}._thread-list-item__avatar-group_5rzhy_207{flex-shrink:0}._thread-list-item__reply-count_5rzhy_210{font-size:var(--font-size-75);font-weight:var(--font-weight-semibold);line-height:var(--line-height-25);color:rgba(var(--center-channel-color-rgb),.64);padding:4.5px var(--spacing-s)}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./ThreadListItem.module.css');const t={"thread-list-item":"_thread-list-item_1fxzs_2","thread-list-item__menu-button":"_thread-list-item__menu-button_1fxzs_17","thread-list-item__timestamp":"_thread-list-item__timestamp_1fxzs_20","thread-list-item--active":"_thread-list-item--active_1fxzs_27","thread-list-item__thread":"_thread-list-item__thread_1fxzs_33","thread-list-item__container":"_thread-list-item__container_1fxzs_40","thread-list-item__post-content":"_thread-list-item__post-content_1fxzs_48","thread-list-item__gutter":"_thread-list-item__gutter_1fxzs_54","thread-list-item__unread-badge":"_thread-list-item__unread-badge_1fxzs_63","thread-list-item__mention-gutter":"_thread-list-item__mention-gutter_1fxzs_68","thread-list-item__post-body":"_thread-list-item__post-body_1fxzs_76","thread-list-item__post-body-content":"_thread-list-item__post-body-content_1fxzs_83","thread-list-item__name-row":"_thread-list-item__name-row_1fxzs_90","thread-list-item__name-group":"_thread-list-item__name-group_1fxzs_99","thread-list-item__author":"_thread-list-item__author_1fxzs_105","thread-list-item__title-row":"_thread-list-item__title-row_1fxzs_121","thread-list-item__title":"_thread-list-item__title_1fxzs_121","thread-list-item__preview":"_thread-list-item__preview_1fxzs_137","thread-list-item__replies":"_thread-list-item__replies_1fxzs_148","thread-list-item__replies-inner":"_thread-list-item__replies-inner_1fxzs_154","thread-list-item__avatar-group":"_thread-list-item__avatar-group_1fxzs_161","thread-list-item__reply-count":"_thread-list-item__reply-count_1fxzs_164","thread-list-item__actions":"_thread-list-item__actions_1fxzs_171"};exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./ThreadListItem.module.css');const t={"thread-list-item":"_thread-list-item_5rzhy_2","thread-list-item__actions":"_thread-list-item__actions_5rzhy_10","thread-list-item__timestamp":"_thread-list-item__timestamp_5rzhy_16","thread-list-item__menu-button":"_thread-list-item__menu-button_5rzhy_19","thread-list-item--active":"_thread-list-item--active_5rzhy_33","thread-list-item__main":"_thread-list-item__main_5rzhy_36","thread-list-item__thread":"_thread-list-item__thread_5rzhy_62","thread-list-item__container":"_thread-list-item__container_5rzhy_69","thread-list-item__post-content":"_thread-list-item__post-content_5rzhy_77","thread-list-item__gutter":"_thread-list-item__gutter_5rzhy_83","thread-list-item__unread-gutter":"_thread-list-item__unread-gutter_5rzhy_92","thread-list-item__unread-badge":"_thread-list-item__unread-badge_5rzhy_100","thread-list-item__mention-gutter":"_thread-list-item__mention-gutter_5rzhy_103","thread-list-item__post-body":"_thread-list-item__post-body_5rzhy_111","thread-list-item__post-body-content":"_thread-list-item__post-body-content_5rzhy_118","thread-list-item__name-row":"_thread-list-item__name-row_5rzhy_125","thread-list-item__name-group":"_thread-list-item__name-group_5rzhy_134","thread-list-item__author":"_thread-list-item__author_5rzhy_140","thread-list-item__status-hint":"_thread-list-item__status-hint_5rzhy_148","thread-list-item__title-row":"_thread-list-item__title-row_5rzhy_167","thread-list-item__title":"_thread-list-item__title_5rzhy_167","thread-list-item__preview":"_thread-list-item__preview_5rzhy_183","thread-list-item__replies":"_thread-list-item__replies_5rzhy_194","thread-list-item__replies-inner":"_thread-list-item__replies-inner_5rzhy_200","thread-list-item__avatar-group":"_thread-list-item__avatar-group_5rzhy_207","thread-list-item__reply-count":"_thread-list-item__reply-count_5rzhy_210"};exports.default=t;
2
2
  //# sourceMappingURL=ThreadListItem.module.scss.cjs.map
@@ -1,27 +1,30 @@
1
1
  import './ThreadListItem.module.css';const t = {
2
- "thread-list-item": "_thread-list-item_1fxzs_2",
3
- "thread-list-item__menu-button": "_thread-list-item__menu-button_1fxzs_17",
4
- "thread-list-item__timestamp": "_thread-list-item__timestamp_1fxzs_20",
5
- "thread-list-item--active": "_thread-list-item--active_1fxzs_27",
6
- "thread-list-item__thread": "_thread-list-item__thread_1fxzs_33",
7
- "thread-list-item__container": "_thread-list-item__container_1fxzs_40",
8
- "thread-list-item__post-content": "_thread-list-item__post-content_1fxzs_48",
9
- "thread-list-item__gutter": "_thread-list-item__gutter_1fxzs_54",
10
- "thread-list-item__unread-badge": "_thread-list-item__unread-badge_1fxzs_63",
11
- "thread-list-item__mention-gutter": "_thread-list-item__mention-gutter_1fxzs_68",
12
- "thread-list-item__post-body": "_thread-list-item__post-body_1fxzs_76",
13
- "thread-list-item__post-body-content": "_thread-list-item__post-body-content_1fxzs_83",
14
- "thread-list-item__name-row": "_thread-list-item__name-row_1fxzs_90",
15
- "thread-list-item__name-group": "_thread-list-item__name-group_1fxzs_99",
16
- "thread-list-item__author": "_thread-list-item__author_1fxzs_105",
17
- "thread-list-item__title-row": "_thread-list-item__title-row_1fxzs_121",
18
- "thread-list-item__title": "_thread-list-item__title_1fxzs_121",
19
- "thread-list-item__preview": "_thread-list-item__preview_1fxzs_137",
20
- "thread-list-item__replies": "_thread-list-item__replies_1fxzs_148",
21
- "thread-list-item__replies-inner": "_thread-list-item__replies-inner_1fxzs_154",
22
- "thread-list-item__avatar-group": "_thread-list-item__avatar-group_1fxzs_161",
23
- "thread-list-item__reply-count": "_thread-list-item__reply-count_1fxzs_164",
24
- "thread-list-item__actions": "_thread-list-item__actions_1fxzs_171"
2
+ "thread-list-item": "_thread-list-item_5rzhy_2",
3
+ "thread-list-item__actions": "_thread-list-item__actions_5rzhy_10",
4
+ "thread-list-item__timestamp": "_thread-list-item__timestamp_5rzhy_16",
5
+ "thread-list-item__menu-button": "_thread-list-item__menu-button_5rzhy_19",
6
+ "thread-list-item--active": "_thread-list-item--active_5rzhy_33",
7
+ "thread-list-item__main": "_thread-list-item__main_5rzhy_36",
8
+ "thread-list-item__thread": "_thread-list-item__thread_5rzhy_62",
9
+ "thread-list-item__container": "_thread-list-item__container_5rzhy_69",
10
+ "thread-list-item__post-content": "_thread-list-item__post-content_5rzhy_77",
11
+ "thread-list-item__gutter": "_thread-list-item__gutter_5rzhy_83",
12
+ "thread-list-item__unread-gutter": "_thread-list-item__unread-gutter_5rzhy_92",
13
+ "thread-list-item__unread-badge": "_thread-list-item__unread-badge_5rzhy_100",
14
+ "thread-list-item__mention-gutter": "_thread-list-item__mention-gutter_5rzhy_103",
15
+ "thread-list-item__post-body": "_thread-list-item__post-body_5rzhy_111",
16
+ "thread-list-item__post-body-content": "_thread-list-item__post-body-content_5rzhy_118",
17
+ "thread-list-item__name-row": "_thread-list-item__name-row_5rzhy_125",
18
+ "thread-list-item__name-group": "_thread-list-item__name-group_5rzhy_134",
19
+ "thread-list-item__author": "_thread-list-item__author_5rzhy_140",
20
+ "thread-list-item__status-hint": "_thread-list-item__status-hint_5rzhy_148",
21
+ "thread-list-item__title-row": "_thread-list-item__title-row_5rzhy_167",
22
+ "thread-list-item__title": "_thread-list-item__title_5rzhy_167",
23
+ "thread-list-item__preview": "_thread-list-item__preview_5rzhy_183",
24
+ "thread-list-item__replies": "_thread-list-item__replies_5rzhy_194",
25
+ "thread-list-item__replies-inner": "_thread-list-item__replies-inner_5rzhy_200",
26
+ "thread-list-item__avatar-group": "_thread-list-item__avatar-group_5rzhy_207",
27
+ "thread-list-item__reply-count": "_thread-list-item__reply-count_5rzhy_210"
25
28
  };
26
29
  export {
27
30
  t as default
@@ -1 +1 @@
1
- {"version":3,"file":"ThreadListItem.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ThreadListItem.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),__n=require("@mattermost/compass-icons/components/alert-circle-outline.js"),n=__n?.default??__n,__f=require("@mattermost/compass-icons/components/alert-outline.js"),f=__f?.default??__f,__j=require("@mattermost/compass-icons/components/check.js"),j=__j?.default??__j,__x=require("@mattermost/compass-icons/components/close.js"),x=__x?.default??__x,__m=require("@mattermost/compass-icons/components/information-outline.js"),m=__m?.default??__m,_=require("../button/Button.cjs"),o=require("../icon/Icon.cjs"),h=require("../icon-button/IconButton.cjs"),s=require("./Toast.module.scss.cjs"),p={general:e.jsx(n,{}),info:e.jsx(m,{}),success:e.jsx(j,{}),danger:e.jsx(f,{}),warning:e.jsx(n,{})};function q({className:r="",message:i,type:t="general",actionLabel:a,onAction:c,onDismiss:l}){const u=s.default[`toast--type-${t.toLowerCase()}`],d=[s.default.toast,u,r].filter(Boolean).join(" ");return e.jsxs("div",{className:d,role:"status","aria-live":"polite",children:[e.jsxs("div",{className:s.default.toast__content,children:[e.jsx("span",{className:s.default.toast__icon,"aria-hidden":!0,children:e.jsx(o.default,{glyph:p[t],size:"16"})}),e.jsx("span",{className:s.default.toast__message,children:i}),a!=null&&e.jsx(_.default,{appearance:"default",emphasis:"tertiary",size:"x-small",className:s.default["toast__action-btn--on-dark"],onClick:c,children:a})]}),l!=null&&e.jsx(h.default,{"aria-label":"Dismiss",size:"small",className:s.default.toast__dismiss,icon:e.jsx(o.default,{glyph:e.jsx(x,{}),size:"16"}),onClick:l})]})}exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),__n=require("@mattermost/compass-icons/components/alert-circle-outline.js"),n=__n?.default??__n,__j=require("@mattermost/compass-icons/components/alert-outline.js"),j=__j?.default??__j,__m=require("@mattermost/compass-icons/components/check.js"),m=__m?.default??__m,__x=require("@mattermost/compass-icons/components/close.js"),x=__x?.default??__x,___=require("@mattermost/compass-icons/components/information-outline.js"),_=___?.default??___,h=require("../button/Button.cjs"),o=require("../icon/Icon.cjs"),p=require("../icon-button/IconButton.cjs"),s=require("./Toast.module.scss.cjs"),q={general:e.jsx(n,{}),info:e.jsx(_,{}),success:e.jsx(m,{}),danger:e.jsx(j,{}),warning:e.jsx(n,{})};function C({className:i="",message:r,type:a="general",actionLabel:l,onAction:c,onDismiss:t}){const u=s.default[`toast--type-${a.toLowerCase()}`],d=t==null?s.default["toast--no-dismiss"]:"",f=[s.default.toast,u,d,i].filter(Boolean).join(" ");return e.jsxs("div",{className:f,role:"status","aria-live":"polite",children:[e.jsxs("div",{className:s.default.toast__content,children:[e.jsx("span",{className:s.default.toast__icon,"aria-hidden":!0,children:e.jsx(o.default,{glyph:q[a],size:"16"})}),e.jsx("span",{className:s.default.toast__message,children:r}),l!=null&&e.jsx(h.default,{appearance:"default",emphasis:"tertiary",size:"x-small",className:s.default["toast__action-btn--on-dark"],onClick:c,children:l})]}),t!=null&&e.jsx(p.default,{"aria-label":"Dismiss",size:"small",className:s.default.toast__dismiss,icon:e.jsx(o.default,{glyph:e.jsx(x,{}),size:"16"}),onClick:t})]})}exports.default=C;
2
2
  //# sourceMappingURL=Toast.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.cjs","sources":["../../../src/components/toast/Toast.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport AlertCircleOutlineIcon from '@mattermost/compass-icons/components/alert-circle-outline';\nimport AlertOutlineIcon from '@mattermost/compass-icons/components/alert-outline';\nimport CheckIcon from '@mattermost/compass-icons/components/check';\nimport CloseIcon from '@mattermost/compass-icons/components/close';\nimport InformationOutlineIcon from '@mattermost/compass-icons/components/information-outline';\nimport Button from '@/components/button/Button';\nimport Icon from '@/components/icon/Icon';\nimport IconButton from '@/components/icon-button/IconButton';\nimport styles from './Toast.module.scss';\n\nexport type ToastType =\n | 'general'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger';\n\nexport interface ToastProps {\n className?: string;\n message: string;\n type?: ToastType;\n actionLabel?: string;\n onAction?: () => void;\n onDismiss?: () => void;\n}\n\nconst TYPE_ICONS: Record<ToastType, ReactNode> = {\n general: <AlertCircleOutlineIcon />,\n info: <InformationOutlineIcon />,\n success: <CheckIcon />,\n danger: <AlertOutlineIcon />,\n warning: <AlertCircleOutlineIcon />,\n};\n\n/**\n * Toasts notify the user that an action has completed or surface a brief message about a\n * system process. They sit on top of the workflow without interrupting it, don't require\n * user input to disappear, and auto-dismiss after a short duration.\n */\nexport default function Toast({\n className = '',\n message,\n type = 'general',\n actionLabel,\n onAction,\n onDismiss,\n}: ToastProps) {\n const typeClass = styles[`toast--type-${type.toLowerCase()}`];\n const rootClass = [styles.toast, typeClass, className].filter(Boolean).join(' ');\n\n return (\n <div className={rootClass} role=\"status\" aria-live=\"polite\">\n <div className={styles['toast__content']}>\n <span className={styles['toast__icon']} aria-hidden>\n <Icon glyph={TYPE_ICONS[type]} size=\"16\" />\n </span>\n <span className={styles['toast__message']}>{message}</span>\n {actionLabel != null && (\n <Button\n appearance=\"default\"\n emphasis=\"tertiary\"\n size=\"x-small\"\n className={styles['toast__action-btn--on-dark']}\n onClick={onAction}\n >\n {actionLabel}\n </Button>\n )}\n </div>\n {onDismiss != null && (\n <IconButton\n aria-label=\"Dismiss\"\n size=\"small\"\n className={styles['toast__dismiss']}\n icon={<Icon glyph={<CloseIcon />} size=\"16\" />}\n onClick={onDismiss}\n />\n )}\n </div>\n );\n}\n"],"names":["TYPE_ICONS","AlertCircleOutlineIcon","InformationOutlineIcon","CheckIcon","AlertOutlineIcon","Toast","className","message","type","actionLabel","onAction","onDismiss","typeClass","styles","rootClass","jsxs","jsx","Icon","Button","IconButton","CloseIcon"],"mappings":"6lBA2BMA,EAA2C,CAC/C,cAAUC,EAAA,EAAuB,EACjC,WAAOC,EAAA,EAAuB,EAC9B,cAAUC,EAAA,EAAU,EACpB,aAASC,EAAA,EAAiB,EAC1B,cAAUH,EAAA,CAAA,CAAuB,CACnC,EAOA,SAAwBI,EAAM,CAC5B,UAAAC,EAAY,GACZ,QAAAC,EACA,KAAAC,EAAO,UACP,YAAAC,EACA,SAAAC,EACA,UAAAC,CACF,EAAe,CACb,MAAMC,EAAYC,EAAAA,QAAO,eAAeL,EAAK,YAAA,CAAa,EAAE,EACtDM,EAAY,CAACD,UAAO,MAAOD,EAAWN,CAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAE/E,cACG,MAAA,CAAI,UAAWQ,EAAW,KAAK,SAAS,YAAU,SACjD,SAAA,CAAAC,EAAAA,KAAC,MAAA,CAAI,UAAWF,EAAAA,QAAO,eACrB,SAAA,CAAAG,MAAC,OAAA,CAAK,UAAWH,EAAAA,QAAO,YAAgB,cAAW,GACjD,SAAAG,EAAAA,IAACC,UAAA,CAAK,MAAOjB,EAAWQ,CAAI,EAAG,KAAK,KAAK,EAC3C,QACC,OAAA,CAAK,UAAWK,EAAAA,QAAO,eAAoB,SAAAN,EAAQ,EACnDE,GAAe,MACdO,EAAAA,IAACE,EAAAA,QAAA,CACC,WAAW,UACX,SAAS,WACT,KAAK,UACL,UAAWL,EAAAA,QAAO,4BAA4B,EAC9C,QAASH,EAER,SAAAD,CAAA,CAAA,CACH,EAEJ,EACCE,GAAa,MACZK,EAAAA,IAACG,EAAAA,QAAA,CACC,aAAW,UACX,KAAK,QACL,UAAWN,EAAAA,QAAO,eAClB,WAAOI,UAAA,CAAK,YAAQG,EAAA,EAAU,EAAI,KAAK,KAAK,EAC5C,QAAST,CAAA,CAAA,CACX,EAEJ,CAEJ"}
1
+ {"version":3,"file":"Toast.cjs","sources":["../../../src/components/toast/Toast.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport AlertCircleOutlineIcon from '@mattermost/compass-icons/components/alert-circle-outline';\nimport AlertOutlineIcon from '@mattermost/compass-icons/components/alert-outline';\nimport CheckIcon from '@mattermost/compass-icons/components/check';\nimport CloseIcon from '@mattermost/compass-icons/components/close';\nimport InformationOutlineIcon from '@mattermost/compass-icons/components/information-outline';\nimport Button from '@/components/button/Button';\nimport Icon from '@/components/icon/Icon';\nimport IconButton from '@/components/icon-button/IconButton';\nimport styles from './Toast.module.scss';\n\nexport type ToastType =\n | 'general'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger';\n\nexport interface ToastProps {\n className?: string;\n message: string;\n type?: ToastType;\n actionLabel?: string;\n onAction?: () => void;\n onDismiss?: () => void;\n}\n\nconst TYPE_ICONS: Record<ToastType, ReactNode> = {\n general: <AlertCircleOutlineIcon />,\n info: <InformationOutlineIcon />,\n success: <CheckIcon />,\n danger: <AlertOutlineIcon />,\n warning: <AlertCircleOutlineIcon />,\n};\n\n/**\n * Toasts notify the user that an action has completed or surface a brief message about a\n * system process. They sit on top of the workflow without interrupting it, don't require\n * user input to disappear, and auto-dismiss after a short duration.\n */\nexport default function Toast({\n className = '',\n message,\n type = 'general',\n actionLabel,\n onAction,\n onDismiss,\n}: ToastProps) {\n const typeClass = styles[`toast--type-${type.toLowerCase()}`];\n const noDismissClass = onDismiss == null ? styles['toast--no-dismiss'] : '';\n const rootClass = [styles.toast, typeClass, noDismissClass, className]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div className={rootClass} role=\"status\" aria-live=\"polite\">\n <div className={styles['toast__content']}>\n <span className={styles['toast__icon']} aria-hidden>\n <Icon glyph={TYPE_ICONS[type]} size=\"16\" />\n </span>\n <span className={styles['toast__message']}>{message}</span>\n {actionLabel != null && (\n <Button\n appearance=\"default\"\n emphasis=\"tertiary\"\n size=\"x-small\"\n className={styles['toast__action-btn--on-dark']}\n onClick={onAction}\n >\n {actionLabel}\n </Button>\n )}\n </div>\n {onDismiss != null && (\n <IconButton\n aria-label=\"Dismiss\"\n size=\"small\"\n className={styles['toast__dismiss']}\n icon={<Icon glyph={<CloseIcon />} size=\"16\" />}\n onClick={onDismiss}\n />\n )}\n </div>\n );\n}\n"],"names":["TYPE_ICONS","AlertCircleOutlineIcon","InformationOutlineIcon","CheckIcon","AlertOutlineIcon","Toast","className","message","type","actionLabel","onAction","onDismiss","typeClass","styles","noDismissClass","rootClass","jsxs","jsx","Icon","Button","IconButton","CloseIcon"],"mappings":"6lBA2BMA,EAA2C,CAC/C,cAAUC,EAAA,EAAuB,EACjC,WAAOC,EAAA,EAAuB,EAC9B,cAAUC,EAAA,EAAU,EACpB,aAASC,EAAA,EAAiB,EAC1B,cAAUH,EAAA,CAAA,CAAuB,CACnC,EAOA,SAAwBI,EAAM,CAC5B,UAAAC,EAAY,GACZ,QAAAC,EACA,KAAAC,EAAO,UACP,YAAAC,EACA,SAAAC,EACA,UAAAC,CACF,EAAe,CACb,MAAMC,EAAYC,EAAAA,QAAO,eAAeL,EAAK,YAAA,CAAa,EAAE,EACtDM,EAAiBH,GAAa,KAAOE,EAAAA,QAAO,mBAAmB,EAAI,GACnEE,EAAY,CAACF,UAAO,MAAOD,EAAWE,EAAgBR,CAAS,EAClE,OAAO,OAAO,EACd,KAAK,GAAG,EAEX,cACG,MAAA,CAAI,UAAWS,EAAW,KAAK,SAAS,Y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kCZ"}
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/toast/Toast.tsx"],"names":[],"mappings":"AAWA,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;AAEb,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAUD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,SAAc,EACd,OAAO,EACP,IAAgB,EAChB,WAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,UAAU,2CAqCZ"}