@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
@@ -3,7 +3,7 @@ import { toggleIsExpanded } from './utils';
3
3
  export { default as TreeView } from './tree-view';
4
4
  export { default as StatefulTreeView } from './stateful-tree-view';
5
5
  export * from './types';
6
- export { StyledTreeItemList, StyledTreeItem, StyledItemContent, StyledIconContainer, } from './styled-components';
6
+ export { StyledTreeItemList, StyledTreeItem, StyledItemContent, StyledIconContainer } from './styled-components';
7
7
  export { default as TreeLabel } from './tree-label';
8
8
  export { default as TreeLabelInteractable } from './tree-label-interactable';
9
9
  export { toggleIsExpanded };
@@ -1,4 +1,4 @@
1
- import { Overrides } from '../../overrides';
1
+ import type { Overrides } from '../../overrides';
2
2
  import type { ComponentType, PropsWithChildren } from 'react';
3
3
  declare const TreeLabelInteractable: ComponentType<PropsWithChildren<{
4
4
  overrides?: {
@@ -15,7 +15,7 @@ var TreeLabel = function (_a) {
15
15
  $isFocusVisible: !!isFocusVisible,
16
16
  $hasChildren: !!hasChildren,
17
17
  };
18
- var IconContainerOverride = overrides.IconContainer, ExpandIconOverride = overrides.ExpandIcon, CollapseIconOverride = overrides.CollapseIcon, LeafIconContainerOverride = overrides.LeafIconContainer, LeafIconOverride = overrides.LeafIcon, TreeItemContentOverride = overrides.TreeItemContent;
18
+ var IconContainerOverride = overrides.IconContainer, ExpandIconOverride = overrides.ExpandIcon, CollapseIconOverride = overrides.CollapseIcon, LeafIconContainerOverride = overrides.LeafIconContainer, _LeafIconOverride = overrides.LeafIcon, TreeItemContentOverride = overrides.TreeItemContent;
19
19
  var _c = tslib_1.__read((0, overrides_1.useOverrides)(IconContainerOverride, styled_components_1.StyledIconContainer), 2), IconContainer = _c[0], iconContainerProps = _c[1];
20
20
  var _d = tslib_1.__read((0, overrides_1.useOverrides)(ExpandIconOverride, chevron_right_1.default), 2), Right = _d[0], RightProps = _d[1];
21
21
  var _e = tslib_1.__read((0, overrides_1.useOverrides)(CollapseIconOverride, chevron_down_1.default), 2), CollapseIcon = _e[0], collpaseProps = _e[1];
@@ -48,7 +48,7 @@ var TreeNode = /** @class */ (function (_super) {
48
48
  var _d = tslib_1.__read((0, overrides_1.getOverrides)(TreeItemListOverride, styled_components_1.StyledTreeItemList), 2), TreeItemList = _d[0], treeItemListProps = _d[1];
49
49
  var _e = tslib_1.__read((0, overrides_1.getOverrides)(TreeItemOverride, styled_components_1.StyledTreeItem), 2), TreeItem = _e[0], treeItemProps = _e[1];
50
50
  var _f = tslib_1.__read((0, overrides_1.getOverrides)(TreeLabelOverride, tree_label_1.default), 2), TreeLabel = _f[0], treeLabelProps = _f[1];
51
- return ((0, jsx_runtime_1.jsxs)(TreeItem, tslib_1.__assign({ role: "treeitem", ref: this.treeItemRef, "data-nodeid": getId(node), tabIndex: selectedNodeId === getId(node) ? 0 : -1, onKeyDown: function (e) { return onKeyDown && onKeyDown(e, node); }, onBlur: onBlur, onFocus: this.onFocus, "aria-expanded": isExpanded, "$isLeafNode": !hasChildren, "$node": node }, treeItemProps, { children: [(0, jsx_runtime_1.jsx)(TreeLabel, tslib_1.__assign({ onClick: this.onToggle, node: node, hasChildren: hasChildren, isExpanded: isExpanded, isSelected: selectedNodeId === getId(node), isFocusVisible: isFocusVisible, label: label, overrides: overrides }, treeLabelProps)), children && (isExpanded || renderAll) && ((0, jsx_runtime_1.jsx)(TreeItemList, tslib_1.__assign({ role: "group", "$indentGuides": !!indentGuides, "$isChildNode": true, "$expanded": !!isExpanded }, treeItemListProps, { children: children.map(function (childNode, index) { return ((0, jsx_runtime_1.jsx)(TreeNode, { indentGuides: !!indentGuides, renderAll: renderAll, node: childNode, getId: getId, onToggle: onToggle, overrides: overrides, selectedNodeId: selectedNodeId, onKeyDown: onKeyDown, onFocus: onFocus, onBlur: onBlur, addRef: addRef, removeRef: removeRef, isFocusVisible: isFocusVisible }, getId(childNode))); }) })))] })));
51
+ return ((0, jsx_runtime_1.jsxs)(TreeItem, tslib_1.__assign({ role: "treeitem", ref: this.treeItemRef, "data-nodeid": getId(node), tabIndex: selectedNodeId === getId(node) ? 0 : -1, onKeyDown: function (e) { return onKeyDown && onKeyDown(e, node); }, onBlur: onBlur, onFocus: this.onFocus, "aria-expanded": isExpanded, "$isLeafNode": !hasChildren, "$node": node }, treeItemProps, { children: [(0, jsx_runtime_1.jsx)(TreeLabel, tslib_1.__assign({ onClick: this.onToggle, node: node, hasChildren: hasChildren, isExpanded: isExpanded, isSelected: selectedNodeId === getId(node), isFocusVisible: isFocusVisible, label: label, overrides: overrides }, treeLabelProps)), children && (isExpanded || renderAll) && ((0, jsx_runtime_1.jsx)(TreeItemList, tslib_1.__assign({ role: "group", "$indentGuides": !!indentGuides, "$isChildNode": true, "$expanded": !!isExpanded }, treeItemListProps, { children: children.map(function (childNode, _index) { return ((0, jsx_runtime_1.jsx)(TreeNode, { indentGuides: !!indentGuides, renderAll: renderAll, node: childNode, getId: getId, onToggle: onToggle, overrides: overrides, selectedNodeId: selectedNodeId, onKeyDown: onKeyDown, onFocus: onFocus, onBlur: onBlur, addRef: addRef, removeRef: removeRef, isFocusVisible: isFocusVisible }, getId(childNode))); }) })))] })));
52
52
  };
53
53
  return TreeNode;
54
54
  }(React.Component));
@@ -111,8 +111,7 @@ function TreeView(props) {
111
111
  setSelectedNodeId(getId(data[0]));
112
112
  }
113
113
  };
114
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
115
- var onBlur = function (event) {
114
+ var onBlur = function (_event) {
116
115
  if (focusVisible) {
117
116
  setFocusVisible(false);
118
117
  }
@@ -34,9 +34,7 @@ var getPrevId = function (nodes, nodeId, parentId, getId) {
34
34
  if (i === 0) {
35
35
  return parentId;
36
36
  }
37
- else {
38
- return getLastLeafId(nodes[i - 1], getId);
39
- }
37
+ return getLastLeafId(nodes[i - 1], getId);
40
38
  }
41
39
  // @ts-ignore
42
40
  if (nodes[i].isExpanded && nodes[i].children && nodes[i].children.length) {
@@ -81,12 +79,10 @@ var getNextId = function (nodes, nodeId, closestOmmer, getId) {
81
79
  // @ts-ignore
82
80
  return getId(nodes[i].children[0]);
83
81
  }
84
- else if (nodes[i + 1]) {
82
+ if (nodes[i + 1]) {
85
83
  return getId(nodes[i + 1]);
86
84
  }
87
- else {
88
- return closestOmmer;
89
- }
85
+ return closestOmmer;
90
86
  }
91
87
  // @ts-ignore
92
88
  if (nodes[i].isExpanded && nodes[i].children && nodes[i].children.length) {
@@ -111,7 +111,7 @@ function isFocusVisible(event) {
111
111
  try {
112
112
  return event.target.matches(':focus-visible');
113
113
  }
114
- catch (error) {
114
+ catch (_a) {
115
115
  // browsers not implementing :focus-visible will throw a SyntaxError
116
116
  // we use our own heuristic for those browsers
117
117
  // rethrow might be better if it's not the expected error but do we really
package/box/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Override } from '../overrides';
2
- import { SpacewebComponentProps } from '../types';
1
+ import type { Override } from '../overrides';
2
+ import type { SpacewebComponentProps } from '../types';
3
3
  export type BoxProps = SpacewebComponentProps & {
4
4
  overrides?: {
5
5
  Box?: Override<Record<string, any>>;
@@ -1,3 +1,3 @@
1
- import { BreadcrumbEllipsisProps } from './types';
1
+ import type { BreadcrumbEllipsisProps } from './types';
2
2
  declare const BreadcrumbEllipsis: ({ focusBreadcrumbContainer, collapsedItems, collapsedItemsTooltip, }: BreadcrumbEllipsisProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default BreadcrumbEllipsis;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BreadcrumbItemSharedProps, Enhancer } from './types';
2
+ import type { BreadcrumbItemSharedProps, Enhancer } from './types';
3
3
  declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<import("../link").LinkProps, "onClick"> & {
4
4
  isLastChild?: boolean | undefined;
5
5
  menuSeparator?: boolean | undefined;
@@ -9,7 +9,6 @@ var noop_1 = tslib_1.__importDefault(require("lodash/noop"));
9
9
  var typography_1 = require("../typography");
10
10
  var link_1 = require("../link");
11
11
  var breadcrumb_ellipsis_1 = tslib_1.__importDefault(require("./breadcrumb-ellipsis"));
12
- // hooks
13
12
  var overrides_1 = require("../overrides");
14
13
  var style_1 = require("../style");
15
14
  // styles
@@ -1,5 +1,5 @@
1
1
  import { type ReactElement } from 'react';
2
- import { BreadcrumbProps } from './types';
2
+ import type { BreadcrumbProps } from './types';
3
3
  declare const Breadcrumb: {
4
4
  ({ children, separator, gap, maxItems, className, style, overrides, }: BreadcrumbProps): ReactElement;
5
5
  displayName: string;
@@ -13,6 +13,7 @@ var useBreadCrumbWidths_1 = require("./hooks/useBreadCrumbWidths");
13
13
  var locale_1 = require("../locale");
14
14
  // styles
15
15
  var styled_components_1 = require("./styled-components");
16
+ var box_1 = require("../box");
16
17
  var Breadcrumb = function (_a) {
17
18
  var children = _a.children, _b = _a.separator, separator = _b === void 0 ? styled_components_1.DEFAULT_SEPARATOR : _b, _c = _a.gap, gap = _c === void 0 ? 4 : _c, maxItems = _a.maxItems, className = _a.className, style = _a.style, _d = _a.overrides, overrides = _d === void 0 ? {} : _d;
18
19
  var breadCrumb = (0, locale_1.useLocale)().breadCrumb;
@@ -51,7 +52,7 @@ var Breadcrumb = function (_a) {
51
52
  var effectiveMaxItems = maxItems || (visibleItemsCount !== null && visibleItemsCount !== void 0 ? visibleItemsCount : 2);
52
53
  return renderCondensedBreadcrumbs(Math.max(2, effectiveMaxItems));
53
54
  };
54
- return ((0, jsx_runtime_1.jsx)("nav", tslib_1.__assign({ className: "w-full flex items-center justify-center" }, { children: (0, jsx_runtime_1.jsx)(Root, tslib_1.__assign({ ref: containerRef, "data-testid": "breadcrumb-root", className: className, style: style, tabIndex: -1 }, sharedProps, rootProps, { children: renderBreadcrumbs() })) })));
55
+ return ((0, jsx_runtime_1.jsx)(box_1.Box, tslib_1.__assign({ "$as": "nav", className: "w-full flex items-center justify-center" }, { children: (0, jsx_runtime_1.jsx)(Root, tslib_1.__assign({ ref: containerRef, "data-testid": "breadcrumb-root", className: className, style: style, tabIndex: -1 }, sharedProps, rootProps, { children: renderBreadcrumbs() })) })));
55
56
  };
56
57
  Breadcrumb.displayName = 'Breadcrumb';
57
58
  Breadcrumb.__standard = 'Component';
@@ -1,7 +1,8 @@
1
- import React, { ReactNode } from 'react';
2
- import { Override } from '../overrides';
3
- import { LinkProps } from '../link';
4
- import { SpacewebComponentProps } from '../types';
1
+ import type { ReactNode } from 'react';
2
+ import type React from 'react';
3
+ import type { Override } from '../overrides';
4
+ import type { LinkProps } from '../link';
5
+ import type { SpacewebComponentProps } from '../types';
5
6
  export type Enhancer<SharedProps> = ReactNode | ((props: SharedProps) => ReactNode);
6
7
  export type BreadcrumbItemSharedProps = {
7
8
  $isLastChild?: boolean;
package/button/Button.js CHANGED
@@ -20,7 +20,7 @@ var context_1 = require("../form-control/context");
20
20
  var omit_1 = tslib_1.__importDefault(require("lodash/omit"));
21
21
  var helpers_2 = require("./helpers");
22
22
  var Button = (0, react_1.forwardRef)(function (props, ref) {
23
- var _a = props.overrides, overrides = _a === void 0 ? {} : _a, className = props.className, style = props.style, _size = props.size, shape = props.shape, _b = props.variant, variant = _b === void 0 ? 'primary' : _b, _c = props.isLoading, isLoading = _c === void 0 ? false : _c, _intent = props.intent, isSelected = props.isSelected, children = props.children, tooltipContent = props.tooltipContent, _d = props.disabled, disabled = _d === void 0 ? false : _d, fullWidth = props.fullWidth, _e = props.animate, animate = _e === void 0 ? false : _e, dropdownContent = props.dropdownContent, onClick = props.onClick, startEnhancer = props.startEnhancer, endEnhancer = props.endEnhancer, href = props.href, type = props.type, restProps = tslib_1.__rest(props, ["overrides", "className", "style", "size", "shape", "variant", "isLoading", "intent", "isSelected", "children", "tooltipContent", "disabled", "fullWidth", "animate", "dropdownContent", "onClick", "startEnhancer", "endEnhancer", "href", "type"]);
23
+ var _a = props.overrides, overrides = _a === void 0 ? {} : _a, className = props.className, style = props.style, _size = props.size, shape = props.shape, _b = props.variant, variant = _b === void 0 ? 'primary' : _b, _c = props.isLoading, isLoading = _c === void 0 ? false : _c, _intent = props.intent, isSelected = props.isSelected, children = props.children, tooltipContent = props.tooltipContent, _d = props.disabled, disabled = _d === void 0 ? false : _d, fullWidth = props.fullWidth, _e = props.animate, animate = _e === void 0 ? false : _e, dropdownContent = props.dropdownContent, onClick = props.onClick, _startEnhancer = props.startEnhancer, _endEnhancer = props.endEnhancer, href = props.href, type = props.type, restProps = tslib_1.__rest(props, ["overrides", "className", "style", "size", "shape", "variant", "isLoading", "intent", "isSelected", "children", "tooltipContent", "disabled", "fullWidth", "animate", "dropdownContent", "onClick", "startEnhancer", "endEnhancer", "href", "type"]);
24
24
  var enhancerProps = (0, omit_1.default)(props, ['className', 'style']);
25
25
  var _f = tslib_1.__read((0, react_1.useState)(false), 2), isFocusVisible = _f[0], setIsFocusVisible = _f[1];
26
26
  var styleUtils = (0, style_1.useStyle)();
@@ -51,7 +51,7 @@ var Button = (0, react_1.forwardRef)(function (props, ref) {
51
51
  setIsFocusVisible(true);
52
52
  }
53
53
  }, []);
54
- var handleBlur = (0, react_1.useCallback)(function (event) {
54
+ var handleBlur = (0, react_1.useCallback)(function (_event) {
55
55
  if (isFocusVisible) {
56
56
  setIsFocusVisible(false);
57
57
  }
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { CitationButtonProps } from './types';
2
+ import type { CitationButtonProps } from './types';
3
3
  declare const CitationButton: import("react").ForwardRefExoticComponent<CitationButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
4
4
  export default CitationButton;
@@ -1,3 +1,3 @@
1
- import { ButtonProps, ButtonSharedProps } from '../types';
1
+ import type { ButtonProps, ButtonSharedProps } from '../types';
2
2
  export type CitationButtonProps = Omit<ButtonProps, 'size' | 'intent'>;
3
3
  export type SharedProps = Omit<ButtonSharedProps, '$size'>;
@@ -1,6 +1,6 @@
1
- import { ReactElement } from 'react';
2
- import { ButtonProps, ButtonSharedProps } from './types';
3
- import { StatefulPopoverProps } from '../popover/types';
1
+ import type { ReactElement } from 'react';
2
+ import type { ButtonProps, ButtonSharedProps } from './types';
3
+ import type { StatefulPopoverProps } from '../popover/types';
4
4
  type DropdownEnhancerProps = {
5
5
  dropdownContent: StatefulPopoverProps['content'];
6
6
  overrides?: ButtonProps['overrides'];
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
- // libs
6
5
  var react_1 = require("react");
7
6
  // components
8
7
  var popover_1 = require("../popover");
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { IconButtonProps } from './types';
2
+ import type { IconButtonProps } from './types';
3
3
  declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
4
4
  export default IconButton;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { IconProps } from '../../icon';
3
- import { ClassName } from '../../types';
2
+ import type { IconProps } from '../../icon';
3
+ import type { ClassName } from '../../types';
4
4
  export declare const getBorderRadiiStyles: (utils: any, props: any) => string;
5
5
  export declare const iconButtonStyles: ClassName;
6
6
  export declare const renderIconButtonChild: (theme: any, size: any, child: React.ReactElement<IconProps>) => React.ReactElement<IconProps, string | React.JSXElementConstructor<any>> | null;
@@ -1,6 +1,6 @@
1
- import { ButtonProps, ButtonSharedProps } from '../types';
2
- import { Size } from '../../types';
3
- import { StatefulTooltipProps } from '../../tooltip/types';
1
+ import type { ButtonProps, ButtonSharedProps } from '../types';
2
+ import type { Size } from '../../types';
3
+ import type { StatefulTooltipProps } from '../../tooltip/types';
4
4
  type BaseIconButtonProps = Omit<ButtonProps, 'size'> & {
5
5
  size?: Size;
6
6
  bordered?: boolean;
@@ -1,2 +1,2 @@
1
- import { ClassName } from '../../types';
1
+ import type { ClassName } from '../../types';
2
2
  export declare const iconTextButtonStyle: ClassName;
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.iconTextButtonStyle = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  var classNames_1 = tslib_1.__importDefault(require("../../classNames"));
6
- var getVariantStyles = function (_a, _b) {
7
- var theme = _a.theme;
8
- var $iconTextVariant = _b.$iconTextVariant, $isSelected = _b.$isSelected;
6
+ var getVariantStyles = function (_, _a) {
7
+ var $iconTextVariant = _a.$iconTextVariant, $isSelected = _a.$isSelected;
9
8
  return $iconTextVariant === 'default'
10
9
  ? (0, classNames_1.default)($isSelected ? 'spr-text-04 spr-icon-secondary' : 'spr-text-01', 'active:spr-text-04 bg-transparent')
11
10
  : 'bg-transparent';
@@ -1,6 +1,6 @@
1
- import { ComponentType } from 'react';
2
- import { ButtonProps, ButtonSharedProps } from '../types';
3
- import { IconProps } from '../../icon';
1
+ import type { ComponentType } from 'react';
2
+ import type { ButtonProps, ButtonSharedProps } from '../types';
3
+ import type { IconProps } from '../../icon';
4
4
  export type Variant = 'default' | 'bulk';
5
5
  export type IconTextButtonProps = Omit<ButtonProps, 'variant'> & {
6
6
  icon?: ComponentType<React.PropsWithChildren<IconProps>>;
@@ -1,4 +1,4 @@
1
- import { ButtonProps, ButtonSharedProps } from './types';
1
+ import type { ButtonProps, ButtonSharedProps } from './types';
2
2
  import * as React from 'react';
3
3
  declare const ButtonEnhancers: (props: Omit<{
4
4
  size?: import("./types").Size | undefined;
@@ -1,6 +1,6 @@
1
- import { Size, StyleFn, StyleObject, StyleUtils } from '../types';
2
- import { ButtonSharedProps, ButtonStyleParams } from './types';
3
- import { Theme } from '@sprinklrjs/spaceweb-themes/types';
1
+ import type { Size, StyleFn, StyleObject, StyleUtils } from '../types';
2
+ import type { ButtonSharedProps, ButtonStyleParams } from './types';
3
+ import type { Theme } from '@sprinklrjs/spaceweb-themes/types';
4
4
  /**
5
5
  * className fns that we know will always return a string; used since we directly combine these in template literals
6
6
  */
@@ -1,5 +1,5 @@
1
- import { ClassName, StyleFn } from '../types';
2
- import { ButtonSharedProps } from './types';
1
+ import type { ClassName, StyleFn } from '../types';
2
+ import type { ButtonSharedProps } from './types';
3
3
  export declare const getBorderRadiiStyles: ({ theme, px2rem }: {
4
4
  theme: any;
5
5
  px2rem: any;
package/button/types.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import * as React from 'react';
2
- import { Override } from '../overrides';
3
- import { TooltipProps } from '../tooltip/types';
4
- import { Intent, Variant, SpacewebComponentProps, Size } from '../types';
5
- import { AriaRole } from 'react';
6
- import { StatefulPopoverProps } from '../popover/types';
1
+ import type * as React from 'react';
2
+ import type { Override } from '../overrides';
3
+ import type { TooltipProps } from '../tooltip/types';
4
+ import type { Intent, Variant, SpacewebComponentProps, Size } from '../types';
5
+ import type { StatefulPopoverProps } from '../popover/types';
7
6
  export type Shape = 'default' | 'round' | 'square' | 'pill';
8
7
  export type { Size };
9
8
  export type ButtonSharedProps = {
@@ -43,7 +42,7 @@ export type ButtonProps = SpacewebComponentProps<{
43
42
  disabled?: boolean;
44
43
  fullWidth?: boolean;
45
44
  autoFocus?: boolean;
46
- role?: AriaRole | undefined;
45
+ role?: React.AriaRole | undefined;
47
46
  href?: string;
48
47
  target?: string;
49
48
  rel?: string;
@@ -1,4 +1,4 @@
1
- import { FocusEvent } from 'react';
1
+ import type { FocusEvent } from 'react';
2
2
  declare const ButtonGroup: import("react").ForwardRefExoticComponent<Omit<{
3
3
  children?: import("react").ReactNode;
4
4
  className?: import("..").ClassName;
@@ -1,7 +1,7 @@
1
- import { ButtonSharedProps } from '../button';
1
+ import type { ButtonSharedProps } from '../button';
2
2
  import type { ClassNameStyleFn } from '../types';
3
3
  import type { ButtonGroupSharedProps } from './types';
4
- import { StyleObject } from 'styletron-standard';
4
+ import type { StyleObject } from 'styletron-standard';
5
5
  /** Get size dependent atomic classes for ButtonGroup */
6
6
  export declare const getButtonGroupSizeClasses: ClassNameStyleFn<ButtonGroupSharedProps>;
7
7
  /** Get size dependent atomic classes for child buttons of ButtonGroup */
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { ClassName, StyleUtils } from '../types';
3
- import { ButtonGroupChildProps, ButtonGroupProps } from './types';
4
- import { ButtonSharedProps } from '../button';
2
+ import type { ClassName, StyleUtils } from '../types';
3
+ import type { ButtonGroupChildProps, ButtonGroupProps } from './types';
4
+ import type { ButtonSharedProps } from '../button';
5
5
  export declare const StyledRoot: import("../style/styled").StyledComponent;
6
6
  export declare const getButtonOverrides: (utils: StyleUtils, props: ButtonSharedProps) => ClassName;
7
7
  export declare const renderButtonGroupChild: (buttonGroupProps: Omit<{
@@ -1,9 +1,8 @@
1
- import * as React from 'react';
2
- import { Overrides, Override } from '../overrides';
3
- import { Variant, Size, ClassName, SpacewebComponentProps, Intent } from '../types';
4
- import { Variant as IconTextButtonVariant } from '../button/IconTextButton';
5
- import { Shape, ButtonSharedProps } from '../button';
6
- import { AriaRole } from 'react';
1
+ import type * as React from 'react';
2
+ import type { Overrides, Override } from '../overrides';
3
+ import type { Variant, Size, ClassName, SpacewebComponentProps, Intent } from '../types';
4
+ import type { Variant as IconTextButtonVariant } from '../button/IconTextButton';
5
+ import type { Shape, ButtonSharedProps } from '../button';
7
6
  type ButtonGroupOverrides = {
8
7
  Root?: Override<any>;
9
8
  };
@@ -26,7 +25,7 @@ export type ButtonGroupProps = SpacewebComponentProps<{
26
25
  intent?: Intent;
27
26
  variant?: Variant | IconTextButtonVariant;
28
27
  activateOnFocus?: boolean;
29
- role?: AriaRole | undefined;
28
+ role?: React.AriaRole | undefined;
30
29
  onFocus?: (event: React.FocusEvent<HTMLElement>) => void;
31
30
  onBlur?: (event: React.FocusEvent<HTMLElement>) => void;
32
31
  }>;
@@ -46,7 +45,7 @@ export type ButtonGroupChildProps = {
46
45
  onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
47
46
  tabIndex?: number;
48
47
  'aria-selected'?: boolean;
49
- role?: AriaRole;
48
+ role?: React.AriaRole;
50
49
  };
51
50
  export type StatefulButtonGroupProps = ButtonGroupProps & {
52
51
  initialState?: number[];
@@ -108,9 +108,7 @@ var Checkbox = function (_a) {
108
108
  $outlineWidth: $outlineWidth,
109
109
  $labelPlacement: labelPlacement,
110
110
  };
111
- var labelComp = children && ((0, jsx_runtime_1.jsx)(Label, tslib_1.__assign({}, sharedProps, labelProps, { children: containsInteractiveElement ? (
112
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- prevents the event from bubbling up to the label and moving focus to the radio button
113
- (0, jsx_runtime_1.jsx)(box_1.Box, tslib_1.__assign({ onClick: function (e) { return e.preventDefault(); } }, { children: children }))) : (children) })));
111
+ var labelComp = children && ((0, jsx_runtime_1.jsx)(Label, tslib_1.__assign({}, sharedProps, labelProps, { children: containsInteractiveElement ? (0, jsx_runtime_1.jsx)(box_1.Box, tslib_1.__assign({ onClick: function (e) { return e.preventDefault(); } }, { children: children })) : children })));
114
112
  var getCheckmarkIcon = function () {
115
113
  if (isIndeterminate) {
116
114
  return (0, jsx_runtime_1.jsx)(subtract_1.default, { size: size === 'medium' || size === 'large' ? 10 : 8 });
@@ -1,4 +1,4 @@
1
- import { StatefulContainerProps } from '../types';
1
+ import type { StatefulContainerProps } from '../types';
2
2
  import type { ChangeEvent, FocusEvent, MouseEvent } from 'react';
3
3
  declare const useStatefulCheckbox: ({ initialState, stateReducer, onChange, onMouseEnter, onMouseLeave, onFocus, onBlur, ...restProps }: StatefulContainerProps) => {
4
4
  checked: boolean | undefined;
@@ -1,5 +1,5 @@
1
- import { StyleUtils } from '../types';
2
- import { SharedProps } from './types';
1
+ import type { StyleUtils } from '../types';
2
+ import type { SharedProps } from './types';
3
3
  export declare const getCheckmarkBorderColor: (utils: StyleUtils, props: SharedProps) => string;
4
4
  export declare const getCheckmarkBackgroundColor: (utils: StyleUtils, props: SharedProps) => string;
5
5
  export declare const StyledRoot: import("../style").StyledComponent;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ColorPickerOverrides, ColorPickerProps } from './types';
2
+ import type { ColorPickerOverrides, ColorPickerProps } from './types';
3
3
  type ContentProps = {
4
4
  color?: string;
5
5
  noReset?: boolean;
@@ -26,7 +26,7 @@ exports.ColorPalette = (0, react_1.memo)(function (_a) {
26
26
  var colorPalette = _colorPalette !== null && _colorPalette !== void 0 ? _colorPalette : defaultColorPalette;
27
27
  var _b = tslib_1.__read((0, overrides_1.useOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.Swatches, grid_1.Grid), 2), Swatches = _b[0], swatchesProps = _b[1];
28
28
  var _c = tslib_1.__read((0, overrides_1.useOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.Swatch, Swatch_1.Swatch), 2), Swatch = _c[0], swatchProps = _c[1];
29
- return ((0, jsx_runtime_1.jsxs)(box_1.Box, tslib_1.__assign({ className: "min-h-40" }, { children: [presets.map(function (preset, index) {
29
+ return ((0, jsx_runtime_1.jsxs)(box_1.Box, tslib_1.__assign({ className: "min-h-40" }, { children: [presets.map(function (preset, _index) {
30
30
  var _a;
31
31
  return ((_a = preset.colors) === null || _a === void 0 ? void 0 : _a.length) ? ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(typography_1.Typography, tslib_1.__assign({ className: "spr-text-primary", variant: "body-md", weight: "semibold" }, { children: preset.label })), (0, jsx_runtime_1.jsx)(Swatches, tslib_1.__assign({ className: "mb-4 mt-2", cols: constants_1.SWATCHES_PER_ROW, colGap: 1, rowGap: 1 }, swatchesProps, { children: preset.colors.map(function (color) { return ((0, jsx_runtime_1.jsx)(Swatch, tslib_1.__assign({ color: color, onChange: onChange, isSelected: selectedColor === color || (!selectedColor && color === colors_1.RESET_COLOR) }, swatchProps, { className: ['w-6 h-6', swatchProps === null || swatchProps === void 0 ? void 0 : swatchProps.className] }), color)); }) }))] }, preset.label)) : null;
32
32
  }), (colorPalette === null || colorPalette === void 0 ? void 0 : colorPalette.length) ? ((0, jsx_runtime_1.jsx)(Swatches, tslib_1.__assign({ cols: constants_1.SWATCHES_PER_ROW, colGap: 1, rowGap: 1 }, swatchesProps, { children: colorPalette.map(function (color) { return ((0, jsx_runtime_1.jsx)(Swatch, tslib_1.__assign({ color: color, overrides: overrides, onChange: onChange, isSelected: selectedColor === color }, swatchProps, { className: ['w-6 h-6', swatchProps === null || swatchProps === void 0 ? void 0 : swatchProps.className] }), color)); }) }))) : null] })));
@@ -1,6 +1,6 @@
1
- import { ReactElement } from 'react';
2
- import { ClassName, Styles } from '../types';
3
- import { SwatchColor } from './types';
1
+ import type { ReactElement } from 'react';
2
+ import type { ClassName, Styles } from '../types';
3
+ import type { SwatchColor } from './types';
4
4
  export type SwatchProps = {
5
5
  color: SwatchColor;
6
6
  isSelected: boolean;
@@ -1,9 +1,9 @@
1
1
  import type { Override } from '../overrides';
2
2
  import type { ColorResult, RGBColor } from 'react-color';
3
- import { GRADIENT_TYPE } from './constants';
3
+ import type { GRADIENT_TYPE } from './constants';
4
4
  import type { SelectProps } from '../select';
5
5
  import type { BoxProps } from '../box';
6
- import { ReactElement } from 'react';
6
+ import type { ReactElement } from 'react';
7
7
  export type ColorPickerOverrides = {
8
8
  Root?: Override<Record<string, any>>;
9
9
  Heading?: Override<Record<string, any>>;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  type ContainerProps = {
3
3
  children: ReactNode;
4
4
  variant: 'fixed' | 'fluid';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { CurrencyProps } from './types';
2
+ import type { CurrencyProps } from './types';
3
3
  export declare const Currency: {
4
4
  ({ value, variant, currency, currencyOptions, }: CurrencyProps): JSX.Element;
5
5
  __standard: string;
@@ -1,3 +1,3 @@
1
- import { CompactAutoFormat } from '../utils/intlNumberFormatUtils/types';
1
+ import type { CompactAutoFormat } from '../utils/intlNumberFormatUtils/types';
2
2
  export declare const DEFAULT_VARIANT: CompactAutoFormat;
3
3
  export declare const DEFAULT_CURRENCY = "USD";
@@ -1,4 +1,4 @@
1
- import { NumberVariant } from '../utils/intlNumberFormatUtils/types';
1
+ import type { NumberVariant } from '../utils/intlNumberFormatUtils/types';
2
2
  export type CurrencyProps = {
3
3
  value: number;
4
4
  variant?: NumberVariant;
@@ -1,2 +1,2 @@
1
- import { CurrencyProps } from './types';
1
+ import type { CurrencyProps } from './types';
2
2
  export declare const useCurrency: ({ value, currency, variant, currencyOptions, }: CurrencyProps) => string;
@@ -1,4 +1,4 @@
1
- import { NumberVariant } from '../utils/intlNumberFormatUtils/types';
1
+ import type { NumberVariant } from '../utils/intlNumberFormatUtils/types';
2
2
  export declare const getFormattedCurrency: ({ value, locale, variant, currencyOptions, currency, }: {
3
3
  value: number;
4
4
  locale: string;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import type { ReactElement } from 'react';
2
2
  import type { DateInputProps } from './types';
3
3
  export declare const DateInput: {
4
4
  ({ adapter, formatString: _formatString, onChange, value: _value, locale, weekStartsOn, overrides, minDate: _minDate, maxDate: _maxDate, timeSelect, showTimezone, timezone, timezoneOptions, onFocus: _onFocus, onBlur: _onBlur, onKeyDown: _onKeyDown, placeholder, getTimeRangesForDate, onOpen, onClose, inputToDateParser, disableTimezoneSwitch, disableOutOfBoundaryDateAdaptation, ...restProps }: DateInputProps): ReactElement;
@@ -1,8 +1,8 @@
1
- import { Override } from '../overrides';
2
- import { DatePickerProps } from '../date-picker';
3
- import { InputProps } from '../input';
4
- import { ChangeEvent } from 'react';
5
- import { getAnyDateParser } from './utils';
1
+ import type { Override } from '../overrides';
2
+ import type { DatePickerProps } from '../date-picker';
3
+ import type { InputProps } from '../input';
4
+ import type { ChangeEvent } from 'react';
5
+ import type { getAnyDateParser } from './utils';
6
6
  export type DateInputProps = Omit<InputProps, 'value' | 'onChange' | 'min' | 'max' | 'debouncedOnChange' | 'debounceInterval' | 'type' | 'inputMode' | 'overrides'> & Pick<DatePickerProps, 'getTimeRangesForDate' | 'formatString' | 'adapter' | 'value' | 'weekStartsOn' | 'minDate' | 'maxDate' | 'timeSelect' | 'showTimezone' | 'timezone' | 'timezoneOptions' | 'disableTimezoneSwitch'> & {
7
7
  locale?: any;
8
8
  disableOutOfBoundaryDateAdaptation?: boolean;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
2
- import { CalendarProps } from './types';
1
+ import type { PropsWithChildren, ReactElement } from 'react';
2
+ import type { CalendarProps } from './types';
3
3
  declare const Calendar: {
4
4
  ({ overrides, adapter, formatString, weekStartsOn, getDefaultTime, formatDisplayValue, ...props }: PropsWithChildren<CalendarProps>): ReactElement;
5
5
  __standard: string;
@@ -183,7 +183,7 @@ function (_a) {
183
183
  setYear(date ? dateHelpers.getYear(date) : '');
184
184
  }
185
185
  };
186
- var yearBlur = function (event) {
186
+ var yearBlur = function (_event) {
187
187
  setYear(date ? dateHelpers.formatDate(date, 'yyyy') : '');
188
188
  };
189
189
  var yearChange = function (event) {
@@ -1,5 +1,5 @@
1
- import { ReactElement } from 'react';
2
- import { DatePickerProps } from './types';
1
+ import type { ReactElement } from 'react';
2
+ import type { DatePickerProps } from './types';
3
3
  export declare const DatePicker: {
4
4
  (props: DatePickerProps): ReactElement;
5
5
  __standard: string;
@@ -29,7 +29,7 @@ var style_1 = require("../style");
29
29
  var StatelessDatePicker = function (_props) {
30
30
  var _a, _b, _c;
31
31
  var theme = (0, style_1.useStyle)().theme;
32
- var _d = (0, context_1.useContextualFormProps)(_props), onChange = _d.onChange, onBlur = _d.onBlur, _e = _d.adapter, adapter = _e === void 0 ? date_fns_adapter_1.default : _e, _f = _d.size, size = _f === void 0 ? (0, themeHelpers_1.getDefaultSize)(theme) : _f, _g = _d.formatString, formatString = _g === void 0 ? constants_1.DEFAULT_FORMAT_STRING : _g, _h = _d.isOpen, isOpen = _h === void 0 ? false : _h, onFocus = _d.onFocus, clearable = _d.clearable, displayValueAtRangeIndex = _d.displayValueAtRangeIndex, _j = _d.variant, variant = _j === void 0 ? 'default' : _j, overrides = _d.overrides, intent = _d.intent, _value = _d.value, formatDisplayValue = _d.formatDisplayValue, _k = _d.autoSizeInput, autoSizeInput = _k === void 0 ? false : _k, weekStartsOn = _d.weekStartsOn, _l = _d.timezone, timezone = _l === void 0 ? (0, getSystemTzName_1.getSystemTzName)() : _l, _m = _d.showTimezone, showTimezone = _m === void 0 ? false : _m, timezoneOptions = _d.timezoneOptions, props = tslib_1.__rest(_d, ["onChange", "onBlur", "adapter", "size", "formatString", "isOpen", "onFocus", "clearable", "displayValueAtRangeIndex", "variant", "overrides", "intent", "value", "formatDisplayValue", "autoSizeInput", "weekStartsOn", "timezone", "showTimezone", "timezoneOptions"]);
32
+ var _d = (0, context_1.useContextualFormProps)(_props), onChange = _d.onChange, onBlur = _d.onBlur, _e = _d.adapter, adapter = _e === void 0 ? date_fns_adapter_1.default : _e, _f = _d.size, size = _f === void 0 ? (0, themeHelpers_1.getDefaultSize)(theme) : _f, _g = _d.formatString, formatString = _g === void 0 ? constants_1.DEFAULT_FORMAT_STRING : _g, _h = _d.isOpen, isOpen = _h === void 0 ? false : _h, onFocus = _d.onFocus, clearable = _d.clearable, _displayValueAtRangeIndex = _d.displayValueAtRangeIndex, _j = _d.variant, variant = _j === void 0 ? 'default' : _j, overrides = _d.overrides, intent = _d.intent, _value = _d.value, formatDisplayValue = _d.formatDisplayValue, _k = _d.autoSizeInput, autoSizeInput = _k === void 0 ? false : _k, weekStartsOn = _d.weekStartsOn, _l = _d.timezone, timezone = _l === void 0 ? (0, getSystemTzName_1.getSystemTzName)() : _l, _m = _d.showTimezone, showTimezone = _m === void 0 ? false : _m, timezoneOptions = _d.timezoneOptions, props = tslib_1.__rest(_d, ["onChange", "onBlur", "adapter", "size", "formatString", "isOpen", "onFocus", "clearable", "displayValueAtRangeIndex", "variant", "overrides", "intent", "value", "formatDisplayValue", "autoSizeInput", "weekStartsOn", "timezone", "showTimezone", "timezoneOptions"]);
33
33
  var locale = (0, locale_1.useLocale)();
34
34
  var dateHelpers = React.useMemo(function () { return new date_helpers_1.default(adapter); }, [adapter]);
35
35
  var dateFnsLocale = React.useMemo(function () { return (0, utils_1.prepareLocale)(props.locale, { weekStartsOn: weekStartsOn }); }, [weekStartsOn, props.locale]);
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import DateHelpers from '../baseui/datepicker/utils/date-helpers';
3
- import { DateIOAdapter } from '../baseui/datepicker/utils/types';
4
- import { GetTimeRangesForDate } from '../baseui/datepicker/types';
2
+ import type DateHelpers from '../baseui/datepicker/utils/date-helpers';
3
+ import type { DateIOAdapter } from '../baseui/datepicker/utils/types';
4
+ import type { GetTimeRangesForDate } from '../baseui/datepicker/types';
5
5
  import type { InputSize } from '../input/types';
6
6
  type TimeInputProps = {
7
7
  time?: Date | null;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import type { ReactElement } from 'react';
2
2
  import type { TimezonePickerProps } from '../time-zone-picker';
3
3
  type Props = Pick<TimezonePickerProps, 'mapLabels' | 'timezoneOptions' | 'value' | 'date'> & {};
4
4
  export declare const TimezoneOptionsDisplay: import("react").MemoExoticComponent<({ date, mapLabels, timezoneOptions, value }: Props) => ReactElement>;