@oxy.so/bloom 4.32.0 → 4.34.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 (609) hide show
  1. package/docs/adoption-matrix.mdx +5 -4
  2. package/docs/date-picker.mdx +15 -28
  3. package/docs/locale.mdx +50 -0
  4. package/docs/provider.mdx +11 -0
  5. package/lib/commonjs/activity-feed/ActivityFeed.js +7 -4
  6. package/lib/commonjs/activity-feed/ActivityFeed.js.map +1 -1
  7. package/lib/commonjs/alert-dialog/AlertDialog.js +4 -1
  8. package/lib/commonjs/alert-dialog/AlertDialog.js.map +1 -1
  9. package/lib/commonjs/announcement/Announcement.js +5 -4
  10. package/lib/commonjs/announcement/Announcement.js.map +1 -1
  11. package/lib/commonjs/app-shell/ProOfferCard.js +5 -4
  12. package/lib/commonjs/app-shell/ProOfferCard.js.map +1 -1
  13. package/lib/commonjs/calendar/shared.js +5 -11
  14. package/lib/commonjs/calendar/shared.js.map +1 -1
  15. package/lib/commonjs/chart-cards/medical-parts.js +6 -2
  16. package/lib/commonjs/chart-cards/medical-parts.js.map +1 -1
  17. package/lib/commonjs/chat-composer/ComposerBanner.js +5 -3
  18. package/lib/commonjs/chat-composer/ComposerBanner.js.map +1 -1
  19. package/lib/commonjs/chat-list/ChatSearchField.js +4 -1
  20. package/lib/commonjs/chat-list/ChatSearchField.js.map +1 -1
  21. package/lib/commonjs/composer-panel/ComposerPopover.js +3 -1
  22. package/lib/commonjs/composer-panel/ComposerPopover.js.map +1 -1
  23. package/lib/commonjs/data-table/DataTableRowActions.js +6 -4
  24. package/lib/commonjs/data-table/DataTableRowActions.js.map +1 -1
  25. package/lib/commonjs/data-table/DataTableSearch.js +5 -3
  26. package/lib/commonjs/data-table/DataTableSearch.js.map +1 -1
  27. package/lib/commonjs/date-picker/Calendar.js +11 -2
  28. package/lib/commonjs/date-picker/Calendar.js.map +1 -1
  29. package/lib/commonjs/date-picker/CalendarMonth.js +4 -3
  30. package/lib/commonjs/date-picker/CalendarMonth.js.map +1 -1
  31. package/lib/commonjs/date-picker/DatePicker.js +13 -4
  32. package/lib/commonjs/date-picker/DatePicker.js.map +1 -1
  33. package/lib/commonjs/date-picker/DateRangePicker.js +17 -13
  34. package/lib/commonjs/date-picker/DateRangePicker.js.map +1 -1
  35. package/lib/commonjs/date-picker/MeetingScheduler.js +18 -13
  36. package/lib/commonjs/date-picker/MeetingScheduler.js.map +1 -1
  37. package/lib/commonjs/date-picker/PickerShell.js +5 -5
  38. package/lib/commonjs/date-picker/PickerShell.js.map +1 -1
  39. package/lib/commonjs/date-picker/calendar-grid.js +7 -21
  40. package/lib/commonjs/date-picker/calendar-grid.js.map +1 -1
  41. package/lib/commonjs/date-picker/messages.js +526 -0
  42. package/lib/commonjs/date-picker/messages.js.map +1 -0
  43. package/lib/commonjs/dialog/DialogHeader.js +12 -7
  44. package/lib/commonjs/dialog/DialogHeader.js.map +1 -1
  45. package/lib/commonjs/dialog/SheetShell.js +4 -2
  46. package/lib/commonjs/dialog/SheetShell.js.map +1 -1
  47. package/lib/commonjs/dropdown-menu/DropdownMenu.js +4 -1
  48. package/lib/commonjs/dropdown-menu/DropdownMenu.js.map +1 -1
  49. package/lib/commonjs/dropdown-menu/DropdownMenu.web.js +4 -1
  50. package/lib/commonjs/dropdown-menu/DropdownMenu.web.js.map +1 -1
  51. package/lib/commonjs/floating/FloatingPanel.js +3 -1
  52. package/lib/commonjs/floating/FloatingPanel.js.map +1 -1
  53. package/lib/commonjs/home-search/HomeSearchBar.js +5 -4
  54. package/lib/commonjs/home-search/HomeSearchBar.js.map +1 -1
  55. package/lib/commonjs/home-search/SavedSearchCard.js +7 -5
  56. package/lib/commonjs/home-search/SavedSearchCard.js.map +1 -1
  57. package/lib/commonjs/index.js +1063 -1034
  58. package/lib/commonjs/index.js.map +1 -1
  59. package/lib/commonjs/index.web.js +1063 -1034
  60. package/lib/commonjs/index.web.js.map +1 -1
  61. package/lib/commonjs/listing-card/ListingCard.js +5 -5
  62. package/lib/commonjs/listing-card/ListingCard.js.map +1 -1
  63. package/lib/commonjs/listing-details/ReviewCard.js +7 -5
  64. package/lib/commonjs/listing-details/ReviewCard.js.map +1 -1
  65. package/lib/commonjs/listing-editor/ListingQualityMeter.js +5 -4
  66. package/lib/commonjs/listing-editor/ListingQualityMeter.js.map +1 -1
  67. package/lib/commonjs/locale/common-messages.js +517 -0
  68. package/lib/commonjs/locale/common-messages.js.map +1 -0
  69. package/lib/commonjs/locale/context.js +35 -0
  70. package/lib/commonjs/locale/context.js.map +1 -0
  71. package/lib/commonjs/locale/format-date.js +34 -0
  72. package/lib/commonjs/locale/format-date.js.map +1 -0
  73. package/lib/commonjs/locale/index.js +32 -0
  74. package/lib/commonjs/locale/index.js.map +1 -0
  75. package/lib/commonjs/locale/languages.js +35 -0
  76. package/lib/commonjs/locale/languages.js.map +1 -0
  77. package/lib/commonjs/locale/messages.js +34 -0
  78. package/lib/commonjs/locale/messages.js.map +1 -0
  79. package/lib/commonjs/locale/plural.js +53 -0
  80. package/lib/commonjs/locale/plural.js.map +1 -0
  81. package/lib/commonjs/map-marker/MapListingPreview.js +7 -5
  82. package/lib/commonjs/map-marker/MapListingPreview.js.map +1 -1
  83. package/lib/commonjs/media-card/FriendActivityCard.js +3 -1
  84. package/lib/commonjs/media-card/FriendActivityCard.js.map +1 -1
  85. package/lib/commonjs/media-card/GenreCard.js +3 -1
  86. package/lib/commonjs/media-card/GenreCard.js.map +1 -1
  87. package/lib/commonjs/media-card/MediaCard.js +3 -1
  88. package/lib/commonjs/media-card/MediaCard.js.map +1 -1
  89. package/lib/commonjs/media-card/QuickAccessTile.js +4 -3
  90. package/lib/commonjs/media-card/QuickAccessTile.js.map +1 -1
  91. package/lib/commonjs/media-card/RecapCard.js +4 -3
  92. package/lib/commonjs/media-card/RecapCard.js.map +1 -1
  93. package/lib/commonjs/media-card/parts.js +5 -2
  94. package/lib/commonjs/media-card/parts.js.map +1 -1
  95. package/lib/commonjs/media-header/MediaActionBar.js +5 -4
  96. package/lib/commonjs/media-header/MediaActionBar.js.map +1 -1
  97. package/lib/commonjs/media-header/PopularTracks.js +5 -4
  98. package/lib/commonjs/media-header/PopularTracks.js.map +1 -1
  99. package/lib/commonjs/media-header/parts.js +6 -2
  100. package/lib/commonjs/media-header/parts.js.map +1 -1
  101. package/lib/commonjs/media-shelf/Shelf.js +7 -4
  102. package/lib/commonjs/media-shelf/Shelf.js.map +1 -1
  103. package/lib/commonjs/media-shelf/ShelfSkeleton.js +5 -3
  104. package/lib/commonjs/media-shelf/ShelfSkeleton.js.map +1 -1
  105. package/lib/commonjs/menubar/Menubar.web.js +4 -1
  106. package/lib/commonjs/menubar/Menubar.web.js.map +1 -1
  107. package/lib/commonjs/message-media/FileMessage.js +5 -3
  108. package/lib/commonjs/message-media/FileMessage.js.map +1 -1
  109. package/lib/commonjs/message-media/parts.js +4 -1
  110. package/lib/commonjs/message-media/parts.js.map +1 -1
  111. package/lib/commonjs/music-library/SearchField.js +4 -1
  112. package/lib/commonjs/music-library/SearchField.js.map +1 -1
  113. package/lib/commonjs/overlay/Overlay.js +4 -1
  114. package/lib/commonjs/overlay/Overlay.js.map +1 -1
  115. package/lib/commonjs/page-header/PageHeader.js +5 -4
  116. package/lib/commonjs/page-header/PageHeader.js.map +1 -1
  117. package/lib/commonjs/pagination/Pagination.js +7 -5
  118. package/lib/commonjs/pagination/Pagination.js.map +1 -1
  119. package/lib/commonjs/place-card/PlaceCard.js +5 -5
  120. package/lib/commonjs/place-card/PlaceCard.js.map +1 -1
  121. package/lib/commonjs/place-reviews/PlaceReviewCard.js +7 -5
  122. package/lib/commonjs/place-reviews/PlaceReviewCard.js.map +1 -1
  123. package/lib/commonjs/place-reviews/WriteReviewPrompt.js +5 -3
  124. package/lib/commonjs/place-reviews/WriteReviewPrompt.js.map +1 -1
  125. package/lib/commonjs/provider/BloomProvider.js +18 -13
  126. package/lib/commonjs/provider/BloomProvider.js.map +1 -1
  127. package/lib/commonjs/recent-hires-card/RecentHiresCard.js +7 -5
  128. package/lib/commonjs/recent-hires-card/RecentHiresCard.js.map +1 -1
  129. package/lib/commonjs/settings-modal/SettingsModal.js +3 -1
  130. package/lib/commonjs/settings-modal/SettingsModal.js.map +1 -1
  131. package/lib/commonjs/sidebar/Sidebar.js +5 -4
  132. package/lib/commonjs/sidebar/Sidebar.js.map +1 -1
  133. package/lib/commonjs/stay-filters/AmenityFilter.js +6 -2
  134. package/lib/commonjs/stay-filters/AmenityFilter.js.map +1 -1
  135. package/lib/commonjs/stay-search/GuestPicker.js +5 -3
  136. package/lib/commonjs/stay-search/GuestPicker.js.map +1 -1
  137. package/lib/commonjs/stepper/Stepper.js +4 -1
  138. package/lib/commonjs/stepper/Stepper.js.map +1 -1
  139. package/lib/commonjs/toast/ToastContent.js +3 -1
  140. package/lib/commonjs/toast/ToastContent.js.map +1 -1
  141. package/lib/commonjs/vendor-card/VendorCard.js +3 -2
  142. package/lib/commonjs/vendor-card/VendorCard.js.map +1 -1
  143. package/lib/commonjs/wizard/WizardFooter.js +7 -5
  144. package/lib/commonjs/wizard/WizardFooter.js.map +1 -1
  145. package/lib/module/activity-feed/ActivityFeed.js +8 -3
  146. package/lib/module/activity-feed/ActivityFeed.js.map +1 -1
  147. package/lib/module/alert-dialog/AlertDialog.js +4 -1
  148. package/lib/module/alert-dialog/AlertDialog.js.map +1 -1
  149. package/lib/module/announcement/Announcement.js +6 -3
  150. package/lib/module/announcement/Announcement.js.map +1 -1
  151. package/lib/module/app-shell/ProOfferCard.js +6 -3
  152. package/lib/module/app-shell/ProOfferCard.js.map +1 -1
  153. package/lib/module/calendar/shared.js +5 -11
  154. package/lib/module/calendar/shared.js.map +1 -1
  155. package/lib/module/chart-cards/medical-parts.js +6 -2
  156. package/lib/module/chart-cards/medical-parts.js.map +1 -1
  157. package/lib/module/chat-composer/ComposerBanner.js +6 -2
  158. package/lib/module/chat-composer/ComposerBanner.js.map +1 -1
  159. package/lib/module/chat-list/ChatSearchField.js +6 -3
  160. package/lib/module/chat-list/ChatSearchField.js.map +1 -1
  161. package/lib/module/composer-panel/ComposerPopover.js +3 -1
  162. package/lib/module/composer-panel/ComposerPopover.js.map +1 -1
  163. package/lib/module/data-table/DataTableRowActions.js +7 -3
  164. package/lib/module/data-table/DataTableRowActions.js.map +1 -1
  165. package/lib/module/data-table/DataTableSearch.js +6 -2
  166. package/lib/module/data-table/DataTableSearch.js.map +1 -1
  167. package/lib/module/date-picker/Calendar.js +11 -2
  168. package/lib/module/date-picker/Calendar.js.map +1 -1
  169. package/lib/module/date-picker/CalendarMonth.js +4 -3
  170. package/lib/module/date-picker/CalendarMonth.js.map +1 -1
  171. package/lib/module/date-picker/DatePicker.js +13 -4
  172. package/lib/module/date-picker/DatePicker.js.map +1 -1
  173. package/lib/module/date-picker/DateRangePicker.js +17 -13
  174. package/lib/module/date-picker/DateRangePicker.js.map +1 -1
  175. package/lib/module/date-picker/MeetingScheduler.js +18 -13
  176. package/lib/module/date-picker/MeetingScheduler.js.map +1 -1
  177. package/lib/module/date-picker/PickerShell.js +6 -4
  178. package/lib/module/date-picker/PickerShell.js.map +1 -1
  179. package/lib/module/date-picker/calendar-grid.js +7 -21
  180. package/lib/module/date-picker/calendar-grid.js.map +1 -1
  181. package/lib/module/date-picker/messages.js +523 -0
  182. package/lib/module/date-picker/messages.js.map +1 -0
  183. package/lib/module/dialog/DialogHeader.js +12 -7
  184. package/lib/module/dialog/DialogHeader.js.map +1 -1
  185. package/lib/module/dialog/SheetShell.js +4 -2
  186. package/lib/module/dialog/SheetShell.js.map +1 -1
  187. package/lib/module/dropdown-menu/DropdownMenu.js +4 -1
  188. package/lib/module/dropdown-menu/DropdownMenu.js.map +1 -1
  189. package/lib/module/dropdown-menu/DropdownMenu.web.js +4 -1
  190. package/lib/module/dropdown-menu/DropdownMenu.web.js.map +1 -1
  191. package/lib/module/floating/FloatingPanel.js +3 -1
  192. package/lib/module/floating/FloatingPanel.js.map +1 -1
  193. package/lib/module/home-search/HomeSearchBar.js +6 -3
  194. package/lib/module/home-search/HomeSearchBar.js.map +1 -1
  195. package/lib/module/home-search/SavedSearchCard.js +8 -4
  196. package/lib/module/home-search/SavedSearchCard.js.map +1 -1
  197. package/lib/module/index.js +1 -0
  198. package/lib/module/index.js.map +1 -1
  199. package/lib/module/index.web.js +1 -0
  200. package/lib/module/index.web.js.map +1 -1
  201. package/lib/module/listing-card/ListingCard.js +6 -4
  202. package/lib/module/listing-card/ListingCard.js.map +1 -1
  203. package/lib/module/listing-details/ReviewCard.js +8 -4
  204. package/lib/module/listing-details/ReviewCard.js.map +1 -1
  205. package/lib/module/listing-editor/ListingQualityMeter.js +6 -3
  206. package/lib/module/listing-editor/ListingQualityMeter.js.map +1 -1
  207. package/lib/module/locale/common-messages.js +513 -0
  208. package/lib/module/locale/common-messages.js.map +1 -0
  209. package/lib/module/locale/context.js +30 -0
  210. package/lib/module/locale/context.js.map +1 -0
  211. package/lib/module/locale/format-date.js +30 -0
  212. package/lib/module/locale/format-date.js.map +1 -0
  213. package/lib/module/locale/index.js +7 -0
  214. package/lib/module/locale/index.js.map +1 -0
  215. package/lib/module/locale/languages.js +29 -0
  216. package/lib/module/locale/languages.js.map +1 -0
  217. package/lib/module/locale/messages.js +30 -0
  218. package/lib/module/locale/messages.js.map +1 -0
  219. package/lib/module/locale/plural.js +48 -0
  220. package/lib/module/locale/plural.js.map +1 -0
  221. package/lib/module/map-marker/MapListingPreview.js +8 -4
  222. package/lib/module/map-marker/MapListingPreview.js.map +1 -1
  223. package/lib/module/media-card/FriendActivityCard.js +3 -1
  224. package/lib/module/media-card/FriendActivityCard.js.map +1 -1
  225. package/lib/module/media-card/GenreCard.js +3 -1
  226. package/lib/module/media-card/GenreCard.js.map +1 -1
  227. package/lib/module/media-card/MediaCard.js +5 -3
  228. package/lib/module/media-card/MediaCard.js.map +1 -1
  229. package/lib/module/media-card/QuickAccessTile.js +5 -2
  230. package/lib/module/media-card/QuickAccessTile.js.map +1 -1
  231. package/lib/module/media-card/RecapCard.js +5 -2
  232. package/lib/module/media-card/RecapCard.js.map +1 -1
  233. package/lib/module/media-card/parts.js +5 -2
  234. package/lib/module/media-card/parts.js.map +1 -1
  235. package/lib/module/media-header/MediaActionBar.js +6 -3
  236. package/lib/module/media-header/MediaActionBar.js.map +1 -1
  237. package/lib/module/media-header/PopularTracks.js +6 -3
  238. package/lib/module/media-header/PopularTracks.js.map +1 -1
  239. package/lib/module/media-header/parts.js +8 -3
  240. package/lib/module/media-header/parts.js.map +1 -1
  241. package/lib/module/media-shelf/Shelf.js +8 -3
  242. package/lib/module/media-shelf/Shelf.js.map +1 -1
  243. package/lib/module/media-shelf/ShelfSkeleton.js +6 -2
  244. package/lib/module/media-shelf/ShelfSkeleton.js.map +1 -1
  245. package/lib/module/menubar/Menubar.web.js +4 -1
  246. package/lib/module/menubar/Menubar.web.js.map +1 -1
  247. package/lib/module/message-media/FileMessage.js +6 -2
  248. package/lib/module/message-media/FileMessage.js.map +1 -1
  249. package/lib/module/message-media/parts.js +6 -2
  250. package/lib/module/message-media/parts.js.map +1 -1
  251. package/lib/module/music-library/SearchField.js +6 -3
  252. package/lib/module/music-library/SearchField.js.map +1 -1
  253. package/lib/module/overlay/Overlay.js +4 -1
  254. package/lib/module/overlay/Overlay.js.map +1 -1
  255. package/lib/module/page-header/PageHeader.js +6 -3
  256. package/lib/module/page-header/PageHeader.js.map +1 -1
  257. package/lib/module/pagination/Pagination.js +8 -4
  258. package/lib/module/pagination/Pagination.js.map +1 -1
  259. package/lib/module/place-card/PlaceCard.js +6 -4
  260. package/lib/module/place-card/PlaceCard.js.map +1 -1
  261. package/lib/module/place-reviews/PlaceReviewCard.js +8 -4
  262. package/lib/module/place-reviews/PlaceReviewCard.js.map +1 -1
  263. package/lib/module/place-reviews/WriteReviewPrompt.js +6 -2
  264. package/lib/module/place-reviews/WriteReviewPrompt.js.map +1 -1
  265. package/lib/module/provider/BloomProvider.js +16 -11
  266. package/lib/module/provider/BloomProvider.js.map +1 -1
  267. package/lib/module/recent-hires-card/RecentHiresCard.js +8 -4
  268. package/lib/module/recent-hires-card/RecentHiresCard.js.map +1 -1
  269. package/lib/module/settings-modal/SettingsModal.js +3 -1
  270. package/lib/module/settings-modal/SettingsModal.js.map +1 -1
  271. package/lib/module/sidebar/Sidebar.js +6 -3
  272. package/lib/module/sidebar/Sidebar.js.map +1 -1
  273. package/lib/module/stay-filters/AmenityFilter.js +8 -3
  274. package/lib/module/stay-filters/AmenityFilter.js.map +1 -1
  275. package/lib/module/stay-search/GuestPicker.js +6 -2
  276. package/lib/module/stay-search/GuestPicker.js.map +1 -1
  277. package/lib/module/stepper/Stepper.js +4 -1
  278. package/lib/module/stepper/Stepper.js.map +1 -1
  279. package/lib/module/toast/ToastContent.js +3 -1
  280. package/lib/module/toast/ToastContent.js.map +1 -1
  281. package/lib/module/vendor-card/VendorCard.js +5 -3
  282. package/lib/module/vendor-card/VendorCard.js.map +1 -1
  283. package/lib/module/wizard/WizardFooter.js +8 -4
  284. package/lib/module/wizard/WizardFooter.js.map +1 -1
  285. package/lib/typescript/commonjs/activity-feed/ActivityFeed.d.ts +1 -1
  286. package/lib/typescript/commonjs/activity-feed/ActivityFeed.d.ts.map +1 -1
  287. package/lib/typescript/commonjs/alert-dialog/AlertDialog.d.ts +1 -1
  288. package/lib/typescript/commonjs/alert-dialog/AlertDialog.d.ts.map +1 -1
  289. package/lib/typescript/commonjs/alert-dialog/index.d.ts +1 -1
  290. package/lib/typescript/commonjs/alert-dialog/index.d.ts.map +1 -1
  291. package/lib/typescript/commonjs/alert-dialog/index.web.d.ts +1 -1
  292. package/lib/typescript/commonjs/alert-dialog/index.web.d.ts.map +1 -1
  293. package/lib/typescript/commonjs/announcement/Announcement.d.ts +1 -1
  294. package/lib/typescript/commonjs/announcement/Announcement.d.ts.map +1 -1
  295. package/lib/typescript/commonjs/app-shell/ProOfferCard.d.ts.map +1 -1
  296. package/lib/typescript/commonjs/calendar/shared.d.ts.map +1 -1
  297. package/lib/typescript/commonjs/chart-cards/medical-parts.d.ts +1 -1
  298. package/lib/typescript/commonjs/chart-cards/medical-parts.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/chat-composer/ComposerBanner.d.ts +1 -1
  300. package/lib/typescript/commonjs/chat-composer/ComposerBanner.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/chat-list/ChatSearchField.d.ts +1 -1
  302. package/lib/typescript/commonjs/chat-list/ChatSearchField.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/composer-panel/ComposerPopover.d.ts.map +1 -1
  304. package/lib/typescript/commonjs/data-table/DataTableRowActions.d.ts +1 -1
  305. package/lib/typescript/commonjs/data-table/DataTableRowActions.d.ts.map +1 -1
  306. package/lib/typescript/commonjs/data-table/DataTableSearch.d.ts +1 -1
  307. package/lib/typescript/commonjs/data-table/DataTableSearch.d.ts.map +1 -1
  308. package/lib/typescript/commonjs/date-picker/Calendar.d.ts.map +1 -1
  309. package/lib/typescript/commonjs/date-picker/CalendarMonth.d.ts +5 -3
  310. package/lib/typescript/commonjs/date-picker/CalendarMonth.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/date-picker/DatePicker.d.ts +1 -1
  312. package/lib/typescript/commonjs/date-picker/DatePicker.d.ts.map +1 -1
  313. package/lib/typescript/commonjs/date-picker/DateRangePicker.d.ts +1 -1
  314. package/lib/typescript/commonjs/date-picker/DateRangePicker.d.ts.map +1 -1
  315. package/lib/typescript/commonjs/date-picker/MeetingScheduler.d.ts +1 -1
  316. package/lib/typescript/commonjs/date-picker/MeetingScheduler.d.ts.map +1 -1
  317. package/lib/typescript/commonjs/date-picker/PickerShell.d.ts +3 -3
  318. package/lib/typescript/commonjs/date-picker/PickerShell.d.ts.map +1 -1
  319. package/lib/typescript/commonjs/date-picker/calendar-grid.d.ts +1 -2
  320. package/lib/typescript/commonjs/date-picker/calendar-grid.d.ts.map +1 -1
  321. package/lib/typescript/commonjs/date-picker/messages.d.ts +31 -0
  322. package/lib/typescript/commonjs/date-picker/messages.d.ts.map +1 -0
  323. package/lib/typescript/commonjs/date-picker/types.d.ts +28 -24
  324. package/lib/typescript/commonjs/date-picker/types.d.ts.map +1 -1
  325. package/lib/typescript/commonjs/dialog/DialogHeader.d.ts.map +1 -1
  326. package/lib/typescript/commonjs/dialog/SheetShell.d.ts.map +1 -1
  327. package/lib/typescript/commonjs/dropdown-menu/DropdownMenu.d.ts +1 -1
  328. package/lib/typescript/commonjs/dropdown-menu/DropdownMenu.d.ts.map +1 -1
  329. package/lib/typescript/commonjs/dropdown-menu/DropdownMenu.web.d.ts +1 -1
  330. package/lib/typescript/commonjs/dropdown-menu/DropdownMenu.web.d.ts.map +1 -1
  331. package/lib/typescript/commonjs/floating/FloatingPanel.d.ts.map +1 -1
  332. package/lib/typescript/commonjs/home-search/HomeSearchBar.d.ts +1 -1
  333. package/lib/typescript/commonjs/home-search/HomeSearchBar.d.ts.map +1 -1
  334. package/lib/typescript/commonjs/home-search/SavedSearchCard.d.ts +1 -1
  335. package/lib/typescript/commonjs/home-search/SavedSearchCard.d.ts.map +1 -1
  336. package/lib/typescript/commonjs/index.d.ts +2 -0
  337. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  338. package/lib/typescript/commonjs/index.web.d.ts +2 -0
  339. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  340. package/lib/typescript/commonjs/listing-card/ListingCard.d.ts.map +1 -1
  341. package/lib/typescript/commonjs/listing-details/ReviewCard.d.ts +1 -1
  342. package/lib/typescript/commonjs/listing-details/ReviewCard.d.ts.map +1 -1
  343. package/lib/typescript/commonjs/listing-editor/ListingQualityMeter.d.ts +1 -1
  344. package/lib/typescript/commonjs/listing-editor/ListingQualityMeter.d.ts.map +1 -1
  345. package/lib/typescript/commonjs/locale/common-messages.d.ts +54 -0
  346. package/lib/typescript/commonjs/locale/common-messages.d.ts.map +1 -0
  347. package/lib/typescript/commonjs/locale/context.d.ts +18 -0
  348. package/lib/typescript/commonjs/locale/context.d.ts.map +1 -0
  349. package/lib/typescript/commonjs/locale/format-date.d.ts +13 -0
  350. package/lib/typescript/commonjs/locale/format-date.d.ts.map +1 -0
  351. package/lib/typescript/commonjs/locale/index.d.ts +3 -0
  352. package/lib/typescript/commonjs/locale/index.d.ts.map +1 -0
  353. package/lib/typescript/commonjs/locale/languages.d.ts +16 -0
  354. package/lib/typescript/commonjs/locale/languages.d.ts.map +1 -0
  355. package/lib/typescript/commonjs/locale/messages.d.ts +18 -0
  356. package/lib/typescript/commonjs/locale/messages.d.ts.map +1 -0
  357. package/lib/typescript/commonjs/locale/plural.d.ts +19 -0
  358. package/lib/typescript/commonjs/locale/plural.d.ts.map +1 -0
  359. package/lib/typescript/commonjs/map-marker/MapListingPreview.d.ts +1 -1
  360. package/lib/typescript/commonjs/map-marker/MapListingPreview.d.ts.map +1 -1
  361. package/lib/typescript/commonjs/media-card/FriendActivityCard.d.ts.map +1 -1
  362. package/lib/typescript/commonjs/media-card/GenreCard.d.ts.map +1 -1
  363. package/lib/typescript/commonjs/media-card/MediaCard.d.ts.map +1 -1
  364. package/lib/typescript/commonjs/media-card/QuickAccessTile.d.ts.map +1 -1
  365. package/lib/typescript/commonjs/media-card/RecapCard.d.ts.map +1 -1
  366. package/lib/typescript/commonjs/media-card/parts.d.ts +1 -1
  367. package/lib/typescript/commonjs/media-card/parts.d.ts.map +1 -1
  368. package/lib/typescript/commonjs/media-header/MediaActionBar.d.ts +1 -1
  369. package/lib/typescript/commonjs/media-header/MediaActionBar.d.ts.map +1 -1
  370. package/lib/typescript/commonjs/media-header/PopularTracks.d.ts +1 -1
  371. package/lib/typescript/commonjs/media-header/PopularTracks.d.ts.map +1 -1
  372. package/lib/typescript/commonjs/media-header/parts.d.ts +1 -1
  373. package/lib/typescript/commonjs/media-header/parts.d.ts.map +1 -1
  374. package/lib/typescript/commonjs/media-shelf/Shelf.d.ts +1 -1
  375. package/lib/typescript/commonjs/media-shelf/Shelf.d.ts.map +1 -1
  376. package/lib/typescript/commonjs/media-shelf/ShelfSkeleton.d.ts +1 -1
  377. package/lib/typescript/commonjs/media-shelf/ShelfSkeleton.d.ts.map +1 -1
  378. package/lib/typescript/commonjs/menubar/Menubar.web.d.ts +1 -1
  379. package/lib/typescript/commonjs/menubar/Menubar.web.d.ts.map +1 -1
  380. package/lib/typescript/commonjs/message-media/FileMessage.d.ts +1 -1
  381. package/lib/typescript/commonjs/message-media/FileMessage.d.ts.map +1 -1
  382. package/lib/typescript/commonjs/message-media/parts.d.ts.map +1 -1
  383. package/lib/typescript/commonjs/music-library/SearchField.d.ts +1 -1
  384. package/lib/typescript/commonjs/music-library/SearchField.d.ts.map +1 -1
  385. package/lib/typescript/commonjs/overlay/Overlay.d.ts.map +1 -1
  386. package/lib/typescript/commonjs/page-header/PageHeader.d.ts +1 -1
  387. package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
  388. package/lib/typescript/commonjs/pagination/Pagination.d.ts.map +1 -1
  389. package/lib/typescript/commonjs/place-card/PlaceCard.d.ts.map +1 -1
  390. package/lib/typescript/commonjs/place-reviews/PlaceReviewCard.d.ts +1 -1
  391. package/lib/typescript/commonjs/place-reviews/PlaceReviewCard.d.ts.map +1 -1
  392. package/lib/typescript/commonjs/place-reviews/WriteReviewPrompt.d.ts +1 -1
  393. package/lib/typescript/commonjs/place-reviews/WriteReviewPrompt.d.ts.map +1 -1
  394. package/lib/typescript/commonjs/provider/BloomProvider.d.ts +1 -1
  395. package/lib/typescript/commonjs/provider/BloomProvider.d.ts.map +1 -1
  396. package/lib/typescript/commonjs/provider/types.d.ts +6 -0
  397. package/lib/typescript/commonjs/provider/types.d.ts.map +1 -1
  398. package/lib/typescript/commonjs/recent-hires-card/RecentHiresCard.d.ts.map +1 -1
  399. package/lib/typescript/commonjs/settings-modal/SettingsModal.d.ts.map +1 -1
  400. package/lib/typescript/commonjs/sidebar/Sidebar.d.ts.map +1 -1
  401. package/lib/typescript/commonjs/stay-filters/AmenityFilter.d.ts +1 -1
  402. package/lib/typescript/commonjs/stay-filters/AmenityFilter.d.ts.map +1 -1
  403. package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts +1 -1
  404. package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts.map +1 -1
  405. package/lib/typescript/commonjs/stepper/Stepper.d.ts +1 -1
  406. package/lib/typescript/commonjs/stepper/Stepper.d.ts.map +1 -1
  407. package/lib/typescript/commonjs/toast/ToastContent.d.ts.map +1 -1
  408. package/lib/typescript/commonjs/vendor-card/VendorCard.d.ts.map +1 -1
  409. package/lib/typescript/commonjs/wizard/WizardFooter.d.ts +1 -1
  410. package/lib/typescript/commonjs/wizard/WizardFooter.d.ts.map +1 -1
  411. package/lib/typescript/module/activity-feed/ActivityFeed.d.ts +1 -1
  412. package/lib/typescript/module/activity-feed/ActivityFeed.d.ts.map +1 -1
  413. package/lib/typescript/module/alert-dialog/AlertDialog.d.ts +1 -1
  414. package/lib/typescript/module/alert-dialog/AlertDialog.d.ts.map +1 -1
  415. package/lib/typescript/module/alert-dialog/index.d.ts +1 -1
  416. package/lib/typescript/module/alert-dialog/index.d.ts.map +1 -1
  417. package/lib/typescript/module/alert-dialog/index.web.d.ts +1 -1
  418. package/lib/typescript/module/alert-dialog/index.web.d.ts.map +1 -1
  419. package/lib/typescript/module/announcement/Announcement.d.ts +1 -1
  420. package/lib/typescript/module/announcement/Announcement.d.ts.map +1 -1
  421. package/lib/typescript/module/app-shell/ProOfferCard.d.ts.map +1 -1
  422. package/lib/typescript/module/calendar/shared.d.ts.map +1 -1
  423. package/lib/typescript/module/chart-cards/medical-parts.d.ts +1 -1
  424. package/lib/typescript/module/chart-cards/medical-parts.d.ts.map +1 -1
  425. package/lib/typescript/module/chat-composer/ComposerBanner.d.ts +1 -1
  426. package/lib/typescript/module/chat-composer/ComposerBanner.d.ts.map +1 -1
  427. package/lib/typescript/module/chat-list/ChatSearchField.d.ts +1 -1
  428. package/lib/typescript/module/chat-list/ChatSearchField.d.ts.map +1 -1
  429. package/lib/typescript/module/composer-panel/ComposerPopover.d.ts.map +1 -1
  430. package/lib/typescript/module/data-table/DataTableRowActions.d.ts +1 -1
  431. package/lib/typescript/module/data-table/DataTableRowActions.d.ts.map +1 -1
  432. package/lib/typescript/module/data-table/DataTableSearch.d.ts +1 -1
  433. package/lib/typescript/module/data-table/DataTableSearch.d.ts.map +1 -1
  434. package/lib/typescript/module/date-picker/Calendar.d.ts.map +1 -1
  435. package/lib/typescript/module/date-picker/CalendarMonth.d.ts +5 -3
  436. package/lib/typescript/module/date-picker/CalendarMonth.d.ts.map +1 -1
  437. package/lib/typescript/module/date-picker/DatePicker.d.ts +1 -1
  438. package/lib/typescript/module/date-picker/DatePicker.d.ts.map +1 -1
  439. package/lib/typescript/module/date-picker/DateRangePicker.d.ts +1 -1
  440. package/lib/typescript/module/date-picker/DateRangePicker.d.ts.map +1 -1
  441. package/lib/typescript/module/date-picker/MeetingScheduler.d.ts +1 -1
  442. package/lib/typescript/module/date-picker/MeetingScheduler.d.ts.map +1 -1
  443. package/lib/typescript/module/date-picker/PickerShell.d.ts +3 -3
  444. package/lib/typescript/module/date-picker/PickerShell.d.ts.map +1 -1
  445. package/lib/typescript/module/date-picker/calendar-grid.d.ts +1 -2
  446. package/lib/typescript/module/date-picker/calendar-grid.d.ts.map +1 -1
  447. package/lib/typescript/module/date-picker/messages.d.ts +31 -0
  448. package/lib/typescript/module/date-picker/messages.d.ts.map +1 -0
  449. package/lib/typescript/module/date-picker/types.d.ts +28 -24
  450. package/lib/typescript/module/date-picker/types.d.ts.map +1 -1
  451. package/lib/typescript/module/dialog/DialogHeader.d.ts.map +1 -1
  452. package/lib/typescript/module/dialog/SheetShell.d.ts.map +1 -1
  453. package/lib/typescript/module/dropdown-menu/DropdownMenu.d.ts +1 -1
  454. package/lib/typescript/module/dropdown-menu/DropdownMenu.d.ts.map +1 -1
  455. package/lib/typescript/module/dropdown-menu/DropdownMenu.web.d.ts +1 -1
  456. package/lib/typescript/module/dropdown-menu/DropdownMenu.web.d.ts.map +1 -1
  457. package/lib/typescript/module/floating/FloatingPanel.d.ts.map +1 -1
  458. package/lib/typescript/module/home-search/HomeSearchBar.d.ts +1 -1
  459. package/lib/typescript/module/home-search/HomeSearchBar.d.ts.map +1 -1
  460. package/lib/typescript/module/home-search/SavedSearchCard.d.ts +1 -1
  461. package/lib/typescript/module/home-search/SavedSearchCard.d.ts.map +1 -1
  462. package/lib/typescript/module/index.d.ts +2 -0
  463. package/lib/typescript/module/index.d.ts.map +1 -1
  464. package/lib/typescript/module/index.web.d.ts +2 -0
  465. package/lib/typescript/module/index.web.d.ts.map +1 -1
  466. package/lib/typescript/module/listing-card/ListingCard.d.ts.map +1 -1
  467. package/lib/typescript/module/listing-details/ReviewCard.d.ts +1 -1
  468. package/lib/typescript/module/listing-details/ReviewCard.d.ts.map +1 -1
  469. package/lib/typescript/module/listing-editor/ListingQualityMeter.d.ts +1 -1
  470. package/lib/typescript/module/listing-editor/ListingQualityMeter.d.ts.map +1 -1
  471. package/lib/typescript/module/locale/common-messages.d.ts +54 -0
  472. package/lib/typescript/module/locale/common-messages.d.ts.map +1 -0
  473. package/lib/typescript/module/locale/context.d.ts +18 -0
  474. package/lib/typescript/module/locale/context.d.ts.map +1 -0
  475. package/lib/typescript/module/locale/format-date.d.ts +13 -0
  476. package/lib/typescript/module/locale/format-date.d.ts.map +1 -0
  477. package/lib/typescript/module/locale/index.d.ts +3 -0
  478. package/lib/typescript/module/locale/index.d.ts.map +1 -0
  479. package/lib/typescript/module/locale/languages.d.ts +16 -0
  480. package/lib/typescript/module/locale/languages.d.ts.map +1 -0
  481. package/lib/typescript/module/locale/messages.d.ts +18 -0
  482. package/lib/typescript/module/locale/messages.d.ts.map +1 -0
  483. package/lib/typescript/module/locale/plural.d.ts +19 -0
  484. package/lib/typescript/module/locale/plural.d.ts.map +1 -0
  485. package/lib/typescript/module/map-marker/MapListingPreview.d.ts +1 -1
  486. package/lib/typescript/module/map-marker/MapListingPreview.d.ts.map +1 -1
  487. package/lib/typescript/module/media-card/FriendActivityCard.d.ts.map +1 -1
  488. package/lib/typescript/module/media-card/GenreCard.d.ts.map +1 -1
  489. package/lib/typescript/module/media-card/MediaCard.d.ts.map +1 -1
  490. package/lib/typescript/module/media-card/QuickAccessTile.d.ts.map +1 -1
  491. package/lib/typescript/module/media-card/RecapCard.d.ts.map +1 -1
  492. package/lib/typescript/module/media-card/parts.d.ts +1 -1
  493. package/lib/typescript/module/media-card/parts.d.ts.map +1 -1
  494. package/lib/typescript/module/media-header/MediaActionBar.d.ts +1 -1
  495. package/lib/typescript/module/media-header/MediaActionBar.d.ts.map +1 -1
  496. package/lib/typescript/module/media-header/PopularTracks.d.ts +1 -1
  497. package/lib/typescript/module/media-header/PopularTracks.d.ts.map +1 -1
  498. package/lib/typescript/module/media-header/parts.d.ts +1 -1
  499. package/lib/typescript/module/media-header/parts.d.ts.map +1 -1
  500. package/lib/typescript/module/media-shelf/Shelf.d.ts +1 -1
  501. package/lib/typescript/module/media-shelf/Shelf.d.ts.map +1 -1
  502. package/lib/typescript/module/media-shelf/ShelfSkeleton.d.ts +1 -1
  503. package/lib/typescript/module/media-shelf/ShelfSkeleton.d.ts.map +1 -1
  504. package/lib/typescript/module/menubar/Menubar.web.d.ts +1 -1
  505. package/lib/typescript/module/menubar/Menubar.web.d.ts.map +1 -1
  506. package/lib/typescript/module/message-media/FileMessage.d.ts +1 -1
  507. package/lib/typescript/module/message-media/FileMessage.d.ts.map +1 -1
  508. package/lib/typescript/module/message-media/parts.d.ts.map +1 -1
  509. package/lib/typescript/module/music-library/SearchField.d.ts +1 -1
  510. package/lib/typescript/module/music-library/SearchField.d.ts.map +1 -1
  511. package/lib/typescript/module/overlay/Overlay.d.ts.map +1 -1
  512. package/lib/typescript/module/page-header/PageHeader.d.ts +1 -1
  513. package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
  514. package/lib/typescript/module/pagination/Pagination.d.ts.map +1 -1
  515. package/lib/typescript/module/place-card/PlaceCard.d.ts.map +1 -1
  516. package/lib/typescript/module/place-reviews/PlaceReviewCard.d.ts +1 -1
  517. package/lib/typescript/module/place-reviews/PlaceReviewCard.d.ts.map +1 -1
  518. package/lib/typescript/module/place-reviews/WriteReviewPrompt.d.ts +1 -1
  519. package/lib/typescript/module/place-reviews/WriteReviewPrompt.d.ts.map +1 -1
  520. package/lib/typescript/module/provider/BloomProvider.d.ts +1 -1
  521. package/lib/typescript/module/provider/BloomProvider.d.ts.map +1 -1
  522. package/lib/typescript/module/provider/types.d.ts +6 -0
  523. package/lib/typescript/module/provider/types.d.ts.map +1 -1
  524. package/lib/typescript/module/recent-hires-card/RecentHiresCard.d.ts.map +1 -1
  525. package/lib/typescript/module/settings-modal/SettingsModal.d.ts.map +1 -1
  526. package/lib/typescript/module/sidebar/Sidebar.d.ts.map +1 -1
  527. package/lib/typescript/module/stay-filters/AmenityFilter.d.ts +1 -1
  528. package/lib/typescript/module/stay-filters/AmenityFilter.d.ts.map +1 -1
  529. package/lib/typescript/module/stay-search/GuestPicker.d.ts +1 -1
  530. package/lib/typescript/module/stay-search/GuestPicker.d.ts.map +1 -1
  531. package/lib/typescript/module/stepper/Stepper.d.ts +1 -1
  532. package/lib/typescript/module/stepper/Stepper.d.ts.map +1 -1
  533. package/lib/typescript/module/toast/ToastContent.d.ts.map +1 -1
  534. package/lib/typescript/module/vendor-card/VendorCard.d.ts.map +1 -1
  535. package/lib/typescript/module/wizard/WizardFooter.d.ts +1 -1
  536. package/lib/typescript/module/wizard/WizardFooter.d.ts.map +1 -1
  537. package/package.json +18 -1
  538. package/src/activity-feed/ActivityFeed.tsx +6 -2
  539. package/src/alert-dialog/AlertDialog.tsx +4 -1
  540. package/src/announcement/Announcement.tsx +4 -1
  541. package/src/app-shell/ProOfferCard.tsx +4 -1
  542. package/src/calendar/shared.ts +5 -12
  543. package/src/chart-cards/medical-parts.tsx +6 -2
  544. package/src/chat-composer/ComposerBanner.tsx +4 -1
  545. package/src/chat-list/ChatSearchField.tsx +4 -1
  546. package/src/composer-panel/ComposerPopover.tsx +3 -1
  547. package/src/data-table/DataTableRowActions.tsx +5 -2
  548. package/src/data-table/DataTableSearch.tsx +4 -1
  549. package/src/date-picker/Calendar.tsx +8 -2
  550. package/src/date-picker/CalendarMonth.tsx +8 -5
  551. package/src/date-picker/DatePicker.tsx +10 -4
  552. package/src/date-picker/DateRangePicker.tsx +14 -13
  553. package/src/date-picker/MeetingScheduler.tsx +17 -11
  554. package/src/date-picker/PickerShell.tsx +6 -5
  555. package/src/date-picker/calendar-grid.ts +16 -23
  556. package/src/date-picker/messages.ts +470 -0
  557. package/src/date-picker/types.ts +28 -24
  558. package/src/dialog/DialogHeader.tsx +12 -7
  559. package/src/dialog/SheetShell.tsx +4 -2
  560. package/src/dropdown-menu/DropdownMenu.tsx +4 -1
  561. package/src/dropdown-menu/DropdownMenu.web.tsx +4 -1
  562. package/src/floating/FloatingPanel.tsx +3 -1
  563. package/src/home-search/HomeSearchBar.tsx +4 -1
  564. package/src/home-search/SavedSearchCard.tsx +6 -2
  565. package/src/index.ts +2 -0
  566. package/src/index.web.ts +2 -0
  567. package/src/listing-card/ListingCard.tsx +4 -2
  568. package/src/listing-details/ReviewCard.tsx +6 -2
  569. package/src/listing-editor/ListingQualityMeter.tsx +4 -1
  570. package/src/locale/common-messages.ts +554 -0
  571. package/src/locale/context.ts +23 -0
  572. package/src/locale/format-date.ts +28 -0
  573. package/src/locale/index.ts +4 -0
  574. package/src/locale/languages.ts +45 -0
  575. package/src/locale/messages.ts +29 -0
  576. package/src/locale/plural.ts +53 -0
  577. package/src/map-marker/MapListingPreview.tsx +6 -2
  578. package/src/media-card/FriendActivityCard.tsx +3 -1
  579. package/src/media-card/GenreCard.tsx +3 -1
  580. package/src/media-card/MediaCard.tsx +3 -1
  581. package/src/media-card/QuickAccessTile.tsx +3 -1
  582. package/src/media-card/RecapCard.tsx +3 -1
  583. package/src/media-card/parts.tsx +5 -2
  584. package/src/media-header/MediaActionBar.tsx +4 -1
  585. package/src/media-header/PopularTracks.tsx +4 -1
  586. package/src/media-header/parts.tsx +6 -2
  587. package/src/media-shelf/Shelf.tsx +6 -2
  588. package/src/media-shelf/ShelfSkeleton.tsx +4 -1
  589. package/src/menubar/Menubar.web.tsx +4 -1
  590. package/src/message-media/FileMessage.tsx +4 -1
  591. package/src/message-media/parts.tsx +4 -1
  592. package/src/music-library/SearchField.tsx +4 -1
  593. package/src/overlay/Overlay.tsx +4 -1
  594. package/src/page-header/PageHeader.tsx +4 -1
  595. package/src/pagination/Pagination.tsx +6 -2
  596. package/src/place-card/PlaceCard.tsx +4 -2
  597. package/src/place-reviews/PlaceReviewCard.tsx +6 -2
  598. package/src/place-reviews/WriteReviewPrompt.tsx +4 -1
  599. package/src/provider/BloomProvider.tsx +39 -35
  600. package/src/provider/types.ts +6 -0
  601. package/src/recent-hires-card/RecentHiresCard.tsx +6 -2
  602. package/src/settings-modal/SettingsModal.tsx +3 -1
  603. package/src/sidebar/Sidebar.tsx +4 -1
  604. package/src/stay-filters/AmenityFilter.tsx +6 -2
  605. package/src/stay-search/GuestPicker.tsx +4 -1
  606. package/src/stepper/Stepper.tsx +4 -1
  607. package/src/toast/ToastContent.tsx +3 -1
  608. package/src/vendor-card/VendorCard.tsx +3 -1
  609. package/src/wizard/WizardFooter.tsx +6 -2
@@ -0,0 +1,470 @@
1
+ import type { MessageCatalog } from '../locale/messages';
2
+ import { plural } from '../locale/plural';
3
+ import type { DateRangePreset } from './types';
4
+
5
+ /**
6
+ * Every fixed string the date-picker family draws or announces, in each Bloom
7
+ * language. Month titles, weekday names and dates come from `Intl` instead; a
8
+ * caller's `labels` prop still wins over any entry here.
9
+ */
10
+ export interface DatePickerMessages {
11
+ cancel: string;
12
+ apply: string;
13
+ previousMonth: string;
14
+ nextMonth: string;
15
+ /** `DatePicker`'s empty trigger and its name. */
16
+ datePlaceholder: string;
17
+ dateLabel: string;
18
+ /** `DateRangePicker`'s empty trigger and its name. */
19
+ rangePlaceholder: string;
20
+ rangeLabel: string;
21
+ startDate: string;
22
+ endDate: string;
23
+ daysSelected: (days: number) => string;
24
+ presets: Record<DateRangePreset, string>;
25
+ /** `MeetingScheduler`'s trigger, its name, its commit button and its empty time chip. */
26
+ meetingTrigger: string;
27
+ meetingLabel: string;
28
+ send: string;
29
+ selectTime: string;
30
+ duration: (minutes: number) => string;
31
+ }
32
+
33
+ export const DATE_PICKER_MESSAGES: MessageCatalog<DatePickerMessages> = {
34
+ en: {
35
+ cancel: 'Cancel',
36
+ apply: 'Apply',
37
+ previousMonth: 'Previous month',
38
+ nextMonth: 'Next month',
39
+ datePlaceholder: 'Select date',
40
+ dateLabel: 'Date',
41
+ rangePlaceholder: 'Select date range',
42
+ rangeLabel: 'Date range',
43
+ startDate: 'Start date',
44
+ endDate: 'End date',
45
+ daysSelected: (n) => plural('en', n, { one: '{n} day selected', other: '{n} days selected' }),
46
+ presets: {
47
+ today: 'Today',
48
+ yesterday: 'Yesterday',
49
+ lastWeek: 'Last week',
50
+ thisMonth: 'This month',
51
+ lastMonth: 'Last month',
52
+ thisYear: 'This year',
53
+ lastYear: 'Last year',
54
+ allTime: 'All time',
55
+ },
56
+ meetingTrigger: 'Schedule a meeting',
57
+ meetingLabel: 'Schedule meeting',
58
+ send: 'Send meeting',
59
+ selectTime: 'Select a time',
60
+ duration: (n) => plural('en', n, { one: '{n} minute', other: '{n} minutes' }),
61
+ },
62
+ es: {
63
+ cancel: 'Cancelar',
64
+ apply: 'Aplicar',
65
+ previousMonth: 'Mes anterior',
66
+ nextMonth: 'Mes siguiente',
67
+ datePlaceholder: 'Seleccionar fecha',
68
+ dateLabel: 'Fecha',
69
+ rangePlaceholder: 'Seleccionar intervalo de fechas',
70
+ rangeLabel: 'Intervalo de fechas',
71
+ startDate: 'Fecha de inicio',
72
+ endDate: 'Fecha de fin',
73
+ daysSelected: (n) => plural('es', n, { one: '{n} día seleccionado', other: '{n} días seleccionados' }),
74
+ presets: {
75
+ today: 'Hoy',
76
+ yesterday: 'Ayer',
77
+ lastWeek: 'La semana pasada',
78
+ thisMonth: 'Este mes',
79
+ lastMonth: 'El mes pasado',
80
+ thisYear: 'Este año',
81
+ lastYear: 'El año pasado',
82
+ allTime: 'Todo',
83
+ },
84
+ meetingTrigger: 'Programar una reunión',
85
+ meetingLabel: 'Programar reunión',
86
+ send: 'Enviar invitación',
87
+ selectTime: 'Seleccionar hora',
88
+ duration: (n) => plural('es', n, { one: '{n} minuto', other: '{n} minutos' }),
89
+ },
90
+ ca: {
91
+ cancel: 'Cancel·la',
92
+ apply: 'Aplica',
93
+ previousMonth: 'Mes anterior',
94
+ nextMonth: 'Mes següent',
95
+ datePlaceholder: 'Selecciona una data',
96
+ dateLabel: 'Data',
97
+ rangePlaceholder: 'Selecciona un interval de dates',
98
+ rangeLabel: 'Interval de dates',
99
+ startDate: "Data d'inici",
100
+ endDate: 'Data de fi',
101
+ daysSelected: (n) => plural('ca', n, { one: '{n} dia seleccionat', other: '{n} dies seleccionats' }),
102
+ presets: {
103
+ today: 'Avui',
104
+ yesterday: 'Ahir',
105
+ lastWeek: 'La setmana passada',
106
+ thisMonth: 'Aquest mes',
107
+ lastMonth: 'El mes passat',
108
+ thisYear: 'Aquest any',
109
+ lastYear: "L'any passat",
110
+ allTime: 'Tot',
111
+ },
112
+ meetingTrigger: 'Programa una reunió',
113
+ meetingLabel: 'Programar reunió',
114
+ send: 'Envia la invitació',
115
+ selectTime: 'Selecciona una hora',
116
+ duration: (n) => plural('ca', n, { one: '{n} minut', other: '{n} minuts' }),
117
+ },
118
+ de: {
119
+ cancel: 'Abbrechen',
120
+ apply: 'Übernehmen',
121
+ previousMonth: 'Vorheriger Monat',
122
+ nextMonth: 'Nächster Monat',
123
+ datePlaceholder: 'Datum auswählen',
124
+ dateLabel: 'Datum',
125
+ rangePlaceholder: 'Zeitraum auswählen',
126
+ rangeLabel: 'Zeitraum',
127
+ startDate: 'Startdatum',
128
+ endDate: 'Enddatum',
129
+ daysSelected: (n) => plural('de', n, { one: '{n} Tag ausgewählt', other: '{n} Tage ausgewählt' }),
130
+ presets: {
131
+ today: 'Heute',
132
+ yesterday: 'Gestern',
133
+ lastWeek: 'Letzte Woche',
134
+ thisMonth: 'Dieser Monat',
135
+ lastMonth: 'Letzter Monat',
136
+ thisYear: 'Dieses Jahr',
137
+ lastYear: 'Letztes Jahr',
138
+ allTime: 'Gesamter Zeitraum',
139
+ },
140
+ meetingTrigger: 'Meeting planen',
141
+ meetingLabel: 'Meeting planen',
142
+ send: 'Einladung senden',
143
+ selectTime: 'Uhrzeit auswählen',
144
+ duration: (n) => plural('de', n, { one: '{n} Minute', other: '{n} Minuten' }),
145
+ },
146
+ fr: {
147
+ cancel: 'Annuler',
148
+ apply: 'Appliquer',
149
+ previousMonth: 'Mois précédent',
150
+ nextMonth: 'Mois suivant',
151
+ datePlaceholder: 'Sélectionner une date',
152
+ dateLabel: 'Date',
153
+ rangePlaceholder: 'Sélectionner une période',
154
+ rangeLabel: 'Période',
155
+ startDate: 'Date de début',
156
+ endDate: 'Date de fin',
157
+ daysSelected: (n) => plural('fr', n, { one: '{n} jour sélectionné', other: '{n} jours sélectionnés' }),
158
+ presets: {
159
+ today: "Aujourd'hui",
160
+ yesterday: 'Hier',
161
+ lastWeek: 'La semaine dernière',
162
+ thisMonth: 'Ce mois-ci',
163
+ lastMonth: 'Le mois dernier',
164
+ thisYear: 'Cette année',
165
+ lastYear: "L'année dernière",
166
+ allTime: 'Depuis toujours',
167
+ },
168
+ meetingTrigger: 'Planifier une réunion',
169
+ meetingLabel: 'Planifier une réunion',
170
+ send: "Envoyer l'invitation",
171
+ selectTime: 'Sélectionner une heure',
172
+ duration: (n) => plural('fr', n, { one: '{n} minute', other: '{n} minutes' }),
173
+ },
174
+ it: {
175
+ cancel: 'Annulla',
176
+ apply: 'Applica',
177
+ previousMonth: 'Mese precedente',
178
+ nextMonth: 'Mese successivo',
179
+ datePlaceholder: 'Seleziona una data',
180
+ dateLabel: 'Data',
181
+ rangePlaceholder: 'Seleziona un intervallo di date',
182
+ rangeLabel: 'Intervallo di date',
183
+ startDate: 'Data di inizio',
184
+ endDate: 'Data di fine',
185
+ daysSelected: (n) => plural('it', n, { one: '{n} giorno selezionato', other: '{n} giorni selezionati' }),
186
+ presets: {
187
+ today: 'Oggi',
188
+ yesterday: 'Ieri',
189
+ lastWeek: 'Settimana scorsa',
190
+ thisMonth: 'Questo mese',
191
+ lastMonth: 'Mese scorso',
192
+ thisYear: "Quest'anno",
193
+ lastYear: 'Anno scorso',
194
+ allTime: 'Sempre',
195
+ },
196
+ meetingTrigger: 'Pianifica una riunione',
197
+ meetingLabel: 'Pianifica riunione',
198
+ send: 'Invia invito',
199
+ selectTime: 'Seleziona un orario',
200
+ duration: (n) => plural('it', n, { one: '{n} minuto', other: '{n} minuti' }),
201
+ },
202
+ pt: {
203
+ cancel: 'Cancelar',
204
+ apply: 'Aplicar',
205
+ previousMonth: 'Mês anterior',
206
+ nextMonth: 'Próximo mês',
207
+ datePlaceholder: 'Selecionar data',
208
+ dateLabel: 'Data',
209
+ rangePlaceholder: 'Selecionar período',
210
+ rangeLabel: 'Período',
211
+ startDate: 'Data de início',
212
+ endDate: 'Data de término',
213
+ daysSelected: (n) => plural('pt', n, { one: '{n} dia selecionado', other: '{n} dias selecionados' }),
214
+ presets: {
215
+ today: 'Hoje',
216
+ yesterday: 'Ontem',
217
+ lastWeek: 'Semana passada',
218
+ thisMonth: 'Este mês',
219
+ lastMonth: 'Mês passado',
220
+ thisYear: 'Este ano',
221
+ lastYear: 'Ano passado',
222
+ allTime: 'Todo o período',
223
+ },
224
+ meetingTrigger: 'Agendar uma reunião',
225
+ meetingLabel: 'Agendar reunião',
226
+ send: 'Enviar convite',
227
+ selectTime: 'Selecionar horário',
228
+ duration: (n) => plural('pt', n, { one: '{n} minuto', other: '{n} minutos' }),
229
+ },
230
+ ru: {
231
+ cancel: 'Отмена',
232
+ apply: 'Применить',
233
+ previousMonth: 'Предыдущий месяц',
234
+ nextMonth: 'Следующий месяц',
235
+ datePlaceholder: 'Выберите дату',
236
+ dateLabel: 'Дата',
237
+ rangePlaceholder: 'Выберите период',
238
+ rangeLabel: 'Период',
239
+ startDate: 'Дата начала',
240
+ endDate: 'Дата окончания',
241
+ daysSelected: (n) =>
242
+ plural('ru', n, { one: 'Выбран {n} день', few: 'Выбрано {n} дня', many: 'Выбрано {n} дней', other: 'Выбрано {n} дня' }),
243
+ presets: {
244
+ today: 'Сегодня',
245
+ yesterday: 'Вчера',
246
+ lastWeek: 'Прошлая неделя',
247
+ thisMonth: 'Этот месяц',
248
+ lastMonth: 'Прошлый месяц',
249
+ thisYear: 'Этот год',
250
+ lastYear: 'Прошлый год',
251
+ allTime: 'Всё время',
252
+ },
253
+ meetingTrigger: 'Запланировать встречу',
254
+ meetingLabel: 'Запланировать встречу',
255
+ send: 'Отправить приглашение',
256
+ selectTime: 'Выберите время',
257
+ duration: (n) => plural('ru', n, { one: '{n} минута', few: '{n} минуты', many: '{n} минут', other: '{n} минуты' }),
258
+ },
259
+ tr: {
260
+ cancel: 'İptal',
261
+ apply: 'Uygula',
262
+ previousMonth: 'Önceki ay',
263
+ nextMonth: 'Sonraki ay',
264
+ datePlaceholder: 'Tarih seçin',
265
+ dateLabel: 'Tarih',
266
+ rangePlaceholder: 'Tarih aralığı seçin',
267
+ rangeLabel: 'Tarih aralığı',
268
+ startDate: 'Başlangıç tarihi',
269
+ endDate: 'Bitiş tarihi',
270
+ daysSelected: (n) => plural('tr', n, { other: '{n} gün seçildi' }),
271
+ presets: {
272
+ today: 'Bugün',
273
+ yesterday: 'Dün',
274
+ lastWeek: 'Geçen hafta',
275
+ thisMonth: 'Bu ay',
276
+ lastMonth: 'Geçen ay',
277
+ thisYear: 'Bu yıl',
278
+ lastYear: 'Geçen yıl',
279
+ allTime: 'Tüm zamanlar',
280
+ },
281
+ meetingTrigger: 'Toplantı planla',
282
+ meetingLabel: 'Toplantı planla',
283
+ send: 'Davet gönder',
284
+ selectTime: 'Saat seçin',
285
+ duration: (n) => plural('tr', n, { other: '{n} dakika' }),
286
+ },
287
+ ja: {
288
+ cancel: 'キャンセル',
289
+ apply: '適用',
290
+ previousMonth: '前の月',
291
+ nextMonth: '次の月',
292
+ datePlaceholder: '日付を選択',
293
+ dateLabel: '日付',
294
+ rangePlaceholder: '期間を選択',
295
+ rangeLabel: '期間',
296
+ startDate: '開始日',
297
+ endDate: '終了日',
298
+ daysSelected: (n) => plural('ja', n, { other: '{n}日間を選択' }),
299
+ presets: {
300
+ today: '今日',
301
+ yesterday: '昨日',
302
+ lastWeek: '先週',
303
+ thisMonth: '今月',
304
+ lastMonth: '先月',
305
+ thisYear: '今年',
306
+ lastYear: '昨年',
307
+ allTime: '全期間',
308
+ },
309
+ meetingTrigger: 'ミーティングを予約',
310
+ meetingLabel: 'ミーティングの予約',
311
+ send: '招待を送信',
312
+ selectTime: '時間を選択',
313
+ duration: (n) => plural('ja', n, { other: '{n}分' }),
314
+ },
315
+ zh: {
316
+ cancel: '取消',
317
+ apply: '应用',
318
+ previousMonth: '上个月',
319
+ nextMonth: '下个月',
320
+ datePlaceholder: '选择日期',
321
+ dateLabel: '日期',
322
+ rangePlaceholder: '选择日期范围',
323
+ rangeLabel: '日期范围',
324
+ startDate: '开始日期',
325
+ endDate: '结束日期',
326
+ daysSelected: (n) => plural('zh', n, { other: '已选择 {n} 天' }),
327
+ presets: {
328
+ today: '今天',
329
+ yesterday: '昨天',
330
+ lastWeek: '上周',
331
+ thisMonth: '本月',
332
+ lastMonth: '上个月',
333
+ thisYear: '今年',
334
+ lastYear: '去年',
335
+ allTime: '全部时间',
336
+ },
337
+ meetingTrigger: '安排会议',
338
+ meetingLabel: '安排会议',
339
+ send: '发送邀请',
340
+ selectTime: '选择时间',
341
+ duration: (n) => plural('zh', n, { other: '{n} 分钟' }),
342
+ },
343
+ ar: {
344
+ cancel: 'إلغاء',
345
+ apply: 'تطبيق',
346
+ previousMonth: 'الشهر السابق',
347
+ nextMonth: 'الشهر التالي',
348
+ datePlaceholder: 'اختر تاريخًا',
349
+ dateLabel: 'التاريخ',
350
+ rangePlaceholder: 'اختر نطاقًا زمنيًا',
351
+ rangeLabel: 'النطاق الزمني',
352
+ startDate: 'تاريخ البدء',
353
+ endDate: 'تاريخ الانتهاء',
354
+ daysSelected: (n) =>
355
+ plural('ar', n, {
356
+ zero: 'لم يتم تحديد أي يوم',
357
+ one: 'تم تحديد يوم واحد',
358
+ two: 'تم تحديد يومين',
359
+ few: 'تم تحديد {n} أيام',
360
+ many: 'تم تحديد {n} يومًا',
361
+ other: 'تم تحديد {n} يوم',
362
+ }),
363
+ presets: {
364
+ today: 'اليوم',
365
+ yesterday: 'أمس',
366
+ lastWeek: 'الأسبوع الماضي',
367
+ thisMonth: 'هذا الشهر',
368
+ lastMonth: 'الشهر الماضي',
369
+ thisYear: 'هذا العام',
370
+ lastYear: 'العام الماضي',
371
+ allTime: 'كل الأوقات',
372
+ },
373
+ meetingTrigger: 'جدولة اجتماع',
374
+ meetingLabel: 'جدولة اجتماع',
375
+ send: 'إرسال الدعوة',
376
+ selectTime: 'اختر وقتًا',
377
+ duration: (n) =>
378
+ plural('ar', n, {
379
+ one: 'دقيقة واحدة',
380
+ two: 'دقيقتان',
381
+ few: '{n} دقائق',
382
+ many: '{n} دقيقة',
383
+ other: '{n} دقيقة',
384
+ }),
385
+ },
386
+ hi: {
387
+ cancel: 'रद्द करें',
388
+ apply: 'लागू करें',
389
+ previousMonth: 'पिछला महीना',
390
+ nextMonth: 'अगला महीना',
391
+ datePlaceholder: 'तारीख़ चुनें',
392
+ dateLabel: 'तारीख़',
393
+ rangePlaceholder: 'तारीख़ की सीमा चुनें',
394
+ rangeLabel: 'तारीख़ की सीमा',
395
+ startDate: 'शुरू होने की तारीख़',
396
+ endDate: 'ख़त्म होने की तारीख़',
397
+ daysSelected: (n) => plural('hi', n, { one: '{n} दिन चुना गया', other: '{n} दिन चुने गए' }),
398
+ presets: {
399
+ today: 'आज',
400
+ yesterday: 'बीता कल',
401
+ lastWeek: 'पिछला सप्ताह',
402
+ thisMonth: 'इस महीने',
403
+ lastMonth: 'पिछला महीना',
404
+ thisYear: 'इस साल',
405
+ lastYear: 'पिछला साल',
406
+ allTime: 'पूरा समय',
407
+ },
408
+ meetingTrigger: 'मीटिंग शेड्यूल करें',
409
+ meetingLabel: 'मीटिंग शेड्यूल करें',
410
+ send: 'आमंत्रण भेजें',
411
+ selectTime: 'समय चुनें',
412
+ duration: (n) => plural('hi', n, { other: '{n} मिनट' }),
413
+ },
414
+ bn: {
415
+ cancel: 'বাতিল',
416
+ apply: 'প্রয়োগ করুন',
417
+ previousMonth: 'আগের মাস',
418
+ nextMonth: 'পরের মাস',
419
+ datePlaceholder: 'তারিখ বেছে নিন',
420
+ dateLabel: 'তারিখ',
421
+ rangePlaceholder: 'তারিখের পরিসর বেছে নিন',
422
+ rangeLabel: 'তারিখের পরিসর',
423
+ startDate: 'শুরুর তারিখ',
424
+ endDate: 'শেষের তারিখ',
425
+ daysSelected: (n) => plural('bn', n, { other: '{n} দিন নির্বাচিত' }),
426
+ presets: {
427
+ today: 'আজ',
428
+ yesterday: 'গতকাল',
429
+ lastWeek: 'গত সপ্তাহ',
430
+ thisMonth: 'এই মাস',
431
+ lastMonth: 'গত মাস',
432
+ thisYear: 'এই বছর',
433
+ lastYear: 'গত বছর',
434
+ allTime: 'সব সময়',
435
+ },
436
+ meetingTrigger: 'মিটিং নির্ধারণ করুন',
437
+ meetingLabel: 'মিটিং নির্ধারণ করুন',
438
+ send: 'আমন্ত্রণ পাঠান',
439
+ selectTime: 'সময় বেছে নিন',
440
+ duration: (n) => plural('bn', n, { other: '{n} মিনিট' }),
441
+ },
442
+ id: {
443
+ cancel: 'Batal',
444
+ apply: 'Terapkan',
445
+ previousMonth: 'Bulan sebelumnya',
446
+ nextMonth: 'Bulan berikutnya',
447
+ datePlaceholder: 'Pilih tanggal',
448
+ dateLabel: 'Tanggal',
449
+ rangePlaceholder: 'Pilih rentang tanggal',
450
+ rangeLabel: 'Rentang tanggal',
451
+ startDate: 'Tanggal mulai',
452
+ endDate: 'Tanggal selesai',
453
+ daysSelected: (n) => plural('id', n, { other: '{n} hari dipilih' }),
454
+ presets: {
455
+ today: 'Hari ini',
456
+ yesterday: 'Kemarin',
457
+ lastWeek: 'Minggu lalu',
458
+ thisMonth: 'Bulan ini',
459
+ lastMonth: 'Bulan lalu',
460
+ thisYear: 'Tahun ini',
461
+ lastYear: 'Tahun lalu',
462
+ allTime: 'Sepanjang waktu',
463
+ },
464
+ meetingTrigger: 'Jadwalkan rapat',
465
+ meetingLabel: 'Jadwalkan rapat',
466
+ send: 'Kirim undangan',
467
+ selectTime: 'Pilih waktu',
468
+ duration: (n) => plural('id', n, { other: '{n} menit' }),
469
+ },
470
+ };
@@ -19,18 +19,22 @@ export interface CalendarConstraintProps {
19
19
  isDateUnavailable?: (date: Date) => boolean;
20
20
  /** First column of the grid. Defaults to `0` (Sunday). */
21
21
  weekStartsOn?: WeekStart;
22
- /** BCP 47 locale for month, weekday and trigger text. Defaults to the runtime's. */
22
+ /**
23
+ * BCP 47 locale for month, weekday and trigger text, and for Bloom's own
24
+ * strings (Cancel, Apply, …). Defaults to `BloomProvider`'s `locale`, else the
25
+ * runtime's.
26
+ */
23
27
  locale?: string;
24
28
  }
25
29
 
26
30
  /**
27
- * Fixed strings of the month panels, overridable for localisation. Month and
28
- * weekday names already follow `locale`; these are the rest.
31
+ * Overrides for the month panels' fixed strings. Bloom already speaks them in
32
+ * the picker's `locale`; pass these only for wording of your own.
29
33
  */
30
34
  export interface CalendarLabels {
31
- /** Names the previous-month chevron. Default `'Previous month'`. */
35
+ /** Names the previous-month chevron (`'Previous month'` in English). */
32
36
  previousMonth?: string;
33
- /** Names the next-month chevron. Default `'Next month'`. */
37
+ /** Names the next-month chevron (`'Next month'` in English). */
34
38
  nextMonth?: string;
35
39
  }
36
40
 
@@ -80,11 +84,11 @@ interface PickerBaseProps extends CalendarConstraintProps {
80
84
  testID?: string;
81
85
  }
82
86
 
83
- /** `DatePicker`'s fixed strings, overridable for localisation. */
87
+ /** Overrides for `DatePicker`'s fixed strings, which Bloom already speaks in `locale`. */
84
88
  export interface DatePickerLabels extends CalendarLabels {
85
- /** The footer's dismiss button. Default `'Cancel'`. */
89
+ /** The footer's dismiss button (`'Cancel'` in English). */
86
90
  cancel?: string;
87
- /** The footer's commit button. Default `'Apply'`. */
91
+ /** The footer's commit button (`'Apply'` in English). */
88
92
  apply?: string;
89
93
  }
90
94
 
@@ -99,18 +103,18 @@ export type DateRangePreset =
99
103
  | 'lastYear'
100
104
  | 'allTime';
101
105
 
102
- /** `DateRangePicker`'s fixed strings, overridable for localisation. */
106
+ /** Overrides for `DateRangePicker`'s fixed strings, which Bloom already speaks in `locale`. */
103
107
  export interface DateRangePickerLabels extends DatePickerLabels {
104
108
  /**
105
- * The footer pill. Receives the count so the app pluralises with its own
106
- * i18n rules. Default `(n) => \`${n} day${n === 1 ? '' : 's'} selected\``.
109
+ * The footer pill. Receives the count; Bloom's own pluralises per language
110
+ * (`'14 days selected'` in English).
107
111
  */
108
112
  daysSelected?: (days: number) => string;
109
- /** Names the start-date chip. Default `'Start date'`. */
113
+ /** Names the start-date chip (`'Start date'` in English). */
110
114
  startDate?: string;
111
- /** Names the end-date chip. Default `'End date'`. */
115
+ /** Names the end-date chip (`'End date'` in English). */
112
116
  endDate?: string;
113
- /** Quick-select rows; any left out keep their English text (`'Today'`, `'Last week'`, …). */
117
+ /** Quick-select rows; any left out keep Bloom's (`'Today'`, `'Last week'`, … in English). */
114
118
  presets?: Partial<Record<DateRangePreset, string>>;
115
119
  }
116
120
 
@@ -121,9 +125,9 @@ export interface DatePickerProps extends PickerBaseProps {
121
125
  defaultValue?: Date | null;
122
126
  /** Called on Apply with the chosen day. */
123
127
  onChange?: (date: Date | null) => void;
124
- /** Trigger text with no day committed. Defaults to `'Select date'`. */
128
+ /** Trigger text with no day committed. Defaults to Bloom's (`'Select date'` in English). */
125
129
  placeholder?: string;
126
- /** Names the popup and its calendar. Defaults to `'Date'`. */
130
+ /** Names the popup and its calendar. Defaults to Bloom's (`'Date'` in English). */
127
131
  accessibilityLabel?: string;
128
132
  /** Footer buttons and month chevrons. */
129
133
  labels?: DatePickerLabels;
@@ -136,9 +140,9 @@ export interface DateRangePickerProps extends PickerBaseProps {
136
140
  defaultValue?: DateRange | null;
137
141
  /** Called on Apply with the chosen range. */
138
142
  onChange?: (range: DateRange | null) => void;
139
- /** Trigger text with no range committed. Defaults to `'Select date range'`. */
143
+ /** Trigger text with no range committed. Defaults to Bloom's (`'Select date range'` in English). */
140
144
  placeholder?: string;
141
- /** Names the popup and its calendar. Defaults to `'Date range'`. */
145
+ /** Names the popup and its calendar. Defaults to Bloom's (`'Date range'` in English). */
142
146
  accessibilityLabel?: string;
143
147
  /** Show the quick-select column (Today, Last week, …). Defaults to `true`. */
144
148
  quickSelect?: boolean;
@@ -185,13 +189,13 @@ export type HourFormat = '12h' | '24h';
185
189
  /** The hour-format toggle. An alias of {@link HourFormat}. */
186
190
  export type MeetingSchedulerHourFormat = HourFormat;
187
191
 
188
- /** Fixed strings, overridable for localisation. */
192
+ /** Overrides for `MeetingScheduler`'s fixed strings, which Bloom already speaks in `locale`. */
189
193
  export interface MeetingSchedulerLabels extends CalendarLabels {
190
- /** Default `'Send meeting'`. */
194
+ /** `'Send meeting'` in English. */
191
195
  send?: string;
192
- /** Chip text before a time is picked. Default `'Select a time'`. */
196
+ /** Chip text before a time is picked (`'Select a time'` in English). */
193
197
  selectTime?: string;
194
- /** `{n} minutes`. Default `(n) => \`${n} minutes\``. */
198
+ /** The duration row (`'30 minutes'` in English). */
195
199
  duration?: (minutes: number) => string;
196
200
  }
197
201
 
@@ -212,9 +216,9 @@ export interface MeetingSchedulerProps extends CalendarConstraintProps {
212
216
  onChange?: (value: MeetingSchedulerValue | null) => void;
213
217
  /** Initial hour format. Defaults to `'24h'`. */
214
218
  defaultHourFormat?: MeetingSchedulerHourFormat;
215
- /** Trigger text. Defaults to `'Schedule a meeting'`. */
219
+ /** Trigger text. Defaults to Bloom's (`'Schedule a meeting'` in English). */
216
220
  triggerLabel?: string;
217
- /** Names the popup and its calendar. Defaults to `'Schedule meeting'`. */
221
+ /** Names the popup and its calendar. Defaults to Bloom's (`'Schedule meeting'` in English). */
218
222
  accessibilityLabel?: string;
219
223
  labels?: MeetingSchedulerLabels;
220
224
  disabled?: boolean;
@@ -46,6 +46,7 @@ import { useDialogControl } from './context';
46
46
  import { useTheme } from '../theme/use-theme';
47
47
  import { H1, Text } from '../typography';
48
48
  import type { DialogHeaderConfig } from './types';
49
+ import { useCommonMessages } from '../locale/common-messages';
49
50
 
50
51
  export type { DialogHeaderConfig } from './types';
51
52
 
@@ -367,9 +368,10 @@ function HeaderOverflowMenu({
367
368
  }): React.ReactElement {
368
369
  // Own the open state so an item press can close the popover before acting.
369
370
  const [open, setOpen] = useState(false);
371
+ const common = useCommonMessages();
370
372
  return (
371
373
  <Popover open={open} onOpenChange={setOpen}>
372
- <PopoverTrigger asChild label="More">
374
+ <PopoverTrigger asChild label={common.more}>
373
375
  <FrostedIconButton
374
376
  size="sm"
375
377
  icon={(iconProps) => <RiMoreFill {...iconProps}
@@ -379,7 +381,7 @@ function HeaderOverflowMenu({
379
381
  />
380
382
  </PopoverTrigger>
381
383
  <PopoverContent
382
- label="More actions"
384
+ label={common.moreActions}
383
385
  align="end">
384
386
  {items.map((action) => (
385
387
  <Item
@@ -447,6 +449,7 @@ function HeaderProgressBar({
447
449
  onImage: boolean;
448
450
  }): React.ReactElement {
449
451
  const theme = useTheme();
452
+ const common = useCommonMessages();
450
453
  const fraction = total > 0 ? Math.min(1, Math.max(0, step / total)) : 0;
451
454
  return (
452
455
  <View
@@ -464,8 +467,8 @@ function HeaderProgressBar({
464
467
  // means the same thing — so unlike `Slider` and `DotGridMeter` it takes
465
468
  // no prop. `aria-valuetext` carries the reading, since the raw number is
466
469
  // announced as a percentage otherwise.
467
- accessibilityLabel="Progress"
468
- aria-valuetext={`Step ${step} of ${total}`}
470
+ accessibilityLabel={common.progress}
471
+ aria-valuetext={common.stepOf(step, total)}
469
472
  style={[
470
473
  styles.progressTrack,
471
474
  { backgroundColor: onImage ? 'rgba(255,255,255,0.25)' : theme.colors.border },
@@ -564,6 +567,7 @@ export const DialogNavHeader = memo(function DialogNavHeader({
564
567
  style?: StyleProp<ViewStyle>;
565
568
  }) {
566
569
  const theme = useTheme();
570
+ const common = useCommonMessages();
567
571
  const config = useMergedHeaderConfig(header, controller.store);
568
572
  const { scrollY, largeTitleHeight } = controller;
569
573
 
@@ -611,7 +615,7 @@ export const DialogNavHeader = memo(function DialogNavHeader({
611
615
  const closeButton = (
612
616
  <FrostedIconButton
613
617
  onPress={onDismiss}
614
- accessibilityLabel="Close"
618
+ accessibilityLabel={common.close}
615
619
  icon={(iconProps) => <RiCloseLine {...iconProps} size="md" fill={iconFill} />}
616
620
  />
617
621
  );
@@ -645,7 +649,7 @@ export const DialogNavHeader = memo(function DialogNavHeader({
645
649
  (config.onBack ? (
646
650
  <FrostedIconButton
647
651
  onPress={config.onBack}
648
- accessibilityLabel="Go back"
652
+ accessibilityLabel={common.goBack}
649
653
  icon={(iconProps) => <RiArrowLeftSLine {...iconProps} size="md" fill={iconFill} />}
650
654
  />
651
655
  ) : hasRichTrailing && config.showClose !== false ? (
@@ -712,6 +716,7 @@ export const DialogLargeTitle = memo(function DialogLargeTitle({
712
716
  header: DialogHeaderConfig;
713
717
  }) {
714
718
  const theme = useTheme();
719
+ const common = useCommonMessages();
715
720
  const config = useMergedHeaderConfig(header, controller.store);
716
721
  const { largeTitleHeight } = controller;
717
722
 
@@ -781,7 +786,7 @@ export const DialogLargeTitle = memo(function DialogLargeTitle({
781
786
  <Search
782
787
  value={config.search.value}
783
788
  onValueChange={config.search.onValueChange}
784
- label={config.search.placeholder ?? 'Search'}
789
+ label={config.search.placeholder ?? common.search}
785
790
  onSubmitEditing={config.search.onSubmit}
786
791
  onClearText={() => config.search?.onValueChange('')}
787
792
  />