@sprinklrjs/spaceweb 11.0.0 → 12.14.4

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 (648) hide show
  1. package/allComponentsAndUtilities.d.ts +1 -0
  2. package/allComponentsAndUtilities.js +2 -1
  3. package/asyncSelect/asyncSelect.d.ts +4 -2
  4. package/asyncSelect/asyncSelect.js +43 -108
  5. package/asyncSelect/groupedAsyncSelect.d.ts +5 -0
  6. package/asyncSelect/groupedAsyncSelect.js +41 -0
  7. package/asyncSelect/helpers.d.ts +8 -2
  8. package/asyncSelect/helpers.js +35 -4
  9. package/asyncSelect/hooks/useAsyncOptionHandlers.d.ts +16 -11
  10. package/asyncSelect/hooks/useAsyncOptionHandlers.js +73 -26
  11. package/asyncSelect/hooks/useAsyncSelect.d.ts +10 -0
  12. package/asyncSelect/hooks/useAsyncSelect.js +182 -0
  13. package/asyncSelect/hooks/useResolveSelectedOptions.d.ts +10 -7
  14. package/asyncSelect/hooks/useResolveSelectedOptions.js +59 -47
  15. package/asyncSelect/index.d.ts +4 -1
  16. package/asyncSelect/index.js +8 -0
  17. package/asyncSelect/types.d.ts +61 -9
  18. package/avatar/avatar.js +12 -2
  19. package/avatar/styled-component.js +7 -22
  20. package/badge/styled-component.js +10 -8
  21. package/banner/banner.js +1 -1
  22. package/breadcrumb/breadcrumb-item.d.ts +7 -0
  23. package/breadcrumb/breadcrumb-item.js +41 -0
  24. package/breadcrumb/breadcrumb.d.ts +7 -0
  25. package/breadcrumb/breadcrumb.js +29 -0
  26. package/breadcrumb/index.d.ts +4 -0
  27. package/breadcrumb/index.js +17 -0
  28. package/breadcrumb/package.json +4 -0
  29. package/breadcrumb/styled-components.d.ts +7 -0
  30. package/breadcrumb/styled-components.js +19 -0
  31. package/breadcrumb/types.d.ts +38 -0
  32. package/breadcrumb/types.js +2 -0
  33. package/button/Button.d.ts +2 -0
  34. package/button/Button.js +13 -1
  35. package/button/IconButton/IconButton.d.ts +2 -4
  36. package/button/IconButton/IconButton.js +5 -2
  37. package/button/IconButton/types.d.ts +10 -1
  38. package/button/basewebAdapter.d.ts +3 -1
  39. package/button/styled-components.js +30 -25
  40. package/button/types.d.ts +3 -0
  41. package/button-group/ButtonGroup.d.ts +1 -0
  42. package/button-group/ButtonGroup.js +9 -5
  43. package/button-group/StatefulButtonGroup.d.ts +1 -0
  44. package/button-group/styled-components.d.ts +34 -0
  45. package/button-group/styled-components.js +57 -9
  46. package/button-group/types.d.ts +2 -0
  47. package/checkbox/basewebAdapters.js +6 -1
  48. package/color-picker/ColorPalette.d.ts +9 -0
  49. package/color-picker/ColorPalette.js +26 -0
  50. package/color-picker/ColorPicker.d.ts +3 -0
  51. package/color-picker/ColorPicker.js +35 -0
  52. package/color-picker/Swatch.d.ts +12 -0
  53. package/color-picker/Swatch.js +40 -0
  54. package/color-picker/colors.d.ts +1 -0
  55. package/color-picker/colors.js +109 -0
  56. package/color-picker/getContrastRatio.d.ts +1 -0
  57. package/color-picker/getContrastRatio.js +23 -0
  58. package/color-picker/index.d.ts +3 -0
  59. package/color-picker/index.js +7 -0
  60. package/color-picker/locale.d.ts +3 -0
  61. package/color-picker/locale.js +2 -0
  62. package/color-picker/package.json +4 -0
  63. package/color-picker/styled-component.d.ts +1 -0
  64. package/color-picker/styled-component.js +5 -0
  65. package/color-picker/types.d.ts +15 -0
  66. package/color-picker/types.js +2 -0
  67. package/currency/Currency.d.ts +3 -0
  68. package/currency/Currency.js +14 -0
  69. package/currency/constants.d.ts +3 -0
  70. package/currency/constants.js +8 -0
  71. package/currency/index.d.ts +5 -0
  72. package/currency/index.js +12 -0
  73. package/currency/package.json +4 -0
  74. package/currency/types.d.ts +7 -0
  75. package/currency/types.js +2 -0
  76. package/currency/useCurrency.d.ts +2 -0
  77. package/currency/useCurrency.js +12 -0
  78. package/currency/utils.d.ts +8 -0
  79. package/currency/utils.js +11 -0
  80. package/date-input/Before.d.ts +4 -2
  81. package/date-input/Before.js +4 -4
  82. package/date-input/CalendarIconButton.js +7 -1
  83. package/date-input/DateInput.d.ts +1 -1
  84. package/date-input/DateInput.js +46 -25
  85. package/date-input/styled-components.d.ts +2 -2
  86. package/date-input/styled-components.js +10 -8
  87. package/date-input/types.d.ts +4 -2
  88. package/date-picker/Calendar.js +5 -3
  89. package/date-picker/DateInput.js +16 -14
  90. package/date-picker/DatePickerContent.d.ts +9 -3
  91. package/date-picker/DatePickerContent.js +59 -8
  92. package/date-picker/DatePickerInput.js +9 -6
  93. package/date-picker/StatelessDatePicker.js +35 -16
  94. package/date-picker/locale.d.ts +2 -0
  95. package/date-picker/stateful-container.js +11 -8
  96. package/date-picker/styled-components.js +53 -3
  97. package/date-picker/types.d.ts +10 -1
  98. package/date-picker/utils.d.ts +3 -1
  99. package/date-picker/utils.js +8 -3
  100. package/date-time/DateTime.d.ts +3 -0
  101. package/date-time/DateTime.js +12 -0
  102. package/date-time/index.d.ts +3 -0
  103. package/date-time/index.js +9 -0
  104. package/date-time/package.json +4 -0
  105. package/date-time/types.d.ts +21 -0
  106. package/date-time/types.js +18 -0
  107. package/date-time/useDateTime.d.ts +2 -0
  108. package/date-time/useDateTime.js +13 -0
  109. package/date-time/variants.d.ts +4 -0
  110. package/date-time/variants.js +87 -0
  111. package/esm/allComponentsAndUtilities.d.ts +1 -0
  112. package/esm/allComponentsAndUtilities.js +2 -0
  113. package/esm/asyncSelect/asyncSelect.d.ts +4 -2
  114. package/esm/asyncSelect/asyncSelect.js +46 -111
  115. package/esm/asyncSelect/groupedAsyncSelect.d.ts +5 -0
  116. package/esm/asyncSelect/groupedAsyncSelect.js +37 -0
  117. package/esm/asyncSelect/helpers.d.ts +8 -2
  118. package/esm/asyncSelect/helpers.js +31 -3
  119. package/esm/asyncSelect/hooks/useAsyncOptionHandlers.d.ts +16 -11
  120. package/esm/asyncSelect/hooks/useAsyncOptionHandlers.js +76 -29
  121. package/esm/asyncSelect/hooks/useAsyncSelect.d.ts +10 -0
  122. package/esm/asyncSelect/hooks/useAsyncSelect.js +178 -0
  123. package/esm/asyncSelect/hooks/useResolveSelectedOptions.d.ts +10 -7
  124. package/esm/asyncSelect/hooks/useResolveSelectedOptions.js +62 -50
  125. package/esm/asyncSelect/index.d.ts +4 -1
  126. package/esm/asyncSelect/index.js +3 -0
  127. package/esm/asyncSelect/types.d.ts +61 -9
  128. package/esm/avatar/avatar.js +12 -2
  129. package/esm/avatar/styled-component.js +7 -22
  130. package/esm/badge/styled-component.js +10 -8
  131. package/esm/banner/banner.js +1 -1
  132. package/esm/breadcrumb/breadcrumb-item.d.ts +7 -0
  133. package/esm/breadcrumb/breadcrumb-item.js +39 -0
  134. package/esm/breadcrumb/breadcrumb.d.ts +7 -0
  135. package/esm/breadcrumb/breadcrumb.js +27 -0
  136. package/esm/breadcrumb/index.d.ts +4 -0
  137. package/esm/breadcrumb/index.js +3 -0
  138. package/esm/breadcrumb/styled-components.d.ts +7 -0
  139. package/esm/breadcrumb/styled-components.js +15 -0
  140. package/esm/breadcrumb/types.d.ts +38 -0
  141. package/esm/breadcrumb/types.js +1 -0
  142. package/esm/button/Button.d.ts +2 -0
  143. package/esm/button/Button.js +13 -1
  144. package/esm/button/IconButton/IconButton.d.ts +2 -4
  145. package/esm/button/IconButton/IconButton.js +5 -2
  146. package/esm/button/IconButton/types.d.ts +10 -1
  147. package/esm/button/basewebAdapter.d.ts +3 -1
  148. package/esm/button/styled-components.js +30 -25
  149. package/esm/button/types.d.ts +3 -0
  150. package/esm/button-group/ButtonGroup.d.ts +1 -0
  151. package/esm/button-group/ButtonGroup.js +9 -5
  152. package/esm/button-group/StatefulButtonGroup.d.ts +1 -0
  153. package/esm/button-group/styled-components.d.ts +34 -0
  154. package/esm/button-group/styled-components.js +55 -8
  155. package/esm/button-group/types.d.ts +2 -0
  156. package/esm/checkbox/basewebAdapters.js +6 -1
  157. package/esm/color-picker/ColorPalette.d.ts +9 -0
  158. package/esm/color-picker/ColorPalette.js +22 -0
  159. package/esm/color-picker/ColorPicker.d.ts +3 -0
  160. package/esm/color-picker/ColorPicker.js +31 -0
  161. package/esm/color-picker/Swatch.d.ts +12 -0
  162. package/esm/color-picker/Swatch.js +37 -0
  163. package/esm/color-picker/colors.d.ts +1 -0
  164. package/esm/color-picker/colors.js +106 -0
  165. package/esm/color-picker/getContrastRatio.d.ts +1 -0
  166. package/esm/color-picker/getContrastRatio.js +19 -0
  167. package/esm/color-picker/index.d.ts +3 -0
  168. package/esm/color-picker/index.js +2 -0
  169. package/esm/color-picker/locale.d.ts +3 -0
  170. package/esm/color-picker/locale.js +1 -0
  171. package/esm/color-picker/styled-component.d.ts +1 -0
  172. package/esm/color-picker/styled-component.js +2 -0
  173. package/esm/color-picker/types.d.ts +15 -0
  174. package/esm/color-picker/types.js +1 -0
  175. package/esm/currency/Currency.d.ts +3 -0
  176. package/esm/currency/Currency.js +10 -0
  177. package/esm/currency/constants.d.ts +3 -0
  178. package/esm/currency/constants.js +5 -0
  179. package/esm/currency/index.d.ts +5 -0
  180. package/esm/currency/index.js +5 -0
  181. package/esm/currency/types.d.ts +7 -0
  182. package/esm/currency/types.js +1 -0
  183. package/esm/currency/useCurrency.d.ts +2 -0
  184. package/esm/currency/useCurrency.js +8 -0
  185. package/esm/currency/utils.d.ts +8 -0
  186. package/esm/currency/utils.js +7 -0
  187. package/esm/date-input/Before.d.ts +4 -2
  188. package/esm/date-input/Before.js +4 -4
  189. package/esm/date-input/CalendarIconButton.js +7 -1
  190. package/esm/date-input/DateInput.d.ts +1 -1
  191. package/esm/date-input/DateInput.js +47 -26
  192. package/esm/date-input/styled-components.d.ts +2 -2
  193. package/esm/date-input/styled-components.js +10 -7
  194. package/esm/date-input/types.d.ts +4 -2
  195. package/esm/date-picker/Calendar.js +5 -3
  196. package/esm/date-picker/DateInput.js +17 -15
  197. package/esm/date-picker/DatePickerContent.d.ts +9 -3
  198. package/esm/date-picker/DatePickerContent.js +60 -9
  199. package/esm/date-picker/DatePickerInput.js +9 -6
  200. package/esm/date-picker/StatelessDatePicker.js +35 -16
  201. package/esm/date-picker/locale.d.ts +2 -0
  202. package/esm/date-picker/stateful-container.js +11 -8
  203. package/esm/date-picker/styled-components.js +53 -3
  204. package/esm/date-picker/types.d.ts +10 -1
  205. package/esm/date-picker/utils.d.ts +3 -1
  206. package/esm/date-picker/utils.js +9 -4
  207. package/esm/date-time/DateTime.d.ts +3 -0
  208. package/esm/date-time/DateTime.js +8 -0
  209. package/esm/date-time/index.d.ts +3 -0
  210. package/esm/date-time/index.js +3 -0
  211. package/esm/date-time/types.d.ts +21 -0
  212. package/esm/date-time/types.js +15 -0
  213. package/esm/date-time/useDateTime.d.ts +2 -0
  214. package/esm/date-time/useDateTime.js +9 -0
  215. package/esm/date-time/variants.d.ts +4 -0
  216. package/esm/date-time/variants.js +84 -0
  217. package/esm/form-control/form-control.d.ts +1 -1
  218. package/esm/form-control/form-control.js +17 -12
  219. package/esm/form-control/styled-component.js +17 -6
  220. package/esm/helpers/ClearIconButton.js +3 -1
  221. package/esm/helpers/StyledTombstone.d.ts +1 -0
  222. package/esm/helpers/StyledTombstone.js +17 -0
  223. package/esm/helpers/baseui/useConvertOverrides.js +6 -1
  224. package/esm/helpers/commonStyles.js +3 -6
  225. package/esm/helpers/index.d.ts +1 -0
  226. package/esm/helpers/index.js +8 -0
  227. package/esm/helpers/themeHelpers.d.ts +1 -0
  228. package/esm/helpers/themeHelpers.js +13 -0
  229. package/esm/hooks/useAutoFocus.js +6 -0
  230. package/esm/hooks/useMatchMedia.js +13 -2
  231. package/esm/icon/components/alert-solid.js +2 -0
  232. package/esm/icon/components/alert.js +2 -0
  233. package/esm/icon/components/calendar-solid.js +2 -0
  234. package/esm/icon/components/chevron-down.js +2 -0
  235. package/esm/icon/components/chevron-left.d.ts +3 -0
  236. package/esm/icon/components/chevron-left.js +8 -0
  237. package/esm/icon/components/chevron-right.d.ts +3 -0
  238. package/esm/icon/components/chevron-right.js +8 -0
  239. package/esm/icon/components/close.js +2 -0
  240. package/esm/icon/components/error-clr.js +2 -0
  241. package/esm/icon/components/error-solid.js +2 -0
  242. package/esm/icon/components/error.js +2 -0
  243. package/esm/icon/components/imagePreview.js +2 -0
  244. package/esm/icon/components/info.js +2 -0
  245. package/esm/icon/components/play-video.js +2 -0
  246. package/esm/icon/components/reset-color.d.ts +3 -0
  247. package/esm/icon/components/reset-color.js +8 -0
  248. package/esm/icon/components/search.js +2 -0
  249. package/esm/icon/components/tick.js +2 -0
  250. package/esm/icon/components/tickCircle-solid.js +2 -0
  251. package/esm/icon/components/user.js +2 -0
  252. package/esm/icon/components/video-non-playable.js +2 -0
  253. package/esm/index.d.ts +2 -0
  254. package/esm/index.js +2 -0
  255. package/esm/input/basewebAdapters.js +18 -3
  256. package/esm/input/styled-components.js +8 -6
  257. package/esm/input/types.d.ts +4 -1
  258. package/esm/layer/useLayersContextValue.js +3 -2
  259. package/esm/list/avatar-list-item.d.ts +12 -22
  260. package/esm/list/avatar-list-item.js +6 -4
  261. package/esm/list/index.d.ts +1 -1
  262. package/esm/list/index.js +1 -1
  263. package/esm/list/list-item.d.ts +3 -1
  264. package/esm/list/list-item.js +9 -6
  265. package/esm/list/styled-component.d.ts +1 -0
  266. package/esm/list/styled-component.js +23 -15
  267. package/esm/list/types.d.ts +3 -0
  268. package/esm/locale/en_US.js +26 -0
  269. package/esm/locale/types.d.ts +19 -0
  270. package/esm/menu/MenuContext.d.ts +2 -1
  271. package/esm/menu/MenuContext.js +1 -0
  272. package/esm/menu/menu-item.d.ts +4 -1
  273. package/esm/menu/menu-item.js +11 -11
  274. package/esm/menu/menu.d.ts +1 -0
  275. package/esm/menu/menu.js +11 -11
  276. package/esm/menu/types.d.ts +1 -0
  277. package/esm/menu/useKeyboardNavigation.d.ts +6 -3
  278. package/esm/menu/useKeyboardNavigation.js +21 -14
  279. package/esm/menu/useStatefulMenu.d.ts +5 -2
  280. package/esm/menu/useStatefulMenu.js +14 -8
  281. package/esm/modal/modal.js +3 -1
  282. package/esm/modal/overrides.d.ts +2 -2
  283. package/esm/modal/overrides.js +6 -7
  284. package/esm/modal/styled-components.js +7 -7
  285. package/esm/number/Number.d.ts +3 -0
  286. package/esm/number/Number.js +10 -0
  287. package/esm/number/constants.d.ts +2 -0
  288. package/esm/number/constants.js +4 -0
  289. package/esm/number/index.d.ts +5 -0
  290. package/esm/number/index.js +5 -0
  291. package/esm/number/types.d.ts +6 -0
  292. package/esm/number/types.js +1 -0
  293. package/esm/number/useNumber.d.ts +2 -0
  294. package/esm/number/useNumber.js +8 -0
  295. package/esm/overrides/index.d.ts +1 -1
  296. package/esm/overrides/index.js +1 -1
  297. package/esm/overrides/mergeOverrides.d.ts +3 -2
  298. package/esm/overrides/mergeOverrides.js +1 -1
  299. package/esm/payment-card/basewebAdapters.d.ts +2 -0
  300. package/esm/payment-card/basewebAdapters.js +23 -1
  301. package/esm/payment-card/styled-components.js +25 -6
  302. package/esm/phone-input/country-select-container.js +1 -1
  303. package/esm/phone-input/country-select.js +3 -3
  304. package/esm/phone-input/default-props.d.ts +5 -5
  305. package/esm/phone-input/default-props.js +7 -7
  306. package/esm/phone-input/flag-container.js +1 -1
  307. package/esm/phone-input/phone-input.d.ts +0 -4
  308. package/esm/phone-input/phone-input.js +20 -12
  309. package/esm/phone-input/stateful-phone-input-container.js +4 -3
  310. package/esm/phone-input/stateful-phone-input.d.ts +0 -4
  311. package/esm/phone-input/styled-components.d.ts +9 -1
  312. package/esm/phone-input/styled-components.js +21 -7
  313. package/esm/phone-input/types.d.ts +2 -1
  314. package/esm/phone-input/utils.d.ts +5 -1
  315. package/esm/phone-input/utils.js +6 -1
  316. package/esm/popover/adapter.d.ts +1 -0
  317. package/esm/popover/adapter.js +15 -0
  318. package/esm/popover/overrides.js +8 -19
  319. package/esm/popover/popover.d.ts +1 -0
  320. package/esm/popover/popover.js +9 -4
  321. package/esm/popover/stateful-popover.js +2 -2
  322. package/esm/popover/types.d.ts +3 -0
  323. package/esm/popover/utils.d.ts +12 -0
  324. package/esm/popover/utils.js +9 -0
  325. package/esm/progress/linear/styled-component.d.ts +1 -1
  326. package/esm/progress/linear/styled-component.js +5 -5
  327. package/esm/radio/styled-components.js +5 -5
  328. package/esm/search/index.d.ts +1 -0
  329. package/esm/search/index.js +1 -0
  330. package/esm/search/search.d.ts +1 -1
  331. package/esm/search/search.js +15 -6
  332. package/esm/search/stateful-search.d.ts +3 -0
  333. package/esm/search/stateful-search.js +15 -0
  334. package/esm/search/styled-components.d.ts +1 -10
  335. package/esm/search/styled-components.js +54 -24
  336. package/esm/search/types.d.ts +8 -2
  337. package/esm/select/base-select.d.ts +22 -5
  338. package/esm/select/base-select.js +174 -82
  339. package/esm/select/constants.d.ts +3 -0
  340. package/esm/select/constants.js +3 -1
  341. package/esm/select/default-props.d.ts +1 -0
  342. package/esm/select/default-props.js +3 -0
  343. package/esm/select/index.d.ts +2 -2
  344. package/esm/select/index.js +2 -2
  345. package/esm/select/locale.d.ts +4 -0
  346. package/esm/select/mobileSelect/MobileSheet.js +3 -1
  347. package/esm/select/multi-value.js +22 -12
  348. package/esm/select/overlaySelect/OverlaySelect.js +1 -0
  349. package/esm/select/overlaySelect/hooks/useOverlaySelectOverrides.d.ts +2 -1
  350. package/esm/select/overlaySelect/hooks/useOverlaySelectOverrides.js +13 -16
  351. package/esm/select/overrides.d.ts +3 -0
  352. package/esm/select/overrides.js +19 -6
  353. package/esm/select/select.d.ts +1 -0
  354. package/esm/select/select.js +9 -3
  355. package/esm/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +118 -0
  356. package/esm/select/selectMenuAdapter/CollapsibleSelectMenu.js +70 -0
  357. package/esm/select/selectMenuAdapter/SelectMenuAdapter.d.ts +2 -34
  358. package/esm/select/selectMenuAdapter/SelectMenuAdapter.js +3 -3
  359. package/esm/select/selectMenuAdapter/SelectMenuItem.d.ts +4 -1
  360. package/esm/select/selectMenuAdapter/hooks/useGetExpandedGroup.d.ts +6 -0
  361. package/esm/select/selectMenuAdapter/hooks/useGetExpandedGroup.js +16 -0
  362. package/esm/select/selectMenuAdapter/types.d.ts +42 -0
  363. package/esm/select/selectMenuAdapter/types.js +1 -0
  364. package/esm/select/stateful-select.d.ts +1 -0
  365. package/esm/select/styled-component.d.ts +10 -1
  366. package/esm/select/styled-component.js +39 -15
  367. package/esm/select/types.d.ts +23 -1
  368. package/esm/select/types.js +1 -0
  369. package/esm/select/utils/default-filter-options.d.ts +2 -1
  370. package/esm/select/utils/default-filter-options.js +5 -1
  371. package/esm/select/utils/hidden-element.d.ts +6 -0
  372. package/esm/select/utils/hidden-element.js +16 -0
  373. package/esm/select/utils/merge-options.d.ts +2 -0
  374. package/esm/select/utils/merge-options.js +18 -0
  375. package/esm/select/utils/test-utils.d.ts +1 -0
  376. package/esm/select/utils/test-utils.js +7 -0
  377. package/esm/slider/styled-components.js +4 -4
  378. package/esm/snackbar/Snackbar.js +12 -12
  379. package/esm/snackbar/styled-component.js +9 -6
  380. package/esm/spacewebProvider/SpacewebProvider.d.ts +2 -0
  381. package/esm/spacewebProvider/SpacewebProvider.js +9 -9
  382. package/esm/stack/stack.js +6 -13
  383. package/esm/style/_buildUtils.d.ts +1 -1
  384. package/esm/style/_buildUtils.js +3 -1
  385. package/esm/style/_parseStyle.js +7 -2
  386. package/esm/style/useMemoizedStyletron.js +6 -1
  387. package/esm/switch/styled-components.js +3 -3
  388. package/esm/tag/avatar-tag.js +23 -16
  389. package/esm/tag/styled-components.js +32 -27
  390. package/esm/tag/tag.js +20 -12
  391. package/esm/tag/types.d.ts +2 -2
  392. package/esm/tag/utils.d.ts +50 -0
  393. package/esm/tag/utils.js +64 -0
  394. package/esm/textarea/basewebAdapters.js +3 -3
  395. package/esm/textarea/textarea.js +3 -3
  396. package/esm/textarea/types.d.ts +2 -2
  397. package/esm/theme/Provider.d.ts +10 -0
  398. package/esm/theme/Provider.js +61 -0
  399. package/esm/theme/context.d.ts +1 -10
  400. package/esm/theme/context.js +1 -61
  401. package/esm/theme/index.d.ts +1 -0
  402. package/esm/theme/index.js +1 -0
  403. package/esm/time-picker/TimePicker.js +4 -1
  404. package/esm/time-range-picker/RangeSelectorContainer.js +1 -1
  405. package/esm/time-range-picker/TimeRangePicker.js +20 -12
  406. package/esm/time-range-picker/index.d.ts +1 -1
  407. package/esm/time-range-picker/index.js +1 -1
  408. package/esm/time-range-picker/types.d.ts +1 -2
  409. package/esm/time-range-picker/utils.d.ts +33 -4
  410. package/esm/time-range-picker/utils.js +49 -15
  411. package/esm/time-zone-picker/types.d.ts +2 -0
  412. package/esm/tooltip/overrides.js +0 -1
  413. package/esm/tooltip/stateful-tooltip.js +2 -2
  414. package/esm/tooltip/tooltip.d.ts +1 -1
  415. package/esm/tooltip/tooltip.js +5 -2
  416. package/esm/tooltip/types.d.ts +2 -0
  417. package/esm/types.d.ts +2 -1
  418. package/esm/typography/Typography.js +14 -1
  419. package/esm/typography/constants.d.ts +56 -0
  420. package/esm/typography/constants.js +56 -0
  421. package/esm/typography/index.d.ts +1 -0
  422. package/esm/typography/index.js +1 -0
  423. package/esm/typography/styled-components.js +12 -4
  424. package/esm/typography/types.d.ts +1 -1
  425. package/esm/utils/intlNumberFormatUtils/index.d.ts +7 -0
  426. package/esm/utils/intlNumberFormatUtils/index.js +36 -0
  427. package/esm/utils/intlNumberFormatUtils/types.d.ts +21 -0
  428. package/esm/utils/intlNumberFormatUtils/types.js +6 -0
  429. package/form-control/form-control.d.ts +1 -1
  430. package/form-control/form-control.js +16 -11
  431. package/form-control/styled-component.js +17 -6
  432. package/helpers/ClearIconButton.js +3 -1
  433. package/helpers/StyledTombstone.d.ts +1 -0
  434. package/helpers/StyledTombstone.js +21 -0
  435. package/helpers/baseui/useConvertOverrides.js +6 -1
  436. package/helpers/commonStyles.js +3 -6
  437. package/helpers/index.d.ts +1 -0
  438. package/helpers/index.js +10 -1
  439. package/helpers/themeHelpers.d.ts +1 -0
  440. package/helpers/themeHelpers.js +15 -1
  441. package/hooks/useAutoFocus.js +6 -0
  442. package/hooks/useMatchMedia.js +13 -2
  443. package/icon/components/alert-solid.js +2 -0
  444. package/icon/components/alert.js +2 -0
  445. package/icon/components/calendar-solid.js +2 -0
  446. package/icon/components/chevron-down.js +2 -0
  447. package/icon/components/chevron-left.d.ts +3 -0
  448. package/icon/components/chevron-left.js +11 -0
  449. package/icon/components/chevron-right.d.ts +3 -0
  450. package/icon/components/chevron-right.js +11 -0
  451. package/icon/components/close.js +2 -0
  452. package/icon/components/error-clr.js +2 -0
  453. package/icon/components/error-solid.js +2 -0
  454. package/icon/components/error.js +2 -0
  455. package/icon/components/imagePreview.js +2 -0
  456. package/icon/components/info.js +2 -0
  457. package/icon/components/play-video.js +2 -0
  458. package/icon/components/reset-color.d.ts +3 -0
  459. package/icon/components/reset-color.js +11 -0
  460. package/icon/components/search.js +2 -0
  461. package/icon/components/tick.js +2 -0
  462. package/icon/components/tickCircle-solid.js +2 -0
  463. package/icon/components/user.js +2 -0
  464. package/icon/components/video-non-playable.js +2 -0
  465. package/index.d.ts +2 -0
  466. package/index.js +3 -0
  467. package/input/basewebAdapters.js +18 -3
  468. package/input/styled-components.js +7 -5
  469. package/input/types.d.ts +4 -1
  470. package/layer/useLayersContextValue.js +2 -1
  471. package/list/avatar-list-item.d.ts +12 -22
  472. package/list/avatar-list-item.js +5 -3
  473. package/list/index.d.ts +1 -1
  474. package/list/index.js +2 -1
  475. package/list/list-item.d.ts +3 -1
  476. package/list/list-item.js +9 -6
  477. package/list/styled-component.d.ts +1 -0
  478. package/list/styled-component.js +24 -16
  479. package/list/types.d.ts +3 -0
  480. package/locale/en_US.js +26 -0
  481. package/locale/types.d.ts +19 -0
  482. package/menu/MenuContext.d.ts +2 -1
  483. package/menu/MenuContext.js +1 -0
  484. package/menu/menu-item.d.ts +4 -1
  485. package/menu/menu-item.js +11 -11
  486. package/menu/menu.d.ts +1 -0
  487. package/menu/menu.js +11 -11
  488. package/menu/types.d.ts +1 -0
  489. package/menu/useKeyboardNavigation.d.ts +6 -3
  490. package/menu/useKeyboardNavigation.js +21 -14
  491. package/menu/useStatefulMenu.d.ts +5 -2
  492. package/menu/useStatefulMenu.js +14 -8
  493. package/modal/modal.js +3 -1
  494. package/modal/overrides.d.ts +2 -2
  495. package/modal/overrides.js +6 -7
  496. package/modal/styled-components.js +7 -7
  497. package/number/Number.d.ts +3 -0
  498. package/number/Number.js +14 -0
  499. package/number/constants.d.ts +2 -0
  500. package/number/constants.js +7 -0
  501. package/number/index.d.ts +5 -0
  502. package/number/index.js +12 -0
  503. package/number/package.json +4 -0
  504. package/number/types.d.ts +6 -0
  505. package/number/types.js +2 -0
  506. package/number/useNumber.d.ts +2 -0
  507. package/number/useNumber.js +12 -0
  508. package/overrides/index.d.ts +1 -1
  509. package/overrides/index.js +2 -1
  510. package/overrides/mergeOverrides.d.ts +3 -2
  511. package/overrides/mergeOverrides.js +2 -1
  512. package/package.json +8 -5
  513. package/payment-card/basewebAdapters.d.ts +2 -0
  514. package/payment-card/basewebAdapters.js +23 -1
  515. package/payment-card/styled-components.js +24 -5
  516. package/phone-input/country-select-container.js +1 -1
  517. package/phone-input/country-select.js +3 -3
  518. package/phone-input/default-props.d.ts +5 -5
  519. package/phone-input/default-props.js +8 -7
  520. package/phone-input/flag-container.js +1 -1
  521. package/phone-input/phone-input.d.ts +0 -4
  522. package/phone-input/phone-input.js +19 -11
  523. package/phone-input/stateful-phone-input-container.js +4 -3
  524. package/phone-input/stateful-phone-input.d.ts +0 -4
  525. package/phone-input/styled-components.d.ts +9 -1
  526. package/phone-input/styled-components.js +22 -7
  527. package/phone-input/types.d.ts +2 -1
  528. package/phone-input/utils.d.ts +5 -1
  529. package/phone-input/utils.js +7 -1
  530. package/popover/adapter.d.ts +1 -0
  531. package/popover/adapter.js +16 -1
  532. package/popover/overrides.js +8 -19
  533. package/popover/popover.d.ts +1 -0
  534. package/popover/popover.js +8 -3
  535. package/popover/stateful-popover.js +2 -2
  536. package/popover/types.d.ts +3 -0
  537. package/popover/utils.d.ts +12 -0
  538. package/popover/utils.js +11 -1
  539. package/progress/linear/styled-component.d.ts +1 -1
  540. package/progress/linear/styled-component.js +5 -5
  541. package/radio/styled-components.js +5 -5
  542. package/search/index.d.ts +1 -0
  543. package/search/index.js +3 -1
  544. package/search/search.d.ts +1 -1
  545. package/search/search.js +14 -5
  546. package/search/stateful-search.d.ts +3 -0
  547. package/search/stateful-search.js +19 -0
  548. package/search/styled-components.d.ts +1 -10
  549. package/search/styled-components.js +56 -25
  550. package/search/types.d.ts +8 -2
  551. package/select/base-select.d.ts +22 -5
  552. package/select/base-select.js +172 -80
  553. package/select/constants.d.ts +3 -0
  554. package/select/constants.js +4 -2
  555. package/select/default-props.d.ts +1 -0
  556. package/select/default-props.js +3 -0
  557. package/select/index.d.ts +2 -2
  558. package/select/index.js +4 -1
  559. package/select/locale.d.ts +4 -0
  560. package/select/mobileSelect/MobileSheet.js +3 -1
  561. package/select/multi-value.js +21 -11
  562. package/select/overlaySelect/OverlaySelect.js +1 -0
  563. package/select/overlaySelect/hooks/useOverlaySelectOverrides.d.ts +2 -1
  564. package/select/overlaySelect/hooks/useOverlaySelectOverrides.js +13 -16
  565. package/select/overrides.d.ts +3 -0
  566. package/select/overrides.js +20 -6
  567. package/select/select.d.ts +1 -0
  568. package/select/select.js +9 -3
  569. package/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +118 -0
  570. package/select/selectMenuAdapter/CollapsibleSelectMenu.js +74 -0
  571. package/select/selectMenuAdapter/SelectMenuAdapter.d.ts +2 -34
  572. package/select/selectMenuAdapter/SelectMenuAdapter.js +3 -3
  573. package/select/selectMenuAdapter/SelectMenuItem.d.ts +4 -1
  574. package/select/selectMenuAdapter/hooks/useGetExpandedGroup.d.ts +6 -0
  575. package/select/selectMenuAdapter/hooks/useGetExpandedGroup.js +20 -0
  576. package/select/selectMenuAdapter/types.d.ts +42 -0
  577. package/select/selectMenuAdapter/types.js +2 -0
  578. package/select/stateful-select.d.ts +1 -0
  579. package/select/styled-component.d.ts +10 -1
  580. package/select/styled-component.js +38 -14
  581. package/select/types.d.ts +23 -1
  582. package/select/types.js +2 -1
  583. package/select/utils/default-filter-options.d.ts +2 -1
  584. package/select/utils/default-filter-options.js +6 -5
  585. package/select/utils/hidden-element.d.ts +6 -0
  586. package/select/utils/hidden-element.js +19 -0
  587. package/select/utils/merge-options.d.ts +2 -0
  588. package/select/utils/merge-options.js +22 -0
  589. package/select/utils/test-utils.d.ts +1 -0
  590. package/select/utils/test-utils.js +11 -0
  591. package/slider/styled-components.js +4 -4
  592. package/snackbar/Snackbar.js +12 -12
  593. package/snackbar/styled-component.js +9 -6
  594. package/spacewebProvider/SpacewebProvider.d.ts +2 -0
  595. package/spacewebProvider/SpacewebProvider.js +8 -8
  596. package/stack/stack.js +6 -13
  597. package/style/_buildUtils.d.ts +1 -1
  598. package/style/_buildUtils.js +3 -1
  599. package/style/_parseStyle.js +7 -2
  600. package/style/useMemoizedStyletron.js +6 -1
  601. package/switch/styled-components.js +3 -3
  602. package/tag/avatar-tag.js +23 -16
  603. package/tag/styled-components.js +32 -27
  604. package/tag/tag.js +19 -11
  605. package/tag/types.d.ts +2 -2
  606. package/tag/utils.d.ts +50 -0
  607. package/tag/utils.js +67 -1
  608. package/textarea/basewebAdapters.js +2 -2
  609. package/textarea/textarea.js +2 -2
  610. package/textarea/types.d.ts +2 -2
  611. package/theme/Provider.d.ts +10 -0
  612. package/theme/Provider.js +65 -0
  613. package/theme/context.d.ts +1 -10
  614. package/theme/context.js +1 -61
  615. package/theme/index.d.ts +1 -0
  616. package/theme/index.js +1 -0
  617. package/time-picker/TimePicker.js +4 -1
  618. package/time-range-picker/RangeSelectorContainer.js +1 -1
  619. package/time-range-picker/TimeRangePicker.js +19 -11
  620. package/time-range-picker/index.d.ts +1 -1
  621. package/time-range-picker/index.js +4 -1
  622. package/time-range-picker/types.d.ts +1 -2
  623. package/time-range-picker/utils.d.ts +33 -4
  624. package/time-range-picker/utils.js +53 -17
  625. package/time-zone-picker/types.d.ts +2 -0
  626. package/tooltip/overrides.js +0 -1
  627. package/tooltip/stateful-tooltip.js +2 -2
  628. package/tooltip/tooltip.d.ts +1 -1
  629. package/tooltip/tooltip.js +5 -2
  630. package/tooltip/types.d.ts +2 -0
  631. package/tsconfig.tsbuildinfo +1 -1
  632. package/types.d.ts +2 -1
  633. package/typography/Typography.js +14 -1
  634. package/typography/constants.d.ts +56 -0
  635. package/typography/constants.js +57 -1
  636. package/typography/index.d.ts +1 -0
  637. package/typography/index.js +3 -1
  638. package/typography/styled-components.js +11 -3
  639. package/typography/types.d.ts +1 -1
  640. package/utils/intlNumberFormatUtils/index.d.ts +7 -0
  641. package/utils/intlNumberFormatUtils/index.js +40 -0
  642. package/utils/intlNumberFormatUtils/types.d.ts +21 -0
  643. package/utils/intlNumberFormatUtils/types.js +9 -0
  644. package/utils/package.json +4 -0
  645. package/esm/icon/components/chevron-right-solid.d.ts +0 -3
  646. package/esm/icon/components/chevron-right-solid.js +0 -6
  647. package/icon/components/chevron-right-solid.d.ts +0 -3
  648. package/icon/components/chevron-right-solid.js +0 -9
@@ -0,0 +1,21 @@
1
+ export declare const NUMBER_VARIANTS: {
2
+ readonly EXPANDED_AUTO_FORMAT: "expandedAutoFormat";
3
+ readonly COMPACT_AUTO_FORMAT: "compactAutoFormat";
4
+ readonly EXPANDED_DECIMAL_FORMAT: "expandedDecimalFormat";
5
+ readonly COMPACT_DECIMAL_FORMAT: "compactDecimalFormat";
6
+ };
7
+ export declare type ExpandedAutoFormat = {
8
+ type: typeof NUMBER_VARIANTS.EXPANDED_AUTO_FORMAT;
9
+ };
10
+ export declare type CompactAutoFormat = {
11
+ type: typeof NUMBER_VARIANTS.COMPACT_AUTO_FORMAT;
12
+ };
13
+ export declare type ExpandedDecimalFormat = {
14
+ type: typeof NUMBER_VARIANTS.EXPANDED_DECIMAL_FORMAT;
15
+ decimalDigits: number;
16
+ };
17
+ export declare type CompactDecimalFormat = {
18
+ type: typeof NUMBER_VARIANTS.COMPACT_DECIMAL_FORMAT;
19
+ decimalDigits: number;
20
+ };
21
+ export declare type NumberVariant = ExpandedAutoFormat | CompactAutoFormat | ExpandedDecimalFormat | CompactDecimalFormat;
@@ -0,0 +1,6 @@
1
+ export var NUMBER_VARIANTS = {
2
+ EXPANDED_AUTO_FORMAT: 'expandedAutoFormat',
3
+ COMPACT_AUTO_FORMAT: 'compactAutoFormat',
4
+ EXPANDED_DECIMAL_FORMAT: 'expandedDecimalFormat',
5
+ COMPACT_DECIMAL_FORMAT: 'compactDecimalFormat',
6
+ };
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
2
  import { FormControlProps } from './types';
3
- declare const FormControl: ({ overrides, label, caption, disabled, error, positive, htmlFor, children, intent, required, layout, $as, className, subText, subTextAsIcon, }: FormControlProps) => React.ReactElement;
3
+ declare const FormControl: React.ForwardRefExoticComponent<FormControlProps & React.RefAttributes<HTMLElement>>;
4
4
  export { FormControl };
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FormControl = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  var jsx_runtime_1 = require("react/jsx-runtime");
6
- var uniqueId_1 = (0, tslib_1.__importDefault)(require("lodash/uniqueId"));
7
6
  var react_1 = require("react");
8
7
  var React = (0, tslib_1.__importStar)(require("react"));
8
+ var react_uid_1 = require("react-uid");
9
9
  var helpers_1 = require("../helpers");
10
10
  var stack_1 = require("../stack");
11
11
  var info_1 = (0, tslib_1.__importDefault)(require("../icon/components/info"));
@@ -26,32 +26,37 @@ function chooseRenderedHint(caption, error, positive, sharedProps) {
26
26
  }
27
27
  return null;
28
28
  }
29
- var FormControl = function (_a) {
29
+ var FormControl = (0, react_1.forwardRef)(function (_a, ref) {
30
30
  var overrides = _a.overrides, label = _a.label, caption = _a.caption, disabled = _a.disabled, error = _a.error, positive = _a.positive, htmlFor = _a.htmlFor, children = _a.children, intent = _a.intent, required = _a.required, layout = _a.layout, $as = _a.$as, className = _a.className, subText = _a.subText, subTextAsIcon = _a.subTextAsIcon;
31
31
  var onlyChildProps = React.Children.only(children).props;
32
- var a11yCaptionId = (0, react_1.useRef)((0, uniqueId_1.default)('sw-id-'));
32
+ var a11yCaptionId = (0, react_uid_1.useUID)();
33
+ var a11LabelId = (0, react_uid_1.useUID)();
34
+ var a11SubTextId = (0, react_uid_1.useUID)();
35
+ var fieldUniqueId = (0, react_uid_1.useUID)();
33
36
  // First try to infer id from props or children. Create new id if needed.
34
- var a11yFieldId = (0, react_1.useRef)(htmlFor || onlyChildProps.id || (0, uniqueId_1.default)('sw-id-'));
35
- var sharedProps = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, (0, helpers_1.add$props)({ required: required, layout: layout, intent: intent, disabled: disabled })), { $error: !!error, $positive: !!positive });
37
+ var a11yFieldId = htmlFor || onlyChildProps.id || fieldUniqueId;
38
+ var sharedProps = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, (0, helpers_1.add$props)({ required: required, layout: layout, intent: intent, disabled: disabled })), { $error: !!error, $positive: !!positive, $hasSubText: !!subText, $subTextAsIcon: subTextAsIcon });
36
39
  var hint = chooseRenderedHint(caption, error, positive, sharedProps);
37
40
  var hintEl = intent === 'error' && (caption || error) ? ((0, jsx_runtime_1.jsxs)(stack_1.Stack, (0, tslib_1.__assign)({ direction: "horizontal", gap: 2, shrink: true }, { children: [(0, jsx_runtime_1.jsx)(error_clr_1.default, { size: 14 }, void 0), (0, jsx_runtime_1.jsx)(stack_1.StackItem, { children: hint }, void 0)] }), void 0)) : (hint);
38
41
  var _b = (0, tslib_1.__read)((0, overrides_1.useOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.LabelContainer, styled_component_1.StyledLabelContainer), 2), LabelContainer = _b[0], labelContainerProps = _b[1], _c = (0, tslib_1.__read)((0, overrides_1.useOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.Label, styled_component_1.StyledLabel), 2), Label = _c[0], labelProps = _c[1], _d = (0, tslib_1.__read)((0, overrides_1.useOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.RequiredDot, styled_component_1.StyledRequiredDot), 2), RequiredDot = _d[0], requiredDotProps = _d[1], _e = (0, tslib_1.__read)((0, overrides_1.useOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.Root, styled_component_1.StyledRoot), 2), Root = _e[0], rootProps = _e[1], _f = (0, tslib_1.__read)((0, overrides_1.useOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.SubText, styled_component_1.StyledSubText), 2), SubText = _f[0], subTextProps = _f[1], _g = (0, tslib_1.__read)((0, overrides_1.useOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.InfoIconContainer, styled_component_1.StyledInfoIconContainer), 2), InfoIconContainer = _g[0], infoIconContainerProps = _g[1], _h = (0, tslib_1.__read)((0, overrides_1.useOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.ControlContainer, styled_component_1.StyledControlContainer), 2), ControlContainer = _h[0], controlContainerProps = _h[1], _j = (0, tslib_1.__read)((0, overrides_1.useOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.Caption, styled_component_1.StyledCaption), 2), Caption = _j[0], captionProps = _j[1], _k = (0, tslib_1.__read)((0, overrides_1.useOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.SubTextTooltip, tooltip_1.StatefulTooltip), 2), SubTextTooltip = _k[0], subTextTooltipProps = _k[1];
39
42
  var formControlProviderValue = (0, react_1.useMemo)(function () { return ({ intent: intent }); }, [intent]);
40
43
  var shouldRenderSubTextInTooltip = layout === 'horizontal' || subTextAsIcon;
41
- return ((0, jsx_runtime_1.jsx)(context_1.FormControlProvider, (0, tslib_1.__assign)({ value: formControlProviderValue }, { children: (0, jsx_runtime_1.jsxs)(Root, (0, tslib_1.__assign)({ "data-testid": "form-control", "data-spaceweb": "form-control", className: className, "$as": $as }, sharedProps, rootProps, { children: [label && ((0, jsx_runtime_1.jsxs)(LabelContainer, (0, tslib_1.__assign)({ "data-testid": "form-control-label-container" }, sharedProps, labelContainerProps, { children: [(0, jsx_runtime_1.jsx)(Label, (0, tslib_1.__assign)({ "data-spaceweb": "form-control-label", htmlFor: a11yFieldId.current }, sharedProps, labelProps, { children: typeof label === 'function' ? label(sharedProps) : label }), void 0), required && (0, jsx_runtime_1.jsx)(RequiredDot, (0, tslib_1.__assign)({ "data-testid": "form-required" }, requiredDotProps), void 0), subText && shouldRenderSubTextInTooltip ? ((0, jsx_runtime_1.jsx)(SubTextTooltip, (0, tslib_1.__assign)({ content: subText, size: "md" }, subTextTooltipProps, { children: (0, jsx_runtime_1.jsx)(InfoIconContainer, (0, tslib_1.__assign)({}, infoIconContainerProps, { children: (0, jsx_runtime_1.jsx)(info_1.default, { className: "h-2 w-2" }, void 0) }), void 0) }), void 0)) : null] }), void 0)), subText && !shouldRenderSubTextInTooltip ? ((0, jsx_runtime_1.jsx)(SubText, (0, tslib_1.__assign)({}, subTextProps, { children: typeof subText === 'function' ? subText(sharedProps) : subText }), void 0)) : null, (0, jsx_runtime_1.jsxs)(ControlContainer, (0, tslib_1.__assign)({ "data-spaceweb": "form-control-container" }, sharedProps, controlContainerProps, { children: [React.Children.map(children, function (child, index) {
44
+ return ((0, jsx_runtime_1.jsx)(context_1.FormControlProvider, (0, tslib_1.__assign)({ value: formControlProviderValue }, { children: (0, jsx_runtime_1.jsxs)(Root, (0, tslib_1.__assign)({ ref: ref, "data-testid": "form-control", "data-spaceweb": "form-control", className: className, "$as": $as }, sharedProps, rootProps, { children: [label && ((0, jsx_runtime_1.jsxs)(LabelContainer, (0, tslib_1.__assign)({ "data-testid": "form-control-label-container" }, sharedProps, labelContainerProps, { children: [(0, jsx_runtime_1.jsx)(Label, (0, tslib_1.__assign)({ id: a11LabelId, "data-spaceweb": "form-control-label", htmlFor: a11yFieldId }, sharedProps, labelProps, { children: typeof label === 'function' ? label(sharedProps) : label }), void 0), required && (0, jsx_runtime_1.jsx)(RequiredDot, (0, tslib_1.__assign)({ "data-testid": "form-required" }, requiredDotProps), void 0), subText && shouldRenderSubTextInTooltip ? ((0, jsx_runtime_1.jsx)(SubTextTooltip, (0, tslib_1.__assign)({ content: subText, size: "md" }, subTextTooltipProps, { children: (0, jsx_runtime_1.jsx)(InfoIconContainer, (0, tslib_1.__assign)({}, infoIconContainerProps, { children: (0, jsx_runtime_1.jsx)(info_1.default, { className: "h-2 w-2" }, void 0) }), void 0) }), void 0)) : null] }), void 0)), subText && !shouldRenderSubTextInTooltip ? ((0, jsx_runtime_1.jsx)(SubText, (0, tslib_1.__assign)({ id: a11SubTextId }, subTextProps, { children: typeof subText === 'function' ? subText(sharedProps) : subText }), void 0)) : null, (0, jsx_runtime_1.jsxs)(ControlContainer, (0, tslib_1.__assign)({ "data-spaceweb": "form-control-container" }, sharedProps, controlContainerProps, { children: [React.Children.map(children, function (child, index) {
42
45
  if (!child)
43
46
  return null;
44
47
  var key = child.key || String(index);
45
48
  return React.cloneElement(child, {
46
49
  key: key,
47
- id: a11yFieldId.current,
48
- 'aria-errormessage': error ? a11yCaptionId.current : null,
49
- 'aria-describedby': caption || positive ? a11yCaptionId.current : null,
50
+ id: a11yFieldId,
51
+ 'aria-errormessage': error ? a11yCaptionId : null,
52
+ 'aria-describedby': caption || positive || subText
53
+ ? "".concat(subText ? a11SubTextId : '', " ").concat(caption ? a11yCaptionId : '', " ")
54
+ : null,
50
55
  'aria-required': required ? 'true' : 'false',
51
56
  disabled: onlyChildProps.disabled || disabled,
52
57
  error: typeof onlyChildProps.error !== 'undefined' ? onlyChildProps.error : error,
53
58
  positive: typeof onlyChildProps.positive !== 'undefined' ? onlyChildProps.positive : positive,
54
59
  });
55
- }), (caption || error || positive) && ((0, jsx_runtime_1.jsx)(Caption, (0, tslib_1.__assign)({ "data-spaceweb": "form-control-caption", id: a11yCaptionId.current }, sharedProps, captionProps, { children: hintEl }), void 0))] }), void 0)] }), void 0) }), void 0));
56
- };
60
+ }), (caption || error || positive) && ((0, jsx_runtime_1.jsx)(Caption, (0, tslib_1.__assign)({ "data-spaceweb": "form-control-caption", id: a11yCaptionId }, sharedProps, captionProps, { children: hintEl }), void 0))] }), void 0)] }), void 0) }), void 0));
61
+ });
57
62
  exports.FormControl = FormControl;
@@ -17,20 +17,31 @@ var getIntentColor = function (_a, _b) {
17
17
  return { color: theme.spr.text02 };
18
18
  }
19
19
  };
20
- exports.StyledSubText = (0, style_1.styled)('div', 'spr-text-02 typography-l3 mb-1');
20
+ exports.StyledSubText = (0, style_1.styled)('div', 'spr-text-02 mb-1', {
21
+ fontSize: '13px',
22
+ lineHeight: '16px',
23
+ fontWeight: 400,
24
+ });
21
25
  exports.StyledInfoIconContainer = (0, style_1.styled)('div', 'spr-ui-03 rounded-full flex items-center justify-center ml-2 flex-shrink-0', function (_a) {
22
26
  var px2rem = _a.px2rem;
23
27
  return ({ height: px2rem(14), width: px2rem(14) });
24
28
  });
25
- exports.StyledRequiredDot = (0, style_1.styled)('span', 'ml-1 spr-support-error rounded-full h-1 w-1 flex-shrink-0');
29
+ exports.StyledRequiredDot = (0, style_1.styled)('span', 'spr-support-error rounded-full h-1 w-1 flex-shrink-0 ml-1');
26
30
  exports.StyledRoot = (0, style_1.styled)('div', 'flex', function (utils, _a) {
27
31
  var $layout = _a.$layout;
28
32
  return $layout === 'horizontal' ? 'flex-row items-baseline' : 'flex-col';
29
33
  });
30
- exports.StyledCaption = (0, style_1.styled)('div', 'typography-l2 my-1', getIntentColor);
31
- exports.StyledLabelContainer = (0, style_1.styled)('div', 'flex items-center mb-1 w-full', function (utils, _a) {
34
+ exports.StyledCaption = (0, style_1.styled)('div', 'typography-l2 mt-1', getIntentColor);
35
+ exports.StyledLabelContainer = (0, style_1.styled)('div', 'flex items-center w-full', function (utils, _a) {
32
36
  var $layout = _a.$layout;
33
- return $layout === 'horizontal' ? 'w-4/24 mr-2' : '';
37
+ return ($layout === 'horizontal' ? 'w-4/24 mr-2' : '');
38
+ }, function (utils, _a) {
39
+ var $hasSubText = _a.$hasSubText, $subTextAsIcon = _a.$subTextAsIcon;
40
+ return (!$hasSubText || $subTextAsIcon ? 'mb-1' : '');
41
+ });
42
+ exports.StyledLabel = (0, style_1.styled)('label', 'spr-text-02', {
43
+ fontSize: '14px',
44
+ lineHeight: '18px',
45
+ fontWeight: 400,
34
46
  });
35
- exports.StyledLabel = (0, style_1.styled)('label', 'typography-l1 text-14 spr-text-02');
36
47
  exports.StyledControlContainer = (0, style_1.styled)('div', 'w-full');
@@ -4,9 +4,11 @@ var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
5
  var IconButton_1 = (0, tslib_1.__importDefault)(require("../button/IconButton"));
6
6
  var close_1 = (0, tslib_1.__importDefault)(require("../icon/components/close"));
7
+ var locale_1 = require("../locale");
7
8
  var ClearIconButton = function (_a) {
8
9
  var size = _a.size, $size = _a.$size, $isOpen = _a.$isOpen, props = (0, tslib_1.__rest)(_a, ["size", "$size", "$isOpen"]);
9
- return ((0, jsx_runtime_1.jsx)(IconButton_1.default, (0, tslib_1.__assign)({}, props, { overrides: {
10
+ var locale = (0, locale_1.useLocale)();
11
+ return ((0, jsx_runtime_1.jsx)(IconButton_1.default, (0, tslib_1.__assign)({ "aria-label": locale.input.clearAriaLabel }, props, { overrides: {
10
12
  BaseButton: {
11
13
  style: [
12
14
  'h-5 w-5 spr-text-02 hover:spr-text-01 focus:spr-text-01 hover:spr-ui-03 focus:spr-ui-03 bg-transparent',
@@ -0,0 +1 @@
1
+ export declare const StyledTombstone: import("../style/styled").StyledComponent;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StyledTombstone = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var styled_1 = (0, tslib_1.__importDefault)(require("../style/styled"));
6
+ exports.StyledTombstone = (0, styled_1.default)('div', 'spr-ui-03 h-full w-full', {
7
+ animationDuration: '1s',
8
+ animationIterationCount: 'infinite',
9
+ animationTimingFunction: 'ease-in-out',
10
+ animationName: {
11
+ '0%': {
12
+ opacity: '1',
13
+ },
14
+ '50%': {
15
+ opacity: '0.4',
16
+ },
17
+ '100%': {
18
+ opacity: '1',
19
+ },
20
+ },
21
+ });
@@ -4,10 +4,15 @@ exports.convertOverrideObject = exports.mergeAndConvertOverrides = exports.useCo
4
4
  var tslib_1 = require("tslib");
5
5
  var reduce_1 = (0, tslib_1.__importDefault)(require("lodash/reduce"));
6
6
  var react_1 = require("react");
7
+ var rtl_css_js_1 = (0, tslib_1.__importDefault)(require("rtl-css-js"));
7
8
  var overrides_1 = require("../../overrides");
8
9
  var _getStyleWithProps_1 = (0, tslib_1.__importDefault)(require("../../style/_getStyleWithProps"));
9
10
  var useStyle_1 = (0, tslib_1.__importDefault)(require("../../style/useStyle"));
10
- var convertOverrideObject = function (override, utils) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({}, override), { style: function (props) { return (0, _getStyleWithProps_1.default)(utils, props, override.style); } })); };
11
+ var identity = function (x) { return x; };
12
+ var convertOverrideObject = function (override, utils) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({}, override), { style: function (props) {
13
+ var decorator = utils.isRTL ? rtl_css_js_1.default : identity;
14
+ return decorator((0, _getStyleWithProps_1.default)(utils, props, override.style));
15
+ } })); };
11
16
  exports.convertOverrideObject = convertOverrideObject;
12
17
  var mergeAndConvertOverrides = function (target, source, utils) {
13
18
  if (source === void 0) { source = {}; }
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFocusVisibleStyles = exports.getOutlineStyles = exports.transparentScrollbarStyles = exports.chevronStyles = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var longHandHelpers_1 = require("./longHandHelpers");
4
6
  var chevronStyles = function (_a, _b) {
5
7
  var theme = _a.theme, px2rem = _a.px2rem;
6
8
  var $isOpen = _b.$isOpen;
@@ -25,12 +27,7 @@ exports.transparentScrollbarStyles = {
25
27
  '::-webkit-scrollbar': {
26
28
  backgroundColor: 'transparent',
27
29
  },
28
- '::-webkit-scrollbar-thumb': {
29
- backgroundColor: 'darkgrey',
30
- border: '4px solid transparent',
31
- borderRadius: '8px',
32
- backgroundClip: 'padding-box',
33
- },
30
+ '::-webkit-scrollbar-thumb': (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({ backgroundColor: 'darkgrey' }, (0, longHandHelpers_1.borderRadius)('8px')), (0, longHandHelpers_1.borderWidth)('4px')), (0, longHandHelpers_1.borderStyle)('solid')), (0, longHandHelpers_1.borderColor)('transparent')), { backgroundClip: 'padding-box' }),
34
31
  };
35
32
  var getOutlineStyles = function (_a, props) {
36
33
  var theme = _a.theme;
@@ -17,6 +17,7 @@ export declare const add$props: (props: Record<string, unknown>) => Record<strin
17
17
  * @param value
18
18
  */
19
19
  export declare const covertCSSVariablesToValue: <T extends string | object>(value: T) => T;
20
+ export declare const themeTokenToHex: (token: string) => string | null;
20
21
  /**
21
22
  * Converts hexadecimal color to RGB or RGBA (if alpha is provided)
22
23
  * @param hex hexadecimal color
package/helpers/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hex2rgb = exports.covertCSSVariablesToValue = exports.add$props = exports.omit$props = void 0;
3
+ exports.hex2rgb = exports.themeTokenToHex = exports.covertCSSVariablesToValue = exports.add$props = exports.omit$props = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  /**
6
6
  * Omits properties that starts with `$` (Styletron)
@@ -50,6 +50,15 @@ var covertCSSVariablesToValue = function (value) {
50
50
  return value;
51
51
  };
52
52
  exports.covertCSSVariablesToValue = covertCSSVariablesToValue;
53
+ var themeTokenToHex = function (token) {
54
+ var hex = (0, exports.covertCSSVariablesToValue)(token);
55
+ var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
56
+ var parsed = hex.replace(shorthandRegex, function (m, r, g, b) {
57
+ return r + r + g + g + b + b;
58
+ });
59
+ return parsed;
60
+ };
61
+ exports.themeTokenToHex = themeTokenToHex;
53
62
  /**
54
63
  * Converts hexadecimal color to RGB or RGBA (if alpha is provided)
55
64
  * @param hex hexadecimal color
@@ -2,3 +2,4 @@ import { Theme } from '@sprinklrjs/spaceweb-themes/types';
2
2
  import { Size } from '../types';
3
3
  export declare const getComponentTheme: (theme: Theme, componentName: string) => any;
4
4
  export declare const getComponentSizeTheme: (theme: Theme, componentName: string, size: Size | undefined, defaultSize: Size) => any;
5
+ export declare const getDefaultSize: (theme: Theme) => 'md' | 'xxxs';
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getComponentSizeTheme = exports.getComponentTheme = void 0;
3
+ exports.getDefaultSize = exports.getComponentSizeTheme = exports.getComponentTheme = void 0;
4
4
  var getComponentTheme = function (theme, componentName) { return theme[componentName]; };
5
5
  exports.getComponentTheme = getComponentTheme;
6
6
  var sizeAdapter = {
7
+ xxxxs: 'sizeXxxxs',
7
8
  xxxs: 'sizeXxxs',
8
9
  xxs: 'sizeXxs',
9
10
  xs: 'sizeXs',
@@ -22,3 +23,16 @@ var getComponentSizeTheme = function (theme, componentName, size, defaultSize) {
22
23
  return (_b = componentTheme[sizeAdapter[size !== null && size !== void 0 ? size : defaultSize]]) !== null && _b !== void 0 ? _b : componentTheme[sizeAdapter[defaultSize]];
23
24
  };
24
25
  exports.getComponentSizeTheme = getComponentSizeTheme;
26
+ var getDefaultSize = function (theme) {
27
+ switch (theme.density) {
28
+ case 'COMFORTABLE':
29
+ return 'md';
30
+ case 'SPACIOUS':
31
+ return 'md';
32
+ case 'COMPACT':
33
+ return 'xxxs';
34
+ default:
35
+ return 'md';
36
+ }
37
+ };
38
+ exports.getDefaultSize = getDefaultSize;
@@ -48,6 +48,12 @@ var useAutoFocus = function (_a) {
48
48
  try {
49
49
  refObj.current.focus({ preventScroll: true });
50
50
  refObj.current.setSelectionRange(position, position);
51
+ // moves cursor at the end of the text in input & textarea
52
+ // this would have been handled by browser, but we have to do it explicitly because of preventScroll option in ref.focus
53
+ if (position === refObj.current.value.length) {
54
+ refObj.current.scrollLeft = refObj.current.scrollWidth;
55
+ refObj.current.scrollTop = refObj.current.scrollHeight;
56
+ }
51
57
  }
52
58
  catch (err) {
53
59
  if (__DEV__) {
@@ -29,11 +29,22 @@ var useMedia = function (query, defaultState) {
29
29
  }
30
30
  setState(!!mediaQueryList.matches);
31
31
  };
32
- mediaQueryList.addEventListener('change', onChange);
32
+ // addListener is deprecated but older version of safari still have not implemented addEventListener so adding check
33
+ if ('addEventListener' in mediaQueryList) {
34
+ mediaQueryList.addEventListener('change', onChange);
35
+ }
36
+ else {
37
+ mediaQueryList.addListener(onChange);
38
+ }
33
39
  setState(mediaQueryList.matches);
34
40
  return function () {
35
41
  mounted = false;
36
- mediaQueryList.removeEventListener('change', onChange);
42
+ if ('removeEventListener' in mediaQueryList) {
43
+ mediaQueryList.removeEventListener('change', onChange);
44
+ }
45
+ else {
46
+ mediaQueryList.removeListener(onChange);
47
+ }
37
48
  };
38
49
  }, [query]);
39
50
  return state;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function AlertSolid(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsx)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 14", "data-icon-name": "AlertSolid" }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "M7.063.012a6.994 6.994 0 1 0 6.994 6.994A6.996 6.996 0 0 0 7.063.012zm0 7.693a.701.701 0 0 1-.7-.699V4.21a.701.701 0 0 1 .7-.7.701.701 0 0 1 .7.7v2.797a.701.701 0 0 1-.7.7zm0 2.798a.701.701 0 0 1-.7-.7.701.701 0 0 1 .7-.699.701.701 0 0 1 .7.7.701.701 0 0 1-.7.699z" }, void 0) }), void 0));
8
10
  }
9
11
  exports.default = AlertSolid;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function Alert(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsxs)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 12 12", "data-icon-name": "Alert" }, props, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M5.904 6.5a.5.5 0 0 1-.5-.5V3.25a.5.5 0 1 1 1 0V6a.5.5 0 0 1-.5.5z" }, void 0), (0, jsx_runtime_1.jsx)("circle", { cx: "5.904", cy: "8.161", r: ".589" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M6 12c-3.308 0-6-2.69-6-6s2.692-6 6-6 6 2.692 6 6-2.691 6-6 6zM6 1C3.244 1 1 3.243 1 6s2.244 5 5 5 5-2.243 5-5-2.243-5-5-5z" }, void 0)] }), void 0));
8
10
  }
9
11
  exports.default = Alert;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function CalendarSolid(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsx)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 15 15", "data-icon-name": "CalendarSolid" }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "M12.4 1.6c.9 0 1.7.8 1.7 1.7v1.2H0V3.3c0-.9.8-1.7 1.7-1.7h.9V0h1.6v1.6h5.6V0h1.6v1.6h1zM0 13.4V6.1h14.1v7.3c0 .9-.8 1.6-1.7 1.6H1.7C.8 15 0 14.3 0 13.4z" }, void 0) }), void 0));
8
10
  }
9
11
  exports.default = CalendarSolid;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function ChevronDown(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsx)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 14", "data-icon-name": "ChevronDown" }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "M7 10.922a.84.84 0 01-.597-.248L.247 4.518a.843.843 0 111.194-1.192L7 8.884l5.56-5.558a.844.844 0 011.193 1.192l-6.156 6.156a.84.84 0 01-.597.248z" }, void 0) }), void 0));
8
10
  }
9
11
  exports.default = ChevronDown;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from '../types';
3
+ export default function ChevronLeft(props: IconProps): React.ReactElement;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
6
+ var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
7
+ function ChevronLeft(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
9
+ return ((0, jsx_runtime_1.jsx)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 14", "data-icon-name": "ChevronLeft" }, props, { className: isRTL ? [{ transform: 'scaleX(-1)' }, props.className] : props.className }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M10.693 13.728a.931.931 0 00-.001-1.316L5.282 7l5.41-5.41A.93.93 0 009.379.271h-.001l-6.07 6.07a.931.931 0 000 1.316l6.069 6.07a.931.931 0 001.316 0z" }, void 0) }), void 0));
10
+ }
11
+ exports.default = ChevronLeft;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from '../types';
3
+ export default function ChevronRight(props: IconProps): React.ReactElement;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
6
+ var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
7
+ function ChevronRight(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
9
+ return ((0, jsx_runtime_1.jsx)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 14", "data-icon-name": "ChevronRight" }, props, { className: isRTL ? [{ transform: 'scaleX(-1)' }, props.className] : props.className }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M3.307.272a.931.931 0 00.001 1.316L8.718 7l-5.41 5.41a.93.93 0 001.313 1.318h.001l6.07-6.07a.931.931 0 000-1.316L4.623.272a.931.931 0 00-1.316 0z" }, void 0) }), void 0));
10
+ }
11
+ exports.default = ChevronRight;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function Close(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsx)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 14", "data-icon-name": "Close" }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "M12.8 12.7c.3-.3.3-.8 0-1L8 7l4.6-4.7c.3-.3.3-.8 0-1.1-.3-.3-.8-.3-1.1 0L6.9 6 2.3 1.3C2 1 1.5 1 1.2 1.3s-.3.7 0 1L5.9 7l-4.7 4.7c-.3.3-.3.8 0 1.1.3.3.8.3 1 0l4.7-4.7 4.7 4.6c.3.3.8.3 1.2 0z" }, void 0) }), void 0));
8
10
  }
9
11
  exports.default = Close;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function ErrorClr(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsxs)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 14", "data-icon-name": "ErrorClr" }, props, { children: [(0, jsx_runtime_1.jsx)("path", { fill: "#FF6060", d: "M6.304 1.636c.385-.63 1.008-.63 1.391-.002l2.147 3.52 3.987 6.541c.385.63.097 1.142-.64 1.142H.81c-.737 0-1.024-.51-.639-1.142l6.133-10.06z" }, void 0), (0, jsx_runtime_1.jsx)("path", { fill: "#FFF", d: "M6.69 9.895h.843v.841H6.69zm0-4.624h.843v3.783H6.69z" }, void 0)] }), void 0));
8
10
  }
9
11
  exports.default = ErrorClr;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function ErrorSolid(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsx)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 11.77", "data-icon-name": "ErrorSolid" }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "M13.87 10.4 7.77.42a.9.9 0 0 0-1.54 0L.13 10.4a.9.9 0 0 0 .78 1.38h12.18a.9.9 0 0 0 .78-1.38zM6.49 3.44a.46.46 0 0 1 .51-.4.46.46 0 0 1 .5.4v2.83a.46.46 0 0 1-.5.4.46.46 0 0 1-.5-.4zM7 9.29a.76.76 0 1 1 .76-.76.76.76 0 0 1-.76.76z", fillRule: "evenodd" }, void 0) }), void 0));
8
10
  }
9
11
  exports.default = ErrorSolid;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function Error(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsxs)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 11.98", "data-icon-name": "Error" }, props, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M13.78 9.73L8.26.7a1.48 1.48 0 00-2.53 0L.22 9.73a1.48 1.48 0 001.26 2.25h11.04a1.48 1.48 0 001.26-2.25zm-1 1.2a.5.5 0 01-.26.06H1.48a.5.5 0 01-.42-.75l5.52-9.02A.5.5 0 017 1a.49.49 0 01.26.07.48.48 0 01.16.16l5.52 9.02a.5.5 0 01-.16.68z" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M7 7.6a.44.44 0 00.48-.37V4.55A.44.44 0 007 4.17a.44.44 0 00-.48.38v2.68A.44.44 0 007 7.6zM7 8.63a.72.72 0 10.72.72.72.72 0 00-.72-.72z" }, void 0)] }), void 0));
8
10
  }
9
11
  exports.default = Error;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function ImagePreview(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsxs)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 14", "data-icon-name": "ImagePreview" }, props, { children: [(0, jsx_runtime_1.jsx)("circle", { fillRule: "evenodd", clipRule: "evenodd", cx: "12.5", cy: "3.35", r: "1.5" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M9.33 14H0l3.87-5.5c.36-.52 1.29-.51 1.64 0L9.33 14zm1.52-.01l-1.52-2.18 1.2-1.4c.09-.13.25-.22.3-.19.11 0 .22.06.3.17L14 14h-3.15v-.01z" }, void 0)] }), void 0));
8
10
  }
9
11
  exports.default = ImagePreview;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function Info(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsx)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 14", "data-icon-name": "Info" }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "M9.627 11.36a.196.196 0 0 0-.245-.067c-.962.455-2.053.936-2.267.978a.189.189 0 0 1-.025-.029.256.256 0 0 1-.043-.157c0-.544.41-2.198 1.22-4.916.682-2.284.76-2.757.76-2.914a.742.742 0 0 0-.268-.592c-.166-.138-.4-.208-.692-.208-.488 0-1.052.185-1.727.566-.653.369-1.382.993-2.166 1.857a.196.196 0 0 0 .219.312c.275-.112 1.658-.678 1.86-.805.164-.104.307-.156.424-.156a.14.14 0 0 1 .01 0c.002.008.004.02.004.037 0 .119-.025.26-.073.418-1.179 3.819-1.751 6.16-1.751 7.156 0 .352.097.635.29.842.197.211.462.318.788.318.348 0 .77-.145 1.294-.444.506-.29 1.278-.925 2.36-1.944a.195.195 0 0 0 .028-.253zM9.589.297A.985.985 0 0 0 8.857 0c-.366 0-.684.144-.946.429a1.46 1.46 0 0 0-.389 1.021c0 .314.097.575.287.774a.96.96 0 0 0 .722.305c.35 0 .667-.153.94-.453a1.49 1.49 0 0 0 .406-1.033c0-.299-.097-.55-.288-.746z", fillRule: "evenodd", clipRule: "evenodd" }, void 0) }), void 0));
8
10
  }
9
11
  exports.default = Info;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function PlayVideo(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsxs)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 12 12", "data-icon-name": "PlayVideo" }, props, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M6 12c-3.309 0-6-2.691-6-6s2.691-6 6-6 6 2.691 6 6-2.691 6-6 6zM6 .5A5.506 5.506 0 00.5 6c0 3.032 2.467 5.5 5.5 5.5 3.032 0 5.5-2.468 5.5-5.5C11.5 2.967 9.032.5 6 .5z" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M4.624 3.906l3.533 2.04c.08.046.08.163 0 .21l-3.533 2.04a.121.121 0 01-.182-.106V4.011c0-.093.101-.152.182-.105z" }, void 0)] }), void 0));
8
10
  }
9
11
  exports.default = PlayVideo;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from '../types';
3
+ export default function ResetColor(props: IconProps): React.ReactElement;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
6
+ var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
7
+ function ResetColor(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
9
+ return ((0, jsx_runtime_1.jsx)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 12 12", "data-icon-name": "ResetColor" }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "M4.44444 1.66669L4.69634 1.30338C5.11546 0.698908 6.02178 0.738542 6.38652 1.3773L7.57013 3.45004C8.31387 4.7577 8.83652 6.0973 9.18519 7.22231L4.44444 1.66669ZM3.14308 4.28626L1.10565 1.99387C0.677217 1.51182 1.01942 0.749859 1.66434 0.749859C1.87784 0.749859 2.08116 0.841161 2.223 1.00074L10.8943 10.756C11.3227 11.238 10.9806 12 10.3357 12C10.1222 12 9.91885 11.9087 9.77701 11.7491L8.73097 10.5722C7.94302 11.4637 6.73598 12 5.6 12C3.68 12 1.6 10.5469 1.6 8.33438C1.6 6.89807 2.30094 5.71492 3.14308 4.28626Z" }, void 0) }), void 0));
10
+ }
11
+ exports.default = ResetColor;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function Search(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsx)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 12 12", "data-icon-name": "Search" }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "M11.854 11.149L7.75 7.037a4.32 4.32 0 00.946-2.68A4.356 4.356 0 004.348 0a4.357 4.357 0 000 8.713 4.299 4.299 0 002.7-.969l4.102 4.11a.496.496 0 00.704 0 .5.5 0 000-.705zM4.348 7.716a3.36 3.36 0 010-6.719 3.36 3.36 0 010 6.719z" }, void 0) }), void 0));
8
10
  }
9
11
  exports.default = Search;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function Tick(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsx)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 14", "data-icon-name": "Tick" }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "M4.792 12.037a.935.935 0 0 1-.657-.269L.28 7.975A.936.936 0 0 1 1.593 6.64L4.79 9.784l7.615-7.556a.936.936 0 0 1 1.32 1.329l-8.272 8.208a.935.935 0 0 1-.66.272z" }, void 0) }), void 0));
8
10
  }
9
11
  exports.default = Tick;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function TickCircleSolid(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsx)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 14", "data-icon-name": "TickCircleSolid" }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "m9.53 4.44-3.64 3.6-1.42-1.4a.72.72 0 1 0-1 1.03l1.92 1.9a.72.72 0 0 0 1.01 0l4.14-4.11a.72.72 0 1 0-1.01-1.02zM7 0a7 7 0 1 1-7 7 7 7 0 0 1 7-7z", fillRule: "evenodd" }, void 0) }), void 0));
8
10
  }
9
11
  exports.default = TickCircleSolid;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function User(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsxs)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 14", "data-icon-name": "User" }, props, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M13.823 13.946c.003-.081.024-.159.024-.24a6.847 6.847 0 10-13.694-.001c0 .082.021.16.024.241z" }, void 0), (0, jsx_runtime_1.jsx)("circle", { cx: "7", cy: "2.889", r: "2.835" }, void 0)] }), void 0));
8
10
  }
9
11
  exports.default = User;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var style_1 = require("../../style");
5
6
  var icon_1 = (0, tslib_1.__importDefault)(require("../icon"));
6
7
  function VideoNonPlayable(props) {
8
+ var _a = (0, style_1.useStyle)(), theme = _a.theme, isRTL = _a.isRTL;
7
9
  return ((0, jsx_runtime_1.jsx)(icon_1.default, (0, tslib_1.__assign)({ viewBox: "0 0 14 14", "data-icon-name": "VideoNonPlayable" }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "M1 3.72v6.56a.092.092 0 00.09.1h.75l-.57 1h-.18A1.095 1.095 0 010 10.28V3.72a1.095 1.095 0 011.09-1.1h5.17l-.57 1h-4.6a.092.092 0 00-.09.1zm13 5.55a.734.734 0 01-.73.73.721.721 0 01-.34-.09L10.47 8.8v1.48a1.095 1.095 0 01-1.09 1.1H3.65l-.91 1.63a.59.59 0 01-.52.31.603.603 0 01-.29-.08.578.578 0 01-.21-.2l.94-1.66.57-1 3.84-6.76.57-1L8.62.9a.191.191 0 00.03-.08.67.67 0 01.18.07.595.595 0 01.23.81l-.51.92h.83a1.095 1.095 0 011.09 1.1v1.46l2.45-1.12a.707.707 0 01.34-.08.721.721 0 01.73.73zM9.48 3.72a.1.1 0 00-.1-.1H7.99l-3.78 6.76h5.17a.1.1 0 00.1-.1zM13 5.13l-2.5 1.14v1.45L13 8.85z" }, void 0) }), void 0));
8
10
  }
9
11
  exports.default = VideoNonPlayable;
package/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  export * from './classNames';
2
2
  export * from './spacewebProvider';
3
3
  export * from './types';
4
+ import rtlCSSJS from 'rtl-css-js';
5
+ export { rtlCSSJS };
package/index.js CHANGED
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rtlCSSJS = void 0;
3
4
  var tslib_1 = require("tslib");
4
5
  (0, tslib_1.__exportStar)(require("./classNames"), exports);
5
6
  (0, tslib_1.__exportStar)(require("./spacewebProvider"), exports);
6
7
  (0, tslib_1.__exportStar)(require("./types"), exports);
8
+ var rtl_css_js_1 = (0, tslib_1.__importDefault)(require("rtl-css-js"));
9
+ exports.rtlCSSJS = rtl_css_js_1.default;