@salesforce/design-system-react 11.0.0-alpha.10 → 11.0.0-alpha.11

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 (663) hide show
  1. package/dist/cjs/components/alert/index.cjs +1 -1
  2. package/dist/cjs/components/alert/index.cjs.map +1 -1
  3. package/dist/cjs/components/builder-header/index.cjs +1 -1
  4. package/dist/cjs/components/builder-header/nav-dropdown.cjs +1 -1
  5. package/dist/cjs/components/builder-header/nav-dropdown.cjs.map +1 -1
  6. package/dist/cjs/components/builder-header/nav-link.cjs +1 -1
  7. package/dist/cjs/components/button/check-props.cjs +2 -0
  8. package/dist/cjs/components/button/check-props.cjs.map +1 -0
  9. package/dist/cjs/components/button/component.cjs +2 -0
  10. package/dist/cjs/components/button/component.cjs.map +1 -0
  11. package/dist/cjs/components/button/index.cjs +1 -1
  12. package/dist/cjs/components/button/index.cjs.map +1 -1
  13. package/dist/cjs/components/button-group/index.cjs +1 -1
  14. package/dist/cjs/components/button-group/index.cjs.map +1 -1
  15. package/dist/cjs/components/button-stateful/index.cjs +1 -1
  16. package/dist/cjs/components/button-stateful/index.cjs.map +1 -1
  17. package/dist/cjs/components/card/filter.cjs.map +1 -1
  18. package/dist/cjs/components/card/index.cjs +1 -1
  19. package/dist/cjs/components/card/index.cjs.map +1 -1
  20. package/dist/cjs/components/carousel/index.cjs +1 -1
  21. package/dist/cjs/components/carousel/index.cjs.map +1 -1
  22. package/dist/cjs/components/checkbox/check-props.cjs +1 -1
  23. package/dist/cjs/components/checkbox/check-props.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/check-props.cjs +1 -1
  27. package/dist/cjs/components/color-picker/check-props.cjs.map +1 -1
  28. package/dist/cjs/components/color-picker/color-picker.cjs +1 -1
  29. package/dist/cjs/components/color-picker/color-picker.cjs.map +1 -1
  30. package/dist/cjs/components/color-picker/private/custom-color-form.cjs +1 -1
  31. package/dist/cjs/components/color-picker/private/custom-color-form.cjs.map +1 -1
  32. package/dist/cjs/components/color-picker/private/custom-color.cjs.map +1 -1
  33. package/dist/cjs/components/color-picker/private/hsv-color.cjs.map +1 -1
  34. package/dist/cjs/components/color-picker/private/swatch-option.cjs.map +1 -1
  35. package/dist/cjs/components/color-picker/private/swatch-picker.cjs +1 -1
  36. package/dist/cjs/components/color-picker/private/swatch-picker.cjs.map +1 -1
  37. package/dist/cjs/components/color-picker/private/swatch.cjs.map +1 -1
  38. package/dist/cjs/components/combobox/check-props.cjs +1 -1
  39. package/dist/cjs/components/combobox/check-props.cjs.map +1 -1
  40. package/dist/cjs/components/combobox/combobox.cjs +1 -1
  41. package/dist/cjs/components/combobox/combobox.cjs.map +1 -1
  42. package/dist/cjs/components/combobox/component.cjs +1 -1
  43. package/dist/cjs/components/combobox/component.cjs.map +1 -1
  44. package/dist/cjs/components/combobox/private/menu.cjs +1 -1
  45. package/dist/cjs/components/combobox/private/menu.cjs.map +1 -1
  46. package/dist/cjs/components/date-picker/check-props.cjs +1 -1
  47. package/dist/cjs/components/date-picker/check-props.cjs.map +1 -1
  48. package/dist/cjs/components/date-picker/date-picker.cjs +1 -1
  49. package/dist/cjs/components/date-picker/date-picker.cjs.map +1 -1
  50. package/dist/cjs/components/date-picker/index.cjs.map +1 -1
  51. package/dist/cjs/components/date-picker/private/calendar-wrapper.cjs +1 -1
  52. package/dist/cjs/components/date-picker/private/calendar-wrapper.cjs.map +1 -1
  53. package/dist/cjs/components/date-picker/private/calendar.cjs.map +1 -1
  54. package/dist/cjs/components/date-picker/private/day.cjs +1 -1
  55. package/dist/cjs/components/date-picker/private/day.cjs.map +1 -1
  56. package/dist/cjs/components/date-picker/private/week.cjs.map +1 -1
  57. package/dist/cjs/components/docked-composer/index.cjs +1 -1
  58. package/dist/cjs/components/docked-composer/index.cjs.map +1 -1
  59. package/dist/cjs/components/dynamic-icon/index.cjs +1 -1
  60. package/dist/cjs/components/dynamic-icon/index.cjs.map +1 -1
  61. package/dist/cjs/components/expandable-section/index.cjs +1 -1
  62. package/dist/cjs/components/expandable-section/index.cjs.map +1 -1
  63. package/dist/cjs/components/files/file.cjs +1 -1
  64. package/dist/cjs/components/files/file.cjs.map +1 -1
  65. package/dist/cjs/components/files/private/file-actions.cjs +1 -1
  66. package/dist/cjs/components/filter/filter.cjs +1 -1
  67. package/dist/cjs/components/filter/filter.cjs.map +1 -1
  68. package/dist/cjs/components/filter/private/error-id-context.cjs +2 -0
  69. package/dist/cjs/components/filter/private/error-id-context.cjs.map +1 -0
  70. package/dist/cjs/components/grid/index.cjs +1 -1
  71. package/dist/cjs/components/grid/index.cjs.map +1 -1
  72. package/dist/cjs/components/icon/button-icon/index.cjs +1 -1
  73. package/dist/cjs/components/icon/button-icon/index.cjs.map +1 -1
  74. package/dist/cjs/components/icon/check-props.cjs +2 -0
  75. package/dist/cjs/components/icon/check-props.cjs.map +1 -0
  76. package/dist/cjs/components/icon/component.cjs +2 -0
  77. package/dist/cjs/components/icon/component.cjs.map +1 -0
  78. package/dist/cjs/components/icon/index.cjs +1 -1
  79. package/dist/cjs/components/icon/index.cjs.map +1 -1
  80. package/dist/cjs/components/icon/input-icon/index.cjs +1 -1
  81. package/dist/cjs/components/icon/input-icon/index.cjs.map +1 -1
  82. package/dist/cjs/components/index.cjs +1 -1
  83. package/dist/cjs/components/input/check-props.cjs +1 -1
  84. package/dist/cjs/components/input/check-props.cjs.map +1 -1
  85. package/dist/cjs/components/input/index.cjs +1 -1
  86. package/dist/cjs/components/input/index.cjs.map +1 -1
  87. package/dist/cjs/components/input/private/inner-input.cjs +1 -1
  88. package/dist/cjs/components/input/private/inner-input.cjs.map +1 -1
  89. package/dist/cjs/components/input/search.cjs +1 -1
  90. package/dist/cjs/components/input/search.cjs.map +1 -1
  91. package/dist/cjs/components/menu-dropdown/button-trigger.cjs +1 -1
  92. package/dist/cjs/components/menu-dropdown/button-trigger.cjs.map +1 -1
  93. package/dist/cjs/components/menu-dropdown/check-props.cjs +1 -1
  94. package/dist/cjs/components/menu-dropdown/check-props.cjs.map +1 -1
  95. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs +1 -1
  96. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs.map +1 -1
  97. package/dist/cjs/components/modal/index.cjs +1 -1
  98. package/dist/cjs/components/page-header/check-props.cjs +1 -1
  99. package/dist/cjs/components/page-header/check-props.cjs.map +1 -1
  100. package/dist/cjs/components/page-header/control.cjs.map +1 -1
  101. package/dist/cjs/components/page-header/index.cjs +1 -1
  102. package/dist/cjs/components/page-header/index.cjs.map +1 -1
  103. package/dist/cjs/components/page-header/private/base/index.cjs +1 -1
  104. package/dist/cjs/components/page-header/private/base/index.cjs.map +1 -1
  105. package/dist/cjs/components/page-header/private/controls.cjs +1 -1
  106. package/dist/cjs/components/page-header/private/controls.cjs.map +1 -1
  107. package/dist/cjs/components/page-header/private/detail-block.cjs.map +1 -1
  108. package/dist/cjs/components/page-header/private/detail-row.cjs +1 -1
  109. package/dist/cjs/components/page-header/private/detail-row.cjs.map +1 -1
  110. package/dist/cjs/components/page-header/private/object-home/index.cjs +1 -1
  111. package/dist/cjs/components/page-header/private/object-home/index.cjs.map +1 -1
  112. package/dist/cjs/components/page-header/private/record-home/index.cjs +1 -1
  113. package/dist/cjs/components/page-header/private/record-home/index.cjs.map +1 -1
  114. package/dist/cjs/components/page-header/private/related-list/index.cjs +1 -1
  115. package/dist/cjs/components/page-header/private/related-list/index.cjs.map +1 -1
  116. package/dist/cjs/components/page-header/private/title.cjs +1 -1
  117. package/dist/cjs/components/page-header/private/title.cjs.map +1 -1
  118. package/dist/cjs/components/panel/filtering/check-props.cjs +1 -1
  119. package/dist/cjs/components/panel/filtering/check-props.cjs.map +1 -1
  120. package/dist/cjs/components/panel/filtering/group.cjs +1 -1
  121. package/dist/cjs/components/panel/filtering/group.cjs.map +1 -1
  122. package/dist/cjs/components/panel/filtering/list.cjs +1 -1
  123. package/dist/cjs/components/panel/filtering/list.cjs.map +1 -1
  124. package/dist/cjs/components/pill/index.cjs +1 -1
  125. package/dist/cjs/components/pill/index.cjs.map +1 -1
  126. package/dist/cjs/components/pill-container/index.cjs +1 -1
  127. package/dist/cjs/components/pill-container/index.cjs.map +1 -1
  128. package/dist/cjs/components/pill-container/private/selected-listbox.cjs.map +1 -1
  129. package/dist/cjs/components/popover/edit-dialog.cjs +1 -1
  130. package/dist/cjs/components/popover/edit-dialog.cjs.map +1 -1
  131. package/dist/cjs/components/popover/popover.cjs +1 -1
  132. package/dist/cjs/components/popover/popover.cjs.map +1 -1
  133. package/dist/cjs/components/progress-indicator/check-props.cjs +1 -1
  134. package/dist/cjs/components/progress-indicator/check-props.cjs.map +1 -1
  135. package/dist/cjs/components/progress-indicator/index.cjs +1 -1
  136. package/dist/cjs/components/progress-indicator/index.cjs.map +1 -1
  137. package/dist/cjs/components/progress-indicator/private/step-vertical.cjs +1 -1
  138. package/dist/cjs/components/progress-indicator/private/step-vertical.cjs.map +1 -1
  139. package/dist/cjs/components/progress-indicator/private/step.cjs +1 -1
  140. package/dist/cjs/components/progress-indicator/private/step.cjs.map +1 -1
  141. package/dist/cjs/components/progress-ring/index.cjs.map +1 -1
  142. package/dist/cjs/components/radio/check-props.cjs +1 -1
  143. package/dist/cjs/components/radio/check-props.cjs.map +1 -1
  144. package/dist/cjs/components/radio/index.cjs +1 -1
  145. package/dist/cjs/components/radio/index.cjs.map +1 -1
  146. package/dist/cjs/components/radio-button-group/radio.cjs.map +1 -1
  147. package/dist/cjs/components/radio-group/index.cjs.map +1 -1
  148. package/dist/cjs/components/scoped-notification/check-props.cjs +2 -0
  149. package/dist/cjs/components/scoped-notification/check-props.cjs.map +1 -0
  150. package/dist/cjs/components/scoped-notification/component.cjs +2 -0
  151. package/dist/cjs/components/scoped-notification/component.cjs.map +1 -0
  152. package/dist/cjs/components/scoped-notification/index.cjs +1 -1
  153. package/dist/cjs/components/scoped-notification/index.cjs.map +1 -1
  154. package/dist/cjs/components/setup-assistant/index.cjs.map +1 -1
  155. package/dist/cjs/components/setup-assistant/step.cjs +1 -1
  156. package/dist/cjs/components/simple-data-table/cell.cjs +1 -1
  157. package/dist/cjs/components/simple-data-table/cell.cjs.map +1 -1
  158. package/dist/cjs/components/simple-data-table/check-props.cjs +1 -1
  159. package/dist/cjs/components/simple-data-table/check-props.cjs.map +1 -1
  160. package/dist/cjs/components/simple-data-table/column-check-props.cjs +1 -1
  161. package/dist/cjs/components/simple-data-table/column-check-props.cjs.map +1 -1
  162. package/dist/cjs/components/simple-data-table/column.cjs.map +1 -1
  163. package/dist/cjs/components/simple-data-table/index.cjs +1 -1
  164. package/dist/cjs/components/simple-data-table/index.cjs.map +1 -1
  165. package/dist/cjs/components/simple-data-table/interactive-element.cjs +1 -1
  166. package/dist/cjs/components/simple-data-table/interactive-element.cjs.map +1 -1
  167. package/dist/cjs/components/simple-data-table/private/head.cjs.map +1 -1
  168. package/dist/cjs/components/simple-data-table/private/header-cell.cjs +1 -1
  169. package/dist/cjs/components/simple-data-table/private/header-cell.cjs.map +1 -1
  170. package/dist/cjs/components/simple-data-table/private/link.cjs +1 -1
  171. package/dist/cjs/components/simple-data-table/private/link.cjs.map +1 -1
  172. package/dist/cjs/components/simple-data-table/private/row.cjs +1 -1
  173. package/dist/cjs/components/simple-data-table/private/row.cjs.map +1 -1
  174. package/dist/cjs/components/simple-data-table/private/table-context.cjs +1 -1
  175. package/dist/cjs/components/simple-data-table/private/table-context.cjs.map +1 -1
  176. package/dist/cjs/components/simple-data-table/row-actions.cjs +1 -1
  177. package/dist/cjs/components/simple-data-table/row-actions.cjs.map +1 -1
  178. package/dist/cjs/components/spinner/check-props.cjs +1 -1
  179. package/dist/cjs/components/spinner/check-props.cjs.map +1 -1
  180. package/dist/cjs/components/spinner/index.cjs +1 -1
  181. package/dist/cjs/components/spinner/index.cjs.map +1 -1
  182. package/dist/cjs/components/split-view/header.cjs.map +1 -1
  183. package/dist/cjs/components/split-view/listbox.cjs +1 -1
  184. package/dist/cjs/components/tabs/index.cjs +1 -1
  185. package/dist/cjs/components/textarea/index.cjs.map +1 -1
  186. package/dist/cjs/components/toast/index.cjs +1 -1
  187. package/dist/cjs/components/toast/index.cjs.map +1 -1
  188. package/dist/cjs/components/tooltip/check-props.cjs +1 -1
  189. package/dist/cjs/components/tooltip/index.cjs +2 -2
  190. package/dist/cjs/components/tooltip/index.cjs.map +1 -1
  191. package/dist/cjs/components/tooltip/private/field-level-help-tooltip.cjs +1 -1
  192. package/dist/cjs/components/tooltip/private/field-level-help-tooltip.cjs.map +1 -1
  193. package/dist/cjs/components/tree/check-props.cjs +1 -1
  194. package/dist/cjs/components/tree/private/branch.cjs +1 -1
  195. package/dist/cjs/components/tree/private/branch.cjs.map +1 -1
  196. package/dist/cjs/components/tree/private/item.cjs +1 -1
  197. package/dist/cjs/components/tree/private/render-branch.cjs +1 -1
  198. package/dist/cjs/components/tree/tree.cjs.map +1 -1
  199. package/dist/cjs/components/trial-bar/button.cjs +1 -1
  200. package/dist/cjs/components/trial-bar/button.cjs.map +1 -1
  201. package/dist/cjs/components/trial-bar/dropdown.cjs.map +1 -1
  202. package/dist/cjs/components/utilities/dialog/index.cjs +1 -1
  203. package/dist/cjs/components/utilities/menu-list/item.cjs +1 -1
  204. package/dist/cjs/components/utilities/pill/index.cjs +1 -1
  205. package/dist/cjs/components/vertical-navigation/index.cjs.map +1 -1
  206. package/dist/cjs/components/vertical-navigation/private/item.cjs +1 -1
  207. package/dist/cjs/components/vertical-navigation/private/item.cjs.map +1 -1
  208. package/dist/cjs/components/visual-picker/check-props.cjs +2 -0
  209. package/dist/cjs/components/visual-picker/check-props.cjs.map +1 -0
  210. package/dist/cjs/components/visual-picker/index.cjs +1 -1
  211. package/dist/cjs/components/visual-picker/index.cjs.map +1 -1
  212. package/dist/cjs/components/visual-picker/link.cjs +1 -1
  213. package/dist/cjs/components/visual-picker/link.cjs.map +1 -1
  214. package/dist/cjs/components/welcome-mat/info-badge.cjs +1 -1
  215. package/dist/cjs/components/welcome-mat/info-badge.cjs.map +1 -1
  216. package/dist/cjs/components/welcome-mat/tile.cjs +1 -1
  217. package/dist/cjs/utilities/constants.cjs +1 -1
  218. package/dist/cjs/utilities/constants.cjs.map +1 -1
  219. package/dist/cjs/utilities/dom-element-focus.cjs +1 -1
  220. package/dist/cjs/utilities/hooks/index.cjs +1 -1
  221. package/dist/cjs/utilities/hooks/use-click-outside.cjs.map +1 -1
  222. package/dist/cjs/utilities/hooks/use-latest-ref.cjs +2 -0
  223. package/dist/cjs/utilities/hooks/use-latest-ref.cjs.map +1 -0
  224. package/dist/cjs/utilities/keyboard-navigable-dialog.cjs +1 -1
  225. package/dist/es/components/alert/index.js +17 -17
  226. package/dist/es/components/alert/index.js.map +1 -1
  227. package/dist/es/components/builder-header/index.js +5 -5
  228. package/dist/es/components/builder-header/nav-dropdown.js +5 -5
  229. package/dist/es/components/builder-header/nav-dropdown.js.map +1 -1
  230. package/dist/es/components/builder-header/nav-link.js +4 -4
  231. package/dist/es/components/button/check-props.js +14 -0
  232. package/dist/es/components/button/check-props.js.map +1 -0
  233. package/dist/es/components/button/component.js +31 -0
  234. package/dist/es/components/button/component.js.map +1 -0
  235. package/dist/es/components/button/index.js +86 -75
  236. package/dist/es/components/button/index.js.map +1 -1
  237. package/dist/es/components/button-group/index.js +2 -2
  238. package/dist/es/components/button-group/index.js.map +1 -1
  239. package/dist/es/components/button-stateful/index.js +95 -96
  240. package/dist/es/components/button-stateful/index.js.map +1 -1
  241. package/dist/es/components/card/filter.js.map +1 -1
  242. package/dist/es/components/card/index.js +39 -36
  243. package/dist/es/components/card/index.js.map +1 -1
  244. package/dist/es/components/carousel/index.js +126 -123
  245. package/dist/es/components/carousel/index.js.map +1 -1
  246. package/dist/es/components/checkbox/check-props.js +1 -1
  247. package/dist/es/components/checkbox/check-props.js.map +1 -1
  248. package/dist/es/components/checkbox/index.js +138 -137
  249. package/dist/es/components/checkbox/index.js.map +1 -1
  250. package/dist/es/components/color-picker/check-props.js +21 -13
  251. package/dist/es/components/color-picker/check-props.js.map +1 -1
  252. package/dist/es/components/color-picker/color-picker.js +164 -144
  253. package/dist/es/components/color-picker/color-picker.js.map +1 -1
  254. package/dist/es/components/color-picker/private/custom-color-form.js +4 -4
  255. package/dist/es/components/color-picker/private/custom-color-form.js.map +1 -1
  256. package/dist/es/components/color-picker/private/custom-color.js.map +1 -1
  257. package/dist/es/components/color-picker/private/hsv-color.js.map +1 -1
  258. package/dist/es/components/color-picker/private/swatch-option.js.map +1 -1
  259. package/dist/es/components/color-picker/private/swatch-picker.js +7 -7
  260. package/dist/es/components/color-picker/private/swatch-picker.js.map +1 -1
  261. package/dist/es/components/color-picker/private/swatch.js.map +1 -1
  262. package/dist/es/components/combobox/check-props.js +21 -14
  263. package/dist/es/components/combobox/check-props.js.map +1 -1
  264. package/dist/es/components/combobox/combobox.js +312 -331
  265. package/dist/es/components/combobox/combobox.js.map +1 -1
  266. package/dist/es/components/combobox/component.js +1 -1
  267. package/dist/es/components/combobox/component.js.map +1 -1
  268. package/dist/es/components/combobox/private/menu.js +7 -7
  269. package/dist/es/components/combobox/private/menu.js.map +1 -1
  270. package/dist/es/components/date-picker/check-props.js +1 -1
  271. package/dist/es/components/date-picker/check-props.js.map +1 -1
  272. package/dist/es/components/date-picker/date-picker.js +174 -178
  273. package/dist/es/components/date-picker/date-picker.js.map +1 -1
  274. package/dist/es/components/date-picker/index.js.map +1 -1
  275. package/dist/es/components/date-picker/private/calendar-wrapper.js +6 -6
  276. package/dist/es/components/date-picker/private/calendar-wrapper.js.map +1 -1
  277. package/dist/es/components/date-picker/private/calendar.js.map +1 -1
  278. package/dist/es/components/date-picker/private/day.js +11 -11
  279. package/dist/es/components/date-picker/private/day.js.map +1 -1
  280. package/dist/es/components/date-picker/private/week.js.map +1 -1
  281. package/dist/es/components/docked-composer/index.js +71 -43
  282. package/dist/es/components/docked-composer/index.js.map +1 -1
  283. package/dist/es/components/dynamic-icon/index.js +21 -16
  284. package/dist/es/components/dynamic-icon/index.js.map +1 -1
  285. package/dist/es/components/expandable-section/index.js +18 -18
  286. package/dist/es/components/expandable-section/index.js.map +1 -1
  287. package/dist/es/components/files/file.js +3 -3
  288. package/dist/es/components/files/file.js.map +1 -1
  289. package/dist/es/components/files/private/file-actions.js +4 -4
  290. package/dist/es/components/filter/filter.js +72 -70
  291. package/dist/es/components/filter/filter.js.map +1 -1
  292. package/dist/es/components/filter/private/error-id-context.js +7 -0
  293. package/dist/es/components/filter/private/error-id-context.js.map +1 -0
  294. package/dist/es/components/grid/index.js +1 -1
  295. package/dist/es/components/grid/index.js.map +1 -1
  296. package/dist/es/components/icon/button-icon/index.js +2 -3
  297. package/dist/es/components/icon/button-icon/index.js.map +1 -1
  298. package/dist/es/components/icon/check-props.js +15 -0
  299. package/dist/es/components/icon/check-props.js.map +1 -0
  300. package/dist/es/components/icon/component.js +31 -0
  301. package/dist/es/components/icon/component.js.map +1 -0
  302. package/dist/es/components/icon/index.js +42 -44
  303. package/dist/es/components/icon/index.js.map +1 -1
  304. package/dist/es/components/icon/input-icon/index.js +8 -8
  305. package/dist/es/components/icon/input-icon/index.js.map +1 -1
  306. package/dist/es/components/index.js +75 -76
  307. package/dist/es/components/input/check-props.js +13 -18
  308. package/dist/es/components/input/check-props.js.map +1 -1
  309. package/dist/es/components/input/index.js +1 -4
  310. package/dist/es/components/input/index.js.map +1 -1
  311. package/dist/es/components/input/private/inner-input.js +1 -1
  312. package/dist/es/components/input/private/inner-input.js.map +1 -1
  313. package/dist/es/components/input/search.js +3 -3
  314. package/dist/es/components/input/search.js.map +1 -1
  315. package/dist/es/components/menu-dropdown/button-trigger.js +29 -30
  316. package/dist/es/components/menu-dropdown/button-trigger.js.map +1 -1
  317. package/dist/es/components/menu-dropdown/check-props.js +6 -6
  318. package/dist/es/components/menu-dropdown/check-props.js.map +1 -1
  319. package/dist/es/components/menu-dropdown/menu-dropdown.js +223 -226
  320. package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
  321. package/dist/es/components/modal/index.js +5 -5
  322. package/dist/es/components/page-header/check-props.js +2 -2
  323. package/dist/es/components/page-header/check-props.js.map +1 -1
  324. package/dist/es/components/page-header/control.js.map +1 -1
  325. package/dist/es/components/page-header/index.js +33 -33
  326. package/dist/es/components/page-header/index.js.map +1 -1
  327. package/dist/es/components/page-header/private/base/index.js +24 -36
  328. package/dist/es/components/page-header/private/base/index.js.map +1 -1
  329. package/dist/es/components/page-header/private/controls.js +10 -16
  330. package/dist/es/components/page-header/private/controls.js.map +1 -1
  331. package/dist/es/components/page-header/private/detail-block.js.map +1 -1
  332. package/dist/es/components/page-header/private/detail-row.js +1 -1
  333. package/dist/es/components/page-header/private/detail-row.js.map +1 -1
  334. package/dist/es/components/page-header/private/object-home/index.js +37 -50
  335. package/dist/es/components/page-header/private/object-home/index.js.map +1 -1
  336. package/dist/es/components/page-header/private/record-home/index.js +26 -38
  337. package/dist/es/components/page-header/private/record-home/index.js.map +1 -1
  338. package/dist/es/components/page-header/private/related-list/index.js +0 -2
  339. package/dist/es/components/page-header/private/related-list/index.js.map +1 -1
  340. package/dist/es/components/page-header/private/title.js +5 -4
  341. package/dist/es/components/page-header/private/title.js.map +1 -1
  342. package/dist/es/components/panel/filtering/check-props.js +2 -2
  343. package/dist/es/components/panel/filtering/check-props.js.map +1 -1
  344. package/dist/es/components/panel/filtering/group.js +5 -6
  345. package/dist/es/components/panel/filtering/group.js.map +1 -1
  346. package/dist/es/components/panel/filtering/list.js +18 -14
  347. package/dist/es/components/panel/filtering/list.js.map +1 -1
  348. package/dist/es/components/pill/index.js +8 -8
  349. package/dist/es/components/pill/index.js.map +1 -1
  350. package/dist/es/components/pill-container/index.js +1 -1
  351. package/dist/es/components/pill-container/index.js.map +1 -1
  352. package/dist/es/components/pill-container/private/selected-listbox.js.map +1 -1
  353. package/dist/es/components/popover/edit-dialog.js +9 -6
  354. package/dist/es/components/popover/edit-dialog.js.map +1 -1
  355. package/dist/es/components/popover/popover.js +217 -200
  356. package/dist/es/components/popover/popover.js.map +1 -1
  357. package/dist/es/components/progress-indicator/check-props.js +8 -7
  358. package/dist/es/components/progress-indicator/check-props.js.map +1 -1
  359. package/dist/es/components/progress-indicator/index.js +73 -60
  360. package/dist/es/components/progress-indicator/index.js.map +1 -1
  361. package/dist/es/components/progress-indicator/private/step-vertical.js +2 -2
  362. package/dist/es/components/progress-indicator/private/step-vertical.js.map +1 -1
  363. package/dist/es/components/progress-indicator/private/step.js +1 -1
  364. package/dist/es/components/progress-indicator/private/step.js.map +1 -1
  365. package/dist/es/components/progress-ring/index.js.map +1 -1
  366. package/dist/es/components/radio/check-props.js +2 -2
  367. package/dist/es/components/radio/check-props.js.map +1 -1
  368. package/dist/es/components/radio/index.js +31 -26
  369. package/dist/es/components/radio/index.js.map +1 -1
  370. package/dist/es/components/radio-button-group/radio.js.map +1 -1
  371. package/dist/es/components/radio-group/index.js.map +1 -1
  372. package/dist/es/components/scoped-notification/check-props.js +13 -0
  373. package/dist/es/components/scoped-notification/check-props.js.map +1 -0
  374. package/dist/es/components/scoped-notification/component.js +31 -0
  375. package/dist/es/components/scoped-notification/component.js.map +1 -0
  376. package/dist/es/components/scoped-notification/index.js +30 -25
  377. package/dist/es/components/scoped-notification/index.js.map +1 -1
  378. package/dist/es/components/setup-assistant/index.js.map +1 -1
  379. package/dist/es/components/setup-assistant/step.js +8 -8
  380. package/dist/es/components/simple-data-table/cell.js +2 -2
  381. package/dist/es/components/simple-data-table/cell.js.map +1 -1
  382. package/dist/es/components/simple-data-table/check-props.js +1 -1
  383. package/dist/es/components/simple-data-table/check-props.js.map +1 -1
  384. package/dist/es/components/simple-data-table/column-check-props.js +16 -8
  385. package/dist/es/components/simple-data-table/column-check-props.js.map +1 -1
  386. package/dist/es/components/simple-data-table/column.js.map +1 -1
  387. package/dist/es/components/simple-data-table/index.js +56 -52
  388. package/dist/es/components/simple-data-table/index.js.map +1 -1
  389. package/dist/es/components/simple-data-table/interactive-element.js +17 -8
  390. package/dist/es/components/simple-data-table/interactive-element.js.map +1 -1
  391. package/dist/es/components/simple-data-table/private/head.js.map +1 -1
  392. package/dist/es/components/simple-data-table/private/header-cell.js +3 -3
  393. package/dist/es/components/simple-data-table/private/header-cell.js.map +1 -1
  394. package/dist/es/components/simple-data-table/private/link.js +13 -14
  395. package/dist/es/components/simple-data-table/private/link.js.map +1 -1
  396. package/dist/es/components/simple-data-table/private/row.js +2 -1
  397. package/dist/es/components/simple-data-table/private/row.js.map +1 -1
  398. package/dist/es/components/simple-data-table/private/table-context.js +1 -0
  399. package/dist/es/components/simple-data-table/private/table-context.js.map +1 -1
  400. package/dist/es/components/simple-data-table/row-actions.js +5 -2
  401. package/dist/es/components/simple-data-table/row-actions.js.map +1 -1
  402. package/dist/es/components/spinner/check-props.js +1 -1
  403. package/dist/es/components/spinner/check-props.js.map +1 -1
  404. package/dist/es/components/spinner/index.js +31 -28
  405. package/dist/es/components/spinner/index.js.map +1 -1
  406. package/dist/es/components/split-view/header.js.map +1 -1
  407. package/dist/es/components/split-view/listbox.js +8 -8
  408. package/dist/es/components/tabs/index.js +3 -3
  409. package/dist/es/components/textarea/index.js.map +1 -1
  410. package/dist/es/components/toast/index.js +58 -58
  411. package/dist/es/components/toast/index.js.map +1 -1
  412. package/dist/es/components/tooltip/check-props.js +4 -4
  413. package/dist/es/components/tooltip/index.js +95 -91
  414. package/dist/es/components/tooltip/index.js.map +1 -1
  415. package/dist/es/components/tooltip/private/field-level-help-tooltip.js +10 -15
  416. package/dist/es/components/tooltip/private/field-level-help-tooltip.js.map +1 -1
  417. package/dist/es/components/tree/check-props.js +5 -5
  418. package/dist/es/components/tree/private/branch.js +56 -57
  419. package/dist/es/components/tree/private/branch.js.map +1 -1
  420. package/dist/es/components/tree/private/item.js +13 -13
  421. package/dist/es/components/tree/private/render-branch.js +35 -35
  422. package/dist/es/components/tree/tree.js.map +1 -1
  423. package/dist/es/components/trial-bar/button.js +9 -7
  424. package/dist/es/components/trial-bar/button.js.map +1 -1
  425. package/dist/es/components/trial-bar/dropdown.js.map +1 -1
  426. package/dist/es/components/utilities/dialog/index.js +8 -8
  427. package/dist/es/components/utilities/menu-list/item.js +9 -9
  428. package/dist/es/components/utilities/pill/index.js +14 -14
  429. package/dist/es/components/vertical-navigation/index.js.map +1 -1
  430. package/dist/es/components/vertical-navigation/private/item.js +25 -20
  431. package/dist/es/components/vertical-navigation/private/item.js.map +1 -1
  432. package/dist/es/components/visual-picker/check-props.js +11 -0
  433. package/dist/es/components/visual-picker/check-props.js.map +1 -0
  434. package/dist/es/components/visual-picker/index.js +15 -15
  435. package/dist/es/components/visual-picker/index.js.map +1 -1
  436. package/dist/es/components/visual-picker/link.js +15 -11
  437. package/dist/es/components/visual-picker/link.js.map +1 -1
  438. package/dist/es/components/welcome-mat/info-badge.js +6 -6
  439. package/dist/es/components/welcome-mat/info-badge.js.map +1 -1
  440. package/dist/es/components/welcome-mat/tile.js +7 -7
  441. package/dist/es/utilities/constants.js +2 -2
  442. package/dist/es/utilities/constants.js.map +1 -1
  443. package/dist/es/utilities/dom-element-focus.js +4 -4
  444. package/dist/es/utilities/hooks/index.js +4 -3
  445. package/dist/es/utilities/hooks/use-click-outside.js.map +1 -1
  446. package/dist/es/utilities/hooks/use-latest-ref.js +12 -0
  447. package/dist/es/utilities/hooks/use-latest-ref.js.map +1 -0
  448. package/dist/es/utilities/keyboard-navigable-dialog.js +5 -5
  449. package/dist/types/components/alert/index.d.ts +2 -2
  450. package/dist/types/components/alert/index.d.ts.map +1 -1
  451. package/dist/types/components/builder-header/nav-dropdown.d.ts +4 -2
  452. package/dist/types/components/builder-header/nav-dropdown.d.ts.map +1 -1
  453. package/dist/types/components/button/check-props.d.ts +1 -0
  454. package/dist/types/components/button/check-props.d.ts.map +1 -1
  455. package/dist/types/components/button/index.d.ts +36 -21
  456. package/dist/types/components/button/index.d.ts.map +1 -1
  457. package/dist/types/components/button-group/index.d.ts +5 -5
  458. package/dist/types/components/button-group/index.d.ts.map +1 -1
  459. package/dist/types/components/button-stateful/index.d.ts +6 -4
  460. package/dist/types/components/button-stateful/index.d.ts.map +1 -1
  461. package/dist/types/components/card/filter.d.ts +2 -2
  462. package/dist/types/components/card/filter.d.ts.map +1 -1
  463. package/dist/types/components/card/index.d.ts +10 -4
  464. package/dist/types/components/card/index.d.ts.map +1 -1
  465. package/dist/types/components/carousel/index.d.ts +2 -2
  466. package/dist/types/components/carousel/index.d.ts.map +1 -1
  467. package/dist/types/components/checkbox/check-props.d.ts.map +1 -1
  468. package/dist/types/components/checkbox/index.d.ts +88 -24
  469. package/dist/types/components/checkbox/index.d.ts.map +1 -1
  470. package/dist/types/components/color-picker/check-props.d.ts.map +1 -1
  471. package/dist/types/components/color-picker/color-picker.d.ts +16 -20
  472. package/dist/types/components/color-picker/color-picker.d.ts.map +1 -1
  473. package/dist/types/components/color-picker/index.d.ts +1 -1
  474. package/dist/types/components/color-picker/index.d.ts.map +1 -1
  475. package/dist/types/components/color-picker/private/custom-color.d.ts.map +1 -1
  476. package/dist/types/components/color-picker/private/hsv-color.d.ts.map +1 -1
  477. package/dist/types/components/color-picker/private/swatch-option.d.ts.map +1 -1
  478. package/dist/types/components/color-picker/private/swatch-picker.d.ts.map +1 -1
  479. package/dist/types/components/color-picker/types.d.ts +29 -7
  480. package/dist/types/components/color-picker/types.d.ts.map +1 -1
  481. package/dist/types/components/combobox/check-props.d.ts.map +1 -1
  482. package/dist/types/components/combobox/combobox.d.ts +9 -5
  483. package/dist/types/components/combobox/combobox.d.ts.map +1 -1
  484. package/dist/types/components/combobox/private/menu.d.ts +10 -2
  485. package/dist/types/components/combobox/private/menu.d.ts.map +1 -1
  486. package/dist/types/components/date-picker/check-props.d.ts.map +1 -1
  487. package/dist/types/components/date-picker/date-picker.d.ts +9 -12
  488. package/dist/types/components/date-picker/date-picker.d.ts.map +1 -1
  489. package/dist/types/components/date-picker/index.d.ts +1 -1
  490. package/dist/types/components/date-picker/index.d.ts.map +1 -1
  491. package/dist/types/components/date-picker/private/calendar-wrapper.d.ts +4 -3
  492. package/dist/types/components/date-picker/private/calendar-wrapper.d.ts.map +1 -1
  493. package/dist/types/components/date-picker/private/calendar.d.ts +2 -1
  494. package/dist/types/components/date-picker/private/calendar.d.ts.map +1 -1
  495. package/dist/types/components/date-picker/private/day.d.ts +2 -1
  496. package/dist/types/components/date-picker/private/day.d.ts.map +1 -1
  497. package/dist/types/components/date-picker/private/week.d.ts +2 -1
  498. package/dist/types/components/date-picker/private/week.d.ts.map +1 -1
  499. package/dist/types/components/docked-composer/index.d.ts +8 -2
  500. package/dist/types/components/docked-composer/index.d.ts.map +1 -1
  501. package/dist/types/components/dynamic-icon/index.d.ts +42 -14
  502. package/dist/types/components/dynamic-icon/index.d.ts.map +1 -1
  503. package/dist/types/components/expandable-section/index.d.ts +33 -10
  504. package/dist/types/components/expandable-section/index.d.ts.map +1 -1
  505. package/dist/types/components/files/file.d.ts +6 -5
  506. package/dist/types/components/files/file.d.ts.map +1 -1
  507. package/dist/types/components/filter/filter.d.ts +4 -1
  508. package/dist/types/components/filter/filter.d.ts.map +1 -1
  509. package/dist/types/components/filter/private/error-id-context.d.ts +7 -0
  510. package/dist/types/components/filter/private/error-id-context.d.ts.map +1 -0
  511. package/dist/types/components/grid/index.d.ts +5 -3
  512. package/dist/types/components/grid/index.d.ts.map +1 -1
  513. package/dist/types/components/icon/button-icon/index.d.ts +2 -3
  514. package/dist/types/components/icon/button-icon/index.d.ts.map +1 -1
  515. package/dist/types/components/icon/index.d.ts +1 -1
  516. package/dist/types/components/icon/index.d.ts.map +1 -1
  517. package/dist/types/components/icon/input-icon/index.d.ts +26 -9
  518. package/dist/types/components/icon/input-icon/index.d.ts.map +1 -1
  519. package/dist/types/components/index.d.ts +0 -2
  520. package/dist/types/components/index.d.ts.map +1 -1
  521. package/dist/types/components/input/check-props.d.ts.map +1 -1
  522. package/dist/types/components/input/index.d.ts +54 -24
  523. package/dist/types/components/input/index.d.ts.map +1 -1
  524. package/dist/types/components/input/search.d.ts +2 -2
  525. package/dist/types/components/input/search.d.ts.map +1 -1
  526. package/dist/types/components/menu-dropdown/button-trigger.d.ts +1 -5
  527. package/dist/types/components/menu-dropdown/button-trigger.d.ts.map +1 -1
  528. package/dist/types/components/menu-dropdown/check-props.d.ts.map +1 -1
  529. package/dist/types/components/menu-dropdown/menu-dropdown.d.ts +31 -15
  530. package/dist/types/components/menu-dropdown/menu-dropdown.d.ts.map +1 -1
  531. package/dist/types/components/page-header/check-props.d.ts.map +1 -1
  532. package/dist/types/components/page-header/control.d.ts.map +1 -1
  533. package/dist/types/components/page-header/index.d.ts +79 -21
  534. package/dist/types/components/page-header/index.d.ts.map +1 -1
  535. package/dist/types/components/page-header/private/base/index.d.ts.map +1 -1
  536. package/dist/types/components/page-header/private/controls.d.ts +0 -8
  537. package/dist/types/components/page-header/private/controls.d.ts.map +1 -1
  538. package/dist/types/components/page-header/private/detail-block.d.ts +1 -1
  539. package/dist/types/components/page-header/private/detail-block.d.ts.map +1 -1
  540. package/dist/types/components/page-header/private/detail-row.d.ts +3 -1
  541. package/dist/types/components/page-header/private/detail-row.d.ts.map +1 -1
  542. package/dist/types/components/page-header/private/object-home/index.d.ts.map +1 -1
  543. package/dist/types/components/page-header/private/record-home/index.d.ts.map +1 -1
  544. package/dist/types/components/page-header/private/related-list/index.d.ts.map +1 -1
  545. package/dist/types/components/page-header/private/title.d.ts.map +1 -1
  546. package/dist/types/components/page-header/private/types.d.ts +0 -16
  547. package/dist/types/components/page-header/private/types.d.ts.map +1 -1
  548. package/dist/types/components/panel/filtering/group.d.ts +43 -21
  549. package/dist/types/components/panel/filtering/group.d.ts.map +1 -1
  550. package/dist/types/components/panel/filtering/list.d.ts.map +1 -1
  551. package/dist/types/components/pill/index.d.ts +45 -16
  552. package/dist/types/components/pill/index.d.ts.map +1 -1
  553. package/dist/types/components/pill-container/index.d.ts +6 -6
  554. package/dist/types/components/pill-container/index.d.ts.map +1 -1
  555. package/dist/types/components/pill-container/private/selected-listbox.d.ts +6 -5
  556. package/dist/types/components/pill-container/private/selected-listbox.d.ts.map +1 -1
  557. package/dist/types/components/popover/edit-dialog.d.ts +14 -8
  558. package/dist/types/components/popover/edit-dialog.d.ts.map +1 -1
  559. package/dist/types/components/popover/popover.d.ts +34 -15
  560. package/dist/types/components/popover/popover.d.ts.map +1 -1
  561. package/dist/types/components/progress-indicator/check-props.d.ts.map +1 -1
  562. package/dist/types/components/progress-indicator/index.d.ts +74 -29
  563. package/dist/types/components/progress-indicator/index.d.ts.map +1 -1
  564. package/dist/types/components/progress-ring/index.d.ts +19 -6
  565. package/dist/types/components/progress-ring/index.d.ts.map +1 -1
  566. package/dist/types/components/radio/check-props.d.ts.map +1 -1
  567. package/dist/types/components/radio/index.d.ts +44 -18
  568. package/dist/types/components/radio/index.d.ts.map +1 -1
  569. package/dist/types/components/radio-button-group/radio.d.ts +1 -3
  570. package/dist/types/components/radio-button-group/radio.d.ts.map +1 -1
  571. package/dist/types/components/radio-group/index.d.ts +15 -5
  572. package/dist/types/components/radio-group/index.d.ts.map +1 -1
  573. package/dist/types/components/radio-group/radio.d.ts +1 -3
  574. package/dist/types/components/radio-group/radio.d.ts.map +1 -1
  575. package/dist/types/components/scoped-notification/check-props.d.ts.map +1 -1
  576. package/dist/types/components/scoped-notification/index.d.ts +3 -3
  577. package/dist/types/components/scoped-notification/index.d.ts.map +1 -1
  578. package/dist/types/components/setup-assistant/index.d.ts +18 -4
  579. package/dist/types/components/setup-assistant/index.d.ts.map +1 -1
  580. package/dist/types/components/simple-data-table/check-props.d.ts.map +1 -1
  581. package/dist/types/components/simple-data-table/column-check-props.d.ts.map +1 -1
  582. package/dist/types/components/simple-data-table/column.d.ts +3 -55
  583. package/dist/types/components/simple-data-table/column.d.ts.map +1 -1
  584. package/dist/types/components/simple-data-table/index.d.ts +5 -3
  585. package/dist/types/components/simple-data-table/index.d.ts.map +1 -1
  586. package/dist/types/components/simple-data-table/interactive-element.d.ts +6 -2
  587. package/dist/types/components/simple-data-table/interactive-element.d.ts.map +1 -1
  588. package/dist/types/components/simple-data-table/private/head.d.ts +4 -15
  589. package/dist/types/components/simple-data-table/private/head.d.ts.map +1 -1
  590. package/dist/types/components/simple-data-table/private/header-cell.d.ts +2 -8
  591. package/dist/types/components/simple-data-table/private/header-cell.d.ts.map +1 -1
  592. package/dist/types/components/simple-data-table/private/link.d.ts +1 -3
  593. package/dist/types/components/simple-data-table/private/link.d.ts.map +1 -1
  594. package/dist/types/components/simple-data-table/private/row.d.ts +2 -19
  595. package/dist/types/components/simple-data-table/private/row.d.ts.map +1 -1
  596. package/dist/types/components/simple-data-table/private/table-context.d.ts +2 -0
  597. package/dist/types/components/simple-data-table/private/table-context.d.ts.map +1 -1
  598. package/dist/types/components/simple-data-table/types.d.ts +40 -38
  599. package/dist/types/components/simple-data-table/types.d.ts.map +1 -1
  600. package/dist/types/components/spinner/check-props.d.ts.map +1 -1
  601. package/dist/types/components/spinner/index.d.ts +32 -5
  602. package/dist/types/components/spinner/index.d.ts.map +1 -1
  603. package/dist/types/components/split-view/header.d.ts +2 -6
  604. package/dist/types/components/split-view/header.d.ts.map +1 -1
  605. package/dist/types/components/textarea/index.d.ts +3 -21
  606. package/dist/types/components/textarea/index.d.ts.map +1 -1
  607. package/dist/types/components/toast/index.d.ts +10 -5
  608. package/dist/types/components/toast/index.d.ts.map +1 -1
  609. package/dist/types/components/tooltip/index.d.ts +5 -0
  610. package/dist/types/components/tooltip/index.d.ts.map +1 -1
  611. package/dist/types/components/tooltip/private/field-level-help-tooltip.d.ts +1 -7
  612. package/dist/types/components/tooltip/private/field-level-help-tooltip.d.ts.map +1 -1
  613. package/dist/types/components/tree/index.d.ts +1 -1
  614. package/dist/types/components/tree/index.d.ts.map +1 -1
  615. package/dist/types/components/tree/tree.d.ts +61 -14
  616. package/dist/types/components/tree/tree.d.ts.map +1 -1
  617. package/dist/types/components/trial-bar/button.d.ts +1 -1
  618. package/dist/types/components/trial-bar/button.d.ts.map +1 -1
  619. package/dist/types/components/trial-bar/dropdown.d.ts +2 -2
  620. package/dist/types/components/trial-bar/dropdown.d.ts.map +1 -1
  621. package/dist/types/components/utilities/truncate/index.d.ts +2 -3
  622. package/dist/types/components/utilities/truncate/index.d.ts.map +1 -1
  623. package/dist/types/components/vertical-navigation/index.d.ts +4 -3
  624. package/dist/types/components/vertical-navigation/index.d.ts.map +1 -1
  625. package/dist/types/components/vertical-navigation/private/item.d.ts +1 -1
  626. package/dist/types/components/vertical-navigation/private/item.d.ts.map +1 -1
  627. package/dist/types/components/visual-picker/check-props.d.ts.map +1 -0
  628. package/dist/types/components/visual-picker/index.d.ts +28 -11
  629. package/dist/types/components/visual-picker/index.d.ts.map +1 -1
  630. package/dist/types/components/visual-picker/link.d.ts +3 -2
  631. package/dist/types/components/visual-picker/link.d.ts.map +1 -1
  632. package/dist/types/components/welcome-mat/info-badge.d.ts +2 -0
  633. package/dist/types/components/welcome-mat/info-badge.d.ts.map +1 -1
  634. package/dist/types/utilities/constants.d.ts +0 -1
  635. package/dist/types/utilities/constants.d.ts.map +1 -1
  636. package/dist/types/utilities/hooks/index.d.ts +1 -0
  637. package/dist/types/utilities/hooks/index.d.ts.map +1 -1
  638. package/dist/types/utilities/hooks/use-latest-ref.d.ts +21 -0
  639. package/dist/types/utilities/hooks/use-latest-ref.d.ts.map +1 -0
  640. package/package.json +1 -1
  641. package/dist/cjs/components/illustration/check-props.cjs +0 -2
  642. package/dist/cjs/components/illustration/check-props.cjs.map +0 -1
  643. package/dist/cjs/components/illustration/index.cjs +0 -2
  644. package/dist/cjs/components/illustration/index.cjs.map +0 -1
  645. package/dist/cjs/components/illustration.cjs +0 -1
  646. package/dist/cjs/utilities/object.cjs +0 -2
  647. package/dist/cjs/utilities/object.cjs.map +0 -1
  648. package/dist/cjs/utilities/warning/component-is-deprecated.cjs +0 -2
  649. package/dist/cjs/utilities/warning/component-is-deprecated.cjs.map +0 -1
  650. package/dist/es/components/illustration/check-props.js +0 -11
  651. package/dist/es/components/illustration/check-props.js.map +0 -1
  652. package/dist/es/components/illustration/index.js +0 -73
  653. package/dist/es/components/illustration/index.js.map +0 -1
  654. package/dist/es/components/illustration.js +0 -2
  655. package/dist/es/utilities/object.js +0 -10
  656. package/dist/es/utilities/object.js.map +0 -1
  657. package/dist/es/utilities/warning/component-is-deprecated.js +0 -15
  658. package/dist/es/utilities/warning/component-is-deprecated.js.map +0 -1
  659. package/dist/types/components/illustration/check-props.d.ts.map +0 -1
  660. package/dist/types/components/illustration/index.d.ts +0 -42
  661. package/dist/types/components/illustration/index.d.ts.map +0 -1
  662. package/dist/types/components/illustration.d.ts +0 -2
  663. /package/dist/types/components/{illustration → visual-picker}/check-props.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"filter.js","names":[],"sources":["../../../../components/filter/filter.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useState, useCallback, useMemo } from 'react';\nimport classNames from 'classnames';\n\nimport Button from '../button';\nimport Popover from '../popover';\n\nimport { FILTER } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\n\nimport {\n\tFilterAssistiveText,\n\tFilterChangeHandler,\n\tFilterRemoveHandler,\n} from './types';\n\nexport interface FilterProps {\n\t/** Aligns the popover with the respective side of the trigger */\n\talign?: 'left' | 'right';\n\t/** Assistive text for accessibility */\n\tassistiveText?: FilterAssistiveText;\n\t/** Contents of popover - dropdowns and inputs that set filter criteria */\n\tchildren?: React.ReactNode;\n\t/** Custom CSS classes for slds-filters__item node */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/**\n\t * Error message for a Filter inside a `PanelFilterList`. The list shows it below the\n\t * filter and sets `isError`. A standalone Filter doesn't render it.\n\t */\n\terrorLabel?: string;\n\t/** Applies error state styling */\n\tisError?: boolean;\n\t/** Unique ID for keyboard navigation and ARIA support */\n\tid?: string;\n\t/** If true, the filter will not display an editing popover when clicked */\n\tisLocked?: boolean;\n\t/** Applies new filter styling */\n\tisNew?: boolean;\n\t/** If true, the filter will not include a remove button */\n\tisPermanent?: boolean;\n\t/** Callback when Done within the Popover is clicked */\n\tonChange?: FilterChangeHandler;\n\t/** Callback when \"Remove Filter\" button is clicked */\n\tonRemove?: FilterRemoveHandler;\n\t/** Callback when Filter is clicked */\n\tonClick?: () => void;\n\t/** Custom Popover component with overridable props */\n\tpopover?: React.ReactElement;\n\t/** The filter predicate (e.g., \"is PURPLE\") */\n\tpredicate?: React.ReactNode;\n\t/** The filter property (e.g., \"Hair Color\") */\n\tproperty?: React.ReactNode;\n}\n\nconst defaultAssistiveText: FilterAssistiveText = {\n\teditFilter: 'Edit filter:',\n\teditFilterHeading: 'Choose filter criteria',\n};\n\n/**\n * A Filter is a popover with custom trigger. It can be used by Panel Filtering.\n * Menus within a Filter Popover will need to not have \"portal mounts\" and be inline.\n */\nconst Filter: React.FC<FilterProps> = ({\n\talign = 'left',\n\tassistiveText: assistiveTextProp,\n\tchildren,\n\tclassName,\n\tisError = false,\n\tid: idProp,\n\tisLocked = false,\n\tisNew = false,\n\tisPermanent = false,\n\tonChange,\n\tonRemove,\n\tonClick,\n\tpopover,\n\tpredicate = 'New Filter',\n\tproperty,\n}) => {\n\t// Generate stable ID\n\tconst generatedId = useMemo(() => generateId(), []);\n\tconst id = idProp || generatedId;\n\n\t// Popover state - use popover's isOpen if provided\n\tconst [popoverIsOpen, setPopoverIsOpen] = useState(\n\t\t(popover?.props as { isOpen?: boolean } | undefined)?.isOpen ?? false\n\t);\n\n\t// Merge assistive text with defaults\n\tconst assistiveText = useMemo<FilterAssistiveText>(\n\t\t() => ({\n\t\t\t...defaultAssistiveText,\n\t\t\t...assistiveTextProp,\n\t\t\tremoveFilter:\n\t\t\t\tassistiveTextProp?.removeFilter ||\n\t\t\t\t`Remove Filter: ${property} ${predicate}`,\n\t\t}),\n\t\t[assistiveTextProp, property, predicate]\n\t);\n\n\t// Handle filter click\n\tconst handleFilterClick = useCallback(() => {\n\t\tsetPopoverIsOpen(true);\n\t\tonClick?.();\n\t}, [onClick]);\n\n\t// Handle popover close\n\tconst handleClose = useCallback(() => {\n\t\tsetPopoverIsOpen(false);\n\t}, []);\n\n\t// Handle change (Done button clicked)\n\tconst handleChange = useCallback(\n\t\t(event: React.MouseEvent<HTMLButtonElement>) => {\n\t\t\tsetPopoverIsOpen(false);\n\t\t\tonChange?.(event, { id });\n\t\t},\n\t\t[onChange, id]\n\t);\n\n\t// Handle remove\n\tconst handleRemove = useCallback(\n\t\t(event: React.MouseEvent<HTMLButtonElement>) => {\n\t\t\tonRemove?.(event, { id });\n\t\t},\n\t\t[onRemove, id]\n\t);\n\n\t// Build popover body\n\tconst popoverBody = (\n\t\t<div>\n\t\t\t<h4 className=\"slds-assistive-text\" id={`${id}-popover-heading`}>\n\t\t\t\t{assistiveText.editFilterHeading}\n\t\t\t</h4>\n\t\t\t{children}\n\t\t\t<div className=\"slds-m-top_small slds-text-align_right\">\n\t\t\t\t<Button\n\t\t\t\t\tclassName=\"slds-col_bump-left\"\n\t\t\t\t\tlabel=\"Done\"\n\t\t\t\t\tonClick={handleChange}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t);\n\n\t// Build popover props\n\tconst popoverProps = {\n\t\tariaLabelledby: `${id}-popover-heading`,\n\t\talign,\n\t\tbody: popoverBody,\n\t\theading: '',\n\t\tid,\n\t\tisOpen: popoverIsOpen,\n\t\toffset: align === 'right' ? '0px -35px' : undefined,\n\t\tonClose: handleClose,\n\t\tonRequestClose: handleClose,\n\t\tposition: 'overflowBoundaryElement' as const,\n\t\tclassName: 'slds-grow',\n\t\t// Merge with custom popover props if provided\n\t\t...(popover?.props || {}),\n\t\t// Remove children from merged props\n\t\tchildren: undefined,\n\t};\n\n\t// Trigger button content\n\tconst triggerContent = (\n\t\t<>\n\t\t\t<span className=\"slds-assistive-text\">{assistiveText.editFilter}</span>\n\t\t\t{property ? (\n\t\t\t\t<span className=\"slds-show slds-text-body_small\">{property}</span>\n\t\t\t) : null}\n\t\t\t<span className=\"slds-show\">{predicate}</span>\n\t\t</>\n\t);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\t'slds-filters__item',\n\t\t\t\t'slds-grid',\n\t\t\t\t'slds-grid_vertical-align-center',\n\t\t\t\t{\n\t\t\t\t\t'slds-is-locked': isLocked,\n\t\t\t\t\t'slds-is-new': isNew,\n\t\t\t\t\t'slds-has-error': isError,\n\t\t\t\t},\n\t\t\t\tclassName\n\t\t\t)}\n\t\t>\n\t\t\t{!isLocked && (children || popover) ? (\n\t\t\t\t// @ts-expect-error - Popover props are complex with overrides\n\t\t\t\t<Popover {...popoverProps} silenceDeprecatedPropertyWarning>\n\t\t\t\t\t<button\n\t\t\t\t\t\tclassName=\"slds-button_reset slds-grow slds-has-blur-focus\"\n\t\t\t\t\t\tonClick={handleFilterClick}\n\t\t\t\t\t\taria-describedby={isError ? `${id}-error` : undefined}\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{triggerContent}\n\t\t\t\t\t</button>\n\t\t\t\t</Popover>\n\t\t\t) : (\n\t\t\t\t<button\n\t\t\t\t\taria-describedby={isError ? `${id}-error` : undefined}\n\t\t\t\t\tclassName=\"slds-button_reset slds-grow slds-has-blur-focus\"\n\t\t\t\t\tdisabled\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t>\n\t\t\t\t\t<span className=\"slds-show slds-text-body_small\">{property}</span>\n\t\t\t\t\t<span className=\"slds-show\">{predicate}</span>\n\t\t\t\t</button>\n\t\t\t)}\n\t\t\t{!isPermanent && !isLocked && (\n\t\t\t\t<Button\n\t\t\t\t\tassistiveText={{ icon: assistiveText.removeFilter }}\n\t\t\t\t\thint\n\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\ticonName=\"delete\"\n\t\t\t\t\ticonSize=\"small\"\n\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\tonClick={handleRemove}\n\t\t\t\t\ttitle={assistiveText.removeFilter}\n\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nFilter.displayName = FILTER;\n\nexport default Filter;\n"],"mappings":";;;;;;;;AAwDA,IAAM,IAA4C;CACjD,YAAY;CACZ,mBAAmB;AACpB,GAMM,KAAiC,EACtC,WAAQ,QACR,eAAe,GACf,aACA,cACA,aAAU,IACV,IAAI,GACJ,cAAW,IACX,WAAQ,IACR,iBAAc,IACd,aACA,aACA,YACA,YACA,eAAY,cACZ,kBACK;CAEL,IAAM,IAAc,QAAc,EAAW,GAAG,CAAC,CAAC,GAC5C,IAAK,KAAU,GAGf,CAAC,GAAe,KAAoB,EACxC,GAAS,OAA4C,UAAU,EACjE,GAGM,IAAgB,SACd;EACN,GAAG;EACH,GAAG;EACH,cACC,GAAmB,gBACnB,kBAAkB,EAAS,GAAG;CAChC,IACA;EAAC;EAAmB;EAAU;CAAS,CACxC,GAGM,IAAoB,QAAkB;EAE3C,AADA,EAAiB,EAAI,GACrB,IAAU;CACX,GAAG,CAAC,CAAO,CAAC,GAGN,IAAc,QAAkB;EACrC,EAAiB,EAAK;CACvB,GAAG,CAAC,CAAC,GAGC,IAAe,GACnB,MAA+C;EAE/C,AADA,EAAiB,EAAK,GACtB,IAAW,GAAO,EAAE,MAAG,CAAC;CACzB,GACA,CAAC,GAAU,CAAE,CACd,GAGM,IAAe,GACnB,MAA+C;EAC/C,IAAW,GAAO,EAAE,MAAG,CAAC;CACzB,GACA,CAAC,GAAU,CAAE,CACd,GAGM,IACL,kBAAC,OAAD,EAAA,UAAA;EACC,kBAAC,MAAD;GAAI,WAAU;GAAsB,IAAI,GAAG,EAAG;GAC5C,UAAA,EAAc;EACZ,CAAA;EACH;EACD,kBAAC,OAAD;GAAK,WAAU;GACd,UAAA,kBAAC,GAAD;IACC,WAAU;IACV,OAAM;IACN,SAAS;GACT,CAAA;EACG,CAAA;CACD,EAAA,CAAA,GAIA,IAAe;EACpB,gBAAgB,GAAG,EAAG;EACtB;EACA,MAAM;EACN,SAAS;EACT;EACA,QAAQ;EACR,QAAQ,MAAU,UAAU,cAAc,KAAA;EAC1C,SAAS;EACT,gBAAgB;EAChB,UAAU;EACV,WAAW;EAEX,GAAI,GAAS,SAAS,CAAC;EAEvB,UAAU,KAAA;CACX,GAGM,IACL,kBAAA,GAAA,EAAA,UAAA;EACC,kBAAC,QAAD;GAAM,WAAU;GAAuB,UAAA,EAAc;EAAiB,CAAA;EACrE,IACA,kBAAC,QAAD;GAAM,WAAU;GAAkC,UAAA;EAAe,CAAA,IAC9D;EACJ,kBAAC,QAAD;GAAM,WAAU;GAAa,UAAA;EAAgB,CAAA;CAC5C,EAAA,CAAA;CAGH,OACC,kBAAC,OAAD;EACC,WAAW,EACV,sBACA,aACA,mCACA;GACC,kBAAkB;GAClB,eAAe;GACf,kBAAkB;EACnB,GACA,CACD;EAXD,UAAA,CAaE,CAAC,MAAa,KAAY,KAE1B,kBAAC,GAAD;GAAS,GAAI;GAAc,kCAAA;GAC1B,UAAA,kBAAC,UAAD;IACC,WAAU;IACV,SAAS;IACT,oBAAkB,IAAU,GAAG,EAAG,UAAU,KAAA;IAC5C,MAAK;IAEJ,UAAA;GACM,CAAA;EACA,CAAA,IAET,kBAAC,UAAD;GACC,oBAAkB,IAAU,GAAG,EAAG,UAAU,KAAA;GAC5C,WAAU;GACV,UAAA;GACA,MAAK;GAJN,UAAA,CAMC,kBAAC,QAAD;IAAM,WAAU;IAAkC,UAAA;GAAe,CAAA,GACjE,kBAAC,QAAD;IAAM,WAAU;IAAa,UAAA;GAAgB,CAAA,CACtC;EAER,CAAA,GAAA,CAAC,KAAe,CAAC,KACjB,kBAAC,GAAD;GACC,eAAe,EAAE,MAAM,EAAc,aAAa;GAClD,MAAA;GACA,cAAa;GACb,UAAS;GACT,UAAS;GACT,aAAY;GACZ,SAAS;GACT,OAAO,EAAc;GACrB,SAAQ;EACR,CAAA,CAEE;;AAEP;AAEA,EAAO,cAAc"}
1
+ {"version":3,"file":"filter.js","names":[],"sources":["../../../../components/filter/filter.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useCallback, useContext, useMemo } from 'react';\nimport classNames from 'classnames';\n\nimport Button from '../button';\nimport Popover from '../popover';\n\nimport { FILTER } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\nimport { useControllableState } from '../../utilities/hooks';\nimport FilterErrorIdContext from './private/error-id-context';\n\nimport {\n\tFilterAssistiveText,\n\tFilterChangeHandler,\n\tFilterRemoveHandler,\n} from './types';\n\nexport interface FilterProps {\n\t/** Aligns the popover with the respective side of the trigger */\n\talign?: 'left' | 'right';\n\t/** Assistive text for accessibility */\n\tassistiveText?: FilterAssistiveText;\n\t/** Contents of popover - dropdowns and inputs that set filter criteria */\n\tchildren?: React.ReactNode;\n\t/** Custom CSS classes for slds-filters__item node */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/**\n\t * Error message for a Filter inside a `PanelFilterList`. The list shows it below the\n\t * filter and sets `isError`. A standalone Filter doesn't render it.\n\t */\n\terrorLabel?: string;\n\t/**\n\t * Applies error state styling. Inside a `PanelFilterList` with `errorLabel`, the filter is\n\t * also described by the error message.\n\t */\n\tisError?: boolean;\n\t/** Unique ID for keyboard navigation and ARIA support */\n\tid?: string;\n\t/** If true, the filter will not display an editing popover when clicked */\n\tisLocked?: boolean;\n\t/** Applies new filter styling */\n\tisNew?: boolean;\n\t/** If true, the filter will not include a remove button */\n\tisPermanent?: boolean;\n\t/** Callback when Done within the Popover is clicked */\n\tonChange?: FilterChangeHandler;\n\t/** Callback when \"Remove Filter\" button is clicked */\n\tonRemove?: FilterRemoveHandler;\n\t/** Callback when Filter is clicked */\n\tonClick?: () => void;\n\t/** Custom Popover component with overridable props */\n\tpopover?: React.ReactElement;\n\t/** The filter predicate (e.g., \"is PURPLE\") */\n\tpredicate?: React.ReactNode;\n\t/** The filter property (e.g., \"Hair Color\") */\n\tproperty?: React.ReactNode;\n}\n\nconst defaultAssistiveText: FilterAssistiveText = {\n\teditFilter: 'Edit filter:',\n\teditFilterHeading: 'Choose filter criteria',\n};\n\n/**\n * A Filter is a popover with custom trigger. It can be used by Panel Filtering.\n * Menus within a Filter Popover will need to not have \"portal mounts\" and be inline.\n */\nconst Filter: React.FC<FilterProps> = ({\n\talign = 'left',\n\tassistiveText: assistiveTextProp,\n\tchildren,\n\tclassName,\n\tisError = false,\n\tid: idProp,\n\tisLocked = false,\n\tisNew = false,\n\tisPermanent = false,\n\tonChange,\n\tonRemove,\n\tonClick,\n\tpopover,\n\tpredicate = 'New Filter',\n\tproperty,\n}) => {\n\t// Generate stable ID\n\tconst generatedId = useMemo(() => generateId(), []);\n\tconst id = idProp || generatedId;\n\t// Only describe the filter by an error element that is rendered\n\tconst errorId = useContext(FilterErrorIdContext);\n\tconst errorDescribedBy = isError ? errorId : undefined;\n\n\t// Popover state: controlled when the custom popover sets `isOpen`, otherwise internal and seeded\n\t// from its `defaultIsOpen`\n\tconst popoverOpenProps = popover?.props as\n\t\t{ isOpen?: boolean; defaultIsOpen?: boolean } | undefined;\n\tconst [popoverIsOpen, setPopoverIsOpen] = useControllableState(\n\t\tpopoverOpenProps?.isOpen,\n\t\tpopoverOpenProps?.defaultIsOpen ?? false\n\t);\n\n\t// Merge assistive text with defaults\n\tconst assistiveText = useMemo<FilterAssistiveText>(\n\t\t() => ({\n\t\t\t...defaultAssistiveText,\n\t\t\t...assistiveTextProp,\n\t\t\tremoveFilter:\n\t\t\t\tassistiveTextProp?.removeFilter ||\n\t\t\t\t`Remove Filter: ${property} ${predicate}`,\n\t\t}),\n\t\t[assistiveTextProp, property, predicate]\n\t);\n\n\t// Handle filter click\n\tconst handleFilterClick = useCallback(() => {\n\t\tsetPopoverIsOpen(true);\n\t\tonClick?.();\n\t}, [onClick, setPopoverIsOpen]);\n\n\t// Handle popover close\n\tconst handleClose = useCallback(() => {\n\t\tsetPopoverIsOpen(false);\n\t}, [setPopoverIsOpen]);\n\n\t// Handle change (Done button clicked)\n\tconst handleChange = useCallback(\n\t\t(event: React.MouseEvent<HTMLButtonElement>) => {\n\t\t\tsetPopoverIsOpen(false);\n\t\t\tonChange?.(event, { id });\n\t\t},\n\t\t[onChange, id]\n\t);\n\n\t// Handle remove\n\tconst handleRemove = useCallback(\n\t\t(event: React.MouseEvent<HTMLButtonElement>) => {\n\t\t\tonRemove?.(event, { id });\n\t\t},\n\t\t[onRemove, id]\n\t);\n\n\t// Build popover body\n\tconst popoverBody = (\n\t\t<div>\n\t\t\t<h4 className=\"slds-assistive-text\" id={`${id}-popover-heading`}>\n\t\t\t\t{assistiveText.editFilterHeading}\n\t\t\t</h4>\n\t\t\t{children}\n\t\t\t<div className=\"slds-m-top_small slds-text-align_right\">\n\t\t\t\t<Button\n\t\t\t\t\tclassName=\"slds-col_bump-left\"\n\t\t\t\t\tlabel=\"Done\"\n\t\t\t\t\tonClick={handleChange}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t);\n\n\t// Build popover props\n\tconst popoverProps = {\n\t\tariaLabelledby: `${id}-popover-heading`,\n\t\talign,\n\t\tbody: popoverBody,\n\t\theading: '',\n\t\tid,\n\t\toffset: align === 'right' ? '0px -35px' : undefined,\n\t\tonClose: handleClose,\n\t\tonRequestClose: handleClose,\n\t\tposition: 'overflowBoundaryElement' as const,\n\t\tclassName: 'slds-grow',\n\t\t// Merge with custom popover props if provided\n\t\t...(popover?.props || {}),\n\t\tisOpen: popoverIsOpen,\n\t\t// Remove children from merged props\n\t\tchildren: undefined,\n\t};\n\n\t// Trigger button content\n\tconst triggerContent = (\n\t\t<>\n\t\t\t<span className=\"slds-assistive-text\">{assistiveText.editFilter}</span>\n\t\t\t{property ? (\n\t\t\t\t<span className=\"slds-show slds-text-body_small\">{property}</span>\n\t\t\t) : null}\n\t\t\t<span className=\"slds-show\">{predicate}</span>\n\t\t</>\n\t);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\t'slds-filters__item',\n\t\t\t\t'slds-grid',\n\t\t\t\t'slds-grid_vertical-align-center',\n\t\t\t\t{\n\t\t\t\t\t'slds-is-locked': isLocked,\n\t\t\t\t\t'slds-is-new': isNew,\n\t\t\t\t\t'slds-has-error': isError,\n\t\t\t\t},\n\t\t\t\tclassName\n\t\t\t)}\n\t\t>\n\t\t\t{!isLocked && (children || popover) ? (\n\t\t\t\t// @ts-expect-error - Popover props are complex with overrides\n\t\t\t\t<Popover {...popoverProps} silenceDeprecatedPropertyWarning>\n\t\t\t\t\t<button\n\t\t\t\t\t\tclassName=\"slds-button_reset slds-grow slds-has-blur-focus\"\n\t\t\t\t\t\tonClick={handleFilterClick}\n\t\t\t\t\t\taria-describedby={errorDescribedBy}\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{triggerContent}\n\t\t\t\t\t</button>\n\t\t\t\t</Popover>\n\t\t\t) : (\n\t\t\t\t<button\n\t\t\t\t\taria-describedby={errorDescribedBy}\n\t\t\t\t\tclassName=\"slds-button_reset slds-grow slds-has-blur-focus\"\n\t\t\t\t\tdisabled\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t>\n\t\t\t\t\t<span className=\"slds-show slds-text-body_small\">{property}</span>\n\t\t\t\t\t<span className=\"slds-show\">{predicate}</span>\n\t\t\t\t</button>\n\t\t\t)}\n\t\t\t{!isPermanent && !isLocked && (\n\t\t\t\t<Button\n\t\t\t\t\tassistiveText={{ icon: assistiveText.removeFilter }}\n\t\t\t\t\thint\n\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\ticonName=\"delete\"\n\t\t\t\t\ticonSize=\"small\"\n\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\tonClick={handleRemove}\n\t\t\t\t\ttitle={assistiveText.removeFilter}\n\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nFilter.displayName = FILTER;\n\nexport default Filter;\n"],"mappings":";;;;;;;;;;AA6DA,IAAM,IAA4C;CACjD,YAAY;CACZ,mBAAmB;AACpB,GAMM,KAAiC,EACtC,WAAQ,QACR,eAAe,GACf,aACA,cACA,aAAU,IACV,IAAI,GACJ,cAAW,IACX,WAAQ,IACR,iBAAc,IACd,aACA,aACA,YACA,YACA,eAAY,cACZ,kBACK;CAEL,IAAM,IAAc,QAAc,EAAW,GAAG,CAAC,CAAC,GAC5C,IAAK,KAAU,GAEf,IAAU,EAAW,CAAoB,GACzC,IAAmB,IAAU,IAAU,KAAA,GAIvC,IAAmB,GAAS,OAE5B,CAAC,GAAe,KAAoB,EACzC,GAAkB,QAClB,GAAkB,iBAAiB,EACpC,GAGM,IAAgB,SACd;EACN,GAAG;EACH,GAAG;EACH,cACC,GAAmB,gBACnB,kBAAkB,EAAS,GAAG;CAChC,IACA;EAAC;EAAmB;EAAU;CAAS,CACxC,GAGM,IAAoB,QAAkB;EAE3C,AADA,EAAiB,EAAI,GACrB,IAAU;CACX,GAAG,CAAC,GAAS,CAAgB,CAAC,GAGxB,IAAc,QAAkB;EACrC,EAAiB,EAAK;CACvB,GAAG,CAAC,CAAgB,CAAC,GAGf,IAAe,GACnB,MAA+C;EAE/C,AADA,EAAiB,EAAK,GACtB,IAAW,GAAO,EAAE,MAAG,CAAC;CACzB,GACA,CAAC,GAAU,CAAE,CACd,GAGM,IAAe,GACnB,MAA+C;EAC/C,IAAW,GAAO,EAAE,MAAG,CAAC;CACzB,GACA,CAAC,GAAU,CAAE,CACd,GAGM,IACL,kBAAC,OAAD,EAAA,UAAA;EACC,kBAAC,MAAD;GAAI,WAAU;GAAsB,IAAI,GAAG,EAAG;GAC5C,UAAA,EAAc;EACZ,CAAA;EACH;EACD,kBAAC,OAAD;GAAK,WAAU;GACd,UAAA,kBAAC,GAAD;IACC,WAAU;IACV,OAAM;IACN,SAAS;GACT,CAAA;EACG,CAAA;CACD,EAAA,CAAA,GAIA,IAAe;EACpB,gBAAgB,GAAG,EAAG;EACtB;EACA,MAAM;EACN,SAAS;EACT;EACA,QAAQ,MAAU,UAAU,cAAc,KAAA;EAC1C,SAAS;EACT,gBAAgB;EAChB,UAAU;EACV,WAAW;EAEX,GAAI,GAAS,SAAS,CAAC;EACvB,QAAQ;EAER,UAAU,KAAA;CACX,GAGM,IACL,kBAAA,GAAA,EAAA,UAAA;EACC,kBAAC,QAAD;GAAM,WAAU;GAAuB,UAAA,EAAc;EAAiB,CAAA;EACrE,IACA,kBAAC,QAAD;GAAM,WAAU;GAAkC,UAAA;EAAe,CAAA,IAC9D;EACJ,kBAAC,QAAD;GAAM,WAAU;GAAa,UAAA;EAAgB,CAAA;CAC5C,EAAA,CAAA;CAGH,OACC,kBAAC,OAAD;EACC,WAAW,EACV,sBACA,aACA,mCACA;GACC,kBAAkB;GAClB,eAAe;GACf,kBAAkB;EACnB,GACA,CACD;EAXD,UAAA,CAaE,CAAC,MAAa,KAAY,KAE1B,kBAAC,GAAD;GAAS,GAAI;GAAc,kCAAA;GAC1B,UAAA,kBAAC,UAAD;IACC,WAAU;IACV,SAAS;IACT,oBAAkB;IAClB,MAAK;IAEJ,UAAA;GACM,CAAA;EACA,CAAA,IAET,kBAAC,UAAD;GACC,oBAAkB;GAClB,WAAU;GACV,UAAA;GACA,MAAK;GAJN,UAAA,CAMC,kBAAC,QAAD;IAAM,WAAU;IAAkC,UAAA;GAAe,CAAA,GACjE,kBAAC,QAAD;IAAM,WAAU;IAAa,UAAA;GAAgB,CAAA,CACtC;EAER,CAAA,GAAA,CAAC,KAAe,CAAC,KACjB,kBAAC,GAAD;GACC,eAAe,EAAE,MAAM,EAAc,aAAa;GAClD,MAAA;GACA,cAAa;GACb,UAAS;GACT,UAAS;GACT,aAAY;GACZ,SAAS;GACT,OAAO,EAAc;GACrB,SAAQ;EACR,CAAA,CAEE;;AAEP;AAEA,EAAO,cAAc"}
@@ -0,0 +1,7 @@
1
+ import { createContext as e } from "react";
2
+ //#region components/filter/private/error-id-context.ts
3
+ var t = e(void 0);
4
+ //#endregion
5
+ export { t as default };
6
+
7
+ //# sourceMappingURL=error-id-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-id-context.js","names":[],"sources":["../../../../../components/filter/private/error-id-context.ts"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport { createContext } from 'react';\n\n/**\n * The id of the error element rendered for a Filter, provided by `PanelFilterList` when it\n * renders one. A Filter only points `aria-describedby` at an element that exists.\n */\nconst FilterErrorIdContext = createContext<string | undefined>(undefined);\n\nexport default FilterErrorIdContext;\n"],"mappings":";;AASA,IAAM,IAAuB,EAAkC,KAAA,CAAS"}
@@ -26,6 +26,6 @@ var r = class extends e {
26
26
  }
27
27
  };
28
28
  //#endregion
29
- export { i as default };
29
+ export { r as Column, i as default };
30
30
 
31
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../components/grid/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport { Component, type ReactNode } from 'react';\nimport classNames from 'classnames';\n\nexport interface GridColumnProps {\n\t/** Additional class names applied to the column. */\n\tclassName?: string;\n\t/** Column content. */\n\tchildren?: ReactNode;\n}\n\nclass GridColumn extends Component<GridColumnProps> {\n\tgetClassName() {\n\t\treturn classNames(this.props.className, 'slds-col');\n\t}\n\n\trender() {\n\t\treturn <div className={this.getClassName()}>{this.props.children}</div>;\n\t}\n}\n\nexport interface GridProps {\n\t/** Additional class names applied to the grid. */\n\tclassName?: string;\n\t/** Grid flavor, appended as `slds-grid_{flavor}`. */\n\tflavor?: string;\n\t/** Grid content, typically `Grid.Column` elements. */\n\tchildren?: ReactNode;\n}\n\nclass Grid extends Component<GridProps> {\n\tstatic Column = GridColumn;\n\n\tgetClassName() {\n\t\tconst { flavor } = this.props;\n\t\treturn classNames(this.props.className, 'slds-grid', {\n\t\t\t[`slds-grid_${flavor}`]: flavor,\n\t\t});\n\t}\n\n\trender() {\n\t\treturn <div className={this.getClassName()}>{this.props.children}</div>;\n\t}\n}\n\nexport default Grid;\n"],"mappings":";;;;AAaA,IAAM,IAAN,cAAyB,EAA2B;CACnD,eAAe;EACd,OAAO,EAAW,KAAK,MAAM,WAAW,UAAU;CACnD;CAEA,SAAS;EACR,OAAO,kBAAC,OAAD;GAAK,WAAW,KAAK,aAAa;GAAI,UAAA,KAAK,MAAM;EAAc,CAAA;CACvE;AACD,GAWM,IAAN,cAAmB,EAAqB;CACvC,OAAO,SAAS;CAEhB,eAAe;EACd,IAAM,EAAE,cAAW,KAAK;EACxB,OAAO,EAAW,KAAK,MAAM,WAAW,aAAa,GACnD,aAAa,MAAW,EAC1B,CAAC;CACF;CAEA,SAAS;EACR,OAAO,kBAAC,OAAD;GAAK,WAAW,KAAK,aAAa;GAAI,UAAA,KAAK,MAAM;EAAc,CAAA;CACvE;AACD"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../components/grid/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport { Component, type ReactNode } from 'react';\nimport classNames from 'classnames';\n\n/** SLDS grid modifiers, applied as `slds-grid_{flavor}`. */\nexport type GridFlavor =\n\t| 'align-center'\n\t| 'align-end'\n\t| 'align-space'\n\t| 'align-spread'\n\t| 'frame'\n\t| 'pull-padded'\n\t| 'pull-padded-large'\n\t| 'pull-padded-medium'\n\t| 'pull-padded-small'\n\t| 'pull-padded-x-large'\n\t| 'pull-padded-x-small'\n\t| 'pull-padded-xx-large'\n\t| 'pull-padded-xx-small'\n\t| 'reverse'\n\t| 'vertical'\n\t| 'vertical-align-center'\n\t| 'vertical-align-end'\n\t| 'vertical-align-start'\n\t| 'vertical-reverse'\n\t| 'vertical-stretch';\n\nexport interface GridColumnProps {\n\t/** Additional class names applied to the column. */\n\tclassName?: string;\n\t/** Column content. */\n\tchildren?: ReactNode;\n}\n\nexport class Column extends Component<GridColumnProps> {\n\tgetClassName() {\n\t\treturn classNames(this.props.className, 'slds-col');\n\t}\n\n\trender() {\n\t\treturn <div className={this.getClassName()}>{this.props.children}</div>;\n\t}\n}\n\nexport interface GridProps {\n\t/** Additional class names applied to the grid. */\n\tclassName?: string;\n\t/** Grid flavor, appended as `slds-grid_{flavor}`. */\n\tflavor?: GridFlavor;\n\t/** Grid content, typically `Grid.Column` elements. */\n\tchildren?: ReactNode;\n}\n\nclass Grid extends Component<GridProps> {\n\tstatic Column = Column;\n\n\tgetClassName() {\n\t\tconst { flavor } = this.props;\n\t\treturn classNames(this.props.className, 'slds-grid', {\n\t\t\t[`slds-grid_${flavor}`]: flavor,\n\t\t});\n\t}\n\n\trender() {\n\t\treturn <div className={this.getClassName()}>{this.props.children}</div>;\n\t}\n}\n\nexport default Grid;\n"],"mappings":";;;;AAoCA,IAAa,IAAb,cAA4B,EAA2B;CACtD,eAAe;EACd,OAAO,EAAW,KAAK,MAAM,WAAW,UAAU;CACnD;CAEA,SAAS;EACR,OAAO,kBAAC,OAAD;GAAK,WAAW,KAAK,aAAa;GAAI,UAAA,KAAK,MAAM;EAAc,CAAA;CACvE;AACD,GAWM,IAAN,cAAmB,EAAqB;CACvC,OAAO,SAAS;CAEhB,eAAe;EACd,IAAM,EAAE,cAAW,KAAK;EACxB,OAAO,EAAW,KAAK,MAAM,WAAW,aAAa,GACnD,aAAa,MAAW,EAC1B,CAAC;CACF;CAEA,SAAS;EACR,OAAO,kBAAC,OAAD;GAAK,WAAW,KAAK,aAAa;GAAI,UAAA,KAAK,MAAM;EAAc,CAAA;CACvE;AACD"}
@@ -5,7 +5,7 @@ import "react";
5
5
  import r from "classnames";
6
6
  import { jsx as i } from "react/jsx-runtime";
7
7
  //#region components/icon/button-icon/index.tsx
8
- var a = ({ category: a = "utility", size: o = "medium", hint: s, icon: c, className: l, inverse: u, name: d, path: f, position: p, ...m }) => (t(e, {
8
+ var a = ({ category: a = "utility", size: o = "medium", hint: s, icon: c, className: l, inverse: u, name: d, path: f, position: p }) => (t(e, {
9
9
  category: a,
10
10
  size: o,
11
11
  hint: s,
@@ -14,8 +14,7 @@ var a = ({ category: a = "utility", size: o = "medium", hint: s, icon: c, classN
14
14
  inverse: u,
15
15
  name: d,
16
16
  path: f,
17
- position: p,
18
- ...m
17
+ position: p
19
18
  }), /* @__PURE__ */ i(n, {
20
19
  "aria-hidden": "true",
21
20
  category: a,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../components/icon/button-icon/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// ### React\nimport React from 'react';\n\n// ### classNames\n// [github.com/JedWatson/classnames](https://github.com/JedWatson/classnames)\n// This project uses `classnames`, \"a simple javascript utility for conditionally\n// joining classNames together.\"\nimport classNames from 'classnames';\n\n// This component's `checkProps` which issues warnings to developers about properties when in development mode (similar to React's built in development tools)\nimport checkProps from './check-props';\n\n// ### Children\nimport SLDSUtilityIcon from '../../utilities/utility-icon';\nimport type { InlineIconData } from '../../utilities/utility-icon';\n\nimport { BUTTON_ICON } from '../../../utilities/constants';\n\nexport interface ButtonIconProps {\n\t/**\n\t * Icon category from [lightningdesignsystem.com/icons/](https://www.lightningdesignsystem.com/icons/)\n\t */\n\tcategory?: 'action' | 'custom' | 'doctype' | 'standard' | 'utility';\n\t/**\n\t * Associates an icon button with another element on the page by changes the color of the SVG. Please reference <a href=\"http://www.lightningdesignsystem.com/components/buttons/#hint\">Lightning Design System Buttons > Hint</a>.\n\t */\n\thint?: boolean;\n\t/**\n\t * An SVG object to use instead of name / category, look in `design-system-react/icons` for examples\n\t */\n\ticon?: InlineIconData;\n\t/**\n\t * Class names to be added to the SVG.\n\t */\n\tclassName?: unknown[] | Record<string, unknown> | string;\n\t/**\n\t * Setting `inverse` to true will switch the color of the icon: light to dark, dark to light.\n\t */\n\tinverse?: boolean;\n\t/**\n\t * Name of the icon. Visit <a href='http://www.lightningdesignsystem.com/resources/icons'>Lightning Design System Icons</a> to reference icon names.\n\t */\n\tname?: string;\n\t/**\n\t * Path to the icon. This will override any global icon settings.\n\t */\n\tpath?: string;\n\t/**\n\t * Adds additional spacing on the opposite side specified between button icon and the button label\n\t */\n\tposition?: 'left' | 'right';\n\t/**\n\t * Size of the icon. Visit [lightningdesignsystem.com/components/icons/#flavor-sizes](https://www.lightningdesignsystem.com/components/icons/#flavor-sizes)\n\t */\n\tsize?: 'x-small' | 'small' | 'medium' | 'large';\n\t[key: string]: unknown;\n}\n\n/**\n * This is a non-interactive wrapper component for `UtilityIcon` that specifies button icon classes for an icon inside a `button` tag. Use of this component by itself is not recommended, but should be used as part of other components to obtain the correct styling for icons within buttons. This component only partially implements [Button Icons](http://www.lightningdesignsystem.com/components/button-icons). It does not return a `button` HTML tag. It only returns an icon for use within a button. Assistive text must also be rendered by the parent.\n */\nconst ButtonIcon = ({\n\tcategory = 'utility',\n\tsize = 'medium',\n\thint,\n\ticon,\n\tclassName,\n\tinverse,\n\tname,\n\tpath,\n\tposition,\n\t...rest\n}: ButtonIconProps): React.ReactElement => {\n\t(checkProps as (name: string, props: unknown, doc?: unknown) => void)(\n\t\tBUTTON_ICON,\n\t\t{\n\t\t\tcategory,\n\t\t\tsize,\n\t\t\thint,\n\t\t\ticon,\n\t\t\tclassName,\n\t\t\tinverse,\n\t\t\tname,\n\t\t\tpath,\n\t\t\tposition,\n\t\t\t...rest,\n\t\t}\n\t);\n\n\treturn (\n\t\t<SLDSUtilityIcon\n\t\t\taria-hidden=\"true\"\n\t\t\tcategory={category}\n\t\t\tclassName={classNames(\n\t\t\t\t'slds-button__icon',\n\t\t\t\t{\n\t\t\t\t\t[`slds-button__icon_${size}`]: size && size !== 'medium',\n\t\t\t\t\t'slds-button__icon_inverse-hint': inverse && hint,\n\t\t\t\t\t'slds-button__icon_hint': hint && !inverse,\n\t\t\t\t\t[`slds-button__icon_${position}`]: position,\n\t\t\t\t},\n\t\t\t\tclassName as string\n\t\t\t)} // iconClassName has been deprecated\n\t\t\ticon={icon}\n\t\t\tname={name}\n\t\t\tpath={path}\n\t\t/>\n\t);\n};\n\nButtonIcon.displayName = BUTTON_ICON;\n\nexport default ButtonIcon;\n"],"mappings":";;;;;;;AAgEA,IAAM,KAAc,EACnB,cAAW,WACX,UAAO,UACP,SACA,SACA,cACA,YACA,SACA,SACA,aACA,GAAG,SAEH,EACC,GACA;CACC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,GAAG;AACJ,CACD,GAGC,kBAAC,GAAD;CACC,eAAY;CACF;CACV,WAAW,EACV,qBACA;GACE,qBAAqB,MAAS,KAAQ,MAAS;EAChD,kCAAkC,KAAW;EAC7C,0BAA0B,KAAQ,CAAC;GAClC,qBAAqB,MAAa;CACpC,GACA,CACD;CACM;CACA;CACA;AACN,CAAA;AAIH,EAAW,cAAc"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../components/icon/button-icon/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// ### React\nimport React from 'react';\n\n// ### classNames\n// [github.com/JedWatson/classnames](https://github.com/JedWatson/classnames)\n// This project uses `classnames`, \"a simple javascript utility for conditionally\n// joining classNames together.\"\nimport classNames from 'classnames';\n\n// This component's `checkProps` which issues warnings to developers about properties when in development mode (similar to React's built in development tools)\nimport checkProps from './check-props';\n\n// ### Children\nimport SLDSUtilityIcon from '../../utilities/utility-icon';\nimport type { InlineIconData } from '../../utilities/utility-icon';\n\nimport { BUTTON_ICON } from '../../../utilities/constants';\n\nexport interface ButtonIconProps {\n\t/**\n\t * Icon category from [lightningdesignsystem.com/icons/](https://www.lightningdesignsystem.com/icons/)\n\t */\n\tcategory?: 'action' | 'custom' | 'doctype' | 'standard' | 'utility';\n\t/**\n\t * Associates an icon button with another element on the page by changes the color of the SVG. Please reference <a href=\"http://www.lightningdesignsystem.com/components/buttons/#hint\">Lightning Design System Buttons > Hint</a>.\n\t */\n\thint?: boolean;\n\t/**\n\t * An SVG object to use instead of name / category, look in `design-system-react/icons` for examples\n\t */\n\ticon?: InlineIconData;\n\t/**\n\t * Class names to be added to the SVG.\n\t */\n\tclassName?: unknown[] | Record<string, unknown> | string;\n\t/**\n\t * Setting `inverse` to true will switch the color of the icon: light to dark, dark to light.\n\t */\n\tinverse?: boolean;\n\t/**\n\t * Name of the icon. Visit <a href='http://www.lightningdesignsystem.com/resources/icons'>Lightning Design System Icons</a> to reference icon names.\n\t */\n\tname?: string;\n\t/**\n\t * Path to the icon. This will override any global icon settings.\n\t */\n\tpath?: string;\n\t/**\n\t * Adds additional spacing on the opposite side specified between button icon and the button label\n\t */\n\tposition?: 'left' | 'right';\n\t/**\n\t * Size of the icon. Visit [lightningdesignsystem.com/components/icons/#flavor-sizes](https://www.lightningdesignsystem.com/components/icons/#flavor-sizes)\n\t */\n\tsize?: 'xx-small' | 'x-small' | 'small' | 'medium' | 'large';\n}\n\n/**\n * This is a non-interactive wrapper component for `UtilityIcon` that specifies button icon classes for an icon inside a `button` tag. Use of this component by itself is not recommended, but should be used as part of other components to obtain the correct styling for icons within buttons. This component only partially implements [Button Icons](http://www.lightningdesignsystem.com/components/button-icons). It does not return a `button` HTML tag. It only returns an icon for use within a button. Assistive text must also be rendered by the parent.\n */\nconst ButtonIcon = ({\n\tcategory = 'utility',\n\tsize = 'medium',\n\thint,\n\ticon,\n\tclassName,\n\tinverse,\n\tname,\n\tpath,\n\tposition,\n}: ButtonIconProps): React.ReactElement => {\n\t(checkProps as (name: string, props: unknown, doc?: unknown) => void)(\n\t\tBUTTON_ICON,\n\t\t{\n\t\t\tcategory,\n\t\t\tsize,\n\t\t\thint,\n\t\t\ticon,\n\t\t\tclassName,\n\t\t\tinverse,\n\t\t\tname,\n\t\t\tpath,\n\t\t\tposition,\n\t\t}\n\t);\n\n\treturn (\n\t\t<SLDSUtilityIcon\n\t\t\taria-hidden=\"true\"\n\t\t\tcategory={category}\n\t\t\tclassName={classNames(\n\t\t\t\t'slds-button__icon',\n\t\t\t\t{\n\t\t\t\t\t[`slds-button__icon_${size}`]: size && size !== 'medium',\n\t\t\t\t\t'slds-button__icon_inverse-hint': inverse && hint,\n\t\t\t\t\t'slds-button__icon_hint': hint && !inverse,\n\t\t\t\t\t[`slds-button__icon_${position}`]: position,\n\t\t\t\t},\n\t\t\t\tclassName as string\n\t\t\t)} // iconClassName has been deprecated\n\t\t\ticon={icon}\n\t\t\tname={name}\n\t\t\tpath={path}\n\t\t/>\n\t);\n};\n\nButtonIcon.displayName = BUTTON_ICON;\n\nexport default ButtonIcon;\n"],"mappings":";;;;;;;AA+DA,IAAM,KAAc,EACnB,cAAW,WACX,UAAO,UACP,SACA,SACA,cACA,YACA,SACA,SACA,mBAEA,EACC,GACA;CACC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CACD,GAGC,kBAAC,GAAD;CACC,eAAY;CACF;CACV,WAAW,EACV,qBACA;GACE,qBAAqB,MAAS,KAAQ,MAAS;EAChD,kCAAkC,KAAW;EAC7C,0BAA0B,KAAQ,CAAC;GAClC,qBAAqB,MAAa;CACpC,GACA,CACD;CACM;CACA;CACA;AACN,CAAA;AAIH,EAAW,cAAc"}
@@ -0,0 +1,15 @@
1
+ import e from "../../utilities/warning/sunset-property.js";
2
+ import t from "../../utilities/get-component-doc.js";
3
+ //#region components/icon/check-props.js
4
+ var n = function() {};
5
+ process.env.NODE_ENV !== "production" && (n = function(n, r, i) {
6
+ if (typeof r.assistiveText == "string") {
7
+ let a = t(i);
8
+ e(n, r.assistiveText, "assistiveText", `\`assistiveText\` as a string has been deprecated and is now an object to allow for multiple uses in the component. Please use \`assistiveText.label\` instead. ${a("assistiveText")}`);
9
+ }
10
+ });
11
+ var r = n;
12
+ //#endregion
13
+ export { r as default };
14
+
15
+ //# sourceMappingURL=check-props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/icon/check-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/* eslint-disable import/no-mutable-exports */\n\nimport sunsetProperty from '../../utilities/warning/sunset-property';\nimport getComponentDocFn from '../../utilities/get-component-doc';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props, jsonDoc) {\n\t\tif (typeof props.assistiveText === 'string') {\n\t\t\tconst createDocUrl = getComponentDocFn(jsonDoc);\n\n\t\t\tsunsetProperty(\n\t\t\t\tCOMPONENT,\n\t\t\t\tprops.assistiveText,\n\t\t\t\t'assistiveText',\n\t\t\t\t`\\`assistiveText\\` as a string has been deprecated and is now an object to allow for multiple uses in the component. Please use \\`assistiveText.label\\` instead. ${createDocUrl(\n\t\t\t\t\t'assistiveText'\n\t\t\t\t)}`\n\t\t\t);\n\t\t}\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;AAOA,IAAI,IAAa,WAA8B,CAAC;AAEhD,QAAA,IAAA,aAA6B,iBAC5B,IAAa,SAA4B,GAAW,GAAO,GAAS;CACnE,IAAI,OAAO,EAAM,iBAAkB,UAAU;EAC5C,IAAM,IAAe,EAAkB,CAAO;EAE9C,EACC,GACA,EAAM,eACN,iBACA,mKAAmK,EAClK,eACD,GACD;CACD;AACD;AAGD,IAAA,IAAe"}
@@ -0,0 +1,31 @@
1
+ //#region components/icon/component.json
2
+ var e = "icon", t = "prod", n = "Icon", r = {
3
+ component: e,
4
+ status: t,
5
+ "display-name": "Icons",
6
+ classKey: n,
7
+ "last-accessibility-review": {
8
+ "date-iso-8601": "2018/01/18",
9
+ "commit-sha": "ad6b6c6523ee21cada11be5f7ea4d99abc530726"
10
+ },
11
+ "SLDS-component-path": "/components/icons",
12
+ "site-stories": [
13
+ {
14
+ heading: "Category Options",
15
+ path: "/__examples__/categories.jsx"
16
+ },
17
+ {
18
+ heading: "Color Options",
19
+ path: "/__examples__/colors.jsx"
20
+ },
21
+ {
22
+ heading: "Size Options",
23
+ path: "/__examples__/sizes.jsx"
24
+ }
25
+ ],
26
+ "url-slug": "icons"
27
+ };
28
+ //#endregion
29
+ export { n as classKey, e as component, r as default, t as status };
30
+
31
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","names":[],"sources":["../../../../components/icon/component.json"],"sourcesContent":["{\n\t\"component\": \"icon\",\n\t\"status\": \"prod\",\n\t\"display-name\": \"Icons\",\n\t\"classKey\": \"Icon\",\n\t\"last-accessibility-review\": {\n\t\t\"date-iso-8601\": \"2018/01/18\",\n\t\t\"commit-sha\": \"ad6b6c6523ee21cada11be5f7ea4d99abc530726\"\n\t},\n\t\"SLDS-component-path\": \"/components/icons\",\n\t\"site-stories\": [\n\t\t{\n\t\t\t\"heading\": \"Category Options\",\n\t\t\t\"path\": \"/__examples__/categories.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Color Options\",\n\t\t\t\"path\": \"/__examples__/colors.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Size Options\",\n\t\t\t\"path\": \"/__examples__/sizes.jsx\"\n\t\t}\n\t],\n\t\"url-slug\": \"icons\"\n}\n"],"mappings":""}
@@ -2,61 +2,59 @@ import { ICON as e } from "../../utilities/constants.js";
2
2
  import t from "../utilities/utility-icon/index.js";
3
3
  import n from "../../utilities/class-names.js";
4
4
  import r from "../../utilities/product-tokens/icon-backgrounds.js";
5
- import "react";
6
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ import i from "./check-props.js";
6
+ import a from "./component.js";
7
+ import { useEffect as o } from "react";
8
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
9
  //#region components/icon/index.tsx
8
- var o = {
10
+ var l = {
9
11
  assistiveText: {},
10
12
  category: "standard",
11
13
  colorVariant: "default",
12
14
  size: "medium"
13
- }, s = ({ category: e = o.category, className: s, colorVariant: c = o.colorVariant, containerClassName: l, containerStyle: u, icon: d, inverse: f, name: p, path: m, size: h = o.size, title: g, productTheme: _, assistiveText: v = o.assistiveText, style: y }) => {
14
- let b = y;
15
- _ && r[_] && (b = {
16
- backgroundColor: r[_],
17
- ...y
18
- });
19
- let x;
20
- if (typeof v == "string") x = v;
21
- else {
22
- let e = o.assistiveText;
23
- x = v?.label ?? e?.label;
24
- }
25
- let S = p ? p.replace(/_/g, "-") : "", C = n({
26
- "slds-icon_container": e !== "utility",
27
- "slds-icon_container_circle": e === "action",
28
- [`slds-icon-${e}-${S}`]: e !== "utility" && e !== "doctype" && !m
29
- }, l);
30
- return /* @__PURE__ */ a("span", {
31
- className: C,
32
- style: u,
33
- title: g,
34
- children: [/* @__PURE__ */ i(t, {
15
+ }, u = ({ category: u = l.category, className: d, colorVariant: f = l.colorVariant, containerClassName: p, containerStyle: m, icon: h, inverse: g, name: _, path: v, size: y = l.size, title: b, productTheme: x, assistiveText: S = l.assistiveText, style: C }) => {
16
+ let w = C;
17
+ x && r[x] && (w = {
18
+ backgroundColor: r[x],
19
+ ...C
20
+ }), o(() => {
21
+ i(e, { assistiveText: S }, a);
22
+ }, [S]);
23
+ let T = typeof S == "object" ? S?.label ?? l.assistiveText.label : void 0, E = _ ? _.replace(/_/g, "-") : "", D = n({
24
+ "slds-icon_container": u !== "utility",
25
+ "slds-icon_container_circle": u === "action",
26
+ [`slds-icon-${u}-${E}`]: u !== "utility" && u !== "doctype" && !v
27
+ }, p);
28
+ return /* @__PURE__ */ c("span", {
29
+ className: D,
30
+ style: m,
31
+ title: b,
32
+ children: [/* @__PURE__ */ s(t, {
35
33
  "aria-hidden": !0,
36
- category: e,
37
- className: n(s, "slds-icon", {
38
- "slds-icon_xx-small": h === "xx-small",
39
- "slds-icon_x-small": h === "x-small",
40
- "slds-icon_small": h === "small",
41
- "slds-icon_large": h === "large",
42
- "slds-icon-text-default": c === "default" && e === "utility" ? !f : f,
43
- "slds-icon-text-success": c === "success",
44
- "slds-icon-text-warning": c === "warning",
45
- "slds-icon-text-error": c === "error",
46
- "slds-icon-text-light": c === "light"
34
+ category: u,
35
+ className: n(d, "slds-icon", {
36
+ "slds-icon_xx-small": y === "xx-small",
37
+ "slds-icon_x-small": y === "x-small",
38
+ "slds-icon_small": y === "small",
39
+ "slds-icon_large": y === "large",
40
+ "slds-icon-text-default": f === "default" && u === "utility" ? !g : g,
41
+ "slds-icon-text-success": f === "success",
42
+ "slds-icon-text-warning": f === "warning",
43
+ "slds-icon-text-error": f === "error",
44
+ "slds-icon-text-light": f === "light"
47
45
  }),
48
- icon: d,
49
- name: p,
50
- path: m,
51
- style: b
52
- }), x ? /* @__PURE__ */ i("span", {
46
+ icon: h,
47
+ name: _,
48
+ path: v,
49
+ style: w
50
+ }), T ? /* @__PURE__ */ s("span", {
53
51
  className: "slds-assistive-text",
54
- children: x
52
+ children: T
55
53
  }) : null]
56
54
  });
57
55
  };
58
- s.displayName = e;
56
+ u.displayName = e;
59
57
  //#endregion
60
- export { s as default };
58
+ export { u as default };
61
59
 
62
60
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../components/icon/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { type CSSProperties } from 'react';\nimport classNames from '../../utilities/class-names';\nimport UtilityIcon, { type InlineIconData } from '../utilities/utility-icon/index';\nimport IconBackgrounds from '../../utilities/product-tokens/icon-backgrounds';\nimport { ICON } from '../../utilities/constants';\nimport type { IconCategory } from '../../types/common';\n\n/**\n * Icon color variant types\n */\nexport type IconColorVariant = 'base' | 'default' | 'error' | 'light' | 'warning' | 'success';\n\n/**\n * Icon size types\n */\nexport type IconSize = 'xx-small' | 'x-small' | 'small' | 'medium' | 'large';\n\n/**\n * Product theme types for icon backgrounds\n */\nexport type ProductTheme =\n\t| 'global-setup'\n\t| 'service-cloud'\n\t| 'industry-cloud'\n\t| 'sales-cloud'\n\t| 'commerce-cloud'\n\t| 'community-cloud'\n\t| 'marketing-cloud'\n\t| 'quip';\n\n/**\n * Props for the Icon component\n */\nexport interface IconProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: { label?: string } | string;\n\t/** Icon category from SLDS */\n\tcategory?: IconCategory;\n\t/** CSS classes for the SVG element */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Icon color variant */\n\tcolorVariant?: IconColorVariant;\n\t/** CSS classes for the container span */\n\tcontainerClassName?: string | string[] | Record<string, boolean>;\n\t/** Styles for the container span */\n\tcontainerStyle?: CSSProperties;\n\t/** Custom SVG icon data */\n\ticon?: InlineIconData;\n\t/** Invert colors for dark backgrounds */\n\tinverse?: boolean;\n\t/** Name of the icon */\n\tname?: string;\n\t/** Direct path to the icon sprite */\n\tpath?: string;\n\t/** Background theme color (only for standard category) */\n\tproductTheme?: ProductTheme;\n\t/** Size of the icon */\n\tsize?: IconSize;\n\t/** Custom styles for the SVG */\n\tstyle?: CSSProperties;\n\t/** HTML title attribute for the container */\n\ttitle?: string;\n}\n\nconst defaultProps: Required<Pick<IconProps, 'assistiveText' | 'category' | 'colorVariant' | 'size'>> = {\n\tassistiveText: {},\n\tcategory: 'standard',\n\tcolorVariant: 'default',\n\tsize: 'medium',\n};\n\n/**\n * The Icon component is the Lightning Design System Icon component and should be used for naked icons.\n * For icons that are buttons, use the Button component with `variant='icon'`.\n */\nconst Icon = ({\n\tcategory = defaultProps.category,\n\tclassName,\n\tcolorVariant = defaultProps.colorVariant,\n\tcontainerClassName,\n\tcontainerStyle,\n\ticon,\n\tinverse,\n\tname,\n\tpath,\n\tsize = defaultProps.size,\n\ttitle,\n\tproductTheme,\n\tassistiveText = defaultProps.assistiveText,\n\tstyle,\n}: IconProps): React.ReactElement => {\n\tlet styleOverride = style;\n\tif (productTheme && IconBackgrounds[productTheme]) {\n\t\tstyleOverride = {\n\t\t\tbackgroundColor: IconBackgrounds[productTheme],\n\t\t\t...style,\n\t\t};\n\t}\n\n\tlet mergedAssistiveText: string | undefined;\n\tif (typeof assistiveText === 'string') {\n\t\tmergedAssistiveText = assistiveText;\n\t} else {\n\t\tconst defaultText = defaultProps.assistiveText as { label?: string };\n\t\tconst propsText = assistiveText as { label?: string };\n\t\tmergedAssistiveText = propsText?.label ?? defaultText?.label;\n\t}\n\n\tconst kebabCaseName = name ? name.replace(/_/g, '-') : '';\n\n\tconst containerClasses = classNames(\n\t\t{\n\t\t\t'slds-icon_container': category !== 'utility',\n\t\t\t'slds-icon_container_circle': category === 'action',\n\t\t\t[`slds-icon-${category}-${kebabCaseName}`]:\n\t\t\t\tcategory !== 'utility' && category !== 'doctype' && !path,\n\t\t},\n\t\tcontainerClassName as string\n\t);\n\n\treturn (\n\t\t<span\n\t\t\tclassName={containerClasses}\n\t\t\tstyle={containerStyle}\n\t\t\ttitle={title}\n\t\t>\n\t\t\t<UtilityIcon\n\t\t\t\taria-hidden={true}\n\t\t\t\tcategory={category}\n\t\t\t\tclassName={classNames(className, 'slds-icon', {\n\t\t\t\t\t'slds-icon_xx-small': size === 'xx-small',\n\t\t\t\t\t'slds-icon_x-small': size === 'x-small',\n\t\t\t\t\t'slds-icon_small': size === 'small',\n\t\t\t\t\t// medium intentionally not present\n\t\t\t\t\t'slds-icon_large': size === 'large',\n\t\t\t\t\t// Color logic for utility vs other categories\n\t\t\t\t\t'slds-icon-text-default':\n\t\t\t\t\t\tcolorVariant === 'default' && category === 'utility'\n\t\t\t\t\t\t\t? !inverse\n\t\t\t\t\t\t\t: inverse,\n\t\t\t\t\t'slds-icon-text-success': colorVariant === 'success',\n\t\t\t\t\t'slds-icon-text-warning': colorVariant === 'warning',\n\t\t\t\t\t'slds-icon-text-error': colorVariant === 'error',\n\t\t\t\t\t'slds-icon-text-light': colorVariant === 'light',\n\t\t\t\t}) as string}\n\t\t\t\ticon={icon}\n\t\t\t\tname={name}\n\t\t\t\tpath={path}\n\t\t\t\tstyle={styleOverride}\n\t\t\t/>\n\t\t\t{mergedAssistiveText ? (\n\t\t\t\t<span className=\"slds-assistive-text\">{mergedAssistiveText}</span>\n\t\t\t) : null}\n\t\t</span>\n\t);\n};\n\nIcon.displayName = ICON;\n\nexport default Icon;\n\n"],"mappings":";;;;;;;AAmEA,IAAM,IAAkG;CACvG,eAAe,CAAC;CAChB,UAAU;CACV,cAAc;CACd,MAAM;AACP,GAMM,KAAQ,EACb,cAAW,EAAa,UACxB,cACA,kBAAe,EAAa,cAC5B,uBACA,mBACA,SACA,YACA,SACA,SACA,UAAO,EAAa,MACpB,UACA,iBACA,mBAAgB,EAAa,eAC7B,eACoC;CACpC,IAAI,IAAgB;CACpB,AAAI,KAAgB,EAAgB,OACnC,IAAgB;EACf,iBAAiB,EAAgB;EACjC,GAAG;CACJ;CAGD,IAAI;CACJ,IAAI,OAAO,KAAkB,UAC5B,IAAsB;MAChB;EACN,IAAM,IAAc,EAAa;EAEjC,IAAsB,GAAW,SAAS,GAAa;CACxD;CAEA,IAAM,IAAgB,IAAO,EAAK,QAAQ,MAAM,GAAG,IAAI,IAEjD,IAAmB,EACxB;EACC,uBAAuB,MAAa;EACpC,8BAA8B,MAAa;GAC1C,aAAa,EAAS,GAAG,MACzB,MAAa,aAAa,MAAa,aAAa,CAAC;CACvD,GACA,CACD;CAEA,OACC,kBAAC,QAAD;EACC,WAAW;EACX,OAAO;EACA;EAHR,UAAA,CAKC,kBAAC,GAAD;GACC,eAAa;GACH;GACV,WAAW,EAAW,GAAW,aAAa;IAC7C,sBAAsB,MAAS;IAC/B,qBAAqB,MAAS;IAC9B,mBAAmB,MAAS;IAE5B,mBAAmB,MAAS;IAE5B,0BACC,MAAiB,aAAa,MAAa,YACxC,CAAC,IACD;IACJ,0BAA0B,MAAiB;IAC3C,0BAA0B,MAAiB;IAC3C,wBAAwB,MAAiB;IACzC,wBAAwB,MAAiB;GAC1C,CAAC;GACK;GACA;GACA;GACN,OAAO;EACP,CAAA,GACA,IACA,kBAAC,QAAD;GAAM,WAAU;GAAuB,UAAA;EAA0B,CAAA,IAC9D,IACC;;AAER;AAEA,EAAK,cAAc"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../components/icon/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useEffect, type CSSProperties } from 'react';\nimport classNames from '../../utilities/class-names';\nimport UtilityIcon, {\n\ttype InlineIconData,\n} from '../utilities/utility-icon/index';\nimport IconBackgrounds from '../../utilities/product-tokens/icon-backgrounds';\nimport { ICON } from '../../utilities/constants';\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\nimport type { IconCategory } from '../../types/common';\n\n/**\n * Icon color variant types\n */\nexport type IconColorVariant =\n\t'base' | 'default' | 'error' | 'light' | 'warning' | 'success';\n\n/**\n * Icon size types\n */\nexport type IconSize = 'xx-small' | 'x-small' | 'small' | 'medium' | 'large';\n\n/**\n * Product theme types for icon backgrounds\n */\nexport type ProductTheme =\n\t| 'global-setup'\n\t| 'service-cloud'\n\t| 'industry-cloud'\n\t| 'sales-cloud'\n\t| 'commerce-cloud'\n\t| 'community-cloud'\n\t| 'marketing-cloud'\n\t| 'quip';\n\n/**\n * Props for the Icon component\n */\nexport interface IconProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: { label?: string };\n\t/** Icon category from SLDS */\n\tcategory?: IconCategory;\n\t/** CSS classes for the SVG element */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Icon color variant */\n\tcolorVariant?: IconColorVariant;\n\t/** CSS classes for the container span */\n\tcontainerClassName?: string | string[] | Record<string, boolean>;\n\t/** Styles for the container span */\n\tcontainerStyle?: CSSProperties;\n\t/** Custom SVG icon data */\n\ticon?: InlineIconData;\n\t/** Invert colors for dark backgrounds */\n\tinverse?: boolean;\n\t/** Name of the icon */\n\tname?: string;\n\t/** Direct path to the icon sprite */\n\tpath?: string;\n\t/** Background theme color (only for standard category) */\n\tproductTheme?: ProductTheme;\n\t/** Size of the icon */\n\tsize?: IconSize;\n\t/** Custom styles for the SVG */\n\tstyle?: CSSProperties;\n\t/** HTML title attribute for the container */\n\ttitle?: string;\n}\n\nconst defaultProps: Required<\n\tPick<IconProps, 'assistiveText' | 'category' | 'colorVariant' | 'size'>\n> = {\n\tassistiveText: {},\n\tcategory: 'standard',\n\tcolorVariant: 'default',\n\tsize: 'medium',\n};\n\n/**\n * The Icon component is the Lightning Design System Icon component and should be used for naked icons.\n * For icons that are buttons, use the Button component with `variant='icon'`.\n */\nconst Icon = ({\n\tcategory = defaultProps.category,\n\tclassName,\n\tcolorVariant = defaultProps.colorVariant,\n\tcontainerClassName,\n\tcontainerStyle,\n\ticon,\n\tinverse,\n\tname,\n\tpath,\n\tsize = defaultProps.size,\n\ttitle,\n\tproductTheme,\n\tassistiveText = defaultProps.assistiveText,\n\tstyle,\n}: IconProps): React.ReactElement => {\n\tlet styleOverride = style;\n\tif (productTheme && IconBackgrounds[productTheme]) {\n\t\tstyleOverride = {\n\t\t\tbackgroundColor: IconBackgrounds[productTheme],\n\t\t\t...style,\n\t\t};\n\t}\n\n\tuseEffect(() => {\n\t\tcheckProps(ICON, { assistiveText }, componentDoc);\n\t}, [assistiveText]);\n\n\t// A string `assistiveText` was removed in v11; it is ignored and warns.\n\tconst mergedAssistiveText =\n\t\ttypeof assistiveText === 'object'\n\t\t\t? (assistiveText?.label ?? defaultProps.assistiveText.label)\n\t\t\t: undefined;\n\n\tconst kebabCaseName = name ? name.replace(/_/g, '-') : '';\n\n\tconst containerClasses = classNames(\n\t\t{\n\t\t\t'slds-icon_container': category !== 'utility',\n\t\t\t'slds-icon_container_circle': category === 'action',\n\t\t\t[`slds-icon-${category}-${kebabCaseName}`]:\n\t\t\t\tcategory !== 'utility' && category !== 'doctype' && !path,\n\t\t},\n\t\tcontainerClassName as string\n\t);\n\n\treturn (\n\t\t<span className={containerClasses} style={containerStyle} title={title}>\n\t\t\t<UtilityIcon\n\t\t\t\taria-hidden={true}\n\t\t\t\tcategory={category}\n\t\t\t\tclassName={\n\t\t\t\t\tclassNames(className, 'slds-icon', {\n\t\t\t\t\t\t'slds-icon_xx-small': size === 'xx-small',\n\t\t\t\t\t\t'slds-icon_x-small': size === 'x-small',\n\t\t\t\t\t\t'slds-icon_small': size === 'small',\n\t\t\t\t\t\t// medium intentionally not present\n\t\t\t\t\t\t'slds-icon_large': size === 'large',\n\t\t\t\t\t\t// Color logic for utility vs other categories\n\t\t\t\t\t\t'slds-icon-text-default':\n\t\t\t\t\t\t\tcolorVariant === 'default' && category === 'utility'\n\t\t\t\t\t\t\t\t? !inverse\n\t\t\t\t\t\t\t\t: inverse,\n\t\t\t\t\t\t'slds-icon-text-success': colorVariant === 'success',\n\t\t\t\t\t\t'slds-icon-text-warning': colorVariant === 'warning',\n\t\t\t\t\t\t'slds-icon-text-error': colorVariant === 'error',\n\t\t\t\t\t\t'slds-icon-text-light': colorVariant === 'light',\n\t\t\t\t\t}) as string\n\t\t\t\t}\n\t\t\t\ticon={icon}\n\t\t\t\tname={name}\n\t\t\t\tpath={path}\n\t\t\t\tstyle={styleOverride}\n\t\t\t/>\n\t\t\t{mergedAssistiveText ? (\n\t\t\t\t<span className=\"slds-assistive-text\">{mergedAssistiveText}</span>\n\t\t\t) : null}\n\t\t</span>\n\t);\n};\n\nIcon.displayName = ICON;\n\nexport default Icon;\n"],"mappings":";;;;;;;;;AAwEA,IAAM,IAEF;CACH,eAAe,CAAC;CAChB,UAAU;CACV,cAAc;CACd,MAAM;AACP,GAMM,KAAQ,EACb,cAAW,EAAa,UACxB,cACA,kBAAe,EAAa,cAC5B,uBACA,mBACA,SACA,YACA,SACA,SACA,UAAO,EAAa,MACpB,UACA,iBACA,mBAAgB,EAAa,eAC7B,eACoC;CACpC,IAAI,IAAgB;CAQpB,AAPI,KAAgB,EAAgB,OACnC,IAAgB;EACf,iBAAiB,EAAgB;EACjC,GAAG;CACJ,IAGD,QAAgB;EACf,EAAW,GAAM,EAAE,iBAAc,GAAG,CAAY;CACjD,GAAG,CAAC,CAAa,CAAC;CAGlB,IAAM,IACL,OAAO,KAAkB,WACrB,GAAe,SAAS,EAAa,cAAc,QACpD,KAAA,GAEE,IAAgB,IAAO,EAAK,QAAQ,MAAM,GAAG,IAAI,IAEjD,IAAmB,EACxB;EACC,uBAAuB,MAAa;EACpC,8BAA8B,MAAa;GAC1C,aAAa,EAAS,GAAG,MACzB,MAAa,aAAa,MAAa,aAAa,CAAC;CACvD,GACA,CACD;CAEA,OACC,kBAAC,QAAD;EAAM,WAAW;EAAkB,OAAO;EAAuB;EAAjE,UAAA,CACC,kBAAC,GAAD;GACC,eAAa;GACH;GACV,WACC,EAAW,GAAW,aAAa;IAClC,sBAAsB,MAAS;IAC/B,qBAAqB,MAAS;IAC9B,mBAAmB,MAAS;IAE5B,mBAAmB,MAAS;IAE5B,0BACC,MAAiB,aAAa,MAAa,YACxC,CAAC,IACD;IACJ,0BAA0B,MAAiB;IAC3C,0BAA0B,MAAiB;IAC3C,wBAAwB,MAAiB;IACzC,wBAAwB,MAAiB;GAC1C,CAAC;GAEI;GACA;GACA;GACN,OAAO;EACP,CAAA,GACA,IACA,kBAAC,QAAD;GAAM,WAAU;GAAuB,UAAA;EAA0B,CAAA,IAC9D,IACC;;AAER;AAEA,EAAK,cAAc"}
@@ -7,10 +7,10 @@ import { jsx as i } from "react/jsx-runtime";
7
7
  import a from "lodash.isfunction";
8
8
  //#region components/icon/input-icon/index.tsx
9
9
  var o = ({ category: e = "utility", variant: o = "base", iconPosition: s, name: c, path: l, onClick: u, ...d }) => {
10
- let f = {
10
+ let f = d, p = {
11
11
  pointerEvents: "none",
12
- ...d.style
13
- }, p = {
12
+ ...f.style
13
+ }, m = {
14
14
  combobox: /* @__PURE__ */ i("span", {
15
15
  className: "slds-icon_container slds-input__icon slds-input__icon_right",
16
16
  style: { pointerEvents: "none" },
@@ -20,7 +20,7 @@ var o = ({ category: e = "utility", variant: o = "base", iconPosition: s, name:
20
20
  className: r("slds-icon slds-icon_x-small slds-icon-text-default"),
21
21
  name: c,
22
22
  path: l,
23
- ...d
23
+ ...f
24
24
  })
25
25
  }),
26
26
  base: /* @__PURE__ */ i(t, {
@@ -29,8 +29,8 @@ var o = ({ category: e = "utility", variant: o = "base", iconPosition: s, name:
29
29
  className: r("slds-input__icon slds-icon-text-default", { [`slds-input__icon_${s}`]: s }),
30
30
  name: c,
31
31
  path: l,
32
- ...d,
33
- style: f
32
+ ...f,
33
+ style: p
34
34
  })
35
35
  };
36
36
  return a(u) ? /* @__PURE__ */ i(n, {
@@ -40,8 +40,8 @@ var o = ({ category: e = "utility", variant: o = "base", iconPosition: s, name:
40
40
  iconPath: l,
41
41
  onClick: u,
42
42
  variant: "icon",
43
- ...d
44
- }) : p[o];
43
+ ...f
44
+ }) : m[o];
45
45
  };
46
46
  o.displayName = e;
47
47
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../components/icon/input-icon/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// ### React\nimport React, { type MouseEvent } from 'react';\n\n// ### classNames\n// [github.com/JedWatson/classnames](https://github.com/JedWatson/classnames)\n// A simple javascript utility for conditionally joining classNames together.\nimport classNames from 'classnames';\n\n// ### isFunction\nimport isFunction from 'lodash.isfunction';\n\n// ## Children\nimport UtilityIcon from '../../utilities/utility-icon';\nimport Button from '../../button';\nimport type { IconCategory } from '../../../types/common';\n\n// ## Constants\nimport { ICON_INPUT } from '../../../utilities/constants';\n\nexport interface InputIconProps {\n\t/**\n\t * Icon category from [lightningdesignsystem.com/icons/](https://www.lightningdesignsystem.com/icons/)\n\t */\n\tcategory?: string;\n\t/**\n\t * This is only needed if an input contains two icons, the Input component handles this prop for you.\n\t */\n\ticonPosition?: 'left' | 'right';\n\t/**\n\t * Name of the icon. Visit <a href='http://www.lightningdesignsystem.com/resources/icons'>Lightning Design System Icons</a> to reference icon names.\n\t */\n\tname?: string;\n\t/**\n\t * Path to the icon. This will override any global icon settings.\n\t */\n\tpath?: string;\n\t/**\n\t * This event fires when the icon is clicked.\n\t */\n\tonClick?: (event: MouseEvent) => void;\n\t/**\n\t * Changes styles of the InputIcon.\n\t */\n\tvariant?: 'base' | 'combobox';\n\t[key: string]: unknown;\n}\n\n/**\n * A wrapper for icons that will be rendered inside of an Input\n *\n * If the `onClick` function prop is provided, the `design-system-react/components/button` component is used.\n * If not, the icon will be an instance of `design-system-react/components/utilities/utility-icon`.\n * Checkout out the appropriate component to see what props can be passed along via the `{...props}` rest operator\n */\nconst InputIcon = ({\n\tcategory = 'utility',\n\tvariant = 'base',\n\ticonPosition,\n\tname,\n\tpath,\n\tonClick,\n\t...rest\n}: InputIconProps): React.ReactElement => {\n\t// SLDS 1 let clicks pass through a decorative icon to the input with\n\t// `.slds-input-has-icon .slds-input__icon:not(button)`; SLDS 2 dropped it.\n\tconst passThroughStyle = {\n\t\tpointerEvents: 'none' as const,\n\t\t...(rest.style as React.CSSProperties | undefined),\n\t};\n\n\tconst variants: Record<'combobox' | 'base', React.ReactElement> = {\n\t\tcombobox: (\n\t\t\t<span\n\t\t\t\tclassName=\"slds-icon_container slds-input__icon slds-input__icon_right\"\n\t\t\t\tstyle={{ pointerEvents: 'none' }}\n\t\t\t>\n\t\t\t\t<UtilityIcon\n\t\t\t\t\taria-hidden\n\t\t\t\t\tcategory={category as IconCategory}\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-icon slds-icon_x-small slds-icon-text-default'\n\t\t\t\t\t)}\n\t\t\t\t\tname={name}\n\t\t\t\t\tpath={path}\n\t\t\t\t\t{...rest}\n\t\t\t\t/>\n\t\t\t</span>\n\t\t),\n\t\tbase: (\n\t\t\t<UtilityIcon\n\t\t\t\taria-hidden\n\t\t\t\tcategory={category as IconCategory}\n\t\t\t\tclassName={classNames('slds-input__icon slds-icon-text-default', {\n\t\t\t\t\t[`slds-input__icon_${iconPosition}`]: iconPosition,\n\t\t\t\t})}\n\t\t\t\tname={name}\n\t\t\t\tpath={path}\n\t\t\t\t{...rest}\n\t\t\t\tstyle={passThroughStyle}\n\t\t\t/>\n\t\t),\n\t};\n\n\treturn isFunction(onClick) ? (\n\t\t<Button\n\t\t\tclassName={classNames('slds-input__icon', {\n\t\t\t\t[`slds-input__icon_${iconPosition}`]: iconPosition,\n\t\t\t})}\n\t\t\ticonCategory={category as IconCategory}\n\t\t\ticonName={name}\n\t\t\ticonPath={path}\n\t\t\tonClick={onClick}\n\t\t\tvariant=\"icon\"\n\t\t\t{...rest}\n\t\t/>\n\t) : (\n\t\tvariants[variant]\n\t);\n};\n\nInputIcon.displayName = ICON_INPUT;\n\nexport default InputIcon;\n"],"mappings":";;;;;;;;AAyDA,IAAM,KAAa,EAClB,cAAW,WACX,aAAU,QACV,iBACA,SACA,SACA,YACA,GAAG,QACsC;CAGzC,IAAM,IAAmB;EACxB,eAAe;EACf,GAAI,EAAK;CACV,GAEM,IAA4D;EACjE,UACC,kBAAC,QAAD;GACC,WAAU;GACV,OAAO,EAAE,eAAe,OAAO;GAE/B,UAAA,kBAAC,GAAD;IACC,eAAA;IACU;IACV,WAAW,EACV,oDACD;IACM;IACA;IACN,GAAI;GACJ,CAAA;EACI,CAAA;EAEP,MACC,kBAAC,GAAD;GACC,eAAA;GACU;GACV,WAAW,EAAW,2CAA2C,GAC/D,oBAAoB,MAAiB,EACvC,CAAC;GACK;GACA;GACN,GAAI;GACJ,OAAO;EACP,CAAA;CAEH;CAEA,OAAO,EAAW,CAAO,IACxB,kBAAC,GAAD;EACC,WAAW,EAAW,oBAAoB,GACxC,oBAAoB,MAAiB,EACvC,CAAC;EACD,cAAc;EACd,UAAU;EACV,UAAU;EACD;EACT,SAAQ;EACR,GAAI;CACJ,CAAA,IAED,EAAS;AAEX;AAEA,EAAU,cAAc"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../components/icon/input-icon/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// ### React\nimport React, { type ButtonHTMLAttributes, type MouseEvent } from 'react';\n\n// ### classNames\n// [github.com/JedWatson/classnames](https://github.com/JedWatson/classnames)\n// A simple javascript utility for conditionally joining classNames together.\nimport classNames from 'classnames';\n\n// ### isFunction\nimport isFunction from 'lodash.isfunction';\n\n// ## Children\nimport UtilityIcon from '../../utilities/utility-icon';\nimport type { UtilityIconProps } from '../../utilities/utility-icon';\nimport Button from '../../button';\nimport type { IconCategory } from '../../../types/common';\n\n// ## Constants\nimport { ICON_INPUT } from '../../../utilities/constants';\n\ninterface InputIconBaseProps {\n\t/**\n\t * Icon category from [lightningdesignsystem.com/icons/](https://www.lightningdesignsystem.com/icons/)\n\t */\n\tcategory?: IconCategory;\n\t/**\n\t * This is only needed if an input contains two icons, the Input component handles this prop for you.\n\t */\n\ticonPosition?: 'left' | 'right';\n\t/**\n\t * Name of the icon. Visit <a href='http://www.lightningdesignsystem.com/resources/icons'>Lightning Design System Icons</a> to reference icon names.\n\t */\n\tname?: string;\n\t/**\n\t * Path to the icon. This will override any global icon settings.\n\t */\n\tpath?: string;\n\t/**\n\t * Changes styles of the InputIcon.\n\t */\n\tvariant?: 'base' | 'combobox';\n}\n\n/** A clickable icon, rendered as an icon `Button`. */\nexport interface InputIconClickableProps\n\textends\n\t\tInputIconBaseProps,\n\t\tOmit<\n\t\t\tButtonHTMLAttributes<HTMLButtonElement>,\n\t\t\t'children' | 'className' | 'onClick' | 'style' | 'title' | 'type'\n\t\t> {\n\t/** Assistive text for the icon button */\n\tassistiveText: { icon: string };\n\t/** This event fires when the icon is clicked. */\n\tonClick: (event: MouseEvent<HTMLButtonElement>) => void;\n\t/** Receives the button node */\n\tbuttonRef?: (node: HTMLButtonElement | null) => void;\n\ttype?: 'button' | 'submit' | 'reset';\n}\n\n/** A decorative icon, rendered as a `UtilityIcon`. */\nexport interface InputIconDecorativeProps\n\textends\n\t\tInputIconBaseProps,\n\t\tOmit<UtilityIconProps, 'category' | 'name' | 'path' | 'onClick'> {\n\tonClick?: undefined;\n\t/** Tooltip text */\n\ttitle?: string;\n}\n\n/** Props for InputIcon: `onClick` selects between a button and a decorative icon. */\nexport type InputIconProps = InputIconClickableProps | InputIconDecorativeProps;\n\n/**\n * A wrapper for icons that will be rendered inside of an Input\n *\n * If the `onClick` function prop is provided, the `design-system-react/components/button` component is used.\n * If not, the icon will be an instance of `design-system-react/components/utilities/utility-icon`.\n * Checkout out the appropriate component to see what props can be passed along via the `{...props}` rest operator\n */\nconst InputIcon = ({\n\tcategory = 'utility',\n\tvariant = 'base',\n\ticonPosition,\n\tname,\n\tpath,\n\tonClick,\n\t...restProps\n}: InputIconProps): React.ReactElement => {\n\tconst rest = restProps as Record<string, unknown>;\n\t// SLDS 1 let clicks pass through a decorative icon to the input with\n\t// `.slds-input-has-icon .slds-input__icon:not(button)`; SLDS 2 dropped it.\n\tconst passThroughStyle = {\n\t\tpointerEvents: 'none' as const,\n\t\t...(rest.style as React.CSSProperties | undefined),\n\t};\n\n\tconst variants: Record<'combobox' | 'base', React.ReactElement> = {\n\t\tcombobox: (\n\t\t\t<span\n\t\t\t\tclassName=\"slds-icon_container slds-input__icon slds-input__icon_right\"\n\t\t\t\tstyle={{ pointerEvents: 'none' }}\n\t\t\t>\n\t\t\t\t<UtilityIcon\n\t\t\t\t\taria-hidden\n\t\t\t\t\tcategory={category}\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-icon slds-icon_x-small slds-icon-text-default'\n\t\t\t\t\t)}\n\t\t\t\t\tname={name}\n\t\t\t\t\tpath={path}\n\t\t\t\t\t{...rest}\n\t\t\t\t/>\n\t\t\t</span>\n\t\t),\n\t\tbase: (\n\t\t\t<UtilityIcon\n\t\t\t\taria-hidden\n\t\t\t\tcategory={category}\n\t\t\t\tclassName={classNames('slds-input__icon slds-icon-text-default', {\n\t\t\t\t\t[`slds-input__icon_${iconPosition}`]: iconPosition,\n\t\t\t\t})}\n\t\t\t\tname={name}\n\t\t\t\tpath={path}\n\t\t\t\t{...rest}\n\t\t\t\tstyle={passThroughStyle}\n\t\t\t/>\n\t\t),\n\t};\n\n\treturn isFunction(onClick) ? (\n\t\t<Button\n\t\t\tclassName={classNames('slds-input__icon', {\n\t\t\t\t[`slds-input__icon_${iconPosition}`]: iconPosition,\n\t\t\t})}\n\t\t\ticonCategory={category}\n\t\t\ticonName={name}\n\t\t\ticonPath={path}\n\t\t\tonClick={onClick}\n\t\t\tvariant=\"icon\"\n\t\t\t{...rest}\n\t\t/>\n\t) : (\n\t\tvariants[variant]\n\t);\n};\n\nInputIcon.displayName = ICON_INPUT;\n\nexport default InputIcon;\n"],"mappings":";;;;;;;;AAmFA,IAAM,KAAa,EAClB,cAAW,WACX,aAAU,QACV,iBACA,SACA,SACA,YACA,GAAG,QACsC;CACzC,IAAM,IAAO,GAGP,IAAmB;EACxB,eAAe;EACf,GAAI,EAAK;CACV,GAEM,IAA4D;EACjE,UACC,kBAAC,QAAD;GACC,WAAU;GACV,OAAO,EAAE,eAAe,OAAO;GAE/B,UAAA,kBAAC,GAAD;IACC,eAAA;IACU;IACV,WAAW,EACV,oDACD;IACM;IACA;IACN,GAAI;GACJ,CAAA;EACI,CAAA;EAEP,MACC,kBAAC,GAAD;GACC,eAAA;GACU;GACV,WAAW,EAAW,2CAA2C,GAC/D,oBAAoB,MAAiB,EACvC,CAAC;GACK;GACA;GACN,GAAI;GACJ,OAAO;EACP,CAAA;CAEH;CAEA,OAAO,EAAW,CAAO,IACxB,kBAAC,GAAD;EACC,WAAW,EAAW,oBAAoB,GACxC,oBAAoB,MAAiB,EACvC,CAAC;EACD,cAAc;EACd,UAAU;EACV,UAAU;EACD;EACT,SAAQ;EACR,GAAI;CACJ,CAAA,IAED,EAAS;AAEX;AAEA,EAAU,cAAc"}