@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
- @keyframes _checkbox-icon-enter_13j3t_1{0%{transform:scale(.5)}to{transform:scale(1)}}._checkbox_13j3t_10{position:relative;display:flex;align-items:center;width:100%;gap:var(--spacing-s);font-family:var(--font-family-body);color:var(--center-channel-color);cursor:pointer;-webkit-user-select:none;user-select:none}._checkbox_13j3t_10:has(._checkbox__input_13j3t_21:disabled){cursor:not-allowed;color:rgba(var(--center-channel-color-rgb),.56)}._checkbox__input_13j3t_21{position:absolute;left:0;top:50%;transform:translateY(-50%);margin:0;padding:0;opacity:0;overflow:hidden;white-space:nowrap;border:0;cursor:inherit}._checkbox__input_13j3t_21:focus-visible{outline:none}._checkbox__box_13j3t_41{position:relative;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;background-color:var(--center-channel-bg);border:1px solid rgba(var(--center-channel-color-rgb),.24);transition:background-color var(--duration-quick) var(--ease-transition),border-color var(--duration-quick) var(--ease-transition),box-shadow var(--duration-quick) var(--ease-transition)}._checkbox__input_13j3t_21:focus-visible~._checkbox__box_13j3t_41{box-shadow:0 0 0 2px rgba(var(--button-bg-rgb),.56)}._checkbox_13j3t_10:has(._checkbox__input_13j3t_21:not(:disabled)):hover ._checkbox__box_13j3t_41{border-color:rgba(var(--center-channel-color-rgb),.32)}._checkbox__input_13j3t_21:disabled~._checkbox__box_13j3t_41{background-color:var(--center-channel-bg);border-color:rgba(var(--center-channel-color-rgb),.16)}._checkbox__input_13j3t_21:checked~._checkbox__box_13j3t_41,._checkbox--indeterminate_13j3t_62 ._checkbox__box_13j3t_41{background-color:var(--button-bg);border-color:var(--button-bg)}._checkbox__input_13j3t_21:checked~._checkbox__box_13j3t_41 ._checkbox__icon_13j3t_66,._checkbox--indeterminate_13j3t_62 ._checkbox__box_13j3t_41 ._checkbox__icon_13j3t_66{color:var(--color-neutral-0)}._checkbox_13j3t_10:has(._checkbox__input_13j3t_21:not(:disabled)):hover ._checkbox__input_13j3t_21:checked~._checkbox__box_13j3t_41,._checkbox_13j3t_10:has(._checkbox__input_13j3t_21:not(:disabled)):hover._checkbox--indeterminate_13j3t_62 ._checkbox__box_13j3t_41{background-color:var(--button-bg);border-color:var(--button-bg)}._checkbox__input_13j3t_21:focus-visible:checked~._checkbox__box_13j3t_41,._checkbox--indeterminate_13j3t_62 ._checkbox__input_13j3t_21:focus-visible~._checkbox__box_13j3t_41{border-color:var(--button-bg);box-shadow:0 0 0 2px rgba(var(--button-bg-rgb),.56)}._checkbox__input_13j3t_21:disabled:checked~._checkbox__box_13j3t_41,._checkbox--indeterminate_13j3t_62 ._checkbox__input_13j3t_21:disabled~._checkbox__box_13j3t_41{background-color:rgba(var(--color-neutral-900-rgb),.32);border-color:transparent}._checkbox__input_13j3t_21:disabled:checked~._checkbox__box_13j3t_41 ._checkbox__icon_13j3t_66,._checkbox--indeterminate_13j3t_62 ._checkbox__input_13j3t_21:disabled~._checkbox__box_13j3t_41 ._checkbox__icon_13j3t_66{color:var(--color-neutral-0)}._checkbox--invalid_13j3t_84 ._checkbox__box_13j3t_41{border-color:rgba(var(--error-text-color-rgb, var(--color-danger-rgb)),.5)}._checkbox--invalid_13j3t_84 ._checkbox__input_13j3t_21:checked~._checkbox__box_13j3t_41,._checkbox--invalid_13j3t_84._checkbox--indeterminate_13j3t_62 ._checkbox__box_13j3t_41{background-color:var(--error-text, var(--color-danger));border-color:var(--error-text, var(--color-danger))}._checkbox--invalid_13j3t_84 ._checkbox__input_13j3t_21:checked~._checkbox__box_13j3t_41 ._checkbox__icon_13j3t_66,._checkbox--invalid_13j3t_84._checkbox--indeterminate_13j3t_62 ._checkbox__box_13j3t_41 ._checkbox__icon_13j3t_66{color:var(--color-neutral-0)}._checkbox_13j3t_10:has(._checkbox__input_13j3t_21:not(:disabled)):hover._checkbox--invalid_13j3t_84 ._checkbox__input_13j3t_21:checked~._checkbox__box_13j3t_41,._checkbox_13j3t_10:has(._checkbox__input_13j3t_21:not(:disabled)):hover._checkbox--invalid_13j3t_84._checkbox--indeterminate_13j3t_62 ._checkbox__box_13j3t_41{background-color:var(--error-text, var(--color-danger));border-color:var(--error-text, var(--color-danger))}._checkbox--invalid_13j3t_84 ._checkbox__input_13j3t_21:focus-visible~._checkbox__box_13j3t_41{box-shadow:0 0 0 2px var(--error-text, var(--color-danger))}._checkbox--invalid_13j3t_84 ._checkbox__input_13j3t_21:focus-visible:checked~._checkbox__box_13j3t_41,._checkbox--invalid_13j3t_84._checkbox--indeterminate_13j3t_62 ._checkbox__input_13j3t_21:focus-visible~._checkbox__box_13j3t_41{border-color:rgba(var(--color-neutral-0-rgb),.24);box-shadow:0 0 0 2px var(--error-text, var(--color-danger))}._checkbox_13j3t_10:has(._checkbox__input_13j3t_21:not(:disabled)):hover._checkbox--invalid_13j3t_84 ._checkbox__input_13j3t_21:not(:checked)~._checkbox__box_13j3t_41{border-color:var(--error-text, var(--color-danger))}._checkbox__icon_13j3t_66{display:inline-flex;align-items:center;justify-content:center;color:var(--color-neutral-0);pointer-events:none;transform-origin:center;animation:_checkbox-icon-enter_13j3t_1 var(--duration-quick) var(--ease-entrance) forwards}._checkbox__label_13j3t_117{line-height:1}._checkbox--size-small_13j3t_120 ._checkbox__input_13j3t_21{width:var(--icon-size-12);height:var(--icon-size-12)}._checkbox--size-small_13j3t_120 ._checkbox__box_13j3t_41{width:var(--icon-size-12);height:var(--icon-size-12);border-radius:var(--radius-xs)}._checkbox--size-small_13j3t_120 ._checkbox__label_13j3t_117{font-size:var(--font-size-75);line-height:var(--line-height-75)}._checkbox--size-medium_13j3t_133 ._checkbox__input_13j3t_21{width:var(--icon-size-16);height:var(--icon-size-16)}._checkbox--size-medium_13j3t_133 ._checkbox__box_13j3t_41{width:var(--icon-size-16);height:var(--icon-size-16);border-radius:var(--radius-xs)}._checkbox--size-medium_13j3t_133 ._checkbox__label_13j3t_117{font-size:var(--font-size-100);line-height:var(--line-height-100)}._checkbox--size-large_13j3t_146 ._checkbox__input_13j3t_21{width:var(--icon-size-20);height:var(--icon-size-20)}._checkbox--size-large_13j3t_146 ._checkbox__box_13j3t_41{width:var(--icon-size-20);height:var(--icon-size-20);border-radius:var(--radius-s)}._checkbox--size-large_13j3t_146 ._checkbox__label_13j3t_117{font-size:var(--font-size-200);line-height:var(--line-height-200)}
1
+ @keyframes _checkbox-icon-enter_1pc8o_1{0%{transform:scale(.5)}to{transform:scale(1)}}._checkbox_1pc8o_10{position:relative;display:flex;align-items:center;width:100%;gap:var(--spacing-s);font-family:var(--font-family-body);color:var(--center-channel-color);cursor:pointer;-webkit-user-select:none;user-select:none}._checkbox_1pc8o_10:has(._checkbox__input_1pc8o_21:disabled){cursor:not-allowed;color:rgba(var(--center-channel-color-rgb),.56)}._checkbox__input_1pc8o_21{position:absolute;left:0;top:50%;transform:translateY(-50%);margin:0;padding:0;opacity:0;overflow:hidden;white-space:nowrap;border:0;cursor:inherit}._checkbox__input_1pc8o_21:focus-visible{outline:none}._checkbox__box_1pc8o_41{position:relative;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;background-color:var(--center-channel-bg);border:1px solid rgba(var(--center-channel-color-rgb),.24);transition:background-color var(--duration-quick) var(--ease-transition),border-color var(--duration-quick) var(--ease-transition),box-shadow var(--duration-quick) var(--ease-transition)}._checkbox__input_1pc8o_21:focus-visible~._checkbox__box_1pc8o_41{box-shadow:0 0 0 2px rgba(var(--button-bg-rgb),.56)}._checkbox_1pc8o_10:has(._checkbox__input_1pc8o_21:not(:disabled)):hover ._checkbox__box_1pc8o_41{border-color:rgba(var(--center-channel-color-rgb),.32)}._checkbox__input_1pc8o_21:disabled~._checkbox__box_1pc8o_41{background-color:var(--center-channel-bg);border-color:rgba(var(--center-channel-color-rgb),.16)}._checkbox__input_1pc8o_21:checked~._checkbox__box_1pc8o_41,._checkbox--indeterminate_1pc8o_62 ._checkbox__box_1pc8o_41{background-color:var(--button-bg);border-color:var(--button-bg)}._checkbox__input_1pc8o_21:checked~._checkbox__box_1pc8o_41 ._checkbox__icon_1pc8o_66,._checkbox--indeterminate_1pc8o_62 ._checkbox__box_1pc8o_41 ._checkbox__icon_1pc8o_66{color:var(--button-color)}._checkbox_1pc8o_10:has(._checkbox__input_1pc8o_21:not(:disabled)):hover ._checkbox__input_1pc8o_21:checked~._checkbox__box_1pc8o_41,._checkbox_1pc8o_10:has(._checkbox__input_1pc8o_21:not(:disabled)):hover._checkbox--indeterminate_1pc8o_62 ._checkbox__box_1pc8o_41{background-color:var(--button-bg);border-color:var(--button-bg)}._checkbox__input_1pc8o_21:focus-visible:checked~._checkbox__box_1pc8o_41,._checkbox--indeterminate_1pc8o_62 ._checkbox__input_1pc8o_21:focus-visible~._checkbox__box_1pc8o_41{border-color:var(--button-bg);box-shadow:0 0 0 2px rgba(var(--button-bg-rgb),.56)}._checkbox__input_1pc8o_21:disabled:checked~._checkbox__box_1pc8o_41,._checkbox--indeterminate_1pc8o_62 ._checkbox__input_1pc8o_21:disabled~._checkbox__box_1pc8o_41{background-color:rgba(var(--center-channel-color-rgb),.32);border-color:transparent}._checkbox__input_1pc8o_21:disabled:checked~._checkbox__box_1pc8o_41 ._checkbox__icon_1pc8o_66,._checkbox--indeterminate_1pc8o_62 ._checkbox__input_1pc8o_21:disabled~._checkbox__box_1pc8o_41 ._checkbox__icon_1pc8o_66{color:var(--button-color)}._checkbox--invalid_1pc8o_84 ._checkbox__box_1pc8o_41{border-color:rgba(var(--error-text-color-rgb),.5)}._checkbox--invalid_1pc8o_84 ._checkbox__input_1pc8o_21:checked~._checkbox__box_1pc8o_41,._checkbox--invalid_1pc8o_84._checkbox--indeterminate_1pc8o_62 ._checkbox__box_1pc8o_41{background-color:var(--error-text);border-color:var(--error-text)}._checkbox--invalid_1pc8o_84 ._checkbox__input_1pc8o_21:checked~._checkbox__box_1pc8o_41 ._checkbox__icon_1pc8o_66,._checkbox--invalid_1pc8o_84._checkbox--indeterminate_1pc8o_62 ._checkbox__box_1pc8o_41 ._checkbox__icon_1pc8o_66{color:var(--button-color)}._checkbox_1pc8o_10:has(._checkbox__input_1pc8o_21:not(:disabled)):hover._checkbox--invalid_1pc8o_84 ._checkbox__input_1pc8o_21:checked~._checkbox__box_1pc8o_41,._checkbox_1pc8o_10:has(._checkbox__input_1pc8o_21:not(:disabled)):hover._checkbox--invalid_1pc8o_84._checkbox--indeterminate_1pc8o_62 ._checkbox__box_1pc8o_41{background-color:var(--error-text);border-color:var(--error-text)}._checkbox--invalid_1pc8o_84 ._checkbox__input_1pc8o_21:focus-visible~._checkbox__box_1pc8o_41{box-shadow:0 0 0 2px var(--error-text)}._checkbox--invalid_1pc8o_84 ._checkbox__input_1pc8o_21:focus-visible:checked~._checkbox__box_1pc8o_41,._checkbox--invalid_1pc8o_84._checkbox--indeterminate_1pc8o_62 ._checkbox__input_1pc8o_21:focus-visible~._checkbox__box_1pc8o_41{border-color:rgba(var(--button-color-rgb),.24);box-shadow:0 0 0 2px var(--error-text)}._checkbox_1pc8o_10:has(._checkbox__input_1pc8o_21:not(:disabled)):hover._checkbox--invalid_1pc8o_84 ._checkbox__input_1pc8o_21:not(:checked)~._checkbox__box_1pc8o_41{border-color:var(--error-text)}._checkbox__icon_1pc8o_66{display:inline-flex;align-items:center;justify-content:center;color:var(--button-color);pointer-events:none;transform-origin:center;animation:_checkbox-icon-enter_1pc8o_1 var(--duration-quick) var(--ease-entrance) forwards}._checkbox__label_1pc8o_117{line-height:1}._checkbox--size-small_1pc8o_120 ._checkbox__input_1pc8o_21{width:var(--icon-size-12);height:var(--icon-size-12)}._checkbox--size-small_1pc8o_120 ._checkbox__box_1pc8o_41{width:var(--icon-size-12);height:var(--icon-size-12);border-radius:var(--radius-xs)}._checkbox--size-small_1pc8o_120 ._checkbox__label_1pc8o_117{font-size:var(--font-size-75);line-height:var(--line-height-75)}._checkbox--size-medium_1pc8o_133 ._checkbox__input_1pc8o_21{width:var(--icon-size-16);height:var(--icon-size-16)}._checkbox--size-medium_1pc8o_133 ._checkbox__box_1pc8o_41{width:var(--icon-size-16);height:var(--icon-size-16);border-radius:var(--radius-xs)}._checkbox--size-medium_1pc8o_133 ._checkbox__label_1pc8o_117{font-size:var(--font-size-100);line-height:var(--line-height-100)}._checkbox--size-large_1pc8o_146 ._checkbox__input_1pc8o_21{width:var(--icon-size-20);height:var(--icon-size-20)}._checkbox--size-large_1pc8o_146 ._checkbox__box_1pc8o_41{width:var(--icon-size-20);height:var(--icon-size-20);border-radius:var(--radius-s)}._checkbox--size-large_1pc8o_146 ._checkbox__label_1pc8o_117{font-size:var(--font-size-200);line-height:var(--line-height-200)}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./Checkbox.module.css');const c="_checkbox_13j3t_10",e="_checkbox__input_13j3t_21",_="_checkbox__box_13j3t_41",o="_checkbox__icon_13j3t_66",b="_checkbox__label_13j3t_117",t={checkbox:c,checkbox__input:e,checkbox__box:_,"checkbox--indeterminate":"_checkbox--indeterminate_13j3t_62",checkbox__icon:o,"checkbox--invalid":"_checkbox--invalid_13j3t_84","checkbox-icon-enter":"_checkbox-icon-enter_13j3t_1",checkbox__label:b,"checkbox--size-small":"_checkbox--size-small_13j3t_120","checkbox--size-medium":"_checkbox--size-medium_13j3t_133","checkbox--size-large":"_checkbox--size-large_13j3t_146"};exports.checkbox=c;exports.checkbox__box=_;exports.checkbox__icon=o;exports.checkbox__input=e;exports.checkbox__label=b;exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./Checkbox.module.css');const c="_checkbox_1pc8o_10",e="_checkbox__input_1pc8o_21",_="_checkbox__box_1pc8o_41",o="_checkbox__icon_1pc8o_66",b="_checkbox__label_1pc8o_117",x={checkbox:c,checkbox__input:e,checkbox__box:_,"checkbox--indeterminate":"_checkbox--indeterminate_1pc8o_62",checkbox__icon:o,"checkbox--invalid":"_checkbox--invalid_1pc8o_84","checkbox-icon-enter":"_checkbox-icon-enter_1pc8o_1",checkbox__label:b,"checkbox--size-small":"_checkbox--size-small_1pc8o_120","checkbox--size-medium":"_checkbox--size-medium_1pc8o_133","checkbox--size-large":"_checkbox--size-large_1pc8o_146"};exports.checkbox=c;exports.checkbox__box=_;exports.checkbox__icon=o;exports.checkbox__input=e;exports.checkbox__label=b;exports.default=x;
2
2
  //# sourceMappingURL=Checkbox.module.scss.cjs.map
@@ -1,15 +1,15 @@
1
- import './Checkbox.module.css';const c = "_checkbox_13j3t_10", _ = "_checkbox__input_13j3t_21", e = "_checkbox__box_13j3t_41", o = "_checkbox__icon_13j3t_66", b = "_checkbox__label_13j3t_117", x = {
1
+ import './Checkbox.module.css';const c = "_checkbox_1pc8o_10", _ = "_checkbox__input_1pc8o_21", e = "_checkbox__box_1pc8o_41", o = "_checkbox__icon_1pc8o_66", b = "_checkbox__label_1pc8o_117", x = {
2
2
  checkbox: c,
3
3
  checkbox__input: _,
4
4
  checkbox__box: e,
5
- "checkbox--indeterminate": "_checkbox--indeterminate_13j3t_62",
5
+ "checkbox--indeterminate": "_checkbox--indeterminate_1pc8o_62",
6
6
  checkbox__icon: o,
7
- "checkbox--invalid": "_checkbox--invalid_13j3t_84",
8
- "checkbox-icon-enter": "_checkbox-icon-enter_13j3t_1",
7
+ "checkbox--invalid": "_checkbox--invalid_1pc8o_84",
8
+ "checkbox-icon-enter": "_checkbox-icon-enter_1pc8o_1",
9
9
  checkbox__label: b,
10
- "checkbox--size-small": "_checkbox--size-small_13j3t_120",
11
- "checkbox--size-medium": "_checkbox--size-medium_13j3t_133",
12
- "checkbox--size-large": "_checkbox--size-large_13j3t_146"
10
+ "checkbox--size-small": "_checkbox--size-small_1pc8o_120",
11
+ "checkbox--size-medium": "_checkbox--size-medium_1pc8o_133",
12
+ "checkbox--size-large": "_checkbox--size-large_1pc8o_146"
13
13
  };
14
14
  export {
15
15
  c as checkbox,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),__f=require("@mattermost/compass-icons/components/close-circle.js"),f=__f?.default??__f,_=require("../icon/Icon.cjs"),j=require("../user-avatar/UserAvatar.cjs"),b=require("../../utils/string.cjs"),l=require("./Chip.module.scss.cjs"),x={small:"10",medium:"12","medium-compact":"12",large:"16"},C={small:"12",medium:"16","medium-compact":"16",large:"20"};function N({children:c,size:s="medium",leadingIcon:a,leadingAvatar:t,onRemove:i,removeLabel:u="Remove",error:o=!1,colored:n=!1,className:d="",...m}){const r=x[s],p=C[s],h=[l.default.chip,l.default[`chip--size-${b.toKebab(s)}`],o&&l.default["chip--error"],n&&l.default["chip--colored"],d].filter(Boolean).join(" ");return e.jsxs("div",{className:h,...m,children:[t!=null?e.jsx("span",{className:l.default["chip__avatar-slot"],children:e.jsx(j.default,{src:t.src,alt:t.alt,size:p})}):a!=null?e.jsx("span",{className:l.default["chip__icon-slot"],"aria-hidden":!0,children:e.jsx(_.default,{glyph:a,size:r})}):null,e.jsx("span",{className:l.default.chip__label,children:c}),i!=null?e.jsx("button",{type:"button",className:l.default.chip__remove,onClick:i,"aria-label":u,children:e.jsx(f,{size:Number(r),"aria-hidden":!0})}):null]})}exports.default=N;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),j=require("react"),__q=require("@mattermost/compass-icons/components/close-circle.js"),q=__q?.default??__q,M=require("../icon/Icon.cjs"),A=require("../user-avatar/UserAvatar.cjs"),I=require("../../utils/string.cjs"),g=require("./ChipGroup.cjs"),u=require("./Chip.module.scss.cjs"),D={small:"10",medium:"12","medium-compact":"12",large:"16"},k={small:"12",medium:"16","medium-compact":"16",large:"20"};function y(n){return typeof n=="string"||typeof n=="number"?String(n).trim():Array.isArray(n)?n.map(y).filter(Boolean).join(" "):""}function w(n){var d;const s=(m,b)=>{let e=m;for(;e;){if(e instanceof HTMLElement&&e.dataset.chip!=null||e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)return e;e=b==="next"?e.nextElementSibling:e.previousElementSibling}return null},l=n.parentElement,o=l==null?void 0:l.nextElementSibling,r=o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement?o:null;return s(n.nextElementSibling,"next")??s(n.previousElementSibling,"previous")??r??(l==null?void 0:l.querySelector("input, textarea"))??((d=l==null?void 0:l.parentElement)==null?void 0:d.querySelector("input, textarea"))??null}function L({children:n,size:s="medium",leadingIcon:l,leadingAvatar:o,onRemove:r,error:d=!1,colored:m=!1,className:b="",...e}){const x=j.useContext(g.ChipGroupContext),h=D[s],T=k[s],f=y(n),S=e["aria-label"]??(r!=null&&f!==""?`${f}. Press Delete to remove.`:f!==""?f:void 0),p=r!=null,_=t=>{const c=t.currentTarget.closest("[data-chip]"),i=c instanceof HTMLElement?w(c):null,v=t.currentTarget;r==null||r(t),window.setTimeout(()=>{v.isConnected||i==null||i.isConnected&&(i.dataset.chip!=null?g.activateChip(i):i.focus({focusVisible:!0}))},0)},C=[u.default.chip,u.default[`chip--size-${I.toKebab(s)}`],d&&u.default["chip--error"],m&&u.default["chip--colored"],b].filter(Boolean).join(" "),E=t=>{var c,i;(c=e.onKeyDown)==null||c.call(e,t),!(x||!p||t.defaultPrevented)&&(t.key==="Delete"||t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&(t.preventDefault(),(i=t.currentTarget.querySelector("[data-chip-remove]"))==null||i.click())};return a.jsxs("div",{className:C,...e,role:p?"button":e.role,tabIndex:p?x?-1:0:e.tabIndex,"aria-label":p?S:e["aria-label"],"data-chip":"",onKeyDown:E,children:[o!=null?a.jsx("span",{className:u.default["chip__avatar-slot"],children:a.jsx(A.default,{src:o.src,alt:o.alt,size:T})}):l!=null?a.jsx("span",{className:u.default["chip__icon-slot"],"aria-hidden":!0,children:a.jsx(M.default,{glyph:l,size:h})}):null,a.jsx("span",{className:u.default.chip__label,children:n}),r!=null?a.jsx("button",{type:"button",className:u.default.chip__remove,"data-chip-remove":"",tabIndex:-1,"aria-hidden":!0,onMouseDown:t=>{t.preventDefault()},onClick:_,children:a.jsx(q,{size:Number(h),"aria-hidden":!0})}):null]})}exports.default=L;
2
2
  //# sourceMappingURL=Chip.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.cjs","sources":["../../../src/components/chip/Chip.tsx"],"sourcesContent":["import type { HTMLAttributes, MouseEvent, ReactNode } from 'react';\nimport CloseCircleIcon from '@mattermost/compass-icons/components/close-circle';\nimport Icon from '@/components/icon/Icon';\nimport type { IconSize } from '@/components/icon/Icon';\nimport UserAvatar from '@/components/user-avatar/UserAvatar';\nimport type { UserAvatarSize } from '@/components/user-avatar/UserAvatar';\nimport { toKebab } from '@/utils/string';\nimport styles from './Chip.module.scss';\n\nexport type ChipSize = 'small' | 'medium' | 'medium-compact' | 'large';\n\nexport interface ChipProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n 'children'\n> {\n /** Chip label. */\n children: ReactNode;\n /** Visual size. Default: Medium. */\n size?: ChipSize;\n /** Leading icon from @mattermost/compass-icons. */\n leadingIcon?: ReactNode;\n /** Leading avatar. Overrides leadingIcon when both are provided. */\n leadingAvatar?: { src: string; alt: string };\n /** When provided, shows the remove (×) button and calls this on click. */\n onRemove?: (e: MouseEvent<HTMLButtonElement>) => void;\n /** Accessible label for the remove button. Default: \"Remove\". */\n removeLabel?: string;\n /** Shows an error border. */\n error?: boolean;\n /** Adds a colored background overlay. */\n colored?: boolean;\n className?: string;\n}\n\nconst ICON_SIZE_MAP: Record<ChipSize, IconSize> = {\n small: '10',\n medium: '12',\n 'medium-compact': '12',\n large: '16',\n};\n\nconst AVATAR_SIZE_MAP: Record<ChipSize, UserAvatarSize> = {\n small: '12',\n medium: '16',\n 'medium-compact': '16',\n large: '20',\n};\n\n/**\n * Chips are compact, self-contained tokens that represent a selection — a person added to an\n * invite, a filter applied to a search, a chosen value in a tokenizing input. Each Chip\n * stands on its own and is removable or selectable, depending on context.\n */\nexport default function Chip({\n children,\n size = 'medium',\n leadingIcon,\n leadingAvatar,\n onRemove,\n removeLabel = 'Remove',\n error = false,\n colored = false,\n className = '',\n ...rest\n}: ChipProps) {\n const iconSize = ICON_SIZE_MAP[size];\n const avatarSize = AVATAR_SIZE_MAP[size];\n\n const rootClass = [\n styles.chip,\n styles[`chip--size-${toKebab(size)}`],\n error && styles['chip--error'],\n colored && styles['chip--colored'],\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div className={rootClass} {...rest}>\n {leadingAvatar != null ? (\n <span className={styles['chip__avatar-slot']}>\n <UserAvatar\n src={leadingAvatar.src}\n alt={leadingAvatar.alt}\n size={avatarSize}\n />\n </span>\n ) : leadingIcon != null ? (\n <span className={styles['chip__icon-slot']} aria-hidden>\n <Icon glyph={leadingIcon} size={iconSize} />\n </span>\n ) : null}\n <span className={styles['chip__label']}>{children}</span>\n {onRemove != null ? (\n <button\n type=\"button\"\n className={styles['chip__remove']}\n onClick={onRemove}\n aria-label={removeLabel}\n >\n <CloseCircleIcon size={Number(iconSize)} aria-hidden />\n </button>\n ) : null}\n </div>\n );\n}\n"],"names":["ICON_SIZE_MAP","AVATAR_SIZE_MAP","Chip","children","size","leadingIcon","leadingAvatar","onRemove","removeLabel","error","colored","className","rest","iconSize","avatarSize","rootClass","styles","toKebab","jsxs","jsx","UserAvatar","Icon","CloseCircleIcon"],"mappings":"gWAkCMA,EAA4C,CAChD,MAAO,KACP,OAAQ,KACR,iBAAkB,KAClB,MAAO,IACT,EAEMC,EAAoD,CACxD,MAAO,KACP,OAAQ,KACR,iBAAkB,KAClB,MAAO,IACT,EAOA,SAAwBC,EAAK,CAC3B,SAAAC,EACA,KAAAC,EAAO,SACP,YAAAC,EACA,cAAAC,EACA,SAAAC,EACA,YAAAC,EAAc,SACd,MAAAC,EAAQ,GACR,QAAAC,EAAU,GACV,UAAAC,EAAY,GACZ,GAAGC,CACL,EAAc,CACZ,MAAMC,EAAWb,EAAcI,CAAI,EAC7BU,EAAab,EAAgBG,CAAI,EAEjCW,EAAY,CAChBC,EAAAA,QAAO,KACPA,EAAAA,QAAO,cAAcC,EAAAA,QAAQb,CAAI,CAAC,EAAE,EACpCK,GAASO,EAAAA,QAAO,aAAa,EAC7BN,GAAWM,EAAAA,QAAO,eAAe,EACjCL,CAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG,EAEX,OACEO,EAAAA,KAAC,MAAA,CAAI,UAAWH,EAAY,GAAGH,EAC5B,SAAA,CAAAN,GAAiB,KAChBa,EAAAA,IAAC,OAAA,CAAK,UAAWH,UAAO,mBAAmB,EACzC,SAAAG,EAAAA,IAACC,EAAAA,QAAA,CACC,IAAKd,EAAc,IACnB,IAAKA,EAAc,IACnB,KAAMQ,CAAA,CAAA,EAEV,EACET,GAAe,KACjBc,EAAAA,IAAC,OAAA,CAAK,UAAWH,EAAAA,QAAO,iBAAiB,EAAG,cAAW,GACrD,eAACK,EAAAA,QAAA,CAAK,MAAOhB,EAAa,KAAMQ,CAAA,CAAU,EAC5C,EACE,WACH,OAAA,CAAK,UAAWG,EAAAA,QAAO,YAAiB,SAAAb,EAAS,EACjDI,GAAY,KACXY,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,UAAWH,EAAAA,QAAO,aAClB,QAAST,EACT,aAAYC,EAEZ,eAACc,EAAA,CAAgB,KAAM,OAAOT,CAAQ,EAAG,cAAW,EAAA,CAAC,CAAA,CAAA,EAErD,IAAA,EACN,CAEJ"}
1
+ {"version":3,"file":"Chip.cjs","sources":["../../../src/components/chip/Chip.tsx"],"sourcesContent":["import { useContext, type HTMLAttributes, type KeyboardEvent, type MouseEvent, type ReactNode } from 'react';\nimport CloseCircleIcon from '@mattermost/compass-icons/components/close-circle';\nimport Icon from '@/components/icon/Icon';\nimport type { IconSize } from '@/components/icon/Icon';\nimport UserAvatar from '@/components/user-avatar/UserAvatar';\nimport type { UserAvatarSize } from '@/components/user-avatar/UserAvatar';\nimport { toKebab } from '@/utils/string';\nimport { activateChip, ChipGroupContext } from './ChipGroup';\nimport styles from './Chip.module.scss';\n\nexport type ChipSize = 'small' | 'medium' | 'medium-compact' | 'large';\n\nexport interface ChipProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n 'children'\n> {\n /** Chip label. */\n children: ReactNode;\n /** Visual size. Default: Medium. */\n size?: ChipSize;\n /** Leading icon from @mattermost/compass-icons. */\n leadingIcon?: ReactNode;\n /** Leading avatar. Overrides leading-icon when both are provided. */\n leadingAvatar?: { src: string; alt: string };\n /** When provided, shows the remove (×) control and calls this on click. */\n onRemove?: (e: MouseEvent<HTMLButtonElement>) => void;\n /** Shows an error border. */\n error?: boolean;\n /** Adds a colored background overlay. */\n colored?: boolean;\n className?: string;\n}\n\nconst ICON_SIZE_MAP: Record<ChipSize, IconSize> = {\n small: '10',\n medium: '12',\n 'medium-compact': '12',\n large: '16',\n};\n\nconst AVATAR_SIZE_MAP: Record<ChipSize, UserAvatarSize> = {\n small: '12',\n medium: '16',\n 'medium-compact': '16',\n large: '20',\n};\n\nfunction labelTextFromChildren(children: ReactNode): string {\n if (typeof children === 'string' || typeof children === 'number') {\n return String(children).trim();\n }\n if (Array.isArray(children)) {\n return children.map(labelTextFromChildren).filter(Boolean).join(' ');\n }\n return '';\n}\n\nfunction focusTargetAfterRemove(chipEl: HTMLElement): HTMLElement | null {\n const scan = (\n start: Element | null,\n direction: 'next' | 'previous',\n ): HTMLElement | null => {\n let el: Element | null = start;\n while (el) {\n if (el instanceof HTMLElement && el.dataset.chip != null) {\n return el;\n }\n if (\n el instanceof HTMLInputElement ||\n el instanceof HTMLTextAreaElement\n ) {\n return el;\n }\n el =\n direction === 'next' ? el.nextElementSibling : el.previousElementSibling;\n }\n return null;\n };\n\n const parent = chipEl.parentElement;\n const afterGroup = parent?.nextElementSibling;\n const groupSiblingInput =\n afterGroup instanceof HTMLInputElement ||\n afterGroup instanceof HTMLTextAreaElement\n ? afterGroup\n : null;\n\n return (\n scan(chipEl.nextElementSibling, 'next') ??\n scan(chipEl.previousElementSibling, 'previous') ??\n groupSiblingInput ??\n parent?.querySelector('input, textarea') ??\n parent?.parentElement?.querySelector('input, textarea') ??\n null\n );\n}\n\n/**\n * Chips are compact, self-contained tokens that represent a selection — a person added to an\n * invite, a filter applied to a search, a chosen value in a tokenizing input. Each Chip\n * stands on its own and is removable or selectable, depending on context.\n */\nexport default function Chip({\n children,\n size = 'medium',\n leadingIcon,\n leadingAvatar,\n onRemove,\n error = false,\n colored = false,\n className = '',\n ...rest\n}: ChipProps) {\n const grouped = useContext(ChipGroupContext);\n const iconSize = ICON_SIZE_MAP[size];\n const avatarSize = AVATAR_SIZE_MAP[size];\n const labelText = labelTextFromChildren(children);\n const groupedAriaLabel =\n rest['aria-label'] ??\n (onRemove != null && labelText !== ''\n ? `${labelText}. Press Delete to remove.`\n : labelText !== ''\n ? labelText\n : undefined);\n const removable = onRemove != null;\n\n const handleRemove = (e: MouseEvent<HTMLButtonElement>) => {\n const chipEl = e.currentTarget.closest('[data-chip]');\n const nextFocus =\n chipEl instanceof HTMLElement ? focusTargetAfterRemove(chipEl) : null;\n const removeButton = e.currentTarget;\n onRemove?.(e);\n window.setTimeout(() => {\n if (removeButton.isConnected || nextFocus == null) return;\n if (!nextFocus.isConnected) return;\n if (nextFocus.dataset.chip != null) {\n activateChip(nextFocus);\n } else {\n nextFocus.focus({ focusVisible: true } as FocusOptions);\n }\n }, 0);\n };\n\n const rootClass = [\n styles.chip,\n styles[`chip--size-${toKebab(size)}`],\n error && styles['chip--error'],\n colored && styles['chip--colored'],\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const handleKeyDown = (e: KeyboardEvent<HTMLDivElement>) => {\n rest.onKeyDown?.(e);\n if (grouped || !removable || e.defaultPrevented) return;\n if (\n e.key === 'Delete' ||\n e.key === 'Backspace' ||\n e.key === 'Enter' ||\n e.key === ' '\n ) {\n e.preventDefault();\n e.currentTarget\n .querySelector<HTMLButtonElement>('[data-chip-remove]')\n ?.click();\n }\n };\n\n return (\n <div\n className={rootClass}\n {...rest}\n role={removable ? 'button' : rest.role}\n tabIndex={removable ? (grouped ? -1 : 0) : rest.tabIndex}\n aria-label={removable ? groupedAriaLabel : rest['aria-label']}\n data-chip=\"\"\n onKeyDown={handleKeyDown}\n >\n {leadingAvatar != null ? (\n <span className={styles['chip__avatar-slot']}>\n <UserAvatar\n src={leadingAvatar.src}\n alt={leadingAvatar.alt}\n size={avatarSize}\n />\n </span>\n ) : leadingIcon != null ? (\n <span className={styles['chip__icon-slot']} aria-hidden>\n <Icon glyph={leadingIcon} size={iconSize} />\n </span>\n ) : null}\n <span className={styles['chip__label']}>{children}</span>\n {onRemove != null ? (\n <button\n type=\"button\"\n className={styles['chip__remove']}\n data-chip-remove=\"\"\n tabIndex={-1}\n aria-hidden\n onMouseDown={(e) => {\n e.preventDefault();\n }}\n onClick={handleRemove}\n >\n <CloseCircleIcon size={Number(iconSize)} aria-hidden />\n </button>\n ) : null}\n </div>\n );\n}\n"],"names":["ICON_SIZE_MAP","AVATAR_SIZE_MAP","labelTextFromChildren","children","focusTargetAfterRemove","chipEl","scan","start","direction","el","parent","afterGroup","groupSiblingInput","_a","Chip","size","leadingIcon","leadingAvatar","onRemove","error","colored","className","rest","grouped","useContext","ChipGroupContext","iconSize","avatarSize","labelText","groupedAriaLabel","removable","handleRemove","e","nextFocus","removeButton","activateChip","rootClass","styles","toKebab","handleKeyDown","_b","jsxs","jsx","UserAvatar","Icon","CloseCircleIcon"],"mappings":"gZAiCMA,EAA4C,CAChD,MAAO,KACP,OAAQ,KACR,iBAAkB,KAClB,MAAO,IACT,EAEMC,EAAoD,CACxD,MAAO,KACP,OAAQ,KACR,iBAAkB,KAClB,MAAO,IACT,EAEA,SAASC,EAAsBC,EAA6B,CAC1D,OAAI,OAAOA,GAAa,UAAY,OAAOA,GAAa,SAC/C,OAAOA,CAAQ,EAAE,KAAA,EAEtB,MAAM,QAAQA,CAAQ,EACjBA,EAAS,IAAID,CAAqB,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAE9D,EACT,CAEA,SAASE,EAAuBC,EAAyC,OACvE,MAAMC,EAAO,CACXC,EACAC,IACuB,CACvB,IAAIC,EAAqBF,EACzB,KAAOE,GAAI,CAIT,GAHIA,aAAc,aAAeA,EAAG,QAAQ,MAAQ,MAIlDA,aAAc,kBACdA,aAAc,oBAEd,OAAOA,EAETA,EACED,IAAc,OAASC,EAAG,mBAAqBA,EAAG,sBACtD,CACA,OAAO,IACT,EAEMC,E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GV"}
@@ -7,15 +7,13 @@ export interface ChipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'childre
7
7
  size?: ChipSize;
8
8
  /** Leading icon from @mattermost/compass-icons. */
9
9
  leadingIcon?: ReactNode;
10
- /** Leading avatar. Overrides leadingIcon when both are provided. */
10
+ /** Leading avatar. Overrides leading-icon when both are provided. */
11
11
  leadingAvatar?: {
12
12
  src: string;
13
13
  alt: string;
14
14
  };
15
- /** When provided, shows the remove (×) button and calls this on click. */
15
+ /** When provided, shows the remove (×) control and calls this on click. */
16
16
  onRemove?: (e: MouseEvent<HTMLButtonElement>) => void;
17
- /** Accessible label for the remove button. Default: "Remove". */
18
- removeLabel?: string;
19
17
  /** Shows an error border. */
20
18
  error?: boolean;
21
19
  /** Adds a colored background overlay. */
@@ -27,5 +25,5 @@ export interface ChipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'childre
27
25
  * invite, a filter applied to a search, a chosen value in a tokenizing input. Each Chip
28
26
  * stands on its own and is removable or selectable, depending on context.
29
27
  */
30
- export default function Chip({ children, size, leadingIcon, leadingAvatar, onRemove, removeLabel, error, colored, className, ...rest }: ChipProps): import("react/jsx-runtime").JSX.Element;
28
+ export default function Chip({ children, size, leadingIcon, leadingAvatar, onRemove, error, colored, className, ...rest }: ChipProps): import("react/jsx-runtime").JSX.Element;
31
29
  //# sourceMappingURL=Chip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASnE,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,gBAAgB,GAAG,OAAO,CAAC;AAEvE,MAAM,WAAW,SAAU,SAAQ,IAAI,CACrC,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,CACX;IACC,kBAAkB;IAClB,QAAQ,EAAE,SAA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ACrE,aAAa,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7C,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACtD,6BAA6B;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAC3B,QAAQ,EACR,IAAe,EACf,WAAW,EACX,aAAa,EACb,QAAQ,EACR,KAAa,EACb,OAAe,EACf,SAAc,EACd,GAAG,IAAI,EACR,EAAE,SAAS,2CAkGX"}
@@ -1,62 +1,104 @@
1
- import { jsxs as _, jsx as e } from "react/jsx-runtime";
2
- import __f from "@mattermost/compass-icons/components/close-circle.js";const f=__f&&__f.default?__f.default:__f;
3
- import b from "../icon/Icon.js";
4
- import N from "../user-avatar/UserAvatar.js";
5
- import { toKebab as C } from "../../utils/string.js";
6
- import l from "./Chip.module.scss.js";
7
- const z = {
1
+ import { jsxs as v, jsx as c } from "react/jsx-runtime";
2
+ import { useContext as A } from "react";
3
+ import __I from "@mattermost/compass-icons/components/close-circle.js";const I=__I&&__I.default?__I.default:__I;
4
+ import M from "../icon/Icon.js";
5
+ import D from "../user-avatar/UserAvatar.js";
6
+ import { toKebab as k } from "../../utils/string.js";
7
+ import { ChipGroupContext as w, activateChip as L } from "./ChipGroup.js";
8
+ import i from "./Chip.module.scss.js";
9
+ const N = {
8
10
  small: "10",
9
11
  medium: "12",
10
12
  "medium-compact": "12",
11
13
  large: "16"
12
- }, A = {
14
+ }, H = {
13
15
  small: "12",
14
16
  medium: "16",
15
17
  "medium-compact": "16",
16
18
  large: "20"
17
19
  };
18
- function E({
19
- children: c,
20
- size: o = "medium",
21
- leadingIcon: i,
22
- leadingAvatar: r,
23
- onRemove: s,
24
- removeLabel: m = "Remove",
25
- error: t = !1,
26
- colored: n = !1,
27
- className: p = "",
28
- ...u
20
+ function y(n) {
21
+ return typeof n == "string" || typeof n == "number" ? String(n).trim() : Array.isArray(n) ? n.map(y).filter(Boolean).join(" ") : "";
22
+ }
23
+ function j(n) {
24
+ var m;
25
+ const u = (d, b) => {
26
+ let e = d;
27
+ for (; e; ) {
28
+ if (e instanceof HTMLElement && e.dataset.chip != null || e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement)
29
+ return e;
30
+ e = b === "next" ? e.nextElementSibling : e.previousElementSibling;
31
+ }
32
+ return null;
33
+ }, l = n.parentElement, a = l == null ? void 0 : l.nextElementSibling, r = a instanceof HTMLInputElement || a instanceof HTMLTextAreaElement ? a : null;
34
+ return u(n.nextElementSibling, "next") ?? u(n.previousElementSibling, "previous") ?? r ?? (l == null ? void 0 : l.querySelector("input, textarea")) ?? ((m = l == null ? void 0 : l.parentElement) == null ? void 0 : m.querySelector("input, textarea")) ?? null;
35
+ }
36
+ function Z({
37
+ children: n,
38
+ size: u = "medium",
39
+ leadingIcon: l,
40
+ leadingAvatar: a,
41
+ onRemove: r,
42
+ error: m = !1,
43
+ colored: d = !1,
44
+ className: b = "",
45
+ ...e
29
46
  }) {
30
- const a = z[o], h = A[o], d = [
31
- l.chip,
32
- l[`chip--size-${C(o)}`],
33
- t && l["chip--error"],
34
- n && l["chip--colored"],
35
- p
36
- ].filter(Boolean).join(" ");
37
- return /* @__PURE__ */ _("div", { className: d, ...u, children: [
38
- r != null ? /* @__PURE__ */ e("span", { className: l["chip__avatar-slot"], children: /* @__PURE__ */ e(
39
- N,
40
- {
41
- src: r.src,
42
- alt: r.alt,
43
- size: h
44
- }
45
- ) }) : i != null ? /* @__PURE__ */ e("span", { className: l["chip__icon-slot"], "aria-hidden": !0, children: /* @__PURE__ */ e(b, { glyph: i, size: a }) }) : null,
46
- /* @__PURE__ */ e("span", { className: l.chip__label, children: c }),
47
- s != null ? /* @__PURE__ */ e(
48
- "button",
49
- {
50
- type: "button",
51
- className: l.chip__remove,
52
- onClick: s,
53
- "aria-label": m,
54
- children: /* @__PURE__ */ e(f, { size: Number(a), "aria-hidden": !0 })
55
- }
56
- ) : null
57
- ] });
47
+ const h = A(w), x = N[u], T = H[u], p = y(n), g = e["aria-label"] ?? (r != null && p !== "" ? `${p}. Press Delete to remove.` : p !== "" ? p : void 0), f = r != null, E = (t) => {
48
+ const s = t.currentTarget.closest("[data-chip]"), o = s instanceof HTMLElement ? j(s) : null, _ = t.currentTarget;
49
+ r == null || r(t), window.setTimeout(() => {
50
+ _.isConnected || o == null || o.isConnected && (o.dataset.chip != null ? L(o) : o.focus({ focusVisible: !0 }));
51
+ }, 0);
52
+ }, S = [
53
+ i.chip,
54
+ i[`chip--size-${k(u)}`],
55
+ m && i["chip--error"],
56
+ d && i["chip--colored"],
57
+ b
58
+ ].filter(Boolean).join(" "), C = (t) => {
59
+ var s, o;
60
+ (s = e.onKeyDown) == null || s.call(e, t), !(h || !f || t.defaultPrevented) && (t.key === "Delete" || t.key === "Backspace" || t.key === "Enter" || t.key === " ") && (t.preventDefault(), (o = t.currentTarget.querySelector("[data-chip-remove]")) == null || o.click());
61
+ };
62
+ return /* @__PURE__ */ v(
63
+ "div",
64
+ {
65
+ className: S,
66
+ ...e,
67
+ role: f ? "button" : e.role,
68
+ tabIndex: f ? h ? -1 : 0 : e.tabIndex,
69
+ "aria-label": f ? g : e["aria-label"],
70
+ "data-chip": "",
71
+ onKeyDown: C,
72
+ children: [
73
+ a != null ? /* @__PURE__ */ c("span", { className: i["chip__avatar-slot"], children: /* @__PURE__ */ c(
74
+ D,
75
+ {
76
+ src: a.src,
77
+ alt: a.alt,
78
+ size: T
79
+ }
80
+ ) }) : l != null ? /* @__PURE__ */ c("span", { className: i["chip__icon-slot"], "aria-hidden": !0, children: /* @__PURE__ */ c(M, { glyph: l, size: x }) }) : null,
81
+ /* @__PURE__ */ c("span", { className: i.chip__label, children: n }),
82
+ r != null ? /* @__PURE__ */ c(
83
+ "button",
84
+ {
85
+ type: "button",
86
+ className: i.chip__remove,
87
+ "data-chip-remove": "",
88
+ tabIndex: -1,
89
+ "aria-hidden": !0,
90
+ onMouseDown: (t) => {
91
+ t.preventDefault();
92
+ },
93
+ onClick: E,
94
+ children: /* @__PURE__ */ c(I, { size: Number(x), "aria-hidden": !0 })
95
+ }
96
+ ) : null
97
+ ]
98
+ }
99
+ );
58
100
  }
59
101
  export {
60
- E as default
102
+ Z as default
61
103
  };
62
104
  //# sourceMappingURL=Chip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.js","sources":["../../../src/components/chip/Chip.tsx"],"sourcesContent":["import type { HTMLAttributes, MouseEvent, ReactNode } from 'react';\nimport CloseCircleIcon from '@mattermost/compass-icons/components/close-circle';\nimport Icon from '@/components/icon/Icon';\nimport type { IconSize } from '@/components/icon/Icon';\nimport UserAvatar from '@/components/user-avatar/UserAvatar';\nimport type { UserAvatarSize } from '@/components/user-avatar/UserAvatar';\nimport { toKebab } from '@/utils/string';\nimport styles from './Chip.module.scss';\n\nexport type ChipSize = 'small' | 'medium' | 'medium-compact' | 'large';\n\nexport interface ChipProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n 'children'\n> {\n /** Chip label. */\n children: ReactNode;\n /** Visual size. Default: Medium. */\n size?: ChipSize;\n /** Leading icon from @mattermost/compass-icons. */\n leadingIcon?: ReactNode;\n /** Leading avatar. Overrides leadingIcon when both are provided. */\n leadingAvatar?: { src: string; alt: string };\n /** When provided, shows the remove (×) button and calls this on click. */\n onRemove?: (e: MouseEvent<HTMLButtonElement>) => void;\n /** Accessible label for the remove button. Default: \"Remove\". */\n removeLabel?: string;\n /** Shows an error border. */\n error?: boolean;\n /** Adds a colored background overlay. */\n colored?: boolean;\n className?: string;\n}\n\nconst ICON_SIZE_MAP: Record<ChipSize, IconSize> = {\n small: '10',\n medium: '12',\n 'medium-compact': '12',\n large: '16',\n};\n\nconst AVATAR_SIZE_MAP: Record<ChipSize, UserAvatarSize> = {\n small: '12',\n medium: '16',\n 'medium-compact': '16',\n large: '20',\n};\n\n/**\n * Chips are compact, self-contained tokens that represent a selection — a person added to an\n * invite, a filter applied to a search, a chosen value in a tokenizing input. Each Chip\n * stands on its own and is removable or selectable, depending on context.\n */\nexport default function Chip({\n children,\n size = 'medium',\n leadingIcon,\n leadingAvatar,\n onRemove,\n removeLabel = 'Remove',\n error = false,\n colored = false,\n className = '',\n ...rest\n}: ChipProps) {\n const iconSize = ICON_SIZE_MAP[size];\n const avatarSize = AVATAR_SIZE_MAP[size];\n\n const rootClass = [\n styles.chip,\n styles[`chip--size-${toKebab(size)}`],\n error && styles['chip--error'],\n colored && styles['chip--colored'],\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div className={rootClass} {...rest}>\n {leadingAvatar != null ? (\n <span className={styles['chip__avatar-slot']}>\n <UserAvatar\n src={leadingAvatar.src}\n alt={leadingAvatar.alt}\n size={avatarSize}\n />\n </span>\n ) : leadingIcon != null ? (\n <span className={styles['chip__icon-slot']} aria-hidden>\n <Icon glyph={leadingIcon} size={iconSize} />\n </span>\n ) : null}\n <span className={styles['chip__label']}>{children}</span>\n {onRemove != null ? (\n <button\n type=\"button\"\n className={styles['chip__remove']}\n onClick={onRemove}\n aria-label={removeLabel}\n >\n <CloseCircleIcon size={Number(iconSize)} aria-hidden />\n </button>\n ) : null}\n </div>\n );\n}\n"],"names":["ICON_SIZE_MAP","AVATAR_SIZE_MAP","Chip","children","size","leadingIcon","leadingAvatar","onRemove","removeLabel","error","colored","className","rest","iconSize","avatarSize","rootClass","styles","toKebab","jsxs","jsx","UserAvatar","Icon","CloseCircleIcon"],"mappings":";;;;;;AAkCA,MAAMA,IAA4C;AAAA,EAChD,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,kBAAkB;AAAA,EAClB,OAAO;AACT,GAEMC,IAAoD;AAAA,EACxD,OAAO;AA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,EAAgB,MAAM,OAAOT,CAAQ,GAAG,eAAW,GAAA,CAAC;AAAA,MAAA;AAAA,IAAA,IAErD;AAAA,EAAA,GACN;AAEJ;"}
1
+ {"version":3,"file":"Chip.js","sources":["../../../src/components/chip/Chip.tsx"],"sourcesContent":["import { useContext, type HTMLAttributes, type KeyboardEvent, type MouseEvent, type ReactNode } from 'react';\nimport CloseCircleIcon from '@mattermost/compass-icons/components/close-circle';\nimport Icon from '@/components/icon/Icon';\nimport type { IconSize } from '@/components/icon/Icon';\nimport UserAvatar from '@/components/user-avatar/UserAvatar';\nimport type { UserAvatarSize } from '@/components/user-avatar/UserAvatar';\nimport { toKebab } from '@/utils/string';\nimport { activateChip, ChipGroupContext } from './ChipGroup';\nimport styles from './Chip.module.scss';\n\nexport type ChipSize = 'small' | 'medium' | 'medium-compact' | 'large';\n\nexport interface ChipProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n 'children'\n> {\n /** Chip label. */\n children: ReactNode;\n /** Visual size. Default: Medium. */\n size?: ChipSize;\n /** Leading icon from @mattermost/compass-icons. */\n leadingIcon?: ReactNode;\n /** Leading avatar. Overrides leading-icon when both are provided. */\n leadingAvatar?: { src: string; alt: string };\n /** When provided, shows the remove (×) control and calls this on click. */\n onRemove?: (e: MouseEvent<HTMLButtonElement>) => void;\n /** Shows an error border. */\n error?: boolean;\n /** Adds a colored background overlay. */\n colored?: boolean;\n className?: string;\n}\n\nconst ICON_SIZE_MAP: Record<ChipSize, IconSize> = {\n small: '10',\n medium: '12',\n 'medium-compact': '12',\n large: '16',\n};\n\nconst AVATAR_SIZE_MAP: Record<ChipSize, UserAvatarSize> = {\n small: '12',\n medium: '16',\n 'medium-compact': '16',\n large: '20',\n};\n\nfunction labelTextFromChildren(children: ReactNode): string {\n if (typeof children === 'string' || typeof children === 'number') {\n return String(children).trim();\n }\n if (Array.isArray(children)) {\n return children.map(labelTextFromChildren).filter(Boolean).join(' ');\n }\n return '';\n}\n\nfunction focusTargetAfterRemove(chipEl: HTMLElement): HTMLElement | null {\n const scan = (\n start: Element | null,\n direction: 'next' | 'previous',\n ): HTMLElement | null => {\n let el: Element | null = start;\n while (el) {\n if (el instanceof HTMLElement && el.dataset.chip != null) {\n return el;\n }\n if (\n el instanceof HTMLInputElement ||\n el instanceof HTMLTextAreaElement\n ) {\n return el;\n }\n el =\n direction === 'next' ? el.nextElementSibling : el.previousElementSibling;\n }\n return null;\n };\n\n const parent = chipEl.parentElement;\n const afterGroup = parent?.nextElementSibling;\n const groupSiblingInput =\n afterGroup instanceof HTMLInputElement ||\n afterGroup instanceof HTMLTextAreaElement\n ? afterGroup\n : null;\n\n return (\n scan(chipEl.nextElementSibling, 'next') ??\n scan(chipEl.previousElementSibling, 'previous') ??\n groupSiblingInput ??\n parent?.querySelector('input, textarea') ??\n parent?.parentElement?.querySelector('input, textarea') ??\n null\n );\n}\n\n/**\n * Chips are compact, self-contained tokens that represent a selection — a person added to an\n * invite, a filter applied to a search, a chosen value in a tokenizing input. Each Chip\n * stands on its own and is removable or selectable, depending on context.\n */\nexport default function Chip({\n children,\n size = 'medium',\n leadingIcon,\n leadingAvatar,\n onRemove,\n error = false,\n colored = false,\n className = '',\n ...rest\n}: ChipProps) {\n const grouped = useContext(ChipGroupContext);\n const iconSize = ICON_SIZE_MAP[size];\n const avatarSize = AVATAR_SIZE_MAP[size];\n const labelText = labelTextFromChildren(children);\n const groupedAriaLabel =\n rest['aria-label'] ??\n (onRemove != null && labelText !== ''\n ? `${labelText}. Press Delete to remove.`\n : labelText !== ''\n ? labelText\n : undefined);\n const removable = onRemove != null;\n\n const handleRemove = (e: MouseEvent<HTMLButtonElement>) => {\n const chipEl = e.currentTarget.closest('[data-chip]');\n const nextFocus =\n chipEl instanceof HTMLElement ? focusTargetAfterRemove(chipEl) : null;\n const removeButton = e.currentTarget;\n onRemove?.(e);\n window.setTimeout(() => {\n if (removeButton.isConnected || nextFocus == null) return;\n if (!nextFocus.isConnected) return;\n if (nextFocus.dataset.chip != null) {\n activateChip(nextFocus);\n } else {\n nextFocus.focus({ focusVisible: true } as FocusOptions);\n }\n }, 0);\n };\n\n const rootClass = [\n styles.chip,\n styles[`chip--size-${toKebab(size)}`],\n error && styles['chip--error'],\n colored && styles['chip--colored'],\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const handleKeyDown = (e: KeyboardEvent<HTMLDivElement>) => {\n rest.onKeyDown?.(e);\n if (grouped || !removable || e.defaultPrevented) return;\n if (\n e.key === 'Delete' ||\n e.key === 'Backspace' ||\n e.key === 'Enter' ||\n e.key === ' '\n ) {\n e.preventDefault();\n e.currentTarget\n .querySelector<HTMLButtonElement>('[data-chip-remove]')\n ?.click();\n }\n };\n\n return (\n <div\n className={rootClass}\n {...rest}\n role={removable ? 'button' : rest.role}\n tabIndex={removable ? (grouped ? -1 : 0) : rest.tabIndex}\n aria-label={removable ? groupedAriaLabel : rest['aria-label']}\n data-chip=\"\"\n onKeyDown={handleKeyDown}\n >\n {leadingAvatar != null ? (\n <span className={styles['chip__avatar-slot']}>\n <UserAvatar\n src={leadingAvatar.src}\n alt={leadingAvatar.alt}\n size={avatarSize}\n />\n </span>\n ) : leadingIcon != null ? (\n <span className={styles['chip__icon-slot']} aria-hidden>\n <Icon glyph={leadingIcon} size={iconSize} />\n </span>\n ) : null}\n <span className={styles['chip__label']}>{children}</span>\n {onRemove != null ? (\n <button\n type=\"button\"\n className={styles['chip__remove']}\n data-chip-remove=\"\"\n tabIndex={-1}\n aria-hidden\n onMouseDown={(e) => {\n e.preventDefault();\n }}\n onClick={handleRemove}\n >\n <CloseCircleIcon size={Number(iconSize)} aria-hidden />\n </button>\n ) : null}\n </div>\n );\n}\n"],"names":["ICON_SIZE_MAP","AVATAR_SIZE_MAP","labelTextFromChildren","children","focusTargetAfterRemove","chipEl","scan","start","direction","el","parent","afterGroup","groupSiblingInput","_a","Chip","size","leadingIcon","leadingAvatar","onRemove","error","colored","className","rest","grouped","useContext","ChipGroupContext","iconSize","avatarSize","labelText","groupedAriaLabel","removable","handleRemove","e","nextFocus","removeButton","activateChip","rootClass","styles","toKebab","handleKeyDown","_b","jsxs","jsx","UserAvatar","Icon","CloseCircleIcon"],"mappings":";;;;;;;;AAiCA,MAAMA,IAA4C;AAAA,EAChD,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,kBAAkB;AAAA,EAClB,OAAO;AACT,GAEMC,IAAoD;AAAA,EACxD,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,kBAAkB;AAAA,EAClB,OAAO;AACT;AAEA,SAASC,EAAsBC,GAA6B;AAC1D,SAAI,OAAOA,KAAa,YAAY,OAAOA,KAAa,WAC/C,OAAOA,CAAQ,EAAE,KAAA,IAEtB,MAAM,QAAQA,CAAQ,IACjBA,EAAS,IAAID,CAAqB,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,IAE9D;AACT;AAEA,SAASE,EAAuBC,GAAyC;;AACvE,QAAMC,IAAO,CACXC,GACAC,MACuB;AACvB,QAAIC,IAAqBF;AACzB,WAAOE,KAAI;AAIT,UAHIA,aAAc,eAAeA,EAAG,QAAQ,QAAQ,QAIlDA,aAAc,oBACdA,aAAc;AAEd,eAAOA;AAET,MAAAA,IACED,MAAc,SAASC,EAAG,qBAAqBA,EAAG;AAAA,IACtD;AACA,WAAO;AAAA,EACT,GAEMC,IAASL,EAAO,eAChBM,IAAaD,KAAA,gBAAAA,EAAQ,oBACrBE,IACJD,aAAsB,oBACtBA,aAAsB,sBAClBA,IACA;AAEN,SACEL,EAAKD,EAAO,oBAAoB,MAAM,KACtCC,EAAKD,EAAO,wBAAwB,UAAU,KAC9CO,MACAF,KAAA,gBAAAA,EAAQ,cAAc,yBACtBG,IAAAH,KAAA,gBAAAA,EAAQ,kBAAR,gBAAAG,EAAuB,cAAc,uBACrC;AAEJ;AAOA,SAAwBC,EAAK;AAAA,EAC3B,UAAAX;AAAA,EACA,MAAAY,IAAO;AAAA,EACP,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,UAAAC;AAAA,EACA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AER;AAEA,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWL;AAAA,MACV,GAAGd;AAAA,MACJ,MAAMQ,IAAY,WAAWR,EAAK;AAAA,MAClC,UAAUQ,IAAaP,IAAU,KAAK,IAAKD,EAAK;AAAA,MAChD,cAAYQ,IAAYD,IAAmBP,EAAK,YAAY;AAAA,MAC5D,aAAU;AAAA,MACV,WAAWiB;AAAA,MAEV,UAAA;AAAA,QAAAtB,KAAiB,OAChB,gBAAAyB,EAAC,QAAA,EAAK,WAAWL,EAAO,mBAAmB,GACzC,UAAA,gBAAAK;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,KAAK1B,EAAc;AAAA,YACnB,KAAKA,EAAc;AAAA,YACnB,MAAMU;AAAA,UAAA;AAAA,QAAA,GAEV,IACEX,KAAe,OACjB,gBAAA0B,EAAC,QAAA,EAAK,WAAWL,EAAO,iBAAiB,GAAG,eAAW,IACrD,4BAACO,GAAA,EAAK,OAAO5B,GAAa,MAAMU,EAAA,CAAU,GAC5C,IACE;AAAA,0BACH,QAAA,EAAK,WAAWW,EAAO,aAAiB,UAAAlC,GAAS;AAAA,QACjDe,KAAY,OACX,gBAAAwB;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAWL,EAAO;AAAA,YAClB,oBAAiB;AAAA,YACjB,UAAU;AAAA,YACV,eAAW;AAAA,YACX,aAAa,CAACL,MAAM;AAClB,cAAAA,EAAE,eAAA;AAAA,YACJ;AAAA,YACA,SAASD;AAAA,YAET,4BAACc,GAAA,EAAgB,MAAM,OAAOnB,CAAQ,GAAG,eAAW,GAAA,CAAC;AAAA,UAAA;AAAA,QAAA,IAErD;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGV;"}
@@ -1 +1 @@
1
- ._chip_1cqqu_2{position:relative;display:inline-flex;align-items:center;border-radius:var(--radius-s);border:1px solid transparent;background-color:rgba(var(--center-channel-color-rgb),.08);font-family:var(--font-family-body);font-weight:var(--font-weight-semibold);color:var(--center-channel-color);white-space:nowrap;overflow:hidden;cursor:default;transition:background-color var(--duration-quick) var(--ease-transition),border-color var(--duration-quick) var(--ease-transition)}._chip_1cqqu_2:hover{background-color:rgba(var(--center-channel-color-rgb),.16)}._chip_1cqqu_2:focus-within{border-color:var(--button-bg);background-color:rgba(var(--center-channel-color-rgb),.08)}._chip__label_1cqqu_24{position:relative}._chip__icon-slot_1cqqu_27,._chip__avatar-slot_1cqqu_33{display:inline-flex;align-items:center;flex-shrink:0;position:relative}._chip__remove_1cqqu_39{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;background:none;border:none;padding:0;cursor:pointer;color:rgba(var(--center-channel-color-rgb),.32);line-height:0}._chip__remove_1cqqu_39:focus-visible{outline:none}._chip--colored_1cqqu_55:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:#d95d1c29;pointer-events:none}._chip--error_1cqqu_62{border-color:var(--error-text, var(--color-danger))}._chip--size-small_1cqqu_65{gap:var(--spacing-xxxs);padding:var(--spacing-xxxs) var(--spacing-xs)}._chip--size-small_1cqqu_65:has(._chip__remove_1cqqu_39){padding-right:var(--spacing-xxs)}._chip--size-small_1cqqu_65 ._chip__label_1cqqu_24{font-size:var(--font-size-25);line-height:12px;letter-spacing:.2px}._chip--size-small_1cqqu_65 ._chip__remove_1cqqu_39{padding:1px}._chip--size-medium_1cqqu_80{gap:var(--spacing-xxxs);padding:var(--spacing-xxxs) var(--spacing-xs)}._chip--size-medium_1cqqu_80:has(._chip__remove_1cqqu_39){padding-right:var(--spacing-xxs)}._chip--size-medium_1cqqu_80 ._chip__label_1cqqu_24{font-size:var(--font-size-75);line-height:var(--line-height-75)}._chip--size-medium_1cqqu_80 ._chip__remove_1cqqu_39{padding:2px}._chip--size-medium-compact_1cqqu_94{gap:var(--spacing-xxxs);padding:var(--spacing-xxxxs) var(--spacing-xxs)}._chip--size-medium-compact_1cqqu_94:has(._chip__remove_1cqqu_39){padding-right:var(--spacing-xxxs)}._chip--size-medium-compact_1cqqu_94 ._chip__label_1cqqu_24{font-size:var(--font-size-100);line-height:var(--line-height-100)}._chip--size-medium-compact_1cqqu_94 ._chip__remove_1cqqu_39{padding:2px}._chip--size-large_1cqqu_108{gap:var(--spacing-xxs);padding:var(--spacing-xxs) var(--spacing-m)}._chip--size-large_1cqqu_108:has(._chip__remove_1cqqu_39){padding-right:var(--spacing-s)}._chip--size-large_1cqqu_108 ._chip__label_1cqqu_24{font-size:var(--font-size-100);line-height:var(--line-height-100)}._chip--size-large_1cqqu_108 ._chip__remove_1cqqu_39{padding:2px}
1
+ ._chip_cbmf6_2{position:relative;display:inline-flex;align-items:center;border-radius:var(--radius-s);border:1px solid transparent;background-color:rgba(var(--center-channel-color-rgb),.08);font-family:var(--font-family-body);font-weight:var(--font-weight-semibold);color:var(--center-channel-color);white-space:nowrap;overflow:visible;cursor:default;outline:2px solid color-mix(in srgb,var(--focus-ring-color) 0%,transparent);outline-offset:0;transition:background-color var(--duration-quick) var(--ease-transition),border-color var(--duration-quick) var(--ease-transition),outline-color var(--duration-quick) var(--ease-transition)}._chip_cbmf6_2:hover{background-color:rgba(var(--center-channel-color-rgb),.16)}._chip_cbmf6_2:focus-visible{outline-color:var(--focus-ring-color)}._chip_cbmf6_2:focus-within:not(:focus-visible){border-color:var(--button-bg);background-color:rgba(var(--center-channel-color-rgb),.08)}._chip__label_cbmf6_29{position:relative;overflow:hidden;text-overflow:ellipsis;min-width:0}._chip__icon-slot_cbmf6_35,._chip__avatar-slot_cbmf6_41{display:inline-flex;align-items:center;flex-shrink:0;position:relative}._chip__remove_cbmf6_47{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:none;border:0;padding:0;border-radius:var(--radius-full);cursor:pointer;color:rgba(var(--center-channel-color-rgb),.32);line-height:0}._chip__remove_cbmf6_47:hover{color:rgba(var(--center-channel-color-rgb),.64)}._chip--colored_cbmf6_63:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;background-color:#d95d1c29;pointer-events:none}._chip--error_cbmf6_71{border-color:var(--error-text, var(--color-danger))}._chip--size-small_cbmf6_74{gap:var(--spacing-xxxs);padding:var(--spacing-xxxs) var(--spacing-xs)}._chip--size-small_cbmf6_74:has(._chip__remove_cbmf6_47){padding-right:var(--spacing-xxs)}._chip--size-small_cbmf6_74 ._chip__label_cbmf6_29{font-size:var(--font-size-25);line-height:12px;letter-spacing:.2px}._chip--size-small_cbmf6_74 ._chip__remove_cbmf6_47{padding:1px}._chip--size-medium_cbmf6_89{gap:var(--spacing-xxxs);padding:var(--spacing-xxxs) var(--spacing-xs)}._chip--size-medium_cbmf6_89:has(._chip__remove_cbmf6_47){padding-right:var(--spacing-xxs)}._chip--size-medium_cbmf6_89 ._chip__label_cbmf6_29{font-size:var(--font-size-75);line-height:var(--line-height-75)}._chip--size-medium_cbmf6_89 ._chip__remove_cbmf6_47{padding:2px}._chip--size-medium-compact_cbmf6_103{gap:var(--spacing-xxxs);padding:var(--spacing-xxxxs) var(--spacing-xxs)}._chip--size-medium-compact_cbmf6_103:has(._chip__remove_cbmf6_47){padding-right:var(--spacing-xxxs)}._chip--size-medium-compact_cbmf6_103 ._chip__label_cbmf6_29{font-size:var(--font-size-100);line-height:var(--line-height-100)}._chip--size-medium-compact_cbmf6_103 ._chip__remove_cbmf6_47{padding:2px}._chip--size-large_cbmf6_117{gap:var(--spacing-xxs);padding:var(--spacing-xxs) var(--spacing-m)}._chip--size-large_cbmf6_117:has(._chip__remove_cbmf6_47){padding-right:var(--spacing-s)}._chip--size-large_cbmf6_117 ._chip__label_cbmf6_29{font-size:var(--font-size-100);line-height:var(--line-height-100)}._chip--size-large_cbmf6_117 ._chip__remove_cbmf6_47{padding:2px}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./Chip.module.css');const _="_chip_1cqqu_2",c="_chip__label_1cqqu_24",i="_chip__remove_1cqqu_39",e={chip:_,chip__label:c,"chip__icon-slot":"_chip__icon-slot_1cqqu_27","chip__avatar-slot":"_chip__avatar-slot_1cqqu_33",chip__remove:i,"chip--colored":"_chip--colored_1cqqu_55","chip--error":"_chip--error_1cqqu_62","chip--size-small":"_chip--size-small_1cqqu_65","chip--size-medium":"_chip--size-medium_1cqqu_80","chip--size-medium-compact":"_chip--size-medium-compact_1cqqu_94","chip--size-large":"_chip--size-large_1cqqu_108"};exports.chip=_;exports.chip__label=c;exports.chip__remove=i;exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./Chip.module.css');const _="_chip_cbmf6_2",c="_chip__label_cbmf6_29",i="_chip__remove_cbmf6_47",e={chip:_,chip__label:c,"chip__icon-slot":"_chip__icon-slot_cbmf6_35","chip__avatar-slot":"_chip__avatar-slot_cbmf6_41",chip__remove:i,"chip--colored":"_chip--colored_cbmf6_63","chip--error":"_chip--error_cbmf6_71","chip--size-small":"_chip--size-small_cbmf6_74","chip--size-medium":"_chip--size-medium_cbmf6_89","chip--size-medium-compact":"_chip--size-medium-compact_cbmf6_103","chip--size-large":"_chip--size-large_cbmf6_117"};exports.chip=_;exports.chip__label=c;exports.chip__remove=i;exports.default=e;
2
2
  //# sourceMappingURL=Chip.module.scss.cjs.map
@@ -1,15 +1,15 @@
1
- import './Chip.module.css';const _ = "_chip_1cqqu_2", c = "_chip__label_1cqqu_24", i = "_chip__remove_1cqqu_39", e = {
1
+ import './Chip.module.css';const _ = "_chip_cbmf6_2", c = "_chip__label_cbmf6_29", i = "_chip__remove_cbmf6_47", e = {
2
2
  chip: _,
3
3
  chip__label: c,
4
- "chip__icon-slot": "_chip__icon-slot_1cqqu_27",
5
- "chip__avatar-slot": "_chip__avatar-slot_1cqqu_33",
4
+ "chip__icon-slot": "_chip__icon-slot_cbmf6_35",
5
+ "chip__avatar-slot": "_chip__avatar-slot_cbmf6_41",
6
6
  chip__remove: i,
7
- "chip--colored": "_chip--colored_1cqqu_55",
8
- "chip--error": "_chip--error_1cqqu_62",
9
- "chip--size-small": "_chip--size-small_1cqqu_65",
10
- "chip--size-medium": "_chip--size-medium_1cqqu_80",
11
- "chip--size-medium-compact": "_chip--size-medium-compact_1cqqu_94",
12
- "chip--size-large": "_chip--size-large_1cqqu_108"
7
+ "chip--colored": "_chip--colored_cbmf6_63",
8
+ "chip--error": "_chip--error_cbmf6_71",
9
+ "chip--size-small": "_chip--size-small_cbmf6_74",
10
+ "chip--size-medium": "_chip--size-medium_cbmf6_89",
11
+ "chip--size-medium-compact": "_chip--size-medium-compact_cbmf6_103",
12
+ "chip--size-large": "_chip--size-large_cbmf6_117"
13
13
  };
14
14
  export {
15
15
  _ as chip,
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("react/jsx-runtime"),b=require("react"),M=require("./ChipGroup.module.scss.cjs"),v=b.createContext(!1);function l(o){return[...o.querySelectorAll("[data-chip]")]}function E(o){const s=o.closest('[role="toolbar"]');s&&l(s).forEach(a=>{a.tabIndex=a===o?0:-1}),o.focus({focusVisible:!0})}function j({children:o,className:s="",disabled:a=!1,onKeyDown:f,onFocus:d,...g}){const h=b.useRef(null);b.useLayoutEffect(()=>{const r=h.current;if(r==null)return;const t=l(r);if(t.length===0)return;if(a){t.forEach(e=>{e.tabIndex=-1});return}const n=t.find(e=>e===document.activeElement);if(n!=null){t.forEach(e=>{e.tabIndex=e===n?0:-1});return}t.some(e=>e.tabIndex===0)||(t[0].tabIndex=0,t.slice(1).forEach(e=>{e.tabIndex=-1}))},[o,a]);const C=r=>{if(d==null||d(r),a)return;const t=r.target;if(!(t instanceof HTMLElement))return;const n=t.closest("[data-chip]"),e=r.currentTarget;n==null||!e.contains(n)||l(e).forEach(c=>{c.tabIndex=c===n?0:-1})},I=r=>{if(f==null||f(r),r.defaultPrevented||a)return;const t=h.current;if(t==null)return;const n=l(t);if(n.length===0)return;const e=document.activeElement;if(!(e instanceof HTMLElement)||!t.contains(e))return;const c=e.closest("[data-chip]"),p=n.findIndex(i=>i===c);if(p<0)return;const u=i=>{const x=n[Math.max(0,Math.min(n.length-1,i))];x!=null&&(r.preventDefault(),E(x))};switch(r.key){case"ArrowRight":case"ArrowDown":u(p+1);break;case"ArrowLeft":case"ArrowUp":u(p-1);break;case"Home":u(0);break;case"End":u(n.length-1);break;case"Delete":case"Backspace":case"Enter":case" ":{const i=c==null?void 0:c.querySelector("[data-chip-remove]");i!=null&&!i.disabled&&(r.preventDefault(),i.click());break}}},k=[M.default["chip-group"],s].filter(Boolean).join(" ");return m.jsx(v.Provider,{value:!0,children:m.jsx("div",{...g,ref:h,className:k,role:"toolbar","aria-orientation":"horizontal","aria-disabled":a||void 0,onKeyDown:I,onFocus:C,children:o})})}exports.ChipGroupContext=v;exports.activateChip=E;exports.default=j;
2
+ //# sourceMappingURL=ChipGroup.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChipGroup.cjs","sources":["../../../src/components/chip/ChipGroup.tsx"],"sourcesContent":["import {\n createContext,\n useLayoutEffect,\n useRef,\n type FocusEvent,\n type HTMLAttributes,\n type KeyboardEvent,\n type ReactNode,\n} from 'react';\nimport styles from './ChipGroup.module.scss';\n\nexport const ChipGroupContext = createContext(false);\n\nexport interface ChipGroupProps extends HTMLAttributes<HTMLDivElement> {\n children: ReactNode;\n /** When true, chips are not a tab stop. */\n disabled?: boolean;\n}\n\nfunction chipsIn(toolbar: ParentNode): HTMLElement[] {\n return [...toolbar.querySelectorAll<HTMLElement>('[data-chip]')];\n}\n\n/** Roving tabindex + focus for a chip inside a ChipGroup. */\nexport function activateChip(el: HTMLElement) {\n const toolbar = el.closest('[role=\"toolbar\"]');\n if (toolbar) {\n chipsIn(toolbar).forEach((chip) => {\n chip.tabIndex = chip === el ? 0 : -1;\n });\n }\n el.focus({ focusVisible: true } as FocusOptions);\n}\n\n/**\n * Toolbar for a set of Chips. Tab lands on the active chip; Left/Right move\n * between chips; Delete, Backspace, Enter, and Space remove the focused chip.\n * The × is mouse-only.\n */\nexport default function ChipGroup({\n children,\n className = '',\n disabled = false,\n onKeyDown,\n onFocus,\n ...rest\n}: ChipGroupProps) {\n const ref = useRef<HTMLDivElement>(null);\n\n useLayoutEffect(() => {\n const toolbar = ref.current;\n if (toolbar == null) return;\n const chips = chipsIn(toolbar);\n if (chips.length === 0) return;\n if (disabled) {\n chips.forEach((chip) => {\n chip.tabIndex = -1;\n });\n return;\n }\n const focused = chips.find((chip) => chip === document.activeElement);\n if (focused != null) {\n chips.forEach((chip) => {\n chip.tabIndex = chip === focused ? 0 : -1;\n });\n return;\n }\n if (!chips.some((chip) => chip.tabIndex === 0)) {\n chips[0].tabIndex = 0;\n chips.slice(1).forEach((chip) => {\n chip.tabIndex = -1;\n });\n }\n }, [children, disabled]);\n\n const handleFocus = (e: FocusEvent<HTMLDivElement>) => {\n onFocus?.(e);\n if (disabled) return;\n const target = e.target;\n if (!(target instanceof HTMLElement)) return;\n const chip = target.closest<HTMLElement>('[data-chip]');\n const toolbar = e.currentTarget;\n if (chip == null || !toolbar.contains(chip)) return;\n chipsIn(toolbar).forEach((c) => {\n c.tabIndex = c === chip ? 0 : -1;\n });\n };\n\n const handleKeyDown = (e: KeyboardEvent<HTMLDivElement>) => {\n onKeyDown?.(e);\n if (e.defaultPrevented || disabled) return;\n\n const toolbar = ref.current;\n if (toolbar == null) return;\n const chips = chipsIn(toolbar);\n if (chips.length === 0) return;\n\n const active = document.activeElement;\n if (!(active instanceof HTMLElement) || !toolbar.contains(active)) return;\n const chip = active.closest<HTMLElement>('[data-chip]');\n const index = chips.findIndex((c) => c === chip);\n if (index < 0) return;\n\n const moveTo = (nextIndex: number) => {\n const next = chips[Math.max(0, Math.min(chips.length - 1, nextIndex))];\n if (next == null) return;\n e.preventDefault();\n activateChip(next);\n };\n\n switch (e.key) {\n case 'ArrowRight':\n case 'ArrowDown':\n moveTo(index + 1);\n break;\n case 'ArrowLeft':\n case 'ArrowUp':\n moveTo(index - 1);\n break;\n case 'Home':\n moveTo(0);\n break;\n case 'End':\n moveTo(chips.length - 1);\n break;\n case 'Delete':\n case 'Backspace':\n case 'Enter':\n case ' ': {\n const btn = chip?.querySelector<HTMLButtonElement>('[data-chip-remove]');\n if (btn != null && !btn.disabled) {\n e.preventDefault();\n btn.click();\n }\n break;\n }\n default:\n break;\n }\n };\n\n const rootClass = [styles['chip-group'], className].filter(Boolean).join(' ');\n\n return (\n <ChipGroupContext.Provider value={true}>\n <div\n {...rest}\n ref={ref}\n className={rootClass}\n role=\"toolbar\"\n aria-orientation=\"horizontal\"\n aria-disabled={disabled || undefined}\n onKeyDown={handleKeyDown}\n onFocus={handleFocus}\n >\n {children}\n </div>\n </ChipGroupContext.Provider>\n );\n}\n"],"names":["ChipGroupContext","createContext","chipsIn","toolbar","activateChip","el","chip","ChipGroup","children","className","disabled","onKeyDown","onFocus","rest","ref","useRef","useLayoutEffect","chips","focused","handleFocus","e","target","handleKeyDown","active","index","c","moveTo","nextIndex","next","btn","rootClass","styles","jsx"],"mappings":"6MAWaA,EAAmBC,EAAAA,cAAc,EAAK,EAQnD,SAASC,EAAQC,EAAoC,CACnD,MAAO,CAAC,GAAGA,EAAQ,iBAA8B,aAAa,CAAC,CACjE,CAGO,SAASC,EAAaC,EAAiB,CAC5C,MAAMF,EAAUE,EAAG,QAAQ,kBAAkB,EACzCF,GACFD,EAAQC,CAAO,EAAE,QAASG,GAAS,CACjCA,EAAK,SAAWA,IAASD,EAAK,EAAI,EACpC,CAAC,EAEHA,EAAG,MAAM,CAAE,aAAc,EAAA,CAAsB,CACjD,CAOA,SAAwBE,EAAU,CAChC,SAAAC,EACA,UAAAC,EAAY,GACZ,SAAAC,EAAW,GACX,UAAAC,EACA,QAAAC,EACA,GAAGC,CACL,EAAmB,CACjB,MAAMC,EAAMC,EAAAA,OAAuB,IAAI,EAEvCC,EAAAA,gBAAgB,IAAM,CACpB,MAAMb,EAAUW,EAAI,Q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Q,GAAMA,IAAMnB,CAAI,EAC/C,GAAIkB,EAAQ,EAAG,OAEf,MAAME,EAAUC,GAAsB,CACpC,MAAMC,EAAOX,EAAM,KAAK,IAAI,EAAG,KAAK,IAAIA,EAAM,OAAS,EAAGU,CAAS,CAAC,CAAC,EACjEC,GAAQ,OACZR,EAAE,eAAA,EACFhB,EAAawB,CAAI,EACnB,EAEA,OAAQR,EAAE,IAAA,CACR,IAAK,aACL,IAAK,YACHM,EAAOF,EAAQ,CAAC,EAChB,MACF,IAAK,YACL,IAAK,UACHE,EAAOF,EAAQ,CAAC,EAChB,MACF,IAAK,OACHE,EAAO,CAAC,EACR,MACF,IAAK,MACHA,EAAOT,EAAM,OAAS,CAAC,EACvB,MACF,IAAK,SACL,IAAK,YACL,IAAK,QACL,IAAK,IAAK,CACR,MAAMY,EAAMvB,GAAA,YAAAA,EAAM,cAAiC,sBAC/CuB,GAAO,MAAQ,CAACA,EAAI,WACtBT,EAAE,eAAA,EACFS,EAAI,MAAA,GAEN,KACF,CAEE,CAEN,EAEMC,EAAY,CAACC,UAAO,YAAY,EAAGtB,CAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAE5E,OACEuB,EAAAA,IAAChC,EAAiB,SAAjB,CAA0B,MAAO,GAChC,SAAAgC,EAAAA,IAAC,MAAA,CACE,GAAGnB,EACJ,IAAAC,EACA,UAAWgB,EACX,KAAK,UACL,mBAAiB,aACjB,gBAAepB,GAAY,OAC3B,UAAWY,EACX,QAASH,EAER,SAAAX,CAAA,CAAA,EAEL,CAEJ"}
@@ -0,0 +1,16 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export declare const ChipGroupContext: import('react').Context<boolean>;
3
+ export interface ChipGroupProps extends HTMLAttributes<HTMLDivElement> {
4
+ children: ReactNode;
5
+ /** When true, chips are not a tab stop. */
6
+ disabled?: boolean;
7
+ }
8
+ /** Roving tabindex + focus for a chip inside a ChipGroup. */
9
+ export declare function activateChip(el: HTMLElement): void;
10
+ /**
11
+ * Toolbar for a set of Chips. Tab lands on the active chip; Left/Right move
12
+ * between chips; Delete, Backspace, Enter, and Space remove the focused chip.
13
+ * The × is mouse-only.
14
+ */
15
+ export default function ChipGroup({ children, className, disabled, onKeyDown, onFocus, ...rest }: ChipGroupProps): import("react/jsx-runtime").JSX.Element;
16
+ //# sourceMappingURL=ChipGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChipGroup.d.ts","sourceRoot":"","sources":["../../../src/components/chip/ChipGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,cAAc,EAEnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,eAAO,MAAM,gBAAgB,kCAAuB,CAAC;AAErD,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE,QAAQ,EAAE,SAAS,CAAC;IACpB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAMD,6DAA6D;AAC7D,wBAAgB,YAAY,CAAC,EAAE,EAAE,WAAW,QAQ3C;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,SAAc,EACd,QAAgB,EAChB,SAAS,EACT,OAAO,EACP,GAAG,IAAI,EACR,EAAE,cAAc,2CAiHhB"}
@@ -0,0 +1,112 @@
1
+ import { jsx as b } from "react/jsx-runtime";
2
+ import { useRef as I, useLayoutEffect as k, createContext as C } from "react";
3
+ import A from "./ChipGroup.module.scss.js";
4
+ const w = C(!1);
5
+ function f(o) {
6
+ return [...o.querySelectorAll("[data-chip]")];
7
+ }
8
+ function L(o) {
9
+ const i = o.closest('[role="toolbar"]');
10
+ i && f(i).forEach((a) => {
11
+ a.tabIndex = a === o ? 0 : -1;
12
+ }), o.focus({ focusVisible: !0 });
13
+ }
14
+ function H({
15
+ children: o,
16
+ className: i = "",
17
+ disabled: a = !1,
18
+ onKeyDown: u,
19
+ onFocus: h,
20
+ ...x
21
+ }) {
22
+ const d = I(null);
23
+ k(() => {
24
+ const r = d.current;
25
+ if (r == null) return;
26
+ const e = f(r);
27
+ if (e.length === 0) return;
28
+ if (a) {
29
+ e.forEach((t) => {
30
+ t.tabIndex = -1;
31
+ });
32
+ return;
33
+ }
34
+ const n = e.find((t) => t === document.activeElement);
35
+ if (n != null) {
36
+ e.forEach((t) => {
37
+ t.tabIndex = t === n ? 0 : -1;
38
+ });
39
+ return;
40
+ }
41
+ e.some((t) => t.tabIndex === 0) || (e[0].tabIndex = 0, e.slice(1).forEach((t) => {
42
+ t.tabIndex = -1;
43
+ }));
44
+ }, [o, a]);
45
+ const v = (r) => {
46
+ if (h == null || h(r), a) return;
47
+ const e = r.target;
48
+ if (!(e instanceof HTMLElement)) return;
49
+ const n = e.closest("[data-chip]"), t = r.currentTarget;
50
+ n == null || !t.contains(n) || f(t).forEach((c) => {
51
+ c.tabIndex = c === n ? 0 : -1;
52
+ });
53
+ }, E = (r) => {
54
+ if (u == null || u(r), r.defaultPrevented || a) return;
55
+ const e = d.current;
56
+ if (e == null) return;
57
+ const n = f(e);
58
+ if (n.length === 0) return;
59
+ const t = document.activeElement;
60
+ if (!(t instanceof HTMLElement) || !e.contains(t)) return;
61
+ const c = t.closest("[data-chip]"), p = n.findIndex((s) => s === c);
62
+ if (p < 0) return;
63
+ const l = (s) => {
64
+ const m = n[Math.max(0, Math.min(n.length - 1, s))];
65
+ m != null && (r.preventDefault(), L(m));
66
+ };
67
+ switch (r.key) {
68
+ case "ArrowRight":
69
+ case "ArrowDown":
70
+ l(p + 1);
71
+ break;
72
+ case "ArrowLeft":
73
+ case "ArrowUp":
74
+ l(p - 1);
75
+ break;
76
+ case "Home":
77
+ l(0);
78
+ break;
79
+ case "End":
80
+ l(n.length - 1);
81
+ break;
82
+ case "Delete":
83
+ case "Backspace":
84
+ case "Enter":
85
+ case " ": {
86
+ const s = c == null ? void 0 : c.querySelector("[data-chip-remove]");
87
+ s != null && !s.disabled && (r.preventDefault(), s.click());
88
+ break;
89
+ }
90
+ }
91
+ }, g = [A["chip-group"], i].filter(Boolean).join(" ");
92
+ return /* @__PURE__ */ b(w.Provider, { value: !0, children: /* @__PURE__ */ b(
93
+ "div",
94
+ {
95
+ ...x,
96
+ ref: d,
97
+ className: g,
98
+ role: "toolbar",
99
+ "aria-orientation": "horizontal",
100
+ "aria-disabled": a || void 0,
101
+ onKeyDown: E,
102
+ onFocus: v,
103
+ children: o
104
+ }
105
+ ) });
106
+ }
107
+ export {
108
+ w as ChipGroupContext,
109
+ L as activateChip,
110
+ H as default
111
+ };
112
+ //# sourceMappingURL=ChipGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChipGroup.js","sources":["../../../src/components/chip/ChipGroup.tsx"],"sourcesContent":["import {\n createContext,\n useLayoutEffect,\n useRef,\n type FocusEvent,\n type HTMLAttributes,\n type KeyboardEvent,\n type ReactNode,\n} from 'react';\nimport styles from './ChipGroup.module.scss';\n\nexport const ChipGroupContext = createContext(false);\n\nexport interface ChipGroupProps extends HTMLAttributes<HTMLDivElement> {\n children: ReactNode;\n /** When true, chips are not a tab stop. */\n disabled?: boolean;\n}\n\nfunction chipsIn(toolbar: ParentNode): HTMLElement[] {\n return [...toolbar.querySelectorAll<HTMLElement>('[data-chip]')];\n}\n\n/** Roving tabindex + focus for a chip inside a ChipGroup. */\nexport function activateChip(el: HTMLElement) {\n const toolbar = el.closest('[role=\"toolbar\"]');\n if (toolbar) {\n chipsIn(toolbar).forEach((chip) => {\n chip.tabIndex = chip === el ? 0 : -1;\n });\n }\n el.focus({ focusVisible: true } as FocusOptions);\n}\n\n/**\n * Toolbar for a set of Chips. Tab lands on the active chip; Left/Right move\n * between chips; Delete, Backspace, Enter, and Space remove the focused chip.\n * The × is mouse-only.\n */\nexport default function ChipGroup({\n children,\n className = '',\n disabled = false,\n onKeyDown,\n onFocus,\n ...rest\n}: ChipGroupProps) {\n const ref = useRef<HTMLDivElement>(null);\n\n useLayoutEffect(() => {\n const toolbar = ref.current;\n if (toolbar == null) return;\n const chips = chipsIn(toolbar);\n if (chips.length === 0) return;\n if (disabled) {\n chips.forEach((chip) => {\n chip.tabIndex = -1;\n });\n return;\n }\n const focused = chips.find((chip) => chip === document.activeElement);\n if (focused != null) {\n chips.forEach((chip) => {\n chip.tabIndex = chip === focused ? 0 : -1;\n });\n return;\n }\n if (!chips.some((chip) => chip.tabIndex === 0)) {\n chips[0].tabIndex = 0;\n chips.slice(1).forEach((chip) => {\n chip.tabIndex = -1;\n });\n }\n }, [children, disabled]);\n\n const handleFocus = (e: FocusEvent<HTMLDivElement>) => {\n onFocus?.(e);\n if (disabled) return;\n const target = e.target;\n if (!(target instanceof HTMLElement)) return;\n const chip = target.closest<HTMLElement>('[data-chip]');\n const toolbar = e.currentTarget;\n if (chip == null || !toolbar.contains(chip)) return;\n chipsIn(toolbar).forEach((c) => {\n c.tabIndex = c === chip ? 0 : -1;\n });\n };\n\n const handleKeyDown = (e: KeyboardEvent<HTMLDivElement>) => {\n onKeyDown?.(e);\n if (e.defaultPrevented || disabled) return;\n\n const toolbar = ref.current;\n if (toolbar == null) return;\n const chips = chipsIn(toolbar);\n if (chips.length === 0) return;\n\n const active = document.activeElement;\n if (!(active instanceof HTMLElement) || !toolbar.contains(active)) return;\n const chip = active.closest<HTMLElement>('[data-chip]');\n const index = chips.findIndex((c) => c === chip);\n if (index < 0) return;\n\n const moveTo = (nextIndex: number) => {\n const next = chips[Math.max(0, Math.min(chips.length - 1, nextIndex))];\n if (next == null) return;\n e.preventDefault();\n activateChip(next);\n };\n\n switch (e.key) {\n case 'ArrowRight':\n case 'ArrowDown':\n moveTo(index + 1);\n break;\n case 'ArrowLeft':\n case 'ArrowUp':\n moveTo(index - 1);\n break;\n case 'Home':\n moveTo(0);\n break;\n case 'End':\n moveTo(chips.length - 1);\n break;\n case 'Delete':\n case 'Backspace':\n case 'Enter':\n case ' ': {\n const btn = chip?.querySelector<HTMLButtonElement>('[data-chip-remove]');\n if (btn != null && !btn.disabled) {\n e.preventDefault();\n btn.click();\n }\n break;\n }\n default:\n break;\n }\n };\n\n const rootClass = [styles['chip-group'], className].filter(Boolean).join(' ');\n\n return (\n <ChipGroupContext.Provider value={true}>\n <div\n {...rest}\n ref={ref}\n className={rootClass}\n role=\"toolbar\"\n aria-orientation=\"horizontal\"\n aria-disabled={disabled || undefined}\n onKeyDown={handleKeyDown}\n onFocus={handleFocus}\n >\n {children}\n </div>\n </ChipGroupContext.Provider>\n );\n}\n"],"names":["ChipGroupContext","createContext","chipsIn","toolbar","activateChip","el","chip","ChipGroup","children","className","disabled","onKeyDown","onFocus","rest","ref","useRef","useLayoutEffect","chips","focused","handleFocus","e","target","handleKeyDown","active","index","c","moveTo","nextIndex","next","btn","rootClass","styles","jsx"],"mappings":";;;AAWO,MAAMA,IAAmBC,EAAc,EAAK;AAQnD,SAASC,EAAQC,GAAoC;AACnD,SAAO,CAAC,GAAGA,EAAQ,iBAA8B,aAAa,CAAC;AACjE;AAGO,SAASC,EAAaC,GAAiB;AAC5C,QAAMF,IAAUE,EAAG,QAAQ,kBAAkB;AAC7C,EAAIF,KACFD,EAAQC,CAAO,EAAE,QAAQ,CAACG,MAAS;AACjC,IAAAA,EAAK,WAAWA,MAASD,IAAK,IAAI;AAAA,EACpC,CAAC,GAEHA,EAAG,MAAM,EAAE,cAAc,GAAA,CAAsB;AACjD;AAOA,SAAwBE,EAAU;AAAA,EAChC,UAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,UAAAC,IAAW;AAAA,EACX,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACL,GAAmB;AACjB,QAAMC,IAAMC,EAAuB,IAAI;AAEvC,EAAAC,EAAgB,MAAM;AACpB,UAAMb,IAAUW,EAAI;AACpB,QAAIX,KAAW,KAAM;AACrB,UAAMc,IAAQf,EAAQC,CAAO;AAC7B,QAAIc,EAAM,WAAW,EAAG;AACxB,QAAIP,GAAU;AACZ,MAAAO,EAAM,QAAQ,CAACX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ap;align-items:center;gap:var(--spacing-xxs);min-width:0}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./ChipGroup.module.css');const e={"chip-group":"_chip-group_p9ypv_2"};exports.default=e;
2
+ //# sourceMappingURL=ChipGroup.module.scss.cjs.map