@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,86 +1,87 @@
1
- import { jsxs as u, jsx as p } from "react/jsx-runtime";
2
- import { forwardRef as M, useId as O, useState as _, useCallback as f } from "react";
3
- import { toKebab as Q } from "../../utils/string.js";
1
+ import { jsxs as u, jsx as _ } from "react/jsx-runtime";
2
+ import { forwardRef as O, useId as Q, useState as N, useCallback as f } from "react";
3
+ import { toKebab as W } from "../../utils/string.js";
4
4
  import e from "./TextArea.module.scss.js";
5
- const B = M(
5
+ const L = O(
6
6
  function({
7
- className: N = "",
8
- size: I = "medium",
7
+ className: j = "",
8
+ size: y = "medium",
9
9
  label: d,
10
- invalid: m = !1,
11
- maxLength: s,
12
- showCharacterCount: v = !1,
13
- id: h,
10
+ invalid: v = !1,
11
+ maxLength: l,
12
+ showCharacterCount: m = !1,
13
+ id: I,
14
14
  value: c,
15
15
  defaultValue: x,
16
- placeholder: j,
17
- onFocus: a,
16
+ placeholder: h,
17
+ onFocus: s,
18
18
  onBlur: r,
19
19
  onChange: i,
20
- disabled: y,
21
- readOnly: V,
22
- rows: z = 3,
23
- ...F
24
- }, T) {
25
- const $ = O(), n = h ?? $, l = c !== void 0, [k, w] = _(
20
+ disabled: V,
21
+ readOnly: z,
22
+ rows: A = 3,
23
+ "aria-describedby": F,
24
+ ...T
25
+ }, $) {
26
+ const k = Q(), n = I ?? k, a = c !== void 0, [w, C] = N(
26
27
  x ?? ""
27
- ), o = l ? c : k, C = o != null && o !== "", [K, A] = _(!1), R = K || C, S = f(
28
+ ), o = a ? c : w, K = o != null && o !== "", [R, b] = N(!1), S = R || K, U = f(
28
29
  (t) => {
29
- A(!0), a == null || a(t);
30
+ b(!0), s == null || s(t);
30
31
  },
31
- [a]
32
- ), U = f(
32
+ [s]
33
+ ), q = f(
33
34
  (t) => {
34
- A(!1), r == null || r(t);
35
+ b(!1), r == null || r(t);
35
36
  },
36
37
  [r]
37
- ), q = f(
38
+ ), D = f(
38
39
  (t) => {
39
- l || w(t.target.value), i == null || i(t);
40
+ a || C(t.target.value), i == null || i(t);
40
41
  },
41
- [l, i]
42
- ), D = e[`textArea--size-${Q(I)}`], E = m ? e["textArea--invalid"] : "", G = d != null && R ? e["textArea--label-floated"] : "", H = [
43
- e.textArea,
44
- D,
42
+ [a, i]
43
+ ), E = e[`text-area--size-${W(y)}`], G = v ? e["text-area--invalid"] : "", H = d != null && S ? e["text-area--label-floated"] : "", J = [
44
+ e["text-area"],
45
45
  E,
46
46
  G,
47
- N
48
- ].filter(Boolean).join(" "), J = typeof o == "string" ? o.length : 0, b = v && s != null ? `${n}-counter` : void 0;
49
- return /* @__PURE__ */ u("div", { className: H, children: [
50
- /* @__PURE__ */ u("div", { className: e.textArea__wrapper, children: [
51
- d != null && /* @__PURE__ */ p("label", { className: e.textArea__label, htmlFor: n, children: d }),
52
- /* @__PURE__ */ p(
47
+ H,
48
+ j
49
+ ].filter(Boolean).join(" "), M = typeof o == "string" ? o.length : 0, p = m && l != null ? `${n}-counter` : void 0;
50
+ return /* @__PURE__ */ u("div", { className: J, children: [
51
+ /* @__PURE__ */ u("div", { className: e["text-area__wrapper"], children: [
52
+ d != null && /* @__PURE__ */ _("label", { className: e["text-area__label"], htmlFor: n, children: d }),
53
+ /* @__PURE__ */ _(
53
54
  "textarea",
54
55
  {
55
- ref: T,
56
+ ref: $,
56
57
  id: n,
57
- className: e.textArea__input,
58
- value: l ? c : void 0,
59
- defaultValue: l ? void 0 : x,
60
- placeholder: j,
61
- maxLength: s,
62
- disabled: y,
63
- readOnly: V,
64
- rows: z,
65
- "aria-invalid": m ? !0 : void 0,
66
- "aria-describedby": b,
67
- onFocus: S,
68
- onBlur: U,
69
- onChange: q,
70
- ...F
58
+ className: e["text-area__input"],
59
+ value: a ? c : void 0,
60
+ defaultValue: a ? void 0 : x,
61
+ placeholder: h,
62
+ maxLength: l,
63
+ disabled: V,
64
+ readOnly: z,
65
+ rows: A,
66
+ "aria-invalid": v ? !0 : void 0,
67
+ "aria-describedby": [F, p].filter(Boolean).join(" ") || void 0,
68
+ onFocus: U,
69
+ onBlur: q,
70
+ onChange: D,
71
+ ...T
71
72
  }
72
73
  )
73
74
  ] }),
74
- v && s != null && /* @__PURE__ */ u(
75
+ m && l != null && /* @__PURE__ */ u(
75
76
  "div",
76
77
  {
77
- id: b,
78
- className: e.textArea__counter,
78
+ id: p,
79
+ className: e["text-area__counter"],
79
80
  "aria-live": "polite",
80
81
  children: [
81
- J,
82
+ M,
82
83
  " / ",
83
- s
84
+ l
84
85
  ]
85
86
  }
86
87
  )
@@ -88,6 +89,6 @@ const B = M(
88
89
  }
89
90
  );
90
91
  export {
91
- B as default
92
+ L as default
92
93
  };
93
94
  //# sourceMappingURL=TextArea.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.js","sources":["../../../src/components/text-area/TextArea.tsx"],"sourcesContent":["import type { TextareaHTMLAttributes, ReactNode, ChangeEvent } from 'react';\nimport { forwardRef, useId, useState, useCallback } from 'react';\nimport { toKebab } from '@/utils/string';\nimport styles from './TextArea.module.scss';\n\nexport type TextAreaSize = 'small' | 'medium' | 'large';\n\nexport interface TextAreaProps extends Omit<\n TextareaHTMLAttributes<HTMLTextAreaElement>,\n 'size'\n> {\n /** Optional CSS class name. */\n className?: string;\n /** When true, shows invalid/error styling. */\n invalid?: boolean;\n /** Floating label content. When provided, label floats on focus or when value is non-empty. */\n label?: ReactNode;\n /** Max length for the textarea; used with showCharacterCount for counter. */\n maxLength?: number;\n /** When true with maxLength, shows \"current / max\" character count below textarea. */\n showCharacterCount?: boolean;\n /** Size variant. Default: Medium. */\n size?: TextAreaSize;\n}\n\n/**\n * Text Areas let people write long-form text that spans multiple lines — descriptions,\n * channel purposes, message drafts, admin notes. They share their visual rhythm with Text\n * Input but trade the single-line constraint for room to breathe.\n */\nconst TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n function TextArea(\n {\n className = '',\n size = 'medium',\n label,\n invalid = false,\n maxLength,\n showCharacterCount = false,\n id: idProp,\n value: valueProp,\n defaultValue,\n placeholder,\n onFocus,\n onBlur,\n onChange,\n disabled,\n readOnly,\n rows = 3,\n ...rest\n },\n ref,\n ) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n\n const isControlled = valueProp !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n defaultValue ?? '',\n );\n const value = isControlled ? (valueProp as string) : uncontrolledValue;\n const hasValue = value != null && value !== '';\n\n const [isFocused, setIsFocused] = useState(false);\n const labelFloated = isFocused || hasValue;\n\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLTextAreaElement>) => {\n setIsFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLTextAreaElement>) => {\n setIsFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLTextAreaElement>) => {\n if (!isControlled) setUncontrolledValue(e.target.value);\n onChange?.(e);\n },\n [isControlled, onChange],\n );\n\n const sizeClass = styles[`textArea--size-${toKebab(size)}`];\n const invalidClass = invalid ? styles['textArea--invalid'] : '';\n const labelFloatedClass =\n label != null && labelFloated ? styles['textArea--label-floated'] : '';\n\n const rootClass = [\n styles.textArea,\n sizeClass,\n invalidClass,\n labelFloatedClass,\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const currentLength = typeof value === 'string' ? value.length : 0;\n const counterId =\n showCharacterCount && maxLength != null ? `${id}-counter` : undefined;\n\n return (\n <div className={rootClass}>\n <div className={styles.textArea__wrapper}>\n {label != null && (\n <label className={styles.textArea__label} htmlFor={id}>\n {label}\n </label>\n )}\n <textarea\n ref={ref}\n id={id}\n className={styles.textArea__input}\n value={isControlled ? valueProp : undefined}\n defaultValue={isControlled ? undefined : defaultValue}\n placeholder={placeholder}\n maxLength={maxLength}\n disabled={disabled}\n readOnly={readOnly}\n rows={rows}\n aria-invalid={invalid ? true : undefined}\n aria-describedby={counterId}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChange={handleChange}\n {...rest}\n />\n </div>\n {showCharacterCount && maxLength != null && (\n <div\n id={counterId}\n className={styles.textArea__counter}\n aria-live=\"polite\"\n >\n {currentLength} / {maxLength}\n </div>\n )}\n </div>\n );\n },\n);\n\nexport default TextArea;\n"],"names":["TextArea","forwardRef","className","size","label","invalid","maxLength","showCharacterCount","idProp","valueProp","defaultValue","placeholder","onFocus","onBlur","onChange","disabled","readOnly","rows","rest","ref","generatedId","useId","id","isControlled","uncontrolledValue","setUncontrolledValue","useState","value","hasValue","isFocused","setIsFocused","labelFloated","handleFocus","useCallback","e","handleBlur","handleChange","sizeClass","styles","toKebab","invalidClass","labelFloatedClass","rootClass","currentLength","counterId","jsxs","jsx"],"mappings":";;;;AA8BA,MAAMA,IAAWC;AAAA,EACf,SACE;AAAA,IACE,WAAAC,IAAY;AAAA,IACZ,MAAAC,IAAO;AAAA,IACP,OAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,WAAAC;AAAA,IACA,oBAAAC,IAAqB;AAAA,IACrB,IAAIC;AAAA,IACJ,OAAOC;AAAA,IACP,cAAAC;AAAA,IACA,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,GAAGC;AAAA,EAAA,GAELC,GACA;AACA,UAAMC,IAAcC,EAAA,GACdC,IAAKd,KAAUY,GAEfG,IAAed,MAAc,QAC7B,CAACe,GAAmBC,CAAoB,IAAIC;AAAA,MAChDhB,KAAgB;AAAA,IAAA,GAEZiB,IAAQJ,IAAgBd,IAAuBe,GAC/CI,IAAWD,KAAS,QAAQA,MAAU,IAEtC,CAACE,GAAWC,CAAY,IAAIJ,EAAS,EAAK,GAC1CK,IAAeF,KAAaD,GAE5BI,IAAcC;AAAA,MAClB,CAACC,MAA6C;AAC5C,QAAAJ,EAAa,EAAI,GACjBlB,KAAA,QAAAA,EAAUsB;AAAA,MACZ;AAAA,MACA,CAACtB,CAAO;AAAA,IAAA,GAEJuB,IAAaF;AAAA,MACjB,CAACC,MAA6C;AAC5C,QAAAJ,EAAa,EAAK,GAClBjB,KAAA,QAAAA,EAASqB;AAAA,MACX;AAAA,MACA,CAACrB,CAAM;AAAA,IAAA,GAEHuB,IAAeH;AAAA,MACnB,CAACC,MAAwC;AACvC,QAAKX,KAAcE,EAAqBS,EAAE,OAAO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J,WAAWN,EAAO;AAAA,UAClB,aAAU;AAAA,UAET,UAAA;AAAA,YAAAK;AAAA,YAAc;AAAA,YAAIrC;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACrB,GAEJ;AAAA,EAEJ;AACF;"}
1
+ {"version":3,"file":"TextArea.js","sources":["../../../src/components/text-area/TextArea.tsx"],"sourcesContent":["import type { TextareaHTMLAttributes, ReactNode, ChangeEvent } from 'react';\nimport { forwardRef, useId, useState, useCallback } from 'react';\nimport { toKebab } from '@/utils/string';\nimport styles from './TextArea.module.scss';\n\nexport type TextAreaSize = 'small' | 'medium' | 'large';\n\nexport interface TextAreaProps extends Omit<\n TextareaHTMLAttributes<HTMLTextAreaElement>,\n 'size'\n> {\n /** Optional CSS class name. */\n className?: string;\n /** When true, shows invalid/error styling. */\n invalid?: boolean;\n /** Floating label content. When provided, label floats on focus or when value is non-empty. */\n label?: ReactNode;\n /** Max length for the textarea; used with showCharacterCount for counter. */\n maxLength?: number;\n /** When true with maxLength, shows \"current / max\" character count below textarea. */\n showCharacterCount?: boolean;\n /** Size variant. Default: Medium. */\n size?: TextAreaSize;\n}\n\n/**\n * Text Areas let people write long-form text that spans multiple lines — descriptions,\n * channel purposes, message drafts, admin notes. They share their visual rhythm with Text\n * Input but trade the single-line constraint for room to breathe.\n */\nconst TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n function TextArea(\n {\n className = '',\n size = 'medium',\n label,\n invalid = false,\n maxLength,\n showCharacterCount = false,\n id: idProp,\n value: valueProp,\n defaultValue,\n placeholder,\n onFocus,\n onBlur,\n onChange,\n disabled,\n readOnly,\n rows = 3,\n 'aria-describedby': describedBy,\n ...rest\n },\n ref,\n ) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n\n const isControlled = valueProp !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n defaultValue ?? '',\n );\n const value = isControlled ? (valueProp as string) : uncontrolledValue;\n const hasValue = value != null && value !== '';\n\n const [isFocused, setIsFocused] = useState(false);\n const labelFloated = isFocused || hasValue;\n\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLTextAreaElement>) => {\n setIsFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLTextAreaElement>) => {\n setIsFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLTextAreaElement>) => {\n if (!isControlled) setUncontrolledValue(e.target.value);\n onChange?.(e);\n },\n [isControlled, onChange],\n );\n\n const sizeClass = styles[`text-area--size-${toKebab(size)}`];\n const invalidClass = invalid ? styles['text-area--invalid'] : '';\n const labelFloatedClass =\n label != null && labelFloated ? styles['text-area--label-floated'] : '';\n\n const rootClass = [\n styles['text-area'],\n sizeClass,\n invalidClass,\n labelFloatedClass,\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const currentLength = typeof value === 'string' ? value.length : 0;\n const counterId =\n showCharacterCount && maxLength != null ? `${id}-counter` : undefined;\n\n return (\n <div className={rootClass}>\n <div className={styles['text-area__wrapper']}>\n {label != null && (\n <label className={styles['text-area__label']} htmlFor={id}>\n {label}\n </label>\n )}\n <textarea\n ref={ref}\n id={id}\n className={styles['text-area__input']}\n value={isControlled ? valueProp : undefined}\n defaultValue={isControlled ? undefined : defaultValue}\n placeholder={placeholder}\n maxLength={maxLength}\n disabled={disabled}\n readOnly={readOnly}\n rows={rows}\n aria-invalid={invalid ? true : undefined}\n aria-describedby={\n [describedBy, counterId].filter(Boolean).join(' ') || undefined\n }\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChange={handleChange}\n {...rest}\n />\n </div>\n {showCharacterCount && maxLength != null && (\n <div\n id={counterId}\n className={styles['text-area__counter']}\n aria-live=\"polite\"\n >\n {currentLength} / {maxLength}\n </div>\n )}\n </div>\n );\n },\n);\n\nexport default TextArea;\n"],"names":["TextArea","forwardRef","className","size","label","invalid","maxLength","showCharacterCount","idProp","valueProp","defaultValue","placeholder","onFocus","onBlur","onChange","disabled","readOnly","rows","describedBy","rest","ref","generatedId","useId","id","isControlled","uncontrolledValue","setUncontrolledValue","useState","value","hasValue","isFocused","setIsFocused","labelFloated","handleFocus","useCallback","e","handleBlur","handleChange","sizeClass","styles","toKebab","invalidClass","labelFloatedClass","rootClass","currentLength","counterId","jsxs","jsx"],"mappings":";;;;AA8BA,MAAMA,IAAWC;AAAA,EACf,SACE;AAAA,IACE,WAAAC,IAAY;AAAA,IACZ,MAAAC,IAAO;AAAA,IACP,OAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,WAAAC;AAAA,IACA,oBAAAC,IAAqB;AAAA,IACrB,IAAIC;AAAA,IACJ,OAAOC;AAAA,IACP,cAAAC;AAAA,IACA,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,oBAAoBC;AAAA,IACpB,GAAGC;AAAA,EAAA,GAELC,GACA;AACA,UAAMC,IAAcC,EAAA,GACdC,IAAKf,KAAUa,GAEfG,IAAef,MAAc,QAC7B,CAACgB,GAAmBC,CAAoB,IAAIC;AAAA,MAChDjB,KAAgB;AAAA,IAAA,GAEZkB,IAAQJ,IAAgBf,IAAuBgB,GAC/CI,IAAWD,KAAS,QAAQA,MAAU,IAEtC,CAACE,GAAWC,CAAY,IAAIJ,EAAS,EAAK,GAC1CK,IAAeF,KAAaD,GAE5BI,IAAcC;AAAA,MAClB,CAACC,MAA6C;AAC5C,QAAAJ,EAAa,EAAI,GACjBnB,KAAA,QAAAA,EAAUuB;AAAA,MACZ;AAAA,MACA,CAACvB,CAAO;AAAA,IAAA,GAEJwB,IAAaF;AAAA,MACjB,CAACC,MAA6C;AAC5C,QAAAJ,EAAa,EAAK,GAClBlB,KAAA,QAAAA,EAASsB;AAAA,MACX;AAAA,MACA,CAACtB,CAAM;AAAA,IAAA,GAEH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YACR,UAAUC;AAAA,YACT,GAAGlB;AAAA,UAAA;AAAA,QAAA;AAAA,MACN,GACF;AAAA,MACCZ,KAAsBD,KAAa,QAClC,gBAAAwC;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,IAAID;AAAA,UACJ,WAAWN,EAAO,oBAAoB;AAAA,UACtC,aAAU;AAAA,UAET,UAAA;AAAA,YAAAK;AAAA,YAAc;AAAA,YAAItC;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACrB,GAEJ;AAAA,EAEJ;AACF;"}
@@ -1 +1 @@
1
- ._textArea_ewczf_2{display:flex;flex-direction:column;width:100%}._textArea__wrapper_ewczf_7{position:relative;background-color:var(--center-channel-bg);border-radius:var(--radius-s);box-shadow:inset 0 0 0 1px rgba(var(--center-channel-color-rgb),.16);transition:box-shadow var(--duration-quick) var(--ease-transition)}._textArea_ewczf_2:has(._textArea__input_ewczf_14:not(:disabled)):hover:not(:focus-within) ._textArea__wrapper_ewczf_7{box-shadow:inset 0 0 0 1px rgba(var(--center-channel-color-rgb),.24)}._textArea_ewczf_2:has(._textArea__input_ewczf_14:focus-visible) ._textArea__wrapper_ewczf_7{box-shadow:inset 0 0 0 1px var(--button-bg),0 0 0 1px var(--button-bg)}._textArea_ewczf_2:has(._textArea__input_ewczf_14:disabled) ._textArea__wrapper_ewczf_7{background-color:var(--center-channel-bg);opacity:.56}._textArea__label_ewczf_24{position:absolute;left:var(--spacing-xs);top:var(--spacing-s);padding:0 var(--spacing-xxxs);margin:0;font-family:Open Sans,sans-serif;font-size:var(--font-size-100);line-height:var(--line-height-100);font-weight:var(--font-weight-regular);color:rgba(var(--center-channel-color-rgb),.64);background-color:var(--center-channel-bg);pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 24px);transition:font-size var(--duration-quick) var(--ease-transition),top var(--duration-quick) var(--ease-transition),color var(--duration-quick) var(--ease-transition)}._textArea--label-floated_ewczf_43 ._textArea__label_ewczf_24{top:0;transform:translateY(-50%);font-size:var(--font-size-25);line-height:14px;color:rgba(var(--center-channel-color-rgb),.64)}._textArea__input_ewczf_14{display:block;width:100%;margin:0;border:0;background:transparent;resize:vertical;font-family:Open Sans,sans-serif;font-size:var(--font-size-100);line-height:var(--line-height-100);font-weight:var(--font-weight-regular);color:var(--center-channel-color);box-sizing:border-box}._textArea__input_ewczf_14:focus{outline:none}._textArea__input_ewczf_14::placeholder{color:rgba(var(--center-channel-color-rgb),.64)}._textArea__input_ewczf_14:disabled{cursor:not-allowed;resize:none}._textArea__counter_ewczf_74{margin-top:var(--spacing-xxxs);font-family:Open Sans,sans-serif;font-size:var(--font-size-25);line-height:14px;color:rgba(var(--center-channel-color-rgb),.64)}._textArea--size-small_ewczf_81 ._textArea__input_ewczf_14{padding:var(--spacing-xs) var(--spacing-m);font-size:var(--font-size-75);line-height:var(--line-height-75)}._textArea--size-small_ewczf_81 ._textArea__label_ewczf_24{top:var(--spacing-xs);font-size:var(--font-size-75);line-height:var(--line-height-25)}._textArea--size-small_ewczf_81._textArea--label-floated_ewczf_43 ._textArea__label_ewczf_24{top:0;font-size:var(--font-size-25);line-height:14px}._textArea--size-medium_ewczf_96 ._textArea__input_ewczf_14{padding:var(--spacing-s) var(--spacing-l);font-size:var(--font-size-100);line-height:var(--line-height-100)}._textArea--size-medium_ewczf_96 ._textArea__label_ewczf_24{top:var(--spacing-s);left:var(--spacing-m);font-size:var(--font-size-100)}._textArea--size-medium_ewczf_96._textArea--label-floated_ewczf_43 ._textArea__label_ewczf_24{top:0;font-size:var(--font-size-25);line-height:14px}._textArea--size-large_ewczf_111 ._textArea__input_ewczf_14{padding:var(--spacing-m) var(--spacing-l);font-size:var(--font-size-200);line-height:var(--line-height-200)}._textArea--size-large_ewczf_111 ._textArea__label_ewczf_24{top:var(--spacing-m);left:var(--spacing-m);font-size:var(--font-size-200);line-height:var(--line-height-200)}._textArea--size-large_ewczf_111._textArea--label-floated_ewczf_43 ._textArea__label_ewczf_24{top:0;font-size:var(--font-size-25);line-height:14px}._textArea_ewczf_2:has(._textArea__input_ewczf_14:focus-visible) ._textArea__label_ewczf_24{color:var(--button-bg)}._textArea_ewczf_2:has(._textArea__label_ewczf_24):not(._textArea--label-floated_ewczf_43) ._textArea__input_ewczf_14::placeholder{color:transparent}._textArea--invalid_ewczf_133 ._textArea__wrapper_ewczf_7{box-shadow:inset 0 0 0 1px var(--error-text, var(--color-danger))}._textArea--invalid_ewczf_133:has(._textArea__input_ewczf_14:focus-visible) ._textArea__wrapper_ewczf_7{box-shadow:inset 0 0 0 1px var(--error-text, var(--color-danger)),0 0 0 1px var(--error-text, var(--color-danger))}._textArea--invalid_ewczf_133 ._textArea__label_ewczf_24{color:var(--error-text, var(--color-danger))}._textArea--invalid_ewczf_133:has(._textArea__input_ewczf_14:focus-visible) ._textArea__label_ewczf_24{color:var(--error-text, var(--color-danger))}
1
+ ._text-area_1qev1_2{display:flex;flex-direction:column;width:100%}._text-area__wrapper_1qev1_7{position:relative;background-color:var(--center-channel-bg);border-radius:var(--radius-s);box-shadow:inset 0 0 0 1px rgba(var(--center-channel-color-rgb),.16);transition:box-shadow var(--duration-quick) var(--ease-transition)}._text-area_1qev1_2:has(._text-area__input_1qev1_14:not(:disabled)):hover:not(:focus-within) ._text-area__wrapper_1qev1_7{box-shadow:inset 0 0 0 1px rgba(var(--center-channel-color-rgb),.24)}._text-area_1qev1_2:has(._text-area__input_1qev1_14:focus-visible) ._text-area__wrapper_1qev1_7{box-shadow:inset 0 0 0 1px var(--focus-ring-color),0 0 0 1px var(--focus-ring-color)}._text-area_1qev1_2:has(._text-area__input_1qev1_14:disabled) ._text-area__wrapper_1qev1_7{background-color:var(--center-channel-bg);opacity:.56}._text-area__label_1qev1_24{position:absolute;left:var(--spacing-xs);top:var(--spacing-s);padding:0 var(--spacing-xxxs);margin:0;font-family:Open Sans,sans-serif;font-size:var(--font-size-100);line-height:var(--line-height-100);font-weight:var(--font-weight-regular);color:rgba(var(--center-channel-color-rgb),.64);background-color:var(--center-channel-bg);pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 24px);transition:font-size var(--duration-quick) var(--ease-transition),top var(--duration-quick) var(--ease-transition),color var(--duration-quick) var(--ease-transition)}._text-area--label-floated_1qev1_43 ._text-area__label_1qev1_24{top:0;transform:translateY(-50%);font-size:var(--font-size-25);line-height:14px;color:rgba(var(--center-channel-color-rgb),.64)}._text-area__input_1qev1_14{display:block;width:100%;margin:0;border:0;background:transparent;resize:vertical;font-family:Open Sans,sans-serif;font-size:var(--font-size-100);line-height:var(--line-height-100);font-weight:var(--font-weight-regular);color:var(--center-channel-color);box-sizing:border-box}._text-area__input_1qev1_14:focus{outline:none}._text-area__input_1qev1_14::placeholder{color:rgba(var(--center-channel-color-rgb),.64)}._text-area__input_1qev1_14:disabled{cursor:not-allowed;resize:none}._text-area__counter_1qev1_74{margin-top:var(--spacing-xxxs);font-family:Open Sans,sans-serif;font-size:var(--font-size-25);line-height:14px;color:rgba(var(--center-channel-color-rgb),.64)}._text-area--size-small_1qev1_81 ._text-area__input_1qev1_14{padding:var(--spacing-xs) var(--spacing-m);font-size:var(--font-size-75);line-height:var(--line-height-75)}._text-area--size-small_1qev1_81 ._text-area__label_1qev1_24{top:var(--spacing-xs);font-size:var(--font-size-75);line-height:var(--line-height-25)}._text-area--size-small_1qev1_81._text-area--label-floated_1qev1_43 ._text-area__label_1qev1_24{top:0;font-size:var(--font-size-25);line-height:14px}._text-area--size-medium_1qev1_96 ._text-area__input_1qev1_14{padding:var(--spacing-s) var(--spacing-l);font-size:var(--font-size-100);line-height:var(--line-height-100)}._text-area--size-medium_1qev1_96 ._text-area__label_1qev1_24{top:var(--spacing-s);left:var(--spacing-m);font-size:var(--font-size-100)}._text-area--size-medium_1qev1_96._text-area--label-floated_1qev1_43 ._text-area__label_1qev1_24{top:0;font-size:var(--font-size-25);line-height:14px}._text-area--size-large_1qev1_111 ._text-area__input_1qev1_14{padding:var(--spacing-m) var(--spacing-l);font-size:var(--font-size-200);line-height:var(--line-height-200)}._text-area--size-large_1qev1_111 ._text-area__label_1qev1_24{top:var(--spacing-m);left:var(--spacing-m);font-size:var(--font-size-200);line-height:var(--line-height-200)}._text-area--size-large_1qev1_111._text-area--label-floated_1qev1_43 ._text-area__label_1qev1_24{top:0;font-size:var(--font-size-25);line-height:14px}._text-area_1qev1_2:has(._text-area__input_1qev1_14:focus-visible) ._text-area__label_1qev1_24{color:var(--button-bg)}._text-area_1qev1_2:has(._text-area__label_1qev1_24):not(._text-area--label-floated_1qev1_43) ._text-area__input_1qev1_14::placeholder{color:transparent}._text-area--invalid_1qev1_133 ._text-area__wrapper_1qev1_7{box-shadow:inset 0 0 0 1px var(--error-text, var(--color-danger))}._text-area--invalid_1qev1_133:has(._text-area__input_1qev1_14:focus-visible) ._text-area__wrapper_1qev1_7{box-shadow:inset 0 0 0 1px var(--error-text, var(--color-danger)),0 0 0 1px var(--error-text, var(--color-danger))}._text-area--invalid_1qev1_133 ._text-area__label_1qev1_24{color:var(--error-text, var(--color-danger))}._text-area--invalid_1qev1_133:has(._text-area__input_1qev1_14:focus-visible) ._text-area__label_1qev1_24{color:var(--error-text, var(--color-danger))}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./TextArea.module.css');const e="_textArea_ewczf_2",t="_textArea__wrapper_ewczf_7",_="_textArea__input_ewczf_14",a="_textArea__label_ewczf_24",r="_textArea__counter_ewczf_74",x={textArea:e,textArea__wrapper:t,textArea__input:_,textArea__label:a,"textArea--label-floated":"_textArea--label-floated_ewczf_43",textArea__counter:r,"textArea--size-small":"_textArea--size-small_ewczf_81","textArea--size-medium":"_textArea--size-medium_ewczf_96","textArea--size-large":"_textArea--size-large_ewczf_111","textArea--invalid":"_textArea--invalid_ewczf_133"};exports.default=x;exports.textArea=e;exports.textArea__counter=r;exports.textArea__input=_;exports.textArea__label=a;exports.textArea__wrapper=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./TextArea.module.css');const e={"text-area":"_text-area_1qev1_2","text-area__wrapper":"_text-area__wrapper_1qev1_7","text-area__input":"_text-area__input_1qev1_14","text-area__label":"_text-area__label_1qev1_24","text-area--label-floated":"_text-area--label-floated_1qev1_43","text-area__counter":"_text-area__counter_1qev1_74","text-area--size-small":"_text-area--size-small_1qev1_81","text-area--size-medium":"_text-area--size-medium_1qev1_96","text-area--size-large":"_text-area--size-large_1qev1_111","text-area--invalid":"_text-area--invalid_1qev1_133"};exports.default=e;
2
2
  //# sourceMappingURL=TextArea.module.scss.cjs.map
@@ -1,21 +1,16 @@
1
- import './TextArea.module.css';const e = "_textArea_ewczf_2", t = "_textArea__wrapper_ewczf_7", _ = "_textArea__input_ewczf_14", a = "_textArea__label_ewczf_24", r = "_textArea__counter_ewczf_74", x = {
2
- textArea: e,
3
- textArea__wrapper: t,
4
- textArea__input: _,
5
- textArea__label: a,
6
- "textArea--label-floated": "_textArea--label-floated_ewczf_43",
7
- textArea__counter: r,
8
- "textArea--size-small": "_textArea--size-small_ewczf_81",
9
- "textArea--size-medium": "_textArea--size-medium_ewczf_96",
10
- "textArea--size-large": "_textArea--size-large_ewczf_111",
11
- "textArea--invalid": "_textArea--invalid_ewczf_133"
1
+ import './TextArea.module.css';const e = {
2
+ "text-area": "_text-area_1qev1_2",
3
+ "text-area__wrapper": "_text-area__wrapper_1qev1_7",
4
+ "text-area__input": "_text-area__input_1qev1_14",
5
+ "text-area__label": "_text-area__label_1qev1_24",
6
+ "text-area--label-floated": "_text-area--label-floated_1qev1_43",
7
+ "text-area__counter": "_text-area__counter_1qev1_74",
8
+ "text-area--size-small": "_text-area--size-small_1qev1_81",
9
+ "text-area--size-medium": "_text-area--size-medium_1qev1_96",
10
+ "text-area--size-large": "_text-area--size-large_1qev1_111",
11
+ "text-area--invalid": "_text-area--invalid_1qev1_133"
12
12
  };
13
13
  export {
14
- x as default,
15
- e as textArea,
16
- r as textArea__counter,
17
- _ as textArea__input,
18
- a as textArea__label,
19
- t as textArea__wrapper
14
+ e as default
20
15
  };
21
16
  //# sourceMappingURL=TextArea.module.scss.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),l=require("react"),W=require("../../utils/string.cjs"),t=require("./TextInput.module.scss.cjs"),X=l.forwardRef(function({className:C="",size:R="medium",label:o,leadingIcon:f,trailingIcon:p,invalid:I=!1,maxLength:u,showCharacterCount:_=!1,id:y,value:x,defaultValue:v,placeholder:T,onFocus:i,onBlur:c,onChange:d,disabled:g,readOnly:k,...q},n){const S=l.useId(),b=y??S,j=l.useRef(null),V=l.useCallback(e=>{if(j.current=e,typeof n=="function"){const N=n(e);return()=>{j.current=null,typeof N=="function"&&N()}}n&&(n.current=e)},[n]),a=x!==void 0,[z,M]=l.useState(v??""),r=a?x:z,$=r!=null&&r!=="",[w,m]=l.useState(!1),F=w||$,K=l.useCallback(e=>{m(!0),i==null||i(e)},[i]),O=l.useCallback(e=>{m(!1),c==null||c(e)},[c]),U=l.useCallback(e=>{a||M(e.target.value),d==null||d(e)},[a,d]),A=t.default[`textInput--size-${W.toKebab(R)}`],D=I?t.default["textInput--invalid"]:"",E=o!=null&&F?t.default["textInput--label-floated"]:"",G=f!=null?t.default["textInput--has-leading-icon"]:"",H=p!=null?t.default["textInput--has-trailing-icon"]:"",J=[t.default.textInput,A,D,E,G,H,C].filter(Boolean).join(" "),Q=typeof r=="string"?r.length:0,h=_&&u!=null?`${b}-counter`:void 0;return s.jsxs("div",{className:J,children:[s.jsx("div",{className:t.default.textInput__wrapper,children:s.jsxs("label",{className:t.default.textInput__inner,children:[o!=null&&s.jsx("span",{className:t.default.textInput__label,children:o}),f!=null&&s.jsx("span",{className:t.default.textInput__leadingIcon,children:f}),s.jsx("input",{ref:V,id:b,className:t.default.textInput__input,value:a?x:void 0,defaultValue:a?void 0:v,placeholder:T,maxLength:u,disabled:g,readOnly:k,"aria-invalid":I?!0:void 0,"aria-describedby":h,onFocus:K,onBlur:O,onChange:U,...q}),p!=null&&s.jsx("span",{className:t.default.textInput__trailingIcon,children:p})]})}),_&&u!=null&&s.jsxs("div",{id:h,className:t.default.textInput__counter,"aria-live":"polite",children:[Q," / ",u]})]})});exports.default=X;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),l=require("react"),X=require("../../utils/string.cjs"),t=require("./TextInput.module.scss.cjs"),Y=l.forwardRef(function({className:C="",size:R="medium",label:r,leadingIcon:f,trailingIcon:p,invalid:_=!1,maxLength:i,showCharacterCount:v=!1,id:T,value:x,defaultValue:b,placeholder:g,onFocus:u,onBlur:c,onChange:d,disabled:k,readOnly:q,"aria-describedby":I,...S},n){const V=l.useId(),j=T??V,m=l.useRef(null),z=l.useCallback(e=>{if(m.current=e,typeof n=="function"){const y=n(e);return()=>{m.current=null,typeof y=="function"&&y()}}n&&(n.current=e)},[n]),a=x!==void 0,[M,$]=l.useState(b??""),o=a?x:M,w=o!=null&&o!=="",[F,h]=l.useState(!1),K=F||w,O=l.useCallback(e=>{h(!0),u==null||u(e)},[u]),U=l.useCallback(e=>{h(!1),c==null||c(e)},[c]),A=l.useCallback(e=>{a||$(e.target.value),d==null||d(e)},[a,d]),D=t.default[`text-input--size-${X.toKebab(R)}`],E=_?t.default["text-input--invalid"]:"",G=r!=null&&K?t.default["text-input--label-floated"]:"",H=f!=null?t.default["text-input--has-leading-icon"]:"",J=p!=null?t.default["text-input--has-trailing-icon"]:"",Q=[t.default["text-input"],D,E,G,H,J,C].filter(Boolean).join(" "),W=typeof o=="string"?o.length:0,N=v&&i!=null?`${j}-counter`:void 0;return s.jsxs("div",{className:Q,children:[s.jsx("div",{className:t.default["text-input__wrapper"],children:s.jsxs("label",{className:t.default["text-input__inner"],children:[r!=null&&s.jsx("span",{className:t.default["text-input__label"],children:r}),f!=null&&s.jsx("span",{className:t.default["text-input__leading-icon"],children:f}),s.jsx("input",{ref:z,id:j,className:t.default["text-input__input"],value:a?x:void 0,defaultValue:a?void 0:b,placeholder:g,maxLength:i,disabled:k,readOnly:q,"aria-invalid":_?!0:void 0,"aria-describedby":[I,N].filter(Boolean).join(" ")||void 0,onFocus:O,onBlur:U,onChange:A,...S}),p!=null&&s.jsx("span",{className:t.default["text-input__trailing-icon"],children:p})]})}),v&&i!=null&&s.jsxs("div",{id:N,className:t.default["text-input__counter"],"aria-live":"polite",children:[W," / ",i]})]})});exports.default=Y;
2
2
  //# sourceMappingURL=TextInput.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.cjs","sources":["../../../src/components/text-input/TextInput.tsx"],"sourcesContent":["import type {\n InputHTMLAttributes,\n ReactNode,\n ChangeEvent,\n RefCallback,\n} from 'react';\nimport { forwardRef, useId, useState, useCallback, useRef } from 'react';\nimport { toKebab } from '@/utils/string';\nimport styles from './TextInput.module.scss';\n\nexport type TextInputSize = 'small' | 'medium' | 'large';\n\nexport interface TextInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'size'\n> {\n /** Optional CSS class name. */\n className?: string;\n /** When true, shows invalid/error styling. */\n invalid?: boolean;\n /** Floating label content. When provided, label floats on focus or when value is non-empty. */\n label?: ReactNode;\n /** Leading icon (e.g. <Icon glyph={<SearchIcon />} size=\"16\" />). */\n leadingIcon?: ReactNode;\n /** Max length for the input; used with showCharacterCount for counter. */\n maxLength?: number;\n /** When true with maxLength, shows \"current / max\" character count below input. */\n showCharacterCount?: boolean;\n /** Size variant. Figma: Small (32px), Medium (40px), Large (48px). Default: Medium. */\n size?: TextInputSize;\n /** Trailing icon. */\n trailingIcon?: ReactNode;\n}\n\n/**\n * Text Inputs let people enter and edit a single line of text — names, emails, search\n * queries, channel titles. They're the workhorse of every form and modal in Mattermost.\n */\nconst TextInput = forwardRef<HTMLInputElement, TextInputProps>(\n function TextInput(\n {\n className = '',\n size = 'medium',\n label,\n leadingIcon,\n trailingIcon,\n invalid = false,\n maxLength,\n showCharacterCount = false,\n id: idProp,\n value: valueProp,\n defaultValue,\n placeholder,\n onFocus,\n onBlur,\n onChange,\n disabled,\n readOnly,\n ...rest\n },\n ref,\n ) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const setInputRef = useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node;\n if (typeof ref === 'function') {\n const cleanup = (ref as RefCallback<HTMLInputElement>)(node);\n return () => {\n inputRef.current = null;\n if (typeof cleanup === 'function') cleanup();\n };\n }\n if (ref) ref.current = node;\n },\n [ref],\n );\n\n const isControlled = valueProp !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n defaultValue ?? '',\n );\n const value = isControlled ? (valueProp as string) : uncontrolledValue;\n const hasValue = value != null && value !== '';\n\n const [isFocused, setIsFocused] = useState(false);\n const labelFloated = isFocused || hasValue;\n\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n if (!isControlled) setUncontrolledValue(e.target.value);\n onChange?.(e);\n },\n [isControlled, onChange],\n );\n\n const sizeClass = styles[`textInput--size-${toKebab(size)}`];\n const invalidClass = invalid ? styles['textInput--invalid'] : '';\n const labelFloatedClass =\n label != null && labelFloated ? styles['textInput--label-floated'] : '';\n const hasLeadingClass =\n leadingIcon != null ? styles['textInput--has-leading-icon'] : '';\n const hasTrailingClass =\n trailingIcon != null ? styles['textInput--has-trailing-icon'] : '';\n\n const rootClass = [\n styles.textInput,\n sizeClass,\n invalidClass,\n labelFloatedClass,\n hasLeadingClass,\n hasTrailingClass,\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const currentLength = typeof value === 'string' ? value.length : 0;\n const counterId =\n showCharacterCount && maxLength != null ? `${id}-counter` : undefined;\n\n return (\n <div className={rootClass}>\n <div className={styles.textInput__wrapper}>\n <label className={styles.textInput__inner}>\n {label != null && (\n <span className={styles.textInput__label}>{label}</span>\n )}\n {leadingIcon != null && (\n <span className={styles.textInput__leadingIcon}>\n {leadingIcon}\n </span>\n )}\n <input\n ref={setInputRef}\n id={id}\n className={styles.textInput__input}\n value={isControlled ? valueProp : undefined}\n defaultValue={isControlled ? undefined : defaultValue}\n placeholder={placeholder}\n maxLength={maxLength}\n disabled={disabled}\n readOnly={readOnly}\n aria-invalid={invalid ? true : undefined}\n aria-describedby={counterId}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChange={handleChange}\n {...rest}\n />\n {trailingIcon != null && (\n <span className={styles.textInput__trailingIcon}>\n {trailingIcon}\n </span>\n )}\n </label>\n </div>\n {showCharacterCount && maxLength != null && (\n <div\n id={counterId}\n className={styles.textInput__counter}\n aria-live=\"polite\"\n >\n {currentLength} / {maxLength}\n </div>\n )}\n </div>\n );\n },\n);\n\nexport default TextInput;\n"],"names":["TextInput","forwardRef","className","size","label","leadingIcon","trailingIcon","invalid","maxLength","showCharacterCount","idProp","valueProp","defaultValue","placeholder","onFocus","onBlur","onChange","disabled","readOnly","rest","ref","generatedId","useId","id","inputRef","useRef","setInputRef","useCallback","node","cleanup","isControlled","uncontrolledValue","setUncontrolledValue","useState","value","hasValue","isFocused","setIsFocused","labelFloated","handleFocus","handleBlur","handleChange","sizeClass","styles","toKebab","invalidClass","labelFloatedClass","hasLeadingClass","hasTrailingClass","rootClass","currentLength","counterId","jsxs","jsx"],"mappings":"iPAsCMA,EAAYC,EAAAA,WAChB,SACE,CACE,UAAAC,EAAY,GACZ,KAAAC,EAAO,SACP,MAAAC,EACA,YAAAC,EACA,aAAAC,EACA,QAAAC,EAAU,GACV,UAAAC,EACA,mB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CAAAO,EAAc,MAAI1C,CAAA,CAAA,CAAA,CACrB,EAEJ,CAEJ,CACF"}
1
+ {"version":3,"file":"TextInput.cjs","sources":["../../../src/components/text-input/TextInput.tsx"],"sourcesContent":["import type {\n InputHTMLAttributes,\n ReactNode,\n ChangeEvent,\n RefCallback,\n} from 'react';\nimport { forwardRef, useId, useState, useCallback, useRef } from 'react';\nimport { toKebab } from '@/utils/string';\nimport styles from './TextInput.module.scss';\n\nexport type TextInputSize = 'small' | 'medium' | 'large';\n\nexport interface TextInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'size'\n> {\n /** Optional CSS class name. */\n className?: string;\n /** When true, shows invalid/error styling. */\n invalid?: boolean;\n /** Floating label content. When provided, label floats on focus or when value is non-empty. */\n label?: ReactNode;\n /** Leading icon (e.g. <Icon glyph={<SearchIcon />} size=\"16\" />). */\n leadingIcon?: ReactNode;\n /** Max length for the input; used with showCharacterCount for counter. */\n maxLength?: number;\n /** When true with maxLength, shows \"current / max\" character count below input. */\n showCharacterCount?: boolean;\n /** Size variant. Figma: Small (32px), Medium (40px), Large (48px). Default: Medium. */\n size?: TextInputSize;\n /** Trailing icon. */\n trailingIcon?: ReactNode;\n}\n\n/**\n * Text Inputs let people enter and edit a single line of text — names, emails, search\n * queries, channel titles. They're the workhorse of every form and modal in Mattermost.\n */\nconst TextInput = forwardRef<HTMLInputElement, TextInputProps>(\n function TextInput(\n {\n className = '',\n size = 'medium',\n label,\n leadingIcon,\n trailingIcon,\n invalid = false,\n maxLength,\n showCharacterCount = false,\n id: idProp,\n value: valueProp,\n defaultValue,\n placeholder,\n onFocus,\n onBlur,\n onChange,\n disabled,\n readOnly,\n 'aria-describedby': describedBy,\n ...rest\n },\n ref,\n ) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const setInputRef = useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node;\n if (typeof ref === 'function') {\n const cleanup = (ref as RefCallback<HTMLInputElement>)(node);\n return () => {\n inputRef.current = null;\n if (typeof cleanup === 'function') cleanup();\n };\n }\n if (ref) ref.current = node;\n },\n [ref],\n );\n\n const isControlled = valueProp !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n defaultValue ?? '',\n );\n const value = isControlled ? (valueProp as string) : uncontrolledValue;\n const hasValue = value != null && value !== '';\n\n const [isFocused, setIsFocused] = useState(false);\n const labelFloated = isFocused || hasValue;\n\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n if (!isControlled) setUncontrolledValue(e.target.value);\n onChange?.(e);\n },\n [isControlled, onChange],\n );\n\n const sizeClass = styles[`text-input--size-${toKebab(size)}`];\n const invalidClass = invalid ? styles['text-input--invalid'] : '';\n const labelFloatedClass =\n label != null && labelFloated ? styles['text-input--label-floated'] : '';\n const hasLeadingClass =\n leadingIcon != null ? styles['text-input--has-leading-icon'] : '';\n const hasTrailingClass =\n trailingIcon != null ? styles['text-input--has-trailing-icon'] : '';\n\n const rootClass = [\n styles['text-input'],\n sizeClass,\n invalidClass,\n labelFloatedClass,\n hasLeadingClass,\n hasTrailingClass,\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const currentLength = typeof value === 'string' ? value.length : 0;\n const counterId =\n showCharacterCount && maxLength != null ? `${id}-counter` : undefined;\n\n return (\n <div className={rootClass}>\n <div className={styles['text-input__wrapper']}>\n <label className={styles['text-input__inner']}>\n {label != null && (\n <span className={styles['text-input__label']}>{label}</span>\n )}\n {leadingIcon != null && (\n <span className={styles['text-input__leading-icon']}>\n {leadingIcon}\n </span>\n )}\n <input\n ref={setInputRef}\n id={id}\n className={styles['text-input__input']}\n value={isControlled ? valueProp : undefined}\n defaultValue={isControlled ? undefined : defaultValue}\n placeholder={placeholder}\n maxLength={maxLength}\n disabled={disabled}\n readOnly={readOnly}\n aria-invalid={invalid ? true : undefined}\n aria-describedby={\n [describedBy, counterId].filter(Boolean).join(' ') || undefined\n }\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChange={handleChange}\n {...rest}\n />\n {trailingIcon != null && (\n <span className={styles['text-input__trailing-icon']}>\n {trailingIcon}\n </span>\n )}\n </label>\n </div>\n {showCharacterCount && maxLength != null && (\n <div\n id={counterId}\n className={styles['text-input__counter']}\n aria-live=\"polite\"\n >\n {currentLength} / {maxLength}\n </div>\n )}\n </div>\n );\n },\n);\n\nexport default TextInput;\n"],"names":["TextInput","forwardRef","className","size","label","leadingIcon","trailingIcon","invalid","maxLength","showCharacterCount","idProp","valueProp","defaultValue","placeholder","onFocus","onBlur","onChange","disabled","readOnly","describedBy","rest","ref","generatedId","useId","id","inputRef","useRef","setInputRef","useCallback","node","cleanup","isControlled","uncontrolledValue","setUncontrolledValue","useState","value","hasValue","isFocused","setIsFocused","labelFloated","handleFocus","handleBlur","handleChange","sizeClass","styles","toKebab","invalidClass","labelFloatedClass","hasLeadingClass","hasTrailingClass","rootClass","currentLength","counterId","jsxs","jsx"],"mappings":"iPAsCMA,EAAYC,EAAAA,WAChB,SACE,CACE,UAAAC,EAAY,GACZ,KAAAC,EAAO,SACP,MAAAC,EACA,YAAAC,EACA,aAAAC,EACA,QAAAC,EAAU,GACV,UAAAC,EACA,mBAAAC,EAAqB,GACrB,GAAIC,EACJ,MAAOC,EACP,aAAAC,EACA,YAAAC,EACA,QAAAC,EACA,OAAAC,EACA,SAAAC,EACA,SAAAC,EACA,SAAAC,EACA,mBAAoBC,EACpB,GAAGC,CAAA,EAELC,EACA,CACA,MAAMC,EAAcC,EAAAA,MAAA,EACdC,EAAKd,GAAUY,EACfG,EAAWC,EAAAA,OAAgC,IAAI,EAE/CC,EAAcC,EAAAA,YACjBC,GAAkC,CAEj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],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,SAAS,EAGV,MAAM,OAAO,CAAC;AAKf,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzD,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,CACP;IACC,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+FAA+F;IAC/F,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,uFAAuF;IACvF,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,qBAAqB;IACrB,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B;AAED;;;GAGG;AACH,QAAA,MAAM,SAAS,6GAoJd,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/components/text-input/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,SAAS,EAGV,MAAM,OAAO,CAAC;AAKf,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzD,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,CACP;IACC,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+FAA+F;IAC/F,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,uFAAuF;IACvF,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,qBAAqB;IACrB,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B;AAED;;;GAGG;AACH,QAAA,MAAM,SAAS,6GAuJd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,101 +1,102 @@
1
- import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as Y, useId as Z, useRef as L, useCallback as r, useState as j } from "react";
3
- import { toKebab as B } from "../../utils/string.js";
1
+ import { jsxs as x, jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as Z, useId as B, useRef as L, useCallback as r, useState as C } from "react";
3
+ import { toKebab as P } from "../../utils/string.js";
4
4
  import t from "./TextInput.module.scss.js";
5
- const nt = Y(
5
+ const it = Z(
6
6
  function({
7
- className: C = "",
7
+ className: I = "",
8
8
  size: T = "medium",
9
9
  label: d,
10
10
  leadingIcon: p,
11
11
  trailingIcon: f,
12
- invalid: x = !1,
13
- maxLength: a,
12
+ invalid: v = !1,
13
+ maxLength: i,
14
14
  showCharacterCount: _ = !1,
15
15
  id: V,
16
- value: I,
17
- defaultValue: v,
16
+ value: m,
17
+ defaultValue: b,
18
18
  placeholder: z,
19
- onFocus: i,
20
- onBlur: u,
21
- onChange: c,
19
+ onFocus: a,
20
+ onBlur: c,
21
+ onChange: u,
22
22
  disabled: $,
23
23
  readOnly: g,
24
- ...k
25
- }, s) {
26
- const w = Z(), h = V ?? w, b = L(null), F = r(
24
+ "aria-describedby": k,
25
+ ...w
26
+ }, l) {
27
+ const F = B(), h = V ?? F, N = L(null), K = r(
27
28
  (e) => {
28
- if (b.current = e, typeof s == "function") {
29
- const R = s(e);
29
+ if (N.current = e, typeof l == "function") {
30
+ const R = l(e);
30
31
  return () => {
31
- b.current = null, typeof R == "function" && R();
32
+ N.current = null, typeof R == "function" && R();
32
33
  };
33
34
  }
34
- s && (s.current = e);
35
+ l && (l.current = e);
35
36
  },
36
- [s]
37
- ), l = I !== void 0, [K, S] = j(
38
- v ?? ""
39
- ), o = l ? I : K, U = o != null && o !== "", [q, N] = j(!1), A = q || U, D = r(
37
+ [l]
38
+ ), s = m !== void 0, [S, U] = C(
39
+ b ?? ""
40
+ ), o = s ? m : S, q = o != null && o !== "", [A, y] = C(!1), D = A || q, E = r(
40
41
  (e) => {
41
- N(!0), i == null || i(e);
42
+ y(!0), a == null || a(e);
42
43
  },
43
- [i]
44
- ), E = r(
44
+ [a]
45
+ ), G = r(
45
46
  (e) => {
46
- N(!1), u == null || u(e);
47
+ y(!1), c == null || c(e);
47
48
  },
48
- [u]
49
- ), G = r(
49
+ [c]
50
+ ), H = r(
50
51
  (e) => {
51
- l || S(e.target.value), c == null || c(e);
52
+ s || U(e.target.value), u == null || u(e);
52
53
  },
53
- [l, c]
54
- ), H = t[`textInput--size-${B(T)}`], J = x ? t["textInput--invalid"] : "", M = d != null && A ? t["textInput--label-floated"] : "", O = p != null ? t["textInput--has-leading-icon"] : "", Q = f != null ? t["textInput--has-trailing-icon"] : "", W = [
55
- t.textInput,
56
- H,
54
+ [s, u]
55
+ ), J = t[`text-input--size-${P(T)}`], M = v ? t["text-input--invalid"] : "", O = d != null && D ? t["text-input--label-floated"] : "", Q = p != null ? t["text-input--has-leading-icon"] : "", W = f != null ? t["text-input--has-trailing-icon"] : "", X = [
56
+ t["text-input"],
57
57
  J,
58
58
  M,
59
59
  O,
60
60
  Q,
61
- C
62
- ].filter(Boolean).join(" "), X = typeof o == "string" ? o.length : 0, y = _ && a != null ? `${h}-counter` : void 0;
63
- return /* @__PURE__ */ m("div", { className: W, children: [
64
- /* @__PURE__ */ n("div", { className: t.textInput__wrapper, children: /* @__PURE__ */ m("label", { className: t.textInput__inner, children: [
65
- d != null && /* @__PURE__ */ n("span", { className: t.textInput__label, children: d }),
66
- p != null && /* @__PURE__ */ n("span", { className: t.textInput__leadingIcon, children: p }),
61
+ W,
62
+ I
63
+ ].filter(Boolean).join(" "), Y = typeof o == "string" ? o.length : 0, j = _ && i != null ? `${h}-counter` : void 0;
64
+ return /* @__PURE__ */ x("div", { className: X, children: [
65
+ /* @__PURE__ */ n("div", { className: t["text-input__wrapper"], children: /* @__PURE__ */ x("label", { className: t["text-input__inner"], children: [
66
+ d != null && /* @__PURE__ */ n("span", { className: t["text-input__label"], children: d }),
67
+ p != null && /* @__PURE__ */ n("span", { className: t["text-input__leading-icon"], children: p }),
67
68
  /* @__PURE__ */ n(
68
69
  "input",
69
70
  {
70
- ref: F,
71
+ ref: K,
71
72
  id: h,
72
- className: t.textInput__input,
73
- value: l ? I : void 0,
74
- defaultValue: l ? void 0 : v,
73
+ className: t["text-input__input"],
74
+ value: s ? m : void 0,
75
+ defaultValue: s ? void 0 : b,
75
76
  placeholder: z,
76
- maxLength: a,
77
+ maxLength: i,
77
78
  disabled: $,
78
79
  readOnly: g,
79
- "aria-invalid": x ? !0 : void 0,
80
- "aria-describedby": y,
81
- onFocus: D,
82
- onBlur: E,
83
- onChange: G,
84
- ...k
80
+ "aria-invalid": v ? !0 : void 0,
81
+ "aria-describedby": [k, j].filter(Boolean).join(" ") || void 0,
82
+ onFocus: E,
83
+ onBlur: G,
84
+ onChange: H,
85
+ ...w
85
86
  }
86
87
  ),
87
- f != null && /* @__PURE__ */ n("span", { className: t.textInput__trailingIcon, children: f })
88
+ f != null && /* @__PURE__ */ n("span", { className: t["text-input__trailing-icon"], children: f })
88
89
  ] }) }),
89
- _ && a != null && /* @__PURE__ */ m(
90
+ _ && i != null && /* @__PURE__ */ x(
90
91
  "div",
91
92
  {
92
- id: y,
93
- className: t.textInput__counter,
93
+ id: j,
94
+ className: t["text-input__counter"],
94
95
  "aria-live": "polite",
95
96
  children: [
96
- X,
97
+ Y,
97
98
  " / ",
98
- a
99
+ i
99
100
  ]
100
101
  }
101
102
  )
@@ -103,6 +104,6 @@ const nt = Y(
103
104
  }
104
105
  );
105
106
  export {
106
- nt as default
107
+ it as default
107
108
  };
108
109
  //# sourceMappingURL=TextInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.js","sources":["../../../src/components/text-input/TextInput.tsx"],"sourcesContent":["import type {\n InputHTMLAttributes,\n ReactNode,\n ChangeEvent,\n RefCallback,\n} from 'react';\nimport { forwardRef, useId, useState, useCallback, useRef } from 'react';\nimport { toKebab } from '@/utils/string';\nimport styles from './TextInput.module.scss';\n\nexport type TextInputSize = 'small' | 'medium' | 'large';\n\nexport interface TextInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'size'\n> {\n /** Optional CSS class name. */\n className?: string;\n /** When true, shows invalid/error styling. */\n invalid?: boolean;\n /** Floating label content. When provided, label floats on focus or when value is non-empty. */\n label?: ReactNode;\n /** Leading icon (e.g. <Icon glyph={<SearchIcon />} size=\"16\" />). */\n leadingIcon?: ReactNode;\n /** Max length for the input; used with showCharacterCount for counter. */\n maxLength?: number;\n /** When true with maxLength, shows \"current / max\" character count below input. */\n showCharacterCount?: boolean;\n /** Size variant. Figma: Small (32px), Medium (40px), Large (48px). Default: Medium. */\n size?: TextInputSize;\n /** Trailing icon. */\n trailingIcon?: ReactNode;\n}\n\n/**\n * Text Inputs let people enter and edit a single line of text — names, emails, search\n * queries, channel titles. They're the workhorse of every form and modal in Mattermost.\n */\nconst TextInput = forwardRef<HTMLInputElement, TextInputProps>(\n function TextInput(\n {\n className = '',\n size = 'medium',\n label,\n leadingIcon,\n trailingIcon,\n invalid = false,\n maxLength,\n showCharacterCount = false,\n id: idProp,\n value: valueProp,\n defaultValue,\n placeholder,\n onFocus,\n onBlur,\n onChange,\n disabled,\n readOnly,\n ...rest\n },\n ref,\n ) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const setInputRef = useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node;\n if (typeof ref === 'function') {\n const cleanup = (ref as RefCallback<HTMLInputElement>)(node);\n return () => {\n inputRef.current = null;\n if (typeof cleanup === 'function') cleanup();\n };\n }\n if (ref) ref.current = node;\n },\n [ref],\n );\n\n const isControlled = valueProp !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n defaultValue ?? '',\n );\n const value = isControlled ? (valueProp as string) : uncontrolledValue;\n const hasValue = value != null && value !== '';\n\n const [isFocused, setIsFocused] = useState(false);\n const labelFloated = isFocused || hasValue;\n\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n if (!isControlled) setUncontrolledValue(e.target.value);\n onChange?.(e);\n },\n [isControlled, onChange],\n );\n\n const sizeClass = styles[`textInput--size-${toKebab(size)}`];\n const invalidClass = invalid ? styles['textInput--invalid'] : '';\n const labelFloatedClass =\n label != null && labelFloated ? styles['textInput--label-floated'] : '';\n const hasLeadingClass =\n leadingIcon != null ? styles['textInput--has-leading-icon'] : '';\n const hasTrailingClass =\n trailingIcon != null ? styles['textInput--has-trailing-icon'] : '';\n\n const rootClass = [\n styles.textInput,\n sizeClass,\n invalidClass,\n labelFloatedClass,\n hasLeadingClass,\n hasTrailingClass,\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const currentLength = typeof value === 'string' ? value.length : 0;\n const counterId =\n showCharacterCount && maxLength != null ? `${id}-counter` : undefined;\n\n return (\n <div className={rootClass}>\n <div className={styles.textInput__wrapper}>\n <label className={styles.textInput__inner}>\n {label != null && (\n <span className={styles.textInput__label}>{label}</span>\n )}\n {leadingIcon != null && (\n <span className={styles.textInput__leadingIcon}>\n {leadingIcon}\n </span>\n )}\n <input\n ref={setInputRef}\n id={id}\n className={styles.textInput__input}\n value={isControlled ? valueProp : undefined}\n defaultValue={isControlled ? undefined : defaultValue}\n placeholder={placeholder}\n maxLength={maxLength}\n disabled={disabled}\n readOnly={readOnly}\n aria-invalid={invalid ? true : undefined}\n aria-describedby={counterId}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChange={handleChange}\n {...rest}\n />\n {trailingIcon != null && (\n <span className={styles.textInput__trailingIcon}>\n {trailingIcon}\n </span>\n )}\n </label>\n </div>\n {showCharacterCount && maxLength != null && (\n <div\n id={counterId}\n className={styles.textInput__counter}\n aria-live=\"polite\"\n >\n {currentLength} / {maxLength}\n </div>\n )}\n </div>\n );\n },\n);\n\nexport default TextInput;\n"],"names":["TextInput","forwardRef","className","size","label","leadingIcon","trailingIcon","invalid","maxLength","showCharacterCount","idProp","valueProp","defaultValue","placeholder","onFocus","onBlur","onChange","disabled","readOnly","rest","ref","generatedId","useId","id","inputRef","useRef","setInputRef","useCallback","node","cleanup","isControlled","uncontrolledValue","setUncontrolledValue","useState","value","hasValue","isFocused","setIsFocused","labelFloated","handleFocus","handleBlur","handleChange","sizeClass","styles","toKebab","invalidClass","labelFloatedClass","hasLeadingClass","hasTrailingClass","rootClass","currentLength","counterId","jsxs","jsx"],"mappings":";;;;AAsCA,MAAMA,KAAYC;AAAA,EAChB,SACE;AAAA,IACE,WAAAC,IAAY;AAAA,IACZ,MAAAC,IAAO;AAAA,IACP,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,WAAAC;AAAA,IACA,oBAAAC,IAAqB;AAAA,IACrB,IAAIC;AAAA,IACJ,OAAOC;AAAA,IACP,cAAAC;AAAA,IACA,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,GAELC,GACA;AACA,UAAMC,IAAcC,EAAA,GACdC,IAAK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AA;AAAA,UACC,IAAID;AAAA,UACJ,WAAWR,EAAO;AAAA,UAClB,aAAU;AAAA,UAET,UAAA;AAAA,YAAAO;AAAA,YAAc;AAAA,YAAI1C;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACrB,GAEJ;AAAA,EAEJ;AACF;"}
1
+ {"version":3,"file":"TextInput.js","sources":["../../../src/components/text-input/TextInput.tsx"],"sourcesContent":["import type {\n InputHTMLAttributes,\n ReactNode,\n ChangeEvent,\n RefCallback,\n} from 'react';\nimport { forwardRef, useId, useState, useCallback, useRef } from 'react';\nimport { toKebab } from '@/utils/string';\nimport styles from './TextInput.module.scss';\n\nexport type TextInputSize = 'small' | 'medium' | 'large';\n\nexport interface TextInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'size'\n> {\n /** Optional CSS class name. */\n className?: string;\n /** When true, shows invalid/error styling. */\n invalid?: boolean;\n /** Floating label content. When provided, label floats on focus or when value is non-empty. */\n label?: ReactNode;\n /** Leading icon (e.g. <Icon glyph={<SearchIcon />} size=\"16\" />). */\n leadingIcon?: ReactNode;\n /** Max length for the input; used with showCharacterCount for counter. */\n maxLength?: number;\n /** When true with maxLength, shows \"current / max\" character count below input. */\n showCharacterCount?: boolean;\n /** Size variant. Figma: Small (32px), Medium (40px), Large (48px). Default: Medium. */\n size?: TextInputSize;\n /** Trailing icon. */\n trailingIcon?: ReactNode;\n}\n\n/**\n * Text Inputs let people enter and edit a single line of text — names, emails, search\n * queries, channel titles. They're the workhorse of every form and modal in Mattermost.\n */\nconst TextInput = forwardRef<HTMLInputElement, TextInputProps>(\n function TextInput(\n {\n className = '',\n size = 'medium',\n label,\n leadingIcon,\n trailingIcon,\n invalid = false,\n maxLength,\n showCharacterCount = false,\n id: idProp,\n value: valueProp,\n defaultValue,\n placeholder,\n onFocus,\n onBlur,\n onChange,\n disabled,\n readOnly,\n 'aria-describedby': describedBy,\n ...rest\n },\n ref,\n ) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const setInputRef = useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node;\n if (typeof ref === 'function') {\n const cleanup = (ref as RefCallback<HTMLInputElement>)(node);\n return () => {\n inputRef.current = null;\n if (typeof cleanup === 'function') cleanup();\n };\n }\n if (ref) ref.current = node;\n },\n [ref],\n );\n\n const isControlled = valueProp !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n defaultValue ?? '',\n );\n const value = isControlled ? (valueProp as string) : uncontrolledValue;\n const hasValue = value != null && value !== '';\n\n const [isFocused, setIsFocused] = useState(false);\n const labelFloated = isFocused || hasValue;\n\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n if (!isControlled) setUncontrolledValue(e.target.value);\n onChange?.(e);\n },\n [isControlled, onChange],\n );\n\n const sizeClass = styles[`text-input--size-${toKebab(size)}`];\n const invalidClass = invalid ? styles['text-input--invalid'] : '';\n const labelFloatedClass =\n label != null && labelFloated ? styles['text-input--label-floated'] : '';\n const hasLeadingClass =\n leadingIcon != null ? styles['text-input--has-leading-icon'] : '';\n const hasTrailingClass =\n trailingIcon != null ? styles['text-input--has-trailing-icon'] : '';\n\n const rootClass = [\n styles['text-input'],\n sizeClass,\n invalidClass,\n labelFloatedClass,\n hasLeadingClass,\n hasTrailingClass,\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const currentLength = typeof value === 'string' ? value.length : 0;\n const counterId =\n showCharacterCount && maxLength != null ? `${id}-counter` : undefined;\n\n return (\n <div className={rootClass}>\n <div className={styles['text-input__wrapper']}>\n <label className={styles['text-input__inner']}>\n {label != null && (\n <span className={styles['text-input__label']}>{label}</span>\n )}\n {leadingIcon != null && (\n <span className={styles['text-input__leading-icon']}>\n {leadingIcon}\n </span>\n )}\n <input\n ref={setInputRef}\n id={id}\n className={styles['text-input__input']}\n value={isControlled ? valueProp : undefined}\n defaultValue={isControlled ? undefined : defaultValue}\n placeholder={placeholder}\n maxLength={maxLength}\n disabled={disabled}\n readOnly={readOnly}\n aria-invalid={invalid ? true : undefined}\n aria-describedby={\n [describedBy, counterId].filter(Boolean).join(' ') || undefined\n }\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChange={handleChange}\n {...rest}\n />\n {trailingIcon != null && (\n <span className={styles['text-input__trailing-icon']}>\n {trailingIcon}\n </span>\n )}\n </label>\n </div>\n {showCharacterCount && maxLength != null && (\n <div\n id={counterId}\n className={styles['text-input__counter']}\n aria-live=\"polite\"\n >\n {currentLength} / {maxLength}\n </div>\n )}\n </div>\n );\n },\n);\n\nexport default TextInput;\n"],"names":["TextInput","forwardRef","className","size","label","leadingIcon","trailingIcon","invalid","maxLength","showCharacterCount","idProp","valueProp","defaultValue","placeholder","onFocus","onBlur","onChange","disabled","readOnly","describedBy","rest","ref","generatedId","useId","id","inputRef","useRef","setInputRef","useCallback","node","cleanup","isControlled","uncontrolledValue","setUncontrolledValue","useState","value","hasValue","isFocused","setIsFocused","labelFloated","handleFocus","handleBlur","handleChange","sizeClass","styles","toKebab","invalidClass","labelFloatedClass","hasLeadingClass","hasTrailingClass","rootClass","currentLength","counterId","jsxs","jsx"],"mappings":";;;;AAsCA,MAAMA,KAAYC;AAAA,EAChB,SACE;AAAA,IACE,WAAAC,IAAY;AAAA,IACZ,MAAAC,IAAO;AAAA,IACP,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,WAAAC;AAAA,IACA,oBAAAC,IAAqB;AAAA,IACrB,IAAIC;AAAA,IACJ,OAAOC;AAAA,IACP,cAAAC;AAAA,IACA,aAAAC;AAAA,IACA,SAAAC;AAAA,IAC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