@salesforce/design-system-react 11.0.0-rc.0 → 11.0.0-rc.2

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 (552) hide show
  1. package/README.md +27 -1
  2. package/dist/cjs/components/accordion/index.cjs +1 -1
  3. package/dist/cjs/components/accordion/index.cjs.map +1 -1
  4. package/dist/cjs/components/accordion/panel.cjs.map +1 -1
  5. package/dist/cjs/components/alert/index.cjs +1 -1
  6. package/dist/cjs/components/alert/index.cjs.map +1 -1
  7. package/dist/cjs/components/builder-header/nav-dropdown.cjs.map +1 -1
  8. package/dist/cjs/components/builder-header/nav-link.cjs.map +1 -1
  9. package/dist/cjs/components/builder-header/toolbar.cjs.map +1 -1
  10. package/dist/cjs/components/button/check-props.cjs +1 -1
  11. package/dist/cjs/components/button/check-props.cjs.map +1 -1
  12. package/dist/cjs/components/button/index.cjs +1 -1
  13. package/dist/cjs/components/button/index.cjs.map +1 -1
  14. package/dist/cjs/components/button-stateful/check-props.cjs +1 -1
  15. package/dist/cjs/components/button-stateful/check-props.cjs.map +1 -1
  16. package/dist/cjs/components/button-stateful/index.cjs +1 -1
  17. package/dist/cjs/components/button-stateful/index.cjs.map +1 -1
  18. package/dist/cjs/components/carousel/index.cjs +1 -1
  19. package/dist/cjs/components/carousel/index.cjs.map +1 -1
  20. package/dist/cjs/components/carousel/private/carousel-indicators.cjs.map +1 -1
  21. package/dist/cjs/components/carousel/private/carousel-item.cjs +1 -1
  22. package/dist/cjs/components/carousel/private/carousel-item.cjs.map +1 -1
  23. package/dist/cjs/components/checkbox/check-props.cjs +1 -1
  24. package/dist/cjs/components/checkbox/check-props.cjs.map +1 -1
  25. package/dist/cjs/components/checkbox/index.cjs +1 -1
  26. package/dist/cjs/components/checkbox/index.cjs.map +1 -1
  27. package/dist/cjs/components/color-picker/color-picker.cjs +1 -1
  28. package/dist/cjs/components/color-picker/color-picker.cjs.map +1 -1
  29. package/dist/cjs/components/color-picker/private/custom-color.cjs.map +1 -1
  30. package/dist/cjs/components/color-picker/private/hsv-color.cjs +1 -1
  31. package/dist/cjs/components/color-picker/private/hsv-color.cjs.map +1 -1
  32. package/dist/cjs/components/color-picker/private/swatch-option.cjs +1 -1
  33. package/dist/cjs/components/color-picker/private/swatch-option.cjs.map +1 -1
  34. package/dist/cjs/components/color-picker/private/swatch.cjs +1 -1
  35. package/dist/cjs/components/color-picker/private/swatch.cjs.map +1 -1
  36. package/dist/cjs/components/combobox/combobox.cjs +1 -1
  37. package/dist/cjs/components/combobox/combobox.cjs.map +1 -1
  38. package/dist/cjs/components/combobox/index.cjs +1 -1
  39. package/dist/cjs/components/combobox/index.cjs.map +1 -1
  40. package/dist/cjs/components/combobox/private/menu.cjs +1 -1
  41. package/dist/cjs/components/combobox/private/menu.cjs.map +1 -1
  42. package/dist/cjs/components/date-picker/date-picker.cjs +1 -1
  43. package/dist/cjs/components/date-picker/date-picker.cjs.map +1 -1
  44. package/dist/cjs/components/date-picker/index.cjs.map +1 -1
  45. package/dist/cjs/components/date-picker/private/calendar.cjs.map +1 -1
  46. package/dist/cjs/components/date-picker/private/day.cjs +1 -1
  47. package/dist/cjs/components/date-picker/private/day.cjs.map +1 -1
  48. package/dist/cjs/components/files/file.cjs +1 -8
  49. package/dist/cjs/components/files/file.cjs.map +1 -1
  50. package/dist/cjs/components/files/private/file-actions.cjs +1 -1
  51. package/dist/cjs/components/files/private/file-actions.cjs.map +1 -1
  52. package/dist/cjs/components/files/private/file-figure.cjs +1 -1
  53. package/dist/cjs/components/files/private/file-figure.cjs.map +1 -1
  54. package/dist/cjs/components/filter/filter.cjs +1 -1
  55. package/dist/cjs/components/filter/filter.cjs.map +1 -1
  56. package/dist/cjs/components/icon/check-props.cjs +1 -1
  57. package/dist/cjs/components/icon/check-props.cjs.map +1 -1
  58. package/dist/cjs/components/icon/index.cjs +1 -1
  59. package/dist/cjs/components/icon/index.cjs.map +1 -1
  60. package/dist/cjs/components/icon/input-icon/index.cjs.map +1 -1
  61. package/dist/cjs/components/icon-settings/index.cjs.map +1 -1
  62. package/dist/cjs/components/input/check-props.cjs +1 -1
  63. package/dist/cjs/components/input/check-props.cjs.map +1 -1
  64. package/dist/cjs/components/input/index.cjs.map +1 -1
  65. package/dist/cjs/components/input/private/inner-input.cjs.map +1 -1
  66. package/dist/cjs/components/input/search.cjs.map +1 -1
  67. package/dist/cjs/components/menu-dropdown/button-trigger.cjs.map +1 -1
  68. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs +1 -1
  69. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs.map +1 -1
  70. package/dist/cjs/components/modal/index.cjs +1 -1
  71. package/dist/cjs/components/modal/index.cjs.map +1 -1
  72. package/dist/cjs/components/panel/filtering/group.cjs.map +1 -1
  73. package/dist/cjs/components/pill/index.cjs.map +1 -1
  74. package/dist/cjs/components/pill-container/index.cjs +1 -1
  75. package/dist/cjs/components/pill-container/index.cjs.map +1 -1
  76. package/dist/cjs/components/popover/edit-dialog.cjs.map +1 -1
  77. package/dist/cjs/components/popover/index.cjs.map +1 -1
  78. package/dist/cjs/components/popover/popover.cjs +1 -1
  79. package/dist/cjs/components/popover/popover.cjs.map +1 -1
  80. package/dist/cjs/components/progress-indicator/index.cjs.map +1 -1
  81. package/dist/cjs/components/progress-indicator/private/step.cjs.map +1 -1
  82. package/dist/cjs/components/progress-ring/index.cjs.map +1 -1
  83. package/dist/cjs/components/radio/index.cjs +1 -1
  84. package/dist/cjs/components/radio/index.cjs.map +1 -1
  85. package/dist/cjs/components/radio-group/check-props.cjs.map +1 -1
  86. package/dist/cjs/components/radio-group/index.cjs.map +1 -1
  87. package/dist/cjs/components/scoped-notification/index.cjs.map +1 -1
  88. package/dist/cjs/components/setup-assistant/step.cjs.map +1 -1
  89. package/dist/cjs/components/simple-data-table/cell.cjs +1 -1
  90. package/dist/cjs/components/simple-data-table/cell.cjs.map +1 -1
  91. package/dist/cjs/components/simple-data-table/index.cjs +1 -1
  92. package/dist/cjs/components/simple-data-table/index.cjs.map +1 -1
  93. package/dist/cjs/components/simple-data-table/interactive-element.cjs +1 -1
  94. package/dist/cjs/components/simple-data-table/interactive-element.cjs.map +1 -1
  95. package/dist/cjs/components/simple-data-table/private/cell-context.cjs.map +1 -1
  96. package/dist/cjs/components/simple-data-table/private/corner-style.cjs +2 -0
  97. package/dist/cjs/components/simple-data-table/private/corner-style.cjs.map +1 -0
  98. package/dist/cjs/components/simple-data-table/private/head.cjs +1 -1
  99. package/dist/cjs/components/simple-data-table/private/head.cjs.map +1 -1
  100. package/dist/cjs/components/simple-data-table/private/header-cell.cjs +1 -1
  101. package/dist/cjs/components/simple-data-table/private/header-cell.cjs.map +1 -1
  102. package/dist/cjs/components/simple-data-table/private/link.cjs +1 -1
  103. package/dist/cjs/components/simple-data-table/private/link.cjs.map +1 -1
  104. package/dist/cjs/components/simple-data-table/private/row.cjs +1 -1
  105. package/dist/cjs/components/simple-data-table/private/row.cjs.map +1 -1
  106. package/dist/cjs/components/simple-data-table/row-actions.cjs +1 -1
  107. package/dist/cjs/components/simple-data-table/row-actions.cjs.map +1 -1
  108. package/dist/cjs/components/slider/index.cjs.map +1 -1
  109. package/dist/cjs/components/split-view/header.cjs.map +1 -1
  110. package/dist/cjs/components/split-view/listbox.cjs.map +1 -1
  111. package/dist/cjs/components/split-view/private/list-item-with-content.cjs.map +1 -1
  112. package/dist/cjs/components/tabs/index.cjs.map +1 -1
  113. package/dist/cjs/components/tabs/panel.cjs.map +1 -1
  114. package/dist/cjs/components/tabs/private/tab.cjs +1 -1
  115. package/dist/cjs/components/tabs/private/tab.cjs.map +1 -1
  116. package/dist/cjs/components/textarea/check-props.cjs +1 -1
  117. package/dist/cjs/components/textarea/check-props.cjs.map +1 -1
  118. package/dist/cjs/components/textarea/index.cjs +1 -1
  119. package/dist/cjs/components/textarea/index.cjs.map +1 -1
  120. package/dist/cjs/components/toast/index.cjs.map +1 -1
  121. package/dist/cjs/components/tooltip/index.cjs +1 -3
  122. package/dist/cjs/components/tooltip/index.cjs.map +1 -1
  123. package/dist/cjs/components/tree/private/branch.cjs.map +1 -1
  124. package/dist/cjs/components/tree/private/item.cjs.map +1 -1
  125. package/dist/cjs/components/tree/private/render-branch.cjs +1 -1
  126. package/dist/cjs/components/tree/private/render-branch.cjs.map +1 -1
  127. package/dist/cjs/components/tree/tree.cjs.map +1 -1
  128. package/dist/cjs/components/trial-bar/button.cjs.map +1 -1
  129. package/dist/cjs/components/trial-bar/dropdown.cjs.map +1 -1
  130. package/dist/cjs/components/utilities/dialog/index.cjs +1 -1
  131. package/dist/cjs/components/utilities/dialog/index.cjs.map +1 -1
  132. package/dist/cjs/components/utilities/dialog/portal.cjs +1 -1
  133. package/dist/cjs/components/utilities/dialog/portal.cjs.map +1 -1
  134. package/dist/cjs/components/utilities/menu-list/index.cjs +1 -26
  135. package/dist/cjs/components/utilities/menu-list/index.cjs.map +1 -1
  136. package/dist/cjs/components/utilities/menu-list/item-label.cjs.map +1 -1
  137. package/dist/cjs/components/utilities/menu-list/item.cjs +1 -1
  138. package/dist/cjs/components/utilities/menu-list/item.cjs.map +1 -1
  139. package/dist/cjs/components/utilities/utility-icon/index.cjs +1 -1
  140. package/dist/cjs/components/utilities/utility-icon/index.cjs.map +1 -1
  141. package/dist/cjs/utilities/color.cjs +1 -1
  142. package/dist/cjs/utilities/color.cjs.map +1 -1
  143. package/dist/cjs/utilities/dom-element-focus.cjs.map +1 -1
  144. package/dist/cjs/utilities/execution-environment.cjs.map +1 -1
  145. package/dist/cjs/utilities/get-aria-props.cjs +1 -1
  146. package/dist/cjs/utilities/get-aria-props.cjs.map +1 -1
  147. package/dist/cjs/utilities/get-component-doc.cjs +1 -1
  148. package/dist/cjs/utilities/get-component-doc.cjs.map +1 -1
  149. package/dist/cjs/utilities/get-data-props.cjs +1 -1
  150. package/dist/cjs/utilities/get-data-props.cjs.map +1 -1
  151. package/dist/cjs/utilities/keyboard-navigable-dialog.cjs +1 -1
  152. package/dist/cjs/utilities/keyboard-navigable-dialog.cjs.map +1 -1
  153. package/dist/cjs/utilities/keyboard-navigate.cjs +1 -1
  154. package/dist/cjs/utilities/keyboard-navigate.cjs.map +1 -1
  155. package/dist/cjs/utilities/product-tokens/icon-backgrounds.cjs.map +1 -1
  156. package/dist/cjs/utilities/warning/children-as-trigger.cjs +1 -1
  157. package/dist/cjs/utilities/warning/children-as-trigger.cjs.map +1 -1
  158. package/dist/cjs/utilities/warning/deprecated-property-value.cjs +1 -1
  159. package/dist/cjs/utilities/warning/deprecated-property-value.cjs.map +1 -1
  160. package/dist/cjs/utilities/warning/deprecated-property.cjs +1 -1
  161. package/dist/cjs/utilities/warning/deprecated-property.cjs.map +1 -1
  162. package/dist/cjs/utilities/warning/has-children-without-display-name-of.cjs +1 -1
  163. package/dist/cjs/utilities/warning/has-children-without-display-name-of.cjs.map +1 -1
  164. package/dist/cjs/utilities/warning/if-one-then-both-required-property.cjs +1 -1
  165. package/dist/cjs/utilities/warning/if-one-then-both-required-property.cjs.map +1 -1
  166. package/dist/cjs/utilities/warning/is-trigger-tabbable.cjs +1 -1
  167. package/dist/cjs/utilities/warning/is-trigger-tabbable.cjs.map +1 -1
  168. package/dist/cjs/utilities/warning/low-priority-warning.cjs.map +1 -1
  169. package/dist/cjs/utilities/warning/one-of-required-property.cjs +1 -1
  170. package/dist/cjs/utilities/warning/one-of-required-property.cjs.map +1 -1
  171. package/dist/cjs/utilities/warning/only-one-of-properties.cjs +1 -1
  172. package/dist/cjs/utilities/warning/only-one-of-properties.cjs.map +1 -1
  173. package/dist/cjs/utilities/warning/removal-version.cjs +2 -0
  174. package/dist/cjs/utilities/warning/removal-version.cjs.map +1 -0
  175. package/dist/cjs/utilities/warning/render-function-return-contents-lack-display-name.cjs +1 -1
  176. package/dist/cjs/utilities/warning/render-function-return-contents-lack-display-name.cjs.map +1 -1
  177. package/dist/cjs/utilities/warning/required-property.cjs +1 -1
  178. package/dist/cjs/utilities/warning/required-property.cjs.map +1 -1
  179. package/dist/cjs/utilities/warning/sunset-property.cjs +1 -1
  180. package/dist/cjs/utilities/warning/sunset-property.cjs.map +1 -1
  181. package/dist/cjs/utilities/warning/warned-registry.cjs +2 -0
  182. package/dist/cjs/utilities/warning/warned-registry.cjs.map +1 -0
  183. package/dist/es/components/accordion/index.js +7 -3
  184. package/dist/es/components/accordion/index.js.map +1 -1
  185. package/dist/es/components/accordion/panel.js.map +1 -1
  186. package/dist/es/components/alert/index.js +4 -5
  187. package/dist/es/components/alert/index.js.map +1 -1
  188. package/dist/es/components/builder-header/nav-dropdown.js.map +1 -1
  189. package/dist/es/components/builder-header/nav-link.js.map +1 -1
  190. package/dist/es/components/builder-header/toolbar.js.map +1 -1
  191. package/dist/es/components/button/check-props.js +1 -1
  192. package/dist/es/components/button/check-props.js.map +1 -1
  193. package/dist/es/components/button/index.js +50 -50
  194. package/dist/es/components/button/index.js.map +1 -1
  195. package/dist/es/components/button-stateful/check-props.js +1 -1
  196. package/dist/es/components/button-stateful/check-props.js.map +1 -1
  197. package/dist/es/components/button-stateful/index.js +3 -2
  198. package/dist/es/components/button-stateful/index.js.map +1 -1
  199. package/dist/es/components/carousel/index.js +155 -129
  200. package/dist/es/components/carousel/index.js.map +1 -1
  201. package/dist/es/components/carousel/private/carousel-indicators.js.map +1 -1
  202. package/dist/es/components/carousel/private/carousel-item.js +1 -1
  203. package/dist/es/components/carousel/private/carousel-item.js.map +1 -1
  204. package/dist/es/components/checkbox/check-props.js +1 -1
  205. package/dist/es/components/checkbox/check-props.js.map +1 -1
  206. package/dist/es/components/checkbox/index.js +102 -100
  207. package/dist/es/components/checkbox/index.js.map +1 -1
  208. package/dist/es/components/color-picker/color-picker.js +150 -151
  209. package/dist/es/components/color-picker/color-picker.js.map +1 -1
  210. package/dist/es/components/color-picker/private/custom-color.js.map +1 -1
  211. package/dist/es/components/color-picker/private/hsv-color.js +16 -20
  212. package/dist/es/components/color-picker/private/hsv-color.js.map +1 -1
  213. package/dist/es/components/color-picker/private/swatch-option.js +2 -2
  214. package/dist/es/components/color-picker/private/swatch-option.js.map +1 -1
  215. package/dist/es/components/color-picker/private/swatch.js +1 -1
  216. package/dist/es/components/color-picker/private/swatch.js.map +1 -1
  217. package/dist/es/components/combobox/combobox.js +569 -582
  218. package/dist/es/components/combobox/combobox.js.map +1 -1
  219. package/dist/es/components/combobox/index.js +6 -19
  220. package/dist/es/components/combobox/index.js.map +1 -1
  221. package/dist/es/components/combobox/private/menu.js +3 -3
  222. package/dist/es/components/combobox/private/menu.js.map +1 -1
  223. package/dist/es/components/date-picker/date-picker.js +101 -102
  224. package/dist/es/components/date-picker/date-picker.js.map +1 -1
  225. package/dist/es/components/date-picker/index.js.map +1 -1
  226. package/dist/es/components/date-picker/private/calendar.js.map +1 -1
  227. package/dist/es/components/date-picker/private/day.js +1 -1
  228. package/dist/es/components/date-picker/private/day.js.map +1 -1
  229. package/dist/es/components/files/file.js +5 -6
  230. package/dist/es/components/files/file.js.map +1 -1
  231. package/dist/es/components/files/private/file-actions.js +2 -2
  232. package/dist/es/components/files/private/file-actions.js.map +1 -1
  233. package/dist/es/components/files/private/file-figure.js +1 -1
  234. package/dist/es/components/files/private/file-figure.js.map +1 -1
  235. package/dist/es/components/filter/filter.js +5 -1
  236. package/dist/es/components/filter/filter.js.map +1 -1
  237. package/dist/es/components/icon/check-props.js +9 -7
  238. package/dist/es/components/icon/check-props.js.map +1 -1
  239. package/dist/es/components/icon/index.js +13 -10
  240. package/dist/es/components/icon/index.js.map +1 -1
  241. package/dist/es/components/icon/input-icon/index.js.map +1 -1
  242. package/dist/es/components/icon-settings/index.js.map +1 -1
  243. package/dist/es/components/input/check-props.js +14 -13
  244. package/dist/es/components/input/check-props.js.map +1 -1
  245. package/dist/es/components/input/index.js.map +1 -1
  246. package/dist/es/components/input/private/inner-input.js.map +1 -1
  247. package/dist/es/components/input/search.js.map +1 -1
  248. package/dist/es/components/menu-dropdown/button-trigger.js.map +1 -1
  249. package/dist/es/components/menu-dropdown/menu-dropdown.js +202 -207
  250. package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
  251. package/dist/es/components/modal/index.js +1 -2
  252. package/dist/es/components/modal/index.js.map +1 -1
  253. package/dist/es/components/panel/filtering/group.js.map +1 -1
  254. package/dist/es/components/pill/index.js.map +1 -1
  255. package/dist/es/components/pill-container/index.js +10 -6
  256. package/dist/es/components/pill-container/index.js.map +1 -1
  257. package/dist/es/components/popover/edit-dialog.js.map +1 -1
  258. package/dist/es/components/popover/index.js.map +1 -1
  259. package/dist/es/components/popover/popover.js +181 -177
  260. package/dist/es/components/popover/popover.js.map +1 -1
  261. package/dist/es/components/progress-indicator/index.js.map +1 -1
  262. package/dist/es/components/progress-indicator/private/step.js.map +1 -1
  263. package/dist/es/components/progress-ring/index.js.map +1 -1
  264. package/dist/es/components/radio/index.js +1 -1
  265. package/dist/es/components/radio/index.js.map +1 -1
  266. package/dist/es/components/radio-group/check-props.js.map +1 -1
  267. package/dist/es/components/radio-group/index.js.map +1 -1
  268. package/dist/es/components/scoped-notification/index.js.map +1 -1
  269. package/dist/es/components/setup-assistant/step.js.map +1 -1
  270. package/dist/es/components/simple-data-table/cell.js +8 -5
  271. package/dist/es/components/simple-data-table/cell.js.map +1 -1
  272. package/dist/es/components/simple-data-table/index.js +97 -91
  273. package/dist/es/components/simple-data-table/index.js.map +1 -1
  274. package/dist/es/components/simple-data-table/interactive-element.js +31 -28
  275. package/dist/es/components/simple-data-table/interactive-element.js.map +1 -1
  276. package/dist/es/components/simple-data-table/private/cell-context.js.map +1 -1
  277. package/dist/es/components/simple-data-table/private/corner-style.js +9 -0
  278. package/dist/es/components/simple-data-table/private/corner-style.js.map +1 -0
  279. package/dist/es/components/simple-data-table/private/head.js +65 -42
  280. package/dist/es/components/simple-data-table/private/head.js.map +1 -1
  281. package/dist/es/components/simple-data-table/private/header-cell.js +2 -1
  282. package/dist/es/components/simple-data-table/private/header-cell.js.map +1 -1
  283. package/dist/es/components/simple-data-table/private/link.js.map +1 -1
  284. package/dist/es/components/simple-data-table/private/row.js +96 -60
  285. package/dist/es/components/simple-data-table/private/row.js.map +1 -1
  286. package/dist/es/components/simple-data-table/row-actions.js +4 -1
  287. package/dist/es/components/simple-data-table/row-actions.js.map +1 -1
  288. package/dist/es/components/slider/index.js.map +1 -1
  289. package/dist/es/components/split-view/header.js.map +1 -1
  290. package/dist/es/components/split-view/listbox.js.map +1 -1
  291. package/dist/es/components/split-view/private/list-item-with-content.js.map +1 -1
  292. package/dist/es/components/tabs/index.js.map +1 -1
  293. package/dist/es/components/tabs/panel.js.map +1 -1
  294. package/dist/es/components/tabs/private/tab.js +1 -1
  295. package/dist/es/components/tabs/private/tab.js.map +1 -1
  296. package/dist/es/components/textarea/check-props.js +1 -1
  297. package/dist/es/components/textarea/check-props.js.map +1 -1
  298. package/dist/es/components/textarea/index.js +29 -42
  299. package/dist/es/components/textarea/index.js.map +1 -1
  300. package/dist/es/components/toast/index.js.map +1 -1
  301. package/dist/es/components/tooltip/index.js +107 -88
  302. package/dist/es/components/tooltip/index.js.map +1 -1
  303. package/dist/es/components/tree/private/branch.js.map +1 -1
  304. package/dist/es/components/tree/private/item.js.map +1 -1
  305. package/dist/es/components/tree/private/render-branch.js +14 -19
  306. package/dist/es/components/tree/private/render-branch.js.map +1 -1
  307. package/dist/es/components/tree/tree.js.map +1 -1
  308. package/dist/es/components/trial-bar/button.js.map +1 -1
  309. package/dist/es/components/trial-bar/dropdown.js.map +1 -1
  310. package/dist/es/components/utilities/dialog/index.js +2 -1
  311. package/dist/es/components/utilities/dialog/index.js.map +1 -1
  312. package/dist/es/components/utilities/dialog/portal.js +5 -3
  313. package/dist/es/components/utilities/dialog/portal.js.map +1 -1
  314. package/dist/es/components/utilities/menu-list/index.js +6 -6
  315. package/dist/es/components/utilities/menu-list/index.js.map +1 -1
  316. package/dist/es/components/utilities/menu-list/item-label.js.map +1 -1
  317. package/dist/es/components/utilities/menu-list/item.js +42 -18
  318. package/dist/es/components/utilities/menu-list/item.js.map +1 -1
  319. package/dist/es/components/utilities/utility-icon/index.js +32 -52
  320. package/dist/es/components/utilities/utility-icon/index.js.map +1 -1
  321. package/dist/es/utilities/color.js +1 -1
  322. package/dist/es/utilities/color.js.map +1 -1
  323. package/dist/es/utilities/dom-element-focus.js.map +1 -1
  324. package/dist/es/utilities/execution-environment.js.map +1 -1
  325. package/dist/es/utilities/get-aria-props.js +1 -1
  326. package/dist/es/utilities/get-aria-props.js.map +1 -1
  327. package/dist/es/utilities/get-component-doc.js +6 -6
  328. package/dist/es/utilities/get-component-doc.js.map +1 -1
  329. package/dist/es/utilities/get-data-props.js +1 -1
  330. package/dist/es/utilities/get-data-props.js.map +1 -1
  331. package/dist/es/utilities/keyboard-navigable-dialog.js +7 -7
  332. package/dist/es/utilities/keyboard-navigable-dialog.js.map +1 -1
  333. package/dist/es/utilities/keyboard-navigate.js +1 -1
  334. package/dist/es/utilities/keyboard-navigate.js.map +1 -1
  335. package/dist/es/utilities/product-tokens/icon-backgrounds.js.map +1 -1
  336. package/dist/es/utilities/warning/children-as-trigger.js +10 -8
  337. package/dist/es/utilities/warning/children-as-trigger.js.map +1 -1
  338. package/dist/es/utilities/warning/deprecated-property-value.js +12 -10
  339. package/dist/es/utilities/warning/deprecated-property-value.js.map +1 -1
  340. package/dist/es/utilities/warning/deprecated-property.js +10 -8
  341. package/dist/es/utilities/warning/deprecated-property.js.map +1 -1
  342. package/dist/es/utilities/warning/has-children-without-display-name-of.js +11 -10
  343. package/dist/es/utilities/warning/has-children-without-display-name-of.js.map +1 -1
  344. package/dist/es/utilities/warning/if-one-then-both-required-property.js +10 -9
  345. package/dist/es/utilities/warning/if-one-then-both-required-property.js.map +1 -1
  346. package/dist/es/utilities/warning/is-trigger-tabbable.js +9 -8
  347. package/dist/es/utilities/warning/is-trigger-tabbable.js.map +1 -1
  348. package/dist/es/utilities/warning/low-priority-warning.js.map +1 -1
  349. package/dist/es/utilities/warning/one-of-required-property.js +11 -10
  350. package/dist/es/utilities/warning/one-of-required-property.js.map +1 -1
  351. package/dist/es/utilities/warning/only-one-of-properties.js +9 -8
  352. package/dist/es/utilities/warning/only-one-of-properties.js.map +1 -1
  353. package/dist/es/utilities/warning/removal-version.js +6 -0
  354. package/dist/es/utilities/warning/removal-version.js.map +1 -0
  355. package/dist/es/utilities/warning/render-function-return-contents-lack-display-name.js +14 -13
  356. package/dist/es/utilities/warning/render-function-return-contents-lack-display-name.js.map +1 -1
  357. package/dist/es/utilities/warning/required-property.js +8 -7
  358. package/dist/es/utilities/warning/required-property.js.map +1 -1
  359. package/dist/es/utilities/warning/sunset-property.js +8 -7
  360. package/dist/es/utilities/warning/sunset-property.js.map +1 -1
  361. package/dist/es/utilities/warning/warned-registry.js +10 -0
  362. package/dist/es/utilities/warning/warned-registry.js.map +1 -0
  363. package/dist/llms/components/accordion.md +267 -0
  364. package/dist/llms/components/alert.md +228 -0
  365. package/dist/llms/components/avatar.md +167 -0
  366. package/dist/llms/components/badge.md +153 -0
  367. package/dist/llms/components/breadcrumb.md +148 -0
  368. package/dist/llms/components/builder-header.examples.md +239 -0
  369. package/dist/llms/components/builder-header.md +736 -0
  370. package/dist/llms/components/button-group.md +167 -0
  371. package/dist/llms/components/button-stateful.md +246 -0
  372. package/dist/llms/components/button.md +661 -0
  373. package/dist/llms/components/card.md +368 -0
  374. package/dist/llms/components/carousel.md +365 -0
  375. package/dist/llms/components/checkbox.md +887 -0
  376. package/dist/llms/components/color-picker.md +591 -0
  377. package/dist/llms/components/combobox.examples.md +802 -0
  378. package/dist/llms/components/combobox.md +929 -0
  379. package/dist/llms/components/date-picker.md +546 -0
  380. package/dist/llms/components/docked-composer.md +173 -0
  381. package/dist/llms/components/dynamic-icon.md +226 -0
  382. package/dist/llms/components/expandable-section.md +198 -0
  383. package/dist/llms/components/files.md +337 -0
  384. package/dist/llms/components/filter.md +775 -0
  385. package/dist/llms/components/icon-settings.md +301 -0
  386. package/dist/llms/components/icon.md +1040 -0
  387. package/dist/llms/components/input.md +746 -0
  388. package/dist/llms/components/media-object.md +125 -0
  389. package/dist/llms/components/menu-dropdown.md +732 -0
  390. package/dist/llms/components/modal.md +504 -0
  391. package/dist/llms/components/page-header.md +282 -0
  392. package/dist/llms/components/panel.md +256 -0
  393. package/dist/llms/components/pill-container.md +218 -0
  394. package/dist/llms/components/pill.md +266 -0
  395. package/dist/llms/components/popover.md +600 -0
  396. package/dist/llms/components/portal-settings.md +371 -0
  397. package/dist/llms/components/progress-bar.md +175 -0
  398. package/dist/llms/components/progress-indicator.md +399 -0
  399. package/dist/llms/components/progress-ring.md +146 -0
  400. package/dist/llms/components/radio-button-group.md +285 -0
  401. package/dist/llms/components/radio-group.md +242 -0
  402. package/dist/llms/components/radio.md +269 -0
  403. package/dist/llms/components/scoped-notification.md +156 -0
  404. package/dist/llms/components/setup-assistant.md +398 -0
  405. package/dist/llms/components/simple-data-table.examples.md +2773 -0
  406. package/dist/llms/components/simple-data-table.md +919 -0
  407. package/dist/llms/components/slider.md +217 -0
  408. package/dist/llms/components/spinner.md +232 -0
  409. package/dist/llms/components/split-view.md +350 -0
  410. package/dist/llms/components/tabs.md +311 -0
  411. package/dist/llms/components/textarea.md +331 -0
  412. package/dist/llms/components/toast.md +267 -0
  413. package/dist/llms/components/tooltip.md +470 -0
  414. package/dist/llms/components/tree.md +1011 -0
  415. package/dist/llms/components/trial-bar.md +383 -0
  416. package/dist/llms/components/vertical-navigation.md +196 -0
  417. package/dist/llms/components/visual-picker.md +362 -0
  418. package/dist/llms/components/welcome-mat.md +885 -0
  419. package/dist/llms/docs/migration-v11.md +471 -0
  420. package/dist/llms/llms-full.txt +6874 -0
  421. package/dist/llms/llms.txt +133 -0
  422. package/dist/llms/rules.md +36 -0
  423. package/dist/types/components/accordion/index.d.ts.map +1 -1
  424. package/dist/types/components/accordion/panel.d.ts +7 -7
  425. package/dist/types/components/builder-header/nav-dropdown.d.ts +1 -0
  426. package/dist/types/components/builder-header/nav-dropdown.d.ts.map +1 -1
  427. package/dist/types/components/builder-header/nav-link.d.ts +0 -1
  428. package/dist/types/components/builder-header/nav-link.d.ts.map +1 -1
  429. package/dist/types/components/builder-header/toolbar.d.ts +0 -1
  430. package/dist/types/components/builder-header/toolbar.d.ts.map +1 -1
  431. package/dist/types/components/button/index.d.ts +19 -6
  432. package/dist/types/components/button/index.d.ts.map +1 -1
  433. package/dist/types/components/button-stateful/index.d.ts +8 -2
  434. package/dist/types/components/button-stateful/index.d.ts.map +1 -1
  435. package/dist/types/components/carousel/index.d.ts +7 -1
  436. package/dist/types/components/carousel/index.d.ts.map +1 -1
  437. package/dist/types/components/checkbox/index.d.ts +22 -5
  438. package/dist/types/components/checkbox/index.d.ts.map +1 -1
  439. package/dist/types/components/color-picker/color-picker.d.ts +6 -4
  440. package/dist/types/components/color-picker/color-picker.d.ts.map +1 -1
  441. package/dist/types/components/color-picker/types.d.ts +2 -2
  442. package/dist/types/components/combobox/combobox.d.ts +22 -0
  443. package/dist/types/components/combobox/combobox.d.ts.map +1 -1
  444. package/dist/types/components/combobox/index.d.ts +1 -1
  445. package/dist/types/components/combobox/index.d.ts.map +1 -1
  446. package/dist/types/components/date-picker/date-picker.d.ts +16 -4
  447. package/dist/types/components/date-picker/date-picker.d.ts.map +1 -1
  448. package/dist/types/components/date-picker/index.d.ts +2 -6
  449. package/dist/types/components/date-picker/index.d.ts.map +1 -1
  450. package/dist/types/components/files/file.d.ts +5 -0
  451. package/dist/types/components/files/file.d.ts.map +1 -1
  452. package/dist/types/components/icon/index.d.ts +8 -1
  453. package/dist/types/components/icon/index.d.ts.map +1 -1
  454. package/dist/types/components/icon/input-icon/index.d.ts +3 -0
  455. package/dist/types/components/icon/input-icon/index.d.ts.map +1 -1
  456. package/dist/types/components/icon-settings/index.d.ts.map +1 -1
  457. package/dist/types/components/input/index.d.ts +10 -6
  458. package/dist/types/components/input/index.d.ts.map +1 -1
  459. package/dist/types/components/input/search.d.ts.map +1 -1
  460. package/dist/types/components/menu-dropdown/button-trigger.d.ts +5 -0
  461. package/dist/types/components/menu-dropdown/button-trigger.d.ts.map +1 -1
  462. package/dist/types/components/menu-dropdown/menu-dropdown.d.ts +13 -3
  463. package/dist/types/components/menu-dropdown/menu-dropdown.d.ts.map +1 -1
  464. package/dist/types/components/modal/index.d.ts +5 -5
  465. package/dist/types/components/modal/index.d.ts.map +1 -1
  466. package/dist/types/components/page-header/types.d.ts +3 -0
  467. package/dist/types/components/page-header/types.d.ts.map +1 -1
  468. package/dist/types/components/panel/filtering/group.d.ts +2 -0
  469. package/dist/types/components/panel/filtering/group.d.ts.map +1 -1
  470. package/dist/types/components/pill/index.d.ts +1 -0
  471. package/dist/types/components/pill/index.d.ts.map +1 -1
  472. package/dist/types/components/popover/edit-dialog.d.ts +1 -3
  473. package/dist/types/components/popover/edit-dialog.d.ts.map +1 -1
  474. package/dist/types/components/popover/index.d.ts.map +1 -1
  475. package/dist/types/components/popover/popover.d.ts +1 -0
  476. package/dist/types/components/popover/popover.d.ts.map +1 -1
  477. package/dist/types/components/progress-indicator/index.d.ts +1 -0
  478. package/dist/types/components/progress-indicator/index.d.ts.map +1 -1
  479. package/dist/types/components/progress-ring/index.d.ts +1 -0
  480. package/dist/types/components/progress-ring/index.d.ts.map +1 -1
  481. package/dist/types/components/radio/index.d.ts +11 -4
  482. package/dist/types/components/radio/index.d.ts.map +1 -1
  483. package/dist/types/components/radio-group/index.d.ts +5 -3
  484. package/dist/types/components/radio-group/index.d.ts.map +1 -1
  485. package/dist/types/components/scoped-notification/index.d.ts +1 -0
  486. package/dist/types/components/scoped-notification/index.d.ts.map +1 -1
  487. package/dist/types/components/setup-assistant/step.d.ts +0 -1
  488. package/dist/types/components/setup-assistant/step.d.ts.map +1 -1
  489. package/dist/types/components/simple-data-table/cell.d.ts.map +1 -1
  490. package/dist/types/components/simple-data-table/index.d.ts.map +1 -1
  491. package/dist/types/components/simple-data-table/interactive-element.d.ts +8 -1
  492. package/dist/types/components/simple-data-table/interactive-element.d.ts.map +1 -1
  493. package/dist/types/components/simple-data-table/types.d.ts +11 -2
  494. package/dist/types/components/simple-data-table/types.d.ts.map +1 -1
  495. package/dist/types/components/slider/index.d.ts +6 -4
  496. package/dist/types/components/slider/index.d.ts.map +1 -1
  497. package/dist/types/components/split-view/listbox.d.ts.map +1 -1
  498. package/dist/types/components/split-view/private/list-item-with-content.d.ts.map +1 -1
  499. package/dist/types/components/tabs/index.d.ts +1 -0
  500. package/dist/types/components/tabs/index.d.ts.map +1 -1
  501. package/dist/types/components/tabs/panel.d.ts +2 -1
  502. package/dist/types/components/tabs/panel.d.ts.map +1 -1
  503. package/dist/types/components/textarea/index.d.ts +12 -40
  504. package/dist/types/components/textarea/index.d.ts.map +1 -1
  505. package/dist/types/components/toast/index.d.ts.map +1 -1
  506. package/dist/types/components/tooltip/index.d.ts +5 -0
  507. package/dist/types/components/tooltip/index.d.ts.map +1 -1
  508. package/dist/types/components/tree/tree.d.ts +5 -0
  509. package/dist/types/components/tree/tree.d.ts.map +1 -1
  510. package/dist/types/components/utilities/dialog/portal.d.ts.map +1 -1
  511. package/dist/types/components/utilities/menu-list/index.d.ts +2 -2
  512. package/dist/types/components/utilities/menu-list/index.d.ts.map +1 -1
  513. package/dist/types/components/utilities/menu-list/item-label.d.ts +12 -0
  514. package/dist/types/components/utilities/menu-list/item-label.d.ts.map +1 -1
  515. package/dist/types/components/utilities/menu-list/item.d.ts +14 -1
  516. package/dist/types/components/utilities/menu-list/item.d.ts.map +1 -1
  517. package/dist/types/components/utilities/truncate/index.d.ts.map +1 -1
  518. package/dist/types/components/utilities/utility-icon/index.d.ts +1 -1
  519. package/dist/types/components/utilities/utility-icon/index.d.ts.map +1 -1
  520. package/dist/types/types/common.d.ts.map +1 -1
  521. package/dist/types/types/components.d.ts.map +1 -1
  522. package/package.json +9 -7
  523. package/dist/cjs/icons/action/index.cjs +0 -2
  524. package/dist/cjs/icons/action/index.cjs.map +0 -1
  525. package/dist/cjs/icons/custom/index.cjs +0 -2
  526. package/dist/cjs/icons/custom/index.cjs.map +0 -1
  527. package/dist/cjs/icons/doctype/index.cjs +0 -2
  528. package/dist/cjs/icons/doctype/index.cjs.map +0 -1
  529. package/dist/cjs/icons/standard/index.cjs +0 -2
  530. package/dist/cjs/icons/standard/index.cjs.map +0 -1
  531. package/dist/cjs/icons/utility/index.cjs +0 -2
  532. package/dist/cjs/icons/utility/index.cjs.map +0 -1
  533. package/dist/es/icons/action/index.js +0 -6
  534. package/dist/es/icons/action/index.js.map +0 -1
  535. package/dist/es/icons/custom/index.js +0 -6
  536. package/dist/es/icons/custom/index.js.map +0 -1
  537. package/dist/es/icons/doctype/index.js +0 -6
  538. package/dist/es/icons/doctype/index.js.map +0 -1
  539. package/dist/es/icons/standard/index.js +0 -6
  540. package/dist/es/icons/standard/index.js.map +0 -1
  541. package/dist/es/icons/utility/index.js +0 -6
  542. package/dist/es/icons/utility/index.js.map +0 -1
  543. package/dist/types/icons/action/index.d.ts +0 -3
  544. package/dist/types/icons/action/index.d.ts.map +0 -1
  545. package/dist/types/icons/custom/index.d.ts +0 -3
  546. package/dist/types/icons/custom/index.d.ts.map +0 -1
  547. package/dist/types/icons/doctype/index.d.ts +0 -3
  548. package/dist/types/icons/doctype/index.d.ts.map +0 -1
  549. package/dist/types/icons/standard/index.d.ts +0 -3
  550. package/dist/types/icons/standard/index.d.ts.map +0 -1
  551. package/dist/types/icons/utility/index.d.ts +0 -3
  552. package/dist/types/icons/utility/index.d.ts.map +0 -1
@@ -1,18 +1,20 @@
1
- import e from "warning";
1
+ import { createWarnedMap as e } from "./warned-registry.js";
2
+ import { REMOVAL_VERSION as t } from "./removal-version.js";
3
+ import n from "warning";
2
4
  //#region utilities/warning/deprecated-property-value.js
3
- var t = function() {};
5
+ var r = function() {};
4
6
  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;
7
+ let i = e();
8
+ r = function(e, { propAsString: r, propValue: a, deprecatedPropValue: o, replacementPropAsString: s, replacementPropAsValue: c, log: l }, u) {
9
+ let d = u ? ` ${u}` : "", f = e + r + o, p = a === o, m = o && s && c ? ` Replace \`${r}="${o}"\` with \`${s}="${c}"\`.` : "";
10
+ if (!i[f]) {
11
+ let a = `[Design System React] The value of \`${o}\`, for prop \`${r}\` will be removed from ${e} in ${t}. Please update your props.${m}${d}`;
12
+ p && l ? l({ message: a }) : n(!p, a), i[f] = p;
11
13
  }
12
14
  };
13
15
  }
14
- var n = t;
16
+ var i = r;
15
17
  //#endregion
16
- export { n as default };
18
+ export { i as default };
17
19
 
18
20
  //# sourceMappingURL=deprecated-property-value.js.map
@@ -1 +1 @@
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
+ {"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';\nimport { createWarnedMap } from './warned-registry';\nimport { REMOVAL_VERSION } from './removal-version';\n\nlet deprecated = function deprecatedFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\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 from ${control} in ${REMOVAL_VERSION}. 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":";;;;AAWA,IAAI,IAAa,WAA8B,CAAC;AAEhD,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,EAAgB;CAElC,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,0BAA0B,EAAQ,MAAM,EAAgB,6BAA6B,IAAsB;GAWrN,AATI,KAAkB,IACrB,EAAI,EAAE,WAAQ,CAAC,IAEf,EACC,CAAC,GACD,CACD,GAGD,EAAU,KAA4B;EACvC;CACD;AACD;AAEA,IAAA,IAAe"}
@@ -1,15 +1,17 @@
1
- import e from "warning";
1
+ import { createWarnedMap as e } from "./warned-registry.js";
2
+ import { REMOVAL_VERSION as t } from "./removal-version.js";
3
+ import n from "warning";
2
4
  //#region utilities/warning/deprecated-property.js
3
- var t = function() {};
5
+ var r = function() {};
4
6
  if (process.env.NODE_ENV !== "production") {
5
- let n = {};
6
- t = function(t, r, i, a, o, s) {
7
- let c = o ? ` ${o}` : "", l = a ? `Use \`${a}\`` : "", u = a ? ` ${l} instead.` : "";
8
- !s && !n[t + i] && (e(r === void 0, `[Design System React] \`${i}\` will be removed in the next major version of ${t}.${u}${c}`), n[t + i] = r !== void 0);
7
+ let i = e();
8
+ r = function(e, r, a, o, s, c) {
9
+ let l = s ? ` ${s}` : "", u = o ? `Use \`${o}\`` : "", d = o ? ` ${u} instead.` : "";
10
+ !c && !i[e + a] && (n(r === void 0, `[Design System React] \`${a}\` will be removed from ${e} in ${t}.${d}${l}`), i[e + a] = r !== void 0);
9
11
  };
10
12
  }
11
- var n = t;
13
+ var i = r;
12
14
  //#endregion
13
- export { n as default };
15
+ export { i as default };
14
16
 
15
17
  //# sourceMappingURL=deprecated-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deprecated-property.js","names":[],"sources":["../../../../utilities/warning/deprecated-property.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console about the removal of a property.\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\tpropValue,\n\t\toldProp,\n\t\tnewProp,\n\t\tcomment,\n\t\tsilenceDeprecatedPropertyWarning\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tconst newProperty = newProp ? `Use \\`${newProp}\\`` : '';\n\t\tconst newPropertySentence = newProp ? ` ${newProperty} instead.` : '';\n\t\tif (!silenceDeprecatedPropertyWarning && !hasWarned[control + oldProp]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tpropValue === undefined,\n\t\t\t\t`[Design System React] \\`${oldProp}\\` will be removed in the next major version of ${control}.${newPropertySentence}${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control + oldProp] = propValue !== undefined;\n\t\t}\n\t};\n}\n\nexport default deprecated;\n"],"mappings":";;AAQA,IAAI,IAAa,WAA8B,CAAC;AAEhD,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,CAAC;CAEnB,IAAa,SACZ,GACA,GACA,GACA,GACA,GACA,GACC;EACD,IAAM,IAAoB,IAAU,IAAI,MAAY,IAC9C,IAAc,IAAU,SAAS,EAAQ,MAAM,IAC/C,IAAsB,IAAU,IAAI,EAAY,aAAa;EACnE,AAAI,CAAC,KAAoC,CAAC,EAAU,IAAU,OAE7D,EACC,MAAc,KAAA,GACd,2BAA2B,EAAQ,kDAAkD,EAAQ,GAAG,IAAsB,GACvH,GAEA,EAAU,IAAU,KAAW,MAAc,KAAA;CAE/C;AACD;AAEA,IAAA,IAAe"}
1
+ {"version":3,"file":"deprecated-property.js","names":[],"sources":["../../../../utilities/warning/deprecated-property.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console about the removal of a property.\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\nimport { REMOVAL_VERSION } from './removal-version';\n\nlet deprecated = function deprecatedFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\tdeprecated = function deprecatedFunction(\n\t\tcontrol,\n\t\tpropValue,\n\t\toldProp,\n\t\tnewProp,\n\t\tcomment,\n\t\tsilenceDeprecatedPropertyWarning\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tconst newProperty = newProp ? `Use \\`${newProp}\\`` : '';\n\t\tconst newPropertySentence = newProp ? ` ${newProperty} instead.` : '';\n\t\tif (!silenceDeprecatedPropertyWarning && !hasWarned[control + oldProp]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tpropValue === undefined,\n\t\t\t\t`[Design System React] \\`${oldProp}\\` will be removed from ${control} in ${REMOVAL_VERSION}.${newPropertySentence}${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control + oldProp] = propValue !== undefined;\n\t\t}\n\t};\n}\n\nexport default deprecated;\n"],"mappings":";;;;AAUA,IAAI,IAAa,WAA8B,CAAC;AAEhD,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,EAAgB;CAElC,IAAa,SACZ,GACA,GACA,GACA,GACA,GACA,GACC;EACD,IAAM,IAAoB,IAAU,IAAI,MAAY,IAC9C,IAAc,IAAU,SAAS,EAAQ,MAAM,IAC/C,IAAsB,IAAU,IAAI,EAAY,aAAa;EACnE,AAAI,CAAC,KAAoC,CAAC,EAAU,IAAU,OAE7D,EACC,MAAc,KAAA,GACd,2BAA2B,EAAQ,0BAA0B,EAAQ,MAAM,EAAgB,GAAG,IAAsB,GACrH,GAEA,EAAU,IAAU,KAAW,MAAc,KAAA;CAE/C;AACD;AAEA,IAAA,IAAe"}
@@ -1,22 +1,23 @@
1
- import e from "react";
2
- import t from "warning";
1
+ import { createWarnedMap as e } from "./warned-registry.js";
2
+ import t from "react";
3
+ import n from "warning";
3
4
  //#region utilities/warning/has-children-without-display-name-of.js
4
- var n = function() {};
5
+ var r = function() {};
5
6
  if (process.env.NODE_ENV !== "production") {
6
- let r = {};
7
- n = function(n, i, a, o) {
8
- if (!r[n]) {
7
+ let i = e();
8
+ r = function(e, r, a, o) {
9
+ if (!i[e]) {
9
10
  let s = o ? ` ${o}` : "", c = [];
10
- e.Children.forEach(i, (e) => {
11
+ t.Children.forEach(r, (e) => {
11
12
  e && e.type && e.type.displayName !== a && c.push(e);
12
13
  });
13
14
  let l = c.length > 0;
14
- l && t(!1, `[Design System React] Unable to use child components specified within ${n}. Please use a child component with a \`displayName\` class property value of ${a}. Children without that class property are ignored. Please review \`children\` prop documentation.${s}`), r[n] = !!l;
15
+ l && n(!1, `[Design System React] Unable to use child components specified within ${e}. Please use a child component with a \`displayName\` class property value of ${a}. Children without that class property are ignored. Please review \`children\` prop documentation.${s}`), i[e] = !!l;
15
16
  }
16
17
  };
17
18
  }
18
- var r = n;
19
+ var i = r;
19
20
  //#endregion
20
- export { r as default };
21
+ export { i as default };
21
22
 
22
23
  //# sourceMappingURL=has-children-without-display-name-of.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"has-children-without-display-name-of.js","names":[],"sources":["../../../../utilities/warning/has-children-without-display-name-of.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\nimport React from 'react';\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\n\nlet hasChildrenWithoutDisplayNameOf = function hasChildrenWithoutDisplayNameOfFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = {};\n\n\t// TODO: allow `displayName` to be an array of displayNames\n\thasChildrenWithoutDisplayNameOf = function hasChildrenWithoutDisplayNameOfFunction(\n\t\tcontrol,\n\t\tchildren,\n\t\tdisplayName,\n\t\tcomment\n\t) {\n\t\tif (!hasWarned[control]) {\n\t\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\t\tconst childrenWithoutSelectedDisplayName = [];\n\n\t\t\tReact.Children.forEach(children, (child) => {\n\t\t\t\tif (child && child.type && child.type.displayName !== displayName) {\n\t\t\t\t\tchildrenWithoutSelectedDisplayName.push(child);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconst hasChildrenWithoutSelectedDisplayName =\n\t\t\t\tchildrenWithoutSelectedDisplayName.length > 0;\n\n\t\t\tif (hasChildrenWithoutSelectedDisplayName) {\n\t\t\t\t/* eslint-disable max-len */\n\t\t\t\twarning(\n\t\t\t\t\tfalse,\n\t\t\t\t\t`[Design System React] Unable to use child components specified within ${control}. Please use a child component with a \\`displayName\\` class property value of ${displayName}. Children without that class property are ignored. Please review \\`children\\` prop documentation.${additionalComment}`\n\t\t\t\t);\n\t\t\t\t/* eslint-enable max-len */\n\t\t\t}\n\n\t\t\thasWarned[control] = !!hasChildrenWithoutSelectedDisplayName;\n\t\t}\n\t};\n}\n\nexport default hasChildrenWithoutDisplayNameOf;\n"],"mappings":";;;AAUA,IAAI,IAAkC,WAAmD,CAAC;AAE1F,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,CAAC;CAGnB,IAAkC,SACjC,GACA,GACA,GACA,GACC;EACD,IAAI,CAAC,EAAU,IAAU;GACxB,IAAM,IAAoB,IAAU,IAAI,MAAY,IAC9C,IAAqC,CAAC;GAE5C,EAAM,SAAS,QAAQ,IAAW,MAAU;IAC3C,AAAI,KAAS,EAAM,QAAQ,EAAM,KAAK,gBAAgB,KACrD,EAAmC,KAAK,CAAK;GAE/C,CAAC;GAED,IAAM,IACL,EAAmC,SAAS;GAW7C,AATI,KAEH,EACC,IACA,yEAAyE,EAAQ,gFAAgF,EAAY,oGAAoG,GAClR,GAID,EAAU,KAAW,CAAC,CAAC;EACxB;CACD;AACD;AAEA,IAAA,IAAe"}
1
+ {"version":3,"file":"has-children-without-display-name-of.js","names":[],"sources":["../../../../utilities/warning/has-children-without-display-name-of.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\nimport React from 'react';\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet hasChildrenWithoutDisplayNameOf =\n\tfunction hasChildrenWithoutDisplayNameOfFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\t// TODO: allow `displayName` to be an array of displayNames\n\thasChildrenWithoutDisplayNameOf =\n\t\tfunction hasChildrenWithoutDisplayNameOfFunction(\n\t\t\tcontrol,\n\t\t\tchildren,\n\t\t\tdisplayName,\n\t\t\tcomment\n\t\t) {\n\t\t\tif (!hasWarned[control]) {\n\t\t\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\t\t\tconst childrenWithoutSelectedDisplayName = [];\n\n\t\t\t\tReact.Children.forEach(children, (child) => {\n\t\t\t\t\tif (child && child.type && child.type.displayName !== displayName) {\n\t\t\t\t\t\tchildrenWithoutSelectedDisplayName.push(child);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tconst hasChildrenWithoutSelectedDisplayName =\n\t\t\t\t\tchildrenWithoutSelectedDisplayName.length > 0;\n\n\t\t\t\tif (hasChildrenWithoutSelectedDisplayName) {\n\t\t\t\t\t/* eslint-disable max-len */\n\t\t\t\t\twarning(\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\t`[Design System React] Unable to use child components specified within ${control}. Please use a child component with a \\`displayName\\` class property value of ${displayName}. Children without that class property are ignored. Please review \\`children\\` prop documentation.${additionalComment}`\n\t\t\t\t\t);\n\t\t\t\t\t/* eslint-enable max-len */\n\t\t\t\t}\n\n\t\t\t\thasWarned[control] = !!hasChildrenWithoutSelectedDisplayName;\n\t\t\t}\n\t\t};\n}\n\nexport default hasChildrenWithoutDisplayNameOf;\n"],"mappings":";;;;AAWA,IAAI,IACH,WAAmD,CAAC;AAErD,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,EAAgB;CAGlC,IACC,SACC,GACA,GACA,GACA,GACC;EACD,IAAI,CAAC,EAAU,IAAU;GACxB,IAAM,IAAoB,IAAU,IAAI,MAAY,IAC9C,IAAqC,CAAC;GAE5C,EAAM,SAAS,QAAQ,IAAW,MAAU;IAC3C,AAAI,KAAS,EAAM,QAAQ,EAAM,KAAK,gBAAgB,KACrD,EAAmC,KAAK,CAAK;GAE/C,CAAC;GAED,IAAM,IACL,EAAmC,SAAS;GAW7C,AATI,KAEH,EACC,IACA,yEAAyE,EAAQ,gFAAgF,EAAY,oGAAoG,GAClR,GAID,EAAU,KAAW,CAAC,CAAC;EACxB;CACD;AACF;AAEA,IAAA,IAAe"}
@@ -1,15 +1,16 @@
1
- import e from "warning";
1
+ import { createWarnedMap as e } from "./warned-registry.js";
2
+ import t from "warning";
2
3
  //#region utilities/warning/if-one-then-both-required-property.js
3
- var t;
4
+ var n;
4
5
  if (process.env.NODE_ENV !== "production") {
5
- let n = {};
6
- t = function(t, r, i, a) {
7
- let o = a ? ` ${a}` : "", s = !1, c = Object.keys(i), l = c.map((e) => i[e]), u = l.every((e) => !!e), d = l.every((e) => !e);
8
- s = u || d, n[t] || (e(s, `[Design System React] If one of the following props are used, then both of the following properties are required by ${t}: [${c.join()}].${o}`), n[t] = !!i);
6
+ let r = e();
7
+ n = function(e, n, i, a) {
8
+ let o = a ? ` ${a}` : "", s = Object.keys(i), c = s.map((e) => i[e]), l = c.every((e) => !!e), u = c.every((e) => !e), d = l || u;
9
+ r[e] || (t(d, `[Design System React] If one of the following props are used, then both of the following properties are required by ${e}: [${s.join()}].${o}`), r[e] = !d);
9
10
  };
10
- } else t = function() {};
11
- var n = t;
11
+ } else n = function() {};
12
+ var r = n;
12
13
  //#endregion
13
- export { n as default };
14
+ export { r as default };
14
15
 
15
16
  //# sourceMappingURL=if-one-then-both-required-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"if-one-then-both-required-property.js","names":[],"sources":["../../../../utilities/warning/if-one-then-both-required-property.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console one property is used but not both that are required. Either use neither or both properties.\nimport warning from 'warning';\n\nlet ifOneThenBothRequiredProperty;\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = {};\n\n\tifOneThenBothRequiredProperty = function ifOneThenBothRequiredPropertyFunction(\n\t\tcontrol,\n\t\tprops,\n\t\tselectedProps,\n\t\tcomment\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tlet bothOrNoneAreSet = false;\n\t\tconst keys = Object.keys(selectedProps);\n\t\tconst values = keys.map((key) => selectedProps[key]);\n\t\tconst allTruthy = values.every((element) => !!element);\n\t\tconst allFalsey = values.every((element) => !element);\n\n\t\tbothOrNoneAreSet = allTruthy || allFalsey;\n\n\t\tif (!hasWarned[control]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tbothOrNoneAreSet,\n\t\t\t\t`[Design System React] If one of the following props are used, then both of the following properties are required by ${control}: [${keys.join()}].${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control] = !!selectedProps;\n\t\t}\n\t};\n} else {\n\tifOneThenBothRequiredProperty = function ifOneThenBothRequiredPropertyFunction() {};\n}\n\nexport default ifOneThenBothRequiredProperty;\n"],"mappings":";;AAQA,IAAI;AAEJ,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,CAAC;CAEnB,IAAgC,SAC/B,GACA,GACA,GACA,GACC;EACD,IAAM,IAAoB,IAAU,IAAI,MAAY,IAChD,IAAmB,IACjB,IAAO,OAAO,KAAK,CAAa,GAChC,IAAS,EAAK,KAAK,MAAQ,EAAc,EAAI,GAC7C,IAAY,EAAO,OAAO,MAAY,CAAC,CAAC,CAAO,GAC/C,IAAY,EAAO,OAAO,MAAY,CAAC,CAAO;EAIpD,AAFA,IAAmB,KAAa,GAE3B,EAAU,OAEd,EACC,GACA,uHAAuH,EAAQ,KAAK,EAAK,KAAK,EAAE,IAAI,GACrJ,GAEA,EAAU,KAAW,CAAC,CAAC;CAEzB;AACD,OACC,IAAgC,WAAiD,CAAC;AAGnF,IAAA,IAAe"}
1
+ {"version":3,"file":"if-one-then-both-required-property.js","names":[],"sources":["../../../../utilities/warning/if-one-then-both-required-property.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console one property is used but not both that are required. Either use neither or both properties.\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet ifOneThenBothRequiredProperty;\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\tifOneThenBothRequiredProperty =\n\t\tfunction ifOneThenBothRequiredPropertyFunction(\n\t\t\tcontrol,\n\t\t\tprops,\n\t\t\tselectedProps,\n\t\t\tcomment\n\t\t) {\n\t\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\t\tconst keys = Object.keys(selectedProps);\n\t\t\tconst values = keys.map((key) => selectedProps[key]);\n\t\t\tconst allTruthy = values.every((element) => !!element);\n\t\t\tconst allFalsey = values.every((element) => !element);\n\n\t\t\tconst bothOrNoneAreSet = allTruthy || allFalsey;\n\n\t\t\tif (!hasWarned[control]) {\n\t\t\t\t/* eslint-disable max-len */\n\t\t\t\twarning(\n\t\t\t\t\tbothOrNoneAreSet,\n\t\t\t\t\t`[Design System React] If one of the following props are used, then both of the following properties are required by ${control}: [${keys.join()}].${additionalComment}`\n\t\t\t\t);\n\t\t\t\t/* eslint-enable max-len */\n\t\t\t\thasWarned[control] = !bothOrNoneAreSet;\n\t\t\t}\n\t\t};\n} else {\n\tifOneThenBothRequiredProperty =\n\t\tfunction ifOneThenBothRequiredPropertyFunction() {};\n}\n\nexport default ifOneThenBothRequiredProperty;\n"],"mappings":";;;AASA,IAAI;AAEJ,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,EAAgB;CAElC,IACC,SACC,GACA,GACA,GACA,GACC;EACD,IAAM,IAAoB,IAAU,IAAI,MAAY,IAC9C,IAAO,OAAO,KAAK,CAAa,GAChC,IAAS,EAAK,KAAK,MAAQ,EAAc,EAAI,GAC7C,IAAY,EAAO,OAAO,MAAY,CAAC,CAAC,CAAO,GAC/C,IAAY,EAAO,OAAO,MAAY,CAAC,CAAO,GAE9C,IAAmB,KAAa;EAEtC,AAAK,EAAU,OAEd,EACC,GACA,uHAAuH,EAAQ,KAAK,EAAK,KAAK,EAAE,IAAI,GACrJ,GAEA,EAAU,KAAW,CAAC;CAExB;AACF,OACC,IACC,WAAiD,CAAC;AAGpD,IAAA,IAAe"}
@@ -1,16 +1,17 @@
1
1
  import "../constants.js";
2
- import e from "warning";
2
+ import { createWarnedMap as e } from "./warned-registry.js";
3
+ import t from "warning";
3
4
  //#region utilities/warning/is-trigger-tabbable.js
4
- var t = function() {};
5
+ var n = function() {};
5
6
  if (process.env.NODE_ENV !== "production") {
6
- let n = {};
7
- t = function(t, r, i, a) {
8
- let o = i ? ` ${i}` : "", s = r.props.tabIndex, c = !0;
9
- !a && r.type !== "button" && r.type !== "input" && r.type !== "select" && r.type !== "textarea" && r.type !== "a" && r.type.displayName !== "SLDSButton" && r.type.displayName !== "SLDSButtonStateful" && r.type.displayName !== "SLDSButtonGroup" && r.type.displayName !== "SLDSCheckbox" && r.type.displayName !== "SLDSDatePicker" && r.type.displayName !== "SLDSInput" && r.type.displayName !== "SLDSLookup" && r.type.displayName !== "SLDSMenuDropdown" && r.type.displayName !== "SLDSTimepicker" && (s === "-1" || s === void 0) && (c = !1, n[t] || (e(c, `[Design System React] The element that triggers ${t} must be tabbable for keyboard users. Elements such as anchor, button, input or a DOM element with tabIndex="0" specified are tabbable. ${o}`), n[t] = !!c));
7
+ let r = e();
8
+ n = function(e, n, i, a) {
9
+ let o = i ? ` ${i}` : "", s = n.props.tabIndex;
10
+ !a && n.type !== "button" && n.type !== "input" && n.type !== "select" && n.type !== "textarea" && n.type !== "a" && n.type.displayName !== "SLDSButton" && n.type.displayName !== "SLDSButtonStateful" && n.type.displayName !== "SLDSButtonGroup" && n.type.displayName !== "SLDSCheckbox" && n.type.displayName !== "SLDSDatePicker" && n.type.displayName !== "SLDSInput" && n.type.displayName !== "SLDSLookup" && n.type.displayName !== "SLDSMenuDropdown" && n.type.displayName !== "SLDSTimepicker" && (s === "-1" || s === void 0) && (r[e] || (t(!1, `[Design System React] The element that triggers ${e} must be tabbable for keyboard users. Elements such as anchor, button, input or a DOM element with tabIndex="0" specified are tabbable. ${o}`), r[e] = !0));
10
11
  };
11
12
  }
12
- var n = t;
13
+ var r = n;
13
14
  //#endregion
14
- export { n as default };
15
+ export { r as default };
15
16
 
16
17
  //# sourceMappingURL=is-trigger-tabbable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-trigger-tabbable.js","names":[],"sources":["../../../../utilities/warning/is-trigger-tabbable.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console about the removal of a property.\nimport warning from 'warning';\n\nimport {\n\tBUTTON,\n\tBUTTON_STATEFUL,\n\tBUTTON_GROUP,\n\tCHECKBOX,\n\tDATE_PICKER,\n\tINPUT,\n\tLOOKUP,\n\tMENU_DROPDOWN,\n\tTIME_PICKER,\n} from '../../utilities/constants';\n\n/* eslint-disable import/no-mutable-exports */\n\nlet isTriggerTabbable = function isTriggerTabbableFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = {};\n\n\tisTriggerTabbable = function isTriggerTabbableFunction(\n\t\tCOMPONENT,\n\t\ttrigger,\n\t\tcomment,\n\t\tsilenceTriggerTabbableWarning\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tconst childTabIndex = trigger.props.tabIndex;\n\t\tlet elementIsTabbable = true;\n\n\t\tif (\n\t\t\t// Silencing prop for special cases\n\t\t\t!silenceTriggerTabbableWarning &&\n\t\t\t// List of \"native\" HTML elements that are tabbable by default\n\t\t\ttrigger.type !== 'button' &&\n\t\t\ttrigger.type !== 'input' &&\n\t\t\ttrigger.type !== 'select' &&\n\t\t\ttrigger.type !== 'textarea' &&\n\t\t\ttrigger.type !== 'a' &&\n\t\t\t// List of components that are tabbable by default\n\t\t\ttrigger.type.displayName !== BUTTON &&\n\t\t\ttrigger.type.displayName !== BUTTON_STATEFUL &&\n\t\t\ttrigger.type.displayName !== BUTTON_GROUP &&\n\t\t\ttrigger.type.displayName !== CHECKBOX &&\n\t\t\ttrigger.type.displayName !== DATE_PICKER &&\n\t\t\ttrigger.type.displayName !== INPUT &&\n\t\t\ttrigger.type.displayName !== LOOKUP &&\n\t\t\ttrigger.type.displayName !== MENU_DROPDOWN &&\n\t\t\ttrigger.type.displayName !== TIME_PICKER\n\t\t) {\n\t\t\t// if it's not one of the above, then check to see if it has a tabIndex\n\t\t\tif (childTabIndex === '-1' || childTabIndex === undefined) {\n\t\t\t\telementIsTabbable = false;\n\t\t\t\tif (!hasWarned[COMPONENT]) {\n\t\t\t\t\t/* eslint-disable max-len */\n\t\t\t\t\twarning(\n\t\t\t\t\t\telementIsTabbable,\n\t\t\t\t\t\t`[Design System React] The element that triggers ${COMPONENT} must be tabbable for keyboard users. Elements such as anchor, button, input or a DOM element with tabIndex=\"0\" specified are tabbable. ${additionalComment}`\n\t\t\t\t\t);\n\t\t\t\t\t/* eslint-enable max-len */\n\t\t\t\t\thasWarned[COMPONENT] = !!elementIsTabbable;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\nexport default isTriggerTabbable;\n"],"mappings":";;;AAsBA,IAAI,IAAoB,WAAqC,CAAC;AAE9D,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,CAAC;CAEnB,IAAoB,SACnB,GACA,GACA,GACA,GACC;EACD,IAAM,IAAoB,IAAU,IAAI,MAAY,IAC9C,IAAgB,EAAQ,MAAM,UAChC,IAAoB;EAExB,AAEC,CAAC,KAED,EAAQ,SAAS,YACjB,EAAQ,SAAS,WACjB,EAAQ,SAAS,YACjB,EAAQ,SAAS,cACjB,EAAQ,SAAS,OAEjB,EAAQ,KAAK,gBAAA,gBACb,EAAQ,KAAK,gBAAA,wBACb,EAAQ,KAAK,gBAAA,qBACb,EAAQ,KAAK,gBAAA,kBACb,EAAQ,KAAK,gBAAA,oBACb,EAAQ,KAAK,gBAAA,eACb,EAAQ,KAAK,gBAAA,gBACb,EAAQ,KAAK,gBAAA,sBACb,EAAQ,KAAK,gBAAA,qBAGT,MAAkB,QAAQ,MAAkB,KAAA,OAC/C,IAAoB,IACf,EAAU,OAEd,EACC,GACA,mDAAmD,EAAU,0IAA0I,GACxM,GAEA,EAAU,KAAa,CAAC,CAAC;CAI7B;AACD;AAEA,IAAA,IAAe"}
1
+ {"version":3,"file":"is-trigger-tabbable.js","names":[],"sources":["../../../../utilities/warning/is-trigger-tabbable.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console about the removal of a property.\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nimport {\n\tBUTTON,\n\tBUTTON_STATEFUL,\n\tBUTTON_GROUP,\n\tCHECKBOX,\n\tDATE_PICKER,\n\tINPUT,\n\tLOOKUP,\n\tMENU_DROPDOWN,\n\tTIME_PICKER,\n} from '../../utilities/constants';\n\n/* eslint-disable import/no-mutable-exports */\n\nlet isTriggerTabbable = function isTriggerTabbableFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\tisTriggerTabbable = function isTriggerTabbableFunction(\n\t\tCOMPONENT,\n\t\ttrigger,\n\t\tcomment,\n\t\tsilenceTriggerTabbableWarning\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tconst childTabIndex = trigger.props.tabIndex;\n\n\t\tif (\n\t\t\t// Silencing prop for special cases\n\t\t\t!silenceTriggerTabbableWarning &&\n\t\t\t// List of \"native\" HTML elements that are tabbable by default\n\t\t\ttrigger.type !== 'button' &&\n\t\t\ttrigger.type !== 'input' &&\n\t\t\ttrigger.type !== 'select' &&\n\t\t\ttrigger.type !== 'textarea' &&\n\t\t\ttrigger.type !== 'a' &&\n\t\t\t// List of components that are tabbable by default\n\t\t\ttrigger.type.displayName !== BUTTON &&\n\t\t\ttrigger.type.displayName !== BUTTON_STATEFUL &&\n\t\t\ttrigger.type.displayName !== BUTTON_GROUP &&\n\t\t\ttrigger.type.displayName !== CHECKBOX &&\n\t\t\ttrigger.type.displayName !== DATE_PICKER &&\n\t\t\ttrigger.type.displayName !== INPUT &&\n\t\t\ttrigger.type.displayName !== LOOKUP &&\n\t\t\ttrigger.type.displayName !== MENU_DROPDOWN &&\n\t\t\ttrigger.type.displayName !== TIME_PICKER\n\t\t) {\n\t\t\t// if it's not one of the above, then check to see if it has a tabIndex\n\t\t\tif (childTabIndex === '-1' || childTabIndex === undefined) {\n\t\t\t\tif (!hasWarned[COMPONENT]) {\n\t\t\t\t\t/* eslint-disable max-len */\n\t\t\t\t\twarning(\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\t`[Design System React] The element that triggers ${COMPONENT} must be tabbable for keyboard users. Elements such as anchor, button, input or a DOM element with tabIndex=\"0\" specified are tabbable. ${additionalComment}`\n\t\t\t\t\t);\n\t\t\t\t\t/* eslint-enable max-len */\n\t\t\t\t\thasWarned[COMPONENT] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\nexport default isTriggerTabbable;\n"],"mappings":";;;;AAuBA,IAAI,IAAoB,WAAqC,CAAC;AAE9D,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,EAAgB;CAElC,IAAoB,SACnB,GACA,GACA,GACA,GACC;EACD,IAAM,IAAoB,IAAU,IAAI,MAAY,IAC9C,IAAgB,EAAQ,MAAM;EAEpC,AAEC,CAAC,KAED,EAAQ,SAAS,YACjB,EAAQ,SAAS,WACjB,EAAQ,SAAS,YACjB,EAAQ,SAAS,cACjB,EAAQ,SAAS,OAEjB,EAAQ,KAAK,gBAAA,gBACb,EAAQ,KAAK,gBAAA,wBACb,EAAQ,KAAK,gBAAA,qBACb,EAAQ,KAAK,gBAAA,kBACb,EAAQ,KAAK,gBAAA,oBACb,EAAQ,KAAK,gBAAA,eACb,EAAQ,KAAK,gBAAA,gBACb,EAAQ,KAAK,gBAAA,sBACb,EAAQ,KAAK,gBAAA,qBAGT,MAAkB,QAAQ,MAAkB,KAAA,OAC1C,EAAU,OAEd,EACC,IACA,mDAAmD,EAAU,0IAA0I,GACxM,GAEA,EAAU,KAAa;CAI3B;AACD;AAEA,IAAA,IAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"low-priority-warning.js","names":[],"sources":["../../../../utilities/warning/low-priority-warning.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\nlet lowPriorityWarning = function printWarningFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst printWarning = function printWarningFunction(originalMessage, ...args) {\n\t\tlet argIndex = 0;\n\t\tconst message = `Warning: ${originalMessage.replace(/%s/g, () => {\n\t\t\tconst argument = args[argIndex];\n\t\t\targIndex += 1;\n\t\t\treturn argument;\n\t\t})}`;\n\t\tif (typeof console !== 'undefined') {\n\t\t\tconsole.warn(message); // eslint-disable-line no-console\n\t\t}\n\t\ttry {\n\t\t\t// Throw error to enable tracing the callstack.\n\t\t\tthrow new Error(message);\n\t\t} catch (event) {} // eslint-disable-line no-empty\n\t};\n\n\tlowPriorityWarning = (condition, originalMessage, ...args) => {\n\t\tif (!condition && originalMessage) {\n\t\t\tprintWarning(originalMessage, ...args);\n\t\t}\n\t};\n}\n\nexport default lowPriorityWarning;\n"],"mappings":";AAKA,IAAI,IAAqB,WAAgC,CAAC;AAE1D,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAe,SAA8B,GAAiB,GAAG,GAAM;EAC5E,IAAI,IAAW,GACT,IAAU,YAAY,EAAgB,QAAQ,aAAa;GAChE,IAAM,IAAW,EAAK;GAEtB,OADA,KAAY,GACL;EACR,CAAC;EACD,AAAI,OAAO,UAAY,OACtB,QAAQ,KAAK,CAAO;EAErB,IAAI;GAEH,MAAU,MAAM,CAAO;EACxB,QAAgB,CAAC;CAClB;CAEA,KAAsB,GAAW,GAAiB,GAAG,MAAS;EAC7D,AAAI,CAAC,KAAa,KACjB,EAAa,GAAiB,GAAG,CAAI;CAEvC;AACD;AAEA,IAAA,IAAe"}
1
+ {"version":3,"file":"low-priority-warning.js","names":[],"sources":["../../../../utilities/warning/low-priority-warning.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\nlet lowPriorityWarning = function printWarningFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst printWarning = function printWarningFunction(originalMessage, ...args) {\n\t\tlet argIndex = 0;\n\t\tconst message = `Warning: ${originalMessage.replace(/%s/g, () => {\n\t\t\tconst argument = args[argIndex];\n\t\t\targIndex += 1;\n\t\t\treturn argument;\n\t\t})}`;\n\t\tif (typeof console !== 'undefined') {\n\t\t\tconsole.warn(message); // eslint-disable-line no-console\n\t\t}\n\t\ttry {\n\t\t\t// Throw error to enable tracing the callstack.\n\t\t\tthrow new Error(message);\n\t\t} catch {} // eslint-disable-line no-empty\n\t};\n\n\tlowPriorityWarning = (condition, originalMessage, ...args) => {\n\t\tif (!condition && originalMessage) {\n\t\t\tprintWarning(originalMessage, ...args);\n\t\t}\n\t};\n}\n\nexport default lowPriorityWarning;\n"],"mappings":";AAKA,IAAI,IAAqB,WAAgC,CAAC;AAE1D,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAe,SAA8B,GAAiB,GAAG,GAAM;EAC5E,IAAI,IAAW,GACT,IAAU,YAAY,EAAgB,QAAQ,aAAa;GAChE,IAAM,IAAW,EAAK;GAEtB,OADA,KAAY,GACL;EACR,CAAC;EACD,AAAI,OAAO,UAAY,OACtB,QAAQ,KAAK,CAAO;EAErB,IAAI;GAEH,MAAU,MAAM,CAAO;EACxB,QAAQ,CAAC;CACV;CAEA,KAAsB,GAAW,GAAiB,GAAG,MAAS;EAC7D,AAAI,CAAC,KAAa,KACjB,EAAa,GAAiB,GAAG,CAAI;CAEvC;AACD;AAEA,IAAA,IAAe"}
@@ -1,17 +1,18 @@
1
- import e from "warning";
1
+ import { createWarnedMap as e } from "./warned-registry.js";
2
+ import t from "warning";
2
3
  //#region utilities/warning/one-of-required-property.js
3
- var t;
4
+ var n;
4
5
  if (process.env.NODE_ENV !== "production") {
5
- let n = {};
6
- t = function(t, r, i) {
7
- let a = i ? ` ${i}` : "", o = !1, s = Object.keys(r);
6
+ let r = e();
7
+ n = function(e, n, i) {
8
+ let a = i ? ` ${i}` : "", o = !1, s = Object.keys(n);
8
9
  s.forEach((e) => {
9
- r[e] && (o = !0);
10
- }), n[t] || (e(o, `[Design System React] One of the following props are required by ${t}: [${s.join()}].${a}`), n[t] = !!r);
10
+ n[e] && (o = !0);
11
+ }), r[e] || (t(o, `[Design System React] One of the following props are required by ${e}: [${s.join()}].${a}`), r[e] = !o);
11
12
  };
12
- } else t = function() {};
13
- var n = t;
13
+ } else n = function() {};
14
+ var r = n;
14
15
  //#endregion
15
- export { n as default };
16
+ export { r as default };
16
17
 
17
18
  //# sourceMappingURL=one-of-required-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"one-of-required-property.js","names":[],"sources":["../../../../utilities/warning/one-of-required-property.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\n\nlet oneOfRequired;\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = {};\n\n\toneOfRequired = function oneOfRequiredFunction(\n\t\tcontrol,\n\t\tselectedProps,\n\t\tcomment\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tlet atLeastOnePropIsSet = false;\n\t\tconst keys = Object.keys(selectedProps);\n\t\tkeys.forEach((key) => {\n\t\t\tif (selectedProps[key]) {\n\t\t\t\tatLeastOnePropIsSet = true;\n\t\t\t}\n\t\t});\n\n\t\tif (!hasWarned[control]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tatLeastOnePropIsSet,\n\t\t\t\t`[Design System React] One of the following props are required by ${control}: [${keys.join()}].${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control] = !!selectedProps;\n\t\t}\n\t};\n} else {\n\toneOfRequired = function oneOfRequiredFunction() {};\n}\n\nexport default oneOfRequired;\n"],"mappings":";;AAQA,IAAI;AAEJ,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,CAAC;CAEnB,IAAgB,SACf,GACA,GACA,GACC;EACD,IAAM,IAAoB,IAAU,IAAI,MAAY,IAChD,IAAsB,IACpB,IAAO,OAAO,KAAK,CAAa;EAOtC,AANA,EAAK,SAAS,MAAQ;GACrB,AAAI,EAAc,OACjB,IAAsB;EAExB,CAAC,GAEI,EAAU,OAEd,EACC,GACA,oEAAoE,EAAQ,KAAK,EAAK,KAAK,EAAE,IAAI,GAClG,GAEA,EAAU,KAAW,CAAC,CAAC;CAEzB;AACD,OACC,IAAgB,WAAiC,CAAC;AAGnD,IAAA,IAAe"}
1
+ {"version":3,"file":"one-of-required-property.js","names":[],"sources":["../../../../utilities/warning/one-of-required-property.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet oneOfRequired;\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\toneOfRequired = function oneOfRequiredFunction(\n\t\tcontrol,\n\t\tselectedProps,\n\t\tcomment\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tlet atLeastOnePropIsSet = false;\n\t\tconst keys = Object.keys(selectedProps);\n\t\tkeys.forEach((key) => {\n\t\t\tif (selectedProps[key]) {\n\t\t\t\tatLeastOnePropIsSet = true;\n\t\t\t}\n\t\t});\n\n\t\tif (!hasWarned[control]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tatLeastOnePropIsSet,\n\t\t\t\t`[Design System React] One of the following props are required by ${control}: [${keys.join()}].${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control] = !atLeastOnePropIsSet;\n\t\t}\n\t};\n} else {\n\toneOfRequired = function oneOfRequiredFunction() {};\n}\n\nexport default oneOfRequired;\n"],"mappings":";;;AASA,IAAI;AAEJ,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,EAAgB;CAElC,IAAgB,SACf,GACA,GACA,GACC;EACD,IAAM,IAAoB,IAAU,IAAI,MAAY,IAChD,IAAsB,IACpB,IAAO,OAAO,KAAK,CAAa;EAOtC,AANA,EAAK,SAAS,MAAQ;GACrB,AAAI,EAAc,OACjB,IAAsB;EAExB,CAAC,GAEI,EAAU,OAEd,EACC,GACA,oEAAoE,EAAQ,KAAK,EAAK,KAAK,EAAE,IAAI,GAClG,GAEA,EAAU,KAAW,CAAC;CAExB;AACD,OACC,IAAgB,WAAiC,CAAC;AAGnD,IAAA,IAAe"}
@@ -1,15 +1,16 @@
1
- import e from "warning";
1
+ import { createWarnedMap as e } from "./warned-registry.js";
2
+ import t from "warning";
2
3
  //#region utilities/warning/only-one-of-properties.js
3
- var t = function() {};
4
+ var n = function() {};
4
5
  if (process.env.NODE_ENV !== "production") {
5
- let n = {};
6
- t = function(t, r, i) {
7
- let a = i ? ` ${i}` : "", o = Object.keys(r);
8
- o = o.filter((e) => r[e]), n[t] || (e(o.length <= 1, `[Design System React] Only one of the following props is needed by ${t}: [${o.join()}].${a}`), n[t] = !!r);
6
+ let r = e();
7
+ n = function(e, n, i) {
8
+ let a = i ? ` ${i}` : "", o = Object.keys(n);
9
+ o = o.filter((e) => n[e]), r[e] || (t(o.length <= 1, `[Design System React] Only one of the following props is needed by ${e}: [${o.join()}].${a}`), r[e] = o.length > 1);
9
10
  };
10
11
  }
11
- var n = t;
12
+ var r = n;
12
13
  //#endregion
13
- export { n as default };
14
+ export { r as default };
14
15
 
15
16
  //# sourceMappingURL=only-one-of-properties.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"only-one-of-properties.js","names":[],"sources":["../../../../utilities/warning/only-one-of-properties.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an warning message to the browser console if extraneous properties are defined (falsey).\nimport warning from 'warning';\n\nlet onlyOneOf = function onlyOneOfFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = {};\n\n\tonlyOneOf = function onlyOneOfFunction(control, selectedProps, comment) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tlet keys = Object.keys(selectedProps);\n\t\tkeys = keys.filter((key) => selectedProps[key]);\n\n\t\tif (!hasWarned[control]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tkeys.length <= 1,\n\t\t\t\t`[Design System React] Only one of the following props is needed by ${control}: [${keys.join()}].${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control] = !!selectedProps;\n\t\t}\n\t};\n}\n\nexport default onlyOneOf;\n"],"mappings":";;AAQA,IAAI,IAAY,WAA6B,CAAC;AAE9C,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,CAAC;CAEnB,IAAY,SAA2B,GAAS,GAAe,GAAS;EACvE,IAAM,IAAoB,IAAU,IAAI,MAAY,IAChD,IAAO,OAAO,KAAK,CAAa;EAGpC,AAFA,IAAO,EAAK,QAAQ,MAAQ,EAAc,EAAI,GAEzC,EAAU,OAEd,EACC,EAAK,UAAU,GACf,sEAAsE,EAAQ,KAAK,EAAK,KAAK,EAAE,IAAI,GACpG,GAEA,EAAU,KAAW,CAAC,CAAC;CAEzB;AACD;AAEA,IAAA,IAAe"}
1
+ {"version":3,"file":"only-one-of-properties.js","names":[],"sources":["../../../../utilities/warning/only-one-of-properties.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an warning message to the browser console if extraneous properties are defined (falsey).\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet onlyOneOf = function onlyOneOfFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\tonlyOneOf = function onlyOneOfFunction(control, selectedProps, comment) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tlet keys = Object.keys(selectedProps);\n\t\tkeys = keys.filter((key) => selectedProps[key]);\n\n\t\tif (!hasWarned[control]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tkeys.length <= 1,\n\t\t\t\t`[Design System React] Only one of the following props is needed by ${control}: [${keys.join()}].${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control] = keys.length > 1;\n\t\t}\n\t};\n}\n\nexport default onlyOneOf;\n"],"mappings":";;;AASA,IAAI,IAAY,WAA6B,CAAC;AAE9C,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,EAAgB;CAElC,IAAY,SAA2B,GAAS,GAAe,GAAS;EACvE,IAAM,IAAoB,IAAU,IAAI,MAAY,IAChD,IAAO,OAAO,KAAK,CAAa;EAGpC,AAFA,IAAO,EAAK,QAAQ,MAAQ,EAAc,EAAI,GAEzC,EAAU,OAEd,EACC,EAAK,UAAU,GACf,sEAAsE,EAAQ,KAAK,EAAK,KAAK,EAAE,IAAI,GACpG,GAEA,EAAU,KAAW,EAAK,SAAS;CAErC;AACD;AAEA,IAAA,IAAe"}
@@ -0,0 +1,6 @@
1
+ //#region utilities/warning/removal-version.ts
2
+ var e = "11.0.0";
3
+ //#endregion
4
+ export { e as REMOVAL_VERSION };
5
+
6
+ //# sourceMappingURL=removal-version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removal-version.js","names":[],"sources":["../../../../utilities/warning/removal-version.ts"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// The release that removes what is deprecated now. Props deprecated in the\n// 11.0.0 release candidates work only in those releases.\nexport const REMOVAL_VERSION = '11.0.0';\n"],"mappings":";AAKA,IAAa,IAAkB"}
@@ -1,23 +1,24 @@
1
- import e from "react";
2
- import t from "warning";
1
+ import { createWarnedMap as e } from "./warned-registry.js";
2
+ import t from "react";
3
+ import n from "warning";
3
4
  //#region utilities/warning/render-function-return-contents-lack-display-name.js
4
- var n = function() {};
5
+ var r = function() {};
5
6
  if (process.env.NODE_ENV !== "production") {
6
- let r = {};
7
- n = function(n, i, a, o, s, c) {
7
+ let i = e();
8
+ r = function(e, r, a, o, s, c) {
8
9
  let l = c ? ` ${c}` : "", u = o.join(","), d = !1;
9
- if ((!a.type || !a.type.displayName || !u.match(a.type.displayName)) && (s && a.props && a.props.children ? e.Children.forEach(a.props.children, (e) => {
10
+ if ((!a.type || !a.type.displayName || !u.match(a.type.displayName)) && (s && a.props && a.props.children ? t.Children.forEach(a.props.children, (e) => {
10
11
  (!e || !e.type || !e.type.displayName || !u.match(e.type.displayName)) && (d = !0);
11
- }) : d = !0), d && !r[n]) {
12
- let e = "";
13
- o.forEach((t, n) => {
14
- e += t, o.length > n + 2 ? e += ", " : o.length > n + 1 && (e += o.length > 2 ? ", or " : " or ");
15
- }), t(!1, `[Design System React] Content provided by \`${i}\` for ${n} must have a \`displayName\` property value of ${e}${s ? ` or be an element/fragment with children all having the \`displayName\` property value of ${e}.` : "."} Please review ${i} prop documentation.${l}`), r[n] = !0;
12
+ }) : d = !0), d && !i[e]) {
13
+ let t = "";
14
+ o.forEach((e, n) => {
15
+ t += e, o.length > n + 2 ? t += ", " : o.length > n + 1 && (t += o.length > 2 ? ", or " : " or ");
16
+ }), n(!1, `[Design System React] Content provided by \`${r}\` for ${e} must have a \`displayName\` property value of ${t}${s ? ` or be an element/fragment with children all having the \`displayName\` property value of ${t}.` : "."} Please review ${r} prop documentation.${l}`), i[e] = !0;
16
17
  }
17
18
  };
18
19
  }
19
- var r = n;
20
+ var i = r;
20
21
  //#endregion
21
- export { r as default };
22
+ export { i as default };
22
23
 
23
24
  //# sourceMappingURL=render-function-return-contents-lack-display-name.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-function-return-contents-lack-display-name.js","names":[],"sources":["../../../../utilities/warning/render-function-return-contents-lack-display-name.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\nimport React from 'react';\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\n\nlet renderFunctionReturnContentsLackDisplayName = function renderFunctionReturnContentsLackDisplayNameFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = {};\n\n\trenderFunctionReturnContentsLackDisplayName = function renderFunctionReturnContentsLackDisplayNameFunction(\n\t\tcontrol,\n\t\tpropName,\n\t\trenderFunctionReturnContents,\n\t\tdisplayNames, // array of allowed displayName strings\n\t\tcheckChildren, // if true children of the render function return main node will be checked for displayNames matches\n\t\tcomment\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tconst displayNamesJoined = displayNames.join(',');\n\t\tlet foundDiscrepancy = false;\n\n\t\tif (\n\t\t\t!renderFunctionReturnContents.type ||\n\t\t\t!renderFunctionReturnContents.type.displayName ||\n\t\t\t!displayNamesJoined.match(renderFunctionReturnContents.type.displayName)\n\t\t) {\n\t\t\tif (\n\t\t\t\tcheckChildren &&\n\t\t\t\trenderFunctionReturnContents.props &&\n\t\t\t\trenderFunctionReturnContents.props.children\n\t\t\t) {\n\t\t\t\tReact.Children.forEach(\n\t\t\t\t\trenderFunctionReturnContents.props.children,\n\t\t\t\t\t(child) => {\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t!child ||\n\t\t\t\t\t\t\t!child.type ||\n\t\t\t\t\t\t\t!child.type.displayName ||\n\t\t\t\t\t\t\t!displayNamesJoined.match(child.type.displayName)\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tfoundDiscrepancy = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tfoundDiscrepancy = true;\n\t\t\t}\n\t\t}\n\n\t\tif (foundDiscrepancy && !hasWarned[control]) {\n\t\t\tlet allowedDisplayNames = '';\n\n\t\t\tdisplayNames.forEach((displayName, index) => {\n\t\t\t\tallowedDisplayNames += displayName;\n\n\t\t\t\tif (displayNames.length > index + 2) {\n\t\t\t\t\tallowedDisplayNames += ', ';\n\t\t\t\t} else if (displayNames.length > index + 1) {\n\t\t\t\t\tallowedDisplayNames += displayNames.length > 2 ? ', or ' : ' or ';\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tfalse,\n\t\t\t\t`[Design System React] Content provided by \\`${propName}\\` for ${control} must have a \\`displayName\\` property value of ${allowedDisplayNames}${\n\t\t\t\t\tcheckChildren\n\t\t\t\t\t\t? ` or be an element/fragment with children all having the \\`displayName\\` property value of ${allowedDisplayNames}.`\n\t\t\t\t\t\t: '.'\n\t\t\t\t} Please review ${propName} prop documentation.${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control] = true;\n\t\t}\n\t};\n}\n\nexport default renderFunctionReturnContentsLackDisplayName;\n"],"mappings":";;;AAUA,IAAI,IAA8C,WAA+D,CAAC;AAElH,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,CAAC;CAEnB,IAA8C,SAC7C,GACA,GACA,GACA,GACA,GACA,GACC;EACD,IAAM,IAAoB,IAAU,IAAI,MAAY,IAC9C,IAAqB,EAAa,KAAK,GAAG,GAC5C,IAAmB;EA8BvB,KA3BC,CAAC,EAA6B,QAC9B,CAAC,EAA6B,KAAK,eACnC,CAAC,EAAmB,MAAM,EAA6B,KAAK,WAAW,OAGtE,KACA,EAA6B,SAC7B,EAA6B,MAAM,WAEnC,EAAM,SAAS,QACd,EAA6B,MAAM,WAClC,MAAU;GACV,CACC,CAAC,KACD,CAAC,EAAM,QACP,CAAC,EAAM,KAAK,eACZ,CAAC,EAAmB,MAAM,EAAM,KAAK,WAAW,OAEhD,IAAmB;EAErB,CACD,IAEA,IAAmB,KAIjB,KAAoB,CAAC,EAAU,IAAU;GAC5C,IAAI,IAAsB;GAsB1B,AApBA,EAAa,SAAS,GAAa,MAAU;IAG5C,AAFA,KAAuB,GAEnB,EAAa,SAAS,IAAQ,IACjC,KAAuB,OACb,EAAa,SAAS,IAAQ,MACxC,KAAuB,EAAa,SAAS,IAAI,UAAU;GAE7D,CAAC,GAGD,EACC,IACA,+CAA+C,EAAS,SAAS,EAAQ,iDAAiD,IACzH,IACG,6FAA6F,EAAoB,KACjH,IACH,iBAAiB,EAAS,sBAAsB,GAClD,GAEA,EAAU,KAAW;EACtB;CACD;AACD;AAEA,IAAA,IAAe"}
1
+ {"version":3,"file":"render-function-return-contents-lack-display-name.js","names":[],"sources":["../../../../utilities/warning/render-function-return-contents-lack-display-name.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\nimport React from 'react';\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet renderFunctionReturnContentsLackDisplayName =\n\tfunction renderFunctionReturnContentsLackDisplayNameFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\trenderFunctionReturnContentsLackDisplayName =\n\t\tfunction renderFunctionReturnContentsLackDisplayNameFunction(\n\t\t\tcontrol,\n\t\t\tpropName,\n\t\t\trenderFunctionReturnContents,\n\t\t\tdisplayNames, // array of allowed displayName strings\n\t\t\tcheckChildren, // if true children of the render function return main node will be checked for displayNames matches\n\t\t\tcomment\n\t\t) {\n\t\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\t\tconst displayNamesJoined = displayNames.join(',');\n\t\t\tlet foundDiscrepancy = false;\n\n\t\t\tif (\n\t\t\t\t!renderFunctionReturnContents.type ||\n\t\t\t\t!renderFunctionReturnContents.type.displayName ||\n\t\t\t\t!displayNamesJoined.match(renderFunctionReturnContents.type.displayName)\n\t\t\t) {\n\t\t\t\tif (\n\t\t\t\t\tcheckChildren &&\n\t\t\t\t\trenderFunctionReturnContents.props &&\n\t\t\t\t\trenderFunctionReturnContents.props.children\n\t\t\t\t) {\n\t\t\t\t\tReact.Children.forEach(\n\t\t\t\t\t\trenderFunctionReturnContents.props.children,\n\t\t\t\t\t\t(child) => {\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t!child ||\n\t\t\t\t\t\t\t\t!child.type ||\n\t\t\t\t\t\t\t\t!child.type.displayName ||\n\t\t\t\t\t\t\t\t!displayNamesJoined.match(child.type.displayName)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tfoundDiscrepancy = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\tfoundDiscrepancy = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (foundDiscrepancy && !hasWarned[control]) {\n\t\t\t\tlet allowedDisplayNames = '';\n\n\t\t\t\tdisplayNames.forEach((displayName, index) => {\n\t\t\t\t\tallowedDisplayNames += displayName;\n\n\t\t\t\t\tif (displayNames.length > index + 2) {\n\t\t\t\t\t\tallowedDisplayNames += ', ';\n\t\t\t\t\t} else if (displayNames.length > index + 1) {\n\t\t\t\t\t\tallowedDisplayNames += displayNames.length > 2 ? ', or ' : ' or ';\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t/* eslint-disable max-len */\n\t\t\t\twarning(\n\t\t\t\t\tfalse,\n\t\t\t\t\t`[Design System React] Content provided by \\`${propName}\\` for ${control} must have a \\`displayName\\` property value of ${allowedDisplayNames}${\n\t\t\t\t\t\tcheckChildren\n\t\t\t\t\t\t\t? ` or be an element/fragment with children all having the \\`displayName\\` property value of ${allowedDisplayNames}.`\n\t\t\t\t\t\t\t: '.'\n\t\t\t\t\t} Please review ${propName} prop documentation.${additionalComment}`\n\t\t\t\t);\n\t\t\t\t/* eslint-enable max-len */\n\t\t\t\thasWarned[control] = true;\n\t\t\t}\n\t\t};\n}\n\nexport default renderFunctionReturnContentsLackDisplayName;\n"],"mappings":";;;;AAWA,IAAI,IACH,WAA+D,CAAC;AAEjE,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,EAAgB;CAElC,IACC,SACC,GACA,GACA,GACA,GACA,GACA,GACC;EACD,IAAM,IAAoB,IAAU,IAAI,MAAY,IAC9C,IAAqB,EAAa,KAAK,GAAG,GAC5C,IAAmB;EA8BvB,KA3BC,CAAC,EAA6B,QAC9B,CAAC,EAA6B,KAAK,eACnC,CAAC,EAAmB,MAAM,EAA6B,KAAK,WAAW,OAGtE,KACA,EAA6B,SAC7B,EAA6B,MAAM,WAEnC,EAAM,SAAS,QACd,EAA6B,MAAM,WAClC,MAAU;GACV,CACC,CAAC,KACD,CAAC,EAAM,QACP,CAAC,EAAM,KAAK,eACZ,CAAC,EAAmB,MAAM,EAAM,KAAK,WAAW,OAEhD,IAAmB;EAErB,CACD,IAEA,IAAmB,KAIjB,KAAoB,CAAC,EAAU,IAAU;GAC5C,IAAI,IAAsB;GAsB1B,AApBA,EAAa,SAAS,GAAa,MAAU;IAG5C,AAFA,KAAuB,GAEnB,EAAa,SAAS,IAAQ,IACjC,KAAuB,OACb,EAAa,SAAS,IAAQ,MACxC,KAAuB,EAAa,SAAS,IAAI,UAAU;GAE7D,CAAC,GAGD,EACC,IACA,+CAA+C,EAAS,SAAS,EAAQ,iDAAiD,IACzH,IACG,6FAA6F,EAAoB,KACjH,IACH,iBAAiB,EAAS,sBAAsB,GAClD,GAEA,EAAU,KAAW;EACtB;CACD;AACF;AAEA,IAAA,IAAe"}
@@ -1,15 +1,16 @@
1
- import e from "warning";
1
+ import { createWarnedMap as e } from "./warned-registry.js";
2
+ import t from "warning";
2
3
  //#region utilities/warning/required-property.js
3
- var t = function() {};
4
+ var n = function() {};
4
5
  if (process.env.NODE_ENV !== "production") {
5
- let n = {};
6
- t = function(t, r, i, a) {
6
+ let r = e();
7
+ n = function(e, n, i, a) {
7
8
  let o = a ? ` ${a}` : "";
8
- !r && !n[t + i] && (e(!1, `[Design System React] \`${i}\` is required by ${t}.${o}`), n[t + i] = !0);
9
+ !n && !r[e + i] && (t(!1, `[Design System React] \`${i}\` is required by ${e}.${o}`), r[e + i] = !0);
9
10
  };
10
11
  }
11
- var n = t;
12
+ var r = n;
12
13
  //#endregion
13
- export { n as default };
14
+ export { r as default };
14
15
 
15
16
  //# sourceMappingURL=required-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"required-property.js","names":[],"sources":["../../../../utilities/warning/required-property.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console when a\n// required (controlled) property is missing. Pass `isSet` rather than the\n// value so falsy values such as `0`, `''` or `null` can count as set. Warns\n// once per component and property.\nimport warning from 'warning';\n\nlet required = function requiredFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = {};\n\n\trequired = function requiredFunction(control, isSet, propName, comment) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tif (!isSet && !hasWarned[control + propName]) {\n\t\t\twarning(\n\t\t\t\tfalse,\n\t\t\t\t`[Design System React] \\`${propName}\\` is required by ${control}.${additionalComment}`\n\t\t\t);\n\t\t\thasWarned[control + propName] = true;\n\t\t}\n\t};\n}\n\nexport default required;\n"],"mappings":";;AAWA,IAAI,IAAW,WAA4B,CAAC;AAE5C,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,CAAC;CAEnB,IAAW,SAA0B,GAAS,GAAO,GAAU,GAAS;EACvE,IAAM,IAAoB,IAAU,IAAI,MAAY;EACpD,AAAI,CAAC,KAAS,CAAC,EAAU,IAAU,OAClC,EACC,IACA,2BAA2B,EAAS,oBAAoB,EAAQ,GAAG,GACpE,GACA,EAAU,IAAU,KAAY;CAElC;AACD;AAEA,IAAA,IAAe"}
1
+ {"version":3,"file":"required-property.js","names":[],"sources":["../../../../utilities/warning/required-property.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console when a\n// required (controlled) property is missing. Pass `isSet` rather than the\n// value so falsy values such as `0`, `''` or `null` can count as set. Warns\n// once per component and property.\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet required = function requiredFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\trequired = function requiredFunction(control, isSet, propName, comment) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tif (!isSet && !hasWarned[control + propName]) {\n\t\t\twarning(\n\t\t\t\tfalse,\n\t\t\t\t`[Design System React] \\`${propName}\\` is required by ${control}.${additionalComment}`\n\t\t\t);\n\t\t\thasWarned[control + propName] = true;\n\t\t}\n\t};\n}\n\nexport default required;\n"],"mappings":";;;AAYA,IAAI,IAAW,WAA4B,CAAC;AAE5C,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,EAAgB;CAElC,IAAW,SAA0B,GAAS,GAAO,GAAU,GAAS;EACvE,IAAM,IAAoB,IAAU,IAAI,MAAY;EACpD,AAAI,CAAC,KAAS,CAAC,EAAU,IAAU,OAClC,EACC,IACA,2BAA2B,EAAS,oBAAoB,EAAQ,GAAG,GACpE,GACA,EAAU,IAAU,KAAY;CAElC;AACD;AAEA,IAAA,IAAe"}
@@ -1,15 +1,16 @@
1
- import e from "warning";
1
+ import { createWarnedMap as e } from "./warned-registry.js";
2
+ import t from "warning";
2
3
  //#region utilities/warning/sunset-property.js
3
- var t = function() {};
4
+ var n = function() {};
4
5
  if (process.env.NODE_ENV !== "production") {
5
- let n = {};
6
- t = function(t, r, i, a) {
6
+ let r = e();
7
+ n = function(e, n, i, a) {
7
8
  let o = a ? ` ${a}` : "";
8
- n[t + i] || (e(!r, `[Design System React] \`${i}\` has reached End-of-Life and has been removed from the API of ${t}. Please update your API.${o}`), n[t + i] = !!r);
9
+ r[e + i] || (t(!n, `[Design System React] \`${i}\` has reached End-of-Life and has been removed from the API of ${e}. Please update your API.${o}`), r[e + i] = !!n);
9
10
  };
10
11
  }
11
- var n = t;
12
+ var r = n;
12
13
  //#endregion
13
- export { n as default };
14
+ export { r as default };
14
15
 
15
16
  //# sourceMappingURL=sunset-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sunset-property.js","names":[],"sources":["../../../../utilities/warning/sunset-property.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console about the removal of a property.\nimport warning from 'warning';\n\nlet sunset = function sunsetFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = {};\n\n\tsunset = function sunsetFunction(control, propValue, oldProp, comment) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tif (!hasWarned[control + oldProp]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\t!propValue,\n\t\t\t\t`[Design System React] \\`${oldProp}\\` has reached End-of-Life and has been removed from the API of ${control}. Please update your API.${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control + oldProp] = !!propValue;\n\t\t}\n\t};\n}\n\nexport default sunset;\n"],"mappings":";;AAQA,IAAI,IAAS,WAA0B,CAAC;AAExC,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,CAAC;CAEnB,IAAS,SAAwB,GAAS,GAAW,GAAS,GAAS;EACtE,IAAM,IAAoB,IAAU,IAAI,MAAY;EACpD,AAAK,EAAU,IAAU,OAExB,EACC,CAAC,GACD,2BAA2B,EAAQ,kEAAkE,EAAQ,2BAA2B,GACzI,GAEA,EAAU,IAAU,KAAW,CAAC,CAAC;CAEnC;AACD;AAEA,IAAA,IAAe"}
1
+ {"version":3,"file":"sunset-property.js","names":[],"sources":["../../../../utilities/warning/sunset-property.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console about the removal of a property.\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet sunset = function sunsetFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\tsunset = function sunsetFunction(control, propValue, oldProp, comment) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tif (!hasWarned[control + oldProp]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\t!propValue,\n\t\t\t\t`[Design System React] \\`${oldProp}\\` has reached End-of-Life and has been removed from the API of ${control}. Please update your API.${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control + oldProp] = !!propValue;\n\t\t}\n\t};\n}\n\nexport default sunset;\n"],"mappings":";;;AASA,IAAI,IAAS,WAA0B,CAAC;AAExC,IAAA,QAAA,IAAA,aAA6B,cAAc;CAC1C,IAAM,IAAY,EAAgB;CAElC,IAAS,SAAwB,GAAS,GAAW,GAAS,GAAS;EACtE,IAAM,IAAoB,IAAU,IAAI,MAAY;EACpD,AAAK,EAAU,IAAU,OAExB,EACC,CAAC,GACD,2BAA2B,EAAQ,kEAAkE,EAAQ,2BAA2B,GACzI,GAEA,EAAU,IAAU,KAAW,CAAC,CAAC;CAEnC;AACD;AAEA,IAAA,IAAe"}
@@ -0,0 +1,10 @@
1
+ //#region utilities/warning/warned-registry.ts
2
+ var e = [];
3
+ function t() {
4
+ let t = {};
5
+ return e.push(t), t;
6
+ }
7
+ //#endregion
8
+ export { t as createWarnedMap };
9
+
10
+ //# sourceMappingURL=warned-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warned-registry.js","names":[],"sources":["../../../../utilities/warning/warned-registry.ts"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// Every warn-once helper keeps its \"already warned\" keys in a map created\n// here, so tests can clear them all between cases. In an app nothing calls\n// `resetWarnings`, and each message still prints once per page load.\nconst registry: Record<string, boolean>[] = [];\n\nexport function createWarnedMap(): Record<string, boolean> {\n\tconst warned: Record<string, boolean> = {};\n\tregistry.push(warned);\n\treturn warned;\n}\n\n/** Test-only: forget every warning already printed. */\nexport function resetWarnings(): void {\n\tregistry.forEach((warned) => {\n\t\tObject.keys(warned).forEach((key) => {\n\t\t\tdelete warned[key];\n\t\t});\n\t});\n}\n"],"mappings":";AAMA,IAAM,IAAsC,CAAC;AAE7C,SAAgB,IAA2C;CAC1D,IAAM,IAAkC,CAAC;CAEzC,OADA,EAAS,KAAK,CAAM,GACb;AACR"}