@sprinklrjs/spaceweb 10.1.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 (1638) hide show
  1. package/allComponentsAndUtilities.d.ts +55 -0
  2. package/allComponentsAndUtilities.js +59 -0
  3. package/asyncSelect/asyncSelect.d.ts +7 -0
  4. package/asyncSelect/asyncSelect.js +123 -0
  5. package/asyncSelect/helpers.d.ts +17 -0
  6. package/asyncSelect/helpers.js +38 -0
  7. package/asyncSelect/hooks/useAsyncOptionHandlers.d.ts +28 -0
  8. package/asyncSelect/hooks/useAsyncOptionHandlers.js +102 -0
  9. package/asyncSelect/hooks/useInputChangeHandler.d.ts +13 -0
  10. package/asyncSelect/hooks/useInputChangeHandler.js +40 -0
  11. package/asyncSelect/hooks/useResolveSelectedOptions.d.ts +18 -0
  12. package/asyncSelect/hooks/useResolveSelectedOptions.js +64 -0
  13. package/asyncSelect/index.d.ts +3 -0
  14. package/asyncSelect/index.js +5 -0
  15. package/asyncSelect/locale.d.ts +7 -0
  16. package/asyncSelect/locale.js +2 -0
  17. package/asyncSelect/package.json +4 -0
  18. package/asyncSelect/types.d.ts +29 -0
  19. package/asyncSelect/types.js +2 -0
  20. package/avatar/avatar-group.d.ts +4 -0
  21. package/avatar/avatar-group.js +53 -0
  22. package/avatar/avatar.d.ts +4 -0
  23. package/avatar/avatar.js +68 -0
  24. package/avatar/constants.d.ts +1 -0
  25. package/avatar/constants.js +61 -0
  26. package/avatar/index.d.ts +5 -0
  27. package/avatar/index.js +14 -0
  28. package/avatar/package.json +4 -0
  29. package/avatar/styled-component.d.ts +36 -0
  30. package/avatar/styled-component.js +50 -0
  31. package/avatar/types.d.ts +50 -0
  32. package/avatar/types.js +2 -0
  33. package/avatar/useAvatarColor.d.ts +1 -0
  34. package/avatar/useAvatarColor.js +27 -0
  35. package/avatar/utils/cleanupDisplayName.d.ts +1 -0
  36. package/avatar/utils/cleanupDisplayName.js +20 -0
  37. package/badge/badge.d.ts +4 -0
  38. package/badge/badge.js +21 -0
  39. package/badge/index.d.ts +3 -0
  40. package/badge/index.js +11 -0
  41. package/badge/package.json +4 -0
  42. package/badge/styled-component.d.ts +2 -0
  43. package/badge/styled-component.js +59 -0
  44. package/badge/types.d.ts +25 -0
  45. package/badge/types.js +2 -0
  46. package/base-button/BaseButton.d.ts +6 -0
  47. package/base-button/BaseButton.js +29 -0
  48. package/base-button/index.d.ts +3 -0
  49. package/base-button/index.js +8 -0
  50. package/base-button/package.json +4 -0
  51. package/base-button/styled-components.d.ts +3 -0
  52. package/base-button/styled-components.js +13 -0
  53. package/base-button/types.d.ts +2 -0
  54. package/base-button/types.js +2 -0
  55. package/box/Box.d.ts +13 -0
  56. package/box/Box.js +15 -0
  57. package/box/index.d.ts +2 -0
  58. package/box/index.js +7 -0
  59. package/box/package.json +4 -0
  60. package/box/types.d.ts +7 -0
  61. package/box/types.js +2 -0
  62. package/button/Button.d.ts +32 -0
  63. package/button/Button.js +50 -0
  64. package/button/IconButton/IconButton.d.ts +6 -0
  65. package/button/IconButton/IconButton.js +22 -0
  66. package/button/IconButton/index.d.ts +3 -0
  67. package/button/IconButton/index.js +6 -0
  68. package/button/IconButton/styled-components.d.ts +5 -0
  69. package/button/IconButton/styled-components.js +78 -0
  70. package/button/IconButton/types.d.ts +10 -0
  71. package/button/IconButton/types.js +2 -0
  72. package/button/IconTextButton/IconTextButton.d.ts +7 -0
  73. package/button/IconTextButton/IconTextButton.js +26 -0
  74. package/button/IconTextButton/index.d.ts +3 -0
  75. package/button/IconTextButton/index.js +6 -0
  76. package/button/IconTextButton/styled-components.d.ts +3 -0
  77. package/button/IconTextButton/styled-components.js +49 -0
  78. package/button/IconTextButton/types.d.ts +13 -0
  79. package/button/IconTextButton/types.js +2 -0
  80. package/button/basewebAdapter.d.ts +29 -0
  81. package/button/basewebAdapter.js +12 -0
  82. package/button/index.d.ts +5 -0
  83. package/button/index.js +17 -0
  84. package/button/package.json +4 -0
  85. package/button/styled-components.d.ts +20 -0
  86. package/button/styled-components.js +226 -0
  87. package/button/types.d.ts +49 -0
  88. package/button/types.js +2 -0
  89. package/button-group/ButtonGroup.d.ts +22 -0
  90. package/button-group/ButtonGroup.js +25 -0
  91. package/button-group/StatefulButtonGroup.d.ts +24 -0
  92. package/button-group/StatefulButtonGroup.js +41 -0
  93. package/button-group/index.d.ts +4 -0
  94. package/button-group/index.js +14 -0
  95. package/button-group/package.json +4 -0
  96. package/button-group/styled-components.d.ts +31 -0
  97. package/button-group/styled-components.js +100 -0
  98. package/button-group/types.d.ts +40 -0
  99. package/button-group/types.js +2 -0
  100. package/checkbox/basewebAdapters.d.ts +4 -0
  101. package/checkbox/basewebAdapters.js +34 -0
  102. package/checkbox/checkbox.d.ts +10 -0
  103. package/checkbox/checkbox.js +22 -0
  104. package/checkbox/index.d.ts +5 -0
  105. package/checkbox/index.js +20 -0
  106. package/checkbox/package.json +4 -0
  107. package/checkbox/styled-components.d.ts +5 -0
  108. package/checkbox/styled-components.js +98 -0
  109. package/checkbox/types.d.ts +28 -0
  110. package/checkbox/types.js +2 -0
  111. package/classNames/index.d.ts +1 -0
  112. package/classNames/index.js +8 -0
  113. package/classNames/package.json +4 -0
  114. package/col/index.d.ts +2 -0
  115. package/col/index.js +5 -0
  116. package/col/package.json +4 -0
  117. package/container/ContainerProps.d.ts +6 -0
  118. package/container/ContainerProps.js +2 -0
  119. package/container/package.json +4 -0
  120. package/date-input/Before.d.ts +17 -0
  121. package/date-input/Before.js +27 -0
  122. package/date-input/CalendarIconButton.d.ts +3 -0
  123. package/date-input/CalendarIconButton.js +10 -0
  124. package/date-input/DateInput.d.ts +3 -0
  125. package/date-input/DateInput.js +96 -0
  126. package/date-input/index.d.ts +2 -0
  127. package/date-input/index.js +7 -0
  128. package/date-input/package.json +4 -0
  129. package/date-input/styled-components.d.ts +4 -0
  130. package/date-input/styled-components.js +16 -0
  131. package/date-input/types.d.ts +15 -0
  132. package/date-input/types.js +2 -0
  133. package/date-picker/Calendar.d.ts +9 -0
  134. package/date-picker/Calendar.js +223 -0
  135. package/date-picker/DateInput.d.ts +13 -0
  136. package/date-picker/DateInput.js +220 -0
  137. package/date-picker/DatePicker.d.ts +3 -0
  138. package/date-picker/DatePicker.js +9 -0
  139. package/date-picker/DatePickerContent.d.ts +9 -0
  140. package/date-picker/DatePickerContent.js +45 -0
  141. package/date-picker/DatePickerInput.d.ts +8 -0
  142. package/date-picker/DatePickerInput.js +111 -0
  143. package/date-picker/DateTimeContainer.d.ts +18 -0
  144. package/date-picker/DateTimeContainer.js +124 -0
  145. package/date-picker/StatelessDatePicker.d.ts +3 -0
  146. package/date-picker/StatelessDatePicker.js +141 -0
  147. package/date-picker/TimeInput.d.ts +12 -0
  148. package/date-picker/TimeInput.js +73 -0
  149. package/date-picker/constants.d.ts +1 -0
  150. package/date-picker/constants.js +4 -0
  151. package/date-picker/index.d.ts +10 -0
  152. package/date-picker/index.js +32 -0
  153. package/date-picker/locale.d.ts +3 -0
  154. package/date-picker/locale.js +2 -0
  155. package/date-picker/package.json +4 -0
  156. package/date-picker/stateful-container.d.ts +9 -0
  157. package/date-picker/stateful-container.js +28 -0
  158. package/date-picker/styled-components.d.ts +8 -0
  159. package/date-picker/styled-components.js +138 -0
  160. package/date-picker/types.d.ts +104 -0
  161. package/date-picker/types.js +2 -0
  162. package/date-picker/useDatePickerState.d.ts +13 -0
  163. package/date-picker/useDatePickerState.js +24 -0
  164. package/date-picker/utils.d.ts +24 -0
  165. package/date-picker/utils.js +83 -0
  166. package/esm/allComponentsAndUtilities.d.ts +55 -0
  167. package/esm/allComponentsAndUtilities.js +104 -0
  168. package/esm/asyncSelect/asyncSelect.d.ts +7 -0
  169. package/esm/asyncSelect/asyncSelect.js +120 -0
  170. package/esm/asyncSelect/helpers.d.ts +17 -0
  171. package/esm/asyncSelect/helpers.js +31 -0
  172. package/esm/asyncSelect/hooks/useAsyncOptionHandlers.d.ts +28 -0
  173. package/esm/asyncSelect/hooks/useAsyncOptionHandlers.js +99 -0
  174. package/esm/asyncSelect/hooks/useInputChangeHandler.d.ts +13 -0
  175. package/esm/asyncSelect/hooks/useInputChangeHandler.js +37 -0
  176. package/esm/asyncSelect/hooks/useResolveSelectedOptions.d.ts +18 -0
  177. package/esm/asyncSelect/hooks/useResolveSelectedOptions.js +61 -0
  178. package/esm/asyncSelect/index.d.ts +3 -0
  179. package/esm/asyncSelect/index.js +2 -0
  180. package/esm/asyncSelect/locale.d.ts +7 -0
  181. package/esm/asyncSelect/locale.js +1 -0
  182. package/esm/asyncSelect/types.d.ts +29 -0
  183. package/esm/asyncSelect/types.js +1 -0
  184. package/esm/avatar/avatar-group.d.ts +4 -0
  185. package/esm/avatar/avatar-group.js +50 -0
  186. package/esm/avatar/avatar.d.ts +4 -0
  187. package/esm/avatar/avatar.js +65 -0
  188. package/esm/avatar/constants.d.ts +1 -0
  189. package/esm/avatar/constants.js +58 -0
  190. package/esm/avatar/index.d.ts +5 -0
  191. package/esm/avatar/index.js +4 -0
  192. package/esm/avatar/styled-component.d.ts +36 -0
  193. package/esm/avatar/styled-component.js +47 -0
  194. package/esm/avatar/types.d.ts +50 -0
  195. package/esm/avatar/types.js +1 -0
  196. package/esm/avatar/useAvatarColor.d.ts +1 -0
  197. package/esm/avatar/useAvatarColor.js +23 -0
  198. package/esm/avatar/utils/cleanupDisplayName.d.ts +1 -0
  199. package/esm/avatar/utils/cleanupDisplayName.js +16 -0
  200. package/esm/badge/badge.d.ts +4 -0
  201. package/esm/badge/badge.js +19 -0
  202. package/esm/badge/index.d.ts +3 -0
  203. package/esm/badge/index.js +2 -0
  204. package/esm/badge/styled-component.d.ts +2 -0
  205. package/esm/badge/styled-component.js +56 -0
  206. package/esm/badge/types.d.ts +25 -0
  207. package/esm/badge/types.js +1 -0
  208. package/esm/base-button/BaseButton.d.ts +6 -0
  209. package/esm/base-button/BaseButton.js +26 -0
  210. package/esm/base-button/index.d.ts +3 -0
  211. package/esm/base-button/index.js +2 -0
  212. package/esm/base-button/styled-components.d.ts +3 -0
  213. package/esm/base-button/styled-components.js +10 -0
  214. package/esm/base-button/types.d.ts +2 -0
  215. package/esm/base-button/types.js +1 -0
  216. package/esm/box/Box.d.ts +13 -0
  217. package/esm/box/Box.js +13 -0
  218. package/esm/box/index.d.ts +2 -0
  219. package/esm/box/index.js +2 -0
  220. package/esm/box/types.d.ts +7 -0
  221. package/esm/box/types.js +1 -0
  222. package/esm/button/Button.d.ts +32 -0
  223. package/esm/button/Button.js +48 -0
  224. package/esm/button/IconButton/IconButton.d.ts +6 -0
  225. package/esm/button/IconButton/IconButton.js +20 -0
  226. package/esm/button/IconButton/index.d.ts +3 -0
  227. package/esm/button/IconButton/index.js +3 -0
  228. package/esm/button/IconButton/styled-components.d.ts +5 -0
  229. package/esm/button/IconButton/styled-components.js +73 -0
  230. package/esm/button/IconButton/types.d.ts +10 -0
  231. package/esm/button/IconButton/types.js +1 -0
  232. package/esm/button/IconTextButton/IconTextButton.d.ts +7 -0
  233. package/esm/button/IconTextButton/IconTextButton.js +24 -0
  234. package/esm/button/IconTextButton/index.d.ts +3 -0
  235. package/esm/button/IconTextButton/index.js +3 -0
  236. package/esm/button/IconTextButton/styled-components.d.ts +3 -0
  237. package/esm/button/IconTextButton/styled-components.js +46 -0
  238. package/esm/button/IconTextButton/types.d.ts +13 -0
  239. package/esm/button/IconTextButton/types.js +1 -0
  240. package/esm/button/basewebAdapter.d.ts +29 -0
  241. package/esm/button/basewebAdapter.js +10 -0
  242. package/esm/button/index.d.ts +5 -0
  243. package/esm/button/index.js +4 -0
  244. package/esm/button/styled-components.d.ts +20 -0
  245. package/esm/button/styled-components.js +222 -0
  246. package/esm/button/types.d.ts +49 -0
  247. package/esm/button/types.js +1 -0
  248. package/esm/button-group/ButtonGroup.d.ts +22 -0
  249. package/esm/button-group/ButtonGroup.js +23 -0
  250. package/esm/button-group/StatefulButtonGroup.d.ts +24 -0
  251. package/esm/button-group/StatefulButtonGroup.js +39 -0
  252. package/esm/button-group/index.d.ts +4 -0
  253. package/esm/button-group/index.js +3 -0
  254. package/esm/button-group/styled-components.d.ts +31 -0
  255. package/esm/button-group/styled-components.js +95 -0
  256. package/esm/button-group/types.d.ts +40 -0
  257. package/esm/button-group/types.js +1 -0
  258. package/esm/checkbox/basewebAdapters.d.ts +4 -0
  259. package/esm/checkbox/basewebAdapters.js +31 -0
  260. package/esm/checkbox/checkbox.d.ts +10 -0
  261. package/esm/checkbox/checkbox.js +17 -0
  262. package/esm/checkbox/index.d.ts +5 -0
  263. package/esm/checkbox/index.js +4 -0
  264. package/esm/checkbox/styled-components.d.ts +5 -0
  265. package/esm/checkbox/styled-components.js +92 -0
  266. package/esm/checkbox/types.d.ts +28 -0
  267. package/esm/checkbox/types.js +1 -0
  268. package/esm/classNames/index.d.ts +1 -0
  269. package/esm/classNames/index.js +1 -0
  270. package/esm/col/index.d.ts +2 -0
  271. package/esm/col/index.js +2 -0
  272. package/esm/container/ContainerProps.d.ts +6 -0
  273. package/esm/container/ContainerProps.js +1 -0
  274. package/esm/date-input/Before.d.ts +17 -0
  275. package/esm/date-input/Before.js +23 -0
  276. package/esm/date-input/CalendarIconButton.d.ts +3 -0
  277. package/esm/date-input/CalendarIconButton.js +6 -0
  278. package/esm/date-input/DateInput.d.ts +3 -0
  279. package/esm/date-input/DateInput.js +92 -0
  280. package/esm/date-input/index.d.ts +2 -0
  281. package/esm/date-input/index.js +2 -0
  282. package/esm/date-input/styled-components.d.ts +4 -0
  283. package/esm/date-input/styled-components.js +12 -0
  284. package/esm/date-input/types.d.ts +15 -0
  285. package/esm/date-input/types.js +1 -0
  286. package/esm/date-picker/Calendar.d.ts +9 -0
  287. package/esm/date-picker/Calendar.js +221 -0
  288. package/esm/date-picker/DateInput.d.ts +13 -0
  289. package/esm/date-picker/DateInput.js +216 -0
  290. package/esm/date-picker/DatePicker.d.ts +3 -0
  291. package/esm/date-picker/DatePicker.js +5 -0
  292. package/esm/date-picker/DatePickerContent.d.ts +9 -0
  293. package/esm/date-picker/DatePickerContent.js +41 -0
  294. package/esm/date-picker/DatePickerInput.d.ts +8 -0
  295. package/esm/date-picker/DatePickerInput.js +109 -0
  296. package/esm/date-picker/DateTimeContainer.d.ts +18 -0
  297. package/esm/date-picker/DateTimeContainer.js +121 -0
  298. package/esm/date-picker/StatelessDatePicker.d.ts +3 -0
  299. package/esm/date-picker/StatelessDatePicker.js +137 -0
  300. package/esm/date-picker/TimeInput.d.ts +12 -0
  301. package/esm/date-picker/TimeInput.js +69 -0
  302. package/esm/date-picker/constants.d.ts +1 -0
  303. package/esm/date-picker/constants.js +1 -0
  304. package/esm/date-picker/index.d.ts +10 -0
  305. package/esm/date-picker/index.js +10 -0
  306. package/esm/date-picker/locale.d.ts +3 -0
  307. package/esm/date-picker/locale.js +1 -0
  308. package/esm/date-picker/stateful-container.d.ts +9 -0
  309. package/esm/date-picker/stateful-container.js +26 -0
  310. package/esm/date-picker/styled-components.d.ts +8 -0
  311. package/esm/date-picker/styled-components.js +133 -0
  312. package/esm/date-picker/types.d.ts +104 -0
  313. package/esm/date-picker/types.js +1 -0
  314. package/esm/date-picker/useDatePickerState.d.ts +13 -0
  315. package/esm/date-picker/useDatePickerState.js +20 -0
  316. package/esm/date-picker/utils.d.ts +24 -0
  317. package/esm/date-picker/utils.js +74 -0
  318. package/esm/form-control/context.d.ts +22 -0
  319. package/esm/form-control/context.js +18 -0
  320. package/esm/form-control/form-control.d.ts +4 -0
  321. package/esm/form-control/form-control.js +54 -0
  322. package/esm/form-control/index.d.ts +3 -0
  323. package/esm/form-control/index.js +2 -0
  324. package/esm/form-control/styled-component.d.ts +8 -0
  325. package/esm/form-control/styled-component.js +33 -0
  326. package/esm/form-control/types.d.ts +46 -0
  327. package/esm/form-control/types.js +1 -0
  328. package/esm/grid/Col.d.ts +10 -0
  329. package/esm/grid/Col.js +44 -0
  330. package/esm/grid/Grid.d.ts +22 -0
  331. package/esm/grid/Grid.js +59 -0
  332. package/esm/grid/index.d.ts +6 -0
  333. package/esm/grid/index.js +4 -0
  334. package/esm/grid/types.d.ts +32 -0
  335. package/esm/grid/types.js +1 -0
  336. package/esm/grid/utils.d.ts +1 -0
  337. package/esm/grid/utils.js +27 -0
  338. package/esm/helpers/ClearIconButton.d.ts +5 -0
  339. package/esm/helpers/ClearIconButton.js +20 -0
  340. package/esm/helpers/baseui/useConvertOverrides.d.ts +15 -0
  341. package/esm/helpers/baseui/useConvertOverrides.js +30 -0
  342. package/esm/helpers/baseui/withThemeOverride.d.ts +9 -0
  343. package/esm/helpers/baseui/withThemeOverride.js +21 -0
  344. package/esm/helpers/commonStyles.d.ts +17 -0
  345. package/esm/helpers/commonStyles.js +48 -0
  346. package/esm/helpers/index.d.ts +25 -0
  347. package/esm/helpers/index.js +65 -0
  348. package/esm/helpers/intentHelper.d.ts +5 -0
  349. package/esm/helpers/intentHelper.js +17 -0
  350. package/esm/helpers/longHandHelpers.d.ts +7 -0
  351. package/esm/helpers/longHandHelpers.js +36 -0
  352. package/esm/helpers/styletron.d.ts +12 -0
  353. package/esm/helpers/styletron.js +13 -0
  354. package/esm/helpers/themeHelpers.d.ts +4 -0
  355. package/esm/helpers/themeHelpers.js +19 -0
  356. package/esm/helpers/typography.d.ts +2 -0
  357. package/esm/helpers/typography.js +5 -0
  358. package/esm/hooks/useAutoFocus.d.ts +9 -0
  359. package/esm/hooks/useAutoFocus.js +58 -0
  360. package/esm/hooks/useCombinedHandler.d.ts +6 -0
  361. package/esm/hooks/useCombinedHandler.js +20 -0
  362. package/esm/hooks/useCombinedRef.d.ts +6 -0
  363. package/esm/hooks/useCombinedRef.js +33 -0
  364. package/esm/hooks/useDebouncedEventHandler.d.ts +6 -0
  365. package/esm/hooks/useDebouncedEventHandler.js +35 -0
  366. package/esm/hooks/useFirstMountState.d.ts +2 -0
  367. package/esm/hooks/useFirstMountState.js +13 -0
  368. package/esm/hooks/useFocusVisible.d.ts +5 -0
  369. package/esm/hooks/useFocusVisible.js +22 -0
  370. package/esm/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
  371. package/esm/hooks/useIsomorphicLayoutEffect.js +3 -0
  372. package/esm/hooks/useLatest.d.ts +4 -0
  373. package/esm/hooks/useLatest.js +10 -0
  374. package/esm/hooks/useMeasure.d.ts +6 -0
  375. package/esm/hooks/useMeasure.js +40 -0
  376. package/esm/hooks/usePrevious.d.ts +2 -0
  377. package/esm/hooks/usePrevious.js +11 -0
  378. package/esm/hooks/useScrollCapture.d.ts +5 -0
  379. package/esm/hooks/useScrollCapture.js +67 -0
  380. package/esm/hooks/useStickyElement.d.ts +5 -0
  381. package/esm/hooks/useStickyElement.js +32 -0
  382. package/esm/hooks/useTabsKeyboardNavigation.d.ts +14 -0
  383. package/esm/hooks/useTabsKeyboardNavigation.js +99 -0
  384. package/esm/hooks/useUniqueId.d.ts +3 -0
  385. package/esm/hooks/useUniqueId.js +6 -0
  386. package/esm/hooks/useUpdateEffect.d.ts +3 -0
  387. package/esm/hooks/useUpdateEffect.js +12 -0
  388. package/esm/icon/components/alert-solid.d.ts +3 -0
  389. package/esm/icon/components/alert-solid.js +6 -0
  390. package/esm/icon/components/alert.d.ts +3 -0
  391. package/esm/icon/components/alert.js +6 -0
  392. package/esm/icon/components/calendar-solid.d.ts +3 -0
  393. package/esm/icon/components/calendar-solid.js +6 -0
  394. package/esm/icon/components/chevron-down.d.ts +3 -0
  395. package/esm/icon/components/chevron-down.js +6 -0
  396. package/esm/icon/components/chevron-right-solid.d.ts +3 -0
  397. package/esm/icon/components/chevron-right-solid.js +6 -0
  398. package/esm/icon/components/close.d.ts +3 -0
  399. package/esm/icon/components/close.js +6 -0
  400. package/esm/icon/components/error-clr.d.ts +3 -0
  401. package/esm/icon/components/error-clr.js +6 -0
  402. package/esm/icon/components/error-solid.d.ts +3 -0
  403. package/esm/icon/components/error-solid.js +6 -0
  404. package/esm/icon/components/error.d.ts +3 -0
  405. package/esm/icon/components/error.js +6 -0
  406. package/esm/icon/components/imagePreview.d.ts +3 -0
  407. package/esm/icon/components/imagePreview.js +6 -0
  408. package/esm/icon/components/info.d.ts +3 -0
  409. package/esm/icon/components/info.js +6 -0
  410. package/esm/icon/components/play-video.d.ts +3 -0
  411. package/esm/icon/components/play-video.js +6 -0
  412. package/esm/icon/components/search.d.ts +3 -0
  413. package/esm/icon/components/search.js +6 -0
  414. package/esm/icon/components/tick.d.ts +3 -0
  415. package/esm/icon/components/tick.js +6 -0
  416. package/esm/icon/components/tickCircle-solid.d.ts +3 -0
  417. package/esm/icon/components/tickCircle-solid.js +6 -0
  418. package/esm/icon/components/user.d.ts +3 -0
  419. package/esm/icon/components/user.js +6 -0
  420. package/esm/icon/components/video-non-playable.d.ts +3 -0
  421. package/esm/icon/components/video-non-playable.js +6 -0
  422. package/esm/icon/icon.d.ts +4 -0
  423. package/esm/icon/icon.js +16 -0
  424. package/esm/icon/index.d.ts +2 -0
  425. package/esm/icon/index.js +2 -0
  426. package/esm/icon/styled-components.d.ts +1 -0
  427. package/esm/icon/styled-components.js +10 -0
  428. package/esm/icon/types.d.ts +10 -0
  429. package/esm/icon/types.js +1 -0
  430. package/esm/image/Image.d.ts +15 -0
  431. package/esm/image/Image.js +28 -0
  432. package/esm/image/defaultFallbackImg.d.ts +4 -0
  433. package/esm/image/defaultFallbackImg.js +13 -0
  434. package/esm/image/index.d.ts +2 -0
  435. package/esm/image/index.js +1 -0
  436. package/esm/image/types.d.ts +27 -0
  437. package/esm/image/types.js +1 -0
  438. package/esm/index.d.ts +3 -0
  439. package/esm/index.js +3 -0
  440. package/esm/input/basewebAdapters.d.ts +7 -0
  441. package/esm/input/basewebAdapters.js +45 -0
  442. package/esm/input/index.d.ts +4 -0
  443. package/esm/input/index.js +3 -0
  444. package/esm/input/input.d.ts +14 -0
  445. package/esm/input/input.js +28 -0
  446. package/esm/input/styled-components.d.ts +6 -0
  447. package/esm/input/styled-components.js +129 -0
  448. package/esm/input/types.d.ts +39 -0
  449. package/esm/input/types.js +1 -0
  450. package/esm/layer/LayersManager.d.ts +8 -0
  451. package/esm/layer/LayersManager.js +20 -0
  452. package/esm/layer/constants.d.ts +6 -0
  453. package/esm/layer/constants.js +7 -0
  454. package/esm/layer/index.d.ts +2 -0
  455. package/esm/layer/index.js +2 -0
  456. package/esm/layer/useLayersContextValue.d.ts +3 -0
  457. package/esm/layer/useLayersContextValue.js +54 -0
  458. package/esm/link/index.d.ts +2 -0
  459. package/esm/link/index.js +2 -0
  460. package/esm/link/link.d.ts +11 -0
  461. package/esm/link/link.js +12 -0
  462. package/esm/link/styled-components.d.ts +3 -0
  463. package/esm/link/styled-components.js +18 -0
  464. package/esm/link/types.d.ts +4 -0
  465. package/esm/link/types.js +1 -0
  466. package/esm/list/avatar-list-item.d.ts +33 -0
  467. package/esm/list/avatar-list-item.js +18 -0
  468. package/esm/list/divider.d.ts +13 -0
  469. package/esm/list/divider.js +15 -0
  470. package/esm/list/index.d.ts +7 -0
  471. package/esm/list/index.js +6 -0
  472. package/esm/list/list-item-text.d.ts +4 -0
  473. package/esm/list/list-item-text.js +12 -0
  474. package/esm/list/list-item.d.ts +25 -0
  475. package/esm/list/list-item.js +51 -0
  476. package/esm/list/list.d.ts +12 -0
  477. package/esm/list/list.js +12 -0
  478. package/esm/list/styled-component.d.ts +9 -0
  479. package/esm/list/styled-component.js +75 -0
  480. package/esm/list/types.d.ts +57 -0
  481. package/esm/list/types.js +1 -0
  482. package/esm/loader/index.d.ts +3 -0
  483. package/esm/loader/index.js +2 -0
  484. package/esm/loader/loader.d.ts +6 -0
  485. package/esm/loader/loader.js +38 -0
  486. package/esm/loader/styled-component.d.ts +4 -0
  487. package/esm/loader/styled-component.js +58 -0
  488. package/esm/loader/types.d.ts +23 -0
  489. package/esm/loader/types.js +1 -0
  490. package/esm/locale/context.d.ts +16 -0
  491. package/esm/locale/context.js +17 -0
  492. package/esm/locale/en_US.d.ts +2 -0
  493. package/esm/locale/en_US.js +68 -0
  494. package/esm/locale/index.d.ts +3 -0
  495. package/esm/locale/index.js +2 -0
  496. package/esm/locale/types.d.ts +21 -0
  497. package/esm/locale/types.js +1 -0
  498. package/esm/menu/MenuContext.d.ts +11 -0
  499. package/esm/menu/MenuContext.js +10 -0
  500. package/esm/menu/helpers.d.ts +12 -0
  501. package/esm/menu/helpers.js +77 -0
  502. package/esm/menu/index.d.ts +4 -0
  503. package/esm/menu/index.js +3 -0
  504. package/esm/menu/menu-item.d.ts +45 -0
  505. package/esm/menu/menu-item.js +80 -0
  506. package/esm/menu/menu.d.ts +25 -0
  507. package/esm/menu/menu.js +56 -0
  508. package/esm/menu/nested-menu-context.d.ts +23 -0
  509. package/esm/menu/nested-menu-context.js +68 -0
  510. package/esm/menu/types.d.ts +72 -0
  511. package/esm/menu/types.js +1 -0
  512. package/esm/menu/useItemContainerEventHandlers.d.ts +13 -0
  513. package/esm/menu/useItemContainerEventHandlers.js +32 -0
  514. package/esm/menu/useKeyboardNavigation.d.ts +23 -0
  515. package/esm/menu/useKeyboardNavigation.js +125 -0
  516. package/esm/menu/useStatefulMenu.d.ts +20 -0
  517. package/esm/menu/useStatefulMenu.js +66 -0
  518. package/esm/modal/adapter.d.ts +6 -0
  519. package/esm/modal/adapter.js +18 -0
  520. package/esm/modal/index.d.ts +7 -0
  521. package/esm/modal/index.js +6 -0
  522. package/esm/modal/modal-footer.d.ts +7 -0
  523. package/esm/modal/modal-footer.js +10 -0
  524. package/esm/modal/modal-header.d.ts +7 -0
  525. package/esm/modal/modal-header.js +11 -0
  526. package/esm/modal/modal.d.ts +7 -0
  527. package/esm/modal/modal.js +34 -0
  528. package/esm/modal/overrides.d.ts +9 -0
  529. package/esm/modal/overrides.js +67 -0
  530. package/esm/modal/styled-components.d.ts +7 -0
  531. package/esm/modal/styled-components.js +31 -0
  532. package/esm/modal/types.d.ts +24 -0
  533. package/esm/modal/types.js +1 -0
  534. package/esm/overrides/index.d.ts +3 -0
  535. package/esm/overrides/index.js +3 -0
  536. package/esm/overrides/mergeOverrides.d.ts +3 -0
  537. package/esm/overrides/mergeOverrides.js +42 -0
  538. package/esm/overrides/types.d.ts +22 -0
  539. package/esm/overrides/types.js +4 -0
  540. package/esm/overrides/useOverrides.d.ts +8 -0
  541. package/esm/overrides/useOverrides.js +14 -0
  542. package/esm/payment-card/basewebAdapters.d.ts +7 -0
  543. package/esm/payment-card/basewebAdapters.js +22 -0
  544. package/esm/payment-card/index.d.ts +3 -0
  545. package/esm/payment-card/index.js +3 -0
  546. package/esm/payment-card/paymentCard.d.ts +10 -0
  547. package/esm/payment-card/paymentCard.js +21 -0
  548. package/esm/payment-card/styled-components.d.ts +3 -0
  549. package/esm/payment-card/styled-components.js +12 -0
  550. package/esm/payment-card/types.d.ts +17 -0
  551. package/esm/payment-card/types.js +1 -0
  552. package/esm/phone-input/constants.d.ts +2299 -0
  553. package/esm/phone-input/constants.js +327 -0
  554. package/esm/phone-input/country-select-container.d.ts +6 -0
  555. package/esm/phone-input/country-select-container.js +15 -0
  556. package/esm/phone-input/country-select.d.ts +8 -0
  557. package/esm/phone-input/country-select.js +91 -0
  558. package/esm/phone-input/default-props.d.ts +23 -0
  559. package/esm/phone-input/default-props.js +25 -0
  560. package/esm/phone-input/dial-code.d.ts +4 -0
  561. package/esm/phone-input/dial-code.js +12 -0
  562. package/esm/phone-input/flag-container.d.ts +5 -0
  563. package/esm/phone-input/flag-container.js +18 -0
  564. package/esm/phone-input/index.d.ts +6 -0
  565. package/esm/phone-input/index.js +5 -0
  566. package/esm/phone-input/locale.d.ts +5 -0
  567. package/esm/phone-input/locale.js +1 -0
  568. package/esm/phone-input/phone-input.d.ts +25 -0
  569. package/esm/phone-input/phone-input.js +57 -0
  570. package/esm/phone-input/stateful-phone-input-container.d.ts +4 -0
  571. package/esm/phone-input/stateful-phone-input-container.js +19 -0
  572. package/esm/phone-input/stateful-phone-input.d.ts +25 -0
  573. package/esm/phone-input/stateful-phone-input.js +11 -0
  574. package/esm/phone-input/styled-components.d.ts +13 -0
  575. package/esm/phone-input/styled-components.js +35 -0
  576. package/esm/phone-input/types.d.ts +63 -0
  577. package/esm/phone-input/types.js +1 -0
  578. package/esm/phone-input/utils.d.ts +6 -0
  579. package/esm/phone-input/utils.js +27 -0
  580. package/esm/phone-input/virtualized-country-select-dropdown.d.ts +31 -0
  581. package/esm/phone-input/virtualized-country-select-dropdown.js +33 -0
  582. package/esm/popover/PopoverEnahncer.d.ts +15 -0
  583. package/esm/popover/PopoverEnahncer.js +57 -0
  584. package/esm/popover/adapter.d.ts +6 -0
  585. package/esm/popover/adapter.js +25 -0
  586. package/esm/popover/constants.d.ts +3 -0
  587. package/esm/popover/constants.js +8 -0
  588. package/esm/popover/hooks.d.ts +14 -0
  589. package/esm/popover/hooks.js +25 -0
  590. package/esm/popover/index.d.ts +6 -0
  591. package/esm/popover/index.js +5 -0
  592. package/esm/popover/overrides.d.ts +8 -0
  593. package/esm/popover/overrides.js +69 -0
  594. package/esm/popover/popover.d.ts +16 -0
  595. package/esm/popover/popover.js +39 -0
  596. package/esm/popover/stateful-popover.d.ts +7 -0
  597. package/esm/popover/stateful-popover.js +23 -0
  598. package/esm/popover/styled-components.d.ts +2 -0
  599. package/esm/popover/styled-components.js +15 -0
  600. package/esm/popover/types.d.ts +32 -0
  601. package/esm/popover/types.js +1 -0
  602. package/esm/popover/useFoucsLock.d.ts +6 -0
  603. package/esm/popover/useFoucsLock.js +9 -0
  604. package/esm/popover/utils.d.ts +14 -0
  605. package/esm/popover/utils.js +27 -0
  606. package/esm/progress/circular/CircularProgress.d.ts +4 -0
  607. package/esm/progress/circular/CircularProgress.js +19 -0
  608. package/esm/progress/circular/index.d.ts +3 -0
  609. package/esm/progress/circular/index.js +2 -0
  610. package/esm/progress/circular/styled-component.d.ts +15 -0
  611. package/esm/progress/circular/styled-component.js +98 -0
  612. package/esm/progress/circular/types.d.ts +22 -0
  613. package/esm/progress/circular/types.js +1 -0
  614. package/esm/progress/helper.d.ts +3 -0
  615. package/esm/progress/helper.js +13 -0
  616. package/esm/progress/index.d.ts +6 -0
  617. package/esm/progress/index.js +6 -0
  618. package/esm/progress/linear/LinearProgress.d.ts +4 -0
  619. package/esm/progress/linear/LinearProgress.js +15 -0
  620. package/esm/progress/linear/ProgressSegment.d.ts +9 -0
  621. package/esm/progress/linear/ProgressSegment.js +14 -0
  622. package/esm/progress/linear/index.d.ts +4 -0
  623. package/esm/progress/linear/index.js +4 -0
  624. package/esm/progress/linear/styled-component.d.ts +14 -0
  625. package/esm/progress/linear/styled-component.js +67 -0
  626. package/esm/progress/linear/types.d.ts +20 -0
  627. package/esm/progress/linear/types.js +1 -0
  628. package/esm/progress/types.d.ts +18 -0
  629. package/esm/progress/types.js +1 -0
  630. package/esm/radio/basewebAdapters.d.ts +16 -0
  631. package/esm/radio/basewebAdapters.js +46 -0
  632. package/esm/radio/index.d.ts +3 -0
  633. package/esm/radio/index.js +3 -0
  634. package/esm/radio/radio.d.ts +10 -0
  635. package/esm/radio/radio.js +23 -0
  636. package/esm/radio/styled-components.d.ts +7 -0
  637. package/esm/radio/styled-components.js +138 -0
  638. package/esm/radio/types.d.ts +37 -0
  639. package/esm/radio/types.js +1 -0
  640. package/esm/search/index.d.ts +2 -0
  641. package/esm/search/index.js +2 -0
  642. package/esm/search/search.d.ts +8 -0
  643. package/esm/search/search.js +66 -0
  644. package/esm/search/styled-components.d.ts +13 -0
  645. package/esm/search/styled-components.js +77 -0
  646. package/esm/search/types.d.ts +19 -0
  647. package/esm/search/types.js +1 -0
  648. package/esm/select/adaptor.d.ts +4 -0
  649. package/esm/select/adaptor.js +5 -0
  650. package/esm/select/base-select.d.ts +63 -0
  651. package/esm/select/base-select.js +256 -0
  652. package/esm/select/constants.d.ts +7 -0
  653. package/esm/select/constants.js +4 -0
  654. package/esm/select/default-props.d.ts +38 -0
  655. package/esm/select/default-props.js +39 -0
  656. package/esm/select/index.d.ts +15 -0
  657. package/esm/select/index.js +14 -0
  658. package/esm/select/locale.d.ts +4 -0
  659. package/esm/select/locale.js +1 -0
  660. package/esm/select/mobileSelect/AdaptedCSSTransition/AdaptedCSSTransition.d.ts +8 -0
  661. package/esm/select/mobileSelect/AdaptedCSSTransition/AdaptedCSSTransition.js +11 -0
  662. package/esm/select/mobileSelect/AdaptedCSSTransition/constants.d.ts +8 -0
  663. package/esm/select/mobileSelect/AdaptedCSSTransition/constants.js +8 -0
  664. package/esm/select/mobileSelect/AdaptedCSSTransition/index.d.ts +1 -0
  665. package/esm/select/mobileSelect/AdaptedCSSTransition/index.js +1 -0
  666. package/esm/select/mobileSelect/AdaptedCSSTransition/types.d.ts +2 -0
  667. package/esm/select/mobileSelect/AdaptedCSSTransition/types.js +1 -0
  668. package/esm/select/mobileSelect/Backdrop.d.ts +6 -0
  669. package/esm/select/mobileSelect/Backdrop.js +10 -0
  670. package/esm/select/mobileSelect/MobileSelect.d.ts +3 -0
  671. package/esm/select/mobileSelect/MobileSelect.js +20 -0
  672. package/esm/select/mobileSelect/MobileSheet.d.ts +21 -0
  673. package/esm/select/mobileSelect/MobileSheet.js +47 -0
  674. package/esm/select/mobileSelect/SwipeableTargetArea.d.ts +6 -0
  675. package/esm/select/mobileSelect/SwipeableTargetArea.js +10 -0
  676. package/esm/select/mobileSelect/hooks/useKeyboardViewportShiftOffset.d.ts +4 -0
  677. package/esm/select/mobileSelect/hooks/useKeyboardViewportShiftOffset.js +20 -0
  678. package/esm/select/mobileSelect/hooks/usePauseBodyScrollEffect.d.ts +5 -0
  679. package/esm/select/mobileSelect/hooks/usePauseBodyScrollEffect.js +14 -0
  680. package/esm/select/mobileSelect/hooks/useSwipeableSheetStyles.d.ts +13 -0
  681. package/esm/select/mobileSelect/hooks/useSwipeableSheetStyles.js +53 -0
  682. package/esm/select/mobileSelect/hooks/useTransitionStyles.d.ts +2 -0
  683. package/esm/select/mobileSelect/hooks/useTransitionStyles.js +24 -0
  684. package/esm/select/mobileSelect/index.d.ts +2 -0
  685. package/esm/select/mobileSelect/index.js +2 -0
  686. package/esm/select/mobileSelect/overrides.d.ts +9 -0
  687. package/esm/select/mobileSelect/overrides.js +71 -0
  688. package/esm/select/multi-value.d.ts +3 -0
  689. package/esm/select/multi-value.js +26 -0
  690. package/esm/select/overlaySelect/OverlaySelect.d.ts +3 -0
  691. package/esm/select/overlaySelect/OverlaySelect.js +62 -0
  692. package/esm/select/overlaySelect/index.d.ts +1 -0
  693. package/esm/select/overlaySelect/index.js +1 -0
  694. package/esm/select/overlaySelect/useOverlaySelectOverrides.d.ts +14 -0
  695. package/esm/select/overlaySelect/useOverlaySelectOverrides.js +204 -0
  696. package/esm/select/overlaySelect/usePopover.d.ts +8 -0
  697. package/esm/select/overlaySelect/usePopover.js +27 -0
  698. package/esm/select/overrides.d.ts +56 -0
  699. package/esm/select/overrides.js +125 -0
  700. package/esm/select/select-variants.d.ts +4 -0
  701. package/esm/select/select-variants.js +9 -0
  702. package/esm/select/select.d.ts +42 -0
  703. package/esm/select/select.js +20 -0
  704. package/esm/select/selectMenuAdapter/SelectMenuAdapter.d.ts +34 -0
  705. package/esm/select/selectMenuAdapter/SelectMenuAdapter.js +72 -0
  706. package/esm/select/selectMenuAdapter/SelectMenuItem.d.ts +57 -0
  707. package/esm/select/selectMenuAdapter/SelectMenuItem.js +37 -0
  708. package/esm/select/selectMenuAdapter/index.d.ts +2 -0
  709. package/esm/select/selectMenuAdapter/index.js +2 -0
  710. package/esm/select/stateful-select.d.ts +42 -0
  711. package/esm/select/stateful-select.js +14 -0
  712. package/esm/select/styled-component.d.ts +18 -0
  713. package/esm/select/styled-component.js +53 -0
  714. package/esm/select/types.d.ts +91 -0
  715. package/esm/select/types.js +1 -0
  716. package/esm/select/utils/default-filter-options.d.ts +1 -0
  717. package/esm/select/utils/default-filter-options.js +2 -0
  718. package/esm/setupTests.d.ts +1 -0
  719. package/esm/setupTests.js +21 -0
  720. package/esm/slider/index.d.ts +4 -0
  721. package/esm/slider/index.js +4 -0
  722. package/esm/slider/mark.d.ts +21 -0
  723. package/esm/slider/mark.js +11 -0
  724. package/esm/slider/slider.d.ts +7 -0
  725. package/esm/slider/slider.js +73 -0
  726. package/esm/slider/stateful-slider-container.d.ts +7 -0
  727. package/esm/slider/stateful-slider-container.js +11 -0
  728. package/esm/slider/stateful-slider.d.ts +7 -0
  729. package/esm/slider/stateful-slider.js +7 -0
  730. package/esm/slider/styled-components.d.ts +7 -0
  731. package/esm/slider/styled-components.js +90 -0
  732. package/esm/slider/types.d.ts +39 -0
  733. package/esm/slider/types.js +1 -0
  734. package/esm/snackbar/Snackbar.d.ts +4 -0
  735. package/esm/snackbar/Snackbar.js +57 -0
  736. package/esm/snackbar/constants.d.ts +6 -0
  737. package/esm/snackbar/constants.js +14 -0
  738. package/esm/snackbar/index.d.ts +2 -0
  739. package/esm/snackbar/index.js +2 -0
  740. package/esm/snackbar/styled-component.d.ts +8 -0
  741. package/esm/snackbar/styled-component.js +80 -0
  742. package/esm/snackbar/types.d.ts +37 -0
  743. package/esm/snackbar/types.js +1 -0
  744. package/esm/snackbar/useSnackbar.d.ts +24 -0
  745. package/esm/snackbar/useSnackbar.js +89 -0
  746. package/esm/spaceConsumer/SpaceConsumer.d.ts +10 -0
  747. package/esm/spaceConsumer/SpaceConsumer.js +9 -0
  748. package/esm/spaceConsumer/index.d.ts +1 -0
  749. package/esm/spaceConsumer/index.js +1 -0
  750. package/esm/spacewebProvider/CustomBaseProvider.d.ts +17 -0
  751. package/esm/spacewebProvider/CustomBaseProvider.js +14 -0
  752. package/esm/spacewebProvider/DocumentProvider.d.ts +9 -0
  753. package/esm/spacewebProvider/DocumentProvider.js +17 -0
  754. package/esm/spacewebProvider/SpacewebProvider.d.ts +22 -0
  755. package/esm/spacewebProvider/SpacewebProvider.js +34 -0
  756. package/esm/spacewebProvider/index.d.ts +2 -0
  757. package/esm/spacewebProvider/index.js +2 -0
  758. package/esm/spacewebProvider/utils.d.ts +1 -0
  759. package/esm/spacewebProvider/utils.js +2 -0
  760. package/esm/stack/context.d.ts +20 -0
  761. package/esm/stack/context.js +6 -0
  762. package/esm/stack/index.d.ts +3 -0
  763. package/esm/stack/index.js +3 -0
  764. package/esm/stack/stack-item.d.ts +12 -0
  765. package/esm/stack/stack-item.js +23 -0
  766. package/esm/stack/stack.d.ts +32 -0
  767. package/esm/stack/stack.js +58 -0
  768. package/esm/stack/types.d.ts +22 -0
  769. package/esm/stack/types.js +1 -0
  770. package/esm/style/__fixtures__/utilities-dark.fixture.d.ts +4407 -0
  771. package/esm/style/__fixtures__/utilities-dark.fixture.js +4409 -0
  772. package/esm/style/__mocks__/CSS.mock.d.ts +10 -0
  773. package/esm/style/__mocks__/CSS.mock.js +9 -0
  774. package/esm/style/__mocks__/UseStyle.mock.d.ts +10 -0
  775. package/esm/style/__mocks__/UseStyle.mock.js +8 -0
  776. package/esm/style/_buildUtils.d.ts +4 -0
  777. package/esm/style/_buildUtils.js +10 -0
  778. package/esm/style/_css.d.ts +6 -0
  779. package/esm/style/_css.js +18 -0
  780. package/esm/style/_escapeClassName.d.ts +6 -0
  781. package/esm/style/_escapeClassName.js +6 -0
  782. package/esm/style/_getStyle.d.ts +6 -0
  783. package/esm/style/_getStyle.js +15 -0
  784. package/esm/style/_getStyleWithProps.d.ts +6 -0
  785. package/esm/style/_getStyleWithProps.js +15 -0
  786. package/esm/style/_parseStyle.d.ts +19 -0
  787. package/esm/style/_parseStyle.js +68 -0
  788. package/esm/style/_px2rem.d.ts +9 -0
  789. package/esm/style/_px2rem.js +14 -0
  790. package/esm/style/index.d.ts +5 -0
  791. package/esm/style/index.js +5 -0
  792. package/esm/style/styled.d.ts +11 -0
  793. package/esm/style/styled.js +40 -0
  794. package/esm/style/useMemoizedStyletron.d.ts +5 -0
  795. package/esm/style/useMemoizedStyletron.js +14 -0
  796. package/esm/style/useStyle.d.ts +6 -0
  797. package/esm/style/useStyle.js +14 -0
  798. package/esm/styleEngine/index.d.ts +1 -0
  799. package/esm/styleEngine/index.js +1 -0
  800. package/esm/styleEngine/styleEngine.d.ts +19 -0
  801. package/esm/styleEngine/styleEngine.js +94 -0
  802. package/esm/styleEngine/utils.d.ts +0 -0
  803. package/esm/styleEngine/utils.js +0 -0
  804. package/esm/switch/__test__/switch.spec.d.ts +1 -0
  805. package/esm/switch/__test__/switch.spec.js +94 -0
  806. package/esm/switch/basewebAdapter.d.ts +5 -0
  807. package/esm/switch/basewebAdapter.js +18 -0
  808. package/esm/switch/index.d.ts +3 -0
  809. package/esm/switch/index.js +3 -0
  810. package/esm/switch/styled-components.d.ts +5 -0
  811. package/esm/switch/styled-components.js +82 -0
  812. package/esm/switch/switch.d.ts +10 -0
  813. package/esm/switch/switch.js +15 -0
  814. package/esm/switch/types.d.ts +28 -0
  815. package/esm/switch/types.js +1 -0
  816. package/esm/tabs/contexts.d.ts +12 -0
  817. package/esm/tabs/contexts.js +11 -0
  818. package/esm/tabs/helpers.d.ts +5 -0
  819. package/esm/tabs/helpers.js +6 -0
  820. package/esm/tabs/index.d.ts +5 -0
  821. package/esm/tabs/index.js +5 -0
  822. package/esm/tabs/stateful-tabs.d.ts +8 -0
  823. package/esm/tabs/stateful-tabs.js +20 -0
  824. package/esm/tabs/styled-components.d.ts +10 -0
  825. package/esm/tabs/styled-components.js +43 -0
  826. package/esm/tabs/tab-list.d.ts +7 -0
  827. package/esm/tabs/tab-list.js +43 -0
  828. package/esm/tabs/tab.d.ts +7 -0
  829. package/esm/tabs/tab.js +36 -0
  830. package/esm/tabs/tabs-panel.d.ts +7 -0
  831. package/esm/tabs/tabs-panel.js +18 -0
  832. package/esm/tabs/types.d.ts +52 -0
  833. package/esm/tabs/types.js +1 -0
  834. package/esm/tag/avatar-tag.d.ts +4 -0
  835. package/esm/tag/avatar-tag.js +24 -0
  836. package/esm/tag/index.d.ts +4 -0
  837. package/esm/tag/index.js +3 -0
  838. package/esm/tag/intentStyles.d.ts +4 -0
  839. package/esm/tag/intentStyles.js +85 -0
  840. package/esm/tag/styled-components.d.ts +4 -0
  841. package/esm/tag/styled-components.js +46 -0
  842. package/esm/tag/tag.d.ts +4 -0
  843. package/esm/tag/tag.js +55 -0
  844. package/esm/tag/types.d.ts +53 -0
  845. package/esm/tag/types.js +1 -0
  846. package/esm/tag/utils.d.ts +2 -0
  847. package/esm/tag/utils.js +19 -0
  848. package/esm/test-utils/test-provider/TestProvider.d.ts +6 -0
  849. package/esm/test-utils/test-provider/TestProvider.js +14 -0
  850. package/esm/test-utils/test-provider/helpers.d.ts +27 -0
  851. package/esm/test-utils/test-provider/helpers.js +55 -0
  852. package/esm/test-utils/test-provider/index.d.ts +2 -0
  853. package/esm/test-utils/test-provider/index.js +2 -0
  854. package/esm/test-utils/test-provider/testableThemes.d.ts +5 -0
  855. package/esm/test-utils/test-provider/testableThemes.js +9 -0
  856. package/esm/textarea/basewebAdapters.d.ts +3 -0
  857. package/esm/textarea/basewebAdapters.js +32 -0
  858. package/esm/textarea/index.d.ts +3 -0
  859. package/esm/textarea/index.js +3 -0
  860. package/esm/textarea/styled-components.d.ts +11 -0
  861. package/esm/textarea/styled-components.js +14 -0
  862. package/esm/textarea/textarea.d.ts +10 -0
  863. package/esm/textarea/textarea.js +33 -0
  864. package/esm/textarea/types.d.ts +27 -0
  865. package/esm/textarea/types.js +1 -0
  866. package/esm/textarea/useAutoSizeTextarea.d.ts +8 -0
  867. package/esm/textarea/useAutoSizeTextarea.js +14 -0
  868. package/esm/theme/context.d.ts +14 -0
  869. package/esm/theme/context.js +65 -0
  870. package/esm/theme/index.d.ts +2 -0
  871. package/esm/theme/index.js +2 -0
  872. package/esm/theme/types.d.ts +6 -0
  873. package/esm/theme/types.js +1 -0
  874. package/esm/themes/dark-theme.d.ts +6 -0
  875. package/esm/themes/dark-theme.js +9 -0
  876. package/esm/themes/index.d.ts +10 -0
  877. package/esm/themes/index.js +18 -0
  878. package/esm/themes/light-theme.d.ts +6 -0
  879. package/esm/themes/light-theme.js +9 -0
  880. package/esm/themes/responsive-theme.d.ts +20 -0
  881. package/esm/themes/responsive-theme.js +19 -0
  882. package/esm/themes/shared.d.ts +4 -0
  883. package/esm/themes/shared.js +4 -0
  884. package/esm/time-picker/TimePicker.d.ts +8 -0
  885. package/esm/time-picker/TimePicker.js +28 -0
  886. package/esm/time-picker/index.d.ts +2 -0
  887. package/esm/time-picker/index.js +1 -0
  888. package/esm/time-picker/types.d.ts +15 -0
  889. package/esm/time-picker/types.js +1 -0
  890. package/esm/time-range-picker/RangeSelector.d.ts +7 -0
  891. package/esm/time-range-picker/RangeSelector.js +25 -0
  892. package/esm/time-range-picker/RangeSelectorContainer.d.ts +7 -0
  893. package/esm/time-range-picker/RangeSelectorContainer.js +101 -0
  894. package/esm/time-range-picker/TimeRangeList.d.ts +7 -0
  895. package/esm/time-range-picker/TimeRangeList.js +33 -0
  896. package/esm/time-range-picker/TimeRangePicker.d.ts +3 -0
  897. package/esm/time-range-picker/TimeRangePicker.js +186 -0
  898. package/esm/time-range-picker/TimezonePicker.d.ts +5 -0
  899. package/esm/time-range-picker/TimezonePicker.js +41 -0
  900. package/esm/time-range-picker/constants.d.ts +5 -0
  901. package/esm/time-range-picker/constants.js +5 -0
  902. package/esm/time-range-picker/index.d.ts +4 -0
  903. package/esm/time-range-picker/index.js +2 -0
  904. package/esm/time-range-picker/locale.d.ts +41 -0
  905. package/esm/time-range-picker/locale.js +1 -0
  906. package/esm/time-range-picker/styled-component.d.ts +1 -0
  907. package/esm/time-range-picker/styled-component.js +2 -0
  908. package/esm/time-range-picker/types.d.ts +78 -0
  909. package/esm/time-range-picker/types.js +1 -0
  910. package/esm/time-range-picker/utils.d.ts +42 -0
  911. package/esm/time-range-picker/utils.js +411 -0
  912. package/esm/time-zone-picker/TimezonePicker.d.ts +8 -0
  913. package/esm/time-zone-picker/TimezonePicker.js +52 -0
  914. package/esm/time-zone-picker/index.d.ts +2 -0
  915. package/esm/time-zone-picker/index.js +2 -0
  916. package/esm/time-zone-picker/types.d.ts +25 -0
  917. package/esm/time-zone-picker/types.js +1 -0
  918. package/esm/time-zone-picker/utils.d.ts +2 -0
  919. package/esm/time-zone-picker/utils.js +38 -0
  920. package/esm/tooltip/disabled-tooltip-container.d.ts +8 -0
  921. package/esm/tooltip/disabled-tooltip-container.js +63 -0
  922. package/esm/tooltip/index.d.ts +6 -0
  923. package/esm/tooltip/index.js +5 -0
  924. package/esm/tooltip/overrides.d.ts +5 -0
  925. package/esm/tooltip/overrides.js +54 -0
  926. package/esm/tooltip/stateful-tooltip-container.d.ts +8 -0
  927. package/esm/tooltip/stateful-tooltip-container.js +8 -0
  928. package/esm/tooltip/stateful-tooltip.d.ts +8 -0
  929. package/esm/tooltip/stateful-tooltip.js +14 -0
  930. package/esm/tooltip/styled-component.d.ts +2 -0
  931. package/esm/tooltip/styled-component.js +3 -0
  932. package/esm/tooltip/tooltip.d.ts +7 -0
  933. package/esm/tooltip/tooltip.js +46 -0
  934. package/esm/tooltip/types.d.ts +51 -0
  935. package/esm/tooltip/types.js +1 -0
  936. package/esm/types.d.ts +98 -0
  937. package/esm/types.js +2 -0
  938. package/esm/typography/Typography.d.ts +12 -0
  939. package/esm/typography/Typography.js +27 -0
  940. package/esm/typography/constants.d.ts +6 -0
  941. package/esm/typography/constants.js +6 -0
  942. package/esm/typography/index.d.ts +2 -0
  943. package/esm/typography/index.js +1 -0
  944. package/esm/typography/styled-components.d.ts +1 -0
  945. package/esm/typography/styled-components.js +10 -0
  946. package/esm/typography/types.d.ts +9 -0
  947. package/esm/typography/types.js +1 -0
  948. package/esm/utility-types/index.d.ts +1 -0
  949. package/esm/utility-types/index.js +1 -0
  950. package/esm/video/Video.d.ts +15 -0
  951. package/esm/video/Video.js +38 -0
  952. package/esm/video/index.d.ts +2 -0
  953. package/esm/video/index.js +1 -0
  954. package/esm/video/types.d.ts +17 -0
  955. package/esm/video/types.js +1 -0
  956. package/form-control/context.d.ts +22 -0
  957. package/form-control/context.js +23 -0
  958. package/form-control/form-control.d.ts +4 -0
  959. package/form-control/form-control.js +57 -0
  960. package/form-control/index.d.ts +3 -0
  961. package/form-control/index.js +14 -0
  962. package/form-control/package.json +4 -0
  963. package/form-control/styled-component.d.ts +8 -0
  964. package/form-control/styled-component.js +36 -0
  965. package/form-control/types.d.ts +46 -0
  966. package/form-control/types.js +2 -0
  967. package/grid/Col.d.ts +10 -0
  968. package/grid/Col.js +48 -0
  969. package/grid/Grid.d.ts +22 -0
  970. package/grid/Grid.js +62 -0
  971. package/grid/index.d.ts +6 -0
  972. package/grid/index.js +8 -0
  973. package/grid/package.json +4 -0
  974. package/grid/types.d.ts +32 -0
  975. package/grid/types.js +2 -0
  976. package/grid/utils.d.ts +1 -0
  977. package/grid/utils.js +31 -0
  978. package/helpers/ClearIconButton.d.ts +5 -0
  979. package/helpers/ClearIconButton.js +22 -0
  980. package/helpers/baseui/useConvertOverrides.d.ts +15 -0
  981. package/helpers/baseui/useConvertOverrides.js +35 -0
  982. package/helpers/baseui/withThemeOverride.d.ts +9 -0
  983. package/helpers/baseui/withThemeOverride.js +23 -0
  984. package/helpers/commonStyles.d.ts +17 -0
  985. package/helpers/commonStyles.js +54 -0
  986. package/helpers/index.d.ts +25 -0
  987. package/helpers/index.js +72 -0
  988. package/helpers/intentHelper.d.ts +5 -0
  989. package/helpers/intentHelper.js +21 -0
  990. package/helpers/longHandHelpers.d.ts +7 -0
  991. package/helpers/longHandHelpers.js +45 -0
  992. package/helpers/package.json +4 -0
  993. package/helpers/styletron.d.ts +12 -0
  994. package/helpers/styletron.js +16 -0
  995. package/helpers/themeHelpers.d.ts +4 -0
  996. package/helpers/themeHelpers.js +24 -0
  997. package/helpers/typography.d.ts +2 -0
  998. package/helpers/typography.js +10 -0
  999. package/hooks/package.json +4 -0
  1000. package/hooks/useAutoFocus.d.ts +9 -0
  1001. package/hooks/useAutoFocus.js +61 -0
  1002. package/hooks/useCombinedHandler.d.ts +6 -0
  1003. package/hooks/useCombinedHandler.js +22 -0
  1004. package/hooks/useCombinedRef.d.ts +6 -0
  1005. package/hooks/useCombinedRef.js +37 -0
  1006. package/hooks/useDebouncedEventHandler.d.ts +6 -0
  1007. package/hooks/useDebouncedEventHandler.js +38 -0
  1008. package/hooks/useFirstMountState.d.ts +2 -0
  1009. package/hooks/useFirstMountState.js +16 -0
  1010. package/hooks/useFocusVisible.d.ts +5 -0
  1011. package/hooks/useFocusVisible.js +26 -0
  1012. package/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
  1013. package/hooks/useIsomorphicLayoutEffect.js +6 -0
  1014. package/hooks/useLatest.d.ts +4 -0
  1015. package/hooks/useLatest.js +13 -0
  1016. package/hooks/useMeasure.d.ts +6 -0
  1017. package/hooks/useMeasure.js +43 -0
  1018. package/hooks/usePrevious.d.ts +2 -0
  1019. package/hooks/usePrevious.js +13 -0
  1020. package/hooks/useScrollCapture.d.ts +5 -0
  1021. package/hooks/useScrollCapture.js +69 -0
  1022. package/hooks/useStickyElement.d.ts +5 -0
  1023. package/hooks/useStickyElement.js +34 -0
  1024. package/hooks/useTabsKeyboardNavigation.d.ts +14 -0
  1025. package/hooks/useTabsKeyboardNavigation.js +103 -0
  1026. package/hooks/useUniqueId.d.ts +3 -0
  1027. package/hooks/useUniqueId.js +11 -0
  1028. package/hooks/useUpdateEffect.d.ts +3 -0
  1029. package/hooks/useUpdateEffect.js +14 -0
  1030. package/icon/components/alert-solid.d.ts +3 -0
  1031. package/icon/components/alert-solid.js +9 -0
  1032. package/icon/components/alert.d.ts +3 -0
  1033. package/icon/components/alert.js +9 -0
  1034. package/icon/components/calendar-solid.d.ts +3 -0
  1035. package/icon/components/calendar-solid.js +9 -0
  1036. package/icon/components/chevron-down.d.ts +3 -0
  1037. package/icon/components/chevron-down.js +9 -0
  1038. package/icon/components/chevron-right-solid.d.ts +3 -0
  1039. package/icon/components/chevron-right-solid.js +9 -0
  1040. package/icon/components/close.d.ts +3 -0
  1041. package/icon/components/close.js +9 -0
  1042. package/icon/components/error-clr.d.ts +3 -0
  1043. package/icon/components/error-clr.js +9 -0
  1044. package/icon/components/error-solid.d.ts +3 -0
  1045. package/icon/components/error-solid.js +9 -0
  1046. package/icon/components/error.d.ts +3 -0
  1047. package/icon/components/error.js +9 -0
  1048. package/icon/components/imagePreview.d.ts +3 -0
  1049. package/icon/components/imagePreview.js +9 -0
  1050. package/icon/components/info.d.ts +3 -0
  1051. package/icon/components/info.js +9 -0
  1052. package/icon/components/play-video.d.ts +3 -0
  1053. package/icon/components/play-video.js +9 -0
  1054. package/icon/components/search.d.ts +3 -0
  1055. package/icon/components/search.js +9 -0
  1056. package/icon/components/tick.d.ts +3 -0
  1057. package/icon/components/tick.js +9 -0
  1058. package/icon/components/tickCircle-solid.d.ts +3 -0
  1059. package/icon/components/tickCircle-solid.js +9 -0
  1060. package/icon/components/user.d.ts +3 -0
  1061. package/icon/components/user.js +9 -0
  1062. package/icon/components/video-non-playable.d.ts +3 -0
  1063. package/icon/components/video-non-playable.js +9 -0
  1064. package/icon/icon.d.ts +4 -0
  1065. package/icon/icon.js +18 -0
  1066. package/icon/index.d.ts +2 -0
  1067. package/icon/index.js +7 -0
  1068. package/icon/package.json +4 -0
  1069. package/icon/styled-components.d.ts +1 -0
  1070. package/icon/styled-components.js +13 -0
  1071. package/icon/types.d.ts +10 -0
  1072. package/icon/types.js +2 -0
  1073. package/image/Image.d.ts +15 -0
  1074. package/image/Image.js +30 -0
  1075. package/image/defaultFallbackImg.d.ts +4 -0
  1076. package/image/defaultFallbackImg.js +15 -0
  1077. package/image/index.d.ts +2 -0
  1078. package/image/index.js +8 -0
  1079. package/image/package.json +4 -0
  1080. package/image/types.d.ts +27 -0
  1081. package/image/types.js +2 -0
  1082. package/index.d.ts +3 -0
  1083. package/index.js +6 -0
  1084. package/input/basewebAdapters.d.ts +7 -0
  1085. package/input/basewebAdapters.js +47 -0
  1086. package/input/index.d.ts +4 -0
  1087. package/input/index.js +20 -0
  1088. package/input/input.d.ts +14 -0
  1089. package/input/input.js +34 -0
  1090. package/input/package.json +4 -0
  1091. package/input/styled-components.d.ts +6 -0
  1092. package/input/styled-components.js +134 -0
  1093. package/input/types.d.ts +39 -0
  1094. package/input/types.js +2 -0
  1095. package/layer/LayersManager.d.ts +8 -0
  1096. package/layer/LayersManager.js +22 -0
  1097. package/layer/constants.d.ts +6 -0
  1098. package/layer/constants.js +10 -0
  1099. package/layer/index.d.ts +2 -0
  1100. package/layer/index.js +11 -0
  1101. package/layer/package.json +4 -0
  1102. package/layer/useLayersContextValue.d.ts +3 -0
  1103. package/layer/useLayersContextValue.js +56 -0
  1104. package/link/index.d.ts +2 -0
  1105. package/link/index.js +7 -0
  1106. package/link/link.d.ts +11 -0
  1107. package/link/link.js +14 -0
  1108. package/link/package.json +4 -0
  1109. package/link/styled-components.d.ts +3 -0
  1110. package/link/styled-components.js +22 -0
  1111. package/link/types.d.ts +4 -0
  1112. package/link/types.js +2 -0
  1113. package/list/avatar-list-item.d.ts +33 -0
  1114. package/list/avatar-list-item.js +20 -0
  1115. package/list/divider.d.ts +13 -0
  1116. package/list/divider.js +17 -0
  1117. package/list/index.d.ts +7 -0
  1118. package/list/index.js +22 -0
  1119. package/list/list-item-text.d.ts +4 -0
  1120. package/list/list-item-text.js +14 -0
  1121. package/list/list-item.d.ts +25 -0
  1122. package/list/list-item.js +53 -0
  1123. package/list/list.d.ts +12 -0
  1124. package/list/list.js +14 -0
  1125. package/list/package.json +4 -0
  1126. package/list/styled-component.d.ts +9 -0
  1127. package/list/styled-component.js +78 -0
  1128. package/list/types.d.ts +57 -0
  1129. package/list/types.js +2 -0
  1130. package/loader/index.d.ts +3 -0
  1131. package/loader/index.js +12 -0
  1132. package/loader/loader.d.ts +6 -0
  1133. package/loader/loader.js +41 -0
  1134. package/loader/package.json +4 -0
  1135. package/loader/styled-component.d.ts +4 -0
  1136. package/loader/styled-component.js +61 -0
  1137. package/loader/types.d.ts +23 -0
  1138. package/loader/types.js +2 -0
  1139. package/locale/context.d.ts +16 -0
  1140. package/locale/context.js +22 -0
  1141. package/locale/en_US.d.ts +2 -0
  1142. package/locale/en_US.js +71 -0
  1143. package/locale/index.d.ts +3 -0
  1144. package/locale/index.js +9 -0
  1145. package/locale/package.json +4 -0
  1146. package/locale/types.d.ts +21 -0
  1147. package/locale/types.js +2 -0
  1148. package/menu/MenuContext.d.ts +11 -0
  1149. package/menu/MenuContext.js +14 -0
  1150. package/menu/helpers.d.ts +12 -0
  1151. package/menu/helpers.js +83 -0
  1152. package/menu/index.d.ts +4 -0
  1153. package/menu/index.js +12 -0
  1154. package/menu/menu-item.d.ts +45 -0
  1155. package/menu/menu-item.js +82 -0
  1156. package/menu/menu.d.ts +25 -0
  1157. package/menu/menu.js +58 -0
  1158. package/menu/nested-menu-context.d.ts +23 -0
  1159. package/menu/nested-menu-context.js +72 -0
  1160. package/menu/package.json +4 -0
  1161. package/menu/types.d.ts +72 -0
  1162. package/menu/types.js +2 -0
  1163. package/menu/useItemContainerEventHandlers.d.ts +13 -0
  1164. package/menu/useItemContainerEventHandlers.js +35 -0
  1165. package/menu/useKeyboardNavigation.d.ts +23 -0
  1166. package/menu/useKeyboardNavigation.js +127 -0
  1167. package/menu/useStatefulMenu.d.ts +20 -0
  1168. package/menu/useStatefulMenu.js +69 -0
  1169. package/modal/adapter.d.ts +6 -0
  1170. package/modal/adapter.js +22 -0
  1171. package/modal/index.d.ts +7 -0
  1172. package/modal/index.js +24 -0
  1173. package/modal/modal-footer.d.ts +7 -0
  1174. package/modal/modal-footer.js +12 -0
  1175. package/modal/modal-header.d.ts +7 -0
  1176. package/modal/modal-header.js +13 -0
  1177. package/modal/modal.d.ts +7 -0
  1178. package/modal/modal.js +36 -0
  1179. package/modal/overrides.d.ts +9 -0
  1180. package/modal/overrides.js +71 -0
  1181. package/modal/package.json +4 -0
  1182. package/modal/styled-components.d.ts +7 -0
  1183. package/modal/styled-components.js +40 -0
  1184. package/modal/types.d.ts +24 -0
  1185. package/modal/types.js +5 -0
  1186. package/overrides/index.d.ts +3 -0
  1187. package/overrides/index.js +10 -0
  1188. package/overrides/mergeOverrides.d.ts +3 -0
  1189. package/overrides/mergeOverrides.js +45 -0
  1190. package/overrides/package.json +4 -0
  1191. package/overrides/types.d.ts +22 -0
  1192. package/overrides/types.js +5 -0
  1193. package/overrides/useOverrides.d.ts +8 -0
  1194. package/overrides/useOverrides.js +18 -0
  1195. package/package.json +102 -0
  1196. package/payment-card/basewebAdapters.d.ts +7 -0
  1197. package/payment-card/basewebAdapters.js +24 -0
  1198. package/payment-card/index.d.ts +3 -0
  1199. package/payment-card/index.js +11 -0
  1200. package/payment-card/package.json +4 -0
  1201. package/payment-card/paymentCard.d.ts +10 -0
  1202. package/payment-card/paymentCard.js +26 -0
  1203. package/payment-card/styled-components.d.ts +3 -0
  1204. package/payment-card/styled-components.js +16 -0
  1205. package/payment-card/types.d.ts +17 -0
  1206. package/payment-card/types.js +2 -0
  1207. package/phone-input/constants.d.ts +2299 -0
  1208. package/phone-input/constants.js +330 -0
  1209. package/phone-input/country-select-container.d.ts +6 -0
  1210. package/phone-input/country-select-container.js +17 -0
  1211. package/phone-input/country-select.d.ts +8 -0
  1212. package/phone-input/country-select.js +93 -0
  1213. package/phone-input/default-props.d.ts +23 -0
  1214. package/phone-input/default-props.js +27 -0
  1215. package/phone-input/dial-code.d.ts +4 -0
  1216. package/phone-input/dial-code.js +14 -0
  1217. package/phone-input/flag-container.d.ts +5 -0
  1218. package/phone-input/flag-container.js +20 -0
  1219. package/phone-input/index.d.ts +6 -0
  1220. package/phone-input/index.js +12 -0
  1221. package/phone-input/locale.d.ts +5 -0
  1222. package/phone-input/locale.js +2 -0
  1223. package/phone-input/package.json +4 -0
  1224. package/phone-input/phone-input.d.ts +25 -0
  1225. package/phone-input/phone-input.js +59 -0
  1226. package/phone-input/stateful-phone-input-container.d.ts +4 -0
  1227. package/phone-input/stateful-phone-input-container.js +21 -0
  1228. package/phone-input/stateful-phone-input.d.ts +25 -0
  1229. package/phone-input/stateful-phone-input.js +13 -0
  1230. package/phone-input/styled-components.d.ts +13 -0
  1231. package/phone-input/styled-components.js +39 -0
  1232. package/phone-input/types.d.ts +63 -0
  1233. package/phone-input/types.js +2 -0
  1234. package/phone-input/utils.d.ts +6 -0
  1235. package/phone-input/utils.js +34 -0
  1236. package/phone-input/virtualized-country-select-dropdown.d.ts +31 -0
  1237. package/phone-input/virtualized-country-select-dropdown.js +35 -0
  1238. package/popover/PopoverEnahncer.d.ts +15 -0
  1239. package/popover/PopoverEnahncer.js +60 -0
  1240. package/popover/adapter.d.ts +6 -0
  1241. package/popover/adapter.js +28 -0
  1242. package/popover/constants.d.ts +3 -0
  1243. package/popover/constants.js +11 -0
  1244. package/popover/hooks.d.ts +14 -0
  1245. package/popover/hooks.js +30 -0
  1246. package/popover/index.d.ts +6 -0
  1247. package/popover/index.js +21 -0
  1248. package/popover/overrides.d.ts +8 -0
  1249. package/popover/overrides.js +74 -0
  1250. package/popover/package.json +4 -0
  1251. package/popover/popover.d.ts +16 -0
  1252. package/popover/popover.js +41 -0
  1253. package/popover/stateful-popover.d.ts +7 -0
  1254. package/popover/stateful-popover.js +25 -0
  1255. package/popover/styled-components.d.ts +2 -0
  1256. package/popover/styled-components.js +23 -0
  1257. package/popover/types.d.ts +32 -0
  1258. package/popover/types.js +10 -0
  1259. package/popover/useFoucsLock.d.ts +6 -0
  1260. package/popover/useFoucsLock.js +13 -0
  1261. package/popover/utils.d.ts +14 -0
  1262. package/popover/utils.js +32 -0
  1263. package/progress/circular/CircularProgress.d.ts +4 -0
  1264. package/progress/circular/CircularProgress.js +21 -0
  1265. package/progress/circular/index.d.ts +3 -0
  1266. package/progress/circular/index.js +5 -0
  1267. package/progress/circular/styled-component.d.ts +15 -0
  1268. package/progress/circular/styled-component.js +102 -0
  1269. package/progress/circular/types.d.ts +22 -0
  1270. package/progress/circular/types.js +2 -0
  1271. package/progress/helper.d.ts +3 -0
  1272. package/progress/helper.js +17 -0
  1273. package/progress/index.d.ts +6 -0
  1274. package/progress/index.js +13 -0
  1275. package/progress/linear/LinearProgress.d.ts +4 -0
  1276. package/progress/linear/LinearProgress.js +17 -0
  1277. package/progress/linear/ProgressSegment.d.ts +9 -0
  1278. package/progress/linear/ProgressSegment.js +16 -0
  1279. package/progress/linear/index.d.ts +4 -0
  1280. package/progress/linear/index.js +9 -0
  1281. package/progress/linear/styled-component.d.ts +14 -0
  1282. package/progress/linear/styled-component.js +72 -0
  1283. package/progress/linear/types.d.ts +20 -0
  1284. package/progress/linear/types.js +2 -0
  1285. package/progress/package.json +4 -0
  1286. package/progress/types.d.ts +18 -0
  1287. package/progress/types.js +2 -0
  1288. package/radio/basewebAdapters.d.ts +16 -0
  1289. package/radio/basewebAdapters.js +51 -0
  1290. package/radio/index.d.ts +3 -0
  1291. package/radio/index.js +19 -0
  1292. package/radio/package.json +4 -0
  1293. package/radio/radio.d.ts +10 -0
  1294. package/radio/radio.js +28 -0
  1295. package/radio/styled-components.d.ts +7 -0
  1296. package/radio/styled-components.js +145 -0
  1297. package/radio/types.d.ts +37 -0
  1298. package/radio/types.js +2 -0
  1299. package/search/index.d.ts +2 -0
  1300. package/search/index.js +7 -0
  1301. package/search/package.json +4 -0
  1302. package/search/search.d.ts +8 -0
  1303. package/search/search.js +71 -0
  1304. package/search/styled-components.d.ts +13 -0
  1305. package/search/styled-components.js +80 -0
  1306. package/search/types.d.ts +19 -0
  1307. package/search/types.js +2 -0
  1308. package/select/adaptor.d.ts +4 -0
  1309. package/select/adaptor.js +8 -0
  1310. package/select/base-select.d.ts +63 -0
  1311. package/select/base-select.js +258 -0
  1312. package/select/constants.d.ts +7 -0
  1313. package/select/constants.js +7 -0
  1314. package/select/default-props.d.ts +38 -0
  1315. package/select/default-props.js +42 -0
  1316. package/select/index.d.ts +15 -0
  1317. package/select/index.js +47 -0
  1318. package/select/locale.d.ts +4 -0
  1319. package/select/locale.js +2 -0
  1320. package/select/mobileSelect/AdaptedCSSTransition/AdaptedCSSTransition.d.ts +8 -0
  1321. package/select/mobileSelect/AdaptedCSSTransition/AdaptedCSSTransition.js +14 -0
  1322. package/select/mobileSelect/AdaptedCSSTransition/constants.d.ts +8 -0
  1323. package/select/mobileSelect/AdaptedCSSTransition/constants.js +11 -0
  1324. package/select/mobileSelect/AdaptedCSSTransition/index.d.ts +1 -0
  1325. package/select/mobileSelect/AdaptedCSSTransition/index.js +5 -0
  1326. package/select/mobileSelect/AdaptedCSSTransition/types.d.ts +2 -0
  1327. package/select/mobileSelect/AdaptedCSSTransition/types.js +2 -0
  1328. package/select/mobileSelect/Backdrop.d.ts +6 -0
  1329. package/select/mobileSelect/Backdrop.js +13 -0
  1330. package/select/mobileSelect/MobileSelect.d.ts +3 -0
  1331. package/select/mobileSelect/MobileSelect.js +23 -0
  1332. package/select/mobileSelect/MobileSheet.d.ts +21 -0
  1333. package/select/mobileSelect/MobileSheet.js +51 -0
  1334. package/select/mobileSelect/SwipeableTargetArea.d.ts +6 -0
  1335. package/select/mobileSelect/SwipeableTargetArea.js +14 -0
  1336. package/select/mobileSelect/hooks/useKeyboardViewportShiftOffset.d.ts +4 -0
  1337. package/select/mobileSelect/hooks/useKeyboardViewportShiftOffset.js +24 -0
  1338. package/select/mobileSelect/hooks/usePauseBodyScrollEffect.d.ts +5 -0
  1339. package/select/mobileSelect/hooks/usePauseBodyScrollEffect.js +19 -0
  1340. package/select/mobileSelect/hooks/useSwipeableSheetStyles.d.ts +13 -0
  1341. package/select/mobileSelect/hooks/useSwipeableSheetStyles.js +57 -0
  1342. package/select/mobileSelect/hooks/useTransitionStyles.d.ts +2 -0
  1343. package/select/mobileSelect/hooks/useTransitionStyles.js +29 -0
  1344. package/select/mobileSelect/index.d.ts +2 -0
  1345. package/select/mobileSelect/index.js +7 -0
  1346. package/select/mobileSelect/overrides.d.ts +9 -0
  1347. package/select/mobileSelect/overrides.js +75 -0
  1348. package/select/multi-value.d.ts +3 -0
  1349. package/select/multi-value.js +29 -0
  1350. package/select/overlaySelect/OverlaySelect.d.ts +3 -0
  1351. package/select/overlaySelect/OverlaySelect.js +64 -0
  1352. package/select/overlaySelect/index.d.ts +1 -0
  1353. package/select/overlaySelect/index.js +8 -0
  1354. package/select/overlaySelect/useOverlaySelectOverrides.d.ts +14 -0
  1355. package/select/overlaySelect/useOverlaySelectOverrides.js +206 -0
  1356. package/select/overlaySelect/usePopover.d.ts +8 -0
  1357. package/select/overlaySelect/usePopover.js +29 -0
  1358. package/select/overrides.d.ts +56 -0
  1359. package/select/overrides.js +133 -0
  1360. package/select/package.json +4 -0
  1361. package/select/select-variants.d.ts +4 -0
  1362. package/select/select-variants.js +14 -0
  1363. package/select/select.d.ts +42 -0
  1364. package/select/select.js +22 -0
  1365. package/select/selectMenuAdapter/SelectMenuAdapter.d.ts +34 -0
  1366. package/select/selectMenuAdapter/SelectMenuAdapter.js +74 -0
  1367. package/select/selectMenuAdapter/SelectMenuItem.d.ts +57 -0
  1368. package/select/selectMenuAdapter/SelectMenuItem.js +39 -0
  1369. package/select/selectMenuAdapter/index.d.ts +2 -0
  1370. package/select/selectMenuAdapter/index.js +5 -0
  1371. package/select/stateful-select.d.ts +42 -0
  1372. package/select/stateful-select.js +16 -0
  1373. package/select/styled-component.d.ts +18 -0
  1374. package/select/styled-component.js +74 -0
  1375. package/select/types.d.ts +91 -0
  1376. package/select/types.js +4 -0
  1377. package/select/utils/default-filter-options.d.ts +1 -0
  1378. package/select/utils/default-filter-options.js +9 -0
  1379. package/setupTests.d.ts +1 -0
  1380. package/setupTests.js +24 -0
  1381. package/slider/index.d.ts +4 -0
  1382. package/slider/index.js +11 -0
  1383. package/slider/mark.d.ts +21 -0
  1384. package/slider/mark.js +13 -0
  1385. package/slider/package.json +4 -0
  1386. package/slider/slider.d.ts +7 -0
  1387. package/slider/slider.js +75 -0
  1388. package/slider/stateful-slider-container.d.ts +7 -0
  1389. package/slider/stateful-slider-container.js +13 -0
  1390. package/slider/stateful-slider.d.ts +7 -0
  1391. package/slider/stateful-slider.js +9 -0
  1392. package/slider/styled-components.d.ts +7 -0
  1393. package/slider/styled-components.js +93 -0
  1394. package/slider/types.d.ts +39 -0
  1395. package/slider/types.js +2 -0
  1396. package/snackbar/Snackbar.d.ts +4 -0
  1397. package/snackbar/Snackbar.js +59 -0
  1398. package/snackbar/constants.d.ts +6 -0
  1399. package/snackbar/constants.js +18 -0
  1400. package/snackbar/index.d.ts +2 -0
  1401. package/snackbar/index.js +7 -0
  1402. package/snackbar/package.json +4 -0
  1403. package/snackbar/styled-component.d.ts +8 -0
  1404. package/snackbar/styled-component.js +84 -0
  1405. package/snackbar/types.d.ts +37 -0
  1406. package/snackbar/types.js +2 -0
  1407. package/snackbar/useSnackbar.d.ts +24 -0
  1408. package/snackbar/useSnackbar.js +91 -0
  1409. package/spaceConsumer/SpaceConsumer.d.ts +10 -0
  1410. package/spaceConsumer/SpaceConsumer.js +12 -0
  1411. package/spaceConsumer/index.d.ts +1 -0
  1412. package/spaceConsumer/index.js +8 -0
  1413. package/spaceConsumer/package.json +4 -0
  1414. package/spacewebProvider/CustomBaseProvider.d.ts +17 -0
  1415. package/spacewebProvider/CustomBaseProvider.js +16 -0
  1416. package/spacewebProvider/DocumentProvider.d.ts +9 -0
  1417. package/spacewebProvider/DocumentProvider.js +22 -0
  1418. package/spacewebProvider/SpacewebProvider.d.ts +22 -0
  1419. package/spacewebProvider/SpacewebProvider.js +36 -0
  1420. package/spacewebProvider/index.d.ts +2 -0
  1421. package/spacewebProvider/index.js +7 -0
  1422. package/spacewebProvider/package.json +4 -0
  1423. package/spacewebProvider/utils.d.ts +1 -0
  1424. package/spacewebProvider/utils.js +5 -0
  1425. package/stack/context.d.ts +20 -0
  1426. package/stack/context.js +10 -0
  1427. package/stack/index.d.ts +3 -0
  1428. package/stack/index.js +9 -0
  1429. package/stack/package.json +4 -0
  1430. package/stack/stack-item.d.ts +12 -0
  1431. package/stack/stack-item.js +25 -0
  1432. package/stack/stack.d.ts +32 -0
  1433. package/stack/stack.js +60 -0
  1434. package/stack/types.d.ts +22 -0
  1435. package/stack/types.js +2 -0
  1436. package/style/__fixtures__/utilities-dark.fixture.d.ts +4407 -0
  1437. package/style/__fixtures__/utilities-dark.fixture.js +4409 -0
  1438. package/style/__mocks__/CSS.mock.d.ts +10 -0
  1439. package/style/__mocks__/CSS.mock.js +11 -0
  1440. package/style/__mocks__/UseStyle.mock.d.ts +10 -0
  1441. package/style/__mocks__/UseStyle.mock.js +11 -0
  1442. package/style/_buildUtils.d.ts +4 -0
  1443. package/style/_buildUtils.js +12 -0
  1444. package/style/_css.d.ts +6 -0
  1445. package/style/_css.js +20 -0
  1446. package/style/_escapeClassName.d.ts +6 -0
  1447. package/style/_escapeClassName.js +9 -0
  1448. package/style/_getStyle.d.ts +6 -0
  1449. package/style/_getStyle.js +17 -0
  1450. package/style/_getStyleWithProps.d.ts +6 -0
  1451. package/style/_getStyleWithProps.js +17 -0
  1452. package/style/_parseStyle.d.ts +19 -0
  1453. package/style/_parseStyle.js +71 -0
  1454. package/style/_px2rem.d.ts +9 -0
  1455. package/style/_px2rem.js +16 -0
  1456. package/style/index.d.ts +5 -0
  1457. package/style/index.js +13 -0
  1458. package/style/package.json +4 -0
  1459. package/style/styled.d.ts +11 -0
  1460. package/style/styled.js +42 -0
  1461. package/style/useMemoizedStyletron.d.ts +5 -0
  1462. package/style/useMemoizedStyletron.js +16 -0
  1463. package/style/useStyle.d.ts +6 -0
  1464. package/style/useStyle.js +16 -0
  1465. package/styleEngine/index.d.ts +1 -0
  1466. package/styleEngine/index.js +4 -0
  1467. package/styleEngine/package.json +4 -0
  1468. package/styleEngine/styleEngine.d.ts +19 -0
  1469. package/styleEngine/styleEngine.js +103 -0
  1470. package/styleEngine/utils.d.ts +0 -0
  1471. package/styleEngine/utils.js +0 -0
  1472. package/switch/__test__/switch.spec.d.ts +1 -0
  1473. package/switch/__test__/switch.spec.js +96 -0
  1474. package/switch/basewebAdapter.d.ts +5 -0
  1475. package/switch/basewebAdapter.js +22 -0
  1476. package/switch/index.d.ts +3 -0
  1477. package/switch/index.js +15 -0
  1478. package/switch/package.json +4 -0
  1479. package/switch/styled-components.d.ts +5 -0
  1480. package/switch/styled-components.js +88 -0
  1481. package/switch/switch.d.ts +10 -0
  1482. package/switch/switch.js +20 -0
  1483. package/switch/types.d.ts +28 -0
  1484. package/switch/types.js +2 -0
  1485. package/tabs/contexts.d.ts +12 -0
  1486. package/tabs/contexts.js +17 -0
  1487. package/tabs/helpers.d.ts +5 -0
  1488. package/tabs/helpers.js +11 -0
  1489. package/tabs/index.d.ts +5 -0
  1490. package/tabs/index.js +13 -0
  1491. package/tabs/package.json +4 -0
  1492. package/tabs/stateful-tabs.d.ts +8 -0
  1493. package/tabs/stateful-tabs.js +22 -0
  1494. package/tabs/styled-components.d.ts +10 -0
  1495. package/tabs/styled-components.js +49 -0
  1496. package/tabs/tab-list.d.ts +7 -0
  1497. package/tabs/tab-list.js +47 -0
  1498. package/tabs/tab.d.ts +7 -0
  1499. package/tabs/tab.js +38 -0
  1500. package/tabs/tabs-panel.d.ts +7 -0
  1501. package/tabs/tabs-panel.js +20 -0
  1502. package/tabs/types.d.ts +52 -0
  1503. package/tabs/types.js +2 -0
  1504. package/tag/avatar-tag.d.ts +4 -0
  1505. package/tag/avatar-tag.js +26 -0
  1506. package/tag/index.d.ts +4 -0
  1507. package/tag/index.js +15 -0
  1508. package/tag/intentStyles.d.ts +4 -0
  1509. package/tag/intentStyles.js +89 -0
  1510. package/tag/package.json +4 -0
  1511. package/tag/styled-components.d.ts +4 -0
  1512. package/tag/styled-components.js +49 -0
  1513. package/tag/tag.d.ts +4 -0
  1514. package/tag/tag.js +57 -0
  1515. package/tag/types.d.ts +53 -0
  1516. package/tag/types.js +2 -0
  1517. package/tag/utils.d.ts +2 -0
  1518. package/tag/utils.js +24 -0
  1519. package/test-utils/package.json +4 -0
  1520. package/test-utils/test-provider/TestProvider.d.ts +6 -0
  1521. package/test-utils/test-provider/TestProvider.js +16 -0
  1522. package/test-utils/test-provider/helpers.d.ts +27 -0
  1523. package/test-utils/test-provider/helpers.js +66 -0
  1524. package/test-utils/test-provider/index.d.ts +2 -0
  1525. package/test-utils/test-provider/index.js +16 -0
  1526. package/test-utils/test-provider/testableThemes.d.ts +5 -0
  1527. package/test-utils/test-provider/testableThemes.js +13 -0
  1528. package/textarea/basewebAdapters.d.ts +3 -0
  1529. package/textarea/basewebAdapters.js +34 -0
  1530. package/textarea/index.d.ts +3 -0
  1531. package/textarea/index.js +13 -0
  1532. package/textarea/package.json +4 -0
  1533. package/textarea/styled-components.d.ts +11 -0
  1534. package/textarea/styled-components.js +17 -0
  1535. package/textarea/textarea.d.ts +10 -0
  1536. package/textarea/textarea.js +38 -0
  1537. package/textarea/types.d.ts +27 -0
  1538. package/textarea/types.js +2 -0
  1539. package/textarea/useAutoSizeTextarea.d.ts +8 -0
  1540. package/textarea/useAutoSizeTextarea.js +16 -0
  1541. package/theme/context.d.ts +14 -0
  1542. package/theme/context.js +70 -0
  1543. package/theme/index.d.ts +2 -0
  1544. package/theme/index.js +5 -0
  1545. package/theme/package.json +4 -0
  1546. package/theme/types.d.ts +6 -0
  1547. package/theme/types.js +2 -0
  1548. package/themes/dark-theme.d.ts +6 -0
  1549. package/themes/dark-theme.js +12 -0
  1550. package/themes/index.d.ts +10 -0
  1551. package/themes/index.js +23 -0
  1552. package/themes/light-theme.d.ts +6 -0
  1553. package/themes/light-theme.js +12 -0
  1554. package/themes/package.json +4 -0
  1555. package/themes/responsive-theme.d.ts +20 -0
  1556. package/themes/responsive-theme.js +23 -0
  1557. package/themes/shared.d.ts +4 -0
  1558. package/themes/shared.js +7 -0
  1559. package/time-picker/TimePicker.d.ts +8 -0
  1560. package/time-picker/TimePicker.js +32 -0
  1561. package/time-picker/index.d.ts +2 -0
  1562. package/time-picker/index.js +5 -0
  1563. package/time-picker/package.json +4 -0
  1564. package/time-picker/types.d.ts +15 -0
  1565. package/time-picker/types.js +2 -0
  1566. package/time-range-picker/RangeSelector.d.ts +7 -0
  1567. package/time-range-picker/RangeSelector.js +27 -0
  1568. package/time-range-picker/RangeSelectorContainer.d.ts +7 -0
  1569. package/time-range-picker/RangeSelectorContainer.js +103 -0
  1570. package/time-range-picker/TimeRangeList.d.ts +7 -0
  1571. package/time-range-picker/TimeRangeList.js +35 -0
  1572. package/time-range-picker/TimeRangePicker.d.ts +3 -0
  1573. package/time-range-picker/TimeRangePicker.js +190 -0
  1574. package/time-range-picker/TimezonePicker.d.ts +5 -0
  1575. package/time-range-picker/TimezonePicker.js +45 -0
  1576. package/time-range-picker/constants.d.ts +5 -0
  1577. package/time-range-picker/constants.js +8 -0
  1578. package/time-range-picker/index.d.ts +4 -0
  1579. package/time-range-picker/index.js +8 -0
  1580. package/time-range-picker/locale.d.ts +41 -0
  1581. package/time-range-picker/locale.js +2 -0
  1582. package/time-range-picker/package.json +4 -0
  1583. package/time-range-picker/styled-component.d.ts +1 -0
  1584. package/time-range-picker/styled-component.js +6 -0
  1585. package/time-range-picker/types.d.ts +78 -0
  1586. package/time-range-picker/types.js +2 -0
  1587. package/time-range-picker/utils.d.ts +42 -0
  1588. package/time-range-picker/utils.js +424 -0
  1589. package/time-zone-picker/TimezonePicker.d.ts +8 -0
  1590. package/time-zone-picker/TimezonePicker.js +56 -0
  1591. package/time-zone-picker/index.d.ts +2 -0
  1592. package/time-zone-picker/index.js +7 -0
  1593. package/time-zone-picker/package.json +4 -0
  1594. package/time-zone-picker/types.d.ts +25 -0
  1595. package/time-zone-picker/types.js +2 -0
  1596. package/time-zone-picker/utils.d.ts +2 -0
  1597. package/time-zone-picker/utils.js +42 -0
  1598. package/tooltip/disabled-tooltip-container.d.ts +8 -0
  1599. package/tooltip/disabled-tooltip-container.js +65 -0
  1600. package/tooltip/index.d.ts +6 -0
  1601. package/tooltip/index.js +18 -0
  1602. package/tooltip/overrides.d.ts +5 -0
  1603. package/tooltip/overrides.js +59 -0
  1604. package/tooltip/package.json +4 -0
  1605. package/tooltip/stateful-tooltip-container.d.ts +8 -0
  1606. package/tooltip/stateful-tooltip-container.js +10 -0
  1607. package/tooltip/stateful-tooltip.d.ts +8 -0
  1608. package/tooltip/stateful-tooltip.js +16 -0
  1609. package/tooltip/styled-component.d.ts +2 -0
  1610. package/tooltip/styled-component.js +10 -0
  1611. package/tooltip/tooltip.d.ts +7 -0
  1612. package/tooltip/tooltip.js +48 -0
  1613. package/tooltip/types.d.ts +51 -0
  1614. package/tooltip/types.js +2 -0
  1615. package/tsconfig.tsbuildinfo +1 -0
  1616. package/types.d.ts +98 -0
  1617. package/types.js +3 -0
  1618. package/typography/Typography.d.ts +12 -0
  1619. package/typography/Typography.js +29 -0
  1620. package/typography/constants.d.ts +6 -0
  1621. package/typography/constants.js +9 -0
  1622. package/typography/index.d.ts +2 -0
  1623. package/typography/index.js +8 -0
  1624. package/typography/package.json +4 -0
  1625. package/typography/styled-components.d.ts +1 -0
  1626. package/typography/styled-components.js +13 -0
  1627. package/typography/types.d.ts +9 -0
  1628. package/typography/types.js +2 -0
  1629. package/utility-types/index.d.ts +1 -0
  1630. package/utility-types/index.js +2 -0
  1631. package/utility-types/package.json +4 -0
  1632. package/video/Video.d.ts +15 -0
  1633. package/video/Video.js +40 -0
  1634. package/video/index.d.ts +2 -0
  1635. package/video/index.js +8 -0
  1636. package/video/package.json +4 -0
  1637. package/video/types.d.ts +17 -0
  1638. package/video/types.js +2 -0
@@ -0,0 +1,46 @@
1
+ import { __assign } from "tslib";
2
+ import { borderRadius as borderRadiusLonghand, borderStyle, borderColor, borderWidth, margin, } from '../helpers/longHandHelpers';
3
+ import { getComponentSizeTheme, getComponentTheme } from '../helpers/themeHelpers';
4
+ import { getFocusVisibleStyles } from '../helpers/commonStyles';
5
+ import { styled } from '../style';
6
+ import { getIntentStyles } from './intentStyles';
7
+ export var StyledStartEnhancer = styled('div', 'inline-flex items-center', function (_a) {
8
+ var px2rem = _a.px2rem;
9
+ return ({
10
+ marginRight: px2rem(6),
11
+ });
12
+ });
13
+ export var StyledRoot = styled('span', 'inline-flex items-center box-border', function (utils, _a) {
14
+ var _b;
15
+ var $withStartEnhancer = _a.$withStartEnhancer, $size = _a.$size, $closeable = _a.$closeable, $intent = _a.$intent, $variant = _a.$variant, $clickable = _a.$clickable, $isFocusVisible = _a.$isFocusVisible;
16
+ var direction = utils.direction, theme = utils.theme, px2rem = utils.px2rem;
17
+ var paddingStartDir = direction === 'rtl' ? 'paddingRight' : 'paddingLeft';
18
+ var paddingEndDir = direction === 'rtl' ? 'paddingLeft' : 'paddingRight';
19
+ var borderRadius = getComponentTheme(theme, 'tag').borderRadius;
20
+ var height = getComponentSizeTheme(theme, 'tag', $size, 'lg').height;
21
+ var paddingStart = $size === 'sm' ? px2rem(10) : theme.padding['3'];
22
+ if ($withStartEnhancer)
23
+ paddingStart = theme.padding['1'];
24
+ var paddingEnd = $closeable ? '0' : paddingStart;
25
+ var typographyStyles = $intent === 'default'
26
+ ? __assign(__assign({}, theme.typography.l2), { fontWeight: theme.fontWeight.normal }) : __assign(__assign({}, theme.typography.l2), { fontWeight: theme.fontWeight.semibold });
27
+ var hoverStyles = __assign({ boxShadow: 'inset 0px 0px 100px rgba(0, 0, 0, 0.08)' }, borderColor(theme.spr.border06));
28
+ var activeStyles = __assign({}, borderColor(theme.spr.interactive01));
29
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign((_b = { height: height }, _b[paddingStartDir] = paddingStart, _b[paddingEndDir] = paddingEnd, _b.maxWidth = 'none', _b), typographyStyles), margin(0)), borderStyle('solid')), borderColor(theme.borderColor.transparent)), borderWidth('1px')), borderRadiusLonghand(borderRadius)), getIntentStyles(theme, $intent, $variant)), ($clickable && __assign({ cursor: 'pointer',
30
+ // temporary boxShadow onHover
31
+ ':hover': hoverStyles, ':active': activeStyles }, getFocusVisibleStyles(utils)))), { ':focus': __assign({}, ($isFocusVisible && hoverStyles)) });
32
+ });
33
+ export var StyledAction = styled('span', 'cursor-pointer inline-flex items-center justify-center pl-2 pr-2', function (_a) {
34
+ var _b;
35
+ var px2rem = _a.px2rem, direction = _a.direction;
36
+ var marginStartDir = direction === 'rtl' ? 'marginRight' : 'marginLeft';
37
+ return _b = {},
38
+ _b[marginStartDir] = px2rem(6),
39
+ _b;
40
+ });
41
+ export var StyledText = styled('span', 'truncate', function (_a) {
42
+ var px2rem = _a.px2rem;
43
+ return ({
44
+ maxWidth: px2rem(128),
45
+ });
46
+ });
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { TagProps } from './types';
3
+ declare const Tag: import("react").ForwardRefExoticComponent<TagProps & import("react").RefAttributes<HTMLElement>>;
4
+ export default Tag;
package/esm/tag/tag.js ADDED
@@ -0,0 +1,55 @@
1
+ import { __assign, __read, __rest } from "tslib";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { forwardRef, useCallback } from 'react';
4
+ import { IconButton } from '../button';
5
+ import { getComponentTheme } from '../helpers/themeHelpers';
6
+ import { useFocusVisible } from '../hooks/useFocusVisible';
7
+ import CloseIcon from '../icon/components/close';
8
+ import { useOverrides } from '../overrides';
9
+ import { useStyle } from '../style';
10
+ import { StyledAction, StyledRoot, StyledStartEnhancer, StyledText } from './styled-components';
11
+ import { getTextFromChildren } from './utils';
12
+ var Tag = forwardRef(function (props, ref) {
13
+ var children = props.children, _a = props.closeable, closeable = _a === void 0 ? true : _a, _b = props.size, size = _b === void 0 ? 'lg' : _b, _c = props.isFocused, isFocused = _c === void 0 ? false : _c, _d = props.isHovered, isHovered = _d === void 0 ? false : _d, onActionClick = props.onActionClick, onActionKeyDown = props.onActionKeyDown, _e = props.onClick, onClick = _e === void 0 ? null : _e, _f = props.onKeyDown, onKeyDown = _f === void 0 ? null : _f, overrides = props.overrides, title = props.title, _g = props.variant, variant = _g === void 0 ? 'light' : _g, _h = props.intent, intent = _h === void 0 ? 'default' : _h, className = props.className, startEnhancer = props.startEnhancer, restProps = __rest(props, ["children", "closeable", "size", "isFocused", "isHovered", "onActionClick", "onActionKeyDown", "onClick", "onKeyDown", "overrides", "title", "variant", "intent", "className", "startEnhancer"]);
14
+ var _j = useFocusVisible(), $isFocusVisible = _j.$isFocusVisible, onBlur = _j.onBlur, onFocus = _j.onFocus;
15
+ var theme = useStyle().theme;
16
+ var handleKeyDown = useCallback(function (event) {
17
+ if (event.currentTarget !== event.target) {
18
+ return;
19
+ }
20
+ var key = event.key;
21
+ if (onClick && key === 'Enter') {
22
+ onClick(event);
23
+ }
24
+ if (closeable && (key === 'Backspace' || key === 'Delete')) {
25
+ onActionClick === null || onActionClick === void 0 ? void 0 : onActionClick(event);
26
+ onActionKeyDown === null || onActionKeyDown === void 0 ? void 0 : onActionKeyDown(event);
27
+ }
28
+ if (onKeyDown) {
29
+ onKeyDown(event);
30
+ }
31
+ }, [closeable, onActionClick, onActionKeyDown, onClick, onKeyDown]);
32
+ var _k = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.Root, StyledRoot), 2), Root = _k[0], rootProps = _k[1];
33
+ var _l = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.Action, StyledAction), 2), Action = _l[0], actionProps = _l[1];
34
+ var _m = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.ActionIcon, CloseIcon), 2), ActionIcon = _m[0], actionIconProps = _m[1];
35
+ var _o = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.Text, StyledText), 2), Text = _o[0], textProps = _o[1];
36
+ var _p = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.StartEnhancer, StyledStartEnhancer), 2), StartEnhancer = _p[0], startEnhancerProps = _p[1];
37
+ var clickable = typeof onClick === 'function';
38
+ var sharedProps = {
39
+ $clickable: clickable,
40
+ $closeable: closeable,
41
+ $isFocused: isFocused,
42
+ $isHovered: isHovered,
43
+ $variant: variant,
44
+ $isFocusVisible: $isFocusVisible,
45
+ $size: size,
46
+ $withStartEnhancer: !!startEnhancer,
47
+ $intent: intent,
48
+ };
49
+ var titleText = title || getTextFromChildren(children);
50
+ var actionSize = 8;
51
+ var actionButtonBorderRadius = getComponentTheme(theme, 'tag').actionButtonBorderRadius;
52
+ return (_jsxs(Root, __assign({ ref: ref, "data-spaceweb": "tag", role: clickable ? 'button' : null, tabIndex: clickable ? 0 : null, onFocus: onFocus, onBlur: onBlur, className: className, onClick: onClick, onKeyDown: handleKeyDown }, sharedProps, restProps, rootProps, { children: [startEnhancer && (_jsx(StartEnhancer, __assign({}, sharedProps, startEnhancerProps, { children: typeof startEnhancer === 'function' ? startEnhancer(sharedProps) : startEnhancer }), void 0)), _jsx(Text, __assign({ title: titleText }, sharedProps, textProps, { children: children }), void 0), closeable ? (_jsx(Action, __assign({ "aria-hidden": true, role: "presentation", onClick: onActionClick }, sharedProps, actionProps, { children: _jsx(IconButton, __assign({ type: "button", size: "xxxs", shape: "square", className: "hover:spr-clr-grey" }, { children: _jsx(ActionIcon, __assign({}, actionIconProps), void 0) }), void 0) }), void 0)) : null] }), void 0));
53
+ });
54
+ Tag.displayName = 'Tag';
55
+ export default Tag;
@@ -0,0 +1,53 @@
1
+ import * as React from 'react';
2
+ import { AvatarProps } from '../avatar';
3
+ import { Override } from '../overrides';
4
+ import { ClassName } from '../types';
5
+ export declare type Intent = 'success' | 'error' | 'warning' | 'info' | 'default';
6
+ export declare type Variant = 'solid' | 'light';
7
+ export declare type Size = 'sm' | 'lg';
8
+ export declare type TagOverrides = {
9
+ Root?: Override<SharedProps & Record<string, any>>;
10
+ Action?: Override<SharedProps & Record<string, any>>;
11
+ ActionIcon?: Override<SharedProps & Record<string, any>>;
12
+ Text?: Override<SharedProps & Record<string, any>>;
13
+ StartEnhancer?: Override<SharedProps & Record<string, any>>;
14
+ };
15
+ export declare type TagProps = {
16
+ closeable?: boolean;
17
+ isFocused?: boolean;
18
+ isHovered?: boolean;
19
+ children?: React.ReactNode;
20
+ title?: string;
21
+ onActionClick?: (e: Event, children?: React.ReactNode) => any;
22
+ onActionKeyDown?: (e: Event, children?: React.ReactNode) => any;
23
+ onClick?: (event: Event) => any;
24
+ onKeyDown?: (event: Event) => any;
25
+ className?: ClassName;
26
+ overrides?: TagOverrides;
27
+ startEnhancer?: React.ReactNode | ((props: {
28
+ $withStartEnhancer: boolean;
29
+ $size: Size;
30
+ $intent: Intent;
31
+ $variant: Variant;
32
+ }) => React.ReactNode);
33
+ intent?: Intent;
34
+ variant?: Variant;
35
+ size?: Size;
36
+ };
37
+ export declare type AvatarTagProps = Omit<TagProps, 'size' | 'overrides'> & {
38
+ avatarProps: AvatarProps;
39
+ overrides?: TagProps['overrides'] & {
40
+ StartEnhancer?: Override<Record<string, any>>;
41
+ };
42
+ };
43
+ export declare type SharedProps = {
44
+ $clickable?: boolean;
45
+ $closeable?: boolean;
46
+ $isFocused?: boolean;
47
+ $isHovered?: boolean;
48
+ $isFocusVisible: boolean;
49
+ $withStartEnhancer: boolean;
50
+ $intent?: Intent;
51
+ $variant?: Variant;
52
+ $size?: Size;
53
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare function getTextFromChildren(children: React.ReactNode): string | null;
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ var JOINABLE_TYPES = new Set(['string', 'number']);
3
+ // Checks the children of a React component to ensure every value is a number
4
+ // or a string. If they are, they are joined and returned. Useful for collecting
5
+ // text from the child of a node to use as an attribute.
6
+ export function getTextFromChildren(children) {
7
+ var childList = React.Children.toArray(children).filter(function (child) { return child !== null && child !== undefined; });
8
+ if (!childList.length) {
9
+ return null;
10
+ }
11
+ var isJoinable = childList.every(function (child) { return JOINABLE_TYPES.has(typeof child); });
12
+ if (!isJoinable) {
13
+ return null;
14
+ }
15
+ // Join on an empty string to preserve React's whitespace handling:
16
+ // <Tag>foo{'bar'}baz</Tag> => 'foobar'
17
+ // <Tag>foo {'bar'} baz</Tag> => 'foo bar baz'
18
+ return childList.join('');
19
+ }
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ import * as React from 'react';
3
+ import SpacewebProvider from '../../spacewebProvider';
4
+ declare type WithOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
5
+ declare const TestProvider: (props: WithOptional<WithOptional<React.ComponentProps<typeof SpacewebProvider>, 'theme'>, 'styleEngine'>) => ReactElement;
6
+ export default TestProvider;
@@ -0,0 +1,14 @@
1
+ import { __assign } from "tslib";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { useMemo } from 'react';
4
+ import SpacewebProvider from '../../spacewebProvider';
5
+ import { getStyleEngine } from '../../styleEngine';
6
+ import { useTheme } from '../../theme';
7
+ import { convertToTestableTheme } from './helpers';
8
+ var TestProvider = function (props) {
9
+ var themeModule = useTheme();
10
+ var testableTheme = useMemo(function () { return convertToTestableTheme(themeModule); }, [themeModule]);
11
+ var _a = props.styleEngine, styleEngine = _a === void 0 ? getStyleEngine() : _a, _b = props.theme, theme = _b === void 0 ? testableTheme : _b;
12
+ return _jsx(SpacewebProvider, __assign({ theme: theme, styleEngine: styleEngine }, props, { debug: true }), void 0);
13
+ };
14
+ export default TestProvider;
@@ -0,0 +1,27 @@
1
+ import { Direction, ThemeModule } from '@sprinklrjs/spaceweb-themes/types';
2
+ import { StyleUtils } from '../../types';
3
+ declare type Breakpoint = [string, string];
4
+ declare type ScreenList = {
5
+ [name: string]: string;
6
+ };
7
+ /**
8
+ * Gets screens by breakpoint name from the theme
9
+ */
10
+ export declare const getScreens: () => ScreenList;
11
+ /**
12
+ * Gets a tuple of all breakpoints from the theme
13
+ */
14
+ export declare const getBreakpoints: () => Breakpoint[];
15
+ /**
16
+ * Setup events for responsive testing
17
+ */
18
+ export declare const setupBreakpoints: () => void;
19
+ /**
20
+ * Gets CSS declaration of the first element matching `[data-testid=]`
21
+ */
22
+ export declare const getCSSByTestId: (testId: string) => CSSStyleDeclaration;
23
+ export declare const getCSSByBasewebId: (basewebId: string) => CSSStyleDeclaration;
24
+ export declare const getCSSFromEl: (el: any) => CSSStyleDeclaration;
25
+ export declare const convertToTestableTheme: (testTheme: ThemeModule) => ThemeModule;
26
+ export declare const getTestStyleUtils: (direction?: Direction) => StyleUtils;
27
+ export {};
@@ -0,0 +1,55 @@
1
+ import { __assign } from "tslib";
2
+ import matchMediaPolyfill from 'mq-polyfill';
3
+ import { Client, Server } from 'styletron-engine-atomic';
4
+ import { driver } from 'styletron-standard';
5
+ import hyperspaceLight from '@sprinklrjs/spaceweb-themes/hyperspace/light';
6
+ import _buildUtils from '../../style/_buildUtils';
7
+ import { SPACEWEB_STYLE_PREFIX } from '../../styleEngine';
8
+ import { covertCSSVariablesToValue } from '../../helpers';
9
+ /**
10
+ * Gets screens by breakpoint name from the theme
11
+ */
12
+ export var getScreens = function () { return hyperspaceLight.theme.screens; };
13
+ /**
14
+ * Gets a tuple of all breakpoints from the theme
15
+ */
16
+ export var getBreakpoints = function () { return Object.entries(getScreens()); };
17
+ /**
18
+ * Setup events for responsive testing
19
+ */
20
+ export var setupBreakpoints = function () {
21
+ matchMediaPolyfill(window);
22
+ Object.values(getScreens()).forEach(function (maxWidth) { return window.matchMedia("(max-width: ".concat(maxWidth, ")")); });
23
+ window.resizeTo = function resizeTo(width, height) {
24
+ Object.assign(this, {
25
+ innerWidth: width,
26
+ innerHeight: height,
27
+ outerWidth: width,
28
+ outerHeight: height,
29
+ }).dispatchEvent(new this.Event('resize'));
30
+ };
31
+ };
32
+ /**
33
+ * Gets CSS declaration of the first element matching `[data-testid=]`
34
+ */
35
+ export var getCSSByTestId = function (testId) {
36
+ var el = window.document.querySelectorAll("[data-testid=\"".concat(testId, "\"]"))[0];
37
+ return window.getComputedStyle(el);
38
+ };
39
+ export var getCSSByBasewebId = function (basewebId) {
40
+ var el = window.document.querySelectorAll("[data-baseweb=\"".concat(basewebId, "\"]"))[0];
41
+ return window.getComputedStyle(el);
42
+ };
43
+ export var getCSSFromEl = function (el) { return window.getComputedStyle(el); };
44
+ export var convertToTestableTheme = function (testTheme) {
45
+ var classes = testTheme.classes, theme = testTheme.theme;
46
+ return __assign(__assign({}, testTheme), { classes: covertCSSVariablesToValue(classes), theme: covertCSSVariablesToValue(theme) });
47
+ };
48
+ export var getTestStyleUtils = function (direction) {
49
+ if (direction === void 0) { direction = 'ltr'; }
50
+ var isServer = typeof window === 'undefined';
51
+ var options = { prefix: SPACEWEB_STYLE_PREFIX };
52
+ var styletron = isServer ? new Server(options) : new Client(options);
53
+ var css = function (arg) { return driver(arg, styletron); };
54
+ return _buildUtils(__assign({ direction: direction }, convertToTestableTheme(hyperspaceLight)), css);
55
+ };
@@ -0,0 +1,2 @@
1
+ export { default as TestProvider } from './TestProvider';
2
+ export { getScreens, getBreakpoints, setupBreakpoints, getCSSByTestId, getCSSByBasewebId, getCSSFromEl, getTestStyleUtils, } from './helpers';
@@ -0,0 +1,2 @@
1
+ export { default as TestProvider } from './TestProvider';
2
+ export { getScreens, getBreakpoints, setupBreakpoints, getCSSByTestId, getCSSByBasewebId, getCSSFromEl, getTestStyleUtils, } from './helpers';
@@ -0,0 +1,5 @@
1
+ import { ThemeModule } from '@sprinklrjs/spaceweb-themes/types';
2
+ export declare const sprLight: ThemeModule;
3
+ export declare const sprDark: ThemeModule;
4
+ export declare const hyperspaceLight: ThemeModule;
5
+ export declare const hyperspaceDark: ThemeModule;
@@ -0,0 +1,9 @@
1
+ import baseSprLight from '@sprinklrjs/spaceweb-themes/space/light';
2
+ import baseSprDark from '@sprinklrjs/spaceweb-themes/space/dark';
3
+ import baseHyperspaceLight from '@sprinklrjs/spaceweb-themes/hyperspace/light';
4
+ import baseHyperspaceDark from '@sprinklrjs/spaceweb-themes/hyperspace/dark';
5
+ import { convertToTestableTheme } from './helpers';
6
+ export var sprLight = convertToTestableTheme(baseSprLight);
7
+ export var sprDark = convertToTestableTheme(baseSprDark);
8
+ export var hyperspaceLight = convertToTestableTheme(baseHyperspaceLight);
9
+ export var hyperspaceDark = convertToTestableTheme(baseHyperspaceDark);
@@ -0,0 +1,3 @@
1
+ import { TextareaProps } from './types';
2
+ declare function useTextareaAdapter<T extends TextareaProps>(props: T): Omit<T, 'size' | 'variant' | 'className' | 'style' | 'intent' | 'autoSize'>;
3
+ export default useTextareaAdapter;
@@ -0,0 +1,32 @@
1
+ import { __assign, __rest } from "tslib";
2
+ import { useMemo } from 'react';
3
+ import { borderStyle } from '../helpers/longHandHelpers';
4
+ import { getTextareaInputContainerStyles, getTextareaInputStyles } from './styled-components';
5
+ import { useConvertOverrides } from '../helpers/baseui/useConvertOverrides';
6
+ import { add$props } from '../helpers';
7
+ import { useContextualFormProps } from '../form-control/context';
8
+ import { useDebouncedEventHandler } from '../hooks/useDebouncedEventHandler';
9
+ import _noop from 'lodash/noop';
10
+ function useTextareaAdapter(props) {
11
+ var _a;
12
+ var _b = useContextualFormProps(props), size = _b.size, variant = _b.variant, className = _b.className, style = _b.style, intent = _b.intent, _c = _b.autoSize, autoSize = _c === void 0 ? false : _c, restProps = __rest(_b, ["size", "variant", "className", "style", "intent", "autoSize"]);
13
+ var sharedProps = add$props({ size: size, variant: variant, intent: intent });
14
+ var inputContainerStyles = useMemo(function () { return [className, style, getTextareaInputContainerStyles]; }, [className, style]);
15
+ var handleChange = useDebouncedEventHandler((_a = props.debouncedOnChange) !== null && _a !== void 0 ? _a : _noop, props.onChange, props.debounceInterval || 200);
16
+ var overrides = useConvertOverrides({
17
+ Root: {
18
+ style: [__assign({ backgroundColor: 'transparent' }, borderStyle('none'))],
19
+ },
20
+ InputContainer: {
21
+ style: inputContainerStyles,
22
+ props: sharedProps,
23
+ },
24
+ Input: {
25
+ style: getTextareaInputStyles,
26
+ props: __assign({ onChange: handleChange, $autoSize: autoSize }, sharedProps),
27
+ },
28
+ }, restProps.overrides);
29
+ var rows = autoSize && !restProps.rows ? 1 : restProps.rows;
30
+ return __assign(__assign({}, restProps), { overrides: overrides, rows: rows });
31
+ }
32
+ export default useTextareaAdapter;
@@ -0,0 +1,3 @@
1
+ export { Textarea, StatefulTextarea } from './textarea';
2
+ export { StatefulContainer, StyledTextareaContainer, StyledTextarea, STATE_CHANGE_TYPE } from 'baseui/textarea';
3
+ export * from './types';
@@ -0,0 +1,3 @@
1
+ export { Textarea, StatefulTextarea } from './textarea';
2
+ export { StatefulContainer, StyledTextareaContainer, StyledTextarea, STATE_CHANGE_TYPE } from 'baseui/textarea';
3
+ export * from './types';
@@ -0,0 +1,11 @@
1
+ export declare const getTextareaInputStyles: (import("..").StyleFn<import("../input").SharedProps> | (({}: {}, { $autoSize }: {
2
+ $autoSize: any;
3
+ }) => "overflow-hidden" | "resize") | (({ theme }: {
4
+ theme: any;
5
+ }) => {
6
+ width: string;
7
+ '::placeholder': {
8
+ color: any;
9
+ };
10
+ }))[];
11
+ export declare const getTextareaInputContainerStyles: import("..").Styles[];
@@ -0,0 +1,14 @@
1
+ import { getInputContainerStyles, getInputStyles } from '../input/styled-components';
2
+ //todo: need to use withThemeOverride to create overriden styled version of comps
3
+ export var getTextareaInputStyles = [
4
+ getInputStyles,
5
+ function (_a, _b) {
6
+ var $autoSize = _b.$autoSize;
7
+ return ($autoSize ? 'overflow-hidden' : 'resize');
8
+ },
9
+ function (_a) {
10
+ var theme = _a.theme;
11
+ return ({ width: '100vw', '::placeholder': { color: theme.spr.textPlaceholder } });
12
+ },
13
+ ];
14
+ export var getTextareaInputContainerStyles = [getInputContainerStyles, 'max-w-full', { width: 'min-content' }];
@@ -0,0 +1,10 @@
1
+ import { ReactElement } from 'react';
2
+ import { TextareaProps, StatefulTextareaProps } from './types';
3
+ export declare const Textarea: {
4
+ (props: TextareaProps): ReactElement;
5
+ displayName: string;
6
+ };
7
+ export declare const StatefulTextarea: {
8
+ (props: StatefulTextareaProps): ReactElement;
9
+ displayName: string;
10
+ };
@@ -0,0 +1,33 @@
1
+ import { __assign, __rest } from "tslib";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Textarea as BaseTextarea, StatefulTextarea as BaseStatefulTextarea } from 'baseui/textarea';
4
+ import useTextareaAdapter from './basewebAdapters';
5
+ import useAutoFocus from '../hooks/useAutoFocus';
6
+ import useAutoSizeTextarea from './useAutoSizeTextarea';
7
+ // @ts-ignore
8
+ BaseTextarea.displayName = 'BaseUITextarea';
9
+ BaseStatefulTextarea.displayName = 'BaseUIStatefulTextarea';
10
+ export var Textarea = function (props) {
11
+ var autoFocus = props.autoFocus, restProps = __rest(props, ["autoFocus"]);
12
+ var autoFocusRef = useAutoFocus({ autoFocus: autoFocus, inputRef: restProps.inputRef });
13
+ var inputRef = useAutoSizeTextarea({
14
+ value: restProps.value,
15
+ autoSize: restProps.autoSize,
16
+ inputRef: autoFocusRef,
17
+ });
18
+ var adaptedProps = useTextareaAdapter(restProps);
19
+ return _jsx(BaseTextarea, __assign({}, adaptedProps, { inputRef: inputRef }), void 0);
20
+ };
21
+ Textarea.displayName = 'Textarea';
22
+ export var StatefulTextarea = function (props) {
23
+ var autoFocus = props.autoFocus, restProps = __rest(props, ["autoFocus"]);
24
+ var autoFocusRef = useAutoFocus({ autoFocus: autoFocus, inputRef: restProps.inputRef });
25
+ var inputRef = useAutoSizeTextarea({
26
+ value: restProps.value,
27
+ autoSize: restProps.autoSize,
28
+ inputRef: autoFocusRef,
29
+ });
30
+ var adaptedProps = useTextareaAdapter(restProps);
31
+ return _jsx(BaseStatefulTextarea, __assign({}, adaptedProps, { inputRef: inputRef }), void 0);
32
+ };
33
+ StatefulTextarea.displayName = 'StatefulTextarea';
@@ -0,0 +1,27 @@
1
+ import { TextareaProps as BaseTextareaProps, StatefulTextareaProps as BaseStatefulTextareaProps } from 'baseui/textarea';
2
+ import { InputSize, InputVariant, FocusPosition } from '../input';
3
+ import { Intent, SpacewebComponentProps } from '../types';
4
+ import { Override } from '../overrides';
5
+ export declare type TextareaProps = SpacewebComponentProps<Omit<BaseTextareaProps, 'size' | 'overrides' | 'autoFocus'>> & {
6
+ size?: InputSize;
7
+ variant?: InputVariant;
8
+ overrides?: {
9
+ [key in keyof BaseTextareaProps['overrides']]?: Override<any>;
10
+ };
11
+ intent?: Intent;
12
+ debouncedOnChange?: BaseTextareaProps['onChange'];
13
+ debounceInterval?: number;
14
+ autoFocus?: FocusPosition;
15
+ autoSize?: boolean;
16
+ };
17
+ export declare type StatefulTextareaProps = SpacewebComponentProps<Omit<BaseStatefulTextareaProps, 'size' | 'overrides' | 'autoFocus'>> & {
18
+ size?: InputSize;
19
+ variant?: InputVariant;
20
+ overrides?: {
21
+ [key in keyof BaseStatefulTextareaProps['overrides']]?: Override<any>;
22
+ };
23
+ debouncedOnChange?: BaseStatefulTextareaProps['onChange'];
24
+ debounceInterval?: number;
25
+ autoFocus?: FocusPosition;
26
+ autoSize?: boolean;
27
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { TextareaProps } from './types';
3
+ declare const useAutoSizeTextarea: ({ value, inputRef, autoSize, }: {
4
+ value: TextareaProps['value'];
5
+ inputRef: React.RefObject<HTMLTextAreaElement>;
6
+ autoSize: TextareaProps['autoSize'];
7
+ }) => React.RefObject<HTMLTextAreaElement>;
8
+ export default useAutoSizeTextarea;
@@ -0,0 +1,14 @@
1
+ import { useLayoutEffect } from 'react';
2
+ var useAutoSizeTextarea = function (_a) {
3
+ var value = _a.value, inputRef = _a.inputRef, autoSize = _a.autoSize;
4
+ useLayoutEffect(function () {
5
+ if (autoSize && inputRef.current) {
6
+ inputRef.current.style.height = 'auto';
7
+ if (inputRef.current.scrollHeight > 0) {
8
+ inputRef.current.style.height = "".concat(inputRef.current.scrollHeight, "px");
9
+ }
10
+ }
11
+ }, [value, autoSize, inputRef]);
12
+ return inputRef;
13
+ };
14
+ export default useAutoSizeTextarea;
@@ -0,0 +1,14 @@
1
+ import { ReactElement, PropsWithChildren } from 'react';
2
+ import { ThemeContext } from '../types';
3
+ import { ThemeProviderT } from './types';
4
+ import type { Density } from '@sprinklrjs/spaceweb-themes/types';
5
+ export declare const themeContext: import("react").Context<ThemeContext>;
6
+ export declare const useTheme: () => ThemeContext;
7
+ declare type Props = PropsWithChildren<{
8
+ theme?: ThemeProviderT;
9
+ containerElement?: HTMLElement | null;
10
+ density?: Density;
11
+ }>;
12
+ export declare const ThemeProvider: (props: Props) => ReactElement;
13
+ export declare const ThemeConsumer: import("react").Consumer<ThemeContext>;
14
+ export {};
@@ -0,0 +1,65 @@
1
+ import { __assign, __read } from "tslib";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { createContext, useContext, useMemo, useState } from 'react';
4
+ import _merge from 'lodash/merge';
5
+ import hyperspaceLight from '@sprinklrjs/spaceweb-themes/hyperspace/light';
6
+ import { ThemeProvider as BaseUIThemProvider } from 'baseui';
7
+ import usePrevious from '../hooks/usePrevious';
8
+ import useMemoizedStyletron from '../style/useMemoizedStyletron';
9
+ import SPACEWEB_THEME_VS_BASEUI_THEME from '../themes';
10
+ import { useIsomorphicLayoutEffect } from '../hooks/useIsomorphicLayoutEffect';
11
+ //todo: remove default sprLight, too many tests failing on removal
12
+ export var themeContext = createContext(hyperspaceLight);
13
+ export var useTheme = function () { return useContext(themeContext); };
14
+ var THEME_NAMES = ['hyperspace-light', 'space-light', 'space-dark', 'hyperspace-dark'];
15
+ var addDensityToTheme = function (theme, density) {
16
+ var _a;
17
+ return (__assign(__assign({}, theme), { theme: __assign(__assign({}, theme.theme), { density: density || ((_a = theme.theme) === null || _a === void 0 ? void 0 : _a.density) }) }));
18
+ };
19
+ export var ThemeProvider = function (props) {
20
+ var _a;
21
+ var theme = props.theme, children = props.children, elementToApplyClass = props.containerElement, density = props.density;
22
+ var _b = __read(useState(null), 2), containerElementRef = _b[0], setContainerElementRef = _b[1];
23
+ var outerTheme = useTheme();
24
+ var _c = __read(useMemoizedStyletron(), 2), baseUITheme = _c[1];
25
+ if (typeof outerTheme === 'undefined' && typeof theme === 'undefined') {
26
+ throw new Error('No Theme present in context & props');
27
+ }
28
+ var Provider = themeContext.Provider;
29
+ var value = useMemo(function () {
30
+ var _a, _b;
31
+ if (theme) {
32
+ var newTheme = void 0;
33
+ if (typeof theme === 'function') {
34
+ newTheme = theme(outerTheme);
35
+ }
36
+ else {
37
+ var newThemeName = (_a = theme.theme) === null || _a === void 0 ? void 0 : _a.name, outerThemeName = (_b = outerTheme === null || outerTheme === void 0 ? void 0 : outerTheme.theme) === null || _b === void 0 ? void 0 : _b.name,
38
+ // theme should be merged if both the outerTheme & themeToOverride has same name
39
+ shouldMergeThemes = !newThemeName || !outerThemeName || newThemeName === outerThemeName;
40
+ if (shouldMergeThemes) {
41
+ newTheme = _merge({}, outerTheme, theme);
42
+ }
43
+ else {
44
+ newTheme = __assign({ direction: outerTheme === null || outerTheme === void 0 ? void 0 : outerTheme.direction }, theme);
45
+ }
46
+ }
47
+ if (typeof newTheme !== 'object') {
48
+ throw new Error('theme has to be an object of shape {theme : {}, classes : {}}');
49
+ }
50
+ return addDensityToTheme(newTheme, density);
51
+ }
52
+ return addDensityToTheme(outerTheme, density);
53
+ }, [theme, outerTheme, density]);
54
+ var themeName = value.theme.name, prevThemName = usePrevious(themeName), containerElement = elementToApplyClass !== null && elementToApplyClass !== void 0 ? elementToApplyClass : containerElementRef, prevContainerElement = usePrevious(containerElement);
55
+ useIsomorphicLayoutEffect(function () {
56
+ prevThemName && (prevContainerElement === null || prevContainerElement === void 0 ? void 0 : prevContainerElement.classList.remove(prevThemName));
57
+ THEME_NAMES.forEach(function (name) { return containerElement === null || containerElement === void 0 ? void 0 : containerElement.classList.remove(name); });
58
+ containerElement === null || containerElement === void 0 ? void 0 : containerElement.classList.add(themeName);
59
+ }, [themeName, prevThemName, containerElement, prevContainerElement]);
60
+ /**
61
+ * Box component/styled cannot be used here as styletron might not be initialized when ThemeProvider renders for the first time.
62
+ */
63
+ return (_jsx("div", __assign({ "data-testid": "theme-provider-container", style: { display: 'contents' }, ref: setContainerElementRef }, { children: _jsx(BaseUIThemProvider, __assign({ theme: (_a = SPACEWEB_THEME_VS_BASEUI_THEME[themeName]) !== null && _a !== void 0 ? _a : baseUITheme }, { children: _jsx(Provider, __assign({ value: value }, { children: children }), void 0) }), void 0) }), void 0));
64
+ };
65
+ export var ThemeConsumer = themeContext.Consumer;
@@ -0,0 +1,2 @@
1
+ export * from './context';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './context';
2
+ export * from './types';
@@ -0,0 +1,6 @@
1
+ import { ThemeContext } from '../types';
2
+ declare type RecursivePartial<T> = {
3
+ [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P];
4
+ };
5
+ export declare type ThemeProviderT = ((theme?: ThemeContext) => ThemeContext) | RecursivePartial<ThemeContext>;
6
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @author Yash Soni
3
+ * @author Ivan Torres
4
+ */
5
+ import { Theme } from 'baseui/theme';
6
+ export declare const DarkTheme: Theme;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @author Yash Soni
3
+ * @author Ivan Torres
4
+ */
5
+ import { __assign } from "tslib";
6
+ /* eslint import/prefer-default-export: 0 */
7
+ import { createTheme, DarkTheme as BaseuiTheme, darkThemePrimitives as primitives } from 'baseui';
8
+ import { sharedPrimitives } from './shared';
9
+ export var DarkTheme = __assign(__assign({}, createTheme(__assign(__assign({}, primitives), sharedPrimitives))), { name: 'dark', colors: BaseuiTheme.colors });