@sprinklrjs/spaceweb 14.11.4 → 14.12.0

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 (823) hide show
  1. package/ClientOnly.d.ts +1 -1
  2. package/asyncSelect/asyncSelect.d.ts +2 -2
  3. package/asyncSelect/asyncSelect.js +1 -1
  4. package/asyncSelect/groupedAsyncSelect.d.ts +1 -1
  5. package/asyncSelect/groupedAsyncSelect.js +1 -1
  6. package/asyncSelect/hooks/useAsyncOptions.d.ts +1 -1
  7. package/asyncSelect/hooks/useAsyncOptions.js +4 -5
  8. package/asyncSelect/hooks/useAsyncSelect.d.ts +1 -1
  9. package/asyncSelect/hooks/useAsyncSelectAdapter.d.ts +1 -1
  10. package/asyncSelect/hooks/useBaseAsyncSelect.js +1 -1
  11. package/asyncSelect/hooks/useCreateOption.d.ts +2 -2
  12. package/asyncSelect/hooks/useCreateOption.js +3 -6
  13. package/asyncSelect/hooks/useGroupAsyncSelectAdapter.d.ts +3 -3
  14. package/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +1 -1
  15. package/asyncSelect/hooks/useInputChangeHandler.d.ts +2 -2
  16. package/asyncSelect/hooks/useResolveSelectedOptions.d.ts +3 -3
  17. package/asyncSelect/hooks/useResolveSelectedOptions.js +2 -4
  18. package/asyncSelect/types.d.ts +5 -6
  19. package/asyncSelect/utils/defaultCreateOption.d.ts +1 -1
  20. package/avatar/avatar.d.ts +2 -2
  21. package/avatar/components/grid-variant.d.ts +2 -2
  22. package/avatar/components/grid-variant.js +0 -1
  23. package/avatar/components/linear-variant.js +0 -2
  24. package/avatar/constants.d.ts +1 -1
  25. package/avatar/hooks/useAvatarGroupChildren.d.ts +2 -2
  26. package/avatar/hooks/useAvatarGroupChildren.js +0 -1
  27. package/avatar/styled-component.d.ts +1 -1
  28. package/avatar/styled-component.js +1 -3
  29. package/avatar/types.d.ts +2 -2
  30. package/avatar/useAvatarColor.js +0 -1
  31. package/avatar/utils/avatarGroupHelpers.d.ts +1 -1
  32. package/avatar/utils/cleanupDisplayName.js +2 -2
  33. package/badge/badge.d.ts +2 -2
  34. package/badge/types.d.ts +2 -2
  35. package/banner/banner.d.ts +1 -1
  36. package/banner/banner.js +2 -2
  37. package/banner/types.d.ts +3 -3
  38. package/base-button/styled-components.d.ts +1 -1
  39. package/base-button/types.d.ts +3 -3
  40. package/baseui/accordion/panel.js +1 -3
  41. package/baseui/accordion/stateful-panel-container.js +1 -2
  42. package/baseui/accordion/stateless-accordion.js +4 -6
  43. package/baseui/datepicker/calendar-header.js +2 -4
  44. package/baseui/datepicker/calendar.d.ts +1 -1
  45. package/baseui/datepicker/calendar.js +2 -3
  46. package/baseui/datepicker/day.d.ts +1 -1
  47. package/baseui/datepicker/day.js +1 -1
  48. package/baseui/datepicker/styled-components.js +1 -1
  49. package/baseui/datepicker/utils/date-helpers.js +4 -4
  50. package/baseui/datepicker/utils/index.js +7 -12
  51. package/baseui/helpers/overrides.d.ts +2 -2
  52. package/baseui/helpers/overrides.js +4 -7
  53. package/baseui/layer/layer.js +2 -1
  54. package/baseui/layer/layers-manager.js +2 -1
  55. package/baseui/layer/tether.js +1 -0
  56. package/baseui/layer/types.d.ts +1 -1
  57. package/baseui/modal/close-icon.js +9 -1
  58. package/baseui/modal/modal.d.ts +3 -3
  59. package/baseui/modal/modal.js +6 -8
  60. package/baseui/popover/popover.js +3 -4
  61. package/baseui/popover/stateful-container.js +1 -1
  62. package/baseui/popover/utils.js +1 -3
  63. package/baseui/select/autosize-input.d.ts +1 -1
  64. package/baseui/select/autosize-input.js +1 -1
  65. package/baseui/select/dropdown.js +1 -1
  66. package/baseui/select/select-component.d.ts +3 -4
  67. package/baseui/select/select-component.js +15 -10
  68. package/baseui/select/stateful-select-container.js +4 -8
  69. package/baseui/select/types.d.ts +4 -5
  70. package/baseui/select/utils/index.js +2 -6
  71. package/baseui/select/value.js +5 -1
  72. package/baseui/timepicker/timepicker.js +6 -7
  73. package/baseui/timepicker/types.d.ts +1 -1
  74. package/baseui/tree-view/index.d.ts +1 -1
  75. package/baseui/tree-view/tree-label-interactable.d.ts +1 -1
  76. package/baseui/tree-view/tree-label.js +1 -1
  77. package/baseui/tree-view/tree-node.js +1 -1
  78. package/baseui/tree-view/tree-view.js +1 -2
  79. package/baseui/tree-view/utils.js +3 -7
  80. package/baseui/utils/focusVisible.js +1 -1
  81. package/box/types.d.ts +2 -2
  82. package/breadcrumb/breadcrumb-ellipsis.d.ts +1 -1
  83. package/breadcrumb/breadcrumb-item.d.ts +1 -1
  84. package/breadcrumb/breadcrumb-item.js +0 -1
  85. package/breadcrumb/breadcrumb.d.ts +1 -1
  86. package/breadcrumb/breadcrumb.js +2 -1
  87. package/breadcrumb/types.d.ts +5 -4
  88. package/button/Button.js +2 -2
  89. package/button/CitationButton/CitationButton.d.ts +1 -1
  90. package/button/CitationButton/types.d.ts +1 -1
  91. package/button/DropdownEnhancer.d.ts +3 -3
  92. package/button/DropdownEnhancer.js +0 -1
  93. package/button/IconButton/IconButton.d.ts +1 -1
  94. package/button/IconButton/styled-components.d.ts +2 -2
  95. package/button/IconButton/types.d.ts +3 -3
  96. package/button/IconTextButton/styled-components.d.ts +1 -1
  97. package/button/IconTextButton/styled-components.js +2 -3
  98. package/button/IconTextButton/types.d.ts +3 -3
  99. package/button/button-enhancers.d.ts +1 -1
  100. package/button/helpers.d.ts +3 -3
  101. package/button/styled-components.d.ts +2 -2
  102. package/button/types.d.ts +6 -7
  103. package/button-group/ButtonGroup.d.ts +1 -1
  104. package/button-group/helpers.d.ts +2 -2
  105. package/button-group/styled-components.d.ts +3 -3
  106. package/button-group/types.d.ts +7 -8
  107. package/checkbox/checkbox.js +1 -3
  108. package/checkbox/hooks/useStatefulCheckbox.d.ts +1 -1
  109. package/checkbox/styled-components.d.ts +2 -2
  110. package/color-picker/ColorPalette.d.ts +1 -1
  111. package/color-picker/ColorPalette.js +1 -1
  112. package/color-picker/Swatch.d.ts +3 -3
  113. package/color-picker/types.d.ts +2 -2
  114. package/container/ContainerProps.d.ts +1 -1
  115. package/currency/Currency.d.ts +1 -1
  116. package/currency/constants.d.ts +1 -1
  117. package/currency/types.d.ts +1 -1
  118. package/currency/useCurrency.d.ts +1 -1
  119. package/currency/utils.d.ts +1 -1
  120. package/date-input/DateInput.d.ts +1 -1
  121. package/date-input/types.d.ts +5 -5
  122. package/date-picker/Calendar.d.ts +2 -2
  123. package/date-picker/DateInput.js +1 -1
  124. package/date-picker/DatePicker.d.ts +2 -2
  125. package/date-picker/StatelessDatePicker.js +1 -1
  126. package/date-picker/TimeInput.d.ts +3 -3
  127. package/date-picker/TimezoneDisplay.d.ts +1 -1
  128. package/date-picker/stateful-container.d.ts +2 -2
  129. package/date-picker/stateful-container.js +1 -1
  130. package/date-picker/styled-components.d.ts +2 -2
  131. package/date-picker/styled-components.js +1 -1
  132. package/date-picker/types.d.ts +6 -6
  133. package/date-picker/utils.js +0 -3
  134. package/date-time/DateTime.d.ts +1 -1
  135. package/date-time/types.d.ts +1 -1
  136. package/date-time/useDateTime.d.ts +1 -1
  137. package/esm/ClientOnly.d.ts +1 -1
  138. package/esm/asyncSelect/asyncSelect.d.ts +2 -2
  139. package/esm/asyncSelect/asyncSelect.js +1 -1
  140. package/esm/asyncSelect/groupedAsyncSelect.d.ts +1 -1
  141. package/esm/asyncSelect/groupedAsyncSelect.js +1 -1
  142. package/esm/asyncSelect/hooks/useAsyncOptions.d.ts +1 -1
  143. package/esm/asyncSelect/hooks/useAsyncOptions.js +4 -5
  144. package/esm/asyncSelect/hooks/useAsyncSelect.d.ts +1 -1
  145. package/esm/asyncSelect/hooks/useAsyncSelectAdapter.d.ts +1 -1
  146. package/esm/asyncSelect/hooks/useBaseAsyncSelect.js +1 -1
  147. package/esm/asyncSelect/hooks/useCreateOption.d.ts +2 -2
  148. package/esm/asyncSelect/hooks/useCreateOption.js +3 -6
  149. package/esm/asyncSelect/hooks/useGroupAsyncSelectAdapter.d.ts +3 -3
  150. package/esm/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +1 -1
  151. package/esm/asyncSelect/hooks/useInputChangeHandler.d.ts +2 -2
  152. package/esm/asyncSelect/hooks/useResolveSelectedOptions.d.ts +3 -3
  153. package/esm/asyncSelect/hooks/useResolveSelectedOptions.js +2 -4
  154. package/esm/asyncSelect/types.d.ts +5 -6
  155. package/esm/asyncSelect/utils/defaultCreateOption.d.ts +1 -1
  156. package/esm/avatar/avatar.d.ts +2 -2
  157. package/esm/avatar/components/grid-variant.d.ts +2 -2
  158. package/esm/avatar/components/grid-variant.js +0 -1
  159. package/esm/avatar/components/linear-variant.js +0 -2
  160. package/esm/avatar/constants.d.ts +1 -1
  161. package/esm/avatar/hooks/useAvatarGroupChildren.d.ts +2 -2
  162. package/esm/avatar/hooks/useAvatarGroupChildren.js +0 -1
  163. package/esm/avatar/styled-component.d.ts +1 -1
  164. package/esm/avatar/styled-component.js +1 -3
  165. package/esm/avatar/types.d.ts +2 -2
  166. package/esm/avatar/useAvatarColor.js +0 -1
  167. package/esm/avatar/utils/avatarGroupHelpers.d.ts +1 -1
  168. package/esm/avatar/utils/cleanupDisplayName.js +2 -2
  169. package/esm/badge/badge.d.ts +2 -2
  170. package/esm/badge/types.d.ts +2 -2
  171. package/esm/banner/banner.d.ts +1 -1
  172. package/esm/banner/banner.js +2 -2
  173. package/esm/banner/types.d.ts +3 -3
  174. package/esm/base-button/styled-components.d.ts +1 -1
  175. package/esm/base-button/types.d.ts +3 -3
  176. package/esm/baseui/accordion/panel.js +1 -3
  177. package/esm/baseui/accordion/stateful-panel-container.js +1 -2
  178. package/esm/baseui/accordion/stateless-accordion.js +4 -6
  179. package/esm/baseui/datepicker/calendar-header.js +2 -4
  180. package/esm/baseui/datepicker/calendar.d.ts +1 -1
  181. package/esm/baseui/datepicker/calendar.js +2 -3
  182. package/esm/baseui/datepicker/day.d.ts +1 -1
  183. package/esm/baseui/datepicker/day.js +1 -1
  184. package/esm/baseui/datepicker/styled-components.js +1 -1
  185. package/esm/baseui/datepicker/utils/date-helpers.js +4 -4
  186. package/esm/baseui/datepicker/utils/index.js +7 -12
  187. package/esm/baseui/helpers/overrides.d.ts +2 -2
  188. package/esm/baseui/helpers/overrides.js +4 -7
  189. package/esm/baseui/layer/layer.js +2 -1
  190. package/esm/baseui/layer/layers-manager.js +2 -1
  191. package/esm/baseui/layer/tether.js +1 -0
  192. package/esm/baseui/layer/types.d.ts +1 -1
  193. package/esm/baseui/modal/close-icon.js +9 -1
  194. package/esm/baseui/modal/modal.d.ts +3 -3
  195. package/esm/baseui/modal/modal.js +6 -8
  196. package/esm/baseui/popover/popover.js +3 -4
  197. package/esm/baseui/popover/stateful-container.js +1 -1
  198. package/esm/baseui/popover/utils.js +1 -3
  199. package/esm/baseui/select/autosize-input.d.ts +1 -1
  200. package/esm/baseui/select/autosize-input.js +1 -1
  201. package/esm/baseui/select/dropdown.js +1 -1
  202. package/esm/baseui/select/select-component.d.ts +3 -4
  203. package/esm/baseui/select/select-component.js +15 -10
  204. package/esm/baseui/select/stateful-select-container.js +4 -8
  205. package/esm/baseui/select/types.d.ts +4 -5
  206. package/esm/baseui/select/utils/index.js +2 -6
  207. package/esm/baseui/select/value.js +5 -1
  208. package/esm/baseui/timepicker/timepicker.js +6 -7
  209. package/esm/baseui/timepicker/types.d.ts +1 -1
  210. package/esm/baseui/tree-view/index.d.ts +1 -1
  211. package/esm/baseui/tree-view/index.js +1 -1
  212. package/esm/baseui/tree-view/tree-label-interactable.d.ts +1 -1
  213. package/esm/baseui/tree-view/tree-label.js +1 -1
  214. package/esm/baseui/tree-view/tree-node.js +1 -1
  215. package/esm/baseui/tree-view/tree-view.js +1 -2
  216. package/esm/baseui/tree-view/utils.js +3 -7
  217. package/esm/baseui/utils/focusVisible.js +1 -1
  218. package/esm/box/types.d.ts +2 -2
  219. package/esm/breadcrumb/breadcrumb-ellipsis.d.ts +1 -1
  220. package/esm/breadcrumb/breadcrumb-item.d.ts +1 -1
  221. package/esm/breadcrumb/breadcrumb-item.js +0 -1
  222. package/esm/breadcrumb/breadcrumb.d.ts +1 -1
  223. package/esm/breadcrumb/breadcrumb.js +2 -1
  224. package/esm/breadcrumb/types.d.ts +5 -4
  225. package/esm/button/Button.js +2 -2
  226. package/esm/button/CitationButton/CitationButton.d.ts +1 -1
  227. package/esm/button/CitationButton/types.d.ts +1 -1
  228. package/esm/button/DropdownEnhancer.d.ts +3 -3
  229. package/esm/button/DropdownEnhancer.js +0 -1
  230. package/esm/button/IconButton/IconButton.d.ts +1 -1
  231. package/esm/button/IconButton/styled-components.d.ts +2 -2
  232. package/esm/button/IconButton/types.d.ts +3 -3
  233. package/esm/button/IconTextButton/styled-components.d.ts +1 -1
  234. package/esm/button/IconTextButton/styled-components.js +2 -3
  235. package/esm/button/IconTextButton/types.d.ts +3 -3
  236. package/esm/button/button-enhancers.d.ts +1 -1
  237. package/esm/button/helpers.d.ts +3 -3
  238. package/esm/button/styled-components.d.ts +2 -2
  239. package/esm/button/types.d.ts +6 -7
  240. package/esm/button-group/ButtonGroup.d.ts +1 -1
  241. package/esm/button-group/helpers.d.ts +2 -2
  242. package/esm/button-group/styled-components.d.ts +3 -3
  243. package/esm/button-group/types.d.ts +7 -8
  244. package/esm/checkbox/checkbox.js +1 -3
  245. package/esm/checkbox/hooks/useStatefulCheckbox.d.ts +1 -1
  246. package/esm/checkbox/styled-components.d.ts +2 -2
  247. package/esm/color-picker/ColorPalette.d.ts +1 -1
  248. package/esm/color-picker/ColorPalette.js +1 -1
  249. package/esm/color-picker/Swatch.d.ts +3 -3
  250. package/esm/color-picker/types.d.ts +2 -2
  251. package/esm/container/ContainerProps.d.ts +1 -1
  252. package/esm/currency/Currency.d.ts +1 -1
  253. package/esm/currency/constants.d.ts +1 -1
  254. package/esm/currency/types.d.ts +1 -1
  255. package/esm/currency/useCurrency.d.ts +1 -1
  256. package/esm/currency/utils.d.ts +1 -1
  257. package/esm/date-input/DateInput.d.ts +1 -1
  258. package/esm/date-input/types.d.ts +5 -5
  259. package/esm/date-picker/Calendar.d.ts +2 -2
  260. package/esm/date-picker/DateInput.js +1 -1
  261. package/esm/date-picker/DatePicker.d.ts +2 -2
  262. package/esm/date-picker/StatelessDatePicker.js +1 -1
  263. package/esm/date-picker/TimeInput.d.ts +3 -3
  264. package/esm/date-picker/TimezoneDisplay.d.ts +1 -1
  265. package/esm/date-picker/stateful-container.d.ts +2 -2
  266. package/esm/date-picker/stateful-container.js +1 -1
  267. package/esm/date-picker/styled-components.d.ts +2 -2
  268. package/esm/date-picker/styled-components.js +1 -1
  269. package/esm/date-picker/types.d.ts +6 -6
  270. package/esm/date-picker/utils.js +0 -3
  271. package/esm/date-time/DateTime.d.ts +1 -1
  272. package/esm/date-time/types.d.ts +1 -1
  273. package/esm/date-time/useDateTime.d.ts +1 -1
  274. package/esm/form-control/context.d.ts +1 -1
  275. package/esm/form-control/form-control.d.ts +1 -1
  276. package/esm/form-control/form-control.js +1 -1
  277. package/esm/form-control/info-icon.d.ts +6 -5
  278. package/esm/form-control/info-icon.js +0 -1
  279. package/esm/form-control/styled-component.js +2 -1
  280. package/esm/form-control/types.d.ts +3 -4
  281. package/esm/grid/Col.d.ts +2 -2
  282. package/esm/grid/Grid.d.ts +2 -2
  283. package/esm/grid/Grid.js +0 -3
  284. package/esm/grid/index.d.ts +1 -1
  285. package/esm/grid/types.d.ts +1 -1
  286. package/esm/helpers/ClearIconButton.d.ts +3 -3
  287. package/esm/helpers/ClearIconButton.js +1 -1
  288. package/esm/helpers/commonStyles.js +2 -3
  289. package/esm/helpers/intentHelper.d.ts +1 -1
  290. package/esm/helpers/longHandHelpers.d.ts +1 -1
  291. package/esm/helpers/themeHelpers.d.ts +2 -2
  292. package/esm/hooks/useAutoFocus.d.ts +2 -2
  293. package/esm/hooks/useAutoFocus.js +1 -0
  294. package/esm/hooks/useDebouncedEventHandler.d.ts +1 -1
  295. package/esm/hooks/useDebouncedEventHandler.js +0 -3
  296. package/esm/hooks/useHover.d.ts +1 -1
  297. package/esm/hooks/useMatchMedia.js +3 -2
  298. package/esm/hooks/useSVGAnimation.d.ts +2 -2
  299. package/esm/hooks/useTabsKeyboardNavigation.d.ts +1 -1
  300. package/esm/hooks/useTabsKeyboardNavigation.js +0 -1
  301. package/esm/hooks/useTransitionState.js +0 -1
  302. package/esm/icon/components/alert-solid.d.ts +1 -1
  303. package/esm/icon/components/alert-warning.d.ts +1 -1
  304. package/esm/icon/components/alert.d.ts +1 -1
  305. package/esm/icon/components/calendar-solid.d.ts +1 -1
  306. package/esm/icon/components/chevron-down-solid.d.ts +1 -1
  307. package/esm/icon/components/chevron-down.d.ts +1 -1
  308. package/esm/icon/components/chevron-left.d.ts +1 -1
  309. package/esm/icon/components/chevron-right.d.ts +1 -1
  310. package/esm/icon/components/clock-icon.d.ts +1 -1
  311. package/esm/icon/components/close.d.ts +1 -1
  312. package/esm/icon/components/delete-solid.d.ts +1 -1
  313. package/esm/icon/components/error-clr.d.ts +1 -1
  314. package/esm/icon/components/error.d.ts +1 -1
  315. package/esm/icon/components/form.d.ts +1 -1
  316. package/esm/icon/components/imagePreview.d.ts +1 -1
  317. package/esm/icon/components/info-circle.d.ts +1 -1
  318. package/esm/icon/components/info-solid.d.ts +2 -2
  319. package/esm/icon/components/info.d.ts +1 -1
  320. package/esm/icon/components/no-video.d.ts +1 -1
  321. package/esm/icon/components/noPreview.d.ts +1 -1
  322. package/esm/icon/components/options.d.ts +1 -1
  323. package/esm/icon/components/overview.d.ts +1 -1
  324. package/esm/icon/components/play-video.d.ts +1 -1
  325. package/esm/icon/components/reset-color.d.ts +1 -1
  326. package/esm/icon/components/search.d.ts +1 -1
  327. package/esm/icon/components/subtract.d.ts +1 -1
  328. package/esm/icon/components/tick.d.ts +1 -1
  329. package/esm/icon/components/tickCircle-solid.d.ts +1 -1
  330. package/esm/icon/components/timezone.d.ts +1 -1
  331. package/esm/icon/components/transparentBackground.d.ts +1 -1
  332. package/esm/icon/components/user.d.ts +1 -1
  333. package/esm/icon/components/video-non-playable.d.ts +1 -1
  334. package/esm/icon/components/warning-solid.d.ts +1 -1
  335. package/esm/icon/icon.d.ts +1 -1
  336. package/esm/icon/types.d.ts +3 -3
  337. package/esm/image/defaultFallbackImg.d.ts +2 -2
  338. package/esm/image/types.d.ts +3 -3
  339. package/esm/input/InputContainer.d.ts +1 -1
  340. package/esm/input/base-input.d.ts +2 -2
  341. package/esm/input/base-input.js +2 -2
  342. package/esm/input/masked-input.js +5 -5
  343. package/esm/input/neutral400Hex.d.ts +1 -1
  344. package/esm/input/number/NumberInput.d.ts +1 -1
  345. package/esm/input/number/StatefulNumberInput.d.ts +1 -1
  346. package/esm/input/number/base-input.d.ts +1 -1
  347. package/esm/input/useStatefulInput.d.ts +1 -2
  348. package/esm/layer/LayersManager.d.ts +1 -1
  349. package/esm/link/styled-components.d.ts +2 -2
  350. package/esm/link/types.d.ts +1 -1
  351. package/esm/list/avatar-list-item.d.ts +3 -3
  352. package/esm/list/list-item-text.d.ts +1 -1
  353. package/esm/list/list-item.d.ts +1 -1
  354. package/esm/list/styled-component.js +1 -1
  355. package/esm/loader/types.d.ts +3 -3
  356. package/esm/locale/context.d.ts +1 -1
  357. package/esm/locale/en_US.d.ts +1 -1
  358. package/esm/menu/nested-menu-context.d.ts +2 -2
  359. package/esm/menu/useItemContainerEventHandlers.d.ts +1 -1
  360. package/esm/modal/adapter.d.ts +3 -3
  361. package/esm/modal/modal-footer.d.ts +2 -2
  362. package/esm/modal/overrides.d.ts +3 -3
  363. package/esm/number/Number.d.ts +1 -1
  364. package/esm/number/constants.d.ts +1 -1
  365. package/esm/number/types.d.ts +1 -1
  366. package/esm/number/useNumber.d.ts +1 -1
  367. package/esm/overrides/mergeOverrides.d.ts +1 -1
  368. package/esm/overrides/types.d.ts +3 -3
  369. package/esm/overrides/useOverrides.d.ts +2 -2
  370. package/esm/payment-card/icons/amex.js +9 -1
  371. package/esm/payment-card/icons/dinersclub.js +9 -1
  372. package/esm/payment-card/icons/discover.js +9 -1
  373. package/esm/payment-card/icons/elo.js +9 -1
  374. package/esm/payment-card/icons/generic.js +9 -1
  375. package/esm/payment-card/icons/jcb.js +9 -1
  376. package/esm/payment-card/icons/maestro.js +9 -1
  377. package/esm/payment-card/icons/mastercard.js +9 -1
  378. package/esm/payment-card/icons/uatp.js +9 -1
  379. package/esm/payment-card/icons/unionpay.js +9 -1
  380. package/esm/payment-card/icons/visa.js +9 -1
  381. package/esm/payment-card/paymentCard.js +1 -1
  382. package/esm/payment-card/types.d.ts +4 -4
  383. package/esm/phone-input/country-select-container.d.ts +1 -1
  384. package/esm/phone-input/country-select.d.ts +1 -1
  385. package/esm/phone-input/default-props.d.ts +2 -2
  386. package/esm/phone-input/dial-code.d.ts +1 -1
  387. package/esm/phone-input/phone-input.d.ts +1 -1
  388. package/esm/phone-input/stateful-phone-input.d.ts +2 -2
  389. package/esm/phone-input/stateful-phone-input.js +2 -2
  390. package/esm/phone-input/types.d.ts +5 -5
  391. package/esm/phone-input/useStatefulPhoneInput.d.ts +1 -1
  392. package/esm/phone-input/utils.d.ts +2 -2
  393. package/esm/popover/PopoverEnhancer.d.ts +6 -6
  394. package/esm/popover/PopoverEnhancer.js +11 -9
  395. package/esm/popover/adapter.d.ts +2 -2
  396. package/esm/popover/hooks.d.ts +1 -1
  397. package/esm/popover/overrides.d.ts +2 -2
  398. package/esm/popover/stateful-popover.d.ts +1 -1
  399. package/esm/popover/utils.d.ts +1 -1
  400. package/esm/progress/circular/styled-component.d.ts +1 -1
  401. package/esm/progress/circular/types.d.ts +2 -2
  402. package/esm/progress/helper.d.ts +2 -2
  403. package/esm/progress/linear/ProgressSegment.js +1 -1
  404. package/esm/progress/linear/types.d.ts +2 -2
  405. package/esm/progress/types.d.ts +1 -1
  406. package/esm/progressSteps/progress-steps.d.ts +1 -1
  407. package/esm/progressSteps/step.d.ts +1 -1
  408. package/esm/progressSteps/styled-components.d.ts +1 -1
  409. package/esm/progressSteps/types.d.ts +1 -1
  410. package/esm/radio/radio.js +2 -1
  411. package/esm/radio/radiogroup.js +1 -1
  412. package/esm/radio/space-radio-context.d.ts +2 -2
  413. package/esm/radio/styled-components.d.ts +2 -2
  414. package/esm/radio/types.d.ts +5 -5
  415. package/esm/search/search.d.ts +3 -3
  416. package/esm/search/stateful-search.d.ts +2 -2
  417. package/esm/search/styled-components.d.ts +1 -1
  418. package/esm/search/types.d.ts +2 -2
  419. package/esm/select/SelectIdsContext.d.ts +1 -1
  420. package/esm/select/adaptor.d.ts +2 -2
  421. package/esm/select/base-select.js +4 -4
  422. package/esm/select/default-props.d.ts +1 -1
  423. package/esm/select/grouped-select.d.ts +2 -2
  424. package/esm/select/grouped-select.js +0 -1
  425. package/esm/select/mobileSelect/AdaptedCSSTransition/AdaptedCSSTransition.d.ts +1 -1
  426. package/esm/select/mobileSelect/AdaptedCSSTransition/types.d.ts +2 -2
  427. package/esm/select/mobileSelect/Backdrop.d.ts +1 -1
  428. package/esm/select/mobileSelect/MobileSelect.d.ts +1 -1
  429. package/esm/select/mobileSelect/MobileSheet.d.ts +1 -1
  430. package/esm/select/mobileSelect/hooks/usePauseBodyScrollEffect.d.ts +1 -1
  431. package/esm/select/mobileSelect/hooks/useSwipeableSheetStyles.d.ts +1 -1
  432. package/esm/select/mobileSelect/hooks/useSwipeableSheetStyles.js +2 -2
  433. package/esm/select/mobileSelect/hooks/useTransitionStyles.d.ts +1 -1
  434. package/esm/select/multi-value.d.ts +1 -1
  435. package/esm/select/multi-value.js +1 -1
  436. package/esm/select/no-results-message.d.ts +2 -2
  437. package/esm/select/overlaySelect/hooks/useControlRef.d.ts +1 -1
  438. package/esm/select/overlaySelect/hooks/usePopover.d.ts +1 -1
  439. package/esm/select/overrides.d.ts +3 -3
  440. package/esm/select/overrides.js +3 -2
  441. package/esm/select/select-variants.d.ts +1 -1
  442. package/esm/select/selectMenuAdapter/SelectMenuAdapter.js +2 -1
  443. package/esm/select/stateful-select.d.ts +1 -1
  444. package/esm/select/styled-component.js +1 -3
  445. package/esm/select/utils/adapt-select-value.d.ts +1 -1
  446. package/esm/select/utils/default-create-option.d.ts +1 -1
  447. package/esm/select/utils/hidden-element.d.ts +1 -1
  448. package/esm/select/utils/hidden-element.js +2 -1
  449. package/esm/select/utils/merge-options.d.ts +1 -1
  450. package/esm/slider/slider.js +13 -7
  451. package/esm/slider/stateful-slider-container.d.ts +1 -1
  452. package/esm/slider/stateful-slider-container.js +4 -4
  453. package/esm/slider/stateful-slider.d.ts +2 -2
  454. package/esm/slider/styled-components.d.ts +1 -1
  455. package/esm/slider/styled-components.js +27 -3
  456. package/esm/slider/types.d.ts +2 -2
  457. package/esm/snackbar/constants.d.ts +3 -3
  458. package/esm/snackbar/snackbarContext.d.ts +1 -1
  459. package/esm/snackbar/types.d.ts +1 -1
  460. package/esm/snackbar/useSnackbar.d.ts +2 -2
  461. package/esm/spaceConsumer/SpaceConsumer.d.ts +2 -2
  462. package/esm/spacewebProvider/AiIconLinearGradients.js +3 -1
  463. package/esm/spacewebProvider/CustomBaseProvider.d.ts +1 -1
  464. package/esm/spacewebProvider/DocumentProvider.d.ts +1 -1
  465. package/esm/spacewebProvider/SpacewebProvider.d.ts +4 -4
  466. package/esm/spacewebProvider/SpacewebProvider.js +1 -1
  467. package/esm/stack/context.d.ts +1 -1
  468. package/esm/stack/stack.d.ts +1 -1
  469. package/esm/stack/types.d.ts +2 -2
  470. package/esm/style/_buildUtils.d.ts +1 -1
  471. package/esm/style/_css.d.ts +1 -1
  472. package/esm/style/_cssParseStyle.d.ts +1 -1
  473. package/esm/style/_getStyle.d.ts +1 -1
  474. package/esm/style/_getStyleWithProps.d.ts +1 -1
  475. package/esm/style/_parseClassName.d.ts +1 -1
  476. package/esm/style/_parseStyleProp.d.ts +2 -2
  477. package/esm/style/_parseStyleProp.js +3 -2
  478. package/esm/style/_px2rem.d.ts +1 -1
  479. package/esm/style/styled-with-css-variables.d.ts +1 -1
  480. package/esm/style/styled.d.ts +2 -2
  481. package/esm/style/styled.js +1 -1
  482. package/esm/style/useMemoizedStyletron.js +2 -2
  483. package/esm/style/useStyle.d.ts +1 -1
  484. package/esm/styleEngine/styleEngine.d.ts +2 -2
  485. package/esm/styleEngine/styleEngine.js +0 -1
  486. package/esm/switch/switch.d.ts +3 -3
  487. package/esm/switch/switch.js +1 -1
  488. package/esm/tabs/contexts.d.ts +2 -2
  489. package/esm/tabs/helpers.d.ts +1 -1
  490. package/esm/tabs/scroll-button.d.ts +1 -1
  491. package/esm/tabs/stateful-tabs.d.ts +2 -2
  492. package/esm/tabs/styled-components.d.ts +2 -2
  493. package/esm/tabs/tab-list.d.ts +1 -1
  494. package/esm/tabs/tab.d.ts +2 -2
  495. package/esm/tabs/tabs-panel.d.ts +2 -2
  496. package/esm/tabs/types.d.ts +4 -4
  497. package/esm/tag/constants.d.ts +1 -1
  498. package/esm/tag/status-tag.d.ts +1 -1
  499. package/esm/tag/tag.js +6 -2
  500. package/esm/tag/utils.d.ts +1 -1
  501. package/esm/test-utils/test-provider/TestProvider.d.ts +1 -1
  502. package/esm/test-utils/test-provider/helpers.d.ts +2 -2
  503. package/esm/test-utils/test-provider/testableThemes.d.ts +1 -1
  504. package/esm/textarea/textarea.js +5 -5
  505. package/esm/textarea/types.d.ts +4 -5
  506. package/esm/textarea/useAutoSizeTextarea.d.ts +2 -2
  507. package/esm/theme/Provider.d.ts +2 -2
  508. package/esm/theme/context.d.ts +1 -1
  509. package/esm/theme/types.d.ts +1 -1
  510. package/esm/time-picker/TimePicker.d.ts +2 -2
  511. package/esm/time-picker/types.d.ts +5 -5
  512. package/esm/time-range-picker/RangeSelector.d.ts +2 -2
  513. package/esm/time-range-picker/TimeRangeList.d.ts +2 -2
  514. package/esm/time-range-picker/TimeRangePicker.d.ts +2 -2
  515. package/esm/time-range-picker/TimeRangePicker.js +2 -1
  516. package/esm/time-range-picker/TimezonePicker.d.ts +1 -1
  517. package/esm/time-range-picker/types.d.ts +1 -1
  518. package/esm/time-range-picker/utils.d.ts +2 -2
  519. package/esm/time-zone-picker/TimezonePicker.d.ts +2 -2
  520. package/esm/time-zone-picker/types.d.ts +1 -1
  521. package/esm/tooltip/disabled-tooltip-container.d.ts +1 -1
  522. package/esm/tooltip/overrides.d.ts +2 -2
  523. package/esm/tooltip/stateful-tooltip-container.d.ts +1 -1
  524. package/esm/tooltip/stateful-tooltip.d.ts +2 -2
  525. package/esm/tooltip/tooltip.d.ts +2 -2
  526. package/esm/tooltip/types.d.ts +5 -5
  527. package/esm/transitions/collapse/collapse.d.ts +2 -2
  528. package/esm/transitions/collapse/types.d.ts +2 -2
  529. package/esm/transitions/fade/fade.d.ts +2 -2
  530. package/esm/transitions/fade/types.d.ts +2 -2
  531. package/esm/transitions/grow/grow.d.ts +2 -2
  532. package/esm/transitions/grow/types.d.ts +2 -2
  533. package/esm/transitions/transition/SwitchTransition.d.ts +2 -2
  534. package/esm/transitions/transition/transition.d.ts +2 -2
  535. package/esm/transitions/transition/types.d.ts +5 -4
  536. package/esm/truncateWithTooltip/TruncateWithTooltip.d.ts +1 -1
  537. package/esm/truncateWithTooltip/TruncateWithTooltip.js +6 -5
  538. package/esm/truncateWithTooltip/hooks/useTruncateWithTooltip.d.ts +7 -2
  539. package/esm/truncateWithTooltip/hooks/useTruncateWithTooltip.js +9 -9
  540. package/esm/types.d.ts +5 -5
  541. package/esm/typography/Typography.d.ts +1 -1
  542. package/esm/typography/types.d.ts +4 -4
  543. package/esm/utils/intlNumberFormatUtils/index.d.ts +1 -1
  544. package/esm/utils/intlNumberFormatUtils/index.js +1 -1
  545. package/esm/video/DefaultFallbackImg.d.ts +2 -2
  546. package/esm/video/Video.js +0 -1
  547. package/esm/video/types.d.ts +4 -5
  548. package/form-control/context.d.ts +1 -1
  549. package/form-control/form-control.d.ts +1 -1
  550. package/form-control/form-control.js +1 -1
  551. package/form-control/info-icon.d.ts +6 -5
  552. package/form-control/info-icon.js +0 -1
  553. package/form-control/styled-component.js +2 -1
  554. package/form-control/types.d.ts +3 -4
  555. package/grid/Col.d.ts +2 -2
  556. package/grid/Grid.d.ts +2 -2
  557. package/grid/Grid.js +0 -3
  558. package/grid/index.d.ts +1 -1
  559. package/grid/types.d.ts +1 -1
  560. package/helpers/ClearIconButton.d.ts +3 -3
  561. package/helpers/ClearIconButton.js +1 -1
  562. package/helpers/commonStyles.js +2 -3
  563. package/helpers/intentHelper.d.ts +1 -1
  564. package/helpers/longHandHelpers.d.ts +1 -1
  565. package/helpers/themeHelpers.d.ts +2 -2
  566. package/hooks/useAutoFocus.d.ts +2 -2
  567. package/hooks/useAutoFocus.js +1 -0
  568. package/hooks/useDebouncedEventHandler.d.ts +1 -1
  569. package/hooks/useDebouncedEventHandler.js +0 -3
  570. package/hooks/useHover.d.ts +1 -1
  571. package/hooks/useMatchMedia.js +3 -2
  572. package/hooks/useSVGAnimation.d.ts +2 -2
  573. package/hooks/useTabsKeyboardNavigation.d.ts +1 -1
  574. package/hooks/useTabsKeyboardNavigation.js +0 -1
  575. package/hooks/useTransitionState.js +0 -1
  576. package/icon/components/alert-solid.d.ts +1 -1
  577. package/icon/components/alert-warning.d.ts +1 -1
  578. package/icon/components/alert.d.ts +1 -1
  579. package/icon/components/calendar-solid.d.ts +1 -1
  580. package/icon/components/chevron-down-solid.d.ts +1 -1
  581. package/icon/components/chevron-down.d.ts +1 -1
  582. package/icon/components/chevron-left.d.ts +1 -1
  583. package/icon/components/chevron-right.d.ts +1 -1
  584. package/icon/components/clock-icon.d.ts +1 -1
  585. package/icon/components/close.d.ts +1 -1
  586. package/icon/components/delete-solid.d.ts +1 -1
  587. package/icon/components/error-clr.d.ts +1 -1
  588. package/icon/components/error.d.ts +1 -1
  589. package/icon/components/form.d.ts +1 -1
  590. package/icon/components/imagePreview.d.ts +1 -1
  591. package/icon/components/info-circle.d.ts +1 -1
  592. package/icon/components/info-solid.d.ts +2 -2
  593. package/icon/components/info.d.ts +1 -1
  594. package/icon/components/no-video.d.ts +1 -1
  595. package/icon/components/noPreview.d.ts +1 -1
  596. package/icon/components/options.d.ts +1 -1
  597. package/icon/components/overview.d.ts +1 -1
  598. package/icon/components/play-video.d.ts +1 -1
  599. package/icon/components/reset-color.d.ts +1 -1
  600. package/icon/components/search.d.ts +1 -1
  601. package/icon/components/subtract.d.ts +1 -1
  602. package/icon/components/tick.d.ts +1 -1
  603. package/icon/components/tickCircle-solid.d.ts +1 -1
  604. package/icon/components/timezone.d.ts +1 -1
  605. package/icon/components/transparentBackground.d.ts +1 -1
  606. package/icon/components/user.d.ts +1 -1
  607. package/icon/components/video-non-playable.d.ts +1 -1
  608. package/icon/components/warning-solid.d.ts +1 -1
  609. package/icon/icon.d.ts +1 -1
  610. package/icon/types.d.ts +3 -3
  611. package/image/defaultFallbackImg.d.ts +2 -2
  612. package/image/types.d.ts +3 -3
  613. package/input/InputContainer.d.ts +1 -1
  614. package/input/base-input.d.ts +2 -2
  615. package/input/base-input.js +2 -2
  616. package/input/masked-input.js +5 -5
  617. package/input/neutral400Hex.d.ts +1 -1
  618. package/input/number/NumberInput.d.ts +1 -1
  619. package/input/number/StatefulNumberInput.d.ts +1 -1
  620. package/input/number/base-input.d.ts +1 -1
  621. package/input/useStatefulInput.d.ts +1 -2
  622. package/layer/LayersManager.d.ts +1 -1
  623. package/link/styled-components.d.ts +2 -2
  624. package/link/types.d.ts +1 -1
  625. package/list/avatar-list-item.d.ts +3 -3
  626. package/list/list-item-text.d.ts +1 -1
  627. package/list/list-item.d.ts +1 -1
  628. package/list/styled-component.js +1 -1
  629. package/loader/types.d.ts +3 -3
  630. package/locale/context.d.ts +1 -1
  631. package/locale/en_US.d.ts +1 -1
  632. package/menu/nested-menu-context.d.ts +2 -2
  633. package/menu/useItemContainerEventHandlers.d.ts +1 -1
  634. package/modal/adapter.d.ts +3 -3
  635. package/modal/modal-footer.d.ts +2 -2
  636. package/modal/overrides.d.ts +3 -3
  637. package/number/Number.d.ts +1 -1
  638. package/number/constants.d.ts +1 -1
  639. package/number/types.d.ts +1 -1
  640. package/number/useNumber.d.ts +1 -1
  641. package/overrides/mergeOverrides.d.ts +1 -1
  642. package/overrides/types.d.ts +3 -3
  643. package/overrides/useOverrides.d.ts +2 -2
  644. package/package.json +2 -2
  645. package/payment-card/icons/amex.js +9 -1
  646. package/payment-card/icons/dinersclub.js +9 -1
  647. package/payment-card/icons/discover.js +9 -1
  648. package/payment-card/icons/elo.js +9 -1
  649. package/payment-card/icons/generic.js +9 -1
  650. package/payment-card/icons/jcb.js +9 -1
  651. package/payment-card/icons/maestro.js +9 -1
  652. package/payment-card/icons/mastercard.js +9 -1
  653. package/payment-card/icons/uatp.js +9 -1
  654. package/payment-card/icons/unionpay.js +9 -1
  655. package/payment-card/icons/visa.js +9 -1
  656. package/payment-card/paymentCard.js +1 -1
  657. package/payment-card/types.d.ts +4 -4
  658. package/phone-input/country-select-container.d.ts +1 -1
  659. package/phone-input/country-select.d.ts +1 -1
  660. package/phone-input/default-props.d.ts +2 -2
  661. package/phone-input/dial-code.d.ts +1 -1
  662. package/phone-input/phone-input.d.ts +1 -1
  663. package/phone-input/stateful-phone-input.d.ts +2 -2
  664. package/phone-input/stateful-phone-input.js +1 -1
  665. package/phone-input/types.d.ts +5 -5
  666. package/phone-input/useStatefulPhoneInput.d.ts +1 -1
  667. package/phone-input/utils.d.ts +2 -2
  668. package/popover/PopoverEnhancer.d.ts +6 -6
  669. package/popover/PopoverEnhancer.js +10 -8
  670. package/popover/adapter.d.ts +2 -2
  671. package/popover/hooks.d.ts +1 -1
  672. package/popover/overrides.d.ts +2 -2
  673. package/popover/stateful-popover.d.ts +1 -1
  674. package/popover/utils.d.ts +1 -1
  675. package/progress/circular/styled-component.d.ts +1 -1
  676. package/progress/circular/types.d.ts +2 -2
  677. package/progress/helper.d.ts +2 -2
  678. package/progress/linear/ProgressSegment.js +1 -1
  679. package/progress/linear/types.d.ts +2 -2
  680. package/progress/types.d.ts +1 -1
  681. package/progressSteps/progress-steps.d.ts +1 -1
  682. package/progressSteps/step.d.ts +1 -1
  683. package/progressSteps/styled-components.d.ts +1 -1
  684. package/progressSteps/types.d.ts +1 -1
  685. package/radio/radio.js +2 -1
  686. package/radio/radiogroup.js +1 -1
  687. package/radio/space-radio-context.d.ts +2 -2
  688. package/radio/styled-components.d.ts +2 -2
  689. package/radio/types.d.ts +5 -5
  690. package/search/search.d.ts +3 -3
  691. package/search/stateful-search.d.ts +2 -2
  692. package/search/styled-components.d.ts +1 -1
  693. package/search/types.d.ts +2 -2
  694. package/select/SelectIdsContext.d.ts +1 -1
  695. package/select/adaptor.d.ts +2 -2
  696. package/select/base-select.js +4 -4
  697. package/select/default-props.d.ts +1 -1
  698. package/select/grouped-select.d.ts +2 -2
  699. package/select/grouped-select.js +0 -1
  700. package/select/mobileSelect/AdaptedCSSTransition/AdaptedCSSTransition.d.ts +1 -1
  701. package/select/mobileSelect/AdaptedCSSTransition/types.d.ts +2 -2
  702. package/select/mobileSelect/Backdrop.d.ts +1 -1
  703. package/select/mobileSelect/MobileSelect.d.ts +1 -1
  704. package/select/mobileSelect/MobileSheet.d.ts +1 -1
  705. package/select/mobileSelect/hooks/usePauseBodyScrollEffect.d.ts +1 -1
  706. package/select/mobileSelect/hooks/useSwipeableSheetStyles.d.ts +1 -1
  707. package/select/mobileSelect/hooks/useSwipeableSheetStyles.js +2 -2
  708. package/select/mobileSelect/hooks/useTransitionStyles.d.ts +1 -1
  709. package/select/multi-value.d.ts +1 -1
  710. package/select/multi-value.js +1 -1
  711. package/select/no-results-message.d.ts +2 -2
  712. package/select/overlaySelect/hooks/useControlRef.d.ts +1 -1
  713. package/select/overlaySelect/hooks/usePopover.d.ts +1 -1
  714. package/select/overrides.d.ts +3 -3
  715. package/select/overrides.js +3 -2
  716. package/select/select-variants.d.ts +1 -1
  717. package/select/selectMenuAdapter/SelectMenuAdapter.js +2 -1
  718. package/select/stateful-select.d.ts +1 -1
  719. package/select/styled-component.js +1 -3
  720. package/select/utils/adapt-select-value.d.ts +1 -1
  721. package/select/utils/default-create-option.d.ts +1 -1
  722. package/select/utils/hidden-element.d.ts +1 -1
  723. package/select/utils/hidden-element.js +2 -1
  724. package/select/utils/merge-options.d.ts +1 -1
  725. package/slider/slider.js +13 -7
  726. package/slider/stateful-slider-container.d.ts +1 -1
  727. package/slider/stateful-slider-container.js +4 -4
  728. package/slider/stateful-slider.d.ts +2 -2
  729. package/slider/styled-components.d.ts +1 -1
  730. package/slider/styled-components.js +27 -3
  731. package/slider/types.d.ts +2 -2
  732. package/snackbar/constants.d.ts +3 -3
  733. package/snackbar/snackbarContext.d.ts +1 -1
  734. package/snackbar/types.d.ts +1 -1
  735. package/snackbar/useSnackbar.d.ts +2 -2
  736. package/spaceConsumer/SpaceConsumer.d.ts +2 -2
  737. package/spacewebProvider/AiIconLinearGradients.js +3 -1
  738. package/spacewebProvider/CustomBaseProvider.d.ts +1 -1
  739. package/spacewebProvider/DocumentProvider.d.ts +1 -1
  740. package/spacewebProvider/SpacewebProvider.d.ts +4 -4
  741. package/spacewebProvider/SpacewebProvider.js +1 -1
  742. package/stack/context.d.ts +1 -1
  743. package/stack/stack.d.ts +1 -1
  744. package/stack/types.d.ts +2 -2
  745. package/style/_buildUtils.d.ts +1 -1
  746. package/style/_css.d.ts +1 -1
  747. package/style/_cssParseStyle.d.ts +1 -1
  748. package/style/_getStyle.d.ts +1 -1
  749. package/style/_getStyleWithProps.d.ts +1 -1
  750. package/style/_parseClassName.d.ts +1 -1
  751. package/style/_parseStyleProp.d.ts +2 -2
  752. package/style/_parseStyleProp.js +3 -2
  753. package/style/_px2rem.d.ts +1 -1
  754. package/style/styled-with-css-variables.d.ts +1 -1
  755. package/style/styled.d.ts +2 -2
  756. package/style/styled.js +1 -1
  757. package/style/useMemoizedStyletron.js +2 -2
  758. package/style/useStyle.d.ts +1 -1
  759. package/styleEngine/styleEngine.d.ts +2 -2
  760. package/styleEngine/styleEngine.js +0 -1
  761. package/switch/switch.d.ts +3 -3
  762. package/switch/switch.js +1 -1
  763. package/tabs/contexts.d.ts +2 -2
  764. package/tabs/helpers.d.ts +1 -1
  765. package/tabs/scroll-button.d.ts +1 -1
  766. package/tabs/stateful-tabs.d.ts +2 -2
  767. package/tabs/styled-components.d.ts +2 -2
  768. package/tabs/tab-list.d.ts +1 -1
  769. package/tabs/tab.d.ts +2 -2
  770. package/tabs/tabs-panel.d.ts +2 -2
  771. package/tabs/types.d.ts +4 -4
  772. package/tag/constants.d.ts +1 -1
  773. package/tag/status-tag.d.ts +1 -1
  774. package/tag/tag.js +6 -2
  775. package/tag/utils.d.ts +1 -1
  776. package/test-utils/test-provider/TestProvider.d.ts +1 -1
  777. package/test-utils/test-provider/helpers.d.ts +2 -2
  778. package/test-utils/test-provider/testableThemes.d.ts +1 -1
  779. package/textarea/textarea.js +5 -5
  780. package/textarea/types.d.ts +4 -5
  781. package/textarea/useAutoSizeTextarea.d.ts +2 -2
  782. package/theme/Provider.d.ts +2 -2
  783. package/theme/context.d.ts +1 -1
  784. package/theme/types.d.ts +1 -1
  785. package/time-picker/TimePicker.d.ts +2 -2
  786. package/time-picker/types.d.ts +5 -5
  787. package/time-range-picker/RangeSelector.d.ts +2 -2
  788. package/time-range-picker/TimeRangeList.d.ts +2 -2
  789. package/time-range-picker/TimeRangePicker.d.ts +2 -2
  790. package/time-range-picker/TimeRangePicker.js +2 -1
  791. package/time-range-picker/TimezonePicker.d.ts +1 -1
  792. package/time-range-picker/types.d.ts +1 -1
  793. package/time-range-picker/utils.d.ts +2 -2
  794. package/time-zone-picker/TimezonePicker.d.ts +2 -2
  795. package/time-zone-picker/types.d.ts +1 -1
  796. package/tooltip/disabled-tooltip-container.d.ts +1 -1
  797. package/tooltip/overrides.d.ts +2 -2
  798. package/tooltip/stateful-tooltip-container.d.ts +1 -1
  799. package/tooltip/stateful-tooltip.d.ts +2 -2
  800. package/tooltip/tooltip.d.ts +2 -2
  801. package/tooltip/types.d.ts +5 -5
  802. package/transitions/collapse/collapse.d.ts +2 -2
  803. package/transitions/collapse/types.d.ts +2 -2
  804. package/transitions/fade/fade.d.ts +2 -2
  805. package/transitions/fade/types.d.ts +2 -2
  806. package/transitions/grow/grow.d.ts +2 -2
  807. package/transitions/grow/types.d.ts +2 -2
  808. package/transitions/transition/SwitchTransition.d.ts +2 -2
  809. package/transitions/transition/transition.d.ts +2 -2
  810. package/transitions/transition/types.d.ts +5 -4
  811. package/truncateWithTooltip/TruncateWithTooltip.d.ts +1 -1
  812. package/truncateWithTooltip/TruncateWithTooltip.js +6 -5
  813. package/truncateWithTooltip/hooks/useTruncateWithTooltip.d.ts +7 -2
  814. package/truncateWithTooltip/hooks/useTruncateWithTooltip.js +9 -9
  815. package/tsconfig.build.tsbuildinfo +1 -1
  816. package/types.d.ts +5 -5
  817. package/typography/Typography.d.ts +1 -1
  818. package/typography/types.d.ts +4 -4
  819. package/utils/intlNumberFormatUtils/index.d.ts +1 -1
  820. package/utils/intlNumberFormatUtils/index.js +1 -1
  821. package/video/DefaultFallbackImg.d.ts +2 -2
  822. package/video/Video.js +0 -1
  823. package/video/types.d.ts +4 -5
@@ -143,10 +143,8 @@ var CalendarHeader = /** @class */ (function (_super) {
143
143
  var isLastMonth = order === monthsShown - 1;
144
144
  return !isLastMonth;
145
145
  }
146
- else {
147
- var isFirstMonth = order === 0;
148
- return !isFirstMonth;
149
- }
146
+ var isFirstMonth = order === 0;
147
+ return !isFirstMonth;
150
148
  }
151
149
  return false;
152
150
  };
@@ -1,3 +1,3 @@
1
1
  import type { CalendarProps } from './types';
2
- import { ReactElement } from 'react';
2
+ import type { ReactElement } from 'react';
3
3
  export default function Calendar<T = Date>(props: CalendarProps<T>): ReactElement;
@@ -17,6 +17,7 @@ import DateHelpers from './utils/date-helpers';
17
17
  import { getOverrides } from '../../overrides';
18
18
  import { DENSITY, ORIENTATION } from './constants';
19
19
  import { isServer, useDocument } from '../../spacewebProvider';
20
+ import { Box } from '../../box';
20
21
  var BaseCalendar = /** @class */ (function (_super) {
21
22
  __extends(BaseCalendar, _super);
22
23
  function BaseCalendar(props) {
@@ -261,7 +262,7 @@ var BaseCalendar = /** @class */ (function (_super) {
261
262
  }, role: "grid", "aria-multiselectable": _this.props.range || null, onKeyDown: _this.onKeyDown }, calendarContainerProps, { "$density": _this.props.density }, { children: _jsx(Month, { adapter: _this.props.adapter, date: monthDate, dateLabel: _this.props.dateLabel, density: _this.props.density, excludeDates: _this.props.excludeDates, filterDate: _this.props.filterDate, getTimeRangesForDate: _this.props.getTimeRangesForDate, highlightedDate: _this.state.highlightedDate, includeDates: _this.props.includeDates, focusedCalendar: _this.state.focused, range: _this.props.range, locale: _this.props.locale, maxDate: _this.props.maxDate, minDate: _this.props.minDate, month: _this.dateHelpers.getMonth(_this.state.date), onDayBlur: _this.blurCalendar, onDayFocus: _this.onDayFocus, onDayClick: _this.props.onDayClick, onDayMouseOver: _this.onDayMouseOver, onDayMouseLeave: _this.onDayMouseLeave, onChange: _this.handleDateChange, overrides: overrides, value: _this.props.value, peekNextMonth: _this.props.peekNextMonth, fixedHeight: _this.props.fixedHeight, hasLockedBehavior: !!_this.props.hasLockedBehavior, selectedInput: _this.props.selectedInput }) }), monthKey));
262
263
  monthList.push(
263
264
  // @ts-ignore
264
- _jsx("div", __assign({ className: "grow" }, { children: monthSubComponents }), "month-component-".concat(i)));
265
+ _jsx(Box, __assign({ className: "grow" }, { children: monthSubComponents }), "month-component-".concat(i)));
265
266
  }
266
267
  return (_jsx(MonthContainer, __assign({ "$orientation": orientation }, monthContainerProps, { children: monthList })));
267
268
  };
@@ -305,7 +306,6 @@ var BaseCalendar = /** @class */ (function (_super) {
305
306
  BaseCalendar.prototype.componentDidUpdate = function (prevProps) {
306
307
  if (this.props.highlightedDate &&
307
308
  !this.dateHelpers.isSameDay(this.props.highlightedDate, prevProps.highlightedDate)) {
308
- // eslint-disable-next-line react/no-did-update-set-state -- baseui migration
309
309
  this.setState({
310
310
  date: this.props.highlightedDate,
311
311
  });
@@ -316,7 +316,6 @@ var BaseCalendar = /** @class */ (function (_super) {
316
316
  if (prevProps.value !== this.props.value) {
317
317
  var nextDate = this.getDateInView();
318
318
  if (!this.isInView(nextDate)) {
319
- // eslint-disable-next-line react/no-did-update-set-state -- baseui migration
320
319
  this.setState({
321
320
  date: nextDate,
322
321
  });
@@ -26,7 +26,7 @@ export default class Day<T = Date> extends React.Component<DayProps<T>, DayState
26
26
  dateHelpers: DateHelpers<T>;
27
27
  constructor(props: DayProps<T>);
28
28
  componentDidMount(): void;
29
- componentDidUpdate(prevProps: DayProps<T>): void;
29
+ componentDidUpdate(_prevProps: DayProps<T>): void;
30
30
  getDateProp: () => T;
31
31
  getMonthProp: () => number;
32
32
  /**
@@ -173,7 +173,7 @@ var Day = /** @class */ (function (_super) {
173
173
  }
174
174
  }
175
175
  };
176
- Day.prototype.componentDidUpdate = function (prevProps) {
176
+ Day.prototype.componentDidUpdate = function (_prevProps) {
177
177
  if (this.dayElm && this.props.focusedCalendar) {
178
178
  if (this.props.highlighted || (!this.props.highlightedDate && this.isSelected())) {
179
179
  this.dayElm.focus();
@@ -209,7 +209,7 @@ export var StyledDay = styled('div', 'spr-text-01 box-border relative text-cente
209
209
  // @ts-ignore -- CSS-in-JS -- This is never getting fixed
210
210
  function (_a, props) {
211
211
  var theme = _a.theme;
212
- var $disabled = props.$disabled, $peekNextMonth = props.$peekNextMonth, $range = props.$range, $outsideMonth = props.$outsideMonth, $outsideMonthWithinRange = props.$outsideMonthWithinRange, $hasDateLabel = props.$hasDateLabel, $density = props.$density, $hasLockedBehavior = props.$hasLockedBehavior, $selectedInput = props.$selectedInput, $value = props.$value;
212
+ var $disabled = props.$disabled, $peekNextMonth = props.$peekNextMonth, $range = props.$range, $outsideMonth = props.$outsideMonth, $outsideMonthWithinRange = props.$outsideMonthWithinRange, _$hasDateLabel = props._$hasDateLabel, $density = props.$density, $hasLockedBehavior = props.$hasLockedBehavior, $selectedInput = props.$selectedInput, $value = props.$value;
213
213
  var code = getDayStateCode(props);
214
214
  var _b = __read(Array.isArray($value) ? $value : [$value, null], 2), startDate = _b[0], endDate = _b[1];
215
215
  var oppositeInputIsPopulated = $selectedInput === INPUT_ROLE.startDate
@@ -179,10 +179,10 @@ var DateHelpers = /** @class */ (function () {
179
179
  var minDates = includeDates.filter(function (includeDate) { return _this.isOnOrAfterDay(includeDate, minDate); });
180
180
  return _this.min(minDates);
181
181
  }
182
- else if (includeDates && includeDates.length) {
182
+ if (includeDates && includeDates.length) {
183
183
  return _this.min(includeDates);
184
184
  }
185
- else if (!(includeDates && includeDates.length) && minDate) {
185
+ if (!(includeDates && includeDates.length) && minDate) {
186
186
  return minDate;
187
187
  }
188
188
  // this condition can't ever be reached
@@ -195,10 +195,10 @@ var DateHelpers = /** @class */ (function () {
195
195
  var maxDates = includeDates.filter(function (includeDate) { return _this.isOnOrBeforeDay(includeDate, maxDate); });
196
196
  return _this.max(maxDates);
197
197
  }
198
- else if (includeDates) {
198
+ if (includeDates) {
199
199
  return _this.max(includeDates);
200
200
  }
201
- else if (!includeDates && maxDate) {
201
+ if (!includeDates && maxDate) {
202
202
  return maxDate;
203
203
  }
204
204
  // this condition can't ever be reached
@@ -4,7 +4,6 @@ Copyright (c) Uber Technologies, Inc.
4
4
  This source code is licensed under the MIT license found in the
5
5
  LICENSE file in the root directory of this source tree.
6
6
  */
7
- /* eslint-disable import/extensions */
8
7
  import defaultAdapter from './date-fns-adapter';
9
8
  import DateHelpers from './date-helpers';
10
9
  var defaultDateHelpers = new DateHelpers(defaultAdapter);
@@ -32,17 +31,13 @@ export var getEffectiveMinDate = defaultDateHelpers.getEffectiveMinDate;
32
31
  export var getEffectiveMaxDate = defaultDateHelpers.getEffectiveMaxDate;
33
32
  export var applyTimeToDate = defaultDateHelpers.applyTimeToDate;
34
33
  export var applyDateToTime = defaultDateHelpers.applyDateToTime;
35
- var createDirtySetter = function (setter) {
36
- return function (dirtyDate, number) { return setter(wrapDate(dirtyDate), number); };
37
- };
38
- var createDirtyGetter = function (getter) {
39
- return function (dirtyDate) { return getter(wrapDate(dirtyDate)); };
40
- };
41
- var createDirtyCompare = function (compare) {
42
- return function (fromDirty, toDirty) {
43
- return compare(wrapDate(fromDirty), wrapDate(toDirty));
44
- };
45
- };
34
+ var createDirtySetter = function (setter) { return function (dirtyDate, number) {
35
+ return setter(wrapDate(dirtyDate), number);
36
+ }; };
37
+ var createDirtyGetter = function (getter) { return function (dirtyDate) { return getter(wrapDate(dirtyDate)); }; };
38
+ var createDirtyCompare = function (compare) { return function (fromDirty, toDirty) {
39
+ return compare(wrapDate(fromDirty), wrapDate(toDirty));
40
+ }; };
46
41
  // ** Re-exported from date-fns **
47
42
  // these need to be able to accept either number or date
48
43
  // to maintain parity with the old exports
@@ -11,13 +11,13 @@ export type OverrideObject = {
11
11
  style?: ConfigurationOverride | null;
12
12
  className?: ConfigurationOverride | null;
13
13
  };
14
- export type Override<T = any> = OverrideObject | (React.ComponentType<any> & {
14
+ export type Override<_T = any> = OverrideObject | (React.ComponentType<any> & {
15
15
  component?: undefined;
16
16
  props?: undefined;
17
17
  style?: undefined;
18
18
  className?: undefined;
19
19
  });
20
- export type Overrides<T = any> = {
20
+ export type Overrides<_T = any> = {
21
21
  [x: string]: Override;
22
22
  };
23
23
  /**
@@ -39,10 +39,8 @@ function getOverrideProps(_override, defaultComponent) {
39
39
  // @ts-expect-error
40
40
  return __assign(__assign(__assign({}, defaultProps), _override.props), { $className: _override.className, $style: _override.style });
41
41
  }
42
- else {
43
- // @ts-expect-error
44
- return __assign(__assign({}, defaultProps), { $className: _override.className, $style: _override.style });
45
- }
42
+ // @ts-expect-error
43
+ return __assign(__assign({}, defaultProps), { $className: _override.className, $style: _override.style });
46
44
  }
47
45
  // @ts-expect-error
48
46
  return defaultProps;
@@ -59,13 +57,12 @@ export function getOverrides(
59
57
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- baseui migration
60
58
  _override,
61
59
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- baseui migration
62
- defaultComponent
63
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- baseui migration
64
- ) {
60
+ defaultComponent) {
65
61
  var Component = getOverride(_override) || defaultComponent;
66
62
  if (_override && typeof _override === 'object' && typeof _override.props === 'function') {
67
63
  // TODO(v11)
68
64
  if (__DEV__) {
65
+ // eslint-disable-next-line no-console -- debug logging
69
66
  console.warn('baseui:Overrides Props as a function will be removed in the next major version. Override the whole component instead. ' +
70
67
  'See https://baseweb.design/guides/understanding-overrides/#override-the-entire-subcomponent');
71
68
  }
@@ -65,6 +65,7 @@ var LayerComponent = /** @class */ (function (_super) {
65
65
  var hasLayersManager = layersManagerHost !== undefined;
66
66
  if (process.env.NODE_ENV !== 'production') {
67
67
  if (!hasLayersManager) {
68
+ // eslint-disable-next-line no-console -- debug logging
68
69
  console.warn('`LayersManager` was not found. This occurs if you are attempting to use a component requiring `Layer` without using the `BaseProvider` at the root of your app. Please visit https://baseweb.design/components/base-provider/ for more information');
69
70
  }
70
71
  }
@@ -136,7 +137,7 @@ var LayerComponent = /** @class */ (function (_super) {
136
137
  if (mountNode) {
137
138
  return ReactDOM.createPortal(childrenToRender, mountNode);
138
139
  }
139
- else if (container) {
140
+ if (container) {
140
141
  return ReactDOM.createPortal(childrenToRender, container);
141
142
  }
142
143
  return null;
@@ -13,6 +13,7 @@ var StyledLayersContainer = styled('div', {});
13
13
  var __DEV__ = process.env.NODE_ENV !== 'production';
14
14
  function defaultEventHandlerFn() {
15
15
  if (__DEV__) {
16
+ // eslint-disable-next-line no-console -- debug logging
16
17
  console.warn('`LayersManager` was not found. This occurs if you are attempting to use a component requiring `Layer` without using the `BaseProvider` at the root of your app. Please visit https://baseweb.design/components/base-provider/ for more information');
17
18
  }
18
19
  }
@@ -146,7 +147,7 @@ var LayersManager = /** @class */ (function (_super) {
146
147
  var host = _a.host;
147
148
  if (__DEV__) {
148
149
  if (host !== undefined) {
149
- // eslint-disable-next-line no-console
150
+ // eslint-disable-next-line no-console -- debug logging
150
151
  console.warn('There is a LayersManager already exists in your application. It is not recommended to have more than one LayersManager in an application.');
151
152
  }
152
153
  }
@@ -101,6 +101,7 @@ var Tether = /** @class */ (function (_super) {
101
101
  (prevProps === null || prevProps === void 0 ? void 0 : prevProps.positionFixed) !== this.props.positionFixed)) {
102
102
  if (!this.props.anchorRef) {
103
103
  if (process.env.NODE_ENV !== 'production') {
104
+ // eslint-disable-next-line no-console -- debug logging
104
105
  console.warn("[baseui][TetherBehavior] ref has not been passed to the Popper's anchor element.\n See how to pass the ref to an anchor element in the Popover example\n https://baseweb.design/components/popover/#anchor-ref-handling-example");
105
106
  }
106
107
  }
@@ -1,7 +1,7 @@
1
1
  import type * as React from 'react';
2
2
  import type { TETHER_PLACEMENT } from './constants';
3
3
  import type { Override } from '../../overrides';
4
- import { ClassName } from '../../types';
4
+ import type { ClassName } from '../../types';
5
5
  /** LayersManager */
6
6
  export type LayersManagerProps = {
7
7
  children: React.ReactNode;
@@ -1,6 +1,14 @@
1
1
  import { __assign } from "tslib";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
+ /*
4
+ Copyright (c) Uber Technologies, Inc.
5
+
6
+ This source code is licensed under the MIT license found in the
7
+ LICENSE file in the root directory of this source tree.
8
+ */
3
9
  // TODO Switch to using Icon component once it exists
4
10
  export function CloseIcon() {
5
- return (_jsx("svg", __assign({ width: "10", height: "10", viewBox: "0 0 10 10", style: { stroke: 'currentColor' }, xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: "M9 1L5 5M1 9L5 5M5 5L1 1M5 5L9 9", strokeWidth: "2", strokeLinecap: "round" }) })));
11
+ return (
12
+ // eslint-disable-next-line react/forbid-elements -- baseui close glyph must be raw svg
13
+ _jsx("svg", __assign({ width: "10", height: "10", viewBox: "0 0 10 10", style: { stroke: 'currentColor' }, xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: "M9 1L5 5M1 9L5 5M5 5L1 1M5 5L9 9", strokeWidth: "2", strokeLinecap: "round" }) })));
6
14
  }
@@ -18,9 +18,9 @@ declare class Modal extends React.Component<ModalProps, ModalState> {
18
18
  };
19
19
  componentDidMount(): void;
20
20
  componentWillUnmount(): void;
21
- componentDidUpdate(prevProps: ModalProps, prevState: ModalState): void;
21
+ componentDidUpdate(prevProps: ModalProps, _prevState: ModalState): void;
22
22
  handleFocus: (event: SyntheticEvent) => void;
23
- handleBlur: (event: SyntheticEvent) => void;
23
+ handleBlur: (_event: SyntheticEvent) => void;
24
24
  disableMountNodeScroll(): void;
25
25
  resetMountNodeScroll(): void;
26
26
  onEscape: () => void;
@@ -33,7 +33,7 @@ declare class Modal extends React.Component<ModalProps, ModalState> {
33
33
  triggerClose(source?: CloseSource): void;
34
34
  animateOutComplete: () => void;
35
35
  getSharedProps(): Omit<SharedStylePropsArg, 'children'>;
36
- getMountNode(): HTMLElement;
36
+ getMountNode(): HTMLElement | null;
37
37
  getChildren(): React.ReactNode;
38
38
  renderModal(renderedContent: React.ReactNode): import("react/jsx-runtime").JSX.Element;
39
39
  render(): import("react/jsx-runtime").JSX.Element | null;
@@ -36,7 +36,7 @@ var Modal = /** @class */ (function (_super) {
36
36
  _this.setState({ isFocusVisible: true });
37
37
  }
38
38
  };
39
- _this.handleBlur = function (event) {
39
+ _this.handleBlur = function (_event) {
40
40
  if (_this.state.isFocusVisible !== false) {
41
41
  _this.setState({ isFocusVisible: false });
42
42
  }
@@ -87,7 +87,7 @@ var Modal = /** @class */ (function (_super) {
87
87
  this.prevMounted = this.mounted;
88
88
  this.mounted = false;
89
89
  };
90
- Modal.prototype.componentDidUpdate = function (prevProps, prevState) {
90
+ Modal.prototype.componentDidUpdate = function (prevProps, _prevState) {
91
91
  var isOpen = this.props.isOpen;
92
92
  if (
93
93
  // If isOpen is changing *or* we just mounted and modal should be open
@@ -104,6 +104,8 @@ var Modal = /** @class */ (function (_super) {
104
104
  };
105
105
  Modal.prototype.disableMountNodeScroll = function () {
106
106
  var mountNode = this.getMountNode();
107
+ if (!mountNode)
108
+ return;
107
109
  this.lastMountNodeOverflowStyle = mountNode.style.overflow || '';
108
110
  mountNode.style.overflow = 'hidden';
109
111
  };
@@ -214,13 +216,9 @@ var Modal = /** @class */ (function (_super) {
214
216
  if (mountedAndOpen) {
215
217
  return (_jsx(Layer, __assign({ onEscape: this.onEscape, onDocumentClick: this.onDocumentClick, mountNode: this.props.mountNode }, { children: this.renderModal(renderedContent) })));
216
218
  }
217
- else {
218
- return _jsx(Hidden, { children: renderedContent });
219
- }
220
- }
221
- else {
222
- return null;
219
+ return _jsx(Hidden, { children: renderedContent });
223
220
  }
221
+ return null;
224
222
  };
225
223
  Modal.defaultProps = {
226
224
  animate: true,
@@ -17,6 +17,7 @@ import defaultProps from './default-props';
17
17
  import { useUID } from 'react-uid';
18
18
  import { LayersManager } from '../../layer';
19
19
  import { combineRefs } from '../../hooks/useCombinedRef';
20
+ import { Box } from '../../box';
20
21
  var __DEV__ = process.env.NODE_ENV !== 'production';
21
22
  function getDefaultState(props) {
22
23
  return {
@@ -39,7 +40,6 @@ var PopoverInner = /** @class */ (function (_super) {
39
40
  _this.anchorRef = React.createRef();
40
41
  _this.popperRef = React.createRef();
41
42
  _this.arrowRef = React.createRef();
42
- /* eslint-enable react/sort-comp */
43
43
  /**
44
44
  * Yes our "Stateless" popover still has state. This is private state that
45
45
  * customers shouldn't have to manage themselves, such as positioning and
@@ -131,6 +131,7 @@ var PopoverInner = /** @class */ (function (_super) {
131
131
  }
132
132
  catch (err) {
133
133
  if (__DEV__) {
134
+ // eslint-disable-next-line no-console -- debug logging
134
135
  console.error(err);
135
136
  }
136
137
  }
@@ -151,13 +152,11 @@ var PopoverInner = /** @class */ (function (_super) {
151
152
  !this.state.autoFocusAfterPositioning &&
152
153
  this.popperRef.current !== null &&
153
154
  this.popperRef.current.getBoundingClientRect().top > 0) {
154
- // eslint-disable-next-line react/no-did-update-set-state -- conditional setState
155
155
  this.setState({ autoFocusAfterPositioning: true });
156
156
  }
157
157
  // Update placement in state if a new placement value is received from props,
158
158
  // since the initial placement from props was only used for state initialization.
159
159
  if (prevProps.placement !== this.props.placement) {
160
- // eslint-disable-next-line react/no-did-update-set-state -- conditional setState
161
160
  this.setState({ placement: (_a = this.props.placement) !== null && _a !== void 0 ? _a : PLACEMENT.auto });
162
161
  }
163
162
  if (__DEV__) {
@@ -326,7 +325,7 @@ var PopoverInner = /** @class */ (function (_super) {
326
325
  }
327
326
  return (
328
327
  // @ts-ignore
329
- _jsx("span", __assign({}, anchorProps, { children: anchor }), "popover-anchor"));
328
+ _jsx(Box, __assign({ "$as": "span" }, anchorProps, { children: anchor }), "popover-anchor"));
330
329
  };
331
330
  PopoverInner.prototype.renderPopover = function (renderedContent) {
332
331
  var _this = this;
@@ -117,7 +117,7 @@ var StatefulContainer = /** @class */ (function (_super) {
117
117
  };
118
118
  StatefulContainer.prototype.render = function () {
119
119
  var _this = this;
120
- var _a = this.props, accessibilityType = _a.accessibilityType, autoFocus = _a.autoFocus, animateOutTime = _a.animateOutTime, dismissOnClickOutside = _a.dismissOnClickOutside, dismissOnEsc = _a.dismissOnEsc, focusLock = _a.focusLock, ignoreBoundary = _a.ignoreBoundary, mountNode = _a.mountNode, onBlur = _a.onBlur, onClick = _a.onClick, onFocus = _a.onFocus, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onMouseEnterDelay = _a.onMouseEnterDelay, onMouseLeaveDelay = _a.onMouseLeaveDelay, overrides = _a.overrides, placement = _a.placement, popperOptions = _a.popperOptions, renderAll = _a.renderAll, returnFocus = _a.returnFocus, showArrow = _a.showArrow, triggerType = _a.triggerType, popoverMargin = _a.popoverMargin, focusOptions = _a.focusOptions, repositionOnResize = _a.repositionOnResize, positionFixed = _a.positionFixed;
120
+ var _a = this.props, accessibilityType = _a.accessibilityType, autoFocus = _a.autoFocus, animateOutTime = _a.animateOutTime, dismissOnClickOutside = _a.dismissOnClickOutside, focusLock = _a.focusLock, ignoreBoundary = _a.ignoreBoundary, mountNode = _a.mountNode, onBlur = _a.onBlur, onClick = _a.onClick, onFocus = _a.onFocus, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onMouseEnterDelay = _a.onMouseEnterDelay, onMouseLeaveDelay = _a.onMouseLeaveDelay, overrides = _a.overrides, placement = _a.placement, popperOptions = _a.popperOptions, renderAll = _a.renderAll, returnFocus = _a.returnFocus, showArrow = _a.showArrow, triggerType = _a.triggerType, popoverMargin = _a.popoverMargin, focusOptions = _a.focusOptions, repositionOnResize = _a.repositionOnResize, positionFixed = _a.positionFixed;
121
121
  var popoverProps = {
122
122
  accessibilityType: accessibilityType,
123
123
  animateOutTime: animateOutTime,
@@ -110,7 +110,5 @@ export var extractContent = function (content) {
110
110
  if (Array.isArray(content) && !content.length) {
111
111
  return null;
112
112
  }
113
- else {
114
- return typeof content === 'function' ? content() : content;
115
- }
113
+ return typeof content === 'function' ? content() : content;
116
114
  };
@@ -16,7 +16,7 @@ export default class AutosizeInput extends React.Component<AutosizeInputProps &
16
16
  inputWidth: number;
17
17
  };
18
18
  componentDidMount(): void;
19
- componentDidUpdate(prevProps: AutosizeInputProps, prevState: AutosizeInputState): void;
19
+ componentDidUpdate(_prevProps: AutosizeInputProps, _prevState: AutosizeInputState): void;
20
20
  componentWillUnmount(): void;
21
21
  sizerRef: (el?: HTMLElement | null) => void;
22
22
  updateInputWidth(): void;
@@ -25,7 +25,7 @@ var AutosizeInput = /** @class */ (function (_super) {
25
25
  this.mounted = true;
26
26
  this.updateInputWidth();
27
27
  };
28
- AutosizeInput.prototype.componentDidUpdate = function (prevProps, prevState) {
28
+ AutosizeInput.prototype.componentDidUpdate = function (_prevProps, _prevState) {
29
29
  this.updateInputWidth();
30
30
  };
31
31
  AutosizeInput.prototype.componentWillUnmount = function () {
@@ -30,7 +30,7 @@ var SelectDropdown = /** @class */ (function (_super) {
30
30
  var _this = _super !== null && _super.apply(this, arguments) || this;
31
31
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- required any for option type
32
32
  _this.getItemLabel = function (option) {
33
- var _a = _this.props, getOptionLabel = _a.getOptionLabel, _b = _a.overrides, overrides = _b === void 0 ? {} : _b, value = _a.value, valueKey = _a.valueKey, selectAllChecked = _a.selectAllChecked;
33
+ var _a = _this.props, getOptionLabel = _a.getOptionLabel, _b = _a.overrides, overrides = _b === void 0 ? {} : _b, value = _a.value, valueKey = _a.valueKey, _selectAllChecked = _a.selectAllChecked;
34
34
  var _c = __read(getOverrides(overrides.OptionContent, StyledOptionContent), 2), OptionContent = _c[0], optionContentProps = _c[1];
35
35
  var $selected;
36
36
  if (Array.isArray(value)) {
@@ -1,7 +1,6 @@
1
- import { Component, ReactNode, FocusEvent } from 'react';
2
- import type { SelectProps, SelectState, Value, Option, ChangeAction } from './types';
3
- import type { SyntheticEvent, ChangeEvent } from 'react';
4
- import { Options } from './types';
1
+ import { Component } from 'react';
2
+ import type { SelectProps, SelectState, Value, Option, ChangeAction, Options } from './types';
3
+ import type { SyntheticEvent, ChangeEvent, ReactNode, FocusEvent } from 'react';
5
4
  type GetOptionLabel = NonNullable<SelectProps['getOptionLabel']>;
6
5
  export declare function getOptionLabel({ option }: Parameters<GetOptionLabel>[0], { selectLocale, labelKey }: SelectProps): ReactNode;
7
6
  type GetValueLabel = NonNullable<SelectProps['getValueLabel']>;
@@ -9,6 +9,7 @@ LICENSE file in the root directory of this source tree.
9
9
  import { Component, createRef } from 'react';
10
10
  import memoizeOne from 'memoize-one';
11
11
  import { getOverrides, mergeOverrides } from '../../overrides';
12
+ import { Box } from '../../box';
12
13
  import { Popover, PLACEMENT, ACCESSIBILITY_TYPE } from '../popover';
13
14
  import AutosizeInput from './autosize-input';
14
15
  import { TYPE, STATE_CHANGE_TYPE, SIZE, SELECT_ALL_ID, GROUP_SELECT_ALL_ID } from './constants';
@@ -249,7 +250,7 @@ var Select = /** @class */ (function (_super) {
249
250
  event.preventDefault();
250
251
  _this.closeMenu();
251
252
  if (_this.state.currentValueTagIdx === -1 && _this.state.isFocused) {
252
- _this.setState(function (preState) { return ({
253
+ _this.setState(function (_preState) { return ({
253
254
  currentValueTagIdx: _this.getRenderedTagsCount() - 1,
254
255
  }); });
255
256
  }
@@ -294,7 +295,7 @@ var Select = /** @class */ (function (_super) {
294
295
  case 'Tab': {
295
296
  //9
296
297
  if (_this.state.currentValueTagIdx !== -1) {
297
- _this.setState(function (prevState) { return ({
298
+ _this.setState(function (_prevState) { return ({
298
299
  currentValueTagIdx: -1,
299
300
  }); });
300
301
  }
@@ -396,7 +397,9 @@ var Select = /** @class */ (function (_super) {
396
397
  break;
397
398
  }
398
399
  };
400
+ // eslint-disable-next-line class-methods-use-this -- delegates to module-level helper
399
401
  _this.getOptionLabel = function (optionData, props) { return getOptionLabel(optionData, props); };
402
+ // eslint-disable-next-line class-methods-use-this -- delegates to module-level helper
400
403
  _this.getValueLabel = function (optionData, props) { return getValueLabel(optionData, props); };
401
404
  _this.getMemoizedOptionsMap = memoizeOne(function (options, valueKey) {
402
405
  var normalizedOptions = _this.getMemoizedNormalizedOptions(options);
@@ -748,7 +751,7 @@ var Select = /** @class */ (function (_super) {
748
751
  return undefined;
749
752
  var _a = this.props.overrides, overrides = _a === void 0 ? {} : _a;
750
753
  var _b = __read(getOverrides(overrides.LoadingIndicator, function () { return null; }), 2), LoadingIndicator = _b[0], loadingIndicatorProps = _b[1];
751
- return (_jsx(LoadingIndicator, __assign({ role: "status" }, loadingIndicatorProps, { children: _jsx("span", __assign({ style: {
754
+ return (_jsx(LoadingIndicator, __assign({ role: "status" }, loadingIndicatorProps, { children: _jsx(Box, __assign({ "$as": "span", style: {
752
755
  position: 'absolute',
753
756
  width: '1px',
754
757
  height: '1px',
@@ -848,7 +851,7 @@ var Select = /** @class */ (function (_super) {
848
851
  var label = "".concat(selectedLabel).concat(this.props['aria-label'] || '');
849
852
  var ariaDescribedBy = "".concat((_a = this.props['aria-describedby']) !== null && _a !== void 0 ? _a : '', " ").concat(ariaDescribedByIDs !== null && ariaDescribedByIDs !== void 0 ? ariaDescribedByIDs : '');
850
853
  if (!this.props.searchable) {
851
- return (_jsx(InputContainer, __assign({ onFocus: this.handleInputFocus, tabIndex: this.props.disabled ? null : 0 }, sharedProps, inputContainerProps, { children: _jsx("input", __assign({ "aria-hidden": true, id: this.props.id || undefined, ref: this.handleInputRef, style: {
854
+ return (_jsx(InputContainer, __assign({ onFocus: this.handleInputFocus, tabIndex: this.props.disabled ? null : 0 }, sharedProps, inputContainerProps, { children: _jsx(Box, __assign({ "$as": "input", "aria-hidden": true, id: this.props.id || undefined, ref: this.handleInputRef, style: {
852
855
  opacity: 0,
853
856
  width: '0px',
854
857
  overflow: 'hidden',
@@ -866,7 +869,7 @@ var Select = /** @class */ (function (_super) {
866
869
  if (!this.props.clearable || this.props.disabled || this.props.isLoading || !isValueEntered) {
867
870
  return null;
868
871
  }
869
- var _b = this.getSharedProps(), $size = _b.$size, sharedProps = __rest(_b, ["$size"]);
872
+ var _b = this.getSharedProps(), _$size = _b.$size, sharedProps = __rest(_b, ["$size"]);
870
873
  var _c = this.props.overrides, overrides = _c === void 0 ? {} : _c;
871
874
  var _d = __read(getOverrides(overrides.ClearIcon, function () { return null; }), 2), ClearIcon = _d[0], clearIconProps = _d[1];
872
875
  var ariaLabel = this.props.multi ? 'Clear all' : 'Clear value';
@@ -883,7 +886,7 @@ var Select = /** @class */ (function (_super) {
883
886
  if (this.props.type !== TYPE.select) {
884
887
  return null;
885
888
  }
886
- var _b = this.getSharedProps(), $size = _b.$size, sharedProps = __rest(_b, ["$size"]);
889
+ var _b = this.getSharedProps(), _$size = _b.$size, sharedProps = __rest(_b, ["$size"]);
887
890
  var _c = this.props.overrides, overrides = _c === void 0 ? {} : _c;
888
891
  var _d = __read(getOverrides(overrides.SelectArrow, function () { return null; }), 2), SelectArrow = _d[0], selectArrowProps = _d[1];
889
892
  var sizes = (_a = {},
@@ -934,11 +937,11 @@ var Select = /** @class */ (function (_super) {
934
937
  }
935
938
  // can user create a new option + there's no exact match already
936
939
  var filterDoesNotMatchOption = this.props.ignoreCase
937
- ? // @ts-ignore
938
- function (// @ts-ignore
940
+ ? // @ts-ignore -- option label key is dynamic string index
941
+ function (// @ts-ignore -- option label key is dynamic string index
939
942
  opt) { return opt[_this.props.labelKey].toLowerCase() !== filterValue.toLowerCase().trim(); }
940
- : // @ts-ignore
941
- function (// @ts-ignore
943
+ : // @ts-ignore -- option label key is dynamic string index
944
+ function (// @ts-ignore -- option label key is dynamic string index
942
945
  opt) { return opt[_this.props.labelKey] !== filterValue.trim(); };
943
946
  if (filterValue &&
944
947
  this.props.creatable &&
@@ -983,6 +986,7 @@ var Select = /** @class */ (function (_super) {
983
986
  if (__DEV__) {
984
987
  // value may be nullish, only warn if value is defined
985
988
  if (value && !Array.isArray(value)) {
989
+ // eslint-disable-next-line no-console -- debug logging
986
990
  console.warn('The Select component expects an array as the value prop. For more information, please visit the docs at https://baseweb.design/components/select/');
987
991
  }
988
992
  }
@@ -1017,6 +1021,7 @@ var Select = /** @class */ (function (_super) {
1017
1021
  sharedProps.$isOpen = isOpen;
1018
1022
  if (__DEV__) {
1019
1023
  if (this.props.error && this.props.positive) {
1024
+ // eslint-disable-next-line no-console -- debug logging
1020
1025
  console.warn('[Select] `error` and `positive` are both set to `true`. `error` will take precedence but this may not be what you want.');
1021
1026
  }
1022
1027
  }
@@ -19,24 +19,20 @@ var StatefulSelectContainer = /** @class */ (function (_super) {
19
19
  _this.internalSetState = function (params) {
20
20
  var stateReducer = _this.props.stateReducer;
21
21
  var nextState = { value: params.value };
22
- _this.setState(stateReducer(params.type, nextState, _this.state));
22
+ _this.setState(function (prevState) { return stateReducer(params.type, nextState, prevState); });
23
23
  };
24
24
  return _this;
25
25
  }
26
26
  StatefulSelectContainer.prototype.render = function () {
27
- var _a = this.props, children = _a.children,
28
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
29
- initialState = _a.initialState, // eslint-disable-line no-unused-vars
30
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
31
- stateReducer = _a.stateReducer, // eslint-disable-line no-unused-vars
32
- restProps = __rest(_a, ["children", "initialState", "stateReducer"]);
27
+ var _a = this.props, children = _a.children, _initialState = _a.initialState, _stateReducer = _a.stateReducer, restProps = __rest(_a, ["children", "initialState", "stateReducer"]);
33
28
  return children(__assign(__assign(__assign({}, restProps), this.state), { onChange: this.onChange }));
34
29
  };
35
30
  StatefulSelectContainer.defaultProps = {
36
31
  initialState: {
37
- // @ts-ignore
32
+ // @ts-ignore -- empty Value[] is valid uncontrolled initial state
38
33
  value: [],
39
34
  },
35
+ // eslint-disable-next-line @typescript-eslint/no-empty-function -- default no-op onChange
40
36
  onChange: function () { },
41
37
  overrides: {},
42
38
  stateReducer: defaultStateReducer,
@@ -1,13 +1,12 @@
1
1
  import type * as React from 'react';
2
- import { Override } from '../../overrides';
2
+ import type { Override } from '../../overrides';
3
3
  import type { STATE_CHANGE_TYPE, SIZE, TYPE } from './constants';
4
4
  import type { OnItemSelectFn } from '../menu';
5
5
  export type ChangeAction = keyof typeof STATE_CHANGE_TYPE;
6
6
  export type Size = keyof typeof SIZE;
7
7
  export type Type = keyof typeof TYPE;
8
- import { SelectLocale } from '../../select/locale';
8
+ import type { SelectLocale } from '../../select/locale';
9
9
  import type { ActionableTooltipProps, TooltipProps } from '../../tooltip';
10
- import { ReactElement } from 'react';
11
10
  import type { Intent } from '../../types';
12
11
  export type Id = string | number;
13
12
  export type Option = Readonly<{
@@ -227,7 +226,7 @@ export type SelectProps = {
227
226
  /** expand all the extra tags in case of limit tag */
228
227
  expandLimitTagsOnFocus?: boolean;
229
228
  /** render Footer for dropdown */
230
- dropdownFooter?: (props: DropdownFooterProps) => ReactElement;
229
+ dropdownFooter?: (props: DropdownFooterProps) => React.ReactElement;
231
230
  ownerDocument?: Document;
232
231
  listboxId?: string;
233
232
  menuDescriptionId?: string;
@@ -293,7 +292,7 @@ export type DropdownProps = {
293
292
  width: number | undefined | null;
294
293
  keyboardControlNode?: React.Ref<HTMLElement>;
295
294
  closeMenu: () => void;
296
- dropdownFooter?: (props: DropdownFooterProps) => ReactElement;
295
+ dropdownFooter?: (props: DropdownFooterProps) => React.ReactElement;
297
296
  menuDescriptionId?: string;
298
297
  };
299
298
  export type DropdownFooterProps = Pick<DropdownProps, 'isLoading' | 'width' | 'closeMenu'>;
@@ -4,9 +4,7 @@ function groupedOptionsToArray(groupedOptions) {
4
4
  var optgroupOptions = groupedOptions[optgroup];
5
5
  return arr.concat(
6
6
  // @ts-ignore
7
- optgroupOptions.map(function (option) {
8
- return __assign(__assign({}, option), { __optgroup: optgroup });
9
- }));
7
+ optgroupOptions.map(function (option) { return (__assign(__assign({}, option), { __optgroup: optgroup })); }));
10
8
  }, []);
11
9
  }
12
10
  export function normalizeOptions(options) {
@@ -14,9 +12,7 @@ export function normalizeOptions(options) {
14
12
  if (Array.isArray(options)) {
15
13
  return options;
16
14
  }
17
- else {
18
- return groupedOptionsToArray(options);
19
- }
15
+ return groupedOptionsToArray(options);
20
16
  }
21
17
  return [];
22
18
  }