@salesforce/design-system-react 11.0.0-alpha.6 → 11.0.0-alpha.7

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 (371) hide show
  1. package/dist/cjs/components/accordion/panel.cjs +1 -1
  2. package/dist/cjs/components/accordion/panel.cjs.map +1 -1
  3. package/dist/cjs/components/badge/index.cjs +1 -1
  4. package/dist/cjs/components/badge/index.cjs.map +1 -1
  5. package/dist/cjs/components/builder-header/check-props.cjs +2 -0
  6. package/dist/cjs/components/builder-header/check-props.cjs.map +1 -0
  7. package/dist/cjs/components/builder-header/component.cjs +2 -0
  8. package/dist/cjs/components/builder-header/component.cjs.map +1 -0
  9. package/dist/cjs/components/builder-header/toolbar.cjs +1 -1
  10. package/dist/cjs/components/builder-header/toolbar.cjs.map +1 -1
  11. package/dist/cjs/components/carousel/check-props.cjs +2 -0
  12. package/dist/cjs/components/carousel/check-props.cjs.map +1 -0
  13. package/dist/cjs/components/carousel/component.cjs +2 -0
  14. package/dist/cjs/components/carousel/component.cjs.map +1 -0
  15. package/dist/cjs/components/carousel/index.cjs +1 -1
  16. package/dist/cjs/components/carousel/index.cjs.map +1 -1
  17. package/dist/cjs/components/carousel/private/carousel-item.cjs +1 -1
  18. package/dist/cjs/components/carousel/private/carousel-item.cjs.map +1 -1
  19. package/dist/cjs/components/checkbox/check-props.cjs +2 -0
  20. package/dist/cjs/components/checkbox/check-props.cjs.map +1 -0
  21. package/dist/cjs/components/checkbox/component.cjs +2 -0
  22. package/dist/cjs/components/checkbox/component.cjs.map +1 -0
  23. package/dist/cjs/components/checkbox/index.cjs +1 -1
  24. package/dist/cjs/components/checkbox/index.cjs.map +1 -1
  25. package/dist/cjs/components/combobox/check-props.cjs +1 -1
  26. package/dist/cjs/components/combobox/check-props.cjs.map +1 -1
  27. package/dist/cjs/components/combobox/combobox.cjs +1 -1
  28. package/dist/cjs/components/combobox/combobox.cjs.map +1 -1
  29. package/dist/cjs/components/combobox/index.cjs.map +1 -1
  30. package/dist/cjs/components/combobox/private/menu.cjs +1 -1
  31. package/dist/cjs/components/combobox/private/menu.cjs.map +1 -1
  32. package/dist/cjs/components/dynamic-icon/index.cjs +1 -1
  33. package/dist/cjs/components/dynamic-icon/index.cjs.map +1 -1
  34. package/dist/cjs/components/input/index.cjs +1 -1
  35. package/dist/cjs/components/input/index.cjs.map +1 -1
  36. package/dist/cjs/components/menu-dropdown/check-props.cjs +1 -1
  37. package/dist/cjs/components/menu-dropdown/check-props.cjs.map +1 -1
  38. package/dist/cjs/components/menu-dropdown/index.cjs.map +1 -1
  39. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs +1 -1
  40. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs.map +1 -1
  41. package/dist/cjs/components/page-header/check-props.cjs +2 -0
  42. package/dist/cjs/components/page-header/check-props.cjs.map +1 -0
  43. package/dist/cjs/components/page-header/component.cjs +2 -0
  44. package/dist/cjs/components/page-header/component.cjs.map +1 -0
  45. package/dist/cjs/components/page-header/index.cjs +1 -1
  46. package/dist/cjs/components/page-header/index.cjs.map +1 -1
  47. package/dist/cjs/components/page-header/private/base/index.cjs +1 -1
  48. package/dist/cjs/components/page-header/private/base/index.cjs.map +1 -1
  49. package/dist/cjs/components/page-header/private/controls.cjs +1 -1
  50. package/dist/cjs/components/page-header/private/controls.cjs.map +1 -1
  51. package/dist/cjs/components/page-header/private/object-home/index.cjs +1 -1
  52. package/dist/cjs/components/page-header/private/object-home/index.cjs.map +1 -1
  53. package/dist/cjs/components/page-header/private/record-home/index.cjs +1 -1
  54. package/dist/cjs/components/page-header/private/record-home/index.cjs.map +1 -1
  55. package/dist/cjs/components/page-header/private/related-list/index.cjs +1 -1
  56. package/dist/cjs/components/page-header/private/related-list/index.cjs.map +1 -1
  57. package/dist/cjs/components/popover/popover.cjs +1 -1
  58. package/dist/cjs/components/popover/popover.cjs.map +1 -1
  59. package/dist/cjs/components/progress-indicator/check-props.cjs +1 -1
  60. package/dist/cjs/components/progress-indicator/check-props.cjs.map +1 -1
  61. package/dist/cjs/components/progress-indicator/component.cjs +2 -0
  62. package/dist/cjs/components/progress-indicator/component.cjs.map +1 -0
  63. package/dist/cjs/components/progress-indicator/index.cjs +1 -1
  64. package/dist/cjs/components/progress-indicator/index.cjs.map +1 -1
  65. package/dist/cjs/components/progress-indicator/private/step-vertical.cjs +1 -1
  66. package/dist/cjs/components/progress-indicator/private/step-vertical.cjs.map +1 -1
  67. package/dist/cjs/components/radio/check-props.cjs +2 -0
  68. package/dist/cjs/components/radio/check-props.cjs.map +1 -0
  69. package/dist/cjs/components/radio/component.cjs +2 -0
  70. package/dist/cjs/components/radio/component.cjs.map +1 -0
  71. package/dist/cjs/components/radio/index.cjs +1 -1
  72. package/dist/cjs/components/radio/index.cjs.map +1 -1
  73. package/dist/cjs/components/setup-assistant/check-props.cjs +1 -1
  74. package/dist/cjs/components/setup-assistant/check-props.cjs.map +1 -1
  75. package/dist/cjs/components/setup-assistant/step.cjs +1 -1
  76. package/dist/cjs/components/setup-assistant/step.cjs.map +1 -1
  77. package/dist/cjs/components/simple-data-table/check-props.cjs +1 -1
  78. package/dist/cjs/components/simple-data-table/check-props.cjs.map +1 -1
  79. package/dist/cjs/components/simple-data-table/index.cjs +1 -1
  80. package/dist/cjs/components/simple-data-table/index.cjs.map +1 -1
  81. package/dist/cjs/components/slider/check-props.cjs +2 -0
  82. package/dist/cjs/components/slider/check-props.cjs.map +1 -0
  83. package/dist/cjs/components/slider/component.cjs +2 -0
  84. package/dist/cjs/components/slider/component.cjs.map +1 -0
  85. package/dist/cjs/components/slider/index.cjs +1 -1
  86. package/dist/cjs/components/slider/index.cjs.map +1 -1
  87. package/dist/cjs/components/split-view/check-props.cjs +1 -1
  88. package/dist/cjs/components/split-view/check-props.cjs.map +1 -1
  89. package/dist/cjs/components/split-view/index.cjs +1 -1
  90. package/dist/cjs/components/split-view/index.cjs.map +1 -1
  91. package/dist/cjs/components/split-view/listbox-check-props.cjs +2 -0
  92. package/dist/cjs/components/split-view/listbox-check-props.cjs.map +1 -0
  93. package/dist/cjs/components/split-view/listbox.cjs +1 -1
  94. package/dist/cjs/components/split-view/listbox.cjs.map +1 -1
  95. package/dist/cjs/components/split-view/private/list-item-content.cjs +1 -1
  96. package/dist/cjs/components/split-view/private/list-item-content.cjs.map +1 -1
  97. package/dist/cjs/components/split-view/private/list-item-with-content.cjs +1 -1
  98. package/dist/cjs/components/split-view/private/list-item-with-content.cjs.map +1 -1
  99. package/dist/cjs/components/split-view/private/toggle-button.cjs +1 -1
  100. package/dist/cjs/components/split-view/private/toggle-button.cjs.map +1 -1
  101. package/dist/cjs/components/tabs/panel.cjs.map +1 -1
  102. package/dist/cjs/components/textarea/check-props.cjs +1 -1
  103. package/dist/cjs/components/textarea/check-props.cjs.map +1 -1
  104. package/dist/cjs/components/textarea/index.cjs +1 -1
  105. package/dist/cjs/components/textarea/index.cjs.map +1 -1
  106. package/dist/cjs/components/tree/check-props.cjs +1 -1
  107. package/dist/cjs/components/tree/check-props.cjs.map +1 -1
  108. package/dist/cjs/components/tree/component.cjs +2 -0
  109. package/dist/cjs/components/tree/component.cjs.map +1 -0
  110. package/dist/cjs/components/tree/tree.cjs +1 -1
  111. package/dist/cjs/components/tree/tree.cjs.map +1 -1
  112. package/dist/cjs/components/trial-bar/check-props.cjs +2 -0
  113. package/dist/cjs/components/trial-bar/check-props.cjs.map +1 -0
  114. package/dist/cjs/components/trial-bar/component.cjs +2 -0
  115. package/dist/cjs/components/trial-bar/component.cjs.map +1 -0
  116. package/dist/cjs/components/trial-bar/index.cjs +1 -1
  117. package/dist/cjs/components/trial-bar/index.cjs.map +1 -1
  118. package/dist/cjs/components/utilities/menu-list/index.cjs +1 -1
  119. package/dist/cjs/components/utilities/menu-list/index.cjs.map +1 -1
  120. package/dist/cjs/components/utilities/menu-list/item.cjs +1 -1
  121. package/dist/cjs/components/utilities/menu-list/item.cjs.map +1 -1
  122. package/dist/cjs/components/utilities/utility-icon/index.cjs +1 -1
  123. package/dist/cjs/components/utilities/utility-icon/index.cjs.map +1 -1
  124. package/dist/cjs/components/vertical-navigation/private/item.cjs +1 -1
  125. package/dist/cjs/components/vertical-navigation/private/item.cjs.map +1 -1
  126. package/dist/cjs/components/welcome-mat/check-props.cjs +2 -0
  127. package/dist/cjs/components/welcome-mat/check-props.cjs.map +1 -0
  128. package/dist/cjs/components/welcome-mat/component.cjs +2 -0
  129. package/dist/cjs/components/welcome-mat/component.cjs.map +1 -0
  130. package/dist/cjs/components/welcome-mat/index.cjs +1 -1
  131. package/dist/cjs/components/welcome-mat/index.cjs.map +1 -1
  132. package/dist/cjs/components/welcome-mat/info-badge.cjs +1 -1
  133. package/dist/cjs/components/welcome-mat/info-badge.cjs.map +1 -1
  134. package/dist/cjs/utilities/warning/deprecated-property-value.cjs +2 -0
  135. package/dist/cjs/utilities/warning/deprecated-property-value.cjs.map +1 -0
  136. package/dist/es/components/accordion/panel.js +1 -1
  137. package/dist/es/components/accordion/panel.js.map +1 -1
  138. package/dist/es/components/badge/index.js +6 -5
  139. package/dist/es/components/badge/index.js.map +1 -1
  140. package/dist/es/components/builder-header/check-props.js +13 -0
  141. package/dist/es/components/builder-header/check-props.js.map +1 -0
  142. package/dist/es/components/builder-header/component.js +65 -0
  143. package/dist/es/components/builder-header/component.js.map +1 -0
  144. package/dist/es/components/builder-header/toolbar.js +18 -13
  145. package/dist/es/components/builder-header/toolbar.js.map +1 -1
  146. package/dist/es/components/carousel/check-props.js +13 -0
  147. package/dist/es/components/carousel/check-props.js.map +1 -0
  148. package/dist/es/components/carousel/component.js +27 -0
  149. package/dist/es/components/carousel/component.js.map +1 -0
  150. package/dist/es/components/carousel/index.js +121 -109
  151. package/dist/es/components/carousel/index.js.map +1 -1
  152. package/dist/es/components/carousel/private/carousel-item.js +1 -2
  153. package/dist/es/components/carousel/private/carousel-item.js.map +1 -1
  154. package/dist/es/components/checkbox/check-props.js +14 -0
  155. package/dist/es/components/checkbox/check-props.js.map +1 -0
  156. package/dist/es/components/checkbox/component.js +35 -0
  157. package/dist/es/components/checkbox/component.js.map +1 -0
  158. package/dist/es/components/checkbox/index.js +124 -112
  159. package/dist/es/components/checkbox/index.js.map +1 -1
  160. package/dist/es/components/combobox/check-props.js +1 -1
  161. package/dist/es/components/combobox/check-props.js.map +1 -1
  162. package/dist/es/components/combobox/combobox.js +208 -200
  163. package/dist/es/components/combobox/combobox.js.map +1 -1
  164. package/dist/es/components/combobox/index.js.map +1 -1
  165. package/dist/es/components/combobox/private/menu.js +5 -7
  166. package/dist/es/components/combobox/private/menu.js.map +1 -1
  167. package/dist/es/components/dynamic-icon/index.js +1 -1
  168. package/dist/es/components/dynamic-icon/index.js.map +1 -1
  169. package/dist/es/components/input/index.js +138 -136
  170. package/dist/es/components/input/index.js.map +1 -1
  171. package/dist/es/components/menu-dropdown/check-props.js +1 -1
  172. package/dist/es/components/menu-dropdown/check-props.js.map +1 -1
  173. package/dist/es/components/menu-dropdown/index.js.map +1 -1
  174. package/dist/es/components/menu-dropdown/menu-dropdown.js +192 -185
  175. package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
  176. package/dist/es/components/page-header/check-props.js +31 -0
  177. package/dist/es/components/page-header/check-props.js.map +1 -0
  178. package/dist/es/components/page-header/component.js +35 -0
  179. package/dist/es/components/page-header/component.js.map +1 -0
  180. package/dist/es/components/page-header/index.js +56 -38
  181. package/dist/es/components/page-header/index.js.map +1 -1
  182. package/dist/es/components/page-header/private/base/index.js +1 -1
  183. package/dist/es/components/page-header/private/base/index.js.map +1 -1
  184. package/dist/es/components/page-header/private/controls.js +1 -1
  185. package/dist/es/components/page-header/private/controls.js.map +1 -1
  186. package/dist/es/components/page-header/private/object-home/index.js +4 -4
  187. package/dist/es/components/page-header/private/object-home/index.js.map +1 -1
  188. package/dist/es/components/page-header/private/record-home/index.js +1 -1
  189. package/dist/es/components/page-header/private/record-home/index.js.map +1 -1
  190. package/dist/es/components/page-header/private/related-list/index.js +2 -2
  191. package/dist/es/components/page-header/private/related-list/index.js.map +1 -1
  192. package/dist/es/components/popover/popover.js +130 -130
  193. package/dist/es/components/popover/popover.js.map +1 -1
  194. package/dist/es/components/progress-indicator/check-props.js +11 -8
  195. package/dist/es/components/progress-indicator/check-props.js.map +1 -1
  196. package/dist/es/components/progress-indicator/component.js +35 -0
  197. package/dist/es/components/progress-indicator/component.js.map +1 -0
  198. package/dist/es/components/progress-indicator/index.js +74 -71
  199. package/dist/es/components/progress-indicator/index.js.map +1 -1
  200. package/dist/es/components/progress-indicator/private/step-vertical.js +23 -20
  201. package/dist/es/components/progress-indicator/private/step-vertical.js.map +1 -1
  202. package/dist/es/components/radio/check-props.js +13 -0
  203. package/dist/es/components/radio/check-props.js.map +1 -0
  204. package/dist/es/components/radio/component.js +24 -0
  205. package/dist/es/components/radio/component.js.map +1 -0
  206. package/dist/es/components/radio/index.js +94 -80
  207. package/dist/es/components/radio/index.js.map +1 -1
  208. package/dist/es/components/setup-assistant/check-props.js +12 -7
  209. package/dist/es/components/setup-assistant/check-props.js.map +1 -1
  210. package/dist/es/components/setup-assistant/step.js +7 -7
  211. package/dist/es/components/setup-assistant/step.js.map +1 -1
  212. package/dist/es/components/simple-data-table/check-props.js +1 -1
  213. package/dist/es/components/simple-data-table/check-props.js.map +1 -1
  214. package/dist/es/components/simple-data-table/index.js +17 -10
  215. package/dist/es/components/simple-data-table/index.js.map +1 -1
  216. package/dist/es/components/slider/check-props.js +17 -0
  217. package/dist/es/components/slider/check-props.js.map +1 -0
  218. package/dist/es/components/slider/component.js +35 -0
  219. package/dist/es/components/slider/component.js.map +1 -0
  220. package/dist/es/components/slider/index.js +69 -53
  221. package/dist/es/components/slider/index.js.map +1 -1
  222. package/dist/es/components/split-view/check-props.js +2 -2
  223. package/dist/es/components/split-view/check-props.js.map +1 -1
  224. package/dist/es/components/split-view/index.js +8 -5
  225. package/dist/es/components/split-view/index.js.map +1 -1
  226. package/dist/es/components/split-view/listbox-check-props.js +13 -0
  227. package/dist/es/components/split-view/listbox-check-props.js.map +1 -0
  228. package/dist/es/components/split-view/listbox.js +41 -35
  229. package/dist/es/components/split-view/listbox.js.map +1 -1
  230. package/dist/es/components/split-view/private/list-item-content.js +1 -1
  231. package/dist/es/components/split-view/private/list-item-content.js.map +1 -1
  232. package/dist/es/components/split-view/private/list-item-with-content.js +6 -1
  233. package/dist/es/components/split-view/private/list-item-with-content.js.map +1 -1
  234. package/dist/es/components/split-view/private/toggle-button.js +2 -2
  235. package/dist/es/components/split-view/private/toggle-button.js.map +1 -1
  236. package/dist/es/components/tabs/panel.js.map +1 -1
  237. package/dist/es/components/textarea/check-props.js +11 -10
  238. package/dist/es/components/textarea/check-props.js.map +1 -1
  239. package/dist/es/components/textarea/index.js +59 -47
  240. package/dist/es/components/textarea/index.js.map +1 -1
  241. package/dist/es/components/tree/check-props.js +10 -9
  242. package/dist/es/components/tree/check-props.js.map +1 -1
  243. package/dist/es/components/tree/component.js +25 -0
  244. package/dist/es/components/tree/component.js.map +1 -0
  245. package/dist/es/components/tree/tree.js +76 -74
  246. package/dist/es/components/tree/tree.js.map +1 -1
  247. package/dist/es/components/trial-bar/check-props.js +13 -0
  248. package/dist/es/components/trial-bar/check-props.js.map +1 -0
  249. package/dist/es/components/trial-bar/component.js +24 -0
  250. package/dist/es/components/trial-bar/component.js.map +1 -0
  251. package/dist/es/components/trial-bar/index.js +27 -21
  252. package/dist/es/components/trial-bar/index.js.map +1 -1
  253. package/dist/es/components/utilities/menu-list/index.js +1 -0
  254. package/dist/es/components/utilities/menu-list/index.js.map +1 -1
  255. package/dist/es/components/utilities/menu-list/item.js +5 -3
  256. package/dist/es/components/utilities/menu-list/item.js.map +1 -1
  257. package/dist/es/components/utilities/utility-icon/index.js +2 -1
  258. package/dist/es/components/utilities/utility-icon/index.js.map +1 -1
  259. package/dist/es/components/vertical-navigation/private/item.js +1 -1
  260. package/dist/es/components/vertical-navigation/private/item.js.map +1 -1
  261. package/dist/es/components/welcome-mat/check-props.js +13 -0
  262. package/dist/es/components/welcome-mat/check-props.js.map +1 -0
  263. package/dist/es/components/welcome-mat/component.js +46 -0
  264. package/dist/es/components/welcome-mat/component.js.map +1 -0
  265. package/dist/es/components/welcome-mat/index.js +61 -55
  266. package/dist/es/components/welcome-mat/index.js.map +1 -1
  267. package/dist/es/components/welcome-mat/info-badge.js +19 -11
  268. package/dist/es/components/welcome-mat/info-badge.js.map +1 -1
  269. package/dist/es/utilities/warning/deprecated-property-value.js +18 -0
  270. package/dist/es/utilities/warning/deprecated-property-value.js.map +1 -0
  271. package/dist/types/components/accordion/panel.d.ts.map +1 -1
  272. package/dist/types/components/badge/index.d.ts +4 -2
  273. package/dist/types/components/badge/index.d.ts.map +1 -1
  274. package/dist/types/components/builder-header/check-props.d.ts +3 -0
  275. package/dist/types/components/builder-header/check-props.d.ts.map +1 -0
  276. package/dist/types/components/builder-header/toolbar.d.ts +6 -4
  277. package/dist/types/components/builder-header/toolbar.d.ts.map +1 -1
  278. package/dist/types/components/carousel/check-props.d.ts +3 -0
  279. package/dist/types/components/carousel/check-props.d.ts.map +1 -0
  280. package/dist/types/components/carousel/index.d.ts +9 -7
  281. package/dist/types/components/carousel/index.d.ts.map +1 -1
  282. package/dist/types/components/carousel/private/carousel-item.d.ts +4 -4
  283. package/dist/types/components/carousel/private/carousel-item.d.ts.map +1 -1
  284. package/dist/types/components/checkbox/check-props.d.ts +1 -0
  285. package/dist/types/components/checkbox/check-props.d.ts.map +1 -1
  286. package/dist/types/components/checkbox/index.d.ts +9 -3
  287. package/dist/types/components/checkbox/index.d.ts.map +1 -1
  288. package/dist/types/components/combobox/check-props.d.ts.map +1 -1
  289. package/dist/types/components/combobox/combobox.d.ts +29 -15
  290. package/dist/types/components/combobox/combobox.d.ts.map +1 -1
  291. package/dist/types/components/combobox/index.d.ts +1 -1
  292. package/dist/types/components/combobox/index.d.ts.map +1 -1
  293. package/dist/types/components/combobox/private/menu.d.ts +11 -6
  294. package/dist/types/components/combobox/private/menu.d.ts.map +1 -1
  295. package/dist/types/components/dynamic-icon/index.d.ts.map +1 -1
  296. package/dist/types/components/input/index.d.ts.map +1 -1
  297. package/dist/types/components/menu-dropdown/check-props.d.ts.map +1 -1
  298. package/dist/types/components/menu-dropdown/index.d.ts +1 -1
  299. package/dist/types/components/menu-dropdown/index.d.ts.map +1 -1
  300. package/dist/types/components/menu-dropdown/menu-dropdown.d.ts +22 -3
  301. package/dist/types/components/menu-dropdown/menu-dropdown.d.ts.map +1 -1
  302. package/dist/types/components/page-header/check-props.d.ts.map +1 -1
  303. package/dist/types/components/page-header/index.d.ts +15 -4
  304. package/dist/types/components/page-header/index.d.ts.map +1 -1
  305. package/dist/types/components/page-header/private/base/index.d.ts.map +1 -1
  306. package/dist/types/components/page-header/private/controls.d.ts +4 -4
  307. package/dist/types/components/page-header/private/controls.d.ts.map +1 -1
  308. package/dist/types/components/page-header/private/object-home/index.d.ts.map +1 -1
  309. package/dist/types/components/page-header/private/record-home/index.d.ts.map +1 -1
  310. package/dist/types/components/page-header/private/types.d.ts +6 -6
  311. package/dist/types/components/page-header/private/types.d.ts.map +1 -1
  312. package/dist/types/components/popover/popover.d.ts.map +1 -1
  313. package/dist/types/components/progress-indicator/check-props.d.ts.map +1 -1
  314. package/dist/types/components/progress-indicator/index.d.ts +7 -1
  315. package/dist/types/components/progress-indicator/index.d.ts.map +1 -1
  316. package/dist/types/components/progress-indicator/private/step-vertical.d.ts +4 -7
  317. package/dist/types/components/progress-indicator/private/step-vertical.d.ts.map +1 -1
  318. package/dist/types/components/radio/check-props.d.ts +1 -0
  319. package/dist/types/components/radio/check-props.d.ts.map +1 -1
  320. package/dist/types/components/radio/index.d.ts +10 -4
  321. package/dist/types/components/radio/index.d.ts.map +1 -1
  322. package/dist/types/components/setup-assistant/check-props.d.ts.map +1 -1
  323. package/dist/types/components/setup-assistant/step.d.ts +12 -6
  324. package/dist/types/components/setup-assistant/step.d.ts.map +1 -1
  325. package/dist/types/components/simple-data-table/check-props.d.ts.map +1 -1
  326. package/dist/types/components/simple-data-table/index.d.ts.map +1 -1
  327. package/dist/types/components/simple-data-table/types.d.ts +21 -8
  328. package/dist/types/components/simple-data-table/types.d.ts.map +1 -1
  329. package/dist/types/components/slider/check-props.d.ts +3 -0
  330. package/dist/types/components/slider/check-props.d.ts.map +1 -0
  331. package/dist/types/components/slider/index.d.ts +26 -5
  332. package/dist/types/components/slider/index.d.ts.map +1 -1
  333. package/dist/types/components/split-view/check-props.d.ts.map +1 -1
  334. package/dist/types/components/split-view/index.d.ts +9 -5
  335. package/dist/types/components/split-view/index.d.ts.map +1 -1
  336. package/dist/types/components/split-view/listbox-check-props.d.ts +3 -0
  337. package/dist/types/components/split-view/listbox-check-props.d.ts.map +1 -0
  338. package/dist/types/components/split-view/listbox.d.ts +19 -3
  339. package/dist/types/components/split-view/listbox.d.ts.map +1 -1
  340. package/dist/types/components/split-view/private/list-item-with-content.d.ts +10 -1
  341. package/dist/types/components/split-view/private/list-item-with-content.d.ts.map +1 -1
  342. package/dist/types/components/split-view/private/toggle-button.d.ts +3 -3
  343. package/dist/types/components/split-view/private/toggle-button.d.ts.map +1 -1
  344. package/dist/types/components/tabs/panel.d.ts +5 -1
  345. package/dist/types/components/tabs/panel.d.ts.map +1 -1
  346. package/dist/types/components/textarea/check-props.d.ts.map +1 -1
  347. package/dist/types/components/textarea/index.d.ts +23 -3
  348. package/dist/types/components/textarea/index.d.ts.map +1 -1
  349. package/dist/types/components/tree/check-props.d.ts.map +1 -1
  350. package/dist/types/components/tree/index.d.ts +1 -1
  351. package/dist/types/components/tree/index.d.ts.map +1 -1
  352. package/dist/types/components/tree/tree.d.ts +12 -4
  353. package/dist/types/components/tree/tree.d.ts.map +1 -1
  354. package/dist/types/components/tree/types.d.ts +7 -1
  355. package/dist/types/components/tree/types.d.ts.map +1 -1
  356. package/dist/types/components/trial-bar/check-props.d.ts +3 -0
  357. package/dist/types/components/trial-bar/check-props.d.ts.map +1 -0
  358. package/dist/types/components/trial-bar/index.d.ts +15 -7
  359. package/dist/types/components/trial-bar/index.d.ts.map +1 -1
  360. package/dist/types/components/utilities/menu-list/index.d.ts +5 -1
  361. package/dist/types/components/utilities/menu-list/index.d.ts.map +1 -1
  362. package/dist/types/components/utilities/menu-list/item.d.ts +3 -1
  363. package/dist/types/components/utilities/menu-list/item.d.ts.map +1 -1
  364. package/dist/types/components/utilities/utility-icon/index.d.ts.map +1 -1
  365. package/dist/types/components/welcome-mat/check-props.d.ts +3 -0
  366. package/dist/types/components/welcome-mat/check-props.d.ts.map +1 -0
  367. package/dist/types/components/welcome-mat/index.d.ts +9 -3
  368. package/dist/types/components/welcome-mat/index.d.ts.map +1 -1
  369. package/dist/types/components/welcome-mat/info-badge.d.ts +7 -3
  370. package/dist/types/components/welcome-mat/info-badge.d.ts.map +1 -1
  371. package/package.json +5 -3
@@ -39,7 +39,7 @@ var l = "PageHeaderRecordHome", u = (l) => {
39
39
  })
40
40
  }), /* @__PURE__ */ s(i, {
41
41
  contentRight: l.contentRight,
42
- onRenderActions: l.onRenderActions,
42
+ actions: l.actions,
43
43
  type: "actions"
44
44
  })]
45
45
  }), l.details ? /* @__PURE__ */ s("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../components/page-header/private/record-home/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { type ReactElement } from 'react';\nimport classnames from 'classnames';\n\nimport Controls from '../controls';\nimport DetailRow from '../detail-row';\nimport Icon from '../../../icon';\nimport MediaObject from '../../../media-object';\nimport Title from '../title';\n\nimport { type PageHeaderVariantProps } from '../types';\n\nconst displayName = 'PageHeaderRecordHome';\n\nconst RecordHome = (props: PageHeaderVariantProps) => {\n\tlet icon;\n\n\t// Backwards compatibility\n\tif (props.iconName) {\n\t\t// `position`/`variant` are legacy props not on IconProps; preserved via cast.\n\t\tconst iconProps = {\n\t\t\tcategory: props.iconCategory,\n\t\t\tclassName: 'slds-page-header__icon',\n\t\t\tname: props.iconName,\n\t\t\tposition: props.iconPosition,\n\t\t\tsize: props.iconSize,\n\t\t\tvariant: props.iconVariant,\n\t\t} as Record<string, unknown>;\n\t\ticon = <Icon {...iconProps} />;\n\t} else if (props.icon) {\n\t\tlet iconClasses = 'slds-page-header__icon';\n\n\t\tif (props.icon.props) {\n\t\t\ticonClasses = classnames(\n\t\t\t\t(props.icon.props as { className?: string }).className,\n\t\t\t\ticonClasses\n\t\t\t);\n\t\t}\n\n\t\ticon = React.cloneElement(props.icon as ReactElement, {\n\t\t\tclassName: iconClasses,\n\t\t} as { className: string });\n\t}\n\n\treturn (\n\t\t<React.Fragment>\n\t\t\t<div className=\"slds-page-header__row\">\n\t\t\t\t<div className=\"slds-page-header__col-title\">\n\t\t\t\t\t<MediaObject\n\t\t\t\t\t\tbody={\n\t\t\t\t\t\t\t<React.Fragment>\n\t\t\t\t\t\t\t\t<div className=\"slds-page-header__name\">\n\t\t\t\t\t\t\t\t\t<Title content={props.title} label={props.label} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</React.Fragment>\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfigure={icon}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<Controls\n\t\t\t\t\tcontentRight={props.contentRight}\n\t\t\t\t\tonRenderActions={props.onRenderActions}\n\t\t\t\t\ttype=\"actions\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t{props.details ? (\n\t\t\t\t<div className=\"slds-page-header__row slds-page-header__row_gutters\">\n\t\t\t\t\t<div className=\"slds-page-header__col-details\">\n\t\t\t\t\t\t<DetailRow details={props.details} />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t) : null}\n\t\t</React.Fragment>\n\t);\n};\n\nRecordHome.displayName = displayName;\n\nexport default RecordHome;\n"],"mappings":";;;;;;;;;AAcA,IAAM,IAAc,wBAEd,KAAc,MAAkC;CACrD,IAAI;CAGJ,IAAI,EAAM,UAAU;EAEnB,IAAM,IAAY;GACjB,UAAU,EAAM;GAChB,WAAW;GACX,MAAM,EAAM;GACZ,UAAU,EAAM;GAChB,MAAM,EAAM;GACZ,SAAS,EAAM;EAChB;EACA,IAAO,kBAAC,GAAD,EAAM,GAAI,EAAY,CAAA;CAC9B,OAAO,IAAI,EAAM,MAAM;EACtB,IAAI,IAAc;EASlB,AAPI,EAAM,KAAK,UACd,IAAc,EACZ,EAAM,KAAK,MAAiC,WAC7C,CACD,IAGD,IAAO,EAAM,aAAa,EAAM,MAAsB,EACrD,WAAW,EACZ,CAA0B;CAC3B;CAEA,OACC,kBAAC,EAAM,UAAP,EAAA,UAAA,CACC,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACC,kBAAC,OAAD;GAAK,WAAU;GACd,UAAA,kBAAC,GAAD;IACC,MACC,kBAAC,EAAM,UAAP,EAAA,UACC,kBAAC,OAAD;KAAK,WAAU;KACd,UAAA,kBAAC,GAAD;MAAO,SAAS,EAAM;MAAO,OAAO,EAAM;KAAQ,CAAA;IAC9C,CAAA,EACU,CAAA;IAEjB,QAAQ;GACR,CAAA;EACG,CAAA,GACL,kBAAC,GAAD;GACC,cAAc,EAAM;GACpB,iBAAiB,EAAM;GACvB,MAAK;EACL,CAAA,CACG;CACJ,CAAA,GAAA,EAAM,UACN,kBAAC,OAAD;EAAK,WAAU;EACd,UAAA,kBAAC,OAAD;GAAK,WAAU;GACd,UAAA,kBAAC,GAAD,EAAW,SAAS,EAAM,QAAU,CAAA;EAChC,CAAA;CACD,CAAA,IACF,IACW,EAAA,CAAA;AAElB;AAEA,EAAW,cAAc"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../components/page-header/private/record-home/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { type ReactElement } from 'react';\nimport classnames from 'classnames';\n\nimport Controls from '../controls';\nimport DetailRow from '../detail-row';\nimport Icon from '../../../icon';\nimport MediaObject from '../../../media-object';\nimport Title from '../title';\n\nimport { type PageHeaderVariantProps } from '../types';\n\nconst displayName = 'PageHeaderRecordHome';\n\nconst RecordHome = (props: PageHeaderVariantProps) => {\n\tlet icon;\n\n\t// Backwards compatibility\n\tif (props.iconName) {\n\t\t// `position`/`variant` are legacy props not on IconProps; preserved via cast.\n\t\tconst iconProps = {\n\t\t\tcategory: props.iconCategory,\n\t\t\tclassName: 'slds-page-header__icon',\n\t\t\tname: props.iconName,\n\t\t\tposition: props.iconPosition,\n\t\t\tsize: props.iconSize,\n\t\t\tvariant: props.iconVariant,\n\t\t} as Record<string, unknown>;\n\t\ticon = <Icon {...iconProps} />;\n\t} else if (props.icon) {\n\t\tlet iconClasses = 'slds-page-header__icon';\n\n\t\tif (props.icon.props) {\n\t\t\ticonClasses = classnames(\n\t\t\t\t(props.icon.props as { className?: string }).className,\n\t\t\t\ticonClasses\n\t\t\t);\n\t\t}\n\n\t\ticon = React.cloneElement(\n\t\t\tprops.icon as ReactElement,\n\t\t\t{\n\t\t\t\tclassName: iconClasses,\n\t\t\t} as { className: string }\n\t\t);\n\t}\n\n\treturn (\n\t\t<React.Fragment>\n\t\t\t<div className=\"slds-page-header__row\">\n\t\t\t\t<div className=\"slds-page-header__col-title\">\n\t\t\t\t\t<MediaObject\n\t\t\t\t\t\tbody={\n\t\t\t\t\t\t\t<React.Fragment>\n\t\t\t\t\t\t\t\t<div className=\"slds-page-header__name\">\n\t\t\t\t\t\t\t\t\t<Title content={props.title} label={props.label} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</React.Fragment>\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfigure={icon}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<Controls\n\t\t\t\t\tcontentRight={props.contentRight}\n\t\t\t\t\tactions={props.actions}\n\t\t\t\t\ttype=\"actions\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t{props.details ? (\n\t\t\t\t<div className=\"slds-page-header__row slds-page-header__row_gutters\">\n\t\t\t\t\t<div className=\"slds-page-header__col-details\">\n\t\t\t\t\t\t<DetailRow details={props.details} />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t) : null}\n\t\t</React.Fragment>\n\t);\n};\n\nRecordHome.displayName = displayName;\n\nexport default RecordHome;\n"],"mappings":";;;;;;;;;AAcA,IAAM,IAAc,wBAEd,KAAc,MAAkC;CACrD,IAAI;CAGJ,IAAI,EAAM,UAAU;EAEnB,IAAM,IAAY;GACjB,UAAU,EAAM;GAChB,WAAW;GACX,MAAM,EAAM;GACZ,UAAU,EAAM;GAChB,MAAM,EAAM;GACZ,SAAS,EAAM;EAChB;EACA,IAAO,kBAAC,GAAD,EAAM,GAAI,EAAY,CAAA;CAC9B,OAAO,IAAI,EAAM,MAAM;EACtB,IAAI,IAAc;EASlB,AAPI,EAAM,KAAK,UACd,IAAc,EACZ,EAAM,KAAK,MAAiC,WAC7C,CACD,IAGD,IAAO,EAAM,aACZ,EAAM,MACN,EACC,WAAW,EACZ,CACD;CACD;CAEA,OACC,kBAAC,EAAM,UAAP,EAAA,UAAA,CACC,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACC,kBAAC,OAAD;GAAK,WAAU;GACd,UAAA,kBAAC,GAAD;IACC,MACC,kBAAC,EAAM,UAAP,EAAA,UACC,kBAAC,OAAD;KAAK,WAAU;KACd,UAAA,kBAAC,GAAD;MAAO,SAAS,EAAM;MAAO,OAAO,EAAM;KAAQ,CAAA;IAC9C,CAAA,EACU,CAAA;IAEjB,QAAQ;GACR,CAAA;EACG,CAAA,GACL,kBAAC,GAAD;GACC,cAAc,EAAM;GACpB,SAAS,EAAM;GACf,MAAK;EACL,CAAA,CACG;CACJ,CAAA,GAAA,EAAM,UACN,kBAAC,OAAD;EAAK,WAAU;EACd,UAAA,kBAAC,OAAD;GAAK,WAAU;GACd,UAAA,kBAAC,GAAD,EAAW,SAAS,EAAM,QAAU,CAAA;EAChC,CAAA;CACD,CAAA,IACF,IACW,EAAA,CAAA;AAElB;AAEA,EAAW,cAAc"}
@@ -22,7 +22,7 @@ var c = "PageHeaderRelatedList", l = (c) => /* @__PURE__ */ s(a.Fragment, { chil
22
22
  }) })]
23
23
  }), /* @__PURE__ */ o(i, {
24
24
  contentRight: c.contentRight,
25
- onRenderActions: c.onRenderActions,
25
+ actions: c.actions,
26
26
  type: "actions"
27
27
  })]
28
28
  }), /* @__PURE__ */ s("div", {
@@ -35,7 +35,7 @@ var c = "PageHeaderRelatedList", l = (c) => /* @__PURE__ */ s(a.Fragment, { chil
35
35
  })
36
36
  }), /* @__PURE__ */ o(i, {
37
37
  navRight: c.navRight,
38
- onRenderControls: c.onRenderControls,
38
+ controls: c.controls,
39
39
  type: "controls"
40
40
  })]
41
41
  })] });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../components/page-header/private/related-list/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React from 'react';\n\nimport Controls from '../controls';\nimport Info from '../info';\nimport Label from '../label';\nimport MediaObject from '../../../media-object';\nimport Title from '../title';\n\nimport { type PageHeaderVariantProps } from '../types';\n\nconst displayName = 'PageHeaderRelatedList';\n\nconst RelatedList = (props: PageHeaderVariantProps) => (\n\t<React.Fragment>\n\t\t<div className=\"slds-page-header__row\">\n\t\t\t<div className=\"slds-page-header__col-title\">\n\t\t\t\t<Label content={props.label} trail={props.trail} />\n\t\t\t\t<MediaObject\n\t\t\t\t\tbody={\n\t\t\t\t\t\t<div className=\"slds-page-header__name\">\n\t\t\t\t\t\t\t<Title content={props.title} label={props.label} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<Controls\n\t\t\t\tcontentRight={props.contentRight}\n\t\t\t\tonRenderActions={props.onRenderActions}\n\t\t\t\ttype=\"actions\"\n\t\t\t/>\n\t\t</div>\n\t\t<div className=\"slds-page-header__row\">\n\t\t\t<div className=\"slds-page-header__col-meta\">\n\t\t\t\t<Info content={props.info} variant={props.variant} />\n\t\t\t</div>\n\t\t\t<Controls\n\t\t\t\tnavRight={props.navRight}\n\t\t\t\tonRenderControls={props.onRenderControls}\n\t\t\t\ttype=\"controls\"\n\t\t\t/>\n\t\t</div>\n\t</React.Fragment>\n);\n\nRelatedList.displayName = displayName;\n\nexport default RelatedList;\n"],"mappings":";;;;;;;;AAaA,IAAM,IAAc,yBAEd,KAAe,MACpB,kBAAC,EAAM,UAAP,EAAA,UAAA,CACC,kBAAC,OAAD;CAAK,WAAU;CAAf,UAAA,CACC,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACC,kBAAC,GAAD;GAAO,SAAS,EAAM;GAAO,OAAO,EAAM;EAAQ,CAAA,GAClD,kBAAC,GAAD,EACC,MACC,kBAAC,OAAD;GAAK,WAAU;GACd,UAAA,kBAAC,GAAD;IAAO,SAAS,EAAM;IAAO,OAAO,EAAM;GAAQ,CAAA;EAC9C,CAAA,EAEN,CAAA,CACG;CACL,CAAA,GAAA,kBAAC,GAAD;EACC,cAAc,EAAM;EACpB,iBAAiB,EAAM;EACvB,MAAK;CACL,CAAA,CACG;AACL,CAAA,GAAA,kBAAC,OAAD;CAAK,WAAU;CAAf,UAAA,CACC,kBAAC,OAAD;EAAK,WAAU;EACd,UAAA,kBAAC,GAAD;GAAM,SAAS,EAAM;GAAM,SAAS,EAAM;EAAU,CAAA;CAChD,CAAA,GACL,kBAAC,GAAD;EACC,UAAU,EAAM;EAChB,kBAAkB,EAAM;EACxB,MAAK;CACL,CAAA,CACG;AACU,CAAA,CAAA,EAAA,CAAA;AAGjB,EAAY,cAAc"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../components/page-header/private/related-list/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React from 'react';\n\nimport Controls from '../controls';\nimport Info from '../info';\nimport Label from '../label';\nimport MediaObject from '../../../media-object';\nimport Title from '../title';\n\nimport { type PageHeaderVariantProps } from '../types';\n\nconst displayName = 'PageHeaderRelatedList';\n\nconst RelatedList = (props: PageHeaderVariantProps) => (\n\t<React.Fragment>\n\t\t<div className=\"slds-page-header__row\">\n\t\t\t<div className=\"slds-page-header__col-title\">\n\t\t\t\t<Label content={props.label} trail={props.trail} />\n\t\t\t\t<MediaObject\n\t\t\t\t\tbody={\n\t\t\t\t\t\t<div className=\"slds-page-header__name\">\n\t\t\t\t\t\t\t<Title content={props.title} label={props.label} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<Controls\n\t\t\t\tcontentRight={props.contentRight}\n\t\t\t\tactions={props.actions}\n\t\t\t\ttype=\"actions\"\n\t\t\t/>\n\t\t</div>\n\t\t<div className=\"slds-page-header__row\">\n\t\t\t<div className=\"slds-page-header__col-meta\">\n\t\t\t\t<Info content={props.info} variant={props.variant} />\n\t\t\t</div>\n\t\t\t<Controls\n\t\t\t\tnavRight={props.navRight}\n\t\t\t\tcontrols={props.controls}\n\t\t\t\ttype=\"controls\"\n\t\t\t/>\n\t\t</div>\n\t</React.Fragment>\n);\n\nRelatedList.displayName = displayName;\n\nexport default RelatedList;\n"],"mappings":";;;;;;;;AAaA,IAAM,IAAc,yBAEd,KAAe,MACpB,kBAAC,EAAM,UAAP,EAAA,UAAA,CACC,kBAAC,OAAD;CAAK,WAAU;CAAf,UAAA,CACC,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACC,kBAAC,GAAD;GAAO,SAAS,EAAM;GAAO,OAAO,EAAM;EAAQ,CAAA,GAClD,kBAAC,GAAD,EACC,MACC,kBAAC,OAAD;GAAK,WAAU;GACd,UAAA,kBAAC,GAAD;IAAO,SAAS,EAAM;IAAO,OAAO,EAAM;GAAQ,CAAA;EAC9C,CAAA,EAEN,CAAA,CACG;CACL,CAAA,GAAA,kBAAC,GAAD;EACC,cAAc,EAAM;EACpB,SAAS,EAAM;EACf,MAAK;CACL,CAAA,CACG;AACL,CAAA,GAAA,kBAAC,OAAD;CAAK,WAAU;CAAf,UAAA,CACC,kBAAC,OAAD;EAAK,WAAU;EACd,UAAA,kBAAC,GAAD;GAAM,SAAS,EAAM;GAAM,SAAS,EAAM;EAAU,CAAA;CAChD,CAAA,GACL,kBAAC,GAAD;EACC,UAAU,EAAM;EAChB,UAAU,EAAM;EAChB,MAAK;CACL,CAAA,CACG;AACU,CAAA,CAAA,EAAA,CAAA;AAGjB,EAAY,cAAc"}
@@ -19,110 +19,110 @@ var m = null, h = [
19
19
  "bottom left",
20
20
  "bottom",
21
21
  "bottom right"
22
- ], oe = { closeButton: "Close dialog" }, g = ({ align: e = "right", assistiveText: h, ariaLabelledby: g, children: se, body: _, classNameBody: v, classNameFooter: ce, footerClassName: le, className: ue, contentsClassName: de, disabled: fe = !1, footer: y, footerStyle: pe, footerWalkthroughActions: b, hasNoCloseButton: me = !1, hasNoNubbin: he = !1, hasStaticAlignment: ge = !1, hasNoTriggerStyles: _e = !1, heading: x, icon: ve, id: ye, isOpen: be, offset: xe, onClick: S, onClose: C, onFocus: w, onKeyDown: T, onMouseDown: Se, onMouseEnter: E, onMouseLeave: D, onOpen: O, onRequestClose: k, onRequestTargetElement: A, openOn: j = "click", overlay: M, position: Ce = "absolute", stepText: N, style: we, triggerClassName: Te, variant: P = "base", hoverCloseDelay: F = 300, closeButtonAssistiveText: Ee }) => {
23
- let De = ae(), I = ye || De, Oe = ie(t), ke = {
22
+ ], oe = { closeButton: "Close dialog" }, g = ({ align: e = "right", assistiveText: h, ariaLabelledby: g, children: se, body: _, classNameBody: v, classNameFooter: y, footerClassName: b, className: ce, contentsClassName: le, disabled: ue = !1, footer: x, footerStyle: de, footerWalkthroughActions: S, hasNoCloseButton: fe = !1, hasNoNubbin: pe = !1, hasStaticAlignment: me = !1, hasNoTriggerStyles: he = !1, heading: C, icon: ge, id: _e, isOpen: w, offset: ve, onClick: T, onClose: E, onFocus: D, onKeyDown: O, onMouseDown: ye, onMouseEnter: k, onMouseLeave: A, onOpen: j, onRequestClose: M, onRequestTargetElement: N, openOn: P = "click", overlay: F, position: be = "absolute", stepText: I, style: xe, triggerClassName: Se, variant: L = "base", hoverCloseDelay: Ce = 300, closeButtonAssistiveText: we }) => {
23
+ let Te = ae(), R = _e || Te, Ee = ie(t), De = {
24
24
  ...oe,
25
25
  ...h
26
- }, Ae = Ee || ke.closeButton, [je, L] = c(!1), [R, Me] = c(!1), z = s(null), Ne = s(null), B = s(!1), V = s(null), H = s(null), Pe = s(!1), U = !fe && (be === void 0 ? je : be), Fe = a(() => {
27
- if (A) {
28
- let e = A();
26
+ }, Oe = we || De.closeButton, [ke, Ae] = c(!1), [z, je] = c(!1), B = s(null), Me = s(null), V = s(!1), H = s(null), U = s(null), Ne = s(!1), W = !ue && (w === void 0 ? ke : w), Pe = a(() => {
27
+ if (N) {
28
+ let e = N();
29
29
  if (e) return e;
30
30
  }
31
- return z.current;
32
- }, [A]), Ie = a((e, t) => {
31
+ return B.current;
32
+ }, [N]), Fe = a((e, t) => {
33
33
  let n = t?.componentWillUnmount || !1;
34
- m?.getId() === I && (m = null), C && C(void 0, { componentWillUnmount: n });
35
- }, [I, C]), Le = a((e, t) => {
36
- O && O(void 0, { portal: t?.portal });
37
- }, [O]), W = a((e, t) => {
38
- U && (k && k(e, t), m?.getId() === I && (m = null), L(!1), B.current = !1);
34
+ m?.getId() === R && (m = null), E && E(void 0, { componentWillUnmount: n });
35
+ }, [R, E]), Ie = a((e, t) => {
36
+ j && j(void 0, { portal: t?.portal });
37
+ }, [j]), G = a((e, t) => {
38
+ W && (M && M(e, t), m?.getId() === R && (m = null), Ae(!1), V.current = !1);
39
39
  }, [
40
- U,
41
- I,
42
- k
43
- ]), G = s(W);
40
+ W,
41
+ R,
42
+ M
43
+ ]), K = s(G);
44
44
  o(() => {
45
- G.current = W;
46
- }, [W]);
47
- let K = a(() => {
48
- U || (m && m.getId() !== I && m.handleClose(void 0, {
45
+ K.current = G;
46
+ }, [G]);
47
+ let q = a(() => {
48
+ W || (m && m.getId() !== R && m.handleClose(void 0, {
49
49
  trigger: "newPopover",
50
50
  id: m.getId()
51
51
  }), m = {
52
- handleClose: (e, t) => G.current(e, t),
53
- getId: () => I
54
- }, L(!0));
55
- }, [U, I]), q = a((e) => {
56
- W(e, { trigger: "cancel" });
57
- }, [W]);
52
+ handleClose: (e, t) => K.current(e, t),
53
+ getId: () => R
54
+ }, Ae(!0));
55
+ }, [W, R]), J = a((e) => {
56
+ G(e, { trigger: "cancel" });
57
+ }, [G]);
58
58
  a((e) => {
59
- W(e, { trigger: "clickOutside" });
60
- }, [W]);
61
- let J = a((e) => {
62
- B.current = !0, !U && j === "hover" ? K() : V.current && clearTimeout(V.current), E && E(e);
59
+ G(e, { trigger: "clickOutside" });
60
+ }, [G]);
61
+ let Y = a((e) => {
62
+ V.current = !0, !W && P === "hover" ? q() : H.current && clearTimeout(H.current), k && k(e);
63
63
  }, [
64
- U,
65
- j,
66
- K,
67
- E
68
- ]), Y = a((e) => {
69
- U && (V.current = setTimeout(() => {
70
- W(void 0, { trigger: "mouseLeave" });
71
- }, F)), D && D(e);
64
+ W,
65
+ P,
66
+ q,
67
+ k
68
+ ]), Le = a((e) => {
69
+ W && (H.current = setTimeout(() => {
70
+ G(void 0, { trigger: "mouseLeave" });
71
+ }, Ce)), A && A(e);
72
72
  }, [
73
- U,
74
- F,
75
73
  W,
76
- D
74
+ Ce,
75
+ G,
76
+ A
77
77
  ]), X = a((e, t) => {
78
- U ? W(e, { trigger: "triggerClick" }) : K(), S && S(e), t && t(e);
78
+ W ? G(e, { trigger: "triggerClick" }) : q(), T && T(e), t && t(e);
79
79
  }, [
80
- U,
81
- K,
82
80
  W,
83
- S
81
+ q,
82
+ G,
83
+ T
84
84
  ]), Re = a((e) => {
85
- U || K(), w && w(e);
85
+ W || q(), D && D(e);
86
86
  }, [
87
- U,
88
- K,
89
- w
87
+ W,
88
+ q,
89
+ D
90
90
  ]), ze = a((e) => {
91
- U ? q(e) : K();
91
+ W ? J(e) : q();
92
92
  }, [
93
- U,
94
- q,
95
- K
93
+ W,
94
+ J,
95
+ q
96
96
  ]), Be = a((e) => {
97
97
  e.keyCode && (e.keyCode !== n.TAB && re({
98
98
  event: e,
99
- isOpen: U,
99
+ isOpen: W,
100
100
  handleClick: (e) => X(e),
101
101
  keyCode: e.keyCode,
102
102
  eventTarget: e.target,
103
103
  toggleOpen: () => ze(e),
104
- trigger: z.current
105
- }), T && T(e));
104
+ trigger: B.current
105
+ }), O && O(e));
106
106
  }, [
107
- U,
107
+ W,
108
108
  X,
109
109
  ze,
110
- T
110
+ O
111
111
  ]), Z = a((e) => {
112
- typeof M == "function" && f ? M(e, p) : M && e && !H.current && f ? (H.current = p, document.querySelector("body")?.appendChild(p)) : !e && H.current?.parentNode && (H.current.parentNode.removeChild(H.current), H.current = null);
113
- }, [M]), Ve = a((e) => {
114
- z.current = e, e && !R && Me(!0);
115
- }, [R]), He = a((e) => {
116
- Ne.current = e;
112
+ typeof F == "function" && f ? F(e, p) : F && e && !U.current && f ? (U.current = p, document.querySelector("body")?.appendChild(p)) : !e && U.current?.parentNode && (U.current.parentNode.removeChild(U.current), U.current = null);
113
+ }, [F]), Ve = a((e) => {
114
+ B.current = e, e && !z && je(!0);
115
+ }, [z]), He = a((e) => {
116
+ Me.current = e;
117
117
  }, []);
118
118
  o(() => () => {
119
- Pe.current = !0, m?.getId() === I && (m = null), Z(!1);
120
- }, [I, Z]), o(() => {
121
- Z(U);
122
- }, [U, Z]);
119
+ Ne.current = !0, m?.getId() === R && (m = null), Z(!1);
120
+ }, [R, Z]), o(() => {
121
+ Z(W);
122
+ }, [W, Z]);
123
123
  let Ue = () => {
124
- let e = P === "error" || P === "warning";
125
- if (!(x || e) || P === "walkthrough-action" || P === "feature") return null;
124
+ let e = L === "error" || L === "warning";
125
+ if (!(C || e) || L === "walkthrough-action" || L === "feature") return null;
126
126
  let t = {
127
127
  error: /* @__PURE__ */ u(r, {
128
128
  category: "utility",
@@ -141,114 +141,114 @@ var m = null, h = [
141
141
  className: "slds-popover__header",
142
142
  children: /* @__PURE__ */ u(ne, {
143
143
  body: /* @__PURE__ */ u("h2", {
144
- id: g || `${I}-dialog-heading`,
144
+ id: g || `${R}-dialog-heading`,
145
145
  className: "slds-truncate slds-text-heading_medium",
146
- title: typeof x == "string" ? x : void 0,
147
- children: x
146
+ title: typeof C == "string" ? C : void 0,
147
+ children: C
148
148
  }),
149
- figure: t[P],
149
+ figure: t[L],
150
150
  verticalCenter: !0
151
151
  })
152
152
  }) : /* @__PURE__ */ u("header", {
153
- className: l("slds-popover__header", { "slds-p-vertical_medium": P === "walkthrough" }),
153
+ className: l("slds-popover__header", { "slds-p-vertical_medium": L === "walkthrough" }),
154
154
  children: /* @__PURE__ */ u("h2", {
155
- id: g || `${I}-dialog-heading`,
155
+ id: g || `${R}-dialog-heading`,
156
156
  className: l({
157
- "slds-text-heading_small": P !== "walkthrough",
158
- "slds-text-heading_medium": P === "walkthrough"
157
+ "slds-text-heading_small": L !== "walkthrough",
158
+ "slds-text-heading_medium": L === "walkthrough"
159
159
  }),
160
- children: x
160
+ children: C
161
161
  })
162
162
  });
163
- }, We = () => P === "error" || P === "warning" ? /* @__PURE__ */ u("div", {
164
- id: `${I}-dialog-body`,
163
+ }, We = () => L === "error" || L === "warning" ? /* @__PURE__ */ u("div", {
164
+ id: `${R}-dialog-body`,
165
165
  className: l("slds-popover__body", v),
166
166
  children: _
167
- }) : P === "walkthrough-action" || P === "feature" ? /* @__PURE__ */ u("div", {
167
+ }) : L === "walkthrough-action" || L === "feature" ? /* @__PURE__ */ u("div", {
168
168
  className: l("slds-popover__body", v),
169
- id: `${I}-dialog-body`,
169
+ id: `${R}-dialog-body`,
170
170
  children: /* @__PURE__ */ d("div", {
171
171
  className: "slds-media",
172
172
  children: [/* @__PURE__ */ u("div", {
173
173
  className: "slds-media__figure",
174
- children: P === "walkthrough-action" ? /* @__PURE__ */ u(r, {
174
+ children: L === "walkthrough-action" ? /* @__PURE__ */ u(r, {
175
175
  category: "utility",
176
176
  name: "touch_action",
177
177
  size: "small",
178
178
  inverse: !0
179
- }) : ve
179
+ }) : ge
180
180
  }), /* @__PURE__ */ d("div", {
181
181
  className: "slds-media__body",
182
182
  children: [
183
- x && /* @__PURE__ */ u("h2", {
184
- id: g || `${I}-dialog-heading`,
183
+ C && /* @__PURE__ */ u("h2", {
184
+ id: g || `${R}-dialog-heading`,
185
185
  className: "slds-text-heading_small",
186
- children: x
186
+ children: C
187
187
  }),
188
188
  _,
189
- N && /* @__PURE__ */ u("p", {
189
+ I && /* @__PURE__ */ u("p", {
190
190
  className: "slds-m-top_medium slds-text-title",
191
- children: N
191
+ children: I
192
192
  })
193
193
  ]
194
194
  })]
195
195
  })
196
196
  }) : /* @__PURE__ */ u("div", {
197
- id: `${I}-dialog-body`,
197
+ id: `${R}-dialog-body`,
198
198
  className: l("slds-popover__body", v),
199
199
  children: _
200
- }), Ge = () => y ? /* @__PURE__ */ u("footer", {
201
- className: l("slds-popover__footer", ce, le),
202
- style: pe,
203
- children: y
204
- }) : P !== "walkthrough-action" && (b || N) ? /* @__PURE__ */ u("footer", {
205
- className: "slds-popover__footer",
200
+ }), Ge = () => x ? /* @__PURE__ */ u("footer", {
201
+ className: l("slds-popover__footer", y, b),
202
+ style: de,
203
+ children: x
204
+ }) : L !== "walkthrough-action" && (S || I) ? /* @__PURE__ */ u("footer", {
205
+ className: l("slds-popover__footer", y, b),
206
206
  children: /* @__PURE__ */ d("div", {
207
207
  className: "slds-grid slds-grid_vertical-align-center",
208
- children: [N && /* @__PURE__ */ u("span", {
208
+ children: [I && /* @__PURE__ */ u("span", {
209
209
  className: "slds-text-title",
210
- children: N
211
- }), b && /* @__PURE__ */ u("div", {
210
+ children: I
211
+ }), S && /* @__PURE__ */ u("div", {
212
212
  className: "slds-col_bump-left",
213
213
  style: { display: "inline-block" },
214
- children: b
214
+ children: S
215
215
  })]
216
216
  })
217
217
  }) : null, Ke = () => {
218
- if (!U) return null;
219
- let t = `ignore-click-${I}`;
218
+ if (!W) return null;
219
+ let t = `ignore-click-${R}`;
220
220
  return /* @__PURE__ */ d(ee, {
221
- hasNubbin: !he,
221
+ hasNubbin: !pe,
222
222
  align: e,
223
- contentsClassName: l(de, "ignore-react-onclickoutside", "slds-popover", { "slds-popover_error": P === "error" }, { "slds-popover_walkthrough": P === "walkthrough" || P === "walkthrough-action" || P === "feature" }, { "slds-popover_walkthrough-alt": P === "walkthrough-action" }, { "slds-popover_feature": P === "feature" }, { "slds-popover_warning": P === "warning" }, ue),
224
- context: Oe,
225
- hasStaticAlignment: ge,
226
- offset: xe,
227
- onClose: Ie,
228
- onOpen: Le,
223
+ contentsClassName: l(le, "ignore-react-onclickoutside", "slds-popover", { "slds-popover_error": L === "error" }, { "slds-popover_walkthrough": L === "walkthrough" || L === "walkthrough-action" || L === "feature" }, { "slds-popover_walkthrough-alt": L === "walkthrough-action" }, { "slds-popover_feature": L === "feature" }, { "slds-popover_warning": L === "warning" }, ce),
224
+ context: Ee,
225
+ hasStaticAlignment: me,
226
+ offset: ve,
227
+ onClose: Fe,
228
+ onOpen: Ie,
229
229
  onKeyDown: Be,
230
- onMouseEnter: j === "hover" ? J : void 0,
231
- onMouseLeave: j === "hover" ? Y : void 0,
230
+ onMouseEnter: P === "hover" ? Y : void 0,
231
+ onMouseLeave: P === "hover" ? Le : void 0,
232
232
  outsideClickIgnoreClass: t,
233
- onRequestTargetElement: Fe,
234
- position: Ce,
235
- style: we,
233
+ onRequestTargetElement: Pe,
234
+ position: be,
235
+ style: xe,
236
236
  variant: "popover",
237
237
  ref: He,
238
238
  containerProps: {
239
- id: `${I}-popover`,
240
- "aria-labelledby": g || `${I}-dialog-heading`,
241
- "aria-describedby": `${I}-dialog-body`
239
+ id: `${R}-popover`,
240
+ "aria-labelledby": g || `${R}-dialog-heading`,
241
+ "aria-describedby": `${R}-dialog-body`
242
242
  },
243
243
  children: [
244
- !me && /* @__PURE__ */ u(te, {
245
- assistiveText: { icon: Ae },
244
+ !fe && /* @__PURE__ */ u(te, {
245
+ assistiveText: { icon: Oe },
246
246
  iconCategory: "utility",
247
247
  iconName: "close",
248
- className: l("slds-button slds-button_icon-small slds-float_right slds-popover__close slds-button_icon", { "slds-button_icon-inverse": P === "walkthrough" || P === "walkthrough-action" || P === "feature" }),
249
- onClick: q,
248
+ className: l("slds-button slds-button_icon-small slds-float_right slds-popover__close slds-button_icon", { "slds-button_icon-inverse": L === "walkthrough" || L === "walkthrough-action" || L === "feature" }),
249
+ onClick: J,
250
250
  variant: "icon",
251
- inverse: P === "error" || P === "warning"
251
+ inverse: L === "error" || L === "warning"
252
252
  }),
253
253
  Ue(),
254
254
  We(),
@@ -260,21 +260,21 @@ var m = null, h = [
260
260
  if (t === 0 && i.isValidElement(e)) {
261
261
  let t = e.props, n = {
262
262
  "aria-haspopup": "dialog",
263
- id: I,
264
- onClick: j === "click" || j === "hybrid" ? (e) => {
263
+ id: R,
264
+ onClick: P === "click" || P === "hybrid" ? (e) => {
265
265
  X(e, t.onClick);
266
266
  } : t.onClick,
267
- onFocus: j === "hover" ? Re : void 0,
268
- onMouseDown: Se,
269
- onMouseEnter: j === "hover" || j === "hybrid" ? J : void 0,
270
- onMouseLeave: j === "hover" || j === "hybrid" ? Y : void 0,
267
+ onFocus: P === "hover" ? Re : void 0,
268
+ onMouseDown: ye,
269
+ onMouseEnter: P === "hover" || P === "hybrid" ? Y : void 0,
270
+ onMouseLeave: P === "hover" || P === "hybrid" ? Le : void 0,
271
271
  tabIndex: t.tabIndex || 0
272
272
  };
273
273
  $ = i.cloneElement(e, n);
274
274
  } else e && Q.push(e);
275
275
  }), /* @__PURE__ */ d("div", {
276
- className: Te,
277
- style: { display: _e ? void 0 : "inline-block" },
276
+ className: Se,
277
+ style: { display: he ? void 0 : "inline-block" },
278
278
  ref: Ve,
279
279
  children: [
280
280
  $,
@@ -1 +1 @@
1
- {"version":3,"file":"popover.js","names":[],"sources":["../../../../components/popover/popover.tsx"],"sourcesContent":["/* eslint-disable max-lines */\n/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tuseState,\n\tuseEffect,\n\tuseRef,\n\tuseCallback,\n\tuseId,\n\tuseContext,\n\ttype ReactNode,\n\ttype ReactElement,\n\ttype MouseEvent,\n\ttype KeyboardEvent,\n\ttype FocusEvent,\n\ttype CSSProperties,\n} from 'react';\nimport classNames from 'classnames';\n\nimport Button from '../button';\nimport MediaObject from '../media-object';\nimport Icon from '../icon';\nimport Dialog from '../utilities/dialog';\nimport keyboardNavigableDialog from '../../utilities/keyboard-navigable-dialog';\nimport KEYS from '../../utilities/key-code';\nimport { POPOVER } from '../../utilities/constants';\nimport { IconSettingsContext } from '../icon-settings';\n\nconst documentDefined = typeof document !== 'undefined';\n\n// Shared overlay element for click-outside detection over iframes\nconst overlay = documentDefined\n\t? document.createElement('span')\n\t: ({ style: {} } as HTMLSpanElement);\nif (documentDefined) {\n\toverlay.style.top = '0';\n\toverlay.style.left = '0';\n\toverlay.style.width = '100%';\n\toverlay.style.height = '100%';\n\toverlay.style.position = 'absolute';\n}\n\n// Track currently open popover for single-popover-at-a-time behavior\nlet currentOpenPopover: {\n\thandleClose: (\n\t\tevent: MouseEvent | KeyboardEvent | undefined,\n\t\tdata: PopoverRequestCloseData\n\t) => void;\n\tgetId: () => string;\n} | null = null;\n\n/**\n * Popover alignment options\n */\nexport type PopoverAlign =\n\t| 'top'\n\t| 'top left'\n\t| 'top right'\n\t| 'right'\n\t| 'right top'\n\t| 'right bottom'\n\t| 'bottom'\n\t| 'bottom left'\n\t| 'bottom right'\n\t| 'left'\n\t| 'left top'\n\t| 'left bottom';\n\n/**\n * Popover position options\n */\nexport type PopoverPosition =\n\t'absolute' | 'overflowBoundaryElement' | 'relative';\n\n/**\n * Popover variant options\n */\nexport type PopoverVariant =\n\t| 'base'\n\t| 'error'\n\t| 'feature'\n\t| 'walkthrough'\n\t| 'walkthrough-action'\n\t| 'warning';\n\n/**\n * Assistive text for Popover\n */\nexport interface PopoverAssistiveText {\n\tcloseButton?: string;\n}\n\n/**\n * What caused `onRequestClose` to fire:\n * * `cancel`: the close button was clicked or Escape was pressed\n * * `clickOutside`: a click landed outside the popover\n * * `mouseLeave`: the mouse left the trigger/popover (`openOn` `hover`/`hybrid`) and `hoverCloseDelay` elapsed\n * * `newPopover`: another Popover opened (only one can be open at a time)\n * * `triggerClick`: the trigger was clicked while the popover was open\n */\nexport type PopoverRequestCloseTrigger =\n\t'cancel' | 'clickOutside' | 'mouseLeave' | 'newPopover' | 'triggerClick';\n\n/**\n * Data passed to `onRequestClose`\n */\nexport interface PopoverRequestCloseData {\n\t/** What caused the close request */\n\ttrigger: PopoverRequestCloseTrigger;\n\t/** HTML id of the popover being closed. Only present when `trigger` is `newPopover`. */\n\tid?: string;\n}\n\n/**\n * Data passed to `onOpen`\n */\nexport interface PopoverOpenData {\n\t/** The rendered popover dialog element */\n\tportal?: HTMLElement;\n}\n\n/**\n * Data passed to `onClose`\n */\nexport interface PopoverCloseData {\n\t/** `true` when the popover dialog is closing because it is being unmounted */\n\tcomponentWillUnmount: boolean;\n}\n\n/**\n * Props for the Popover component\n */\nexport interface PopoverProps {\n\t/** Alignment relative to trigger */\n\talign?: PopoverAlign;\n\t/** Accessibility labels */\n\tassistiveText?: PopoverAssistiveText;\n\t/** HTML id of heading for aria-labelledby */\n\tariaLabelledby?: string;\n\t/** Trigger element (first child) and optional other children */\n\tchildren: ReactNode;\n\t/** Popover body content */\n\tbody: ReactNode;\n\t/** CSS classes for body */\n\tclassNameBody?: string | string[] | Record<string, boolean>;\n\t/** CSS classes for footer */\n\tclassNameFooter?: string | string[] | Record<string, boolean>;\n\t/** @deprecated Use classNameFooter */\n\tfooterClassName?: string | string[] | Record<string, boolean>;\n\t/** CSS classes for popover container */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** CSS classes for contents wrapper */\n\tcontentsClassName?: string | string[] | Record<string, boolean>;\n\t/** Disable the popover */\n\tdisabled?: boolean;\n\t/** Footer content */\n\tfooter?: ReactNode;\n\t/** Footer styles */\n\tfooterStyle?: CSSProperties;\n\t/** Walkthrough footer actions */\n\tfooterWalkthroughActions?: ReactNode | ReactNode[];\n\t/** Hide close button */\n\thasNoCloseButton?: boolean;\n\t/** Hide nubbin/arrow */\n\thasNoNubbin?: boolean;\n\t/** Prevent position flipping */\n\thasStaticAlignment?: boolean;\n\t/** Remove trigger inline-block style */\n\thasNoTriggerStyles?: boolean;\n\t/** Popover heading */\n\theading?: ReactNode;\n\t/** Icon for feature variant */\n\ticon?: ReactNode;\n\t/** HTML id */\n\tid?: string;\n\t/** Controlled open state */\n\tisOpen?: boolean;\n\t/** Offset from target */\n\toffset?: string;\n\t/** Click handler */\n\tonClick?: (event: MouseEvent) => void;\n\t/** Called after the popover dialog has closed (unmounted). There is no triggering event, so `event` is `undefined`. */\n\tonClose?: (event: undefined, data: PopoverCloseData) => void;\n\t/** Focus handler */\n\tonFocus?: (event: FocusEvent) => void;\n\t/** Key down handler */\n\tonKeyDown?: (event: KeyboardEvent) => void;\n\t/** Mouse down handler */\n\tonMouseDown?: (event: MouseEvent) => void;\n\t/** Mouse enter handler */\n\tonMouseEnter?: (event: MouseEvent) => void;\n\t/** Mouse leave handler */\n\tonMouseLeave?: (event: MouseEvent) => void;\n\t/** Called after the popover dialog has opened and rendered. There is no triggering event, so `event` is `undefined`. */\n\tonOpen?: (event: undefined, data: PopoverOpenData) => void;\n\t/**\n\t * Called when the popover requests to close. `data.trigger` says why. `event` is the triggering\n\t * click or key event, or `undefined` when there is none (`mouseLeave` timer, `newPopover`).\n\t */\n\tonRequestClose?: (\n\t\tevent: MouseEvent | KeyboardEvent | undefined,\n\t\tdata: PopoverRequestCloseData\n\t) => void;\n\t/** Custom target element getter */\n\tonRequestTargetElement?: () => HTMLElement | null;\n\t/** Open trigger type */\n\topenOn?: 'click' | 'hover' | 'hybrid';\n\t/** Overlay for click-outside on iframes */\n\toverlay?: boolean | ((isOpen: boolean, overlayElement: HTMLElement) => void);\n\t/** Positioning strategy */\n\tposition?: PopoverPosition;\n\t/** Walkthrough step text */\n\tstepText?: string;\n\t/** Custom styles */\n\tstyle?: CSSProperties;\n\t/** CSS classes for trigger wrapper */\n\ttriggerClassName?: string | string[] | Record<string, boolean>;\n\t/** Popover variant */\n\tvariant?: PopoverVariant;\n\t/** Delay before closing on hover (ms) */\n\thoverCloseDelay?: number;\n\t/** @deprecated Use assistiveText.closeButton */\n\tcloseButtonAssistiveText?: string;\n}\n\n// Nubbin positions for export (legacy)\nexport const PopoverNubbinPositions = [\n\t'top left',\n\t'top',\n\t'top right',\n\t'bottom left',\n\t'bottom',\n\t'bottom right',\n];\n\nconst defaultAssistiveText: PopoverAssistiveText = {\n\tcloseButton: 'Close dialog',\n};\n\n/**\n * The Popover component is a non-modal dialog. It should be paired with a clickable\n * trigger such as a Button. It traps focus from the page and must be exited if focus\n * needs to be outside the Popover.\n */\nconst Popover = ({\n\talign = 'right',\n\tassistiveText: propAssistiveText,\n\tariaLabelledby,\n\tchildren,\n\tbody,\n\tclassNameBody,\n\tclassNameFooter,\n\tfooterClassName,\n\tclassName,\n\tcontentsClassName,\n\tdisabled = false,\n\tfooter,\n\tfooterStyle,\n\tfooterWalkthroughActions,\n\thasNoCloseButton = false,\n\thasNoNubbin = false,\n\thasStaticAlignment = false,\n\thasNoTriggerStyles = false,\n\theading,\n\ticon,\n\tid: propId,\n\tisOpen: controlledIsOpen,\n\toffset,\n\tonClick,\n\tonClose,\n\tonFocus,\n\tonKeyDown,\n\tonMouseDown,\n\tonMouseEnter,\n\tonMouseLeave,\n\tonOpen,\n\tonRequestClose,\n\tonRequestTargetElement,\n\topenOn = 'click',\n\toverlay: overlayProp,\n\tposition = 'absolute',\n\tstepText,\n\tstyle,\n\ttriggerClassName,\n\tvariant = 'base',\n\thoverCloseDelay = 300,\n\tcloseButtonAssistiveText,\n}: PopoverProps): ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\tconst context = useContext(IconSettingsContext);\n\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\tconst finalCloseButtonAssistiveText =\n\t\tcloseButtonAssistiveText || assistiveText.closeButton;\n\n\t// State\n\tconst [internalIsOpen, setInternalIsOpen] = useState(false);\n\tconst [inputRendered, setInputRendered] = useState(false);\n\n\t// Refs\n\tconst triggerRef = useRef<HTMLDivElement>(null);\n\tconst dialogRef = useRef<HTMLElement>(null);\n\tconst isHoverRef = useRef(false);\n\tconst isClosingRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\tconst overlayRef = useRef<HTMLSpanElement | null>(null);\n\tconst isUnmountingRef = useRef(false);\n\n\t// Derived state\n\tconst isOpen =\n\t\t!disabled &&\n\t\t(controlledIsOpen !== undefined ? controlledIsOpen : internalIsOpen);\n\n\t// Get target element for positioning\n\tconst getTargetElement = useCallback(() => {\n\t\tif (onRequestTargetElement) {\n\t\t\tconst target = onRequestTargetElement();\n\t\t\tif (target) return target;\n\t\t}\n\t\treturn triggerRef.current;\n\t}, [onRequestTargetElement]);\n\n\t// Handle dialog close (when unmounted)\n\tconst handleDialogClose = useCallback(\n\t\t(\n\t\t\t_event?: React.SyntheticEvent,\n\t\t\tdata?: { componentWillUnmount?: boolean }\n\t\t) => {\n\t\t\tconst componentWillUnmount = data?.componentWillUnmount || false;\n\n\t\t\tif (currentOpenPopover?.getId() === id) {\n\t\t\t\tcurrentOpenPopover = null;\n\t\t\t}\n\n\t\t\tif (onClose) {\n\t\t\t\tonClose(undefined, { componentWillUnmount });\n\t\t\t}\n\t\t},\n\t\t[id, onClose]\n\t);\n\n\t// Handle dialog open (after it has rendered)\n\tconst handleDialogOpen = useCallback(\n\t\t(_event?: unknown, data?: { portal?: HTMLElement }) => {\n\t\t\tif (onOpen) {\n\t\t\t\tonOpen(undefined, { portal: data?.portal });\n\t\t\t}\n\t\t},\n\t\t[onOpen]\n\t);\n\n\t// Handle close\n\tconst handleClose = useCallback(\n\t\t(\n\t\t\tevent: MouseEvent | KeyboardEvent | undefined,\n\t\t\tdata: PopoverRequestCloseData\n\t\t) => {\n\t\t\tif (isOpen) {\n\t\t\t\tif (onRequestClose) {\n\t\t\t\t\tonRequestClose(event, data);\n\t\t\t\t}\n\n\t\t\t\tif (currentOpenPopover?.getId() === id) {\n\t\t\t\t\tcurrentOpenPopover = null;\n\t\t\t\t}\n\n\t\t\t\tsetInternalIsOpen(false);\n\t\t\t\tisHoverRef.current = false;\n\t\t\t}\n\t\t},\n\t\t[isOpen, id, onRequestClose]\n\t);\n\n\t// Latest `handleClose`, so the \"close the other open popover\" path does not call a stale\n\t// closure from when this popover opened (whose `isOpen` was still `false`).\n\tconst handleCloseRef = useRef(handleClose);\n\tuseEffect(() => {\n\t\thandleCloseRef.current = handleClose;\n\t}, [handleClose]);\n\n\t// Handle open\n\tconst handleOpen = useCallback(() => {\n\t\tif (!isOpen) {\n\t\t\t// Close any other open popover\n\t\t\tif (currentOpenPopover && currentOpenPopover.getId() !== id) {\n\t\t\t\tcurrentOpenPopover.handleClose(undefined, {\n\t\t\t\t\ttrigger: 'newPopover',\n\t\t\t\t\tid: currentOpenPopover.getId(),\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tcurrentOpenPopover = {\n\t\t\t\thandleClose: (event, data) => handleCloseRef.current(event, data),\n\t\t\t\tgetId: () => id,\n\t\t\t};\n\n\t\t\tsetInternalIsOpen(true);\n\t\t}\n\t}, [isOpen, id]);\n\n\t// Handle cancel (close button or escape)\n\tconst handleCancel = useCallback(\n\t\t(event: MouseEvent | KeyboardEvent) => {\n\t\t\thandleClose(event, { trigger: 'cancel' });\n\t\t},\n\t\t[handleClose]\n\t);\n\n\t// Handle click outside\n\tconst handleClickOutside = useCallback(\n\t\t(event: MouseEvent) => {\n\t\t\thandleClose(event, { trigger: 'clickOutside' });\n\t\t},\n\t\t[handleClose]\n\t);\n\n\t// Handle mouse enter\n\tconst handleMouseEnter = useCallback(\n\t\t(event: MouseEvent) => {\n\t\t\tisHoverRef.current = true;\n\n\t\t\tif (!isOpen && openOn === 'hover') {\n\t\t\t\thandleOpen();\n\t\t\t} else {\n\t\t\t\tif (isClosingRef.current) {\n\t\t\t\t\tclearTimeout(isClosingRef.current);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (onMouseEnter) {\n\t\t\t\tonMouseEnter(event);\n\t\t\t}\n\t\t},\n\t\t[isOpen, openOn, handleOpen, onMouseEnter]\n\t);\n\n\t// Handle mouse leave\n\tconst handleMouseLeave = useCallback(\n\t\t(event: MouseEvent) => {\n\t\t\tif (isOpen) {\n\t\t\t\tisClosingRef.current = setTimeout(() => {\n\t\t\t\t\thandleClose(undefined, { trigger: 'mouseLeave' });\n\t\t\t\t}, hoverCloseDelay);\n\t\t\t}\n\n\t\t\tif (onMouseLeave) {\n\t\t\t\tonMouseLeave(event);\n\t\t\t}\n\t\t},\n\t\t[isOpen, hoverCloseDelay, handleClose, onMouseLeave]\n\t);\n\n\t// Handle click\n\tconst handleClick = useCallback(\n\t\t(event: MouseEvent, triggerOnClickCallback?: (e: MouseEvent) => void) => {\n\t\t\tif (!isOpen) {\n\t\t\t\thandleOpen();\n\t\t\t} else {\n\t\t\t\thandleClose(event, { trigger: 'triggerClick' });\n\t\t\t}\n\n\t\t\tif (onClick) {\n\t\t\t\tonClick(event);\n\t\t\t}\n\n\t\t\tif (triggerOnClickCallback) {\n\t\t\t\ttriggerOnClickCallback(event);\n\t\t\t}\n\t\t},\n\t\t[isOpen, handleOpen, handleClose, onClick]\n\t);\n\n\t// Handle focus\n\tconst handleFocus = useCallback(\n\t\t(event: FocusEvent) => {\n\t\t\tif (!isOpen) {\n\t\t\t\thandleOpen();\n\t\t\t}\n\n\t\t\tif (onFocus) {\n\t\t\t\tonFocus(event);\n\t\t\t}\n\t\t},\n\t\t[isOpen, handleOpen, onFocus]\n\t);\n\n\t// Toggle from keyboard\n\tconst toggleOpenFromKeyboard = useCallback(\n\t\t(event: KeyboardEvent) => {\n\t\t\tif (isOpen) {\n\t\t\t\thandleCancel(event);\n\t\t\t} else {\n\t\t\t\thandleOpen();\n\t\t\t}\n\t\t},\n\t\t[isOpen, handleCancel, handleOpen]\n\t);\n\n\t// Handle key down\n\tconst handleKeyDown = useCallback(\n\t\t(event: KeyboardEvent) => {\n\t\t\tif (event.keyCode) {\n\t\t\t\tif (event.keyCode !== KEYS.TAB) {\n\t\t\t\t\tkeyboardNavigableDialog({\n\t\t\t\t\t\tevent,\n\t\t\t\t\t\tisOpen,\n\t\t\t\t\t\thandleClick: (e: MouseEvent) => handleClick(e),\n\t\t\t\t\t\tkeyCode: event.keyCode,\n\t\t\t\t\t\teventTarget: event.target,\n\t\t\t\t\t\t// keyboardNavigableDialog calls `toggleOpen()` without the event; pass it through\n\t\t\t\t\t\ttoggleOpen: () => toggleOpenFromKeyboard(event),\n\t\t\t\t\t\ttrigger: triggerRef.current,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tif (onKeyDown) {\n\t\t\t\t\tonKeyDown(event);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t[isOpen, handleClick, toggleOpenFromKeyboard, onKeyDown]\n\t);\n\n\t// Render overlay for click-outside detection\n\tconst renderOverlay = useCallback(\n\t\t(shouldShow: boolean) => {\n\t\t\tif (typeof overlayProp === 'function' && documentDefined) {\n\t\t\t\toverlayProp(shouldShow, overlay);\n\t\t\t} else if (\n\t\t\t\toverlayProp &&\n\t\t\t\tshouldShow &&\n\t\t\t\t!overlayRef.current &&\n\t\t\t\tdocumentDefined\n\t\t\t) {\n\t\t\t\toverlayRef.current = overlay;\n\t\t\t\tdocument.querySelector('body')?.appendChild(overlay);\n\t\t\t} else if (!shouldShow && overlayRef.current?.parentNode) {\n\t\t\t\toverlayRef.current.parentNode.removeChild(overlayRef.current);\n\t\t\t\toverlayRef.current = null;\n\t\t\t}\n\t\t},\n\t\t[overlayProp]\n\t);\n\n\t// Container ref callback\n\tconst setContainerRef = useCallback(\n\t\t(component: HTMLDivElement | null) => {\n\t\t\t(triggerRef as React.MutableRefObject<HTMLDivElement | null>).current =\n\t\t\t\tcomponent;\n\t\t\tif (component && !inputRendered) {\n\t\t\t\tsetInputRendered(true);\n\t\t\t}\n\t\t},\n\t\t[inputRendered]\n\t);\n\n\t// Dialog ref callback\n\tconst setMenuRef = useCallback((component: HTMLElement | null) => {\n\t\t(dialogRef as React.MutableRefObject<HTMLElement | null>).current =\n\t\t\tcomponent;\n\t}, []);\n\n\t// Cleanup on unmount\n\tuseEffect(() => {\n\t\treturn () => {\n\t\t\tisUnmountingRef.current = true;\n\t\t\tif (currentOpenPopover?.getId() === id) {\n\t\t\t\tcurrentOpenPopover = null;\n\t\t\t}\n\t\t\trenderOverlay(false);\n\t\t};\n\t}, [id, renderOverlay]);\n\n\t// Update overlay when isOpen changes\n\tuseEffect(() => {\n\t\trenderOverlay(isOpen);\n\t}, [isOpen, renderOverlay]);\n\n\t// Render header\n\tconst renderHeader = () => {\n\t\tconst hasThemedHeader = variant === 'error' || variant === 'warning';\n\t\tconst hasDefinedHeader = heading || hasThemedHeader;\n\n\t\tif (\n\t\t\t!hasDefinedHeader ||\n\t\t\tvariant === 'walkthrough-action' ||\n\t\t\tvariant === 'feature'\n\t\t) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst headerIcon = {\n\t\t\terror: <Icon category=\"utility\" name=\"error\" size=\"x-small\" inverse />,\n\t\t\twarning: (\n\t\t\t\t<Icon category=\"utility\" name=\"warning\" size=\"x-small\" inverse />\n\t\t\t),\n\t\t};\n\n\t\tif (hasThemedHeader) {\n\t\t\treturn (\n\t\t\t\t<header className=\"slds-popover__header\">\n\t\t\t\t\t<MediaObject\n\t\t\t\t\t\tbody={\n\t\t\t\t\t\t\t<h2\n\t\t\t\t\t\t\t\tid={ariaLabelledby || `${id}-dialog-heading`}\n\t\t\t\t\t\t\t\tclassName=\"slds-truncate slds-text-heading_medium\"\n\t\t\t\t\t\t\t\ttitle={typeof heading === 'string' ? heading : undefined}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{heading}\n\t\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfigure={headerIcon[variant as 'error' | 'warning']}\n\t\t\t\t\t\tverticalCenter\n\t\t\t\t\t/>\n\t\t\t\t</header>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<header\n\t\t\t\tclassName={classNames('slds-popover__header', {\n\t\t\t\t\t'slds-p-vertical_medium': variant === 'walkthrough',\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<h2\n\t\t\t\t\tid={ariaLabelledby || `${id}-dialog-heading`}\n\t\t\t\t\tclassName={classNames({\n\t\t\t\t\t\t'slds-text-heading_small': variant !== 'walkthrough',\n\t\t\t\t\t\t'slds-text-heading_medium': variant === 'walkthrough',\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{heading}\n\t\t\t\t</h2>\n\t\t\t</header>\n\t\t);\n\t};\n\n\t// Render body\n\tconst renderBody = () => {\n\t\tif (variant === 'error' || variant === 'warning') {\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tid={`${id}-dialog-body`}\n\t\t\t\t\tclassName={classNames('slds-popover__body', classNameBody as string)}\n\t\t\t\t>\n\t\t\t\t\t{body}\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\tif (variant === 'walkthrough-action' || variant === 'feature') {\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tclassName={classNames('slds-popover__body', classNameBody as string)}\n\t\t\t\t\tid={`${id}-dialog-body`}\n\t\t\t\t>\n\t\t\t\t\t<div className=\"slds-media\">\n\t\t\t\t\t\t<div className=\"slds-media__figure\">\n\t\t\t\t\t\t\t{variant === 'walkthrough-action' ? (\n\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\t\t\tname=\"touch_action\"\n\t\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\t\tinverse\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\ticon\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"slds-media__body\">\n\t\t\t\t\t\t\t{heading && (\n\t\t\t\t\t\t\t\t<h2\n\t\t\t\t\t\t\t\t\tid={ariaLabelledby || `${id}-dialog-heading`}\n\t\t\t\t\t\t\t\t\tclassName=\"slds-text-heading_small\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{heading}\n\t\t\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{body}\n\t\t\t\t\t\t\t{stepText && (\n\t\t\t\t\t\t\t\t<p className=\"slds-m-top_medium slds-text-title\">{stepText}</p>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tid={`${id}-dialog-body`}\n\t\t\t\tclassName={classNames('slds-popover__body', classNameBody as string)}\n\t\t\t>\n\t\t\t\t{body}\n\t\t\t</div>\n\t\t);\n\t};\n\n\t// Render footer\n\tconst renderFooter = () => {\n\t\tif (footer) {\n\t\t\treturn (\n\t\t\t\t<footer\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-popover__footer',\n\t\t\t\t\t\tclassNameFooter as string,\n\t\t\t\t\t\tfooterClassName as string\n\t\t\t\t\t)}\n\t\t\t\t\tstyle={footerStyle}\n\t\t\t\t>\n\t\t\t\t\t{footer}\n\t\t\t\t</footer>\n\t\t\t);\n\t\t}\n\n\t\tif (\n\t\t\tvariant !== 'walkthrough-action' &&\n\t\t\t(footerWalkthroughActions || stepText)\n\t\t) {\n\t\t\treturn (\n\t\t\t\t<footer className=\"slds-popover__footer\">\n\t\t\t\t\t<div className=\"slds-grid slds-grid_vertical-align-center\">\n\t\t\t\t\t\t{stepText && <span className=\"slds-text-title\">{stepText}</span>}\n\t\t\t\t\t\t{footerWalkthroughActions && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName=\"slds-col_bump-left\"\n\t\t\t\t\t\t\t\tstyle={{ display: 'inline-block' }}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{footerWalkthroughActions}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</footer>\n\t\t\t);\n\t\t}\n\n\t\treturn null;\n\t};\n\n\t// Render dialog\n\tconst renderDialog = () => {\n\t\tif (!isOpen) return null;\n\n\t\tconst outsideClickIgnoreClass = `ignore-click-${id}`;\n\n\t\treturn (\n\t\t\t<Dialog\n\t\t\t\thasNubbin={!hasNoNubbin}\n\t\t\t\talign={align}\n\t\t\t\tcontentsClassName={classNames(\n\t\t\t\t\tcontentsClassName as string,\n\t\t\t\t\t'ignore-react-onclickoutside',\n\t\t\t\t\t'slds-popover',\n\t\t\t\t\t{ 'slds-popover_error': variant === 'error' },\n\t\t\t\t\t{\n\t\t\t\t\t\t'slds-popover_walkthrough':\n\t\t\t\t\t\t\tvariant === 'walkthrough' ||\n\t\t\t\t\t\t\tvariant === 'walkthrough-action' ||\n\t\t\t\t\t\t\tvariant === 'feature',\n\t\t\t\t\t},\n\t\t\t\t\t{ 'slds-popover_walkthrough-alt': variant === 'walkthrough-action' },\n\t\t\t\t\t{ 'slds-popover_feature': variant === 'feature' },\n\t\t\t\t\t{ 'slds-popover_warning': variant === 'warning' },\n\t\t\t\t\tclassName as string\n\t\t\t\t)}\n\t\t\t\tcontext={context}\n\t\t\t\thasStaticAlignment={hasStaticAlignment}\n\t\t\t\toffset={offset}\n\t\t\t\tonClose={handleDialogClose}\n\t\t\t\tonOpen={handleDialogOpen}\n\t\t\t\tonKeyDown={handleKeyDown}\n\t\t\t\tonMouseEnter={openOn === 'hover' ? handleMouseEnter : undefined}\n\t\t\t\tonMouseLeave={openOn === 'hover' ? handleMouseLeave : undefined}\n\t\t\t\toutsideClickIgnoreClass={outsideClickIgnoreClass}\n\t\t\t\tonRequestTargetElement={getTargetElement}\n\t\t\t\tposition={position}\n\t\t\t\tstyle={style}\n\t\t\t\tvariant=\"popover\"\n\t\t\t\tref={setMenuRef}\n\t\t\t\tcontainerProps={{\n\t\t\t\t\tid: `${id}-popover`,\n\t\t\t\t\t'aria-labelledby': ariaLabelledby || `${id}-dialog-heading`,\n\t\t\t\t\t'aria-describedby': `${id}-dialog-body`,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{!hasNoCloseButton && (\n\t\t\t\t\t<Button\n\t\t\t\t\t\tassistiveText={{ icon: finalCloseButtonAssistiveText }}\n\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\ticonName=\"close\"\n\t\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t\t'slds-button slds-button_icon-small slds-float_right slds-popover__close slds-button_icon',\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t'slds-button_icon-inverse':\n\t\t\t\t\t\t\t\t\tvariant === 'walkthrough' ||\n\t\t\t\t\t\t\t\t\tvariant === 'walkthrough-action' ||\n\t\t\t\t\t\t\t\t\tvariant === 'feature',\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tonClick={handleCancel}\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tinverse={variant === 'error' || variant === 'warning'}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{renderHeader()}\n\t\t\t\t{renderBody()}\n\t\t\t\t{renderFooter()}\n\t\t\t</Dialog>\n\t\t);\n\t};\n\n\t// Clone trigger element\n\tconst otherChildren: ReactNode[] = [];\n\tlet clonedTrigger: ReactNode = null;\n\n\tReact.Children.forEach(children, (child, index) => {\n\t\tif (index === 0 && React.isValidElement(child)) {\n\t\t\tconst childProps = child.props as Record<string, unknown>;\n\t\t\tconst triggerProps: Record<string, unknown> = {\n\t\t\t\t'aria-haspopup': 'dialog',\n\t\t\t\tid,\n\t\t\t\tonClick:\n\t\t\t\t\topenOn === 'click' || openOn === 'hybrid'\n\t\t\t\t\t\t? (event: MouseEvent) => {\n\t\t\t\t\t\t\t\thandleClick(\n\t\t\t\t\t\t\t\t\tevent,\n\t\t\t\t\t\t\t\t\tchildProps.onClick as (e: MouseEvent) => void\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: childProps.onClick,\n\t\t\t\tonFocus: openOn === 'hover' ? handleFocus : undefined,\n\t\t\t\tonMouseDown,\n\t\t\t\tonMouseEnter:\n\t\t\t\t\topenOn === 'hover' || openOn === 'hybrid'\n\t\t\t\t\t\t? handleMouseEnter\n\t\t\t\t\t\t: undefined,\n\t\t\t\tonMouseLeave:\n\t\t\t\t\topenOn === 'hover' || openOn === 'hybrid'\n\t\t\t\t\t\t? handleMouseLeave\n\t\t\t\t\t\t: undefined,\n\t\t\t\ttabIndex: (childProps.tabIndex as number) || 0,\n\t\t\t};\n\t\t\tclonedTrigger = React.cloneElement(child, triggerProps);\n\t\t} else if (child) {\n\t\t\totherChildren.push(child);\n\t\t}\n\t});\n\n\tconst containerStyles: CSSProperties = {\n\t\tdisplay: hasNoTriggerStyles ? undefined : 'inline-block',\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={triggerClassName as string}\n\t\t\tstyle={containerStyles}\n\t\t\tref={setContainerRef}\n\t\t>\n\t\t\t{clonedTrigger}\n\t\t\t{otherChildren.length > 0 ? otherChildren : null}\n\t\t\t{renderDialog()}\n\t\t</div>\n\t);\n};\n\nPopover.displayName = POPOVER;\n\nexport default Popover;\n"],"mappings":";;;;;;;;;;;;AA6BA,IAAM,IAAkB,OAAO,WAAa,KAGtC,IAAU,IACb,SAAS,cAAc,MAAM,IAC5B,EAAE,OAAO,CAAC,EAAE;AACZ,MACH,EAAQ,MAAM,MAAM,KACpB,EAAQ,MAAM,OAAO,KACrB,EAAQ,MAAM,QAAQ,QACtB,EAAQ,MAAM,SAAS,QACvB,EAAQ,MAAM,WAAW;AAI1B,IAAI,IAMO,MAiLE,IAAyB;CACrC;CACA;CACA;CACA;CACA;CACA;AACD,GAEM,KAA6C,EAClD,aAAa,eACd,GAOM,KAAW,EAChB,WAAQ,SACR,eAAe,GACf,mBACA,cACA,SACA,kBACA,qBACA,qBACA,eACA,uBACA,eAAW,IACX,WACA,iBACA,6BACA,uBAAmB,IACnB,kBAAc,IACd,yBAAqB,IACrB,yBAAqB,IACrB,YACA,UACA,IAAI,IACJ,QAAQ,IACR,YACA,YACA,YACA,YACA,cACA,iBACA,iBACA,iBACA,WACA,mBACA,2BACA,YAAS,SACT,SAAS,GACT,eAAW,YACX,aACA,WACA,sBACA,aAAU,QACV,qBAAkB,KAClB,mCACiC;CACjC,IAAM,KAAc,GAAM,GACpB,IAAK,MAAU,IACf,KAAU,GAAW,CAAmB,GAExC,KAAgB;EAAE,GAAG;EAAsB,GAAG;CAAkB,GAChE,KACL,MAA4B,GAAc,aAGrC,CAAC,IAAgB,KAAqB,EAAS,EAAK,GACpD,CAAC,GAAe,MAAoB,EAAS,EAAK,GAGlD,IAAa,EAAuB,IAAI,GACxC,KAAY,EAAoB,IAAI,GACpC,IAAa,EAAO,EAAK,GACzB,IAAe,EAA6C,IAAI,GAChE,IAAa,EAA+B,IAAI,GAChD,KAAkB,EAAO,EAAK,GAG9B,IACL,CAAC,OACA,OAAqB,KAAA,IAA+B,KAAnB,KAG7B,KAAmB,QAAkB;EAC1C,IAAI,GAAwB;GAC3B,IAAM,IAAS,EAAuB;GACtC,IAAI,GAAQ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W,MAAW,WAC9B,IACA,KAAA;IACJ,cACC,MAAW,WAAW,MAAW,WAC9B,IACA,KAAA;IACJ,UAAW,EAAW,YAAuB;GAC9C;GACA,IAAgB,EAAM,aAAa,GAAO,CAAY;EACvD,OAAO,AAAI,KACV,EAAc,KAAK,CAAK;CAE1B,CAAC,GAOA,kBAAC,OAAD;EACC,WAAW;EACX,OAAO,EANR,SAAS,KAAqB,KAAA,IAAY,eAMlC;EACP,KAAK;EAHN,UAAA;GAKE;GACA,EAAc,SAAS,IAAI,IAAgB;GAC3C,GAAa;EACV;;AAEP;AAEA,EAAQ,cAAc"}
1
+ {"version":3,"file":"popover.js","names":[],"sources":["../../../../components/popover/popover.tsx"],"sourcesContent":["/* eslint-disable max-lines */\n/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tuseState,\n\tuseEffect,\n\tuseRef,\n\tuseCallback,\n\tuseId,\n\tuseContext,\n\ttype ReactNode,\n\ttype ReactElement,\n\ttype MouseEvent,\n\ttype KeyboardEvent,\n\ttype FocusEvent,\n\ttype CSSProperties,\n} from 'react';\nimport classNames from 'classnames';\n\nimport Button from '../button';\nimport MediaObject from '../media-object';\nimport Icon from '../icon';\nimport Dialog from '../utilities/dialog';\nimport keyboardNavigableDialog from '../../utilities/keyboard-navigable-dialog';\nimport KEYS from '../../utilities/key-code';\nimport { POPOVER } from '../../utilities/constants';\nimport { IconSettingsContext } from '../icon-settings';\n\nconst documentDefined = typeof document !== 'undefined';\n\n// Shared overlay element for click-outside detection over iframes\nconst overlay = documentDefined\n\t? document.createElement('span')\n\t: ({ style: {} } as HTMLSpanElement);\nif (documentDefined) {\n\toverlay.style.top = '0';\n\toverlay.style.left = '0';\n\toverlay.style.width = '100%';\n\toverlay.style.height = '100%';\n\toverlay.style.position = 'absolute';\n}\n\n// Track currently open popover for single-popover-at-a-time behavior\nlet currentOpenPopover: {\n\thandleClose: (\n\t\tevent: MouseEvent | KeyboardEvent | undefined,\n\t\tdata: PopoverRequestCloseData\n\t) => void;\n\tgetId: () => string;\n} | null = null;\n\n/**\n * Popover alignment options\n */\nexport type PopoverAlign =\n\t| 'top'\n\t| 'top left'\n\t| 'top right'\n\t| 'right'\n\t| 'right top'\n\t| 'right bottom'\n\t| 'bottom'\n\t| 'bottom left'\n\t| 'bottom right'\n\t| 'left'\n\t| 'left top'\n\t| 'left bottom';\n\n/**\n * Popover position options\n */\nexport type PopoverPosition =\n\t'absolute' | 'overflowBoundaryElement' | 'relative';\n\n/**\n * Popover variant options\n */\nexport type PopoverVariant =\n\t| 'base'\n\t| 'error'\n\t| 'feature'\n\t| 'walkthrough'\n\t| 'walkthrough-action'\n\t| 'warning';\n\n/**\n * Assistive text for Popover\n */\nexport interface PopoverAssistiveText {\n\tcloseButton?: string;\n}\n\n/**\n * What caused `onRequestClose` to fire:\n * * `cancel`: the close button was clicked or Escape was pressed\n * * `clickOutside`: a click landed outside the popover\n * * `mouseLeave`: the mouse left the trigger/popover (`openOn` `hover`/`hybrid`) and `hoverCloseDelay` elapsed\n * * `newPopover`: another Popover opened (only one can be open at a time)\n * * `triggerClick`: the trigger was clicked while the popover was open\n */\nexport type PopoverRequestCloseTrigger =\n\t'cancel' | 'clickOutside' | 'mouseLeave' | 'newPopover' | 'triggerClick';\n\n/**\n * Data passed to `onRequestClose`\n */\nexport interface PopoverRequestCloseData {\n\t/** What caused the close request */\n\ttrigger: PopoverRequestCloseTrigger;\n\t/** HTML id of the popover being closed. Only present when `trigger` is `newPopover`. */\n\tid?: string;\n}\n\n/**\n * Data passed to `onOpen`\n */\nexport interface PopoverOpenData {\n\t/** The rendered popover dialog element */\n\tportal?: HTMLElement;\n}\n\n/**\n * Data passed to `onClose`\n */\nexport interface PopoverCloseData {\n\t/** `true` when the popover dialog is closing because it is being unmounted */\n\tcomponentWillUnmount: boolean;\n}\n\n/**\n * Props for the Popover component\n */\nexport interface PopoverProps {\n\t/** Alignment relative to trigger */\n\talign?: PopoverAlign;\n\t/** Accessibility labels */\n\tassistiveText?: PopoverAssistiveText;\n\t/** HTML id of heading for aria-labelledby */\n\tariaLabelledby?: string;\n\t/** Trigger element (first child) and optional other children */\n\tchildren: ReactNode;\n\t/** Popover body content */\n\tbody: ReactNode;\n\t/** CSS classes for body */\n\tclassNameBody?: string | string[] | Record<string, boolean>;\n\t/** CSS classes for footer */\n\tclassNameFooter?: string | string[] | Record<string, boolean>;\n\t/** @deprecated Use classNameFooter */\n\tfooterClassName?: string | string[] | Record<string, boolean>;\n\t/** CSS classes for popover container */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** CSS classes for contents wrapper */\n\tcontentsClassName?: string | string[] | Record<string, boolean>;\n\t/** Disable the popover */\n\tdisabled?: boolean;\n\t/** Footer content */\n\tfooter?: ReactNode;\n\t/** Footer styles */\n\tfooterStyle?: CSSProperties;\n\t/** Walkthrough footer actions */\n\tfooterWalkthroughActions?: ReactNode | ReactNode[];\n\t/** Hide close button */\n\thasNoCloseButton?: boolean;\n\t/** Hide nubbin/arrow */\n\thasNoNubbin?: boolean;\n\t/** Prevent position flipping */\n\thasStaticAlignment?: boolean;\n\t/** Remove trigger inline-block style */\n\thasNoTriggerStyles?: boolean;\n\t/** Popover heading */\n\theading?: ReactNode;\n\t/** Icon for feature variant */\n\ticon?: ReactNode;\n\t/** HTML id */\n\tid?: string;\n\t/** Controlled open state */\n\tisOpen?: boolean;\n\t/** Offset from target */\n\toffset?: string;\n\t/** Click handler */\n\tonClick?: (event: MouseEvent) => void;\n\t/** Called after the popover dialog has closed (unmounted). There is no triggering event, so `event` is `undefined`. */\n\tonClose?: (event: undefined, data: PopoverCloseData) => void;\n\t/** Focus handler */\n\tonFocus?: (event: FocusEvent) => void;\n\t/** Key down handler */\n\tonKeyDown?: (event: KeyboardEvent) => void;\n\t/** Mouse down handler */\n\tonMouseDown?: (event: MouseEvent) => void;\n\t/** Mouse enter handler */\n\tonMouseEnter?: (event: MouseEvent) => void;\n\t/** Mouse leave handler */\n\tonMouseLeave?: (event: MouseEvent) => void;\n\t/** Called after the popover dialog has opened and rendered. There is no triggering event, so `event` is `undefined`. */\n\tonOpen?: (event: undefined, data: PopoverOpenData) => void;\n\t/**\n\t * Called when the popover requests to close. `data.trigger` says why. `event` is the triggering\n\t * click or key event, or `undefined` when there is none (`mouseLeave` timer, `newPopover`).\n\t */\n\tonRequestClose?: (\n\t\tevent: MouseEvent | KeyboardEvent | undefined,\n\t\tdata: PopoverRequestCloseData\n\t) => void;\n\t/** Custom target element getter */\n\tonRequestTargetElement?: () => HTMLElement | null;\n\t/** Open trigger type */\n\topenOn?: 'click' | 'hover' | 'hybrid';\n\t/** Overlay for click-outside on iframes */\n\toverlay?: boolean | ((isOpen: boolean, overlayElement: HTMLElement) => void);\n\t/** Positioning strategy */\n\tposition?: PopoverPosition;\n\t/** Walkthrough step text */\n\tstepText?: string;\n\t/** Custom styles */\n\tstyle?: CSSProperties;\n\t/** CSS classes for trigger wrapper */\n\ttriggerClassName?: string | string[] | Record<string, boolean>;\n\t/** Popover variant */\n\tvariant?: PopoverVariant;\n\t/** Delay before closing on hover (ms) */\n\thoverCloseDelay?: number;\n\t/** @deprecated Use assistiveText.closeButton */\n\tcloseButtonAssistiveText?: string;\n}\n\n// Nubbin positions for export (legacy)\nexport const PopoverNubbinPositions = [\n\t'top left',\n\t'top',\n\t'top right',\n\t'bottom left',\n\t'bottom',\n\t'bottom right',\n];\n\nconst defaultAssistiveText: PopoverAssistiveText = {\n\tcloseButton: 'Close dialog',\n};\n\n/**\n * The Popover component is a non-modal dialog. It should be paired with a clickable\n * trigger such as a Button. It traps focus from the page and must be exited if focus\n * needs to be outside the Popover.\n */\nconst Popover = ({\n\talign = 'right',\n\tassistiveText: propAssistiveText,\n\tariaLabelledby,\n\tchildren,\n\tbody,\n\tclassNameBody,\n\tclassNameFooter,\n\tfooterClassName,\n\tclassName,\n\tcontentsClassName,\n\tdisabled = false,\n\tfooter,\n\tfooterStyle,\n\tfooterWalkthroughActions,\n\thasNoCloseButton = false,\n\thasNoNubbin = false,\n\thasStaticAlignment = false,\n\thasNoTriggerStyles = false,\n\theading,\n\ticon,\n\tid: propId,\n\tisOpen: controlledIsOpen,\n\toffset,\n\tonClick,\n\tonClose,\n\tonFocus,\n\tonKeyDown,\n\tonMouseDown,\n\tonMouseEnter,\n\tonMouseLeave,\n\tonOpen,\n\tonRequestClose,\n\tonRequestTargetElement,\n\topenOn = 'click',\n\toverlay: overlayProp,\n\tposition = 'absolute',\n\tstepText,\n\tstyle,\n\ttriggerClassName,\n\tvariant = 'base',\n\thoverCloseDelay = 300,\n\tcloseButtonAssistiveText,\n}: PopoverProps): ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\tconst context = useContext(IconSettingsContext);\n\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\tconst finalCloseButtonAssistiveText =\n\t\tcloseButtonAssistiveText || assistiveText.closeButton;\n\n\t// State\n\tconst [internalIsOpen, setInternalIsOpen] = useState(false);\n\tconst [inputRendered, setInputRendered] = useState(false);\n\n\t// Refs\n\tconst triggerRef = useRef<HTMLDivElement>(null);\n\tconst dialogRef = useRef<HTMLElement>(null);\n\tconst isHoverRef = useRef(false);\n\tconst isClosingRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\tconst overlayRef = useRef<HTMLSpanElement | null>(null);\n\tconst isUnmountingRef = useRef(false);\n\n\t// Derived state\n\tconst isOpen =\n\t\t!disabled &&\n\t\t(controlledIsOpen !== undefined ? controlledIsOpen : internalIsOpen);\n\n\t// Get target element for positioning\n\tconst getTargetElement = useCallback(() => {\n\t\tif (onRequestTargetElement) {\n\t\t\tconst target = onRequestTargetElement();\n\t\t\tif (target) return target;\n\t\t}\n\t\treturn triggerRef.current;\n\t}, [onRequestTargetElement]);\n\n\t// Handle dialog close (when unmounted)\n\tconst handleDialogClose = useCallback(\n\t\t(\n\t\t\t_event?: React.SyntheticEvent,\n\t\t\tdata?: { componentWillUnmount?: boolean }\n\t\t) => {\n\t\t\tconst componentWillUnmount = data?.componentWillUnmount || false;\n\n\t\t\tif (currentOpenPopover?.getId() === id) {\n\t\t\t\tcurrentOpenPopover = null;\n\t\t\t}\n\n\t\t\tif (onClose) {\n\t\t\t\tonClose(undefined, { componentWillUnmount });\n\t\t\t}\n\t\t},\n\t\t[id, onClose]\n\t);\n\n\t// Handle dialog open (after it has rendered)\n\tconst handleDialogOpen = useCallback(\n\t\t(_event?: unknown, data?: { portal?: HTMLElement }) => {\n\t\t\tif (onOpen) {\n\t\t\t\tonOpen(undefined, { portal: data?.portal });\n\t\t\t}\n\t\t},\n\t\t[onOpen]\n\t);\n\n\t// Handle close\n\tconst handleClose = useCallback(\n\t\t(\n\t\t\tevent: MouseEvent | KeyboardEvent | undefined,\n\t\t\tdata: PopoverRequestCloseData\n\t\t) => {\n\t\t\tif (isOpen) {\n\t\t\t\tif (onRequestClose) {\n\t\t\t\t\tonRequestClose(event, data);\n\t\t\t\t}\n\n\t\t\t\tif (currentOpenPopover?.getId() === id) {\n\t\t\t\t\tcurrentOpenPopover = null;\n\t\t\t\t}\n\n\t\t\t\tsetInternalIsOpen(false);\n\t\t\t\tisHoverRef.current = false;\n\t\t\t}\n\t\t},\n\t\t[isOpen, id, onRequestClose]\n\t);\n\n\t// Latest `handleClose`, so the \"close the other open popover\" path does not call a stale\n\t// closure from when this popover opened (whose `isOpen` was still `false`).\n\tconst handleCloseRef = useRef(handleClose);\n\tuseEffect(() => {\n\t\thandleCloseRef.current = handleClose;\n\t}, [handleClose]);\n\n\t// Handle open\n\tconst handleOpen = useCallback(() => {\n\t\tif (!isOpen) {\n\t\t\t// Close any other open popover\n\t\t\tif (currentOpenPopover && currentOpenPopover.getId() !== id) {\n\t\t\t\tcurrentOpenPopover.handleClose(undefined, {\n\t\t\t\t\ttrigger: 'newPopover',\n\t\t\t\t\tid: currentOpenPopover.getId(),\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tcurrentOpenPopover = {\n\t\t\t\thandleClose: (event, data) => handleCloseRef.current(event, data),\n\t\t\t\tgetId: () => id,\n\t\t\t};\n\n\t\t\tsetInternalIsOpen(true);\n\t\t}\n\t}, [isOpen, id]);\n\n\t// Handle cancel (close button or escape)\n\tconst handleCancel = useCallback(\n\t\t(event: MouseEvent | KeyboardEvent) => {\n\t\t\thandleClose(event, { trigger: 'cancel' });\n\t\t},\n\t\t[handleClose]\n\t);\n\n\t// Handle click outside\n\tconst handleClickOutside = useCallback(\n\t\t(event: MouseEvent) => {\n\t\t\thandleClose(event, { trigger: 'clickOutside' });\n\t\t},\n\t\t[handleClose]\n\t);\n\n\t// Handle mouse enter\n\tconst handleMouseEnter = useCallback(\n\t\t(event: MouseEvent) => {\n\t\t\tisHoverRef.current = true;\n\n\t\t\tif (!isOpen && openOn === 'hover') {\n\t\t\t\thandleOpen();\n\t\t\t} else {\n\t\t\t\tif (isClosingRef.current) {\n\t\t\t\t\tclearTimeout(isClosingRef.current);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (onMouseEnter) {\n\t\t\t\tonMouseEnter(event);\n\t\t\t}\n\t\t},\n\t\t[isOpen, openOn, handleOpen, onMouseEnter]\n\t);\n\n\t// Handle mouse leave\n\tconst handleMouseLeave = useCallback(\n\t\t(event: MouseEvent) => {\n\t\t\tif (isOpen) {\n\t\t\t\tisClosingRef.current = setTimeout(() => {\n\t\t\t\t\thandleClose(undefined, { trigger: 'mouseLeave' });\n\t\t\t\t}, hoverCloseDelay);\n\t\t\t}\n\n\t\t\tif (onMouseLeave) {\n\t\t\t\tonMouseLeave(event);\n\t\t\t}\n\t\t},\n\t\t[isOpen, hoverCloseDelay, handleClose, onMouseLeave]\n\t);\n\n\t// Handle click\n\tconst handleClick = useCallback(\n\t\t(event: MouseEvent, triggerOnClickCallback?: (e: MouseEvent) => void) => {\n\t\t\tif (!isOpen) {\n\t\t\t\thandleOpen();\n\t\t\t} else {\n\t\t\t\thandleClose(event, { trigger: 'triggerClick' });\n\t\t\t}\n\n\t\t\tif (onClick) {\n\t\t\t\tonClick(event);\n\t\t\t}\n\n\t\t\tif (triggerOnClickCallback) {\n\t\t\t\ttriggerOnClickCallback(event);\n\t\t\t}\n\t\t},\n\t\t[isOpen, handleOpen, handleClose, onClick]\n\t);\n\n\t// Handle focus\n\tconst handleFocus = useCallback(\n\t\t(event: FocusEvent) => {\n\t\t\tif (!isOpen) {\n\t\t\t\thandleOpen();\n\t\t\t}\n\n\t\t\tif (onFocus) {\n\t\t\t\tonFocus(event);\n\t\t\t}\n\t\t},\n\t\t[isOpen, handleOpen, onFocus]\n\t);\n\n\t// Toggle from keyboard\n\tconst toggleOpenFromKeyboard = useCallback(\n\t\t(event: KeyboardEvent) => {\n\t\t\tif (isOpen) {\n\t\t\t\thandleCancel(event);\n\t\t\t} else {\n\t\t\t\thandleOpen();\n\t\t\t}\n\t\t},\n\t\t[isOpen, handleCancel, handleOpen]\n\t);\n\n\t// Handle key down\n\tconst handleKeyDown = useCallback(\n\t\t(event: KeyboardEvent) => {\n\t\t\tif (event.keyCode) {\n\t\t\t\tif (event.keyCode !== KEYS.TAB) {\n\t\t\t\t\tkeyboardNavigableDialog({\n\t\t\t\t\t\tevent,\n\t\t\t\t\t\tisOpen,\n\t\t\t\t\t\thandleClick: (e: MouseEvent) => handleClick(e),\n\t\t\t\t\t\tkeyCode: event.keyCode,\n\t\t\t\t\t\teventTarget: event.target,\n\t\t\t\t\t\t// keyboardNavigableDialog calls `toggleOpen()` without the event; pass it through\n\t\t\t\t\t\ttoggleOpen: () => toggleOpenFromKeyboard(event),\n\t\t\t\t\t\ttrigger: triggerRef.current,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tif (onKeyDown) {\n\t\t\t\t\tonKeyDown(event);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t[isOpen, handleClick, toggleOpenFromKeyboard, onKeyDown]\n\t);\n\n\t// Render overlay for click-outside detection\n\tconst renderOverlay = useCallback(\n\t\t(shouldShow: boolean) => {\n\t\t\tif (typeof overlayProp === 'function' && documentDefined) {\n\t\t\t\toverlayProp(shouldShow, overlay);\n\t\t\t} else if (\n\t\t\t\toverlayProp &&\n\t\t\t\tshouldShow &&\n\t\t\t\t!overlayRef.current &&\n\t\t\t\tdocumentDefined\n\t\t\t) {\n\t\t\t\toverlayRef.current = overlay;\n\t\t\t\tdocument.querySelector('body')?.appendChild(overlay);\n\t\t\t} else if (!shouldShow && overlayRef.current?.parentNode) {\n\t\t\t\toverlayRef.current.parentNode.removeChild(overlayRef.current);\n\t\t\t\toverlayRef.current = null;\n\t\t\t}\n\t\t},\n\t\t[overlayProp]\n\t);\n\n\t// Container ref callback\n\tconst setContainerRef = useCallback(\n\t\t(component: HTMLDivElement | null) => {\n\t\t\t(triggerRef as React.MutableRefObject<HTMLDivElement | null>).current =\n\t\t\t\tcomponent;\n\t\t\tif (component && !inputRendered) {\n\t\t\t\tsetInputRendered(true);\n\t\t\t}\n\t\t},\n\t\t[inputRendered]\n\t);\n\n\t// Dialog ref callback\n\tconst setMenuRef = useCallback((component: HTMLElement | null) => {\n\t\t(dialogRef as React.MutableRefObject<HTMLElement | null>).current =\n\t\t\tcomponent;\n\t}, []);\n\n\t// Cleanup on unmount\n\tuseEffect(() => {\n\t\treturn () => {\n\t\t\tisUnmountingRef.current = true;\n\t\t\tif (currentOpenPopover?.getId() === id) {\n\t\t\t\tcurrentOpenPopover = null;\n\t\t\t}\n\t\t\trenderOverlay(false);\n\t\t};\n\t}, [id, renderOverlay]);\n\n\t// Update overlay when isOpen changes\n\tuseEffect(() => {\n\t\trenderOverlay(isOpen);\n\t}, [isOpen, renderOverlay]);\n\n\t// Render header\n\tconst renderHeader = () => {\n\t\tconst hasThemedHeader = variant === 'error' || variant === 'warning';\n\t\tconst hasDefinedHeader = heading || hasThemedHeader;\n\n\t\tif (\n\t\t\t!hasDefinedHeader ||\n\t\t\tvariant === 'walkthrough-action' ||\n\t\t\tvariant === 'feature'\n\t\t) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst headerIcon = {\n\t\t\terror: <Icon category=\"utility\" name=\"error\" size=\"x-small\" inverse />,\n\t\t\twarning: (\n\t\t\t\t<Icon category=\"utility\" name=\"warning\" size=\"x-small\" inverse />\n\t\t\t),\n\t\t};\n\n\t\tif (hasThemedHeader) {\n\t\t\treturn (\n\t\t\t\t<header className=\"slds-popover__header\">\n\t\t\t\t\t<MediaObject\n\t\t\t\t\t\tbody={\n\t\t\t\t\t\t\t<h2\n\t\t\t\t\t\t\t\tid={ariaLabelledby || `${id}-dialog-heading`}\n\t\t\t\t\t\t\t\tclassName=\"slds-truncate slds-text-heading_medium\"\n\t\t\t\t\t\t\t\ttitle={typeof heading === 'string' ? heading : undefined}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{heading}\n\t\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfigure={headerIcon[variant as 'error' | 'warning']}\n\t\t\t\t\t\tverticalCenter\n\t\t\t\t\t/>\n\t\t\t\t</header>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<header\n\t\t\t\tclassName={classNames('slds-popover__header', {\n\t\t\t\t\t'slds-p-vertical_medium': variant === 'walkthrough',\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<h2\n\t\t\t\t\tid={ariaLabelledby || `${id}-dialog-heading`}\n\t\t\t\t\tclassName={classNames({\n\t\t\t\t\t\t'slds-text-heading_small': variant !== 'walkthrough',\n\t\t\t\t\t\t'slds-text-heading_medium': variant === 'walkthrough',\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{heading}\n\t\t\t\t</h2>\n\t\t\t</header>\n\t\t);\n\t};\n\n\t// Render body\n\tconst renderBody = () => {\n\t\tif (variant === 'error' || variant === 'warning') {\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tid={`${id}-dialog-body`}\n\t\t\t\t\tclassName={classNames('slds-popover__body', classNameBody as string)}\n\t\t\t\t>\n\t\t\t\t\t{body}\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\tif (variant === 'walkthrough-action' || variant === 'feature') {\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tclassName={classNames('slds-popover__body', classNameBody as string)}\n\t\t\t\t\tid={`${id}-dialog-body`}\n\t\t\t\t>\n\t\t\t\t\t<div className=\"slds-media\">\n\t\t\t\t\t\t<div className=\"slds-media__figure\">\n\t\t\t\t\t\t\t{variant === 'walkthrough-action' ? (\n\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\t\t\tname=\"touch_action\"\n\t\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\t\tinverse\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\ticon\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"slds-media__body\">\n\t\t\t\t\t\t\t{heading && (\n\t\t\t\t\t\t\t\t<h2\n\t\t\t\t\t\t\t\t\tid={ariaLabelledby || `${id}-dialog-heading`}\n\t\t\t\t\t\t\t\t\tclassName=\"slds-text-heading_small\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{heading}\n\t\t\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{body}\n\t\t\t\t\t\t\t{stepText && (\n\t\t\t\t\t\t\t\t<p className=\"slds-m-top_medium slds-text-title\">{stepText}</p>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tid={`${id}-dialog-body`}\n\t\t\t\tclassName={classNames('slds-popover__body', classNameBody as string)}\n\t\t\t>\n\t\t\t\t{body}\n\t\t\t</div>\n\t\t);\n\t};\n\n\t// Render footer\n\tconst renderFooter = () => {\n\t\tif (footer) {\n\t\t\treturn (\n\t\t\t\t<footer\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-popover__footer',\n\t\t\t\t\t\tclassNameFooter as string,\n\t\t\t\t\t\tfooterClassName as string\n\t\t\t\t\t)}\n\t\t\t\t\tstyle={footerStyle}\n\t\t\t\t>\n\t\t\t\t\t{footer}\n\t\t\t\t</footer>\n\t\t\t);\n\t\t}\n\n\t\tif (\n\t\t\tvariant !== 'walkthrough-action' &&\n\t\t\t(footerWalkthroughActions || stepText)\n\t\t) {\n\t\t\treturn (\n\t\t\t\t<footer\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-popover__footer',\n\t\t\t\t\t\tclassNameFooter as string,\n\t\t\t\t\t\tfooterClassName as string\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t<div className=\"slds-grid slds-grid_vertical-align-center\">\n\t\t\t\t\t\t{stepText && <span className=\"slds-text-title\">{stepText}</span>}\n\t\t\t\t\t\t{footerWalkthroughActions && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName=\"slds-col_bump-left\"\n\t\t\t\t\t\t\t\tstyle={{ display: 'inline-block' }}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{footerWalkthroughActions}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</footer>\n\t\t\t);\n\t\t}\n\n\t\treturn null;\n\t};\n\n\t// Render dialog\n\tconst renderDialog = () => {\n\t\tif (!isOpen) return null;\n\n\t\tconst outsideClickIgnoreClass = `ignore-click-${id}`;\n\n\t\treturn (\n\t\t\t<Dialog\n\t\t\t\thasNubbin={!hasNoNubbin}\n\t\t\t\talign={align}\n\t\t\t\tcontentsClassName={classNames(\n\t\t\t\t\tcontentsClassName as string,\n\t\t\t\t\t'ignore-react-onclickoutside',\n\t\t\t\t\t'slds-popover',\n\t\t\t\t\t{ 'slds-popover_error': variant === 'error' },\n\t\t\t\t\t{\n\t\t\t\t\t\t'slds-popover_walkthrough':\n\t\t\t\t\t\t\tvariant === 'walkthrough' ||\n\t\t\t\t\t\t\tvariant === 'walkthrough-action' ||\n\t\t\t\t\t\t\tvariant === 'feature',\n\t\t\t\t\t},\n\t\t\t\t\t{ 'slds-popover_walkthrough-alt': variant === 'walkthrough-action' },\n\t\t\t\t\t{ 'slds-popover_feature': variant === 'feature' },\n\t\t\t\t\t{ 'slds-popover_warning': variant === 'warning' },\n\t\t\t\t\tclassName as string\n\t\t\t\t)}\n\t\t\t\tcontext={context}\n\t\t\t\thasStaticAlignment={hasStaticAlignment}\n\t\t\t\toffset={offset}\n\t\t\t\tonClose={handleDialogClose}\n\t\t\t\tonOpen={handleDialogOpen}\n\t\t\t\tonKeyDown={handleKeyDown}\n\t\t\t\tonMouseEnter={openOn === 'hover' ? handleMouseEnter : undefined}\n\t\t\t\tonMouseLeave={openOn === 'hover' ? handleMouseLeave : undefined}\n\t\t\t\toutsideClickIgnoreClass={outsideClickIgnoreClass}\n\t\t\t\tonRequestTargetElement={getTargetElement}\n\t\t\t\tposition={position}\n\t\t\t\tstyle={style}\n\t\t\t\tvariant=\"popover\"\n\t\t\t\tref={setMenuRef}\n\t\t\t\tcontainerProps={{\n\t\t\t\t\tid: `${id}-popover`,\n\t\t\t\t\t'aria-labelledby': ariaLabelledby || `${id}-dialog-heading`,\n\t\t\t\t\t'aria-describedby': `${id}-dialog-body`,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{!hasNoCloseButton && (\n\t\t\t\t\t<Button\n\t\t\t\t\t\tassistiveText={{ icon: finalCloseButtonAssistiveText }}\n\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\ticonName=\"close\"\n\t\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t\t'slds-button slds-button_icon-small slds-float_right slds-popover__close slds-button_icon',\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t'slds-button_icon-inverse':\n\t\t\t\t\t\t\t\t\tvariant === 'walkthrough' ||\n\t\t\t\t\t\t\t\t\tvariant === 'walkthrough-action' ||\n\t\t\t\t\t\t\t\t\tvariant === 'feature',\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tonClick={handleCancel}\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tinverse={variant === 'error' || variant === 'warning'}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{renderHeader()}\n\t\t\t\t{renderBody()}\n\t\t\t\t{renderFooter()}\n\t\t\t</Dialog>\n\t\t);\n\t};\n\n\t// Clone trigger element\n\tconst otherChildren: ReactNode[] = [];\n\tlet clonedTrigger: ReactNode = null;\n\n\tReact.Children.forEach(children, (child, index) => {\n\t\tif (index === 0 && React.isValidElement(child)) {\n\t\t\tconst childProps = child.props as Record<string, unknown>;\n\t\t\tconst triggerProps: Record<string, unknown> = {\n\t\t\t\t'aria-haspopup': 'dialog',\n\t\t\t\tid,\n\t\t\t\tonClick:\n\t\t\t\t\topenOn === 'click' || openOn === 'hybrid'\n\t\t\t\t\t\t? (event: MouseEvent) => {\n\t\t\t\t\t\t\t\thandleClick(\n\t\t\t\t\t\t\t\t\tevent,\n\t\t\t\t\t\t\t\t\tchildProps.onClick as (e: MouseEvent) => void\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: childProps.onClick,\n\t\t\t\tonFocus: openOn === 'hover' ? handleFocus : undefined,\n\t\t\t\tonMouseDown,\n\t\t\t\tonMouseEnter:\n\t\t\t\t\topenOn === 'hover' || openOn === 'hybrid'\n\t\t\t\t\t\t? handleMouseEnter\n\t\t\t\t\t\t: undefined,\n\t\t\t\tonMouseLeave:\n\t\t\t\t\topenOn === 'hover' || openOn === 'hybrid'\n\t\t\t\t\t\t? handleMouseLeave\n\t\t\t\t\t\t: undefined,\n\t\t\t\ttabIndex: (childProps.tabIndex as number) || 0,\n\t\t\t};\n\t\t\tclonedTrigger = React.cloneElement(child, triggerProps);\n\t\t} else if (child) {\n\t\t\totherChildren.push(child);\n\t\t}\n\t});\n\n\tconst containerStyles: CSSProperties = {\n\t\tdisplay: hasNoTriggerStyles ? undefined : 'inline-block',\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={triggerClassName as string}\n\t\t\tstyle={containerStyles}\n\t\t\tref={setContainerRef}\n\t\t>\n\t\t\t{clonedTrigger}\n\t\t\t{otherChildren.length > 0 ? otherChildren : null}\n\t\t\t{renderDialog()}\n\t\t</div>\n\t);\n};\n\nPopover.displayName = POPOVER;\n\nexport default Popover;\n"],"mappings":";;;;;;;;;;;;AA6BA,IAAM,IAAkB,OAAO,WAAa,KAGtC,IAAU,IACb,SAAS,cAAc,MAAM,IAC5B,EAAE,OAAO,CAAC,EAAE;AACZ,MACH,EAAQ,MAAM,MAAM,KACpB,EAAQ,MAAM,OAAO,KACrB,EAAQ,MAAM,QAAQ,QACtB,EAAQ,MAAM,SAAS,QACvB,EAAQ,MAAM,WAAW;AAI1B,IAAI,IAMO,MAiLE,IAAyB;CACrC;CACA;CACA;CACA;CACA;CACA;AACD,GAEM,KAA6C,EAClD,aAAa,eACd,GAOM,KAAW,EAChB,WAAQ,SACR,eAAe,GACf,mBACA,cACA,SACA,kBACA,oBACA,oBACA,eACA,uBACA,eAAW,IACX,WACA,iBACA,6BACA,uBAAmB,IACnB,kBAAc,IACd,yBAAqB,IACrB,yBAAqB,IACrB,YACA,UACA,IAAI,IACJ,QAAQ,GACR,YACA,YACA,YACA,YACA,cACA,iBACA,iBACA,iBACA,WACA,mBACA,2BACA,YAAS,SACT,SAAS,GACT,eAAW,YACX,aACA,WACA,sBACA,aAAU,QACV,sBAAkB,KAClB,mCACiC;CACjC,IAAM,KAAc,GAAM,GACpB,IAAK,MAAU,IACf,KAAU,GAAW,CAAmB,GAExC,KAAgB;EAAE,GAAG;EAAsB,GAAG;CAAkB,GAChE,KACL,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