baseui 12.0.0 → 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (630) 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 +5 -1
  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 +5 -1
  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/styled-components.js +6 -1
  137. package/es/flex-grid/flex-grid-item.js +5 -6
  138. package/es/flex-grid/flex-grid.js +4 -1
  139. package/es/form-control/styled-components.js +6 -1
  140. package/es/header-navigation/styled-components.js +4 -1
  141. package/es/helper/styled-components.js +3 -1
  142. package/es/helpers/overrides.js +9 -5
  143. package/es/icon/build-icons.js +0 -2
  144. package/es/icon/index.js +1 -1
  145. package/es/icon/omit-dollar-prefixed-keys.js +1 -0
  146. package/es/icon/styled-components.js +2 -1
  147. package/es/input/base-input.js +1 -0
  148. package/es/input/masked-input.js +9 -2
  149. package/es/input/stateful-container.js +1 -0
  150. package/es/input/styled-components.js +18 -7
  151. package/es/input/utils.js +2 -0
  152. package/es/layer/layer.js +24 -0
  153. package/es/layer/layers-manager.js +91 -1
  154. package/es/layout-grid/styled-components.js +3 -0
  155. package/es/link/index.js +2 -1
  156. package/es/link/styled-components.js +2 -1
  157. package/es/list/list-heading.js +21 -17
  158. package/es/list/list-item.js +2 -1
  159. package/es/list/styled-components.js +17 -1
  160. package/es/locale/es_AR.js +3 -1
  161. package/es/locale/index.js +2 -1
  162. package/es/locale/tr_TR.js +3 -1
  163. package/es/map-marker/constants.js +14 -0
  164. package/es/map-marker/fixed-marker.js +1 -0
  165. package/es/map-marker/index.js +2 -1
  166. package/es/map-marker/location-puck.js +142 -0
  167. package/es/map-marker/pin-head.js +1 -0
  168. package/es/map-marker/styled-components.js +86 -2
  169. package/es/menu/index.js +1 -1
  170. package/es/menu/menu.js +14 -4
  171. package/es/menu/option-profile.js +1 -0
  172. package/es/menu/stateful-container.js +10 -0
  173. package/es/menu/styled-components.js +32 -2
  174. package/es/message-card/constants.js +19 -0
  175. package/es/message-card/index.js +10 -0
  176. package/es/message-card/message-card.js +114 -0
  177. package/es/message-card/styled-components.js +108 -0
  178. package/es/message-card/types.js +1 -0
  179. package/es/message-card/utils.js +27 -0
  180. package/es/modal/modal.js +4 -6
  181. package/es/modal/styled-components.js +8 -1
  182. package/es/pagination/stateful-container.js +1 -0
  183. package/es/pagination/stateful-pagination.js +1 -0
  184. package/es/pagination/styled-components.js +4 -1
  185. package/es/payment-card/styled-components.js +2 -1
  186. package/es/phone-input/base-country-picker.js +3 -1
  187. package/es/phone-input/country-select-dropdown.js +1 -0
  188. package/es/phone-input/styled-components.js +15 -4
  189. package/es/pin-code/styled-components.js +4 -1
  190. package/es/popover/popover.js +9 -12
  191. package/es/popover/styled-components.js +9 -4
  192. package/es/progress-bar/progressbar-rounded.js +1 -0
  193. package/es/progress-bar/styled-components.js +14 -2
  194. package/es/progress-steps/progress-steps.js +2 -1
  195. package/es/progress-steps/styled-components.js +20 -12
  196. package/es/radio/stateful-radiogroup-container.js +3 -0
  197. package/es/radio/styled-components.js +10 -3
  198. package/es/rating/emoticon-rating.js +2 -1
  199. package/es/rating/star-rating.js +2 -1
  200. package/es/rating/styled-components.js +5 -1
  201. package/es/select/autosize-input.js +2 -3
  202. package/es/select/default-props.js +1 -1
  203. package/es/select/dropdown.js +2 -1
  204. package/es/select/multi-value.js +2 -1
  205. package/es/select/select-component.js +10 -10
  206. package/es/select/single-select.js +2 -2
  207. package/es/select/stateful-select-container.js +2 -0
  208. package/es/select/styled-components.js +33 -6
  209. package/es/select/value.js +3 -4
  210. package/es/side-navigation/index.js +2 -1
  211. package/es/side-navigation/nav-item.js +1 -0
  212. package/es/side-navigation/nav.js +1 -1
  213. package/es/side-navigation/stateful-container.js +1 -0
  214. package/es/side-navigation/styled-components.js +8 -2
  215. package/es/skeleton/styled-components.js +3 -1
  216. package/es/slider/slider.js +4 -2
  217. package/es/slider/stateful-slider-container.js +2 -0
  218. package/es/slider/styled-components.js +9 -0
  219. package/es/snackbar/snackbar-element.js +1 -0
  220. package/es/snackbar/styled-components.js +9 -1
  221. package/es/spinner/styled-components.js +2 -1
  222. package/es/styles/__mocks__/styled.js +8 -5
  223. package/es/styles/styled.js +7 -6
  224. package/es/table/index.js +2 -1
  225. package/es/table/styled-components.js +13 -1
  226. package/es/table-grid/styled-components.js +4 -1
  227. package/es/table-semantic/styled-components.js +20 -3
  228. package/es/tabs/stateful-tabs.js +1 -0
  229. package/es/tabs/styled-components.js +5 -1
  230. package/es/tabs/tabs.js +4 -2
  231. package/es/tabs-motion/styled-components.js +32 -2
  232. package/es/tabs-motion/tab.js +1 -0
  233. package/es/tabs-motion/tabs.js +31 -6
  234. package/es/tag/styled-components.js +32 -1
  235. package/es/tag/tag.js +6 -2
  236. package/es/textarea/styled-components.js +20 -12
  237. package/es/textarea/textarea.js +4 -2
  238. package/es/themes/move-theme/typography.js +36 -0
  239. package/es/themes/shared/borders.js +8 -3
  240. package/es/themes/shared/typography.js +10 -10
  241. package/es/timezonepicker/timezone-picker.js +5 -1
  242. package/es/timezonepicker/tzdata.js +1 -1
  243. package/es/toast/styled-components.js +5 -1
  244. package/es/toast/toaster.js +0 -2
  245. package/es/tokens/colors.js +24 -0
  246. package/es/tooltip/styled-components.js +4 -1
  247. package/es/tree-view/index.js +2 -1
  248. package/es/tree-view/styled-components.js +7 -1
  249. package/es/tree-view/tree-view.js +3 -1
  250. package/es/types/globals.d.js +12 -0
  251. package/es/utils/deep-merge.js +0 -5
  252. package/es/utils/deprecated-component.js +1 -0
  253. package/es/utils/focusVisible.js +4 -2
  254. package/esm/accordion/accordion.js +4 -4
  255. package/esm/accordion/panel.js +3 -2
  256. package/esm/accordion/stateful-panel-container.js +1 -0
  257. package/esm/accordion/styled-components.js +8 -1
  258. package/esm/app-nav-bar/app-nav-bar.js +4 -2
  259. package/esm/app-nav-bar/mobile-menu.js +4 -2
  260. package/esm/app-nav-bar/styled-components.js +19 -1
  261. package/esm/app-nav-bar/user-menu.js +1 -1
  262. package/esm/aspect-ratio-box/aspect-ratio-box.js +3 -1
  263. package/esm/avatar/styled-components.js +4 -1
  264. package/esm/badge/styled-components.js +11 -6
  265. package/esm/banner/styled-components.js +16 -3
  266. package/esm/block/block.js +3 -1
  267. package/esm/block/styled-components.js +2 -1
  268. package/esm/breadcrumbs/styled-components.js +5 -1
  269. package/esm/button/styled-components.js +7 -0
  270. package/esm/button-group/stateful-button-group.js +1 -0
  271. package/esm/button-group/stateful-container.js +3 -1
  272. package/esm/button-group/styled-components.js +2 -1
  273. package/esm/card/index.js +2 -1
  274. package/esm/card/styled-components.js +12 -4
  275. package/esm/checkbox/index.js +1 -0
  276. package/esm/checkbox/styled-components.js +10 -4
  277. package/esm/combobox/combobox.js +78 -71
  278. package/esm/combobox/styled-components.js +5 -1
  279. package/esm/data-table/column-anchor.js +3 -0
  280. package/esm/data-table/column-datetime.js +12 -5
  281. package/esm/data-table/column-numerical.js +4 -4
  282. package/esm/data-table/column-string.js +3 -0
  283. package/esm/data-table/column.js +5 -1
  284. package/esm/data-table/data-table.js +6 -3
  285. package/esm/data-table/filter-menu.js +2 -1
  286. package/esm/data-table/header-cell.js +42 -34
  287. package/esm/data-table/locale.js +3 -1
  288. package/esm/data-table/measure-column-widths.js +5 -4
  289. package/esm/data-table/stateful-container.js +2 -1
  290. package/esm/data-table/stateful-data-table.js +4 -4
  291. package/esm/datepicker/calendar-header.js +1 -0
  292. package/esm/datepicker/calendar.js +2 -0
  293. package/esm/datepicker/datepicker.js +3 -1
  294. package/esm/datepicker/day.js +2 -1
  295. package/esm/datepicker/index.js +1 -1
  296. package/esm/datepicker/stateful-calendar.js +7 -3
  297. package/esm/datepicker/stateful-container.js +2 -0
  298. package/esm/datepicker/stateful-datepicker.js +9 -4
  299. package/esm/datepicker/styled-components.js +26 -3
  300. package/esm/datepicker/utils/date-helpers.js +2 -1
  301. package/esm/datepicker/utils/index.js +2 -1
  302. package/esm/divider/styled-components.js +3 -2
  303. package/esm/dnd-list/stateful-list-container.js +1 -0
  304. package/esm/dnd-list/styled-components.js +7 -0
  305. package/esm/drawer/constants.js +1 -0
  306. package/esm/drawer/drawer.js +2 -5
  307. package/esm/drawer/styled-components.js +9 -2
  308. package/esm/file-uploader/styled-components.js +6 -1
  309. package/esm/flex-grid/flex-grid-item.js +4 -5
  310. package/esm/flex-grid/flex-grid.js +7 -3
  311. package/esm/form-control/styled-components.js +6 -1
  312. package/esm/header-navigation/styled-components.js +4 -1
  313. package/esm/helper/styled-components.js +3 -1
  314. package/esm/helpers/overrides.js +9 -5
  315. package/esm/icon/build-icons.js +0 -2
  316. package/esm/icon/index.js +1 -1
  317. package/esm/icon/omit-dollar-prefixed-keys.js +1 -0
  318. package/esm/icon/styled-components.js +2 -1
  319. package/esm/input/base-input.js +1 -0
  320. package/esm/input/masked-input.js +5 -2
  321. package/esm/input/stateful-container.js +1 -0
  322. package/esm/input/styled-components.js +18 -7
  323. package/esm/input/utils.js +2 -0
  324. package/esm/layer/layer.js +24 -0
  325. package/esm/layer/layers-manager.js +97 -1
  326. package/esm/layout-grid/styled-components.js +3 -0
  327. package/esm/link/index.js +2 -1
  328. package/esm/link/styled-components.js +2 -1
  329. package/esm/list/list-heading.js +21 -17
  330. package/esm/list/list-item.js +2 -1
  331. package/esm/list/styled-components.js +17 -1
  332. package/esm/locale/es_AR.js +3 -1
  333. package/esm/locale/index.js +4 -1
  334. package/esm/locale/tr_TR.js +3 -1
  335. package/esm/map-marker/constants.js +12 -2
  336. package/esm/map-marker/index.js +2 -1
  337. package/esm/map-marker/location-puck.js +199 -0
  338. package/esm/map-marker/styled-components.js +82 -2
  339. package/esm/menu/index.js +1 -1
  340. package/esm/menu/menu.js +16 -4
  341. package/esm/menu/option-profile.js +1 -0
  342. package/esm/menu/stateful-container.js +1 -0
  343. package/esm/menu/styled-components.js +38 -6
  344. package/esm/message-card/constants.js +20 -0
  345. package/esm/message-card/index.js +10 -0
  346. package/esm/message-card/message-card.js +168 -0
  347. package/esm/message-card/styled-components.js +116 -0
  348. package/esm/message-card/types.js +1 -0
  349. package/esm/message-card/utils.js +26 -0
  350. package/esm/modal/modal.js +4 -6
  351. package/esm/modal/styled-components.js +8 -1
  352. package/esm/pagination/stateful-container.js +1 -0
  353. package/esm/pagination/stateful-pagination.js +1 -0
  354. package/esm/pagination/styled-components.js +4 -1
  355. package/esm/payment-card/styled-components.js +2 -1
  356. package/esm/phone-input/base-country-picker.js +3 -1
  357. package/esm/phone-input/country-select-dropdown.js +1 -0
  358. package/esm/phone-input/styled-components.js +20 -8
  359. package/esm/pin-code/styled-components.js +4 -1
  360. package/esm/popover/popover.js +9 -12
  361. package/esm/popover/styled-components.js +9 -4
  362. package/esm/progress-bar/progressbar-rounded.js +1 -0
  363. package/esm/progress-bar/styled-components.js +14 -2
  364. package/esm/progress-steps/progress-steps.js +2 -1
  365. package/esm/progress-steps/styled-components.js +28 -19
  366. package/esm/radio/styled-components.js +10 -3
  367. package/esm/rating/emoticon-rating.js +2 -1
  368. package/esm/rating/star-rating.js +2 -1
  369. package/esm/rating/styled-components.js +5 -1
  370. package/esm/select/autosize-input.js +2 -3
  371. package/esm/select/default-props.js +1 -1
  372. package/esm/select/dropdown.js +2 -1
  373. package/esm/select/multi-value.js +2 -1
  374. package/esm/select/select-component.js +10 -10
  375. package/esm/select/single-select.js +2 -2
  376. package/esm/select/styled-components.js +33 -6
  377. package/esm/select/value.js +3 -4
  378. package/esm/side-navigation/index.js +2 -1
  379. package/esm/side-navigation/nav-item.js +1 -0
  380. package/esm/side-navigation/nav.js +1 -1
  381. package/esm/side-navigation/stateful-container.js +1 -0
  382. package/esm/side-navigation/styled-components.js +13 -6
  383. package/esm/skeleton/styled-components.js +3 -1
  384. package/esm/slider/slider.js +4 -2
  385. package/esm/slider/styled-components.js +9 -0
  386. package/esm/snackbar/snackbar-element.js +1 -0
  387. package/esm/snackbar/styled-components.js +9 -1
  388. package/esm/spinner/styled-components.js +2 -1
  389. package/esm/styles/__mocks__/styled.js +8 -5
  390. package/esm/styles/styled.js +7 -6
  391. package/esm/table/index.js +2 -1
  392. package/esm/table/styled-components.js +13 -1
  393. package/esm/table-grid/styled-components.js +4 -1
  394. package/esm/table-semantic/styled-components.js +20 -3
  395. package/esm/tabs/stateful-tabs.js +1 -0
  396. package/esm/tabs/styled-components.js +5 -1
  397. package/esm/tabs/tabs.js +4 -2
  398. package/esm/tabs-motion/styled-components.js +68 -40
  399. package/esm/tabs-motion/tab.js +1 -0
  400. package/esm/tabs-motion/tabs.js +87 -58
  401. package/esm/tag/styled-components.js +5 -1
  402. package/esm/tag/tag.js +4 -2
  403. package/esm/textarea/styled-components.js +11 -6
  404. package/esm/textarea/textarea.js +4 -2
  405. package/esm/themes/move-theme/typography.js +36 -0
  406. package/esm/themes/shared/borders.js +8 -3
  407. package/esm/themes/shared/typography.js +10 -10
  408. package/esm/timezonepicker/timezone-picker.js +6 -2
  409. package/esm/timezonepicker/tzdata.js +1 -1
  410. package/esm/toast/styled-components.js +5 -1
  411. package/esm/toast/toaster.js +0 -2
  412. package/esm/tokens/colors.js +24 -0
  413. package/esm/tooltip/styled-components.js +4 -1
  414. package/esm/tree-view/index.js +2 -1
  415. package/esm/tree-view/styled-components.js +7 -1
  416. package/esm/tree-view/tree-view.js +3 -1
  417. package/esm/types/globals.d.js +12 -0
  418. package/esm/utils/deep-merge.js +0 -5
  419. package/esm/utils/deprecated-component.js +1 -0
  420. package/esm/utils/focusVisible.js +4 -2
  421. package/file-uploader/styled-components.js +6 -1
  422. package/flex-grid/flex-grid-item.d.ts +1 -1
  423. package/flex-grid/flex-grid-item.js +6 -8
  424. package/flex-grid/flex-grid.js +7 -3
  425. package/flex-grid/types.d.ts +1 -1
  426. package/form-control/styled-components.js +6 -1
  427. package/form-control/types.d.ts +1 -1
  428. package/header-navigation/styled-components.js +4 -1
  429. package/heading/types.d.ts +1 -1
  430. package/helper/styled-components.js +3 -1
  431. package/helpers/overrides.js +8 -3
  432. package/helpers/overrides.js.flow +1 -1
  433. package/helpers/types.d.ts +1 -1
  434. package/icon/build-icons.js +0 -2
  435. package/icon/build-icons.js.flow +0 -1
  436. package/icon/index.d.ts +1 -1
  437. package/icon/index.js +8 -1
  438. package/icon/index.js.flow +1 -1
  439. package/icon/omit-dollar-prefixed-keys.js +1 -0
  440. package/icon/styled-components.js +2 -1
  441. package/icon/types.d.ts +1 -1
  442. package/input/masked-input.js +5 -2
  443. package/input/stateful-container.js +1 -0
  444. package/input/styled-components.js +18 -7
  445. package/input/styled-components.js.flow +9 -2
  446. package/input/types.d.ts +16 -14
  447. package/input/types.js.flow +3 -0
  448. package/input/utils.js +2 -0
  449. package/layer/layer.js +24 -0
  450. package/layer/layer.js.flow +25 -0
  451. package/layer/layers-manager.d.ts +8 -0
  452. package/layer/layers-manager.js +97 -1
  453. package/layer/layers-manager.js.flow +84 -1
  454. package/layer/types.d.ts +23 -2
  455. package/layer/types.js.flow +22 -1
  456. package/layout-grid/styled-components.js +3 -0
  457. package/layout-grid/types.d.ts +2 -2
  458. package/link/index.js +2 -1
  459. package/link/styled-components.js +2 -1
  460. package/list/list-heading.js +21 -17
  461. package/list/list-item.js +2 -1
  462. package/list/styled-components.js +17 -1
  463. package/list/types.d.ts +2 -2
  464. package/locale/en_US.d.ts +1 -1
  465. package/locale/es_AR.d.ts +1 -1
  466. package/locale/es_AR.js +3 -1
  467. package/locale/index.js +4 -1
  468. package/locale/tr_TR.d.ts +1 -1
  469. package/locale/tr_TR.js +3 -1
  470. package/map-marker/constants.d.ts +14 -0
  471. package/map-marker/constants.js +16 -3
  472. package/map-marker/constants.js.flow +17 -0
  473. package/map-marker/index.d.ts +2 -1
  474. package/map-marker/index.js +24 -1
  475. package/map-marker/index.js.flow +5 -3
  476. package/map-marker/location-puck.d.ts +4 -0
  477. package/map-marker/location-puck.js +211 -0
  478. package/map-marker/location-puck.js.flow +18 -0
  479. package/map-marker/styled-components.d.ts +17 -1
  480. package/map-marker/styled-components.js +88 -2
  481. package/map-marker/styled-components.js.flow +58 -0
  482. package/map-marker/types.d.ts +33 -5
  483. package/map-marker/types.js.flow +37 -3
  484. package/menu/index.d.ts +2 -3
  485. package/menu/index.js +8 -1
  486. package/menu/index.js.flow +1 -0
  487. package/menu/menu.js +15 -3
  488. package/menu/menu.js.flow +11 -1
  489. package/menu/option-profile.js +1 -0
  490. package/menu/stateful-container.js +1 -0
  491. package/menu/styled-components.d.ts +1 -0
  492. package/menu/styled-components.js +40 -7
  493. package/menu/styled-components.js.flow +13 -0
  494. package/menu/types.d.ts +13 -13
  495. package/menu/types.js.flow +1 -0
  496. package/message-card/constants.d.ts +12 -0
  497. package/message-card/constants.js +25 -0
  498. package/message-card/index.d.ts +4 -0
  499. package/message-card/index.js +60 -0
  500. package/message-card/index.js.flow +72 -0
  501. package/message-card/message-card.d.ts +4 -0
  502. package/message-card/message-card.js +184 -0
  503. package/message-card/package.json +4 -0
  504. package/message-card/styled-components.d.ts +14 -0
  505. package/message-card/styled-components.js +124 -0
  506. package/message-card/types.d.ts +27 -0
  507. package/message-card/types.js +5 -0
  508. package/message-card/utils.d.ts +1 -0
  509. package/message-card/utils.js +36 -0
  510. package/modal/modal.js +4 -4
  511. package/modal/modal.js.flow +1 -3
  512. package/modal/styled-components.js +8 -1
  513. package/modal/types.d.ts +2 -2
  514. package/package.json +9 -11
  515. package/pagination/stateful-container.js +1 -0
  516. package/pagination/stateful-pagination.js +1 -0
  517. package/pagination/styled-components.js +4 -1
  518. package/pagination/types.d.ts +2 -2
  519. package/payment-card/styled-components.js +2 -1
  520. package/phone-input/base-country-picker.js +3 -1
  521. package/phone-input/country-select-dropdown.js +1 -0
  522. package/phone-input/styled-components.js +21 -9
  523. package/phone-input/types.d.ts +5 -6
  524. package/pin-code/styled-components.js +4 -1
  525. package/pin-code/types.d.ts +2 -2
  526. package/popover/popover.js +9 -12
  527. package/popover/popover.js.flow +2 -12
  528. package/popover/styled-components.js +12 -9
  529. package/popover/types.d.ts +2 -2
  530. package/progress-bar/progressbar-rounded.js +1 -0
  531. package/progress-bar/styled-components.js +14 -2
  532. package/progress-bar/types.d.ts +2 -2
  533. package/progress-steps/progress-steps.js +2 -1
  534. package/progress-steps/styled-components.js +28 -19
  535. package/radio/styled-components.js +10 -3
  536. package/radio/types.d.ts +19 -20
  537. package/rating/emoticon-rating.js +2 -1
  538. package/rating/star-rating.js +2 -1
  539. package/rating/styled-components.js +5 -1
  540. package/select/autosize-input.js +2 -1
  541. package/select/autosize-input.js.flow +1 -1
  542. package/select/default-props.js +1 -1
  543. package/select/dropdown.js +2 -1
  544. package/select/multi-value.js +1 -0
  545. package/select/select-component.d.ts +1 -1
  546. package/select/select-component.js +9 -7
  547. package/select/select-component.js.flow +1 -1
  548. package/select/single-select.d.ts +2 -2
  549. package/select/single-select.js +2 -2
  550. package/select/styled-components.js +33 -6
  551. package/select/styled-components.js.flow +25 -5
  552. package/select/types.d.ts +5 -6
  553. package/select/value.js +2 -3
  554. package/side-navigation/nav-item.js +1 -0
  555. package/side-navigation/nav.js +1 -1
  556. package/side-navigation/stateful-container.js +1 -0
  557. package/side-navigation/styled-components.js +13 -6
  558. package/side-navigation/types.d.ts +1 -1
  559. package/skeleton/styled-components.js +3 -1
  560. package/slider/slider.js +4 -2
  561. package/slider/styled-components.js +9 -0
  562. package/slider/types.d.ts +1 -1
  563. package/snackbar/snackbar-element.js +1 -0
  564. package/snackbar/styled-components.js +9 -1
  565. package/snackbar/types.d.ts +3 -4
  566. package/spinner/styled-components.js +2 -1
  567. package/spinner/types.d.ts +1 -1
  568. package/styles/__mocks__/styled.js +8 -3
  569. package/styles/styled.d.ts +1 -1
  570. package/styles/styled.js +7 -6
  571. package/table/styled-components.js +13 -1
  572. package/table/types.d.ts +2 -2
  573. package/table-grid/styled-components.js +4 -1
  574. package/table-semantic/styled-components.js +20 -3
  575. package/table-semantic/types.d.ts +2 -2
  576. package/tabs/stateful-tabs.js +1 -0
  577. package/tabs/styled-components.js +5 -1
  578. package/tabs/tabs.js +4 -2
  579. package/tabs/types.d.ts +2 -2
  580. package/tabs-motion/styled-components.d.ts +5 -0
  581. package/tabs-motion/styled-components.js +71 -41
  582. package/tabs-motion/styled-components.js.flow +21 -0
  583. package/tabs-motion/tab.js +1 -0
  584. package/tabs-motion/tabs.d.ts +1 -1
  585. package/tabs-motion/tabs.js +87 -57
  586. package/tabs-motion/tabs.js.flow +69 -38
  587. package/tabs-motion/types.d.ts +5 -2
  588. package/tabs-motion/types.js.flow +3 -0
  589. package/tabs-motion/utils.d.ts +1 -1
  590. package/tag/styled-components.js +5 -1
  591. package/tag/tag.js +4 -2
  592. package/tag/types.d.ts +4 -5
  593. package/textarea/styled-components.js +11 -6
  594. package/textarea/textarea.js +4 -2
  595. package/textarea/types.d.ts +6 -5
  596. package/textarea/types.js.flow +3 -1
  597. package/themes/move-theme/typography.d.ts +36 -0
  598. package/themes/move-theme/typography.js +36 -0
  599. package/themes/move-theme/typography.js.flow +12 -0
  600. package/themes/shared/borders.js +8 -3
  601. package/themes/shared/borders.js.flow +7 -3
  602. package/themes/shared/typography.js +10 -10
  603. package/themes/shared/typography.js.flow +10 -10
  604. package/themes/types.d.ts +3 -0
  605. package/themes/types.js.flow +3 -0
  606. package/timezonepicker/timezone-picker.js +6 -2
  607. package/timezonepicker/types.d.ts +1 -0
  608. package/timezonepicker/types.js.flow +1 -0
  609. package/timezonepicker/tzdata.js +1 -1
  610. package/toast/styled-components.js +5 -1
  611. package/toast/toaster.js.flow +1 -1
  612. package/toast/types.d.ts +2 -2
  613. package/tokens/colors.js +24 -0
  614. package/tokens/colors.js.flow +27 -0
  615. package/tokens/types.d.ts +24 -0
  616. package/tokens/types.js.flow +27 -0
  617. package/tooltip/styled-components.js +4 -1
  618. package/tree-view/styled-components.js +7 -1
  619. package/tree-view/tree-view.js +3 -1
  620. package/tree-view/types.d.ts +3 -4
  621. package/types/globals.d.js +14 -1
  622. package/utils/deep-merge.js +0 -6
  623. package/utils/deprecated-component.js +1 -0
  624. package/utils/focusVisible.d.ts +1 -1
  625. package/utils/focusVisible.js +4 -2
  626. package/card/images.d.ts +0 -2
  627. package/card/images.js +0 -17
  628. package/card/images.js.flow +0 -18
  629. package/es/card/images.js +0 -8
  630. package/esm/card/images.js +0 -8
package/es/link/index.js CHANGED
@@ -19,7 +19,8 @@ function LinkFocus(props) {
19
19
  if (isFocusVisible(event)) {
20
20
  setFocusVisible(true);
21
21
  }
22
- };
22
+ }; // eslint-disable-next-line @typescript-eslint/no-unused-vars
23
+
23
24
 
24
25
  const handleBlur = event => {
25
26
  if (focusVisible !== false) {
@@ -50,4 +50,5 @@ export const Link = styled('a', ({
50
50
  }
51
51
  };
52
52
  });
53
- Link.displayName = "Link";
53
+ Link.displayName = "Link";
54
+ Link.displayName = 'Link';
@@ -63,23 +63,27 @@ const ListHeading = /*#__PURE__*/React.forwardRef((props, ref) => {
63
63
  }
64
64
  }
65
65
 
66
- return /*#__PURE__*/React.createElement(Root, _extends({
67
- ref: ref
68
- }, rootProps), /*#__PURE__*/React.createElement(Content, contentProps, /*#__PURE__*/React.createElement(StyledHeadingContentRow, null, /*#__PURE__*/React.createElement(HeadingContainer, _extends({
69
- $maxLines: isMaxLinesValid(maxLines) ? maxLines : 1
70
- }, headingContainerProps), /*#__PURE__*/React.createElement(RenderNode, {
71
- component: props.heading
72
- })), EndEnhancer && /*#__PURE__*/React.createElement(EndEnhancerContainer, _extends({
73
- $isText: isEndEnhancerString
74
- }, endEnhancerContainerProps), /*#__PURE__*/React.createElement(RenderNode, {
75
- component: EndEnhancer
76
- }))), (Boolean(SubHeading) || EndEnhancerDescription) && /*#__PURE__*/React.createElement(StyledHeadingContentRow, null, /*#__PURE__*/React.createElement(SubHeadingContainer, _extends({
77
- $maxLines: isMaxLinesValid(maxLines) ? maxLines : 1
78
- }, subHeadingContainerProps), /*#__PURE__*/React.createElement(RenderNode, {
79
- component: SubHeading
80
- })), Boolean(EndEnhancerDescription) && isEndEnhancerString && /*#__PURE__*/React.createElement(EndEnhancerDescriptionContainer, endEnhancerDescriptionContainerProps, /*#__PURE__*/React.createElement(RenderNode, {
81
- component: EndEnhancerDescription
82
- })))));
66
+ return (
67
+ /*#__PURE__*/
68
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
69
+ React.createElement(Root, _extends({
70
+ ref: ref
71
+ }, rootProps), /*#__PURE__*/React.createElement(Content, contentProps, /*#__PURE__*/React.createElement(StyledHeadingContentRow, null, /*#__PURE__*/React.createElement(HeadingContainer, _extends({
72
+ $maxLines: isMaxLinesValid(maxLines) ? maxLines : 1
73
+ }, headingContainerProps), /*#__PURE__*/React.createElement(RenderNode, {
74
+ component: props.heading
75
+ })), EndEnhancer && /*#__PURE__*/React.createElement(EndEnhancerContainer, _extends({
76
+ $isText: isEndEnhancerString
77
+ }, endEnhancerContainerProps), /*#__PURE__*/React.createElement(RenderNode, {
78
+ component: EndEnhancer
79
+ }))), (Boolean(SubHeading) || EndEnhancerDescription) && /*#__PURE__*/React.createElement(StyledHeadingContentRow, null, /*#__PURE__*/React.createElement(SubHeadingContainer, _extends({
80
+ $maxLines: isMaxLinesValid(maxLines) ? maxLines : 1
81
+ }, subHeadingContainerProps), /*#__PURE__*/React.createElement(RenderNode, {
82
+ component: SubHeading
83
+ })), Boolean(EndEnhancerDescription) && isEndEnhancerString && /*#__PURE__*/React.createElement(EndEnhancerDescriptionContainer, endEnhancerDescriptionContainerProps, /*#__PURE__*/React.createElement(RenderNode, {
84
+ component: EndEnhancerDescription
85
+ })))))
86
+ );
83
87
  });
84
88
  ListHeading.displayName = 'ListHeading';
85
89
  export default ListHeading;
@@ -38,7 +38,8 @@ const ListItem = /*#__PURE__*/React.forwardRef((props, ref) => {
38
38
  return props.artworkSize || ARTWORK_SIZES.MEDIUM;
39
39
  }
40
40
  }, [props.artworkSize, props.sublist]);
41
- return /*#__PURE__*/React.createElement(Root, _extends({
41
+ return /*#__PURE__*/React.createElement(Root // eslint-disable-next-line @typescript-eslint/no-explicit-any
42
+ , _extends({
42
43
  ref: ref,
43
44
  $shape: props.shape || SHAPE.DEFAULT,
44
45
  "aria-label": props['aria-label'],
@@ -25,6 +25,7 @@ export const StyledRoot = styled('li', ({
25
25
  };
26
26
  });
27
27
  StyledRoot.displayName = "StyledRoot";
28
+ StyledRoot.displayName = 'StyledRoot';
28
29
  export const StyledContent = styled('div', ({
29
30
  $mLeft,
30
31
  $sublist,
@@ -49,11 +50,13 @@ export const StyledContent = styled('div', ({
49
50
  };
50
51
  });
51
52
  StyledContent.displayName = "StyledContent";
53
+ StyledContent.displayName = 'StyledContent';
52
54
  export const StyledEndEnhancerContainer = styled('div', {
53
55
  alignItems: 'center',
54
56
  display: 'flex'
55
57
  });
56
58
  StyledEndEnhancerContainer.displayName = "StyledEndEnhancerContainer";
59
+ StyledEndEnhancerContainer.displayName = 'StyledEndEnhancerContainer';
57
60
  export const StyledArtworkContainer = styled('div', ({
58
61
  $artworkSize,
59
62
  $sublist,
@@ -65,6 +68,7 @@ export const StyledArtworkContainer = styled('div', ({
65
68
  return {
66
69
  alignItems: 'center',
67
70
  display: 'flex',
71
+ flexShrink: 0,
68
72
  paddingLeft: $theme.sizing.scale600,
69
73
  paddingRight: $theme.sizing.scale600
70
74
  };
@@ -73,11 +77,13 @@ export const StyledArtworkContainer = styled('div', ({
73
77
  return {
74
78
  alignItems: 'center',
75
79
  display: 'flex',
80
+ flexShrink: 0,
76
81
  justifyContent: 'center',
77
82
  width: $theme.sizing.scale1600
78
83
  };
79
84
  });
80
85
  StyledArtworkContainer.displayName = "StyledArtworkContainer";
86
+ StyledArtworkContainer.displayName = 'StyledArtworkContainer';
81
87
  export const StyledLabelContent = styled('p', ({
82
88
  $theme
83
89
  }) => {
@@ -88,6 +94,7 @@ export const StyledLabelContent = styled('p', ({
88
94
  };
89
95
  });
90
96
  StyledLabelContent.displayName = "StyledLabelContent";
97
+ StyledLabelContent.displayName = 'StyledLabelContent';
91
98
  export const StyledLabelDescription = styled('p', ({
92
99
  $theme
93
100
  }) => {
@@ -98,6 +105,7 @@ export const StyledLabelDescription = styled('p', ({
98
105
  };
99
106
  });
100
107
  StyledLabelDescription.displayName = "StyledLabelDescription";
108
+ StyledLabelDescription.displayName = 'StyledLabelDescription';
101
109
  export const StyledLabelSublistContent = styled('p', ({
102
110
  $theme
103
111
  }) => {
@@ -108,6 +116,7 @@ export const StyledLabelSublistContent = styled('p', ({
108
116
  };
109
117
  });
110
118
  StyledLabelSublistContent.displayName = "StyledLabelSublistContent";
119
+ StyledLabelSublistContent.displayName = 'StyledLabelSublistContent';
111
120
  export const StyledHeadingRoot = styled('div', ({
112
121
  $theme
113
122
  }) => {
@@ -121,6 +130,7 @@ export const StyledHeadingRoot = styled('div', ({
121
130
  };
122
131
  });
123
132
  StyledHeadingRoot.displayName = "StyledHeadingRoot";
133
+ StyledHeadingRoot.displayName = 'StyledHeadingRoot';
124
134
  export const StyledHeadingContent = styled('div', ({
125
135
  $theme
126
136
  }) => {
@@ -140,12 +150,14 @@ export const StyledHeadingContent = styled('div', ({
140
150
  };
141
151
  });
142
152
  StyledHeadingContent.displayName = "StyledHeadingContent";
153
+ StyledHeadingContent.displayName = 'StyledHeadingContent';
143
154
  export const StyledHeadingContentRow = styled('div', {
144
155
  display: 'flex',
145
156
  justifyContent: 'space-between',
146
157
  width: '100%'
147
158
  });
148
159
  StyledHeadingContentRow.displayName = "StyledHeadingContentRow";
160
+ StyledHeadingContentRow.displayName = 'StyledHeadingContentRow';
149
161
  export const StyledHeadingMainHeading = styled('p', ({
150
162
  $maxLines = 1,
151
163
  $theme
@@ -162,6 +174,7 @@ export const StyledHeadingMainHeading = styled('p', ({
162
174
  };
163
175
  });
164
176
  StyledHeadingMainHeading.displayName = "StyledHeadingMainHeading";
177
+ StyledHeadingMainHeading.displayName = 'StyledHeadingMainHeading';
165
178
  export const StyledHeadingSubHeading = styled('p', ({
166
179
  $maxLines = 1,
167
180
  $theme
@@ -178,6 +191,7 @@ export const StyledHeadingSubHeading = styled('p', ({
178
191
  };
179
192
  });
180
193
  StyledHeadingSubHeading.displayName = "StyledHeadingSubHeading";
194
+ StyledHeadingSubHeading.displayName = 'StyledHeadingSubHeading';
181
195
  export const StyledHeadingEndEnhancerContainer = styled('div', ({
182
196
  $isText,
183
197
  $theme
@@ -189,6 +203,7 @@ export const StyledHeadingEndEnhancerContainer = styled('div', ({
189
203
  textOverflow: 'ellipsis'
190
204
  }));
191
205
  StyledHeadingEndEnhancerContainer.displayName = "StyledHeadingEndEnhancerContainer";
206
+ StyledHeadingEndEnhancerContainer.displayName = 'StyledHeadingEndEnhancerContainer';
192
207
  export const StyledHeadingEndEnhancerDescriptionContainer = styled('p', ({
193
208
  $theme
194
209
  }) => ({ ...$theme.typography.ParagraphMedium,
@@ -200,4 +215,5 @@ export const StyledHeadingEndEnhancerDescriptionContainer = styled('p', ({
200
215
  overflow: 'hidden',
201
216
  textOverflow: 'ellipsis'
202
217
  }));
203
- StyledHeadingEndEnhancerDescriptionContainer.displayName = "StyledHeadingEndEnhancerDescriptionContainer";
218
+ StyledHeadingEndEnhancerDescriptionContainer.displayName = "StyledHeadingEndEnhancerDescriptionContainer";
219
+ StyledHeadingEndEnhancerDescriptionContainer.displayName = 'StyledHeadingEndEnhancerDescriptionContainer';
@@ -77,7 +77,9 @@ const es_AR = {
77
77
  booleanFilterTrue: 'verdadero',
78
78
  booleanFilterFalse: 'falso',
79
79
  booleanColumnTrueShort: 'V',
80
- booleanColumnFalseShort: 'F'
80
+ booleanColumnFalseShort: 'F',
81
+ selectRow: 'Seleccionar fila',
82
+ selectAllRows: 'Seleccionar todas las filas'
81
83
  },
82
84
  buttongroup: {
83
85
  ariaLabel: 'grupo de botones'
@@ -14,8 +14,9 @@ const LocaleProvider = props => {
14
14
  locale,
15
15
  children
16
16
  } = props;
17
+ const parentLocale = React.useContext(LocaleContext) ?? {};
17
18
  return /*#__PURE__*/React.createElement(LocaleContext.Provider, {
18
- value: extend({}, en_US, locale)
19
+ value: extend({}, en_US, parentLocale, locale)
19
20
  }, children);
20
21
  };
21
22
 
@@ -77,7 +77,9 @@ const tr_TR = {
77
77
  booleanFilterTrue: 'doğru',
78
78
  booleanFilterFalse: 'yanlış',
79
79
  booleanColumnTrueShort: 'D',
80
- booleanColumnFalseShort: 'Y'
80
+ booleanColumnFalseShort: 'Y',
81
+ selectRow: 'satır seç',
82
+ selectAllRows: 'Tüm satırları seç'
81
83
  },
82
84
  buttongroup: {
83
85
  ariaLabel: 'buton grup'
@@ -210,4 +210,18 @@ export const KIND = Object.freeze({
210
210
  default: 'default',
211
211
  accent: 'accent',
212
212
  negative: 'negative'
213
+ });
214
+ export const LOCATION_PUCK_SIZES = Object.freeze({
215
+ small: 'small',
216
+ medium: 'medium',
217
+ large: 'large'
218
+ });
219
+ export const LOCATION_PUCK_TYPES = Object.freeze({
220
+ consumer: 'consumer',
221
+ earner: 'earner'
222
+ });
223
+ export const EARNER_LOCATION_PUCK_CORE_SCALES = Object.freeze({
224
+ [LOCATION_PUCK_SIZES.small]: '50%',
225
+ [LOCATION_PUCK_SIZES.medium]: '75%',
226
+ [LOCATION_PUCK_SIZES.large]: '100%'
213
227
  });
@@ -49,6 +49,7 @@ const FixedMarker = ({
49
49
  labelEnhancerPosition = LABEL_ENHANCER_POSITIONS.bottom,
50
50
  badgeEnhancerSize = null,
51
51
  badgeEnhancerContent = null,
52
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
52
53
  ...restProps
53
54
  }) => {
54
55
  const [, theme] = useStyletron();
@@ -6,6 +6,7 @@ LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  export { default as FixedMarker } from './fixed-marker';
8
8
  export { default as FloatingMarker } from './floating-marker';
9
- export { FLOATING_MARKER_ANCHOR_POSITIONS, FLOATING_MARKER_SIZES, FLOATING_MARKER_ANCHOR_TYPES, NEEDLE_SIZES, PINHEAD_SIZES_SHAPES, BADGE_ENHANCER_SIZES, LABEL_ENHANCER_POSITIONS, KIND, PINHEAD_DIMENSIONS } from './constants';
9
+ export { default as LocationPuck } from './location-puck';
10
+ export { FLOATING_MARKER_ANCHOR_POSITIONS, FLOATING_MARKER_SIZES, FLOATING_MARKER_ANCHOR_TYPES, NEEDLE_SIZES, PINHEAD_SIZES_SHAPES, BADGE_ENHANCER_SIZES, LABEL_ENHANCER_POSITIONS, KIND, PINHEAD_DIMENSIONS, LOCATION_PUCK_SIZES, LOCATION_PUCK_TYPES } from './constants';
10
11
  export * from './types';
11
12
  /** @deprecated use AnchorPositions instead. To be removed in future versions.*/
@@ -0,0 +1,142 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ /*
4
+ Copyright (c) Uber Technologies, Inc.
5
+
6
+ This source code is licensed under the MIT license found in the
7
+ LICENSE file in the root directory of this source tree.
8
+ */
9
+ import * as React from 'react';
10
+ import { useStyletron } from '../styles';
11
+ import { getOverrides } from '../helpers/overrides';
12
+ import { LOCATION_PUCK_SIZES, LOCATION_PUCK_TYPES, EARNER_LOCATION_PUCK_CORE_SCALES } from './constants';
13
+ import { LocationPuckContainer, StyledConsumerLocationPuckCore, StyledLocationPuckApproximation, StyledEarnerLocationPuckCore } from './styled-components';
14
+
15
+ const ConsumerLocationPuckHeading = ({
16
+ heading
17
+ }) => {
18
+ const [css, theme] = useStyletron();
19
+ return /*#__PURE__*/React.createElement("svg", {
20
+ className: css({
21
+ height: `${6}px`,
22
+ width: `${11}px`,
23
+ position: 'absolute',
24
+ color: theme.colors.contentAccent,
25
+ transition: `${theme.animation.timing300} ${theme.animation.easeOutCurve} all`
26
+ }),
27
+ style: {
28
+ transform: `rotate(${heading}deg) translateY(-16px)`
29
+ },
30
+ width: "11",
31
+ height: "6",
32
+ viewBox: "0 0 11 6",
33
+ fill: "none",
34
+ xmlns: "http://www.w3.org/2000/svg"
35
+ }, /*#__PURE__*/React.createElement("path", {
36
+ fillRule: "evenodd",
37
+ clipRule: "evenodd",
38
+ d: "M5.5 0L0 6L5.5 5L11 6L5.5 0Z",
39
+ fill: "currentColor"
40
+ }));
41
+ };
42
+
43
+ const ConsumerLocationPuck = ({
44
+ heading,
45
+ showHeading,
46
+ confidenceRadius,
47
+ overrides
48
+ }) => {
49
+ const [, theme] = useStyletron();
50
+ const [Root, rootProps] = getOverrides(overrides.Root, LocationPuckContainer);
51
+ const [ConsumerLocationPuckCore, consumerLocationPuckCoreProps] = getOverrides(overrides.ConsumerLocationPuckCore, StyledConsumerLocationPuckCore);
52
+ const [LocationPuckApproximation, locationPuckApproximationProps] = getOverrides(overrides.LocationPuckApproximation, StyledLocationPuckApproximation);
53
+ return /*#__PURE__*/React.createElement(Root, rootProps, /*#__PURE__*/React.createElement(LocationPuckApproximation, _extends({
54
+ $color: theme.colors.contentAccent,
55
+ $radius: confidenceRadius
56
+ }, locationPuckApproximationProps)), /*#__PURE__*/React.createElement(ConsumerLocationPuckCore, consumerLocationPuckCoreProps), showHeading && /*#__PURE__*/React.createElement(ConsumerLocationPuckHeading, {
57
+ heading: heading
58
+ }));
59
+ };
60
+
61
+ const EarnerLocationPuckHeading = ({
62
+ size,
63
+ color,
64
+ heading
65
+ }) => {
66
+ const [css, theme] = useStyletron();
67
+ return /*#__PURE__*/React.createElement("svg", {
68
+ className: css({
69
+ position: 'absolute',
70
+ transition: `${theme.animation.timing300} ${theme.animation.easeOutCurve} all`
71
+ }),
72
+ style: {
73
+ transform: `rotate(${heading}deg) scale(${EARNER_LOCATION_PUCK_CORE_SCALES[size]})`
74
+ },
75
+ width: "72",
76
+ height: "72",
77
+ viewBox: "0 0 72 72",
78
+ fill: "none",
79
+ xmlns: "http://www.w3.org/2000/svg"
80
+ }, /*#__PURE__*/React.createElement("path", {
81
+ fillRule: "evenodd",
82
+ clipRule: "evenodd",
83
+ d: "M36 20L52 52L36 42.8571L20 52L36 20Z",
84
+ fill: color
85
+ }));
86
+ };
87
+
88
+ const EarnerLocationPuck = ({
89
+ heading,
90
+ confidenceRadius,
91
+ size,
92
+ overrides
93
+ }) => {
94
+ const [, theme] = useStyletron();
95
+ const color = theme.colors.contentPrimary;
96
+ const [Root, rootProps] = getOverrides(overrides.Root, LocationPuckContainer);
97
+ const [LocationPuckApproximation, locationPuckApproximationProps] = getOverrides(overrides.LocationPuckApproximation, StyledLocationPuckApproximation);
98
+ const [EarnerLocationPuckCore, earnerLocationPuckCoreProps] = getOverrides(overrides.EarnerLocationPuckCore, StyledEarnerLocationPuckCore);
99
+ return /*#__PURE__*/React.createElement(Root, rootProps, /*#__PURE__*/React.createElement(LocationPuckApproximation, _extends({
100
+ $color: color,
101
+ $radius: confidenceRadius
102
+ }, locationPuckApproximationProps)), /*#__PURE__*/React.createElement(EarnerLocationPuckCore, _extends({
103
+ $color: color,
104
+ $size: size
105
+ }, earnerLocationPuckCoreProps)), /*#__PURE__*/React.createElement(EarnerLocationPuckHeading, {
106
+ size: size,
107
+ color: color,
108
+ heading: heading
109
+ }));
110
+ };
111
+
112
+ const LocationPuck = ({
113
+ size = LOCATION_PUCK_SIZES.medium,
114
+ heading = 0,
115
+ showHeading = true,
116
+ confidenceRadius = 0,
117
+ type = LOCATION_PUCK_TYPES.consumer,
118
+ overrides = {}
119
+ }) => {
120
+ if (process.env.NODE_ENV !== "production") {
121
+ if (size !== LOCATION_PUCK_SIZES.medium && type === LOCATION_PUCK_TYPES.consumer) {
122
+ console.warn(`Location puck size can only be applied to type === LOCATION_PUCK_TYPES.earner`);
123
+ }
124
+
125
+ if (!showHeading && type === LOCATION_PUCK_TYPES.earner) {
126
+ console.warn(`Earner location puck must show the heading indicator`);
127
+ }
128
+ }
129
+
130
+ const sharedProps = {
131
+ heading,
132
+ confidenceRadius,
133
+ overrides
134
+ };
135
+ return type === LOCATION_PUCK_TYPES.consumer ? /*#__PURE__*/React.createElement(ConsumerLocationPuck, _extends({}, sharedProps, {
136
+ showHeading: showHeading
137
+ })) : /*#__PURE__*/React.createElement(EarnerLocationPuck, _extends({}, sharedProps, {
138
+ size: size
139
+ }));
140
+ };
141
+
142
+ export default LocationPuck;
@@ -21,6 +21,7 @@ const PinHead = ({
21
21
  color,
22
22
  background,
23
23
  type = PINHEAD_TYPES.fixed,
24
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
24
25
  anchorType,
25
26
  needle = NEEDLE_SIZES.none,
26
27
  labelEnhancerContent,
@@ -5,7 +5,7 @@ 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
7
  import { styled } from '../styles';
8
- import { BADGE_ENHANCER_STYLES, FLOATING_MARKER_ANCHOR_POSITIONS, LABEL_SIZES } from './constants';
8
+ import { BADGE_ENHANCER_STYLES, FLOATING_MARKER_ANCHOR_POSITIONS, LABEL_SIZES, EARNER_LOCATION_PUCK_CORE_SCALES } from './constants';
9
9
  export const getAnchorTransform = (anchor, anchorSize) => ({
10
10
  [FLOATING_MARKER_ANCHOR_POSITIONS.none]: ``,
11
11
  [FLOATING_MARKER_ANCHOR_POSITIONS.topLeft]: `translate(${anchorSize}px, ${anchorSize}px)`,
@@ -28,6 +28,7 @@ export const StyledDragShadowContainer = styled('div', ({
28
28
  boxShadow: $theme.lighting.shadow600
29
29
  }));
30
30
  StyledDragShadowContainer.displayName = "StyledDragShadowContainer";
31
+ StyledDragShadowContainer.displayName = 'StyledDragShadowContainer';
31
32
  export const StyledDragShadow = styled('div', ({
32
33
  $theme,
33
34
  $background,
@@ -41,6 +42,7 @@ export const StyledDragShadow = styled('div', ({
41
42
  bottom: 0
42
43
  }));
43
44
  StyledDragShadow.displayName = "StyledDragShadow";
45
+ StyledDragShadow.displayName = 'StyledDragShadow';
44
46
  export const StyledNeedle = styled('div', ({
45
47
  $theme,
46
48
  $background,
@@ -52,6 +54,7 @@ export const StyledNeedle = styled('div', ({
52
54
  boxShadow: $theme.lighting.shadow600
53
55
  }));
54
56
  StyledNeedle.displayName = "StyledNeedle";
57
+ StyledNeedle.displayName = 'StyledNeedle';
55
58
  export const StyledFloatingMarkerRoot = styled('div', ({
56
59
  $size
57
60
  }) => ({
@@ -60,6 +63,7 @@ export const StyledFloatingMarkerRoot = styled('div', ({
60
63
  width: `${$size}px`
61
64
  }));
62
65
  StyledFloatingMarkerRoot.displayName = "StyledFloatingMarkerRoot";
66
+ StyledFloatingMarkerRoot.displayName = 'StyledFloatingMarkerRoot';
63
67
  export const StyledFloatingMarkerPinHeadContainer = styled('div', ({
64
68
  $theme,
65
69
  $anchor,
@@ -70,16 +74,19 @@ export const StyledFloatingMarkerPinHeadContainer = styled('div', ({
70
74
  transform: getAnchorTransform($anchor, $anchorSize)
71
75
  }));
72
76
  StyledFloatingMarkerPinHeadContainer.displayName = "StyledFloatingMarkerPinHeadContainer";
77
+ StyledFloatingMarkerPinHeadContainer.displayName = 'StyledFloatingMarkerPinHeadContainer';
73
78
  export const StyledFloatingMarkerAnchorContainer = styled('div', () => ({
74
79
  position: 'absolute'
75
80
  }));
76
81
  StyledFloatingMarkerAnchorContainer.displayName = "StyledFloatingMarkerAnchorContainer";
82
+ StyledFloatingMarkerAnchorContainer.displayName = 'StyledFloatingMarkerAnchorContainer';
77
83
  export const StyledFixedMarkerRoot = styled('div', () => ({
78
84
  display: 'flex',
79
85
  alignItems: 'center',
80
86
  flexDirection: 'column'
81
87
  }));
82
88
  StyledFixedMarkerRoot.displayName = "StyledFixedMarkerRoot";
89
+ StyledFixedMarkerRoot.displayName = 'StyledFixedMarkerRoot';
83
90
  export const StyledFixedMarkerDragContainer = styled('div', ({
84
91
  $theme,
85
92
  $translateAmount,
@@ -94,6 +101,7 @@ export const StyledFixedMarkerDragContainer = styled('div', ({
94
101
  };
95
102
  });
96
103
  StyledFixedMarkerDragContainer.displayName = "StyledFixedMarkerDragContainer";
104
+ StyledFixedMarkerDragContainer.displayName = 'StyledFixedMarkerDragContainer';
97
105
  export const StyledOuterXXSmallAnchor = styled('div', ({
98
106
  $theme,
99
107
  $round,
@@ -110,6 +118,7 @@ export const StyledOuterXXSmallAnchor = styled('div', ({
110
118
  boxShadow: $theme.lighting.shadow600
111
119
  }));
112
120
  StyledOuterXXSmallAnchor.displayName = "StyledOuterXXSmallAnchor";
121
+ StyledOuterXXSmallAnchor.displayName = 'StyledOuterXXSmallAnchor';
113
122
  export const StyledInnerXXSmallAnchor = styled('div', ({
114
123
  $round,
115
124
  $color,
@@ -121,6 +130,7 @@ export const StyledInnerXXSmallAnchor = styled('div', ({
121
130
  borderRadius: $round ? '50%' : 0
122
131
  }));
123
132
  StyledInnerXXSmallAnchor.displayName = "StyledInnerXXSmallAnchor";
133
+ StyledInnerXXSmallAnchor.displayName = 'StyledInnerXXSmallAnchor';
124
134
  export const StyledOuterXSmallAnchor = styled('div', ({
125
135
  $theme,
126
136
  $round,
@@ -137,6 +147,7 @@ export const StyledOuterXSmallAnchor = styled('div', ({
137
147
  boxShadow: $theme.lighting.shadow600
138
148
  }));
139
149
  StyledOuterXSmallAnchor.displayName = "StyledOuterXSmallAnchor";
150
+ StyledOuterXSmallAnchor.displayName = 'StyledOuterXSmallAnchor';
140
151
  export const StyledInnerXSmallAnchor = styled('div', ({
141
152
  $round,
142
153
  $color,
@@ -148,6 +159,7 @@ export const StyledInnerXSmallAnchor = styled('div', ({
148
159
  borderRadius: $round ? '50%' : 0
149
160
  }));
150
161
  StyledInnerXSmallAnchor.displayName = "StyledInnerXSmallAnchor";
162
+ StyledInnerXSmallAnchor.displayName = 'StyledInnerXSmallAnchor';
151
163
  export const StyledPinHead = styled('div', ({
152
164
  $theme,
153
165
  $height,
@@ -183,6 +195,7 @@ export const StyledPinHead = styled('div', ({
183
195
  };
184
196
  });
185
197
  StyledPinHead.displayName = "StyledPinHead";
198
+ StyledPinHead.displayName = 'StyledPinHead';
186
199
  export const StyledStrokedLabelContainer = styled('div', ({
187
200
  $position,
188
201
  $theme,
@@ -229,6 +242,7 @@ export const StyledStrokedLabelContainer = styled('div', ({
229
242
  };
230
243
  });
231
244
  StyledStrokedLabelContainer.displayName = "StyledStrokedLabelContainer";
245
+ StyledStrokedLabelContainer.displayName = 'StyledStrokedLabelContainer';
232
246
  export const StyledStrokedLabel = styled('div', ({
233
247
  $theme,
234
248
  $size
@@ -255,6 +269,7 @@ export const StyledStrokedLabel = styled('div', ({
255
269
  };
256
270
  });
257
271
  StyledStrokedLabel.displayName = "StyledStrokedLabel";
272
+ StyledStrokedLabel.displayName = 'StyledStrokedLabel';
258
273
  export const StyledBadgeEnhancerRoot = styled('div', ({
259
274
  $theme,
260
275
  $size,
@@ -277,12 +292,14 @@ export const StyledBadgeEnhancerRoot = styled('div', ({
277
292
  };
278
293
  });
279
294
  StyledBadgeEnhancerRoot.displayName = "StyledBadgeEnhancerRoot";
295
+ StyledBadgeEnhancerRoot.displayName = 'StyledBadgeEnhancerRoot';
280
296
  export const RelativeContainer = styled('div', () => {
281
297
  return {
282
298
  position: 'relative'
283
299
  };
284
300
  });
285
301
  RelativeContainer.displayName = "RelativeContainer";
302
+ RelativeContainer.displayName = 'RelativeContainer';
286
303
  export const StyledContentItem = styled('div', ({
287
304
  $theme,
288
305
  $color,
@@ -298,4 +315,71 @@ export const StyledContentItem = styled('div', ({
298
315
  color: $color
299
316
  };
300
317
  });
301
- StyledContentItem.displayName = "StyledContentItem";
318
+ StyledContentItem.displayName = "StyledContentItem";
319
+ StyledContentItem.displayName = 'StyledContentItem';
320
+ export const LocationPuckContainer = styled('div', () => {
321
+ return {
322
+ position: 'relative',
323
+ display: 'flex',
324
+ alignItems: 'center',
325
+ justifyContent: 'center'
326
+ };
327
+ });
328
+ LocationPuckContainer.displayName = "LocationPuckContainer";
329
+ LocationPuckContainer.displayName = 'LocationPuckContainer';
330
+ export const consumerLocationShadow = {
331
+ boxShadow: `0px 2px 4px 0px rgba(67, 76, 123, 0.2)`
332
+ };
333
+ export const earnerLocationShadow = {
334
+ boxShadow: `0px 3px 5px 0px rgba(67, 76, 123, 0.4)`
335
+ };
336
+ export const StyledConsumerLocationPuckCore = styled('div', ({
337
+ $theme
338
+ }) => {
339
+ return {
340
+ height: `${12}px`,
341
+ width: `${12}px`,
342
+ background: $theme.colors.contentAccent,
343
+ borderRadius: `${100}px `,
344
+ position: 'absolute',
345
+ ...consumerLocationShadow
346
+ };
347
+ });
348
+ StyledConsumerLocationPuckCore.displayName = "StyledConsumerLocationPuckCore";
349
+ export const StyledLocationPuckApproximation = styled('div', ({
350
+ $theme,
351
+ $color,
352
+ $radius
353
+ }) => {
354
+ return {
355
+ background: $color,
356
+ opacity: 0.12,
357
+ height: `${$radius / 2}px`,
358
+ width: `${$radius / 2}px`,
359
+ borderRadius: `${10000}px `,
360
+ position: 'absolute',
361
+ transition: `${$theme.animation.timing300} ${$theme.animation.easeOutCurve} all`
362
+ };
363
+ });
364
+ StyledLocationPuckApproximation.displayName = "StyledLocationPuckApproximation";
365
+ StyledLocationPuckApproximation.displayName = 'StyledLocationPuckApproximation';
366
+ export const StyledEarnerLocationPuckCore = styled('div', ({
367
+ $theme,
368
+ $color,
369
+ $size
370
+ }) => {
371
+ return {
372
+ position: 'absolute',
373
+ transform: `scale(${EARNER_LOCATION_PUCK_CORE_SCALES[$size]})`,
374
+ transition: `${$theme.animation.timing300} ${$theme.animation.easeOutCurve} all`,
375
+ ...earnerLocationShadow,
376
+ borderRadius: '50%',
377
+ height: `${72}px`,
378
+ width: `${72}px`,
379
+ background: $theme.colors.backgroundPrimary,
380
+ border: `${6}px solid ${$color}`,
381
+ boxSizing: 'border-box'
382
+ };
383
+ });
384
+ StyledEarnerLocationPuckCore.displayName = "StyledEarnerLocationPuckCore";
385
+ StyledEarnerLocationPuckCore.displayName = 'StyledEarnerLocationPuckCore';
package/es/menu/index.js CHANGED
@@ -13,6 +13,6 @@ export { default as NestedMenus, NestedMenuContext } from './nested-menus'; // C
13
13
 
14
14
  export { KEY_STRINGS, STATE_CHANGE_TYPES } from './constants'; // Styled elements
15
15
 
16
- export { StyledEmptyState, StyledList, StyledListItem, StyledListItemProfile, StyledProfileImgContainer, StyledProfileImg, StyledProfileLabelsContainer, StyledProfileTitle, StyledProfileSubtitle, StyledProfileBody } from './styled-components'; // Flow
16
+ export { StyledEmptyState, StyledList, StyledListItem, StyledListItemProfile, StyledProfileImgContainer, StyledProfileImg, StyledProfileLabelsContainer, StyledProfileTitle, StyledProfileSubtitle, StyledProfileBody, StyledMenuDivider } from './styled-components'; // Flow
17
17
 
18
18
  export * from './types';