@salesforce/design-system-react 11.0.0-alpha.3 → 11.0.0-alpha.5

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 (447) hide show
  1. package/README.md +112 -70
  2. package/dist/cjs/components/accordion/index.cjs +1 -1
  3. package/dist/cjs/components/accordion/index.cjs.map +1 -1
  4. package/dist/cjs/components/alert/index.cjs +1 -1
  5. package/dist/cjs/components/alert/index.cjs.map +1 -1
  6. package/dist/cjs/components/avatar/index.cjs +1 -1
  7. package/dist/cjs/components/avatar/index.cjs.map +1 -1
  8. package/dist/cjs/components/badge/index.cjs +1 -1
  9. package/dist/cjs/components/badge/index.cjs.map +1 -1
  10. package/dist/cjs/components/breadcrumb/index.cjs +1 -1
  11. package/dist/cjs/components/breadcrumb/index.cjs.map +1 -1
  12. package/dist/cjs/components/builder-header/index.cjs +1 -1
  13. package/dist/cjs/components/builder-header/index.cjs.map +1 -1
  14. package/dist/cjs/components/button/index.cjs +1 -1
  15. package/dist/cjs/components/button/index.cjs.map +1 -1
  16. package/dist/cjs/components/button-group/index.cjs +1 -1
  17. package/dist/cjs/components/button-group/index.cjs.map +1 -1
  18. package/dist/cjs/components/button-stateful/index.cjs +1 -1
  19. package/dist/cjs/components/button-stateful/index.cjs.map +1 -1
  20. package/dist/cjs/components/card/index.cjs +1 -1
  21. package/dist/cjs/components/card/index.cjs.map +1 -1
  22. package/dist/cjs/components/carousel/index.cjs +1 -1
  23. package/dist/cjs/components/carousel/index.cjs.map +1 -1
  24. package/dist/cjs/components/checkbox/index.cjs +1 -1
  25. package/dist/cjs/components/checkbox/index.cjs.map +1 -1
  26. package/dist/cjs/components/color-picker/index.cjs +1 -0
  27. package/dist/cjs/components/color-picker.cjs +1 -0
  28. package/dist/cjs/components/combobox/index.cjs +1 -1
  29. package/dist/cjs/components/combobox/index.cjs.map +1 -1
  30. package/dist/cjs/components/date-picker/index.cjs +1 -1
  31. package/dist/cjs/components/date-picker/index.cjs.map +1 -1
  32. package/dist/cjs/components/docked-composer/index.cjs +1 -1
  33. package/dist/cjs/components/docked-composer/index.cjs.map +1 -1
  34. package/dist/cjs/components/dynamic-icon/index.cjs +1 -1
  35. package/dist/cjs/components/dynamic-icon/index.cjs.map +1 -1
  36. package/dist/cjs/components/expandable-section/index.cjs +1 -1
  37. package/dist/cjs/components/expandable-section/index.cjs.map +1 -1
  38. package/dist/cjs/components/files/index.cjs +1 -1
  39. package/dist/cjs/components/files/index.cjs.map +1 -1
  40. package/dist/cjs/components/filter/index.cjs +1 -0
  41. package/dist/cjs/components/filter.cjs +1 -0
  42. package/dist/cjs/components/grid/index.cjs +2 -0
  43. package/dist/cjs/components/grid/index.cjs.map +1 -0
  44. package/dist/cjs/components/grid.cjs +1 -0
  45. package/dist/cjs/components/icon/index.cjs +1 -1
  46. package/dist/cjs/components/icon/index.cjs.map +1 -1
  47. package/dist/cjs/components/icon-settings/index.cjs +1 -1
  48. package/dist/cjs/components/icon-settings/index.cjs.map +1 -1
  49. package/dist/cjs/components/illustration/index.cjs +1 -1
  50. package/dist/cjs/components/illustration/index.cjs.map +1 -1
  51. package/dist/cjs/components/index.cjs +1 -1
  52. package/dist/cjs/components/input/index.cjs +1 -1
  53. package/dist/cjs/components/input/index.cjs.map +1 -1
  54. package/dist/cjs/components/media-object/index.cjs +1 -1
  55. package/dist/cjs/components/media-object/index.cjs.map +1 -1
  56. package/dist/cjs/components/menu-dropdown/index.cjs +1 -1
  57. package/dist/cjs/components/menu-dropdown/index.cjs.map +1 -1
  58. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs +1 -1
  59. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs.map +1 -1
  60. package/dist/cjs/components/modal/index.cjs +1 -1
  61. package/dist/cjs/components/modal/index.cjs.map +1 -1
  62. package/dist/cjs/components/page-header/index.cjs +1 -1
  63. package/dist/cjs/components/page-header/index.cjs.map +1 -1
  64. package/dist/cjs/components/panel/index.cjs +1 -1
  65. package/dist/cjs/components/panel/index.cjs.map +1 -1
  66. package/dist/cjs/components/pill/index.cjs +1 -1
  67. package/dist/cjs/components/pill/index.cjs.map +1 -1
  68. package/dist/cjs/components/pill-container/index.cjs +1 -1
  69. package/dist/cjs/components/pill-container/index.cjs.map +1 -1
  70. package/dist/cjs/components/popover/index.cjs +1 -1
  71. package/dist/cjs/components/popover/index.cjs.map +1 -1
  72. package/dist/cjs/components/popover/popover.cjs +1 -1
  73. package/dist/cjs/components/popover/popover.cjs.map +1 -1
  74. package/dist/cjs/components/portal-settings/index.cjs +1 -1
  75. package/dist/cjs/components/portal-settings/index.cjs.map +1 -1
  76. package/dist/cjs/components/progress-bar/index.cjs +1 -1
  77. package/dist/cjs/components/progress-bar/index.cjs.map +1 -1
  78. package/dist/cjs/components/progress-indicator/check-props.cjs +2 -0
  79. package/dist/cjs/components/progress-indicator/check-props.cjs.map +1 -0
  80. package/dist/cjs/components/progress-indicator/index.cjs +1 -1
  81. package/dist/cjs/components/progress-indicator/index.cjs.map +1 -1
  82. package/dist/cjs/components/progress-indicator/private/path.cjs +2 -0
  83. package/dist/cjs/components/progress-indicator/private/path.cjs.map +1 -0
  84. package/dist/cjs/components/progress-indicator/private/progress.cjs +1 -1
  85. package/dist/cjs/components/progress-indicator/private/progress.cjs.map +1 -1
  86. package/dist/cjs/components/progress-indicator/private/use-roving-tab-index.cjs +2 -0
  87. package/dist/cjs/components/progress-indicator/private/use-roving-tab-index.cjs.map +1 -0
  88. package/dist/cjs/components/progress-ring/index.cjs +1 -1
  89. package/dist/cjs/components/progress-ring/index.cjs.map +1 -1
  90. package/dist/cjs/components/radio/index.cjs +1 -1
  91. package/dist/cjs/components/radio/index.cjs.map +1 -1
  92. package/dist/cjs/components/radio-button-group/index.cjs +1 -1
  93. package/dist/cjs/components/radio-button-group/index.cjs.map +1 -1
  94. package/dist/cjs/components/radio-group/index.cjs +1 -1
  95. package/dist/cjs/components/radio-group/index.cjs.map +1 -1
  96. package/dist/cjs/components/scoped-notification/index.cjs +1 -1
  97. package/dist/cjs/components/scoped-notification/index.cjs.map +1 -1
  98. package/dist/cjs/components/setup-assistant/index.cjs +1 -1
  99. package/dist/cjs/components/setup-assistant/index.cjs.map +1 -1
  100. package/dist/cjs/components/{data-table → simple-data-table}/cell.cjs +1 -1
  101. package/dist/cjs/components/simple-data-table/cell.cjs.map +1 -0
  102. package/dist/cjs/components/{data-table → simple-data-table}/check-props.cjs +1 -1
  103. package/dist/cjs/components/simple-data-table/check-props.cjs.map +1 -0
  104. package/dist/cjs/components/simple-data-table/column-check-props.cjs.map +1 -0
  105. package/dist/cjs/components/simple-data-table/column.cjs +2 -0
  106. package/dist/cjs/components/simple-data-table/column.cjs.map +1 -0
  107. package/dist/cjs/components/simple-data-table/component.cjs +2 -0
  108. package/dist/cjs/components/simple-data-table/component.cjs.map +1 -0
  109. package/dist/cjs/components/{data-table → simple-data-table}/highlight-cell.cjs +1 -1
  110. package/dist/cjs/components/simple-data-table/highlight-cell.cjs.map +1 -0
  111. package/dist/cjs/components/simple-data-table/index.cjs +2 -0
  112. package/dist/cjs/components/simple-data-table/index.cjs.map +1 -0
  113. package/dist/cjs/components/simple-data-table/interactive-element.cjs.map +1 -0
  114. package/dist/cjs/components/simple-data-table/interactive-link.cjs.map +1 -0
  115. package/dist/cjs/components/simple-data-table/private/cell-context.cjs.map +1 -0
  116. package/dist/cjs/components/simple-data-table/private/cell-fixed.cjs.map +1 -0
  117. package/dist/cjs/components/simple-data-table/private/context-helper.cjs.map +1 -0
  118. package/dist/cjs/components/{data-table → simple-data-table}/private/head.cjs +1 -1
  119. package/dist/cjs/components/simple-data-table/private/head.cjs.map +1 -0
  120. package/dist/cjs/components/simple-data-table/private/header-cell.cjs +2 -0
  121. package/dist/cjs/components/simple-data-table/private/header-cell.cjs.map +1 -0
  122. package/dist/cjs/components/simple-data-table/private/link.cjs.map +1 -0
  123. package/dist/cjs/components/simple-data-table/private/mode.cjs.map +1 -0
  124. package/dist/cjs/components/simple-data-table/private/row.cjs +2 -0
  125. package/dist/cjs/components/simple-data-table/private/row.cjs.map +1 -0
  126. package/dist/cjs/components/simple-data-table/private/table-context.cjs.map +1 -0
  127. package/dist/cjs/components/{data-table → simple-data-table}/row-actions.cjs +1 -1
  128. package/dist/cjs/components/simple-data-table/row-actions.cjs.map +1 -0
  129. package/dist/cjs/components/simple-data-table.cjs +1 -0
  130. package/dist/cjs/components/slider/index.cjs +1 -1
  131. package/dist/cjs/components/slider/index.cjs.map +1 -1
  132. package/dist/cjs/components/spinner/index.cjs +1 -1
  133. package/dist/cjs/components/spinner/index.cjs.map +1 -1
  134. package/dist/cjs/components/split-view/index.cjs +1 -1
  135. package/dist/cjs/components/split-view/index.cjs.map +1 -1
  136. package/dist/cjs/components/tabs/index.cjs +1 -1
  137. package/dist/cjs/components/tabs/index.cjs.map +1 -1
  138. package/dist/cjs/components/textarea/index.cjs +1 -1
  139. package/dist/cjs/components/textarea/index.cjs.map +1 -1
  140. package/dist/cjs/components/toast/index.cjs +1 -1
  141. package/dist/cjs/components/toast/index.cjs.map +1 -1
  142. package/dist/cjs/components/tooltip/index.cjs +2 -2
  143. package/dist/cjs/components/tooltip/index.cjs.map +1 -1
  144. package/dist/cjs/components/tree/index.cjs +1 -0
  145. package/dist/cjs/components/tree.cjs +1 -0
  146. package/dist/cjs/components/trial-bar/index.cjs +1 -1
  147. package/dist/cjs/components/trial-bar/index.cjs.map +1 -1
  148. package/dist/cjs/components/vertical-navigation/index.cjs +1 -1
  149. package/dist/cjs/components/vertical-navigation/index.cjs.map +1 -1
  150. package/dist/cjs/components/visual-picker/index.cjs +1 -1
  151. package/dist/cjs/components/visual-picker/index.cjs.map +1 -1
  152. package/dist/cjs/components/welcome-mat/index.cjs +1 -1
  153. package/dist/cjs/components/welcome-mat/index.cjs.map +1 -1
  154. package/dist/cjs/utilities/constants.cjs +1 -1
  155. package/dist/cjs/utilities/constants.cjs.map +1 -1
  156. package/dist/cjs/utilities/hooks/index.cjs +1 -0
  157. package/dist/cjs/utilities/hooks.cjs +1 -0
  158. package/dist/cjs/utilities/warning/incompatible-props.cjs +2 -0
  159. package/dist/cjs/utilities/warning/incompatible-props.cjs.map +1 -0
  160. package/dist/es/components/accordion/index.js +28 -24
  161. package/dist/es/components/accordion/index.js.map +1 -1
  162. package/dist/es/components/alert/index.js +14 -14
  163. package/dist/es/components/alert/index.js.map +1 -1
  164. package/dist/es/components/badge/index.js +1 -0
  165. package/dist/es/components/badge/index.js.map +1 -1
  166. package/dist/es/components/button/index.js +1 -1
  167. package/dist/es/components/button/index.js.map +1 -1
  168. package/dist/es/components/button-stateful/index.js +3 -2
  169. package/dist/es/components/button-stateful/index.js.map +1 -1
  170. package/dist/es/components/color-picker/index.js +2 -0
  171. package/dist/es/components/color-picker.js +2 -0
  172. package/dist/es/components/filter/index.js +2 -0
  173. package/dist/es/components/filter.js +2 -0
  174. package/dist/es/components/grid/index.js +31 -0
  175. package/dist/es/components/grid/index.js.map +1 -0
  176. package/dist/es/components/grid.js +2 -0
  177. package/dist/es/components/index.js +78 -78
  178. package/dist/es/components/menu-dropdown/index.js +5 -5
  179. package/dist/es/components/menu-dropdown/menu-dropdown.js +47 -40
  180. package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
  181. package/dist/es/components/page-header/index.js +24 -24
  182. package/dist/es/components/page-header/index.js.map +1 -1
  183. package/dist/es/components/popover/index.js +3 -3
  184. package/dist/es/components/popover/popover.js +10 -3
  185. package/dist/es/components/popover/popover.js.map +1 -1
  186. package/dist/es/components/progress-indicator/check-props.js +24 -0
  187. package/dist/es/components/progress-indicator/check-props.js.map +1 -0
  188. package/dist/es/components/progress-indicator/index.js +80 -38
  189. package/dist/es/components/progress-indicator/index.js.map +1 -1
  190. package/dist/es/components/progress-indicator/private/path.js +95 -0
  191. package/dist/es/components/progress-indicator/private/path.js.map +1 -0
  192. package/dist/es/components/progress-indicator/private/progress.js +1 -1
  193. package/dist/es/components/progress-indicator/private/progress.js.map +1 -1
  194. package/dist/es/components/progress-indicator/private/use-roving-tab-index.js +29 -0
  195. package/dist/es/components/progress-indicator/private/use-roving-tab-index.js.map +1 -0
  196. package/dist/es/components/progress-ring/index.js +8 -8
  197. package/dist/es/components/progress-ring/index.js.map +1 -1
  198. package/dist/es/components/{data-table → simple-data-table}/cell.js +2 -2
  199. package/dist/es/components/simple-data-table/cell.js.map +1 -0
  200. package/dist/es/components/{data-table → simple-data-table}/check-props.js +2 -2
  201. package/dist/es/components/simple-data-table/check-props.js.map +1 -0
  202. package/dist/es/components/{data-table → simple-data-table}/column-check-props.js +1 -1
  203. package/dist/es/components/simple-data-table/column-check-props.js.map +1 -0
  204. package/dist/es/components/simple-data-table/column.js +8 -0
  205. package/dist/es/components/simple-data-table/column.js.map +1 -0
  206. package/dist/es/components/{data-table → simple-data-table}/component.js +6 -10
  207. package/dist/es/components/simple-data-table/component.js.map +1 -0
  208. package/dist/es/components/{data-table → simple-data-table}/highlight-cell.js +2 -2
  209. package/dist/es/components/simple-data-table/highlight-cell.js.map +1 -0
  210. package/dist/es/components/{data-table → simple-data-table}/index.js +126 -233
  211. package/dist/es/components/simple-data-table/index.js.map +1 -0
  212. package/dist/es/components/{data-table → simple-data-table}/interactive-element.js +1 -1
  213. package/dist/es/components/simple-data-table/interactive-element.js.map +1 -0
  214. package/dist/es/components/{data-table → simple-data-table}/interactive-link.js +1 -1
  215. package/dist/es/components/simple-data-table/interactive-link.js.map +1 -0
  216. package/dist/es/components/{data-table → simple-data-table}/private/cell-context.js +1 -1
  217. package/dist/es/components/simple-data-table/private/cell-context.js.map +1 -0
  218. package/dist/es/components/{data-table → simple-data-table}/private/cell-fixed.js +1 -1
  219. package/dist/es/components/simple-data-table/private/cell-fixed.js.map +1 -0
  220. package/dist/es/components/{data-table → simple-data-table}/private/context-helper.js +1 -1
  221. package/dist/es/components/simple-data-table/private/context-helper.js.map +1 -0
  222. package/dist/es/components/{data-table → simple-data-table}/private/head.js +2 -2
  223. package/dist/es/components/simple-data-table/private/head.js.map +1 -0
  224. package/dist/es/components/{data-table → simple-data-table}/private/header-cell.js +2 -2
  225. package/dist/es/components/simple-data-table/private/header-cell.js.map +1 -0
  226. package/dist/es/components/{data-table → simple-data-table}/private/link.js +1 -1
  227. package/dist/es/components/simple-data-table/private/link.js.map +1 -0
  228. package/dist/es/components/{data-table → simple-data-table}/private/mode.js +1 -1
  229. package/dist/es/components/simple-data-table/private/mode.js.map +1 -0
  230. package/dist/es/components/{data-table → simple-data-table}/private/row.js +6 -6
  231. package/dist/es/components/simple-data-table/private/row.js.map +1 -0
  232. package/dist/es/components/{data-table → simple-data-table}/private/table-context.js +1 -1
  233. package/dist/es/components/simple-data-table/private/table-context.js.map +1 -0
  234. package/dist/es/components/{data-table → simple-data-table}/row-actions.js +2 -2
  235. package/dist/es/components/simple-data-table/row-actions.js.map +1 -0
  236. package/dist/es/components/simple-data-table.js +2 -0
  237. package/dist/es/components/tooltip/index.js +90 -84
  238. package/dist/es/components/tooltip/index.js.map +1 -1
  239. package/dist/es/components/tree/index.js +2 -0
  240. package/dist/es/components/tree.js +2 -0
  241. package/dist/es/utilities/constants.js +2 -2
  242. package/dist/es/utilities/constants.js.map +1 -1
  243. package/dist/es/utilities/hooks/index.js +2 -0
  244. package/dist/es/utilities/hooks.js +1 -0
  245. package/dist/es/utilities/warning/incompatible-props.js +19 -0
  246. package/dist/es/utilities/warning/incompatible-props.js.map +1 -0
  247. package/dist/types/components/accordion/index.d.ts.map +1 -1
  248. package/dist/types/components/alert/index.d.ts.map +1 -1
  249. package/dist/types/components/badge/index.d.ts +1 -1
  250. package/dist/types/components/badge/index.d.ts.map +1 -1
  251. package/dist/types/components/button/index.d.ts +5 -2
  252. package/dist/types/components/button/index.d.ts.map +1 -1
  253. package/dist/types/components/button-stateful/index.d.ts +2 -2
  254. package/dist/types/components/button-stateful/index.d.ts.map +1 -1
  255. package/dist/types/components/index.d.ts +14 -14
  256. package/dist/types/components/index.d.ts.map +1 -1
  257. package/dist/types/components/page-header/index.d.ts +1 -1
  258. package/dist/types/components/page-header/index.d.ts.map +1 -1
  259. package/dist/types/components/progress-indicator/check-props.d.ts.map +1 -0
  260. package/dist/types/components/progress-indicator/index.d.ts +39 -8
  261. package/dist/types/components/progress-indicator/index.d.ts.map +1 -1
  262. package/dist/types/components/progress-indicator/private/path.d.ts +48 -0
  263. package/dist/types/components/progress-indicator/private/path.d.ts.map +1 -0
  264. package/dist/types/components/progress-indicator/private/progress.d.ts.map +1 -1
  265. package/dist/types/components/progress-indicator/private/use-roving-tab-index.d.ts +41 -0
  266. package/dist/types/components/progress-indicator/private/use-roving-tab-index.d.ts.map +1 -0
  267. package/dist/types/components/{data-table → simple-data-table}/cell.d.ts +5 -5
  268. package/dist/types/components/simple-data-table/cell.d.ts.map +1 -0
  269. package/dist/types/components/simple-data-table/check-props.d.ts +3 -0
  270. package/dist/types/components/simple-data-table/check-props.d.ts.map +1 -0
  271. package/dist/types/components/simple-data-table/column-check-props.d.ts.map +1 -0
  272. package/dist/types/components/{data-table → simple-data-table}/column.d.ts +6 -6
  273. package/dist/types/components/simple-data-table/column.d.ts.map +1 -0
  274. package/dist/types/components/simple-data-table/highlight-cell.d.ts +14 -0
  275. package/dist/types/components/simple-data-table/highlight-cell.d.ts.map +1 -0
  276. package/dist/types/components/{data-table → simple-data-table}/index.d.ts +13 -40
  277. package/dist/types/components/simple-data-table/index.d.ts.map +1 -0
  278. package/dist/types/components/simple-data-table/interactive-element.d.ts.map +1 -0
  279. package/dist/types/components/simple-data-table/interactive-link.d.ts.map +1 -0
  280. package/dist/types/components/simple-data-table/private/cell-context.d.ts.map +1 -0
  281. package/dist/types/components/simple-data-table/private/cell-fixed.d.ts.map +1 -0
  282. package/dist/types/components/simple-data-table/private/context-helper.d.ts.map +1 -0
  283. package/dist/types/components/{data-table → simple-data-table}/private/head.d.ts +6 -6
  284. package/dist/types/components/simple-data-table/private/head.d.ts.map +1 -0
  285. package/dist/types/components/{data-table → simple-data-table}/private/header-cell.d.ts +3 -3
  286. package/dist/types/components/simple-data-table/private/header-cell.d.ts.map +1 -0
  287. package/dist/types/components/simple-data-table/private/link.d.ts.map +1 -0
  288. package/dist/types/components/simple-data-table/private/mode.d.ts.map +1 -0
  289. package/dist/types/components/{data-table → simple-data-table}/private/row.d.ts +11 -11
  290. package/dist/types/components/simple-data-table/private/row.d.ts.map +1 -0
  291. package/dist/types/components/simple-data-table/private/table-context.d.ts.map +1 -0
  292. package/dist/types/components/{data-table → simple-data-table}/row-actions.d.ts +5 -5
  293. package/dist/types/components/simple-data-table/row-actions.d.ts.map +1 -0
  294. package/dist/types/components/simple-data-table/simple-data-table.d.ts +15 -0
  295. package/dist/types/components/simple-data-table/simple-data-table.d.ts.map +1 -0
  296. package/dist/types/components/{data-table → simple-data-table}/types.d.ts +56 -71
  297. package/dist/types/components/simple-data-table/types.d.ts.map +1 -0
  298. package/dist/types/components/simple-data-table.d.ts +2 -0
  299. package/dist/types/components/tooltip/index.d.ts +10 -1
  300. package/dist/types/components/tooltip/index.d.ts.map +1 -1
  301. package/dist/types/utilities/constants.d.ts +8 -7
  302. package/dist/types/utilities/constants.d.ts.map +1 -1
  303. package/dist/types/utilities/hooks/index.d.ts +1 -1
  304. package/dist/types/utilities/hooks/index.d.ts.map +1 -1
  305. package/dist/types/utilities/hooks.d.ts +0 -1
  306. package/dist/types/utilities/sample-data/global-navigation-bar.d.ts +0 -1
  307. package/dist/types/utilities/sample-data/vertical-navigation.d.ts +0 -1
  308. package/dist/types/utilities/warning/incompatible-props.d.ts.map +1 -1
  309. package/package.json +6 -4
  310. package/dist/cjs/components/data-table/cell.cjs.map +0 -1
  311. package/dist/cjs/components/data-table/check-props.cjs.map +0 -1
  312. package/dist/cjs/components/data-table/column-check-props.cjs.map +0 -1
  313. package/dist/cjs/components/data-table/column.cjs +0 -2
  314. package/dist/cjs/components/data-table/column.cjs.map +0 -1
  315. package/dist/cjs/components/data-table/component.cjs +0 -2
  316. package/dist/cjs/components/data-table/component.cjs.map +0 -1
  317. package/dist/cjs/components/data-table/highlight-cell.cjs.map +0 -1
  318. package/dist/cjs/components/data-table/index.cjs +0 -2
  319. package/dist/cjs/components/data-table/index.cjs.map +0 -1
  320. package/dist/cjs/components/data-table/interactive-element.cjs.map +0 -1
  321. package/dist/cjs/components/data-table/interactive-link.cjs.map +0 -1
  322. package/dist/cjs/components/data-table/private/cell-context.cjs.map +0 -1
  323. package/dist/cjs/components/data-table/private/cell-fixed.cjs.map +0 -1
  324. package/dist/cjs/components/data-table/private/context-helper.cjs.map +0 -1
  325. package/dist/cjs/components/data-table/private/head.cjs.map +0 -1
  326. package/dist/cjs/components/data-table/private/header-cell.cjs +0 -2
  327. package/dist/cjs/components/data-table/private/header-cell.cjs.map +0 -1
  328. package/dist/cjs/components/data-table/private/link.cjs.map +0 -1
  329. package/dist/cjs/components/data-table/private/mode.cjs.map +0 -1
  330. package/dist/cjs/components/data-table/private/row.cjs +0 -2
  331. package/dist/cjs/components/data-table/private/row.cjs.map +0 -1
  332. package/dist/cjs/components/data-table/private/table-context.cjs.map +0 -1
  333. package/dist/cjs/components/data-table/row-actions.cjs.map +0 -1
  334. package/dist/cjs/components/data-table.cjs +0 -1
  335. package/dist/cjs/utilities/design-tokens/dist/palette-colors.common.cjs +0 -2
  336. package/dist/cjs/utilities/design-tokens/dist/palette-colors.common.cjs.map +0 -1
  337. package/dist/cjs/utilities/design-tokens/dist/salesforce-skin.common.cjs +0 -2
  338. package/dist/cjs/utilities/design-tokens/dist/salesforce-skin.common.cjs.map +0 -1
  339. package/dist/es/components/data-table/cell.js.map +0 -1
  340. package/dist/es/components/data-table/check-props.js.map +0 -1
  341. package/dist/es/components/data-table/column-check-props.js.map +0 -1
  342. package/dist/es/components/data-table/column.js +0 -8
  343. package/dist/es/components/data-table/column.js.map +0 -1
  344. package/dist/es/components/data-table/component.js.map +0 -1
  345. package/dist/es/components/data-table/highlight-cell.js.map +0 -1
  346. package/dist/es/components/data-table/index.js.map +0 -1
  347. package/dist/es/components/data-table/interactive-element.js.map +0 -1
  348. package/dist/es/components/data-table/interactive-link.js.map +0 -1
  349. package/dist/es/components/data-table/private/cell-context.js.map +0 -1
  350. package/dist/es/components/data-table/private/cell-fixed.js.map +0 -1
  351. package/dist/es/components/data-table/private/context-helper.js.map +0 -1
  352. package/dist/es/components/data-table/private/head.js.map +0 -1
  353. package/dist/es/components/data-table/private/header-cell.js.map +0 -1
  354. package/dist/es/components/data-table/private/link.js.map +0 -1
  355. package/dist/es/components/data-table/private/mode.js.map +0 -1
  356. package/dist/es/components/data-table/private/row.js.map +0 -1
  357. package/dist/es/components/data-table/private/table-context.js.map +0 -1
  358. package/dist/es/components/data-table/row-actions.js.map +0 -1
  359. package/dist/es/components/data-table.js +0 -2
  360. package/dist/es/utilities/design-tokens/dist/palette-colors.common.js +0 -6
  361. package/dist/es/utilities/design-tokens/dist/palette-colors.common.js.map +0 -1
  362. package/dist/es/utilities/design-tokens/dist/salesforce-skin.common.js +0 -286
  363. package/dist/es/utilities/design-tokens/dist/salesforce-skin.common.js.map +0 -1
  364. package/dist/types/components/data-table/cell.d.ts.map +0 -1
  365. package/dist/types/components/data-table/check-props.d.ts.map +0 -1
  366. package/dist/types/components/data-table/column-check-props.d.ts.map +0 -1
  367. package/dist/types/components/data-table/column.d.ts.map +0 -1
  368. package/dist/types/components/data-table/data-table.d.ts +0 -15
  369. package/dist/types/components/data-table/data-table.d.ts.map +0 -1
  370. package/dist/types/components/data-table/highlight-cell.d.ts +0 -14
  371. package/dist/types/components/data-table/highlight-cell.d.ts.map +0 -1
  372. package/dist/types/components/data-table/index.d.ts.map +0 -1
  373. package/dist/types/components/data-table/interactive-element.d.ts.map +0 -1
  374. package/dist/types/components/data-table/interactive-link.d.ts.map +0 -1
  375. package/dist/types/components/data-table/private/cell-context.d.ts.map +0 -1
  376. package/dist/types/components/data-table/private/cell-fixed.d.ts.map +0 -1
  377. package/dist/types/components/data-table/private/context-helper.d.ts.map +0 -1
  378. package/dist/types/components/data-table/private/head.d.ts.map +0 -1
  379. package/dist/types/components/data-table/private/header-cell.d.ts.map +0 -1
  380. package/dist/types/components/data-table/private/link.d.ts.map +0 -1
  381. package/dist/types/components/data-table/private/mode.d.ts.map +0 -1
  382. package/dist/types/components/data-table/private/row.d.ts.map +0 -1
  383. package/dist/types/components/data-table/private/table-context.d.ts.map +0 -1
  384. package/dist/types/components/data-table/row-actions.d.ts.map +0 -1
  385. package/dist/types/components/data-table/types.d.ts.map +0 -1
  386. package/dist/types/components/data-table.d.ts +0 -2
  387. package/dist/types/utilities/design-tokens/dist/analytics-cloud.common.d.ts +0 -81
  388. package/dist/types/utilities/design-tokens/dist/analytics-cloud.common.d.ts.map +0 -1
  389. package/dist/types/utilities/design-tokens/dist/bg-actions.common.d.ts +0 -201
  390. package/dist/types/utilities/design-tokens/dist/bg-actions.common.d.ts.map +0 -1
  391. package/dist/types/utilities/design-tokens/dist/bg-custom.common.d.ts +0 -117
  392. package/dist/types/utilities/design-tokens/dist/bg-custom.common.d.ts.map +0 -1
  393. package/dist/types/utilities/design-tokens/dist/bg-icons.common.d.ts +0 -5
  394. package/dist/types/utilities/design-tokens/dist/bg-icons.common.d.ts.map +0 -1
  395. package/dist/types/utilities/design-tokens/dist/bg-standard.common.d.ts +0 -204
  396. package/dist/types/utilities/design-tokens/dist/bg-standard.common.d.ts.map +0 -1
  397. package/dist/types/utilities/design-tokens/dist/color-palettes.common.d.ts +0 -3
  398. package/dist/types/utilities/design-tokens/dist/color-palettes.common.d.ts.map +0 -1
  399. package/dist/types/utilities/design-tokens/dist/components.common.d.ts +0 -249
  400. package/dist/types/utilities/design-tokens/dist/components.common.d.ts.map +0 -1
  401. package/dist/types/utilities/design-tokens/dist/console-base.common.d.ts +0 -9
  402. package/dist/types/utilities/design-tokens/dist/console-base.common.d.ts.map +0 -1
  403. package/dist/types/utilities/design-tokens/dist/force-base.common.d.ts +0 -647
  404. package/dist/types/utilities/design-tokens/dist/force-base.common.d.ts.map +0 -1
  405. package/dist/types/utilities/design-tokens/dist/force-font-commons.common.d.ts +0 -14
  406. package/dist/types/utilities/design-tokens/dist/force-font-commons.common.d.ts.map +0 -1
  407. package/dist/types/utilities/design-tokens/dist/force-mq-commons.common.d.ts +0 -10
  408. package/dist/types/utilities/design-tokens/dist/force-mq-commons.common.d.ts.map +0 -1
  409. package/dist/types/utilities/design-tokens/dist/icon-paths.common.d.ts +0 -9
  410. package/dist/types/utilities/design-tokens/dist/icon-paths.common.d.ts.map +0 -1
  411. package/dist/types/utilities/design-tokens/dist/illustrations.common.d.ts +0 -7
  412. package/dist/types/utilities/design-tokens/dist/illustrations.common.d.ts.map +0 -1
  413. package/dist/types/utilities/design-tokens/dist/image-paths.common.d.ts +0 -12
  414. package/dist/types/utilities/design-tokens/dist/image-paths.common.d.ts.map +0 -1
  415. package/dist/types/utilities/design-tokens/dist/marketing-cloud.common.d.ts +0 -35
  416. package/dist/types/utilities/design-tokens/dist/marketing-cloud.common.d.ts.map +0 -1
  417. package/dist/types/utilities/design-tokens/dist/palette-colors.common.d.ts +0 -98
  418. package/dist/types/utilities/design-tokens/dist/palette-colors.common.d.ts.map +0 -1
  419. package/dist/types/utilities/design-tokens/dist/s1-base-large.common.d.ts +0 -15
  420. package/dist/types/utilities/design-tokens/dist/s1-base-large.common.d.ts.map +0 -1
  421. package/dist/types/utilities/design-tokens/dist/s1-base-medium.common.d.ts +0 -5
  422. package/dist/types/utilities/design-tokens/dist/s1-base-medium.common.d.ts.map +0 -1
  423. package/dist/types/utilities/design-tokens/dist/s1-base-small.common.d.ts +0 -11
  424. package/dist/types/utilities/design-tokens/dist/s1-base-small.common.d.ts.map +0 -1
  425. package/dist/types/utilities/design-tokens/dist/s1-base.common.d.ts +0 -21
  426. package/dist/types/utilities/design-tokens/dist/s1-base.common.d.ts.map +0 -1
  427. package/dist/types/utilities/design-tokens/dist/salesforce-skin.common.d.ts +0 -283
  428. package/dist/types/utilities/design-tokens/dist/salesforce-skin.common.d.ts.map +0 -1
  429. /package/dist/cjs/components/{data-table → simple-data-table}/column-check-props.cjs +0 -0
  430. /package/dist/cjs/components/{data-table → simple-data-table}/interactive-element.cjs +0 -0
  431. /package/dist/cjs/components/{data-table → simple-data-table}/interactive-link.cjs +0 -0
  432. /package/dist/cjs/components/{data-table → simple-data-table}/private/cell-context.cjs +0 -0
  433. /package/dist/cjs/components/{data-table → simple-data-table}/private/cell-fixed.cjs +0 -0
  434. /package/dist/cjs/components/{data-table → simple-data-table}/private/context-helper.cjs +0 -0
  435. /package/dist/cjs/components/{data-table → simple-data-table}/private/link.cjs +0 -0
  436. /package/dist/cjs/components/{data-table → simple-data-table}/private/mode.cjs +0 -0
  437. /package/dist/cjs/components/{data-table → simple-data-table}/private/table-context.cjs +0 -0
  438. /package/dist/types/components/{data-table → progress-indicator}/check-props.d.ts +0 -0
  439. /package/dist/types/components/{data-table → simple-data-table}/column-check-props.d.ts +0 -0
  440. /package/dist/types/components/{data-table → simple-data-table}/interactive-element.d.ts +0 -0
  441. /package/dist/types/components/{data-table → simple-data-table}/interactive-link.d.ts +0 -0
  442. /package/dist/types/components/{data-table → simple-data-table}/private/cell-context.d.ts +0 -0
  443. /package/dist/types/components/{data-table → simple-data-table}/private/cell-fixed.d.ts +0 -0
  444. /package/dist/types/components/{data-table → simple-data-table}/private/context-helper.d.ts +0 -0
  445. /package/dist/types/components/{data-table → simple-data-table}/private/link.d.ts +0 -0
  446. /package/dist/types/components/{data-table → simple-data-table}/private/mode.d.ts +0 -0
  447. /package/dist/types/components/{data-table → simple-data-table}/private/table-context.d.ts +0 -0
@@ -2,74 +2,75 @@ import { POPOVER_TOOLTIP as e } from "../../utilities/constants.js";
2
2
  import { IconSettingsContext as t } from "../icon-settings/index.js";
3
3
  import n from "../../utilities/event.js";
4
4
  import r from "../../utilities/generate-id.js";
5
- import ee from "../utilities/dialog/index.js";
6
- import i from "../icon/index.js";
7
- import a from "./check-props.js";
8
- import o from "./component.js";
9
- import s from "../button/index.js";
10
- import c, { useCallback as l, useContext as u, useEffect as d, useRef as f, useState as p } from "react";
11
- import m from "classnames";
12
- import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
5
+ import i from "../utilities/dialog/index.js";
6
+ import a from "../icon/index.js";
7
+ import o from "./check-props.js";
8
+ import s from "./component.js";
9
+ import ee from "../button/index.js";
10
+ import c, { useCallback as l, useContext as te, useEffect as u, useRef as d, useState as f } from "react";
11
+ import p from "classnames";
12
+ import { Fragment as ne, jsx as m, jsxs as h } from "react/jsx-runtime";
13
13
  //#region components/tooltip/index.tsx
14
- var v = {
14
+ var g = {
15
15
  tooltipTipLearnMoreIcon: "this link",
16
16
  triggerLearnMoreIcon: "Help"
17
- }, y = {
17
+ }, re = {
18
18
  learnMoreAfter: "to learn more.",
19
19
  learnMoreBefore: "Click"
20
- }, b = ({ align: b = "top", assistiveText: te, children: x, content: S = /* @__PURE__ */ g("span", { children: "Tooltip" }), dialogClassName: C, hasAnchoredNubbin: w = !1, hasStaticAlignment: T = !1, hoverCloseDelay: E = 50, hoverOpenDelay: D = 0, id: O, labels: ne, isOpen: k, onRequestTargetElement: A, onClickTrigger: j, triggerClassName: M, position: N = "absolute", triggerStyle: P, theme: F = "info", target: I, variant: L = "base" }) => {
21
- let R = {
22
- ...v,
23
- ...te
24
- }, z = {
25
- ...y,
26
- ...ne
27
- }, re = u(t), [B, V] = p(!1), [H, U] = p(!1), W = f(null), G = f(null), K = f(r()), q = f(!1);
28
- d(() => {
29
- a(e, {
30
- align: b,
31
- assistiveText: R,
32
- children: x,
33
- content: S,
34
- dialogClassName: C,
35
- hasAnchoredNubbin: w,
36
- hasStaticAlignment: T,
37
- hoverCloseDelay: E,
38
- hoverOpenDelay: D,
39
- id: O,
40
- labels: z,
41
- isOpen: k,
42
- onRequestTargetElement: A,
43
- onClickTrigger: j,
44
- triggerClassName: M,
45
- position: N,
46
- triggerStyle: P,
47
- theme: F,
48
- variant: L
49
- }, o);
50
- }, []), d(() => () => {
20
+ }, _ = ({ align: _ = "top", assistiveText: ie, children: v, content: y = /* @__PURE__ */ m("span", { children: "Tooltip" }), dialogClassName: b, hasAnchoredNubbin: x = !1, hasStaticAlignment: S = !1, hoverCloseDelay: C = 50, hoverOpenDelay: w = 0, iconVariant: T = "bare", id: E, labels: D, isOpen: O, onRequestTargetElement: k, onClickTrigger: A, triggerClassName: j, position: M = "absolute", triggerStyle: N, theme: P = "info", target: F, variant: I = "base" }) => {
21
+ let L = {
22
+ ...g,
23
+ ...ie
24
+ }, R = {
25
+ ...re,
26
+ ...D
27
+ }, z = te(t), [B, V] = f(!1), [H, U] = f(!1), W = d(null), G = d(null), K = d(r()), q = d(!1);
28
+ u(() => {
29
+ o(e, {
30
+ align: _,
31
+ assistiveText: L,
32
+ children: v,
33
+ content: y,
34
+ dialogClassName: b,
35
+ hasAnchoredNubbin: x,
36
+ hasStaticAlignment: S,
37
+ hoverCloseDelay: C,
38
+ hoverOpenDelay: w,
39
+ iconVariant: T,
40
+ id: E,
41
+ labels: R,
42
+ isOpen: O,
43
+ onRequestTargetElement: k,
44
+ onClickTrigger: A,
45
+ triggerClassName: j,
46
+ position: M,
47
+ triggerStyle: N,
48
+ theme: P,
49
+ variant: I
50
+ }, s);
51
+ }, []), u(() => () => {
51
52
  q.current = !0, G.current && clearTimeout(G.current);
52
53
  }, []);
53
- let J = l(() => O || K.current, [O]), Y = l(() => k === void 0 ? B : k, [k, B]), ie = l(() => A ? A() : I || W.current, [A, I]), X = l(() => {
54
+ let J = l(() => E || K.current, [E]), Y = l(() => O === void 0 ? B : O, [O, B]), ae = l(() => k ? k() : F || W.current, [k, F]), X = l(() => {
54
55
  G.current && clearTimeout(G.current), V(!1);
55
56
  }, []), Z = l(() => {
56
57
  G.current && clearTimeout(G.current), G.current = setTimeout(() => {
57
58
  q.current || V(!0);
58
- }, D);
59
- }, [D]), Q = l((e) => {
59
+ }, w);
60
+ }, [w]), Q = l((e) => {
60
61
  e.stopPropagation(), G.current && clearTimeout(G.current), G.current = setTimeout(() => {
61
62
  let t = e.relatedTarget, n = t?.classList?.contains("slds-popover_tooltip") || t?.classList?.contains("slds-popover__body");
62
63
  !q.current && !n && V(!1);
63
- }, E);
64
- }, [E]), ae = l((e) => {
64
+ }, C);
65
+ }, [C]), $ = l((e) => {
65
66
  e.stopPropagation(), G.current = setTimeout(() => {
66
67
  !q.current && e.key === "Escape" && V(!1);
67
- }, E);
68
- }, [E]), oe = l((e) => {
68
+ }, C);
69
+ }, [C]), oe = l((e) => {
69
70
  e && W.current !== e && (W.current = e, H || U(!0));
70
71
  }, [H]), se = () => {
71
- if (!w) return null;
72
- let e = b.split(" ")[0], t = {
72
+ if (!x) return null;
73
+ let e = _.split(" ")[0], t = {
73
74
  height: "0",
74
75
  position: "relative",
75
76
  width: "0"
@@ -96,90 +97,95 @@ var v = {
96
97
  break;
97
98
  default: t.left = `${r.width / 2}px`, t.top = "0", n.left = "-8px", n.top = "-19px";
98
99
  }
99
- return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("style", { children: `#${J()}:after, #${J()}:before {
100
+ return /* @__PURE__ */ h(ne, { children: [/* @__PURE__ */ m("style", { children: `#${J()}:after, #${J()}:before {
100
101
  display: none;
101
- }` }), Y() ? /* @__PURE__ */ g("div", {
102
+ }` }), Y() ? /* @__PURE__ */ m("div", {
102
103
  style: t,
103
- children: /* @__PURE__ */ g("div", { style: n })
104
+ children: /* @__PURE__ */ m("div", { style: n })
104
105
  }) : null] });
105
106
  }, ce = () => {
106
- let e, t = c.Children.count(x) === 0;
107
- return e = t && j ? /* @__PURE__ */ g("a", {
107
+ let e, t = c.Children.count(v) === 0, r = T === "inverse", i = T === "error" || T === "warning" ? T : void 0;
108
+ return e = t && A ? /* @__PURE__ */ m("a", {
108
109
  href: "#",
109
- onClick: n.trappedHandler(j),
110
- children: /* @__PURE__ */ g(i, {
110
+ onClick: n.trappedHandler(A),
111
+ children: /* @__PURE__ */ m(a, {
111
112
  category: "utility",
113
+ colorVariant: i,
114
+ inverse: r,
112
115
  name: "info",
113
- assistiveText: { label: R.triggerLearnMoreIcon },
116
+ assistiveText: { label: L.triggerLearnMoreIcon },
114
117
  size: "x-small"
115
118
  })
116
- }) : t ? /* @__PURE__ */ g(s, {
119
+ }) : t ? /* @__PURE__ */ m(ee, {
117
120
  "aria-disabled": !0,
118
- assistiveText: { icon: R.triggerLearnMoreIcon },
121
+ assistiveText: { icon: L.triggerLearnMoreIcon },
119
122
  iconCategory: "utility",
123
+ iconClassName: i && `slds-icon-text-${i}`,
120
124
  iconName: "info",
125
+ iconVariant: r ? "bare" : void 0,
126
+ inverse: r,
121
127
  variant: "icon"
122
- }) : x, c.Children.map(e, (e, t) => c.isValidElement(e) ? c.cloneElement(e, {
128
+ }) : v, c.Children.map(e, (e, t) => c.isValidElement(e) ? c.cloneElement(e, {
123
129
  key: t,
124
130
  "aria-describedby": Y() ? J() : void 0,
125
131
  onBlur: Q,
126
132
  onFocus: Z,
127
133
  onMouseEnter: Z,
128
134
  onMouseLeave: Q,
129
- onKeyDown: ae
135
+ onKeyDown: $
130
136
  }) : e);
131
- }, le = () => /* @__PURE__ */ _("div", {
132
- className: m("slds-popover__body", { "slds-text-color_inverse": F === "error" || L === "error" }),
133
- children: [S, L === "learnMore" && j ? /* @__PURE__ */ _("div", {
137
+ }, le = () => /* @__PURE__ */ h("div", {
138
+ className: p("slds-popover__body", { "slds-text-color_inverse": P === "error" || I === "error" }),
139
+ children: [y, I === "learnMore" && A ? /* @__PURE__ */ h("div", {
134
140
  className: "slds-m-top_x-small",
135
141
  "aria-hidden": "true",
136
142
  children: [
137
- z.learnMoreBefore,
143
+ R.learnMoreBefore,
138
144
  " ",
139
- /* @__PURE__ */ g(i, {
140
- assistiveText: { label: R.tooltipTipLearnMoreIcon },
145
+ /* @__PURE__ */ m(a, {
146
+ assistiveText: { label: L.tooltipTipLearnMoreIcon },
141
147
  category: "utility",
142
148
  inverse: !0,
143
149
  name: "info",
144
150
  size: "x-small"
145
151
  }),
146
152
  " ",
147
- z.learnMoreAfter,
153
+ R.learnMoreAfter,
148
154
  " "
149
155
  ]
150
156
  }) : null]
151
- }), $ = () => Y() ? /* @__PURE__ */ g(ee, {
157
+ }), ue = () => Y() ? /* @__PURE__ */ m(i, {
152
158
  closeOnTabKey: !0,
153
159
  hasNubbin: !0,
154
- contentsClassName: m("slds-popover", "slds-popover_tooltip", { "slds-theme_error": F === "error" || L === "error" }, C),
155
- align: b,
156
- context: re,
157
- hasStaticAlignment: T,
160
+ contentsClassName: p("slds-popover", "slds-popover_tooltip", { "slds-theme_error": P === "error" || I === "error" }, b),
161
+ align: _,
162
+ context: z,
163
+ hasStaticAlignment: S,
158
164
  onClose: X,
159
- onRequestTargetElement: ie,
165
+ onRequestTargetElement: ae,
160
166
  onMouseLeave: X,
161
- position: N,
167
+ position: M,
162
168
  variant: "tooltip",
163
169
  containerProps: { id: J() },
164
170
  children: le()
165
- }) : /* @__PURE__ */ g("span", {}), ue = {
171
+ }) : /* @__PURE__ */ m("span", {}), de = {
166
172
  display: "inline-block",
167
173
  lineHeight: "1",
168
- ...P
174
+ ...N
169
175
  };
170
- return /* @__PURE__ */ _("div", {
171
- className: m("slds-tooltip-trigger", M),
172
- style: ue,
176
+ return /* @__PURE__ */ h("div", {
177
+ className: p("slds-tooltip-trigger", j),
178
+ style: de,
173
179
  ref: oe,
174
180
  children: [
175
181
  se(),
176
182
  ce(),
177
- $()
183
+ ue()
178
184
  ]
179
185
  });
180
186
  };
181
- b.displayName = e;
187
+ _.displayName = e;
182
188
  //#endregion
183
- export { b as default };
189
+ export { _ as default };
184
190
 
185
191
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../components/tooltip/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\n// # Tooltip\n\nimport React, {\n\tuseState,\n\tuseEffect,\n\tuseRef,\n\tuseCallback,\n\tuseContext,\n\ttype ReactNode,\n\ttype CSSProperties,\n\ttype KeyboardEvent,\n\ttype FocusEvent,\n\ttype MouseEvent,\n} from 'react';\nimport classNames from 'classnames';\n\nimport EventUtil from '../../utilities/event';\nimport { POPOVER_TOOLTIP } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\n\nimport Dialog from '../utilities/dialog';\nimport Icon from '../icon';\n// eslint-disable-next-line import/no-cycle\nimport Button from '../button';\n\n// This component's `checkProps` which issues warnings to developers about properties when in development mode\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\nimport { IconSettingsContext } from '../icon-settings';\n\n// ### Types\n\nexport type TooltipAlign =\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\nexport type TooltipPosition = 'absolute' | 'overflowBoundaryElement' | 'relative';\n\nexport type TooltipTheme = 'info' | 'error';\n\nexport type TooltipVariant = 'base' | 'learnMore' | 'list-item';\n\nexport interface TooltipAssistiveText {\n\t/** This text is inside the info icon within the tooltip content and exists to \"complete the sentence\" for assistive tech users. */\n\ttooltipTipLearnMoreIcon?: string;\n\t/** This text is inside the info icon that triggers the tooltip in order to have text within the link. */\n\ttriggerLearnMoreIcon?: string;\n}\n\nexport interface TooltipLabels {\n\t/** This label appears in the tooltip after the info icon. */\n\tlearnMoreAfter?: string;\n\t/** This label appears in the tooltip before the info icon. */\n\tlearnMoreBefore?: string;\n}\n\nexport interface TooltipProps {\n\t/**\n\t * Alignment of the Tooltip relative to the element that triggers it.\n\t */\n\talign?: TooltipAlign;\n\t/**\n\t * **Assistive text for accessibility**\n\t * This object is merged with the default props object on every render.\n\t */\n\tassistiveText?: TooltipAssistiveText;\n\t/**\n\t * Pass the one element that triggers the Tooltip as a child. It must be an element with `tabIndex` or an element that already has a `tabIndex` set such as an anchor or a button.\n\t */\n\tchildren?: ReactNode;\n\t/**\n\t * Content inside Tooltip.\n\t */\n\tcontent?: ReactNode;\n\t/**\n\t * CSS classes to be added to the popover dialog. That is the element with `.slds-popover` on it.\n\t */\n\tdialogClassName?: string | string[] | Record<string, boolean>;\n\t/**\n\t * Enabling this hides the default nubbin, replacing it with one attached directly to the tooltip trigger.\n\t */\n\thasAnchoredNubbin?: boolean;\n\t/**\n\t * By default, dialogs will flip their alignment if they extend beyond a boundary element.\n\t * `hasStaticAlignment` disables this behavior.\n\t */\n\thasStaticAlignment?: boolean;\n\t/**\n\t * Delay on Tooltip closing in milliseconds. Defaults to 50\n\t */\n\thoverCloseDelay?: number;\n\t/**\n\t * Delay on Tooltip opening in milliseconds. Defaults to 0\n\t */\n\thoverOpenDelay?: number;\n\t/**\n\t * A unique ID is needed in order to support keyboard navigation, ARIA support, and connect the popover to the triggering element.\n\t */\n\tid?: string;\n\t/**\n\t * **Text labels for internationalization**\n\t */\n\tlabels?: TooltipLabels;\n\t/**\n\t * Forces tooltip to be open. A value of `false` will disable any interaction with the tooltip.\n\t */\n\tisOpen?: boolean;\n\t/**\n\t * Callback that returns an element or React `ref` to align the Tooltip with.\n\t */\n\tonRequestTargetElement?: () => HTMLElement | null;\n\t/**\n\t * Callback when the info icon in learn more variant is clicked\n\t */\n\tonClickTrigger?: (event: MouseEvent<HTMLAnchorElement>) => void;\n\t/**\n\t * CSS classes to be added to tag with `slds-tooltip-trigger`.\n\t */\n\ttriggerClassName?: string | string[] | Record<string, boolean>;\n\t/**\n\t * Please select one of the following:\n\t * * `absolute` - (default) The dialog will use `position: absolute` and style attributes to position itself.\n\t * * `overflowBoundaryElement` - The dialog will overflow scrolling parents.\n\t * * `relative` - No styling or portals will be used.\n\t */\n\tposition?: TooltipPosition;\n\t/**\n\t * Custom styles to be added to wrapping triggering `div`.\n\t */\n\ttriggerStyle?: CSSProperties;\n\t/**\n\t * Determines the theme of tooltip: for informative purpose (blue background) or warning purpose (red background).\n\t */\n\ttheme?: TooltipTheme;\n\t/**\n\t * @deprecated Use onRequestTargetElement instead\n\t */\n\ttarget?: HTMLElement | null;\n\t/**\n\t * Determines the type of the tooltip.\n\t */\n\tvariant?: TooltipVariant;\n}\n\nconst defaultAssistiveText: TooltipAssistiveText = {\n\ttooltipTipLearnMoreIcon: 'this link',\n\ttriggerLearnMoreIcon: 'Help',\n};\n\nconst defaultLabels: TooltipLabels = {\n\tlearnMoreAfter: 'to learn more.',\n\tlearnMoreBefore: 'Click',\n};\n\n/**\n * The PopoverTooltip component is variant of the Lightning Design System Popover component.\n * This component wraps an element that triggers it to open. It must be a focusable child element\n * (either a button or an anchor), so that keyboard users can navigate to it.\n */\nconst Tooltip = ({\n\talign = 'top',\n\tassistiveText: assistiveTextProp,\n\tchildren,\n\tcontent = <span>Tooltip</span>,\n\tdialogClassName,\n\thasAnchoredNubbin = false,\n\thasStaticAlignment = false,\n\thoverCloseDelay = 50,\n\thoverOpenDelay = 0,\n\tid: idProp,\n\tlabels: labelsProp,\n\tisOpen: isOpenProp,\n\tonRequestTargetElement,\n\tonClickTrigger,\n\ttriggerClassName,\n\tposition = 'absolute',\n\ttriggerStyle,\n\ttheme = 'info',\n\ttarget: deprecatedTarget,\n\tvariant = 'base',\n}: TooltipProps): React.ReactElement => {\n\t// Merge assistive text and labels with defaults\n\tconst assistiveText = { ...defaultAssistiveText, ...assistiveTextProp };\n\tconst labels = { ...defaultLabels, ...labelsProp };\n\n\t// Context\n\tconst iconSettings = useContext(IconSettingsContext);\n\n\t// State\n\tconst [isOpenState, setIsOpenState] = useState(false);\n\tconst [triggerRendered, setTriggerRendered] = useState(false);\n\n\t// Refs\n\tconst triggerRef = useRef<HTMLDivElement>(null);\n\tconst tooltipTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\tconst generatedIdRef = useRef(generateId());\n\tconst isUnmountingRef = useRef(false);\n\n\t// Check props in development\n\tuseEffect(() => {\n\t\tcheckProps(POPOVER_TOOLTIP, {\n\t\t\talign,\n\t\t\tassistiveText,\n\t\t\tchildren,\n\t\t\tcontent,\n\t\t\tdialogClassName,\n\t\t\thasAnchoredNubbin,\n\t\t\thasStaticAlignment,\n\t\t\thoverCloseDelay,\n\t\t\thoverOpenDelay,\n\t\t\tid: idProp,\n\t\t\tlabels,\n\t\t\tisOpen: isOpenProp,\n\t\t\tonRequestTargetElement,\n\t\t\tonClickTrigger,\n\t\t\ttriggerClassName,\n\t\t\tposition,\n\t\t\ttriggerStyle,\n\t\t\ttheme,\n\t\t\tvariant,\n\t\t}, componentDoc);\n\t}, []);\n\n\t// Cleanup on unmount\n\tuseEffect(() => {\n\t\treturn () => {\n\t\t\tisUnmountingRef.current = true;\n\t\t\tif (tooltipTimeoutRef.current) {\n\t\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t\t}\n\t\t};\n\t}, []);\n\n\t// Get computed values\n\tconst getId = useCallback(() => {\n\t\treturn idProp || generatedIdRef.current;\n\t}, [idProp]);\n\n\tconst getIsOpen = useCallback(() => {\n\t\treturn isOpenProp === undefined ? isOpenState : isOpenProp;\n\t}, [isOpenProp, isOpenState]);\n\n\tconst getTooltipTarget = useCallback(() => {\n\t\tif (onRequestTargetElement) {\n\t\t\treturn onRequestTargetElement();\n\t\t}\n\n\t\t// for backwards compatibility\n\t\tif (deprecatedTarget) {\n\t\t\treturn deprecatedTarget;\n\t\t}\n\n\t\treturn triggerRef.current;\n\t}, [onRequestTargetElement, deprecatedTarget]);\n\n\t// Event handlers\n\tconst handleCancel = useCallback(() => {\n\t\tif (tooltipTimeoutRef.current) {\n\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t}\n\n\t\tsetIsOpenState(false);\n\t}, []);\n\n\tconst handleMouseEnter = useCallback(() => {\n\t\tif (tooltipTimeoutRef.current) {\n\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t}\n\n\t\ttooltipTimeoutRef.current = setTimeout(() => {\n\t\t\tif (!isUnmountingRef.current) {\n\t\t\t\tsetIsOpenState(true);\n\t\t\t}\n\t\t}, hoverOpenDelay);\n\t}, [hoverOpenDelay]);\n\n\tconst handleMouseLeave = useCallback((e: MouseEvent<HTMLElement> | FocusEvent<HTMLElement>) => {\n\t\te.stopPropagation();\n\t\tif (tooltipTimeoutRef.current) {\n\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t}\n\n\t\ttooltipTimeoutRef.current = setTimeout(() => {\n\t\t\tconst relatedTarget = (e as MouseEvent<HTMLElement>).relatedTarget as HTMLElement | null;\n\t\t\tconst isHoveringTooltip =\n\t\t\t\trelatedTarget?.classList?.contains('slds-popover_tooltip') ||\n\t\t\t\trelatedTarget?.classList?.contains('slds-popover__body');\n\n\t\t\tif (!isUnmountingRef.current && !isHoveringTooltip) {\n\t\t\t\tsetIsOpenState(false);\n\t\t\t}\n\t\t}, hoverCloseDelay);\n\t}, [hoverCloseDelay]);\n\n\tconst handleKeyDown = useCallback((e: KeyboardEvent<HTMLElement>) => {\n\t\te.stopPropagation();\n\n\t\ttooltipTimeoutRef.current = setTimeout(() => {\n\t\t\tif (!isUnmountingRef.current && e.key === 'Escape') {\n\t\t\t\tsetIsOpenState(false);\n\t\t\t}\n\t\t}, hoverCloseDelay);\n\t}, [hoverCloseDelay]);\n\n\t// Save trigger ref and trigger re-render once mounted\n\tconst saveTriggerRef = useCallback((component: HTMLDivElement | null) => {\n\t\tif (component && triggerRef.current !== component) {\n\t\t\t(triggerRef as React.MutableRefObject<HTMLDivElement | null>).current = component;\n\t\t\t// Dialog/Popper.js cannot place the popover until\n\t\t\t// the trigger/target DOM node is mounted.\n\t\t\tif (!triggerRendered) {\n\t\t\t\tsetTriggerRendered(true);\n\t\t\t}\n\t\t}\n\t}, [triggerRendered]);\n\n\t// Render helpers\n\tconst getAnchoredNubbinStyles = () => {\n\t\tif (!hasAnchoredNubbin) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst alignment = align.split(' ')[0] as 'top' | 'bottom' | 'left' | 'right';\n\t\tconst nubbinContainerStyles: CSSProperties = {\n\t\t\theight: '0',\n\t\t\tposition: 'relative',\n\t\t\twidth: '0',\n\t\t};\n\t\tconst nubbinStyles: CSSProperties = {\n\t\t\tbackgroundColor: '#16325c',\n\t\t\tcontent: '\"\"',\n\t\t\theight: '1rem',\n\t\t\tposition: 'absolute',\n\t\t\ttransform: 'rotate(45deg)',\n\t\t\twidth: '1rem',\n\t\t};\n\t\tconst triggerDimensions = {\n\t\t\theight: triggerRef.current ? triggerRef.current.getBoundingClientRect().height : 0,\n\t\t\twidth: triggerRef.current ? triggerRef.current.getBoundingClientRect().width : 0,\n\t\t};\n\n\t\tswitch (alignment) {\n\t\t\tcase 'bottom': {\n\t\t\t\tnubbinContainerStyles.left = `${triggerDimensions.width / 2}px`;\n\t\t\t\tnubbinContainerStyles.top = `${triggerDimensions.height}px`;\n\t\t\t\tnubbinStyles.left = '-8px';\n\t\t\t\tnubbinStyles.top = '3px';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'left': {\n\t\t\t\tnubbinContainerStyles.left = '0';\n\t\t\t\tnubbinContainerStyles.top = `${triggerDimensions.height / 2}px`;\n\t\t\t\tnubbinStyles.left = '-19px';\n\t\t\t\tnubbinStyles.top = '-9px';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'right': {\n\t\t\t\tnubbinContainerStyles.left = `${triggerDimensions.width}px`;\n\t\t\t\tnubbinContainerStyles.top = `${triggerDimensions.height / 2}px`;\n\t\t\t\tnubbinStyles.left = '3px';\n\t\t\t\tnubbinStyles.top = '-9px';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\t// top\n\t\t\t\tnubbinContainerStyles.left = `${triggerDimensions.width / 2}px`;\n\t\t\t\tnubbinContainerStyles.top = '0';\n\t\t\t\tnubbinStyles.left = '-8px';\n\t\t\t\tnubbinStyles.top = '-19px';\n\t\t\t}\n\t\t}\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<style>{`#${getId()}:after, #${getId()}:before {\n\tdisplay: none;\n}`}</style>\n\t\t\t\t{getIsOpen() ? (\n\t\t\t\t\t<div style={nubbinContainerStyles}>\n\t\t\t\t\t\t<div style={nubbinStyles} />\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</>\n\t\t);\n\t};\n\n\tconst getContent = () => {\n\t\tlet childrenToRender: ReactNode;\n\t\tconst noChildrenProvided = React.Children.count(children) === 0;\n\n\t\tif (noChildrenProvided && onClickTrigger) {\n\t\t\tchildrenToRender = (\n\t\t\t\t<a\n\t\t\t\t\thref=\"#\"\n\t\t\t\t\tonClick={EventUtil.trappedHandler(onClickTrigger) as React.MouseEventHandler<HTMLAnchorElement>}\n\t\t\t\t>\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\tname=\"info\"\n\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\tlabel: assistiveText.triggerLearnMoreIcon,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t\t/>\n\t\t\t\t</a>\n\t\t\t);\n\t\t} else if (noChildrenProvided) {\n\t\t\tchildrenToRender = (\n\t\t\t\t<Button\n\t\t\t\t\taria-disabled\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\ticon: assistiveText.triggerLearnMoreIcon,\n\t\t\t\t\t}}\n\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\ticonName=\"info\"\n\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t/>\n\t\t\t);\n\t\t} else {\n\t\t\tchildrenToRender = children;\n\t\t}\n\n\t\treturn React.Children.map(childrenToRender, (child, i) => {\n\t\t\tif (!React.isValidElement(child)) {\n\t\t\t\treturn child;\n\t\t\t}\n\n\t\t\treturn React.cloneElement(child as React.ReactElement<{\n\t\t\t\tkey?: React.Key;\n\t\t\t\t'aria-describedby'?: string;\n\t\t\t\tonBlur?: (e: FocusEvent<HTMLElement>) => void;\n\t\t\t\tonFocus?: () => void;\n\t\t\t\tonMouseEnter?: () => void;\n\t\t\t\tonMouseLeave?: (e: MouseEvent<HTMLElement>) => void;\n\t\t\t\tonKeyDown?: (e: KeyboardEvent<HTMLElement>) => void;\n\t\t\t}>, {\n\t\t\t\tkey: i,\n\t\t\t\t'aria-describedby': getIsOpen() ? getId() : undefined,\n\t\t\t\tonBlur: handleMouseLeave,\n\t\t\t\tonFocus: handleMouseEnter,\n\t\t\t\tonMouseEnter: handleMouseEnter,\n\t\t\t\tonMouseLeave: handleMouseLeave,\n\t\t\t\tonKeyDown: handleKeyDown,\n\t\t\t});\n\t\t});\n\t};\n\n\tconst getTooltipContent = () => {\n\t\t// REMOVE AT NEXT BREAKING CHANGE (v1.0 or v0.9)\n\t\t// Support deprecated 'error' variant value (now use theme='error')\n\t\tconst isErrorTheme = theme === 'error' || (variant as string) === 'error';\n\t\t\n\t\treturn (\n\t\t\t<div \n\t\t\t\tclassName={classNames('slds-popover__body', {\n\t\t\t\t\t// Ensure text contrast on error theme (red background needs white text)\n\t\t\t\t\t'slds-text-color_inverse': isErrorTheme,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{content}\n\t\t\t\t{variant === 'learnMore' && onClickTrigger ? (\n\t\t\t\t\t<div className=\"slds-m-top_x-small\" aria-hidden=\"true\">\n\t\t\t\t\t\t{labels.learnMoreBefore}{' '}\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\t\tlabel: assistiveText.tooltipTipLearnMoreIcon,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\tinverse\n\t\t\t\t\t\t\tname=\"info\"\n\t\t\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t\t\t/>{' '}\n\t\t\t\t\t\t{labels.learnMoreAfter}{' '}\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</div>\n\t\t);\n\t};\n\n\tconst getTooltip = () => {\n\t\tconst isOpen = getIsOpen();\n\n\t\t// REMOVE AT NEXT BREAKING CHANGE (v1.0 or v0.9)\n\t\t// Support deprecated 'error' variant value (now use theme='error')\n\t\tconst deprecatedWay = (variant as string) === 'error';\n\n\t\treturn isOpen ? (\n\t\t\t<Dialog\n\t\t\t\tcloseOnTabKey\n\t\t\t\thasNubbin\n\t\t\t\tcontentsClassName={classNames(\n\t\t\t\t\t'slds-popover',\n\t\t\t\t\t'slds-popover_tooltip',\n\t\t\t\t\t{\n\t\t\t\t\t\t'slds-theme_error': theme === 'error' || deprecatedWay,\n\t\t\t\t\t},\n\t\t\t\t\tdialogClassName\n\t\t\t\t)}\n\t\t\t\talign={align}\n\t\t\t\tcontext={iconSettings}\n\t\t\t\thasStaticAlignment={hasStaticAlignment}\n\t\t\t\tonClose={handleCancel}\n\t\t\t\tonRequestTargetElement={getTooltipTarget}\n\t\t\t\tonMouseLeave={handleCancel}\n\t\t\t\tposition={position}\n\t\t\t\tvariant=\"tooltip\"\n\t\t\t\tcontainerProps={{\n\t\t\t\t\tid: getId(),\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{getTooltipContent()}\n\t\t\t</Dialog>\n\t\t) : (\n\t\t\t<span />\n\t\t);\n\t};\n\n\tconst containerStyles: CSSProperties = {\n\t\tdisplay: 'inline-block',\n\t\tlineHeight: '1',\n\t\t...triggerStyle,\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames('slds-tooltip-trigger', triggerClassName)}\n\t\t\tstyle={containerStyles}\n\t\t\tref={saveTriggerRef}\n\t\t>\n\t\t\t{getAnchoredNubbinStyles()}\n\t\t\t{getContent()}\n\t\t\t{getTooltip()}\n\t\t</div>\n\t);\n};\n\nTooltip.displayName = POPOVER_TOOLTIP;\n\nexport default Tooltip;\n\n"],"mappings":";;;;;;;;;;;;;AA6JA,IAAM,IAA6C;CAClD,yBAAyB;CACzB,sBAAsB;AACvB,GAEM,IAA+B;CACpC,gBAAgB;CAChB,iBAAiB;AAClB,GAOM,KAAW,EAChB,WAAQ,OACR,eAAe,IACf,aACA,aAAU,kBAAC,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A;GAC5C,QAAQ;GACR,SAAS;GACT,cAAc;GACd,cAAc;GACd,WAAW;EACZ,CAAC,IAnBO,CAoBR;CACF,GAEM,WAMJ,kBAAC,OAAD;EACC,WAAW,EAAW,sBAAsB,EAE3C,2BANkB,MAAU,WAAY,MAAuB,QAOhE,CAAC;EAJF,UAAA,CAME,GACA,MAAY,eAAe,IAC3B,kBAAC,OAAD;GAAK,WAAU;GAAqB,eAAY;GAAhD,UAAA;IACE,EAAO;IAAiB;IACzB,kBAAC,GAAD;KACC,eAAe,EACd,OAAO,EAAc,wBACtB;KACA,UAAS;KACT,SAAA;KACA,MAAK;KACL,MAAK;IACL,CAAA;IAAE;IACF,EAAO;IAAgB;GACpB;EACF,CAAA,IAAA,IACA;KAID,UACU,EAMR,IACN,kBAAC,IAAD;EACC,eAAA;EACA,WAAA;EACA,mBAAmB,EAClB,gBACA,wBACA,EACC,oBAAoB,MAAU,WAVX,MAAuB,QAW3C,GACA,CACD;EACO;EACP,SAAS;EACW;EACpB,SAAS;EACT,wBAAwB;EACxB,cAAc;EACJ;EACV,SAAQ;EACR,gBAAgB,EACf,IAAI,EAAM,EACX;EAEC,UAAA,GAAkB;CACZ,CAAA,IAER,kBAAC,QAAD,CAAO,CAAA,GAIH,KAAiC;EACtC,SAAS;EACT,YAAY;EACZ,GAAG;CACJ;CAEA,OACC,kBAAC,OAAD;EACC,WAAW,EAAW,wBAAwB,CAAgB;EAC9D,OAAO;EACP,KAAK;EAHN,UAAA;GAKE,GAAwB;GACxB,GAAW;GACX,EAAW;EACR;;AAEP;AAEA,EAAQ,cAAc"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../components/tooltip/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\n// # Tooltip\n\nimport React, {\n\tuseState,\n\tuseEffect,\n\tuseRef,\n\tuseCallback,\n\tuseContext,\n\ttype ReactNode,\n\ttype CSSProperties,\n\ttype KeyboardEvent,\n\ttype FocusEvent,\n\ttype MouseEvent,\n} from 'react';\nimport classNames from 'classnames';\n\nimport EventUtil from '../../utilities/event';\nimport { POPOVER_TOOLTIP } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\n\nimport Dialog from '../utilities/dialog';\nimport Icon from '../icon';\n// eslint-disable-next-line import/no-cycle\nimport Button from '../button';\n\n// This component's `checkProps` which issues warnings to developers about properties when in development mode\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\nimport { IconSettingsContext } from '../icon-settings';\n\n// ### Types\n\nexport type TooltipAlign =\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\nexport type TooltipPosition =\n\t'absolute' | 'overflowBoundaryElement' | 'relative';\n\nexport type TooltipTheme = 'info' | 'error';\n\nexport type TooltipIconVariant = 'bare' | 'error' | 'inverse' | 'warning';\n\nexport type TooltipVariant = 'base' | 'learnMore' | 'list-item';\n\nexport interface TooltipAssistiveText {\n\t/** This text is inside the info icon within the tooltip content and exists to \"complete the sentence\" for assistive tech users. */\n\ttooltipTipLearnMoreIcon?: string;\n\t/** This text is inside the info icon that triggers the tooltip in order to have text within the link. */\n\ttriggerLearnMoreIcon?: string;\n}\n\nexport interface TooltipLabels {\n\t/** This label appears in the tooltip after the info icon. */\n\tlearnMoreAfter?: string;\n\t/** This label appears in the tooltip before the info icon. */\n\tlearnMoreBefore?: string;\n}\n\nexport interface TooltipProps {\n\t/**\n\t * Alignment of the Tooltip relative to the element that triggers it.\n\t */\n\talign?: TooltipAlign;\n\t/**\n\t * **Assistive text for accessibility**\n\t * This object is merged with the default props object on every render.\n\t */\n\tassistiveText?: TooltipAssistiveText;\n\t/**\n\t * Pass the one element that triggers the Tooltip as a child. It must be an element with `tabIndex` or an element that already has a `tabIndex` set such as an anchor or a button.\n\t */\n\tchildren?: ReactNode;\n\t/**\n\t * Content inside Tooltip.\n\t */\n\tcontent?: ReactNode;\n\t/**\n\t * CSS classes to be added to the popover dialog. That is the element with `.slds-popover` on it.\n\t */\n\tdialogClassName?: string | string[] | Record<string, boolean>;\n\t/**\n\t * Enabling this hides the default nubbin, replacing it with one attached directly to the tooltip trigger.\n\t */\n\thasAnchoredNubbin?: boolean;\n\t/**\n\t * By default, dialogs will flip their alignment if they extend beyond a boundary element.\n\t * `hasStaticAlignment` disables this behavior.\n\t */\n\thasStaticAlignment?: boolean;\n\t/**\n\t * Styles the default info icon trigger that renders when no children are passed. Matches `icon-variant` on `lightning-helptext`.\n\t * * `bare` - (default) Default icon color.\n\t * * `error` - Red icon, to call out an error.\n\t * * `inverse` - White icon, for dark backgrounds.\n\t * * `warning` - Yellow icon, to advise caution.\n\t */\n\ticonVariant?: TooltipIconVariant;\n\t/**\n\t * Delay on Tooltip closing in milliseconds. Defaults to 50\n\t */\n\thoverCloseDelay?: number;\n\t/**\n\t * Delay on Tooltip opening in milliseconds. Defaults to 0\n\t */\n\thoverOpenDelay?: number;\n\t/**\n\t * A unique ID is needed in order to support keyboard navigation, ARIA support, and connect the popover to the triggering element.\n\t */\n\tid?: string;\n\t/**\n\t * **Text labels for internationalization**\n\t */\n\tlabels?: TooltipLabels;\n\t/**\n\t * Forces tooltip to be open. A value of `false` will disable any interaction with the tooltip.\n\t */\n\tisOpen?: boolean;\n\t/**\n\t * Callback that returns an element or React `ref` to align the Tooltip with.\n\t */\n\tonRequestTargetElement?: () => HTMLElement | null;\n\t/**\n\t * Callback when the info icon in learn more variant is clicked\n\t */\n\tonClickTrigger?: (event: MouseEvent<HTMLAnchorElement>) => void;\n\t/**\n\t * CSS classes to be added to tag with `slds-tooltip-trigger`.\n\t */\n\ttriggerClassName?: string | string[] | Record<string, boolean>;\n\t/**\n\t * Please select one of the following:\n\t * * `absolute` - (default) The dialog will use `position: absolute` and style attributes to position itself.\n\t * * `overflowBoundaryElement` - The dialog will overflow scrolling parents.\n\t * * `relative` - No styling or portals will be used.\n\t */\n\tposition?: TooltipPosition;\n\t/**\n\t * Custom styles to be added to wrapping triggering `div`.\n\t */\n\ttriggerStyle?: CSSProperties;\n\t/**\n\t * Determines the theme of tooltip: for informative purpose (blue background) or warning purpose (red background).\n\t */\n\ttheme?: TooltipTheme;\n\t/**\n\t * @deprecated Use onRequestTargetElement instead\n\t */\n\ttarget?: HTMLElement | null;\n\t/**\n\t * Determines the type of the tooltip.\n\t */\n\tvariant?: TooltipVariant;\n}\n\nconst defaultAssistiveText: TooltipAssistiveText = {\n\ttooltipTipLearnMoreIcon: 'this link',\n\ttriggerLearnMoreIcon: 'Help',\n};\n\nconst defaultLabels: TooltipLabels = {\n\tlearnMoreAfter: 'to learn more.',\n\tlearnMoreBefore: 'Click',\n};\n\n/**\n * The PopoverTooltip component is variant of the Lightning Design System Popover component.\n * This component wraps an element that triggers it to open. It must be a focusable child element\n * (either a button or an anchor), so that keyboard users can navigate to it.\n */\nconst Tooltip = ({\n\talign = 'top',\n\tassistiveText: assistiveTextProp,\n\tchildren,\n\tcontent = <span>Tooltip</span>,\n\tdialogClassName,\n\thasAnchoredNubbin = false,\n\thasStaticAlignment = false,\n\thoverCloseDelay = 50,\n\thoverOpenDelay = 0,\n\ticonVariant = 'bare',\n\tid: idProp,\n\tlabels: labelsProp,\n\tisOpen: isOpenProp,\n\tonRequestTargetElement,\n\tonClickTrigger,\n\ttriggerClassName,\n\tposition = 'absolute',\n\ttriggerStyle,\n\ttheme = 'info',\n\ttarget: deprecatedTarget,\n\tvariant = 'base',\n}: TooltipProps): React.ReactElement => {\n\t// Merge assistive text and labels with defaults\n\tconst assistiveText = { ...defaultAssistiveText, ...assistiveTextProp };\n\tconst labels = { ...defaultLabels, ...labelsProp };\n\n\t// Context\n\tconst iconSettings = useContext(IconSettingsContext);\n\n\t// State\n\tconst [isOpenState, setIsOpenState] = useState(false);\n\tconst [triggerRendered, setTriggerRendered] = useState(false);\n\n\t// Refs\n\tconst triggerRef = useRef<HTMLDivElement>(null);\n\tconst tooltipTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\tconst generatedIdRef = useRef(generateId());\n\tconst isUnmountingRef = useRef(false);\n\n\t// Check props in development\n\tuseEffect(() => {\n\t\tcheckProps(\n\t\t\tPOPOVER_TOOLTIP,\n\t\t\t{\n\t\t\t\talign,\n\t\t\t\tassistiveText,\n\t\t\t\tchildren,\n\t\t\t\tcontent,\n\t\t\t\tdialogClassName,\n\t\t\t\thasAnchoredNubbin,\n\t\t\t\thasStaticAlignment,\n\t\t\t\thoverCloseDelay,\n\t\t\t\thoverOpenDelay,\n\t\t\t\ticonVariant,\n\t\t\t\tid: idProp,\n\t\t\t\tlabels,\n\t\t\t\tisOpen: isOpenProp,\n\t\t\t\tonRequestTargetElement,\n\t\t\t\tonClickTrigger,\n\t\t\t\ttriggerClassName,\n\t\t\t\tposition,\n\t\t\t\ttriggerStyle,\n\t\t\t\ttheme,\n\t\t\t\tvariant,\n\t\t\t},\n\t\t\tcomponentDoc\n\t\t);\n\t}, []);\n\n\t// Cleanup on unmount\n\tuseEffect(() => {\n\t\treturn () => {\n\t\t\tisUnmountingRef.current = true;\n\t\t\tif (tooltipTimeoutRef.current) {\n\t\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t\t}\n\t\t};\n\t}, []);\n\n\t// Get computed values\n\tconst getId = useCallback(() => {\n\t\treturn idProp || generatedIdRef.current;\n\t}, [idProp]);\n\n\tconst getIsOpen = useCallback(() => {\n\t\treturn isOpenProp === undefined ? isOpenState : isOpenProp;\n\t}, [isOpenProp, isOpenState]);\n\n\tconst getTooltipTarget = useCallback(() => {\n\t\tif (onRequestTargetElement) {\n\t\t\treturn onRequestTargetElement();\n\t\t}\n\n\t\t// for backwards compatibility\n\t\tif (deprecatedTarget) {\n\t\t\treturn deprecatedTarget;\n\t\t}\n\n\t\treturn triggerRef.current;\n\t}, [onRequestTargetElement, deprecatedTarget]);\n\n\t// Event handlers\n\tconst handleCancel = useCallback(() => {\n\t\tif (tooltipTimeoutRef.current) {\n\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t}\n\n\t\tsetIsOpenState(false);\n\t}, []);\n\n\tconst handleMouseEnter = useCallback(() => {\n\t\tif (tooltipTimeoutRef.current) {\n\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t}\n\n\t\ttooltipTimeoutRef.current = setTimeout(() => {\n\t\t\tif (!isUnmountingRef.current) {\n\t\t\t\tsetIsOpenState(true);\n\t\t\t}\n\t\t}, hoverOpenDelay);\n\t}, [hoverOpenDelay]);\n\n\tconst handleMouseLeave = useCallback(\n\t\t(e: MouseEvent<HTMLElement> | FocusEvent<HTMLElement>) => {\n\t\t\te.stopPropagation();\n\t\t\tif (tooltipTimeoutRef.current) {\n\t\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t\t}\n\n\t\t\ttooltipTimeoutRef.current = setTimeout(() => {\n\t\t\t\tconst relatedTarget = (e as MouseEvent<HTMLElement>)\n\t\t\t\t\t.relatedTarget as HTMLElement | null;\n\t\t\t\tconst isHoveringTooltip =\n\t\t\t\t\trelatedTarget?.classList?.contains('slds-popover_tooltip') ||\n\t\t\t\t\trelatedTarget?.classList?.contains('slds-popover__body');\n\n\t\t\t\tif (!isUnmountingRef.current && !isHoveringTooltip) {\n\t\t\t\t\tsetIsOpenState(false);\n\t\t\t\t}\n\t\t\t}, hoverCloseDelay);\n\t\t},\n\t\t[hoverCloseDelay]\n\t);\n\n\tconst handleKeyDown = useCallback(\n\t\t(e: KeyboardEvent<HTMLElement>) => {\n\t\t\te.stopPropagation();\n\n\t\t\ttooltipTimeoutRef.current = setTimeout(() => {\n\t\t\t\tif (!isUnmountingRef.current && e.key === 'Escape') {\n\t\t\t\t\tsetIsOpenState(false);\n\t\t\t\t}\n\t\t\t}, hoverCloseDelay);\n\t\t},\n\t\t[hoverCloseDelay]\n\t);\n\n\t// Save trigger ref and trigger re-render once mounted\n\tconst saveTriggerRef = useCallback(\n\t\t(component: HTMLDivElement | null) => {\n\t\t\tif (component && triggerRef.current !== component) {\n\t\t\t\t(triggerRef as React.MutableRefObject<HTMLDivElement | null>).current =\n\t\t\t\t\tcomponent;\n\t\t\t\t// Dialog/Popper.js cannot place the popover until\n\t\t\t\t// the trigger/target DOM node is mounted.\n\t\t\t\tif (!triggerRendered) {\n\t\t\t\t\tsetTriggerRendered(true);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t[triggerRendered]\n\t);\n\n\t// Render helpers\n\tconst getAnchoredNubbinStyles = () => {\n\t\tif (!hasAnchoredNubbin) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst alignment = align.split(' ')[0] as\n\t\t\t'top' | 'bottom' | 'left' | 'right';\n\t\tconst nubbinContainerStyles: CSSProperties = {\n\t\t\theight: '0',\n\t\t\tposition: 'relative',\n\t\t\twidth: '0',\n\t\t};\n\t\tconst nubbinStyles: CSSProperties = {\n\t\t\tbackgroundColor: '#16325c',\n\t\t\tcontent: '\"\"',\n\t\t\theight: '1rem',\n\t\t\tposition: 'absolute',\n\t\t\ttransform: 'rotate(45deg)',\n\t\t\twidth: '1rem',\n\t\t};\n\t\tconst triggerDimensions = {\n\t\t\theight: triggerRef.current\n\t\t\t\t? triggerRef.current.getBoundingClientRect().height\n\t\t\t\t: 0,\n\t\t\twidth: triggerRef.current\n\t\t\t\t? triggerRef.current.getBoundingClientRect().width\n\t\t\t\t: 0,\n\t\t};\n\n\t\tswitch (alignment) {\n\t\t\tcase 'bottom': {\n\t\t\t\tnubbinContainerStyles.left = `${triggerDimensions.width / 2}px`;\n\t\t\t\tnubbinContainerStyles.top = `${triggerDimensions.height}px`;\n\t\t\t\tnubbinStyles.left = '-8px';\n\t\t\t\tnubbinStyles.top = '3px';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'left': {\n\t\t\t\tnubbinContainerStyles.left = '0';\n\t\t\t\tnubbinContainerStyles.top = `${triggerDimensions.height / 2}px`;\n\t\t\t\tnubbinStyles.left = '-19px';\n\t\t\t\tnubbinStyles.top = '-9px';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'right': {\n\t\t\t\tnubbinContainerStyles.left = `${triggerDimensions.width}px`;\n\t\t\t\tnubbinContainerStyles.top = `${triggerDimensions.height / 2}px`;\n\t\t\t\tnubbinStyles.left = '3px';\n\t\t\t\tnubbinStyles.top = '-9px';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\t// top\n\t\t\t\tnubbinContainerStyles.left = `${triggerDimensions.width / 2}px`;\n\t\t\t\tnubbinContainerStyles.top = '0';\n\t\t\t\tnubbinStyles.left = '-8px';\n\t\t\t\tnubbinStyles.top = '-19px';\n\t\t\t}\n\t\t}\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<style>{`#${getId()}:after, #${getId()}:before {\n\tdisplay: none;\n}`}</style>\n\t\t\t\t{getIsOpen() ? (\n\t\t\t\t\t<div style={nubbinContainerStyles}>\n\t\t\t\t\t\t<div style={nubbinStyles} />\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</>\n\t\t);\n\t};\n\n\tconst getContent = () => {\n\t\tlet childrenToRender: ReactNode;\n\t\tconst noChildrenProvided = React.Children.count(children) === 0;\n\t\tconst isInverseIcon = iconVariant === 'inverse';\n\t\tconst iconColorVariant =\n\t\t\ticonVariant === 'error' || iconVariant === 'warning'\n\t\t\t\t? iconVariant\n\t\t\t\t: undefined;\n\n\t\tif (noChildrenProvided && onClickTrigger) {\n\t\t\tchildrenToRender = (\n\t\t\t\t<a\n\t\t\t\t\thref=\"#\"\n\t\t\t\t\tonClick={\n\t\t\t\t\t\tEventUtil.trappedHandler(\n\t\t\t\t\t\t\tonClickTrigger\n\t\t\t\t\t\t) as React.MouseEventHandler<HTMLAnchorElement>\n\t\t\t\t\t}\n\t\t\t\t>\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\tcolorVariant={iconColorVariant}\n\t\t\t\t\t\tinverse={isInverseIcon}\n\t\t\t\t\t\tname=\"info\"\n\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\tlabel: assistiveText.triggerLearnMoreIcon,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t\t/>\n\t\t\t\t</a>\n\t\t\t);\n\t\t} else if (noChildrenProvided) {\n\t\t\tchildrenToRender = (\n\t\t\t\t<Button\n\t\t\t\t\taria-disabled\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\ticon: assistiveText.triggerLearnMoreIcon,\n\t\t\t\t\t}}\n\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\ticonClassName={\n\t\t\t\t\t\ticonColorVariant && `slds-icon-text-${iconColorVariant}`\n\t\t\t\t\t}\n\t\t\t\t\ticonName=\"info\"\n\t\t\t\t\t// `bare` keeps `slds-button_icon`, which Button drops for `inverse` alone\n\t\t\t\t\ticonVariant={isInverseIcon ? 'bare' : undefined}\n\t\t\t\t\tinverse={isInverseIcon}\n\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t/>\n\t\t\t);\n\t\t} else {\n\t\t\tchildrenToRender = children;\n\t\t}\n\n\t\treturn React.Children.map(childrenToRender, (child, i) => {\n\t\t\tif (!React.isValidElement(child)) {\n\t\t\t\treturn child;\n\t\t\t}\n\n\t\t\treturn React.cloneElement(\n\t\t\t\tchild as React.ReactElement<{\n\t\t\t\t\tkey?: React.Key;\n\t\t\t\t\t'aria-describedby'?: string;\n\t\t\t\t\tonBlur?: (e: FocusEvent<HTMLElement>) => void;\n\t\t\t\t\tonFocus?: () => void;\n\t\t\t\t\tonMouseEnter?: () => void;\n\t\t\t\t\tonMouseLeave?: (e: MouseEvent<HTMLElement>) => void;\n\t\t\t\t\tonKeyDown?: (e: KeyboardEvent<HTMLElement>) => void;\n\t\t\t\t}>,\n\t\t\t\t{\n\t\t\t\t\tkey: i,\n\t\t\t\t\t'aria-describedby': getIsOpen() ? getId() : undefined,\n\t\t\t\t\tonBlur: handleMouseLeave,\n\t\t\t\t\tonFocus: handleMouseEnter,\n\t\t\t\t\tonMouseEnter: handleMouseEnter,\n\t\t\t\t\tonMouseLeave: handleMouseLeave,\n\t\t\t\t\tonKeyDown: handleKeyDown,\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t};\n\n\tconst getTooltipContent = () => {\n\t\t// REMOVE AT NEXT BREAKING CHANGE (v1.0 or v0.9)\n\t\t// Support deprecated 'error' variant value (now use theme='error')\n\t\tconst isErrorTheme = theme === 'error' || (variant as string) === 'error';\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames('slds-popover__body', {\n\t\t\t\t\t// Ensure text contrast on error theme (red background needs white text)\n\t\t\t\t\t'slds-text-color_inverse': isErrorTheme,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{content}\n\t\t\t\t{variant === 'learnMore' && onClickTrigger ? (\n\t\t\t\t\t<div className=\"slds-m-top_x-small\" aria-hidden=\"true\">\n\t\t\t\t\t\t{labels.learnMoreBefore}{' '}\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\t\tlabel: assistiveText.tooltipTipLearnMoreIcon,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\tinverse\n\t\t\t\t\t\t\tname=\"info\"\n\t\t\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t\t\t/>{' '}\n\t\t\t\t\t\t{labels.learnMoreAfter}{' '}\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</div>\n\t\t);\n\t};\n\n\tconst getTooltip = () => {\n\t\tconst isOpen = getIsOpen();\n\n\t\t// REMOVE AT NEXT BREAKING CHANGE (v1.0 or v0.9)\n\t\t// Support deprecated 'error' variant value (now use theme='error')\n\t\tconst deprecatedWay = (variant as string) === 'error';\n\n\t\treturn isOpen ? (\n\t\t\t<Dialog\n\t\t\t\tcloseOnTabKey\n\t\t\t\thasNubbin\n\t\t\t\tcontentsClassName={classNames(\n\t\t\t\t\t'slds-popover',\n\t\t\t\t\t'slds-popover_tooltip',\n\t\t\t\t\t{\n\t\t\t\t\t\t'slds-theme_error': theme === 'error' || deprecatedWay,\n\t\t\t\t\t},\n\t\t\t\t\tdialogClassName\n\t\t\t\t)}\n\t\t\t\talign={align}\n\t\t\t\tcontext={iconSettings}\n\t\t\t\thasStaticAlignment={hasStaticAlignment}\n\t\t\t\tonClose={handleCancel}\n\t\t\t\tonRequestTargetElement={getTooltipTarget}\n\t\t\t\tonMouseLeave={handleCancel}\n\t\t\t\tposition={position}\n\t\t\t\tvariant=\"tooltip\"\n\t\t\t\tcontainerProps={{\n\t\t\t\t\tid: getId(),\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{getTooltipContent()}\n\t\t\t</Dialog>\n\t\t) : (\n\t\t\t<span />\n\t\t);\n\t};\n\n\tconst containerStyles: CSSProperties = {\n\t\tdisplay: 'inline-block',\n\t\tlineHeight: '1',\n\t\t...triggerStyle,\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames('slds-tooltip-trigger', triggerClassName)}\n\t\t\tstyle={containerStyles}\n\t\t\tref={saveTriggerRef}\n\t\t>\n\t\t\t{getAnchoredNubbinStyles()}\n\t\t\t{getContent()}\n\t\t\t{getTooltip()}\n\t\t</div>\n\t);\n};\n\nTooltip.displayName = POPOVER_TOOLTIP;\n\nexport default Tooltip;\n"],"mappings":";;;;;;;;;;;;;AAwKA,IAAM,IAA6C;CAClD,yBAAyB;CACzB,sBAAsB;AACvB,GAEM,KAA+B;CACpC,gBAAgB;CAChB,iBAAiB;AAClB,GAOM,KAAW,EAChB,WAAQ,OACR,eAAe,IACf,aACA,aAAU,kBAAC,QAAD,EAAA,UAAM,UAAa,CAAA,GAC7B,oBACA,uBAAoB,IACpB,wBAAqB,IACrB,qBAAkB,IA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EAAM,aACZ,GASA;GACC,KAAK;GACL,oBAAoB,EAAU,IAAI,EAAM,IAAI,KAAA;GAC5C,QAAQ;GACR,SAAS;GACT,cAAc;GACd,cAAc;GACd,WAAW;EACZ,CACD,IAtBQ,CAuBR;CACF,GAEM,WAMJ,kBAAC,OAAD;EACC,WAAW,EAAW,sBAAsB,EAE3C,2BANkB,MAAU,WAAY,MAAuB,QAOhE,CAAC;EAJF,UAAA,CAME,GACA,MAAY,eAAe,IAC3B,kBAAC,OAAD;GAAK,WAAU;GAAqB,eAAY;GAAhD,UAAA;IACE,EAAO;IAAiB;IACzB,kBAAC,GAAD;KACC,eAAe,EACd,OAAO,EAAc,wBACtB;KACA,UAAS;KACT,SAAA;KACA,MAAK;KACL,MAAK;IACL,CAAA;IAAE;IACF,EAAO;IAAgB;GACpB;EACF,CAAA,IAAA,IACA;KAID,WACU,EAMR,IACN,kBAAC,GAAD;EACC,eAAA;EACA,WAAA;EACA,mBAAmB,EAClB,gBACA,wBACA,EACC,oBAAoB,MAAU,WAVX,MAAuB,QAW3C,GACA,CACD;EACO;EACP,SAAS;EACW;EACpB,SAAS;EACT,wBAAwB;EACxB,cAAc;EACJ;EACV,SAAQ;EACR,gBAAgB,EACf,IAAI,EAAM,EACX;EAEC,UAAA,GAAkB;CACZ,CAAA,IAER,kBAAC,QAAD,CAAO,CAAA,GAIH,KAAiC;EACtC,SAAS;EACT,YAAY;EACZ,GAAG;CACJ;CAEA,OACC,kBAAC,OAAD;EACC,WAAW,EAAW,wBAAwB,CAAgB;EAC9D,OAAO;EACP,KAAK;EAHN,UAAA;GAKE,GAAwB;GACxB,GAAW;GACX,GAAW;EACR;;AAEP;AAEA,EAAQ,cAAc"}
@@ -0,0 +1,2 @@
1
+ import e from "./tree.js";
2
+ export { e as Tree, e as default };
@@ -0,0 +1,2 @@
1
+ export * from './tree/index.js';
2
+ export { default } from './tree/index.js';
@@ -1,6 +1,6 @@
1
1
  //#region utilities/constants.js
2
- var e = "SLDSAccordion", t = "SLDSAccordionPanel", n = "SLDSAlert", r = "SLDSAlertContainer", i = "SLDSAvatar", a = "SLDSBadge", o = "SLDSBreadcrumb", s = "SLDSBuilderHeader", c = "SLDSBuilderHeaderMisc", l = "SLDSBuilderHeaderUtilities", u = "SLDSBuilderHeaderNav", d = "SLDSBuilderHeaderNavDropdown", f = "SLDSBuilderHeaderNavLink", p = "SLDSBuilderHeaderToolbar", m = "SLDSButton", h = "SLDSButtonGroup", g = "SLDSButtonStateful", _ = "SLDSButtonIcon", v = "SLDSCard", y = "SLDSCardBody", b = "SLDSCardEmpty", x = "SLDSCardFilter", S = "SLDSCardFooter", C = "SLDSCardHeader", w = "SLDSCarousel", T = "SLDSCarouselIndicators", E = "SLDSCarouselItem", D = "SLDSCarouselNavigators", O = "SLDSCarouselAutoplayButton", k = "SLDSColorPicker", A = "SLDSCombobox", j = "SLDSDataTable", M = "SLDSDataTableCell", N = "SLDSDataTableColumn", P = "SLDSDataTableHead", F = "SLDSDataTableHeaderCell", I = "SLDSDataTableRowActions", L = "SLDSDataTableRow", R = "SLDSDatePicker", z = "SLDSDynamicIcon", B = "SLDSDialog", V = "SLDSFiles", H = "SLDSFilesFile", U = "SLDSFilesMore", W = "SLDSFilesFigure", G = "SLDSFilesActions", K = "SLDSExpandableSection", q = "SLDSFilter", J = "SLDSCheckbox", Y = "SLDSInlineEdit", X = "SLDSInput", Z = "SLDSTextarea", Q = "SLDSSearch", $ = "SLDSHighlighter", ee = "SLDSIcon", te = "SLDSIconSettings", ne = "SLDSIconInput", re = "SLDSIllustration", ie = "SLDSList", ae = "SLDSListItem", oe = "SLDSListItemLabel", se = "SLDSLookup", ce = "SLDSMediaObject", le = "SLDSMenuDropdown", ue = "SLDSMenuDropdownTrigger", de = "SLDSModal", fe = "SLDSPanel", pe = "SLDSFilterGroup", me = "SLDSFilterList", he = "SLDSPanelFilterListHeading", ge = "SLDSPageHeader", _e = "SLDSPageHeaderControl", ve = "SLDSPill", ye = "SLDSPillContainer", be = "SLDSPortalSettings", xe = "SLDSPopover", Se = "SLDSPopoverEditDialog", Ce = "SLDSPopoverTooltip", we = "SLDSProgressIndicator", Te = "SLDSProgressIndicatorProgress", Ee = "SLDSProgressIndicatorStep", De = "SLDSProgressIndicatorStepVertical", Oe = "SLDSProgressRing", ke = "SLDSProgressBar", Ae = "SLDSSetupAssistant", je = "SLDSSetupAssistantStep", Me = "SLDSScopedNotification", Ne = "SLDSSlider", Pe = "SLDSSpinner", Fe = "SLDSSplitView", Ie = "SLDSSplitViewHeader", Le = "SLDSSplitViewListbox", Re = "SLDSRadio", ze = "SLDSRadioGroup", Be = "SLDSRadioButtonGroup", Ve = "SLDSTab", He = "SLDSTabPanel", Ue = "SLDSTabs", We = "SLDSTabsList", Ge = "SLDSTabsPanel", Ke = "SLDSTimepicker", qe = "SLDSToast", Je = "SLDSToastContainer", Ye = "SLDSTree", Xe = "SLDSTreeBranch", Ze = "SLDSTreeItem", Qe = "SLDSTrialBar", $e = "SLDSTrialBarDropdown", et = "SLDSTrialBarButton", tt = "SLDSVerticalNavigation", nt = "SLDSVerticalNavigationItem", rt = "SLDSVisualPicker", it = "SLDSVisualPickerLink", at = "SLDSWelcomeMat", ot = "SLDSWelcomeMatTile", st = "SLDSWelcomeMatBadge";
2
+ var e = "SLDSAccordion", t = "SLDSAccordionPanel", n = "SLDSAlert", r = "SLDSAlertContainer", i = "SLDSAvatar", a = "SLDSBadge", o = "SLDSBreadcrumb", s = "SLDSBuilderHeader", c = "SLDSBuilderHeaderMisc", l = "SLDSBuilderHeaderUtilities", u = "SLDSBuilderHeaderNav", d = "SLDSBuilderHeaderNavDropdown", f = "SLDSBuilderHeaderNavLink", p = "SLDSBuilderHeaderToolbar", m = "SLDSButton", h = "SLDSButtonGroup", g = "SLDSButtonStateful", _ = "SLDSButtonIcon", v = "SLDSCard", y = "SLDSCardBody", b = "SLDSCardEmpty", x = "SLDSCardFilter", S = "SLDSCardFooter", C = "SLDSCardHeader", w = "SLDSCarousel", T = "SLDSCarouselIndicators", E = "SLDSCarouselItem", D = "SLDSCarouselNavigators", O = "SLDSCarouselAutoplayButton", k = "SLDSColorPicker", A = "SLDSCombobox", j = "SLDSSimpleDataTable", M = "SLDSSimpleDataTableCell", N = "SLDSSimpleDataTableColumn", P = "SLDSSimpleDataTableHead", F = "SLDSSimpleDataTableHeaderCell", I = "SLDSSimpleDataTableRowActions", L = "SLDSSimpleDataTableRow", R = "SLDSDatePicker", z = "SLDSDynamicIcon", B = "SLDSDialog", V = "SLDSFiles", H = "SLDSFilesFile", U = "SLDSFilesMore", W = "SLDSFilesFigure", G = "SLDSFilesActions", K = "SLDSExpandableSection", q = "SLDSFilter", J = "SLDSCheckbox", Y = "SLDSInlineEdit", X = "SLDSInput", Z = "SLDSTextarea", Q = "SLDSSearch", $ = "SLDSHighlighter", ee = "SLDSIcon", te = "SLDSIconSettings", ne = "SLDSIconInput", re = "SLDSIllustration", ie = "SLDSList", ae = "SLDSListItem", oe = "SLDSListItemLabel", se = "SLDSLookup", ce = "SLDSMediaObject", le = "SLDSMenuDropdown", ue = "SLDSMenuDropdownTrigger", de = "SLDSModal", fe = "SLDSPanel", pe = "SLDSFilterGroup", me = "SLDSFilterList", he = "SLDSPanelFilterListHeading", ge = "SLDSPageHeader", _e = "SLDSPageHeaderControl", ve = "SLDSPill", ye = "SLDSPillContainer", be = "SLDSPortalSettings", xe = "SLDSPopover", Se = "SLDSPopoverEditDialog", Ce = "SLDSPopoverTooltip", we = "SLDSProgressIndicator", Te = "SLDSProgressIndicatorPath", Ee = "SLDSProgressIndicatorProgress", De = "SLDSProgressIndicatorStep", Oe = "SLDSProgressIndicatorStepVertical", ke = "SLDSProgressRing", Ae = "SLDSProgressBar", je = "SLDSSetupAssistant", Me = "SLDSSetupAssistantStep", Ne = "SLDSScopedNotification", Pe = "SLDSSlider", Fe = "SLDSSpinner", Ie = "SLDSSplitView", Le = "SLDSSplitViewHeader", Re = "SLDSSplitViewListbox", ze = "SLDSRadio", Be = "SLDSRadioGroup", Ve = "SLDSRadioButtonGroup", He = "SLDSTab", Ue = "SLDSTabPanel", We = "SLDSTabs", Ge = "SLDSTabsList", Ke = "SLDSTabsPanel", qe = "SLDSTimepicker", Je = "SLDSToast", Ye = "SLDSToastContainer", Xe = "SLDSTree", Ze = "SLDSTreeBranch", Qe = "SLDSTreeItem", $e = "SLDSTrialBar", et = "SLDSTrialBarDropdown", tt = "SLDSTrialBarButton", nt = "SLDSVerticalNavigation", rt = "SLDSVerticalNavigationItem", it = "SLDSVisualPicker", at = "SLDSVisualPickerLink", ot = "SLDSWelcomeMat", st = "SLDSWelcomeMatTile", ct = "SLDSWelcomeMatBadge";
3
3
  //#endregion
4
- export { e as ACCORDION, t as ACCORDION_PANEL, n as ALERT, r as ALERT_CONTAINER, i as AVATAR, a as BADGE, o as BREADCRUMB, s as BUILDER_HEADER, c as BUILDER_HEADER_MISC, u as BUILDER_HEADER_NAV, d as BUILDER_HEADER_NAV_DROPDOWN, f as BUILDER_HEADER_NAV_LINK, p as BUILDER_HEADER_TOOLBAR, l as BUILDER_HEADER_UTILITIES, m as BUTTON, h as BUTTON_GROUP, _ as BUTTON_ICON, g as BUTTON_STATEFUL, v as CARD, y as CARD_BODY, b as CARD_EMPTY, x as CARD_FILTER, S as CARD_FOOTER, C as CARD_HEADER, w as CAROUSEL, O as CAROUSEL_AUTOPLAY_BUTTON, T as CAROUSEL_INDICATORS, E as CAROUSEL_ITEM, D as CAROUSEL_NAVIGATORS, J as CHECKBOX, k as COLOR_PICKER, A as COMBOBOX, j as DATA_TABLE, M as DATA_TABLE_CELL, N as DATA_TABLE_COLUMN, P as DATA_TABLE_HEAD, F as DATA_TABLE_HEADER_CELL, L as DATA_TABLE_ROW, I as DATA_TABLE_ROW_ACTIONS, R as DATE_PICKER, B as DIALOG, z as DYNAMIC_ICON, K as EXPANDABLE_SECTION, V as FILES, G as FILES_ACTIONS, W as FILES_FIGURE, H as FILES_FILE, U as FILES_MORE, q as FILTER, Y as FORMS_INLINE_EDIT, $ as HIGHLIGHTER, ee as ICON, ne as ICON_INPUT, te as ICON_SETTINGS, re as ILLUSTRATION, X as INPUT, ie as LIST, ae as LIST_ITEM, oe as LIST_ITEM_LABEL, se as LOOKUP, ce as MEDIA_OBJECT, le as MENU_DROPDOWN, ue as MENU_DROPDOWN_TRIGGER, de as MODAL, ge as PAGE_HEADER, _e as PAGE_HEADER_CONTROL, fe as PANEL, pe as PANEL_FILTER_GROUP, me as PANEL_FILTER_LIST, he as PANEL_FILTER_LIST_HEADING, ve as PILL, ye as PILL_CONTAINER, xe as POPOVER, Se as POPOVER_EDIT_DIALOG, Ce as POPOVER_TOOLTIP, be as PORTAL_SETTINGS, ke as PROGRESS_BAR, we as PROGRESS_INDICATOR, Te as PROGRESS_INDICATOR_PROGRESS, Ee as PROGRESS_INDICATOR_STEP, De as PROGRESS_INDICATOR_STEP_VERTICAL, Oe as PROGRESS_RING, Re as RADIO, Be as RADIO_BUTTON_GROUP, ze as RADIO_GROUP, Me as SCOPED_NOTIFICATION, Q as SEARCH, Ae as SETUP_ASSISTANT, je as SETUP_ASSISTANT_STEP, Ne as SLIDER, Pe as SPINNER, Fe as SPLIT_VIEW, Ie as SPLIT_VIEW_HEADER, Le as SPLIT_VIEW_LISTBOX, Ve as TAB, Ue as TABS, We as TABS_LIST, Ge as TABS_PANEL, He as TAB_PANEL, Z as TEXTAREA, Ke as TIME_PICKER, qe as TOAST, Je as TOAST_CONTAINER, Ye as TREE, Xe as TREE_BRANCH, Ze as TREE_ITEM, Qe as TRIAL_BAR, et as TRIAL_BAR_BUTTON, $e as TRIAL_BAR_DROPDOWN, tt as VERTICAL_NAVIGATION, nt as VERTICAL_NAVIGATION_ITEM, rt as VISUAL_PICKER, it as VISUAL_PICKER_LINK, at as WELCOME_MAT, st as WELCOME_MAT_BADGE, ot as WELCOME_MAT_TILE };
4
+ export { e as ACCORDION, t as ACCORDION_PANEL, n as ALERT, r as ALERT_CONTAINER, i as AVATAR, a as BADGE, o as BREADCRUMB, s as BUILDER_HEADER, c as BUILDER_HEADER_MISC, u as BUILDER_HEADER_NAV, d as BUILDER_HEADER_NAV_DROPDOWN, f as BUILDER_HEADER_NAV_LINK, p as BUILDER_HEADER_TOOLBAR, l as BUILDER_HEADER_UTILITIES, m as BUTTON, h as BUTTON_GROUP, _ as BUTTON_ICON, g as BUTTON_STATEFUL, v as CARD, y as CARD_BODY, b as CARD_EMPTY, x as CARD_FILTER, S as CARD_FOOTER, C as CARD_HEADER, w as CAROUSEL, O as CAROUSEL_AUTOPLAY_BUTTON, T as CAROUSEL_INDICATORS, E as CAROUSEL_ITEM, D as CAROUSEL_NAVIGATORS, J as CHECKBOX, k as COLOR_PICKER, A as COMBOBOX, R as DATE_PICKER, B as DIALOG, z as DYNAMIC_ICON, K as EXPANDABLE_SECTION, V as FILES, G as FILES_ACTIONS, W as FILES_FIGURE, H as FILES_FILE, U as FILES_MORE, q as FILTER, Y as FORMS_INLINE_EDIT, $ as HIGHLIGHTER, ee as ICON, ne as ICON_INPUT, te as ICON_SETTINGS, re as ILLUSTRATION, X as INPUT, ie as LIST, ae as LIST_ITEM, oe as LIST_ITEM_LABEL, se as LOOKUP, ce as MEDIA_OBJECT, le as MENU_DROPDOWN, ue as MENU_DROPDOWN_TRIGGER, de as MODAL, ge as PAGE_HEADER, _e as PAGE_HEADER_CONTROL, fe as PANEL, pe as PANEL_FILTER_GROUP, me as PANEL_FILTER_LIST, he as PANEL_FILTER_LIST_HEADING, ve as PILL, ye as PILL_CONTAINER, xe as POPOVER, Se as POPOVER_EDIT_DIALOG, Ce as POPOVER_TOOLTIP, be as PORTAL_SETTINGS, Ae as PROGRESS_BAR, we as PROGRESS_INDICATOR, Te as PROGRESS_INDICATOR_PATH, Ee as PROGRESS_INDICATOR_PROGRESS, De as PROGRESS_INDICATOR_STEP, Oe as PROGRESS_INDICATOR_STEP_VERTICAL, ke as PROGRESS_RING, ze as RADIO, Ve as RADIO_BUTTON_GROUP, Be as RADIO_GROUP, Ne as SCOPED_NOTIFICATION, Q as SEARCH, je as SETUP_ASSISTANT, Me as SETUP_ASSISTANT_STEP, j as SIMPLE_DATA_TABLE, M as SIMPLE_DATA_TABLE_CELL, N as SIMPLE_DATA_TABLE_COLUMN, P as SIMPLE_DATA_TABLE_HEAD, F as SIMPLE_DATA_TABLE_HEADER_CELL, L as SIMPLE_DATA_TABLE_ROW, I as SIMPLE_DATA_TABLE_ROW_ACTIONS, Pe as SLIDER, Fe as SPINNER, Ie as SPLIT_VIEW, Le as SPLIT_VIEW_HEADER, Re as SPLIT_VIEW_LISTBOX, He as TAB, We as TABS, Ge as TABS_LIST, Ke as TABS_PANEL, Ue as TAB_PANEL, Z as TEXTAREA, qe as TIME_PICKER, Je as TOAST, Ye as TOAST_CONTAINER, Xe as TREE, Ze as TREE_BRANCH, Qe as TREE_ITEM, $e as TRIAL_BAR, tt as TRIAL_BAR_BUTTON, et as TRIAL_BAR_DROPDOWN, nt as VERTICAL_NAVIGATION, rt as VERTICAL_NAVIGATION_ITEM, it as VISUAL_PICKER, at as VISUAL_PICKER_LINK, ot as WELCOME_MAT, ct as WELCOME_MAT_BADGE, st as WELCOME_MAT_TILE };
5
5
 
6
6
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":[],"sources":["../../../utilities/constants.js"],"sourcesContent":["// ## Components\nexport const ACCORDION = 'SLDSAccordion';\nexport const ACCORDION_PANEL = 'SLDSAccordionPanel';\nexport const ALERT = 'SLDSAlert';\nexport const ALERT_CONTAINER = 'SLDSAlertContainer';\nexport const APP_LAUNCHER = 'SLDSAppLauncher';\nexport const APP_LAUNCHER_EXPANDABLE_SECTION =\n\t'SLDSAppLauncherExpandableSection';\n/* Remove at next breaking change */\nexport const APP_LAUNCHER_SECTION = 'SLDSAppLauncherSection';\nexport const APP_LAUNCHER_LINK = 'SLDSAppLauncherLink';\nexport const APP_LAUNCHER_TILE = 'SLDSAppLauncherTile';\nexport const APP_LAUNCHER_HEADER = 'SLDSAppLauncherHeader';\nexport const AVATAR = 'SLDSAvatar';\nexport const BADGE = 'SLDSBadge';\n\nexport const BRAND_BAND = 'SLDSBrandBand';\n\n/* Remove at next breaking change */\nexport const BREAD_CRUMB = 'SLDSBreadcrumb';\n\nexport const BREADCRUMB = 'SLDSBreadcrumb';\nexport const BUILDER_HEADER = 'SLDSBuilderHeader';\nexport const BUILDER_HEADER_MISC = 'SLDSBuilderHeaderMisc';\nexport const BUILDER_HEADER_UTILITIES = 'SLDSBuilderHeaderUtilities';\nexport const BUILDER_HEADER_NAV = 'SLDSBuilderHeaderNav';\nexport const BUILDER_HEADER_NAV_DROPDOWN = 'SLDSBuilderHeaderNavDropdown';\nexport const BUILDER_HEADER_NAV_LINK = 'SLDSBuilderHeaderNavLink';\nexport const BUILDER_HEADER_TOOLBAR = 'SLDSBuilderHeaderToolbar';\nexport const BUTTON = 'SLDSButton';\nexport const BUTTON_GROUP = 'SLDSButtonGroup';\nexport const BUTTON_STATEFUL = 'SLDSButtonStateful';\nexport const BUTTON_ICON = 'SLDSButtonIcon'; // a non-interctive icon wrapper for SLDSUtilityIcon\nexport const CARD = 'SLDSCard';\nexport const CARD_BODY = 'SLDSCardBody';\nexport const CARD_EMPTY = 'SLDSCardEmpty';\nexport const CARD_FILTER = 'SLDSCardFilter';\nexport const CARD_FOOTER = 'SLDSCardFooter';\nexport const CARD_HEADER = 'SLDSCardHeader';\nexport const CAROUSEL = 'SLDSCarousel';\nexport const CAROUSEL_INDICATORS = 'SLDSCarouselIndicators';\nexport const CAROUSEL_ITEM = 'SLDSCarouselItem';\nexport const CAROUSEL_NAVIGATORS = 'SLDSCarouselNavigators';\nexport const CAROUSEL_AUTOPLAY_BUTTON = 'SLDSCarouselAutoplayButton';\nexport const COLOR_PICKER = 'SLDSColorPicker';\nexport const COMBOBOX = 'SLDSCombobox';\nexport const DATA_TABLE = 'SLDSDataTable';\nexport const DATA_TABLE_CELL = 'SLDSDataTableCell';\nexport const DATA_TABLE_COLUMN = 'SLDSDataTableColumn';\nexport const DATA_TABLE_HEAD = 'SLDSDataTableHead';\nexport const DATA_TABLE_HEADER_CELL = 'SLDSDataTableHeaderCell';\nexport const DATA_TABLE_ROW_ACTIONS = 'SLDSDataTableRowActions';\nexport const DATA_TABLE_ROW = 'SLDSDataTableRow';\nexport const DATE_PICKER = 'SLDSDatePicker';\nexport const DEPRECATED_WARNING = 'SLDSDeprecatedWarning';\nexport const DYNAMIC_ICON = 'SLDSDynamicIcon';\nexport const DIALOG = 'SLDSDialog';\nexport const FILES = 'SLDSFiles';\nexport const FILES_FILE = `SLDSFilesFile`;\nexport const FILES_MORE = `SLDSFilesMore`;\nexport const FILES_FIGURE = 'SLDSFilesFigure';\nexport const FILES_ACTIONS = 'SLDSFilesActions';\nexport const EXPANDABLE_SECTION = 'SLDSExpandableSection';\nexport const EXPRESSION = 'SLDSExpression';\nexport const EXPRESSION_GROUP = 'SLDSExpressionGroup';\nexport const EXPRESSION_CONDITION = 'SLDSExpressionCondition';\nexport const EXPRESSION_FORMULA = 'SLDSExpressionFormula';\nexport const FILTER = 'SLDSFilter';\nexport const CHECKBOX = 'SLDSCheckbox';\nexport const FORMS_INLINE_EDIT = 'SLDSInlineEdit';\nexport const INPUT = 'SLDSInput';\nexport const TEXTAREA = 'SLDSTextarea';\nexport const SEARCH = 'SLDSSearch';\nexport const GLOBAL_HEADER = 'SLDSGlobalHeader';\nexport const GLOBAL_HEADER_BUTTON = 'SLDSGlobalHeaderButton';\nexport const GLOBAL_HEADER_DROPDOWN = 'SLDSGlobalHeaderDropdown';\nexport const GLOBAL_HEADER_FAVORITES = 'SLDSGlobalHeaderFavorites';\nexport const GLOBAL_HEADER_HELP = 'SLDSGlobalHeaderHelp';\nexport const GLOBAL_HEADER_NOTIFICATIONS = 'SLDSGlobalHeaderNotifications';\nexport const GLOBAL_HEADER_PROFILE = 'SLDSGlobalHeaderProfile';\nexport const GLOBAL_HEADER_SEARCH = 'SLDSGlobalHeaderSearch';\nexport const GLOBAL_HEADER_SETUP = 'SLDSGlobalHeaderSetup';\nexport const GLOBAL_HEADER_TASK = 'SLDSGlobalHeaderTask';\nexport const GLOBAL_HEADER_TOOL = 'SLDSGlobalHeaderTool';\nexport const GLOBAL_NAVIGATION_BAR = 'SLDSGlobalNavigationBar';\nexport const GLOBAL_NAVIGATION_BAR_BUTTON = 'SLDSGlobalNavigationBarButton';\nexport const GLOBAL_NAVIGATION_BAR_DROPDOWN = 'SLDSGlobalNavigationBarDropdown';\nexport const GLOBAL_NAVIGATION_BAR_LABEL = 'SLDSGlobalNavigationBarLabel';\nexport const GLOBAL_NAVIGATION_BAR_LINK = 'SLDSGlobalNavigationBarLink';\nexport const GLOBAL_NAVIGATION_BAR_REGION = 'SLDSGlobalNavigationBarRegion';\nexport const GLOBAL_NAVIGATION_BAR_APP_LAUNCHER =\n\t'SLDSGlobalNavigationBarAppLauncher';\nexport const GRID = 'SLDSGrid';\nexport const HIGHLIGHTER = 'SLDSHighlighter';\nexport const ICON = 'SLDSIcon';\nexport const ICON_SETTINGS = 'SLDSIconSettings';\nexport const ICON_INPUT = 'SLDSIconInput';\nexport const ILLUSTRATION = 'SLDSIllustration';\nexport const LIST = 'SLDSList';\nexport const LIST_ITEM = 'SLDSListItem';\nexport const LIST_ITEM_LABEL = 'SLDSListItemLabel';\nexport const LISTBOX_OF_PILL_OPTIONS = 'SLDSListboxOfPillOptions';\nexport const LOCATION_MAP = 'SLDSLocationMap';\nexport const LOOKUP = 'SLDSLookup';\nexport const MEDIA_OBJECT = 'SLDSMediaObject';\nexport const MENU_DROPDOWN = 'SLDSMenuDropdown';\nexport const MENU_DROPDOWN_TRIGGER = 'SLDSMenuDropdownTrigger';\nexport const MENU_PICKLIST = 'SLDSMenuPicklist';\nexport const MODAL = 'SLDSModal';\nexport const NOTIFICATION = 'SLDSNotification';\nexport const PANEL = 'SLDSPanel';\nexport const PANEL_FILTER_GROUP = 'SLDSFilterGroup';\nexport const PANEL_FILTER_LIST = 'SLDSFilterList';\nexport const PANEL_FILTER_LIST_HEADING = 'SLDSPanelFilterListHeading';\nexport const PAGE_HEADER = 'SLDSPageHeader';\nexport const PAGE_HEADER_CONTROL = 'SLDSPageHeaderControl';\nexport const PILL = 'SLDSPill';\nexport const PILL_CONTAINER = 'SLDSPillContainer';\nexport const PORTAL_SETTINGS = 'SLDSPortalSettings';\nexport const POPOVER = 'SLDSPopover';\nexport const POPOVER_EDIT_DIALOG = 'SLDSPopoverEditDialog';\nexport const POPOVER_TOOLTIP = 'SLDSPopoverTooltip';\nexport const PROGRESS_INDICATOR = 'SLDSProgressIndicator';\nexport const PROGRESS_INDICATOR_PROGRESS = 'SLDSProgressIndicatorProgress';\nexport const PROGRESS_INDICATOR_STEP = 'SLDSProgressIndicatorStep';\nexport const PROGRESS_INDICATOR_STEP_VERTICAL =\n\t'SLDSProgressIndicatorStepVertical';\nexport const PROGRESS_RING = 'SLDSProgressRing';\nexport const PROGRESS_BAR = 'SLDSProgressBar';\nexport const SETUP_ASSISTANT = 'SLDSSetupAssistant';\nexport const SETUP_ASSISTANT_STEP = 'SLDSSetupAssistantStep';\nexport const SCOPED_NOTIFICATION = 'SLDSScopedNotification';\nexport const SLIDER = 'SLDSSlider';\nexport const SPINNER = 'SLDSSpinner';\nexport const SPLIT_VIEW = 'SLDSSplitView';\nexport const SPLIT_VIEW_HEADER = 'SLDSSplitViewHeader';\nexport const SPLIT_VIEW_LISTBOX = 'SLDSSplitViewListbox';\nexport const RADIO = 'SLDSRadio';\nexport const RADIO_GROUP = 'SLDSRadioGroup';\nexport const RADIO_BUTTON_GROUP = 'SLDSRadioButtonGroup';\nexport const TAB = 'SLDSTab';\nexport const TAB_ITEM = 'SLDSTabItem';\nexport const TAB_PANEL = 'SLDSTabPanel';\nexport const TABS = 'SLDSTabs';\nexport const TABS_LIST = 'SLDSTabsList';\nexport const TABS_PANEL = 'SLDSTabsPanel';\nexport const TIME_PICKER = 'SLDSTimepicker';\nexport const TOAST = 'SLDSToast';\nexport const TOAST_CONTAINER = 'SLDSToastContainer';\nexport const TREE = 'SLDSTree';\nexport const TREE_BRANCH = 'SLDSTreeBranch';\nexport const TREE_ITEM = 'SLDSTreeItem';\nexport const TRIAL_BAR = 'SLDSTrialBar';\nexport const TRIAL_BAR_DROPDOWN = 'SLDSTrialBarDropdown';\nexport const TRIAL_BAR_BUTTON = 'SLDSTrialBarButton';\nexport const VERTICAL_NAVIGATION = 'SLDSVerticalNavigation';\nexport const VERTICAL_NAVIGATION_ITEM = 'SLDSVerticalNavigationItem';\nexport const VISUAL_PICKER = 'SLDSVisualPicker';\nexport const VISUAL_PICKER_LINK = 'SLDSVisualPickerLink';\nexport const WELCOME_MAT = 'SLDSWelcomeMat';\nexport const WELCOME_MAT_TILE = 'SLDSWelcomeMatTile';\nexport const WELCOME_MAT_BADGE = 'SLDSWelcomeMatBadge';\nexport const DOCKED_COMPOSER = 'SLDSDockedComposer';\n"],"mappings":";AACA,IAAa,IAAY,iBACZ,IAAkB,sBAClB,IAAQ,aACR,IAAkB,sBASlB,IAAS,cACT,IAAQ,aAOR,IAAa,kBACb,IAAiB,qBACjB,IAAsB,yBACtB,IAA2B,8BAC3B,IAAqB,wBACrB,IAA8B,gCAC9B,IAA0B,4BAC1B,IAAyB,4BACzB,IAAS,cACT,IAAe,mBACf,IAAkB,sBAClB,IAAc,kBACd,IAAO,YACP,IAAY,gBACZ,IAAa,iBACb,IAAc,kBACd,IAAc,kBACd,IAAc,kBACd,IAAW,gBACX,IAAsB,0BACtB,IAAgB,oBAChB,IAAsB,0BACtB,IAA2B,8BAC3B,IAAe,mBACf,IAAW,gBACX,IAAa,iBACb,IAAkB,qBAClB,IAAoB,uBACpB,IAAkB,qBAClB,IAAyB,2BACzB,IAAyB,2BACzB,IAAiB,oBACjB,IAAc,kBAEd,IAAe,mBACf,IAAS,cACT,IAAQ,aACR,IAAa,iBACb,IAAa,iBACb,IAAe,mBACf,IAAgB,oBAChB,IAAqB,yBAKrB,IAAS,cACT,IAAW,gBACX,IAAoB,kBACpB,IAAQ,aACR,IAAW,gBACX,IAAS,cAqBT,IAAc,mBACd,KAAO,YACP,KAAgB,oBAChB,KAAa,iBACb,KAAe,oBACf,KAAO,YACP,KAAY,gBACZ,KAAkB,qBAGlB,KAAS,cACT,KAAe,mBACf,KAAgB,oBAChB,KAAwB,2BAExB,KAAQ,aAER,KAAQ,aACR,KAAqB,mBACrB,KAAoB,kBACpB,KAA4B,8BAC5B,KAAc,kBACd,KAAsB,yBACtB,KAAO,YACP,KAAiB,qBACjB,KAAkB,sBAClB,KAAU,eACV,KAAsB,yBACtB,KAAkB,sBAClB,KAAqB,yBACrB,KAA8B,iCAC9B,KAA0B,6BAC1B,KACZ,qCACY,KAAgB,oBAChB,KAAe,mBACf,KAAkB,sBAClB,KAAuB,0BACvB,KAAsB,0BACtB,KAAS,cACT,KAAU,eACV,KAAa,iBACb,KAAoB,uBACpB,KAAqB,wBACrB,KAAQ,aACR,KAAc,kBACd,KAAqB,wBACrB,KAAM,WAEN,KAAY,gBACZ,KAAO,YACP,KAAY,gBACZ,KAAa,iBACb,KAAc,kBACd,KAAQ,aACR,KAAkB,sBAClB,KAAO,YACP,KAAc,kBACd,KAAY,gBACZ,KAAY,gBACZ,KAAqB,wBACrB,KAAmB,sBACnB,KAAsB,0BACtB,KAA2B,8BAC3B,KAAgB,oBAChB,KAAqB,wBACrB,KAAc,kBACd,KAAmB,sBACnB,KAAoB"}
1
+ {"version":3,"file":"constants.js","names":[],"sources":["../../../utilities/constants.js"],"sourcesContent":["// ## Components\nexport const ACCORDION = 'SLDSAccordion';\nexport const ACCORDION_PANEL = 'SLDSAccordionPanel';\nexport const ALERT = 'SLDSAlert';\nexport const ALERT_CONTAINER = 'SLDSAlertContainer';\nexport const APP_LAUNCHER = 'SLDSAppLauncher';\nexport const APP_LAUNCHER_EXPANDABLE_SECTION =\n\t'SLDSAppLauncherExpandableSection';\n/* Remove at next breaking change */\nexport const APP_LAUNCHER_SECTION = 'SLDSAppLauncherSection';\nexport const APP_LAUNCHER_LINK = 'SLDSAppLauncherLink';\nexport const APP_LAUNCHER_TILE = 'SLDSAppLauncherTile';\nexport const APP_LAUNCHER_HEADER = 'SLDSAppLauncherHeader';\nexport const AVATAR = 'SLDSAvatar';\nexport const BADGE = 'SLDSBadge';\n\nexport const BRAND_BAND = 'SLDSBrandBand';\n\n/* Remove at next breaking change */\nexport const BREAD_CRUMB = 'SLDSBreadcrumb';\n\nexport const BREADCRUMB = 'SLDSBreadcrumb';\nexport const BUILDER_HEADER = 'SLDSBuilderHeader';\nexport const BUILDER_HEADER_MISC = 'SLDSBuilderHeaderMisc';\nexport const BUILDER_HEADER_UTILITIES = 'SLDSBuilderHeaderUtilities';\nexport const BUILDER_HEADER_NAV = 'SLDSBuilderHeaderNav';\nexport const BUILDER_HEADER_NAV_DROPDOWN = 'SLDSBuilderHeaderNavDropdown';\nexport const BUILDER_HEADER_NAV_LINK = 'SLDSBuilderHeaderNavLink';\nexport const BUILDER_HEADER_TOOLBAR = 'SLDSBuilderHeaderToolbar';\nexport const BUTTON = 'SLDSButton';\nexport const BUTTON_GROUP = 'SLDSButtonGroup';\nexport const BUTTON_STATEFUL = 'SLDSButtonStateful';\nexport const BUTTON_ICON = 'SLDSButtonIcon'; // a non-interctive icon wrapper for SLDSUtilityIcon\nexport const CARD = 'SLDSCard';\nexport const CARD_BODY = 'SLDSCardBody';\nexport const CARD_EMPTY = 'SLDSCardEmpty';\nexport const CARD_FILTER = 'SLDSCardFilter';\nexport const CARD_FOOTER = 'SLDSCardFooter';\nexport const CARD_HEADER = 'SLDSCardHeader';\nexport const CAROUSEL = 'SLDSCarousel';\nexport const CAROUSEL_INDICATORS = 'SLDSCarouselIndicators';\nexport const CAROUSEL_ITEM = 'SLDSCarouselItem';\nexport const CAROUSEL_NAVIGATORS = 'SLDSCarouselNavigators';\nexport const CAROUSEL_AUTOPLAY_BUTTON = 'SLDSCarouselAutoplayButton';\nexport const COLOR_PICKER = 'SLDSColorPicker';\nexport const COMBOBOX = 'SLDSCombobox';\nexport const SIMPLE_DATA_TABLE = 'SLDSSimpleDataTable';\nexport const SIMPLE_DATA_TABLE_CELL = 'SLDSSimpleDataTableCell';\nexport const SIMPLE_DATA_TABLE_COLUMN = 'SLDSSimpleDataTableColumn';\nexport const SIMPLE_DATA_TABLE_HEAD = 'SLDSSimpleDataTableHead';\nexport const SIMPLE_DATA_TABLE_HEADER_CELL = 'SLDSSimpleDataTableHeaderCell';\nexport const SIMPLE_DATA_TABLE_ROW_ACTIONS = 'SLDSSimpleDataTableRowActions';\nexport const SIMPLE_DATA_TABLE_ROW = 'SLDSSimpleDataTableRow';\nexport const DATE_PICKER = 'SLDSDatePicker';\nexport const DEPRECATED_WARNING = 'SLDSDeprecatedWarning';\nexport const DYNAMIC_ICON = 'SLDSDynamicIcon';\nexport const DIALOG = 'SLDSDialog';\nexport const FILES = 'SLDSFiles';\nexport const FILES_FILE = `SLDSFilesFile`;\nexport const FILES_MORE = `SLDSFilesMore`;\nexport const FILES_FIGURE = 'SLDSFilesFigure';\nexport const FILES_ACTIONS = 'SLDSFilesActions';\nexport const EXPANDABLE_SECTION = 'SLDSExpandableSection';\nexport const EXPRESSION = 'SLDSExpression';\nexport const EXPRESSION_GROUP = 'SLDSExpressionGroup';\nexport const EXPRESSION_CONDITION = 'SLDSExpressionCondition';\nexport const EXPRESSION_FORMULA = 'SLDSExpressionFormula';\nexport const FILTER = 'SLDSFilter';\nexport const CHECKBOX = 'SLDSCheckbox';\nexport const FORMS_INLINE_EDIT = 'SLDSInlineEdit';\nexport const INPUT = 'SLDSInput';\nexport const TEXTAREA = 'SLDSTextarea';\nexport const SEARCH = 'SLDSSearch';\nexport const GLOBAL_HEADER = 'SLDSGlobalHeader';\nexport const GLOBAL_HEADER_BUTTON = 'SLDSGlobalHeaderButton';\nexport const GLOBAL_HEADER_DROPDOWN = 'SLDSGlobalHeaderDropdown';\nexport const GLOBAL_HEADER_FAVORITES = 'SLDSGlobalHeaderFavorites';\nexport const GLOBAL_HEADER_HELP = 'SLDSGlobalHeaderHelp';\nexport const GLOBAL_HEADER_NOTIFICATIONS = 'SLDSGlobalHeaderNotifications';\nexport const GLOBAL_HEADER_PROFILE = 'SLDSGlobalHeaderProfile';\nexport const GLOBAL_HEADER_SEARCH = 'SLDSGlobalHeaderSearch';\nexport const GLOBAL_HEADER_SETUP = 'SLDSGlobalHeaderSetup';\nexport const GLOBAL_HEADER_TASK = 'SLDSGlobalHeaderTask';\nexport const GLOBAL_HEADER_TOOL = 'SLDSGlobalHeaderTool';\nexport const GLOBAL_NAVIGATION_BAR = 'SLDSGlobalNavigationBar';\nexport const GLOBAL_NAVIGATION_BAR_BUTTON = 'SLDSGlobalNavigationBarButton';\nexport const GLOBAL_NAVIGATION_BAR_DROPDOWN = 'SLDSGlobalNavigationBarDropdown';\nexport const GLOBAL_NAVIGATION_BAR_LABEL = 'SLDSGlobalNavigationBarLabel';\nexport const GLOBAL_NAVIGATION_BAR_LINK = 'SLDSGlobalNavigationBarLink';\nexport const GLOBAL_NAVIGATION_BAR_REGION = 'SLDSGlobalNavigationBarRegion';\nexport const GLOBAL_NAVIGATION_BAR_APP_LAUNCHER =\n\t'SLDSGlobalNavigationBarAppLauncher';\nexport const GRID = 'SLDSGrid';\nexport const HIGHLIGHTER = 'SLDSHighlighter';\nexport const ICON = 'SLDSIcon';\nexport const ICON_SETTINGS = 'SLDSIconSettings';\nexport const ICON_INPUT = 'SLDSIconInput';\nexport const ILLUSTRATION = 'SLDSIllustration';\nexport const LIST = 'SLDSList';\nexport const LIST_ITEM = 'SLDSListItem';\nexport const LIST_ITEM_LABEL = 'SLDSListItemLabel';\nexport const LISTBOX_OF_PILL_OPTIONS = 'SLDSListboxOfPillOptions';\nexport const LOCATION_MAP = 'SLDSLocationMap';\nexport const LOOKUP = 'SLDSLookup';\nexport const MEDIA_OBJECT = 'SLDSMediaObject';\nexport const MENU_DROPDOWN = 'SLDSMenuDropdown';\nexport const MENU_DROPDOWN_TRIGGER = 'SLDSMenuDropdownTrigger';\nexport const MENU_PICKLIST = 'SLDSMenuPicklist';\nexport const MODAL = 'SLDSModal';\nexport const NOTIFICATION = 'SLDSNotification';\nexport const PANEL = 'SLDSPanel';\nexport const PANEL_FILTER_GROUP = 'SLDSFilterGroup';\nexport const PANEL_FILTER_LIST = 'SLDSFilterList';\nexport const PANEL_FILTER_LIST_HEADING = 'SLDSPanelFilterListHeading';\nexport const PAGE_HEADER = 'SLDSPageHeader';\nexport const PAGE_HEADER_CONTROL = 'SLDSPageHeaderControl';\nexport const PILL = 'SLDSPill';\nexport const PILL_CONTAINER = 'SLDSPillContainer';\nexport const PORTAL_SETTINGS = 'SLDSPortalSettings';\nexport const POPOVER = 'SLDSPopover';\nexport const POPOVER_EDIT_DIALOG = 'SLDSPopoverEditDialog';\nexport const POPOVER_TOOLTIP = 'SLDSPopoverTooltip';\nexport const PROGRESS_INDICATOR = 'SLDSProgressIndicator';\nexport const PROGRESS_INDICATOR_PATH = 'SLDSProgressIndicatorPath';\nexport const PROGRESS_INDICATOR_PROGRESS = 'SLDSProgressIndicatorProgress';\nexport const PROGRESS_INDICATOR_STEP = 'SLDSProgressIndicatorStep';\nexport const PROGRESS_INDICATOR_STEP_VERTICAL =\n\t'SLDSProgressIndicatorStepVertical';\nexport const PROGRESS_RING = 'SLDSProgressRing';\nexport const PROGRESS_BAR = 'SLDSProgressBar';\nexport const SETUP_ASSISTANT = 'SLDSSetupAssistant';\nexport const SETUP_ASSISTANT_STEP = 'SLDSSetupAssistantStep';\nexport const SCOPED_NOTIFICATION = 'SLDSScopedNotification';\nexport const SLIDER = 'SLDSSlider';\nexport const SPINNER = 'SLDSSpinner';\nexport const SPLIT_VIEW = 'SLDSSplitView';\nexport const SPLIT_VIEW_HEADER = 'SLDSSplitViewHeader';\nexport const SPLIT_VIEW_LISTBOX = 'SLDSSplitViewListbox';\nexport const RADIO = 'SLDSRadio';\nexport const RADIO_GROUP = 'SLDSRadioGroup';\nexport const RADIO_BUTTON_GROUP = 'SLDSRadioButtonGroup';\nexport const TAB = 'SLDSTab';\nexport const TAB_ITEM = 'SLDSTabItem';\nexport const TAB_PANEL = 'SLDSTabPanel';\nexport const TABS = 'SLDSTabs';\nexport const TABS_LIST = 'SLDSTabsList';\nexport const TABS_PANEL = 'SLDSTabsPanel';\nexport const TIME_PICKER = 'SLDSTimepicker';\nexport const TOAST = 'SLDSToast';\nexport const TOAST_CONTAINER = 'SLDSToastContainer';\nexport const TREE = 'SLDSTree';\nexport const TREE_BRANCH = 'SLDSTreeBranch';\nexport const TREE_ITEM = 'SLDSTreeItem';\nexport const TRIAL_BAR = 'SLDSTrialBar';\nexport const TRIAL_BAR_DROPDOWN = 'SLDSTrialBarDropdown';\nexport const TRIAL_BAR_BUTTON = 'SLDSTrialBarButton';\nexport const VERTICAL_NAVIGATION = 'SLDSVerticalNavigation';\nexport const VERTICAL_NAVIGATION_ITEM = 'SLDSVerticalNavigationItem';\nexport const VISUAL_PICKER = 'SLDSVisualPicker';\nexport const VISUAL_PICKER_LINK = 'SLDSVisualPickerLink';\nexport const WELCOME_MAT = 'SLDSWelcomeMat';\nexport const WELCOME_MAT_TILE = 'SLDSWelcomeMatTile';\nexport const WELCOME_MAT_BADGE = 'SLDSWelcomeMatBadge';\nexport const DOCKED_COMPOSER = 'SLDSDockedComposer';\n"],"mappings":";AACA,IAAa,IAAY,iBACZ,IAAkB,sBAClB,IAAQ,aACR,IAAkB,sBASlB,IAAS,cACT,IAAQ,aAOR,IAAa,kBACb,IAAiB,qBACjB,IAAsB,yBACtB,IAA2B,8BAC3B,IAAqB,wBACrB,IAA8B,gCAC9B,IAA0B,4BAC1B,IAAyB,4BACzB,IAAS,cACT,IAAe,mBACf,IAAkB,sBAClB,IAAc,kBACd,IAAO,YACP,IAAY,gBACZ,IAAa,iBACb,IAAc,kBACd,IAAc,kBACd,IAAc,kBACd,IAAW,gBACX,IAAsB,0BACtB,IAAgB,oBAChB,IAAsB,0BACtB,IAA2B,8BAC3B,IAAe,mBACf,IAAW,gBACX,IAAoB,uBACpB,IAAyB,2BACzB,IAA2B,6BAC3B,IAAyB,2BACzB,IAAgC,iCAChC,IAAgC,iCAChC,IAAwB,0BACxB,IAAc,kBAEd,IAAe,mBACf,IAAS,cACT,IAAQ,aACR,IAAa,iBACb,IAAa,iBACb,IAAe,mBACf,IAAgB,oBAChB,IAAqB,yBAKrB,IAAS,cACT,IAAW,gBACX,IAAoB,kBACpB,IAAQ,aACR,IAAW,gBACX,IAAS,cAqBT,IAAc,mBACd,KAAO,YACP,KAAgB,oBAChB,KAAa,iBACb,KAAe,oBACf,KAAO,YACP,KAAY,gBACZ,KAAkB,qBAGlB,KAAS,cACT,KAAe,mBACf,KAAgB,oBAChB,KAAwB,2BAExB,KAAQ,aAER,KAAQ,aACR,KAAqB,mBACrB,KAAoB,kBACpB,KAA4B,8BAC5B,KAAc,kBACd,KAAsB,yBACtB,KAAO,YACP,KAAiB,qBACjB,KAAkB,sBAClB,KAAU,eACV,KAAsB,yBACtB,KAAkB,sBAClB,KAAqB,yBACrB,KAA0B,6BAC1B,KAA8B,iCAC9B,KAA0B,6BAC1B,KACZ,qCACY,KAAgB,oBAChB,KAAe,mBACf,KAAkB,sBAClB,KAAuB,0BACvB,KAAsB,0BACtB,KAAS,cACT,KAAU,eACV,KAAa,iBACb,KAAoB,uBACpB,KAAqB,wBACrB,KAAQ,aACR,KAAc,kBACd,KAAqB,wBACrB,KAAM,WAEN,KAAY,gBACZ,KAAO,YACP,KAAY,gBACZ,KAAa,iBACb,KAAc,kBACd,KAAQ,aACR,KAAkB,sBAClB,KAAO,YACP,KAAc,kBACd,KAAY,gBACZ,KAAY,gBACZ,KAAqB,wBACrB,KAAmB,sBACnB,KAAsB,0BACtB,KAA2B,8BAC3B,KAAgB,oBAChB,KAAqB,wBACrB,KAAc,kBACd,KAAmB,sBACnB,KAAoB"}
@@ -0,0 +1,2 @@
1
+ import e from "./use-click-outside.js";
2
+ export { e as useClickOutside };
@@ -0,0 +1 @@
1
+ export * from './hooks/index.js';
@@ -0,0 +1,19 @@
1
+ import e from "warning";
2
+ //#region utilities/warning/incompatible-props.js
3
+ var t = function() {};
4
+ process.env.NODE_ENV !== "production" && (t = function(t, n, r, i, a, o, s) {
5
+ let c = !0;
6
+ if (n[r] && n[a]) {
7
+ let e = !i || i.includes(n[r]), t = !o || o.includes(n[a]);
8
+ c = !(e && t);
9
+ }
10
+ if (!c) {
11
+ let c = s ? ` ${s}` : "", l = i ? ` of value \`${n[r]}\`` : "", u = o ? ` of value \`${n[a]}\`` : "";
12
+ e(!1, `[Design System React] ${t} should not be passed prop \`${r}\`${l} along with prop \`${a}\`${u} as they are incompatible.${c}`);
13
+ }
14
+ });
15
+ var n = t;
16
+ //#endregion
17
+ export { n as default };
18
+
19
+ //# sourceMappingURL=incompatible-props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incompatible-props.js","names":[],"sources":["../../../../utilities/warning/incompatible-props.js"],"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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\n\nlet incompatibleProps = function incompatiblePropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tincompatibleProps = function incompatiblePropsFunction(\n\t\tcontrol,\n\t\tprops,\n\t\tpropOneName,\n\t\tpropOneValues,\n\t\tpropTwoName,\n\t\tpropTwoValues,\n\t\tcomment\n\t) {\n\t\tlet checkPassed = true;\n\n\t\tif (props[propOneName] && props[propTwoName]) {\n\t\t\tconst propOneConditionMet = propOneValues\n\t\t\t\t? propOneValues.includes(props[propOneName])\n\t\t\t\t: true;\n\t\t\tconst propTwoConditionMet = propTwoValues\n\t\t\t\t? propTwoValues.includes(props[propTwoName])\n\t\t\t\t: true;\n\n\t\t\tcheckPassed = !(propOneConditionMet && propTwoConditionMet);\n\t\t}\n\n\t\tif (!checkPassed) {\n\t\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\t\tconst incompatibleValueOne = propOneValues\n\t\t\t\t? ` of value \\`${props[propOneName]}\\``\n\t\t\t\t: '';\n\t\t\tconst incompatibleValueTwo = propTwoValues\n\t\t\t\t? ` of value \\`${props[propTwoName]}\\``\n\t\t\t\t: '';\n\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tfalse,\n\t\t\t\t`[Design System React] ${control} should not be passed prop \\`${propOneName}\\`${incompatibleValueOne} along with prop \\`${propTwoName}\\`${incompatibleValueTwo} as they are incompatible.${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t}\n\t};\n}\n\nexport default incompatibleProps;\n"],"mappings":";;AAQA,IAAI,IAAoB,WAAqC,CAAC;AAE9D,QAAA,IAAA,aAA6B,iBAC5B,IAAoB,SACnB,GACA,GACA,GACA,GACA,GACA,GACA,GACC;CACD,IAAI,IAAc;CAElB,IAAI,EAAM,MAAgB,EAAM,IAAc;EAC7C,IAAM,IAAsB,MACzB,EAAc,SAAS,EAAM,EAAY,GAEtC,IAAsB,MACzB,EAAc,SAAS,EAAM,EAAY;EAG5C,IAAc,EAAE,KAAuB;CACxC;CAEA,IAAI,CAAC,GAAa;EACjB,IAAM,IAAoB,IAAU,IAAI,MAAY,IAC9C,IAAuB,IAC1B,eAAe,EAAM,GAAa,MAClC,IACG,IAAuB,IAC1B,eAAe,EAAM,GAAa,MAClC;EAGH,EACC,IACA,yBAAyB,EAAQ,+BAA+B,EAAY,IAAI,EAAqB,qBAAqB,EAAY,IAAI,EAAqB,4BAA4B,GAC5L;CAED;AACD;AAGD,IAAA,IAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/accordion/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAMb,KAAK,SAAS,EAGd,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,+BAA+B;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,kBAAkB;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxD,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;2BAMkB,EAClB,QAAQ,EACR,SAAS,EACT,EAAE,EAAE,MAAM,GACV,EAAE,cAAc,GAAG,KAAK,CAAC,YAAY;;aA8Ed,SAAS;;eAElB,SAAS"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/accordion/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAOb,KAAK,SAAS,EAGd,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,+BAA+B;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,kBAAkB;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxD,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;2BAMkB,EAClB,QAAQ,EACR,SAAS,EACT,EAAE,EAAE,MAAM,GACV,EAAE,cAAc,GAAG,KAAK,CAAC,YAAY;;aA8Hd,SAAS;;eAElB,SAAS"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/alert/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAA4C,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAI5G,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAIlD;;GA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EACd,MAAM,EAAE,UAAU,EAClB,kBAAkB,EAClB,cAAc,EACd,KAAK,EACL,OAAgB,GAChB,EAAE,UAAU,GAAG,KAAK,CAAC,YAAY;;aAwFd,KAAK;;eAEV,KAAK"}
@@ -3,7 +3,7 @@ import { BADGE } from '../../utilities/constants';
3
3
  /**
4
4
  * Badge color variants
5
5
  */
6
- export type BadgeColor = 'default' | 'inverse' | 'light' | 'success' | 'warning' | 'error';
6
+ export type BadgeColor = 'default' | 'inverse' | 'light' | 'info' | 'success' | 'warning' | 'error';
7
7
  /**
8
8
  * Badge icon alignment
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/badge/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAS,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE3F;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxD,oBAAoB;IACpB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,sBAAsB;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yCAAyC;IACzC,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,wBAAwB;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oBAAoB;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC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,7 @@ export type ButtonIconVariant = 'bare' | 'container' | 'border' | 'border-filled
11
11
  /**
12
12
  * Button icon size types
13
13
  */
14
- export type ButtonIconSize = 'x-small' | 'small' | 'medium' | 'large';
14
+ export type ButtonIconSize = 'xx-small' | 'x-small' | 'small' | 'medium' | 'large';
15
15
  /**
16
16
  * Button type attribute
17
17
  */
@@ -52,7 +52,10 @@ export interface ButtonProps {
52
52
  iconPath?: string;
53
53
  /** Icon position */
54
54
  iconPosition?: IconPosition;
55
- /** Icon size */
55
+ /**
56
+ * Icon size. With `iconVariant`, sizes the button container (`slds-button_icon-*`); otherwise sizes the SVG (`slds-button__icon_*`).
57
+ * `xx-small` requires `iconVariant`, since SLDS only defines it for the button container (matches `lightning-button-icon`).
58
+ */
56
59
  iconSize?: ButtonIconSize;
57
60
  /** Icon variant */
58
61
  iconVariant?: ButtonIconVariant;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/button/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAIb,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,SAAS,EAEd,MAAM,OAAO,CAAC;AASf,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,aAAa,GACtB,MAAM,GACN,MAAM,GACN,SAAS,GACT,OAAO,GACP,eAAe,GACf,aAAa,GACb,SAAS,GACT,kBAAkB,GAClB,MAAM,CAAC;AAEV;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAC1B,MAAM,GACN,WAAW,GACX,QAAQ,GACR,eAAe,GACf,OAAO,GACP,MAAM,GACN,eAAe,CAAC;AAEnB;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG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C;IAC3D,6BAA6B;IAC7B,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACtD,6BAA6B;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,2DAA2D;IAC3D,CAAC,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IACtD,CAAC,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IAC/D,CAAC,GAAG,EAAE,OAAO,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;CAC3C;AAID;;;;;;GAMG;AACH,QAAA,MAAM,MAAM,uFA0MX,CAAC;eAIa,MAAM"}
@@ -3,7 +3,7 @@ import { BUTTON_STATEFUL } from '../../utilities/constants';
3
3
  /**
4
4
  * Button stateful variant types
5
5
  */
6
- export type ButtonStatefulVariant = 'base' | 'neutral' | 'brand' | 'destructive' | 'icon' | 'icon-filled' | 'inverse';
6
+ export type ButtonStatefulVariant = 'base' | 'neutral' | 'brand' | 'destructive' | 'icon' | 'icon-filled' | 'inverse' | 'success' | 'text';
7
7
  /**
8
8
  * State configuration for stateful button
9
9
  */
@@ -68,7 +68,7 @@ export interface ButtonStatefulProps {
68
68
  stateThree?: ButtonStatefulState;
69
69
  /** Tab index */
70
70
  tabIndex?: string;
71
- /** Button variant */
71
+ /** Button variant. `text` renders a stateful button with no border or background. */
72
72
  variant?: ButtonStatefulVariant;
73
73
  }
74
74
  declare function ButtonStateful({ active: controlledActive, assistiveText: propAssistiveText, className, disabled, icon, iconName, iconSize, id, onBlur, onClick, onFocus, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseEnter, responsive, stateOne, stateTwo, stateThree, tabIndex, variant, ...rest }: ButtonStatefulProps): React.ReactElement;