baseui 12.0.0 → 12.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (655) hide show
  1. package/accordion/accordion.js +4 -2
  2. package/accordion/accordion.js.flow +1 -1
  3. package/accordion/panel.js +3 -2
  4. package/accordion/stateful-panel-container.js +1 -0
  5. package/accordion/styled-components.js +8 -1
  6. package/accordion/types.d.ts +2 -2
  7. package/app-nav-bar/app-nav-bar.js +4 -2
  8. package/app-nav-bar/mobile-menu.js +2 -1
  9. package/app-nav-bar/styled-components.js +19 -1
  10. package/app-nav-bar/types.d.ts +2 -2
  11. package/app-nav-bar/user-menu.js +1 -1
  12. package/aspect-ratio-box/aspect-ratio-box-body.d.ts +1 -1
  13. package/aspect-ratio-box/aspect-ratio-box.js +3 -1
  14. package/aspect-ratio-box/types.d.ts +1 -1
  15. package/avatar/styled-components.js +4 -1
  16. package/badge/styled-components.js +16 -11
  17. package/badge/styled-components.js.flow +4 -4
  18. package/badge/types.d.ts +2 -2
  19. package/banner/index.d.ts +1 -1
  20. package/banner/styled-components.js +25 -12
  21. package/banner/types.d.ts +15 -15
  22. package/banner/types.js.flow +13 -11
  23. package/block/block.js +3 -1
  24. package/block/styled-components.js +2 -1
  25. package/block/types.d.ts +3 -4
  26. package/breadcrumbs/styled-components.js +7 -2
  27. package/button/styled-components.js +7 -0
  28. package/button/styled-components.js.flow +2 -0
  29. package/button/types.d.ts +4 -5
  30. package/button-group/stateful-button-group.js +1 -0
  31. package/button-group/stateful-container.js +3 -1
  32. package/button-group/styled-components.js +2 -1
  33. package/button-group/types.d.ts +4 -5
  34. package/card/styled-components.js +11 -4
  35. package/checkbox/styled-components.js +10 -4
  36. package/checkbox/styled-components.js.flow +1 -1
  37. package/checkbox/types.d.ts +36 -37
  38. package/combobox/combobox.js +78 -71
  39. package/combobox/styled-components.js +5 -1
  40. package/combobox/types.d.ts +4 -5
  41. package/data-table/column-anchor.js +3 -0
  42. package/data-table/column-datetime.js +10 -4
  43. package/data-table/column-numerical.js +4 -4
  44. package/data-table/column-string.js +3 -0
  45. package/data-table/column.js +6 -1
  46. package/data-table/data-table.js +6 -3
  47. package/data-table/filter-menu.js +2 -1
  48. package/data-table/header-cell.js +43 -34
  49. package/data-table/locale.d.ts +4 -0
  50. package/data-table/locale.js +3 -1
  51. package/data-table/locale.js.flow +5 -0
  52. package/data-table/measure-column-widths.js +5 -4
  53. package/data-table/stateful-container.js +2 -1
  54. package/data-table/stateful-data-table.js +4 -4
  55. package/data-table/types.d.ts +4 -5
  56. package/datepicker/calendar-header.js +1 -0
  57. package/datepicker/calendar.js +2 -0
  58. package/datepicker/datepicker.js +2 -0
  59. package/datepicker/day.js +2 -1
  60. package/datepicker/index.d.ts +1 -1
  61. package/datepicker/index.js +7 -0
  62. package/datepicker/index.js.flow +1 -1
  63. package/datepicker/stateful-calendar.js +7 -3
  64. package/datepicker/stateful-container.js +2 -0
  65. package/datepicker/stateful-datepicker.js +9 -4
  66. package/datepicker/styled-components.js +27 -4
  67. package/datepicker/types.d.ts +2 -2
  68. package/datepicker/utils/date-helpers.js +2 -1
  69. package/datepicker/utils/index.js +2 -1
  70. package/divider/styled-components.js +4 -3
  71. package/divider/types.d.ts +1 -1
  72. package/dnd-list/stateful-list-container.js +1 -0
  73. package/dnd-list/styled-components.js +7 -0
  74. package/dnd-list/types.d.ts +2 -2
  75. package/drawer/constants.js +1 -0
  76. package/drawer/drawer.js +2 -3
  77. package/drawer/drawer.js.flow +1 -3
  78. package/drawer/styled-components.js +9 -2
  79. package/drawer/types.d.ts +2 -2
  80. package/es/accordion/accordion.js +3 -3
  81. package/es/accordion/panel.js +3 -2
  82. package/es/accordion/stateful-panel-container.js +1 -0
  83. package/es/accordion/styled-components.js +8 -1
  84. package/es/app-nav-bar/app-nav-bar.js +6 -2
  85. package/es/app-nav-bar/mobile-menu.js +4 -2
  86. package/es/app-nav-bar/styled-components.js +19 -1
  87. package/es/app-nav-bar/user-menu.js +1 -1
  88. package/es/aspect-ratio-box/aspect-ratio-box.js +3 -1
  89. package/es/avatar/styled-components.js +4 -1
  90. package/es/badge/styled-components.js +11 -6
  91. package/es/banner/styled-components.js +16 -3
  92. package/es/block/block.js +3 -1
  93. package/es/block/styled-components.js +2 -1
  94. package/es/breadcrumbs/styled-components.js +7 -2
  95. package/es/button/button.js +8 -0
  96. package/es/button/styled-components.js +7 -0
  97. package/es/button-group/stateful-button-group.js +1 -0
  98. package/es/button-group/stateful-container.js +3 -1
  99. package/es/button-group/styled-components.js +2 -1
  100. package/es/card/index.js +2 -1
  101. package/es/card/styled-components.js +12 -4
  102. package/es/checkbox/index.js +1 -0
  103. package/es/checkbox/stateful-checkbox-container.js +3 -0
  104. package/es/checkbox/styled-components.js +10 -4
  105. package/es/combobox/combobox.js +76 -69
  106. package/es/combobox/styled-components.js +5 -1
  107. package/es/data-table/column-anchor.js +3 -0
  108. package/es/data-table/column-datetime.js +12 -5
  109. package/es/data-table/column-numerical.js +5 -4
  110. package/es/data-table/column-string.js +3 -0
  111. package/es/data-table/column.js +4 -1
  112. package/es/data-table/data-table.js +6 -3
  113. package/es/data-table/filter-menu.js +2 -1
  114. package/es/data-table/header-cell.js +41 -34
  115. package/es/data-table/locale.js +3 -1
  116. package/es/data-table/measure-column-widths.js +5 -4
  117. package/es/data-table/stateful-container.js +2 -1
  118. package/es/data-table/stateful-data-table.js +4 -4
  119. package/es/datepicker/calendar-header.js +1 -0
  120. package/es/datepicker/calendar.js +2 -0
  121. package/es/datepicker/datepicker.js +3 -1
  122. package/es/datepicker/day.js +2 -1
  123. package/es/datepicker/index.js +1 -1
  124. package/es/datepicker/stateful-calendar.js +4 -1
  125. package/es/datepicker/stateful-container.js +2 -0
  126. package/es/datepicker/stateful-datepicker.js +5 -1
  127. package/es/datepicker/styled-components.js +26 -3
  128. package/es/datepicker/utils/date-helpers.js +2 -1
  129. package/es/datepicker/utils/index.js +2 -1
  130. package/es/divider/styled-components.js +3 -2
  131. package/es/dnd-list/stateful-list-container.js +1 -0
  132. package/es/dnd-list/styled-components.js +7 -0
  133. package/es/drawer/constants.js +1 -0
  134. package/es/drawer/drawer.js +2 -5
  135. package/es/drawer/styled-components.js +9 -2
  136. package/es/file-uploader/file-uploader.js +82 -78
  137. package/es/file-uploader/styled-components.js +6 -1
  138. package/es/flex-grid/flex-grid-item.js +5 -6
  139. package/es/flex-grid/flex-grid.js +4 -1
  140. package/es/form-control/styled-components.js +6 -1
  141. package/es/header-navigation/styled-components.js +4 -1
  142. package/es/helper/styled-components.js +3 -1
  143. package/es/helpers/overrides.js +9 -5
  144. package/es/icon/build-icons.js +0 -2
  145. package/es/icon/index.js +1 -1
  146. package/es/icon/omit-dollar-prefixed-keys.js +1 -0
  147. package/es/icon/styled-components.js +2 -1
  148. package/es/input/base-input.js +9 -12
  149. package/es/input/input.js +9 -13
  150. package/es/input/masked-input.js +9 -2
  151. package/es/input/stateful-container.js +1 -0
  152. package/es/input/styled-components.js +18 -7
  153. package/es/input/utils.js +2 -0
  154. package/es/layer/layer.js +24 -0
  155. package/es/layer/layers-manager.js +91 -1
  156. package/es/layout-grid/styled-components.js +3 -0
  157. package/es/link/index.js +2 -1
  158. package/es/link/styled-components.js +2 -1
  159. package/es/list/list-heading.js +21 -17
  160. package/es/list/list-item.js +2 -1
  161. package/es/list/styled-components.js +17 -1
  162. package/es/locale/es_AR.js +3 -1
  163. package/es/locale/index.js +2 -1
  164. package/es/locale/tr_TR.js +3 -1
  165. package/es/map-marker/constants.js +14 -0
  166. package/es/map-marker/fixed-marker.js +1 -0
  167. package/es/map-marker/index.js +2 -1
  168. package/es/map-marker/location-puck.js +142 -0
  169. package/es/map-marker/pin-head.js +1 -0
  170. package/es/map-marker/styled-components.js +86 -2
  171. package/es/menu/index.js +1 -1
  172. package/es/menu/menu.js +14 -4
  173. package/es/menu/option-profile.js +1 -0
  174. package/es/menu/stateful-container.js +10 -0
  175. package/es/menu/styled-components.js +32 -2
  176. package/es/message-card/constants.js +19 -0
  177. package/es/message-card/index.js +10 -0
  178. package/es/message-card/message-card.js +114 -0
  179. package/es/message-card/styled-components.js +108 -0
  180. package/es/message-card/types.js +1 -0
  181. package/es/message-card/utils.js +27 -0
  182. package/es/modal/modal.js +4 -6
  183. package/es/modal/styled-components.js +8 -1
  184. package/es/pagination/stateful-container.js +1 -0
  185. package/es/pagination/stateful-pagination.js +1 -0
  186. package/es/pagination/styled-components.js +4 -1
  187. package/es/payment-card/styled-components.js +2 -1
  188. package/es/phone-input/base-country-picker.js +3 -1
  189. package/es/phone-input/country-select-dropdown.js +1 -0
  190. package/es/phone-input/styled-components.js +15 -4
  191. package/es/pin-code/styled-components.js +4 -1
  192. package/es/popover/popover.js +9 -11
  193. package/es/popover/stateful-container.js +4 -1
  194. package/es/popover/styled-components.js +9 -4
  195. package/es/progress-bar/progressbar-rounded.js +1 -0
  196. package/es/progress-bar/styled-components.js +14 -2
  197. package/es/progress-steps/progress-steps.js +2 -1
  198. package/es/progress-steps/styled-components.js +20 -12
  199. package/es/radio/stateful-radiogroup-container.js +3 -0
  200. package/es/radio/styled-components.js +10 -3
  201. package/es/rating/emoticon-rating.js +2 -1
  202. package/es/rating/star-rating.js +2 -1
  203. package/es/rating/styled-components.js +5 -1
  204. package/es/select/autosize-input.js +2 -3
  205. package/es/select/default-props.js +1 -1
  206. package/es/select/dropdown.js +2 -1
  207. package/es/select/multi-value.js +2 -1
  208. package/es/select/select-component.js +10 -10
  209. package/es/select/single-select.js +2 -2
  210. package/es/select/stateful-select-container.js +2 -0
  211. package/es/select/styled-components.js +33 -6
  212. package/es/select/value.js +3 -4
  213. package/es/side-navigation/index.js +2 -1
  214. package/es/side-navigation/nav-item.js +1 -0
  215. package/es/side-navigation/nav.js +1 -1
  216. package/es/side-navigation/stateful-container.js +1 -0
  217. package/es/side-navigation/styled-components.js +8 -2
  218. package/es/skeleton/styled-components.js +3 -1
  219. package/es/slider/slider.js +4 -2
  220. package/es/slider/stateful-slider-container.js +2 -0
  221. package/es/slider/styled-components.js +9 -0
  222. package/es/snackbar/snackbar-element.js +1 -0
  223. package/es/snackbar/styled-components.js +9 -1
  224. package/es/spinner/styled-components.js +2 -1
  225. package/es/styles/__mocks__/styled.js +8 -5
  226. package/es/styles/styled.js +7 -6
  227. package/es/table/index.js +2 -1
  228. package/es/table/styled-components.js +13 -1
  229. package/es/table-grid/styled-components.js +4 -1
  230. package/es/table-semantic/styled-components.js +20 -3
  231. package/es/tabs/stateful-tabs.js +1 -0
  232. package/es/tabs/styled-components.js +5 -1
  233. package/es/tabs/tabs.js +4 -2
  234. package/es/tabs-motion/styled-components.js +32 -2
  235. package/es/tabs-motion/tab.js +1 -0
  236. package/es/tabs-motion/tabs.js +31 -6
  237. package/es/tag/styled-components.js +32 -1
  238. package/es/tag/tag.js +6 -2
  239. package/es/textarea/styled-components.js +20 -12
  240. package/es/textarea/textarea.js +13 -15
  241. package/es/themes/dark-theme/color-component-tokens.js +1 -1
  242. package/es/themes/light-theme/color-component-tokens.js +1 -1
  243. package/es/themes/move-theme/typography.js +36 -0
  244. package/es/themes/shared/borders.js +8 -3
  245. package/es/themes/shared/typography.js +10 -10
  246. package/es/timezonepicker/timezone-picker.js +5 -1
  247. package/es/timezonepicker/tzdata.js +1 -1
  248. package/es/timezonepicker/update-tzdata.js +11 -6
  249. package/es/toast/styled-components.js +5 -1
  250. package/es/toast/toaster.js +0 -2
  251. package/es/tokens/colors.js +24 -0
  252. package/es/tooltip/styled-components.js +4 -1
  253. package/es/tree-view/index.js +2 -1
  254. package/es/tree-view/styled-components.js +7 -1
  255. package/es/tree-view/tree-view.js +3 -1
  256. package/es/types/globals.d.js +12 -0
  257. package/es/utils/deep-merge.js +0 -5
  258. package/es/utils/deprecated-component.js +1 -0
  259. package/es/utils/focusVisible.js +4 -2
  260. package/esm/accordion/accordion.js +4 -4
  261. package/esm/accordion/panel.js +3 -2
  262. package/esm/accordion/stateful-panel-container.js +1 -0
  263. package/esm/accordion/styled-components.js +8 -1
  264. package/esm/app-nav-bar/app-nav-bar.js +4 -2
  265. package/esm/app-nav-bar/mobile-menu.js +4 -2
  266. package/esm/app-nav-bar/styled-components.js +19 -1
  267. package/esm/app-nav-bar/user-menu.js +1 -1
  268. package/esm/aspect-ratio-box/aspect-ratio-box.js +3 -1
  269. package/esm/avatar/styled-components.js +4 -1
  270. package/esm/badge/styled-components.js +11 -6
  271. package/esm/banner/styled-components.js +16 -3
  272. package/esm/block/block.js +3 -1
  273. package/esm/block/styled-components.js +2 -1
  274. package/esm/breadcrumbs/styled-components.js +7 -2
  275. package/esm/button/styled-components.js +7 -0
  276. package/esm/button-group/stateful-button-group.js +1 -0
  277. package/esm/button-group/stateful-container.js +3 -1
  278. package/esm/button-group/styled-components.js +2 -1
  279. package/esm/card/index.js +2 -1
  280. package/esm/card/styled-components.js +12 -4
  281. package/esm/checkbox/index.js +1 -0
  282. package/esm/checkbox/styled-components.js +10 -4
  283. package/esm/combobox/combobox.js +78 -71
  284. package/esm/combobox/styled-components.js +5 -1
  285. package/esm/data-table/column-anchor.js +3 -0
  286. package/esm/data-table/column-datetime.js +12 -5
  287. package/esm/data-table/column-numerical.js +4 -4
  288. package/esm/data-table/column-string.js +3 -0
  289. package/esm/data-table/column.js +5 -1
  290. package/esm/data-table/data-table.js +6 -3
  291. package/esm/data-table/filter-menu.js +2 -1
  292. package/esm/data-table/header-cell.js +42 -34
  293. package/esm/data-table/locale.js +3 -1
  294. package/esm/data-table/measure-column-widths.js +5 -4
  295. package/esm/data-table/stateful-container.js +2 -1
  296. package/esm/data-table/stateful-data-table.js +4 -4
  297. package/esm/datepicker/calendar-header.js +1 -0
  298. package/esm/datepicker/calendar.js +2 -0
  299. package/esm/datepicker/datepicker.js +3 -1
  300. package/esm/datepicker/day.js +2 -1
  301. package/esm/datepicker/index.js +1 -1
  302. package/esm/datepicker/stateful-calendar.js +7 -3
  303. package/esm/datepicker/stateful-container.js +2 -0
  304. package/esm/datepicker/stateful-datepicker.js +9 -4
  305. package/esm/datepicker/styled-components.js +26 -3
  306. package/esm/datepicker/utils/date-helpers.js +2 -1
  307. package/esm/datepicker/utils/index.js +2 -1
  308. package/esm/divider/styled-components.js +3 -2
  309. package/esm/dnd-list/stateful-list-container.js +1 -0
  310. package/esm/dnd-list/styled-components.js +7 -0
  311. package/esm/drawer/constants.js +1 -0
  312. package/esm/drawer/drawer.js +2 -5
  313. package/esm/drawer/styled-components.js +9 -2
  314. package/esm/file-uploader/file-uploader.js +87 -83
  315. package/esm/file-uploader/styled-components.js +6 -1
  316. package/esm/flex-grid/flex-grid-item.js +4 -5
  317. package/esm/flex-grid/flex-grid.js +7 -3
  318. package/esm/form-control/styled-components.js +6 -1
  319. package/esm/header-navigation/styled-components.js +4 -1
  320. package/esm/helper/styled-components.js +3 -1
  321. package/esm/helpers/overrides.js +9 -5
  322. package/esm/icon/build-icons.js +0 -2
  323. package/esm/icon/index.js +1 -1
  324. package/esm/icon/omit-dollar-prefixed-keys.js +1 -0
  325. package/esm/icon/styled-components.js +2 -1
  326. package/esm/input/base-input.js +9 -12
  327. package/esm/input/input.js +9 -13
  328. package/esm/input/masked-input.js +5 -2
  329. package/esm/input/stateful-container.js +1 -0
  330. package/esm/input/styled-components.js +18 -7
  331. package/esm/input/utils.js +2 -0
  332. package/esm/layer/layer.js +24 -0
  333. package/esm/layer/layers-manager.js +97 -1
  334. package/esm/layout-grid/styled-components.js +3 -0
  335. package/esm/link/index.js +2 -1
  336. package/esm/link/styled-components.js +2 -1
  337. package/esm/list/list-heading.js +21 -17
  338. package/esm/list/list-item.js +2 -1
  339. package/esm/list/styled-components.js +17 -1
  340. package/esm/locale/es_AR.js +3 -1
  341. package/esm/locale/index.js +4 -1
  342. package/esm/locale/tr_TR.js +3 -1
  343. package/esm/map-marker/constants.js +12 -2
  344. package/esm/map-marker/index.js +2 -1
  345. package/esm/map-marker/location-puck.js +199 -0
  346. package/esm/map-marker/styled-components.js +82 -2
  347. package/esm/menu/index.js +1 -1
  348. package/esm/menu/menu.js +16 -4
  349. package/esm/menu/option-profile.js +1 -0
  350. package/esm/menu/stateful-container.js +1 -0
  351. package/esm/menu/styled-components.js +38 -6
  352. package/esm/message-card/constants.js +20 -0
  353. package/esm/message-card/index.js +10 -0
  354. package/esm/message-card/message-card.js +168 -0
  355. package/esm/message-card/styled-components.js +116 -0
  356. package/esm/message-card/types.js +1 -0
  357. package/esm/message-card/utils.js +26 -0
  358. package/esm/modal/modal.js +4 -6
  359. package/esm/modal/styled-components.js +8 -1
  360. package/esm/pagination/stateful-container.js +1 -0
  361. package/esm/pagination/stateful-pagination.js +1 -0
  362. package/esm/pagination/styled-components.js +4 -1
  363. package/esm/payment-card/styled-components.js +2 -1
  364. package/esm/phone-input/base-country-picker.js +3 -1
  365. package/esm/phone-input/country-select-dropdown.js +1 -0
  366. package/esm/phone-input/styled-components.js +20 -8
  367. package/esm/pin-code/styled-components.js +4 -1
  368. package/esm/popover/popover.js +9 -11
  369. package/esm/popover/stateful-container.js +4 -1
  370. package/esm/popover/styled-components.js +9 -4
  371. package/esm/progress-bar/progressbar-rounded.js +1 -0
  372. package/esm/progress-bar/styled-components.js +14 -2
  373. package/esm/progress-steps/progress-steps.js +2 -1
  374. package/esm/progress-steps/styled-components.js +28 -19
  375. package/esm/radio/styled-components.js +10 -3
  376. package/esm/rating/emoticon-rating.js +2 -1
  377. package/esm/rating/star-rating.js +2 -1
  378. package/esm/rating/styled-components.js +5 -1
  379. package/esm/select/autosize-input.js +2 -3
  380. package/esm/select/default-props.js +1 -1
  381. package/esm/select/dropdown.js +2 -1
  382. package/esm/select/multi-value.js +2 -1
  383. package/esm/select/select-component.js +10 -10
  384. package/esm/select/single-select.js +2 -2
  385. package/esm/select/styled-components.js +33 -6
  386. package/esm/select/value.js +3 -4
  387. package/esm/side-navigation/index.js +2 -1
  388. package/esm/side-navigation/nav-item.js +1 -0
  389. package/esm/side-navigation/nav.js +1 -1
  390. package/esm/side-navigation/stateful-container.js +1 -0
  391. package/esm/side-navigation/styled-components.js +13 -6
  392. package/esm/skeleton/styled-components.js +3 -1
  393. package/esm/slider/slider.js +4 -2
  394. package/esm/slider/styled-components.js +9 -0
  395. package/esm/snackbar/snackbar-element.js +1 -0
  396. package/esm/snackbar/styled-components.js +9 -1
  397. package/esm/spinner/styled-components.js +2 -1
  398. package/esm/styles/__mocks__/styled.js +8 -5
  399. package/esm/styles/styled.js +7 -6
  400. package/esm/table/index.js +2 -1
  401. package/esm/table/styled-components.js +13 -1
  402. package/esm/table-grid/styled-components.js +4 -1
  403. package/esm/table-semantic/styled-components.js +20 -3
  404. package/esm/tabs/stateful-tabs.js +1 -0
  405. package/esm/tabs/styled-components.js +5 -1
  406. package/esm/tabs/tabs.js +4 -2
  407. package/esm/tabs-motion/styled-components.js +68 -40
  408. package/esm/tabs-motion/tab.js +1 -0
  409. package/esm/tabs-motion/tabs.js +87 -58
  410. package/esm/tag/styled-components.js +5 -1
  411. package/esm/tag/tag.js +4 -2
  412. package/esm/textarea/styled-components.js +11 -6
  413. package/esm/textarea/textarea.js +13 -15
  414. package/esm/themes/dark-theme/color-component-tokens.js +1 -1
  415. package/esm/themes/light-theme/color-component-tokens.js +1 -1
  416. package/esm/themes/move-theme/typography.js +36 -0
  417. package/esm/themes/shared/borders.js +8 -3
  418. package/esm/themes/shared/typography.js +10 -10
  419. package/esm/timezonepicker/timezone-picker.js +6 -2
  420. package/esm/timezonepicker/tzdata.js +1 -1
  421. package/esm/timezonepicker/update-tzdata.js +51 -39
  422. package/esm/toast/styled-components.js +5 -1
  423. package/esm/toast/toaster.js +0 -2
  424. package/esm/tokens/colors.js +24 -0
  425. package/esm/tooltip/styled-components.js +4 -1
  426. package/esm/tree-view/index.js +2 -1
  427. package/esm/tree-view/styled-components.js +7 -1
  428. package/esm/tree-view/tree-view.js +3 -1
  429. package/esm/types/globals.d.js +12 -0
  430. package/esm/utils/deep-merge.js +0 -5
  431. package/esm/utils/deprecated-component.js +1 -0
  432. package/esm/utils/focusVisible.js +4 -2
  433. package/file-uploader/file-uploader.js +87 -83
  434. package/file-uploader/styled-components.js +6 -1
  435. package/flex-grid/flex-grid-item.d.ts +1 -1
  436. package/flex-grid/flex-grid-item.js +6 -8
  437. package/flex-grid/flex-grid.js +7 -3
  438. package/flex-grid/types.d.ts +1 -1
  439. package/form-control/styled-components.js +6 -1
  440. package/form-control/types.d.ts +1 -1
  441. package/header-navigation/styled-components.js +4 -1
  442. package/heading/types.d.ts +1 -1
  443. package/helper/styled-components.js +3 -1
  444. package/helpers/overrides.js +8 -3
  445. package/helpers/overrides.js.flow +1 -1
  446. package/helpers/types.d.ts +1 -1
  447. package/icon/build-icons.js +0 -2
  448. package/icon/build-icons.js.flow +0 -1
  449. package/icon/index.d.ts +1 -1
  450. package/icon/index.js +8 -1
  451. package/icon/index.js.flow +1 -1
  452. package/icon/omit-dollar-prefixed-keys.js +1 -0
  453. package/icon/styled-components.js +2 -1
  454. package/icon/types.d.ts +1 -1
  455. package/input/base-input.js +8 -12
  456. package/input/base-input.js.flow +4 -8
  457. package/input/input.js +9 -13
  458. package/input/input.js.flow +5 -9
  459. package/input/masked-input.js +5 -2
  460. package/input/stateful-container.js +1 -0
  461. package/input/styled-components.js +18 -7
  462. package/input/styled-components.js.flow +9 -2
  463. package/input/types.d.ts +16 -14
  464. package/input/types.js.flow +3 -0
  465. package/input/utils.js +2 -0
  466. package/layer/layer.js +24 -0
  467. package/layer/layer.js.flow +25 -0
  468. package/layer/layers-manager.d.ts +8 -0
  469. package/layer/layers-manager.js +97 -1
  470. package/layer/layers-manager.js.flow +84 -1
  471. package/layer/types.d.ts +23 -2
  472. package/layer/types.js.flow +22 -1
  473. package/layout-grid/styled-components.js +3 -0
  474. package/layout-grid/types.d.ts +2 -2
  475. package/link/index.js +2 -1
  476. package/link/styled-components.js +2 -1
  477. package/list/list-heading.js +21 -17
  478. package/list/list-item.js +2 -1
  479. package/list/styled-components.js +17 -1
  480. package/list/types.d.ts +2 -2
  481. package/locale/en_US.d.ts +1 -1
  482. package/locale/es_AR.d.ts +1 -1
  483. package/locale/es_AR.js +3 -1
  484. package/locale/index.js +4 -1
  485. package/locale/tr_TR.d.ts +1 -1
  486. package/locale/tr_TR.js +3 -1
  487. package/map-marker/constants.d.ts +14 -0
  488. package/map-marker/constants.js +16 -3
  489. package/map-marker/constants.js.flow +17 -0
  490. package/map-marker/index.d.ts +2 -1
  491. package/map-marker/index.js +24 -1
  492. package/map-marker/index.js.flow +5 -3
  493. package/map-marker/location-puck.d.ts +4 -0
  494. package/map-marker/location-puck.js +211 -0
  495. package/map-marker/location-puck.js.flow +18 -0
  496. package/map-marker/styled-components.d.ts +17 -1
  497. package/map-marker/styled-components.js +88 -2
  498. package/map-marker/styled-components.js.flow +58 -0
  499. package/map-marker/types.d.ts +33 -5
  500. package/map-marker/types.js.flow +37 -3
  501. package/menu/index.d.ts +2 -3
  502. package/menu/index.js +8 -1
  503. package/menu/index.js.flow +1 -0
  504. package/menu/menu.js +15 -3
  505. package/menu/menu.js.flow +11 -1
  506. package/menu/option-profile.js +1 -0
  507. package/menu/stateful-container.js +1 -0
  508. package/menu/styled-components.d.ts +1 -0
  509. package/menu/styled-components.js +40 -7
  510. package/menu/styled-components.js.flow +13 -0
  511. package/menu/types.d.ts +13 -13
  512. package/menu/types.js.flow +1 -0
  513. package/message-card/constants.d.ts +12 -0
  514. package/message-card/constants.js +25 -0
  515. package/message-card/index.d.ts +4 -0
  516. package/message-card/index.js +60 -0
  517. package/message-card/index.js.flow +72 -0
  518. package/message-card/message-card.d.ts +4 -0
  519. package/message-card/message-card.js +184 -0
  520. package/message-card/package.json +4 -0
  521. package/message-card/styled-components.d.ts +14 -0
  522. package/message-card/styled-components.js +124 -0
  523. package/message-card/types.d.ts +27 -0
  524. package/message-card/types.js +5 -0
  525. package/message-card/utils.d.ts +1 -0
  526. package/message-card/utils.js +36 -0
  527. package/modal/modal.js +4 -4
  528. package/modal/modal.js.flow +1 -3
  529. package/modal/styled-components.js +8 -1
  530. package/modal/types.d.ts +2 -2
  531. package/package.json +10 -12
  532. package/pagination/stateful-container.js +1 -0
  533. package/pagination/stateful-pagination.js +1 -0
  534. package/pagination/styled-components.js +4 -1
  535. package/pagination/types.d.ts +2 -2
  536. package/payment-card/styled-components.js +2 -1
  537. package/phone-input/base-country-picker.js +3 -1
  538. package/phone-input/country-select-dropdown.js +1 -0
  539. package/phone-input/styled-components.js +21 -9
  540. package/phone-input/types.d.ts +5 -6
  541. package/pin-code/styled-components.js +4 -1
  542. package/pin-code/types.d.ts +2 -2
  543. package/popover/popover.js +9 -11
  544. package/popover/popover.js.flow +2 -12
  545. package/popover/stateful-container.js +5 -1
  546. package/popover/styled-components.js +12 -9
  547. package/popover/types.d.ts +2 -2
  548. package/progress-bar/progressbar-rounded.js +1 -0
  549. package/progress-bar/styled-components.d.ts +4 -1
  550. package/progress-bar/styled-components.js +14 -2
  551. package/progress-bar/types.d.ts +2 -2
  552. package/progress-steps/progress-steps.js +2 -1
  553. package/progress-steps/styled-components.js +28 -19
  554. package/radio/styled-components.js +10 -3
  555. package/radio/types.d.ts +19 -20
  556. package/rating/emoticon-rating.js +2 -1
  557. package/rating/star-rating.js +2 -1
  558. package/rating/styled-components.js +5 -1
  559. package/select/autosize-input.js +2 -1
  560. package/select/autosize-input.js.flow +1 -1
  561. package/select/default-props.js +1 -1
  562. package/select/dropdown.js +2 -1
  563. package/select/multi-value.js +1 -0
  564. package/select/select-component.d.ts +1 -1
  565. package/select/select-component.js +9 -7
  566. package/select/select-component.js.flow +1 -1
  567. package/select/single-select.d.ts +2 -2
  568. package/select/single-select.js +2 -2
  569. package/select/styled-components.js +33 -6
  570. package/select/styled-components.js.flow +25 -5
  571. package/select/types.d.ts +5 -6
  572. package/select/value.js +2 -3
  573. package/side-navigation/nav-item.js +1 -0
  574. package/side-navigation/nav.js +1 -1
  575. package/side-navigation/stateful-container.js +1 -0
  576. package/side-navigation/styled-components.js +13 -6
  577. package/side-navigation/types.d.ts +4 -4
  578. package/skeleton/styled-components.js +3 -1
  579. package/slider/slider.js +4 -2
  580. package/slider/styled-components.js +9 -0
  581. package/slider/types.d.ts +1 -1
  582. package/snackbar/snackbar-element.js +1 -0
  583. package/snackbar/styled-components.js +9 -1
  584. package/snackbar/types.d.ts +3 -4
  585. package/spinner/styled-components.js +2 -1
  586. package/spinner/types.d.ts +1 -1
  587. package/styles/__mocks__/styled.js +8 -3
  588. package/styles/styled.d.ts +1 -1
  589. package/styles/styled.js +7 -6
  590. package/table/styled-components.js +13 -1
  591. package/table/types.d.ts +2 -2
  592. package/table-grid/styled-components.js +4 -1
  593. package/table-semantic/styled-components.js +20 -3
  594. package/table-semantic/types.d.ts +2 -2
  595. package/tabs/stateful-tabs.js +1 -0
  596. package/tabs/styled-components.js +5 -1
  597. package/tabs/tabs.js +4 -2
  598. package/tabs/types.d.ts +2 -2
  599. package/tabs-motion/styled-components.d.ts +5 -0
  600. package/tabs-motion/styled-components.js +71 -41
  601. package/tabs-motion/styled-components.js.flow +21 -0
  602. package/tabs-motion/tab.js +1 -0
  603. package/tabs-motion/tabs.d.ts +1 -1
  604. package/tabs-motion/tabs.js +87 -57
  605. package/tabs-motion/tabs.js.flow +69 -38
  606. package/tabs-motion/types.d.ts +5 -2
  607. package/tabs-motion/types.js.flow +3 -0
  608. package/tabs-motion/utils.d.ts +1 -1
  609. package/tag/styled-components.js +5 -1
  610. package/tag/tag.js +4 -2
  611. package/tag/types.d.ts +4 -5
  612. package/textarea/styled-components.js +11 -6
  613. package/textarea/textarea.js +13 -15
  614. package/textarea/textarea.js.flow +5 -9
  615. package/textarea/types.d.ts +6 -5
  616. package/textarea/types.js.flow +3 -1
  617. package/themes/dark-theme/color-component-tokens.js +1 -1
  618. package/themes/dark-theme/color-component-tokens.js.flow +1 -1
  619. package/themes/light-theme/color-component-tokens.js +1 -1
  620. package/themes/light-theme/color-component-tokens.js.flow +1 -1
  621. package/themes/move-theme/typography.d.ts +36 -0
  622. package/themes/move-theme/typography.js +36 -0
  623. package/themes/move-theme/typography.js.flow +12 -0
  624. package/themes/shared/borders.js +8 -3
  625. package/themes/shared/borders.js.flow +7 -3
  626. package/themes/shared/typography.js +10 -10
  627. package/themes/shared/typography.js.flow +10 -10
  628. package/themes/types.d.ts +3 -0
  629. package/themes/types.js.flow +3 -0
  630. package/timezonepicker/timezone-picker.js +6 -2
  631. package/timezonepicker/types.d.ts +1 -0
  632. package/timezonepicker/types.js.flow +1 -0
  633. package/timezonepicker/tzdata.js +1 -1
  634. package/timezonepicker/update-tzdata.js +51 -39
  635. package/toast/styled-components.js +5 -1
  636. package/toast/toaster.js.flow +1 -1
  637. package/toast/types.d.ts +2 -2
  638. package/tokens/colors.js +24 -0
  639. package/tokens/colors.js.flow +27 -0
  640. package/tokens/types.d.ts +24 -0
  641. package/tokens/types.js.flow +27 -0
  642. package/tooltip/styled-components.js +4 -1
  643. package/tree-view/styled-components.js +7 -1
  644. package/tree-view/tree-view.js +3 -1
  645. package/tree-view/types.d.ts +3 -4
  646. package/types/globals.d.js +14 -1
  647. package/utils/deep-merge.js +0 -6
  648. package/utils/deprecated-component.js +1 -0
  649. package/utils/focusVisible.d.ts +1 -1
  650. package/utils/focusVisible.js +4 -2
  651. package/card/images.d.ts +0 -2
  652. package/card/images.js +0 -17
  653. package/card/images.js.flow +0 -18
  654. package/es/card/images.js +0 -8
  655. package/esm/card/images.js +0 -8
@@ -41,6 +41,8 @@ export const StyledRoot = styled('div', ({
41
41
  };
42
42
  });
43
43
  StyledRoot.displayName = "StyledRoot";
44
+ StyledRoot.displayName = 'StyledRoot';
45
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
44
46
  export const StyledTable = styled('table', ({
45
47
  $theme,
46
48
  $width
@@ -53,18 +55,23 @@ export const StyledTable = styled('table', ({
53
55
  };
54
56
  });
55
57
  StyledTable.displayName = "StyledTable";
58
+ StyledTable.displayName = 'StyledTable'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
59
+
56
60
  export const StyledTableHead = styled('thead', ({
57
61
  $theme
58
62
  }) => {
59
63
  return {};
60
64
  });
61
65
  StyledTableHead.displayName = "StyledTableHead";
66
+ StyledTableHead.displayName = 'StyledTableHead'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
67
+
62
68
  export const StyledTableHeadRow = styled('tr', ({
63
69
  $theme
64
70
  }) => {
65
71
  return {};
66
72
  });
67
73
  StyledTableHeadRow.displayName = "StyledTableHeadRow";
74
+ StyledTableHeadRow.displayName = 'StyledTableHeadRow';
68
75
  export const StyledTableHeadCell = styled('th', ({
69
76
  $theme,
70
77
  $size,
@@ -84,7 +91,6 @@ export const StyledTableHeadCell = styled('th', ({
84
91
  backgroundColor: $theme.colors.tableHeadBackgroundColor,
85
92
  color: $theme.colors.contentPrimary,
86
93
  textAlign: $theme.direction === 'rtl' || $isNumeric ? 'right' : 'left',
87
- verticalAlign: 'top',
88
94
  whiteSpace: 'nowrap',
89
95
  zIndex: 1,
90
96
  ...($divider === DIVIDER.clean ? {} : {
@@ -100,6 +106,7 @@ export const StyledTableHeadCell = styled('th', ({
100
106
  };
101
107
  });
102
108
  StyledTableHeadCell.displayName = "StyledTableHeadCell";
109
+ StyledTableHeadCell.displayName = 'StyledTableHeadCell';
103
110
  export const StyledTableHeadCellSortable = withStyle(StyledTableHeadCell, ({
104
111
  $theme,
105
112
  $isFocusVisible
@@ -118,6 +125,7 @@ export const StyledTableHeadCellSortable = withStyle(StyledTableHeadCell, ({
118
125
  };
119
126
  });
120
127
  StyledTableHeadCellSortable.displayName = "StyledTableHeadCellSortable";
128
+ StyledTableHeadCellSortable.displayName = 'StyledTableHeadCellSortable';
121
129
  export const StyledSortIconContainer = styled('span', ({
122
130
  $theme
123
131
  }) => {
@@ -129,9 +137,10 @@ export const StyledSortIconContainer = styled('span', ({
129
137
  right: $theme.sizing.scale500,
130
138
  transform: 'translateY(-50%)'
131
139
  };
132
- }); // No longer used, but will maintain for some time to support existing usage
133
-
140
+ });
134
141
  StyledSortIconContainer.displayName = "StyledSortIconContainer";
142
+ StyledSortIconContainer.displayName = 'StyledSortIconContainer'; // No longer used, but will maintain for some time to support existing usage
143
+
135
144
  export const StyledSortAscIcon = styled(ChevronUp, ({
136
145
  $theme
137
146
  }) => {
@@ -143,6 +152,7 @@ export const StyledSortAscIcon = styled(ChevronUp, ({
143
152
  };
144
153
  });
145
154
  StyledSortAscIcon.displayName = "StyledSortAscIcon";
155
+ StyledSortAscIcon.displayName = 'StyledSortAscIcon';
146
156
  export const StyledSortDescIcon = styled(ChevronDown, ({
147
157
  $theme
148
158
  }) => {
@@ -154,6 +164,7 @@ export const StyledSortDescIcon = styled(ChevronDown, ({
154
164
  };
155
165
  });
156
166
  StyledSortDescIcon.displayName = "StyledSortDescIcon";
167
+ StyledSortDescIcon.displayName = 'StyledSortDescIcon';
157
168
  export const StyledSortNoneIcon = styled(Blank, ({
158
169
  $theme
159
170
  }) => {
@@ -165,12 +176,15 @@ export const StyledSortNoneIcon = styled(Blank, ({
165
176
  };
166
177
  });
167
178
  StyledSortNoneIcon.displayName = "StyledSortNoneIcon";
179
+ StyledSortNoneIcon.displayName = 'StyledSortNoneIcon'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
180
+
168
181
  export const StyledTableBody = styled('tbody', ({
169
182
  $theme
170
183
  }) => {
171
184
  return {};
172
185
  });
173
186
  StyledTableBody.displayName = "StyledTableBody";
187
+ StyledTableBody.displayName = 'StyledTableBody';
174
188
  export const StyledTableBodyRow = styled('tr', ({
175
189
  $theme
176
190
  }) => {
@@ -181,6 +195,7 @@ export const StyledTableBodyRow = styled('tr', ({
181
195
  };
182
196
  });
183
197
  StyledTableBodyRow.displayName = "StyledTableBodyRow";
198
+ StyledTableBodyRow.displayName = 'StyledTableBodyRow';
184
199
  export const StyledTableBodyCell = styled('td', ({
185
200
  $theme,
186
201
  $size,
@@ -212,6 +227,7 @@ export const StyledTableBodyCell = styled('td', ({
212
227
  };
213
228
  });
214
229
  StyledTableBodyCell.displayName = "StyledTableBodyCell";
230
+ StyledTableBodyCell.displayName = 'StyledTableBodyCell';
215
231
  export const StyledTableLoadingMessage = styled('div', ({
216
232
  $theme
217
233
  }) => {
@@ -221,4 +237,5 @@ export const StyledTableLoadingMessage = styled('div', ({
221
237
  };
222
238
  });
223
239
  StyledTableLoadingMessage.displayName = "StyledTableLoadingMessage";
240
+ StyledTableLoadingMessage.displayName = 'StyledTableLoadingMessage';
224
241
  export const StyledTableEmptyMessage = StyledTableLoadingMessage;
@@ -49,6 +49,7 @@ export default class StatefulTabs extends React.Component {
49
49
  }
50
50
 
51
51
  render() {
52
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
52
53
  const {
53
54
  initialState,
54
55
  stateReducer,
@@ -16,6 +16,7 @@ export const Root = styled('div', props => {
16
16
  };
17
17
  });
18
18
  Root.displayName = "Root";
19
+ Root.displayName = 'Root';
19
20
  export const Tab = styled('div', props => {
20
21
  const {
21
22
  $disabled,
@@ -58,6 +59,7 @@ export const Tab = styled('div', props => {
58
59
  return style;
59
60
  });
60
61
  Tab.displayName = "Tab";
62
+ Tab.displayName = 'Tab';
61
63
  export const TabBar = styled('div', props => {
62
64
  const {
63
65
  $orientation,
@@ -75,6 +77,7 @@ export const TabBar = styled('div', props => {
75
77
  };
76
78
  });
77
79
  TabBar.displayName = "TabBar";
80
+ TabBar.displayName = 'TabBar';
78
81
  export const TabContent = styled('div', props => {
79
82
  const {
80
83
  $active,
@@ -91,4 +94,5 @@ export const TabContent = styled('div', props => {
91
94
  paddingBottom: sizing.scale500
92
95
  };
93
96
  });
94
- TabContent.displayName = "TabContent";
97
+ TabContent.displayName = "TabContent";
98
+ TabContent.displayName = 'TabContent';
package/es/tabs/tabs.js CHANGED
@@ -31,7 +31,8 @@ export default class Tabs extends React.Component {
31
31
  orientation,
32
32
  children,
33
33
  overrides = {}
34
- } = this.props;
34
+ } = this.props; // eslint-disable-next-line @typescript-eslint/no-explicit-any
35
+
35
36
  const tabs = React.Children.map(children, (child, index) => {
36
37
  if (!child) return;
37
38
  const key = child.key || String(index);
@@ -64,7 +65,8 @@ export default class Tabs extends React.Component {
64
65
  const {
65
66
  TabContent: TabContentOverride
66
67
  } = overrides;
67
- const [TabContent, tabContentProps] = getOverrides(TabContentOverride, StyledTabContent);
68
+ const [TabContent, tabContentProps] = getOverrides(TabContentOverride, StyledTabContent); // eslint-disable-next-line @typescript-eslint/no-explicit-any
69
+
68
70
  const tabs = React.Children.map(children, (child, index) => {
69
71
  if (!child) return;
70
72
  const key = child.key || String(index);
@@ -24,6 +24,15 @@ export const StyledRoot = styled('div', ({
24
24
  return style;
25
25
  });
26
26
  StyledRoot.displayName = "StyledRoot";
27
+ StyledRoot.displayName = 'StyledRoot';
28
+ export const StyledTabBar = styled('div', ({
29
+ $hasEndEnhancer,
30
+ $orientation
31
+ }) => $hasEndEnhancer || !isHorizontal($orientation) ? {
32
+ display: 'flex'
33
+ } : {});
34
+ StyledTabBar.displayName = "StyledTabBar";
35
+ StyledTabBar.displayName = 'StyledTabBar';
27
36
  export const StyledTabList = styled('div', ({
28
37
  $theme,
29
38
  $fill = FILL.intrinsic,
@@ -32,7 +41,8 @@ export const StyledTabList = styled('div', ({
32
41
  const style = {
33
42
  position: 'relative',
34
43
  display: 'flex',
35
- flexWrap: 'nowrap'
44
+ flexWrap: 'nowrap',
45
+ flexGrow: 1
36
46
  };
37
47
 
38
48
  if (isHorizontal($orientation)) {
@@ -68,11 +78,13 @@ export const StyledTabList = styled('div', ({
68
78
  return style;
69
79
  });
70
80
  StyledTabList.displayName = "StyledTabList";
81
+ StyledTabList.displayName = 'StyledTabList';
71
82
  export const StyledTab = styled('button', ({
72
83
  $theme,
73
84
  $orientation = ORIENTATION.horizontal,
74
85
  $fill = FILL.intrinsic,
75
86
  $focusVisible = false,
87
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
76
88
  $isActive = false
77
89
  }) => {
78
90
  const style = {
@@ -135,6 +147,20 @@ export const StyledTab = styled('button', ({
135
147
  return style;
136
148
  });
137
149
  StyledTab.displayName = "StyledTab";
150
+ StyledTab.displayName = 'StyledTab';
151
+ export const StyledEndEnhancerContainer = styled('div', ({
152
+ $theme
153
+ }) => {
154
+ const marginDirection = $theme.direction === 'rtl' ? 'marginRight' : 'marginLeft';
155
+ return {
156
+ display: 'flex',
157
+ alignItems: 'center',
158
+ justifyContent: 'flex-end',
159
+ [marginDirection]: $theme.sizing.scale600
160
+ };
161
+ });
162
+ StyledEndEnhancerContainer.displayName = "StyledEndEnhancerContainer";
163
+ StyledEndEnhancerContainer.displayName = 'StyledEndEnhancerContainer';
138
164
  export const StyledArtworkContainer = styled('div', ({
139
165
  $theme,
140
166
  $orientation = ORIENTATION.horizontal
@@ -152,6 +178,7 @@ export const StyledArtworkContainer = styled('div', ({
152
178
  return style;
153
179
  });
154
180
  StyledArtworkContainer.displayName = "StyledArtworkContainer";
181
+ StyledArtworkContainer.displayName = 'StyledArtworkContainer';
155
182
  export const StyledTabBorder = styled('div', ({
156
183
  $theme,
157
184
  $orientation = ORIENTATION.horizontal
@@ -170,6 +197,7 @@ export const StyledTabBorder = styled('div', ({
170
197
  return style;
171
198
  });
172
199
  StyledTabBorder.displayName = "StyledTabBorder";
200
+ StyledTabBorder.displayName = 'StyledTabBorder';
173
201
  export const StyledTabHighlight = styled('div', ({
174
202
  $theme,
175
203
  $orientation = ORIENTATION.horizontal,
@@ -210,6 +238,7 @@ export const StyledTabHighlight = styled('div', ({
210
238
  return style;
211
239
  });
212
240
  StyledTabHighlight.displayName = "StyledTabHighlight";
241
+ StyledTabHighlight.displayName = 'StyledTabHighlight';
213
242
  export const StyledTabPanel = styled('div', ({
214
243
  $theme,
215
244
  $pad = true
@@ -229,4 +258,5 @@ export const StyledTabPanel = styled('div', ({
229
258
 
230
259
  return style;
231
260
  });
232
- StyledTabPanel.displayName = "StyledTabPanel";
261
+ StyledTabPanel.displayName = "StyledTabPanel";
262
+ StyledTabPanel.displayName = 'StyledTabPanel';
@@ -4,6 +4,7 @@ Copyright (c) Uber Technologies, Inc.
4
4
  This source code is licensed under the MIT license found in the
5
5
  LICENSE file in the root directory of this source tree.
6
6
  */
7
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
7
8
  export function Tab(props) {
8
9
  return null;
9
10
  }
@@ -9,12 +9,13 @@ LICENSE file in the root directory of this source tree.
9
9
 
10
10
  /* global window */
11
11
  import * as React from 'react';
12
+ import * as ReactIs from 'react-is';
12
13
  import { useUID } from 'react-uid';
13
14
  import { useStyletron } from '../styles';
14
15
  import { getOverrides } from '../helpers/overrides';
15
16
  import { isFocusVisible, forkFocus, forkBlur } from '../utils/focusVisible';
16
17
  import { ORIENTATION, FILL } from './constants';
17
- import { StyledRoot, StyledTabList, StyledTab, StyledArtworkContainer, StyledTabHighlight, StyledTabBorder, StyledTabPanel } from './styled-components';
18
+ import { StyledRoot, StyledTabList, StyledTab, StyledArtworkContainer, StyledTabHighlight, StyledTabBorder, StyledTabPanel, StyledEndEnhancerContainer, StyledTabBar } from './styled-components';
18
19
  import { getTabId, getTabPanelId, isVertical, isHorizontal, isRTL } from './utils';
19
20
  const KEYBOARD_ACTION = {
20
21
  next: 'next',
@@ -78,6 +79,20 @@ const scrollParentToCentreTarget = targetNode => {
78
79
  targetNode.parentNode.scroll(target.x, target.y);
79
80
  };
80
81
 
82
+ function RenderEnhancer({
83
+ Enhancer
84
+ }) {
85
+ if (typeof Enhancer === 'string') {
86
+ return Enhancer;
87
+ }
88
+
89
+ if (ReactIs.isValidElementType(Enhancer)) {
90
+ return /*#__PURE__*/React.createElement(Enhancer, null);
91
+ }
92
+
93
+ return Enhancer;
94
+ }
95
+
81
96
  export function Tabs({
82
97
  activeKey = '0',
83
98
  disabled = false,
@@ -88,7 +103,8 @@ export function Tabs({
88
103
  orientation = ORIENTATION.horizontal,
89
104
  overrides = {},
90
105
  renderAll = false,
91
- uid: customUid = null
106
+ uid: customUid = null,
107
+ endEnhancer
92
108
  }) {
93
109
  // Create unique id prefix for this tabs component
94
110
  const generatedUid = useUID();
@@ -103,7 +119,8 @@ export function Tabs({
103
119
  const [Root, RootProps] = getOverrides(RootOverrides, StyledRoot);
104
120
  const [TabList, TabListProps] = getOverrides(TabListOverrides, StyledTabList);
105
121
  const [TabHighlight, TabHighlightProps] = getOverrides(TabHighlightOverrides, StyledTabHighlight);
106
- const [TabBorder, TabBorderProps] = getOverrides(TabBorderOverrides, StyledTabBorder); // Count key updates
122
+ const [TabBorder, TabBorderProps] = getOverrides(TabBorderOverrides, StyledTabBorder);
123
+ const [EndEnhancerContainer, endEnhancerContainerProps] = getOverrides(overrides.EndEnhancerContainer, StyledEndEnhancerContainer); // Count key updates
107
124
  // We disable a few things until after first mount:
108
125
  // - the highlight animation, avoiding an initial slide-in
109
126
  // - smooth scrolling active tab into view
@@ -196,7 +213,10 @@ export function Tabs({
196
213
  }
197
214
  }
198
215
  }, [orientation, theme.direction]);
199
- return /*#__PURE__*/React.createElement(Root, _extends({}, sharedStylingProps, RootProps), /*#__PURE__*/React.createElement(TabList, _extends({
216
+ return /*#__PURE__*/React.createElement(Root, _extends({}, sharedStylingProps, RootProps), /*#__PURE__*/React.createElement(StyledTabBar, {
217
+ $hasEndEnhancer: Boolean(endEnhancer),
218
+ $orientation: orientation
219
+ }, /*#__PURE__*/React.createElement(TabList, _extends({
200
220
  "data-baseweb": "tab-list",
201
221
  role: "tablist",
202
222
  "aria-orientation": orientation
@@ -224,7 +244,11 @@ export function Tabs({
224
244
  $animate: keyUpdated > 1,
225
245
  "aria-hidden": "true",
226
246
  role: "presentation"
227
- }, sharedStylingProps, TabHighlightProps))), /*#__PURE__*/React.createElement(TabBorder, _extends({
247
+ }, sharedStylingProps, TabHighlightProps))), orientation === ORIENTATION.horizontal && endEnhancer !== null && endEnhancer !== undefined && /*#__PURE__*/React.createElement(EndEnhancerContainer, _extends({}, endEnhancerContainerProps, {
248
+ $orientation: orientation
249
+ }), /*#__PURE__*/React.createElement(RenderEnhancer, {
250
+ Enhancer: endEnhancer
251
+ }))), /*#__PURE__*/React.createElement(TabBorder, _extends({
228
252
  "data-baseweb": "tab-border",
229
253
  "aria-hidden": "true",
230
254
  role: "presentation"
@@ -314,7 +338,8 @@ function InternalTab({
314
338
  setFocusVisible(true);
315
339
  }
316
340
  }, []);
317
- const handleBlur = React.useCallback(event => {
341
+ const handleBlur = React.useCallback( // eslint-disable-next-line @typescript-eslint/no-unused-vars
342
+ event => {
318
343
  if (focusVisible !== false) {
319
344
  setFocusVisible(false);
320
345
  }
@@ -57,16 +57,19 @@ const COLOR_STATE = {
57
57
  const pick = (theme, light, dark) => theme.name && theme.name.includes('dark') ? dark : light;
58
58
 
59
59
  const neutralColorStates = {
60
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
60
61
  [COLOR_STATE.disabled]: (theme, color) => ({
61
62
  color: theme.colors.tagNeutralFontDisabled,
62
63
  backgroundColor: null,
63
64
  borderColor: theme.colors.tagNeutralOutlinedDisabled
64
65
  }),
66
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
65
67
  [COLOR_STATE.solid]: (theme, color) => ({
66
68
  color: theme.colors.tagNeutralSolidFont,
67
69
  backgroundColor: theme.colors.tagNeutralSolidBackground,
68
70
  borderColor: null
69
71
  }),
72
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
70
73
  [COLOR_STATE.outline]: (theme, color) => ({
71
74
  color: theme.colors.tagNeutralOutlinedFont,
72
75
  backgroundColor: null,
@@ -74,16 +77,19 @@ const neutralColorStates = {
74
77
  })
75
78
  };
76
79
  const primaryColorStates = {
80
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
77
81
  [COLOR_STATE.disabled]: (theme, color) => ({
78
82
  color: theme.colors.tagPrimaryFontDisabled,
79
83
  backgroundColor: null,
80
84
  borderColor: theme.colors.tagPrimaryOutlinedDisabled
81
85
  }),
86
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
82
87
  [COLOR_STATE.solid]: (theme, color) => ({
83
88
  color: theme.colors.tagPrimarySolidFont,
84
89
  backgroundColor: theme.colors.tagPrimarySolidBackground,
85
90
  borderColor: null
86
91
  }),
92
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
87
93
  [COLOR_STATE.outline]: (theme, color) => ({
88
94
  color: theme.colors.tagPrimaryOutlinedFont,
89
95
  backgroundColor: null,
@@ -91,16 +97,19 @@ const primaryColorStates = {
91
97
  })
92
98
  };
93
99
  const accentColorStates = {
100
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
94
101
  [COLOR_STATE.disabled]: (theme, color) => ({
95
102
  color: theme.colors.tagAccentFontDisabled,
96
103
  backgroundColor: null,
97
104
  borderColor: theme.colors.tagAccentOutlinedDisabled
98
105
  }),
106
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
99
107
  [COLOR_STATE.solid]: (theme, color) => ({
100
108
  color: theme.colors.tagAccentSolidFont,
101
109
  backgroundColor: theme.colors.tagAccentSolidBackground,
102
110
  borderColor: null
103
111
  }),
112
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
104
113
  [COLOR_STATE.outline]: (theme, color) => ({
105
114
  color: theme.colors.tagAccentOutlinedFont,
106
115
  backgroundColor: null,
@@ -108,16 +117,19 @@ const accentColorStates = {
108
117
  })
109
118
  };
110
119
  const positiveColorStates = {
120
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
111
121
  [COLOR_STATE.disabled]: (theme, color) => ({
112
122
  color: theme.colors.tagPositiveFontDisabled,
113
123
  backgroundColor: null,
114
124
  borderColor: theme.colors.tagPositiveOutlinedDisabled
115
125
  }),
126
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
116
127
  [COLOR_STATE.solid]: (theme, color) => ({
117
128
  color: theme.colors.tagPositiveSolidFont,
118
129
  backgroundColor: theme.colors.tagPositiveSolidBackground,
119
130
  borderColor: null
120
131
  }),
132
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
121
133
  [COLOR_STATE.outline]: (theme, color) => ({
122
134
  color: theme.colors.tagPositiveOutlinedFont,
123
135
  backgroundColor: null,
@@ -125,16 +137,19 @@ const positiveColorStates = {
125
137
  })
126
138
  };
127
139
  const warningColorStates = {
140
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
128
141
  [COLOR_STATE.disabled]: (theme, color) => ({
129
142
  color: theme.colors.tagWarningFontDisabled,
130
143
  backgroundColor: null,
131
144
  borderColor: theme.colors.tagWarningOutlinedDisabled
132
145
  }),
146
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
133
147
  [COLOR_STATE.solid]: (theme, color) => ({
134
148
  color: theme.colors.tagWarningSolidFont,
135
149
  backgroundColor: theme.colors.tagWarningSolidBackground,
136
150
  borderColor: null
137
151
  }),
152
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
138
153
  [COLOR_STATE.outline]: (theme, color) => ({
139
154
  color: theme.colors.tagWarningOutlinedFont,
140
155
  backgroundColor: null,
@@ -142,16 +157,19 @@ const warningColorStates = {
142
157
  })
143
158
  };
144
159
  const negativeColorStates = {
160
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
145
161
  [COLOR_STATE.disabled]: (theme, color) => ({
146
162
  color: theme.colors.tagNegativeFontDisabled,
147
163
  backgroundColor: null,
148
164
  borderColor: theme.colors.tagNegativeOutlinedDisabled
149
165
  }),
166
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
150
167
  [COLOR_STATE.solid]: (theme, color) => ({
151
168
  color: theme.colors.tagNegativeSolidFont,
152
169
  backgroundColor: theme.colors.tagNegativeSolidBackground,
153
170
  borderColor: null
154
171
  }),
172
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
155
173
  [COLOR_STATE.outline]: (theme, color) => ({
156
174
  color: theme.colors.tagNegativeOutlinedFont,
157
175
  backgroundColor: null,
@@ -159,16 +177,19 @@ const negativeColorStates = {
159
177
  })
160
178
  };
161
179
  const orangeColorStates = {
180
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
162
181
  [COLOR_STATE.disabled]: (theme, color) => ({
163
182
  color: pick(theme, colorTokens.orange200, colorTokens.orange600),
164
183
  backgroundColor: null,
165
184
  borderColor: pick(theme, colorTokens.orange200, colorTokens.orange700)
166
185
  }),
186
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
167
187
  [COLOR_STATE.solid]: (theme, color) => ({
168
188
  color: colorTokens.white,
169
189
  backgroundColor: pick(theme, colorTokens.orange400, colorTokens.orange500),
170
190
  borderColor: null
171
191
  }),
192
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
172
193
  [COLOR_STATE.outline]: (theme, color) => ({
173
194
  color: pick(theme, colorTokens.orange400, colorTokens.orange300),
174
195
  backgroundColor: null,
@@ -176,16 +197,19 @@ const orangeColorStates = {
176
197
  })
177
198
  };
178
199
  const purpleColorStates = {
200
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
179
201
  [COLOR_STATE.disabled]: (theme, color) => ({
180
202
  color: pick(theme, colorTokens.purple200, colorTokens.purple600),
181
203
  backgroundColor: null,
182
204
  borderColor: pick(theme, colorTokens.purple200, colorTokens.purple700)
183
205
  }),
206
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
184
207
  [COLOR_STATE.solid]: (theme, color) => ({
185
208
  color: colorTokens.white,
186
209
  backgroundColor: pick(theme, colorTokens.purple400, colorTokens.purple500),
187
210
  borderColor: null
188
211
  }),
212
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
189
213
  [COLOR_STATE.outline]: (theme, color) => ({
190
214
  color: pick(theme, colorTokens.purple400, colorTokens.purple300),
191
215
  backgroundColor: null,
@@ -193,16 +217,19 @@ const purpleColorStates = {
193
217
  })
194
218
  };
195
219
  const brownColorStates = {
220
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
196
221
  [COLOR_STATE.disabled]: (theme, color) => ({
197
222
  color: pick(theme, colorTokens.brown200, colorTokens.brown600),
198
223
  backgroundColor: null,
199
224
  borderColor: pick(theme, colorTokens.brown200, colorTokens.brown700)
200
225
  }),
226
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
201
227
  [COLOR_STATE.solid]: (theme, color) => ({
202
228
  color: colorTokens.white,
203
229
  backgroundColor: pick(theme, colorTokens.brown400, colorTokens.brown500),
204
230
  borderColor: null
205
231
  }),
232
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
206
233
  [COLOR_STATE.outline]: (theme, color) => ({
207
234
  color: pick(theme, colorTokens.brown400, colorTokens.brown300),
208
235
  backgroundColor: null,
@@ -277,6 +304,7 @@ export const Action = styled('span', props => {
277
304
  };
278
305
  });
279
306
  Action.displayName = "Action";
307
+ Action.displayName = 'Action';
280
308
  export const StartEnhancerContainer = styled('div', ({
281
309
  $theme,
282
310
  $size = SIZE.small
@@ -297,6 +325,7 @@ export const StartEnhancerContainer = styled('div', ({
297
325
  };
298
326
  });
299
327
  StartEnhancerContainer.displayName = "StartEnhancerContainer";
328
+ StartEnhancerContainer.displayName = 'StartEnhancerContainer';
300
329
  export const Text = styled('span', props => {
301
330
  const {
302
331
  $theme
@@ -310,6 +339,7 @@ export const Text = styled('span', props => {
310
339
  };
311
340
  });
312
341
  Text.displayName = "Text";
342
+ Text.displayName = 'Text';
313
343
  export const Root = styled('span', props => {
314
344
  const {
315
345
  $theme,
@@ -384,4 +414,5 @@ export const Root = styled('span', props => {
384
414
  }
385
415
  };
386
416
  });
387
- Root.displayName = "Root";
417
+ Root.displayName = "Root";
418
+ Root.displayName = 'Root';
package/es/tag/tag.js CHANGED
@@ -30,7 +30,9 @@ const Tag = /*#__PURE__*/React.forwardRef((props, ref) => {
30
30
  isFocused = false,
31
31
  isHovered = false,
32
32
  kind = KIND.primary,
33
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
33
34
  onActionClick = event => {},
35
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
34
36
  onActionKeyDown = event => {},
35
37
  onClick = null,
36
38
  onKeyDown = null,
@@ -45,7 +47,8 @@ const Tag = /*#__PURE__*/React.forwardRef((props, ref) => {
45
47
  if (isFocusVisible(event)) {
46
48
  setFocusVisible(true);
47
49
  }
48
- }
50
+ } // eslint-disable-next-line @typescript-eslint/no-unused-vars
51
+
49
52
 
50
53
  function handleBlur(event) {
51
54
  if (focusVisible !== false) {
@@ -112,7 +115,8 @@ const Tag = /*#__PURE__*/React.forwardRef((props, ref) => {
112
115
  }[size]; // Capitalize for JSX
113
116
 
114
117
  const StartEnhancer = startEnhancer;
115
- return /*#__PURE__*/React.createElement(Root, _extends({
118
+ return /*#__PURE__*/React.createElement(Root // eslint-disable-next-line @typescript-eslint/no-explicit-any
119
+ , _extends({
116
120
  ref: ref,
117
121
  "data-baseweb": "tag",
118
122
  "aria-label": isButton && closeable ? `${typeof children === 'string' ? `${children}, ` : ''}close by backspace` : null,
@@ -7,20 +7,28 @@ LICENSE file in the root directory of this source tree.
7
7
  import { styled } from '../styles';
8
8
  import { getInputStyles, getInputContainerStyles, getRootStyles } from '../input/styled-components';
9
9
  export const StyledTextAreaRoot = styled('div', props => {
10
- return getRootStyles({
11
- $positive: false,
12
- ...props,
13
- $hasIconTrailing: false
14
- });
10
+ return { ...getRootStyles({
11
+ $positive: false,
12
+ ...props,
13
+ $hasIconTrailing: false
14
+ }),
15
+ width: props.$resize ? 'fit-content' : '100%'
16
+ };
15
17
  });
16
18
  StyledTextAreaRoot.displayName = "StyledTextAreaRoot";
17
- export const StyledTextareaContainer = styled('div', props => ({ ...getInputContainerStyles({
19
+ StyledTextAreaRoot.displayName = 'StyledTextAreaRoot';
20
+ export const StyledTextareaContainer = styled('div', props => {
21
+ return getInputContainerStyles({
18
22
  $positive: false,
19
23
  ...props
20
- })
21
- }));
24
+ });
25
+ });
22
26
  StyledTextareaContainer.displayName = "StyledTextareaContainer";
23
- export const StyledTextarea = styled('textarea', props => ({ ...getInputStyles(props),
24
- resize: 'none'
25
- }));
26
- StyledTextarea.displayName = "StyledTextarea";
27
+ StyledTextareaContainer.displayName = 'StyledTextareaContainer';
28
+ export const StyledTextarea = styled('textarea', props => {
29
+ return { ...getInputStyles(props),
30
+ resize: props.$resize || 'none'
31
+ };
32
+ });
33
+ StyledTextarea.displayName = "StyledTextarea";
34
+ StyledTextarea.displayName = 'StyledTextarea';