@fluentui/react-tag-picker 9.10.0 → 9.10.2

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 (274) hide show
  1. package/CHANGELOG.md +38 -2
  2. package/dist/index.d.cts +570 -0
  3. package/dist/index.d.ts +12 -4
  4. package/lib/TagPicker.js +1 -1
  5. package/lib/TagPicker.js.map +1 -1
  6. package/lib/TagPickerButton.js +1 -1
  7. package/lib/TagPickerButton.js.map +1 -1
  8. package/lib/TagPickerControl.js +1 -1
  9. package/lib/TagPickerControl.js.map +1 -1
  10. package/lib/TagPickerGroup.js +1 -1
  11. package/lib/TagPickerGroup.js.map +1 -1
  12. package/lib/TagPickerInput.js +1 -1
  13. package/lib/TagPickerInput.js.map +1 -1
  14. package/lib/TagPickerList.js +1 -1
  15. package/lib/TagPickerList.js.map +1 -1
  16. package/lib/TagPickerOption.js +1 -1
  17. package/lib/TagPickerOption.js.map +1 -1
  18. package/lib/TagPickerOptionGroup.js +1 -1
  19. package/lib/TagPickerOptionGroup.js.map +1 -1
  20. package/lib/components/TagPicker/TagPicker.js +4 -4
  21. package/lib/components/TagPicker/TagPicker.js.map +1 -1
  22. package/lib/components/TagPicker/index.js +4 -4
  23. package/lib/components/TagPicker/index.js.map +1 -1
  24. package/lib/components/TagPicker/renderTagPicker.js +6 -6
  25. package/lib/components/TagPicker/renderTagPicker.js.map +1 -1
  26. package/lib/components/TagPicker/useTagPicker.js +6 -6
  27. package/lib/components/TagPicker/useTagPickerContextValues.js +1 -1
  28. package/lib/components/TagPickerButton/TagPickerButton.js +5 -5
  29. package/lib/components/TagPickerButton/TagPickerButton.js.map +1 -1
  30. package/lib/components/TagPickerButton/index.js +4 -4
  31. package/lib/components/TagPickerButton/index.js.map +1 -1
  32. package/lib/components/TagPickerButton/renderTagPickerButton.js +1 -1
  33. package/lib/components/TagPickerButton/renderTagPickerButton.js.map +1 -1
  34. package/lib/components/TagPickerButton/useTagPickerButton.js +10 -4
  35. package/lib/components/TagPickerButton/useTagPickerButton.js.map +1 -1
  36. package/lib/components/TagPickerButton/useTagPickerButtonStyles.styles.js +2 -2
  37. package/lib/components/TagPickerButton/useTagPickerButtonStyles.styles.js.map +1 -1
  38. package/lib/components/TagPickerButton/useTagPickerButtonStyles.styles.raw.js +2 -2
  39. package/lib/components/TagPickerControl/TagPickerControl.js +5 -5
  40. package/lib/components/TagPickerControl/TagPickerControl.js.map +1 -1
  41. package/lib/components/TagPickerControl/index.js +4 -4
  42. package/lib/components/TagPickerControl/index.js.map +1 -1
  43. package/lib/components/TagPickerControl/renderTagPickerControl.js +1 -1
  44. package/lib/components/TagPickerControl/renderTagPickerControl.js.map +1 -1
  45. package/lib/components/TagPickerControl/useTagPickerControl.js +18 -12
  46. package/lib/components/TagPickerControl/useTagPickerControl.js.map +1 -1
  47. package/lib/components/TagPickerControl/useTagPickerControlStyles.styles.js +2 -2
  48. package/lib/components/TagPickerControl/useTagPickerControlStyles.styles.js.map +1 -1
  49. package/lib/components/TagPickerControl/useTagPickerControlStyles.styles.raw.js +2 -2
  50. package/lib/components/TagPickerGroup/TagPickerGroup.js +6 -6
  51. package/lib/components/TagPickerGroup/TagPickerGroup.js.map +1 -1
  52. package/lib/components/TagPickerGroup/TagPickerGroup.types.js +1 -1
  53. package/lib/components/TagPickerGroup/TagPickerGroup.types.js.map +1 -1
  54. package/lib/components/TagPickerGroup/index.js +4 -4
  55. package/lib/components/TagPickerGroup/index.js.map +1 -1
  56. package/lib/components/TagPickerGroup/renderTagPickerGroup.js +1 -1
  57. package/lib/components/TagPickerGroup/renderTagPickerGroup.js.map +1 -1
  58. package/lib/components/TagPickerGroup/useTagPickerGroup.js +6 -6
  59. package/lib/components/TagPickerGroup/useTagPickerGroup.js.map +1 -1
  60. package/lib/components/TagPickerGroup/useTagPickerGroupStyles.styles.js +4 -4
  61. package/lib/components/TagPickerGroup/useTagPickerGroupStyles.styles.js.map +1 -1
  62. package/lib/components/TagPickerGroup/useTagPickerGroupStyles.styles.raw.js +4 -4
  63. package/lib/components/TagPickerGroup/useTagPickerGroupStyles.styles.raw.js.map +1 -1
  64. package/lib/components/TagPickerInput/TagPickerInput.js +5 -5
  65. package/lib/components/TagPickerInput/TagPickerInput.js.map +1 -1
  66. package/lib/components/TagPickerInput/index.js +4 -4
  67. package/lib/components/TagPickerInput/index.js.map +1 -1
  68. package/lib/components/TagPickerInput/renderTagPickerInput.js +1 -1
  69. package/lib/components/TagPickerInput/renderTagPickerInput.js.map +1 -1
  70. package/lib/components/TagPickerInput/useTagPickerInput.js +17 -11
  71. package/lib/components/TagPickerInput/useTagPickerInput.js.map +1 -1
  72. package/lib/components/TagPickerInput/useTagPickerInputStyles.styles.js +3 -3
  73. package/lib/components/TagPickerInput/useTagPickerInputStyles.styles.js.map +1 -1
  74. package/lib/components/TagPickerInput/useTagPickerInputStyles.styles.raw.js +3 -3
  75. package/lib/components/TagPickerInput/useTagPickerInputStyles.styles.raw.js.map +1 -1
  76. package/lib/components/TagPickerList/TagPickerList.js +5 -5
  77. package/lib/components/TagPickerList/TagPickerList.js.map +1 -1
  78. package/lib/components/TagPickerList/index.js +4 -4
  79. package/lib/components/TagPickerList/index.js.map +1 -1
  80. package/lib/components/TagPickerList/renderTagPickerList.js +1 -1
  81. package/lib/components/TagPickerList/useTagPickerList.js +4 -4
  82. package/lib/components/TagPickerList/useTagPickerList.js.map +1 -1
  83. package/lib/components/TagPickerList/useTagPickerListStyles.styles.js +2 -2
  84. package/lib/components/TagPickerList/useTagPickerListStyles.styles.js.map +1 -1
  85. package/lib/components/TagPickerList/useTagPickerListStyles.styles.raw.js +2 -2
  86. package/lib/components/TagPickerOption/TagPickerOption.js +5 -5
  87. package/lib/components/TagPickerOption/TagPickerOption.js.map +1 -1
  88. package/lib/components/TagPickerOption/index.js +4 -4
  89. package/lib/components/TagPickerOption/index.js.map +1 -1
  90. package/lib/components/TagPickerOption/renderTagPickerOption.js +1 -1
  91. package/lib/components/TagPickerOption/useTagPickerOption.js +2 -2
  92. package/lib/components/TagPickerOption/useTagPickerOptionStyles.styles.js +3 -3
  93. package/lib/components/TagPickerOption/useTagPickerOptionStyles.styles.js.map +1 -1
  94. package/lib/components/TagPickerOption/useTagPickerOptionStyles.styles.raw.js +3 -3
  95. package/lib/components/TagPickerOptionGroup/TagPickerOptionGroup.js +5 -5
  96. package/lib/components/TagPickerOptionGroup/TagPickerOptionGroup.js.map +1 -1
  97. package/lib/components/TagPickerOptionGroup/index.js +4 -4
  98. package/lib/components/TagPickerOptionGroup/index.js.map +1 -1
  99. package/lib/components/TagPickerOptionGroup/renderTagPickerOptionGroup.js +1 -1
  100. package/lib/components/TagPickerOptionGroup/useTagPickerOptionGroup.js +1 -1
  101. package/lib/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.js +2 -2
  102. package/lib/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.js.map +1 -1
  103. package/lib/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.raw.js +2 -2
  104. package/lib/contexts/TagPickerContext.js +2 -2
  105. package/lib/index.js +10 -10
  106. package/lib/index.js.map +1 -1
  107. package/lib/utils/useExpandLabel.js +3 -3
  108. package/lib/utils/useExpandLabel.js.map +1 -1
  109. package/lib/utils/useResizeObserverRef.js +2 -2
  110. package/lib/utils/useTabsterEscapeIgnore.js +15 -0
  111. package/lib/utils/useTabsterEscapeIgnore.js.map +1 -0
  112. package/lib/utils/useTagPickerFilter.js +2 -2
  113. package/lib/utils/useTagPickerFilter.js.map +1 -1
  114. package/lib-commonjs/{TagPicker.js → TagPicker.cjs} +1 -1
  115. package/lib-commonjs/{TagPicker.js.map → TagPicker.cjs.map} +1 -1
  116. package/lib-commonjs/{TagPickerButton.js → TagPickerButton.cjs} +1 -1
  117. package/lib-commonjs/{TagPickerButton.js.map → TagPickerButton.cjs.map} +1 -1
  118. package/lib-commonjs/{TagPickerControl.js → TagPickerControl.cjs} +1 -1
  119. package/lib-commonjs/{TagPickerControl.js.map → TagPickerControl.cjs.map} +1 -1
  120. package/lib-commonjs/{TagPickerGroup.js → TagPickerGroup.cjs} +1 -1
  121. package/lib-commonjs/TagPickerGroup.cjs.map +1 -0
  122. package/lib-commonjs/{TagPickerInput.js → TagPickerInput.cjs} +1 -1
  123. package/lib-commonjs/{TagPickerInput.js.map → TagPickerInput.cjs.map} +1 -1
  124. package/lib-commonjs/{TagPickerList.js → TagPickerList.cjs} +1 -1
  125. package/lib-commonjs/{TagPickerList.js.map → TagPickerList.cjs.map} +1 -1
  126. package/lib-commonjs/{TagPickerOption.js → TagPickerOption.cjs} +1 -1
  127. package/lib-commonjs/{TagPickerOption.js.map → TagPickerOption.cjs.map} +1 -1
  128. package/lib-commonjs/{TagPickerOptionGroup.js → TagPickerOptionGroup.cjs} +1 -1
  129. package/lib-commonjs/{TagPickerOptionGroup.js.map → TagPickerOptionGroup.cjs.map} +1 -1
  130. package/lib-commonjs/components/TagPicker/{TagPicker.js → TagPicker.cjs} +3 -3
  131. package/lib-commonjs/components/TagPicker/{TagPicker.js.map → TagPicker.cjs.map} +1 -1
  132. package/lib-commonjs/components/TagPicker/{index.js → index.cjs} +4 -4
  133. package/lib-commonjs/components/TagPicker/{index.js.map → index.cjs.map} +1 -1
  134. package/lib-commonjs/components/TagPicker/{renderTagPicker.js → renderTagPicker.cjs} +1 -1
  135. package/lib-commonjs/components/TagPicker/{renderTagPicker.js.map → renderTagPicker.cjs.map} +1 -1
  136. package/lib-commonjs/components/TagPickerButton/{TagPickerButton.js → TagPickerButton.cjs} +3 -3
  137. package/lib-commonjs/components/TagPickerButton/{TagPickerButton.js.map → TagPickerButton.cjs.map} +1 -1
  138. package/lib-commonjs/components/TagPickerButton/{index.js → index.cjs} +4 -4
  139. package/lib-commonjs/components/TagPickerButton/{index.js.map → index.cjs.map} +1 -1
  140. package/lib-commonjs/components/TagPickerButton/renderTagPickerButton.cjs.map +1 -0
  141. package/lib-commonjs/components/TagPickerButton/{useTagPickerButton.js → useTagPickerButton.cjs} +8 -2
  142. package/lib-commonjs/components/TagPickerButton/useTagPickerButton.cjs.map +1 -0
  143. package/lib-commonjs/components/TagPickerButton/useTagPickerButtonStyles.styles.cjs.map +1 -0
  144. package/lib-commonjs/components/TagPickerControl/{TagPickerControl.js → TagPickerControl.cjs} +3 -3
  145. package/lib-commonjs/components/TagPickerControl/{TagPickerControl.js.map → TagPickerControl.cjs.map} +1 -1
  146. package/lib-commonjs/components/TagPickerControl/{index.js → index.cjs} +4 -4
  147. package/lib-commonjs/components/TagPickerControl/{index.js.map → index.cjs.map} +1 -1
  148. package/lib-commonjs/components/TagPickerControl/renderTagPickerControl.cjs.map +1 -0
  149. package/lib-commonjs/components/TagPickerControl/{useTagPickerControl.js → useTagPickerControl.cjs} +14 -8
  150. package/lib-commonjs/components/TagPickerControl/useTagPickerControl.cjs.map +1 -0
  151. package/lib-commonjs/components/TagPickerControl/useTagPickerControlStyles.styles.cjs.map +1 -0
  152. package/lib-commonjs/components/TagPickerGroup/{TagPickerGroup.js → TagPickerGroup.cjs} +3 -3
  153. package/lib-commonjs/components/TagPickerGroup/{TagPickerGroup.js.map → TagPickerGroup.cjs.map} +1 -1
  154. package/lib-commonjs/components/TagPickerGroup/{TagPickerGroup.types.js → TagPickerGroup.types.cjs} +1 -1
  155. package/lib-commonjs/components/TagPickerGroup/TagPickerGroup.types.cjs.map +1 -0
  156. package/lib-commonjs/components/TagPickerGroup/{index.js → index.cjs} +4 -4
  157. package/lib-commonjs/components/TagPickerGroup/index.cjs.map +1 -0
  158. package/lib-commonjs/components/TagPickerGroup/renderTagPickerGroup.cjs.map +1 -0
  159. package/lib-commonjs/components/TagPickerGroup/{useTagPickerGroup.js → useTagPickerGroup.cjs} +2 -2
  160. package/lib-commonjs/components/TagPickerGroup/{useTagPickerGroup.js.map → useTagPickerGroup.cjs.map} +1 -1
  161. package/lib-commonjs/components/TagPickerGroup/{useTagPickerGroupStyles.styles.js → useTagPickerGroupStyles.styles.cjs} +1 -1
  162. package/lib-commonjs/components/TagPickerGroup/useTagPickerGroupStyles.styles.cjs.map +1 -0
  163. package/lib-commonjs/components/TagPickerGroup/{useTagPickerGroupStyles.styles.raw.js → useTagPickerGroupStyles.styles.raw.cjs} +1 -1
  164. package/lib-commonjs/components/TagPickerGroup/{useTagPickerGroupStyles.styles.raw.js.map → useTagPickerGroupStyles.styles.raw.cjs.map} +1 -1
  165. package/lib-commonjs/components/TagPickerInput/{TagPickerInput.js → TagPickerInput.cjs} +3 -3
  166. package/lib-commonjs/components/TagPickerInput/{TagPickerInput.js.map → TagPickerInput.cjs.map} +1 -1
  167. package/lib-commonjs/components/TagPickerInput/{index.js → index.cjs} +4 -4
  168. package/lib-commonjs/components/TagPickerInput/{index.js.map → index.cjs.map} +1 -1
  169. package/lib-commonjs/components/TagPickerInput/renderTagPickerInput.cjs.map +1 -0
  170. package/lib-commonjs/components/TagPickerInput/{useTagPickerInput.js → useTagPickerInput.cjs} +9 -3
  171. package/lib-commonjs/components/TagPickerInput/useTagPickerInput.cjs.map +1 -0
  172. package/lib-commonjs/components/TagPickerInput/useTagPickerInputStyles.styles.cjs.map +1 -0
  173. package/lib-commonjs/components/TagPickerInput/{useTagPickerInputStyles.styles.raw.js → useTagPickerInputStyles.styles.raw.cjs} +1 -1
  174. package/lib-commonjs/components/TagPickerInput/{useTagPickerInputStyles.styles.raw.js.map → useTagPickerInputStyles.styles.raw.cjs.map} +1 -1
  175. package/lib-commonjs/components/TagPickerList/{TagPickerList.js → TagPickerList.cjs} +3 -3
  176. package/lib-commonjs/components/TagPickerList/{TagPickerList.js.map → TagPickerList.cjs.map} +1 -1
  177. package/lib-commonjs/components/TagPickerList/{index.js → index.cjs} +4 -4
  178. package/lib-commonjs/components/TagPickerList/{index.js.map → index.cjs.map} +1 -1
  179. package/lib-commonjs/components/TagPickerList/{useTagPickerList.js → useTagPickerList.cjs} +1 -1
  180. package/lib-commonjs/components/TagPickerList/{useTagPickerList.js.map → useTagPickerList.cjs.map} +1 -1
  181. package/lib-commonjs/components/TagPickerList/useTagPickerListStyles.styles.cjs.map +1 -0
  182. package/lib-commonjs/components/TagPickerOption/{TagPickerOption.js → TagPickerOption.cjs} +3 -3
  183. package/lib-commonjs/components/TagPickerOption/{TagPickerOption.js.map → TagPickerOption.cjs.map} +1 -1
  184. package/lib-commonjs/components/TagPickerOption/{index.js → index.cjs} +4 -4
  185. package/lib-commonjs/components/TagPickerOption/{index.js.map → index.cjs.map} +1 -1
  186. package/lib-commonjs/components/TagPickerOption/useTagPickerOptionStyles.styles.cjs.map +1 -0
  187. package/lib-commonjs/components/TagPickerOptionGroup/{TagPickerOptionGroup.js → TagPickerOptionGroup.cjs} +3 -3
  188. package/lib-commonjs/components/TagPickerOptionGroup/{TagPickerOptionGroup.js.map → TagPickerOptionGroup.cjs.map} +1 -1
  189. package/lib-commonjs/components/TagPickerOptionGroup/{index.js → index.cjs} +4 -4
  190. package/lib-commonjs/components/TagPickerOptionGroup/{index.js.map → index.cjs.map} +1 -1
  191. package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.cjs.map +1 -0
  192. package/lib-commonjs/{index.js → index.cjs} +10 -10
  193. package/lib-commonjs/index.cjs.map +1 -0
  194. package/lib-commonjs/utils/{useExpandLabel.js → useExpandLabel.cjs} +1 -1
  195. package/lib-commonjs/utils/{useExpandLabel.js.map → useExpandLabel.cjs.map} +1 -1
  196. package/lib-commonjs/utils/useTabsterEscapeIgnore.cjs +22 -0
  197. package/lib-commonjs/utils/useTabsterEscapeIgnore.cjs.map +1 -0
  198. package/lib-commonjs/utils/{useTagPickerFilter.js → useTagPickerFilter.cjs} +1 -1
  199. package/lib-commonjs/utils/{useTagPickerFilter.js.map → useTagPickerFilter.cjs.map} +1 -1
  200. package/package.json +26 -20
  201. package/lib-commonjs/TagPickerGroup.js.map +0 -1
  202. package/lib-commonjs/components/TagPickerButton/renderTagPickerButton.js.map +0 -1
  203. package/lib-commonjs/components/TagPickerButton/useTagPickerButton.js.map +0 -1
  204. package/lib-commonjs/components/TagPickerButton/useTagPickerButtonStyles.styles.js.map +0 -1
  205. package/lib-commonjs/components/TagPickerControl/renderTagPickerControl.js.map +0 -1
  206. package/lib-commonjs/components/TagPickerControl/useTagPickerControl.js.map +0 -1
  207. package/lib-commonjs/components/TagPickerControl/useTagPickerControlStyles.styles.js.map +0 -1
  208. package/lib-commonjs/components/TagPickerGroup/TagPickerGroup.types.js.map +0 -1
  209. package/lib-commonjs/components/TagPickerGroup/index.js.map +0 -1
  210. package/lib-commonjs/components/TagPickerGroup/renderTagPickerGroup.js.map +0 -1
  211. package/lib-commonjs/components/TagPickerGroup/useTagPickerGroupStyles.styles.js.map +0 -1
  212. package/lib-commonjs/components/TagPickerInput/renderTagPickerInput.js.map +0 -1
  213. package/lib-commonjs/components/TagPickerInput/useTagPickerInput.js.map +0 -1
  214. package/lib-commonjs/components/TagPickerInput/useTagPickerInputStyles.styles.js.map +0 -1
  215. package/lib-commonjs/components/TagPickerList/useTagPickerListStyles.styles.js.map +0 -1
  216. package/lib-commonjs/components/TagPickerOption/useTagPickerOptionStyles.styles.js.map +0 -1
  217. package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.js.map +0 -1
  218. package/lib-commonjs/index.js.map +0 -1
  219. /package/lib-commonjs/components/TagPicker/{TagPicker.types.js → TagPicker.types.cjs} +0 -0
  220. /package/lib-commonjs/components/TagPicker/{TagPicker.types.js.map → TagPicker.types.cjs.map} +0 -0
  221. /package/lib-commonjs/components/TagPicker/{useTagPicker.js → useTagPicker.cjs} +0 -0
  222. /package/lib-commonjs/components/TagPicker/{useTagPicker.js.map → useTagPicker.cjs.map} +0 -0
  223. /package/lib-commonjs/components/TagPicker/{useTagPickerContextValues.js → useTagPickerContextValues.cjs} +0 -0
  224. /package/lib-commonjs/components/TagPicker/{useTagPickerContextValues.js.map → useTagPickerContextValues.cjs.map} +0 -0
  225. /package/lib-commonjs/components/TagPickerButton/{TagPickerButton.types.js → TagPickerButton.types.cjs} +0 -0
  226. /package/lib-commonjs/components/TagPickerButton/{TagPickerButton.types.js.map → TagPickerButton.types.cjs.map} +0 -0
  227. /package/lib-commonjs/components/TagPickerButton/{renderTagPickerButton.js → renderTagPickerButton.cjs} +0 -0
  228. /package/lib-commonjs/components/TagPickerButton/{useTagPickerButtonStyles.styles.js → useTagPickerButtonStyles.styles.cjs} +0 -0
  229. /package/lib-commonjs/components/TagPickerButton/{useTagPickerButtonStyles.styles.raw.js → useTagPickerButtonStyles.styles.raw.cjs} +0 -0
  230. /package/lib-commonjs/components/TagPickerButton/{useTagPickerButtonStyles.styles.raw.js.map → useTagPickerButtonStyles.styles.raw.cjs.map} +0 -0
  231. /package/lib-commonjs/components/TagPickerControl/{TagPickerControl.types.js → TagPickerControl.types.cjs} +0 -0
  232. /package/lib-commonjs/components/TagPickerControl/{TagPickerControl.types.js.map → TagPickerControl.types.cjs.map} +0 -0
  233. /package/lib-commonjs/components/TagPickerControl/{renderTagPickerControl.js → renderTagPickerControl.cjs} +0 -0
  234. /package/lib-commonjs/components/TagPickerControl/{useTagPickerControlStyles.styles.js → useTagPickerControlStyles.styles.cjs} +0 -0
  235. /package/lib-commonjs/components/TagPickerControl/{useTagPickerControlStyles.styles.raw.js → useTagPickerControlStyles.styles.raw.cjs} +0 -0
  236. /package/lib-commonjs/components/TagPickerControl/{useTagPickerControlStyles.styles.raw.js.map → useTagPickerControlStyles.styles.raw.cjs.map} +0 -0
  237. /package/lib-commonjs/components/TagPickerGroup/{renderTagPickerGroup.js → renderTagPickerGroup.cjs} +0 -0
  238. /package/lib-commonjs/components/TagPickerInput/{TagPickerInput.types.js → TagPickerInput.types.cjs} +0 -0
  239. /package/lib-commonjs/components/TagPickerInput/{TagPickerInput.types.js.map → TagPickerInput.types.cjs.map} +0 -0
  240. /package/lib-commonjs/components/TagPickerInput/{renderTagPickerInput.js → renderTagPickerInput.cjs} +0 -0
  241. /package/lib-commonjs/components/TagPickerInput/{useTagPickerInputStyles.styles.js → useTagPickerInputStyles.styles.cjs} +0 -0
  242. /package/lib-commonjs/components/TagPickerList/{TagPickerList.types.js → TagPickerList.types.cjs} +0 -0
  243. /package/lib-commonjs/components/TagPickerList/{TagPickerList.types.js.map → TagPickerList.types.cjs.map} +0 -0
  244. /package/lib-commonjs/components/TagPickerList/{renderTagPickerList.js → renderTagPickerList.cjs} +0 -0
  245. /package/lib-commonjs/components/TagPickerList/{renderTagPickerList.js.map → renderTagPickerList.cjs.map} +0 -0
  246. /package/lib-commonjs/components/TagPickerList/{useTagPickerListStyles.styles.js → useTagPickerListStyles.styles.cjs} +0 -0
  247. /package/lib-commonjs/components/TagPickerList/{useTagPickerListStyles.styles.raw.js → useTagPickerListStyles.styles.raw.cjs} +0 -0
  248. /package/lib-commonjs/components/TagPickerList/{useTagPickerListStyles.styles.raw.js.map → useTagPickerListStyles.styles.raw.cjs.map} +0 -0
  249. /package/lib-commonjs/components/TagPickerOption/{TagPickerOption.types.js → TagPickerOption.types.cjs} +0 -0
  250. /package/lib-commonjs/components/TagPickerOption/{TagPickerOption.types.js.map → TagPickerOption.types.cjs.map} +0 -0
  251. /package/lib-commonjs/components/TagPickerOption/{renderTagPickerOption.js → renderTagPickerOption.cjs} +0 -0
  252. /package/lib-commonjs/components/TagPickerOption/{renderTagPickerOption.js.map → renderTagPickerOption.cjs.map} +0 -0
  253. /package/lib-commonjs/components/TagPickerOption/{useTagPickerOption.js → useTagPickerOption.cjs} +0 -0
  254. /package/lib-commonjs/components/TagPickerOption/{useTagPickerOption.js.map → useTagPickerOption.cjs.map} +0 -0
  255. /package/lib-commonjs/components/TagPickerOption/{useTagPickerOptionStyles.styles.js → useTagPickerOptionStyles.styles.cjs} +0 -0
  256. /package/lib-commonjs/components/TagPickerOption/{useTagPickerOptionStyles.styles.raw.js → useTagPickerOptionStyles.styles.raw.cjs} +0 -0
  257. /package/lib-commonjs/components/TagPickerOption/{useTagPickerOptionStyles.styles.raw.js.map → useTagPickerOptionStyles.styles.raw.cjs.map} +0 -0
  258. /package/lib-commonjs/components/TagPickerOptionGroup/{TagPickerOptionGroup.types.js → TagPickerOptionGroup.types.cjs} +0 -0
  259. /package/lib-commonjs/components/TagPickerOptionGroup/{TagPickerOptionGroup.types.js.map → TagPickerOptionGroup.types.cjs.map} +0 -0
  260. /package/lib-commonjs/components/TagPickerOptionGroup/{renderTagPickerOptionGroup.js → renderTagPickerOptionGroup.cjs} +0 -0
  261. /package/lib-commonjs/components/TagPickerOptionGroup/{renderTagPickerOptionGroup.js.map → renderTagPickerOptionGroup.cjs.map} +0 -0
  262. /package/lib-commonjs/components/TagPickerOptionGroup/{useTagPickerOptionGroup.js → useTagPickerOptionGroup.cjs} +0 -0
  263. /package/lib-commonjs/components/TagPickerOptionGroup/{useTagPickerOptionGroup.js.map → useTagPickerOptionGroup.cjs.map} +0 -0
  264. /package/lib-commonjs/components/TagPickerOptionGroup/{useTagPickerOptionGroupStyles.styles.js → useTagPickerOptionGroupStyles.styles.cjs} +0 -0
  265. /package/lib-commonjs/components/TagPickerOptionGroup/{useTagPickerOptionGroupStyles.styles.raw.js → useTagPickerOptionGroupStyles.styles.raw.cjs} +0 -0
  266. /package/lib-commonjs/components/TagPickerOptionGroup/{useTagPickerOptionGroupStyles.styles.raw.js.map → useTagPickerOptionGroupStyles.styles.raw.cjs.map} +0 -0
  267. /package/lib-commonjs/contexts/{TagPickerContext.js → TagPickerContext.cjs} +0 -0
  268. /package/lib-commonjs/contexts/{TagPickerContext.js.map → TagPickerContext.cjs.map} +0 -0
  269. /package/lib-commonjs/utils/{tagPicker2Tag.js → tagPicker2Tag.cjs} +0 -0
  270. /package/lib-commonjs/utils/{tagPicker2Tag.js.map → tagPicker2Tag.cjs.map} +0 -0
  271. /package/lib-commonjs/utils/{tokens.js → tokens.cjs} +0 -0
  272. /package/lib-commonjs/utils/{tokens.js.map → tokens.cjs.map} +0 -0
  273. /package/lib-commonjs/utils/{useResizeObserverRef.js → useResizeObserverRef.cjs} +0 -0
  274. /package/lib-commonjs/utils/{useResizeObserverRef.js.map → useResizeObserverRef.cjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,12 +1,48 @@
1
1
  # Change Log - @fluentui/react-tag-picker
2
2
 
3
- This log was last generated on Wed, 15 Jul 2026 14:10:09 GMT and should not be manually modified.
3
+ <!-- This log was last generated on Tue, 11 Aug 2026 17:16:02 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.10.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-tag-picker_v9.10.2)
8
+
9
+ Tue, 11 Aug 2026 17:16:02 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tag-picker_v9.10.1..@fluentui/react-tag-picker_v9.10.2)
11
+
12
+ ### Patches
13
+
14
+ - fix: avoid headless bundle size regression from #36275 ([PR #36497](https://github.com/microsoft/fluentui/pull/36497) by dmytrokirpa@microsoft.com)
15
+ - fix: omit the default TagPicker expand icon from headless state ([PR #36503](https://github.com/microsoft/fluentui/pull/36503) by vgenaev@gmail.com)
16
+ - Ship ESM-first (type:module): valid ESM under lib/, CommonJS under lib-commonjs/*.cjs, and drop the `node` export condition - bare-Node `import` resolves ESM, `require` resolves CJS; node-targeted bundlers tree-shake. ([PR #36327](https://github.com/microsoft/fluentui/pull/36327) by martinhochel@microsoft.com)
17
+ - Bump @fluentui/keyboard-keys to v9.0.9 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
+ - Bump @fluentui/react-aria to v9.17.14 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
+ - Bump @fluentui/react-combobox to v9.17.5 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
20
+ - Bump @fluentui/react-context-selector to v9.2.19 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
21
+ - Bump @fluentui/react-field to v9.5.4 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
22
+ - Bump @fluentui/react-jsx-runtime to v9.4.5 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
23
+ - Bump @fluentui/react-portal to v9.8.15 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
24
+ - Bump @fluentui/react-positioning to v9.23.1 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
25
+ - Bump @fluentui/react-shared-contexts to v9.26.3 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
26
+ - Bump @fluentui/react-tabster to v9.26.17 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
27
+ - Bump @fluentui/react-tags to v9.9.4 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
28
+ - Bump @fluentui/react-theme to v9.2.2 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
29
+ - Bump @fluentui/react-utilities to v9.26.6 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
30
+
31
+ ## [9.10.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tag-picker_v9.10.1)
32
+
33
+ Tue, 04 Aug 2026 10:12:10 GMT
34
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tag-picker_v9.10.0..@fluentui/react-tag-picker_v9.10.1)
35
+
36
+ ### Patches
37
+
38
+ - fix: allow base states in TagPicker render functions ([PR #36443](https://github.com/microsoft/fluentui/pull/36443) by vgenaev@gmail.com)
39
+ - Bump @fluentui/react-combobox to v9.17.4 ([PR #36453](https://github.com/microsoft/fluentui/pull/36453) by beachball)
40
+ - Bump @fluentui/react-positioning to v9.23.0 ([PR #36453](https://github.com/microsoft/fluentui/pull/36453) by beachball)
41
+ - Bump @fluentui/react-tags to v9.9.3 ([PR #36453](https://github.com/microsoft/fluentui/pull/36453) by beachball)
42
+
7
43
  ## [9.10.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-tag-picker_v9.10.0)
8
44
 
9
- Wed, 15 Jul 2026 14:10:09 GMT
45
+ Wed, 15 Jul 2026 14:10:41 GMT
10
46
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tag-picker_v9.9.0..@fluentui/react-tag-picker_v9.10.0)
11
47
 
12
48
  ### Minor changes
@@ -0,0 +1,570 @@
1
+ import type { ActiveDescendantContextValue } from '@fluentui/react-aria';
2
+ import type { ComboboxBaseState } from '@fluentui/react-combobox';
3
+ import type { ComboboxProps } from '@fluentui/react-combobox';
4
+ import type { ComboboxSlots } from '@fluentui/react-combobox';
5
+ import type { ComboboxState } from '@fluentui/react-combobox';
6
+ import type { ComponentProps } from '@fluentui/react-utilities';
7
+ import type { ComponentState } from '@fluentui/react-utilities';
8
+ import type { ContextSelector } from '@fluentui/react-context-selector';
9
+ import type { DistributiveOmit } from '@fluentui/react-utilities';
10
+ import type { DropdownProps } from '@fluentui/react-combobox';
11
+ import type { EventData } from '@fluentui/react-utilities';
12
+ import type { EventHandler } from '@fluentui/react-utilities';
13
+ import type { ExtractSlotProps } from '@fluentui/react-utilities';
14
+ import type { ForwardRefComponent } from '@fluentui/react-utilities';
15
+ import type { JSXElement } from '@fluentui/react-utilities';
16
+ import type { Listbox } from '@fluentui/react-combobox';
17
+ import type { ListboxContextValue } from '@fluentui/react-combobox';
18
+ import type { OptionGroupProps } from '@fluentui/react-combobox';
19
+ import type { OptionGroupSlots } from '@fluentui/react-combobox';
20
+ import type { OptionGroupState } from '@fluentui/react-combobox';
21
+ import type { OptionSlots } from '@fluentui/react-combobox';
22
+ import type { OptionState } from '@fluentui/react-combobox';
23
+ import * as React_2 from 'react';
24
+ import type { Slot } from '@fluentui/react-utilities';
25
+ import type { SlotClassNames } from '@fluentui/react-utilities';
26
+ import type { TagGroupBaseState } from '@fluentui/react-tags';
27
+ import { TagGroupContextValues } from '@fluentui/react-tags';
28
+ import type { TagGroupSlots } from '@fluentui/react-tags';
29
+ import type { TagGroupState } from '@fluentui/react-tags';
30
+
31
+ /**
32
+ * Render the final JSX of Picker
33
+ */
34
+ export declare const renderTagPicker_unstable: (state: TagPickerState, contexts: TagPickerContextValues) => JSXElement;
35
+
36
+ /**
37
+ * Render the final JSX of PickerButton
38
+ */
39
+ export declare const renderTagPickerButton_unstable: (state: TagPickerButtonBaseState) => JSXElement;
40
+
41
+ /**
42
+ * Render the final JSX of PickerControl
43
+ */
44
+ export declare const renderTagPickerControl_unstable: (state: TagPickerControlBaseState) => JSXElement;
45
+
46
+ export declare function renderTagPickerGroup_unstable(state: TagPickerGroupBaseState, contexts: TagGroupContextValues): JSXElement | null;
47
+
48
+ /**
49
+ * Render the final JSX of TagPickerInput
50
+ */
51
+ export declare const renderTagPickerInput_unstable: (state: TagPickerInputBaseState) => JSXElement;
52
+
53
+ /**
54
+ * Render the final JSX of TagPickerList
55
+ */
56
+ export declare const renderTagPickerList_unstable: (state: TagPickerListState) => JSXElement;
57
+
58
+ /**
59
+ * Render the final JSX of TagPickerOption
60
+ */
61
+ export declare const renderTagPickerOption_unstable: (state: TagPickerOptionState) => JSXElement;
62
+
63
+ /**
64
+ * Render the final JSX of TagPickerOptionGroup
65
+ */
66
+ export declare const renderTagPickerOptionGroup: (state: TagPickerOptionGroupState) => JSXElement;
67
+
68
+ /**
69
+ * TagPicker component -
70
+ * A TagPicker is a composite component that allows users to pick tags from a list of options.
71
+ */
72
+ export declare const TagPicker: React_2.FC<TagPickerProps>;
73
+
74
+ /**
75
+ * TagPicker Base Props - omits the presentation-related props that the base hook does not handle:
76
+ * the floating-ui `positioning` prop (the styled {@link TagPickerProps} re-introduces it via
77
+ * `usePositioning`) as well as `size`, `appearance` and `inline` (layered on by the styled
78
+ * {@link useTagPicker_unstable} hook).
79
+ */
80
+ export declare type TagPickerBaseProps = DistributiveOmit<TagPickerProps, 'positioning' | 'size' | 'appearance' | 'inline'>;
81
+
82
+ /**
83
+ * TagPicker Base State - the state produced by the base hook, which does not interact with the
84
+ * `size`, `appearance` and `inline` props. These are layered on by the styled
85
+ * {@link useTagPicker_unstable} hook.
86
+ */
87
+ export declare type TagPickerBaseState = Omit<TagPickerState, 'size' | 'appearance' | 'inline'>;
88
+
89
+ /**
90
+ * TagPickerButton component -
91
+ * A TagPickerButton is an alternative to TagPickerInput that does not include an input field.
92
+ */
93
+ export declare const TagPickerButton: ForwardRefComponent<TagPickerButtonProps>;
94
+
95
+ /**
96
+ * TagPickerButton Base Props - omits design-only props
97
+ */
98
+ export declare type TagPickerButtonBaseProps = DistributiveOmit<TagPickerButtonProps, 'size' | 'appearance'>;
99
+
100
+ /**
101
+ * TagPickerButton Base State - omits design-only state
102
+ */
103
+ export declare type TagPickerButtonBaseState = DistributiveOmit<TagPickerButtonState, 'size'>;
104
+
105
+ export declare const tagPickerButtonClassNames: SlotClassNames<TagPickerButtonSlots>;
106
+
107
+ /**
108
+ * PickerButton Props
109
+ */
110
+ export declare type TagPickerButtonProps = ComponentProps<TagPickerButtonSlots> & Pick<DropdownProps, 'size' | 'appearance'> & {
111
+ disabled?: boolean;
112
+ };
113
+
114
+ export declare type TagPickerButtonSlots = {
115
+ root: Slot<'button'>;
116
+ };
117
+
118
+ /**
119
+ * State used in rendering PickerButton
120
+ */
121
+ export declare type TagPickerButtonState = ComponentState<TagPickerButtonSlots> & Pick<TagPickerContextValue, 'size'> & {
122
+ hasSelectedOption: boolean;
123
+ };
124
+
125
+ export declare const TagPickerContextProvider: React_2.Provider<TagPickerContextValue | undefined> & React_2.FC<React_2.ProviderProps<TagPickerContextValue | undefined>>;
126
+
127
+ export declare interface TagPickerContextValue extends Pick<ComboboxBaseState, 'open' | 'clearSelection' | 'getOptionById' | 'selectedOptions' | 'selectOption' | 'setHasFocus' | 'setOpen' | 'setValue' | 'value' | 'appearance' | 'disabled'> {
128
+ triggerRef: React_2.RefObject<HTMLInputElement | HTMLButtonElement | null>;
129
+ popoverRef: React_2.RefObject<HTMLDivElement | null>;
130
+ popoverId: string;
131
+ targetRef: React_2.RefObject<HTMLDivElement | null>;
132
+ secondaryActionRef: React_2.RefObject<HTMLSpanElement | null>;
133
+ tagPickerGroupRef: React_2.RefObject<HTMLDivElement | null>;
134
+ size: TagPickerSize;
135
+ noPopover?: boolean;
136
+ }
137
+
138
+ export declare type TagPickerContextValues = {
139
+ picker: TagPickerContextValue;
140
+ activeDescendant: ActiveDescendantContextValue;
141
+ listbox: ListboxContextValue;
142
+ };
143
+
144
+ /**
145
+ * TagPickerControl component -
146
+ * A TagPickerControl is a composite component that controls actions and state for a TagPicker.
147
+ */
148
+ export declare const TagPickerControl: ForwardRefComponent<TagPickerControlProps>;
149
+
150
+ /**
151
+ * TagPickerControl Base State - omits design-only state derived from picker context.
152
+ */
153
+ export declare type TagPickerControlBaseState = DistributiveOmit<TagPickerControlState, 'size' | 'appearance'>;
154
+
155
+ export declare const tagPickerControlClassNames: SlotClassNames<TagPickerControlSlots & TagPickerControlInternalSlots>;
156
+
157
+ declare type TagPickerControlCSSProperties = React_2.CSSProperties & {
158
+ '--fui-TagPickerControl-aside-width'?: string | number;
159
+ };
160
+
161
+ export declare type TagPickerControlInternalSlots = {
162
+ aside?: NonNullable<Slot<'span'>>;
163
+ };
164
+
165
+ /**
166
+ * PickerControl Props
167
+ */
168
+ export declare type TagPickerControlProps = ComponentProps<Partial<TagPickerControlSlots>>;
169
+
170
+ export declare type TagPickerControlSlots = {
171
+ root: Slot<ExtractSlotProps<Slot<'div'> & {
172
+ style?: TagPickerControlCSSProperties;
173
+ }>>;
174
+ /**
175
+ * A secondary action should be a button-like element to be rendered right after
176
+ * the trigger responsible for opening/closing the tag picker popover.
177
+ */
178
+ secondaryAction: Slot<'span'>;
179
+ } & Pick<ComboboxSlots, 'expandIcon'>;
180
+
181
+ /**
182
+ * State used in rendering PickerControl
183
+ */
184
+ export declare type TagPickerControlState = ComponentState<TagPickerControlSlots & TagPickerControlInternalSlots> & Pick<TagPickerContextValue, 'size' | 'appearance' | 'disabled'> & {
185
+ invalid: boolean;
186
+ };
187
+
188
+ /**
189
+ * TagPickerGroup component -
190
+ * A TagPickerGroup is a composite component that allows users to group tags together.
191
+ */
192
+ export declare const TagPickerGroup: ForwardRefComponent<TagPickerGroupProps>;
193
+
194
+ /**
195
+ * TagPickerGroup Base State - omits design-only state.
196
+ */
197
+ export declare type TagPickerGroupBaseState = TagGroupBaseState & {
198
+ hasSelectedOptions: boolean;
199
+ };
200
+
201
+ export declare const tagPickerGroupClassNames: SlotClassNames<TagPickerGroupSlots>;
202
+
203
+ /**
204
+ * TagPickerGroup Props
205
+ */
206
+ export declare type TagPickerGroupProps = ComponentProps<TagPickerGroupSlots>;
207
+
208
+ export declare type TagPickerGroupSlots = TagGroupSlots;
209
+
210
+ /**
211
+ * State used in rendering TagPickerGroup
212
+ */
213
+ export declare type TagPickerGroupState = TagGroupState & {
214
+ hasSelectedOptions: boolean;
215
+ };
216
+
217
+ /**
218
+ * TagPickerInput component -
219
+ * A TagPickerInput is a composite component that allows users to query tags.
220
+ */
221
+ export declare const TagPickerInput: ForwardRefComponent<TagPickerInputProps>;
222
+
223
+ /**
224
+ * TagPickerInput Base Props - omits design-only props
225
+ */
226
+ export declare type TagPickerInputBaseProps = DistributiveOmit<TagPickerInputProps, 'appearance'>;
227
+
228
+ /**
229
+ * TagPickerInput Base State - omits design-only state
230
+ */
231
+ export declare type TagPickerInputBaseState = DistributiveOmit<TagPickerInputState, 'size'>;
232
+
233
+ export declare const tagPickerInputClassNames: SlotClassNames<TagPickerInputSlots>;
234
+
235
+ /**
236
+ * TagPickerInput Props
237
+ */
238
+ export declare type TagPickerInputProps = Omit<ComponentProps<Partial<TagPickerInputSlots>>, 'children' | 'size' | 'defaultValue'> & Pick<ComboboxProps, 'clearable' | 'appearance'> & {
239
+ disabled?: boolean;
240
+ value?: string;
241
+ };
242
+
243
+ export declare type TagPickerInputSlots = {
244
+ root: NonNullable<Slot<'input'>>;
245
+ };
246
+
247
+ /**
248
+ * State used in rendering TagPickerInput
249
+ */
250
+ export declare type TagPickerInputState = ComponentState<TagPickerInputSlots> & Pick<TagPickerContextValue, 'size' | 'disabled'>;
251
+
252
+ /**
253
+ * TagPickerList component -
254
+ * A TagPickerList is a composite component that allows users to display a list of tag options to be selected.
255
+ */
256
+ export declare const TagPickerList: ForwardRefComponent<TagPickerListProps>;
257
+
258
+ export declare const tagPickerListClassNames: SlotClassNames<TagPickerListSlots>;
259
+
260
+ /**
261
+ * TagPickerList Props
262
+ */
263
+ export declare type TagPickerListProps = ComponentProps<TagPickerListSlots> & {
264
+ /**
265
+ * @deprecated TagPickerList is always rendered within a TagPicker which manages active descendant focus.
266
+ * This prop has no effect.
267
+ */
268
+ disableAutoFocus?: boolean;
269
+ };
270
+
271
+ export declare type TagPickerListSlots = {
272
+ root: Slot<typeof Listbox>;
273
+ };
274
+
275
+ /**
276
+ * State used in rendering TagPickerList
277
+ */
278
+ export declare type TagPickerListState = ComponentState<TagPickerListSlots> & Pick<TagPickerContextValue, 'open'>;
279
+
280
+ export declare type TagPickerOnOpenChangeData = {
281
+ open: boolean;
282
+ } & (EventData<'click', React_2.MouseEvent<HTMLDivElement>> | EventData<'keydown', React_2.KeyboardEvent<HTMLDivElement>>);
283
+
284
+ /**
285
+ * Event data for the `onOptionSelect` event.
286
+ *
287
+ * * value - The value of the selected option that triggered the event
288
+ * * selectedOptions - The list of selected options
289
+ */
290
+ export declare type TagPickerOnOptionSelectData = {
291
+ value: string;
292
+ selectedOptions: string[];
293
+ } & (EventData<'click', React_2.MouseEvent<HTMLDivElement>> | EventData<'keydown', React_2.KeyboardEvent<HTMLDivElement>>);
294
+
295
+ /**
296
+ * TagPickerOption component -
297
+ * A TagPickerOption is a composite component that allows users to select tags.
298
+ */
299
+ export declare const TagPickerOption: ForwardRefComponent<TagPickerOptionProps>;
300
+
301
+ export declare const tagPickerOptionClassNames: SlotClassNames<TagPickerOptionSlots>;
302
+
303
+ /**
304
+ * TagPickerOptionGroup component -
305
+ * A TagPickerOptionGroup is a composite component that allows users to group TagPickerOptions.
306
+ */
307
+ export declare const TagPickerOptionGroup: ForwardRefComponent<TagPickerOptionGroupProps>;
308
+
309
+ export declare const tagPickerOptionGroupClassNames: SlotClassNames<TagPickerOptionGroupSlots>;
310
+
311
+ /**
312
+ * TagPickerOptionGroup Props
313
+ */
314
+ export declare type TagPickerOptionGroupProps = OptionGroupProps;
315
+
316
+ export declare type TagPickerOptionGroupSlots = OptionGroupSlots;
317
+
318
+ /**
319
+ * State used in rendering TagPickerOptionGroup
320
+ */
321
+ export declare type TagPickerOptionGroupState = OptionGroupState;
322
+
323
+ /**
324
+ * TagPickerOption Props
325
+ */
326
+ export declare type TagPickerOptionProps = ComponentProps<TagPickerOptionSlots> & {
327
+ value: string;
328
+ } & ({
329
+ /**
330
+ * An optional override the string value of the Option's display text,
331
+ * defaulting to the Option's child content.
332
+ * This is used as the Dropdown button's or Combobox input's value when the option is selected,
333
+ * and as the comparison for type-to-find keyboard functionality.
334
+ */
335
+ text?: string;
336
+ children: string;
337
+ } | {
338
+ /**
339
+ * The string value of the Option's display text when the Option's children are not a string.
340
+ * This is used as the Dropdown button's or Combobox input's value when the option is selected,
341
+ * and as the comparison for type-to-find keyboard functionality.
342
+ */
343
+ text: string;
344
+ children?: React_2.ReactNode;
345
+ });
346
+
347
+ export declare type TagPickerOptionSlots = Pick<OptionSlots, 'root'> & {
348
+ media?: Slot<'div'>;
349
+ secondaryContent?: Slot<'span'>;
350
+ };
351
+
352
+ /**
353
+ * State used in rendering TagPickerOption
354
+ */
355
+ export declare type TagPickerOptionState = ComponentState<TagPickerOptionSlots> & Pick<OptionState, 'components' | 'root'>;
356
+
357
+ /**
358
+ * Picker Props
359
+ */
360
+ export declare type TagPickerProps = ComponentProps<TagPickerSlots> & Pick<ComboboxProps, 'positioning' | 'disabled' | 'defaultOpen' | 'selectedOptions' | 'defaultSelectedOptions' | 'open' | 'disableAutoFocus'> & Pick<Partial<TagPickerContextValue>, 'size' | 'appearance'> & {
361
+ /**
362
+ * By default, when a single children is provided, the TagPicker will assume that the children
363
+ * is a popover. By setting this prop to true, the children will be treated as a trigger instead.
364
+ *
365
+ * @default false
366
+ */
367
+ noPopover?: boolean;
368
+ onOpenChange?: EventHandler<TagPickerOnOpenChangeData>;
369
+ onOptionSelect?: EventHandler<TagPickerOnOptionSelectData>;
370
+ /**
371
+ * Can contain two children including a trigger and a popover
372
+ */
373
+ children: [JSXElement, JSXElement | undefined | false] | JSXElement;
374
+ /**
375
+ * TagPickers are rendered out of DOM order on `document.body` by default,
376
+ * use this to render the popover in DOM order
377
+ *
378
+ * @default false
379
+ */
380
+ inline?: boolean;
381
+ };
382
+
383
+ export declare type TagPickerSize = 'medium' | 'large' | 'extra-large';
384
+
385
+ export declare type TagPickerSlots = {};
386
+
387
+ /**
388
+ * State used in rendering Picker
389
+ */
390
+ export declare type TagPickerState = ComponentState<TagPickerSlots> & Pick<ComboboxState, 'open' | 'activeDescendantController' | 'mountNode' | 'onOptionClick' | 'registerOption' | 'selectedOptions' | 'selectOption' | 'value' | 'setValue' | 'setOpen' | 'setHasFocus' | 'appearance' | 'clearSelection' | 'getOptionById' | 'getOptionsMatchingValue' | 'disabled'> & Pick<TagPickerContextValue, 'triggerRef' | 'secondaryActionRef' | 'popoverId' | 'popoverRef' | 'targetRef' | 'tagPickerGroupRef' | 'size' | 'noPopover'> & {
391
+ trigger: React_2.ReactNode;
392
+ popover?: React_2.ReactNode;
393
+ inline: boolean;
394
+ };
395
+
396
+ /**
397
+ * Create the state required to render Picker.
398
+ *
399
+ * The returned state can be modified with hooks such as usePickerStyles_unstable,
400
+ * before being passed to renderPicker_unstable.
401
+ *
402
+ * @param props - props from this instance of Picker
403
+ */
404
+ export declare const useTagPicker_unstable: (props: TagPickerProps) => TagPickerState;
405
+
406
+ /**
407
+ * Create the base state required to render TagPicker, without floating-ui positioning.
408
+ * @param props - props from this instance of TagPicker (without `positioning`)
409
+ */
410
+ export declare const useTagPickerBase_unstable: (props: TagPickerBaseProps) => TagPickerBaseState;
411
+
412
+ /**
413
+ * Create the state required to render TagPickerButton.
414
+ *
415
+ * The returned state can be modified with hooks such as useTagPickerButtonStyles_unstable,
416
+ * before being passed to renderTagPickerButton_unstable.
417
+ *
418
+ * @param props - props from this instance of TagPickerButton
419
+ * @param ref - reference to root HTMLButtonElement of TagPickerButton
420
+ */
421
+ export declare const useTagPickerButton_unstable: (props: TagPickerButtonProps, ref: React_2.Ref<HTMLButtonElement>) => TagPickerButtonState;
422
+
423
+ /**
424
+ * Create the base state required to render TagPickerButton, without design-only props.
425
+ *
426
+ * @param props - props from this instance of TagPickerButton (without size, appearance)
427
+ * @param ref - reference to root HTMLButtonElement of TagPickerButton
428
+ */
429
+ export declare const useTagPickerButtonBase_unstable: (props: TagPickerButtonBaseProps, ref: React_2.Ref<HTMLButtonElement>) => TagPickerButtonBaseState;
430
+
431
+ /**
432
+ * Apply styling to the PickerButton slots based on the state
433
+ */
434
+ export declare const useTagPickerButtonStyles_unstable: (state: TagPickerButtonState) => TagPickerButtonState;
435
+
436
+ export declare const useTagPickerContext_unstable: <T>(selector: ContextSelector<TagPickerContextValue, T>) => T;
437
+
438
+ export declare function useTagPickerContextValues(state: TagPickerState): TagPickerContextValues;
439
+
440
+ /**
441
+ * Create the state required to render PickerControl.
442
+ *
443
+ * The returned state can be modified with hooks such as usePickerControlStyles_unstable,
444
+ * before being passed to renderPickerControl_unstable.
445
+ *
446
+ * @param props - props from this instance of PickerControl
447
+ * @param ref - reference to root HTMLDivElement of PickerControl
448
+ */
449
+ export declare const useTagPickerControl_unstable: (props: TagPickerControlProps, ref: React_2.Ref<HTMLDivElement>) => TagPickerControlState;
450
+
451
+ /**
452
+ * Create the base state required to render TagPickerControl, without design-only state.
453
+ *
454
+ * @param props - props from this instance of TagPickerControl
455
+ * @param ref - reference to root HTMLDivElement of TagPickerControl
456
+ */
457
+ export declare const useTagPickerControlBase_unstable: (props: TagPickerControlProps, ref: React_2.Ref<HTMLDivElement>) => TagPickerControlBaseState;
458
+
459
+ /**
460
+ * Apply styling to the PickerControl slots based on the state
461
+ */
462
+ export declare const useTagPickerControlStyles_unstable: (state: TagPickerControlState) => TagPickerControlState;
463
+
464
+ export declare function useTagPickerFilter({ filter: filterOverride, noOptionsElement, renderOption, query, options, }: UseTagPickerFilterConfig): JSXElement[];
465
+
466
+ declare type UseTagPickerFilterConfig = {
467
+ query: string;
468
+ options: string[];
469
+ /**
470
+ * Provides a custom filter for the option.
471
+ * By default the filter will check if the option includes the query.
472
+ */
473
+ filter?: (option: string, index: number) => boolean;
474
+ /** Provides an element to be displayed when there are no options. */
475
+ noOptionsElement: JSXElement;
476
+ /** Provides a custom render for the option. */
477
+ renderOption?: (option: string) => JSXElement;
478
+ };
479
+
480
+ /**
481
+ * Create the state required to render TagPickerGroup.
482
+ *
483
+ * The returned state can be modified with hooks such as usePickerTagGroupStyles_unstable,
484
+ * before being passed to renderPickerTagGroup_unstable.
485
+ *
486
+ * @param props - props from this instance of TagPickerGroup
487
+ * @param ref - reference to root HTMLDivElement of TagPickerGroup
488
+ */
489
+ export declare const useTagPickerGroup_unstable: (props: TagPickerGroupProps, ref: React_2.Ref<HTMLDivElement>) => TagPickerGroupState;
490
+
491
+ /**
492
+ * Apply styling to the TagPickerGroup slots based on the state
493
+ */
494
+ export declare const useTagPickerGroupStyles_unstable: (state: TagPickerGroupState) => TagPickerGroupState;
495
+
496
+ /**
497
+ * Create the state required to render TagPickerInput.
498
+ *
499
+ * The returned state can be modified with hooks such as useTagPickerInputStyles_unstable,
500
+ * before being passed to renderTagPickerInput_unstable.
501
+ *
502
+ * @param props - props from this instance of TagPickerInput
503
+ * @param ref - reference to root HTMLInputElement of TagPickerInput
504
+ */
505
+ export declare const useTagPickerInput_unstable: (props: TagPickerInputProps, ref: React_2.Ref<HTMLInputElement>) => TagPickerInputState;
506
+
507
+ /**
508
+ * Create the base state required to render TagPickerInput, without design-only props.
509
+ * The Base hook omits Tabster-driven focus management; consumers can re-add it via the
510
+ * styled wrapper {@link useTagPickerInput_unstable} or by composing their own keydown handler.
511
+ *
512
+ * @param props - props from this instance of TagPickerInput (without appearance)
513
+ * @param ref - reference to root HTMLInputElement of TagPickerInput
514
+ */
515
+ export declare const useTagPickerInputBase_unstable: (props: TagPickerInputBaseProps, ref: React_2.Ref<HTMLInputElement>) => TagPickerInputBaseState;
516
+
517
+ /**
518
+ * Apply styling to the TagPickerInput slots based on the state
519
+ */
520
+ export declare const useTagPickerInputStyles_unstable: (state: TagPickerInputState) => TagPickerInputState;
521
+
522
+ /**
523
+ * Create the state required to render TagPickerList.
524
+ *
525
+ * The returned state can be modified with hooks such as useTagPickerListStyles_unstable,
526
+ * before being passed to renderTagPickerList_unstable.
527
+ *
528
+ * @param props - props from this instance of TagPickerList
529
+ * @param ref - reference to root HTMLDivElement of TagPickerList
530
+ */
531
+ export declare const useTagPickerList_unstable: (props: TagPickerListProps, ref: React_2.Ref<HTMLDivElement>) => TagPickerListState;
532
+
533
+ /**
534
+ * Apply styling to the TagPickerList slots based on the state
535
+ */
536
+ export declare const useTagPickerListStyles_unstable: (state: TagPickerListState) => TagPickerListState;
537
+
538
+ /**
539
+ * Create the state required to render TagPickerOption.
540
+ *
541
+ * The returned state can be modified with hooks such as useTagPickerOptionStyles_unstable,
542
+ * before being passed to renderTagPickerOption_unstable.
543
+ *
544
+ * @param props - props from this instance of TagPickerOption
545
+ * @param ref - reference to root HTMLDivElement of TagPickerOption
546
+ */
547
+ export declare const useTagPickerOption_unstable: (props: TagPickerOptionProps, ref: React_2.Ref<HTMLDivElement>) => TagPickerOptionState;
548
+
549
+ /**
550
+ * Create the state required to render TagPickerOptionGroup.
551
+ *
552
+ * The returned state can be modified with hooks such as useTagPickerOptionGroupStyles_unstable,
553
+ * before being passed to renderTagPickerOptionGroup_unstable.
554
+ *
555
+ * @param props - props from this instance of TagPickerOptionGroup
556
+ * @param ref - reference to root HTMLDivElement of TagPickerOptionGroup
557
+ */
558
+ export declare const useTagPickerOptionGroup: (props: TagPickerOptionGroupProps, ref: React_2.Ref<HTMLDivElement>) => TagPickerOptionGroupState;
559
+
560
+ /**
561
+ * Apply styling to the TagPickerOptionGroup slots based on the state
562
+ */
563
+ export declare const useTagPickerOptionGroupStyles: (state: TagPickerOptionGroupState) => TagPickerOptionGroupState;
564
+
565
+ /**
566
+ * Apply styling to the TagPickerOption slots based on the state
567
+ */
568
+ export declare const useTagPickerOptionStyles_unstable: (state: TagPickerOptionState) => TagPickerOptionState;
569
+
570
+ export { }
package/dist/index.d.ts CHANGED
@@ -23,6 +23,7 @@ import type { OptionState } from '@fluentui/react-combobox';
23
23
  import * as React_2 from 'react';
24
24
  import type { Slot } from '@fluentui/react-utilities';
25
25
  import type { SlotClassNames } from '@fluentui/react-utilities';
26
+ import type { TagGroupBaseState } from '@fluentui/react-tags';
26
27
  import { TagGroupContextValues } from '@fluentui/react-tags';
27
28
  import type { TagGroupSlots } from '@fluentui/react-tags';
28
29
  import type { TagGroupState } from '@fluentui/react-tags';
@@ -35,19 +36,19 @@ export declare const renderTagPicker_unstable: (state: TagPickerState, contexts:
35
36
  /**
36
37
  * Render the final JSX of PickerButton
37
38
  */
38
- export declare const renderTagPickerButton_unstable: (state: TagPickerButtonState) => JSXElement;
39
+ export declare const renderTagPickerButton_unstable: (state: TagPickerButtonBaseState) => JSXElement;
39
40
 
40
41
  /**
41
42
  * Render the final JSX of PickerControl
42
43
  */
43
- export declare const renderTagPickerControl_unstable: (state: TagPickerControlState) => JSXElement;
44
+ export declare const renderTagPickerControl_unstable: (state: TagPickerControlBaseState) => JSXElement;
44
45
 
45
- export declare function renderTagPickerGroup_unstable(state: TagPickerGroupState, contexts: TagGroupContextValues): JSXElement | null;
46
+ export declare function renderTagPickerGroup_unstable(state: TagPickerGroupBaseState, contexts: TagGroupContextValues): JSXElement | null;
46
47
 
47
48
  /**
48
49
  * Render the final JSX of TagPickerInput
49
50
  */
50
- export declare const renderTagPickerInput_unstable: (state: TagPickerInputState) => JSXElement;
51
+ export declare const renderTagPickerInput_unstable: (state: TagPickerInputBaseState) => JSXElement;
51
52
 
52
53
  /**
53
54
  * Render the final JSX of TagPickerList
@@ -190,6 +191,13 @@ export declare type TagPickerControlState = ComponentState<TagPickerControlSlots
190
191
  */
191
192
  export declare const TagPickerGroup: ForwardRefComponent<TagPickerGroupProps>;
192
193
 
194
+ /**
195
+ * TagPickerGroup Base State - omits design-only state.
196
+ */
197
+ export declare type TagPickerGroupBaseState = TagGroupBaseState & {
198
+ hasSelectedOptions: boolean;
199
+ };
200
+
193
201
  export declare const tagPickerGroupClassNames: SlotClassNames<TagPickerGroupSlots>;
194
202
 
195
203
  /**
package/lib/TagPicker.js CHANGED
@@ -1 +1 @@
1
- export { TagPicker, renderTagPicker_unstable, useTagPicker_unstable, useTagPickerBase_unstable, useTagPickerContextValues } from './components/TagPicker/index';
1
+ export { TagPicker, renderTagPicker_unstable, useTagPicker_unstable, useTagPickerBase_unstable, useTagPickerContextValues } from "./components/TagPicker/index.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/TagPicker.ts"],"sourcesContent":["export type {\n TagPickerBaseProps,\n TagPickerBaseState,\n TagPickerContextValues,\n TagPickerOnOpenChangeData,\n TagPickerOnOptionSelectData,\n TagPickerProps,\n TagPickerSize,\n TagPickerSlots,\n TagPickerState,\n} from './components/TagPicker/index';\nexport {\n TagPicker,\n renderTagPicker_unstable,\n useTagPicker_unstable,\n useTagPickerBase_unstable,\n useTagPickerContextValues,\n} from './components/TagPicker/index';\n"],"names":["TagPicker","renderTagPicker_unstable","useTagPicker_unstable","useTagPickerBase_unstable","useTagPickerContextValues"],"mappings":"AAWA,SACEA,SAAS,EACTC,wBAAwB,EACxBC,qBAAqB,EACrBC,yBAAyB,EACzBC,yBAAyB,QACpB,+BAA+B"}
1
+ {"version":3,"sources":["../src/TagPicker.ts"],"sourcesContent":["export type {\n TagPickerBaseProps,\n TagPickerBaseState,\n TagPickerContextValues,\n TagPickerOnOpenChangeData,\n TagPickerOnOptionSelectData,\n TagPickerProps,\n TagPickerSize,\n TagPickerSlots,\n TagPickerState,\n} from './components/TagPicker/index';\nexport {\n TagPicker,\n renderTagPicker_unstable,\n useTagPicker_unstable,\n useTagPickerBase_unstable,\n useTagPickerContextValues,\n} from './components/TagPicker/index';\n"],"names":["TagPicker","renderTagPicker_unstable","useTagPicker_unstable","useTagPickerBase_unstable","useTagPickerContextValues"],"mappings":"AAWA,SACEA,SAAS,EACTC,wBAAwB,EACxBC,qBAAqB,EACrBC,yBAAyB,EACzBC,yBAAyB,QACpB,kCAA+B"}