@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":"day.cjs","names":[],"sources":["../../../../../components/date-picker/private/day.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 SyntheticEvent } 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\nimport EventUtil from '../../../utilities/event';\nimport DateUtil from '../../../utilities/date';\nimport KEYS from '../../../utilities/key-code';\n\nimport { DIRECTIONS } from '../../utilities/UNSAFE_direction';\nimport LanguageDirection from '../../utilities/UNSAFE_direction/private/language-direction';\n\nexport interface DayProps {\n\t/** If elements within the calendar have focus */\n\tcalendarHasFocus?: boolean;\n\t/** Date of day */\n\tdate: Date;\n\t/** If date is disabled */\n\tdisabled?: boolean;\n\t/** Date used to create calendar that is displayed */\n\tinitialDateForCalendarRender: Date;\n\t/** Date that has focus */\n\tfocusedDate?: Date;\n\t/** Called when focus moves off calendar */\n\tonCalendarBlur: (event: SyntheticEvent, data: { direction: string }) => void;\n\t/** Called on next day keyboard navigation */\n\tonKeyboardNavigateToNextDay: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called on next week keyboard navigation */\n\tonKeyboardNavigateToNextWeek: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called on previous day keyboard navigation */\n\tonKeyboardNavigateToPreviousDay: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called on previous week keyboard navigation */\n\tonKeyboardNavigateToPreviousWeek: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called when internal focus date requested */\n\tonRequestInternalFocusDate?: (\n\t\tevent: SyntheticEvent | undefined,\n\t\tdata: { date: Date; ref?: HTMLElement | null; triggerCallback?: boolean }\n\t) => void;\n\t/** Called when a date is selected */\n\tonSelectDate: (event: SyntheticEvent, data: { date: Date }) => void;\n\t/** Currently selected date */\n\tselectedDate?: Date;\n\t/** Ref callback for selected date cell */\n\tselectedDateRef?: (ref: HTMLElement | null) => void;\n\t/** Label for today shortcut */\n\ttodayLabel: string;\n\t/** Text direction */\n\tdirection?: 'ltr' | 'rtl';\n}\n\ntype DayHandlerProps = Pick<\n\tDayProps,\n\t| 'date'\n\t| 'onCalendarBlur'\n\t| 'onSelectDate'\n\t| 'onKeyboardNavigateToPreviousDay'\n\t| 'onKeyboardNavigateToNextDay'\n\t| 'onKeyboardNavigateToPreviousWeek'\n\t| 'onKeyboardNavigateToNextWeek'\n\t| 'direction'\n>;\n\nconst handleClick = (\n\tevent: SyntheticEvent,\n\t{ date, onSelectDate }: Pick<DayProps, 'date' | 'onSelectDate'>\n) => {\n\tonSelectDate(event, { date });\n};\n\nconst handleKeyDown = (\n\tevent: React.KeyboardEvent,\n\t{\n\t\tdate,\n\t\tonCalendarBlur,\n\t\tonSelectDate,\n\t\tonKeyboardNavigateToPreviousDay,\n\t\tonKeyboardNavigateToNextDay,\n\t\tonKeyboardNavigateToPreviousWeek,\n\t\tonKeyboardNavigateToNextWeek,\n\t\tdirection,\n\t}: DayHandlerProps\n) => {\n\tconst keyDownCallbacks: Record<number, () => void> = {\n\t\t[KEYS.SPACE]: () => {\n\t\t\tonSelectDate(event, { date });\n\t\t},\n\t\t[KEYS.ENTER]: () => {\n\t\t\tonSelectDate(event, { date });\n\t\t},\n\t\t[KEYS.TAB]: () => {\n\t\t\tonCalendarBlur(event, { direction: 'next' });\n\t\t},\n\t\t[KEYS.LEFT]: () => {\n\t\t\tif (direction === DIRECTIONS.RTL) {\n\t\t\t\tonKeyboardNavigateToNextDay(event, { date });\n\t\t\t} else {\n\t\t\t\tonKeyboardNavigateToPreviousDay(event, { date });\n\t\t\t}\n\t\t},\n\t\t[KEYS.RIGHT]: () => {\n\t\t\tif (direction === DIRECTIONS.RTL) {\n\t\t\t\tonKeyboardNavigateToPreviousDay(event, { date });\n\t\t\t} else {\n\t\t\t\tonKeyboardNavigateToNextDay(event, { date });\n\t\t\t}\n\t\t},\n\t\t[KEYS.UP]: () => {\n\t\t\tonKeyboardNavigateToPreviousWeek(event, { date });\n\t\t},\n\t\t[KEYS.DOWN]: () => {\n\t\t\tonKeyboardNavigateToNextWeek(event, { date });\n\t\t},\n\t};\n\n\tconst shiftKeyDownCallbacks: Record<number, () => void> = {\n\t\t[KEYS.TAB]: () => {\n\t\t\tonCalendarBlur(event, { direction: 'previous' });\n\t\t},\n\t};\n\n\tif (event.keyCode) {\n\t\tif (event.shiftKey && keyDownCallbacks[event.keyCode]) {\n\t\t\tEventUtil.trapEvent(event);\n\t\t\tshiftKeyDownCallbacks[event.keyCode]();\n\t\t} else if (keyDownCallbacks[event.keyCode]) {\n\t\t\tEventUtil.trapEvent(event);\n\t\t\tkeyDownCallbacks[event.keyCode]();\n\t\t}\n\t}\n};\n\nconst DatepickerCalendarDay = (props: DayProps) => {\n\tconst isCurrentMonth = DateUtil.isSameMonth(\n\t\tprops.date,\n\t\tprops.initialDateForCalendarRender\n\t);\n\tconst isToday = DateUtil.isToday(props.date);\n\tconst isSelectedDay = DateUtil.isSameDay(props.date, props.selectedDate);\n\tconst isFirstDayOfMonth = DateUtil.isFirstDayOfMonth(props.date);\n\tconst isDisabled = !isCurrentMonth || props.disabled;\n\n\treturn (\n\t\t/* eslint-disable jsx-a11y/no-static-element-interactions */\n\t\t<td\n\t\t\taria-disabled={isDisabled}\n\t\t\taria-selected={isSelectedDay}\n\t\t\tclassName={classNames({\n\t\t\t\t'slds-is-today': isToday,\n\t\t\t\t'slds-disabled-text': isDisabled,\n\t\t\t\t'slds-is-selected': isSelectedDay,\n\t\t\t})}\n\t\t\tonClick={(event) => {\n\t\t\t\thandleClick(event, {\n\t\t\t\t\tdate: props.date,\n\t\t\t\t\tonSelectDate: props.onSelectDate,\n\t\t\t\t});\n\t\t\t}}\n\t\t\tonKeyDown={(event) => {\n\t\t\t\thandleKeyDown(event, {\n\t\t\t\t\t...props,\n\t\t\t\t});\n\t\t\t}}\n\t\t\tref={(component) => {\n\t\t\t\tif (isSelectedDay) {\n\t\t\t\t\tprops.selectedDateRef?.(component);\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\tprops.calendarHasFocus &&\n\t\t\t\t\tDateUtil.isSameDay(props.focusedDate, props.date) &&\n\t\t\t\t\tisCurrentMonth\n\t\t\t\t) {\n\t\t\t\t\tprops.onRequestInternalFocusDate?.(undefined, {\n\t\t\t\t\t\tdate: props.date,\n\t\t\t\t\t\tref: component,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}}\n\t\t\trole=\"gridcell\"\n\t\t\ttabIndex={\n\t\t\t\t!props.calendarHasFocus && isFirstDayOfMonth && isCurrentMonth ? 0 : -1\n\t\t\t}\n\t\t>\n\t\t\t{/* eslint-enable jsx-a11y/no-static-element-interactions */}\n\t\t\t<span className=\"slds-day\">\n\t\t\t\t{isToday ? (\n\t\t\t\t\t<span className=\"slds-assistive-text\">{`${props.todayLabel}: `}</span>\n\t\t\t\t) : null}\n\t\t\t\t{props.date.getDate()}\n\t\t\t</span>\n\t\t</td>\n\t);\n};\n\nDatepickerCalendarDay.displayName = 'SLDSDatepickerCalendarDay';\n\nexport default LanguageDirection(DatepickerCalendarDay);\n"],"mappings":"wbAgFA,IAAM,GACL,EACA,CAAE,OAAM,kBACJ,CACJ,EAAa,EAAO,CAAE,MAAK,CAAC,CAC7B,EAEM,GACL,EACA,CACC,OACA,iBACA,eACA,kCACA,8BACA,mCACA,+BACA,eAEG,CACJ,IAAM,EAA+C,EACnD,EAAA,QAAK,WAAc,CACnB,EAAa,EAAO,CAAE,MAAK,CAAC,CAC7B,GACC,EAAA,QAAK,WAAc,CACnB,EAAa,EAAO,CAAE,MAAK,CAAC,CAC7B,GACC,EAAA,QAAK,SAAY,CACjB,EAAe,EAAO,CAAE,UAAW,MAAO,CAAC,CAC5C,GACC,EAAA,QAAK,UAAa,CACd,IAAc,EAAA,WAAW,IAC5B,EAA4B,EAAO,CAAE,MAAK,CAAC,EAE3C,EAAgC,EAAO,CAAE,MAAK,CAAC,CAEjD,GACC,EAAA,QAAK,WAAc,CACf,IAAc,EAAA,WAAW,IAC5B,EAAgC,EAAO,CAAE,MAAK,CAAC,EAE/C,EAA4B,EAAO,CAAE,MAAK,CAAC,CAE7C,GACC,EAAA,QAAK,QAAW,CAChB,EAAiC,EAAO,CAAE,MAAK,CAAC,CACjD,GACC,EAAA,QAAK,UAAa,CAClB,EAA6B,EAAO,CAAE,MAAK,CAAC,CAC7C,CACD,EAEM,EAAoD,EACxD,EAAA,QAAK,SAAY,CACjB,EAAe,EAAO,CAAE,UAAW,UAAW,CAAC,CAChD,CACD,EAEI,EAAM,UACL,EAAM,UAAY,EAAiB,EAAM,UAC5C,EAAA,QAAU,UAAU,CAAK,EACzB,EAAsB,EAAM,QAAQ,CAAC,GAC3B,EAAiB,EAAM,WACjC,EAAA,QAAU,UAAU,CAAK,EACzB,EAAiB,EAAM,QAAQ,CAAC,GAGnC,EAEM,EAAyB,GAAoB,CAClD,IAAM,EAAiB,EAAA,QAAS,YAC/B,EAAM,KACN,EAAM,4BACP,EACM,EAAU,EAAA,QAAS,QAAQ,EAAM,IAAI,EACrC,EAAgB,EAAA,QAAS,UAAU,EAAM,KAAM,EAAM,YAAY,EACjE,EAAoB,EAAA,QAAS,kBAAkB,EAAM,IAAI,EACzD,EAAa,CAAC,GAAkB,EAAM,SAE5C,OAEC,EAAA,EAAA,IAAA,CAAC,KAAD,CACC,gBAAe,EACf,gBAAe,EACf,WAAA,EAAW,EAAA,QAAA,CAAW,CACrB,gBAAiB,EACjB,qBAAsB,EACtB,mBAAoB,CACrB,CAAC,EACD,QAAU,GAAU,CACnB,EAAY,EAAO,CAClB,KAAM,EAAM,KACZ,aAAc,EAAM,YACrB,CAAC,CACF,EACA,UAAY,GAAU,CACrB,EAAc,EAAO,CACpB,GAAG,CACJ,CAAC,CACF,EACA,IAAM,GAAc,CACf,GACH,EAAM,kBAAkB,CAAS,EAIjC,EAAM,kBACN,EAAA,QAAS,UAAU,EAAM,YAAa,EAAM,IAAI,GAChD,GAEA,EAAM,6BAA6B,IAAA,GAAW,CAC7C,KAAM,EAAM,KACZ,IAAK,CACN,CAAC,CAEH,EACA,KAAK,WACL,SACC,CAAC,EAAM,kBAAoB,GAAqB,EAAiB,EAAI,GAItE,UAAA,EAAA,EAAA,KAAA,CAAC,OAAD,CAAM,UAAU,WAAhB,SAAA,CACE,GACA,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,sBAAuB,SAAA,GAAG,EAAM,WAAW,GAAU,CAAA,EAClE,KACH,EAAM,KAAK,QAAQ,CACf,GACH,CAAA,CAEN,EAEA,EAAsB,YAAc,4BAEpC,IAAA,EAAe,EAAA,QAAkB,CAAqB"}
1
+ {"version":3,"file":"day.cjs","names":[],"sources":["../../../../../components/date-picker/private/day.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 type { DatePickerFocusDirection } from '../date-picker';\nimport React, { type SyntheticEvent } 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\nimport EventUtil from '../../../utilities/event';\nimport DateUtil from '../../../utilities/date';\nimport KEYS from '../../../utilities/key-code';\n\nimport { DIRECTIONS } from '../../utilities/UNSAFE_direction';\nimport LanguageDirection from '../../utilities/UNSAFE_direction/private/language-direction';\n\nexport interface DayProps {\n\t/** If elements within the calendar have focus */\n\tcalendarHasFocus?: boolean;\n\t/** Date of day */\n\tdate: Date;\n\t/** If date is disabled */\n\tdisabled?: boolean;\n\t/** Date used to create calendar that is displayed */\n\tinitialDateForCalendarRender: Date;\n\t/** Date that has focus */\n\tfocusedDate?: Date;\n\t/** Called when focus moves off calendar */\n\tonCalendarBlur: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { direction: DatePickerFocusDirection }\n\t) => void;\n\t/** Called on next day keyboard navigation */\n\tonKeyboardNavigateToNextDay: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called on next week keyboard navigation */\n\tonKeyboardNavigateToNextWeek: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called on previous day keyboard navigation */\n\tonKeyboardNavigateToPreviousDay: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called on previous week keyboard navigation */\n\tonKeyboardNavigateToPreviousWeek: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called when internal focus date requested */\n\tonRequestInternalFocusDate?: (\n\t\tevent: SyntheticEvent | undefined,\n\t\tdata: { date: Date; ref?: HTMLElement | null; triggerCallback?: boolean }\n\t) => void;\n\t/** Called when a date is selected */\n\tonSelectDate: (event: SyntheticEvent, data: { date: Date }) => void;\n\t/** Currently selected date */\n\tselectedDate?: Date;\n\t/** Ref callback for selected date cell */\n\tselectedDateRef?: (ref: HTMLElement | null) => void;\n\t/** Label for today shortcut */\n\ttodayLabel: string;\n\t/** Text direction */\n\tdirection?: 'ltr' | 'rtl';\n}\n\ntype DayHandlerProps = Pick<\n\tDayProps,\n\t| 'date'\n\t| 'onCalendarBlur'\n\t| 'onSelectDate'\n\t| 'onKeyboardNavigateToPreviousDay'\n\t| 'onKeyboardNavigateToNextDay'\n\t| 'onKeyboardNavigateToPreviousWeek'\n\t| 'onKeyboardNavigateToNextWeek'\n\t| 'direction'\n>;\n\nconst handleClick = (\n\tevent: SyntheticEvent,\n\t{ date, onSelectDate }: Pick<DayProps, 'date' | 'onSelectDate'>\n) => {\n\tonSelectDate(event, { date });\n};\n\nconst handleKeyDown = (\n\tevent: React.KeyboardEvent,\n\t{\n\t\tdate,\n\t\tonCalendarBlur,\n\t\tonSelectDate,\n\t\tonKeyboardNavigateToPreviousDay,\n\t\tonKeyboardNavigateToNextDay,\n\t\tonKeyboardNavigateToPreviousWeek,\n\t\tonKeyboardNavigateToNextWeek,\n\t\tdirection,\n\t}: DayHandlerProps\n) => {\n\tconst keyDownCallbacks: Record<number, () => void> = {\n\t\t[KEYS.SPACE]: () => {\n\t\t\tonSelectDate(event, { date });\n\t\t},\n\t\t[KEYS.ENTER]: () => {\n\t\t\tonSelectDate(event, { date });\n\t\t},\n\t\t[KEYS.TAB]: () => {\n\t\t\tonCalendarBlur(event, { direction: 'next' });\n\t\t},\n\t\t[KEYS.LEFT]: () => {\n\t\t\tif (direction === DIRECTIONS.RTL) {\n\t\t\t\tonKeyboardNavigateToNextDay(event, { date });\n\t\t\t} else {\n\t\t\t\tonKeyboardNavigateToPreviousDay(event, { date });\n\t\t\t}\n\t\t},\n\t\t[KEYS.RIGHT]: () => {\n\t\t\tif (direction === DIRECTIONS.RTL) {\n\t\t\t\tonKeyboardNavigateToPreviousDay(event, { date });\n\t\t\t} else {\n\t\t\t\tonKeyboardNavigateToNextDay(event, { date });\n\t\t\t}\n\t\t},\n\t\t[KEYS.UP]: () => {\n\t\t\tonKeyboardNavigateToPreviousWeek(event, { date });\n\t\t},\n\t\t[KEYS.DOWN]: () => {\n\t\t\tonKeyboardNavigateToNextWeek(event, { date });\n\t\t},\n\t};\n\n\tconst shiftKeyDownCallbacks: Record<number, () => void> = {\n\t\t[KEYS.TAB]: () => {\n\t\t\tonCalendarBlur(event, { direction: 'previous' });\n\t\t},\n\t};\n\n\tif (event.keyCode) {\n\t\tif (event.shiftKey && keyDownCallbacks[event.keyCode]) {\n\t\t\tEventUtil.trapEvent(event);\n\t\t\tshiftKeyDownCallbacks[event.keyCode]();\n\t\t} else if (keyDownCallbacks[event.keyCode]) {\n\t\t\tEventUtil.trapEvent(event);\n\t\t\tkeyDownCallbacks[event.keyCode]();\n\t\t}\n\t}\n};\n\nconst DatepickerCalendarDay = (props: DayProps) => {\n\tconst isCurrentMonth = DateUtil.isSameMonth(\n\t\tprops.date,\n\t\tprops.initialDateForCalendarRender\n\t);\n\tconst isToday = DateUtil.isToday(props.date);\n\tconst isSelectedDay = DateUtil.isSameDay(props.date, props.selectedDate);\n\tconst isFirstDayOfMonth = DateUtil.isFirstDayOfMonth(props.date);\n\tconst isDisabled = !isCurrentMonth || props.disabled;\n\n\treturn (\n\t\t/* eslint-disable jsx-a11y/no-static-element-interactions */\n\t\t<td\n\t\t\taria-disabled={isDisabled}\n\t\t\taria-selected={isSelectedDay}\n\t\t\tclassName={classNames({\n\t\t\t\t'slds-is-today': isToday,\n\t\t\t\t'slds-disabled-text': isDisabled,\n\t\t\t\t'slds-is-selected': isSelectedDay,\n\t\t\t})}\n\t\t\tonClick={(event) => {\n\t\t\t\thandleClick(event, {\n\t\t\t\t\tdate: props.date,\n\t\t\t\t\tonSelectDate: props.onSelectDate,\n\t\t\t\t});\n\t\t\t}}\n\t\t\tonKeyDown={(event) => {\n\t\t\t\thandleKeyDown(event, {\n\t\t\t\t\t...props,\n\t\t\t\t});\n\t\t\t}}\n\t\t\tref={(component) => {\n\t\t\t\tif (isSelectedDay) {\n\t\t\t\t\tprops.selectedDateRef?.(component);\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\tprops.calendarHasFocus &&\n\t\t\t\t\tDateUtil.isSameDay(props.focusedDate, props.date) &&\n\t\t\t\t\tisCurrentMonth\n\t\t\t\t) {\n\t\t\t\t\tprops.onRequestInternalFocusDate?.(undefined, {\n\t\t\t\t\t\tdate: props.date,\n\t\t\t\t\t\tref: component,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}}\n\t\t\trole=\"gridcell\"\n\t\t\ttabIndex={\n\t\t\t\t!props.calendarHasFocus && isFirstDayOfMonth && isCurrentMonth ? 0 : -1\n\t\t\t}\n\t\t>\n\t\t\t{/* eslint-enable jsx-a11y/no-static-element-interactions */}\n\t\t\t<span className=\"slds-day\">\n\t\t\t\t{isToday ? (\n\t\t\t\t\t<span className=\"slds-assistive-text\">{`${props.todayLabel}: `}</span>\n\t\t\t\t) : null}\n\t\t\t\t{props.date.getDate()}\n\t\t\t</span>\n\t\t</td>\n\t);\n};\n\nDatepickerCalendarDay.displayName = 'SLDSDatepickerCalendarDay';\n\nexport default LanguageDirection(DatepickerCalendarDay);\n"],"mappings":"wbAoFA,IAAM,GACL,EACA,CAAE,OAAM,kBACJ,CACJ,EAAa,EAAO,CAAE,MAAK,CAAC,CAC7B,EAEM,GACL,EACA,CACC,OACA,iBACA,eACA,kCACA,8BACA,mCACA,+BACA,eAEG,CACJ,IAAM,EAA+C,EACnD,EAAA,QAAK,WAAc,CACnB,EAAa,EAAO,CAAE,MAAK,CAAC,CAC7B,GACC,EAAA,QAAK,WAAc,CACnB,EAAa,EAAO,CAAE,MAAK,CAAC,CAC7B,GACC,EAAA,QAAK,SAAY,CACjB,EAAe,EAAO,CAAE,UAAW,MAAO,CAAC,CAC5C,GACC,EAAA,QAAK,UAAa,CACd,IAAc,EAAA,WAAW,IAC5B,EAA4B,EAAO,CAAE,MAAK,CAAC,EAE3C,EAAgC,EAAO,CAAE,MA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,EAAM,IAAI,GAChD,GAEA,EAAM,6BAA6B,IAAA,GAAW,CAC7C,KAAM,EAAM,KACZ,IAAK,CACN,CAAC,CAEH,EACA,KAAK,WACL,SACC,CAAC,EAAM,kBAAoB,GAAqB,EAAiB,EAAI,GAItE,UAAA,EAAA,EAAA,KAAA,CAAC,OAAD,CAAM,UAAU,WAAhB,SAAA,CACE,GACA,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,sBAAuB,SAAA,GAAG,EAAM,WAAW,GAAU,CAAA,EAClE,KACH,EAAM,KAAK,QAAQ,CACf,GACH,CAAA,CAEN,EAEA,EAAsB,YAAc,4BAEpC,IAAA,EAAe,EAAA,QAAkB,CAAqB"}
@@ -1 +1 @@
1
- {"version":3,"file":"week.cjs","names":[],"sources":["../../../../../components/date-picker/private/week.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 { type ReactElement, type SyntheticEvent } from 'react';\n\nimport Day from './day';\n\nimport DateUtil from '../../../utilities/date';\n\nexport interface WeekProps {\n\t/** Date used to create calendar that is displayed */\n\tinitialDateForCalendarRender: Date;\n\t/** Is true if calendar day has focus */\n\tcalendarHasFocus?: boolean;\n\t/** Function to determine if a date should be disabled */\n\tdateDisabled?: (data: { date: Date }) => boolean;\n\t/** First day of week */\n\tfirstDayOfWeek: Date;\n\t/** Date that has focus */\n\tfocusedDate: Date;\n\t/** Called when focus moves off calendar */\n\tonCalendarBlur: (event: SyntheticEvent, data: { direction: string }) => void;\n\t/** Called on next day keyboard navigation */\n\tonKeyboardNavigateToNextDay: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called on next week keyboard navigation */\n\tonKeyboardNavigateToNextWeek: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called on previous day keyboard navigation */\n\tonKeyboardNavigateToPreviousDay: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called on previous week keyboard navigation */\n\tonKeyboardNavigateToPreviousWeek: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called when internal focus date requested */\n\tonRequestInternalFocusDate?: (\n\t\tevent: SyntheticEvent | undefined,\n\t\tdata: { date: Date; ref?: HTMLElement | null; triggerCallback?: boolean }\n\t) => void;\n\t/** Called when calendar should close */\n\tonRequestClose?: (\n\t\tevent?: SyntheticEvent,\n\t\tdata?: Record<string, unknown>\n\t) => void;\n\t/** Called when a date is selected */\n\tonSelectDate: (event: SyntheticEvent, data: { date: Date }) => void;\n\t/** Currently selected date */\n\tselectedDate?: Date;\n\t/** Ref callback for selected date cell */\n\tselectedDateRef?: (ref: HTMLElement | null) => void;\n\t/** Label for today shortcut */\n\ttodayLabel: string;\n}\n\nconst DatepickerWeek = (props: WeekProps) => {\n\tconst days: ReactElement[] = [];\n\tlet date = props.firstDayOfWeek;\n\n\tfor (let i = 0; i < 7; i += 1) {\n\t\tdays.push(\n\t\t\t<Day\n\t\t\t\tcalendarHasFocus={props.calendarHasFocus}\n\t\t\t\tdate={date}\n\t\t\t\tdisabled={props.dateDisabled?.({ date })}\n\t\t\t\tfocusedDate={props.focusedDate}\n\t\t\t\tinitialDateForCalendarRender={props.initialDateForCalendarRender}\n\t\t\t\tkey={date.toString()}\n\t\t\t\tonKeyboardNavigateToNextDay={props.onKeyboardNavigateToNextDay}\n\t\t\t\tonKeyboardNavigateToNextWeek={props.onKeyboardNavigateToNextWeek}\n\t\t\t\tonKeyboardNavigateToPreviousDay={props.onKeyboardNavigateToPreviousDay}\n\t\t\t\tonKeyboardNavigateToPreviousWeek={\n\t\t\t\t\tprops.onKeyboardNavigateToPreviousWeek\n\t\t\t\t}\n\t\t\t\tonCalendarBlur={props.onCalendarBlur}\n\t\t\t\tonRequestInternalFocusDate={props.onRequestInternalFocusDate}\n\t\t\t\tonSelectDate={props.onSelectDate}\n\t\t\t\tselectedDate={props.selectedDate}\n\t\t\t\tselectedDateRef={props.selectedDateRef}\n\t\t\t\ttodayLabel={props.todayLabel}\n\t\t\t/>\n\t\t);\n\t\tdate = DateUtil.addDays(date, 1);\n\t}\n\n\treturn (\n\t\t<tr className=\"week\" key={days[0].toString()}>\n\t\t\t{days}\n\t\t</tr>\n\t);\n};\n\nDatepickerWeek.displayName = 'SLDSDatepickerWeek';\n\nexport default DatepickerWeek;\n"],"mappings":"yGA8DA,IAAM,EAAkB,GAAqB,CAC5C,IAAM,EAAuB,CAAC,EAC1B,EAAO,EAAM,eAEjB,IAAK,IAAI,EAAI,EAAG,EAAI,EAAG,GAAK,EAC3B,EAAK,MACJ,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,iBAAkB,EAAM,iBAClB,OACN,SAAU,EAAM,eAAe,CAAE,MAAK,CAAC,EACvC,YAAa,EAAM,YACnB,6BAA8B,EAAM,6BAEpC,4BAA6B,EAAM,4BACnC,6BAA8B,EAAM,6BACpC,gCAAiC,EAAM,gCACvC,iCACC,EAAM,iCAEP,eAAgB,EAAM,eACtB,2BAA4B,EAAM,2BAClC,aAAc,EAAM,aACpB,aAAc,EAAM,aACpB,gBAAiB,EAAM,gBACvB,WAAY,EAAM,UAClB,EAbK,EAAK,SAAS,CAanB,CACF,EACA,EAAO,EAAA,QAAS,QAAQ,EAAM,CAAC,EAGhC,OACC,EAAA,EAAA,IAAA,CAAC,KAAD,CAAI,UAAU,OACZ,SAAA,CACE,EAFsB,EAAK,EAAE,CAAC,SAAS,CAEvC,CAEN,EAEA,EAAe,YAAc"}
1
+ {"version":3,"file":"week.cjs","names":[],"sources":["../../../../../components/date-picker/private/week.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 type { DatePickerFocusDirection } from '../date-picker';\nimport { type ReactElement, type SyntheticEvent } from 'react';\n\nimport Day from './day';\n\nimport DateUtil from '../../../utilities/date';\n\nexport interface WeekProps {\n\t/** Date used to create calendar that is displayed */\n\tinitialDateForCalendarRender: Date;\n\t/** Is true if calendar day has focus */\n\tcalendarHasFocus?: boolean;\n\t/** Function to determine if a date should be disabled */\n\tdateDisabled?: (data: { date: Date }) => boolean;\n\t/** First day of week */\n\tfirstDayOfWeek: Date;\n\t/** Date that has focus */\n\tfocusedDate: Date;\n\t/** Called when focus moves off calendar */\n\tonCalendarBlur: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { direction: DatePickerFocusDirection }\n\t) => void;\n\t/** Called on next day keyboard navigation */\n\tonKeyboardNavigateToNextDay: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called on next week keyboard navigation */\n\tonKeyboardNavigateToNextWeek: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called on previous day keyboard navigation */\n\tonKeyboardNavigateToPreviousDay: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called on previous week keyboard navigation */\n\tonKeyboardNavigateToPreviousWeek: (\n\t\tevent: SyntheticEvent,\n\t\tdata: { date: Date }\n\t) => void;\n\t/** Called when internal focus date requested */\n\tonRequestInternalFocusDate?: (\n\t\tevent: SyntheticEvent | undefined,\n\t\tdata: { date: Date; ref?: HTMLElement | null; triggerCallback?: boolean }\n\t) => void;\n\t/** Called when calendar should close */\n\tonRequestClose?: (\n\t\tevent?: SyntheticEvent,\n\t\tdata?: Record<string, unknown>\n\t) => void;\n\t/** Called when a date is selected */\n\tonSelectDate: (event: SyntheticEvent, data: { date: Date }) => void;\n\t/** Currently selected date */\n\tselectedDate?: Date;\n\t/** Ref callback for selected date cell */\n\tselectedDateRef?: (ref: HTMLElement | null) => void;\n\t/** Label for today shortcut */\n\ttodayLabel: string;\n}\n\nconst DatepickerWeek = (props: WeekProps) => {\n\tconst days: ReactElement[] = [];\n\tlet date = props.firstDayOfWeek;\n\n\tfor (let i = 0; i < 7; i += 1) {\n\t\tdays.push(\n\t\t\t<Day\n\t\t\t\tcalendarHasFocus={props.calendarHasFocus}\n\t\t\t\tdate={date}\n\t\t\t\tdisabled={props.dateDisabled?.({ date })}\n\t\t\t\tfocusedDate={props.focusedDate}\n\t\t\t\tinitialDateForCalendarRender={props.initialDateForCalendarRender}\n\t\t\t\tkey={date.toString()}\n\t\t\t\tonKeyboardNavigateToNextDay={props.onKeyboardNavigateToNextDay}\n\t\t\t\tonKeyboardNavigateToNextWeek={props.onKeyboardNavigateToNextWeek}\n\t\t\t\tonKeyboardNavigateToPreviousDay={props.onKeyboardNavigateToPreviousDay}\n\t\t\t\tonKeyboardNavigateToPreviousWeek={\n\t\t\t\t\tprops.onKeyboardNavigateToPreviousWeek\n\t\t\t\t}\n\t\t\t\tonCalendarBlur={props.onCalendarBlur}\n\t\t\t\tonRequestInternalFocusDate={props.onRequestInternalFocusDate}\n\t\t\t\tonSelectDate={props.onSelectDate}\n\t\t\t\tselectedDate={props.selectedDate}\n\t\t\t\tselectedDateRef={props.selectedDateRef}\n\t\t\t\ttodayLabel={props.todayLabel}\n\t\t\t/>\n\t\t);\n\t\tdate = DateUtil.addDays(date, 1);\n\t}\n\n\treturn (\n\t\t<tr className=\"week\" key={days[0].toString()}>\n\t\t\t{days}\n\t\t</tr>\n\t);\n};\n\nDatepickerWeek.displayName = 'SLDSDatepickerWeek';\n\nexport default DatepickerWeek;\n"],"mappings":"yGAkEA,IAAM,EAAkB,GAAqB,CAC5C,IAAM,EAAuB,CAAC,EAC1B,EAAO,EAAM,eAEjB,IAAK,IAAI,EAAI,EAAG,EAAI,EAAG,GAAK,EAC3B,EAAK,MACJ,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,iBAAkB,EAAM,iBAClB,OACN,SAAU,EAAM,eAAe,CAAE,MAAK,CAAC,EACvC,YAAa,EAAM,YACnB,6BAA8B,EAAM,6BAEpC,4BAA6B,EAAM,4BACnC,6BAA8B,EAAM,6BACpC,gCAAiC,EAAM,gCACvC,iCACC,EAAM,iCAEP,eAAgB,EAAM,eACtB,2BAA4B,EAAM,2BAClC,aAAc,EAAM,aACpB,aAAc,EAAM,aACpB,gBAAiB,EAAM,gBACvB,WAAY,EAAM,UAClB,EAbK,EAAK,SAAS,CAanB,CACF,EACA,EAAO,EAAA,QAAS,QAAQ,EAAM,CAAC,EAGhC,OACC,EAAA,EAAA,IAAA,CAAC,KAAD,CAAI,UAAU,OACZ,SAAA,CACE,EAFsB,EAAK,EAAE,CAAC,SAAS,CAEvC,CAEN,EAEA,EAAe,YAAc"}
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../button/index.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime");var i={expandButton:`Expand`,minimizeButton:`Minimize`,closeButton:`Close`},a=({assistiveText:e,body:a,classNameContainer:o,events:s={},header:c,id:l,isOpen:u})=>{let d=(0,n.useId)(),f=l||d,p={...i,...e},m=u?`slds-is-open`:`slds-is-closed`;return(0,r.jsx)(`div`,{id:`${f}-container`,className:`slds-docked_container${o?` ${o}`:``}`,children:(0,r.jsxs)(`section`,{className:`slds-docked-composer slds-grid slds-grid_vertical ${m}`,role:`dialog`,"aria-labelledby":`${f}-dialog-heading`,"aria-describedby":`${f}-body`,children:[(0,r.jsxs)(`header`,{className:`slds-docked-composer__header slds-grid slds-shrink-none`,"aria-live":`assertive`,children:[(0,r.jsx)(`div`,{className:`slds-media slds-media_center slds-no-space`,children:(0,r.jsx)(`div`,{className:`slds-media__body`,children:(0,r.jsx)(`h2`,{className:`slds-truncate`,id:`${f}-dialog-heading`,title:typeof c==`string`?c:void 0,children:c})})}),(0,r.jsxs)(`div`,{className:`slds-col_bump-left slds-shrink-none`,children:[u?(0,r.jsx)(t.default,{id:`${f}-minimize-button`,title:p.minimizeButton,assistiveText:{icon:p.minimizeButton},onClick:s.onRequestMinimize,iconCategory:`utility`,iconName:`minimize_window`,iconVariant:`bare`,variant:`icon`}):(0,r.jsx)(t.default,{id:`${f}-expand-button`,title:p.expandButton,assistiveText:{icon:p.expandButton},onClick:s.onRequestExpand,iconCategory:`utility`,iconName:`expand_alt`,iconVariant:`bare`,variant:`icon`}),(0,r.jsx)(t.default,{id:`${f}-close-button`,title:p.closeButton,assistiveText:{icon:p.closeButton},onClick:s.onRequestClose,iconCategory:`utility`,iconName:`close`,iconVariant:`bare`,variant:`icon`})]})]}),u&&(0,r.jsx)(`div`,{className:`slds-docked-composer__body`,id:`${f}-body`,children:a})]})})};a.displayName=`SLDSDockedComposer`,exports.default=a;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../button/index.cjs"),n=require("../../utilities/hooks/use-controllable-state.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a={expandButton:`Expand`,minimizeButton:`Minimize`,closeButton:`Close`},o=({assistiveText:e,body:o,classNameContainer:s,events:c={},header:l,id:u,isOpen:d,defaultIsOpen:f=!1})=>{let p=(0,r.useId)(),m=u||p,h={...a,...e},[g,_]=n.useControllableState(d,f),v=g?`slds-is-open`:`slds-is-closed`,y=(0,r.useRef)(null),b=(0,r.useRef)(null),x=(0,r.useRef)(null),S=(0,r.useRef)(!1),C=e=>{x.current=e},w=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(w.current!==g){if(S.current)x.current?.focus();else if(g&&y.current){let e=document.activeElement;!b.current&&e&&e!==document.body&&!y.current.contains(e)&&(b.current=e),y.current.focus()}}w.current=g,S.current=!1}),(0,r.useEffect)(()=>{let e=y.current;return()=>{let t=b.current,n=document.activeElement;t?.isConnected&&(!n||n===document.body||e?.contains(n))&&t.focus(),b.current=null,w.current=!1}},[]);let T=(e,t)=>n=>{S.current=!0,_(e),t?.(n),setTimeout(()=>{S.current=!1})};return(0,i.jsx)(`div`,{id:`${m}-container`,className:`slds-docked_container${s?` ${s}`:``}`,children:(0,i.jsxs)(`section`,{className:`slds-docked-composer slds-grid slds-grid_vertical ${v}`,ref:y,role:`dialog`,tabIndex:-1,"aria-labelledby":`${m}-dialog-heading`,"aria-describedby":g?`${m}-body`:void 0,children:[(0,i.jsxs)(`header`,{className:`slds-docked-composer__header slds-grid slds-shrink-none`,"aria-live":`assertive`,children:[(0,i.jsx)(`div`,{className:`slds-media slds-media_center slds-no-space`,children:(0,i.jsx)(`div`,{className:`slds-media__body`,children:(0,i.jsx)(`h2`,{className:`slds-truncate`,id:`${m}-dialog-heading`,title:typeof l==`string`?l:void 0,children:l})})}),(0,i.jsxs)(`div`,{className:`slds-col_bump-left slds-shrink-none`,children:[g?(0,i.jsx)(t.default,{id:`${m}-minimize-button`,title:h.minimizeButton,assistiveText:{icon:h.minimizeButton},buttonRef:C,onClick:T(!1,c.onRequestMinimize),iconCategory:`utility`,iconName:`minimize_window`,iconVariant:`bare`,variant:`icon`}):(0,i.jsx)(t.default,{id:`${m}-expand-button`,title:h.expandButton,assistiveText:{icon:h.expandButton},buttonRef:C,onClick:T(!0,c.onRequestExpand),iconCategory:`utility`,iconName:`expand_alt`,iconVariant:`bare`,variant:`icon`}),(0,i.jsx)(t.default,{id:`${m}-close-button`,title:h.closeButton,assistiveText:{icon:h.closeButton},onClick:c.onRequestClose,iconCategory:`utility`,iconName:`close`,iconVariant:`bare`,variant:`icon`})]})]}),g&&(0,i.jsx)(`div`,{className:`slds-docked-composer__body`,id:`${m}-body`,children:o})]})})};o.displayName=`SLDSDockedComposer`,exports.default=o;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/docked-composer/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, { useId, type ReactNode, type MouseEvent } from 'react';\nimport Button from '../button';\n\n/**\n * Assistive text for DockedComposer\n */\nexport interface DockedComposerAssistiveText {\n\t/** Label for expand button */\n\texpandButton?: string;\n\t/** Label for minimize button */\n\tminimizeButton?: string;\n\t/** Label for close button */\n\tcloseButton?: string;\n}\n\n/**\n * Event handlers for DockedComposer\n */\nexport interface DockedComposerEvents {\n\t/** Called when minimize is requested */\n\tonRequestMinimize?: (event: MouseEvent<HTMLButtonElement>) => void;\n\t/** Called when expand is requested */\n\tonRequestExpand?: (event: MouseEvent<HTMLButtonElement>) => void;\n\t/** Called when close is requested */\n\tonRequestClose?: (event: MouseEvent<HTMLButtonElement>) => void;\n}\n\n/**\n * Props for the DockedComposer component\n */\nexport interface DockedComposerProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: DockedComposerAssistiveText;\n\t/** Body content */\n\tbody?: ReactNode;\n\t/** Additional container class name */\n\tclassNameContainer?: string;\n\t/** Event handlers */\n\tevents?: DockedComposerEvents;\n\t/** Header text or element */\n\theader?: ReactNode;\n\t/** HTML id */\n\tid?: string;\n\t/** Whether the composer is open */\n\tisOpen?: boolean;\n}\n\nconst defaultAssistiveText: DockedComposerAssistiveText = {\n\texpandButton: 'Expand',\n\tminimizeButton: 'Minimize',\n\tcloseButton: 'Close',\n};\n\n/**\n * The Docked Composer is a persistent utility bar that allows a user to continually\n * use the app to complete tasks or gather information while expanding/collapsing a composer window.\n */\nconst DockedComposer = ({\n\tassistiveText: propAssistiveText,\n\tbody,\n\tclassNameContainer,\n\tevents = {},\n\theader,\n\tid: propId,\n\tisOpen,\n}: DockedComposerProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\n\tconst sectionClassName = isOpen ? 'slds-is-open' : 'slds-is-closed';\n\n\treturn (\n\t\t<div\n\t\t\tid={`${id}-container`}\n\t\t\tclassName={`slds-docked_container${classNameContainer ? ` ${classNameContainer}` : ''}`}\n\t\t>\n\t\t\t<section\n\t\t\t\tclassName={`slds-docked-composer slds-grid slds-grid_vertical ${sectionClassName}`}\n\t\t\t\trole=\"dialog\"\n\t\t\t\taria-labelledby={`${id}-dialog-heading`}\n\t\t\t\taria-describedby={`${id}-body`}\n\t\t\t>\n\t\t\t\t<header\n\t\t\t\t\tclassName=\"slds-docked-composer__header slds-grid slds-shrink-none\"\n\t\t\t\t\taria-live=\"assertive\"\n\t\t\t\t>\n\t\t\t\t\t<div className=\"slds-media slds-media_center slds-no-space\">\n\t\t\t\t\t\t<div className=\"slds-media__body\">\n\t\t\t\t\t\t\t<h2\n\t\t\t\t\t\t\t\tclassName=\"slds-truncate\"\n\t\t\t\t\t\t\t\tid={`${id}-dialog-heading`}\n\t\t\t\t\t\t\t\ttitle={typeof header === 'string' ? header : undefined}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{header}\n\t\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"slds-col_bump-left slds-shrink-none\">\n\t\t\t\t\t\t{isOpen ? (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tid={`${id}-minimize-button`}\n\t\t\t\t\t\t\t\ttitle={assistiveText.minimizeButton}\n\t\t\t\t\t\t\t\tassistiveText={{ icon: assistiveText.minimizeButton }}\n\t\t\t\t\t\t\t\tonClick={events.onRequestMinimize}\n\t\t\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\t\t\ticonName=\"minimize_window\"\n\t\t\t\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tid={`${id}-expand-button`}\n\t\t\t\t\t\t\t\ttitle={assistiveText.expandButton}\n\t\t\t\t\t\t\t\tassistiveText={{ icon: assistiveText.expandButton }}\n\t\t\t\t\t\t\t\tonClick={events.onRequestExpand}\n\t\t\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\t\t\ticonName=\"expand_alt\"\n\t\t\t\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tid={`${id}-close-button`}\n\t\t\t\t\t\t\ttitle={assistiveText.closeButton}\n\t\t\t\t\t\t\tassistiveText={{ icon: assistiveText.closeButton }}\n\t\t\t\t\t\t\tonClick={events.onRequestClose}\n\t\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\t\ticonName=\"close\"\n\t\t\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</header>\n\t\t\t\t{isOpen && (\n\t\t\t\t\t<div className=\"slds-docked-composer__body\" id={`${id}-body`}>\n\t\t\t\t\t\t{body}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</section>\n\t\t</div>\n\t);\n};\n\nDockedComposer.displayName = 'SLDSDockedComposer';\n\nexport default DockedComposer;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"mQAkDA,IAAM,EAAoD,CACzD,aAAc,SACd,eAAgB,WAChB,YAAa,OACd,EAMM,GAAkB,CACvB,cAAe,EACf,OACA,qBACA,SAAS,CAAC,EACV,SACA,GAAI,EACJ,YAC8C,CAC9C,IAAM,GAAA,EAAc,EAAA,MAAA,CAAM,EACpB,EAAK,GAAU,EACf,EAAgB,CAAE,GAAG,EAAsB,GAAG,CAAkB,EAEhE,EAAmB,EAAS,eAAiB,iBAEnD,OACC,EAAA,EAAA,IAAA,CAAC,MAAD,CACC,GAAI,GAAG,EAAG,YACV,UAAW,wBAAwB,EAAqB,IAAI,IAAuB,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G,EAAG,OACpD,SAAA,CACG,CAAA,CAEE,GACL,CAAA,CAEP,EAEA,EAAe,YAAc"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/docked-composer/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, {\n\tuseEffect,\n\tuseId,\n\tuseRef,\n\ttype ReactNode,\n\ttype MouseEvent,\n} from 'react';\nimport Button from '../button';\nimport { useControllableState } from '../../utilities/hooks';\n\n/**\n * Assistive text for DockedComposer\n */\nexport interface DockedComposerAssistiveText {\n\t/** Label for expand button */\n\texpandButton?: string;\n\t/** Label for minimize button */\n\tminimizeButton?: string;\n\t/** Label for close button */\n\tcloseButton?: string;\n}\n\n/**\n * Event handlers for DockedComposer\n */\nexport interface DockedComposerEvents {\n\t/** Called when minimize is requested */\n\tonRequestMinimize?: (event: MouseEvent<HTMLButtonElement>) => void;\n\t/** Called when expand is requested */\n\tonRequestExpand?: (event: MouseEvent<HTMLButtonElement>) => void;\n\t/** Called when close is requested */\n\tonRequestClose?: (event: MouseEvent<HTMLButtonElement>) => void;\n}\n\n/**\n * Props for the DockedComposer component\n */\nexport interface DockedComposerProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: DockedComposerAssistiveText;\n\t/** Body content */\n\tbody?: ReactNode;\n\t/** Additional container class name */\n\tclassNameContainer?: string;\n\t/** Event handlers */\n\tevents?: DockedComposerEvents;\n\t/** Header text or element */\n\theader?: ReactNode;\n\t/** HTML id */\n\tid?: string;\n\t/**\n\t * Whether the composer is open. When set, the composer is controlled: update it from\n\t * `onRequestMinimize` / `onRequestExpand`. Leave it `undefined` for an uncontrolled composer\n\t * (see `defaultIsOpen`). The body is unmounted while closed.\n\t */\n\tisOpen?: boolean;\n\t/** Initial open state of an uncontrolled composer (`isOpen` is `undefined`). Defaults to `false`. */\n\tdefaultIsOpen?: boolean;\n}\n\nconst defaultAssistiveText: DockedComposerAssistiveText = {\n\texpandButton: 'Expand',\n\tminimizeButton: 'Minimize',\n\tcloseButton: 'Close',\n};\n\n/**\n * The Docked Composer is a persistent utility bar that allows a user to continually\n * use the app to complete tasks or gather information while expanding/collapsing a composer window.\n */\nconst DockedComposer = ({\n\tassistiveText: propAssistiveText,\n\tbody,\n\tclassNameContainer,\n\tevents = {},\n\theader,\n\tid: propId,\n\tisOpen: isOpenProp,\n\tdefaultIsOpen = false,\n}: DockedComposerProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\n\tconst [isOpen, setIsOpen] = useControllableState(isOpenProp, defaultIsOpen);\n\n\tconst sectionClassName = isOpen ? 'slds-is-open' : 'slds-is-closed';\n\n\t// An open composer behaves like a dialog: when it mounts open, or the parent opens it without\n\t// a click, focus the dialog and return focus to where it was when the composer unmounts. A\n\t// minimized composer is only a bar and leaves focus alone.\n\tconst dialogRef = useRef<HTMLElement | null>(null);\n\tconst returnFocusRef = useRef<HTMLElement | null>(null);\n\n\t// The minimize and expand buttons replace each other, so the clicked one unmounts and focus\n\t// would fall to <body>. When the parent accepts the request, move focus to the button that\n\t// took its place.\n\tconst toggleButtonRef = useRef<HTMLButtonElement | null>(null);\n\tconst shouldFocusToggleRef = useRef(false);\n\tconst setToggleButtonRef = (node: HTMLButtonElement | null) => {\n\t\ttoggleButtonRef.current = node;\n\t};\n\n\t// Runs after every render. `false` before the first render, so mounting open counts as opening.\n\tconst previousIsOpenRef = useRef<boolean | undefined>(false);\n\tuseEffect(() => {\n\t\tif (previousIsOpenRef.current !== isOpen) {\n\t\t\tif (shouldFocusToggleRef.current) {\n\t\t\t\ttoggleButtonRef.current?.focus();\n\t\t\t} else if (isOpen && dialogRef.current) {\n\t\t\t\tconst active = document.activeElement as HTMLElement | null;\n\t\t\t\tif (\n\t\t\t\t\t!returnFocusRef.current &&\n\t\t\t\t\tactive &&\n\t\t\t\t\tactive !== document.body &&\n\t\t\t\t\t!dialogRef.current.contains(active)\n\t\t\t\t) {\n\t\t\t\t\treturnFocusRef.current = active;\n\t\t\t\t}\n\t\t\t\tdialogRef.current.focus();\n\t\t\t}\n\t\t}\n\t\tpreviousIsOpenRef.current = isOpen;\n\t\tshouldFocusToggleRef.current = false;\n\t});\n\n\tuseEffect(() => {\n\t\t// Read the node here: refs are already detached when the cleanup runs.\n\t\tconst dialog = dialogRef.current;\n\t\treturn () => {\n\t\t\t// Only restore focus the composer took, and only if it is not already somewhere else.\n\t\t\tconst returnFocus = returnFocusRef.current;\n\t\t\tconst active = document.activeElement;\n\t\t\tif (\n\t\t\t\treturnFocus?.isConnected &&\n\t\t\t\t(!active || active === document.body || dialog?.contains(active))\n\t\t\t) {\n\t\t\t\treturnFocus.focus();\n\t\t\t}\n\t\t\treturnFocusRef.current = null;\n\t\t\t// Let a remount (React StrictMode replays effects) focus the dialog again.\n\t\t\tpreviousIsOpenRef.current = false;\n\t\t};\n\t}, []);\n\n\tconst handleToggle =\n\t\t(\n\t\t\tnextIsOpen: boolean,\n\t\t\thandler?: (event: MouseEvent<HTMLButtonElement>) => void\n\t\t) =>\n\t\t(event: MouseEvent<HTMLButtonElement>) => {\n\t\t\tshouldFocusToggleRef.current = true;\n\t\t\t// No-op when `isOpen` is controlled\n\t\t\tsetIsOpen(nextIsOpen);\n\t\t\thandler?.(event);\n\t\t\t// A click's effects run before this timeout. If the parent rejected the request there was\n\t\t\t// no render, so clear the flag here; a later, unrelated `isOpen` change must not take focus.\n\t\t\tsetTimeout(() => {\n\t\t\t\tshouldFocusToggleRef.current = false;\n\t\t\t});\n\t\t};\n\n\treturn (\n\t\t<div\n\t\t\tid={`${id}-container`}\n\t\t\tclassName={`slds-docked_container${classNameContainer ? ` ${classNameContainer}` : ''}`}\n\t\t>\n\t\t\t<section\n\t\t\t\tclassName={`slds-docked-composer slds-grid slds-grid_vertical ${sectionClassName}`}\n\t\t\t\tref={dialogRef}\n\t\t\t\trole=\"dialog\"\n\t\t\t\ttabIndex={-1}\n\t\t\t\taria-labelledby={`${id}-dialog-heading`}\n\t\t\t\taria-describedby={isOpen ? `${id}-body` : undefined}\n\t\t\t>\n\t\t\t\t<header\n\t\t\t\t\tclassName=\"slds-docked-composer__header slds-grid slds-shrink-none\"\n\t\t\t\t\taria-live=\"assertive\"\n\t\t\t\t>\n\t\t\t\t\t<div className=\"slds-media slds-media_center slds-no-space\">\n\t\t\t\t\t\t<div className=\"slds-media__body\">\n\t\t\t\t\t\t\t<h2\n\t\t\t\t\t\t\t\tclassName=\"slds-truncate\"\n\t\t\t\t\t\t\t\tid={`${id}-dialog-heading`}\n\t\t\t\t\t\t\t\ttitle={typeof header === 'string' ? header : undefined}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{header}\n\t\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"slds-col_bump-left slds-shrink-none\">\n\t\t\t\t\t\t{isOpen ? (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tid={`${id}-minimize-button`}\n\t\t\t\t\t\t\t\ttitle={assistiveText.minimizeButton}\n\t\t\t\t\t\t\t\tassistiveText={{ icon: assistiveText.minimizeButton }}\n\t\t\t\t\t\t\t\tbuttonRef={setToggleButtonRef}\n\t\t\t\t\t\t\t\tonClick={handleToggle(false, events.onRequestMinimize)}\n\t\t\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\t\t\ticonName=\"minimize_window\"\n\t\t\t\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tid={`${id}-expand-button`}\n\t\t\t\t\t\t\t\ttitle={assistiveText.expandButton}\n\t\t\t\t\t\t\t\tassistiveText={{ icon: assistiveText.expandButton }}\n\t\t\t\t\t\t\t\tbuttonRef={setToggleButtonRef}\n\t\t\t\t\t\t\t\tonClick={handleToggle(true, events.onRequestExpand)}\n\t\t\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\t\t\ticonName=\"expand_alt\"\n\t\t\t\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tid={`${id}-close-button`}\n\t\t\t\t\t\t\ttitle={assistiveText.closeButton}\n\t\t\t\t\t\t\tassistiveText={{ icon: assistiveText.closeButton }}\n\t\t\t\t\t\t\tonClick={events.onRequestClose}\n\t\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\t\ticonName=\"close\"\n\t\t\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</header>\n\t\t\t\t{isOpen && (\n\t\t\t\t\t<div className=\"slds-docked-composer__body\" id={`${id}-body`}>\n\t\t\t\t\t\t{body}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</section>\n\t\t</div>\n\t);\n};\n\nDockedComposer.displayName = 'SLDSDockedComposer';\n\nexport default DockedComposer;\n"],"mappings":"iUA+DA,IAAM,EAAoD,CACzD,aAAc,SACd,eAAgB,WAChB,YAAa,OACd,EAMM,GAAkB,CACvB,cAAe,EACf,OACA,qBACA,SAAS,CAAC,EACV,SACA,GAAI,EACJ,OAAQ,EACR,gBAAgB,MAC8B,CAC9C,IAAM,GAAA,EAAc,EAAA,MAAA,CAAM,EACpB,EAAK,GAAU,EACf,EAAgB,CAAE,GAAG,EAAsB,GAAG,CAAkB,EAEhE,CAAC,EAAQ,GAAa,EAAA,qBAAqB,EAAY,CAAa,EAEpE,EAAmB,EAAS,eAAiB,iBAK7C,GAAA,EAAY,EAAA,OAAA,CAA2B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GACL,CAAA,CAEP,EAEA,EAAe,YAAc"}
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../../utilities/class-names.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=({assistiveText:e,className:t,isPaused:a,isStatic:o,scorePolarity:s,strengthLevel:c,title:l,trendDirection:u,variant:d})=>{let f=(()=>{let t=[],n=l||`${d.charAt(0).toUpperCase()}${d.slice(1)}`;return d===`ellie`?t.push((0,i.jsx)(`svg`,{viewBox:`0 0 280 14`,"aria-hidden":`true`,children:Array.from({length:20},(e,t)=>{let n=7+t*14;return(0,i.jsxs)(r.default.Fragment,{children:[(0,i.jsx)(`circle`,{cx:n,cy:`7`,r:`4`}),(0,i.jsx)(`circle`,{cx:n,cy:`7`,r:`3`})]},t)})},`ellie-svg`)):d===`eq`?t.push((0,i.jsx)(`div`,{className:`slds-icon-eq__bar`},`eq-bar-1`),(0,i.jsx)(`div`,{className:`slds-icon-eq__bar`},`eq-bar-2`),(0,i.jsx)(`div`,{className:`slds-icon-eq__bar`},`eq-bar-3`)):d===`score`?t.push((0,i.jsx)(`svg`,{viewBox:`0 0 5 5`,className:`slds-icon-score__positive`,"aria-hidden":`true`,children:(0,i.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:`1.875`})},`score-pos`),(0,i.jsx)(`svg`,{viewBox:`0 0 5 5`,className:`slds-icon-score__negative`,"aria-hidden":`true`,children:(0,i.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:`1.875`})},`score-neg`)):d===`strength`?t.push((0,i.jsxs)(`svg`,{viewBox:`0 0 27 7`,"aria-hidden":`true`,children:[(0,i.jsx)(`circle`,{r:`3.025`,cx:`3.5`,cy:`3.5`}),(0,i.jsx)(`circle`,{r:`3.025`,cx:`13.5`,cy:`3.5`}),(0,i.jsx)(`circle`,{r:`3.025`,cx:`23.5`,cy:`3.5`})]},`strength-svg`)):d===`trend`?t.push((0,i.jsxs)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:[(0,i.jsx)(`path`,{className:`slds-icon-trend__arrow`,d:`M.75 8H11M8 4.5L11.5 8 8 11.5`}),(0,i.jsx)(`circle`,{className:`slds-icon-trend__circle`,cy:`8`,cx:`8`,r:`7.375`,transform:`rotate(-28 8 8) scale(-1 1) translate(-16 0)`})]},`trend-svg`)):d===`typing`?(t.push((0,i.jsx)(`span`,{className:`slds-icon-typing__dot`},`typing-1`),(0,i.jsx)(`span`,{className:`slds-icon-typing__dot`},`typing-2`),(0,i.jsx)(`span`,{className:`slds-icon-typing__dot`},`typing-3`)),l||(n=`User is typing`)):d===`waffle`&&(t.push((0,i.jsxs)(`span`,{className:`slds-icon-waffle`,children:[(0,i.jsx)(`span`,{className:`slds-r1`}),(0,i.jsx)(`span`,{className:`slds-r2`}),(0,i.jsx)(`span`,{className:`slds-r3`}),(0,i.jsx)(`span`,{className:`slds-r4`}),(0,i.jsx)(`span`,{className:`slds-r5`}),(0,i.jsx)(`span`,{className:`slds-r6`}),(0,i.jsx)(`span`,{className:`slds-r7`}),(0,i.jsx)(`span`,{className:`slds-r8`}),(0,i.jsx)(`span`,{className:`slds-r9`})]},`waffle`)),l||(n=`Open App Launcher`)),t.push((0,i.jsx)(`span`,{className:`slds-assistive-text`,children:e?.label||n},`assistive`)),t})(),p=[{"slds-is-animated":!o,"slds-is-paused":a}],m={title:l},h=`span`;return d===`waffle`?(p.unshift(`slds-button`,`slds-icon-waffle_container`),h=`button`,m.type=`button`):(p.unshift(`slds-icon-${d}`),d===`eq`?h=`div`:d===`score`?m[`data-slds-state`]=s||`positive`:d===`strength`?m[`data-slds-strength`]=c===void 0?`0`:`${c}`:d===`trend`&&(m[`data-slds-trend`]=u||`neutral`)),m.className=n.default(p,t),r.default.createElement(h,m,...f)};a.displayName=t.DYNAMIC_ICON,exports.default=a;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../../utilities/class-names.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=e=>{let{assistiveText:t,className:a,isPaused:o,isStatic:s,title:c,variant:l}=e,{scorePolarity:u}=e,{strengthLevel:d}=e,{trendDirection:f}=e,p=(()=>{let e=[],n=c||`${l.charAt(0).toUpperCase()}${l.slice(1)}`;return l===`ellie`?e.push((0,i.jsx)(`svg`,{viewBox:`0 0 280 14`,"aria-hidden":`true`,children:Array.from({length:20},(e,t)=>{let n=7+t*14;return(0,i.jsxs)(r.default.Fragment,{children:[(0,i.jsx)(`circle`,{cx:n,cy:`7`,r:`4`}),(0,i.jsx)(`circle`,{cx:n,cy:`7`,r:`3`})]},t)})},`ellie-svg`)):l===`eq`?e.push((0,i.jsx)(`div`,{className:`slds-icon-eq__bar`},`eq-bar-1`),(0,i.jsx)(`div`,{className:`slds-icon-eq__bar`},`eq-bar-2`),(0,i.jsx)(`div`,{className:`slds-icon-eq__bar`},`eq-bar-3`)):l===`score`?e.push((0,i.jsx)(`svg`,{viewBox:`0 0 5 5`,className:`slds-icon-score__positive`,"aria-hidden":`true`,children:(0,i.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:`1.875`})},`score-pos`),(0,i.jsx)(`svg`,{viewBox:`0 0 5 5`,className:`slds-icon-score__negative`,"aria-hidden":`true`,children:(0,i.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:`1.875`})},`score-neg`)):l===`strength`?e.push((0,i.jsxs)(`svg`,{viewBox:`0 0 27 7`,"aria-hidden":`true`,children:[(0,i.jsx)(`circle`,{r:`3.025`,cx:`3.5`,cy:`3.5`}),(0,i.jsx)(`circle`,{r:`3.025`,cx:`13.5`,cy:`3.5`}),(0,i.jsx)(`circle`,{r:`3.025`,cx:`23.5`,cy:`3.5`})]},`strength-svg`)):l===`trend`?e.push((0,i.jsxs)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:[(0,i.jsx)(`path`,{className:`slds-icon-trend__arrow`,d:`M.75 8H11M8 4.5L11.5 8 8 11.5`}),(0,i.jsx)(`circle`,{className:`slds-icon-trend__circle`,cy:`8`,cx:`8`,r:`7.375`,transform:`rotate(-28 8 8) scale(-1 1) translate(-16 0)`})]},`trend-svg`)):l===`typing`?(e.push((0,i.jsx)(`span`,{className:`slds-icon-typing__dot`},`typing-1`),(0,i.jsx)(`span`,{className:`slds-icon-typing__dot`},`typing-2`),(0,i.jsx)(`span`,{className:`slds-icon-typing__dot`},`typing-3`)),c||(n=`User is typing`)):l===`waffle`&&(e.push((0,i.jsxs)(`span`,{className:`slds-icon-waffle`,children:[(0,i.jsx)(`span`,{className:`slds-r1`}),(0,i.jsx)(`span`,{className:`slds-r2`}),(0,i.jsx)(`span`,{className:`slds-r3`}),(0,i.jsx)(`span`,{className:`slds-r4`}),(0,i.jsx)(`span`,{className:`slds-r5`}),(0,i.jsx)(`span`,{className:`slds-r6`}),(0,i.jsx)(`span`,{className:`slds-r7`}),(0,i.jsx)(`span`,{className:`slds-r8`}),(0,i.jsx)(`span`,{className:`slds-r9`})]},`waffle`)),c||(n=`Open App Launcher`)),e.push((0,i.jsx)(`span`,{className:`slds-assistive-text`,children:t?.label||n},`assistive`)),e})(),m=[{"slds-is-animated":!s,"slds-is-paused":o}],h={title:c},g=`span`;if(l===`waffle`){m.unshift(`slds-button`,`slds-icon-waffle_container`),g=`button`;let{assistiveText:t,className:n,isPaused:r,isStatic:i,title:a,variant:o,...s}=e;Object.assign(h,s),h.type=`button`}else m.unshift(`slds-icon-${l}`),l===`eq`?g=`div`:l===`score`?h[`data-slds-state`]=u||`positive`:l===`strength`?h[`data-slds-strength`]=d===void 0?`0`:`${d}`:l===`trend`&&(h[`data-slds-trend`]=f||`neutral`);return h.className=n.default(m,a),r.default.createElement(g,h,...p)};a.displayName=t.DYNAMIC_ICON,exports.default=a;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/dynamic-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 ReactNode } from 'react';\nimport classNames from '../../utilities/class-names';\nimport { DYNAMIC_ICON } from '../../utilities/constants';\n\n/**\n * Dynamic icon variant types\n */\nexport type DynamicIconVariant =\n\t'ellie' | 'eq' | 'score' | 'strength' | 'trend' | 'typing' | 'waffle';\n\n/**\n * Score polarity options\n */\nexport type ScorePolarity = 'positive' | 'negative';\n\n/**\n * Strength level options\n */\nexport type StrengthLevel =\n\t'-3' | '-2' | '-1' | '0' | '1' | '2' | '3' | -3 | -2 | -1 | 0 | 1 | 2 | 3;\n\n/**\n * Trend direction options\n */\nexport type TrendDirection = 'down' | 'up' | 'neutral';\n\n/**\n * Assistive text for DynamicIcon\n */\nexport interface DynamicIconAssistiveText {\n\t/** Label for the icon */\n\tlabel?: string;\n}\n\n/**\n * Props for the DynamicIcon component\n */\nexport interface DynamicIconProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: DynamicIconAssistiveText;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Pauses animation */\n\tisPaused?: boolean;\n\t/** Disables animation */\n\tisStatic?: boolean;\n\t/** Polarity for score variant */\n\tscorePolarity?: ScorePolarity;\n\t/** Strength level for strength variant */\n\tstrengthLevel?: StrengthLevel;\n\t/** Title attribute (required) */\n\ttitle: string;\n\t/** Trend direction for trend variant */\n\ttrendDirection?: TrendDirection;\n\t/** Icon variant (required) */\n\tvariant: DynamicIconVariant;\n}\n\n/**\n * A set of delightful animated icons.\n */\nconst DynamicIcon = ({\n\tassistiveText,\n\tclassName,\n\tisPaused,\n\tisStatic,\n\tscorePolarity,\n\tstrengthLevel,\n\ttitle,\n\ttrendDirection,\n\tvariant,\n}: DynamicIconProps): React.ReactElement => {\n\tconst getIconChildren = (): ReactNode[] => {\n\t\tconst children: ReactNode[] = [];\n\t\tlet defaultAssistiveText =\n\t\t\ttitle || `${variant.charAt(0).toUpperCase()}${variant.slice(1)}`;\n\n\t\tif (variant === 'ellie') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"ellie-svg\" viewBox=\"0 0 280 14\" aria-hidden=\"true\">\n\t\t\t\t\t{Array.from({ length: 20 }, (_, i) => {\n\t\t\t\t\t\tconst cx = 7 + i * 14;\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<React.Fragment key={i}>\n\t\t\t\t\t\t\t\t<circle cx={cx} cy=\"7\" r=\"4\" />\n\t\t\t\t\t\t\t\t<circle cx={cx} cy=\"7\" r=\"3\" />\n\t\t\t\t\t\t\t</React.Fragment>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'eq') {\n\t\t\tchildren.push(\n\t\t\t\t<div key=\"eq-bar-1\" className=\"slds-icon-eq__bar\" />,\n\t\t\t\t<div key=\"eq-bar-2\" className=\"slds-icon-eq__bar\" />,\n\t\t\t\t<div key=\"eq-bar-3\" className=\"slds-icon-eq__bar\" />\n\t\t\t);\n\t\t} else if (variant === 'score') {\n\t\t\tchildren.push(\n\t\t\t\t<svg\n\t\t\t\t\tkey=\"score-pos\"\n\t\t\t\t\tviewBox=\"0 0 5 5\"\n\t\t\t\t\tclassName=\"slds-icon-score__positive\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t>\n\t\t\t\t\t<circle cx=\"50%\" cy=\"50%\" r=\"1.875\" />\n\t\t\t\t</svg>,\n\t\t\t\t<svg\n\t\t\t\t\tkey=\"score-neg\"\n\t\t\t\t\tviewBox=\"0 0 5 5\"\n\t\t\t\t\tclassName=\"slds-icon-score__negative\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t>\n\t\t\t\t\t<circle cx=\"50%\" cy=\"50%\" r=\"1.875\" />\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'strength') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"strength-svg\" viewBox=\"0 0 27 7\" aria-hidden=\"true\">\n\t\t\t\t\t<circle r=\"3.025\" cx=\"3.5\" cy=\"3.5\" />\n\t\t\t\t\t<circle r=\"3.025\" cx=\"13.5\" cy=\"3.5\" />\n\t\t\t\t\t<circle r=\"3.025\" cx=\"23.5\" cy=\"3.5\" />\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'trend') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"trend-svg\" viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tclassName=\"slds-icon-trend__arrow\"\n\t\t\t\t\t\td=\"M.75 8H11M8 4.5L11.5 8 8 11.5\"\n\t\t\t\t\t/>\n\t\t\t\t\t<circle\n\t\t\t\t\t\tclassName=\"slds-icon-trend__circle\"\n\t\t\t\t\t\tcy=\"8\"\n\t\t\t\t\t\tcx=\"8\"\n\t\t\t\t\t\tr=\"7.375\"\n\t\t\t\t\t\ttransform=\"rotate(-28 8 8) scale(-1 1) translate(-16 0)\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'typing') {\n\t\t\tchildren.push(\n\t\t\t\t<span key=\"typing-1\" className=\"slds-icon-typing__dot\" />,\n\t\t\t\t<span key=\"typing-2\" className=\"slds-icon-typing__dot\" />,\n\t\t\t\t<span key=\"typing-3\" className=\"slds-icon-typing__dot\" />\n\t\t\t);\n\t\t\tif (!title) {\n\t\t\t\tdefaultAssistiveText = 'User is typing';\n\t\t\t}\n\t\t} else if (variant === 'waffle') {\n\t\t\tchildren.push(\n\t\t\t\t<span key=\"waffle\" className=\"slds-icon-waffle\">\n\t\t\t\t\t<span className=\"slds-r1\" />\n\t\t\t\t\t<span className=\"slds-r2\" />\n\t\t\t\t\t<span className=\"slds-r3\" />\n\t\t\t\t\t<span className=\"slds-r4\" />\n\t\t\t\t\t<span className=\"slds-r5\" />\n\t\t\t\t\t<span className=\"slds-r6\" />\n\t\t\t\t\t<span className=\"slds-r7\" />\n\t\t\t\t\t<span className=\"slds-r8\" />\n\t\t\t\t\t<span className=\"slds-r9\" />\n\t\t\t\t</span>\n\t\t\t);\n\t\t\tif (!title) {\n\t\t\t\tdefaultAssistiveText = 'Open App Launcher';\n\t\t\t}\n\t\t}\n\n\t\tchildren.push(\n\t\t\t<span key=\"assistive\" className=\"slds-assistive-text\">\n\t\t\t\t{assistiveText?.label || defaultAssistiveText}\n\t\t\t</span>\n\t\t);\n\n\t\treturn children;\n\t};\n\n\tconst children = getIconChildren();\n\tconst classes: (string | Record<string, boolean | undefined>)[] = [\n\t\t{\n\t\t\t'slds-is-animated': !isStatic,\n\t\t\t'slds-is-paused': isPaused,\n\t\t},\n\t];\n\n\tconst iconProps: Record<string, unknown> = {\n\t\ttitle,\n\t};\n\n\tlet element: 'span' | 'div' | 'button' = 'span';\n\n\tif (variant === 'waffle') {\n\t\tclasses.unshift('slds-button', 'slds-icon-waffle_container');\n\t\telement = 'button';\n\t\ticonProps.type = 'button';\n\t} else {\n\t\tclasses.unshift(`slds-icon-${variant}`);\n\n\t\tif (variant === 'eq') {\n\t\t\telement = 'div';\n\t\t} else if (variant === 'score') {\n\t\t\ticonProps['data-slds-state'] = scorePolarity || 'positive';\n\t\t} else if (variant === 'strength') {\n\t\t\ticonProps['data-slds-strength'] =\n\t\t\t\tstrengthLevel !== undefined ? `${strengthLevel}` : '0';\n\t\t} else if (variant === 'trend') {\n\t\t\ticonProps['data-slds-trend'] = trendDirection || 'neutral';\n\t\t}\n\t}\n\n\ticonProps.className = classNames(classes, className);\n\n\treturn React.createElement(element, iconProps, ...children);\n};\n\nDynamicIcon.displayName = DYNAMIC_ICON;\n\nexport default DynamicIcon;\n"],"mappings":"0TAgEA,IAAM,GAAe,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AAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,GAC3B,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,GAC3B,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,GAC3B,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,GAC3B,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,GAC3B,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,GAC3B,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,CACtB,CAVI,EAAA,QAUJ,CACP,EACK,IACJ,EAAuB,sBAIzB,EAAS,MACR,EAAA,EAAA,IAAA,CAAC,OAAD,CAAsB,UAAU,sBAC9B,SAAA,GAAe,OAAS,CACpB,EAFI,WAEJ,CACP,EAEO,CACR,EAEiB,CAAgB,EAC3B,EAA4D,CACjE,CACC,mBAAoB,CAAC,EACrB,iBAAkB,CACnB,CACD,EAEM,EAAqC,CAC1C,OACD,EAEI,EAAqC,OAuBzC,OArBI,IAAY,UACf,EAAQ,QAAQ,cAAe,4BAA4B,EAC3D,EAAU,SACV,EAAU,KAAO,WAEjB,EAAQ,QAAQ,aAAa,GAAS,EAElC,IAAY,KACf,EAAU,MACA,IAAY,QACtB,EAAU,mBAAqB,GAAiB,WACtC,IAAY,WACtB,EAAU,sBACT,IAAkB,IAAA,GAAiC,IAArB,GAAG,IACxB,IAAY,UACtB,EAAU,mBAAqB,GAAkB,YAInD,EAAU,UAAY,EAAA,QAAW,EAAS,CAAS,EAE5C,EAAA,QAAM,cAAc,EAAS,EAAW,GAAG,CAAQ,CAC3D,EAEA,EAAY,YAAc,EAAA"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/dynamic-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 ReactNode, type ButtonHTMLAttributes } from 'react';\nimport classNames from '../../utilities/class-names';\nimport { DYNAMIC_ICON } from '../../utilities/constants';\n\n/**\n * Dynamic icon variant types\n */\nexport type DynamicIconVariant =\n\t'ellie' | 'eq' | 'score' | 'strength' | 'trend' | 'typing' | 'waffle';\n\n/**\n * Score polarity options\n */\nexport type ScorePolarity = 'positive' | 'negative';\n\n/**\n * Strength level options\n */\nexport type StrengthLevel = -3 | -2 | -1 | 0 | 1 | 2 | 3;\n\n/**\n * Trend direction options\n */\nexport type TrendDirection = 'down' | 'up' | 'neutral';\n\n/**\n * Assistive text for DynamicIcon\n */\nexport interface DynamicIconAssistiveText {\n\t/** Label for the icon */\n\tlabel?: string;\n}\n\ninterface DynamicIconCommonProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: DynamicIconAssistiveText;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Pauses animation */\n\tisPaused?: boolean;\n\t/** Disables animation */\n\tisStatic?: boolean;\n\t/**\n\t * Tooltip (`title` attribute). Not the accessible name: set `assistiveText.label`\n\t * for that. Without it, the label falls back to the variant name.\n\t */\n\ttitle?: string;\n}\n\n/** Decorative animations that take no variant-specific props. */\ninterface DynamicIconPlainProps extends DynamicIconCommonProps {\n\t/** Icon variant */\n\tvariant: 'ellie' | 'eq' | 'typing';\n}\n\ninterface DynamicIconScoreProps extends DynamicIconCommonProps {\n\t/** Icon variant */\n\tvariant: 'score';\n\t/** Polarity of the score */\n\tscorePolarity?: ScorePolarity;\n}\n\ninterface DynamicIconStrengthProps extends DynamicIconCommonProps {\n\t/** Icon variant */\n\tvariant: 'strength';\n\t/** Strength level, from -3 to 3 */\n\tstrengthLevel?: StrengthLevel;\n}\n\ninterface DynamicIconTrendProps extends DynamicIconCommonProps {\n\t/** Icon variant */\n\tvariant: 'trend';\n\t/** Trend direction */\n\ttrendDirection?: TrendDirection;\n}\n\n/**\n * The app launcher button. It renders a `<button type=\"button\">`, so it takes\n * `onClick` and the other `<button>` attributes.\n */\ninterface DynamicIconWaffleProps\n\textends\n\t\tDynamicIconCommonProps,\n\t\tOmit<\n\t\t\tButtonHTMLAttributes<HTMLButtonElement>,\n\t\t\t'children' | 'className' | 'title' | 'type'\n\t\t> {\n\t/** Icon variant */\n\tvariant: 'waffle';\n}\n\n/**\n * Props for the DynamicIcon component: a union on `variant`, so a prop that\n * only one variant uses is a compile error on the others.\n */\nexport type DynamicIconProps =\n\t| DynamicIconPlainProps\n\t| DynamicIconScoreProps\n\t| DynamicIconStrengthProps\n\t| DynamicIconTrendProps\n\t| DynamicIconWaffleProps;\n\n/**\n * A set of delightful animated icons.\n */\nconst DynamicIcon = (props: DynamicIconProps): React.ReactElement => {\n\tconst { assistiveText, className, isPaused, isStatic, title, variant } =\n\t\tprops;\n\tconst { scorePolarity } = props as DynamicIconScoreProps;\n\tconst { strengthLevel } = props as DynamicIconStrengthProps;\n\tconst { trendDirection } = props as DynamicIconTrendProps;\n\tconst getIconChildren = (): ReactNode[] => {\n\t\tconst children: ReactNode[] = [];\n\t\tlet defaultAssistiveText =\n\t\t\ttitle || `${variant.charAt(0).toUpperCase()}${variant.slice(1)}`;\n\n\t\tif (variant === 'ellie') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"ellie-svg\" viewBox=\"0 0 280 14\" aria-hidden=\"true\">\n\t\t\t\t\t{Array.from({ length: 20 }, (_, i) => {\n\t\t\t\t\t\tconst cx = 7 + i * 14;\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<React.Fragment key={i}>\n\t\t\t\t\t\t\t\t<circle cx={cx} cy=\"7\" r=\"4\" />\n\t\t\t\t\t\t\t\t<circle cx={cx} cy=\"7\" r=\"3\" />\n\t\t\t\t\t\t\t</React.Fragment>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'eq') {\n\t\t\tchildren.push(\n\t\t\t\t<div key=\"eq-bar-1\" className=\"slds-icon-eq__bar\" />,\n\t\t\t\t<div key=\"eq-bar-2\" className=\"slds-icon-eq__bar\" />,\n\t\t\t\t<div key=\"eq-bar-3\" className=\"slds-icon-eq__bar\" />\n\t\t\t);\n\t\t} else if (variant === 'score') {\n\t\t\tchildren.push(\n\t\t\t\t<svg\n\t\t\t\t\tkey=\"score-pos\"\n\t\t\t\t\tviewBox=\"0 0 5 5\"\n\t\t\t\t\tclassName=\"slds-icon-score__positive\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t>\n\t\t\t\t\t<circle cx=\"50%\" cy=\"50%\" r=\"1.875\" />\n\t\t\t\t</svg>,\n\t\t\t\t<svg\n\t\t\t\t\tkey=\"score-neg\"\n\t\t\t\t\tviewBox=\"0 0 5 5\"\n\t\t\t\t\tclassName=\"slds-icon-score__negative\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t>\n\t\t\t\t\t<circle cx=\"50%\" cy=\"50%\" r=\"1.875\" />\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'strength') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"strength-svg\" viewBox=\"0 0 27 7\" aria-hidden=\"true\">\n\t\t\t\t\t<circle r=\"3.025\" cx=\"3.5\" cy=\"3.5\" />\n\t\t\t\t\t<circle r=\"3.025\" cx=\"13.5\" cy=\"3.5\" />\n\t\t\t\t\t<circle r=\"3.025\" cx=\"23.5\" cy=\"3.5\" />\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'trend') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"trend-svg\" viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tclassName=\"slds-icon-trend__arrow\"\n\t\t\t\t\t\td=\"M.75 8H11M8 4.5L11.5 8 8 11.5\"\n\t\t\t\t\t/>\n\t\t\t\t\t<circle\n\t\t\t\t\t\tclassName=\"slds-icon-trend__circle\"\n\t\t\t\t\t\tcy=\"8\"\n\t\t\t\t\t\tcx=\"8\"\n\t\t\t\t\t\tr=\"7.375\"\n\t\t\t\t\t\ttransform=\"rotate(-28 8 8) scale(-1 1) translate(-16 0)\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'typing') {\n\t\t\tchildren.push(\n\t\t\t\t<span key=\"typing-1\" className=\"slds-icon-typing__dot\" />,\n\t\t\t\t<span key=\"typing-2\" className=\"slds-icon-typing__dot\" />,\n\t\t\t\t<span key=\"typing-3\" className=\"slds-icon-typing__dot\" />\n\t\t\t);\n\t\t\tif (!title) {\n\t\t\t\tdefaultAssistiveText = 'User is typing';\n\t\t\t}\n\t\t} else if (variant === 'waffle') {\n\t\t\tchildren.push(\n\t\t\t\t<span key=\"waffle\" className=\"slds-icon-waffle\">\n\t\t\t\t\t<span className=\"slds-r1\" />\n\t\t\t\t\t<span className=\"slds-r2\" />\n\t\t\t\t\t<span className=\"slds-r3\" />\n\t\t\t\t\t<span className=\"slds-r4\" />\n\t\t\t\t\t<span className=\"slds-r5\" />\n\t\t\t\t\t<span className=\"slds-r6\" />\n\t\t\t\t\t<span className=\"slds-r7\" />\n\t\t\t\t\t<span className=\"slds-r8\" />\n\t\t\t\t\t<span className=\"slds-r9\" />\n\t\t\t\t</span>\n\t\t\t);\n\t\t\tif (!title) {\n\t\t\t\tdefaultAssistiveText = 'Open App Launcher';\n\t\t\t}\n\t\t}\n\n\t\tchildren.push(\n\t\t\t<span key=\"assistive\" className=\"slds-assistive-text\">\n\t\t\t\t{assistiveText?.label || defaultAssistiveText}\n\t\t\t</span>\n\t\t);\n\n\t\treturn children;\n\t};\n\n\tconst children = getIconChildren();\n\tconst classes: (string | Record<string, boolean | undefined>)[] = [\n\t\t{\n\t\t\t'slds-is-animated': !isStatic,\n\t\t\t'slds-is-paused': isPaused,\n\t\t},\n\t];\n\n\tconst iconProps: Record<string, unknown> = {\n\t\ttitle,\n\t};\n\n\tlet element: 'span' | 'div' | 'button' = 'span';\n\n\tif (variant === 'waffle') {\n\t\tclasses.unshift('slds-button', 'slds-icon-waffle_container');\n\t\telement = 'button';\n\t\t// Pass `onClick` and the other `<button>` attributes through\n\t\tconst {\n\t\t\tassistiveText: _assistiveText,\n\t\t\tclassName: _className,\n\t\t\tisPaused: _isPaused,\n\t\t\tisStatic: _isStatic,\n\t\t\ttitle: _title,\n\t\t\tvariant: _variant,\n\t\t\t...buttonProps\n\t\t} = props as DynamicIconWaffleProps;\n\t\tObject.assign(iconProps, buttonProps);\n\t\ticonProps.type = 'button';\n\t} else {\n\t\tclasses.unshift(`slds-icon-${variant}`);\n\n\t\tif (variant === 'eq') {\n\t\t\telement = 'div';\n\t\t} else if (variant === 'score') {\n\t\t\ticonProps['data-slds-state'] = scorePolarity || 'positive';\n\t\t} else if (variant === 'strength') {\n\t\t\ticonProps['data-slds-strength'] =\n\t\t\t\tstrengthLevel !== undefined ? `${strengthLevel}` : '0';\n\t\t} else if (variant === 'trend') {\n\t\t\ticonProps['data-slds-trend'] = trendDirection || 'neutral';\n\t\t}\n\t}\n\n\ticonProps.className = classNames(classes, className);\n\n\treturn React.createElement(element, iconProps, ...children);\n};\n\nDynamicIcon.displayName = DYNAMIC_ICON;\n\nexport default DynamicIcon;\n"],"mappings":"0TA4GA,IAAM,EAAe,GAAgD,CACpE,GAAM,CAAE,gBAAe,YAAW,WAAU,WAAU,QAAO,WAC5D,EACK,CAAE,iBAAkB,EACpB,CAAE,iBAAkB,EACpB,CAAE,kBAAmB,EA0GrB,OAzGqC,CAC1C,IAAM,EAAwB,CAAC,EAC3B,EACH,GAAS,GAAG,EAAQ,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,EAAQ,MAAM,CAAC,IAmG9D,OAjGI,IAAY,QACf,EAAS,MACR,EAAA,EAAA,IAAA,CAAC,MAAD,CAAqB,QAAQ,aAAa,cAAY,OACpD,SAAA,MAAM,KAAK,CAAE,OAAQ,E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AAM,UAAU,SAAW,CAAA,GAC3B,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,CACtB,CAVI,EAAA,QAUJ,CACP,EACK,IACJ,EAAuB,sBAIzB,EAAS,MACR,EAAA,EAAA,IAAA,CAAC,OAAD,CAAsB,UAAU,sBAC9B,SAAA,GAAe,OAAS,CACpB,EAFI,WAEJ,CACP,EAEO,CACR,EAEiB,CAAgB,EAC3B,EAA4D,CACjE,CACC,mBAAoB,CAAC,EACrB,iBAAkB,CACnB,CACD,EAEM,EAAqC,CAC1C,OACD,EAEI,EAAqC,OAEzC,GAAI,IAAY,SAAU,CACzB,EAAQ,QAAQ,cAAe,4BAA4B,EAC3D,EAAU,SAEV,GAAM,CACL,cAAe,EACf,UAAW,EACX,SAAU,EACV,SAAU,EACV,MAAO,EACP,QAAS,EACT,GAAG,GACA,EACJ,OAAO,OAAO,EAAW,CAAW,EACpC,EAAU,KAAO,QAClB,MACC,EAAQ,QAAQ,aAAa,GAAS,EAElC,IAAY,KACf,EAAU,MACA,IAAY,QACtB,EAAU,mBAAqB,GAAiB,WACtC,IAAY,WACtB,EAAU,sBACT,IAAkB,IAAA,GAAiC,IAArB,GAAG,IACxB,IAAY,UACtB,EAAU,mBAAqB,GAAkB,WAMnD,MAFA,GAAU,UAAY,EAAA,QAAW,EAAS,CAAS,EAE5C,EAAA,QAAM,cAAc,EAAS,EAAW,GAAG,CAAQ,CAC3D,EAEA,EAAY,YAAc,EAAA"}
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../../utilities/hooks/use-controllable-state.cjs"),r=require("../button/index.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("classnames");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s=!0,c={toggleSection:`Toggle visibility of section`},l=({assistiveText:e,children:t,className:l,id:u,isOpen:d,defaultIsOpen:f=s,nonCollapsible:p=!1,onToggleOpen:m,title:h})=>{let g=(0,i.useId)(),[_,v]=n.useControllableState(d,f),y=u||g,b={...c,...e},x=`${y}-expanded-section-content`,S=(0,i.useCallback)(e=>{let t=!_;v(t),m?.(e,{isOpen:t})},[_,m,v]),C={"aria-controls":x,"aria-expanded":!!_},w=(0,o.jsx)(`span`,{className:(0,a.default)(`slds-truncate`,{"slds-p-horizontal_small":p}),title:h,children:h});return(0,o.jsxs)(`div`,{className:(0,a.default)(`slds-section`,{"slds-is-open":_},l),children:[(0,o.jsx)(`h3`,{className:(0,a.default)(`slds-section__title`,{"slds-theme_shade":p}),children:p?w:(0,o.jsx)(r.default,{assistiveText:{icon:b.toggleSection},iconCategory:`utility`,iconClassName:`slds-section__title-action-icon slds-button__icon_left`,iconName:`switch`,onClick:S,className:`slds-section__title-action`,variant:`base`,...C,children:w})}),(0,o.jsx)(`div`,{"aria-hidden":!_,className:`slds-section__content`,id:x,children:t})]})};l.displayName=t.EXPANDABLE_SECTION,exports.default=l;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../button/index.cjs"),r=require("../../utilities/hooks/use-controllable-state.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("classnames");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s=!0,c={toggleSection:`Toggle visibility of section`},l=({assistiveText:e,children:t,className:l,id:u,isOpen:d,defaultIsOpen:f=s,nonCollapsible:p=!1,onToggleOpen:m,title:h})=>{let g=(0,i.useId)(),[_,v]=r.useControllableState(d,f),y=p||_,b=u||g,x={...c,...e},S=`${b}-expanded-section-content`,C=(0,i.useCallback)(e=>{let t=!y;v(t),m?.(e,{isOpen:t})},[y,m,v]),w={"aria-controls":S,"aria-expanded":!!y},T=(0,o.jsx)(`span`,{className:(0,a.default)(`slds-truncate`,{"slds-p-horizontal_small":p}),title:h,children:h});return(0,o.jsxs)(`div`,{className:(0,a.default)(`slds-section`,{"slds-is-open":y},l),children:[(0,o.jsx)(`h3`,{className:(0,a.default)(`slds-section__title`,{"slds-theme_shade":p}),children:p?T:(0,o.jsx)(n.default,{assistiveText:{icon:x.toggleSection},iconCategory:`utility`,iconClassName:`slds-section__title-action-icon slds-button__icon_left`,iconName:`switch`,onClick:C,className:`slds-section__title-action`,variant:`base`,...w,children:T})}),(0,o.jsx)(`div`,{"aria-hidden":!y,className:`slds-section__content`,id:S,children:t})]})};l.displayName=t.EXPANDABLE_SECTION,exports.default=l;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/expandable-section/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, {\n\tuseId,\n\tuseCallback,\n\ttype ReactNode,\n\ttype MouseEvent,\n} from 'react';\nimport classNames from 'classnames';\nimport Button from '../button';\nimport { EXPANDABLE_SECTION } from '../../utilities/constants';\nimport { useControllableState } from '../../utilities/hooks';\n\n/**\n * Open state of an uncontrolled section when `defaultIsOpen` is not set: sections start open.\n * This is a documented exception to the \"booleans must not default to `true`\" rule.\n */\nconst DEFAULT_IS_OPEN = true;\n\n/**\n * Assistive text for ExpandableSection\n */\nexport interface ExpandableSectionAssistiveText {\n\t/** Label for the toggle button */\n\ttoggleSection?: string;\n}\n\n/**\n * Props for the ExpandableSection component\n */\nexport interface ExpandableSectionProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: ExpandableSectionAssistiveText;\n\t/** Content of the section */\n\tchildren?: ReactNode;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Unique identifier */\n\tid?: string;\n\t/**\n\t * Open state when the section is controlled. When set, the section only expands and collapses when\n\t * this prop changes: update it from `onToggleOpen`. Leave it `undefined` for an uncontrolled section\n\t * (see `defaultIsOpen`).\n\t */\n\tisOpen?: boolean;\n\t/**\n\t * Initial open state of an uncontrolled section (`isOpen` is `undefined`). Defaults to `true`\n\t * (sections start open); an exception to the boolean-default rule.\n\t */\n\tdefaultIsOpen?: boolean;\n\t/** Whether section cannot be collapsed */\n\tnonCollapsible?: boolean;\n\t/**\n\t * Called when the toggle button is clicked, controlled or not. `data.isOpen` is the requested\n\t * (next) open state.\n\t */\n\tonToggleOpen?: (\n\t\tevent: MouseEvent<HTMLButtonElement>,\n\t\tdata: { isOpen: boolean }\n\t) => void;\n\t/** Section title (required) */\n\ttitle: string;\n}\n\nconst defaultAssistiveText: ExpandableSectionAssistiveText = {\n\ttoggleSection: 'Toggle visibility of section',\n};\n\n/**\n * Toggle visibility of section content with the Expandable Section\n */\nconst ExpandableSection = ({\n\tassistiveText: propAssistiveText,\n\tchildren,\n\tclassName,\n\tid: propId,\n\tisOpen: controlledIsOpen,\n\tdefaultIsOpen = DEFAULT_IS_OPEN,\n\tnonCollapsible = false,\n\tonToggleOpen,\n\ttitle,\n}: ExpandableSectionProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst [isOpen, setIsOpen] = useControllableState(\n\t\tcontrolledIsOpen,\n\t\tdefaultIsOpen\n\t);\n\n\tconst id = propId || generatedId;\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\n\tconst contentId = `${id}-expanded-section-content`;\n\n\tconst handleToggle = useCallback(\n\t\t(event: MouseEvent<HTMLButtonElement>) => {\n\t\t\tconst nextIsOpen = !isOpen;\n\t\t\tsetIsOpen(nextIsOpen);\n\t\t\tonToggleOpen?.(event, { isOpen: nextIsOpen });\n\t\t},\n\t\t[isOpen, onToggleOpen, setIsOpen]\n\t);\n\n\tconst buttonAriaProps = {\n\t\t'aria-controls': contentId,\n\t\t'aria-expanded': Boolean(isOpen),\n\t};\n\n\tconst titleNode = (\n\t\t<span\n\t\t\tclassName={classNames('slds-truncate', {\n\t\t\t\t'slds-p-horizontal_small': nonCollapsible,\n\t\t\t})}\n\t\t\ttitle={title}\n\t\t>\n\t\t\t{title}\n\t\t</span>\n\t);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\t'slds-section',\n\t\t\t\t{ 'slds-is-open': isOpen },\n\t\t\t\tclassName as string\n\t\t\t)}\n\t\t>\n\t\t\t<h3\n\t\t\t\tclassName={classNames('slds-section__title', {\n\t\t\t\t\t'slds-theme_shade': nonCollapsible,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{!nonCollapsible ? (\n\t\t\t\t\t<Button\n\t\t\t\t\t\tassistiveText={{ icon: assistiveText.toggleSection }}\n\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\ticonClassName=\"slds-section__title-action-icon slds-button__icon_left\"\n\t\t\t\t\t\ticonName=\"switch\"\n\t\t\t\t\t\tonClick={handleToggle}\n\t\t\t\t\t\tclassName=\"slds-section__title-action\"\n\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t{...buttonAriaProps}\n\t\t\t\t\t>\n\t\t\t\t\t\t{titleNode}\n\t\t\t\t\t</Button>\n\t\t\t\t) : (\n\t\t\t\t\ttitleNode\n\t\t\t\t)}\n\t\t\t</h3>\n\t\t\t<div\n\t\t\t\taria-hidden={!isOpen}\n\t\t\t\tclassName=\"slds-section__content\"\n\t\t\t\tid={contentId}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nExpandableSection.displayName = EXPANDABLE_SECTION;\n\nexport default ExpandableSection;\n"],"mappings":"yZAkBA,IAAM,EAAkB,GA+ClB,EAAuD,CAC5D,cAAe,8BAChB,EAKM,GAAqB,CAC1B,cAAe,EACf,WACA,YACA,GAAI,EACJ,OAAQ,EACR,gBAAgB,EAChB,iBAAiB,GACjB,eACA,WACiD,CACjD,IAAM,GAAA,EAAc,EAAA,MAAA,CAAM,EACpB,CAAC,EAAQ,GAAa,EAAA,qBAC3B,EACA,CACD,EAEM,EAAK,GAAU,EACf,EAAgB,CAAE,GAAG,EAAsB,GAAG,CAAkB,EAEhE,EAAY,GAAG,EAAG,2BAElB,GAAA,EAAe,EAAA,YAAA,CACnB,GAAyC,CACzC,IAAM,EAAa,CAAC,EACpB,EAAU,CAAU,EACpB,IAAe,EAAO,CAAE,OAAQ,CAAW,CAAC,CAC7C,EACA,CAAC,EAAQ,EAAc,CAAS,CACjC,EAEM,EAAkB,CACvB,gBAAiB,EACjB,gBAAiB,EAAQ,CAC1B,EAEM,GACL,EAAA,EAAA,IAAA,CAAC,OAAD,CACC,WAAA,EAAW,EAAA,QAAA,CAAW,gBAAiB,CACtC,0BAA2B,CAC5B,CAAC,EACM,QAEN,SAAA,CACI,CAAA,EAGP,OACC,EAAA,EAAA,KAAA,CAAC,MAAD,CACC,WAAA,EAAW,EAAA,QAAA,CACV,eACA,CAAE,eAAgB,CAAO,EACzB,CACD,EALD,SAAA,EAOC,EAAA,EAAA,IAAA,CAAC,KAAD,CACC,WAAA,EAAW,EAAA,QAAA,CAAW,sBAAuB,CAC5C,mBAAoB,CACrB,CAAC,EAEA,SAAC,EAcD,GAbA,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,cAAe,CAAE,KAAM,EAAc,aAAc,EACnD,aAAa,UACb,cAAc,yDACd,SAAS,SACT,QAAS,EACT,UAAU,6BACV,QAAQ,OACR,GAAI,EAEH,SAAA,CACM,CAAA,CAIN,CAAA,GACJ,EAAA,EAAA,IAAA,CAAC,MAAD,CACC,cAAa,CAAC,EACd,UAAU,wBACV,GAAI,EAEH,UACG,CAAA,CACD,GAEP,EAEA,EAAkB,YAAc,EAAA"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/expandable-section/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, {\n\tuseId,\n\tuseCallback,\n\ttype ReactNode,\n\ttype MouseEvent,\n} from 'react';\nimport classNames from 'classnames';\nimport Button from '../button';\nimport { EXPANDABLE_SECTION } from '../../utilities/constants';\nimport { useControllableState } from '../../utilities/hooks';\n\n/**\n * Open state of an uncontrolled section when `defaultIsOpen` is not set: sections start open.\n * This is a documented exception to the \"booleans must not default to `true`\" rule.\n */\nconst DEFAULT_IS_OPEN = true;\n\n/**\n * Assistive text for ExpandableSection\n */\nexport interface ExpandableSectionAssistiveText {\n\t/** Label for the toggle button */\n\ttoggleSection?: string;\n}\n\n/**\n * Props shared by every ExpandableSection\n */\ninterface ExpandableSectionBaseProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: ExpandableSectionAssistiveText;\n\t/** Content of the section */\n\tchildren?: ReactNode;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Unique identifier */\n\tid?: string;\n\t/**\n\t * Called when the toggle button is clicked, controlled or not. `data.isOpen` is the requested\n\t * (next) open state.\n\t */\n\tonToggleOpen?: (\n\t\tevent: MouseEvent<HTMLButtonElement>,\n\t\tdata: { isOpen: boolean }\n\t) => void;\n\t/** Section title (required) */\n\ttitle: string;\n}\n\n/** A section the user can collapse. Open or closed, controlled or not. */\ninterface ExpandableSectionCollapsibleProps {\n\t/**\n\t * Open state when the section is controlled. When set, the section only expands and collapses when\n\t * this prop changes: update it from `onToggleOpen`. Leave it `undefined` for an uncontrolled section\n\t * (see `defaultIsOpen`).\n\t */\n\tisOpen?: boolean;\n\t/**\n\t * Initial open state of an uncontrolled section (`isOpen` is `undefined`). Defaults to `true`\n\t * (sections start open); an exception to the boolean-default rule.\n\t */\n\tdefaultIsOpen?: boolean;\n\t/** Whether section cannot be collapsed */\n\tnonCollapsible?: false;\n}\n\n/**\n * A section that cannot be collapsed is always open: `isOpen={false}` or\n * `defaultIsOpen={false}` would hide its content with no way to show it.\n */\ninterface ExpandableSectionNonCollapsibleProps {\n\t/**\n\t * Open state when the section is controlled. A non-collapsible section is\n\t * always open, so only `true` is accepted.\n\t */\n\tisOpen?: true;\n\t/** Initial open state. A non-collapsible section is always open. */\n\tdefaultIsOpen?: true;\n\t/** Whether section cannot be collapsed */\n\tnonCollapsible: true;\n}\n\n/**\n * Props for the ExpandableSection component: a union on `nonCollapsible`, so\n * a section that can never be shown again does not compile.\n */\nexport type ExpandableSectionProps = ExpandableSectionBaseProps &\n\t(ExpandableSectionCollapsibleProps | ExpandableSectionNonCollapsibleProps);\n\nconst defaultAssistiveText: ExpandableSectionAssistiveText = {\n\ttoggleSection: 'Toggle visibility of section',\n};\n\n/**\n * Toggle visibility of section content with the Expandable Section\n */\nconst ExpandableSection = ({\n\tassistiveText: propAssistiveText,\n\tchildren,\n\tclassName,\n\tid: propId,\n\tisOpen: controlledIsOpen,\n\tdefaultIsOpen = DEFAULT_IS_OPEN,\n\tnonCollapsible = false,\n\tonToggleOpen,\n\ttitle,\n}: ExpandableSectionProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst [isOpenState, setIsOpen] = useControllableState(\n\t\tcontrolledIsOpen,\n\t\tdefaultIsOpen\n\t);\n\t// A section that cannot be collapsed is always open, whatever `isOpen` says\n\t// (the types reject `false`; this covers JavaScript callers).\n\tconst isOpen = nonCollapsible || isOpenState;\n\n\tconst id = propId || generatedId;\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\n\tconst contentId = `${id}-expanded-section-content`;\n\n\tconst handleToggle = useCallback(\n\t\t(event: MouseEvent<HTMLButtonElement>) => {\n\t\t\tconst nextIsOpen = !isOpen;\n\t\t\tsetIsOpen(nextIsOpen);\n\t\t\tonToggleOpen?.(event, { isOpen: nextIsOpen });\n\t\t},\n\t\t[isOpen, onToggleOpen, setIsOpen]\n\t);\n\n\tconst buttonAriaProps = {\n\t\t'aria-controls': contentId,\n\t\t'aria-expanded': Boolean(isOpen),\n\t};\n\n\tconst titleNode = (\n\t\t<span\n\t\t\tclassName={classNames('slds-truncate', {\n\t\t\t\t'slds-p-horizontal_small': nonCollapsible,\n\t\t\t})}\n\t\t\ttitle={title}\n\t\t>\n\t\t\t{title}\n\t\t</span>\n\t);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\t'slds-section',\n\t\t\t\t{ 'slds-is-open': isOpen },\n\t\t\t\tclassName as string\n\t\t\t)}\n\t\t>\n\t\t\t<h3\n\t\t\t\tclassName={classNames('slds-section__title', {\n\t\t\t\t\t'slds-theme_shade': nonCollapsible,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{!nonCollapsible ? (\n\t\t\t\t\t<Button\n\t\t\t\t\t\tassistiveText={{ icon: assistiveText.toggleSection }}\n\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\ticonClassName=\"slds-section__title-action-icon slds-button__icon_left\"\n\t\t\t\t\t\ticonName=\"switch\"\n\t\t\t\t\t\tonClick={handleToggle}\n\t\t\t\t\t\tclassName=\"slds-section__title-action\"\n\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t{...buttonAriaProps}\n\t\t\t\t\t>\n\t\t\t\t\t\t{titleNode}\n\t\t\t\t\t</Button>\n\t\t\t\t) : (\n\t\t\t\t\ttitleNode\n\t\t\t\t)}\n\t\t\t</h3>\n\t\t\t<div\n\t\t\t\taria-hidden={!isOpen}\n\t\t\t\tclassName=\"slds-section__content\"\n\t\t\t\tid={contentId}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nExpandableSection.displayName = EXPANDABLE_SECTION;\n\nexport default ExpandableSection;\n"],"mappings":"yZAkBA,IAAM,EAAkB,GA0ElB,EAAuD,CAC5D,cAAe,8BAChB,EAKM,GAAqB,CAC1B,cAAe,EACf,WACA,YACA,GAAI,EACJ,OAAQ,EACR,gBAAgB,EAChB,iBAAiB,GACjB,eACA,WACiD,CACjD,IAAM,GAAA,EAAc,EAAA,MAAA,CAAM,EACpB,CAAC,EAAa,GAAa,EAAA,qBAChC,EACA,CACD,EAGM,EAAS,GAAkB,EAE3B,EAAK,GAAU,EACf,EAAgB,CAAE,GAAG,EAAsB,GAAG,CAAkB,EAEhE,EAAY,GAAG,EAAG,2BAElB,GAAA,EAAe,EAAA,YAAA,CACnB,GAAyC,CACzC,IAAM,EAAa,CAAC,EACpB,EAAU,CAAU,EACpB,IAAe,EAAO,CAAE,OAAQ,CAAW,CAAC,CAC7C,EACA,CAAC,EAAQ,EAAc,CAAS,CACjC,EAEM,EAAkB,CACvB,gBAAiB,EACjB,gBAAiB,EAAQ,CAC1B,EAEM,GACL,EAAA,EAAA,IAAA,CAAC,OAAD,CACC,WAAA,EAAW,EAAA,QAAA,CAAW,gBAAiB,CACtC,0BAA2B,CAC5B,CAAC,EACM,QAEN,SAAA,CACI,CAAA,EAGP,OACC,EAAA,EAAA,KAAA,CAAC,MAAD,CACC,WAAA,EAAW,EAAA,QAAA,CACV,eACA,CAAE,eAAgB,CAAO,EACzB,CACD,EALD,SAAA,EAOC,EAAA,EAAA,IAAA,CAAC,KAAD,CACC,WAAA,EAAW,EAAA,QAAA,CAAW,sBAAuB,CAC5C,mBAAoB,CACrB,CAAC,EAEA,SAAC,EAcD,GAbA,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,cAAe,CAAE,KAAM,EAAc,aAAc,EACnD,aAAa,UACb,cAAc,yDACd,SAAS,SACT,QAAS,EACT,UAAU,6BACV,QAAQ,OACR,GAAI,EAEH,SAAA,CACM,CAAA,CAIN,CAAA,GACJ,EAAA,EAAA,IAAA,CAAC,MAAD,CACC,cAAa,CAAC,EACd,UAAU,wBACV,GAAI,EAEH,UACG,CAAA,CACD,GAEP,EAEA,EAAkB,YAAc,EAAA"}
@@ -5,5 +5,5 @@ const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utiliti
5
5
  { background: none; }
6
6
  .dsr-file__more-actions > button:first-child
7
7
  { border-radius: 0 0.25rem 0.25rem 0!important;}
8
- `})}generatedId;constructor(e){super(e),this.generatedId=n.default()}getId(){return this.props.id||this.generatedId}handleOnClickImage=e=>{this.props.href===`#`&&e.preventDefault(),this.props.onClickImage&&this.props.onClickImage(e)};render(){let t={...l.assistiveText,...this.props.assistiveText};return(0,s.jsxs)(`div`,{id:this.getId(),className:(0,o.default)(`slds-file`,`slds-file_card`,this.props.hasNoVisibleTitle?null:`slds-has-title`,this.props.className),children:[(0,s.jsxs)(`figure`,{children:[(0,s.jsx)(`a`,{href:this.props.href,className:(0,o.default)(`slds-file__crop`,`slds-file__crop_${this.props.crop??`16-by-9`}`),onClick:this.handleOnClickImage,children:(0,s.jsx)(r.default,{assistiveText:t,labels:{title:this.props.labels?.title},isLoading:this.props.isLoading,image:this.props.image,icon:this.props.icon})}),this.props.hasNoVisibleTitle?null:(0,s.jsxs)(`figcaption`,{className:`slds-file__title slds-file__title_card`,children:[(0,s.jsx)(`div`,{className:`slds-media__figure slds-line-height_reset`,children:this.props.icon?a.default.cloneElement(this.props.icon,{size:`x-small`}):null}),(0,s.jsx)(`div`,{className:`slds-media__body`,children:(0,s.jsx)(`span`,{className:`slds-file__text slds-truncate`,title:this.props.labels?.title,children:this.props.labels?.title})})]})]}),this.props.externalIcon?(0,s.jsx)(`div`,{className:`slds-file__external-icon`,children:a.default.cloneElement(this.props.externalIcon,{containerClassName:(0,o.default)(`slds-file__icon slds-icon_container`,this.props.externalIcon.props.containerClassName)})}):null,this.props.moreActionsDropdown?e.injectMoreActionsStyles():null,(0,s.jsx)(i.default,{assistiveText:t,hasNoVisibleTitle:this.props.hasNoVisibleTitle,onClickDownload:this.props.onClickDownload,moreActionsDropdown:this.props.moreActionsDropdown})]})}};exports.default=u;
8
+ `})}generatedId;constructor(e){super(e),this.generatedId=n.default()}getId(){return this.props.id||this.generatedId}handleOnClickImage=e=>{this.props.href===`#`&&e.preventDefault(),this.props.onClickImage&&this.props.onClickImage(e)};render(){let t={...l.assistiveText,...this.props.assistiveText};return(0,s.jsxs)(`div`,{id:this.getId(),className:(0,o.default)(`slds-file`,`slds-file_card`,this.props.hasNoVisibleTitle?null:`slds-has-title`,this.props.className),children:[(0,s.jsxs)(`figure`,{children:[(0,s.jsx)(`a`,{href:this.props.href,className:(0,o.default)(`slds-file__crop`,`slds-file__crop_${this.props.crop??`16-by-9`}`),onClick:this.handleOnClickImage,children:(0,s.jsx)(r.default,{assistiveText:t,labels:{title:this.props.labels.title},isLoading:this.props.isLoading,image:this.props.image,icon:this.props.icon})}),this.props.hasNoVisibleTitle?null:(0,s.jsxs)(`figcaption`,{className:`slds-file__title slds-file__title_card`,children:[(0,s.jsx)(`div`,{className:`slds-media__figure slds-line-height_reset`,children:this.props.icon?a.default.cloneElement(this.props.icon,{size:`x-small`}):null}),(0,s.jsx)(`div`,{className:`slds-media__body`,children:(0,s.jsx)(`span`,{className:`slds-file__text slds-truncate`,title:this.props.labels.title,children:this.props.labels.title})})]})]}),this.props.externalIcon?(0,s.jsx)(`div`,{className:`slds-file__external-icon`,children:a.default.cloneElement(this.props.externalIcon,{containerClassName:(0,o.default)(`slds-file__icon slds-icon_container`,this.props.externalIcon.props.containerClassName)})}):null,this.props.moreActionsDropdown?e.injectMoreActionsStyles():null,(0,s.jsx)(i.default,{assistiveText:t,hasNoVisibleTitle:this.props.hasNoVisibleTitle,onClickDownload:this.props.onClickDownload,moreActionsDropdown:this.props.moreActionsDropdown})]})}};exports.default=u;
9
9
  //# sourceMappingURL=file.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"file.cjs","names":[],"sources":["../../../../components/files/file.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// Implements the [Files design pattern](https://lightningdesignsystem.com/components/files/) in React.\n// Based on SLDS v2.4.0\nimport React, { type ReactElement, type ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport { FILES_FILE } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\n\nimport type { IconProps } from '../icon';\nimport type { MenuDropdownProps } from '../menu-dropdown';\nimport FileFigure from './private/file-figure';\nimport FileActions from './private/file-actions';\n\nconst displayName = FILES_FILE;\n\nexport interface FileAssistiveText {\n\tdownload?: string;\n\timage?: string;\n\tlink?: string;\n\tloading?: string;\n\tmoreActions?: string;\n}\n\nexport interface FileProps {\n\t/**\n\t * **Assistive text for accessibility**\n\t * * download - description for the download button if present\n\t * * image - description for the file image\n\t * * link - description for the file link\n\t * * loading - description for the loading spinner if present\n\t * * moreActions - description for the more actions dropdown if present\n\t */\n\tassistiveText?: FileAssistiveText;\n\t/**\n\t * CSS class names to be added to the container element. `array`, `object`, or `string` are accepted.\n\t */\n\tclassName?: unknown[] | Record<string, unknown> | string;\n\t/**\n\t * Controls different cropping aspect ratios for the component. Inside `Files`, defaults to its `crop`; otherwise `16-by-9`.\n\t */\n\tcrop?: '16-by-9' | '4-by-3' | '1-by-1';\n\t/**\n\t * `Icon` shown in the top left corner of the file. Its `containerClassName` is added to the file's own classes.\n\t */\n\texternalIcon?: ReactElement<IconProps>;\n\t/**\n\t * Controls whether the file's title should be visible\n\t */\n\thasNoVisibleTitle?: boolean;\n\t/**\n\t * Href attribute for image\n\t */\n\thref?: string;\n\t/**\n\t * `Icon` associated with the file. The file renders it in the preview and the title, and sets its `size` in each.\n\t */\n\ticon?: ReactElement<IconProps>;\n\t/**\n\t * HTML id for component.\n\t */\n\tid?: string;\n\t/**\n\t * Link to thumbnail image\n\t */\n\timage?: string;\n\t/**\n\t * Controls whether file preview is loading\n\t */\n\tisLoading?: boolean;\n\t/**\n\t * Labels for the File Component\n\t * * image - title for the file. Required.\n\t */\n\tlabels?: {\n\t\ttitle?: string;\n\t};\n\t/**\n\t * `MenuDropdown` for the more actions button; doesn't show more actions button if empty.\n\t * The file styles it as an icon button; props you set on it win.\n\t */\n\tmoreActionsDropdown?: ReactElement<Partial<MenuDropdownProps>>;\n\t/**\n\t * Action to be done on clicking download button; doesn't show download button if empty\n\t */\n\tonClickDownload?: (event: React.MouseEvent) => void;\n\t/**\n\t * Function that is called when image is clicked; can be used instead of href for more advanced event handling\n\t */\n\tonClickImage?: (event: React.MouseEvent) => void;\n}\n\nconst defaultProps: Partial<FileProps> = {\n\tassistiveText: {\n\t\tdownload: 'download',\n\t\tlink: 'Preview:',\n\t\tloading: 'loading',\n\t\tmoreActions: 'more actions',\n\t},\n\thref: '#',\n\tisLoading: false,\n\thasNoVisibleTitle: false,\n};\n\n/**\n * File is a component that represents content uploaded as an attachment.\n */\nclass File extends React.Component<FileProps> {\n\tstatic displayName = displayName;\n\n\tstatic defaultProps = defaultProps;\n\n\tstatic injectMoreActionsStyles(): ReactNode {\n\t\treturn (\n\t\t\t<style>{`\n\t\t\t\t\t.dsr-file__more-actions-dropdown ul.dropdown__list li.slds-dropdown__item > a:before\n\t\t\t\t\t{ background: none; }\n\t\t\t\t\t.dsr-file__more-actions-dropdown ul.dropdown__list li.slds-dropdown__item > a:after\n\t\t\t\t\t{ background: none; }\n\t\t\t\t\t.dsr-file__more-actions > button:first-child\n\t\t\t\t\t{ border-radius: 0 0.25rem 0.25rem 0!important;}\n\t\t\t`}</style>\n\t\t);\n\t}\n\n\tgeneratedId: string;\n\n\tconstructor(props: FileProps) {\n\t\tsuper(props);\n\n\t\tthis.generatedId = generateId();\n\t}\n\n\t/**\n\t * Get the File's HTML id. Generate a new one if no ID present.\n\t */\n\tgetId() {\n\t\treturn this.props.id || this.generatedId;\n\t}\n\n\thandleOnClickImage = (event: React.MouseEvent) => {\n\t\tif (this.props.href === '#') {\n\t\t\tevent.preventDefault();\n\t\t}\n\n\t\tif (this.props.onClickImage) {\n\t\t\tthis.props.onClickImage(event);\n\t\t}\n\t};\n\n\trender() {\n\t\tconst assistiveText = {\n\t\t\t...defaultProps.assistiveText,\n\t\t\t...this.props.assistiveText,\n\t\t};\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tid={this.getId()}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\t'slds-file',\n\t\t\t\t\t'slds-file_card',\n\t\t\t\t\t!this.props.hasNoVisibleTitle ? 'slds-has-title' : null,\n\t\t\t\t\tthis.props.className as string\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t<figure>\n\t\t\t\t\t<a\n\t\t\t\t\t\thref={this.props.href}\n\t\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t\t'slds-file__crop',\n\t\t\t\t\t\t\t`slds-file__crop_${this.props.crop ?? '16-by-9'}`\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tonClick={this.handleOnClickImage}\n\t\t\t\t\t>\n\t\t\t\t\t\t<FileFigure\n\t\t\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\t\t\tlabels={{\n\t\t\t\t\t\t\t\ttitle: this.props.labels?.title,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tisLoading={this.props.isLoading}\n\t\t\t\t\t\t\timage={this.props.image}\n\t\t\t\t\t\t\ticon={this.props.icon}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</a>\n\t\t\t\t\t{!this.props.hasNoVisibleTitle ? (\n\t\t\t\t\t\t<figcaption className=\"slds-file__title slds-file__title_card\">\n\t\t\t\t\t\t\t<div className=\"slds-media__figure slds-line-height_reset\">\n\t\t\t\t\t\t\t\t{this.props.icon\n\t\t\t\t\t\t\t\t\t? React.cloneElement(this.props.icon, {\n\t\t\t\t\t\t\t\t\t\t\tsize: 'x-small',\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t: null}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div className=\"slds-media__body\">\n\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\tclassName=\"slds-file__text slds-truncate\"\n\t\t\t\t\t\t\t\t\ttitle={this.props.labels?.title}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{this.props.labels?.title}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</figcaption>\n\t\t\t\t\t) : null}\n\t\t\t\t</figure>\n\t\t\t\t{this.props.externalIcon ? (\n\t\t\t\t\t<div className=\"slds-file__external-icon\">\n\t\t\t\t\t\t{React.cloneElement(this.props.externalIcon, {\n\t\t\t\t\t\t\tcontainerClassName: classNames(\n\t\t\t\t\t\t\t\t'slds-file__icon slds-icon_container',\n\t\t\t\t\t\t\t\tthis.props.externalIcon.props.containerClassName\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t})}\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t\t{this.props.moreActionsDropdown ? File.injectMoreActionsStyles() : null}\n\t\t\t\t<FileActions\n\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\thasNoVisibleTitle={this.props.hasNoVisibleTitle}\n\t\t\t\t\tonClickDownload={this.props.onClickDownload}\n\t\t\t\t\tmoreActionsDropdown={this.props.moreActionsDropdown}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t}\n}\n\nexport default File;\n"],"mappings":"uVAgBA,IAAM,EAAc,EAAA,WA8Ed,EAAmC,CACxC,cAAe,CACd,SAAU,WACV,KAAM,WACN,QAAS,UACT,YAAa,cACd,EACA,KAAM,IACN,UAAW,GACX,kBAAmB,EACpB,EAKM,EAAN,MAAM,UAAa,EAAA,QAAM,SAAqB,CAC7C,OAAO,YAAc,EAErB,OAAO,aAAe,EAEtB,OAAO,yBAAqC,CAC3C,OACC,EAAA,EAAA,IAAA,CAAC,QAAD,CAAA,SAAQ;;;;;;;IAOC,CAAA,CAEX,CAEA,YAEA,YAAY,EAAkB,CAC7B,MAAM,CAAK,EAEX,KAAK,YAAc,EAAA,QAAW,CAC/B,CAKA,OAAQ,CACP,OAAO,KAAK,MAAM,IAAM,KAAK,WAC9B,CAEA,mBAAsB,GAA4B,CAC7C,KAAK,MAAM,OAAS,KACvB,EAAM,eAAe,EAGlB,KAAK,MAAM,cACd,KAAK,MAAM,aAAa,CAAK,CAE/B,EAEA,QAAS,CACR,IAAM,EAAgB,CACrB,GAAG,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AAa,MAAM,kBAC/B,CACD,CAAC,CACG,CAAA,EACF,KACH,KAAK,MAAM,oBAAsB,EAAK,wBAAwB,EAAI,MACnE,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACgB,gBACf,kBAAmB,KAAK,MAAM,kBAC9B,gBAAiB,KAAK,MAAM,gBAC5B,oBAAqB,KAAK,MAAM,mBAChC,CAAA,CACG,GAEP,CACD"}
1
+ {"version":3,"file":"file.cjs","names":[],"sources":["../../../../components/files/file.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// Implements the [Files design pattern](https://lightningdesignsystem.com/components/files/) in React.\n// Based on SLDS v2.4.0\nimport React, { type ReactElement, type ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport { FILES_FILE } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\n\nimport type { IconProps } from '../icon';\nimport type { MenuDropdownProps } from '../menu-dropdown';\nimport FileFigure from './private/file-figure';\nimport FileActions from './private/file-actions';\n\nconst displayName = FILES_FILE;\n\nexport interface FileAssistiveText {\n\tdownload?: string;\n\timage?: string;\n\tlink?: string;\n\tloading?: string;\n\tmoreActions?: string;\n}\n\nexport interface FileProps {\n\t/**\n\t * **Assistive text for accessibility**\n\t * * download - description for the download button if present\n\t * * image - description for the file image\n\t * * link - description for the file link\n\t * * loading - description for the loading spinner if present\n\t * * moreActions - description for the more actions dropdown if present\n\t */\n\tassistiveText?: FileAssistiveText;\n\t/**\n\t * CSS class names to be added to the container element. `array`, `object`, or `string` are accepted.\n\t */\n\tclassName?: unknown[] | Record<string, unknown> | string;\n\t/**\n\t * Controls different cropping aspect ratios for the component. Inside `Files`, defaults to its `crop`; otherwise `16-by-9`.\n\t */\n\tcrop?: '16-by-9' | '4-by-3' | '1-by-1';\n\t/**\n\t * `Icon` shown in the top left corner of the file. Its `containerClassName` is added to the file's own classes.\n\t */\n\texternalIcon?: ReactElement<IconProps>;\n\t/**\n\t * Controls whether the file's title should be visible\n\t */\n\thasNoVisibleTitle?: boolean;\n\t/**\n\t * Href attribute for image. Defaults to `#`, which does not navigate, so `onClickImage`\n\t * can handle the click without a URL.\n\t */\n\thref?: string;\n\t/**\n\t * `Icon` associated with the file. The file renders it in the preview and the title, and sets its `size` in each.\n\t */\n\ticon?: ReactElement<IconProps>;\n\t/**\n\t * HTML id for component.\n\t */\n\tid?: string;\n\t/**\n\t * Link to thumbnail image\n\t */\n\timage?: string;\n\t/**\n\t * Controls whether file preview is loading\n\t */\n\tisLoading?: boolean;\n\t/**\n\t * Labels for the File Component\n\t * * title - title for the file, shown under the preview and used as its name.\n\t */\n\tlabels: {\n\t\ttitle: string;\n\t};\n\t/**\n\t * `MenuDropdown` for the more actions button; doesn't show more actions button if empty.\n\t * The file styles it as an icon button; props you set on it win.\n\t */\n\tmoreActionsDropdown?: ReactElement<Partial<MenuDropdownProps>>;\n\t/**\n\t * Action to be done on clicking download button; doesn't show download button if empty\n\t */\n\tonClickDownload?: (event: React.MouseEvent) => void;\n\t/**\n\t * Function that is called when image is clicked; can be used instead of href for more advanced event handling\n\t */\n\tonClickImage?: (event: React.MouseEvent) => void;\n}\n\nconst defaultProps: Pick<\n\tFileProps,\n\t'assistiveText' | 'hasNoVisibleTitle' | 'href' | 'isLoading'\n> = {\n\tassistiveText: {\n\t\tdownload: 'download',\n\t\tlink: 'Preview:',\n\t\tloading: 'loading',\n\t\tmoreActions: 'more actions',\n\t},\n\thref: '#',\n\tisLoading: false,\n\thasNoVisibleTitle: false,\n};\n\n/**\n * File is a component that represents content uploaded as an attachment.\n */\nclass File extends React.Component<FileProps> {\n\tstatic displayName = displayName;\n\n\tstatic defaultProps = defaultProps;\n\n\tstatic injectMoreActionsStyles(): ReactNode {\n\t\treturn (\n\t\t\t<style>{`\n\t\t\t\t\t.dsr-file__more-actions-dropdown ul.dropdown__list li.slds-dropdown__item > a:before\n\t\t\t\t\t{ background: none; }\n\t\t\t\t\t.dsr-file__more-actions-dropdown ul.dropdown__list li.slds-dropdown__item > a:after\n\t\t\t\t\t{ background: none; }\n\t\t\t\t\t.dsr-file__more-actions > button:first-child\n\t\t\t\t\t{ border-radius: 0 0.25rem 0.25rem 0!important;}\n\t\t\t`}</style>\n\t\t);\n\t}\n\n\tgeneratedId: string;\n\n\tconstructor(props: FileProps) {\n\t\tsuper(props);\n\n\t\tthis.generatedId = generateId();\n\t}\n\n\t/**\n\t * Get the File's HTML id. Generate a new one if no ID present.\n\t */\n\tgetId() {\n\t\treturn this.props.id || this.generatedId;\n\t}\n\n\thandleOnClickImage = (event: React.MouseEvent) => {\n\t\tif (this.props.href === '#') {\n\t\t\tevent.preventDefault();\n\t\t}\n\n\t\tif (this.props.onClickImage) {\n\t\t\tthis.props.onClickImage(event);\n\t\t}\n\t};\n\n\trender() {\n\t\tconst assistiveText = {\n\t\t\t...defaultProps.assistiveText,\n\t\t\t...this.props.assistiveText,\n\t\t};\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tid={this.getId()}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\t'slds-file',\n\t\t\t\t\t'slds-file_card',\n\t\t\t\t\t!this.props.hasNoVisibleTitle ? 'slds-has-title' : null,\n\t\t\t\t\tthis.props.className as string\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t<figure>\n\t\t\t\t\t<a\n\t\t\t\t\t\thref={this.props.href}\n\t\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t\t'slds-file__crop',\n\t\t\t\t\t\t\t`slds-file__crop_${this.props.crop ?? '16-by-9'}`\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tonClick={this.handleOnClickImage}\n\t\t\t\t\t>\n\t\t\t\t\t\t<FileFigure\n\t\t\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\t\t\tlabels={{\n\t\t\t\t\t\t\t\ttitle: this.props.labels.title,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tisLoading={this.props.isLoading}\n\t\t\t\t\t\t\timage={this.props.image}\n\t\t\t\t\t\t\ticon={this.props.icon}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</a>\n\t\t\t\t\t{!this.props.hasNoVisibleTitle ? (\n\t\t\t\t\t\t<figcaption className=\"slds-file__title slds-file__title_card\">\n\t\t\t\t\t\t\t<div className=\"slds-media__figure slds-line-height_reset\">\n\t\t\t\t\t\t\t\t{this.props.icon\n\t\t\t\t\t\t\t\t\t? React.cloneElement(this.props.icon, {\n\t\t\t\t\t\t\t\t\t\t\tsize: 'x-small',\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t: null}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div className=\"slds-media__body\">\n\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\tclassName=\"slds-file__text slds-truncate\"\n\t\t\t\t\t\t\t\t\ttitle={this.props.labels.title}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{this.props.labels.title}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</figcaption>\n\t\t\t\t\t) : null}\n\t\t\t\t</figure>\n\t\t\t\t{this.props.externalIcon ? (\n\t\t\t\t\t<div className=\"slds-file__external-icon\">\n\t\t\t\t\t\t{React.cloneElement(this.props.externalIcon, {\n\t\t\t\t\t\t\tcontainerClassName: classNames(\n\t\t\t\t\t\t\t\t'slds-file__icon slds-icon_container',\n\t\t\t\t\t\t\t\tthis.props.externalIcon.props.containerClassName\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t})}\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t\t{this.props.moreActionsDropdown ? File.injectMoreActionsStyles() : null}\n\t\t\t\t<FileActions\n\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\thasNoVisibleTitle={this.props.hasNoVisibleTitle}\n\t\t\t\t\tonClickDownload={this.props.onClickDownload}\n\t\t\t\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B,EACA,UAAW,KAAK,MAAM,UACtB,MAAO,KAAK,MAAM,MAClB,KAAM,KAAK,MAAM,IACjB,CAAA,CACC,CAAA,EACD,KAAK,MAAM,kBAkBT,MAjBH,EAAA,EAAA,KAAA,CAAC,aAAD,CAAY,UAAU,yCAAtB,SAAA,EACC,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,4CACb,SAAA,KAAK,MAAM,KACT,EAAA,QAAM,aAAa,KAAK,MAAM,KAAM,CACpC,KAAM,SACP,CAAC,EACA,IACC,CAAA,GACL,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,mBACd,UAAA,EAAA,EAAA,IAAA,CAAC,OAAD,CACC,UAAU,gCACV,MAAO,KAAK,MAAM,OAAO,MAExB,SAAA,KAAK,MAAM,OAAO,KACd,CAAA,CACF,CAAA,CACM,CACT,CAAA,CACG,CAAA,CAAA,EACP,KAAK,MAAM,cACX,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,2BACb,SAAA,EAAA,QAAM,aAAa,KAAK,MAAM,aAAc,CAC5C,oBAAA,EAAoB,EAAA,QAAA,CACnB,sCACA,KAAK,MAAM,aAAa,MAAM,kBAC/B,CACD,CAAC,CACG,CAAA,EACF,KACH,KAAK,MAAM,oBAAsB,EAAK,wBAAwB,EAAI,MACnE,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACgB,gBACf,kBAAmB,KAAK,MAAM,kBAC9B,gBAAiB,KAAK,MAAM,gBAC5B,oBAAqB,KAAK,MAAM,mBAChC,CAAA,CACG,GAEP,CACD"}
@@ -1,2 +1,2 @@
1
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../utilities/constants.cjs"),n=require("../../icon/index.cjs"),r=require("../../button/index.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("classnames");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s=e=>{let t=e.assistiveText??{},{moreActionsDropdown:s}=e,c=(0,o.jsx)(`div`,{className:`slds-file__actions-menu`,children:(0,o.jsxs)(`div`,{className:`slds-button-group`,role:`group`,children:[typeof e.onClickDownload==`function`?(0,o.jsx)(r.default,{type:`button`,variant:`icon`,iconSize:`x-small`,onClick:e.onClickDownload,title:`Download`,className:`slds-button_icon-inverse`,children:(0,o.jsx)(n.default,{assistiveText:{label:t.download},category:`utility`,name:`download`,size:`xx-small`,inverse:e.hasNoVisibleTitle})}):null,s?i.default.cloneElement(s,{assistiveText:{icon:t.moreActions,...s.props.assistiveText},overlay:s.props.overlay??!1,buttonVariant:s.props.buttonVariant??`icon`,buttonInverse:s.props.buttonInverse??e.hasNoVisibleTitle,className:(0,a.default)(`dsr-file__more-actions-dropdown`,s.props.className),triggerClassName:(0,a.default)(`dsr-file__more-actions`,s.props.triggerClassName)}):null]})});return typeof e.onClickDownload==`function`||e.moreActionsDropdown?e.hasNoVisibleTitle?(0,o.jsx)(`div`,{className:`slds-file__title slds-file__title_scrim`,children:c}):c:null};s.displayName=t.FILES_ACTIONS,exports.default=s;
1
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../utilities/constants.cjs"),n=require("../../button/index.cjs"),r=require("../../icon/index.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("classnames");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s=e=>{let t=e.assistiveText??{},{moreActionsDropdown:s}=e,c=(0,o.jsx)(`div`,{className:`slds-file__actions-menu`,children:(0,o.jsxs)(`div`,{className:`slds-button-group`,role:`group`,children:[typeof e.onClickDownload==`function`?(0,o.jsx)(n.default,{type:`button`,variant:`icon`,iconSize:`x-small`,onClick:e.onClickDownload,title:`Download`,className:`slds-button_icon-inverse`,children:(0,o.jsx)(r.default,{assistiveText:{label:t.download},category:`utility`,name:`download`,size:`xx-small`,inverse:e.hasNoVisibleTitle})}):null,s?i.default.cloneElement(s,{assistiveText:{icon:t.moreActions,...s.props.assistiveText},overlay:s.props.overlay??!1,buttonVariant:s.props.buttonVariant??`icon`,buttonInverse:s.props.buttonInverse??e.hasNoVisibleTitle,className:(0,a.default)(`dsr-file__more-actions-dropdown`,s.props.className),triggerClassName:(0,a.default)(`dsr-file__more-actions`,s.props.triggerClassName)}):null]})});return typeof e.onClickDownload==`function`||e.moreActionsDropdown?e.hasNoVisibleTitle?(0,o.jsx)(`div`,{className:`slds-file__title slds-file__title_scrim`,children:c}):c:null};s.displayName=t.FILES_ACTIONS,exports.default=s;
2
2
  //# sourceMappingURL=file-actions.cjs.map
@@ -1,2 +1,2 @@
1
- const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../../utilities/generate-id.cjs"),r=require("../button/index.cjs"),i=require("../popover/index.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("classnames");o=e.__toESM(o,1);let s=require("react/jsx-runtime");var c={editFilter:`Edit filter:`,editFilterHeading:`Choose filter criteria`},l=({align:e=`left`,assistiveText:t,children:l,className:u,isError:d=!1,id:f,isLocked:p=!1,isNew:m=!1,isPermanent:h=!1,onChange:g,onRemove:_,onClick:v,popover:y,predicate:b=`New Filter`,property:x})=>{let S=(0,a.useMemo)(()=>n.default(),[]),C=f||S,[w,T]=(0,a.useState)(y?.props?.isOpen??!1),E=(0,a.useMemo)(()=>({...c,...t,removeFilter:t?.removeFilter||`Remove Filter: ${x} ${b}`}),[t,x,b]),D=(0,a.useCallback)(()=>{T(!0),v?.()},[v]),O=(0,a.useCallback)(()=>{T(!1)},[]),k=(0,a.useCallback)(e=>{T(!1),g?.(e,{id:C})},[g,C]),A=(0,a.useCallback)(e=>{_?.(e,{id:C})},[_,C]),j=(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`h4`,{className:`slds-assistive-text`,id:`${C}-popover-heading`,children:E.editFilterHeading}),l,(0,s.jsx)(`div`,{className:`slds-m-top_small slds-text-align_right`,children:(0,s.jsx)(r.default,{className:`slds-col_bump-left`,label:`Done`,onClick:k})})]}),M={ariaLabelledby:`${C}-popover-heading`,align:e,body:j,heading:``,id:C,isOpen:w,offset:e===`right`?`0px -35px`:void 0,onClose:O,onRequestClose:O,position:`overflowBoundaryElement`,className:`slds-grow`,...y?.props||{},children:void 0},N=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(`span`,{className:`slds-assistive-text`,children:E.editFilter}),x?(0,s.jsx)(`span`,{className:`slds-show slds-text-body_small`,children:x}):null,(0,s.jsx)(`span`,{className:`slds-show`,children:b})]});return(0,s.jsxs)(`div`,{className:(0,o.default)(`slds-filters__item`,`slds-grid`,`slds-grid_vertical-align-center`,{"slds-is-locked":p,"slds-is-new":m,"slds-has-error":d},u),children:[!p&&(l||y)?(0,s.jsx)(i.default,{...M,silenceDeprecatedPropertyWarning:!0,children:(0,s.jsx)(`button`,{className:`slds-button_reset slds-grow slds-has-blur-focus`,onClick:D,"aria-describedby":d?`${C}-error`:void 0,type:`button`,children:N})}):(0,s.jsxs)(`button`,{"aria-describedby":d?`${C}-error`:void 0,className:`slds-button_reset slds-grow slds-has-blur-focus`,disabled:!0,type:`button`,children:[(0,s.jsx)(`span`,{className:`slds-show slds-text-body_small`,children:x}),(0,s.jsx)(`span`,{className:`slds-show`,children:b})]}),!h&&!p&&(0,s.jsx)(r.default,{assistiveText:{icon:E.removeFilter},hint:!0,iconCategory:`utility`,iconName:`delete`,iconSize:`small`,iconVariant:`bare`,onClick:A,title:E.removeFilter,variant:`icon`})]})};l.displayName=t.FILTER,exports.default=l;
1
+ const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../button/index.cjs"),r=require("../../utilities/generate-id.cjs"),i=require("../../utilities/hooks/use-controllable-state.cjs"),a=require("../popover/index.cjs"),o=require("./private/error-id-context.cjs");let s=require("react");s=e.__toESM(s,1);let c=require("classnames");c=e.__toESM(c,1);let l=require("react/jsx-runtime");var u={editFilter:`Edit filter:`,editFilterHeading:`Choose filter criteria`},d=({align:e=`left`,assistiveText:t,children:d,className:f,isError:p=!1,id:m,isLocked:h=!1,isNew:g=!1,isPermanent:_=!1,onChange:v,onRemove:y,onClick:b,popover:x,predicate:S=`New Filter`,property:C})=>{let w=(0,s.useMemo)(()=>r.default(),[]),T=m||w,E=(0,s.useContext)(o.default),D=p?E:void 0,O=x?.props,[k,A]=i.useControllableState(O?.isOpen,O?.defaultIsOpen??!1),j=(0,s.useMemo)(()=>({...u,...t,removeFilter:t?.removeFilter||`Remove Filter: ${C} ${S}`}),[t,C,S]),M=(0,s.useCallback)(()=>{A(!0),b?.()},[b,A]),N=(0,s.useCallback)(()=>{A(!1)},[A]),P=(0,s.useCallback)(e=>{A(!1),v?.(e,{id:T})},[v,T]),F=(0,s.useCallback)(e=>{y?.(e,{id:T})},[y,T]),I=(0,l.jsxs)(`div`,{children:[(0,l.jsx)(`h4`,{className:`slds-assistive-text`,id:`${T}-popover-heading`,children:j.editFilterHeading}),d,(0,l.jsx)(`div`,{className:`slds-m-top_small slds-text-align_right`,children:(0,l.jsx)(n.default,{className:`slds-col_bump-left`,label:`Done`,onClick:P})})]}),L={ariaLabelledby:`${T}-popover-heading`,align:e,body:I,heading:``,id:T,offset:e===`right`?`0px -35px`:void 0,onClose:N,onRequestClose:N,position:`overflowBoundaryElement`,className:`slds-grow`,...x?.props||{},isOpen:k,children:void 0},R=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{className:`slds-assistive-text`,children:j.editFilter}),C?(0,l.jsx)(`span`,{className:`slds-show slds-text-body_small`,children:C}):null,(0,l.jsx)(`span`,{className:`slds-show`,children:S})]});return(0,l.jsxs)(`div`,{className:(0,c.default)(`slds-filters__item`,`slds-grid`,`slds-grid_vertical-align-center`,{"slds-is-locked":h,"slds-is-new":g,"slds-has-error":p},f),children:[!h&&(d||x)?(0,l.jsx)(a.default,{...L,silenceDeprecatedPropertyWarning:!0,children:(0,l.jsx)(`button`,{className:`slds-button_reset slds-grow slds-has-blur-focus`,onClick:M,"aria-describedby":D,type:`button`,children:R})}):(0,l.jsxs)(`button`,{"aria-describedby":D,className:`slds-button_reset slds-grow slds-has-blur-focus`,disabled:!0,type:`button`,children:[(0,l.jsx)(`span`,{className:`slds-show slds-text-body_small`,children:C}),(0,l.jsx)(`span`,{className:`slds-show`,children:S})]}),!_&&!h&&(0,l.jsx)(n.default,{assistiveText:{icon:j.removeFilter},hint:!0,iconCategory:`utility`,iconName:`delete`,iconSize:`small`,iconVariant:`bare`,onClick:F,title:j.removeFilter,variant:`icon`})]})};d.displayName=t.FILTER,exports.default=d;
2
2
  //# sourceMappingURL=filter.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"filter.cjs","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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EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,YAAa,SAAA,CAAgB,CAAA,CACtC,CAER,CAAA,EAAA,CAAC,GAAe,CAAC,IACjB,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,cAAe,CAAE,KAAM,EAAc,YAAa,EAClD,KAAA,GACA,aAAa,UACb,SAAS,SACT,SAAS,QACT,YAAY,OACZ,QAAS,EACT,MAAO,EAAc,aACrB,QAAQ,MACR,CAAA,CAEE,GAEP,EAEA,EAAO,YAAc,EAAA"}
1
+ {"version":3,"file":"filter.cjs","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":"qbA6DA,IAAM,EAA4C,CACjD,WAAY,eACZ,kBAAmB,wBACpB,EAMM,GAAiC,CACtC,QAAQ,OACR,cAAe,EACf,WACA,YACA,UAAU,GACV,GAAI,EACJ,WAAW,GACX,QAAQ,GACR,cAAc,GACd,WACA,WACA,UACA,UACA,YAAY,aACZ,cACK,CAEL,IAAM,GAAA,EAAc,EAAA,QAAA,KAAc,EAAA,QAAW,EAAG,CAAC,CAAC,EAC5C,EAAK,GAAU,EAEf,GAAA,EAAU,EAAA,WAAA,CAAW,EAAA,OAAoB,EACzC,EAAmB,EAAU,EAAU,IAAA,GAIvC,EAAmB,GAAS,MAE5B,CAAC,EAAe,GAAoB,EAAA,qBACzC,GAAkB,OAClB,GAAkB,eAAiB,EACpC,EAGM,GAAA,EAAgB,EAAA,QAAA,MACd,CACN,GAAG,EACH,GAAG,EACH,aACC,GAAmB,cACnB,kBAAkB,EAAS,GAAG,GAChC,GACA,CAAC,EAAmB,EAAU,CAAS,CACxC,EAGM,GAAA,EAAoB,EAAA,YAAA,KAAkB,CAC3C,EAAiB,EAAI,EACrB,IAAU,CACX,EAAG,CAAC,EAAS,CAAgB,CAAC,EAGxB,GAAA,EAAc,EAAA,YAAA,KAAkB,CACrC,EAAiB,EAAK,CACvB,EAAG,CAAC,CAAgB,CAAC,EAGf,GAAA,EAAe,EAAA,YAAA,CACnB,GAA+C,CAC/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aE,CAAC,IAAa,GAAY,IAE1B,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CAAS,GAAI,EAAc,iCAAA,GAC1B,UAAA,EAAA,EAAA,IAAA,CAAC,SAAD,CACC,UAAU,kDACV,QAAS,EACT,mBAAkB,EAClB,KAAK,SAEJ,SAAA,CACM,CAAA,CACA,CAAA,GAET,EAAA,EAAA,KAAA,CAAC,SAAD,CACC,mBAAkB,EAClB,UAAU,kDACV,SAAA,GACA,KAAK,SAJN,SAAA,EAMC,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,iCAAkC,SAAA,CAAe,CAAA,GACjE,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,YAAa,SAAA,CAAgB,CAAA,CACtC,CAER,CAAA,EAAA,CAAC,GAAe,CAAC,IACjB,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,cAAe,CAAE,KAAM,EAAc,YAAa,EAClD,KAAA,GACA,aAAa,UACb,SAAS,SACT,SAAS,QACT,YAAY,OACZ,QAAS,EACT,MAAO,EAAc,aACrB,QAAQ,MACR,CAAA,CAEE,GAEP,EAEA,EAAO,YAAc,EAAA"}
@@ -0,0 +1,2 @@
1
+ var e=(0,require("react").createContext)(void 0);exports.default=e;
2
+ //# sourceMappingURL=error-id-context.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-id-context.cjs","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,GAAA,iBAAuB,CAAA,CAAA,cAAA,CAAkC,IAAA,EAAS"}
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs");let t=require("react"),n=require("classnames");n=e.__toESM(n,1);let r=require("react/jsx-runtime");var i=class extends t.Component{getClassName(){return(0,n.default)(this.props.className,`slds-col`)}render(){return(0,r.jsx)(`div`,{className:this.getClassName(),children:this.props.children})}},a=class extends t.Component{static Column=i;getClassName(){let{flavor:e}=this.props;return(0,n.default)(this.props.className,`slds-grid`,{[`slds-grid_${e}`]:e})}render(){return(0,r.jsx)(`div`,{className:this.getClassName(),children:this.props.children})}};exports.default=a;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs");let t=require("react"),n=require("classnames");n=e.__toESM(n,1);let r=require("react/jsx-runtime");var i=class extends t.Component{getClassName(){return(0,n.default)(this.props.className,`slds-col`)}render(){return(0,r.jsx)(`div`,{className:this.getClassName(),children:this.props.children})}},a=class extends t.Component{static Column=i;getClassName(){let{flavor:e}=this.props;return(0,n.default)(this.props.className,`slds-grid`,{[`slds-grid_${e}`]:e})}render(){return(0,r.jsx)(`div`,{className:this.getClassName(),children:this.props.children})}};exports.Column=i,exports.default=a;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","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":"0PAaA,IAAM,EAAN,cAAyB,EAAA,SAA2B,CACnD,cAAe,CACd,OAAA,EAAO,EAAA,QAAA,CAAW,KAAK,MAAM,UAAW,UAAU,CACnD,CAEA,QAAS,CACR,OAAO,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,KAAK,aAAa,EAAI,SAAA,KAAK,MAAM,QAAc,CAAA,CACvE,CACD,EAWM,EAAN,cAAmB,EAAA,SAAqB,CACvC,OAAO,OAAS,EAEhB,cAAe,CACd,GAAM,CAAE,UAAW,KAAK,MACxB,OAAA,EAAO,EAAA,QAAA,CAAW,KAAK,MAAM,UAAW,YAAa,EACnD,aAAa,KAAW,CAC1B,CAAC,CACF,CAEA,QAAS,CACR,OAAO,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,KAAK,aAAa,EAAI,SAAA,KAAK,MAAM,QAAc,CAAA,CACvE,CACD"}
1
+ {"version":3,"file":"index.cjs","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":"0PAoCA,IAAa,EAAb,cAA4B,EAAA,SAA2B,CACtD,cAAe,CACd,OAAA,EAAO,EAAA,QAAA,CAAW,KAAK,MAAM,UAAW,UAAU,CACnD,CAEA,QAAS,CACR,OAAO,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,KAAK,aAAa,EAAI,SAAA,KAAK,MAAM,QAAc,CAAA,CACvE,CACD,EAWM,EAAN,cAAmB,EAAA,SAAqB,CACvC,OAAO,OAAS,EAEhB,cAAe,CACd,GAAM,CAAE,UAAW,KAAK,MACxB,OAAA,EAAO,EAAA,QAAA,CAAW,KAAK,MAAM,UAAW,YAAa,EACnD,aAAa,KAAW,CAC1B,CAAC,CACF,CAEA,QAAS,CACR,OAAO,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,KAAK,aAAa,EAAI,SAAA,KAAK,MAAM,QAAc,CAAA,CACvE,CACD"}
@@ -1,2 +1,2 @@
1
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../utilities/constants.cjs"),n=require("./check-props.cjs"),r=require("../../utilities/utility-icon/index.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("classnames");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s=({category:e=`utility`,size:i=`medium`,hint:s,icon:c,className:l,inverse:u,name:d,path:f,position:p,...m})=>(n.default(t.BUTTON_ICON,{category:e,size:i,hint:s,icon:c,className:l,inverse:u,name:d,path:f,position:p,...m}),(0,o.jsx)(r.default,{"aria-hidden":`true`,category:e,className:(0,a.default)(`slds-button__icon`,{[`slds-button__icon_${i}`]:i&&i!==`medium`,"slds-button__icon_inverse-hint":u&&s,"slds-button__icon_hint":s&&!u,[`slds-button__icon_${p}`]:p},l),icon:c,name:d,path:f}));s.displayName=t.BUTTON_ICON,exports.default=s;
1
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../utilities/constants.cjs"),n=require("./check-props.cjs"),r=require("../../utilities/utility-icon/index.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("classnames");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s=({category:e=`utility`,size:i=`medium`,hint:s,icon:c,className:l,inverse:u,name:d,path:f,position:p})=>(n.default(t.BUTTON_ICON,{category:e,size:i,hint:s,icon:c,className:l,inverse:u,name:d,path:f,position:p}),(0,o.jsx)(r.default,{"aria-hidden":`true`,category:e,className:(0,a.default)(`slds-button__icon`,{[`slds-button__icon_${i}`]:i&&i!==`medium`,"slds-button__icon_inverse-hint":u&&s,"slds-button__icon_hint":s&&!u,[`slds-button__icon_${p}`]:p},l),icon:c,name:d,path:f}));s.displayName=t.BUTTON_ICON,exports.default=s;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","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":"oTAgEA,IAAM,GAAc,CACnB,WAAW,UACX,OAAO,SACP,OACA,OACA,YACA,UACA,OACA,OACA,WACA,GAAG,MAEH,EAAA,QACC,EAAA,YACA,CACC,WACA,OACA,OACA,OACA,YACA,UACA,OACA,OACA,WACA,GAAG,CACJ,CACD,GAGC,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,cAAY,OACF,WACV,WAAA,EAAW,EAAA,QAAA,CACV,oBACA,EACE,qBAAqB,KAAS,GAAQ,IAAS,SAChD,iCAAkC,GAAW,EAC7C,yBAA0B,GAAQ,CAAC,GAClC,qBAAqB,KAAa,CACpC,EACA,CACD,EACM,OACA,OACA,MACN,CAAA,GAIH,EAAW,YAAc,EAAA"}
1
+ {"version":3,"file":"index.cjs","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":"oTA+DA,IAAM,GAAc,CACnB,WAAW,UACX,OAAO,SACP,OACA,OACA,YACA,UACA,OACA,OACA,eAEA,EAAA,QACC,EAAA,YACA,CACC,WACA,OACA,OACA,OACA,YACA,UACA,OACA,OACA,UACD,CACD,GAGC,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,cAAY,OACF,WACV,WAAA,EAAW,EAAA,QAAA,CACV,oBACA,EACE,qBAAqB,KAAS,GAAQ,IAAS,SAChD,iCAAkC,GAAW,EAC7C,yBAA0B,GAAQ,CAAC,GAClC,qBAAqB,KAAa,CACpC,EACA,CACD,EACM,OACA,OACA,MACN,CAAA,GAIH,EAAW,YAAc,EAAA"}
@@ -0,0 +1,2 @@
1
+ const e=require("../../utilities/warning/sunset-property.cjs"),t=require("../../utilities/get-component-doc.cjs");var n=function(){};process.env.NODE_ENV!==`production`&&(n=function(n,r,i){if(typeof r.assistiveText==`string`){let a=t.default(i);e.default(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`)}`)}});var r=n;exports.default=r;
2
+ //# sourceMappingURL=check-props.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-props.cjs","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":"kHAOA,IAAI,EAAa,UAA8B,CAAC,EAEhD,QAAA,IAAA,WAA6B,eAC5B,EAAa,SAA4B,EAAW,EAAO,EAAS,CACnE,GAAI,OAAO,EAAM,eAAkB,SAAU,CAC5C,IAAM,EAAe,EAAA,QAAkB,CAAO,EAE9C,EAAA,QACC,EACA,EAAM,cACN,gBACA,mKAAmK,EAClK,eACD,GACD,CACD,CACD,GAGD,IAAA,EAAe"}
@@ -0,0 +1,2 @@
1
+ var e=`icon`,t=`prod`,n=`Icon`,r={component:e,status:t,"display-name":`Icons`,classKey:n,"last-accessibility-review":{"date-iso-8601":`2018/01/18`,"commit-sha":`ad6b6c6523ee21cada11be5f7ea4d99abc530726`},"SLDS-component-path":`/components/icons`,"site-stories":[{heading:`Category Options`,path:`/__examples__/categories.jsx`},{heading:`Color Options`,path:`/__examples__/colors.jsx`},{heading:`Size Options`,path:`/__examples__/sizes.jsx`}],"url-slug":`icons`};exports.classKey=n,exports.component=e,exports.default=r,exports.status=t;
2
+ //# sourceMappingURL=component.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.cjs","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":""}
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../utilities/utility-icon/index.cjs"),r=require("../../utilities/class-names.cjs"),i=require("../../utilities/product-tokens/icon-backgrounds.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s={assistiveText:{},category:`standard`,colorVariant:`default`,size:`medium`},c=({category:e=s.category,className:t,colorVariant:a=s.colorVariant,containerClassName:c,containerStyle:l,icon:u,inverse:d,name:f,path:p,size:m=s.size,title:h,productTheme:g,assistiveText:_=s.assistiveText,style:v})=>{let y=v;g&&i.default[g]&&(y={backgroundColor:i.default[g],...v});let b;if(typeof _==`string`)b=_;else{let e=s.assistiveText;b=_?.label??e?.label}let x=f?f.replace(/_/g,`-`):``,S=r.default({"slds-icon_container":e!==`utility`,"slds-icon_container_circle":e===`action`,[`slds-icon-${e}-${x}`]:e!==`utility`&&e!==`doctype`&&!p},c);return(0,o.jsxs)(`span`,{className:S,style:l,title:h,children:[(0,o.jsx)(n.default,{"aria-hidden":!0,category:e,className:r.default(t,`slds-icon`,{"slds-icon_xx-small":m===`xx-small`,"slds-icon_x-small":m===`x-small`,"slds-icon_small":m===`small`,"slds-icon_large":m===`large`,"slds-icon-text-default":a==="default"&&e===`utility`?!d:d,"slds-icon-text-success":a===`success`,"slds-icon-text-warning":a===`warning`,"slds-icon-text-error":a===`error`,"slds-icon-text-light":a===`light`}),icon:u,name:f,path:p,style:y}),b?(0,o.jsx)(`span`,{className:`slds-assistive-text`,children:b}):null]})};c.displayName=t.ICON,exports.default=c;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../utilities/utility-icon/index.cjs"),r=require("../../utilities/class-names.cjs"),i=require("../../utilities/product-tokens/icon-backgrounds.cjs"),a=require("./check-props.cjs"),o=require("./component.cjs");let s=require("react");s=e.__toESM(s,1);let c=require("react/jsx-runtime");var l={assistiveText:{},category:`standard`,colorVariant:`default`,size:`medium`},u=({category:e=l.category,className:u,colorVariant:d=l.colorVariant,containerClassName:f,containerStyle:p,icon:m,inverse:h,name:g,path:_,size:v=l.size,title:y,productTheme:b,assistiveText:x=l.assistiveText,style:S})=>{let C=S;b&&i.default[b]&&(C={backgroundColor:i.default[b],...S}),(0,s.useEffect)(()=>{a.default(t.ICON,{assistiveText:x},o.default)},[x]);let w=typeof x==`object`?x?.label??l.assistiveText.label:void 0,T=g?g.replace(/_/g,`-`):``,E=r.default({"slds-icon_container":e!==`utility`,"slds-icon_container_circle":e===`action`,[`slds-icon-${e}-${T}`]:e!==`utility`&&e!==`doctype`&&!_},f);return(0,c.jsxs)(`span`,{className:E,style:p,title:y,children:[(0,c.jsx)(n.default,{"aria-hidden":!0,category:e,className:r.default(u,`slds-icon`,{"slds-icon_xx-small":v===`xx-small`,"slds-icon_x-small":v===`x-small`,"slds-icon_small":v===`small`,"slds-icon_large":v===`large`,"slds-icon-text-default":d==="default"&&e===`utility`?!h:h,"slds-icon-text-success":d===`success`,"slds-icon-text-warning":d===`warning`,"slds-icon-text-error":d===`error`,"slds-icon-text-light":d===`light`}),icon:m,name:g,path:_,style:C}),w?(0,c.jsx)(`span`,{className:`slds-assistive-text`,children:w}):null]})};u.displayName=t.ICON,exports.default=u;
2
2
  //# sourceMappingURL=index.cjs.map