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

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 (344) hide show
  1. package/dist/cjs/components/avatar/index.cjs +1 -1
  2. package/dist/cjs/components/avatar/index.cjs.map +1 -1
  3. package/dist/cjs/components/breadcrumb/index.cjs +1 -1
  4. package/dist/cjs/components/breadcrumb/index.cjs.map +1 -1
  5. package/dist/cjs/components/button/index.cjs +1 -1
  6. package/dist/cjs/components/button/index.cjs.map +1 -1
  7. package/dist/cjs/components/button-stateful/index.cjs +1 -1
  8. package/dist/cjs/components/button-stateful/index.cjs.map +1 -1
  9. package/dist/cjs/components/carousel/index.cjs +1 -1
  10. package/dist/cjs/components/carousel/index.cjs.map +1 -1
  11. package/dist/cjs/components/carousel/private/carousel-item.cjs.map +1 -1
  12. package/dist/cjs/components/checkbox/index.cjs +1 -1
  13. package/dist/cjs/components/checkbox/index.cjs.map +1 -1
  14. package/dist/cjs/components/color-picker/color-picker.cjs.map +1 -1
  15. package/dist/cjs/components/combobox/add-subheadings.cjs +1 -1
  16. package/dist/cjs/components/combobox/add-subheadings.cjs.map +1 -1
  17. package/dist/cjs/components/combobox/check-props.cjs +1 -1
  18. package/dist/cjs/components/combobox/check-props.cjs.map +1 -1
  19. package/dist/cjs/components/combobox/combobox.cjs +1 -1
  20. package/dist/cjs/components/combobox/combobox.cjs.map +1 -1
  21. package/dist/cjs/components/combobox/filter.cjs +1 -1
  22. package/dist/cjs/components/combobox/filter.cjs.map +1 -1
  23. package/dist/cjs/components/combobox/index.cjs.map +1 -1
  24. package/dist/cjs/components/combobox/private/menu.cjs +1 -1
  25. package/dist/cjs/components/combobox/private/menu.cjs.map +1 -1
  26. package/dist/cjs/components/date-picker/check-props.cjs +1 -1
  27. package/dist/cjs/components/date-picker/date-picker.cjs +1 -1
  28. package/dist/cjs/components/date-picker/date-picker.cjs.map +1 -1
  29. package/dist/cjs/components/date-picker/index.cjs.map +1 -1
  30. package/dist/cjs/components/index.cjs +1 -1
  31. package/dist/cjs/components/input/check-props.cjs +1 -1
  32. package/dist/cjs/components/input/check-props.cjs.map +1 -1
  33. package/dist/cjs/components/input/search.cjs +1 -1
  34. package/dist/cjs/components/input/search.cjs.map +1 -1
  35. package/dist/cjs/components/menu-dropdown/button-trigger.cjs.map +1 -1
  36. package/dist/cjs/components/menu-dropdown/check-props.cjs +1 -1
  37. package/dist/cjs/components/menu-dropdown/index.cjs.map +1 -1
  38. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs +1 -1
  39. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs.map +1 -1
  40. package/dist/cjs/components/modal/index.cjs +1 -1
  41. package/dist/cjs/components/modal/index.cjs.map +1 -1
  42. package/dist/cjs/components/pill-container/check-props.cjs +2 -0
  43. package/dist/cjs/components/pill-container/check-props.cjs.map +1 -0
  44. package/dist/cjs/components/pill-container/component.cjs +2 -0
  45. package/dist/cjs/components/pill-container/component.cjs.map +1 -0
  46. package/dist/cjs/components/pill-container/index.cjs +1 -1
  47. package/dist/cjs/components/pill-container/index.cjs.map +1 -1
  48. package/dist/cjs/components/popover/index.cjs.map +1 -1
  49. package/dist/cjs/components/popover/popover.cjs +1 -1
  50. package/dist/cjs/components/popover/popover.cjs.map +1 -1
  51. package/dist/cjs/components/setup-assistant/index.cjs.map +1 -1
  52. package/dist/cjs/components/setup-assistant/step.cjs +1 -1
  53. package/dist/cjs/components/setup-assistant/step.cjs.map +1 -1
  54. package/dist/cjs/components/simple-data-table/check-props.cjs +1 -1
  55. package/dist/cjs/components/simple-data-table/row-actions.cjs +1 -1
  56. package/dist/cjs/components/simple-data-table/row-actions.cjs.map +1 -1
  57. package/dist/cjs/components/spinner/index.cjs +1 -1
  58. package/dist/cjs/components/spinner/index.cjs.map +1 -1
  59. package/dist/cjs/components/split-view/check-props.cjs +2 -0
  60. package/dist/cjs/components/split-view/check-props.cjs.map +1 -0
  61. package/dist/cjs/components/split-view/component.cjs +2 -0
  62. package/dist/cjs/components/split-view/component.cjs.map +1 -0
  63. package/dist/cjs/components/split-view/header.cjs.map +1 -1
  64. package/dist/cjs/components/split-view/index.cjs +1 -1
  65. package/dist/cjs/components/split-view/index.cjs.map +1 -1
  66. package/dist/cjs/components/split-view/listbox.cjs.map +1 -1
  67. package/dist/cjs/components/tabs/index.cjs +1 -1
  68. package/dist/cjs/components/tabs/index.cjs.map +1 -1
  69. package/dist/cjs/components/textarea/check-props.cjs +2 -0
  70. package/dist/cjs/components/textarea/check-props.cjs.map +1 -0
  71. package/dist/cjs/components/textarea/component.cjs +2 -0
  72. package/dist/cjs/components/textarea/component.cjs.map +1 -0
  73. package/dist/cjs/components/textarea/index.cjs +1 -1
  74. package/dist/cjs/components/textarea/index.cjs.map +1 -1
  75. package/dist/cjs/components/toast/index.cjs +1 -1
  76. package/dist/cjs/components/toast/index.cjs.map +1 -1
  77. package/dist/cjs/components/tooltip/check-props.cjs +1 -1
  78. package/dist/cjs/components/tooltip/check-props.cjs.map +1 -1
  79. package/dist/cjs/components/tooltip/index.cjs +2 -2
  80. package/dist/cjs/components/tooltip/index.cjs.map +1 -1
  81. package/dist/cjs/components/tree/check-props.cjs +1 -1
  82. package/dist/cjs/components/tree/check-props.cjs.map +1 -1
  83. package/dist/cjs/components/tree/private/branch.cjs.map +1 -1
  84. package/dist/cjs/components/tree/private/item.cjs.map +1 -1
  85. package/dist/cjs/components/tree/private/render-branch.cjs.map +1 -1
  86. package/dist/cjs/components/tree/private/render-initial-branch.cjs +1 -1
  87. package/dist/cjs/components/tree/private/render-initial-branch.cjs.map +1 -1
  88. package/dist/cjs/components/tree/tree.cjs +1 -1
  89. package/dist/cjs/components/tree/tree.cjs.map +1 -1
  90. package/dist/cjs/components/utilities/menu-list/index.cjs.map +1 -1
  91. package/dist/cjs/components/utilities/menu-list/item.cjs +1 -1
  92. package/dist/cjs/components/utilities/menu-list/item.cjs.map +1 -1
  93. package/dist/cjs/components/vertical-navigation/index.cjs.map +1 -1
  94. package/dist/cjs/components/vertical-navigation/private/item.cjs.map +1 -1
  95. package/dist/cjs/components/welcome-mat/index.cjs.map +1 -1
  96. package/dist/cjs/utilities/constants.cjs +1 -1
  97. package/dist/cjs/utilities/constants.cjs.map +1 -1
  98. package/dist/es/components/avatar/index.js +1 -1
  99. package/dist/es/components/avatar/index.js.map +1 -1
  100. package/dist/es/components/breadcrumb/index.js +1 -1
  101. package/dist/es/components/breadcrumb/index.js.map +1 -1
  102. package/dist/es/components/button/index.js +1 -1
  103. package/dist/es/components/button/index.js.map +1 -1
  104. package/dist/es/components/button-stateful/index.js +1 -1
  105. package/dist/es/components/button-stateful/index.js.map +1 -1
  106. package/dist/es/components/carousel/index.js +8 -12
  107. package/dist/es/components/carousel/index.js.map +1 -1
  108. package/dist/es/components/carousel/private/carousel-item.js.map +1 -1
  109. package/dist/es/components/checkbox/index.js +17 -17
  110. package/dist/es/components/checkbox/index.js.map +1 -1
  111. package/dist/es/components/color-picker/color-picker.js.map +1 -1
  112. package/dist/es/components/combobox/add-subheadings.js +2 -1
  113. package/dist/es/components/combobox/add-subheadings.js.map +1 -1
  114. package/dist/es/components/combobox/check-props.js +15 -5
  115. package/dist/es/components/combobox/check-props.js.map +1 -1
  116. package/dist/es/components/combobox/combobox.js +193 -186
  117. package/dist/es/components/combobox/combobox.js.map +1 -1
  118. package/dist/es/components/combobox/filter.js +1 -1
  119. package/dist/es/components/combobox/filter.js.map +1 -1
  120. package/dist/es/components/combobox/index.js.map +1 -1
  121. package/dist/es/components/combobox/private/menu.js +2 -0
  122. package/dist/es/components/combobox/private/menu.js.map +1 -1
  123. package/dist/es/components/date-picker/check-props.js +4 -4
  124. package/dist/es/components/date-picker/date-picker.js +149 -142
  125. package/dist/es/components/date-picker/date-picker.js.map +1 -1
  126. package/dist/es/components/date-picker/index.js.map +1 -1
  127. package/dist/es/components/index.js +41 -43
  128. package/dist/es/components/input/check-props.js +17 -18
  129. package/dist/es/components/input/check-props.js.map +1 -1
  130. package/dist/es/components/input/search.js +1 -1
  131. package/dist/es/components/input/search.js.map +1 -1
  132. package/dist/es/components/menu-dropdown/button-trigger.js.map +1 -1
  133. package/dist/es/components/menu-dropdown/check-props.js +6 -6
  134. package/dist/es/components/menu-dropdown/index.js.map +1 -1
  135. package/dist/es/components/menu-dropdown/menu-dropdown.js +247 -250
  136. package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
  137. package/dist/es/components/modal/index.js +104 -132
  138. package/dist/es/components/modal/index.js.map +1 -1
  139. package/dist/es/components/pill-container/check-props.js +13 -0
  140. package/dist/es/components/pill-container/check-props.js.map +1 -0
  141. package/dist/es/components/pill-container/component.js +31 -0
  142. package/dist/es/components/pill-container/component.js.map +1 -0
  143. package/dist/es/components/pill-container/index.js +65 -56
  144. package/dist/es/components/pill-container/index.js.map +1 -1
  145. package/dist/es/components/popover/index.js.map +1 -1
  146. package/dist/es/components/popover/popover.js +63 -62
  147. package/dist/es/components/popover/popover.js.map +1 -1
  148. package/dist/es/components/setup-assistant/index.js.map +1 -1
  149. package/dist/es/components/setup-assistant/step.js +1 -1
  150. package/dist/es/components/setup-assistant/step.js.map +1 -1
  151. package/dist/es/components/simple-data-table/check-props.js +4 -4
  152. package/dist/es/components/simple-data-table/row-actions.js +2 -2
  153. package/dist/es/components/simple-data-table/row-actions.js.map +1 -1
  154. package/dist/es/components/spinner/index.js +1 -1
  155. package/dist/es/components/spinner/index.js.map +1 -1
  156. package/dist/es/components/split-view/check-props.js +13 -0
  157. package/dist/es/components/split-view/check-props.js.map +1 -0
  158. package/dist/es/components/split-view/component.js +46 -0
  159. package/dist/es/components/split-view/component.js.map +1 -0
  160. package/dist/es/components/split-view/header.js.map +1 -1
  161. package/dist/es/components/split-view/index.js +40 -34
  162. package/dist/es/components/split-view/index.js.map +1 -1
  163. package/dist/es/components/split-view/listbox.js.map +1 -1
  164. package/dist/es/components/tabs/index.js +64 -64
  165. package/dist/es/components/tabs/index.js.map +1 -1
  166. package/dist/es/components/textarea/check-props.js +17 -0
  167. package/dist/es/components/textarea/check-props.js.map +1 -0
  168. package/dist/es/components/textarea/component.js +27 -0
  169. package/dist/es/components/textarea/component.js.map +1 -0
  170. package/dist/es/components/textarea/index.js +50 -46
  171. package/dist/es/components/textarea/index.js.map +1 -1
  172. package/dist/es/components/toast/index.js +18 -12
  173. package/dist/es/components/toast/index.js.map +1 -1
  174. package/dist/es/components/tooltip/check-props.js +9 -23
  175. package/dist/es/components/tooltip/check-props.js.map +1 -1
  176. package/dist/es/components/tooltip/index.js +70 -70
  177. package/dist/es/components/tooltip/index.js.map +1 -1
  178. package/dist/es/components/tree/check-props.js +6 -6
  179. package/dist/es/components/tree/check-props.js.map +1 -1
  180. package/dist/es/components/tree/private/branch.js.map +1 -1
  181. package/dist/es/components/tree/private/item.js.map +1 -1
  182. package/dist/es/components/tree/private/render-branch.js.map +1 -1
  183. package/dist/es/components/tree/private/render-initial-branch.js +5 -2
  184. package/dist/es/components/tree/private/render-initial-branch.js.map +1 -1
  185. package/dist/es/components/tree/tree.js +60 -35
  186. package/dist/es/components/tree/tree.js.map +1 -1
  187. package/dist/es/components/utilities/menu-list/index.js.map +1 -1
  188. package/dist/es/components/utilities/menu-list/item.js +1 -1
  189. package/dist/es/components/utilities/menu-list/item.js.map +1 -1
  190. package/dist/es/components/vertical-navigation/index.js.map +1 -1
  191. package/dist/es/components/vertical-navigation/private/item.js.map +1 -1
  192. package/dist/es/components/welcome-mat/index.js.map +1 -1
  193. package/dist/es/utilities/constants.js +2 -2
  194. package/dist/es/utilities/constants.js.map +1 -1
  195. package/dist/types/components/avatar/index.d.ts +1 -1
  196. package/dist/types/components/avatar/index.d.ts.map +1 -1
  197. package/dist/types/components/breadcrumb/index.d.ts +1 -1
  198. package/dist/types/components/breadcrumb/index.d.ts.map +1 -1
  199. package/dist/types/components/button/check-props.d.ts.map +1 -1
  200. package/dist/types/components/button/index.d.ts +1 -1
  201. package/dist/types/components/button/index.d.ts.map +1 -1
  202. package/dist/types/components/button-stateful/index.d.ts +1 -1
  203. package/dist/types/components/button-stateful/index.d.ts.map +1 -1
  204. package/dist/types/components/carousel/index.d.ts +34 -7
  205. package/dist/types/components/carousel/index.d.ts.map +1 -1
  206. package/dist/types/components/carousel/private/carousel-item.d.ts +3 -3
  207. package/dist/types/components/carousel/private/carousel-item.d.ts.map +1 -1
  208. package/dist/types/components/checkbox/check-props.d.ts.map +1 -1
  209. package/dist/types/components/checkbox/index.d.ts +1 -6
  210. package/dist/types/components/checkbox/index.d.ts.map +1 -1
  211. package/dist/types/components/color-picker/color-picker.d.ts +25 -7
  212. package/dist/types/components/color-picker/color-picker.d.ts.map +1 -1
  213. package/dist/types/components/color-picker/index.d.ts +1 -1
  214. package/dist/types/components/color-picker/index.d.ts.map +1 -1
  215. package/dist/types/components/combobox/add-subheadings.d.ts +1 -1
  216. package/dist/types/components/combobox/add-subheadings.d.ts.map +1 -1
  217. package/dist/types/components/combobox/check-props.d.ts.map +1 -1
  218. package/dist/types/components/combobox/combobox.d.ts +57 -24
  219. package/dist/types/components/combobox/combobox.d.ts.map +1 -1
  220. package/dist/types/components/combobox/filter.d.ts.map +1 -1
  221. package/dist/types/components/combobox/index.d.ts +2 -2
  222. package/dist/types/components/combobox/index.d.ts.map +1 -1
  223. package/dist/types/components/combobox/private/menu.d.ts +65 -4
  224. package/dist/types/components/combobox/private/menu.d.ts.map +1 -1
  225. package/dist/types/components/date-picker/date-picker.d.ts +52 -6
  226. package/dist/types/components/date-picker/date-picker.d.ts.map +1 -1
  227. package/dist/types/components/date-picker/index.d.ts +1 -1
  228. package/dist/types/components/date-picker/index.d.ts.map +1 -1
  229. package/dist/types/components/index.d.ts +0 -4
  230. package/dist/types/components/index.d.ts.map +1 -1
  231. package/dist/types/components/input/check-props.d.ts.map +1 -1
  232. package/dist/types/components/input/search.d.ts +1 -1
  233. package/dist/types/components/input/search.d.ts.map +1 -1
  234. package/dist/types/components/menu-dropdown/button-trigger.d.ts +1 -1
  235. package/dist/types/components/menu-dropdown/button-trigger.d.ts.map +1 -1
  236. package/dist/types/components/menu-dropdown/index.d.ts +2 -2
  237. package/dist/types/components/menu-dropdown/index.d.ts.map +1 -1
  238. package/dist/types/components/menu-dropdown/menu-dropdown.d.ts +95 -24
  239. package/dist/types/components/menu-dropdown/menu-dropdown.d.ts.map +1 -1
  240. package/dist/types/components/modal/index.d.ts +26 -3
  241. package/dist/types/components/modal/index.d.ts.map +1 -1
  242. package/dist/types/components/pill-container/check-props.d.ts.map +1 -0
  243. package/dist/types/components/pill-container/index.d.ts +24 -3
  244. package/dist/types/components/pill-container/index.d.ts.map +1 -1
  245. package/dist/types/components/popover/index.d.ts +1 -1
  246. package/dist/types/components/popover/index.d.ts.map +1 -1
  247. package/dist/types/components/popover/popover.d.ts +41 -12
  248. package/dist/types/components/popover/popover.d.ts.map +1 -1
  249. package/dist/types/components/setup-assistant/index.d.ts +7 -3
  250. package/dist/types/components/setup-assistant/index.d.ts.map +1 -1
  251. package/dist/types/components/setup-assistant/step.d.ts +7 -1
  252. package/dist/types/components/setup-assistant/step.d.ts.map +1 -1
  253. package/dist/types/components/simple-data-table/row-actions.d.ts.map +1 -1
  254. package/dist/types/components/spinner/index.d.ts +1 -1
  255. package/dist/types/components/spinner/index.d.ts.map +1 -1
  256. package/dist/types/components/split-view/check-props.d.ts.map +1 -0
  257. package/dist/types/components/split-view/header.d.ts +3 -3
  258. package/dist/types/components/split-view/header.d.ts.map +1 -1
  259. package/dist/types/components/split-view/index.d.ts +25 -3
  260. package/dist/types/components/split-view/index.d.ts.map +1 -1
  261. package/dist/types/components/split-view/listbox.d.ts +27 -24
  262. package/dist/types/components/split-view/listbox.d.ts.map +1 -1
  263. package/dist/types/components/tabs/index.d.ts +16 -3
  264. package/dist/types/components/tabs/index.d.ts.map +1 -1
  265. package/dist/types/components/textarea/index.d.ts +2 -2
  266. package/dist/types/components/textarea/index.d.ts.map +1 -1
  267. package/dist/types/components/toast/index.d.ts +17 -2
  268. package/dist/types/components/toast/index.d.ts.map +1 -1
  269. package/dist/types/components/tooltip/check-props.d.ts.map +1 -1
  270. package/dist/types/components/tooltip/index.d.ts +1 -5
  271. package/dist/types/components/tooltip/index.d.ts.map +1 -1
  272. package/dist/types/components/tree/check-props.d.ts.map +1 -1
  273. package/dist/types/components/tree/index.d.ts +1 -1
  274. package/dist/types/components/tree/index.d.ts.map +1 -1
  275. package/dist/types/components/tree/private/branch.d.ts +2 -4
  276. package/dist/types/components/tree/private/branch.d.ts.map +1 -1
  277. package/dist/types/components/tree/private/item.d.ts.map +1 -1
  278. package/dist/types/components/tree/private/render-branch.d.ts.map +1 -1
  279. package/dist/types/components/tree/private/render-initial-branch.d.ts +2 -3
  280. package/dist/types/components/tree/private/render-initial-branch.d.ts.map +1 -1
  281. package/dist/types/components/tree/tree.d.ts +27 -6
  282. package/dist/types/components/tree/tree.d.ts.map +1 -1
  283. package/dist/types/components/tree/types.d.ts +55 -8
  284. package/dist/types/components/tree/types.d.ts.map +1 -1
  285. package/dist/types/components/utilities/menu-list/index.d.ts +1 -1
  286. package/dist/types/components/utilities/menu-list/index.d.ts.map +1 -1
  287. package/dist/types/components/utilities/menu-list/item.d.ts +1 -1
  288. package/dist/types/components/utilities/menu-list/item.d.ts.map +1 -1
  289. package/dist/types/components/vertical-navigation/index.d.ts +7 -3
  290. package/dist/types/components/vertical-navigation/index.d.ts.map +1 -1
  291. package/dist/types/components/vertical-navigation/private/item.d.ts +1 -1
  292. package/dist/types/components/vertical-navigation/private/item.d.ts.map +1 -1
  293. package/dist/types/components/welcome-mat/index.d.ts +62 -13
  294. package/dist/types/components/welcome-mat/index.d.ts.map +1 -1
  295. package/dist/types/utilities/constants.d.ts +0 -1
  296. package/dist/types/utilities/constants.d.ts.map +1 -1
  297. package/package.json +2 -2
  298. package/dist/cjs/components/forms/input/inline-check-props.cjs +0 -2
  299. package/dist/cjs/components/forms/input/inline-check-props.cjs.map +0 -1
  300. package/dist/cjs/components/forms/input/inline.cjs +0 -2
  301. package/dist/cjs/components/forms/input/inline.cjs.map +0 -1
  302. package/dist/cjs/components/modal/check-props.cjs +0 -2
  303. package/dist/cjs/components/modal/check-props.cjs.map +0 -1
  304. package/dist/cjs/components/modal/component.cjs +0 -2
  305. package/dist/cjs/components/modal/component.cjs.map +0 -1
  306. package/dist/cjs/components/modal/trigger.cjs +0 -2
  307. package/dist/cjs/components/modal/trigger.cjs.map +0 -1
  308. package/dist/cjs/utilities/warning/deprecated-property-value.cjs +0 -2
  309. package/dist/cjs/utilities/warning/deprecated-property-value.cjs.map +0 -1
  310. package/dist/es/components/forms/input/inline-check-props.js +0 -11
  311. package/dist/es/components/forms/input/inline-check-props.js.map +0 -1
  312. package/dist/es/components/forms/input/inline.js +0 -95
  313. package/dist/es/components/forms/input/inline.js.map +0 -1
  314. package/dist/es/components/modal/check-props.js +0 -13
  315. package/dist/es/components/modal/check-props.js.map +0 -1
  316. package/dist/es/components/modal/component.js +0 -35
  317. package/dist/es/components/modal/component.js.map +0 -1
  318. package/dist/es/components/modal/trigger.js +0 -22
  319. package/dist/es/components/modal/trigger.js.map +0 -1
  320. package/dist/es/utilities/warning/deprecated-property-value.js +0 -18
  321. package/dist/es/utilities/warning/deprecated-property-value.js.map +0 -1
  322. package/dist/types/components/avatar/check-props.d.ts.map +0 -1
  323. package/dist/types/components/breadcrumb/check-props.d.ts.map +0 -1
  324. package/dist/types/components/button-stateful/check-props.d.ts +0 -3
  325. package/dist/types/components/button-stateful/check-props.d.ts.map +0 -1
  326. package/dist/types/components/forms/checkbox/index.d.ts +0 -4
  327. package/dist/types/components/forms/checkbox/index.d.ts.map +0 -1
  328. package/dist/types/components/forms/checkbox.d.ts +0 -2
  329. package/dist/types/components/forms/input/inline-check-props.d.ts +0 -3
  330. package/dist/types/components/forms/input/inline-check-props.d.ts.map +0 -1
  331. package/dist/types/components/forms/input/inline.d.ts +0 -88
  332. package/dist/types/components/forms/input/inline.d.ts.map +0 -1
  333. package/dist/types/components/modal/check-props.d.ts +0 -3
  334. package/dist/types/components/modal/check-props.d.ts.map +0 -1
  335. package/dist/types/components/modal/trigger.d.ts +0 -14
  336. package/dist/types/components/modal/trigger.d.ts.map +0 -1
  337. package/dist/types/components/spinner/check-props.d.ts +0 -3
  338. package/dist/types/components/spinner/check-props.d.ts.map +0 -1
  339. package/dist/types/components/tabs/pane.d.ts +0 -3
  340. package/dist/types/components/tabs/pane.d.ts.map +0 -1
  341. package/dist/types/utilities/warning/deprecated-event-parameter.d.ts +0 -3
  342. package/dist/types/utilities/warning/deprecated-event-parameter.d.ts.map +0 -1
  343. /package/dist/types/components/{avatar → pill-container}/check-props.d.ts +0 -0
  344. /package/dist/types/components/{breadcrumb → split-view}/check-props.d.ts +0 -0
@@ -1,11 +0,0 @@
1
- import e from "../../../utilities/warning/component-is-deprecated.js";
2
- //#region components/forms/input/inline-check-props.js
3
- var t = function() {};
4
- process.env.NODE_ENV !== "production" && (t = function(t, n) {
5
- e(t, n, "For a multiple input form, please use the pattern located at https://www.lightningdesignsystem.com/components/form-element/#Record-Detail that swaps out a read-only `Input` with a base `Input`. For a single input, please use a `Popover` paired with `<Button category=\"utility\" iconName=\"edit\" variant=\"icon\" />` as the trigger.");
6
- });
7
- var n = t;
8
- //#endregion
9
- export { n as default };
10
-
11
- //# sourceMappingURL=inline-check-props.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inline-check-props.js","names":[],"sources":["../../../../../components/forms/input/inline-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 componentIsDeprecated from '../../../utilities/warning/component-is-deprecated';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props) {\n\t\tcomponentIsDeprecated(\n\t\t\tCOMPONENT,\n\t\t\tprops,\n\t\t\t'For a multiple input form, please use the pattern located at https://www.lightningdesignsystem.com/components/form-element/#Record-Detail that swaps out a read-only `Input` with a base `Input`. For a single input, please use a `Popover` paired with `<Button\tcategory=\"utility\" iconName=\"edit\" variant=\"icon\" />` as the trigger.'\n\t\t);\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;AAOA,IAAI,IAAa,WAA8B,CAAC;AAEhD,QAAA,IAAA,aAA6B,iBAC5B,IAAa,SAA4B,GAAW,GAAO;CAC1D,EACC,GACA,GACA,+UACD;AACD;AAGD,IAAA,IAAe"}
@@ -1,95 +0,0 @@
1
- import { FORMS_INLINE_EDIT as e } from "../../../utilities/constants.js";
2
- import t from "../../../utilities/key-code.js";
3
- import n from "../../button/index.js";
4
- import r from "../../input/index.js";
5
- import i from "../../icon/input-icon/index.js";
6
- import a from "./inline-check-props.js";
7
- import o from "react";
8
- import { jsx as s } from "react/jsx-runtime";
9
- import c from "lodash.isfunction";
10
- //#region components/forms/input/inline.tsx
11
- var l = {
12
- assistiveText: "Edit text",
13
- type: "text"
14
- }, u = class extends o.Component {
15
- static displayName = e;
16
- static defaultProps = l;
17
- autoFocus;
18
- inputNode = null;
19
- willSave;
20
- constructor(t) {
21
- super(t), this.state = {
22
- isEditing: !1,
23
- value: null
24
- }, a(e, t);
25
- }
26
- componentDidUpdate() {
27
- this.autoFocus &&= (this.inputNode && (this.inputNode.focus(), this.inputNode.select()), !1);
28
- }
29
- endEditMode = (e) => {
30
- this.willSave && (clearTimeout(this.willSave), delete this.willSave), this.setState({
31
- isEditing: !1,
32
- value: null
33
- }), this.props.onLeaveEditMode && c(this.props.onLeaveEditMode) && this.props.onLeaveEditMode(void 0, e);
34
- };
35
- handleBlur = () => {
36
- this.willSave ||= setTimeout(this.saveEdits, 200), this.props.onLeaveEditMode && c(this.props.onLeaveEditMode) && this.props.onLeaveEditMode();
37
- };
38
- handleChange = (e, t) => {
39
- this.setState({ value: t.value });
40
- };
41
- handleKeyDown = (e) => {
42
- e.keyCode && (e.keyCode === t.ESCAPE ? this.saveEdits({ cancel: !0 }) : e.keyCode === t.ENTER && this.saveEdits());
43
- };
44
- handleKeyUp = (e) => {
45
- e.keyCode && this.props.onKeyUp && c(this.props.onKeyUp) && this.props.onKeyUp(e, { value: this.state.value });
46
- };
47
- saveEdits = (e) => {
48
- e && e.cancel === !0 || c(this.props.onChange) && this.props.onChange({ value: this.state.value }), this.endEditMode(e);
49
- };
50
- triggerEditMode = () => {
51
- this.props.disabled || (this.autoFocus = !0, this.setState({
52
- isEditing: !0,
53
- value: this.props.value
54
- }), c(this.props.onEnterEditMode) && this.props.onEnterEditMode());
55
- };
56
- render() {
57
- let { assistiveText: e, disabled: t, value: a, name: o, ...c } = this.props, l = this.state.isEditing ? /* @__PURE__ */ s(i, {
58
- category: "utility",
59
- name: "close",
60
- position: "right",
61
- onClick: () => this.endEditMode(),
62
- tabIndex: -1
63
- }) : null;
64
- return /* @__PURE__ */ s(r, {
65
- ...c,
66
- iconRight: l,
67
- disabled: t,
68
- inlineEditTrigger: /* @__PURE__ */ s(n, {
69
- assistiveText: { icon: e },
70
- className: "slds-m-left_x-small",
71
- disabled: t,
72
- iconCategory: "utility",
73
- iconName: "edit",
74
- iconPosition: "right",
75
- iconSize: "small",
76
- variant: "icon"
77
- }),
78
- onBlur: this.handleBlur,
79
- onChange: this.handleChange,
80
- onClick: this.state.isEditing ? void 0 : this.triggerEditMode,
81
- onKeyDown: this.handleKeyDown,
82
- onKeyUp: this.handleKeyUp,
83
- isStatic: !this.state.isEditing,
84
- name: o,
85
- value: this.state.isEditing ? this.state.value || "" : a,
86
- inputRef: (e) => {
87
- this.inputNode = e;
88
- }
89
- });
90
- }
91
- };
92
- //#endregion
93
- export { u as default };
94
-
95
- //# sourceMappingURL=inline.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inline.js","names":[],"sources":["../../../../../components/forms/input/inline.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// # Inline Edit Component\n\n// Implements an inline edit component based on the [Input design pattern](https://www.lightningdesignsystem.com/components/forms/#input) in React.\n\n// ## Dependencies\n\n// ### React\nimport React, { type ReactNode } from 'react';\n\n// ### isFunction\nimport isFunction from 'lodash.isfunction';\n\n// ## Children\nimport Button from '../../button';\nimport Input, { type InputProps, type InputType } from '../../input/index';\nimport InputIcon from '../../icon/input-icon';\n\n// ### Event Helpers\nimport KEYS from '../../../utilities/key-code';\n\n// This component's `checkProps` which issues warnings to developers about properties when in development mode (similar to React's built in development tools)\nimport checkProps from './inline-check-props';\n\n// ## Constants\nimport { FORMS_INLINE_EDIT } from '../../../utilities/constants';\n\n/** Options passed when leaving edit mode. */\ninterface EndEditOption {\n\tcancel?: boolean;\n}\n\nexport interface InlineEditProps {\n\t/**\n\t * Assistive text for the edit trigger button's icon.\n\t */\n\tassistiveText?: string;\n\t/**\n\t * Class names to be added to the outer container of the input.\n\t */\n\tclassName?: unknown[] | Record<string, unknown> | string;\n\t/**\n\t * Name of the submitted form parameter.\n\t */\n\tname?: string;\n\t/**\n\t * Disables the Inline Edit component and prevents editing the contents.\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Every Inline Edit component must have a unique ID in order to support keyboard navigation and ARIA support.\n\t */\n\tid: string;\n\t/**\n\t * This event fires when the input changes.\n\t */\n\tonChange?: (data: { value: string | null }) => void;\n\t/**\n\t * Function will run when keyup during text edit\n\t */\n\tonKeyUp?: (\n\t\tevent: React.KeyboardEvent<HTMLInputElement>,\n\t\tdata: { value: string | null }\n\t) => void;\n\t/**\n\t * Function will run when we enter edit mode\n\t */\n\tonEnterEditMode?: () => void;\n\t/**\n\t * Function will run when we leave edit mode\n\t */\n\tonLeaveEditMode?: (event?: undefined, option?: EndEditOption) => void;\n\t/**\n\t * Typically an Inline Edit component will be of the type text, but like the Input element it includes support for all HTML5 types.\n\t */\n\ttype?: InputType;\n\t/**\n\t * Inline Edit is a controlled component, and will always display this value.\n\t */\n\tvalue: string;\n\t/**\n\t * Additional properties are passed onto the underlying `Input`.\n\t */\n\t[key: string]: unknown;\n}\n\ninterface InlineEditState {\n\tisEditing: boolean;\n\tvalue: string | null;\n}\n\nconst defaultProps: Partial<InlineEditProps> = {\n\tassistiveText: 'Edit text',\n\ttype: 'text',\n};\n\n/**\n * An inline input is rendered as a label by default. When clicked (or tabbed in), it's rendered as an input. When the focus is lost, the current input value is saved and the input is rendered as a label again.\n */\nclass InlineEdit extends React.Component<InlineEditProps, InlineEditState> {\n\tstatic displayName = FORMS_INLINE_EDIT;\n\n\tstatic defaultProps = defaultProps;\n\n\tautoFocus?: boolean;\n\n\tinputNode: HTMLInputElement | null = null;\n\n\twillSave?: ReturnType<typeof setTimeout>;\n\n\tconstructor(props: InlineEditProps) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tisEditing: false,\n\t\t\tvalue: null,\n\t\t};\n\n\t\t(checkProps as (name: string, props: unknown) => void)(\n\t\t\tFORMS_INLINE_EDIT,\n\t\t\tprops\n\t\t);\n\t}\n\n\tcomponentDidUpdate() {\n\t\tif (this.autoFocus) {\n\t\t\tif (this.inputNode) {\n\t\t\t\tthis.inputNode.focus();\n\t\t\t\tthis.inputNode.select();\n\t\t\t}\n\t\t\tthis.autoFocus = false;\n\t\t}\n\t}\n\n\tendEditMode = (option?: EndEditOption | React.MouseEvent) => {\n\t\tif (this.willSave) {\n\t\t\tclearTimeout(this.willSave);\n\t\t\tdelete this.willSave;\n\t\t}\n\n\t\tthis.setState({\n\t\t\tisEditing: false,\n\t\t\tvalue: null,\n\t\t});\n\n\t\tif (this.props.onLeaveEditMode && isFunction(this.props.onLeaveEditMode)) {\n\t\t\tthis.props.onLeaveEditMode(undefined, option as EndEditOption);\n\t\t}\n\t};\n\n\thandleBlur = () => {\n\t\tif (!this.willSave) {\n\t\t\tthis.willSave = setTimeout(this.saveEdits, 200);\n\t\t}\n\t\tif (this.props.onLeaveEditMode && isFunction(this.props.onLeaveEditMode)) {\n\t\t\tthis.props.onLeaveEditMode();\n\t\t}\n\t};\n\n\thandleChange = (\n\t\t_event: React.ChangeEvent<HTMLInputElement> | React.MouseEvent | React.KeyboardEvent,\n\t\tdata: { value: string }\n\t) => {\n\t\tthis.setState({\n\t\t\tvalue: data.value,\n\t\t});\n\t};\n\n\thandleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n\t\tif (event.keyCode) {\n\t\t\tif (event.keyCode === KEYS.ESCAPE) {\n\t\t\t\tthis.saveEdits({ cancel: true });\n\t\t\t} else if (event.keyCode === KEYS.ENTER) {\n\t\t\t\tthis.saveEdits();\n\t\t\t}\n\t\t}\n\t};\n\n\thandleKeyUp = (event: React.KeyboardEvent<HTMLInputElement>) => {\n\t\tif (event.keyCode) {\n\t\t\tif (this.props.onKeyUp && isFunction(this.props.onKeyUp)) {\n\t\t\t\tthis.props.onKeyUp(event, {\n\t\t\t\t\tvalue: this.state.value,\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t};\n\n\tsaveEdits = (option?: EndEditOption) => {\n\t\tif (!(option && option.cancel === true)) {\n\t\t\tif (isFunction(this.props.onChange)) {\n\t\t\t\tthis.props.onChange({\n\t\t\t\t\tvalue: this.state.value,\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tthis.endEditMode(option);\n\t};\n\n\ttriggerEditMode = () => {\n\t\tif (!this.props.disabled) {\n\t\t\tthis.autoFocus = true;\n\t\t\tthis.setState({\n\t\t\t\tisEditing: true,\n\t\t\t\tvalue: this.props.value,\n\t\t\t});\n\t\t\tif (isFunction(this.props.onEnterEditMode)) {\n\t\t\t\tthis.props.onEnterEditMode();\n\t\t\t}\n\t\t}\n\t};\n\n\t// ### Render\n\trender() {\n\t\tconst {\n\t\t\tassistiveText,\n\t\t\tdisabled,\n\t\t\tvalue,\n\t\t\tname,\n\n\t\t\t// ### Additional properties\n\t\t\t// Using [object destructuring](https://facebook.github.io/react/docs/transferring-props.html#transferring-with-...-in-jsx) to pass on any properties which are not explicitly defined.\n\t\t\t...rest\n\t\t} = this.props;\n\n\t\tconst iconRight: ReactNode = this.state.isEditing ? (\n\t\t\t<InputIcon\n\t\t\t\tcategory=\"utility\"\n\t\t\t\tname=\"close\"\n\t\t\t\tposition=\"right\"\n\t\t\t\tonClick={() => this.endEditMode()}\n\t\t\t\ttabIndex={-1}\n\t\t\t/>\n\t\t) : null;\n\n\t\treturn (\n\t\t\t<Input\n\t\t\t\t{...(rest as unknown as InputProps)}\n\t\t\t\ticonRight={iconRight}\n\t\t\t\tdisabled={disabled}\n\t\t\t\tinlineEditTrigger={\n\t\t\t\t\t<Button\n\t\t\t\t\t\tassistiveText={{ icon: assistiveText }}\n\t\t\t\t\t\tclassName=\"slds-m-left_x-small\"\n\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\ticonName=\"edit\"\n\t\t\t\t\t\ticonPosition=\"right\"\n\t\t\t\t\t\ticonSize=\"small\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t/>\n\t\t\t\t}\n\t\t\t\tonBlur={this.handleBlur}\n\t\t\t\tonChange={this.handleChange}\n\t\t\t\tonClick={!this.state.isEditing ? this.triggerEditMode : undefined}\n\t\t\t\tonKeyDown={this.handleKeyDown}\n\t\t\t\tonKeyUp={this.handleKeyUp}\n\t\t\t\tisStatic={!this.state.isEditing}\n\t\t\t\tname={name}\n\t\t\t\tvalue={this.state.isEditing ? this.state.value || '' : value}\n\t\t\t\tinputRef={(input) => {\n\t\t\t\t\tthis.inputNode = input;\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\t}\n}\n\nexport default InlineEdit;\n"],"mappings":";;;;;;;;;;AA6FA,IAAM,IAAyC;CAC9C,eAAe;CACf,MAAM;AACP,GAKM,IAAN,cAAyB,EAAM,UAA4C;CAC1E,OAAO,cAAc;CAErB,OAAO,eAAe;CAEtB;CAEA,YAAqC;CAErC;CAEA,YAAY,GAAwB;EAOnC,AANA,MAAM,CAAK,GACX,KAAK,QAAQ;GACZ,WAAW;GACX,OAAO;EACR,GAEA,EACC,GACA,CACD;CACD;CAEA,qBAAqB;EACpB,AAKC,KAAK,eAJD,KAAK,cACR,KAAK,UAAU,MAAM,GACrB,KAAK,UAAU,OAAO,IAEN;CAEnB;CAEA,eAAe,MAA8C;EAW5D,AAVI,KAAK,aACR,aAAa,KAAK,QAAQ,GAC1B,OAAO,KAAK,WAGb,KAAK,SAAS;GACb,WAAW;GACX,OAAO;EACR,CAAC,GAEG,KAAK,MAAM,mBAAmB,EAAW,KAAK,MAAM,eAAe,KACtE,KAAK,MAAM,gBAAgB,KAAA,GAAW,CAAuB;CAE/D;CAEA,mBAAmB;EAIlB,AAHA,AACC,KAAK,aAAW,WAAW,KAAK,WAAW,GAAG,GAE3C,KAAK,MAAM,mBAAmB,EAAW,KAAK,MAAM,eAAe,KACtE,KAAK,MAAM,gBAAgB;CAE7B;CAEA,gBACC,GACA,MACI;EACJ,KAAK,SAAS,EACb,OAAO,EAAK,MACb,CAAC;CACF;CAEA,iBAAiB,MAAiD;EACjE,AAAI,EAAM,YACL,EAAM,YAAY,EAAK,SAC1B,KAAK,UAAU,EAAE,QAAQ,GAAK,CAAC,IACrB,EAAM,YAAY,EAAK,SACjC,KAAK,UAAU;CAGlB;CAEA,eAAe,MAAiD;EAC/D,AAAI,EAAM,WACL,KAAK,MAAM,WAAW,EAAW,KAAK,MAAM,OAAO,KACtD,KAAK,MAAM,QAAQ,GAAO,EACzB,OAAO,KAAK,MAAM,MACnB,CAAC;CAGJ;CAEA,aAAa,MAA2B;EAQvC,AAPM,KAAU,EAAO,WAAW,MAC7B,EAAW,KAAK,MAAM,QAAQ,KACjC,KAAK,MAAM,SAAS,EACnB,OAAO,KAAK,MAAM,MACnB,CAAC,GAGH,KAAK,YAAY,CAAM;CACxB;CAEA,wBAAwB;EACvB,AAAK,KAAK,MAAM,aACf,KAAK,YAAY,IACjB,KAAK,SAAS;GACb,WAAW;GACX,OAAO,KAAK,MAAM;EACnB,CAAC,GACG,EAAW,KAAK,MAAM,eAAe,KACxC,KAAK,MAAM,gBAAgB;CAG9B;CAGA,SAAS;EACR,IAAM,EACL,kBACA,aACA,UACA,SAIA,GAAG,MACA,KAAK,OAEH,IAAuB,KAAK,MAAM,YACvC,kBAAC,GAAD;GACC,UAAS;GACT,MAAK;GACL,UAAS;GACT,eAAe,KAAK,YAAY;GAChC,UAAU;EACV,CAAA,IACE;EAEJ,OACC,kBAAC,GAAD;GACC,GAAK;GACM;GACD;GACV,mBACC,kBAAC,GAAD;IACC,eAAe,EAAE,MAAM,EAAc;IACrC,WAAU;IACA;IACV,cAAa;IACb,UAAS;IACT,cAAa;IACb,UAAS;IACT,SAAQ;GACR,CAAA;GAEF,QAAQ,KAAK;GACb,UAAU,KAAK;GACf,SAAU,KAAK,MAAM,YAAmC,KAAA,IAAvB,KAAK;GACtC,WAAW,KAAK;GAChB,SAAS,KAAK;GACd,UAAU,CAAC,KAAK,MAAM;GAChB;GACN,OAAO,KAAK,MAAM,YAAY,KAAK,MAAM,SAAS,KAAK;GACvD,WAAW,MAAU;IACpB,KAAK,YAAY;GAClB;EACA,CAAA;CAEH;AACD"}
@@ -1,13 +0,0 @@
1
- import e from "../../utilities/warning/deprecated-property.js";
2
- import t from "../../utilities/get-component-doc.js";
3
- //#region components/modal/check-props.js
4
- var n = function() {};
5
- process.env.NODE_ENV !== "production" && (n = function(n, r, i) {
6
- let a = t(i);
7
- e(n, r.closeButtonAssistiveText, "closeButtonAssistiveText", "assistiveText['closeButton']", a("assistiveText")), e(n, r.title, "title", "heading", a("heading")), e(n, r.dismissible, "dismissible", "disableClose", a("disableClose"));
8
- });
9
- var r = n;
10
- //#endregion
11
- export { r as default };
12
-
13
- //# sourceMappingURL=check-props.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/modal/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';\nimport getComponentDocFn from '../../utilities/get-component-doc';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props, jsonDoc) {\n\t\tconst createDocUrl = getComponentDocFn(jsonDoc);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.closeButtonAssistiveText,\n\t\t\t'closeButtonAssistiveText',\n\t\t\t\"assistiveText['closeButton']\",\n\t\t\tcreateDocUrl('assistiveText')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.title,\n\t\t\t'title',\n\t\t\t'heading',\n\t\t\tcreateDocUrl('heading')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.dismissible,\n\t\t\t'dismissible',\n\t\t\t'disableClose',\n\t\t\tcreateDocUrl('disableClose')\n\t\t);\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;AAQA,IAAI,IAAa,WAA8B,CAAC;AAEhD,QAAA,IAAA,aAA6B,iBAC5B,IAAa,SAA4B,GAAW,GAAO,GAAS;CACnE,IAAM,IAAe,EAAkB,CAAO;CAe9C,AAdA,EACC,GACA,EAAM,0BACN,4BACA,gCACA,EAAa,eAAe,CAC7B,GACA,EACC,GACA,EAAM,OACN,SACA,WACA,EAAa,SAAS,CACvB,GACA,EACC,GACA,EAAM,aACN,eACA,gBACA,EAAa,cAAc,CAC5B;AACD;AAGD,IAAA,IAAe"}
@@ -1,35 +0,0 @@
1
- //#region components/modal/component.json
2
- var e = "modal", t = "prod", n = "Modal", r = {
3
- component: e,
4
- status: t,
5
- "display-name": "Modals and Prompts",
6
- classKey: n,
7
- "SLDS-component-path": "/components/modals",
8
- "site-stories": [
9
- {
10
- heading: "Default",
11
- path: "/__examples__/menu-contents.jsx"
12
- },
13
- {
14
- heading: "With header and footer",
15
- path: "/__examples__/header-footer.jsx"
16
- },
17
- {
18
- heading: "With Tagline",
19
- path: "/__examples__/taglines.jsx"
20
- },
21
- {
22
- heading: "Prompt",
23
- path: "/__examples__/prompt.jsx"
24
- },
25
- {
26
- heading: "Various sizes",
27
- path: "/__examples__/sizes.jsx"
28
- }
29
- ],
30
- "url-slug": "modals"
31
- };
32
- //#endregion
33
- export { n as classKey, e as component, r as default, t as status };
34
-
35
- //# sourceMappingURL=component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.js","names":[],"sources":["../../../../components/modal/component.json"],"sourcesContent":["{\n\t\"component\": \"modal\",\n\t\"status\": \"prod\",\n\t\"display-name\": \"Modals and Prompts\",\n\t\"classKey\": \"Modal\",\n\t\"SLDS-component-path\": \"/components/modals\",\n\t\"site-stories\": [\n\t\t{\n\t\t\t\"heading\": \"Default\",\n\t\t\t\"path\": \"/__examples__/menu-contents.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"With header and footer\",\n\t\t\t\"path\": \"/__examples__/header-footer.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"With Tagline\",\n\t\t\t\"path\": \"/__examples__/taglines.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Prompt\",\n\t\t\t\"path\": \"/__examples__/prompt.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Various sizes\",\n\t\t\t\"path\": \"/__examples__/sizes.jsx\"\n\t\t}\n\t],\n\t\"url-slug\": \"modals\"\n}\n"],"mappings":""}
@@ -1,22 +0,0 @@
1
- import { canUseDOM as e } from "../../utilities/execution-environment.js";
2
- import t from "../../utilities/warning/component-is-deprecated.js";
3
- import n from "./index.js";
4
- import { jsx as r } from "react/jsx-runtime";
5
- import { createRoot as i } from "react-dom/client";
6
- //#region components/modal/trigger.tsx
7
- var a = { open: (a) => {
8
- t("components/modal/trigger.jsx", {}, "This component is deprecated and appears to have been created in order to do modals in portals which is what current Modal has done for years.");
9
- let o;
10
- e && (o = document.createElement("span"), o.setAttribute("data-slds-modal", "true"), document.body.appendChild(o));
11
- let s = /* @__PURE__ */ r(n, {
12
- heading: a.title,
13
- footer: a.footer,
14
- isOpen: !0,
15
- children: a.content
16
- });
17
- o && i(o).render(s);
18
- } };
19
- //#endregion
20
- export { a as default };
21
-
22
- //# sourceMappingURL=trigger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trigger.js","names":[],"sources":["../../../../components/modal/trigger.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 { createRoot } from 'react-dom/client';\nimport { type ReactNode } from 'react';\n\nimport componentIsDeprecated from '../../utilities/warning/component-is-deprecated';\n\nimport Modal from './index';\n\nimport { canUseDOM } from '../../utilities/execution-environment';\n\nexport interface ModalTriggerConfig {\n\t/** Modal heading text. */\n\ttitle?: ReactNode;\n\t/** Modal footer content. */\n\tfooter?: ReactNode | ReactNode[];\n\t/** Modal body content. */\n\tcontent?: ReactNode;\n}\n\n// This component should be deprecated and appears to have\n// been created in order to do modals in portals.\n\nconst ModalTrigger = {\n\topen: (cfg: ModalTriggerConfig) => {\n\t\tcomponentIsDeprecated(\n\t\t\t'components/modal/trigger.jsx',\n\t\t\t// The legacy call passes a message string in the `props` slot; the\n\t\t\t// deprecation helper only reads `props.silenceDeprecationWarning`, so\n\t\t\t// this is a harmless no-op guard. Preserved for backwards behavior.\n\t\t\t{} as Record<string, unknown>,\n\t\t\t'This component is deprecated and appears to have been created in order to do modals in portals which is what current Modal has done for years.'\n\t\t);\n\n\t\tlet el;\n\t\tif (canUseDOM) {\n\t\t\tel = document.createElement('span');\n\t\t\tel.setAttribute('data-slds-modal', 'true');\n\t\t\tdocument.body.appendChild(el);\n\t\t}\n\t\tconst comp = (\n\t\t\t<Modal heading={cfg.title} footer={cfg.footer} isOpen>\n\t\t\t\t{cfg.content}\n\t\t\t</Modal>\n\t\t);\n\n\t\tif (el) {\n\t\t\t// React 18+ root API. `ReactDOM.render` was removed in React 19.\n\t\t\tconst root = createRoot(el);\n\t\t\troot.render(comp);\n\t\t}\n\t},\n};\n\nexport default ModalTrigger;\n"],"mappings":";;;;;;AAwBA,IAAM,IAAe,EACpB,OAAO,MAA4B;CAClC,EACC,gCAIA,CAAC,GACD,gJACD;CAEA,IAAI;CACJ,AAAI,MACH,IAAK,SAAS,cAAc,MAAM,GAClC,EAAG,aAAa,mBAAmB,MAAM,GACzC,SAAS,KAAK,YAAY,CAAE;CAE7B,IAAM,IACL,kBAAC,GAAD;EAAO,SAAS,EAAI;EAAO,QAAQ,EAAI;EAAQ,QAAA;EAC7C,UAAA,EAAI;CACC,CAAA;CAGR,AAAI,KAGH,EADwB,CACxB,CAAA,CAAK,OAAO,CAAI;AAElB,EACD"}
@@ -1,18 +0,0 @@
1
- import e from "warning";
2
- //#region utilities/warning/deprecated-property-value.js
3
- var t = function() {};
4
- if (process.env.NODE_ENV !== "production") {
5
- let n = {};
6
- t = function(t, { propAsString: r, propValue: i, deprecatedPropValue: a, replacementPropAsString: o, replacementPropAsValue: s, log: c }, l) {
7
- let u = l ? ` ${l}` : "", d = t + r + a, f = i === a, p = a && o && s ? ` Replace \`${r}="${a}"\` with \`${o}="${s}"\`.` : "";
8
- if (!n[d]) {
9
- let i = `[Design System React] The value of \`${a}\`, for prop \`${r}\` will be removed in the next major version of ${t}. Please update your props.${p}${u}`;
10
- f && c ? c({ message: i }) : e(!f, i), n[d] = f;
11
- }
12
- };
13
- }
14
- var n = t;
15
- //#endregion
16
- export { n as default };
17
-
18
- //# sourceMappingURL=deprecated-property-value.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deprecated-property-value.js","names":[],"sources":["../../../../utilities/warning/deprecated-property-value.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n/* eslint-disable max-len */\n\n// This function will deliver an error message to the browser console about the future of a removal and moving of a property's valid value to another prop. This makes the most sense to be used with `oneOf` prop types.\nimport warning from 'warning';\n\nlet deprecated = function deprecatedFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = {};\n\n\tdeprecated = function deprecatedFunction(\n\t\tcontrol,\n\t\t{\n\t\t\tpropAsString, // key name of prop being warned about\n\t\t\tpropValue, // actual value of prop being warned about\n\t\t\tdeprecatedPropValue, // value that is being deprecated\n\t\t\treplacementPropAsString, // prop that value is being moved to\n\t\t\treplacementPropAsValue, // value that should be used in new prop\n\t\t\tlog, // log function that will disable console warning and pipe to another function log({ message })\n\t\t},\n\t\tcomment\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tconst warnOnFirstOccurrenceKey =\n\t\t\tcontrol + propAsString + deprecatedPropValue;\n\t\tconst triggerWarning = propValue === deprecatedPropValue;\n\t\tconst replacementSentence =\n\t\t\tdeprecatedPropValue && replacementPropAsString && replacementPropAsValue\n\t\t\t\t? ` Replace \\`${propAsString}=\"${deprecatedPropValue}\"\\` with \\`${replacementPropAsString}=\"${replacementPropAsValue}\"\\`.`\n\t\t\t\t: '';\n\n\t\tif (!hasWarned[warnOnFirstOccurrenceKey]) {\n\t\t\tconst message = `[Design System React] The value of \\`${deprecatedPropValue}\\`, for prop \\`${propAsString}\\` will be removed in the next major version of ${control}. Please update your props.${replacementSentence}${additionalComment}`;\n\n\t\t\tif (triggerWarning && log) {\n\t\t\t\tlog({ message });\n\t\t\t} else {\n\t\t\t\twarning(\n\t\t\t\t\t!triggerWarning, // false value triggers warning\n\t\t\t\t\tmessage\n\t\t\t\t);\n\t\t\t}\n\t\t\t// store global flag to limit warnings to first issue\n\t\t\thasWarned[warnOnFirstOccurrenceKey] = triggerWarning;\n\t\t}\n\t};\n}\n\nexport default deprecated;\n"],"mappings":";;AASA,IAAI,IAAa,WAA8B,CAAC;AAEhD,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,CAAC;CAEnB,IAAa,SACZ,GACA,EACC,iBACA,cACA,wBACA,4BACA,2BACA,UAED,GACC;EACD,IAAM,IAAoB,IAAU,IAAI,MAAY,IAC9C,IACL,IAAU,IAAe,GACpB,IAAiB,MAAc,GAC/B,IACL,KAAuB,KAA2B,IAC/C,cAAc,EAAa,IAAI,EAAoB,aAAa,EAAwB,IAAI,EAAuB,QACnH;EAEJ,IAAI,CAAC,EAAU,IAA2B;GACzC,IAAM,IAAU,wCAAwC,EAAoB,iBAAiB,EAAa,kDAAkD,EAAQ,6BAA6B,IAAsB;GAWvN,AATI,KAAkB,IACrB,EAAI,EAAE,WAAQ,CAAC,IAEf,EACC,CAAC,GACD,CACD,GAGD,EAAU,KAA4B;EACvC;CACD;AACD;AAEA,IAAA,IAAe"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"check-props.d.ts","sourceRoot":"","sources":["../../../../components/avatar/check-props.js"],"names":[],"mappings":"AAOA,QAAA,IAAI,UAAU,YAAmC,CAAC;eAkBnC,UAAU"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"check-props.d.ts","sourceRoot":"","sources":["../../../../components/breadcrumb/check-props.js"],"names":[],"mappings":"AAOA,QAAA,IAAI,UAAU,YAAmC,CAAC;eAkBnC,UAAU"}
@@ -1,3 +0,0 @@
1
- declare let checkProps: () => void;
2
- export default checkProps;
3
- //# sourceMappingURL=check-props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"check-props.d.ts","sourceRoot":"","sources":["../../../../components/button-stateful/check-props.js"],"names":[],"mappings":"AAOA,QAAA,IAAI,UAAU,YAAmC,CAAC;eAmBnC,UAAU"}
@@ -1,4 +0,0 @@
1
- import { type CheckboxProps } from '../../checkbox';
2
- declare const OldCheckbox: (props: CheckboxProps) => import("react").JSX.Element;
3
- export default OldCheckbox;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../components/forms/checkbox/index.tsx"],"names":[],"mappings":"AAIA,OAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE9D,QAAA,MAAM,WAAW,UAAW,aAAa,gCAExC,CAAC;eAEa,WAAW"}
@@ -1,2 +0,0 @@
1
- export * from './checkbox/index';
2
- export { default } from './checkbox/index';
@@ -1,3 +0,0 @@
1
- declare let checkProps: () => void;
2
- export default checkProps;
3
- //# sourceMappingURL=inline-check-props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inline-check-props.d.ts","sourceRoot":"","sources":["../../../../../components/forms/input/inline-check-props.js"],"names":[],"mappings":"AAOA,QAAA,IAAI,UAAU,YAAmC,CAAC;eAYnC,UAAU"}
@@ -1,88 +0,0 @@
1
- import React from 'react';
2
- import { type InputType } from '../../input/index';
3
- /** Options passed when leaving edit mode. */
4
- interface EndEditOption {
5
- cancel?: boolean;
6
- }
7
- export interface InlineEditProps {
8
- /**
9
- * Assistive text for the edit trigger button's icon.
10
- */
11
- assistiveText?: string;
12
- /**
13
- * Class names to be added to the outer container of the input.
14
- */
15
- className?: unknown[] | Record<string, unknown> | string;
16
- /**
17
- * Name of the submitted form parameter.
18
- */
19
- name?: string;
20
- /**
21
- * Disables the Inline Edit component and prevents editing the contents.
22
- */
23
- disabled?: boolean;
24
- /**
25
- * Every Inline Edit component must have a unique ID in order to support keyboard navigation and ARIA support.
26
- */
27
- id: string;
28
- /**
29
- * This event fires when the input changes.
30
- */
31
- onChange?: (data: {
32
- value: string | null;
33
- }) => void;
34
- /**
35
- * Function will run when keyup during text edit
36
- */
37
- onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>, data: {
38
- value: string | null;
39
- }) => void;
40
- /**
41
- * Function will run when we enter edit mode
42
- */
43
- onEnterEditMode?: () => void;
44
- /**
45
- * Function will run when we leave edit mode
46
- */
47
- onLeaveEditMode?: (event?: undefined, option?: EndEditOption) => void;
48
- /**
49
- * Typically an Inline Edit component will be of the type text, but like the Input element it includes support for all HTML5 types.
50
- */
51
- type?: InputType;
52
- /**
53
- * Inline Edit is a controlled component, and will always display this value.
54
- */
55
- value: string;
56
- /**
57
- * Additional properties are passed onto the underlying `Input`.
58
- */
59
- [key: string]: unknown;
60
- }
61
- interface InlineEditState {
62
- isEditing: boolean;
63
- value: string | null;
64
- }
65
- /**
66
- * An inline input is rendered as a label by default. When clicked (or tabbed in), it's rendered as an input. When the focus is lost, the current input value is saved and the input is rendered as a label again.
67
- */
68
- declare class InlineEdit extends React.Component<InlineEditProps, InlineEditState> {
69
- static displayName: string;
70
- static defaultProps: Partial<InlineEditProps>;
71
- autoFocus?: boolean;
72
- inputNode: HTMLInputElement | null;
73
- willSave?: ReturnType<typeof setTimeout>;
74
- constructor(props: InlineEditProps);
75
- componentDidUpdate(): void;
76
- endEditMode: (option?: EndEditOption | React.MouseEvent) => void;
77
- handleBlur: () => void;
78
- handleChange: (_event: React.ChangeEvent<HTMLInputElement> | React.MouseEvent | React.KeyboardEvent, data: {
79
- value: string;
80
- }) => void;
81
- handleKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
82
- handleKeyUp: (event: React.KeyboardEvent<HTMLInputElement>) => void;
83
- saveEdits: (option?: EndEditOption) => void;
84
- triggerEditMode: () => void;
85
- render(): React.JSX.Element;
86
- }
87
- export default InlineEdit;
88
- //# sourceMappingURL=inline.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../../../../../components/forms/input/inline.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAO9C,OAAc,EAAmB,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAY3E,6CAA6C;AAC7C,UAAU,aAAa;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC;IACzD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,KAAK,IAAI,CAAC;IACpD;;OAEG;IACH,OAAO,CAAC,EAAE,CACT,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAC5C,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,KAC1B,IAAI,CAAC;IACV;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IACtE;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACvB;AAED,UAAU,eAAe;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAOD;;GAEG;AACH,cAAM,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IACzE,MAAM,CAAC,WAAW,SAAqB;IAEvC,MAAM,CAAC,YAAY,2BAAgB;IAEnC,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAE1C,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;IAEzC,YAAY,KAAK,EAAE,eAAe,EAWjC;IAED,kBAAkB,SAQjB;IAED,WAAW,YAAa,aAAa,GAAG,KAAK,CAAC,UAAU,UActD;IAEF,UAAU,aAOR;IAEF,YAAY,WACH,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,QAC9E;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,UAKtB;IAEF,aAAa,UAAW,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,UAQ3D;IAEF,WAAW,UAAW,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,UAQzD;IAEF,SAAS,YAAa,aAAa,UASjC;IAEF,eAAe,aAWb;IAGF,MAAM,sBAoDL;CACD;eAEc,UAAU"}
@@ -1,3 +0,0 @@
1
- declare let checkProps: () => void;
2
- export default checkProps;
3
- //# sourceMappingURL=check-props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"check-props.d.ts","sourceRoot":"","sources":["../../../../components/modal/check-props.js"],"names":[],"mappings":"AAQA,QAAA,IAAI,UAAU,YAAmC,CAAC;eA6BnC,UAAU"}
@@ -1,14 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- export interface ModalTriggerConfig {
3
- /** Modal heading text. */
4
- title?: ReactNode;
5
- /** Modal footer content. */
6
- footer?: ReactNode | ReactNode[];
7
- /** Modal body content. */
8
- content?: ReactNode;
9
- }
10
- declare const ModalTrigger: {
11
- open: (cfg: ModalTriggerConfig) => void;
12
- };
13
- export default ModalTrigger;
14
- //# sourceMappingURL=trigger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../../../components/modal/trigger.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,MAAM,WAAW,kBAAkB;IAClC,0BAA0B;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;IACjC,0BAA0B;IAC1B,OAAO,CAAC,EAAE,SAAS,CAAC;CACpB;AAKD,QAAA,MAAM,YAAY;IACjB,IAAI,QAAQ,kBAAkB;CA4B9B,CAAC;eAEa,YAAY"}
@@ -1,3 +0,0 @@
1
- declare let checkProps: () => void;
2
- export default checkProps;
3
- //# sourceMappingURL=check-props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"check-props.d.ts","sourceRoot":"","sources":["../../../../components/spinner/check-props.js"],"names":[],"mappings":"AAOA,QAAA,IAAI,UAAU,YAAmC,CAAC;eAmBnC,UAAU"}
@@ -1,3 +0,0 @@
1
- import TabPanel from './panel';
2
- export default TabPanel;
3
- //# sourceMappingURL=pane.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pane.d.ts","sourceRoot":"","sources":["../../../../components/tabs/pane.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,SAAS,CAAC;eAEhB,QAAQ"}
@@ -1,3 +0,0 @@
1
- declare let deprecated: () => void;
2
- export default deprecated;
3
- //# sourceMappingURL=deprecated-event-parameter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deprecated-event-parameter.d.ts","sourceRoot":"","sources":["../../../../utilities/warning/deprecated-event-parameter.js"],"names":[],"mappings":"AASA,QAAA,IAAI,UAAU,YAAmC,CAAC;eAmCnC,UAAU"}