@fluentui/react-migration-v0-v9 9.75.2-experimental.css-modules-subpath.20261120-0eb82b7e7e.0 → 9.75.2-experimental.positioning-engine.20261123-dff30aeb4b.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 (324) hide show
  1. package/CHANGELOG.md +13 -13
  2. package/lib/components/Attachment/AttachmentAction.js +3 -3
  3. package/lib/components/Attachment/AttachmentAction.js.map +1 -1
  4. package/lib/components/Attachment/AttachmentIcon.styles.js +4 -4
  5. package/lib/components/Attachment/AttachmentIcon.styles.js.map +1 -1
  6. package/lib/components/Attachment/AttachmentIcon.styles.raw.js +3 -3
  7. package/lib/components/Attachment/AttachmentIcon.styles.raw.js.map +1 -1
  8. package/lib/components/Flex/Flex.js +1 -2
  9. package/lib/components/Flex/Flex.js.map +1 -1
  10. package/lib/components/FormField/FormFieldShim.js +2 -2
  11. package/lib/components/FormField/FormFieldShim.js.map +1 -1
  12. package/lib/components/List/List/useList.js +1 -1
  13. package/lib/components/List/List/useList.js.map +1 -1
  14. package/lib/components/List/ListItem/useListItem.js +6 -12
  15. package/lib/components/List/ListItem/useListItem.js.map +1 -1
  16. package/lib/components/List/ListItem/useListItemStyles.styles.js +2 -4
  17. package/lib/components/List/ListItem/useListItemStyles.styles.js.map +1 -1
  18. package/lib/components/List/ListItem/useListItemStyles.styles.raw.js +2 -4
  19. package/lib/components/List/ListItem/useListItemStyles.styles.raw.js.map +1 -1
  20. package/lib/components/List/hooks/useListSelection.js +1 -1
  21. package/lib/components/List/hooks/useListSelection.js.map +1 -1
  22. package/lib/components/Video/Video.js +1 -1
  23. package/lib/components/Video/Video.js.map +1 -1
  24. package/lib-commonjs/components/Attachment/AttachmentAction.cjs +3 -3
  25. package/lib-commonjs/components/Attachment/AttachmentAction.cjs.map +1 -1
  26. package/lib-commonjs/components/Attachment/AttachmentIcon.styles.cjs +6 -6
  27. package/lib-commonjs/components/Attachment/AttachmentIcon.styles.cjs.map +1 -1
  28. package/lib-commonjs/components/Attachment/AttachmentIcon.styles.raw.cjs +2 -2
  29. package/lib-commonjs/components/Attachment/AttachmentIcon.styles.raw.cjs.map +1 -1
  30. package/lib-commonjs/components/Flex/Flex.cjs +1 -2
  31. package/lib-commonjs/components/Flex/Flex.cjs.map +1 -1
  32. package/lib-commonjs/components/FormField/FormFieldShim.cjs +2 -2
  33. package/lib-commonjs/components/FormField/FormFieldShim.cjs.map +1 -1
  34. package/lib-commonjs/components/List/List/useList.cjs +1 -1
  35. package/lib-commonjs/components/List/List/useList.cjs.map +1 -1
  36. package/lib-commonjs/components/List/ListItem/useListItem.cjs +6 -12
  37. package/lib-commonjs/components/List/ListItem/useListItem.cjs.map +1 -1
  38. package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.cjs +2 -4
  39. package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.cjs.map +1 -1
  40. package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.raw.cjs +2 -4
  41. package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.raw.cjs.map +1 -1
  42. package/lib-commonjs/components/List/hooks/useListSelection.cjs +1 -1
  43. package/lib-commonjs/components/List/hooks/useListSelection.cjs.map +1 -1
  44. package/lib-commonjs/components/Video/Video.cjs +1 -1
  45. package/lib-commonjs/components/Video/Video.cjs.map +1 -1
  46. package/package.json +11 -24
  47. package/dist/css-modules.d.cts +0 -2
  48. package/dist/css-modules.d.ts +0 -2
  49. package/lib/components/Attachment/Attachment.module.css +0 -48
  50. package/lib/components/Attachment/Attachment.styles.css.js +0 -3
  51. package/lib/components/Attachment/Attachment.styles.css.js.map +0 -1
  52. package/lib/components/Attachment/Attachment.styles.raw.css.js +0 -3
  53. package/lib/components/Attachment/Attachment.styles.raw.css.js.map +0 -1
  54. package/lib/components/Attachment/AttachmentAction.module.css +0 -15
  55. package/lib/components/Attachment/AttachmentAction.styles.css.js +0 -2
  56. package/lib/components/Attachment/AttachmentAction.styles.css.js.map +0 -1
  57. package/lib/components/Attachment/AttachmentAction.styles.raw.css.js +0 -2
  58. package/lib/components/Attachment/AttachmentAction.styles.raw.css.js.map +0 -1
  59. package/lib/components/Attachment/AttachmentBody.module.css +0 -3
  60. package/lib/components/Attachment/AttachmentBody.styles.css.js +0 -2
  61. package/lib/components/Attachment/AttachmentBody.styles.css.js.map +0 -1
  62. package/lib/components/Attachment/AttachmentBody.styles.raw.css.js +0 -2
  63. package/lib/components/Attachment/AttachmentBody.styles.raw.css.js.map +0 -1
  64. package/lib/components/Attachment/AttachmentDescription.module.css +0 -6
  65. package/lib/components/Attachment/AttachmentDescription.styles.css.js +0 -2
  66. package/lib/components/Attachment/AttachmentDescription.styles.css.js.map +0 -1
  67. package/lib/components/Attachment/AttachmentDescription.styles.raw.css.js +0 -2
  68. package/lib/components/Attachment/AttachmentDescription.styles.raw.css.js.map +0 -1
  69. package/lib/components/Attachment/AttachmentHeader.module.css +0 -6
  70. package/lib/components/Attachment/AttachmentHeader.styles.css.js +0 -2
  71. package/lib/components/Attachment/AttachmentHeader.styles.css.js.map +0 -1
  72. package/lib/components/Attachment/AttachmentHeader.styles.raw.css.js +0 -2
  73. package/lib/components/Attachment/AttachmentHeader.styles.raw.css.js.map +0 -1
  74. package/lib/components/Attachment/AttachmentIcon.module.css +0 -20
  75. package/lib/components/Attachment/AttachmentIcon.styles.css.js +0 -2
  76. package/lib/components/Attachment/AttachmentIcon.styles.css.js.map +0 -1
  77. package/lib/components/Attachment/AttachmentIcon.styles.raw.css.js +0 -2
  78. package/lib/components/Attachment/AttachmentIcon.styles.raw.css.js.map +0 -1
  79. package/lib/components/Flex/Flex.module.css +0 -100
  80. package/lib/components/Flex/Flex.styles.css.js +0 -2
  81. package/lib/components/Flex/Flex.styles.css.js.map +0 -1
  82. package/lib/components/Flex/Flex.styles.raw.css.js +0 -2
  83. package/lib/components/Flex/Flex.styles.raw.css.js.map +0 -1
  84. package/lib/components/Grid/Grid.module.css +0 -36
  85. package/lib/components/Grid/Grid.styles.css.js +0 -2
  86. package/lib/components/Grid/Grid.styles.css.js.map +0 -1
  87. package/lib/components/Grid/Grid.styles.raw.css.js +0 -2
  88. package/lib/components/Grid/Grid.styles.raw.css.js.map +0 -1
  89. package/lib/components/ItemLayout/ItemLayout.module.css +0 -63
  90. package/lib/components/ItemLayout/ItemLayout.styles.css.js +0 -2
  91. package/lib/components/ItemLayout/ItemLayout.styles.css.js.map +0 -1
  92. package/lib/components/ItemLayout/ItemLayout.styles.raw.css.js +0 -2
  93. package/lib/components/ItemLayout/ItemLayout.styles.raw.css.js.map +0 -1
  94. package/lib/components/List/List/List.module.css +0 -14
  95. package/lib/components/List/List/useListStyles.styles.css.js +0 -11
  96. package/lib/components/List/List/useListStyles.styles.css.js.map +0 -1
  97. package/lib/components/List/List/useListStyles.styles.raw.css.js +0 -11
  98. package/lib/components/List/List/useListStyles.styles.raw.css.js.map +0 -1
  99. package/lib/components/List/ListItem/ListItem.module.css +0 -38
  100. package/lib/components/List/ListItem/useListItemStyles.styles.css.js +0 -25
  101. package/lib/components/List/ListItem/useListItemStyles.styles.css.js.map +0 -1
  102. package/lib/components/List/ListItem/useListItemStyles.styles.raw.css.js +0 -25
  103. package/lib/components/List/ListItem/useListItemStyles.styles.raw.css.js.map +0 -1
  104. package/lib/components/Segment/Segment.module.css +0 -8
  105. package/lib/components/Segment/Segment.styles.css.js +0 -2
  106. package/lib/components/Segment/Segment.styles.css.js.map +0 -1
  107. package/lib/components/Segment/Segment.styles.raw.css.js +0 -2
  108. package/lib/components/Segment/Segment.styles.raw.css.js.map +0 -1
  109. package/lib/components/StyledText/StyledText.module.css +0 -113
  110. package/lib/components/StyledText/StyledText.styles.css.js +0 -4
  111. package/lib/components/StyledText/StyledText.styles.css.js.map +0 -1
  112. package/lib/components/StyledText/StyledText.styles.raw.css.js +0 -4
  113. package/lib/components/StyledText/StyledText.styles.raw.css.js.map +0 -1
  114. package/lib/components/Video/Video.module.css +0 -6
  115. package/lib/components/Video/Video.styles.css.js +0 -2
  116. package/lib/components/Video/Video.styles.css.js.map +0 -1
  117. package/lib/components/Video/Video.styles.raw.css.js +0 -2
  118. package/lib/components/Video/Video.styles.raw.css.js.map +0 -1
  119. package/lib/css-modules/components/Attachment/Attachment.js +0 -36
  120. package/lib/css-modules/components/Attachment/Attachment.js.map +0 -1
  121. package/lib/css-modules/components/Attachment/AttachmentAction.js +0 -44
  122. package/lib/css-modules/components/Attachment/AttachmentAction.js.map +0 -1
  123. package/lib/css-modules/components/Attachment/AttachmentBody.js +0 -15
  124. package/lib/css-modules/components/Attachment/AttachmentBody.js.map +0 -1
  125. package/lib/css-modules/components/Attachment/AttachmentDescription.js +0 -15
  126. package/lib/css-modules/components/Attachment/AttachmentDescription.js.map +0 -1
  127. package/lib/css-modules/components/Attachment/AttachmentHeader.js +0 -15
  128. package/lib/css-modules/components/Attachment/AttachmentHeader.js.map +0 -1
  129. package/lib/css-modules/components/Attachment/AttachmentIcon.js +0 -15
  130. package/lib/css-modules/components/Attachment/AttachmentIcon.js.map +0 -1
  131. package/lib/css-modules/components/Attachment/index.js +0 -6
  132. package/lib/css-modules/components/Attachment/index.js.map +0 -1
  133. package/lib/css-modules/components/Flex/Flex.js +0 -60
  134. package/lib/css-modules/components/Flex/Flex.js.map +0 -1
  135. package/lib/css-modules/components/Flex/index.js +0 -3
  136. package/lib/css-modules/components/Flex/index.js.map +0 -1
  137. package/lib/css-modules/components/FormField/FormFieldShim.js +0 -42
  138. package/lib/css-modules/components/FormField/FormFieldShim.js.map +0 -1
  139. package/lib/css-modules/components/FormField/index.js +0 -1
  140. package/lib/css-modules/components/FormField/index.js.map +0 -1
  141. package/lib/css-modules/components/Grid/GridShim.js +0 -30
  142. package/lib/css-modules/components/Grid/GridShim.js.map +0 -1
  143. package/lib/css-modules/components/Grid/index.js +0 -3
  144. package/lib/css-modules/components/Grid/index.js.map +0 -1
  145. package/lib/css-modules/components/Input/Input.mixins.js +0 -19
  146. package/lib/css-modules/components/Input/Input.mixins.js.map +0 -1
  147. package/lib/css-modules/components/Input/index.js +0 -1
  148. package/lib/css-modules/components/Input/index.js.map +0 -1
  149. package/lib/css-modules/components/ItemLayout/ItemLayout.js +0 -79
  150. package/lib/css-modules/components/ItemLayout/ItemLayout.js.map +0 -1
  151. package/lib/css-modules/components/ItemLayout/index.js +0 -2
  152. package/lib/css-modules/components/ItemLayout/index.js.map +0 -1
  153. package/lib/css-modules/components/List/List/List.js +0 -15
  154. package/lib/css-modules/components/List/List/List.js.map +0 -1
  155. package/lib/css-modules/components/List/List/index.js +0 -4
  156. package/lib/css-modules/components/List/List/index.js.map +0 -1
  157. package/lib/css-modules/components/List/ListItem/ListItem.js +0 -13
  158. package/lib/css-modules/components/List/ListItem/ListItem.js.map +0 -1
  159. package/lib/css-modules/components/List/ListItem/index.js +0 -4
  160. package/lib/css-modules/components/List/ListItem/index.js.map +0 -1
  161. package/lib/css-modules/components/List/ListItem/renderListItem.js +0 -19
  162. package/lib/css-modules/components/List/ListItem/renderListItem.js.map +0 -1
  163. package/lib/css-modules/components/List/index.js +0 -3
  164. package/lib/css-modules/components/List/index.js.map +0 -1
  165. package/lib/css-modules/components/Primitive/Primitive.js +0 -16
  166. package/lib/css-modules/components/Primitive/Primitive.js.map +0 -1
  167. package/lib/css-modules/components/Primitive/index.js +0 -1
  168. package/lib/css-modules/components/Primitive/index.js.map +0 -1
  169. package/lib/css-modules/components/Segment/Segment.js +0 -16
  170. package/lib/css-modules/components/Segment/Segment.js.map +0 -1
  171. package/lib/css-modules/components/Segment/index.js +0 -1
  172. package/lib/css-modules/components/Segment/index.js.map +0 -1
  173. package/lib/css-modules/components/Spinner/SpinnerMigration.mixins.js +0 -14
  174. package/lib/css-modules/components/Spinner/SpinnerMigration.mixins.js.map +0 -1
  175. package/lib/css-modules/components/Spinner/index.js +0 -1
  176. package/lib/css-modules/components/Spinner/index.js.map +0 -1
  177. package/lib/css-modules/components/StyledText/StyledText.js +0 -40
  178. package/lib/css-modules/components/StyledText/StyledText.js.map +0 -1
  179. package/lib/css-modules/components/StyledText/index.js +0 -2
  180. package/lib/css-modules/components/StyledText/index.js.map +0 -1
  181. package/lib/css-modules/components/Video/Video.js +0 -42
  182. package/lib/css-modules/components/Video/Video.js.map +0 -1
  183. package/lib/css-modules/components/Video/index.js +0 -1
  184. package/lib/css-modules/components/Video/index.js.map +0 -1
  185. package/lib/css-modules/index.js +0 -14
  186. package/lib/css-modules/index.js.map +0 -1
  187. package/lib-commonjs/components/Attachment/Attachment.module.css +0 -48
  188. package/lib-commonjs/components/Attachment/Attachment.styles.css.cjs +0 -22
  189. package/lib-commonjs/components/Attachment/Attachment.styles.css.cjs.map +0 -1
  190. package/lib-commonjs/components/Attachment/Attachment.styles.raw.css.cjs +0 -22
  191. package/lib-commonjs/components/Attachment/Attachment.styles.raw.css.cjs.map +0 -1
  192. package/lib-commonjs/components/Attachment/AttachmentAction.module.css +0 -15
  193. package/lib-commonjs/components/Attachment/AttachmentAction.styles.css.cjs +0 -13
  194. package/lib-commonjs/components/Attachment/AttachmentAction.styles.css.cjs.map +0 -1
  195. package/lib-commonjs/components/Attachment/AttachmentAction.styles.raw.css.cjs +0 -13
  196. package/lib-commonjs/components/Attachment/AttachmentAction.styles.raw.css.cjs.map +0 -1
  197. package/lib-commonjs/components/Attachment/AttachmentBody.module.css +0 -3
  198. package/lib-commonjs/components/Attachment/AttachmentBody.styles.css.cjs +0 -13
  199. package/lib-commonjs/components/Attachment/AttachmentBody.styles.css.cjs.map +0 -1
  200. package/lib-commonjs/components/Attachment/AttachmentBody.styles.raw.css.cjs +0 -13
  201. package/lib-commonjs/components/Attachment/AttachmentBody.styles.raw.css.cjs.map +0 -1
  202. package/lib-commonjs/components/Attachment/AttachmentDescription.module.css +0 -6
  203. package/lib-commonjs/components/Attachment/AttachmentDescription.styles.css.cjs +0 -13
  204. package/lib-commonjs/components/Attachment/AttachmentDescription.styles.css.cjs.map +0 -1
  205. package/lib-commonjs/components/Attachment/AttachmentDescription.styles.raw.css.cjs +0 -13
  206. package/lib-commonjs/components/Attachment/AttachmentDescription.styles.raw.css.cjs.map +0 -1
  207. package/lib-commonjs/components/Attachment/AttachmentHeader.module.css +0 -6
  208. package/lib-commonjs/components/Attachment/AttachmentHeader.styles.css.cjs +0 -13
  209. package/lib-commonjs/components/Attachment/AttachmentHeader.styles.css.cjs.map +0 -1
  210. package/lib-commonjs/components/Attachment/AttachmentHeader.styles.raw.css.cjs +0 -13
  211. package/lib-commonjs/components/Attachment/AttachmentHeader.styles.raw.css.cjs.map +0 -1
  212. package/lib-commonjs/components/Attachment/AttachmentIcon.module.css +0 -20
  213. package/lib-commonjs/components/Attachment/AttachmentIcon.styles.css.cjs +0 -13
  214. package/lib-commonjs/components/Attachment/AttachmentIcon.styles.css.cjs.map +0 -1
  215. package/lib-commonjs/components/Attachment/AttachmentIcon.styles.raw.css.cjs +0 -13
  216. package/lib-commonjs/components/Attachment/AttachmentIcon.styles.raw.css.cjs.map +0 -1
  217. package/lib-commonjs/components/Flex/Flex.module.css +0 -100
  218. package/lib-commonjs/components/Flex/Flex.styles.css.cjs +0 -13
  219. package/lib-commonjs/components/Flex/Flex.styles.css.cjs.map +0 -1
  220. package/lib-commonjs/components/Flex/Flex.styles.raw.css.cjs +0 -13
  221. package/lib-commonjs/components/Flex/Flex.styles.raw.css.cjs.map +0 -1
  222. package/lib-commonjs/components/Grid/Grid.module.css +0 -36
  223. package/lib-commonjs/components/Grid/Grid.styles.css.cjs +0 -13
  224. package/lib-commonjs/components/Grid/Grid.styles.css.cjs.map +0 -1
  225. package/lib-commonjs/components/Grid/Grid.styles.raw.css.cjs +0 -13
  226. package/lib-commonjs/components/Grid/Grid.styles.raw.css.cjs.map +0 -1
  227. package/lib-commonjs/components/ItemLayout/ItemLayout.module.css +0 -63
  228. package/lib-commonjs/components/ItemLayout/ItemLayout.styles.css.cjs +0 -13
  229. package/lib-commonjs/components/ItemLayout/ItemLayout.styles.css.cjs.map +0 -1
  230. package/lib-commonjs/components/ItemLayout/ItemLayout.styles.raw.css.cjs +0 -13
  231. package/lib-commonjs/components/ItemLayout/ItemLayout.styles.raw.css.cjs.map +0 -1
  232. package/lib-commonjs/components/List/List/List.module.css +0 -14
  233. package/lib-commonjs/components/List/List/useListStyles.styles.css.cjs +0 -28
  234. package/lib-commonjs/components/List/List/useListStyles.styles.css.cjs.map +0 -1
  235. package/lib-commonjs/components/List/List/useListStyles.styles.raw.css.cjs +0 -28
  236. package/lib-commonjs/components/List/List/useListStyles.styles.raw.css.cjs.map +0 -1
  237. package/lib-commonjs/components/List/ListItem/ListItem.module.css +0 -38
  238. package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.css.cjs +0 -42
  239. package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.css.cjs.map +0 -1
  240. package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.raw.css.cjs +0 -42
  241. package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.raw.css.cjs.map +0 -1
  242. package/lib-commonjs/components/Segment/Segment.module.css +0 -8
  243. package/lib-commonjs/components/Segment/Segment.styles.css.cjs +0 -13
  244. package/lib-commonjs/components/Segment/Segment.styles.css.cjs.map +0 -1
  245. package/lib-commonjs/components/Segment/Segment.styles.raw.css.cjs +0 -13
  246. package/lib-commonjs/components/Segment/Segment.styles.raw.css.cjs.map +0 -1
  247. package/lib-commonjs/components/StyledText/StyledText.module.css +0 -113
  248. package/lib-commonjs/components/StyledText/StyledText.styles.css.cjs +0 -26
  249. package/lib-commonjs/components/StyledText/StyledText.styles.css.cjs.map +0 -1
  250. package/lib-commonjs/components/StyledText/StyledText.styles.raw.css.cjs +0 -26
  251. package/lib-commonjs/components/StyledText/StyledText.styles.raw.css.cjs.map +0 -1
  252. package/lib-commonjs/components/Video/Video.module.css +0 -6
  253. package/lib-commonjs/components/Video/Video.styles.css.cjs +0 -13
  254. package/lib-commonjs/components/Video/Video.styles.css.cjs.map +0 -1
  255. package/lib-commonjs/components/Video/Video.styles.raw.css.cjs +0 -13
  256. package/lib-commonjs/components/Video/Video.styles.raw.css.cjs.map +0 -1
  257. package/lib-commonjs/css-modules/components/Attachment/Attachment.cjs +0 -61
  258. package/lib-commonjs/css-modules/components/Attachment/Attachment.cjs.map +0 -1
  259. package/lib-commonjs/css-modules/components/Attachment/AttachmentAction.cjs +0 -63
  260. package/lib-commonjs/css-modules/components/Attachment/AttachmentAction.cjs.map +0 -1
  261. package/lib-commonjs/css-modules/components/Attachment/AttachmentBody.cjs +0 -34
  262. package/lib-commonjs/css-modules/components/Attachment/AttachmentBody.cjs.map +0 -1
  263. package/lib-commonjs/css-modules/components/Attachment/AttachmentDescription.cjs +0 -34
  264. package/lib-commonjs/css-modules/components/Attachment/AttachmentDescription.cjs.map +0 -1
  265. package/lib-commonjs/css-modules/components/Attachment/AttachmentHeader.cjs +0 -34
  266. package/lib-commonjs/css-modules/components/Attachment/AttachmentHeader.cjs.map +0 -1
  267. package/lib-commonjs/css-modules/components/Attachment/AttachmentIcon.cjs +0 -34
  268. package/lib-commonjs/css-modules/components/Attachment/AttachmentIcon.cjs.map +0 -1
  269. package/lib-commonjs/css-modules/components/Attachment/index.cjs +0 -60
  270. package/lib-commonjs/css-modules/components/Attachment/index.cjs.map +0 -1
  271. package/lib-commonjs/css-modules/components/Flex/Flex.cjs +0 -79
  272. package/lib-commonjs/css-modules/components/Flex/Flex.cjs.map +0 -1
  273. package/lib-commonjs/css-modules/components/Flex/index.cjs +0 -27
  274. package/lib-commonjs/css-modules/components/Flex/index.cjs.map +0 -1
  275. package/lib-commonjs/css-modules/components/FormField/FormFieldShim.cjs +0 -53
  276. package/lib-commonjs/css-modules/components/FormField/FormFieldShim.cjs.map +0 -1
  277. package/lib-commonjs/css-modules/components/FormField/index.cjs +0 -11
  278. package/lib-commonjs/css-modules/components/FormField/index.cjs.map +0 -1
  279. package/lib-commonjs/css-modules/components/Grid/GridShim.cjs +0 -49
  280. package/lib-commonjs/css-modules/components/Grid/GridShim.cjs.map +0 -1
  281. package/lib-commonjs/css-modules/components/Grid/index.cjs +0 -27
  282. package/lib-commonjs/css-modules/components/Grid/index.cjs.map +0 -1
  283. package/lib-commonjs/css-modules/components/Input/Input.mixins.cjs +0 -29
  284. package/lib-commonjs/css-modules/components/Input/Input.mixins.cjs.map +0 -1
  285. package/lib-commonjs/css-modules/components/Input/index.cjs +0 -11
  286. package/lib-commonjs/css-modules/components/Input/index.cjs.map +0 -1
  287. package/lib-commonjs/css-modules/components/ItemLayout/ItemLayout.cjs +0 -98
  288. package/lib-commonjs/css-modules/components/ItemLayout/ItemLayout.cjs.map +0 -1
  289. package/lib-commonjs/css-modules/components/ItemLayout/index.cjs +0 -23
  290. package/lib-commonjs/css-modules/components/ItemLayout/index.cjs.map +0 -1
  291. package/lib-commonjs/css-modules/components/List/List/List.cjs +0 -26
  292. package/lib-commonjs/css-modules/components/List/List/List.cjs.map +0 -1
  293. package/lib-commonjs/css-modules/components/List/List/index.cjs +0 -31
  294. package/lib-commonjs/css-modules/components/List/List/index.cjs.map +0 -1
  295. package/lib-commonjs/css-modules/components/List/ListItem/ListItem.cjs +0 -24
  296. package/lib-commonjs/css-modules/components/List/ListItem/ListItem.cjs.map +0 -1
  297. package/lib-commonjs/css-modules/components/List/ListItem/index.cjs +0 -31
  298. package/lib-commonjs/css-modules/components/List/ListItem/index.cjs.map +0 -1
  299. package/lib-commonjs/css-modules/components/List/ListItem/renderListItem.cjs +0 -27
  300. package/lib-commonjs/css-modules/components/List/ListItem/renderListItem.cjs.map +0 -1
  301. package/lib-commonjs/css-modules/components/List/index.cjs +0 -48
  302. package/lib-commonjs/css-modules/components/List/index.cjs.map +0 -1
  303. package/lib-commonjs/css-modules/components/Primitive/Primitive.cjs +0 -35
  304. package/lib-commonjs/css-modules/components/Primitive/Primitive.cjs.map +0 -1
  305. package/lib-commonjs/css-modules/components/Primitive/index.cjs +0 -19
  306. package/lib-commonjs/css-modules/components/Primitive/index.cjs.map +0 -1
  307. package/lib-commonjs/css-modules/components/Segment/Segment.cjs +0 -35
  308. package/lib-commonjs/css-modules/components/Segment/Segment.cjs.map +0 -1
  309. package/lib-commonjs/css-modules/components/Segment/index.cjs +0 -19
  310. package/lib-commonjs/css-modules/components/Segment/index.cjs.map +0 -1
  311. package/lib-commonjs/css-modules/components/Spinner/SpinnerMigration.mixins.cjs +0 -24
  312. package/lib-commonjs/css-modules/components/Spinner/SpinnerMigration.mixins.cjs.map +0 -1
  313. package/lib-commonjs/css-modules/components/Spinner/index.cjs +0 -11
  314. package/lib-commonjs/css-modules/components/Spinner/index.cjs.map +0 -1
  315. package/lib-commonjs/css-modules/components/StyledText/StyledText.cjs +0 -59
  316. package/lib-commonjs/css-modules/components/StyledText/StyledText.cjs.map +0 -1
  317. package/lib-commonjs/css-modules/components/StyledText/index.cjs +0 -29
  318. package/lib-commonjs/css-modules/components/StyledText/index.cjs.map +0 -1
  319. package/lib-commonjs/css-modules/components/Video/Video.cjs +0 -61
  320. package/lib-commonjs/css-modules/components/Video/Video.cjs.map +0 -1
  321. package/lib-commonjs/css-modules/components/Video/index.cjs +0 -19
  322. package/lib-commonjs/css-modules/components/Video/index.cjs.map +0 -1
  323. package/lib-commonjs/css-modules/index.cjs +0 -182
  324. package/lib-commonjs/css-modules/index.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Attachment/AttachmentAction.tsx"],"sourcesContent":["'use client';\n\nimport type { ButtonProps } from '@fluentui/react-components';\nimport { Button, mergeClasses } from '@fluentui/react-components';\nimport * as React from 'react';\nimport { useAttachmentActionStyles } from './AttachmentAction.styles';\n\nexport type AttachmentActionProps = ButtonProps;\n\nexport const attachmentActionClassName = 'fui-AttachmentAction';\n\nexport const AttachmentAction = React.forwardRef<HTMLButtonElement, AttachmentActionProps>((props, ref) => {\n const { className, disabled, disabledFocusable, children, onClick, onKeyUp, onKeyDown, ...rest } = props;\n const classes = useAttachmentActionStyles();\n\n const handleClick = React.useCallback<React.MouseEventHandler<HTMLButtonElement & HTMLAnchorElement>>(\n e => {\n e.stopPropagation();\n e.preventDefault();\n onClick?.(e);\n },\n [onClick],\n );\n\n const handleKeyUp = React.useCallback<React.KeyboardEventHandler<HTMLAnchorElement & HTMLButtonElement>>(\n e => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.stopPropagation();\n }\n onKeyUp?.(e);\n },\n [onKeyUp],\n );\n\n const handleKeyDown = React.useCallback<React.KeyboardEventHandler<HTMLButtonElement & HTMLAnchorElement>>(\n e => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.stopPropagation();\n }\n onKeyDown?.(e);\n },\n [onKeyDown],\n );\n\n return (\n <Button\n ref={ref}\n className={mergeClasses(\n attachmentActionClassName,\n classes.root,\n (disabled || disabledFocusable) && classes.disabled,\n className,\n )}\n appearance=\"transparent\"\n disabled={disabled}\n disabledFocusable={disabledFocusable}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n onKeyUp={handleKeyUp}\n {...rest}\n >\n {children}\n </Button>\n );\n});\n\nAttachmentAction.displayName = 'AttachmentAction';\n"],"names":["Button","mergeClasses","React","useAttachmentActionStyles","attachmentActionClassName","AttachmentAction","forwardRef","props","ref","className","disabled","disabledFocusable","children","onClick","onKeyUp","onKeyDown","rest","classes","handleClick","useCallback","e","stopPropagation","preventDefault","handleKeyUp","key","handleKeyDown","root","appearance","displayName"],"mappings":"AAAA;;;;;;;;;;;;QAWaK;;;;;;;;iCARwB,6BAA6B;iEAC3C,QAAQ;wCACW,+BAA4B;AAI/D,MAAMD,4BAA4B,uBAAuB;AAEzD,yBAAMC,WAAAA,GAAmBH,OAAMI,UAAU,CAA2C,CAACC,OAAOC;IACjG,MAAM,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,iBAAiB,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,EAAEC,SAAS,EAAE,GAAGC,MAAM,GAAGT;IACnG,MAAMU,cAAUd,iDAAAA;IAEhB,MAAMe,cAAchB,OAAMiB,WAAW,CACnCC,CAAAA;QACEA,EAAEC,eAAe;QACjBD,EAAEE,cAAc;QAChBT,YAAAA,QAAAA,YAAAA,KAAAA,IAAAA,KAAAA,IAAAA,QAAUO;IACZ,GACA;QAACP;KAAQ;IAGX,MAAMU,cAAcrB,OAAMiB,WAAW,CACnCC,CAAAA;QACE,IAAIA,EAAEI,GAAG,KAAK,WAAWJ,EAAEI,GAAG,KAAK,KAAK;YACtCJ,EAAEC,eAAe;QACnB;QACAP,YAAAA,QAAAA,YAAAA,KAAAA,IAAAA,KAAAA,IAAAA,QAAUM;IACZ,GACA;QAACN;KAAQ;IAGX,MAAMW,gBAAgBvB,OAAMiB,WAAW,CACrCC,CAAAA;QACE,IAAIA,EAAEI,GAAG,KAAK,WAAWJ,EAAEI,GAAG,KAAK,KAAK;YACtCJ,EAAEC,eAAe;QACnB;QACAN,cAAAA,QAAAA,cAAAA,KAAAA,IAAAA,KAAAA,IAAAA,UAAYK;IACd,GACA;QAACL;KAAU;IAGb,OAAA,WAAA,GACE,OAAA,aAAA,CAACf,uBAAAA,EAAAA;QACCQ,KAAKA;QACLC,eAAWR,6BAAAA,EACTG,2BACAa,QAAQS,IAAI,EACXhB,CAAAA,YAAYC,iBAAAA,CAAgB,IAAMM,QAAQP,QAAQ,EACnDD;QAEFkB,YAAW;QACXjB,UAAUA;QACVC,mBAAmBA;QACnBE,SAASK;QACTH,WAAWU;QACXX,SAASS;QACR,GAAGP,IAAI;OAEPJ;AAGP,GAAG;AAEHP,iBAAiBuB,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/Attachment/AttachmentAction.tsx"],"sourcesContent":["'use client';\n\nimport type { ButtonProps } from '@fluentui/react-components';\nimport { Button, mergeClasses } from '@fluentui/react-components';\nimport * as React from 'react';\nimport { useAttachmentActionStyles } from './AttachmentAction.styles';\n\nexport type AttachmentActionProps = ButtonProps;\n\nexport const attachmentActionClassName = 'fui-AttachmentAction';\n\nexport const AttachmentAction = React.forwardRef<HTMLButtonElement, AttachmentActionProps>((props, ref) => {\n const { className, disabled, disabledFocusable, children, onClick, onKeyUp, onKeyDown, ...rest } = props;\n const classes = useAttachmentActionStyles();\n\n const handleClick = React.useCallback<React.MouseEventHandler<HTMLButtonElement & HTMLAnchorElement>>(\n e => {\n e.stopPropagation();\n e.preventDefault();\n onClick?.(e);\n },\n [onClick],\n );\n\n const handleKeyUp = React.useCallback<React.KeyboardEventHandler<HTMLAnchorElement & HTMLButtonElement>>(\n e => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.stopPropagation();\n }\n onKeyUp?.(e);\n },\n [onKeyUp],\n );\n\n const handleKeyDown = React.useCallback<React.KeyboardEventHandler<HTMLButtonElement & HTMLAnchorElement>>(\n e => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.stopPropagation();\n }\n onKeyDown?.(e);\n },\n [onKeyDown],\n );\n\n return (\n <Button\n ref={ref}\n className={mergeClasses(\n attachmentActionClassName,\n classes.root,\n (disabled || disabledFocusable) && classes.disabled,\n className,\n )}\n appearance=\"transparent\"\n disabled={disabled}\n disabledFocusable={disabledFocusable}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n onKeyUp={handleKeyUp}\n {...rest}\n >\n {children}\n </Button>\n );\n});\n\nAttachmentAction.displayName = 'AttachmentAction';\n"],"names":["Button","mergeClasses","React","useAttachmentActionStyles","attachmentActionClassName","AttachmentAction","forwardRef","props","ref","className","disabled","disabledFocusable","children","onClick","onKeyUp","onKeyDown","rest","classes","handleClick","useCallback","e","stopPropagation","preventDefault","handleKeyUp","key","handleKeyDown","root","appearance","displayName"],"mappings":"AAAA;;;;;;;;;;;;QAWaK;;;;;;;;iCARwB,6BAA6B;iEAC3C,QAAQ;wCACW,+BAA4B;AAI/D,MAAMD,4BAA4B,uBAAuB;AAEzD,yBAAMC,WAAAA,GAAmBH,OAAMI,UAAU,CAA2C,CAACC,OAAOC;IACjG,MAAM,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,iBAAiB,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,EAAEC,SAAS,EAAE,GAAGC,MAAM,GAAGT;IACnG,MAAMU,cAAUd,iDAAAA;IAEhB,MAAMe,cAAchB,OAAMiB,WAAW,CACnCC,CAAAA;QACEA,EAAEC,eAAe;QACjBD,EAAEE,cAAc;QAChBT,UAAUO;IACZ,GACA;QAACP;KAAQ;IAGX,MAAMU,cAAcrB,OAAMiB,WAAW,CACnCC,CAAAA;QACE,IAAIA,EAAEI,GAAG,KAAK,WAAWJ,EAAEI,GAAG,KAAK,KAAK;YACtCJ,EAAEC,eAAe;QACnB;QACAP,UAAUM;IACZ,GACA;QAACN;KAAQ;IAGX,MAAMW,gBAAgBvB,OAAMiB,WAAW,CACrCC,CAAAA;QACE,IAAIA,EAAEI,GAAG,KAAK,WAAWJ,EAAEI,GAAG,KAAK,KAAK;YACtCJ,EAAEC,eAAe;QACnB;QACAN,YAAYK;IACd,GACA;QAACL;KAAU;IAGb,OAAA,WAAA,GACE,OAAA,aAAA,CAACf,uBAAAA,EAAAA;QACCQ,KAAKA;QACLC,eAAWR,6BAAAA,EACTG,2BACAa,QAAQS,IAAI,EACXhB,CAAAA,YAAYC,iBAAAA,CAAgB,IAAMM,QAAQP,QAAQ,EACnDD;QAEFkB,YAAW;QACXjB,UAAUA;QACVC,mBAAmBA;QACnBE,SAASK;QACTH,WAAWU;QACXX,SAASS;QACR,GAAGP,IAAI;OAEPJ;AAGP,GAAG;AAEHP,iBAAiBuB,WAAW,GAAG"}
@@ -16,27 +16,27 @@ const useAttachmentIconStyles = /*#__PURE__*/ (0, _reactcomponents.__styles)({
16
16
  Bqenvij: "f1d2rq10",
17
17
  a9b677: "f1szoe96",
18
18
  t21cq0: [
19
- "fkujibs",
20
- "f199hnxi"
19
+ "f1x4n1mu",
20
+ "f1hf5xhj"
21
21
  ],
22
22
  mc9l5x: "ftuwxu6",
23
23
  Bt984gj: "f122n59",
24
24
  Brf1p80: "f4d9j23",
25
25
  r2e3yl: "fqaw56w",
26
26
  Bt7ks8d: "fjizfa5",
27
- Bdewejq: "fgmsalq"
27
+ Bdewejq: "fxoqbmi"
28
28
  }
29
29
  }, {
30
30
  d: [
31
31
  ".f1d2rq10{height:32px;}",
32
32
  ".f1szoe96{width:32px;}",
33
- ".fkujibs{margin-right:var(--spacingHorizontalM);}",
34
- ".f199hnxi{margin-left:var(--spacingHorizontalM);}",
33
+ ".f1x4n1mu{margin-right:12px;}",
34
+ ".f1hf5xhj{margin-left:12px;}",
35
35
  ".ftuwxu6{display:inline-flex;}",
36
36
  ".f122n59{align-items:center;}",
37
37
  ".f4d9j23{justify-content:center;}",
38
38
  ".fqaw56w svg,.fqaw56w .fui-Icon-font{height:100%;}",
39
39
  ".fjizfa5 svg,.fjizfa5 .fui-Icon-font{width:100%;}",
40
- ".fgmsalq .fui-Icon-font{font-size:var(--fontSizeHero800)!important;}"
40
+ ".fxoqbmi .fui-Icon-font{font-size:32px!important;}"
41
41
  ]
42
42
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["AttachmentIcon.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, tokens } from \"@fluentui/react-components\";\nconst iconSize = '32px';\nexport const useAttachmentIconStyles = makeStyles({\n root: {\n height: iconSize,\n width: iconSize,\n marginRight: tokens.spacingHorizontalM,\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n '& svg, & .fui-Icon-font': {\n height: '100%',\n width: '100%'\n },\n '& .fui-Icon-font': {\n fontSize: `${tokens.fontSizeHero800} !important`\n }\n }\n});\n"],"names":["__styles","tokens","iconSize","useAttachmentIconStyles","root","Bqenvij","a9b677","t21cq0","mc9l5x","Bt984gj","Brf1p80","r2e3yl","Bt7ks8d","Bdewejq","d"],"mappings":"AAAA,YAAY;;;;;;;;;;;iCACuB,4BAA4B;AAC/D,MAAME,QAAQ,GAAG,MAAM;AAChB,MAAMC,uBAAuB,GAAA,WAAA,OAAGH,yBAAA,EAAA;IAAAI,IAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;YAAA;YAAA;SAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAgBtC,CAAC"}
1
+ {"version":3,"sources":["AttachmentIcon.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles } from \"@fluentui/react-components\";\nconst iconSize = '32px';\nexport const useAttachmentIconStyles = makeStyles({\n root: {\n height: iconSize,\n width: iconSize,\n marginRight: '12px',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n '& svg, & .fui-Icon-font': {\n height: '100%',\n width: '100%'\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSize} !important`\n }\n }\n});\n"],"names":["__styles","iconSize","useAttachmentIconStyles","root","Bqenvij","a9b677","t21cq0","mc9l5x","Bt984gj","Brf1p80","r2e3yl","Bt7ks8d","Bdewejq","d"],"mappings":"AAAA,YAAY;;;;;;;;;;;iCACe,4BAA4B;AACvD,MAAMC,QAAQ,GAAG,MAAM;AAChB,MAAMC,uBAAuB,GAAA,WAAA,OAAGF,yBAAA,EAAA;IAAAG,IAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;YAAA;YAAA;SAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAgBtC,CAAC"}
@@ -15,7 +15,7 @@ const useAttachmentIconStyles = (0, _reactcomponents.makeStyles)({
15
15
  root: {
16
16
  height: iconSize,
17
17
  width: iconSize,
18
- marginRight: _reactcomponents.tokens.spacingHorizontalM,
18
+ marginRight: '12px',
19
19
  display: 'inline-flex',
20
20
  alignItems: 'center',
21
21
  justifyContent: 'center',
@@ -24,7 +24,7 @@ const useAttachmentIconStyles = (0, _reactcomponents.makeStyles)({
24
24
  width: '100%'
25
25
  },
26
26
  '& .fui-Icon-font': {
27
- fontSize: `${_reactcomponents.tokens.fontSizeHero800} !important`
27
+ fontSize: `${iconSize} !important`
28
28
  }
29
29
  }
30
30
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Attachment/AttachmentIcon.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, tokens } from '@fluentui/react-components';\n\nconst iconSize = '32px';\n\nexport const useAttachmentIconStyles = makeStyles({\n root: {\n height: iconSize,\n width: iconSize,\n marginRight: tokens.spacingHorizontalM,\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n '& svg, & .fui-Icon-font': {\n height: '100%',\n width: '100%',\n },\n '& .fui-Icon-font': {\n fontSize: `${tokens.fontSizeHero800} !important`,\n },\n },\n});\n"],"names":["makeStyles","tokens","iconSize","useAttachmentIconStyles","root","height","width","marginRight","spacingHorizontalM","display","alignItems","justifyContent","fontSize","fontSizeHero800"],"mappings":"AAAA;;;;;;;;;;;iCAEmC,6BAA6B;AAEhE,MAAME,WAAW;AAEV,MAAMC,8BAA0BH,2BAAAA,EAAW;IAChDI,MAAM;QACJC,QAAQH;QACRI,OAAOJ;QACPK,aAAaN,uBAAAA,CAAOO,kBAAkB;QACtCC,SAAS;QACTC,YAAY;QACZC,gBAAgB;QAChB,2BAA2B;YACzBN,QAAQ;YACRC,OAAO;QACT;QACA,oBAAoB;YAClBM,UAAU,GAAGX,uBAAAA,CAAOY,eAAe,CAAC,WAAW,CAAC;QAClD;IACF;AACF,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/Attachment/AttachmentIcon.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles } from '@fluentui/react-components';\n\nconst iconSize = '32px';\n\nexport const useAttachmentIconStyles = makeStyles({\n root: {\n height: iconSize,\n width: iconSize,\n marginRight: '12px',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n '& svg, & .fui-Icon-font': {\n height: '100%',\n width: '100%',\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSize} !important`,\n },\n },\n});\n"],"names":["makeStyles","iconSize","useAttachmentIconStyles","root","height","width","marginRight","display","alignItems","justifyContent","fontSize"],"mappings":"AAAA;;;;;;;;;;;iCAE2B,6BAA6B;AAExD,MAAMC,WAAW;AAEV,MAAMC,8BAA0BF,2BAAAA,EAAW;IAChDG,MAAM;QACJC,QAAQH;QACRI,OAAOJ;QACPK,aAAa;QACbC,SAAS;QACTC,YAAY;QACZC,gBAAgB;QAChB,2BAA2B;YACzBL,QAAQ;YACRC,OAAO;QACT;QACA,oBAAoB;YAClBK,UAAU,GAAGT,SAAS,WAAW,CAAC;QACpC;IACF;AACF,GAAG"}
@@ -63,9 +63,8 @@ const Flex = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
63
63
  ]);
64
64
  const flexClasses = (0, _reactcomponents.mergeClasses)(flexClassName, classes.flex, inline && classes.inline, column && classes.column, hAlign && (column ? classMaps.alignItems[hAlign] : classMaps.justifyContent[hAlign]), vAlign && (column ? classMaps.justifyContent[vAlign] : classMaps.alignItems[vAlign]), space && classMaps.justifyContentSpace[space], wrap && classes.wrap, fill && classes.fill, gap && (column ? classMaps.gapForColumnFlex[gap] : classMaps.gapRow[gap]), padding && classMaps.paddings[padding], className);
65
65
  const content = _react.Children.map(children, (child)=>{
66
- var _child_type;
67
66
  // @ts-expect-error __isFlexItem is added to the React type property by N*
68
- const isFlexItemElement = child === null || child === void 0 ? void 0 : (_child_type = child.type) === null || _child_type === void 0 ? void 0 : _child_type.__isFlexItem;
67
+ const isFlexItemElement = child?.type?.__isFlexItem;
69
68
  return isFlexItemElement ? /*#__PURE__*/ _react.cloneElement(child, {
70
69
  flexDirection: column ? 'column' : 'row'
71
70
  }) : child;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Flex/Flex.tsx"],"sourcesContent":["'use client';\n\nimport { mergeClasses } from '@fluentui/react-components';\nimport * as React from 'react';\n\nimport { useFlexStyles } from './Flex.styles';\n\nexport interface FlexProps {\n /** Defines if container should be inline element. */\n inline?: boolean;\n\n /** Sets vertical flow direction. */\n column?: boolean;\n\n /** Allows overflow items to wrap on the next container's line. */\n wrap?: boolean;\n\n /** Controls items alignment in horizontal direction. */\n hAlign?: 'start' | 'center' | 'end' | 'stretch';\n\n /** Controls items alignment in vertical direction. */\n vAlign?: 'start' | 'center' | 'end' | 'stretch';\n\n /** Defines strategy for distributing remaining space between items. */\n space?: 'around' | 'between' | 'evenly';\n\n /** Defines gap between each two adjacent child items. */\n gap?: 'gap.smaller' | 'gap.small' | 'gap.medium' | 'gap.large';\n\n /** Defines container's padding. */\n padding?: 'padding.medium';\n\n /** Orders container to fill all parent's space available. */\n fill?: boolean;\n}\n\nexport const flexClassName = 'fui-Flex';\n\nexport const Flex = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLElement> & FlexProps>((props, ref) => {\n const { children, column, fill, gap, hAlign, inline, padding, space, vAlign, wrap, className, ...rest } = props;\n const classes = useFlexStyles();\n\n const classMaps = React.useMemo(\n () => ({\n alignItems: {\n start: classes.alignItemsFlexStart,\n center: classes.alignItemsCenter,\n end: classes.alignItemsFlexEnd,\n stretch: classes.alignItemsCenter,\n },\n justifyContent: {\n start: classes.justifyContentFlexStart,\n center: classes.justifyContentCenter,\n end: classes.justifyContentFlexEnd,\n stretch: classes.justifyContentStretch,\n },\n justifyContentSpace: {\n around: classes.justifyContentSpaceAround,\n between: classes.justifyContentSpaceBetween,\n evenly: classes.justifyContentSpaceEvenly,\n },\n gapForColumnFlex: {\n 'gap.smaller': classes.gapForColumnFlexSmaller,\n 'gap.small': classes.gapForColumnFlexSmall,\n 'gap.medium': classes.gapForColumnFlexMedium,\n 'gap.large': classes.gapForColumnFlexLarge,\n },\n gapRow: {\n 'gap.smaller': classes.gapForRowFlexSmaller,\n 'gap.small': classes.gapForRowFlexSmall,\n 'gap.medium': classes.gapForRowFlexMedium,\n 'gap.large': classes.gapForRowFlexLarge,\n },\n paddings: {\n 'padding.medium': classes.paddingMedium,\n },\n }),\n [classes],\n );\n\n const flexClasses = mergeClasses(\n flexClassName,\n classes.flex,\n inline && classes.inline,\n column && classes.column,\n hAlign && (column ? classMaps.alignItems[hAlign] : classMaps.justifyContent[hAlign]),\n vAlign && (column ? classMaps.justifyContent[vAlign] : classMaps.alignItems[vAlign]),\n space && classMaps.justifyContentSpace[space],\n wrap && classes.wrap,\n fill && classes.fill,\n gap && (column ? classMaps.gapForColumnFlex[gap] : classMaps.gapRow[gap]),\n padding && classMaps.paddings[padding],\n className,\n );\n\n const content = React.Children.map(children, child => {\n // @ts-expect-error __isFlexItem is added to the React type property by N*\n const isFlexItemElement: boolean = child?.type?.__isFlexItem;\n\n return isFlexItemElement\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any\n React.cloneElement(child as React.ReactElement<any>, {\n flexDirection: column ? 'column' : 'row',\n })\n : child;\n });\n\n return (\n <div ref={ref} className={flexClasses} {...rest}>\n {content}\n </div>\n );\n});\n\nFlex.displayName = 'Flex';\n"],"names":["mergeClasses","React","useFlexStyles","flexClassName","Flex","forwardRef","props","ref","children","column","fill","gap","hAlign","inline","padding","space","vAlign","wrap","className","rest","classes","classMaps","useMemo","alignItems","start","alignItemsFlexStart","center","alignItemsCenter","end","alignItemsFlexEnd","stretch","justifyContent","justifyContentFlexStart","justifyContentCenter","justifyContentFlexEnd","justifyContentStretch","justifyContentSpace","around","justifyContentSpaceAround","between","justifyContentSpaceBetween","evenly","justifyContentSpaceEvenly","gapForColumnFlex","gapForColumnFlexSmaller","gapForColumnFlexSmall","gapForColumnFlexMedium","gapForColumnFlexLarge","gapRow","gapForRowFlexSmaller","gapForRowFlexSmall","gapForRowFlexMedium","gapForRowFlexLarge","paddings","paddingMedium","flexClasses","flex","content","Children","map","child","isFlexItemElement","type","__isFlexItem","cloneElement","flexDirection","div","displayName"],"mappings":"AAAA;;;;;;;;;;;;QAsCaI;;;QAFAD;;;;;iCAlCgB,6BAA6B;iEACnC,QAAQ;4BAED,mBAAgB;AA+BvC,sBAAsB,WAAW;AAEjC,aAAMC,WAAAA,GAAOH,OAAMI,UAAU,CAAgE,CAACC,OAAOC;IAC1G,MAAM,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,IAAI,EAAEC,GAAG,EAAEC,MAAM,EAAEC,MAAM,EAAEC,OAAO,EAAEC,KAAK,EAAEC,MAAM,EAAEC,IAAI,EAAEC,SAAS,EAAE,GAAGC,MAAM,GAAGb;IAC1G,MAAMc,cAAUlB,yBAAAA;IAEhB,MAAMmB,YAAYpB,OAAMqB,OAAO,CAC7B,IAAO,CAAA;YACLC,YAAY;gBACVC,OAAOJ,QAAQK,mBAAmB;gBAClCC,QAAQN,QAAQO,gBAAgB;gBAChCC,KAAKR,QAAQS,iBAAiB;gBAC9BC,SAASV,QAAQO,gBAAgB;YACnC;YACAI,gBAAgB;gBACdP,OAAOJ,QAAQY,uBAAuB;gBACtCN,QAAQN,QAAQa,oBAAoB;gBACpCL,KAAKR,QAAQc,qBAAqB;gBAClCJ,SAASV,QAAQe,qBAAqB;YACxC;YACAC,qBAAqB;gBACnBC,QAAQjB,QAAQkB,yBAAyB;gBACzCC,SAASnB,QAAQoB,0BAA0B;gBAC3CC,QAAQrB,QAAQsB,yBAAyB;YAC3C;YACAC,kBAAkB;gBAChB,eAAevB,QAAQwB,uBAAuB;gBAC9C,aAAaxB,QAAQyB,qBAAqB;gBAC1C,cAAczB,QAAQ0B,sBAAsB;gBAC5C,aAAa1B,QAAQ2B,qBAAqB;YAC5C;YACAC,QAAQ;gBACN,eAAe5B,QAAQ6B,oBAAoB;gBAC3C,aAAa7B,QAAQ8B,kBAAkB;gBACvC,cAAc9B,QAAQ+B,mBAAmB;gBACz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x"],"sourcesContent":["'use client';\n\nimport { mergeClasses } from '@fluentui/react-components';\nimport * as React from 'react';\n\nimport { useFlexStyles } from './Flex.styles';\n\nexport interface FlexProps {\n /** Defines if container should be inline element. */\n inline?: boolean;\n\n /** Sets vertical flow direction. */\n column?: boolean;\n\n /** Allows overflow items to wrap on the next container's line. */\n wrap?: boolean;\n\n /** Controls items alignment in horizontal direction. */\n hAlign?: 'start' | 'center' | 'end' | 'stretch';\n\n /** Controls items alignment in vertical direction. */\n vAlign?: 'start' | 'center' | 'end' | 'stretch';\n\n /** Defines strategy for distributing remaining space between items. */\n space?: 'around' | 'between' | 'evenly';\n\n /** Defines gap between each two adjacent child items. */\n gap?: 'gap.smaller' | 'gap.small' | 'gap.medium' | 'gap.large';\n\n /** Defines container's padding. */\n padding?: 'padding.medium';\n\n /** Orders container to fill all parent's space available. */\n fill?: boolean;\n}\n\nexport const flexClassName = 'fui-Flex';\n\nexport const Flex = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLElement> & FlexProps>((props, ref) => {\n const { children, column, fill, gap, hAlign, inline, padding, space, vAlign, wrap, className, ...rest } = props;\n const classes = useFlexStyles();\n\n const classMaps = React.useMemo(\n () => ({\n alignItems: {\n start: classes.alignItemsFlexStart,\n center: classes.alignItemsCenter,\n end: classes.alignItemsFlexEnd,\n stretch: classes.alignItemsCenter,\n },\n justifyContent: {\n start: classes.justifyContentFlexStart,\n center: classes.justifyContentCenter,\n end: classes.justifyContentFlexEnd,\n stretch: classes.justifyContentStretch,\n },\n justifyContentSpace: {\n around: classes.justifyContentSpaceAround,\n between: classes.justifyContentSpaceBetween,\n evenly: classes.justifyContentSpaceEvenly,\n },\n gapForColumnFlex: {\n 'gap.smaller': classes.gapForColumnFlexSmaller,\n 'gap.small': classes.gapForColumnFlexSmall,\n 'gap.medium': classes.gapForColumnFlexMedium,\n 'gap.large': classes.gapForColumnFlexLarge,\n },\n gapRow: {\n 'gap.smaller': classes.gapForRowFlexSmaller,\n 'gap.small': classes.gapForRowFlexSmall,\n 'gap.medium': classes.gapForRowFlexMedium,\n 'gap.large': classes.gapForRowFlexLarge,\n },\n paddings: {\n 'padding.medium': classes.paddingMedium,\n },\n }),\n [classes],\n );\n\n const flexClasses = mergeClasses(\n flexClassName,\n classes.flex,\n inline && classes.inline,\n column && classes.column,\n hAlign && (column ? classMaps.alignItems[hAlign] : classMaps.justifyContent[hAlign]),\n vAlign && (column ? classMaps.justifyContent[vAlign] : classMaps.alignItems[vAlign]),\n space && classMaps.justifyContentSpace[space],\n wrap && classes.wrap,\n fill && classes.fill,\n gap && (column ? classMaps.gapForColumnFlex[gap] : classMaps.gapRow[gap]),\n padding && classMaps.paddings[padding],\n className,\n );\n\n const content = React.Children.map(children, child => {\n // @ts-expect-error __isFlexItem is added to the React type property by N*\n const isFlexItemElement: boolean = child?.type?.__isFlexItem;\n\n return isFlexItemElement\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any\n React.cloneElement(child as React.ReactElement<any>, {\n flexDirection: column ? 'column' : 'row',\n })\n : child;\n });\n\n return (\n <div ref={ref} className={flexClasses} {...rest}>\n {content}\n </div>\n );\n});\n\nFlex.displayName = 'Flex';\n"],"names":["mergeClasses","React","useFlexStyles","flexClassName","Flex","forwardRef","props","ref","children","column","fill","gap","hAlign","inline","padding","space","vAlign","wrap","className","rest","classes","classMaps","useMemo","alignItems","start","alignItemsFlexStart","center","alignItemsCenter","end","alignItemsFlexEnd","stretch","justifyContent","justifyContentFlexStart","justifyContentCenter","justifyContentFlexEnd","justifyContentStretch","justifyContentSpace","around","justifyContentSpaceAround","between","justifyContentSpaceBetween","evenly","justifyContentSpaceEvenly","gapForColumnFlex","gapForColumnFlexSmaller","gapForColumnFlexSmall","gapForColumnFlexMedium","gapForColumnFlexLarge","gapRow","gapForRowFlexSmaller","gapForRowFlexSmall","gapForRowFlexMedium","gapForRowFlexLarge","paddings","paddingMedium","flexClasses","flex","content","Children","map","child","isFlexItemElement","type","__isFlexItem","cloneElement","flexDirection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zC;SACF,CAAA,EACA;QAAClC;KAAQ;IAGX,MAAMmC,cAAcvD,iCAAAA,EAClBG,eACAiB,QAAQoC,IAAI,EACZ3C,UAAUO,QAAQP,MAAM,EACxBJ,UAAUW,QAAQX,MAAM,EACxBG,UAAWH,CAAAA,SAASY,UAAUE,UAAU,CAACX,OAAO,GAAGS,UAAUU,cAAc,CAACnB,OAAAA,AAAM,GAClFI,UAAWP,CAAAA,SAASY,UAAUU,cAAc,CAACf,OAAO,GAAGK,UAAUE,UAAU,CAACP,OAAAA,AAAM,GAClFD,SAASM,UAAUe,mBAAmB,CAACrB,MAAM,EAC7CE,QAAQG,QAAQH,IAAI,EACpBP,QAAQU,QAAQV,IAAI,EACpBC,OAAQF,CAAAA,SAASY,UAAUsB,gBAAgB,CAAChC,IAAI,GAAGU,UAAU2B,MAAM,CAACrC,IAAAA,AAAG,GACvEG,WAAWO,UAAUgC,QAAQ,CAACvC,QAAQ,EACtCI;IAGF,MAAMuC,UAAUxD,OAAMyD,QAAQ,CAACC,GAAG,CAACnD,UAAUoD,CAAAA;QAC3C,0EAA0E;QAC1E,MAAMC,oBAA6BD,OAAOE,MAAMC;QAEhD,OAAOF,oBAAAA,WAAAA,GAEH5D,OAAM+D,YAAY,CAACJ,OAAkC;YACnDK,eAAexD,SAAS,WAAW;QACrC,KACAmD;IACN;IAEA,OAAA,WAAA,GACE,OAAA,aAAA,CAACM,OAAAA;QAAI3D,KAAKA;QAAKW,WAAWqC;QAAc,GAAGpC,IAAI;OAC5CsC;AAGP,GAAG;AAEHrD,KAAK+D,WAAW,GAAG"}
@@ -17,7 +17,7 @@ const FormFieldShim = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
17
  const fieldProps = {
18
18
  required
19
19
  };
20
- if (errorMessage && (control === null || control === void 0 ? void 0 : control.error) === 'true') {
20
+ if (errorMessage && control?.error === 'true') {
21
21
  fieldProps.validationState = 'error';
22
22
  if (typeof errorMessage === 'object') {
23
23
  fieldProps.validationMessage = errorMessage.content;
@@ -33,7 +33,7 @@ const FormFieldShim = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
33
33
  fieldProps.label = label;
34
34
  }
35
35
  }
36
- const children = props.children || (control === null || control === void 0 ? void 0 : control.content);
36
+ const children = props.children || control?.content;
37
37
  if (/*#__PURE__*/ _react.isValidElement(children)) {
38
38
  const child = children;
39
39
  // Use the Field's child render function to pass the field control props to the child
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/FormField/FormFieldShim.tsx"],"sourcesContent":["'use client';\n\nimport type { FieldProps } from '@fluentui/react-components';\nimport {\n renderField_unstable,\n useFieldContextValues_unstable,\n useFieldStyles_unstable,\n useField_unstable,\n} from '@fluentui/react-components';\nimport type { ObjectShorthandValue } from '@fluentui/react-northstar';\n\nimport * as React from 'react';\n\ntype WithContent = ObjectShorthandValue<React.HTMLAttributes<HTMLDivElement>> | string;\n\n/**\n *\n */\ntype CustomInputFieldProps = React.PropsWithChildren<{\n /**\n * Message to be shown when error state is true\n */\n errorMessage?: WithContent;\n /**\n * Whether the field label should be marked as required.\n */\n required?: boolean;\n /**\n * Control to be rendered\n */\n control?: ObjectShorthandValue<{\n /**\n * Control content\n */\n content?: React.ReactNode;\n }> & {\n /**\n * Error state\n */\n error?: 'true' | 'false';\n };\n /**\n * Label to be rendered\n */\n label?: WithContent;\n}>;\n\nexport const FormFieldShim = React.forwardRef<HTMLInputElement, CustomInputFieldProps>((props, ref) => {\n const { errorMessage, required, control, label } = props;\n const fieldProps: FieldProps = { required };\n\n if (errorMessage && control?.error === 'true') {\n fieldProps.validationState = 'error';\n if (typeof errorMessage === 'object') {\n fieldProps.validationMessage = errorMessage.content;\n }\n if (typeof errorMessage === 'string') {\n fieldProps.validationMessage = errorMessage;\n }\n }\n\n if (label) {\n if (typeof label === 'object') {\n fieldProps.label = label.content;\n } else {\n fieldProps.label = label;\n }\n }\n\n const children: FieldProps['children'] = props.children || control?.content;\n\n if (React.isValidElement(children)) {\n const child: React.ReactElement = children;\n\n // Use the Field's child render function to pass the field control props to the child\n fieldProps.children = fieldControlProps =>\n React.cloneElement(child, {\n ...fieldControlProps,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ...(child.props as any),\n });\n } else {\n fieldProps.children = children;\n }\n\n const state = useField_unstable(fieldProps, ref);\n useFieldStyles_unstable(state);\n const context = useFieldContextValues_unstable(state);\n return renderField_unstable(state, context);\n});\n\nFormFieldShim.displayName = 'FormFieldShim';\n"],"names":["renderField_unstable","useFieldContextValues_unstable","useFieldStyles_unstable","useField_unstable","React","FormFieldShim","forwardRef","props","ref","errorMessage","required","control","label","fieldProps","error","validationState","validationMessage","content","children","isValidElement","child","fieldControlProps","cloneElement","state","context","displayName"],"mappings":"AAAA;;;;;+BA+CaK;;;;;;;iCAvCN,6BAA6B;iEAGb,QAAQ;AAoCxB,sBAAMA,WAAAA,GAAgBD,OAAME,UAAU,CAA0C,CAACC,OAAOC;IAC7F,MAAM,EAAEC,YAAY,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,KAAK,EAAE,GAAGL;IACnD,MAAMM,aAAyB;QAAEH;IAAS;IAE1C,IAAID,gBAAgBE,CAAAA,YAAAA,QAAAA,YAAAA,KAAAA,IAAAA,KAAAA,IAAAA,QAASG,KAAAA,AAAK,MAAK,QAAQ;QAC7CD,WAAWE,eAAe,GAAG;QAC7B,IAAI,OAAON,iBAAiB,UAAU;YACpCI,WAAWG,iBAAiB,GAAGP,aAAaQ,OAAO;QACrD;QACA,IAAI,OAAOR,iBAAiB,UAAU;YACpCI,WAAWG,iBAAiB,GAAGP;QACjC;IACF;IAEA,IAAIG,OAAO;QACT,IAAI,OAAOA,UAAU,UAAU;YAC7BC,WAAWD,KAAK,GAAGA,MAAMK,OAAO;QAClC,OAAO;YACLJ,WAAWD,KAAK,GAAGA;QACrB;IACF;IAEA,MAAMM,WAAmCX,MAAMW,QAAQ,KAAIP,YAAAA,QAAAA,YAAAA,KAAAA,IAAAA,KAAAA,IAAAA,QAASM,OAAAA,AAAO;IAE3E,IAAA,WAAA,GAAIb,OAAMe,cAAc,CAACD,WAAW;QAClC,MAAME,QAA4BF;QAElC,qFAAqF;QACrFL,WAAWK,QAAQ,GAAGG,CAAAA,oBAAAA,WAAAA,GACpBjB,OAAMkB,YAAY,CAACF,OAAO;gBACxB,GAAGC,iBAAiB;gBACpB,8DAA8D;gBAC9D,GAAID,MAAMb,KAAK;YACjB;IACJ,OAAO;QACLM,WAAWK,QAAQ,GAAGA;IACxB;IAEA,MAAMK,YAAQpB,kCAAAA,EAAkBU,YAAYL;QAC5CN,wCAAAA,EAAwBqB;IACxB,MAAMC,cAAUvB,+CAAAA,EAA+BsB;IAC/C,WAAOvB,qCAAAA,EAAqBuB,OAAOC;AACrC,GAAG;AAEHnB,cAAcoB,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/FormField/FormFieldShim.tsx"],"sourcesContent":["'use client';\n\nimport type { FieldProps } from '@fluentui/react-components';\nimport {\n renderField_unstable,\n useFieldContextValues_unstable,\n useFieldStyles_unstable,\n useField_unstable,\n} from '@fluentui/react-components';\nimport type { ObjectShorthandValue } from '@fluentui/react-northstar';\n\nimport * as React from 'react';\n\ntype WithContent = ObjectShorthandValue<React.HTMLAttributes<HTMLDivElement>> | string;\n\n/**\n *\n */\ntype CustomInputFieldProps = React.PropsWithChildren<{\n /**\n * Message to be shown when error state is true\n */\n errorMessage?: WithContent;\n /**\n * Whether the field label should be marked as required.\n */\n required?: boolean;\n /**\n * Control to be rendered\n */\n control?: ObjectShorthandValue<{\n /**\n * Control content\n */\n content?: React.ReactNode;\n }> & {\n /**\n * Error state\n */\n error?: 'true' | 'false';\n };\n /**\n * Label to be rendered\n */\n label?: WithContent;\n}>;\n\nexport const FormFieldShim = React.forwardRef<HTMLInputElement, CustomInputFieldProps>((props, ref) => {\n const { errorMessage, required, control, label } = props;\n const fieldProps: FieldProps = { required };\n\n if (errorMessage && control?.error === 'true') {\n fieldProps.validationState = 'error';\n if (typeof errorMessage === 'object') {\n fieldProps.validationMessage = errorMessage.content;\n }\n if (typeof errorMessage === 'string') {\n fieldProps.validationMessage = errorMessage;\n }\n }\n\n if (label) {\n if (typeof label === 'object') {\n fieldProps.label = label.content;\n } else {\n fieldProps.label = label;\n }\n }\n\n const children: FieldProps['children'] = props.children || control?.content;\n\n if (React.isValidElement(children)) {\n const child: React.ReactElement = children;\n\n // Use the Field's child render function to pass the field control props to the child\n fieldProps.children = fieldControlProps =>\n React.cloneElement(child, {\n ...fieldControlProps,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ...(child.props as any),\n });\n } else {\n fieldProps.children = children;\n }\n\n const state = useField_unstable(fieldProps, ref);\n useFieldStyles_unstable(state);\n const context = useFieldContextValues_unstable(state);\n return renderField_unstable(state, context);\n});\n\nFormFieldShim.displayName = 'FormFieldShim';\n"],"names":["renderField_unstable","useFieldContextValues_unstable","useFieldStyles_unstable","useField_unstable","React","FormFieldShim","forwardRef","props","ref","errorMessage","required","control","label","fieldProps","error","validationState","validationMessage","content","children","isValidElement","child","fieldControlProps","cloneElement","state","context","displayName"],"mappings":"AAAA;;;;;+BA+CaK;;;;;;;iCAvCN,6BAA6B;iEAGb,QAAQ;AAoCxB,sBAAMA,WAAAA,GAAgBD,OAAME,UAAU,CAA0C,CAACC,OAAOC;IAC7F,MAAM,EAAEC,YAAY,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,KAAK,EAAE,GAAGL;IACnD,MAAMM,aAAyB;QAAEH;IAAS;IAE1C,IAAID,gBAAgBE,SAASG,UAAU,QAAQ;QAC7CD,WAAWE,eAAe,GAAG;QAC7B,IAAI,OAAON,iBAAiB,UAAU;YACpCI,WAAWG,iBAAiB,GAAGP,aAAaQ,OAAO;QACrD;QACA,IAAI,OAAOR,iBAAiB,UAAU;YACpCI,WAAWG,iBAAiB,GAAGP;QACjC;IACF;IAEA,IAAIG,OAAO;QACT,IAAI,OAAOA,UAAU,UAAU;YAC7BC,WAAWD,KAAK,GAAGA,MAAMK,OAAO;QAClC,OAAO;YACLJ,WAAWD,KAAK,GAAGA;QACrB;IACF;IAEA,MAAMM,WAAmCX,MAAMW,QAAQ,IAAIP,SAASM;IAEpE,IAAA,WAAA,GAAIb,OAAMe,cAAc,CAACD,WAAW;QAClC,MAAME,QAA4BF;QAElC,qFAAqF;QACrFL,WAAWK,QAAQ,GAAGG,CAAAA,oBAAAA,WAAAA,GACpBjB,OAAMkB,YAAY,CAACF,OAAO;gBACxB,GAAGC,iBAAiB;gBACpB,8DAA8D;gBAC9D,GAAID,MAAMb,KAAK;YACjB;IACJ,OAAO;QACLM,WAAWK,QAAQ,GAAGA;IACxB;IAEA,MAAMK,YAAQpB,kCAAAA,EAAkBU,YAAYL;QAC5CN,wCAAAA,EAAwBqB;IACxB,MAAMC,cAAUvB,+CAAAA,EAA+BsB;IAC/C,WAAOvB,qCAAAA,EAAqBuB,OAAOC;AACrC,GAAG;AAEHnB,cAAcoB,WAAW,GAAG"}
@@ -27,7 +27,7 @@ const useList_unstable = (props, ref)=>{
27
27
  const onChange = (0, _reactutilities.useEventCallback)((e, data)=>{
28
28
  const selectedItemsAsArray = Array.from(data.selectedItems);
29
29
  setSelectionState(selectedItemsAsArray);
30
- onSelectionChange === null || onSelectionChange === void 0 ? void 0 : onSelectionChange(e, {
30
+ onSelectionChange?.(e, {
31
31
  selectedItems: selectedItemsAsArray
32
32
  });
33
33
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/List/List/useList.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport type { OnSelectionChangeData } from '@fluentui/react-utilities';\nimport { getIntrinsicElementProps, slot, useControllableState, useEventCallback } from '@fluentui/react-utilities';\nimport { useArrowNavigationGroup } from '@fluentui/react-tabster';\nimport type { ListProps, ListState } from './List.types';\nimport { useListSelection } from '../hooks/useListSelection';\n\nconst DEFAULT_ROOT_EL_TYPE = 'ul';\n\n/**\n * Create the state required to render List.\n *\n * The returned state can be modified with hooks such as useListStyles_unstable,\n * before being passed to renderList_unstable.\n *\n * @param props - props from this instance of List\n * @param ref - reference to root HTMLElement of List\n */\nexport const useList_unstable = (props: ListProps, ref: React.Ref<HTMLDivElement | HTMLUListElement>): ListState => {\n const {\n layout = 'vertical',\n navigable = false,\n selectable = false,\n selectionMode = 'single',\n selectedItems,\n defaultSelectedItems,\n as,\n onSelectionChange,\n truncateContent = false,\n truncateHeader = false,\n } = props;\n\n const arrowNavigationAttributes = useArrowNavigationGroup({\n axis: layout === 'grid' ? 'grid-linear' : 'both',\n memorizeCurrent: true,\n });\n\n const [selectionState, setSelectionState] = useControllableState({\n state: selectedItems,\n defaultState: defaultSelectedItems,\n initialState: [],\n });\n\n const onChange = useEventCallback((e: React.SyntheticEvent, data: OnSelectionChangeData) => {\n const selectedItemsAsArray = Array.from(data.selectedItems);\n setSelectionState(selectedItemsAsArray);\n onSelectionChange?.(e, { selectedItems: selectedItemsAsArray });\n });\n\n const selection = useListSelection({\n onSelectionChange: onChange,\n selectionMode,\n selectedItems: selectionState,\n defaultSelectedItems,\n });\n\n return {\n components: {\n root: DEFAULT_ROOT_EL_TYPE,\n },\n root: slot.always(\n getIntrinsicElementProps(DEFAULT_ROOT_EL_TYPE, {\n ref,\n ...(navigable && { role: 'menu' }),\n ...(selectable && {\n role: 'listbox',\n 'aria-multiselectable': selectionMode === 'multiselect' ? true : undefined,\n }),\n ...arrowNavigationAttributes,\n ...props,\n }),\n { elementType: DEFAULT_ROOT_EL_TYPE },\n ),\n layout,\n // context:\n navigable,\n as: as || DEFAULT_ROOT_EL_TYPE,\n truncateContent,\n truncateHeader,\n // only pass down selection state if its handled internally, otherwise just report the events\n selection: selectable ? selection : undefined,\n };\n};\n"],"names":["getIntrinsicElementProps","slot","useControllableState","useEventCallback","useArrowNavigationGroup","useListSelection","DEFAULT_ROOT_EL_TYPE","useList_unstable","props","ref","layout","navigable","selectable","selectionMode","selectedItems","defaultSelectedItems","as","onSelectionChange","truncateContent","truncateHeader","arrowNavigationAttributes","axis","memorizeCurrent","selectionState","setSelectionState","state","defaultState","initialState","onChange","e","data","selectedItemsAsArray","Array","from","selection","components","root","always","role","undefined","elementType"],"mappings":"AAAA;;;;;+BAoBaO;;;;;;gCAhB0E,4BAA4B;8BAC3E,0BAA0B;kCAEjC,+BAA4B;AAE7D,MAAMD,uBAAuB;AAWtB,yBAAyB,CAACE,OAAkBC;IACjD,MAAM,EACJC,SAAS,UAAU,EACnBC,YAAY,KAAK,EACjBC,aAAa,KAAK,EAClBC,gBAAgB,QAAQ,EACxBC,aAAa,EACbC,oBAAoB,EACpBC,EAAE,EACFC,iBAAiB,EACjBC,kBAAkB,KAAK,EACvBC,iBAAiB,KAAK,EACvB,GAAGX;IAEJ,MAAMY,gCAA4BhB,qCAAAA,EAAwB;QACxDiB,MAAMX,WAAW,SAAS,gBAAgB;QAC1CY,iBAAiB;IACnB;IAEA,MAAM,CAACC,gBAAgBC,kBAAkB,OAAGtB,oCAAAA,EAAqB;QAC/DuB,OAAOX;QACPY,cAAcX;QACdY,cAAc,EAAE;IAClB;IAEA,MAAMC,eAAWzB,gCAAAA,EAAiB,CAAC0B,GAAyBC;QAC1D,MAAMC,uBAAuBC,MAAMC,IAAI,CAACH,KAAKhB,aAAa;QAC1DU,kBAAkBO;QAClBd,sBAAAA,QAAAA,sBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,kBAAoBY,GAAG;YAAEf,eAAeiB;QAAqB;IAC/D;IAEA,MAAMG,gBAAY7B,kCAAAA,EAAiB;QACjCY,mBAAmBW;QACnBf;QACAC,eAAeS;QACfR;IACF;IAEA,OAAO;QACLoB,YAAY;YACVC,MAAM9B;QACR;QACA8B,MAAMnC,oBAAAA,CAAKoC,MAAM,KACfrC,wCAAAA,EAAyBM,sBAAsB;YAC7CG;YACA,GAAIE,aAAa;gBAAE2B,MAAM;YAAO,CAAC;YACjC,GAAI1B,cAAc;gBAChB0B,MAAM;gBACN,wBAAwBzB,kBAAkB,gBAAgB,OAAO0B;YACnE,CAAC;YACD,GAAGnB,yBAAyB;YAC5B,GAAGZ,KAAK;QACV,IACA;YAAEgC,aAAalC;QAAqB;QAEtCI;QACA,WAAW;QACXC;QACAK,IAAIA,MAAMV;QACVY;QACAC;QACA,6FAA6F;QAC7Fe,WAAWtB,aAAasB,YAAYK;IACtC;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../../src/components/List/List/useList.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport type { OnSelectionChangeData } from '@fluentui/react-utilities';\nimport { getIntrinsicElementProps, slot, useControllableState, useEventCallback } from '@fluentui/react-utilities';\nimport { useArrowNavigationGroup } from '@fluentui/react-tabster';\nimport type { ListProps, ListState } from './List.types';\nimport { useListSelection } from '../hooks/useListSelection';\n\nconst DEFAULT_ROOT_EL_TYPE = 'ul';\n\n/**\n * Create the state required to render List.\n *\n * The returned state can be modified with hooks such as useListStyles_unstable,\n * before being passed to renderList_unstable.\n *\n * @param props - props from this instance of List\n * @param ref - reference to root HTMLElement of List\n */\nexport const useList_unstable = (props: ListProps, ref: React.Ref<HTMLDivElement | HTMLUListElement>): ListState => {\n const {\n layout = 'vertical',\n navigable = false,\n selectable = false,\n selectionMode = 'single',\n selectedItems,\n defaultSelectedItems,\n as,\n onSelectionChange,\n truncateContent = false,\n truncateHeader = false,\n } = props;\n\n const arrowNavigationAttributes = useArrowNavigationGroup({\n axis: layout === 'grid' ? 'grid-linear' : 'both',\n memorizeCurrent: true,\n });\n\n const [selectionState, setSelectionState] = useControllableState({\n state: selectedItems,\n defaultState: defaultSelectedItems,\n initialState: [],\n });\n\n const onChange = useEventCallback((e: React.SyntheticEvent, data: OnSelectionChangeData) => {\n const selectedItemsAsArray = Array.from(data.selectedItems);\n setSelectionState(selectedItemsAsArray);\n onSelectionChange?.(e, { selectedItems: selectedItemsAsArray });\n });\n\n const selection = useListSelection({\n onSelectionChange: onChange,\n selectionMode,\n selectedItems: selectionState,\n defaultSelectedItems,\n });\n\n return {\n components: {\n root: DEFAULT_ROOT_EL_TYPE,\n },\n root: slot.always(\n getIntrinsicElementProps(DEFAULT_ROOT_EL_TYPE, {\n ref,\n ...(navigable && { role: 'menu' }),\n ...(selectable && {\n role: 'listbox',\n 'aria-multiselectable': selectionMode === 'multiselect' ? true : undefined,\n }),\n ...arrowNavigationAttributes,\n ...props,\n }),\n { elementType: DEFAULT_ROOT_EL_TYPE },\n ),\n layout,\n // context:\n navigable,\n as: as || DEFAULT_ROOT_EL_TYPE,\n truncateContent,\n truncateHeader,\n // only pass down selection state if its handled internally, otherwise just report the events\n selection: selectable ? selection : undefined,\n };\n};\n"],"names":["getIntrinsicElementProps","slot","useControllableState","useEventCallback","useArrowNavigationGroup","useListSelection","DEFAULT_ROOT_EL_TYPE","useList_unstable","props","ref","layout","navigable","selectable","selectionMode","selectedItems","defaultSelectedItems","as","onSelectionChange","truncateContent","truncateHeader","arrowNavigationAttributes","axis","memorizeCurrent","selectionState","setSelectionState","state","defaultState","initialState","onChange","e","data","selectedItemsAsArray","Array","from","selection","components","root","always","role","undefined","elementType"],"mappings":"AAAA;;;;;+BAoBaO;;;;;;gCAhB0E,4BAA4B;8BAC3E,0BAA0B;kCAEjC,+BAA4B;AAE7D,MAAMD,uBAAuB;AAWtB,yBAAyB,CAACE,OAAkBC;IACjD,MAAM,EACJC,SAAS,UAAU,EACnBC,YAAY,KAAK,EACjBC,aAAa,KAAK,EAClBC,gBAAgB,QAAQ,EACxBC,aAAa,EACbC,oBAAoB,EACpBC,EAAE,EACFC,iBAAiB,EACjBC,kBAAkB,KAAK,EACvBC,iBAAiB,KAAK,EACvB,GAAGX;IAEJ,MAAMY,gCAA4BhB,qCAAAA,EAAwB;QACxDiB,MAAMX,WAAW,SAAS,gBAAgB;QAC1CY,iBAAiB;IACnB;IAEA,MAAM,CAACC,gBAAgBC,kBAAkB,OAAGtB,oCAAAA,EAAqB;QAC/DuB,OAAOX;QACPY,cAAcX;QACdY,cAAc,EAAE;IAClB;IAEA,MAAMC,eAAWzB,gCAAAA,EAAiB,CAAC0B,GAAyBC;QAC1D,MAAMC,uBAAuBC,MAAMC,IAAI,CAACH,KAAKhB,aAAa;QAC1DU,kBAAkBO;QAClBd,oBAAoBY,GAAG;YAAEf,eAAeiB;QAAqB;IAC/D;IAEA,MAAMG,gBAAY7B,kCAAAA,EAAiB;QACjCY,mBAAmBW;QACnBf;QACAC,eAAeS;QACfR;IACF;IAEA,OAAO;QACLoB,YAAY;YACVC,MAAM9B;QACR;QACA8B,MAAMnC,oBAAAA,CAAKoC,MAAM,KACfrC,wCAAAA,EAAyBM,sBAAsB;YAC7CG;YACA,GAAIE,aAAa;gBAAE2B,MAAM;YAAO,CAAC;YACjC,GAAI1B,cAAc;gBAChB0B,MAAM;gBACN,wBAAwBzB,kBAAkB,gBAAgB,OAAO0B;YACnE,CAAC;YACD,GAAGnB,yBAAyB;YAC5B,GAAGZ,KAAK;QACV,IACA;YAAEgC,aAAalC;QAAqB;QAEtCI;QACA,WAAW;QACXC;QACAK,IAAIA,MAAMV;QACVY;QACAC;QACA,6FAA6F;QAC7Fe,WAAWtB,aAAasB,YAAYK;IACtC;AACF,EAAE"}
@@ -36,15 +36,9 @@ const useListItem_unstable = (props, ref)=>{
36
36
  const id = (0, _reactutilities.useId)('listItem');
37
37
  const { value = id, truncateHeader, truncateContent, onClick, onKeyDown, onKeyUp } = props;
38
38
  const navigable = (0, _listContext.useListContext_unstable)((ctx)=>ctx.navigable);
39
- const toggleItem = (0, _listContext.useListContext_unstable)((ctx)=>{
40
- var _ctx_selection;
41
- return (_ctx_selection = ctx.selection) === null || _ctx_selection === void 0 ? void 0 : _ctx_selection.toggleItem;
42
- });
39
+ const toggleItem = (0, _listContext.useListContext_unstable)((ctx)=>ctx.selection?.toggleItem);
43
40
  const isSelectionEnabled = (0, _listContext.useListContext_unstable)((ctx)=>!!ctx.selection);
44
- const isSelected = (0, _listContext.useListContext_unstable)((ctx)=>{
45
- var _ctx_selection;
46
- return (_ctx_selection = ctx.selection) === null || _ctx_selection === void 0 ? void 0 : _ctx_selection.isSelected(value);
47
- });
41
+ const isSelected = (0, _listContext.useListContext_unstable)((ctx)=>ctx.selection?.isSelected(value));
48
42
  const truncateHeaderOnList = (0, _listContext.useListContext_unstable)((ctx)=>ctx.truncateHeader);
49
43
  const truncateContentOnList = (0, _listContext.useListContext_unstable)((ctx)=>ctx.truncateContent);
50
44
  const parentRenderedAs = (0, _listContext.useListContext_unstable)((ctx)=>ctx.as);
@@ -52,11 +46,11 @@ const useListItem_unstable = (props, ref)=>{
52
46
  validateProperElementTypes(parentRenderedAs, renderedAs);
53
47
  validateNavigableWhenOnClickPresent(navigable, onClick);
54
48
  const handleClick = (0, _reactutilities.useEventCallback)((e)=>{
55
- onClick === null || onClick === void 0 ? void 0 : onClick(e);
49
+ onClick?.(e);
56
50
  if (!isSelectionEnabled || e.defaultPrevented) {
57
51
  return;
58
52
  }
59
- toggleItem === null || toggleItem === void 0 ? void 0 : toggleItem(e, value);
53
+ toggleItem?.(e, value);
60
54
  });
61
55
  // avoid passing empty onClick to prevent items unnecessary being narrated as clickable
62
56
  // see https://github.com/microsoft/fluentui/issues/20658
@@ -119,8 +113,8 @@ const useListItem_unstable = (props, ref)=>{
119
113
  endMedia: _reactutilities.slot.optional(props.endMedia, {
120
114
  elementType: 'div'
121
115
  }),
122
- truncateHeader: truncateHeader !== null && truncateHeader !== void 0 ? truncateHeader : truncateHeaderOnList,
123
- truncateContent: truncateContent !== null && truncateContent !== void 0 ? truncateContent : truncateContentOnList
116
+ truncateHeader: truncateHeader ?? truncateHeaderOnList,
117
+ truncateContent: truncateContent ?? truncateContentOnList
124
118
  };
125
119
  return state;
126
120
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/List/ListItem/useListItem.tsx"],"sourcesContent":["'use client';\n\nimport { useARIAButtonProps } from '@fluentui/react-aria';\nimport { getIntrinsicElementProps, slot, useEventCallback, useId } from '@fluentui/react-utilities';\nimport type * as React from 'react';\nimport { useListContext_unstable } from '../List/listContext';\nimport type { ListItemProps, ListItemState } from './ListItem.types';\n\nconst DEFAULT_ROOT_EL_TYPE = 'li';\n\nfunction validateProperElementTypes(parentRenderedAs?: 'div' | 'ul' | 'ol', renderedAs?: 'div' | 'li') {\n if (process.env.NODE_ENV === 'production') {\n return;\n }\n\n if (renderedAs === 'div' && parentRenderedAs !== 'div') {\n throw new Error('ListItem cannot be rendered as a div when its parent is not a div.');\n }\n if (renderedAs === 'li' && parentRenderedAs === 'div') {\n throw new Error('ListItem cannot be rendered as a li when its parent is a div.');\n }\n}\n\nfunction validateNavigableWhenOnClickPresent(navigable: boolean, onClick?: React.MouseEventHandler) {\n if (process.env.NODE_ENV === 'production') {\n return;\n }\n\n if (onClick && !navigable) {\n throw new Error('ListItem must be navigable when onClick is present. Set navigable={true} on the List.');\n }\n}\n\n/**\n * Create the state required to render ListItem.\n *\n * The returned state can be modified with hooks such as useListItemStyles_unstable,\n * before being passed to renderListItem_unstable.\n *\n * @param props - props from this instance of ListItem\n * @param ref - reference to root HTMLLIElement | HTMLDivElementof ListItem\n */\nexport const useListItem_unstable = (\n props: ListItemProps,\n ref: React.Ref<HTMLLIElement | HTMLDivElement>,\n): ListItemState => {\n const id = useId('listItem');\n const { value = id, truncateHeader, truncateContent, onClick, onKeyDown, onKeyUp } = props;\n\n const navigable = useListContext_unstable(ctx => ctx.navigable);\n const toggleItem = useListContext_unstable(ctx => ctx.selection?.toggleItem);\n const isSelectionEnabled = useListContext_unstable(ctx => !!ctx.selection);\n const isSelected = useListContext_unstable(ctx => ctx.selection?.isSelected(value));\n\n const truncateHeaderOnList = useListContext_unstable(ctx => ctx.truncateHeader);\n const truncateContentOnList = useListContext_unstable(ctx => ctx.truncateContent);\n\n const parentRenderedAs = useListContext_unstable(ctx => ctx.as);\n const renderedAs = props.as || DEFAULT_ROOT_EL_TYPE;\n\n validateProperElementTypes(parentRenderedAs, renderedAs);\n\n validateNavigableWhenOnClickPresent(navigable, onClick);\n\n const handleClick: React.MouseEventHandler<HTMLLIElement & HTMLDivElement> = useEventCallback(e => {\n onClick?.(e);\n\n if (!isSelectionEnabled || e.defaultPrevented) {\n return;\n }\n\n toggleItem?.(e, value);\n });\n\n // avoid passing empty onClick to prevent items unnecessary being narrated as clickable\n // see https://github.com/microsoft/fluentui/issues/20658\n const passClickHandler = !!onClick || isSelectionEnabled;\n\n const clickHandlerProps = {\n onClick: passClickHandler ? handleClick : undefined,\n onKeyDown: onKeyDown as React.KeyboardEventHandler<HTMLLIElement & HTMLDivElement>,\n onKeyUp: onKeyUp as React.KeyboardEventHandler<HTMLLIElement & HTMLDivElement>,\n };\n\n // This will give us the onKeyDown and onKeyUp props for Enter and Space\n const ariaButtonProps = useARIAButtonProps('div', clickHandlerProps);\n\n // v0 ListItem adds keyboard handling only for navigable or selectable items\n const buttonProps = navigable || isSelectionEnabled ? ariaButtonProps : clickHandlerProps;\n\n const root = slot.always(\n getIntrinsicElementProps(DEFAULT_ROOT_EL_TYPE, {\n ref: ref as React.Ref<HTMLLIElement & HTMLDivElement>,\n tabIndex: navigable || isSelectionEnabled ? 0 : undefined,\n role: navigable ? 'menuitem' : 'listitem',\n id: String(value),\n ...(isSelectionEnabled && {\n role: 'option',\n 'aria-selected': isSelected,\n }),\n ...props,\n onKeyDown: buttonProps.onKeyDown as React.KeyboardEventHandler<HTMLLIElement & HTMLDivElement>,\n onKeyUp: buttonProps.onKeyUp as React.KeyboardEventHandler<HTMLLIElement & HTMLDivElement>,\n onClick: buttonProps.onClick as React.MouseEventHandler<HTMLLIElement & HTMLDivElement>,\n }),\n { elementType: DEFAULT_ROOT_EL_TYPE },\n );\n\n const state: ListItemState = {\n components: {\n root: DEFAULT_ROOT_EL_TYPE,\n media: 'div',\n header: 'div',\n contentWrapper: 'div',\n headerMedia: 'div',\n contentMedia: 'div',\n endMedia: 'div',\n },\n root,\n navigable,\n selectable: isSelectionEnabled,\n selected: isSelected,\n media: slot.optional(props.media, { elementType: 'div' }),\n header: slot.optional(props.header, { elementType: 'div' }),\n contentWrapper: slot.optional(props.contentWrapper, { elementType: 'div', renderByDefault: true }),\n headerMedia: slot.optional(props.headerMedia, { elementType: 'div' }),\n contentMedia: slot.optional(props.contentMedia, { elementType: 'div' }),\n endMedia: slot.optional(props.endMedia, { elementType: 'div' }),\n truncateHeader: truncateHeader ?? truncateHeaderOnList,\n truncateContent: truncateContent ?? truncateContentOnList,\n };\n\n return state;\n};\n"],"names":["useARIAButtonProps","getIntrinsicElementProps","slot","useEventCallback","useId","useListContext_unstable","DEFAULT_ROOT_EL_TYPE","validateProperElementTypes","parentRenderedAs","renderedAs","process","env","NODE_ENV","Error","validateNavigableWhenOnClickPresent","navigable","onClick","useListItem_unstable","props","ref","id","value","truncateHeader","truncateContent","onKeyDown","onKeyUp","ctx","toggleItem","selection","isSelectionEnabled","isSelected","truncateHeaderOnList","truncateContentOnList","as","handleClick","e","defaultPrevented","passClickHandler","clickHandlerProps","undefined","ariaButtonProps","buttonProps","root","always","tabIndex","role","String","elementType","state","components","media","header","contentWrapper","headerMedia","contentMedia","endMedia","selectable","selected","optional","renderByDefault"],"mappings":"AAAA;;;;;+BA0CaiB;;;;;;2BAxCsB,uBAAuB;gCACc,4BAA4B;6BAE5D,yBAAsB;AAG9D,MAAMX,uBAAuB;AAE7B,SAASC,2BAA2BC,gBAAsC,EAAEC,UAAyB;IACnG,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;QACzC;IACF;IAEA,IAAIH,eAAe,SAASD,qBAAqB,OAAO;QACtD,MAAM,IAAIK,MAAM;IAClB;IACA,IAAIJ,eAAe,QAAQD,qBAAqB,OAAO;QACrD,MAAM,IAAIK,MAAM;IAClB;AACF;AAEA,SAASC,oCAAoCC,SAAkB,EAAEC,OAAiC;IAChG,IAAIN,QAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;QACzC;IACF;IAEA,IAAII,WAAW,CAACD,WAAW;QACzB,MAAM,IAAIF,MAAM;IAClB;AACF;AAWO,6BAA6B,CAClCK,OACAC;IAEA,MAAMC,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YAAEP,aAAa;QAAM;QACrEQ,UAAUrD,oBAAAA,CAAKwD,QAAQ,CAACxC,MAAMqC,QAAQ,EAAE;YAAER,aAAa;QAAM;QAC7DzB,cAAc,EAAEA,mBAAAA,QAAAA,mBAAAA,KAAAA,IAAAA,iBAAkBS;QAClCR,eAAe,EAAEA,oBAAAA,QAAAA,oBAAAA,KAAAA,IAAAA,kBAAmBS;IACtC;IAEA,OAAOgB;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../../src/components/List/ListItem/useListItem.tsx"],"sourcesContent":["'use client';\n\nimport { useARIAButtonProps } from '@fluentui/react-aria';\nimport { getIntrinsicElementProps, slot, useEventCallback, useId } from '@fluentui/react-utilities';\nimport type * as React from 'react';\nimport { useListContext_unstable } from '../List/listContext';\nimport type { ListItemProps, ListItemState } from './ListItem.types';\n\nconst DEFAULT_ROOT_EL_TYPE = 'li';\n\nfunction validateProperElementTypes(parentRenderedAs?: 'div' | 'ul' | 'ol', renderedAs?: 'div' | 'li') {\n if (process.env.NODE_ENV === 'production') {\n return;\n }\n\n if (renderedAs === 'div' && parentRenderedAs !== 'div') {\n throw new Error('ListItem cannot be rendered as a div when its parent is not a div.');\n }\n if (renderedAs === 'li' && parentRenderedAs === 'div') {\n throw new Error('ListItem cannot be rendered as a li when its parent is a div.');\n }\n}\n\nfunction validateNavigableWhenOnClickPresent(navigable: boolean, onClick?: React.MouseEventHandler) {\n if (process.env.NODE_ENV === 'production') {\n return;\n }\n\n if (onClick && !navigable) {\n throw new Error('ListItem must be navigable when onClick is present. Set navigable={true} on the List.');\n }\n}\n\n/**\n * Create the state required to render ListItem.\n *\n * The returned state can be modified with hooks such as useListItemStyles_unstable,\n * before being passed to renderListItem_unstable.\n *\n * @param props - props from this instance of ListItem\n * @param ref - reference to root HTMLLIElement | HTMLDivElementof ListItem\n */\nexport const useListItem_unstable = (\n props: ListItemProps,\n ref: React.Ref<HTMLLIElement | HTMLDivElement>,\n): ListItemState => {\n const id = useId('listItem');\n const { value = id, truncateHeader, truncateContent, onClick, onKeyDown, onKeyUp } = props;\n\n const navigable = useListContext_unstable(ctx => ctx.navigable);\n const toggleItem = useListContext_unstable(ctx => ctx.selection?.toggleItem);\n const isSelectionEnabled = useListContext_unstable(ctx => !!ctx.selection);\n const isSelected = useListContext_unstable(ctx => ctx.selection?.isSelected(value));\n\n const truncateHeaderOnList = useListContext_unstable(ctx => ctx.truncateHeader);\n const truncateContentOnList = useListContext_unstable(ctx => ctx.truncateContent);\n\n const parentRenderedAs = useListContext_unstable(ctx => ctx.as);\n const renderedAs = props.as || DEFAULT_ROOT_EL_TYPE;\n\n validateProperElementTypes(parentRenderedAs, renderedAs);\n\n validateNavigableWhenOnClickPresent(navigable, onClick);\n\n const handleClick: React.MouseEventHandler<HTMLLIElement & HTMLDivElement> = useEventCallback(e => {\n onClick?.(e);\n\n if (!isSelectionEnabled || e.defaultPrevented) {\n return;\n }\n\n toggleItem?.(e, value);\n });\n\n // avoid passing empty onClick to prevent items unnecessary being narrated as clickable\n // see https://github.com/microsoft/fluentui/issues/20658\n const passClickHandler = !!onClick || isSelectionEnabled;\n\n const clickHandlerProps = {\n onClick: passClickHandler ? handleClick : undefined,\n onKeyDown: onKeyDown as React.KeyboardEventHandler<HTMLLIElement & HTMLDivElement>,\n onKeyUp: onKeyUp as React.KeyboardEventHandler<HTMLLIElement & HTMLDivElement>,\n };\n\n // This will give us the onKeyDown and onKeyUp props for Enter and Space\n const ariaButtonProps = useARIAButtonProps('div', clickHandlerProps);\n\n // v0 ListItem adds keyboard handling only for navigable or selectable items\n const buttonProps = navigable || isSelectionEnabled ? ariaButtonProps : clickHandlerProps;\n\n const root = slot.always(\n getIntrinsicElementProps(DEFAULT_ROOT_EL_TYPE, {\n ref: ref as React.Ref<HTMLLIElement & HTMLDivElement>,\n tabIndex: navigable || isSelectionEnabled ? 0 : undefined,\n role: navigable ? 'menuitem' : 'listitem',\n id: String(value),\n ...(isSelectionEnabled && {\n role: 'option',\n 'aria-selected': isSelected,\n }),\n ...props,\n onKeyDown: buttonProps.onKeyDown as React.KeyboardEventHandler<HTMLLIElement & HTMLDivElement>,\n onKeyUp: buttonProps.onKeyUp as React.KeyboardEventHandler<HTMLLIElement & HTMLDivElement>,\n onClick: buttonProps.onClick as React.MouseEventHandler<HTMLLIElement & HTMLDivElement>,\n }),\n { elementType: DEFAULT_ROOT_EL_TYPE },\n );\n\n const state: ListItemState = {\n components: {\n root: DEFAULT_ROOT_EL_TYPE,\n media: 'div',\n header: 'div',\n contentWrapper: 'div',\n headerMedia: 'div',\n contentMedia: 'div',\n endMedia: 'div',\n },\n root,\n navigable,\n selectable: isSelectionEnabled,\n selected: isSelected,\n media: slot.optional(props.media, { elementType: 'div' }),\n header: slot.optional(props.header, { elementType: 'div' }),\n contentWrapper: slot.optional(props.contentWrapper, { elementType: 'div', renderByDefault: true }),\n headerMedia: slot.optional(props.headerMedia, { elementType: 'div' }),\n contentMedia: slot.optional(props.contentMedia, { elementType: 'div' }),\n endMedia: slot.optional(props.endMedia, { elementType: 'div' }),\n truncateHeader: truncateHeader ?? truncateHeaderOnList,\n truncateContent: truncateContent ?? truncateContentOnList,\n };\n\n return state;\n};\n"],"names":["useARIAButtonProps","getIntrinsicElementProps","slot","useEventCallback","useId","useListContext_unstable","DEFAULT_ROOT_EL_TYPE","validateProperElementTypes","parentRenderedAs","renderedAs","process","env","NODE_ENV","Error","validateNavigableWhenOnClickPresent","navigable","onClick","useListItem_unstable","props","ref","id","value","truncateHeader","truncateContent","onKeyDown","onKeyUp","ctx","toggleItem","selection","isSelectionEnabled","isSelected","truncateHeaderOnList","truncateContentOnList","as","handleClick","e","defaultPrevented","passClickHandler","clickHandlerProps","undefined","ariaButtonProps","buttonProps","root","always","tabIndex","role","String","elementType","state","components","media","header","contentWrapper","headerMedia","contentMedia","endMedia","selectable","selected","optional","renderByDefault"],"mappings":"AAAA;;;;;;;;eA0CaiB;;;2BAxCsB,uBAAuB;gCACc,4BAA4B;6BAE5D,yBAAsB;AAG9D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AAQ,CAACxC,MAAMkC,cAAc,EAAE;YAAEL,aAAa;YAAOY,iBAAiB;QAAK;QAChGN,aAAanD,oBAAAA,CAAKwD,QAAQ,CAACxC,MAAMmC,WAAW,EAAE;YAAEN,aAAa;QAAM;QACnEO,cAAcpD,oBAAAA,CAAKwD,QAAQ,CAACxC,MAAMoC,YAAY,EAAE;YAAEP,aAAa;QAAM;QACrEQ,UAAUrD,oBAAAA,CAAKwD,QAAQ,CAACxC,MAAMqC,QAAQ,EAAE;YAAER,aAAa;QAAM;QAC7DzB,gBAAgBA,kBAAkBS;QAClCR,iBAAiBA,mBAAmBS;IACtC;IAEA,OAAOgB;AACT,EAAE"}
@@ -86,14 +86,12 @@ const useListItemStyles_unstable = (state)=>{
86
86
  // eslint-disable-next-line react-hooks/immutability
87
87
  state.root.className = (0, _react.mergeClasses)(listItemClassNames.root, rootBaseStyles, (state.selectable || state.navigable) && styles.rootClickable, state.selected && styles.rootSelected, state.root.className);
88
88
  if (state.header) {
89
- var _state_header;
90
89
  // eslint-disable-next-line react-hooks/immutability
91
- state.header.className = (0, _react.mergeClasses)(state.truncateHeader && styles.truncate, (_state_header = state.header) === null || _state_header === void 0 ? void 0 : _state_header.className);
90
+ state.header.className = (0, _react.mergeClasses)(state.truncateHeader && styles.truncate, state.header?.className);
92
91
  }
93
92
  if (state.contentWrapper) {
94
- var _state_contentWrapper;
95
93
  // eslint-disable-next-line react-hooks/immutability
96
- state.contentWrapper.className = (0, _react.mergeClasses)(styles.contentWrapper, state.truncateContent && styles.truncate, !state.contentMedia && styles.contentWrapperWithoutMedia, (_state_contentWrapper = state.contentWrapper) === null || _state_contentWrapper === void 0 ? void 0 : _state_contentWrapper.className);
94
+ state.contentWrapper.className = (0, _react.mergeClasses)(styles.contentWrapper, state.truncateContent && styles.truncate, !state.contentMedia && styles.contentWrapperWithoutMedia, state.contentWrapper?.className);
97
95
  }
98
96
  return state;
99
97
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["useListItemStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, makeResetStyles, mergeClasses } from \"@griffel/react\";\nimport { createCustomFocusIndicatorStyle } from \"@fluentui/react-tabster\";\nimport { tokens } from \"@fluentui/react-theme\";\nexport const listItemClassNames = {\n root: 'fui-ListItem',\n media: 'fui-ListItem__media',\n header: 'fui-ListItem__header',\n contentWrapper: 'fui-ListItem__contentWrapper',\n headerMedia: 'fui-ListItem__headerMedia',\n contentMedia: 'fui-ListItem__contentMedia',\n endMedia: 'fui-ListItem__endMedia'\n};\nconst useRootBaseStyles = makeResetStyles({\n padding: '0 10px',\n margin: 0,\n textIndent: 0,\n listStyleType: 'none',\n ...createCustomFocusIndicatorStyle({\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium\n }, {\n selector: 'focus'\n })\n});\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n contentWrapper: {\n fontSize: tokens.fontSizeBase200\n },\n // The content should go all the way to the end if the content media is not present\n contentWrapperWithoutMedia: {\n gridColumnEnd: 4\n },\n truncate: {\n overflow: 'hidden',\n textWrap: 'nowrap',\n textOverflow: 'ellipsis'\n },\n rootSelected: {\n backgroundColor: tokens.colorNeutralBackground1Selected\n },\n rootClickable: {\n cursor: 'pointer',\n '&:hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover\n }\n }\n});\n/**\n * Apply styling to the ListItem slots based on the state\n */ export const useListItemStyles_unstable = (state)=>{\n const rootBaseStyles = useRootBaseStyles();\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(listItemClassNames.root, rootBaseStyles, (state.selectable || state.navigable) && styles.rootClickable, state.selected && styles.rootSelected, state.root.className);\n if (state.header) {\n var _state_header;\n // eslint-disable-next-line react-hooks/immutability\n state.header.className = mergeClasses(state.truncateHeader && styles.truncate, (_state_header = state.header) === null || _state_header === void 0 ? void 0 : _state_header.className);\n }\n if (state.contentWrapper) {\n var _state_contentWrapper;\n // eslint-disable-next-line react-hooks/immutability\n state.contentWrapper.className = mergeClasses(styles.contentWrapper, state.truncateContent && styles.truncate, !state.contentMedia && styles.contentWrapperWithoutMedia, (_state_contentWrapper = state.contentWrapper) === null || _state_contentWrapper === void 0 ? void 0 : _state_contentWrapper.className);\n }\n return state;\n};\n"],"names":["__styles","__resetStyles","mergeClasses","createCustomFocusIndicatorStyle","tokens","listItemClassNames","root","media","header","contentWrapper","headerMedia","contentMedia","endMedia","useRootBaseStyles","useStyles","Be2twd7","contentWrapperWithoutMedia","Bw0ie65","truncate","B68tc82","Bmxbyg5","Bpg54ce","xi8vp3","tsliik","j4b8c3","ygn44y","rootSelected","De3pzq","rootClickable","Bceei9c","Jwef8y","d","p","h","useListItemStyles_unstable","state","rootBaseStyles","styles","className","selectable","navigable","selected","_state_header","truncateHeader","_state_contentWrapper","truncateContent"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAICK,kBAAkB;;;;eAgDd6B,0BAA0B;;;uBAnDe,gBAAgB;AAGnE,2BAA2B;IAC9B5B,IAAI,EAAE,cAAc;IACpBC,KAAK,EAAE,qBAAqB;IAC5BC,MAAM,EAAE,sBAAsB;IAC9BC,cAAc,EAAE,8BAA8B;IAC9CC,WAAW,EAAE,2BAA2B;IACxCC,YAAY,EAAE,4BAA4B;IAC1CC,QAAQ,EAAE;AACd,CAAC;AACD,MAAMC,iBAAiB,GAAA,WAAA,GAAGZ,wBAAA,EAAA,WAAA,MAAA;IAAA;IAAA;CAWzB,CAAC;AACF;;CAEA,GAAI,MAAMa,SAAS,GAAA,WAAA,GAAGd,mBAAA,EAAA;IAAAS,cAAA,EAAA;QAAAM,OAAA,EAAA;IAAA;IAAAC,0BAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,QAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC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AAS,OAAGpC,mBAAY,EAACmC,MAAM,CAAC5B,cAAc,EAAE0B,KAAK,CAACU,eAAe,IAAIR,MAAM,CAACnB,QAAQ,EAAE,CAACiB,KAAK,CAACxB,YAAY,IAAI0B,MAAM,CAACrB,0BAA0B,EAAE,CAAC4B,qBAAqB,GAAGT,KAAK,CAAC1B,cAAAA,AAAc,MAAM,IAAI,IAAImC,qBAAqB,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,qBAAqB,CAACN,SAAS,CAAC;IACpT;IACA,OAAOH,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useListItemStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, makeResetStyles, mergeClasses } from \"@griffel/react\";\nimport { createCustomFocusIndicatorStyle } from \"@fluentui/react-tabster\";\nimport { tokens } from \"@fluentui/react-theme\";\nexport const listItemClassNames = {\n root: 'fui-ListItem',\n media: 'fui-ListItem__media',\n header: 'fui-ListItem__header',\n contentWrapper: 'fui-ListItem__contentWrapper',\n headerMedia: 'fui-ListItem__headerMedia',\n contentMedia: 'fui-ListItem__contentMedia',\n endMedia: 'fui-ListItem__endMedia'\n};\nconst useRootBaseStyles = makeResetStyles({\n padding: '0 10px',\n margin: 0,\n textIndent: 0,\n listStyleType: 'none',\n ...createCustomFocusIndicatorStyle({\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium\n }, {\n selector: 'focus'\n })\n});\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n contentWrapper: {\n fontSize: tokens.fontSizeBase200\n },\n // The content should go all the way to the end if the content media is not present\n contentWrapperWithoutMedia: {\n gridColumnEnd: 4\n },\n truncate: {\n overflow: 'hidden',\n textWrap: 'nowrap',\n textOverflow: 'ellipsis'\n },\n rootSelected: {\n backgroundColor: tokens.colorNeutralBackground1Selected\n },\n rootClickable: {\n cursor: 'pointer',\n '&:hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover\n }\n }\n});\n/**\n * Apply styling to the ListItem slots based on the state\n */ export const useListItemStyles_unstable = (state)=>{\n const rootBaseStyles = useRootBaseStyles();\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(listItemClassNames.root, rootBaseStyles, (state.selectable || state.navigable) && styles.rootClickable, state.selected && styles.rootSelected, state.root.className);\n if (state.header) {\n // eslint-disable-next-line react-hooks/immutability\n state.header.className = mergeClasses(state.truncateHeader && styles.truncate, state.header?.className);\n }\n if (state.contentWrapper) {\n // eslint-disable-next-line react-hooks/immutability\n state.contentWrapper.className = mergeClasses(styles.contentWrapper, state.truncateContent && styles.truncate, !state.contentMedia && styles.contentWrapperWithoutMedia, state.contentWrapper?.className);\n }\n return state;\n};\n"],"names":["__styles","__resetStyles","mergeClasses","createCustomFocusIndicatorStyle","tokens","listItemClassNames","root","media","header","contentWrapper","headerMedia","contentMedia","endMedia","useRootBaseStyles","useStyles","Be2twd7","contentWrapperWithoutMedia","Bw0ie65","truncate","B68tc82","Bmxbyg5","Bpg54ce","xi8vp3","tsliik","j4b8c3","ygn44y","rootSelected","De3pzq","rootClickable","Bceei9c","Jwef8y","d","p","h","useListItemStyles_unstable","state","rootBaseStyles","styles","className","selectable","navigable","selected","truncateHeader","truncateContent"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAICK,kBAAkB;;;;eAgDd6B,0BAA0B;;;uBAnDe,gBAAgB;AAGnE,2BAA2B;IAC9B5B,IAAI,EAAE,cAAc;IACpBC,KAAK,EAAE,qBAAqB;IAC5BC,MAAM,EAAE,sBAAsB;IAC9BC,cAAc,EAAE,8BAA8B;IAC9CC,WAAW,EAAE,2BAA2B;IACxCC,YAAY,EAAE,4BAA4B;IAC1CC,QAAQ,EAAE;AACd,CAAC;AACD,MAAMC,iBAAiB,GAAA,WAAA,OAAGZ,oBAAA,EAAA,WAAA,MAAA;IAAA;IAAA;CAWzB,CAAC;AACF;;CAEA,GAAI,MAAMa,SAAS,GAAA,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AAE8B,SAAS,CAAC;IAC3G;IACA,IAAIH,KAAK,CAAC1B,cAAc,EAAE;QACtB,oDAAA;QACA0B,KAAK,CAAC1B,cAAc,CAAC6B,SAAS,OAAGpC,mBAAY,EAACmC,MAAM,CAAC5B,cAAc,EAAE0B,KAAK,CAACQ,eAAe,IAAIN,MAAM,CAACnB,QAAQ,EAAE,CAACiB,KAAK,CAACxB,YAAY,IAAI0B,MAAM,CAACrB,0BAA0B,EAAEmB,KAAK,CAAC1B,cAAc,EAAE6B,SAAS,CAAC;IAC7M;IACA,OAAOH,KAAK;AAChB,CAAC"}
@@ -72,14 +72,12 @@ const useListItemStyles_unstable = (state)=>{
72
72
  // eslint-disable-next-line react-hooks/immutability
73
73
  state.root.className = (0, _react.mergeClasses)(listItemClassNames.root, rootBaseStyles, (state.selectable || state.navigable) && styles.rootClickable, state.selected && styles.rootSelected, state.root.className);
74
74
  if (state.header) {
75
- var _state_header;
76
75
  // eslint-disable-next-line react-hooks/immutability
77
- state.header.className = (0, _react.mergeClasses)(state.truncateHeader && styles.truncate, (_state_header = state.header) === null || _state_header === void 0 ? void 0 : _state_header.className);
76
+ state.header.className = (0, _react.mergeClasses)(state.truncateHeader && styles.truncate, state.header?.className);
78
77
  }
79
78
  if (state.contentWrapper) {
80
- var _state_contentWrapper;
81
79
  // eslint-disable-next-line react-hooks/immutability
82
- state.contentWrapper.className = (0, _react.mergeClasses)(styles.contentWrapper, state.truncateContent && styles.truncate, !state.contentMedia && styles.contentWrapperWithoutMedia, (_state_contentWrapper = state.contentWrapper) === null || _state_contentWrapper === void 0 ? void 0 : _state_contentWrapper.className);
80
+ state.contentWrapper.className = (0, _react.mergeClasses)(styles.contentWrapper, state.truncateContent && styles.truncate, !state.contentMedia && styles.contentWrapperWithoutMedia, state.contentWrapper?.className);
83
81
  }
84
82
  return state;
85
83
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/List/ListItem/useListItemStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { makeStyles, makeResetStyles, mergeClasses } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport type { ListItemSlots, ListItemState } from './ListItem.types';\nimport { tokens } from '@fluentui/react-theme';\n\nexport const listItemClassNames: SlotClassNames<ListItemSlots> = {\n root: 'fui-ListItem',\n media: 'fui-ListItem__media',\n header: 'fui-ListItem__header',\n contentWrapper: 'fui-ListItem__contentWrapper',\n headerMedia: 'fui-ListItem__headerMedia',\n contentMedia: 'fui-ListItem__contentMedia',\n endMedia: 'fui-ListItem__endMedia',\n};\n\nconst useRootBaseStyles = makeResetStyles({\n padding: '0 10px',\n margin: 0,\n textIndent: 0,\n listStyleType: 'none',\n ...createCustomFocusIndicatorStyle(\n {\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium,\n },\n { selector: 'focus' },\n ),\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n contentWrapper: {\n fontSize: tokens.fontSizeBase200,\n },\n\n // The content should go all the way to the end if the content media is not present\n contentWrapperWithoutMedia: {\n gridColumnEnd: 4,\n },\n truncate: {\n overflow: 'hidden',\n textWrap: 'nowrap',\n textOverflow: 'ellipsis',\n },\n rootSelected: {\n backgroundColor: tokens.colorNeutralBackground1Selected,\n },\n rootClickable: {\n cursor: 'pointer',\n\n '&:hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover,\n },\n },\n});\n\n/**\n * Apply styling to the ListItem slots based on the state\n */\nexport const useListItemStyles_unstable = (state: ListItemState): ListItemState => {\n const rootBaseStyles = useRootBaseStyles();\n const styles = useStyles();\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n listItemClassNames.root,\n rootBaseStyles,\n (state.selectable || state.navigable) && styles.rootClickable,\n state.selected && styles.rootSelected,\n state.root.className,\n );\n\n if (state.header) {\n // eslint-disable-next-line react-hooks/immutability\n state.header.className = mergeClasses(state.truncateHeader && styles.truncate, state.header?.className);\n }\n\n if (state.contentWrapper) {\n // eslint-disable-next-line react-hooks/immutability\n state.contentWrapper.className = mergeClasses(\n styles.contentWrapper,\n state.truncateContent && styles.truncate,\n !state.contentMedia && styles.contentWrapperWithoutMedia,\n state.contentWrapper?.className,\n );\n }\n\n return state;\n};\n"],"names":["makeStyles","makeResetStyles","mergeClasses","createCustomFocusIndicatorStyle","tokens","listItemClassNames","root","media","header","contentWrapper","headerMedia","contentMedia","endMedia","useRootBaseStyles","padding","margin","textIndent","listStyleType","outline","strokeWidthThick","colorStrokeFocus2","borderRadius","borderRadiusMedium","selector","useStyles","fontSize","fontSizeBase200","contentWrapperWithoutMedia","gridColumnEnd","truncate","overflow","textWrap","textOverflow","rootSelected","backgroundColor","colorNeutralBackground1Selected","rootClickable","cursor","colorNeutralBackground1Hover","useListItemStyles_unstable","state","rootBaseStyles","styles","className","selectable","navigable","selected","truncateHeader","truncateContent"],"mappings":"AAAA;;;;;;;;;;;;QAQaK;;;;eAwDAkC;;;uBA7D6C,iBAAiB;8BAC3B,0BAA0B;4BAEnD,wBAAwB;AAExC,2BAA0D;IAC/DjC,MAAM;IACNC,OAAO;IACPC,QAAQ;IACRC,gBAAgB;IAChBC,aAAa;IACbC,cAAc;IACdC,UAAU;AACZ,EAAE;AAEF,MAAMC,oBAAoBZ,0BAAAA,EAAgB;IACxCa,SAAS;IACTC,QAAQ;IACRC,YAAY;IACZC,eAAe;IACf,OAAGd,6CAAAA,EACD;QACEe,SAAS,GAAGd,kBAAAA,CAAOe,gBAAgB,CAAC,OAAO,EAAEf,kBAAAA,CAAOgB,iBAAiB,EAAE;QACvEC,cAAcjB,kBAAAA,CAAOkB,kBAAkB;IACzC,GACA;QAAEC,UAAU;IAAQ,EACrB;AACH;AAEA;;CAEC,GACD,MAAMC,gBAAYxB,iBAAAA,EAAW;IAC3BS,gBAAgB;QACdgB,UAAUrB,kBAAAA,CAAOsB,eAAe;IAClC;IA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../src/components/List/ListItem/useListItemStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { makeStyles, makeResetStyles, mergeClasses } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport type { ListItemSlots, ListItemState } from './ListItem.types';\nimport { tokens } from '@fluentui/react-theme';\n\nexport const listItemClassNames: SlotClassNames<ListItemSlots> = {\n root: 'fui-ListItem',\n media: 'fui-ListItem__media',\n header: 'fui-ListItem__header',\n contentWrapper: 'fui-ListItem__contentWrapper',\n headerMedia: 'fui-ListItem__headerMedia',\n contentMedia: 'fui-ListItem__contentMedia',\n endMedia: 'fui-ListItem__endMedia',\n};\n\nconst useRootBaseStyles = makeResetStyles({\n padding: '0 10px',\n margin: 0,\n textIndent: 0,\n listStyleType: 'none',\n ...createCustomFocusIndicatorStyle(\n {\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium,\n },\n { selector: 'focus' },\n ),\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n contentWrapper: {\n fontSize: tokens.fontSizeBase200,\n },\n\n // The content should go all the way to the end if the content media is not present\n contentWrapperWithoutMedia: {\n gridColumnEnd: 4,\n },\n truncate: {\n overflow: 'hidden',\n textWrap: 'nowrap',\n textOverflow: 'ellipsis',\n },\n rootSelected: {\n backgroundColor: tokens.colorNeutralBackground1Selected,\n },\n rootClickable: {\n cursor: 'pointer',\n\n '&:hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover,\n },\n },\n});\n\n/**\n * Apply styling to the ListItem slots based on the state\n */\nexport const useListItemStyles_unstable = (state: ListItemState): ListItemState => {\n const rootBaseStyles = useRootBaseStyles();\n const styles = useStyles();\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n listItemClassNames.root,\n rootBaseStyles,\n (state.selectable || state.navigable) && styles.rootClickable,\n state.selected && styles.rootSelected,\n state.root.className,\n );\n\n if (state.header) {\n // eslint-disable-next-line react-hooks/immutability\n state.header.className = mergeClasses(state.truncateHeader && styles.truncate, state.header?.className);\n }\n\n if (state.contentWrapper) {\n // eslint-disable-next-line react-hooks/immutability\n state.contentWrapper.className = mergeClasses(\n styles.contentWrapper,\n state.truncateContent && styles.truncate,\n !state.contentMedia && styles.contentWrapperWithoutMedia,\n state.contentWrapper?.className,\n );\n }\n\n return state;\n};\n"],"names":["makeStyles","makeResetStyles","mergeClasses","createCustomFocusIndicatorStyle","tokens","listItemClassNames","root","media","header","contentWrapper","headerMedia","contentMedia","endMedia","useRootBaseStyles","padding","margin","textIndent","listStyleType","outline","strokeWidthThick","colorStrokeFocus2","borderRadius","borderRadiusMedium","selector","useStyles","fontSize","fontSizeBase200","contentWrapperWithoutMedia","gridColumnEnd","truncate","overflow","textWrap","textOverflow","rootSelected","backgroundColor","colorNeutralBackground1Selected","rootClickable","cursor","colorNeutralBackground1Hover","useListItemStyles_unstable","state","rootBaseStyles","styles","className","selectable","navigable","selected","truncateHeader","truncateContent"],"mappings":"AAAA;;;;;;;;;;;;QAQaK;;;;eAwDAkC;;;uBA7D6C,iBAAiB;8BAC3B,0BAA0B;4BAEnD,wBAAwB;AAExC,2BAA0D;IAC/DjC,MAAM;IACNC,OAAO;IACPC,QAAQ;IACRC,gBAAgB;IAChBC,aAAa;IACbC,cAAc;IACdC,UAAU;AACZ,EAAE;AAEF,MAAMC,wBAAoBZ,sBAAAA,EAAgB;IACxCa,SAAS;IACTC,QAAQ;IACRC,YAAY;IACZC,eAAe;IACf,OAAGd,6CAAAA,EACD;QACEe,SAAS,GAAGd,kBAAAA,CAAOe,gBAAgB,CAAC,OAAO,EAAEf,kBAAAA,CAAOgB,iBAAiB,EAAE;QACvEC,cAAcjB,kBAAAA,CAAOkB,kBAAkB;IACzC,GACA;QAAEC,UAAU;IAAQ,EACrB;AACH;AAEA;;CAEC,GACD,MAAMC,YAAYxB,qBAAAA,EAAW;IAC3BS,gBAAgB;QACdgB,UAAUrB,kBAAAA,CAAOsB,eAAe;IAClC;IAEA,mFAAmF;IACnFC,4BAA4B;QAC1BC,eAAe;IACjB;IACAC,UAAU;QACRC,UAAU;QACVC,UAAU;QACVC,cAAc;IAChB;IACAC,cAAc;QACZC,iBAAiB9B,kBAAAA,CAAO+B,+BAA+B;IACzD;IACAC,eAAe;QACbC,QAAQ;QAER,WAAW;YACTH,iBAAiB9B,kBAAAA,CAAOkC,4BAA4B;QACtD;IACF;AACF;AAKO,mCAAmC,CAACE;IACzC,MAAMC,iBAAiB5B;IACvB,MAAM6B,SAASlB;IAEf,oDAAoD;IACpDgB,MAAMlC,IAAI,CAACqC,SAAS,OAAGzC,mBAAAA,EACrBG,mBAAmBC,IAAI,EACvBmC,gBACCD,CAAAA,MAAMI,UAAU,IAAIJ,MAAMK,SAAAA,AAAQ,KAAMH,OAAON,aAAa,EAC7DI,MAAMM,QAAQ,IAAIJ,OAAOT,YAAY,EACrCO,MAAMlC,IAAI,CAACqC,SAAS;IAGtB,IAAIH,MAAMhC,MAAM,EAAE;QAChB,oDAAoD;QACpDgC,MAAMhC,MAAM,CAACmC,SAAS,OAAGzC,mBAAAA,EAAasC,MAAMO,cAAc,IAAIL,OAAOb,QAAQ,EAAEW,MAAMhC,MAAM,EAAEmC;IAC/F;IAEA,IAAIH,MAAM/B,cAAc,EAAE;QACxB,oDAAoD;QACpD+B,MAAM/B,cAAc,CAACkC,SAAS,GAAGzC,uBAAAA,EAC/BwC,OAAOjC,cAAc,EACrB+B,MAAMQ,eAAe,IAAIN,OAAOb,QAAQ,EACxC,CAACW,MAAM7B,YAAY,IAAI+B,OAAOf,0BAA0B,EACxDa,MAAM/B,cAAc,EAAEkC;IAE1B;IAEA,OAAOH;AACT,EAAE"}
@@ -27,7 +27,7 @@ function useListSelection(options = {
27
27
  selectedItems,
28
28
  onSelectionChange: (e, data)=>{
29
29
  setSelectedItems(data.selectedItems);
30
- onSelectionChange === null || onSelectionChange === void 0 ? void 0 : onSelectionChange(e, data);
30
+ onSelectionChange?.(e, data);
31
31
  }
32
32
  });
33
33
  const toggleItem = (0, _reactutilities.useEventCallback)((e, itemId)=>selectionMethods.toggleItem(e, itemId));
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/List/hooks/useListSelection.tsx"],"sourcesContent":["'use client';\n\nimport type { SelectionHookParams } from '@fluentui/react-utilities';\nimport { useControllableState, useEventCallback, useSelection } from '@fluentui/react-utilities';\nimport * as React from 'react';\nimport type { ListSelectionState } from './types';\n\nexport function useListSelection(options: SelectionHookParams = { selectionMode: 'multiselect' }): ListSelectionState {\n const { selectionMode, defaultSelectedItems, onSelectionChange } = options;\n\n const [selectedItems, setSelectedItems] = useControllableState({\n state: options.selectedItems,\n defaultState: defaultSelectedItems,\n initialState: [],\n });\n\n const [selected, selectionMethods] = useSelection({\n selectionMode,\n defaultSelectedItems,\n selectedItems,\n onSelectionChange: (e, data) => {\n setSelectedItems(data.selectedItems);\n onSelectionChange?.(e, data);\n },\n });\n\n const toggleItem: ListSelectionState['toggleItem'] = useEventCallback((e, itemId) =>\n selectionMethods.toggleItem(e, itemId),\n );\n\n const toggleAllItems: ListSelectionState['toggleAllItems'] = useEventCallback((e, itemIds) => {\n selectionMethods.toggleAllItems(e, itemIds);\n });\n\n const deselectItem: ListSelectionState['deselectItem'] = useEventCallback((e, itemId: string | number) =>\n selectionMethods.deselectItem(e, itemId),\n );\n\n const selectItem: ListSelectionState['selectItem'] = useEventCallback((e, itemId: string | number) =>\n selectionMethods.selectItem(e, itemId),\n );\n\n const clearSelection: ListSelectionState['clearSelection'] = useEventCallback(e => selectionMethods.clearItems(e));\n\n const selectedArray = React.useMemo(() => Array.from(selected), [selected]);\n\n return {\n selectedItems: selectedArray,\n toggleItem,\n toggleAllItems,\n deselectItem,\n selectItem,\n setSelectedItems,\n isSelected: (id: string | number) => selectionMethods.isSelected(id),\n clearSelection,\n };\n}\n"],"names":["useControllableState","useEventCallback","useSelection","React","useListSelection","options","selectionMode","defaultSelectedItems","onSelectionChange","selectedItems","setSelectedItems","state","defaultState","initialState","selected","selectionMethods","e","data","toggleItem","itemId","toggleAllItems","itemIds","deselectItem","selectItem","clearSelection","clearItems","selectedArray","useMemo","Array","from","isSelected","id"],"mappings":"AAAA;;;;;+BAOgBI;;;;;;;gCAJqD,4BAA4B;iEAC1E,QAAQ;AAGxB,0BAA0BC,UAA+B;IAAEC,eAAe;AAAc,CAAC;IAC9F,MAAM,EAAEA,aAAa,EAAEC,oBAAoB,EAAEC,iBAAiB,EAAE,GAAGH;IAEnE,MAAM,CAACI,eAAeC,iBAAiB,GAAGV,wCAAAA,EAAqB;QAC7DW,OAAON,QAAQI,aAAa;QAC5BG,cAAcL;QACdM,cAAc,EAAE;IAClB;IAEA,MAAM,CAACC,UAAUC,iBAAiB,OAAGb,4BAAAA,EAAa;QAChDI;QACAC;QACAE;QACAD,mBAAmB,CAACQ,GAAGC;YACrBP,iBAAiBO,KAAKR,aAAa;YACnCD,sBAAAA,QAAAA,sBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,kBAAoBQ,GAAGC;QACzB;IACF;IAEA,MAAMC,iBAA+CjB,gCAAAA,EAAiB,CAACe,GAAGG,SACxEJ,iBAAiBG,UAAU,CAACF,GAAGG;IAGjC,MAAMC,qBAAuDnB,gCAAAA,EAAiB,CAACe,GAAGK;QAChFN,iBAAiBK,cAAc,CAACJ,GAAGK;IACrC;IAEA,MAAMC,mBAAmDrB,gCAAAA,EAAiB,CAACe,GAAGG,SAC5EJ,iBAAiBO,YAAY,CAACN,GAAGG;IAGnC,MAAMI,iBAA+CtB,gCAAAA,EAAiB,CAACe,GAAGG,SACxEJ,iBAAiBQ,UAAU,CAACP,GAAGG;IAGjC,MAAMK,qBAAuDvB,gCAAAA,EAAiBe,CAAAA,IAAKD,iBAAiBU,UAAU,CAACT;IAE/G,MAAMU,gBAAgBvB,OAAMwB,OAAO,CAAC,IAAMC,MAAMC,IAAI,CAACf,WAAW;QAACA;KAAS;IAE1E,OAAO;QACLL,eAAeiB;QACfR;QACAE;QACAE;QACAC;QACAb;QACAoB,YAAY,CAACC,KAAwBhB,iBAAiBe,UAAU,CAACC;QACjEP;IACF;AACF"}
1
+ {"version":3,"sources":["../../../../src/components/List/hooks/useListSelection.tsx"],"sourcesContent":["'use client';\n\nimport type { SelectionHookParams } from '@fluentui/react-utilities';\nimport { useControllableState, useEventCallback, useSelection } from '@fluentui/react-utilities';\nimport * as React from 'react';\nimport type { ListSelectionState } from './types';\n\nexport function useListSelection(options: SelectionHookParams = { selectionMode: 'multiselect' }): ListSelectionState {\n const { selectionMode, defaultSelectedItems, onSelectionChange } = options;\n\n const [selectedItems, setSelectedItems] = useControllableState({\n state: options.selectedItems,\n defaultState: defaultSelectedItems,\n initialState: [],\n });\n\n const [selected, selectionMethods] = useSelection({\n selectionMode,\n defaultSelectedItems,\n selectedItems,\n onSelectionChange: (e, data) => {\n setSelectedItems(data.selectedItems);\n onSelectionChange?.(e, data);\n },\n });\n\n const toggleItem: ListSelectionState['toggleItem'] = useEventCallback((e, itemId) =>\n selectionMethods.toggleItem(e, itemId),\n );\n\n const toggleAllItems: ListSelectionState['toggleAllItems'] = useEventCallback((e, itemIds) => {\n selectionMethods.toggleAllItems(e, itemIds);\n });\n\n const deselectItem: ListSelectionState['deselectItem'] = useEventCallback((e, itemId: string | number) =>\n selectionMethods.deselectItem(e, itemId),\n );\n\n const selectItem: ListSelectionState['selectItem'] = useEventCallback((e, itemId: string | number) =>\n selectionMethods.selectItem(e, itemId),\n );\n\n const clearSelection: ListSelectionState['clearSelection'] = useEventCallback(e => selectionMethods.clearItems(e));\n\n const selectedArray = React.useMemo(() => Array.from(selected), [selected]);\n\n return {\n selectedItems: selectedArray,\n toggleItem,\n toggleAllItems,\n deselectItem,\n selectItem,\n setSelectedItems,\n isSelected: (id: string | number) => selectionMethods.isSelected(id),\n clearSelection,\n };\n}\n"],"names":["useControllableState","useEventCallback","useSelection","React","useListSelection","options","selectionMode","defaultSelectedItems","onSelectionChange","selectedItems","setSelectedItems","state","defaultState","initialState","selected","selectionMethods","e","data","toggleItem","itemId","toggleAllItems","itemIds","deselectItem","selectItem","clearSelection","clearItems","selectedArray","useMemo","Array","from","isSelected","id"],"mappings":"AAAA;;;;;+BAOgBI;;;;;;;gCAJqD,4BAA4B;iEAC1E,QAAQ;AAGxB,0BAA0BC,UAA+B;IAAEC,eAAe;AAAc,CAAC;IAC9F,MAAM,EAAEA,aAAa,EAAEC,oBAAoB,EAAEC,iBAAiB,EAAE,GAAGH;IAEnE,MAAM,CAACI,eAAeC,iBAAiB,GAAGV,wCAAAA,EAAqB;QAC7DW,OAAON,QAAQI,aAAa;QAC5BG,cAAcL;QACdM,cAAc,EAAE;IAClB;IAEA,MAAM,CAACC,UAAUC,iBAAiB,OAAGb,4BAAAA,EAAa;QAChDI;QACAC;QACAE;QACAD,mBAAmB,CAACQ,GAAGC;YACrBP,iBAAiBO,KAAKR,aAAa;YACnCD,oBAAoBQ,GAAGC;QACzB;IACF;IAEA,MAAMC,iBAA+CjB,gCAAAA,EAAiB,CAACe,GAAGG,SACxEJ,iBAAiBG,UAAU,CAACF,GAAGG;IAGjC,MAAMC,qBAAuDnB,gCAAAA,EAAiB,CAACe,GAAGK;QAChFN,iBAAiBK,cAAc,CAACJ,GAAGK;IACrC;IAEA,MAAMC,mBAAmDrB,gCAAAA,EAAiB,CAACe,GAAGG,SAC5EJ,iBAAiBO,YAAY,CAACN,GAAGG;IAGnC,MAAMI,aAA+CtB,oCAAAA,EAAiB,CAACe,GAAGG,SACxEJ,iBAAiBQ,UAAU,CAACP,GAAGG;IAGjC,MAAMK,qBAAuDvB,gCAAAA,EAAiBe,CAAAA,IAAKD,iBAAiBU,UAAU,CAACT;IAE/G,MAAMU,gBAAgBvB,OAAMwB,OAAO,CAAC,IAAMC,MAAMC,IAAI,CAACf,WAAW;QAACA;KAAS;IAE1E,OAAO;QACLL,eAAeiB;QACfR;QACAE;QACAE;QACAC;QACAb;QACAoB,YAAY,CAACC,KAAwBhB,iBAAiBe,UAAU,CAACC;QACjEP;IACF;AACF"}
@@ -30,7 +30,7 @@ const Video = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
30
30
  // this is a workaround for a potential memory leak in Chromium which retains a Detached HTMLVideoElement when <video autoplay> is unmounted
31
31
  // https://bugs.chromium.org/p/chromium/issues/detail?id=969049
32
32
  return ()=>{
33
- if (videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) {
33
+ if (videoRef?.current) {
34
34
  // we want to perform the cleanup on the latest element rendered
35
35
  // eslint-disable-next-line react-hooks/exhaustive-deps
36
36
  videoRef.current.src = '';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Video/Video.tsx"],"sourcesContent":["'use client';\n\nimport { mergeClasses, useMergedRefs } from '@fluentui/react-components';\nimport * as React from 'react';\nimport { useVideoStyles } from './Video.styles';\n\nexport const videoClassName = 'fui-Video';\n\n/**\n * Video component props\n */\nexport interface VideoProps extends React.VideoHTMLAttributes<HTMLVideoElement> {\n /**\n * The source URL of the video\n */\n src: string;\n\n /**\n * Whether the video should start playing automatically\n * @default false\n */\n autoPlay?: boolean;\n\n /**\n * Whether the video should display controls\n * @default true\n */\n controls?: boolean;\n\n /**\n * Whether the video should loop\n */\n loop?: boolean;\n\n /**\n * Whether the video should be muted\n */\n muted?: boolean;\n\n /**\n * The URL of an image to display while the video is loading\n */\n poster?: string;\n}\n\nexport const Video = React.forwardRef<HTMLVideoElement, VideoProps>((props, ref) => {\n const { className, muted, ...rest } = props;\n\n const videoRef = React.useRef<HTMLVideoElement>(null);\n\n const classes = useVideoStyles();\n React.useEffect(() => {\n // this is a workaround for a potential memory leak in Chromium which retains a Detached HTMLVideoElement when <video autoplay> is unmounted\n // https://bugs.chromium.org/p/chromium/issues/detail?id=969049\n return () => {\n if (videoRef?.current) {\n // we want to perform the cleanup on the latest element rendered\n // eslint-disable-next-line react-hooks/exhaustive-deps\n videoRef.current.src = '';\n }\n };\n }, [videoRef]);\n\n React.useEffect(() => {\n // React doesn't guarantee that props will be set:\n // https://github.com/facebook/react/issues/10389\n if (videoRef.current) {\n videoRef.current.muted = !!muted;\n }\n }, [muted]);\n\n return (\n <video\n ref={useMergedRefs(ref, videoRef) as React.Ref<HTMLVideoElement>}\n role=\"application\"\n className={mergeClasses(videoClassName, classes.root, className)}\n controls={true}\n autoPlay={false}\n muted={muted}\n {...rest}\n />\n );\n});\n\nVideo.displayName = 'Video';\n"],"names":["mergeClasses","useMergedRefs","React","useVideoStyles","videoClassName","Video","forwardRef","props","ref","className","muted","rest","videoRef","useRef","classes","useEffect","current","src","video","role","root","controls","autoPlay","displayName"],"mappings":"AAAA;;;;;;;;;;;;QA6CaK;;;;;;;;iCA3C+B,6BAA6B;iEAClD,QAAQ;6BACA,oBAAiB;AAEzC,MAAMD,iBAAiB,YAAY;AAuCnC,cAAMC,WAAAA,GAAQH,OAAMI,UAAU,CAA+B,CAACC,OAAOC;IAC1E,MAAM,EAAEC,SAAS,EAAEC,KAAK,EAAE,GAAGC,MAAM,GAAGJ;IAEtC,MAAMK,WAAWV,OAAMW,MAAM,CAAmB;IAEhD,MAAMC,cAAUX,2BAAAA;IAChBD,OAAMa,SAAS,CAAC;QACd,4IAA4I;QAC5I,+DAA+D;QAC/D,OAAO;YACL,IAAIH,aAAAA,QAAAA,aAAAA,KAAAA,IAAAA,KAAAA,IAAAA,SAAUI,OAAO,EAAE;gBACrB,gEAAgE;gBAChE,uDAAuD;gBACvDJ,SAASI,OAAO,CAACC,GAAG,GAAG;YACzB;QACF;IACF,GAAG;QAACL;KAAS;IAEbV,OAAMa,SAAS,CAAC;QACd,kDAAkD;QAClD,iDAAiD;QACjD,IAAIH,SAASI,OAAO,EAAE;YACpBJ,SAASI,OAAO,CAACN,KAAK,GAAG,CAAC,CAACA;QAC7B;IACF,GAAG;QAACA;KAAM;IAEV,OAAA,WAAA,GACE,OAAA,aAAA,CAACQ,SAAAA;QACCV,SAAKP,8BAAAA,EAAcO,KAAKI;QACxBO,MAAK;QACLV,eAAWT,6BAAAA,EAAaI,gBAAgBU,QAAQM,IAAI,EAAEX;QACtDY,UAAU;QACVC,UAAU;QACVZ,OAAOA;QACN,GAAGC,IAAI;;AAGd,GAAG;AAEHN,MAAMkB,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/Video/Video.tsx"],"sourcesContent":["'use client';\n\nimport { mergeClasses, useMergedRefs } from '@fluentui/react-components';\nimport * as React from 'react';\nimport { useVideoStyles } from './Video.styles';\n\nexport const videoClassName = 'fui-Video';\n\n/**\n * Video component props\n */\nexport interface VideoProps extends React.VideoHTMLAttributes<HTMLVideoElement> {\n /**\n * The source URL of the video\n */\n src: string;\n\n /**\n * Whether the video should start playing automatically\n * @default false\n */\n autoPlay?: boolean;\n\n /**\n * Whether the video should display controls\n * @default true\n */\n controls?: boolean;\n\n /**\n * Whether the video should loop\n */\n loop?: boolean;\n\n /**\n * Whether the video should be muted\n */\n muted?: boolean;\n\n /**\n * The URL of an image to display while the video is loading\n */\n poster?: string;\n}\n\nexport const Video = React.forwardRef<HTMLVideoElement, VideoProps>((props, ref) => {\n const { className, muted, ...rest } = props;\n\n const videoRef = React.useRef<HTMLVideoElement>(null);\n\n const classes = useVideoStyles();\n React.useEffect(() => {\n // this is a workaround for a potential memory leak in Chromium which retains a Detached HTMLVideoElement when <video autoplay> is unmounted\n // https://bugs.chromium.org/p/chromium/issues/detail?id=969049\n return () => {\n if (videoRef?.current) {\n // we want to perform the cleanup on the latest element rendered\n // eslint-disable-next-line react-hooks/exhaustive-deps\n videoRef.current.src = '';\n }\n };\n }, [videoRef]);\n\n React.useEffect(() => {\n // React doesn't guarantee that props will be set:\n // https://github.com/facebook/react/issues/10389\n if (videoRef.current) {\n videoRef.current.muted = !!muted;\n }\n }, [muted]);\n\n return (\n <video\n ref={useMergedRefs(ref, videoRef) as React.Ref<HTMLVideoElement>}\n role=\"application\"\n className={mergeClasses(videoClassName, classes.root, className)}\n controls={true}\n autoPlay={false}\n muted={muted}\n {...rest}\n />\n );\n});\n\nVideo.displayName = 'Video';\n"],"names":["mergeClasses","useMergedRefs","React","useVideoStyles","videoClassName","Video","forwardRef","props","ref","className","muted","rest","videoRef","useRef","classes","useEffect","current","src","video","role","root","controls","autoPlay","displayName"],"mappings":"AAAA;;;;;;;;;;;;QA6CaK;;;;;;;;iCA3C+B,6BAA6B;iEAClD,QAAQ;6BACA,oBAAiB;AAEzC,MAAMD,iBAAiB,YAAY;AAuCnC,cAAMC,WAAAA,GAAQH,OAAMI,UAAU,CAA+B,CAACC,OAAOC;IAC1E,MAAM,EAAEC,SAAS,EAAEC,KAAK,EAAE,GAAGC,MAAM,GAAGJ;IAEtC,MAAMK,WAAWV,OAAMW,MAAM,CAAmB;IAEhD,MAAMC,cAAUX,2BAAAA;IAChBD,OAAMa,SAAS,CAAC;QACd,4IAA4I;QAC5I,+DAA+D;QAC/D,OAAO;YACL,IAAIH,UAAUI,SAAS;gBACrB,gEAAgE;gBAChE,uDAAuD;gBACvDJ,SAASI,OAAO,CAACC,GAAG,GAAG;YACzB;QACF;IACF,GAAG;QAACL;KAAS;IAEbV,OAAMa,SAAS,CAAC;QACd,kDAAkD;QAClD,iDAAiD;QACjD,IAAIH,SAASI,OAAO,EAAE;YACpBJ,SAASI,OAAO,CAACN,KAAK,GAAG,CAAC,CAACA;QAC7B;IACF,GAAG;QAACA;KAAM;IAEV,OAAA,WAAA,GACE,OAAA,aAAA,CAACQ,SAAAA;QACCV,SAAKP,8BAAAA,EAAcO,KAAKI;QACxBO,MAAK;QACLV,eAAWT,6BAAAA,EAAaI,gBAAgBU,QAAQM,IAAI,EAAEX;QACtDY,UAAU;QACVC,UAAU;QACVZ,OAAOA;QACN,GAAGC,IAAI;;AAGd,GAAG;AAEHN,MAAMkB,WAAW,GAAG"}
package/package.json CHANGED
@@ -1,31 +1,28 @@
1
1
  {
2
2
  "name": "@fluentui/react-migration-v0-v9",
3
- "version": "9.75.2-experimental.css-modules-subpath.20261120-0eb82b7e7e.0",
3
+ "version": "9.75.2-experimental.positioning-engine.20261123-dff30aeb4b.0",
4
4
  "description": "Migration shim components and methods for hybrid v0/v9 applications building on Fluent UI React.",
5
5
  "main": "lib-commonjs/index.cjs",
6
6
  "module": "lib/index.js",
7
7
  "typings": "./dist/index.d.ts",
8
- "sideEffects": [
9
- "**/*.css"
10
- ],
8
+ "sideEffects": false,
11
9
  "repository": {
12
10
  "type": "git",
13
11
  "url": "https://github.com/microsoft/fluentui"
14
12
  },
15
13
  "license": "MIT",
16
14
  "dependencies": {
17
- "@fluentui/react-aria": "9.75.2-experimental.css-modules-subpath.20261120-0eb82b7e7e.0",
18
- "@fluentui/react-components": "9.75.2-experimental.css-modules-subpath.20261120-0eb82b7e7e.0",
19
- "@fluentui/react-context-selector": "9.75.2-experimental.css-modules-subpath.20261120-0eb82b7e7e.0",
15
+ "@fluentui/react-aria": "9.75.2-experimental.positioning-engine.20261123-dff30aeb4b.0",
16
+ "@fluentui/react-components": "9.75.2-experimental.positioning-engine.20261123-dff30aeb4b.0",
17
+ "@fluentui/react-context-selector": "9.75.2-experimental.positioning-engine.20261123-dff30aeb4b.0",
20
18
  "@fluentui/react-icons": "^2.0.245",
21
- "@fluentui/react-jsx-runtime": "9.75.2-experimental.css-modules-subpath.20261120-0eb82b7e7e.0",
22
- "@fluentui/react-shared-contexts": "9.75.2-experimental.css-modules-subpath.20261120-0eb82b7e7e.0",
23
- "@fluentui/react-tabster": "9.75.2-experimental.css-modules-subpath.20261120-0eb82b7e7e.0",
24
- "@fluentui/react-theme": "9.75.2-experimental.css-modules-subpath.20261120-0eb82b7e7e.0",
25
- "@fluentui/react-utilities": "9.75.2-experimental.css-modules-subpath.20261120-0eb82b7e7e.0",
19
+ "@fluentui/react-jsx-runtime": "9.75.2-experimental.positioning-engine.20261123-dff30aeb4b.0",
20
+ "@fluentui/react-shared-contexts": "9.75.2-experimental.positioning-engine.20261123-dff30aeb4b.0",
21
+ "@fluentui/react-tabster": "9.75.2-experimental.positioning-engine.20261123-dff30aeb4b.0",
22
+ "@fluentui/react-theme": "9.75.2-experimental.positioning-engine.20261123-dff30aeb4b.0",
23
+ "@fluentui/react-utilities": "9.75.2-experimental.positioning-engine.20261123-dff30aeb4b.0",
26
24
  "@griffel/react": "^1.5.32",
27
- "@swc/helpers": "^0.5.1",
28
- "clsx": "^2.1.1"
25
+ "@swc/helpers": "^0.5.1"
29
26
  },
30
27
  "peerDependencies": {
31
28
  "@fluentui/react-northstar": "^0.66.5",
@@ -49,16 +46,6 @@
49
46
  "default": "./lib-commonjs/index.cjs"
50
47
  }
51
48
  },
52
- "./css-modules": {
53
- "import": {
54
- "types": "./dist/css-modules.d.ts",
55
- "default": "./lib/css-modules/index.js"
56
- },
57
- "require": {
58
- "types": "./dist/css-modules.d.cts",
59
- "default": "./lib-commonjs/css-modules/index.cjs"
60
- }
61
- },
62
49
  "./package.json": "./package.json"
63
50
  },
64
51
  "files": [
@@ -1,2 +0,0 @@
1
- // Generated by the build: "./css-modules" has the same API as the root entry.
2
- export * from './index.cjs';
@@ -1,2 +0,0 @@
1
- // Generated by the build: "./css-modules" has the same API as the root entry.
2
- export * from './index.js';