@fluentui/react-tag-picker 9.9.0 → 9.74.3-experimental.esm.20260709-49ee7a20cf.0

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