@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
@@ -3,15 +3,14 @@ import te from "./utilities/UNSAFE_direction/index.js";
3
3
  import e from "./icon-settings/index.js";
4
4
  import t from "./utilities/utility-icon/index.js";
5
5
  import n from "./icon/button-icon/index.js";
6
- import r from "./portal-settings/index.js";
7
- import i from "./icon/index.js";
8
- import a from "./tooltip/index.js";
9
- import o from "./button/index.js";
10
- import ne from "./accordion/panel.js";
11
- import re from "./alert/index.js";
12
- import ie from "./alert/container.js";
13
- import s from "./avatar/index.js";
14
- import c from "./badge/index.js";
6
+ import r from "./button/index.js";
7
+ import i from "./accordion/panel.js";
8
+ import a from "./icon/index.js";
9
+ import o from "./alert/index.js";
10
+ import s from "./alert/container.js";
11
+ import ne from "./avatar/index.js";
12
+ import re from "./badge/index.js";
13
+ import c from "./portal-settings/index.js";
15
14
  import l from "./menu-dropdown/button-trigger.js";
16
15
  import u from "./menu-dropdown/index.js";
17
16
  import d from "./breadcrumb/index.js";
@@ -28,71 +27,71 @@ import x from "./media-object/index.js";
28
27
  import S from "./card/empty.js";
29
28
  import C from "./card/index.js";
30
29
  import w from "./spinner/index.js";
31
- import T from "./input/index.js";
32
- import E from "./icon/input-icon/index.js";
33
- import D from "./card/filter.js";
34
- import O from "./carousel/index.js";
35
- import k from "./checkbox/index.js";
36
- import A from "./radio-group/index.js";
37
- import j from "./radio-button-group/index.js";
38
- import M from "./radio/index.js";
39
- import N from "./tabs/panel.js";
40
- import P from "./tabs/index.js";
41
- import F from "./popover/index.js";
42
- import I from "./color-picker/color-picker.js";
43
- import L from "./pill/index.js";
44
- import R from "./combobox/index.js";
45
- import z from "./combobox/filter.js";
46
- import B from "./date-picker/index.js";
47
- import V from "./docked-composer/index.js";
48
- import H from "./dynamic-icon/index.js";
49
- import U from "./popover/edit-dialog.js";
50
- import W from "./expandable-section/index.js";
51
- import G from "./files/file.js";
52
- import K from "./files/index.js";
53
- import q from "./files/more-files.js";
54
- import J from "./filter/filter.js";
55
- import Y from "./illustration/index.js";
30
+ import T from "./tooltip/index.js";
31
+ import E from "./input/index.js";
32
+ import D from "./icon/input-icon/index.js";
33
+ import O from "./card/filter.js";
34
+ import k from "./carousel/index.js";
35
+ import A from "./checkbox/index.js";
36
+ import j from "./radio-group/index.js";
37
+ import M from "./radio-button-group/index.js";
38
+ import N from "./radio/index.js";
39
+ import P from "./tabs/panel.js";
40
+ import F from "./tabs/index.js";
41
+ import I from "./popover/index.js";
42
+ import L from "./color-picker/color-picker.js";
43
+ import R from "./pill/index.js";
44
+ import z from "./combobox/index.js";
45
+ import B from "./combobox/filter.js";
46
+ import V from "./date-picker/index.js";
47
+ import H from "./docked-composer/index.js";
48
+ import U from "./dynamic-icon/index.js";
49
+ import W from "./popover/edit-dialog.js";
50
+ import G from "./expandable-section/index.js";
51
+ import K from "./files/file.js";
52
+ import q from "./files/index.js";
53
+ import J from "./files/more-files.js";
54
+ import Y from "./filter/filter.js";
56
55
  import X from "./input/search.js";
57
- import ae from "./settings.js";
58
- import oe from "./modal/index.js";
59
- import Z from "./vertical-navigation/index.js";
60
- import se from "./page-header/control.js";
61
- import ce from "./page-header/index.js";
62
- import le from "./panel/index.js";
63
- import ue from "./panel/filtering/group.js";
64
- import de from "./panel/filtering/list.js";
65
- import fe from "./panel/filtering/list-heading.js";
66
- import pe from "./pill-container/index.js";
67
- import me from "./progress-bar/index.js";
68
- import he from "./progress-indicator/index.js";
69
- import ge from "./progress-ring/index.js";
70
- import _e from "./scoped-notification/index.js";
71
- import ve from "./setup-assistant/step.js";
72
- import ye from "./setup-assistant/index.js";
73
- import be from "./simple-data-table/cell.js";
74
- import xe from "./simple-data-table/column.js";
75
- import Se from "./simple-data-table/interactive-element.js";
76
- import Ce from "./simple-data-table/interactive-link.js";
77
- import we from "./simple-data-table/row-actions.js";
78
- import Te from "./simple-data-table/index.js";
79
- import Ee from "./simple-data-table/highlight-cell.js";
80
- import De from "./slider/index.js";
81
- import Q from "./split-view/index.js";
82
- import Oe from "./split-view/header.js";
83
- import ke from "./split-view/listbox.js";
84
- import Ae from "./textarea/index.js";
85
- import je from "./toast/index.js";
86
- import Me from "./toast/container.js";
87
- import Ne from "./tree/tree.js";
88
- import Pe from "./trial-bar/index.js";
89
- import $ from "./trial-bar/button.js";
90
- import Fe from "./trial-bar/dropdown.js";
91
- import Ie from "./visual-picker/index.js";
92
- import Le from "./visual-picker/link.js";
93
- import Re from "./welcome-mat/index.js";
94
- import ze from "./welcome-mat/info-badge.js";
95
- import Be from "./welcome-mat/tile.js";
96
- import Ve from "./combobox/add-subheadings.js";
97
- import He from "../utilities/log.js";
98
- export { ee as Accordion, ne as AccordionPanel, re as Alert, ie as AlertContainer, s as Avatar, c as Badge, d as BreadCrumb, d as Breadcrumb, y as BuilderHeader, f as BuilderHeaderMisc, h as BuilderHeaderNav, p as BuilderHeaderNavDropdown, m as BuilderHeaderNavLink, _ as BuilderHeaderToolbar, v as BuilderHeaderUtilities, o as Button, g as ButtonGroup, n as ButtonIcon, b as ButtonStateful, C as Card, S as CardEmpty, D as CardFilter, O as Carousel, k as Checkbox, I as ColorPicker, R as Combobox, B as DatePicker, B as Datepicker, V as DockedComposer, u as Dropdown, l as DropdownTrigger, H as DynamicIcon, U as EditDialog, W as ExpandableSection, G as File, K as Files, G as FilesFile, q as FilesMoreFiles, J as Filter, i as Icon, e as IconSettings, Y as Illustration, T as Input, E as InputIcon, X as InputSearch, x as MediaObject, u as MenuDropdown, l as MenuDropdownButtonTrigger, oe as Modal, q as MoreFiles, Z as Navigation, ce as PageHeader, se as PageHeaderControl, le as Panel, ue as PanelFilterGroup, de as PanelFilterList, fe as PanelFilterListHeading, L as Pill, pe as PillContainer, F as Popover, a as PopoverTooltip, r as PortalSettings, me as ProgressBar, he as ProgressIndicator, ge as ProgressRing, M as Radio, j as RadioButtonGroup, A as RadioGroup, ee as SLDSAccordion, ne as SLDSAccordionPanel, re as SLDSAlert, ie as SLDSAlertContainer, s as SLDSAvatar, c as SLDSBadge, d as SLDSBreadCrumb, d as SLDSBreadcrumb, y as SLDSBuilderHeader, f as SLDSBuilderHeaderMisc, h as SLDSBuilderHeaderNav, p as SLDSBuilderHeaderNavDropdown, m as SLDSBuilderHeaderNavLink, _ as SLDSBuilderHeaderToolbar, v as SLDSBuilderHeaderUtilities, o as SLDSButton, g as SLDSButtonGroup, n as SLDSButtonIcon, b as SLDSButtonStateful, C as SLDSCard, S as SLDSCardEmpty, D as SLDSCardFilter, O as SLDSCarousel, k as SLDSCheckbox, I as SLDSColorPicker, R as SLDSCombobox, z as SLDSComboboxFilterAndLimit, B as SLDSDatePicker, B as SLDSDatepicker, V as SLDSDockedComposer, l as SLDSDropdownTrigger, H as SLDSDynamicIcon, U as SLDSEditDialog, W as SLDSExpandableSection, G as SLDSFile, K as SLDSFiles, G as SLDSFilesFile, q as SLDSFilesMoreFiles, J as SLDSFilter, i as SLDSIcon, e as SLDSIconSettings, Y as SLDSIllustration, T as SLDSInput, E as SLDSInputIcon, X as SLDSInputSearch, x as SLDSMediaObject, u as SLDSMenuDropdown, l as SLDSMenuDropdownButtonTrigger, oe as SLDSModal, q as SLDSMoreFiles, Z as SLDSNavigation, ce as SLDSPageHeader, se as SLDSPageHeaderControl, le as SLDSPanel, ue as SLDSPanelFilterGroup, de as SLDSPanelFilterList, fe as SLDSPanelFilterListHeading, L as SLDSPill, pe as SLDSPillContainer, F as SLDSPopover, a as SLDSPopoverTooltip, r as SLDSPortalSettings, me as SLDSProgressBar, he as SLDSProgressIndicator, ge as SLDSProgressRing, M as SLDSRadio, j as SLDSRadioButtonGroup, A as SLDSRadioGroup, _e as SLDSScopedNotification, X as SLDSSearch, ae as SLDSSettings, ye as SLDSSetupAssistant, ve as SLDSSetupAssistantStep, Te as SLDSSimpleDataTable, be as SLDSSimpleDataTableCell, xe as SLDSSimpleDataTableColumn, Ee as SLDSSimpleDataTableHighlightCell, Se as SLDSSimpleDataTableInteractiveElement, Ce as SLDSSimpleDataTableInteractiveLink, we as SLDSSimpleDataTableRowActions, De as SLDSSlider, w as SLDSSpinner, Q as SLDSSplitView, Oe as SLDSSplitViewHeader, ke as SLDSSplitViewListbox, Q as SLDSSplitview, P as SLDSTabs, N as SLDSTabsPanel, Ae as SLDSTextarea, je as SLDSToast, Me as SLDSToastContainer, a as SLDSTooltip, Ne as SLDSTree, Pe as SLDSTrialBar, $ as SLDSTrialBarButton, Fe as SLDSTrialBarDropdown, t as SLDSUtilityIcon, Z as SLDSVerticalNavigation, Ie as SLDSVisualPicker, Le as SLDSVisualPickerLink, Re as SLDSWelcomeMat, ze as SLDSWelcomeMatInfoBadge, Be as SLDSWelcomeMatTile, _e as ScopedNotification, X as Search, ae as Settings, ye as SetupAssistant, ve as SetupAssistantStep, Te as SimpleDataTable, be as SimpleDataTableCell, xe as SimpleDataTableColumn, Ee as SimpleDataTableHighlightCell, Se as SimpleDataTableInteractiveElement, Ce as SimpleDataTableInteractiveLink, we as SimpleDataTableRowActions, De as Slider, w as Spinner, Q as SplitView, Oe as SplitViewHeader, ke as SplitViewListbox, Q as Splitview, P as Tabs, N as TabsPanel, Ae as Textarea, je as Toast, Me as ToastContainer, a as Tooltip, Ne as Tree, Pe as TrialBar, $ as TrialBarButton, Fe as TrialBarDropdown, te as UNSAFE_DirectionSettings, t as UtilityIcon, Z as VerticalNavigation, Ie as VisualPicker, Le as VisualPickerLink, Re as WelcomeMat, ze as WelcomeMatInfoBadge, Be as WelcomeMatTile, Ve as comboboxAddSubheadings, z as comboboxFilterAndLimit, He as log };
56
+ import Z from "./settings.js";
57
+ import ie from "./modal/index.js";
58
+ import Q from "./vertical-navigation/index.js";
59
+ import ae from "./page-header/control.js";
60
+ import oe from "./page-header/index.js";
61
+ import se from "./panel/index.js";
62
+ import ce from "./panel/filtering/group.js";
63
+ import le from "./panel/filtering/list.js";
64
+ import ue from "./panel/filtering/list-heading.js";
65
+ import de from "./pill-container/index.js";
66
+ import fe from "./progress-bar/index.js";
67
+ import pe from "./progress-indicator/index.js";
68
+ import me from "./progress-ring/index.js";
69
+ import he from "./scoped-notification/index.js";
70
+ import ge from "./setup-assistant/step.js";
71
+ import _e from "./setup-assistant/index.js";
72
+ import ve from "./simple-data-table/cell.js";
73
+ import ye from "./simple-data-table/column.js";
74
+ import be from "./simple-data-table/interactive-element.js";
75
+ import xe from "./simple-data-table/interactive-link.js";
76
+ import Se from "./simple-data-table/row-actions.js";
77
+ import Ce from "./simple-data-table/index.js";
78
+ import we from "./simple-data-table/highlight-cell.js";
79
+ import Te from "./slider/index.js";
80
+ import $ from "./split-view/index.js";
81
+ import Ee from "./split-view/header.js";
82
+ import De from "./split-view/listbox.js";
83
+ import Oe from "./textarea/index.js";
84
+ import ke from "./toast/index.js";
85
+ import Ae from "./toast/container.js";
86
+ import je from "./tree/tree.js";
87
+ import Me from "./trial-bar/index.js";
88
+ import Ne from "./trial-bar/button.js";
89
+ import Pe from "./trial-bar/dropdown.js";
90
+ import Fe from "./visual-picker/index.js";
91
+ import Ie from "./visual-picker/link.js";
92
+ import Le from "./welcome-mat/index.js";
93
+ import Re from "./welcome-mat/info-badge.js";
94
+ import ze from "./welcome-mat/tile.js";
95
+ import Be from "./combobox/add-subheadings.js";
96
+ import Ve from "../utilities/log.js";
97
+ export { ee as Accordion, i as AccordionPanel, o as Alert, s as AlertContainer, ne as Avatar, re as Badge, d as BreadCrumb, d as Breadcrumb, y as BuilderHeader, f as BuilderHeaderMisc, h as BuilderHeaderNav, p as BuilderHeaderNavDropdown, m as BuilderHeaderNavLink, _ as BuilderHeaderToolbar, v as BuilderHeaderUtilities, r as Button, g as ButtonGroup, n as ButtonIcon, b as ButtonStateful, C as Card, S as CardEmpty, O as CardFilter, k as Carousel, A as Checkbox, L as ColorPicker, z as Combobox, V as DatePicker, V as Datepicker, H as DockedComposer, u as Dropdown, l as DropdownTrigger, U as DynamicIcon, W as EditDialog, G as ExpandableSection, K as File, q as Files, K as FilesFile, J as FilesMoreFiles, Y as Filter, a as Icon, e as IconSettings, E as Input, D as InputIcon, X as InputSearch, x as MediaObject, u as MenuDropdown, l as MenuDropdownButtonTrigger, ie as Modal, J as MoreFiles, Q as Navigation, oe as PageHeader, ae as PageHeaderControl, se as Panel, ce as PanelFilterGroup, le as PanelFilterList, ue as PanelFilterListHeading, R as Pill, de as PillContainer, I as Popover, T as PopoverTooltip, c as PortalSettings, fe as ProgressBar, pe as ProgressIndicator, me as ProgressRing, N as Radio, M as RadioButtonGroup, j as RadioGroup, ee as SLDSAccordion, i as SLDSAccordionPanel, o as SLDSAlert, s as SLDSAlertContainer, ne as SLDSAvatar, re as SLDSBadge, d as SLDSBreadCrumb, d as SLDSBreadcrumb, y as SLDSBuilderHeader, f as SLDSBuilderHeaderMisc, h as SLDSBuilderHeaderNav, p as SLDSBuilderHeaderNavDropdown, m as SLDSBuilderHeaderNavLink, _ as SLDSBuilderHeaderToolbar, v as SLDSBuilderHeaderUtilities, r as SLDSButton, g as SLDSButtonGroup, n as SLDSButtonIcon, b as SLDSButtonStateful, C as SLDSCard, S as SLDSCardEmpty, O as SLDSCardFilter, k as SLDSCarousel, A as SLDSCheckbox, L as SLDSColorPicker, z as SLDSCombobox, B as SLDSComboboxFilterAndLimit, V as SLDSDatePicker, V as SLDSDatepicker, H as SLDSDockedComposer, l as SLDSDropdownTrigger, U as SLDSDynamicIcon, W as SLDSEditDialog, G as SLDSExpandableSection, K as SLDSFile, q as SLDSFiles, K as SLDSFilesFile, J as SLDSFilesMoreFiles, Y as SLDSFilter, a as SLDSIcon, e as SLDSIconSettings, E as SLDSInput, D as SLDSInputIcon, X as SLDSInputSearch, x as SLDSMediaObject, u as SLDSMenuDropdown, l as SLDSMenuDropdownButtonTrigger, ie as SLDSModal, J as SLDSMoreFiles, Q as SLDSNavigation, oe as SLDSPageHeader, ae as SLDSPageHeaderControl, se as SLDSPanel, ce as SLDSPanelFilterGroup, le as SLDSPanelFilterList, ue as SLDSPanelFilterListHeading, R as SLDSPill, de as SLDSPillContainer, I as SLDSPopover, T as SLDSPopoverTooltip, c as SLDSPortalSettings, fe as SLDSProgressBar, pe as SLDSProgressIndicator, me as SLDSProgressRing, N as SLDSRadio, M as SLDSRadioButtonGroup, j as SLDSRadioGroup, he as SLDSScopedNotification, X as SLDSSearch, Z as SLDSSettings, _e as SLDSSetupAssistant, ge as SLDSSetupAssistantStep, Ce as SLDSSimpleDataTable, ve as SLDSSimpleDataTableCell, ye as SLDSSimpleDataTableColumn, we as SLDSSimpleDataTableHighlightCell, be as SLDSSimpleDataTableInteractiveElement, xe as SLDSSimpleDataTableInteractiveLink, Se as SLDSSimpleDataTableRowActions, Te as SLDSSlider, w as SLDSSpinner, $ as SLDSSplitView, Ee as SLDSSplitViewHeader, De as SLDSSplitViewListbox, $ as SLDSSplitview, F as SLDSTabs, P as SLDSTabsPanel, Oe as SLDSTextarea, ke as SLDSToast, Ae as SLDSToastContainer, T as SLDSTooltip, je as SLDSTree, Me as SLDSTrialBar, Ne as SLDSTrialBarButton, Pe as SLDSTrialBarDropdown, t as SLDSUtilityIcon, Q as SLDSVerticalNavigation, Fe as SLDSVisualPicker, Ie as SLDSVisualPickerLink, Le as SLDSWelcomeMat, Re as SLDSWelcomeMatInfoBadge, ze as SLDSWelcomeMatTile, he as ScopedNotification, X as Search, Z as Settings, _e as SetupAssistant, ge as SetupAssistantStep, Ce as SimpleDataTable, ve as SimpleDataTableCell, ye as SimpleDataTableColumn, we as SimpleDataTableHighlightCell, be as SimpleDataTableInteractiveElement, xe as SimpleDataTableInteractiveLink, Se as SimpleDataTableRowActions, Te as Slider, w as Spinner, $ as SplitView, Ee as SplitViewHeader, De as SplitViewListbox, $ as Splitview, F as Tabs, P as TabsPanel, Oe as Textarea, ke as Toast, Ae as ToastContainer, T as Tooltip, je as Tree, Me as TrialBar, Ne as TrialBarButton, Pe as TrialBarDropdown, te as UNSAFE_DirectionSettings, t as UtilityIcon, Q as VerticalNavigation, Fe as VisualPicker, Ie as VisualPickerLink, Le as WelcomeMat, Re as WelcomeMatInfoBadge, ze as WelcomeMatTile, Be as comboboxAddSubheadings, B as comboboxFilterAndLimit, Ve as log };
@@ -1,26 +1,21 @@
1
1
  import "../../utilities/constants.js";
2
2
  import e from "../../utilities/warning/sunset-property.js";
3
3
  import t from "../../utilities/get-component-doc.js";
4
- import n from "../../utilities/warning/deprecated-property.js";
5
- import r from "../../utilities/warning/only-one-of-properties.js";
4
+ import n from "../../utilities/warning/only-one-of-properties.js";
6
5
  //#region components/input/check-props.js
7
- var i = function() {};
8
- process.env.NODE_ENV !== "production" && (i = function(i, a = {}, o) {
9
- let s = t(o);
10
- if (i === "SLDSInput") {
11
- e(i, a.defaultValue !== void 0, "defaultValue", "Input is controlled: pass `value` and update it in `onChange`.");
12
- let t = `Please use \`iconLeft\` and \`iconRight\` to pass in a customized <Icon> component. ${s()}`;
13
- n(i, a.assistiveText && a.assistiveText.fieldLevelHelpButton, "assistiveText.fieldLevelHelpButton", void 0, "Please pass a `Tooltip` component into `fieldLevelHelpTooltip` with `assistiveText.triggerLearnMoreIcon`."), n(i, a.iconCategory, "iconCategory", void 0, t), n(i, a.iconName, "iconName", void 0, t), n(i, a.iconPosition, "iconPosition", void 0, t), n(i, a.iconAssistiveText, "iconAssistiveText", void 0, t), n(i, a.onIconClick, "onIconClick", void 0, t), r(i, {
14
- "assistiveText.label": a.assistiveText && a.assistiveText.label,
15
- label: a.label
16
- }, s("assistiveText")), r(i, {
17
- fixedTextLeft: a.fixedTextLeft,
18
- fixedTextRight: a.fixedTextRight
19
- }, s("assistiveText"));
20
- }
6
+ var r = function() {};
7
+ process.env.NODE_ENV !== "production" && (r = function(r, i = {}, a) {
8
+ let o = t(a);
9
+ r === "SLDSInput" && (e(r, i.defaultValue !== void 0, "defaultValue", "Input is controlled: pass `value` and update it in `onChange`."), e(r, i.assistiveText && i.assistiveText.fieldLevelHelpButton, "assistiveText.fieldLevelHelpButton", `Pass a \`Tooltip\` to \`fieldLevelHelpTooltip\` and set its \`assistiveText.triggerLearnMoreIcon\`. ${o("fieldLevelHelpTooltip")}`), n(r, {
10
+ "assistiveText.label": i.assistiveText && i.assistiveText.label,
11
+ label: i.label
12
+ }, o("assistiveText")), n(r, {
13
+ fixedTextLeft: i.fixedTextLeft,
14
+ fixedTextRight: i.fixedTextRight
15
+ }, o("assistiveText")));
21
16
  });
22
- var a = i;
17
+ var i = r;
23
18
  //#endregion
24
- export { a as default };
19
+ export { i as default };
25
20
 
26
21
  //# sourceMappingURL=check-props.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/input/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/* eslint-disable max-len */\n\nimport deprecatedProperty from '../../utilities/warning/deprecated-property';\n// import oneOfRequiredProperty from '../../../utilities/warning/one-of-required-property';\nimport onlyOneOfProperties from '../../utilities/warning/only-one-of-properties';\nimport sunsetProperty from '../../utilities/warning/sunset-property';\nimport getComponentDocFn from '../../utilities/get-component-doc';\n\nimport { INPUT } from '../../utilities/constants';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props = {}, jsonDoc) {\n\t\tconst createDocUrl = getComponentDocFn(jsonDoc);\n\n\t\tif (COMPONENT === INPUT) {\n\t\t\tsunsetProperty(\n\t\t\t\tCOMPONENT,\n\t\t\t\tprops.defaultValue !== undefined,\n\t\t\t\t'defaultValue',\n\t\t\t\t'Input is controlled: pass `value` and update it in `onChange`.'\n\t\t\t);\n\n\t\t\tconst iconDeprecatedMessage = `Please use \\`iconLeft\\` and \\`iconRight\\` to pass in a customized <Icon> component. ${createDocUrl()}`;\n\n\t\t\t// Deprecated and changed to another property\n\t\t\tdeprecatedProperty(\n\t\t\t\tCOMPONENT,\n\t\t\t\tprops.assistiveText && props.assistiveText.fieldLevelHelpButton,\n\t\t\t\t'assistiveText.fieldLevelHelpButton',\n\t\t\t\tundefined,\n\t\t\t\t`Please pass a \\`Tooltip\\` component into \\`fieldLevelHelpTooltip\\` with \\`assistiveText.triggerLearnMoreIcon\\`.`\n\t\t\t);\n\t\t\tdeprecatedProperty(\n\t\t\t\tCOMPONENT,\n\t\t\t\tprops.iconCategory,\n\t\t\t\t'iconCategory',\n\t\t\t\tundefined,\n\t\t\t\ticonDeprecatedMessage\n\t\t\t);\n\t\t\tdeprecatedProperty(\n\t\t\t\tCOMPONENT,\n\t\t\t\tprops.iconName,\n\t\t\t\t'iconName',\n\t\t\t\tundefined,\n\t\t\t\ticonDeprecatedMessage\n\t\t\t);\n\t\t\tdeprecatedProperty(\n\t\t\t\tCOMPONENT,\n\t\t\t\tprops.iconPosition,\n\t\t\t\t'iconPosition',\n\t\t\t\tundefined,\n\t\t\t\ticonDeprecatedMessage\n\t\t\t);\n\t\t\tdeprecatedProperty(\n\t\t\t\tCOMPONENT,\n\t\t\t\tprops.iconAssistiveText,\n\t\t\t\t'iconAssistiveText',\n\t\t\t\tundefined,\n\t\t\t\ticonDeprecatedMessage\n\t\t\t);\n\t\t\tdeprecatedProperty(\n\t\t\t\tCOMPONENT,\n\t\t\t\tprops.onIconClick,\n\t\t\t\t'onIconClick',\n\t\t\t\tundefined,\n\t\t\t\ticonDeprecatedMessage\n\t\t\t);\n\n\t\t\tonlyOneOfProperties(\n\t\t\t\tCOMPONENT,\n\t\t\t\t{\n\t\t\t\t\t'assistiveText.label':\n\t\t\t\t\t\tprops.assistiveText && props.assistiveText.label,\n\t\t\t\t\tlabel: props.label,\n\t\t\t\t},\n\t\t\t\tcreateDocUrl('assistiveText')\n\t\t\t);\n\n\t\t\tonlyOneOfProperties(\n\t\t\t\tCOMPONENT,\n\t\t\t\t{\n\t\t\t\t\tfixedTextLeft: props.fixedTextLeft,\n\t\t\t\t\tfixedTextRight: props.fixedTextRight,\n\t\t\t\t},\n\t\t\t\tcreateDocUrl('assistiveText')\n\t\t\t);\n\n\t\t\t/*\n\t\t\t* Once we support horizontal labels, then I think we can enable this check\n\t\t\t*\n\t\t\tif (!props.inlineEditTrigger) {\n\t\t\t\toneOfRequiredProperty(COMPONENT, {\n\t\t\t\t\tassistiveText: props.assistiveText,\n\t\t\t\t\tlabel: props.label\n\t\t\t\t});\n\t\t\t}\n\t\t\t*/\n\t\t}\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;;;;AAaA,IAAI,IAAa,WAA8B,CAAC;AAEhD,QAAA,IAAA,aAA6B,iBAC5B,IAAa,SAA4B,GAAW,IAAQ,CAAC,GAAG,GAAS;CACxE,IAAM,IAAe,EAAkB,CAAO;CAE9C,IAAI,MAAA,aAAqB;EACxB,EACC,GACA,EAAM,iBAAiB,KAAA,GACvB,gBACA,gEACD;EAEA,IAAM,IAAwB,uFAAuF,EAAa;EAwDlI,AArDA,EACC,GACA,EAAM,iBAAiB,EAAM,cAAc,sBAC3C,sCACA,KAAA,GACA,2GACD,GACA,EACC,GACA,EAAM,cACN,gBACA,KAAA,GACA,CACD,GACA,EACC,GACA,EAAM,UACN,YACA,KAAA,GACA,CACD,GACA,EACC,GACA,EAAM,cACN,gBACA,KAAA,GACA,CACD,GACA,EACC,GACA,EAAM,mBACN,qBACA,KAAA,GACA,CACD,GACA,EACC,GACA,EAAM,aACN,eACA,KAAA,GACA,CACD,GAEA,EACC,GACA;GACC,uBACC,EAAM,iBAAiB,EAAM,cAAc;GAC5C,OAAO,EAAM;EACd,GACA,EAAa,eAAe,CAC7B,GAEA,EACC,GACA;GACC,eAAe,EAAM;GACrB,gBAAgB,EAAM;EACvB,GACA,EAAa,eAAe,CAC7B;CAYD;AACD;AAGD,IAAA,IAAe"}
1
+ {"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/input/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/* eslint-disable max-len */\n\n// import oneOfRequiredProperty from '../../../utilities/warning/one-of-required-property';\nimport onlyOneOfProperties from '../../utilities/warning/only-one-of-properties';\nimport sunsetProperty from '../../utilities/warning/sunset-property';\nimport getComponentDocFn from '../../utilities/get-component-doc';\n\nimport { INPUT } from '../../utilities/constants';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props = {}, jsonDoc) {\n\t\tconst createDocUrl = getComponentDocFn(jsonDoc);\n\n\t\tif (COMPONENT === INPUT) {\n\t\t\tsunsetProperty(\n\t\t\t\tCOMPONENT,\n\t\t\t\tprops.defaultValue !== undefined,\n\t\t\t\t'defaultValue',\n\t\t\t\t'Input is controlled: pass `value` and update it in `onChange`.'\n\t\t\t);\n\n\t\t\tsunsetProperty(\n\t\t\t\tCOMPONENT,\n\t\t\t\tprops.assistiveText && props.assistiveText.fieldLevelHelpButton,\n\t\t\t\t'assistiveText.fieldLevelHelpButton',\n\t\t\t\t`Pass a \\`Tooltip\\` to \\`fieldLevelHelpTooltip\\` and set its \\`assistiveText.triggerLearnMoreIcon\\`. ${createDocUrl(\n\t\t\t\t\t'fieldLevelHelpTooltip'\n\t\t\t\t)}`\n\t\t\t);\n\n\t\t\tonlyOneOfProperties(\n\t\t\t\tCOMPONENT,\n\t\t\t\t{\n\t\t\t\t\t'assistiveText.label':\n\t\t\t\t\t\tprops.assistiveText && props.assistiveText.label,\n\t\t\t\t\tlabel: props.label,\n\t\t\t\t},\n\t\t\t\tcreateDocUrl('assistiveText')\n\t\t\t);\n\n\t\t\tonlyOneOfProperties(\n\t\t\t\tCOMPONENT,\n\t\t\t\t{\n\t\t\t\t\tfixedTextLeft: props.fixedTextLeft,\n\t\t\t\t\tfixedTextRight: props.fixedTextRight,\n\t\t\t\t},\n\t\t\t\tcreateDocUrl('assistiveText')\n\t\t\t);\n\n\t\t\t/*\n\t\t\t* Once we support horizontal labels, then I think we can enable this check\n\t\t\t*\n\t\t\tif (!props.inlineEditTrigger) {\n\t\t\t\toneOfRequiredProperty(COMPONENT, {\n\t\t\t\t\tassistiveText: props.assistiveText,\n\t\t\t\t\tlabel: props.label\n\t\t\t\t});\n\t\t\t}\n\t\t\t*/\n\t\t}\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;;;AAYA,IAAI,IAAa,WAA8B,CAAC;AAEhD,QAAA,IAAA,aAA6B,iBAC5B,IAAa,SAA4B,GAAW,IAAQ,CAAC,GAAG,GAAS;CACxE,IAAM,IAAe,EAAkB,CAAO;CAE9C,AAAI,MAAA,gBACH,EACC,GACA,EAAM,iBAAiB,KAAA,GACvB,gBACA,gEACD,GAEA,EACC,GACA,EAAM,iBAAiB,EAAM,cAAc,sBAC3C,sCACA,uGAAuG,EACtG,uBACD,GACD,GAEA,EACC,GACA;EACC,uBACC,EAAM,iBAAiB,EAAM,cAAc;EAC5C,OAAO,EAAM;CACd,GACA,EAAa,eAAe,CAC7B,GAEA,EACC,GACA;EACC,eAAe,EAAM;EACrB,gBAAgB,EAAM;CACvB,GACA,EAAa,eAAe,CAC7B;AAaF;AAGD,IAAA,IAAe"}
@@ -149,10 +149,7 @@ var p = "counter", m = "Decrement", h = "Increment", re = {
149
149
  required: H,
150
150
  variant: A ? "static" : "base"
151
151
  }),
152
- w && ze ? /* @__PURE__ */ f(i, {
153
- assistiveText: { triggerLearnMoreIcon: Y.fieldLevelHelpButton },
154
- fieldLevelHelpTooltip: w
155
- }) : null,
152
+ w && ze ? /* @__PURE__ */ f(i, { fieldLevelHelpTooltip: w }) : null,
156
153
  /* @__PURE__ */ f(n, {
157
154
  "aria-activedescendant": s,
158
155
  "aria-autocomplete": g,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../components/input/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\tuseRef,\n\tuseCallback,\n\tuseEffect,\n\tforwardRef,\n\ttype ReactNode,\n\ttype ReactElement,\n\ttype ChangeEvent,\n\ttype FocusEvent,\n\ttype KeyboardEvent,\n\ttype MouseEvent,\n\ttype FormEvent,\n\ttype CSSProperties,\n\ttype AriaAttributes,\n} from 'react';\nimport classNames from 'classnames';\n\nimport Button from '../button';\nimport InnerInput from './private/inner-input';\nimport Label from '../utilities/label/index';\nimport FieldLevelHelpTooltip from '../tooltip/private/field-level-help-tooltip';\nimport type { TooltipProps } from '../tooltip/index';\nimport type { InputIconProps } from '../icon/input-icon';\n\nimport checkProps from './check-props';\nimport { INPUT } from '../../utilities/constants';\nimport componentDoc from './component.json';\n\nconst COUNTER = 'counter';\nconst DECREMENT = 'Decrement';\nconst INCREMENT = 'Increment';\n\n/**\n * Input type options\n */\nexport type InputType =\n\t| 'text'\n\t| 'password'\n\t| 'datetime'\n\t| 'datetime-local'\n\t| 'date'\n\t| 'month'\n\t| 'time'\n\t| 'week'\n\t| 'number'\n\t| 'email'\n\t| 'url'\n\t| 'search'\n\t| 'tel'\n\t| 'color';\n\n/**\n * Input variant options\n */\nexport type InputVariant = 'base' | 'counter';\n\n/**\n * Assistive text for Input accessibility\n */\nexport interface InputAssistiveText {\n\t/** Visually hidden label for screen readers */\n\tlabel?: string;\n\t/** Text for loading spinner icon */\n\tspinner?: string;\n\t/** Text for decrement button in counter variant */\n\tdecrement?: string;\n\t/** Text for increment button in counter variant */\n\tincrement?: string;\n\t/** Text for field level help button */\n\tfieldLevelHelpButton?: string;\n}\n\n/**\n * Data passed to onChange callback\n */\nexport interface InputChangeData {\n\t/** The input value as string */\n\tvalue: string;\n\t/** The input value as number (only for counter variant) */\n\tnumber?: number;\n}\n\n/**\n * Props for the Input component\n */\nexport interface InputProps {\n\t/** ID of the currently active child in a composite widget */\n\t'aria-activedescendant'?: string;\n\t/** Indicates if suggestions complete the textbox input */\n\t'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';\n\t/** ID of element controlled by this input */\n\t'aria-controls'?: string;\n\t/** ID of element(s) that describe this input */\n\t'aria-describedby'?: string;\n\t/** Whether a collapsible region is expanded */\n\t'aria-expanded'?: boolean;\n\t/** Indicates the input has a popup */\n\t'aria-haspopup'?: AriaAttributes['aria-haspopup'];\n\t/** ID of element(s) that label this input */\n\t'aria-labelledby'?: string;\n\t/** ID of element(s) owned by this input */\n\t'aria-owns'?: string;\n\t/** Whether input is required */\n\t'aria-required'?: boolean;\n\t/** Assistive text for accessibility */\n\tassistiveText?: InputAssistiveText;\n\t/** Browser autocomplete attribute */\n\tautoComplete?: string;\n\t/** Elements added after the input */\n\tchildren?: ReactNode;\n\t/** CSS classes for the outer container */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Disables the input */\n\tdisabled?: boolean;\n\t/** Error message (highlights input as error) */\n\terrorText?: ReactNode;\n\t/** Tooltip component for field-level help */\n\tfieldLevelHelpTooltip?: ReactElement<TooltipProps> | null;\n\t/** Fixed text/node on the left */\n\tfixedTextLeft?: ReactNode;\n\t/** Fixed text/node on the right */\n\tfixedTextRight?: ReactNode;\n\t/** Shows loading spinner inside input */\n\thasSpinner?: boolean;\n\t/** Left-aligned `InputIcon`. Its `iconPosition` defaults to `left`. */\n\ticonLeft?: ReactElement<InputIconProps> | null;\n\t/** Right-aligned `InputIcon`. Its `iconPosition` defaults to `right`. */\n\ticonRight?: ReactElement<InputIconProps> | null;\n\t/** HTML id attribute */\n\tid?: string;\n\t/** Help text below the input */\n\tinlineHelpText?: ReactNode;\n\t/** Inline edit trigger element */\n\tinlineEditTrigger?: ReactNode;\n\t/** Ref callback for the input element */\n\tinputRef?: (element: HTMLInputElement | null) => void;\n\t/** Displays value statically (static input pattern) */\n\tisStatic?: boolean;\n\t/** Label text above input */\n\tlabel?: string;\n\t/** Maximum character length */\n\tmaxLength?: string | number;\n\t/** Maximum value for counter variant */\n\tmaxValue?: number;\n\t/** Minimum character length */\n\tminLength?: string | number;\n\t/** Minimum value for counter variant */\n\tminValue?: number;\n\t/** Form parameter name */\n\tname?: string;\n\t/** Blur event handler */\n\tonBlur?: (event: FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Called with the requested value when the user types or, for the counter\n\t * variant, presses the increment/decrement buttons. Input is controlled: set\n\t * `value` from `data.value` (or `data.number`) to accept the change.\n\t */\n\tonChange?: (\n\t\tevent: ChangeEvent<HTMLInputElement> | MouseEvent | KeyboardEvent,\n\t\tdata: InputChangeData\n\t) => void;\n\t/** Click event handler */\n\tonClick?: (event: MouseEvent<HTMLInputElement>) => void;\n\t/** Focus event handler */\n\tonFocus?: (event: FocusEvent<HTMLInputElement>) => void;\n\t/** Input event handler */\n\tonInput?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Invalid event handler */\n\tonInvalid?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Key down event handler */\n\tonKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Key press event handler */\n\tonKeyPress?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Key up event handler */\n\tonKeyUp?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Select event handler */\n\tonSelect?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Submit event handler */\n\tonSubmit?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Placeholder text */\n\tplaceholder?: string;\n\t/** Makes input read-only */\n\treadOnly?: boolean;\n\t/** Highlights as required field */\n\trequired?: boolean;\n\t/** ARIA role */\n\trole?: string;\n\t/** Step size for counter variant */\n\tstep?: number;\n\t/** Tab index */\n\ttabIndex?: string | number;\n\t/** Custom styles for container */\n\tstyleContainer?: CSSProperties;\n\t/** Custom styles for input element */\n\tstyleInput?: CSSProperties;\n\t/** Input type */\n\ttype?: InputType;\n\t/**\n\t * The input's value. Input is controlled: update `value` in `onChange`.\n\t * The counter variant steps from this value. (`defaultValue` was removed\n\t * in v11.)\n\t */\n\tvalue?: string | number;\n\t/** Input variant */\n\tvariant?: InputVariant;\n}\n\n/**\n * Props removed from the public API. Still destructured so they never reach\n * the DOM, and reported by `checkProps`.\n */\ninterface InputRemovedProps {\n\tdefaultValue?: unknown;\n}\n\nconst defaultAssistiveText: InputAssistiveText = {\n\tdecrement: `${DECREMENT} ${COUNTER}`,\n\tincrement: `${INCREMENT} ${COUNTER}`,\n};\n\n/**\n * The HTML `input` with a label and error messaging.\n *\n * @see https://lightningdesignsystem.com/components/input/\n */\nconst Input = forwardRef<HTMLDivElement, InputProps>(\n\t(\n\t\t{\n\t\t\t'aria-activedescendant': ariaActivedescendant,\n\t\t\t'aria-autocomplete': ariaAutocomplete,\n\t\t\t'aria-controls': ariaControls,\n\t\t\t'aria-describedby': ariaDescribedby,\n\t\t\t'aria-expanded': ariaExpanded,\n\t\t\t'aria-haspopup': ariaHaspopup,\n\t\t\t'aria-labelledby': ariaLabelledby,\n\t\t\t'aria-owns': ariaOwns,\n\t\t\t'aria-required': ariaRequired,\n\t\t\tassistiveText: propAssistiveText,\n\t\t\tautoComplete,\n\t\t\tchildren,\n\t\t\tclassName,\n\t\t\tdefaultValue,\n\t\t\tdisabled = false,\n\t\t\terrorText,\n\t\t\tfieldLevelHelpTooltip,\n\t\t\tfixedTextLeft,\n\t\t\tfixedTextRight,\n\t\t\thasSpinner = false,\n\t\t\ticonLeft: propIconLeft,\n\t\t\ticonRight: propIconRight,\n\t\t\tid: propId,\n\t\t\tinlineHelpText,\n\t\t\tinlineEditTrigger,\n\t\t\tinputRef: propInputRef,\n\t\t\tisStatic = false,\n\t\t\tlabel,\n\t\t\tmaxLength,\n\t\t\tmaxValue,\n\t\t\tminLength,\n\t\t\tminValue,\n\t\t\tname,\n\t\t\tonBlur,\n\t\t\tonChange,\n\t\t\tonClick,\n\t\t\tonFocus,\n\t\t\tonInput,\n\t\t\tonInvalid,\n\t\t\tonKeyDown,\n\t\t\tonKeyPress,\n\t\t\tonKeyUp,\n\t\t\tonSelect,\n\t\t\tonSubmit,\n\t\t\tplaceholder,\n\t\t\treadOnly = false,\n\t\t\trequired = false,\n\t\t\trole,\n\t\t\tstep,\n\t\t\ttabIndex,\n\t\t\tstyleContainer,\n\t\t\tstyleInput,\n\t\t\ttype = 'text',\n\t\t\tvalue,\n\t\t\tvariant = 'base',\n\t\t}: InputProps & InputRemovedProps,\n\t\tref\n\t) => {\n\t\tconst generatedId = useId();\n\t\tconst generatedErrorId = useId();\n\t\tconst generatedInlineHelpId = useId();\n\t\tconst id = propId || generatedId;\n\t\tconst errorId = errorText ? generatedErrorId : undefined;\n\t\tconst inlineHelpId = inlineHelpText ? generatedInlineHelpId : undefined;\n\t\tconst describedby =\n\t\t\t[ariaDescribedby, inlineHelpId, errorId]\n\t\t\t\t.filter((v): v is string => Boolean(v))\n\t\t\t\t.join(' ') || undefined;\n\n\t\tconst steppingRef = useRef({\n\t\t\tcurrentDelay: 500,\n\t\t\tinitialDelay: 500,\n\t\t\tspeedDelay: 75,\n\t\t\ttimeout: null as ReturnType<typeof setTimeout> | null,\n\t\t});\n\t\tconst lastStepEventRef = useRef<MouseEvent | KeyboardEvent | null>(null);\n\t\t// Latest `value`, so a held-down counter button steps from the value the\n\t\t// parent rendered after the previous step rather than a stale closure.\n\t\tconst valueRef = useRef(value);\n\t\tuseEffect(() => {\n\t\t\tvalueRef.current = value;\n\t\t}, [value]);\n\n\t\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\n\t\t// Check props in development\n\t\tcheckProps(\n\t\t\tINPUT,\n\t\t\t{\n\t\t\t\t'aria-activedescendant': ariaActivedescendant,\n\t\t\t\t'aria-autocomplete': ariaAutocomplete,\n\t\t\t\t'aria-controls': ariaControls,\n\t\t\t\t'aria-describedby': ariaDescribedby,\n\t\t\t\t'aria-expanded': ariaExpanded,\n\t\t\t\t'aria-haspopup': ariaHaspopup,\n\t\t\t\t'aria-labelledby': ariaLabelledby,\n\t\t\t\t'aria-owns': ariaOwns,\n\t\t\t\t'aria-required': ariaRequired,\n\t\t\t\tassistiveText,\n\t\t\t\tautoComplete,\n\t\t\t\tchildren,\n\t\t\t\tclassName,\n\t\t\t\tdefaultValue,\n\t\t\t\tdisabled,\n\t\t\t\terrorText,\n\t\t\t\tfieldLevelHelpTooltip,\n\t\t\t\tfixedTextLeft,\n\t\t\t\tfixedTextRight,\n\t\t\t\thasSpinner,\n\t\t\t\ticonLeft: propIconLeft,\n\t\t\t\ticonRight: propIconRight,\n\t\t\t\tid,\n\t\t\t\tinlineHelpText,\n\t\t\t\tinlineEditTrigger,\n\t\t\t\tinputRef: propInputRef,\n\t\t\t\tisStatic,\n\t\t\t\tlabel,\n\t\t\t\tmaxLength,\n\t\t\t\tmaxValue,\n\t\t\t\tminLength,\n\t\t\t\tminValue,\n\t\t\t\tname,\n\t\t\t\tonBlur,\n\t\t\t\tonChange,\n\t\t\t\tonClick,\n\t\t\t\tonFocus,\n\t\t\t\tonInput,\n\t\t\t\tonInvalid,\n\t\t\t\tonKeyDown,\n\t\t\t\tonKeyPress,\n\t\t\t\tonKeyUp,\n\t\t\t\tonSelect,\n\t\t\t\tonSubmit,\n\t\t\t\tplaceholder,\n\t\t\t\treadOnly,\n\t\t\t\trequired,\n\t\t\t\trole,\n\t\t\t\tstep,\n\t\t\t\ttabIndex,\n\t\t\t\tstyleContainer,\n\t\t\t\tstyleInput,\n\t\t\t\ttype,\n\t\t\t\tvalue,\n\t\t\t\tvariant,\n\t\t\t},\n\t\t\tcomponentDoc\n\t\t);\n\n\t\t// The counter steps from the `value` prop only; it never reads or writes\n\t\t// the DOM value.\n\t\tconst toNumber = (currentValue: string | number | undefined): number =>\n\t\t\tcurrentValue === undefined || currentValue === ''\n\t\t\t\t? 0\n\t\t\t\t: Number(currentValue);\n\n\t\tconst stopStepping = useCallback(() => {\n\t\t\tif (steppingRef.current.timeout) {\n\t\t\t\tclearTimeout(steppingRef.current.timeout);\n\t\t\t}\n\t\t\tsteppingRef.current.currentDelay = steppingRef.current.initialDelay;\n\t\t\tlastStepEventRef.current = null;\n\t\t}, []);\n\n\t\tconst performStep = useCallback(\n\t\t\t(\n\t\t\t\tdirection: typeof INCREMENT | typeof DECREMENT,\n\t\t\t\tevent?: MouseEvent | KeyboardEvent\n\t\t\t) => {\n\t\t\t\tif (steppingRef.current.timeout) {\n\t\t\t\t\tclearTimeout(steppingRef.current.timeout);\n\t\t\t\t}\n\n\t\t\t\tif (event) {\n\t\t\t\t\tlastStepEventRef.current = event;\n\t\t\t\t}\n\t\t\t\tconst stepEvent = event ?? lastStepEventRef.current ?? undefined;\n\n\t\t\t\tconst stepSize = step !== undefined ? Number(step) : 1;\n\t\t\t\tlet currentValue = toNumber(valueRef.current);\n\t\t\t\tlet valueChanged = false;\n\n\t\t\t\tif (\n\t\t\t\t\tdirection === DECREMENT &&\n\t\t\t\t\tmaxValue !== undefined &&\n\t\t\t\t\tcurrentValue > maxValue\n\t\t\t\t) {\n\t\t\t\t\tcurrentValue = Number(maxValue);\n\t\t\t\t\tvalueChanged = true;\n\t\t\t\t} else if (\n\t\t\t\t\tdirection === INCREMENT &&\n\t\t\t\t\tminValue !== undefined &&\n\t\t\t\t\tcurrentValue < minValue\n\t\t\t\t) {\n\t\t\t\t\tcurrentValue = Number(minValue);\n\t\t\t\t\tvalueChanged = true;\n\t\t\t\t} else {\n\t\t\t\t\tconst decimalPlaces =\n\t\t\t\t\t\tString(stepSize).search(/\\./) >= 0\n\t\t\t\t\t\t\t? String(stepSize).split('.')[1].length\n\t\t\t\t\t\t\t: 0;\n\t\t\t\t\tlet minOverflow = 0;\n\n\t\t\t\t\tif (minValue !== undefined) {\n\t\t\t\t\t\tminOverflow = (currentValue - minValue) % stepSize;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (minOverflow > 0) {\n\t\t\t\t\t\tcurrentValue =\n\t\t\t\t\t\t\tdirection === DECREMENT\n\t\t\t\t\t\t\t\t? currentValue - minOverflow\n\t\t\t\t\t\t\t\t: currentValue + (stepSize - minOverflow);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurrentValue =\n\t\t\t\t\t\t\tdirection === DECREMENT\n\t\t\t\t\t\t\t\t? currentValue - stepSize\n\t\t\t\t\t\t\t\t: currentValue + stepSize;\n\t\t\t\t\t}\n\n\t\t\t\t\tcurrentValue = Number(currentValue.toFixed(decimalPlaces));\n\n\t\t\t\t\tif (\n\t\t\t\t\t\t!(maxValue !== undefined && currentValue > maxValue) &&\n\t\t\t\t\t\t!(minValue !== undefined && currentValue < minValue)\n\t\t\t\t\t) {\n\t\t\t\t\t\tvalueChanged = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (valueChanged) {\n\t\t\t\t\tif (onChange && stepEvent) {\n\t\t\t\t\t\tonChange(stepEvent, {\n\t\t\t\t\t\t\tnumber: currentValue,\n\t\t\t\t\t\t\tvalue: String(currentValue),\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\t(direction === INCREMENT &&\n\t\t\t\t\t\tmaxValue !== undefined &&\n\t\t\t\t\t\tcurrentValue >= maxValue) ||\n\t\t\t\t\t(direction === DECREMENT &&\n\t\t\t\t\t\tminValue !== undefined &&\n\t\t\t\t\t\tcurrentValue <= minValue)\n\t\t\t\t) {\n\t\t\t\t\tstopStepping();\n\t\t\t\t} else {\n\t\t\t\t\tsteppingRef.current.timeout = setTimeout(() => {\n\t\t\t\t\t\tsteppingRef.current.currentDelay = steppingRef.current.speedDelay;\n\t\t\t\t\t\tperformStep(direction);\n\t\t\t\t\t}, steppingRef.current.currentDelay);\n\t\t\t\t}\n\t\t\t},\n\t\t\t[maxValue, minValue, onChange, step, stopStepping]\n\t\t);\n\n\t\tconst handleChange = useCallback(\n\t\t\t(event: ChangeEvent<HTMLInputElement>) => {\n\t\t\t\tif (onChange) {\n\t\t\t\t\tconst data: InputChangeData = {\n\t\t\t\t\t\tvalue: event.target.value,\n\t\t\t\t\t};\n\n\t\t\t\t\tif (variant === COUNTER) {\n\t\t\t\t\t\tdata.number = Number(data.value);\n\t\t\t\t\t}\n\n\t\t\t\t\tonChange(event, data);\n\t\t\t\t}\n\t\t\t},\n\t\t\t[onChange, variant]\n\t\t);\n\n\t\tconst getCounterButtonIcon = (\n\t\t\tdirection: typeof INCREMENT | typeof DECREMENT\n\t\t) => {\n\t\t\tconst currentValue = toNumber(value);\n\t\t\tlet isDisabled = false;\n\n\t\t\tif (\n\t\t\t\tdisabled ||\n\t\t\t\t(direction === INCREMENT &&\n\t\t\t\t\tmaxValue !== undefined &&\n\t\t\t\t\tcurrentValue >= maxValue) ||\n\t\t\t\t(direction === DECREMENT &&\n\t\t\t\t\tminValue !== undefined &&\n\t\t\t\t\tcurrentValue <= minValue)\n\t\t\t) {\n\t\t\t\tisDisabled = true;\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<Button\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\ticon: assistiveText[\n\t\t\t\t\t\t\tdirection.toLowerCase() as 'decrement' | 'increment'\n\t\t\t\t\t\t],\n\t\t\t\t\t}}\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-button_icon-small',\n\t\t\t\t\t\t`slds-input__button_${direction.toLowerCase()}`\n\t\t\t\t\t)}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\ticonName={direction === DECREMENT ? 'ban' : 'new'}\n\t\t\t\t\tonKeyDown={(event: KeyboardEvent) => {\n\t\t\t\t\t\tif (event.keyCode === 13) {\n\t\t\t\t\t\t\tperformStep(direction, event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t\tonKeyUp={stopStepping}\n\t\t\t\t\tonMouseDown={(event: MouseEvent) => {\n\t\t\t\t\t\tperformStep(direction, event);\n\t\t\t\t\t}}\n\t\t\t\t\tonMouseLeave={stopStepping}\n\t\t\t\t\tonMouseUp={stopStepping}\n\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t/>\n\t\t\t);\n\t\t};\n\n\t\t// Compute icon rendering\n\t\tlet iconLeft: ReactNode = null;\n\t\tlet iconRight: ReactNode = null;\n\n\t\tif (propIconLeft) {\n\t\t\ticonLeft = React.isValidElement<InputIconProps>(propIconLeft)\n\t\t\t\t? React.cloneElement(propIconLeft, {\n\t\t\t\t\t\ticonPosition: propIconLeft.props.iconPosition ?? 'left',\n\t\t\t\t\t})\n\t\t\t\t: propIconLeft;\n\t\t} else if (variant === COUNTER && !isStatic && !readOnly) {\n\t\t\ticonLeft = getCounterButtonIcon(DECREMENT);\n\t\t}\n\n\t\tif (propIconRight) {\n\t\t\ticonRight = React.isValidElement<InputIconProps>(propIconRight)\n\t\t\t\t? React.cloneElement(propIconRight, {\n\t\t\t\t\t\ticonPosition: propIconRight.props.iconPosition ?? 'right',\n\t\t\t\t\t})\n\t\t\t\t: propIconRight;\n\t\t} else if (variant === COUNTER && !isStatic && !readOnly) {\n\t\t\ticonRight = getCounterButtonIcon(INCREMENT);\n\t\t}\n\n\t\tconst hasRenderedLabel = label || assistiveText?.label;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\t'slds-form-element',\n\t\t\t\t\t{\n\t\t\t\t\t\t'slds-has-error': errorText,\n\t\t\t\t\t},\n\t\t\t\t\tclassName\n\t\t\t\t)}\n\t\t\t\tstyle={styleContainer}\n\t\t\t\tref={ref}\n\t\t\t>\n\t\t\t\t<Label\n\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\thtmlFor={isStatic ? undefined : id}\n\t\t\t\t\tlabel={label}\n\t\t\t\t\trequired={required}\n\t\t\t\t\tvariant={isStatic ? 'static' : 'base'}\n\t\t\t\t/>\n\t\t\t\t{fieldLevelHelpTooltip && hasRenderedLabel ? (\n\t\t\t\t\t<FieldLevelHelpTooltip\n\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\ttriggerLearnMoreIcon: assistiveText.fieldLevelHelpButton,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tfieldLevelHelpTooltip={fieldLevelHelpTooltip}\n\t\t\t\t\t/>\n\t\t\t\t) : null}\n\t\t\t\t<InnerInput\n\t\t\t\t\taria-activedescendant={ariaActivedescendant}\n\t\t\t\t\taria-autocomplete={ariaAutocomplete}\n\t\t\t\t\taria-controls={ariaControls}\n\t\t\t\t\taria-labelledby={ariaLabelledby}\n\t\t\t\t\taria-describedby={describedby}\n\t\t\t\t\taria-expanded={ariaExpanded}\n\t\t\t\t\taria-haspopup={ariaHaspopup}\n\t\t\t\t\taria-owns={ariaOwns}\n\t\t\t\t\taria-required={ariaRequired}\n\t\t\t\t\tautoComplete={autoComplete}\n\t\t\t\t\tclassName={classNames({\n\t\t\t\t\t\t'slds-input_counter': variant === COUNTER,\n\t\t\t\t\t\t'slds-p-horizontal_none': variant === COUNTER && readOnly,\n\t\t\t\t\t})}\n\t\t\t\t\tcontainerProps={{\n\t\t\t\t\t\tclassName: 'slds-form-element__control',\n\t\t\t\t\t}}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tfixedTextLeft={fixedTextLeft}\n\t\t\t\t\tfixedTextRight={fixedTextRight}\n\t\t\t\t\thasSpinner={hasSpinner}\n\t\t\t\t\tid={id}\n\t\t\t\t\ticonLeft={iconLeft}\n\t\t\t\t\ticonRight={iconRight}\n\t\t\t\t\tinlineEditTrigger={inlineEditTrigger}\n\t\t\t\t\tisStatic={isStatic}\n\t\t\t\t\tminLength={minLength}\n\t\t\t\t\tminValue={minValue}\n\t\t\t\t\tmaxLength={maxLength}\n\t\t\t\t\tmaxValue={maxValue}\n\t\t\t\t\tname={name}\n\t\t\t\t\tonBlur={onBlur}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tonClick={onClick}\n\t\t\t\t\tonFocus={onFocus}\n\t\t\t\t\tonInput={onInput}\n\t\t\t\t\tonInvalid={onInvalid}\n\t\t\t\t\tonKeyDown={onKeyDown}\n\t\t\t\t\tonKeyPress={onKeyPress}\n\t\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t\t\tonSelect={onSelect}\n\t\t\t\t\tonSubmit={onSubmit}\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\tinputRef={propInputRef}\n\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\trequired={required}\n\t\t\t\t\trole={role}\n\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\ttype={variant === COUNTER ? 'number' : type}\n\t\t\t\t\tvalue={value}\n\t\t\t\t\tvariant={variant}\n\t\t\t\t\tstep={step}\n\t\t\t\t\ttabIndex={tabIndex}\n\t\t\t\t\tstyle={styleInput}\n\t\t\t\t/>\n\t\t\t\t{inlineHelpText && (\n\t\t\t\t\t<div id={inlineHelpId} className=\"slds-form-element__help\">\n\t\t\t\t\t\t{inlineHelpText}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{errorText && (\n\t\t\t\t\t<div id={errorId} className=\"slds-form-element__help\">\n\t\t\t\t\t\t{errorText}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n);\n\nInput.displayName = INPUT;\n\nexport default Input;\n"],"mappings":"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"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../components/input/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\tuseRef,\n\tuseCallback,\n\tuseEffect,\n\tforwardRef,\n\ttype ReactNode,\n\ttype ReactElement,\n\ttype ChangeEvent,\n\ttype FocusEvent,\n\ttype KeyboardEvent,\n\ttype MouseEvent,\n\ttype FormEvent,\n\ttype CSSProperties,\n\ttype AriaAttributes,\n} from 'react';\nimport classNames from 'classnames';\n\nimport Button from '../button';\nimport InnerInput from './private/inner-input';\nimport Label from '../utilities/label/index';\nimport FieldLevelHelpTooltip from '../tooltip/private/field-level-help-tooltip';\nimport type { TooltipProps } from '../tooltip/index';\nimport type { InputIconProps } from '../icon/input-icon';\n\nimport checkProps from './check-props';\nimport { INPUT } from '../../utilities/constants';\nimport componentDoc from './component.json';\n\nconst COUNTER = 'counter';\nconst DECREMENT = 'Decrement';\nconst INCREMENT = 'Increment';\n\n/**\n * Input type options\n */\nexport type InputType =\n\t| 'text'\n\t| 'password'\n\t| 'datetime'\n\t| 'datetime-local'\n\t| 'date'\n\t| 'month'\n\t| 'time'\n\t| 'week'\n\t| 'number'\n\t| 'email'\n\t| 'url'\n\t| 'search'\n\t| 'tel'\n\t| 'color';\n\n/**\n * Input variant options\n */\nexport type InputVariant = 'base' | 'counter';\n\n/**\n * Assistive text for Input accessibility\n */\nexport interface InputAssistiveText {\n\t/** Visually hidden label for screen readers */\n\tlabel?: string;\n\t/** Text for loading spinner icon */\n\tspinner?: string;\n\t/** Text for decrement button in counter variant */\n\tdecrement?: string;\n\t/** Text for increment button in counter variant */\n\tincrement?: string;\n}\n\n/**\n * Data passed to onChange callback\n */\nexport interface InputChangeData {\n\t/** The input value as string */\n\tvalue: string;\n\t/** The input value as number (only for counter variant) */\n\tnumber?: number;\n}\n\n/**\n * Props shared by every Input variant and label form\n */\nexport interface InputBaseProps {\n\t/** ID of the currently active child in a composite widget */\n\t'aria-activedescendant'?: string;\n\t/** Indicates if suggestions complete the textbox input */\n\t'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';\n\t/** ID of element controlled by this input */\n\t'aria-controls'?: string;\n\t/** ID of element(s) that describe this input */\n\t'aria-describedby'?: string;\n\t/** Whether a collapsible region is expanded */\n\t'aria-expanded'?: boolean;\n\t/** Indicates the input has a popup */\n\t'aria-haspopup'?: AriaAttributes['aria-haspopup'];\n\t/** ID of element(s) that label this input */\n\t'aria-labelledby'?: string;\n\t/** ID of element(s) owned by this input */\n\t'aria-owns'?: string;\n\t/** Whether input is required */\n\t'aria-required'?: boolean;\n\t/** Browser autocomplete attribute */\n\tautoComplete?: string;\n\t/** Elements added after the input */\n\tchildren?: ReactNode;\n\t/** CSS classes for the outer container */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Disables the input */\n\tdisabled?: boolean;\n\t/** Error message (highlights input as error) */\n\terrorText?: ReactNode;\n\t/** Tooltip component for field-level help */\n\tfieldLevelHelpTooltip?: ReactElement<TooltipProps> | null;\n\t/** Shows loading spinner inside input */\n\thasSpinner?: boolean;\n\t/** Left-aligned `InputIcon`. The input sets its `iconPosition` to `left` unless the element sets one. */\n\ticonLeft?: ReactElement<InputIconProps> | null;\n\t/** Right-aligned `InputIcon`. The input sets its `iconPosition` to `right` unless the element sets one. */\n\ticonRight?: ReactElement<InputIconProps> | null;\n\t/** HTML id attribute */\n\tid?: string;\n\t/** Help text below the input */\n\tinlineHelpText?: ReactNode;\n\t/** Inline edit trigger element */\n\tinlineEditTrigger?: ReactNode;\n\t/** Ref callback for the input element */\n\tinputRef?: (element: HTMLInputElement | null) => void;\n\t/** Displays value statically (static input pattern) */\n\tisStatic?: boolean;\n\t/** Maximum character length */\n\tmaxLength?: number;\n\t/** Minimum character length */\n\tminLength?: number;\n\t/** Form parameter name */\n\tname?: string;\n\t/** Blur event handler */\n\tonBlur?: (event: FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Called with the requested value when the user types or, for the counter\n\t * variant, presses the increment/decrement buttons. Input is controlled: set\n\t * `value` from `data.value` (or `data.number`) to accept the change.\n\t */\n\tonChange?: (\n\t\tevent: ChangeEvent<HTMLInputElement> | MouseEvent | KeyboardEvent,\n\t\tdata: InputChangeData\n\t) => void;\n\t/** Click event handler */\n\tonClick?: (event: MouseEvent<HTMLInputElement>) => void;\n\t/** Focus event handler */\n\tonFocus?: (event: FocusEvent<HTMLInputElement>) => void;\n\t/** Input event handler */\n\tonInput?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Invalid event handler */\n\tonInvalid?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Key down event handler */\n\tonKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Key press event handler */\n\tonKeyPress?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Key up event handler */\n\tonKeyUp?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Select event handler */\n\tonSelect?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Submit event handler */\n\tonSubmit?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Placeholder text */\n\tplaceholder?: string;\n\t/** Makes input read-only */\n\treadOnly?: boolean;\n\t/** Highlights as required field */\n\trequired?: boolean;\n\t/** ARIA role */\n\trole?: string;\n\t/** Tab index */\n\ttabIndex?: number;\n\t/** Custom styles for container */\n\tstyleContainer?: CSSProperties;\n\t/** Custom styles for input element */\n\tstyleInput?: CSSProperties;\n\t/** Input type */\n\ttype?: InputType;\n\t/**\n\t * The input's value. Input is controlled: update `value` in `onChange`.\n\t * The counter variant steps from this value. (`defaultValue` was removed\n\t * in v11.)\n\t */\n\tvalue?: string | number;\n}\n\n/** The plain input, and the default. Counter-only props are not accepted. */\ninterface InputBaseVariantProps {\n\t/** Input variant */\n\tvariant?: 'base';\n\tmaxValue?: never;\n\tminValue?: never;\n\tstep?: never;\n}\n\n/** A number input with increment and decrement buttons. Its `type` is always `number`. */\ninterface InputCounterVariantProps {\n\t/** Input variant */\n\tvariant: 'counter';\n\t/** Maximum value */\n\tmaxValue?: number;\n\t/** Minimum value */\n\tminValue?: number;\n\t/** Step size */\n\tstep?: number;\n}\n\n/** A visible `label`, or `assistiveText.label` for a visually hidden one, not both. */\ntype InputLabelProps =\n\t| {\n\t\t\t/** Label text above input */\n\t\t\tlabel?: string;\n\t\t\t/** Assistive text for accessibility */\n\t\t\tassistiveText?: InputAssistiveText & { label?: never };\n\t }\n\t| {\n\t\t\tlabel?: undefined;\n\t\t\t/** Assistive text for accessibility */\n\t\t\tassistiveText?: InputAssistiveText;\n\t };\n\n/** Fixed text on one side of the input, not both. */\ntype InputFixedTextProps =\n\t| {\n\t\t\t/** Fixed text/node on the left */\n\t\t\tfixedTextLeft?: ReactNode;\n\t\t\tfixedTextRight?: never;\n\t }\n\t| {\n\t\t\tfixedTextLeft?: never;\n\t\t\t/** Fixed text/node on the right */\n\t\t\tfixedTextRight?: ReactNode;\n\t };\n\n/**\n * Props for the Input component: a union on `variant` (counter-only props),\n * with `label`/`assistiveText.label` and `fixedTextLeft`/`fixedTextRight`\n * exclusive.\n */\nexport type InputProps = InputBaseProps &\n\t(InputBaseVariantProps | InputCounterVariantProps) &\n\tInputLabelProps &\n\tInputFixedTextProps;\n\n/**\n * Props removed from the public API. Still destructured so they never reach\n * the DOM, and reported by `checkProps`.\n */\ninterface InputRemovedProps {\n\tdefaultValue?: unknown;\n}\n\nconst defaultAssistiveText: InputAssistiveText = {\n\tdecrement: `${DECREMENT} ${COUNTER}`,\n\tincrement: `${INCREMENT} ${COUNTER}`,\n};\n\n/**\n * The HTML `input` with a label and error messaging.\n *\n * @see https://lightningdesignsystem.com/components/input/\n */\nconst Input = forwardRef<HTMLDivElement, InputProps>(\n\t(\n\t\t{\n\t\t\t'aria-activedescendant': ariaActivedescendant,\n\t\t\t'aria-autocomplete': ariaAutocomplete,\n\t\t\t'aria-controls': ariaControls,\n\t\t\t'aria-describedby': ariaDescribedby,\n\t\t\t'aria-expanded': ariaExpanded,\n\t\t\t'aria-haspopup': ariaHaspopup,\n\t\t\t'aria-labelledby': ariaLabelledby,\n\t\t\t'aria-owns': ariaOwns,\n\t\t\t'aria-required': ariaRequired,\n\t\t\tassistiveText: propAssistiveText,\n\t\t\tautoComplete,\n\t\t\tchildren,\n\t\t\tclassName,\n\t\t\tdefaultValue,\n\t\t\tdisabled = false,\n\t\t\terrorText,\n\t\t\tfieldLevelHelpTooltip,\n\t\t\tfixedTextLeft,\n\t\t\tfixedTextRight,\n\t\t\thasSpinner = false,\n\t\t\ticonLeft: propIconLeft,\n\t\t\ticonRight: propIconRight,\n\t\t\tid: propId,\n\t\t\tinlineHelpText,\n\t\t\tinlineEditTrigger,\n\t\t\tinputRef: propInputRef,\n\t\t\tisStatic = false,\n\t\t\tlabel,\n\t\t\tmaxLength,\n\t\t\tmaxValue,\n\t\t\tminLength,\n\t\t\tminValue,\n\t\t\tname,\n\t\t\tonBlur,\n\t\t\tonChange,\n\t\t\tonClick,\n\t\t\tonFocus,\n\t\t\tonInput,\n\t\t\tonInvalid,\n\t\t\tonKeyDown,\n\t\t\tonKeyPress,\n\t\t\tonKeyUp,\n\t\t\tonSelect,\n\t\t\tonSubmit,\n\t\t\tplaceholder,\n\t\t\treadOnly = false,\n\t\t\trequired = false,\n\t\t\trole,\n\t\t\tstep,\n\t\t\ttabIndex,\n\t\t\tstyleContainer,\n\t\t\tstyleInput,\n\t\t\ttype = 'text',\n\t\t\tvalue,\n\t\t\tvariant = 'base',\n\t\t}: InputProps & InputRemovedProps,\n\t\tref\n\t) => {\n\t\tconst generatedId = useId();\n\t\tconst generatedErrorId = useId();\n\t\tconst generatedInlineHelpId = useId();\n\t\tconst id = propId || generatedId;\n\t\tconst errorId = errorText ? generatedErrorId : undefined;\n\t\tconst inlineHelpId = inlineHelpText ? generatedInlineHelpId : undefined;\n\t\tconst describedby =\n\t\t\t[ariaDescribedby, inlineHelpId, errorId]\n\t\t\t\t.filter((v): v is string => Boolean(v))\n\t\t\t\t.join(' ') || undefined;\n\n\t\tconst steppingRef = useRef({\n\t\t\tcurrentDelay: 500,\n\t\t\tinitialDelay: 500,\n\t\t\tspeedDelay: 75,\n\t\t\ttimeout: null as ReturnType<typeof setTimeout> | null,\n\t\t});\n\t\tconst lastStepEventRef = useRef<MouseEvent | KeyboardEvent | null>(null);\n\t\t// Latest `value`, so a held-down counter button steps from the value the\n\t\t// parent rendered after the previous step rather than a stale closure.\n\t\tconst valueRef = useRef(value);\n\t\tuseEffect(() => {\n\t\t\tvalueRef.current = value;\n\t\t}, [value]);\n\n\t\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\n\t\t// Check props in development\n\t\tcheckProps(\n\t\t\tINPUT,\n\t\t\t{\n\t\t\t\t'aria-activedescendant': ariaActivedescendant,\n\t\t\t\t'aria-autocomplete': ariaAutocomplete,\n\t\t\t\t'aria-controls': ariaControls,\n\t\t\t\t'aria-describedby': ariaDescribedby,\n\t\t\t\t'aria-expanded': ariaExpanded,\n\t\t\t\t'aria-haspopup': ariaHaspopup,\n\t\t\t\t'aria-labelledby': ariaLabelledby,\n\t\t\t\t'aria-owns': ariaOwns,\n\t\t\t\t'aria-required': ariaRequired,\n\t\t\t\tassistiveText,\n\t\t\t\tautoComplete,\n\t\t\t\tchildren,\n\t\t\t\tclassName,\n\t\t\t\tdefaultValue,\n\t\t\t\tdisabled,\n\t\t\t\terrorText,\n\t\t\t\tfieldLevelHelpTooltip,\n\t\t\t\tfixedTextLeft,\n\t\t\t\tfixedTextRight,\n\t\t\t\thasSpinner,\n\t\t\t\ticonLeft: propIconLeft,\n\t\t\t\ticonRight: propIconRight,\n\t\t\t\tid,\n\t\t\t\tinlineHelpText,\n\t\t\t\tinlineEditTrigger,\n\t\t\t\tinputRef: propInputRef,\n\t\t\t\tisStatic,\n\t\t\t\tlabel,\n\t\t\t\tmaxLength,\n\t\t\t\tmaxValue,\n\t\t\t\tminLength,\n\t\t\t\tminValue,\n\t\t\t\tname,\n\t\t\t\tonBlur,\n\t\t\t\tonChange,\n\t\t\t\tonClick,\n\t\t\t\tonFocus,\n\t\t\t\tonInput,\n\t\t\t\tonInvalid,\n\t\t\t\tonKeyDown,\n\t\t\t\tonKeyPress,\n\t\t\t\tonKeyUp,\n\t\t\t\tonSelect,\n\t\t\t\tonSubmit,\n\t\t\t\tplaceholder,\n\t\t\t\treadOnly,\n\t\t\t\trequired,\n\t\t\t\trole,\n\t\t\t\tstep,\n\t\t\t\ttabIndex,\n\t\t\t\tstyleContainer,\n\t\t\t\tstyleInput,\n\t\t\t\ttype,\n\t\t\t\tvalue,\n\t\t\t\tvariant,\n\t\t\t},\n\t\t\tcomponentDoc\n\t\t);\n\n\t\t// The counter steps from the `value` prop only; it never reads or writes\n\t\t// the DOM value.\n\t\tconst toNumber = (currentValue: string | number | undefined): number =>\n\t\t\tcurrentValue === undefined || currentValue === ''\n\t\t\t\t? 0\n\t\t\t\t: Number(currentValue);\n\n\t\tconst stopStepping = useCallback(() => {\n\t\t\tif (steppingRef.current.timeout) {\n\t\t\t\tclearTimeout(steppingRef.current.timeout);\n\t\t\t}\n\t\t\tsteppingRef.current.currentDelay = steppingRef.current.initialDelay;\n\t\t\tlastStepEventRef.current = null;\n\t\t}, []);\n\n\t\tconst performStep = useCallback(\n\t\t\t(\n\t\t\t\tdirection: typeof INCREMENT | typeof DECREMENT,\n\t\t\t\tevent?: MouseEvent | KeyboardEvent\n\t\t\t) => {\n\t\t\t\tif (steppingRef.current.timeout) {\n\t\t\t\t\tclearTimeout(steppingRef.current.timeout);\n\t\t\t\t}\n\n\t\t\t\tif (event) {\n\t\t\t\t\tlastStepEventRef.current = event;\n\t\t\t\t}\n\t\t\t\tconst stepEvent = event ?? lastStepEventRef.current ?? undefined;\n\n\t\t\t\tconst stepSize = step !== undefined ? Number(step) : 1;\n\t\t\t\tlet currentValue = toNumber(valueRef.current);\n\t\t\t\tlet valueChanged = false;\n\n\t\t\t\tif (\n\t\t\t\t\tdirection === DECREMENT &&\n\t\t\t\t\tmaxValue !== undefined &&\n\t\t\t\t\tcurrentValue > maxValue\n\t\t\t\t) {\n\t\t\t\t\tcurrentValue = Number(maxValue);\n\t\t\t\t\tvalueChanged = true;\n\t\t\t\t} else if (\n\t\t\t\t\tdirection === INCREMENT &&\n\t\t\t\t\tminValue !== undefined &&\n\t\t\t\t\tcurrentValue < minValue\n\t\t\t\t) {\n\t\t\t\t\tcurrentValue = Number(minValue);\n\t\t\t\t\tvalueChanged = true;\n\t\t\t\t} else {\n\t\t\t\t\tconst decimalPlaces =\n\t\t\t\t\t\tString(stepSize).search(/\\./) >= 0\n\t\t\t\t\t\t\t? String(stepSize).split('.')[1].length\n\t\t\t\t\t\t\t: 0;\n\t\t\t\t\tlet minOverflow = 0;\n\n\t\t\t\t\tif (minValue !== undefined) {\n\t\t\t\t\t\tminOverflow = (currentValue - minValue) % stepSize;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (minOverflow > 0) {\n\t\t\t\t\t\tcurrentValue =\n\t\t\t\t\t\t\tdirection === DECREMENT\n\t\t\t\t\t\t\t\t? currentValue - minOverflow\n\t\t\t\t\t\t\t\t: currentValue + (stepSize - minOverflow);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurrentValue =\n\t\t\t\t\t\t\tdirection === DECREMENT\n\t\t\t\t\t\t\t\t? currentValue - stepSize\n\t\t\t\t\t\t\t\t: currentValue + stepSize;\n\t\t\t\t\t}\n\n\t\t\t\t\tcurrentValue = Number(currentValue.toFixed(decimalPlaces));\n\n\t\t\t\t\tif (\n\t\t\t\t\t\t!(maxValue !== undefined && currentValue > maxValue) &&\n\t\t\t\t\t\t!(minValue !== undefined && currentValue < minValue)\n\t\t\t\t\t) {\n\t\t\t\t\t\tvalueChanged = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (valueChanged) {\n\t\t\t\t\tif (onChange && stepEvent) {\n\t\t\t\t\t\tonChange(stepEvent, {\n\t\t\t\t\t\t\tnumber: currentValue,\n\t\t\t\t\t\t\tvalue: String(currentValue),\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\t(direction === INCREMENT &&\n\t\t\t\t\t\tmaxValue !== undefined &&\n\t\t\t\t\t\tcurrentValue >= maxValue) ||\n\t\t\t\t\t(direction === DECREMENT &&\n\t\t\t\t\t\tminValue !== undefined &&\n\t\t\t\t\t\tcurrentValue <= minValue)\n\t\t\t\t) {\n\t\t\t\t\tstopStepping();\n\t\t\t\t} else {\n\t\t\t\t\tsteppingRef.current.timeout = setTimeout(() => {\n\t\t\t\t\t\tsteppingRef.current.currentDelay = steppingRef.current.speedDelay;\n\t\t\t\t\t\tperformStep(direction);\n\t\t\t\t\t}, steppingRef.current.currentDelay);\n\t\t\t\t}\n\t\t\t},\n\t\t\t[maxValue, minValue, onChange, step, stopStepping]\n\t\t);\n\n\t\tconst handleChange = useCallback(\n\t\t\t(event: ChangeEvent<HTMLInputElement>) => {\n\t\t\t\tif (onChange) {\n\t\t\t\t\tconst data: InputChangeData = {\n\t\t\t\t\t\tvalue: event.target.value,\n\t\t\t\t\t};\n\n\t\t\t\t\tif (variant === COUNTER) {\n\t\t\t\t\t\tdata.number = Number(data.value);\n\t\t\t\t\t}\n\n\t\t\t\t\tonChange(event, data);\n\t\t\t\t}\n\t\t\t},\n\t\t\t[onChange, variant]\n\t\t);\n\n\t\tconst getCounterButtonIcon = (\n\t\t\tdirection: typeof INCREMENT | typeof DECREMENT\n\t\t) => {\n\t\t\tconst currentValue = toNumber(value);\n\t\t\tlet isDisabled = false;\n\n\t\t\tif (\n\t\t\t\tdisabled ||\n\t\t\t\t(direction === INCREMENT &&\n\t\t\t\t\tmaxValue !== undefined &&\n\t\t\t\t\tcurrentValue >= maxValue) ||\n\t\t\t\t(direction === DECREMENT &&\n\t\t\t\t\tminValue !== undefined &&\n\t\t\t\t\tcurrentValue <= minValue)\n\t\t\t) {\n\t\t\t\tisDisabled = true;\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<Button\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\ticon: assistiveText[\n\t\t\t\t\t\t\tdirection.toLowerCase() as 'decrement' | 'increment'\n\t\t\t\t\t\t],\n\t\t\t\t\t}}\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-button_icon-small',\n\t\t\t\t\t\t`slds-input__button_${direction.toLowerCase()}`\n\t\t\t\t\t)}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\ticonName={direction === DECREMENT ? 'ban' : 'new'}\n\t\t\t\t\tonKeyDown={(event: KeyboardEvent) => {\n\t\t\t\t\t\tif (event.keyCode === 13) {\n\t\t\t\t\t\t\tperformStep(direction, event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t\tonKeyUp={stopStepping}\n\t\t\t\t\tonMouseDown={(event: MouseEvent) => {\n\t\t\t\t\t\tperformStep(direction, event);\n\t\t\t\t\t}}\n\t\t\t\t\tonMouseLeave={stopStepping}\n\t\t\t\t\tonMouseUp={stopStepping}\n\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t/>\n\t\t\t);\n\t\t};\n\n\t\t// Compute icon rendering\n\t\tlet iconLeft: ReactNode = null;\n\t\tlet iconRight: ReactNode = null;\n\n\t\tif (propIconLeft) {\n\t\t\ticonLeft = React.isValidElement<InputIconProps>(propIconLeft)\n\t\t\t\t? React.cloneElement(propIconLeft, {\n\t\t\t\t\t\ticonPosition: propIconLeft.props.iconPosition ?? 'left',\n\t\t\t\t\t})\n\t\t\t\t: propIconLeft;\n\t\t} else if (variant === COUNTER && !isStatic && !readOnly) {\n\t\t\ticonLeft = getCounterButtonIcon(DECREMENT);\n\t\t}\n\n\t\tif (propIconRight) {\n\t\t\ticonRight = React.isValidElement<InputIconProps>(propIconRight)\n\t\t\t\t? React.cloneElement(propIconRight, {\n\t\t\t\t\t\ticonPosition: propIconRight.props.iconPosition ?? 'right',\n\t\t\t\t\t})\n\t\t\t\t: propIconRight;\n\t\t} else if (variant === COUNTER && !isStatic && !readOnly) {\n\t\t\ticonRight = getCounterButtonIcon(INCREMENT);\n\t\t}\n\n\t\tconst hasRenderedLabel = label || assistiveText?.label;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\t'slds-form-element',\n\t\t\t\t\t{\n\t\t\t\t\t\t'slds-has-error': errorText,\n\t\t\t\t\t},\n\t\t\t\t\tclassName\n\t\t\t\t)}\n\t\t\t\tstyle={styleContainer}\n\t\t\t\tref={ref}\n\t\t\t>\n\t\t\t\t<Label\n\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\thtmlFor={isStatic ? undefined : id}\n\t\t\t\t\tlabel={label}\n\t\t\t\t\trequired={required}\n\t\t\t\t\tvariant={isStatic ? 'static' : 'base'}\n\t\t\t\t/>\n\t\t\t\t{fieldLevelHelpTooltip && hasRenderedLabel ? (\n\t\t\t\t\t<FieldLevelHelpTooltip\n\t\t\t\t\t\tfieldLevelHelpTooltip={fieldLevelHelpTooltip}\n\t\t\t\t\t/>\n\t\t\t\t) : null}\n\t\t\t\t<InnerInput\n\t\t\t\t\taria-activedescendant={ariaActivedescendant}\n\t\t\t\t\taria-autocomplete={ariaAutocomplete}\n\t\t\t\t\taria-controls={ariaControls}\n\t\t\t\t\taria-labelledby={ariaLabelledby}\n\t\t\t\t\taria-describedby={describedby}\n\t\t\t\t\taria-expanded={ariaExpanded}\n\t\t\t\t\taria-haspopup={ariaHaspopup}\n\t\t\t\t\taria-owns={ariaOwns}\n\t\t\t\t\taria-required={ariaRequired}\n\t\t\t\t\tautoComplete={autoComplete}\n\t\t\t\t\tclassName={classNames({\n\t\t\t\t\t\t'slds-input_counter': variant === COUNTER,\n\t\t\t\t\t\t'slds-p-horizontal_none': variant === COUNTER && readOnly,\n\t\t\t\t\t})}\n\t\t\t\t\tcontainerProps={{\n\t\t\t\t\t\tclassName: 'slds-form-element__control',\n\t\t\t\t\t}}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tfixedTextLeft={fixedTextLeft}\n\t\t\t\t\tfixedTextRight={fixedTextRight}\n\t\t\t\t\thasSpinner={hasSpinner}\n\t\t\t\t\tid={id}\n\t\t\t\t\ticonLeft={iconLeft}\n\t\t\t\t\ticonRight={iconRight}\n\t\t\t\t\tinlineEditTrigger={inlineEditTrigger}\n\t\t\t\t\tisStatic={isStatic}\n\t\t\t\t\tminLength={minLength}\n\t\t\t\t\tminValue={minValue}\n\t\t\t\t\tmaxLength={maxLength}\n\t\t\t\t\tmaxValue={maxValue}\n\t\t\t\t\tname={name}\n\t\t\t\t\tonBlur={onBlur}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tonClick={onClick}\n\t\t\t\t\tonFocus={onFocus}\n\t\t\t\t\tonInput={onInput}\n\t\t\t\t\tonInvalid={onInvalid}\n\t\t\t\t\tonKeyDown={onKeyDown}\n\t\t\t\t\tonKeyPress={onKeyPress}\n\t\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t\t\tonSelect={onSelect}\n\t\t\t\t\tonSubmit={onSubmit}\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\tinputRef={propInputRef}\n\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\trequired={required}\n\t\t\t\t\trole={role}\n\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\ttype={variant === COUNTER ? 'number' : type}\n\t\t\t\t\tvalue={value}\n\t\t\t\t\tvariant={variant}\n\t\t\t\t\tstep={step}\n\t\t\t\t\ttabIndex={tabIndex}\n\t\t\t\t\tstyle={styleInput}\n\t\t\t\t/>\n\t\t\t\t{inlineHelpText && (\n\t\t\t\t\t<div id={inlineHelpId} className=\"slds-form-element__help\">\n\t\t\t\t\t\t{inlineHelpText}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{errorText && (\n\t\t\t\t\t<div id={errorId} className=\"slds-form-element__help\">\n\t\t\t\t\t\t{errorText}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n);\n\nInput.displayName = INPUT;\n\nexport default Input;\n"],"mappings":"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"}
@@ -76,7 +76,7 @@ var a = "counter", ee = { spinner: "Loading ..." }, o = ({ "aria-activedescendan
76
76
  children: [/* @__PURE__ */ r(t, {
77
77
  assistiveText: { label: Z.spinner },
78
78
  id: $,
79
- isInput: !0,
79
+ placement: "input",
80
80
  size: "x-small",
81
81
  variant: "brand"
82
82
  }), x]
@@ -1 +1 @@
1
- {"version":3,"file":"inner-input.js","names":[],"sources":["../../../../../components/input/private/inner-input.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 {\n\tReactNode,\n\tChangeEvent,\n\tFocusEvent,\n\tKeyboardEvent,\n\tMouseEvent,\n\tFormEvent,\n\tCSSProperties,\n\tAriaAttributes,\n} from 'react';\nimport classNames from 'classnames';\n\nimport Spinner from '../../spinner';\nimport getAriaProps from '../../../utilities/get-aria-props';\n\nconst COUNTER = 'counter';\n\n/**\n * Input type options\n */\nexport type InnerInputType =\n\t| 'text'\n\t| 'password'\n\t| 'datetime'\n\t| 'datetime-local'\n\t| 'date'\n\t| 'month'\n\t| 'time'\n\t| 'week'\n\t| 'number'\n\t| 'email'\n\t| 'url'\n\t| 'search'\n\t| 'tel'\n\t| 'color';\n\n/**\n * Input variant options\n */\nexport type InnerInputVariant = 'base' | 'counter';\n\n/**\n * Assistive text for InnerInput\n */\nexport interface InnerInputAssistiveText {\n\t/** Text for loading spinner */\n\tspinner?: string;\n}\n\n/**\n * Container props for the wrapper div\n */\nexport interface InnerInputContainerProps {\n\tclassName?: string;\n\t[key: string]: unknown;\n}\n\n/**\n * Props for the InnerInput component\n */\nexport interface InnerInputProps {\n\t/** ID of the currently active child in a composite widget */\n\t'aria-activedescendant'?: string;\n\t/** Indicates if suggestions complete the textbox input */\n\t'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';\n\t/** ID of element controlled by this input */\n\t'aria-controls'?: string;\n\t/** ID of element(s) that describe this input */\n\t'aria-describedby'?: string;\n\t/** Whether a collapsible region is expanded */\n\t'aria-expanded'?: boolean;\n\t/** Indicates the input has a popup */\n\t'aria-haspopup'?: AriaAttributes['aria-haspopup'];\n\t/** ID of element(s) that label this input */\n\t'aria-labelledby'?: string;\n\t/** ID of element(s) owned by this input */\n\t'aria-owns'?: string;\n\t/** Whether input is required */\n\t'aria-required'?: boolean;\n\t/** Assistive text for accessibility */\n\tassistiveText?: InnerInputAssistiveText;\n\t/** Browser autocomplete attribute */\n\tautoComplete?: string;\n\t/** CSS classes for the input element */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** CSS classes for the container div */\n\tcontainerClassName?: string | string[] | Record<string, boolean>;\n\t/** Props for the container div */\n\tcontainerProps?: InnerInputContainerProps;\n\t/** Disables the input */\n\tdisabled?: boolean;\n\t/** Fixed text/node on the left */\n\tfixedTextLeft?: ReactNode;\n\t/** Fixed text/node on the right */\n\tfixedTextRight?: ReactNode;\n\t/** Shows loading spinner */\n\thasSpinner?: boolean;\n\t/** Left-aligned icon */\n\ticonLeft?: ReactNode;\n\t/** Right-aligned icon */\n\ticonRight?: ReactNode;\n\t/** HTML id attribute (required) */\n\tid: string;\n\t/** Inline edit trigger element */\n\tinlineEditTrigger?: ReactNode;\n\t/** Ref callback for input element */\n\tinputRef?: (element: HTMLInputElement | null) => void;\n\t/** Displays value statically */\n\tisStatic?: boolean;\n\t/** Label text */\n\tlabel?: string;\n\t/** Maximum character length */\n\tmaxLength?: string | number;\n\t/** Maximum value for number input */\n\tmaxValue?: number;\n\t/** Minimum character length */\n\tminLength?: string | number;\n\t/** Minimum value for number input */\n\tminValue?: number;\n\t/** Form parameter name */\n\tname?: string;\n\t/** Blur event handler */\n\tonBlur?: (event: FocusEvent<HTMLInputElement>) => void;\n\t/** Change event handler */\n\tonChange?: (event: ChangeEvent<HTMLInputElement>) => void;\n\t/** Click event handler */\n\tonClick?: (event: MouseEvent<HTMLInputElement>) => void;\n\t/** Focus event handler */\n\tonFocus?: (event: FocusEvent<HTMLInputElement>) => void;\n\t/** Input event handler */\n\tonInput?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Invalid event handler */\n\tonInvalid?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Key down event handler */\n\tonKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Key press event handler */\n\tonKeyPress?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Key up event handler */\n\tonKeyUp?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Select event handler */\n\tonSelect?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Submit event handler */\n\tonSubmit?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Placeholder text */\n\tplaceholder?: string;\n\t/** Makes input read-only */\n\treadOnly?: boolean;\n\t/** Highlights as required field */\n\trequired?: boolean;\n\t/** ARIA role */\n\trole?: string;\n\t/** Step size for number input */\n\tstep?: number;\n\t/** Custom styles for input */\n\tstyle?: CSSProperties;\n\t/** Tab index */\n\ttabIndex?: string | number;\n\t/** Input type */\n\ttype?: InnerInputType;\n\t/** The input's value. Controlled: the parent updates it in `onChange`. */\n\tvalue?: string | number;\n\t/** Input variant */\n\tvariant?: InnerInputVariant;\n}\n\nconst defaultAssistiveText: InnerInputAssistiveText = {\n\tspinner: 'Loading ...',\n};\n\n// Type for aria props returned from getAriaProps\ninterface AriaPropsResult {\n\t'aria-activedescendant'?: string;\n\t'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';\n\t'aria-controls'?: string;\n\t'aria-describedby'?: string;\n\t'aria-expanded'?: boolean;\n\t'aria-haspopup'?: AriaAttributes['aria-haspopup'];\n\t'aria-labelledby'?: string;\n\t'aria-owns'?: string;\n\t'aria-required'?: boolean;\n}\n\n/**\n * Internal input component used by Input and Combobox.\n * This component's API is not public.\n */\nconst InnerInput = ({\n\t'aria-activedescendant': ariaActivedescendant,\n\t'aria-autocomplete': ariaAutocomplete,\n\t'aria-controls': ariaControls,\n\t'aria-describedby': ariaDescribedby,\n\t'aria-expanded': ariaExpanded,\n\t'aria-haspopup': ariaHaspopup,\n\t'aria-labelledby': ariaLabelledby,\n\t'aria-owns': ariaOwns,\n\t'aria-required': ariaRequired,\n\tassistiveText: propAssistiveText,\n\tautoComplete,\n\tclassName,\n\tcontainerClassName,\n\tcontainerProps = {},\n\tdisabled,\n\tfixedTextLeft,\n\tfixedTextRight,\n\thasSpinner,\n\ticonLeft,\n\ticonRight,\n\tid,\n\tinlineEditTrigger,\n\tinputRef,\n\tisStatic,\n\tmaxLength,\n\tmaxValue,\n\tminLength,\n\tminValue,\n\tname,\n\tonBlur,\n\tonChange,\n\tonClick,\n\tonFocus,\n\tonInput,\n\tonInvalid,\n\tonKeyDown,\n\tonKeyPress,\n\tonKeyUp,\n\tonSelect,\n\tonSubmit,\n\tplaceholder,\n\treadOnly,\n\trequired,\n\trole,\n\tstep,\n\tstyle,\n\ttabIndex,\n\ttype = 'text',\n\tvalue,\n\tvariant,\n}: InnerInputProps) => {\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\n\tconst ariaProps: AriaPropsResult = getAriaProps({\n\t\t'aria-activedescendant': ariaActivedescendant,\n\t\t'aria-autocomplete': ariaAutocomplete,\n\t\t'aria-controls': ariaControls,\n\t\t'aria-describedby': ariaDescribedby,\n\t\t'aria-expanded': ariaExpanded,\n\t\t'aria-haspopup': ariaHaspopup,\n\t\t'aria-labelledby': ariaLabelledby,\n\t\t'aria-owns': ariaOwns,\n\t\t'aria-required': ariaRequired,\n\t\tassistiveText,\n\t\ttype,\n\t});\n\n\tconst loadingStatusIconId = `${id}-loading-status-icon`;\n\n\t// Add spinner to aria-describedby if present\n\tif (hasSpinner && ariaProps['aria-describedby']) {\n\t\tariaProps['aria-describedby'] =\n\t\t\t`${loadingStatusIconId} ${ariaProps['aria-describedby']}`;\n\t} else if (hasSpinner) {\n\t\tariaProps['aria-describedby'] = loadingStatusIconId;\n\t}\n\n\tconst { className: containerPropsClassName, ...restContainerProps } =\n\t\tcontainerProps;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(containerPropsClassName, containerClassName, {\n\t\t\t\t'slds-input-has-icon': variant !== COUNTER && (iconLeft || iconRight),\n\t\t\t\t'slds-input-has-icon_left': iconLeft && !iconRight,\n\t\t\t\t'slds-input-has-icon_right': !iconLeft && iconRight,\n\t\t\t\t'slds-input-has-icon_left-right':\n\t\t\t\t\tvariant !== COUNTER && iconLeft && iconRight,\n\t\t\t\t'slds-input-has-fixed-addon': fixedTextLeft || fixedTextRight,\n\t\t\t\t'slds-has-divider_bottom': isStatic,\n\t\t\t})}\n\t\t\t{...restContainerProps}\n\t\t>\n\t\t\t{iconLeft}\n\t\t\t{fixedTextLeft && (\n\t\t\t\t<span className=\"slds-form-element__addon\">{fixedTextLeft}</span>\n\t\t\t)}\n\n\t\t\t{!isStatic && (\n\t\t\t\t<input\n\t\t\t\t\tautoComplete={autoComplete}\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-input',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'slds-text-align_left': variant === COUNTER && readOnly,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tclassName\n\t\t\t\t\t)}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tid={id}\n\t\t\t\t\tmin={minValue}\n\t\t\t\t\tminLength={minLength !== undefined ? Number(minLength) : undefined}\n\t\t\t\t\tmax={maxValue}\n\t\t\t\t\tmaxLength={maxLength !== undefined ? Number(maxLength) : undefined}\n\t\t\t\t\tname={name}\n\t\t\t\t\tonBlur={onBlur}\n\t\t\t\t\tonChange={onChange}\n\t\t\t\t\tonClick={onClick}\n\t\t\t\t\tonFocus={onFocus}\n\t\t\t\t\tonInput={onInput}\n\t\t\t\t\tonInvalid={onInvalid}\n\t\t\t\t\tonKeyDown={onKeyDown}\n\t\t\t\t\tonKeyPress={onKeyPress}\n\t\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t\t\tonSelect={onSelect}\n\t\t\t\t\tonSubmit={onSubmit}\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\tref={inputRef}\n\t\t\t\t\trequired={required}\n\t\t\t\t\trole={role}\n\t\t\t\t\tstep={step}\n\t\t\t\t\tstyle={style}\n\t\t\t\t\ttabIndex={tabIndex !== undefined ? Number(tabIndex) : undefined}\n\t\t\t\t\ttype={type}\n\t\t\t\t\t{...ariaProps}\n\t\t\t\t\tvalue={value}\n\t\t\t\t/>\n\t\t\t)}\n\n\t\t\t{hasSpinner ? (\n\t\t\t\t<div className=\"slds-input__icon-group slds-input__icon-group_right\">\n\t\t\t\t\t<Spinner\n\t\t\t\t\t\tassistiveText={{ label: assistiveText.spinner }}\n\t\t\t\t\t\tid={loadingStatusIconId}\n\t\t\t\t\t\tisInput\n\t\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t\t\tvariant=\"brand\"\n\t\t\t\t\t/>\n\t\t\t\t\t{iconRight}\n\t\t\t\t</div>\n\t\t\t) : (\n\t\t\t\ticonRight\n\t\t\t)}\n\n\t\t\t{fixedTextRight && (\n\t\t\t\t<span className=\"slds-form-element__addon\">{fixedTextRight}</span>\n\t\t\t)}\n\n\t\t\t{isStatic && (\n\t\t\t\t<span\n\t\t\t\t\tclassName={classNames('slds-form-element__static', 'slds-grid', {\n\t\t\t\t\t\t'slds-grid_align-spread': variant !== COUNTER,\n\t\t\t\t\t})}\n\t\t\t\t\tonClick={\n\t\t\t\t\t\tonClick as unknown as (event: MouseEvent<HTMLSpanElement>) => void\n\t\t\t\t\t}\n\t\t\t\t>\n\t\t\t\t\t{value}\n\t\t\t\t\t{inlineEditTrigger}\n\t\t\t\t</span>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nInnerInput.displayName = 'SLDSInnerInput';\n\nexport default InnerInput;\n"],"mappings":";;;;;AAkBA,IAAM,IAAU,WAsJV,KAAgD,EACrD,SAAS,cACV,GAmBM,KAAc,EACnB,yBAAyB,GACzB,qBAAqB,IACrB,iBAAiB,IACjB,oBAAoB,GACpB,iBAAiB,GACjB,iBAAiB,GACjB,mBAAmB,GACnB,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,iBACA,cACA,uBACA,qBAAiB,CAAC,GAClB,cACA,kBACA,mBACA,eACA,aACA,cACA,OACA,sBACA,aACA,aACA,cACA,aACA,cACA,aACA,SACA,WACA,aACA,YACA,YACA,aACA,cACA,cACA,eACA,YACA,aACA,aACA,gBACA,aACA,aACA,SACA,SACA,UACA,aACA,UAAO,QACP,UACA,iBACsB;CACtB,IAAM,IAAgB;EAAE,GAAG;EAAsB,GAAG;CAAkB,GAEhE,IAA6B,EAAa;EAC/C,yBAAyB;EACzB,qBAAqB;EACrB,iBAAiB;EACjB,oBAAoB;EACpB,iBAAiB;EACjB,iBAAiB;EACjB,mBAAmB;EACnB,aAAa;EACb,iBAAiB;EACjB;EACA;CACD,CAAC,GAEK,IAAsB,GAAG,EAAG;CAGlC,AAAI,KAAc,EAAU,sBAC3B,EAAU,sBACT,GAAG,EAAoB,GAAG,EAAU,wBAC3B,MACV,EAAU,sBAAsB;CAGjC,IAAM,EAAE,WAAW,IAAyB,GAAG,OAC9C;CAED,OACC,kBAAC,OAAD;EACC,WAAW,EAAW,IAAyB,GAAoB;GAClE,uBAAuB,MAAY,MAAY,KAAY;GAC3D,4BAA4B,KAAY,CAAC;GACzC,6BAA6B,CAAC,KAAY;GAC1C,kCACC,MAAY,KAAW,KAAY;GACpC,8BAA8B,KAAiB;GAC/C,2BAA2B;EAC5B,CAAC;EACD,GAAI;EAVL,UAAA;GAYE;GACA,KACA,kBAAC,QAAD;IAAM,WAAU;IAA4B,UAAA;GAAoB,CAAA;GAGhE,CAAC,KACD,kBAAC,SAAD;IACe;IACd,WAAW,EACV,cACA,EACC,wBAAwB,MAAY,KAAW,EAChD,GACA,CACD;IACU;IACN;IACJ,KAAK;IACL,WAAW,MAAc,KAAA,IAAgC,KAAA,IAApB,OAAO,CAAS;IACrD,KAAK;IACL,WAAW,MAAc,KAAA,IAAgC,KAAA,IAApB,OAAO,CAAS;IAC/C;IACE;IACE;IACD;IACA;IACA;IACE;IACA;IACC;IACH;IACC;IACA;IACG;IACH;IACV,KAAK;IACK;IACJ;IACA;IACC;IACP,UAAU,MAAa,KAAA,IAA+B,KAAA,IAAnB,OAAO,CAAQ;IAC5C;IACN,GAAI;IACG;GACP,CAAA;GAGD,IACA,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACC,kBAAC,GAAD;KACC,eAAe,EAAE,OAAO,EAAc,QAAQ;KAC9C,IAAI;KACJ,SAAA;KACA,MAAK;KACL,SAAQ;IACR,CAAA,GACA,CACG;GAEL,CAAA,IAAA;GAGA,KACA,kBAAC,QAAD;IAAM,WAAU;IAA4B,UAAA;GAAqB,CAAA;GAGjE,KACA,kBAAC,QAAD;IACC,WAAW,EAAW,6BAA6B,aAAa,EAC/D,0BAA0B,MAAY,EACvC,CAAC;IAEA;IALF,UAAA,CAQE,GACA,CACI;;EAEH;;AAEP;AAEA,EAAW,cAAc"}
1
+ {"version":3,"file":"inner-input.js","names":[],"sources":["../../../../../components/input/private/inner-input.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 {\n\tReactNode,\n\tChangeEvent,\n\tFocusEvent,\n\tKeyboardEvent,\n\tMouseEvent,\n\tFormEvent,\n\tCSSProperties,\n\tAriaAttributes,\n} from 'react';\nimport classNames from 'classnames';\n\nimport Spinner from '../../spinner';\nimport getAriaProps from '../../../utilities/get-aria-props';\n\nconst COUNTER = 'counter';\n\n/**\n * Input type options\n */\nexport type InnerInputType =\n\t| 'text'\n\t| 'password'\n\t| 'datetime'\n\t| 'datetime-local'\n\t| 'date'\n\t| 'month'\n\t| 'time'\n\t| 'week'\n\t| 'number'\n\t| 'email'\n\t| 'url'\n\t| 'search'\n\t| 'tel'\n\t| 'color';\n\n/**\n * Input variant options\n */\nexport type InnerInputVariant = 'base' | 'counter';\n\n/**\n * Assistive text for InnerInput\n */\nexport interface InnerInputAssistiveText {\n\t/** Text for loading spinner */\n\tspinner?: string;\n}\n\n/**\n * Container props for the wrapper div\n */\nexport interface InnerInputContainerProps {\n\tclassName?: string;\n\t[key: string]: unknown;\n}\n\n/**\n * Props for the InnerInput component\n */\nexport interface InnerInputProps {\n\t/** ID of the currently active child in a composite widget */\n\t'aria-activedescendant'?: string;\n\t/** Indicates if suggestions complete the textbox input */\n\t'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';\n\t/** ID of element controlled by this input */\n\t'aria-controls'?: string;\n\t/** ID of element(s) that describe this input */\n\t'aria-describedby'?: string;\n\t/** Whether a collapsible region is expanded */\n\t'aria-expanded'?: boolean;\n\t/** Indicates the input has a popup */\n\t'aria-haspopup'?: AriaAttributes['aria-haspopup'];\n\t/** ID of element(s) that label this input */\n\t'aria-labelledby'?: string;\n\t/** ID of element(s) owned by this input */\n\t'aria-owns'?: string;\n\t/** Whether input is required */\n\t'aria-required'?: boolean;\n\t/** Assistive text for accessibility */\n\tassistiveText?: InnerInputAssistiveText;\n\t/** Browser autocomplete attribute */\n\tautoComplete?: string;\n\t/** CSS classes for the input element */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** CSS classes for the container div */\n\tcontainerClassName?: string | string[] | Record<string, boolean>;\n\t/** Props for the container div */\n\tcontainerProps?: InnerInputContainerProps;\n\t/** Disables the input */\n\tdisabled?: boolean;\n\t/** Fixed text/node on the left */\n\tfixedTextLeft?: ReactNode;\n\t/** Fixed text/node on the right */\n\tfixedTextRight?: ReactNode;\n\t/** Shows loading spinner */\n\thasSpinner?: boolean;\n\t/** Left-aligned icon */\n\ticonLeft?: ReactNode;\n\t/** Right-aligned icon */\n\ticonRight?: ReactNode;\n\t/** HTML id attribute (required) */\n\tid: string;\n\t/** Inline edit trigger element */\n\tinlineEditTrigger?: ReactNode;\n\t/** Ref callback for input element */\n\tinputRef?: (element: HTMLInputElement | null) => void;\n\t/** Displays value statically */\n\tisStatic?: boolean;\n\t/** Label text */\n\tlabel?: string;\n\t/** Maximum character length */\n\tmaxLength?: string | number;\n\t/** Maximum value for number input */\n\tmaxValue?: number;\n\t/** Minimum character length */\n\tminLength?: string | number;\n\t/** Minimum value for number input */\n\tminValue?: number;\n\t/** Form parameter name */\n\tname?: string;\n\t/** Blur event handler */\n\tonBlur?: (event: FocusEvent<HTMLInputElement>) => void;\n\t/** Change event handler */\n\tonChange?: (event: ChangeEvent<HTMLInputElement>) => void;\n\t/** Click event handler */\n\tonClick?: (event: MouseEvent<HTMLInputElement>) => void;\n\t/** Focus event handler */\n\tonFocus?: (event: FocusEvent<HTMLInputElement>) => void;\n\t/** Input event handler */\n\tonInput?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Invalid event handler */\n\tonInvalid?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Key down event handler */\n\tonKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Key press event handler */\n\tonKeyPress?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Key up event handler */\n\tonKeyUp?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Select event handler */\n\tonSelect?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Submit event handler */\n\tonSubmit?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Placeholder text */\n\tplaceholder?: string;\n\t/** Makes input read-only */\n\treadOnly?: boolean;\n\t/** Highlights as required field */\n\trequired?: boolean;\n\t/** ARIA role */\n\trole?: string;\n\t/** Step size for number input */\n\tstep?: number;\n\t/** Custom styles for input */\n\tstyle?: CSSProperties;\n\t/** Tab index */\n\ttabIndex?: string | number;\n\t/** Input type */\n\ttype?: InnerInputType;\n\t/** The input's value. Controlled: the parent updates it in `onChange`. */\n\tvalue?: string | number;\n\t/** Input variant */\n\tvariant?: InnerInputVariant;\n}\n\nconst defaultAssistiveText: InnerInputAssistiveText = {\n\tspinner: 'Loading ...',\n};\n\n// Type for aria props returned from getAriaProps\ninterface AriaPropsResult {\n\t'aria-activedescendant'?: string;\n\t'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';\n\t'aria-controls'?: string;\n\t'aria-describedby'?: string;\n\t'aria-expanded'?: boolean;\n\t'aria-haspopup'?: AriaAttributes['aria-haspopup'];\n\t'aria-labelledby'?: string;\n\t'aria-owns'?: string;\n\t'aria-required'?: boolean;\n}\n\n/**\n * Internal input component used by Input and Combobox.\n * This component's API is not public.\n */\nconst InnerInput = ({\n\t'aria-activedescendant': ariaActivedescendant,\n\t'aria-autocomplete': ariaAutocomplete,\n\t'aria-controls': ariaControls,\n\t'aria-describedby': ariaDescribedby,\n\t'aria-expanded': ariaExpanded,\n\t'aria-haspopup': ariaHaspopup,\n\t'aria-labelledby': ariaLabelledby,\n\t'aria-owns': ariaOwns,\n\t'aria-required': ariaRequired,\n\tassistiveText: propAssistiveText,\n\tautoComplete,\n\tclassName,\n\tcontainerClassName,\n\tcontainerProps = {},\n\tdisabled,\n\tfixedTextLeft,\n\tfixedTextRight,\n\thasSpinner,\n\ticonLeft,\n\ticonRight,\n\tid,\n\tinlineEditTrigger,\n\tinputRef,\n\tisStatic,\n\tmaxLength,\n\tmaxValue,\n\tminLength,\n\tminValue,\n\tname,\n\tonBlur,\n\tonChange,\n\tonClick,\n\tonFocus,\n\tonInput,\n\tonInvalid,\n\tonKeyDown,\n\tonKeyPress,\n\tonKeyUp,\n\tonSelect,\n\tonSubmit,\n\tplaceholder,\n\treadOnly,\n\trequired,\n\trole,\n\tstep,\n\tstyle,\n\ttabIndex,\n\ttype = 'text',\n\tvalue,\n\tvariant,\n}: InnerInputProps) => {\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\n\tconst ariaProps: AriaPropsResult = getAriaProps({\n\t\t'aria-activedescendant': ariaActivedescendant,\n\t\t'aria-autocomplete': ariaAutocomplete,\n\t\t'aria-controls': ariaControls,\n\t\t'aria-describedby': ariaDescribedby,\n\t\t'aria-expanded': ariaExpanded,\n\t\t'aria-haspopup': ariaHaspopup,\n\t\t'aria-labelledby': ariaLabelledby,\n\t\t'aria-owns': ariaOwns,\n\t\t'aria-required': ariaRequired,\n\t\tassistiveText,\n\t\ttype,\n\t});\n\n\tconst loadingStatusIconId = `${id}-loading-status-icon`;\n\n\t// Add spinner to aria-describedby if present\n\tif (hasSpinner && ariaProps['aria-describedby']) {\n\t\tariaProps['aria-describedby'] =\n\t\t\t`${loadingStatusIconId} ${ariaProps['aria-describedby']}`;\n\t} else if (hasSpinner) {\n\t\tariaProps['aria-describedby'] = loadingStatusIconId;\n\t}\n\n\tconst { className: containerPropsClassName, ...restContainerProps } =\n\t\tcontainerProps;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(containerPropsClassName, containerClassName, {\n\t\t\t\t'slds-input-has-icon': variant !== COUNTER && (iconLeft || iconRight),\n\t\t\t\t'slds-input-has-icon_left': iconLeft && !iconRight,\n\t\t\t\t'slds-input-has-icon_right': !iconLeft && iconRight,\n\t\t\t\t'slds-input-has-icon_left-right':\n\t\t\t\t\tvariant !== COUNTER && iconLeft && iconRight,\n\t\t\t\t'slds-input-has-fixed-addon': fixedTextLeft || fixedTextRight,\n\t\t\t\t'slds-has-divider_bottom': isStatic,\n\t\t\t})}\n\t\t\t{...restContainerProps}\n\t\t>\n\t\t\t{iconLeft}\n\t\t\t{fixedTextLeft && (\n\t\t\t\t<span className=\"slds-form-element__addon\">{fixedTextLeft}</span>\n\t\t\t)}\n\n\t\t\t{!isStatic && (\n\t\t\t\t<input\n\t\t\t\t\tautoComplete={autoComplete}\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-input',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'slds-text-align_left': variant === COUNTER && readOnly,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tclassName\n\t\t\t\t\t)}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tid={id}\n\t\t\t\t\tmin={minValue}\n\t\t\t\t\tminLength={minLength !== undefined ? Number(minLength) : undefined}\n\t\t\t\t\tmax={maxValue}\n\t\t\t\t\tmaxLength={maxLength !== undefined ? Number(maxLength) : undefined}\n\t\t\t\t\tname={name}\n\t\t\t\t\tonBlur={onBlur}\n\t\t\t\t\tonChange={onChange}\n\t\t\t\t\tonClick={onClick}\n\t\t\t\t\tonFocus={onFocus}\n\t\t\t\t\tonInput={onInput}\n\t\t\t\t\tonInvalid={onInvalid}\n\t\t\t\t\tonKeyDown={onKeyDown}\n\t\t\t\t\tonKeyPress={onKeyPress}\n\t\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t\t\tonSelect={onSelect}\n\t\t\t\t\tonSubmit={onSubmit}\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\tref={inputRef}\n\t\t\t\t\trequired={required}\n\t\t\t\t\trole={role}\n\t\t\t\t\tstep={step}\n\t\t\t\t\tstyle={style}\n\t\t\t\t\ttabIndex={tabIndex !== undefined ? Number(tabIndex) : undefined}\n\t\t\t\t\ttype={type}\n\t\t\t\t\t{...ariaProps}\n\t\t\t\t\tvalue={value}\n\t\t\t\t/>\n\t\t\t)}\n\n\t\t\t{hasSpinner ? (\n\t\t\t\t<div className=\"slds-input__icon-group slds-input__icon-group_right\">\n\t\t\t\t\t<Spinner\n\t\t\t\t\t\tassistiveText={{ label: assistiveText.spinner }}\n\t\t\t\t\t\tid={loadingStatusIconId}\n\t\t\t\t\t\tplacement=\"input\"\n\t\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t\t\tvariant=\"brand\"\n\t\t\t\t\t/>\n\t\t\t\t\t{iconRight}\n\t\t\t\t</div>\n\t\t\t) : (\n\t\t\t\ticonRight\n\t\t\t)}\n\n\t\t\t{fixedTextRight && (\n\t\t\t\t<span className=\"slds-form-element__addon\">{fixedTextRight}</span>\n\t\t\t)}\n\n\t\t\t{isStatic && (\n\t\t\t\t<span\n\t\t\t\t\tclassName={classNames('slds-form-element__static', 'slds-grid', {\n\t\t\t\t\t\t'slds-grid_align-spread': variant !== COUNTER,\n\t\t\t\t\t})}\n\t\t\t\t\tonClick={\n\t\t\t\t\t\tonClick as unknown as (event: MouseEvent<HTMLSpanElement>) => void\n\t\t\t\t\t}\n\t\t\t\t>\n\t\t\t\t\t{value}\n\t\t\t\t\t{inlineEditTrigger}\n\t\t\t\t</span>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nInnerInput.displayName = 'SLDSInnerInput';\n\nexport default InnerInput;\n"],"mappings":";;;;;AAkBA,IAAM,IAAU,WAsJV,KAAgD,EACrD,SAAS,cACV,GAmBM,KAAc,EACnB,yBAAyB,GACzB,qBAAqB,IACrB,iBAAiB,IACjB,oBAAoB,GACpB,iBAAiB,GACjB,iBAAiB,GACjB,mBAAmB,GACnB,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,iBACA,cACA,uBACA,qBAAiB,CAAC,GAClB,cACA,kBACA,mBACA,eACA,aACA,cACA,OACA,sBACA,aACA,aACA,cACA,aACA,cACA,aACA,SACA,WACA,aACA,YACA,YACA,aACA,cACA,cACA,eACA,YACA,aACA,aACA,gBACA,aACA,aACA,SACA,SACA,UACA,aACA,UAAO,QACP,UACA,iBACsB;CACtB,IAAM,IAAgB;EAAE,GAAG;EAAsB,GAAG;CAAkB,GAEhE,IAA6B,EAAa;EAC/C,yBAAyB;EACzB,qBAAqB;EACrB,iBAAiB;EACjB,oBAAoB;EACpB,iBAAiB;EACjB,iBAAiB;EACjB,mBAAmB;EACnB,aAAa;EACb,iBAAiB;EACjB;EACA;CACD,CAAC,GAEK,IAAsB,GAAG,EAAG;CAGlC,AAAI,KAAc,EAAU,sBAC3B,EAAU,sBACT,GAAG,EAAoB,GAAG,EAAU,wBAC3B,MACV,EAAU,sBAAsB;CAGjC,IAAM,EAAE,WAAW,IAAyB,GAAG,OAC9C;CAED,OACC,kBAAC,OAAD;EACC,WAAW,EAAW,IAAyB,GAAoB;GAClE,uBAAuB,MAAY,MAAY,KAAY;GAC3D,4BAA4B,KAAY,CAAC;GACzC,6BAA6B,CAAC,KAAY;GAC1C,kCACC,MAAY,KAAW,KAAY;GACpC,8BAA8B,KAAiB;GAC/C,2BAA2B;EAC5B,CAAC;EACD,GAAI;EAVL,UAAA;GAYE;GACA,KACA,kBAAC,QAAD;IAAM,WAAU;IAA4B,UAAA;GAAoB,CAAA;GAGhE,CAAC,KACD,kBAAC,SAAD;IACe;IACd,WAAW,EACV,cACA,EACC,wBAAwB,MAAY,KAAW,EAChD,GACA,CACD;IACU;IACN;IACJ,KAAK;IACL,WAAW,MAAc,KAAA,IAAgC,KAAA,IAApB,OAAO,CAAS;IACrD,KAAK;IACL,WAAW,MAAc,KAAA,IAAgC,KAAA,IAApB,OAAO,CAAS;IAC/C;IACE;IACE;IACD;IACA;IACA;IACE;IACA;IACC;IACH;IACC;IACA;IACG;IACH;IACV,KAAK;IACK;IACJ;IACA;IACC;IACP,UAAU,MAAa,KAAA,IAA+B,KAAA,IAAnB,OAAO,CAAQ;IAC5C;IACN,GAAI;IACG;GACP,CAAA;GAGD,IACA,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACC,kBAAC,GAAD;KACC,eAAe,EAAE,OAAO,EAAc,QAAQ;KAC9C,IAAI;KACJ,WAAU;KACV,MAAK;KACL,SAAQ;IACR,CAAA,GACA,CACG;GAEL,CAAA,IAAA;GAGA,KACA,kBAAC,QAAD;IAAM,WAAU;IAA4B,UAAA;GAAqB,CAAA;GAGjE,KACA,kBAAC,QAAD;IACC,WAAW,EAAW,6BAA6B,aAAa,EAC/D,0BAA0B,MAAY,EACvC,CAAC;IAEA;IALF,UAAA,CAQE,GACA,CACI;;EAEH;;AAEP;AAEA,EAAW,cAAc"}
@@ -1,6 +1,6 @@
1
1
  import { SEARCH as e } from "../../utilities/constants.js";
2
- import t from "../../utilities/event.js";
3
- import n from "../../utilities/key-code.js";
2
+ import t from "../../utilities/key-code.js";
3
+ import n from "../../utilities/event.js";
4
4
  import r from "./check-props.js";
5
5
  import i from "./component.js";
6
6
  import a from "./index.js";
@@ -9,7 +9,7 @@ import "react";
9
9
  import { jsx as s } from "react/jsx-runtime";
10
10
  //#region components/input/search.tsx
11
11
  var c = (e, r) => {
12
- e.keyCode === n.ENTER && r && (t.trapImmediate(e), r(e));
12
+ e.keyCode === t.ENTER && r && (n.trapImmediate(e), r(e));
13
13
  }, l = ({ assistiveText: t, clearable: n = !1, onClear: l, onSearch: u, placeholder: d, ...f }) => {
14
14
  r(e, {
15
15
  assistiveText: t,
@@ -1 +1 @@
1
- {"version":3,"file":"search.js","names":[],"sources":["../../../../components/input/search.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 KeyboardEvent } from 'react';\n\nimport Input, { type InputProps, type InputAssistiveText } from './index';\nimport InputIcon from '../icon/input-icon/index';\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\nimport KEYS from '../../utilities/key-code';\nimport EventUtil from '../../utilities/event';\nimport { SEARCH } from '../../utilities/constants';\n\n/**\n * Assistive text for Search component\n */\nexport interface SearchAssistiveText extends InputAssistiveText {\n\t/** Label for the search input */\n\tlabel?: string;\n}\n\n/**\n * Props for the Search component\n */\nexport interface SearchProps extends Omit<\n\tInputProps,\n\t'assistiveText' | 'iconLeft' | 'iconRight'\n> {\n\t/** Assistive text for accessibility */\n\tassistiveText?: SearchAssistiveText;\n\t/** Adds a clear button to the right of the input */\n\tclearable?: boolean;\n\t/** Handler for clear button click */\n\tonClear?: (event: React.MouseEvent) => void;\n\t/** Handler for search (enter key or search icon click) */\n\tonSearch?: (\n\t\tevent: KeyboardEvent<HTMLInputElement> | React.MouseEvent\n\t) => void;\n}\n\nconst handleKeyDown = (\n\tevent: KeyboardEvent<HTMLInputElement>,\n\tonSearch?: (event: KeyboardEvent<HTMLInputElement> | React.MouseEvent) => void\n) => {\n\tif (event.keyCode === KEYS.ENTER && onSearch) {\n\t\tEventUtil.trapImmediate(event);\n\t\tonSearch(event);\n\t}\n};\n\n/**\n * A `Search` is an `Input` which renders the search icon by default.\n * It can be cleared, too. All `Input` props not specified as props\n * already may be used with this component and will override defaults.\n *\n * @see https://lightningdesignsystem.com/components/input/\n */\nconst Search = ({\n\tassistiveText,\n\tclearable = false,\n\tonClear,\n\tonSearch,\n\tplaceholder,\n\t...props\n}: SearchProps) => {\n\tcheckProps(\n\t\tSEARCH,\n\t\t{ assistiveText, clearable, onClear, onSearch, placeholder, ...props },\n\t\tcomponentDoc\n\t);\n\n\tconst mergedAssistiveText: InputAssistiveText = {\n\t\tlabel: assistiveText?.label,\n\t};\n\n\treturn (\n\t\t<Input\n\t\t\tassistiveText={mergedAssistiveText}\n\t\t\ticonLeft={\n\t\t\t\t<InputIcon\n\t\t\t\t\tassistiveText={{ icon: 'Search' }}\n\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\tname=\"search\"\n\t\t\t\t\tonClick={onSearch}\n\t\t\t\t/>\n\t\t\t}\n\t\t\ticonRight={\n\t\t\t\tclearable ? (\n\t\t\t\t\t<InputIcon\n\t\t\t\t\t\tassistiveText={{ icon: 'Clear' }}\n\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\tname=\"clear\"\n\t\t\t\t\t\tonClick={onClear}\n\t\t\t\t\t/>\n\t\t\t\t) : null\n\t\t\t}\n\t\t\tonKeyDown={\n\t\t\t\tonSearch\n\t\t\t\t\t? (event) =>\n\t\t\t\t\t\t\thandleKeyDown(event as KeyboardEvent<HTMLInputElement>, onSearch)\n\t\t\t\t\t: undefined\n\t\t\t}\n\t\t\tplaceholder={placeholder}\n\t\t\t{...props}\n\t\t/>\n\t);\n};\n\nSearch.displayName = SEARCH;\n\nexport default Search;\n"],"mappings":";;;;;;;;;;AAwCA,IAAM,KACL,GACA,MACI;CACJ,AAAI,EAAM,YAAY,EAAK,SAAS,MACnC,EAAU,cAAc,CAAK,GAC7B,EAAS,CAAK;AAEhB,GASM,KAAU,EACf,kBACA,eAAY,IACZ,YACA,aACA,gBACA,GAAG,QACe;CAClB,EACC,GACA;EAAE;EAAe;EAAW;EAAS;EAAU;EAAa,GAAG;CAAM,GACrE,CACD;CAEA,IAAM,IAA0C,EAC/C,OAAO,GAAe,MACvB;CAEA,OACC,kBAAC,GAAD;EACC,eAAe;EACf,UACC,kBAAC,GAAD;GACC,eAAe,EAAE,MAAM,SAAS;GAChC,UAAS;GACT,MAAK;GACL,SAAS;EACT,CAAA;EAEF,WACC,IACC,kBAAC,GAAD;GACC,eAAe,EAAE,MAAM,QAAQ;GAC/B,UAAS;GACT,MAAK;GACL,SAAS;EACT,CAAA,IACE;EAEL,WACC,KACI,MACD,EAAc,GAA0C,CAAQ,IAChE,KAAA;EAES;EACb,GAAI;CACJ,CAAA;AAEH;AAEA,EAAO,cAAc"}
1
+ {"version":3,"file":"search.js","names":[],"sources":["../../../../components/input/search.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 KeyboardEvent } from 'react';\n\nimport Input, {\n\ttype InputBaseProps,\n\ttype InputProps,\n\ttype InputAssistiveText,\n} from './index';\nimport InputIcon from '../icon/input-icon/index';\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\nimport KEYS from '../../utilities/key-code';\nimport EventUtil from '../../utilities/event';\nimport { SEARCH } from '../../utilities/constants';\n\n/**\n * Assistive text for Search component\n */\nexport interface SearchAssistiveText extends InputAssistiveText {\n\t/** Label for the search input */\n\tlabel?: string;\n}\n\n/**\n * Props for the Search component\n */\nexport interface SearchProps extends Omit<\n\tInputBaseProps,\n\t'assistiveText' | 'iconLeft' | 'iconRight'\n> {\n\t/** Assistive text for accessibility */\n\tassistiveText?: SearchAssistiveText;\n\t/** Adds a clear button to the right of the input */\n\tclearable?: boolean;\n\t/** Handler for clear button click */\n\tonClear?: (event: React.MouseEvent) => void;\n\t/** Handler for search (enter key or search icon click) */\n\tonSearch?: (\n\t\tevent: KeyboardEvent<HTMLInputElement> | React.MouseEvent\n\t) => void;\n}\n\nconst handleKeyDown = (\n\tevent: KeyboardEvent<HTMLInputElement>,\n\tonSearch?: (event: KeyboardEvent<HTMLInputElement> | React.MouseEvent) => void\n) => {\n\tif (event.keyCode === KEYS.ENTER && onSearch) {\n\t\tEventUtil.trapImmediate(event);\n\t\tonSearch(event);\n\t}\n};\n\n/**\n * A `Search` is an `Input` which renders the search icon by default.\n * It can be cleared, too. All `Input` props not specified as props\n * already may be used with this component and will override defaults.\n *\n * @see https://lightningdesignsystem.com/components/input/\n */\nconst Search = ({\n\tassistiveText,\n\tclearable = false,\n\tonClear,\n\tonSearch,\n\tplaceholder,\n\t...props\n}: SearchProps) => {\n\tcheckProps(\n\t\tSEARCH,\n\t\t{ assistiveText, clearable, onClear, onSearch, placeholder, ...props },\n\t\tcomponentDoc\n\t);\n\n\tconst mergedAssistiveText: InputAssistiveText = {\n\t\tlabel: assistiveText?.label,\n\t};\n\n\treturn (\n\t\t<Input\n\t\t\tassistiveText={mergedAssistiveText}\n\t\t\ticonLeft={\n\t\t\t\t<InputIcon\n\t\t\t\t\tassistiveText={{ icon: 'Search' }}\n\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\tname=\"search\"\n\t\t\t\t\tonClick={onSearch}\n\t\t\t\t/>\n\t\t\t}\n\t\t\ticonRight={\n\t\t\t\tclearable ? (\n\t\t\t\t\t<InputIcon\n\t\t\t\t\t\tassistiveText={{ icon: 'Clear' }}\n\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\tname=\"clear\"\n\t\t\t\t\t\tonClick={onClear}\n\t\t\t\t\t/>\n\t\t\t\t) : null\n\t\t\t}\n\t\t\tonKeyDown={\n\t\t\t\tonSearch\n\t\t\t\t\t? (event) =>\n\t\t\t\t\t\t\thandleKeyDown(event as KeyboardEvent<HTMLInputElement>, onSearch)\n\t\t\t\t\t: undefined\n\t\t\t}\n\t\t\tplaceholder={placeholder}\n\t\t\t{...props}\n\t\t/>\n\t);\n};\n\nSearch.displayName = SEARCH;\n\nexport default Search;\n"],"mappings":";;;;;;;;;;AA4CA,IAAM,KACL,GACA,MACI;CACJ,AAAI,EAAM,YAAY,EAAK,SAAS,MACnC,EAAU,cAAc,CAAK,GAC7B,EAAS,CAAK;AAEhB,GASM,KAAU,EACf,kBACA,eAAY,IACZ,YACA,aACA,gBACA,GAAG,QACe;CAClB,EACC,GACA;EAAE;EAAe;EAAW;EAAS;EAAU;EAAa,GAAG;CAAM,GACrE,CACD;CAEA,IAAM,IAA0C,EAC/C,OAAO,GAAe,MACvB;CAEA,OACC,kBAAC,GAAD;EACC,eAAe;EACf,UACC,kBAAC,GAAD;GACC,eAAe,EAAE,MAAM,SAAS;GAChC,UAAS;GACT,MAAK;GACL,SAAS;EACT,CAAA;EAEF,WACC,IACC,kBAAC,GAAD;GACC,eAAe,EAAE,MAAM,QAAQ;GAC/B,UAAS;GACT,MAAK;GACL,SAAS;EACT,CAAA,IACE;EAEL,WACC,KACI,MACD,EAAc,GAA0C,CAAQ,IAChE,KAAA;EAES;EACb,GAAI;CACJ,CAAA;AAEH;AAEA,EAAO,cAAc"}