@12-apps/ui 6.31.0 → 6.33.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 (874) hide show
  1. package/components-guidelines.md +69 -2
  2. package/dist/_internal/components/data-display/Alert/Alert.js +5 -4
  3. package/dist/_internal/components/data-display/Alert/Alert.metrics.js +3 -2
  4. package/dist/_internal/components/data-display/Alert/Alert.styles.js +4 -3
  5. package/dist/_internal/components/data-display/AsyncStateContainer/AsyncStateContainer.js +4 -4
  6. package/dist/_internal/components/data-display/Avatar/Avatar.js +6 -5
  7. package/dist/_internal/components/data-display/Avatar/Avatar.view.js +5 -4
  8. package/dist/_internal/components/data-display/Badge/Badge.animations.js +3 -2
  9. package/dist/_internal/components/data-display/Badge/Badge.js +6 -5
  10. package/dist/_internal/components/data-display/Badge/Badge.metrics.js +3 -2
  11. package/dist/_internal/components/data-display/Badge/Badge.styles.js +4 -3
  12. package/dist/_internal/components/data-display/Badge/Badge.variants.js +3 -2
  13. package/dist/_internal/components/data-display/Badge/BadgeContent.js +5 -4
  14. package/dist/_internal/components/data-display/Banner/Banner.js +3 -2
  15. package/dist/_internal/components/data-display/Banner/Banner.styles.js +3 -2
  16. package/dist/_internal/components/data-display/CardKit/CardKebab.js +9 -5
  17. package/dist/_internal/components/data-display/CardKit/card-actions-context.js +6 -5
  18. package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +13 -9
  19. package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +9 -5
  20. package/dist/_internal/components/data-display/Carousel/Carousel.chrome.js +10 -5
  21. package/dist/_internal/components/data-display/Carousel/Carousel.js +13 -8
  22. package/dist/_internal/components/data-display/Carousel/Carousel.parts.js +9 -4
  23. package/dist/_internal/components/data-display/Carousel/Carousel.styles.js +9 -4
  24. package/dist/_internal/components/data-display/Chart/Chart.js +13 -8
  25. package/dist/_internal/components/data-display/Chart/SpecChart.js +16 -11
  26. package/dist/_internal/components/data-display/Chart/chart-context.js +10 -5
  27. package/dist/_internal/components/data-display/Chart/chart-internals.js +9 -4
  28. package/dist/_internal/components/data-display/Chart/chart-renderers.js +12 -7
  29. package/dist/_internal/components/data-display/Chart/chart-spec.js +2 -2
  30. package/dist/_internal/components/data-display/DataGrid/DataGrid.js +2 -2
  31. package/dist/_internal/components/data-display/DataViews/DataViewsBoard.js +6 -5
  32. package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +69 -67
  33. package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +86 -84
  34. package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +11 -7
  35. package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +12 -8
  36. package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +19 -17
  37. package/dist/_internal/components/data-display/DataViews/base-card.js +8 -7
  38. package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +11 -10
  39. package/dist/_internal/components/data-display/DataViews/base-list-card-gutters.js +5 -4
  40. package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +10 -9
  41. package/dist/_internal/components/data-display/DataViews/base-list-card.js +16 -15
  42. package/dist/_internal/components/data-display/DataViews/card-surface.js +3 -2
  43. package/dist/_internal/components/data-display/DataViews/data-views-bar-controls.js +6 -1
  44. package/dist/_internal/components/data-display/DataViews/data-views-category-pill.js +22 -20
  45. package/dist/_internal/components/data-display/DataViews/data-views-columns-tab.js +6 -5
  46. package/dist/_internal/components/data-display/DataViews/data-views-columns.js +10 -6
  47. package/dist/_internal/components/data-display/DataViews/data-views-day-input.js +6 -1
  48. package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +16 -12
  49. package/dist/_internal/components/data-display/DataViews/data-views-display-tabs.js +8 -7
  50. package/dist/_internal/components/data-display/DataViews/data-views-empty.js +11 -7
  51. package/dist/_internal/components/data-display/DataViews/data-views-export.js +11 -7
  52. package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +29 -27
  53. package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +19 -15
  54. package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +9 -5
  55. package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +65 -63
  56. package/dist/_internal/components/data-display/DataViews/data-views-header-row.js +6 -5
  57. package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +38 -36
  58. package/dist/_internal/components/data-display/DataViews/data-views-layout-context.js +2 -2
  59. package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +21 -17
  60. package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +24 -20
  61. package/dist/_internal/components/data-display/DataViews/data-views-number-input.js +6 -1
  62. package/dist/_internal/components/data-display/DataViews/data-views-pagination.js +11 -4
  63. package/dist/_internal/components/data-display/DataViews/data-views-range-pill.js +10 -5
  64. package/dist/_internal/components/data-display/DataViews/data-views-scope-tabs.js +3 -3
  65. package/dist/_internal/components/data-display/DataViews/data-views-search.js +6 -1
  66. package/dist/_internal/components/data-display/DataViews/data-views-select-all-strip.js +11 -7
  67. package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +27 -23
  68. package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +31 -29
  69. package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +26 -22
  70. package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +11 -7
  71. package/dist/_internal/components/data-display/DataViews/list-card-rails.js +3 -3
  72. package/dist/_internal/components/data-display/DataViews/save-view-preview.js +6 -5
  73. package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +13 -9
  74. package/dist/_internal/components/data-display/DataViews/use-saved-views-controller.js +2 -2
  75. package/dist/_internal/components/data-display/DescriptionItem/DescriptionItem.js +6 -5
  76. package/dist/_internal/components/data-display/FleetMap/FleetBody.js +21 -16
  77. package/dist/_internal/components/data-display/FleetMap/FleetCanvas.js +17 -12
  78. package/dist/_internal/components/data-display/FleetMap/FleetMap.js +27 -22
  79. package/dist/_internal/components/data-display/FleetMap/FleetRoster.js +3 -3
  80. package/dist/_internal/components/data-display/LazyImage/LazyImage.js +3 -3
  81. package/dist/_internal/components/data-display/Lightbox/Lightbox.js +7 -7
  82. package/dist/_internal/components/data-display/Lightbox/LightboxControls.js +2 -2
  83. package/dist/_internal/components/data-display/Lightbox/LightboxOverlay.js +3 -3
  84. package/dist/_internal/components/data-display/LoadingState/LoadingState.js +3 -3
  85. package/dist/_internal/components/data-display/MapPreview/MapDecorations.js +2 -2
  86. package/dist/_internal/components/data-display/MapPreview/MapLayers.js +8 -3
  87. package/dist/_internal/components/data-display/MapPreview/MapPreview.hooks.js +2 -2
  88. package/dist/_internal/components/data-display/MapPreview/MapPreview.js +16 -11
  89. package/dist/_internal/components/data-display/MapPreview/MapSearchBar.js +6 -1
  90. package/dist/_internal/components/data-display/MapPreview/MapTiles.js +2 -2
  91. package/dist/_internal/components/data-display/MapPreview/StaticMapView.js +4 -4
  92. package/dist/_internal/components/data-display/MapPreview/useMapPreview.js +3 -3
  93. package/dist/_internal/components/data-display/Progress/Progress.js +6 -5
  94. package/dist/_internal/components/data-display/Progress/Progress.metrics.js +4 -3
  95. package/dist/_internal/components/data-display/Progress/Progress.styles.js +5 -4
  96. package/dist/_internal/components/data-display/Sheet/Sheet.body.js +8 -3
  97. package/dist/_internal/components/data-display/Sheet/Sheet.js +10 -5
  98. package/dist/_internal/components/data-display/Sheet/Sheet.styles.js +9 -4
  99. package/dist/_internal/components/data-display/StatCard/StatCard.js +3 -3
  100. package/dist/_internal/components/data-display/Table/Table.js +3 -3
  101. package/dist/_internal/components/data-display/index.js +81 -76
  102. package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +9 -5
  103. package/dist/_internal/components/feedback/NotificationStatusNotice/NotificationStatusNotice.js +11 -7
  104. package/dist/_internal/components/feedback/TutorialOverlay/TutorialOverlay.js +2 -2
  105. package/dist/_internal/components/feedback/index.js +14 -10
  106. package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.hooks.js +3 -3
  107. package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.js +12 -10
  108. package/dist/_internal/components/form/AddressAutocomplete/AddressAutocompleteField.js +8 -6
  109. package/dist/_internal/components/form/AddressAutocomplete/AddressFallbackField.js +6 -4
  110. package/dist/_internal/components/form/AddressAutocomplete/AddressInputField.js +6 -4
  111. package/dist/_internal/components/form/AddressAutocomplete/AddressTextField.js +5 -3
  112. package/dist/_internal/components/form/Autocomplete/Autocomplete.js +7 -2
  113. package/dist/_internal/components/form/Autocomplete/Autocomplete.parts.js +6 -1
  114. package/dist/_internal/components/form/Button/Button.js +8 -4
  115. package/dist/_internal/components/form/Button/Button.styles.js +8 -3
  116. package/dist/_internal/components/form/Calendar/Calendar.js +4 -4
  117. package/dist/_internal/components/form/Calendar/CalendarDayCell.js +2 -2
  118. package/dist/_internal/components/form/Calendar/CalendarMonth.js +3 -3
  119. package/dist/_internal/components/form/CategorySelect/CategoryPanel.js +10 -8
  120. package/dist/_internal/components/form/CategorySelect/CategoryPanelFoot.js +6 -4
  121. package/dist/_internal/components/form/CategorySelect/CategoryPanelHead.js +6 -4
  122. package/dist/_internal/components/form/CategorySelect/CategoryPanelList.js +7 -5
  123. package/dist/_internal/components/form/CategorySelect/CategoryRows.js +6 -4
  124. package/dist/_internal/components/form/CategorySelect/CategorySelect.js +14 -12
  125. package/dist/_internal/components/form/CategorySelect/CategorySelect.styles.js +5 -3
  126. package/dist/_internal/components/form/CategorySelect/CategoryTrigger.js +6 -4
  127. package/dist/_internal/components/form/CepField/CepField.js +9 -7
  128. package/dist/_internal/components/form/Checkbox/Checkbox.js +4 -3
  129. package/dist/_internal/components/form/CodeEditor/CodeEditor.js +4 -4
  130. package/dist/_internal/components/form/Command/Command.js +11 -6
  131. package/dist/_internal/components/form/Command/Command.styles.js +9 -4
  132. package/dist/_internal/components/form/CreatableSelect/CreatableSelect.js +5 -3
  133. package/dist/_internal/components/form/DateRangePicker/DateRangePicker.hooks.js +8 -3
  134. package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +15 -10
  135. package/dist/_internal/components/form/DateRangePicker/DateRangePicker.range.js +7 -2
  136. package/dist/_internal/components/form/DateRangePicker/DateRangePickerFields.js +8 -3
  137. package/dist/_internal/components/form/Input/Input.js +8 -6
  138. package/dist/_internal/components/form/Input/Input.metrics.js +3 -2
  139. package/dist/_internal/components/form/Input/Input.styles.js +7 -5
  140. package/dist/_internal/components/form/InputOTP/InputOTP.js +7 -5
  141. package/dist/_internal/components/form/InputOTP/InputOTP.styles.js +5 -3
  142. package/dist/_internal/components/form/Label/Label.js +10 -5
  143. package/dist/_internal/components/form/Label/Label.styles.js +9 -4
  144. package/dist/_internal/components/form/Menubar/Menubar.item.js +10 -5
  145. package/dist/_internal/components/form/Menubar/Menubar.js +13 -8
  146. package/dist/_internal/components/form/Menubar/Menubar.styles.js +9 -4
  147. package/dist/_internal/components/form/Menubar/Menubar.toolbar.js +11 -6
  148. package/dist/_internal/components/form/PhoneInput/PhoneInput.hooks.js +2 -2
  149. package/dist/_internal/components/form/PhoneInput/PhoneInput.js +7 -5
  150. package/dist/_internal/components/form/RadioGroup/RadioGroup.js +8 -6
  151. package/dist/_internal/components/form/RadioGroup/RadioGroup.styles.js +5 -3
  152. package/dist/_internal/components/form/RadioGroup/RadioGroup.variants.js +6 -4
  153. package/dist/_internal/components/form/RichTextEditor/RichTextEditor.js +3 -3
  154. package/dist/_internal/components/form/Select/Select.js +7 -5
  155. package/dist/_internal/components/form/Select/Select.metrics.js +3 -2
  156. package/dist/_internal/components/form/Switch/Switch.js +7 -6
  157. package/dist/_internal/components/form/Switch/Switch.parts.js +5 -4
  158. package/dist/_internal/components/form/Switch/Switch.styles.js +4 -3
  159. package/dist/_internal/components/form/Textarea/Textarea.js +5 -3
  160. package/dist/_internal/components/form/Textarea/TextareaRichEditor.js +13 -6
  161. package/dist/_internal/components/form/Textarea/TextareaRichEditor.js.map +1 -1
  162. package/dist/_internal/components/form/Toggle/Toggle.js +6 -4
  163. package/dist/_internal/components/form/Toggle/Toggle.styles.js +5 -3
  164. package/dist/_internal/components/form/ToggleGroup/ToggleGroup.js +6 -1
  165. package/dist/_internal/components/form/index.js +67 -64
  166. package/dist/_internal/components/form/total-form/Fields/CategoryField.js +15 -13
  167. package/dist/_internal/components/form/total-form/Fields/CepField.js +10 -8
  168. package/dist/_internal/components/form/total-form/Fields/SelectField.js +8 -6
  169. package/dist/_internal/components/form/total-form/Fields/TextField.js +9 -7
  170. package/dist/_internal/components/form/total-form/Fields/ToggleField.js +7 -2
  171. package/dist/_internal/components/form/total-form/Fields/index.js +31 -29
  172. package/dist/_internal/components/form/total-form/SubmitButton.js +9 -5
  173. package/dist/_internal/components/index.js +179 -176
  174. package/dist/_internal/components/layout/Box/Box.js +11 -6
  175. package/dist/_internal/components/layout/ContentToolbar/ColumnsMenu.js +6 -1
  176. package/dist/_internal/components/layout/ContentToolbar/FilterTrigger.js +6 -1
  177. package/dist/_internal/components/layout/ContentToolbar/MultiSelectDropdown.js +7 -2
  178. package/dist/_internal/components/layout/ContentToolbar/MultiSelectTriggers.js +6 -1
  179. package/dist/_internal/components/layout/ContentToolbar/SavedViewsMenu.js +8 -1
  180. package/dist/_internal/components/layout/ContentToolbar/SortByDropdown.js +6 -1
  181. package/dist/_internal/components/layout/ContentToolbar/ViewSelector.js +6 -1
  182. package/dist/_internal/components/layout/ScrollArea/ScrollArea.js +3 -3
  183. package/dist/_internal/components/layout/Skeleton/Skeleton.js +2 -2
  184. package/dist/_internal/components/layout/Stack/Stack.js +12 -7
  185. package/dist/_internal/components/layout/TableFilter/TableFilter.js +6 -1
  186. package/dist/_internal/components/layout/index.js +24 -19
  187. package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +13 -8
  188. package/dist/_internal/components/navigation/AppHeader/AppHeader.identity.js +9 -4
  189. package/dist/_internal/components/navigation/CommandPalette/CommandPalette.js +3 -3
  190. package/dist/_internal/components/navigation/NavigationMenu/NavigationMegaSection.js +3 -3
  191. package/dist/_internal/components/navigation/NavigationMenu/NavigationMenu.js +5 -5
  192. package/dist/_internal/components/navigation/NavigationMenu/NavigationMenuItem.js +2 -2
  193. package/dist/_internal/components/navigation/NavigationMenu/NavigationStandardBody.js +3 -3
  194. package/dist/_internal/components/navigation/Pagination/Pagination.js +10 -3
  195. package/dist/_internal/components/navigation/Pagination/PaginationParts.js +8 -1
  196. package/dist/_internal/components/navigation/index.js +25 -20
  197. package/dist/_internal/components/typography/Heading/Heading.js +6 -5
  198. package/dist/_internal/components/typography/Heading/Heading.metrics.js +4 -3
  199. package/dist/_internal/components/typography/Heading/Heading.styles.js +5 -4
  200. package/dist/_internal/components/typography/Paragraph/Paragraph.js +4 -3
  201. package/dist/_internal/components/typography/Text/Text.js +5 -4
  202. package/dist/_internal/components/typography/Text/Text.metrics.js +4 -3
  203. package/dist/_internal/components/typography/index.js +9 -8
  204. package/dist/_internal/components/utility/InstallPrompt/InstallPrompt.js +2 -2
  205. package/dist/_internal/components/utility/index.js +2 -2
  206. package/dist/_internal/icons/Icon.js +11 -6
  207. package/dist/_internal/provider/UiProvider.js +10 -5
  208. package/dist/_internal/provider/mui-bridge.js +9 -4
  209. package/dist/_internal/provider/use-ui-theme.js +10 -5
  210. package/dist/_internal/social-login-button/social-login-button.js +14 -10
  211. package/dist/_internal/tokens/field-height.core.js +20 -0
  212. package/dist/_internal/tokens/field-height.core.js.map +1 -0
  213. package/dist/_internal/tokens/field-height.js +37 -0
  214. package/dist/_internal/tokens/field-height.js.map +1 -0
  215. package/dist/_internal/tokens/relative.js +16 -0
  216. package/dist/_internal/tokens/relative.js.map +1 -0
  217. package/dist/_internal/tokens/theme.js +3 -2
  218. package/dist/_internal/user-avatar/user-avatar.js +14 -10
  219. package/dist/charts.js +25 -20
  220. package/dist/{chunk-P7FQUGED.js → chunk-23FCBIUN.js} +8 -8
  221. package/dist/{chunk-JHOBW7OD.js → chunk-2F4YEGYG.js} +4 -4
  222. package/dist/chunk-2F4YEGYG.js.map +1 -0
  223. package/dist/{chunk-GOKMLXZH.js → chunk-2SKNSQCP.js} +2 -2
  224. package/dist/{chunk-JVMNE5G4.js → chunk-2X5OQDPH.js} +5 -1
  225. package/dist/chunk-2X5OQDPH.js.map +1 -0
  226. package/dist/{chunk-L6UTYFAB.js → chunk-3E3JYKUK.js} +12 -3
  227. package/dist/chunk-3E3JYKUK.js.map +1 -0
  228. package/dist/{chunk-BKP7YW3Y.js → chunk-3IYB3XY2.js} +2 -2
  229. package/dist/{chunk-URK67BAE.js → chunk-3SJZP7KH.js} +5 -5
  230. package/dist/{chunk-4ETQRBZC.js → chunk-46UPILLK.js} +4 -4
  231. package/dist/{chunk-SSJHEV5Z.js → chunk-4BEQADWC.js} +2 -2
  232. package/dist/{chunk-OP6F3NXX.js → chunk-4IVOHL32.js} +2 -2
  233. package/dist/{chunk-NFJUBPIN.js → chunk-4LMY5I5E.js} +2 -2
  234. package/dist/{chunk-ZOUWHGV3.js → chunk-4MGFUPQT.js} +4 -4
  235. package/dist/{chunk-32MTYYGC.js → chunk-4PIKOJZ4.js} +2 -2
  236. package/dist/{chunk-RMB4RTTM.js → chunk-4V7FNB7R.js} +10 -10
  237. package/dist/{chunk-OFMDFN3U.js → chunk-4YMIQ5DM.js} +2 -2
  238. package/dist/{chunk-CJMU3G2J.js → chunk-56MKBXSH.js} +6 -6
  239. package/dist/{chunk-ATBT4RJZ.js → chunk-57C636A6.js} +3 -3
  240. package/dist/{chunk-UHWHTNUS.js → chunk-5BW7NCM5.js} +4 -4
  241. package/dist/{chunk-LG6DHNRD.js → chunk-5FA5S2YN.js} +2 -2
  242. package/dist/{chunk-IQFUV3BA.js → chunk-5RHMLOIA.js} +2 -2
  243. package/dist/{chunk-HFBME3C5.js → chunk-5SCZZFZR.js} +7 -7
  244. package/dist/{chunk-XMDH3MRV.js → chunk-5UWSDTZV.js} +12 -6
  245. package/dist/chunk-5UWSDTZV.js.map +1 -0
  246. package/dist/{chunk-QKDFD4VT.js → chunk-62NFZR52.js} +4 -4
  247. package/dist/{chunk-3PT3SBJ7.js → chunk-65JHGT5F.js} +2 -2
  248. package/dist/{chunk-H7ZN2GW7.js → chunk-67N6TH6E.js} +2 -2
  249. package/dist/{chunk-INH2BDHV.js → chunk-6ANWFGLL.js} +9 -9
  250. package/dist/{chunk-Q5BSNHN7.js → chunk-6M33XQLZ.js} +2 -2
  251. package/dist/{chunk-IPS55KWK.js → chunk-6M7CMILP.js} +2 -2
  252. package/dist/{chunk-X2R7QG5I.js → chunk-6MDBMCFK.js} +2 -2
  253. package/dist/{chunk-PCONTSJJ.js → chunk-6V7D6GRX.js} +11 -11
  254. package/dist/{chunk-DTKMBI7B.js → chunk-6YLAVHV4.js} +4 -4
  255. package/dist/{chunk-BWSYSSF3.js → chunk-7A3G4W52.js} +3 -3
  256. package/dist/{chunk-RXSGHPCR.js → chunk-7FOOLP5H.js} +4 -4
  257. package/dist/{chunk-NJ6D37KV.js → chunk-7FWXG2KF.js} +2 -2
  258. package/dist/{chunk-APMEXS3Y.js → chunk-7N4V3ARN.js} +2 -2
  259. package/dist/{chunk-OIFBBDYX.js → chunk-7TSQNYQO.js} +2 -2
  260. package/dist/{chunk-YD77RANW.js → chunk-7VN7LFBA.js} +5 -5
  261. package/dist/{chunk-CKW267ZK.js → chunk-AJVYJZHI.js} +4 -4
  262. package/dist/{chunk-EZOVSZ5B.js → chunk-ANNDLY3M.js} +4 -4
  263. package/dist/{chunk-J2RRZZXC.js → chunk-APT5L7V5.js} +2 -2
  264. package/dist/{chunk-ZVTJGWIV.js → chunk-AYRHW4DX.js} +2 -2
  265. package/dist/{chunk-NLUZGT4U.js → chunk-AZ4LLAAJ.js} +3 -3
  266. package/dist/{chunk-IRSI3BFF.js → chunk-B64PPHUR.js} +9 -1
  267. package/dist/chunk-B64PPHUR.js.map +1 -0
  268. package/dist/{chunk-7DNQHMDO.js → chunk-B6IURHSZ.js} +4 -4
  269. package/dist/{chunk-USPQZQBF.js → chunk-BIIAMH47.js} +7 -4
  270. package/dist/chunk-BIIAMH47.js.map +1 -0
  271. package/dist/{chunk-6VZYQC7T.js → chunk-BM4CGQED.js} +6 -6
  272. package/dist/{chunk-JOPTI47I.js → chunk-BM4ZPBBT.js} +3 -3
  273. package/dist/{chunk-VGSEI7PQ.js → chunk-BTIBFR5L.js} +2 -2
  274. package/dist/{chunk-6SXZ7CF2.js → chunk-BTVIHTAL.js} +5 -2
  275. package/dist/chunk-BTVIHTAL.js.map +1 -0
  276. package/dist/{chunk-YXQ2NJHF.js → chunk-C423YJGN.js} +6 -6
  277. package/dist/{chunk-DV42HAVP.js → chunk-CDNJOA3N.js} +21 -6
  278. package/dist/chunk-CDNJOA3N.js.map +1 -0
  279. package/dist/chunk-CGO452DC.js +90 -0
  280. package/dist/chunk-CGO452DC.js.map +1 -0
  281. package/dist/{chunk-E6D2Y5EK.js → chunk-CMN26J5Y.js} +2 -2
  282. package/dist/{chunk-6SNRPCSK.js → chunk-CR4KC2K5.js} +2 -2
  283. package/dist/{chunk-4WT4PV4M.js → chunk-CZ5ZL63A.js} +2 -2
  284. package/dist/{chunk-BPYPUEM5.js → chunk-CZJLWCEG.js} +2 -2
  285. package/dist/{chunk-XEUSTU7K.js → chunk-DIWC6AQL.js} +6 -6
  286. package/dist/{chunk-LWAOL4BG.js → chunk-DO3UNZAU.js} +2 -2
  287. package/dist/{chunk-GUROYOKQ.js → chunk-EAE5Z5HL.js} +2 -2
  288. package/dist/{chunk-EYRSUVBC.js → chunk-ECZXTIDR.js} +2 -2
  289. package/dist/{chunk-55E7GLVT.js → chunk-EDJDASXE.js} +3 -3
  290. package/dist/{chunk-26ORCF6J.js → chunk-EEAQBPOW.js} +2 -2
  291. package/dist/{chunk-RRDL7AGQ.js → chunk-EKSSKQUW.js} +6 -2
  292. package/dist/chunk-EKSSKQUW.js.map +1 -0
  293. package/dist/{chunk-DWZ7FLA7.js → chunk-FATRMNVN.js} +5 -5
  294. package/dist/{chunk-C4NRFERD.js → chunk-FTCCYWF4.js} +2 -2
  295. package/dist/{chunk-MSKEFXXV.js → chunk-FYFIND6O.js} +13 -5
  296. package/dist/chunk-FYFIND6O.js.map +1 -0
  297. package/dist/{chunk-NR2HXHBR.js → chunk-G73SDZ3T.js} +2 -2
  298. package/dist/{chunk-F65LT7XV.js → chunk-GCWF5AQE.js} +2 -2
  299. package/dist/{chunk-X4GALW6I.js → chunk-GJKBWVU2.js} +2 -2
  300. package/dist/{chunk-SHQWIDD5.js → chunk-GJQYM3PM.js} +4 -4
  301. package/dist/{chunk-VNEEXUWA.js → chunk-GT7C6TSM.js} +3 -3
  302. package/dist/{chunk-OHKEQ7QJ.js → chunk-GXEB6MJA.js} +2 -2
  303. package/dist/{chunk-QNUWSXF2.js → chunk-H57ZS6W2.js} +3 -3
  304. package/dist/{chunk-IASDP44E.js → chunk-HR7YTBR7.js} +4 -4
  305. package/dist/{chunk-EFEZWG4C.js → chunk-IBWVEARQ.js} +9 -2
  306. package/dist/chunk-IBWVEARQ.js.map +1 -0
  307. package/dist/{chunk-SZZLABMO.js → chunk-IDO4EV7T.js} +3 -3
  308. package/dist/{chunk-SAIKHWH7.js → chunk-IFAEKIT2.js} +10 -10
  309. package/dist/{chunk-QP3KK4KO.js → chunk-IGO5DC7D.js} +10 -10
  310. package/dist/{chunk-ORIFMVN4.js → chunk-IM76SSXI.js} +3 -3
  311. package/dist/{chunk-EATFKTO3.js → chunk-IOEF32HX.js} +3 -3
  312. package/dist/{chunk-G3WUOPWE.js → chunk-IZBDSPTW.js} +2 -2
  313. package/dist/{chunk-RRO2EOJB.js → chunk-JB67KPGM.js} +4 -4
  314. package/dist/{chunk-RIA34EUT.js → chunk-JDY37EML.js} +3 -3
  315. package/dist/{chunk-5ZOJLYD2.js → chunk-JE6RZ5L6.js} +4 -4
  316. package/dist/{chunk-SMUZRLFZ.js → chunk-JGOXXKPY.js} +2 -2
  317. package/dist/{chunk-VYMULXCJ.js → chunk-JLWAYBOP.js} +5 -2
  318. package/dist/chunk-JLWAYBOP.js.map +1 -0
  319. package/dist/{chunk-7U36V4CU.js → chunk-JO5GSRYQ.js} +4 -4
  320. package/dist/{chunk-DHQ6ASUD.js → chunk-JPNPXNFH.js} +4 -4
  321. package/dist/{chunk-XVM4ZIRE.js → chunk-JPXG7IFW.js} +6 -4
  322. package/dist/chunk-JPXG7IFW.js.map +1 -0
  323. package/dist/{chunk-D5YGDCMP.js → chunk-JRHZZTVV.js} +19 -19
  324. package/dist/{chunk-DVEYD27F.js → chunk-JXNT5TUP.js} +2 -2
  325. package/dist/{chunk-4DUHJIR2.js → chunk-JYETSTOQ.js} +2 -2
  326. package/dist/{chunk-FC74EAW4.js → chunk-JZJOAGBG.js} +4 -4
  327. package/dist/{chunk-GLPHRHIT.js → chunk-K2XK45HG.js} +7 -7
  328. package/dist/{chunk-CEA4QA63.js → chunk-KAPKMVKR.js} +2 -3
  329. package/dist/{chunk-CEA4QA63.js.map → chunk-KAPKMVKR.js.map} +1 -1
  330. package/dist/{chunk-SGV7QGYQ.js → chunk-KBOTNPYL.js} +6 -6
  331. package/dist/{chunk-JUHPNTDA.js → chunk-KCBAPMLH.js} +13 -6
  332. package/dist/chunk-KCBAPMLH.js.map +1 -0
  333. package/dist/{chunk-7YTLJUBX.js → chunk-KJHQYPKT.js} +2 -2
  334. package/dist/{chunk-V3RVRZAU.js → chunk-KMUSTQA6.js} +2 -2
  335. package/dist/{chunk-HSVNFMXY.js → chunk-LB2G6SD6.js} +8 -8
  336. package/dist/{chunk-6PSAPCTE.js → chunk-LE7IHEU4.js} +2 -2
  337. package/dist/{chunk-ETSKBOXN.js → chunk-LGLHU55A.js} +7 -5
  338. package/dist/chunk-LGLHU55A.js.map +1 -0
  339. package/dist/{chunk-67L5CMXP.js → chunk-LLR42S6B.js} +6 -6
  340. package/dist/{chunk-RWIBPIPD.js → chunk-LNOYDMFD.js} +6 -6
  341. package/dist/{chunk-SFAP5EH5.js → chunk-LUMF63BM.js} +4 -4
  342. package/dist/{chunk-XPPEUGHG.js → chunk-LVRH5CGR.js} +5 -5
  343. package/dist/{chunk-WVJI3Z4P.js → chunk-LWLVWM34.js} +2 -2
  344. package/dist/{chunk-RFZU5BTG.js → chunk-LYSSO6WC.js} +4 -4
  345. package/dist/{chunk-IAVAZ36T.js → chunk-LZHXF66R.js} +4 -4
  346. package/dist/{chunk-CIVLXOLG.js → chunk-MDR4WJOV.js} +2 -2
  347. package/dist/{chunk-EJJRJYB5.js → chunk-MG73KW54.js} +6 -6
  348. package/dist/{chunk-BDVJ65GR.js → chunk-MMPJ2MCE.js} +6 -3
  349. package/dist/chunk-MMPJ2MCE.js.map +1 -0
  350. package/dist/{chunk-4EL5ZSZ3.js → chunk-MQZDTGGJ.js} +8 -5
  351. package/dist/chunk-MQZDTGGJ.js.map +1 -0
  352. package/dist/{chunk-BB2IVF76.js → chunk-MVXFMIVZ.js} +7 -4
  353. package/dist/chunk-MVXFMIVZ.js.map +1 -0
  354. package/dist/{chunk-G5G4Q7G6.js → chunk-MYYGXSXF.js} +9 -6
  355. package/dist/chunk-MYYGXSXF.js.map +1 -0
  356. package/dist/{chunk-MYUZPUXQ.js → chunk-N74IYYRU.js} +3 -3
  357. package/dist/{chunk-272OV2KZ.js → chunk-NFGVP3HN.js} +15 -9
  358. package/dist/chunk-NFGVP3HN.js.map +1 -0
  359. package/dist/{chunk-3BAFJMBH.js → chunk-NKIAP6ZL.js} +4 -4
  360. package/dist/{chunk-65IHPI4S.js → chunk-NMX3JAAB.js} +5 -4
  361. package/dist/chunk-NMX3JAAB.js.map +1 -0
  362. package/dist/{chunk-D6P5PSHU.js → chunk-NNAACCN2.js} +2 -2
  363. package/dist/{chunk-CATLG2RT.js → chunk-NU3EQX2L.js} +3 -3
  364. package/dist/{chunk-H35CQ6DF.js → chunk-OFVYNUYV.js} +3 -3
  365. package/dist/{chunk-WONCE5GB.js → chunk-OGPOTZAU.js} +18 -10
  366. package/dist/chunk-OGPOTZAU.js.map +1 -0
  367. package/dist/{chunk-HZAPN7XD.js → chunk-OZAP2BEP.js} +5 -2
  368. package/dist/chunk-OZAP2BEP.js.map +1 -0
  369. package/dist/{chunk-2YOQLBEX.js → chunk-OZZNC4YU.js} +3 -3
  370. package/dist/{chunk-Q544QEIN.js → chunk-P3L42CBB.js} +15 -9
  371. package/dist/chunk-P3L42CBB.js.map +1 -0
  372. package/dist/{chunk-C2ZNAQMO.js → chunk-PCRKQ2M7.js} +4 -4
  373. package/dist/{chunk-BRAF4MFO.js → chunk-PE4ZW3IA.js} +9 -5
  374. package/dist/chunk-PE4ZW3IA.js.map +1 -0
  375. package/dist/{chunk-35GWNOLB.js → chunk-PH5XJGKJ.js} +2 -2
  376. package/dist/{chunk-PEMZ2ABQ.js → chunk-PI5G6N6Q.js} +4 -4
  377. package/dist/{chunk-ETU4LNU7.js → chunk-PLEZDLVU.js} +3 -3
  378. package/dist/{chunk-QPMLACIK.js → chunk-PPTF5X7K.js} +6 -6
  379. package/dist/{chunk-AGYGNNOM.js → chunk-PQECNGDE.js} +2 -2
  380. package/dist/{chunk-IPE5FFFD.js → chunk-PUBPZOQJ.js} +2 -2
  381. package/dist/chunk-PZBK3F52.js +31 -0
  382. package/dist/chunk-PZBK3F52.js.map +1 -0
  383. package/dist/{chunk-4LDRYLE2.js → chunk-QNHNFU7G.js} +5 -5
  384. package/dist/{chunk-EN5Q5RPQ.js → chunk-QRUCR4YZ.js} +17 -5
  385. package/dist/chunk-QRUCR4YZ.js.map +1 -0
  386. package/dist/{chunk-2N2KNXTF.js → chunk-QWCMLOYC.js} +2 -2
  387. package/dist/{chunk-WBKWIFXA.js → chunk-QYNCPS5W.js} +6 -6
  388. package/dist/{chunk-5YOFMMK3.js → chunk-R2G4MVPY.js} +2 -2
  389. package/dist/{chunk-MCAXIKQD.js → chunk-R5XB2SCN.js} +3 -3
  390. package/dist/{chunk-RCI6KVN6.js → chunk-R67J6JKT.js} +5 -5
  391. package/dist/{chunk-GOWBYHYW.js → chunk-R6SBP5M5.js} +4 -4
  392. package/dist/{chunk-GKGA2ZCW.js → chunk-RAWQMBX6.js} +2 -2
  393. package/dist/{chunk-6BGS5FND.js → chunk-RGKGBYT2.js} +3 -3
  394. package/dist/{chunk-A5FIYKAN.js → chunk-RGMSTQ2J.js} +2 -2
  395. package/dist/{chunk-R7KR5FYJ.js → chunk-RJXRZW66.js} +2 -2
  396. package/dist/{chunk-BRUJC7OG.js → chunk-RPMAWM6F.js} +3 -3
  397. package/dist/{chunk-WHLVMQNF.js → chunk-RQ5HZDBV.js} +4 -4
  398. package/dist/chunk-RQ5HZDBV.js.map +1 -0
  399. package/dist/{chunk-UEJQQVP2.js → chunk-RRX6ZTNX.js} +4 -4
  400. package/dist/{chunk-OL7UQMBI.js → chunk-RUEKY3VR.js} +2 -2
  401. package/dist/{chunk-RDFPH47Y.js → chunk-SGGDMTKP.js} +11 -7
  402. package/dist/chunk-SGGDMTKP.js.map +1 -0
  403. package/dist/{chunk-BHXFPZAA.js → chunk-SLODUPES.js} +16 -10
  404. package/dist/chunk-SLODUPES.js.map +1 -0
  405. package/dist/{chunk-TLY2QMU5.js → chunk-SVFA75FO.js} +3 -3
  406. package/dist/{chunk-R4SOPN6K.js → chunk-SVXHKIGJ.js} +12 -5
  407. package/dist/chunk-SVXHKIGJ.js.map +1 -0
  408. package/dist/{chunk-WI6GD4MV.js → chunk-TBRAZK3Y.js} +12 -12
  409. package/dist/{chunk-DBXGRZBJ.js → chunk-THM3HCMU.js} +5 -5
  410. package/dist/{chunk-5UGXAAZG.js → chunk-TJT4NSFN.js} +2 -2
  411. package/dist/{chunk-5EQFAFR3.js → chunk-TK36COCP.js} +2 -2
  412. package/dist/{chunk-P4BZ7YE6.js → chunk-TTVKL3RD.js} +2 -2
  413. package/dist/{chunk-MRGPVPQC.js → chunk-TUYN6XZI.js} +10 -10
  414. package/dist/{chunk-BGYLL467.js → chunk-TXHJX2NG.js} +4 -4
  415. package/dist/{chunk-VUFMV5Q5.js → chunk-U3PPLAFB.js} +2 -2
  416. package/dist/{chunk-WVQ47UTI.js → chunk-UEWIIYGA.js} +2 -2
  417. package/dist/{chunk-SDSAQ5YS.js → chunk-UJE7IKQ4.js} +2 -2
  418. package/dist/{chunk-DX36KZUV.js → chunk-UMQN3BVV.js} +4 -4
  419. package/dist/{chunk-WCLWFN3F.js → chunk-URWNRC2P.js} +10 -10
  420. package/dist/{chunk-PS3EJLOC.js → chunk-VDZQJBAV.js} +4 -4
  421. package/dist/chunk-VDZQJBAV.js.map +1 -0
  422. package/dist/{chunk-D7Q42CRZ.js → chunk-VECWMANF.js} +10 -6
  423. package/dist/chunk-VECWMANF.js.map +1 -0
  424. package/dist/{chunk-Y2CSBXQT.js → chunk-VF2XC76U.js} +2 -2
  425. package/dist/{chunk-KJYD5OJ4.js → chunk-VLVMJDGD.js} +2 -2
  426. package/dist/{chunk-O7SE4PYT.js → chunk-VNHLYDTX.js} +12 -6
  427. package/dist/chunk-VNHLYDTX.js.map +1 -0
  428. package/dist/{chunk-V6YZ3PL5.js → chunk-VQBINZB7.js} +2 -2
  429. package/dist/{chunk-2SWQ6HIK.js → chunk-W3FAKT3D.js} +4 -4
  430. package/dist/{chunk-AFZUPCBK.js → chunk-W7HSGZGW.js} +7 -7
  431. package/dist/{chunk-DF2FFYZ7.js → chunk-WJH743NG.js} +10 -10
  432. package/dist/{chunk-F22WT7UX.js → chunk-X2QLWUND.js} +2 -2
  433. package/dist/{chunk-ZCNCQGWK.js → chunk-X4XYUNRL.js} +2 -2
  434. package/dist/{chunk-F73D4EMA.js → chunk-XCP5L665.js} +1 -1
  435. package/dist/chunk-XCP5L665.js.map +1 -0
  436. package/dist/{chunk-RQFBLYYH.js → chunk-XI2BXMBX.js} +2 -2
  437. package/dist/{chunk-HEWJJ4VE.js → chunk-XLZBZSES.js} +6 -3
  438. package/dist/chunk-XLZBZSES.js.map +1 -0
  439. package/dist/{chunk-UCTJJYVC.js → chunk-XPOQZI5X.js} +6 -6
  440. package/dist/{chunk-CPA2YRVZ.js → chunk-XYXTEGIM.js} +2 -2
  441. package/dist/{chunk-GEZYZ446.js → chunk-Y3IGYWGN.js} +27 -5
  442. package/dist/chunk-Y3IGYWGN.js.map +1 -0
  443. package/dist/{chunk-6SK3MTYJ.js → chunk-Y5UCOBQN.js} +4 -4
  444. package/dist/{chunk-3ZGQSWHJ.js → chunk-Y6JDIPV7.js} +4 -4
  445. package/dist/{chunk-I2IZ53QS.js → chunk-Y7ZS724A.js} +2 -2
  446. package/dist/{chunk-O6DRUOUF.js → chunk-YESTO24O.js} +2 -2
  447. package/dist/{chunk-GLWW2XCP.js → chunk-YJ4HM25H.js} +2 -2
  448. package/dist/chunk-YKCAJ2TN.js +47 -0
  449. package/dist/chunk-YKCAJ2TN.js.map +1 -0
  450. package/dist/{chunk-DORPR2YP.js → chunk-ZA4U5GDU.js} +2 -2
  451. package/dist/{chunk-2DFH74T4.js → chunk-ZB6BX4GO.js} +2 -2
  452. package/dist/{chunk-7AR2R7TV.js → chunk-ZDWU52DJ.js} +4 -4
  453. package/dist/{chunk-H2RHA73H.js → chunk-ZNJ4RLZT.js} +10 -10
  454. package/dist/{chunk-M7E66OSC.js → chunk-ZPIMPOHV.js} +4 -4
  455. package/dist/data-display/Alert.js +5 -4
  456. package/dist/data-display/AsyncStateContainer.js +4 -4
  457. package/dist/data-display/Avatar.js +6 -5
  458. package/dist/data-display/Badge.js +6 -5
  459. package/dist/data-display/Banner.js +3 -2
  460. package/dist/data-display/CardKit.js +19 -15
  461. package/dist/data-display/Carousel.js +13 -8
  462. package/dist/data-display/Chart.js +25 -20
  463. package/dist/data-display/DataGrid.js +2 -2
  464. package/dist/data-display/DataViews.js +108 -106
  465. package/dist/data-display/DescriptionItem.js +6 -5
  466. package/dist/data-display/FleetMap.js +27 -22
  467. package/dist/data-display/LazyImage.js +3 -3
  468. package/dist/data-display/Lightbox.js +7 -7
  469. package/dist/data-display/LoadingState.js +3 -3
  470. package/dist/data-display/MapPreview.js +16 -11
  471. package/dist/data-display/Progress.js +6 -5
  472. package/dist/data-display/Sheet.js +10 -5
  473. package/dist/data-display/StatCard.js +3 -3
  474. package/dist/data-display/Table.js +3 -3
  475. package/dist/feedback/ConfirmAction.js +9 -5
  476. package/dist/feedback/NotificationStatusNotice.js +11 -7
  477. package/dist/feedback/TutorialOverlay.js +2 -2
  478. package/dist/form/AddressAutocomplete.js +12 -10
  479. package/dist/form/Autocomplete.js +7 -2
  480. package/dist/form/Button.js +8 -4
  481. package/dist/form/Calendar.js +4 -4
  482. package/dist/form/CategorySelect.js +14 -12
  483. package/dist/form/CepField.js +9 -7
  484. package/dist/form/Checkbox.js +4 -3
  485. package/dist/form/CodeEditor.js +4 -4
  486. package/dist/form/Command.js +11 -6
  487. package/dist/form/CreatableSelect.js +5 -3
  488. package/dist/form/DateRangePicker.js +17 -12
  489. package/dist/form/Input.js +8 -6
  490. package/dist/form/InputOTP.js +7 -5
  491. package/dist/form/Label.js +10 -5
  492. package/dist/form/Menubar.js +13 -8
  493. package/dist/form/PhoneInput.js +7 -5
  494. package/dist/form/RadioGroup.js +8 -6
  495. package/dist/form/RichTextEditor.js +3 -3
  496. package/dist/form/Select.js +7 -5
  497. package/dist/form/Switch.js +7 -6
  498. package/dist/form/Textarea.js +5 -3
  499. package/dist/form/Toggle.js +6 -4
  500. package/dist/form/ToggleGroup.js +6 -1
  501. package/dist/form/total-form.js +38 -36
  502. package/dist/icons.js +11 -6
  503. package/dist/layout/Box.js +11 -6
  504. package/dist/layout/ContentToolbar.js +18 -13
  505. package/dist/layout/ScrollArea.js +3 -3
  506. package/dist/layout/Skeleton.js +2 -2
  507. package/dist/layout/Stack.js +12 -7
  508. package/dist/layout/TableFilter.js +6 -1
  509. package/dist/native/chunks/{chunk-UKROAIPA.js → chunk-335WGKE6.js} +35 -48
  510. package/dist/native/chunks/chunk-335WGKE6.js.map +1 -0
  511. package/dist/native/chunks/{chunk-LB65S6C7.js → chunk-4KWFRDI2.js} +3 -3
  512. package/dist/native/chunks/{chunk-S5SLTMPB.js → chunk-5IASLIBI.js} +2 -2
  513. package/dist/native/chunks/{chunk-IVNAQJY6.js → chunk-GUBTMR2K.js} +2 -2
  514. package/dist/native/chunks/chunk-IMGBBIMT.js +46 -0
  515. package/dist/native/chunks/chunk-IMGBBIMT.js.map +1 -0
  516. package/dist/native/chunks/{chunk-T3TYQMAH.js → chunk-KIG4KY4W.js} +18 -13
  517. package/dist/native/chunks/chunk-KIG4KY4W.js.map +1 -0
  518. package/dist/native/chunks/{chunk-VAD5YVIZ.js → chunk-OI57L6WL.js} +5 -5
  519. package/dist/native/chunks/{chunk-V72V2Q45.js → chunk-R5XVZRDD.js} +28 -1
  520. package/dist/native/chunks/chunk-R5XVZRDD.js.map +1 -0
  521. package/dist/native/chunks/{chunk-7UEJ2FMQ.js → chunk-X6RQGKGF.js} +2 -2
  522. package/dist/native/data-display/Alert.js +3 -3
  523. package/dist/native/data-display/Avatar.js +3 -3
  524. package/dist/native/data-display/Badge.js +3 -3
  525. package/dist/native/data-display/Chip.js +3 -3
  526. package/dist/native/data-display/EmptyState.js +6 -5
  527. package/dist/native/data-display/ErrorState.js +5 -4
  528. package/dist/native/data-display/ErrorState.js.map +1 -1
  529. package/dist/native/data-display/FleetMap.js +7 -6
  530. package/dist/native/data-display/FleetMap.js.map +1 -1
  531. package/dist/native/data-display/LoadingState.js +2 -2
  532. package/dist/native/data-display/Progress.js +2 -2
  533. package/dist/native/feedback/Dialog.js +3 -3
  534. package/dist/native/form/Button.js +4 -3
  535. package/dist/native/form/Checkbox.js +3 -3
  536. package/dist/native/form/Input.js +7 -3
  537. package/dist/native/form/Input.js.map +1 -1
  538. package/dist/native/form/Select.js +27 -14
  539. package/dist/native/form/Select.js.map +1 -1
  540. package/dist/native/form/Switch.js +2 -2
  541. package/dist/native/icons.js +3 -3
  542. package/dist/native/layout/Box.js +3 -3
  543. package/dist/native/layout/Card.js +2 -2
  544. package/dist/native/layout/Container.js +2 -2
  545. package/dist/native/layout/Skeleton.js +3 -3
  546. package/dist/native/layout/Spacer.js +2 -2
  547. package/dist/native/layout/Stack.js +3 -3
  548. package/dist/native/provider.js +2 -2
  549. package/dist/native/tokens.js +11 -1
  550. package/dist/native/typography/Heading.js +2 -2
  551. package/dist/native/typography/Paragraph.js +2 -2
  552. package/dist/native/typography/Text.js +2 -2
  553. package/dist/navigation/AppHeader.js +14 -9
  554. package/dist/navigation/CommandPalette.js +3 -3
  555. package/dist/navigation/NavigationMenu.js +5 -5
  556. package/dist/navigation/Pagination.js +10 -3
  557. package/dist/provider.js +11 -6
  558. package/dist/social-login-button.js +14 -10
  559. package/dist/tokens.js +52 -10
  560. package/dist/types/components/data-display/DataViews/data-views-bar-controls.d.ts.map +1 -1
  561. package/dist/types/components/data-display/DataViews/data-views-more-fields.d.ts.map +1 -1
  562. package/dist/types/components/data-display/DataViews/data-views-range-pill.d.ts.map +1 -1
  563. package/dist/types/components/data-display/DataViews/data-views-search.d.ts.map +1 -1
  564. package/dist/types/components/data-display/LazyImage/LazyImage.hooks.d.ts +1 -1
  565. package/dist/types/components/data-display/MapPreview/MapSearchBar.d.ts.map +1 -1
  566. package/dist/types/components/form/AddressAutocomplete/AddressTextField.d.ts.map +1 -1
  567. package/dist/types/components/form/Button/Button.styles.d.ts +9 -2
  568. package/dist/types/components/form/Button/Button.styles.d.ts.map +1 -1
  569. package/dist/types/components/form/CategorySelect/CategoryPanelHead.d.ts.map +1 -1
  570. package/dist/types/components/form/CategorySelect/CategorySelect.styles.d.ts +3 -4
  571. package/dist/types/components/form/CategorySelect/CategorySelect.styles.d.ts.map +1 -1
  572. package/dist/types/components/form/CreatableSelect/CreatableSelect.d.ts.map +1 -1
  573. package/dist/types/components/form/Input/Input.d.ts.map +1 -1
  574. package/dist/types/components/form/Input/Input.metrics.d.ts +26 -16
  575. package/dist/types/components/form/Input/Input.metrics.d.ts.map +1 -1
  576. package/dist/types/components/form/Input/Input.styles.d.ts +2 -1
  577. package/dist/types/components/form/Input/Input.styles.d.ts.map +1 -1
  578. package/dist/types/components/form/InputOTP/InputOTP.styles.d.ts.map +1 -1
  579. package/dist/types/components/form/PhoneInput/PhoneInput.d.ts.map +1 -1
  580. package/dist/types/components/form/RadioGroup/RadioGroup.styles.d.ts.map +1 -1
  581. package/dist/types/components/form/Select/Select.d.ts.map +1 -1
  582. package/dist/types/components/form/Textarea/Textarea.d.ts.map +1 -1
  583. package/dist/types/components/form/Textarea/TextareaRichEditor.d.ts.map +1 -1
  584. package/dist/types/components/form/Toggle/Toggle.styles.d.ts.map +1 -1
  585. package/dist/types/components/form/ToggleGroup/ToggleGroup.d.ts.map +1 -1
  586. package/dist/types/components/form/total-form/Fields/ToggleField.d.ts.map +1 -1
  587. package/dist/types/components/form/total-form/SubmitButton.d.ts.map +1 -1
  588. package/dist/types/components/layout/ContentToolbar/ColumnsMenu.d.ts.map +1 -1
  589. package/dist/types/components/layout/ContentToolbar/FilterTrigger.d.ts.map +1 -1
  590. package/dist/types/components/layout/ContentToolbar/MultiSelectDropdown.d.ts.map +1 -1
  591. package/dist/types/components/layout/ContentToolbar/MultiSelectTriggers.d.ts.map +1 -1
  592. package/dist/types/components/layout/ContentToolbar/SavedViewsMenu.d.ts.map +1 -1
  593. package/dist/types/components/layout/ContentToolbar/SortByDropdown.d.ts.map +1 -1
  594. package/dist/types/components/layout/ContentToolbar/ViewSelector.d.ts.map +1 -1
  595. package/dist/types/components/layout/TableFilter/TableFilter.d.ts.map +1 -1
  596. package/dist/types/components/navigation/Pagination/PaginationParts.d.ts.map +1 -1
  597. package/dist/types/provider/mui-bridge.d.ts.map +1 -1
  598. package/dist/types/tokens/field-height.core.d.ts +49 -0
  599. package/dist/types/tokens/field-height.core.d.ts.map +1 -0
  600. package/dist/types/tokens/field-height.d.ts +58 -0
  601. package/dist/types/tokens/field-height.d.ts.map +1 -0
  602. package/dist/types/tokens/relative.d.ts +55 -0
  603. package/dist/types/tokens/relative.d.ts.map +1 -0
  604. package/dist/types/tokens/scales.d.ts +2 -0
  605. package/dist/types/tokens/scales.d.ts.map +1 -1
  606. package/dist/types/tokens/theme.d.ts +8 -0
  607. package/dist/types/tokens/theme.d.ts.map +1 -1
  608. package/dist/types-native/components/form/Button/Button.native.d.ts.map +1 -1
  609. package/dist/types-native/components/form/Input/Input.look.native.d.ts +2 -2
  610. package/dist/types-native/components/form/Input/Input.metrics.d.ts +26 -16
  611. package/dist/types-native/components/form/Input/Input.metrics.d.ts.map +1 -1
  612. package/dist/types-native/components/form/Input/Input.native.d.ts.map +1 -1
  613. package/dist/types-native/components/form/Select/Select.native.d.ts +2 -2
  614. package/dist/types-native/components/form/Select/Select.native.d.ts.map +1 -1
  615. package/dist/types-native/components/form/field-pulse.native.d.ts +3 -1
  616. package/dist/types-native/components/form/field-pulse.native.d.ts.map +1 -1
  617. package/dist/types-native/tokens/field-height.core.d.ts +49 -0
  618. package/dist/types-native/tokens/field-height.core.d.ts.map +1 -0
  619. package/dist/types-native/tokens/index.native.d.ts +1 -0
  620. package/dist/types-native/tokens/index.native.d.ts.map +1 -1
  621. package/dist/types-native/tokens/theme.d.ts +8 -0
  622. package/dist/types-native/tokens/theme.d.ts.map +1 -1
  623. package/dist/typography/Heading.js +6 -5
  624. package/dist/typography/Paragraph.js +4 -3
  625. package/dist/typography/Text.js +5 -4
  626. package/dist/user-avatar.js +14 -10
  627. package/dist/utility/InstallPrompt.js +2 -2
  628. package/package.json +1 -1
  629. package/src/components/data-display/DataViews/data-views-bar-controls.tsx +3 -2
  630. package/src/components/data-display/DataViews/data-views-day-input.tsx +2 -2
  631. package/src/components/data-display/DataViews/data-views-more-fields.tsx +4 -1
  632. package/src/components/data-display/DataViews/data-views-number-input.tsx +2 -2
  633. package/src/components/data-display/DataViews/data-views-range-pill.tsx +6 -3
  634. package/src/components/data-display/DataViews/data-views-search.tsx +6 -2
  635. package/src/components/data-display/MapPreview/MapSearchBar.tsx +2 -0
  636. package/src/components/form/AddressAutocomplete/AddressTextField.tsx +4 -2
  637. package/src/components/form/Autocomplete/Autocomplete.parts.tsx +2 -2
  638. package/src/components/form/Button/Button.native.tsx +17 -4
  639. package/src/components/form/Button/Button.styles.ts +21 -5
  640. package/src/components/form/CategorySelect/CategoryPanelHead.tsx +3 -3
  641. package/src/components/form/CategorySelect/CategorySelect.styles.ts +5 -5
  642. package/src/components/form/CreatableSelect/CreatableSelect.tsx +2 -1
  643. package/src/components/form/Input/Input.look.native.ts +5 -5
  644. package/src/components/form/Input/Input.metrics.ts +53 -18
  645. package/src/components/form/Input/Input.native.tsx +2 -0
  646. package/src/components/form/Input/Input.styles.ts +4 -2
  647. package/src/components/form/Input/Input.tsx +9 -3
  648. package/src/components/form/InputOTP/InputOTP.styles.ts +12 -8
  649. package/src/components/form/PhoneInput/PhoneInput.tsx +4 -2
  650. package/src/components/form/RadioGroup/RadioGroup.styles.ts +10 -1
  651. package/src/components/form/Select/Select.native.tsx +34 -8
  652. package/src/components/form/Select/Select.tsx +13 -7
  653. package/src/components/form/Textarea/Textarea.tsx +5 -2
  654. package/src/components/form/Textarea/TextareaRichEditor.tsx +8 -3
  655. package/src/components/form/Toggle/Toggle.styles.ts +7 -3
  656. package/src/components/form/ToggleGroup/ToggleGroup.tsx +5 -0
  657. package/src/components/form/field-pulse.native.tsx +6 -3
  658. package/src/components/form/total-form/Fields/ToggleField.tsx +0 -2
  659. package/src/components/form/total-form/SubmitButton.tsx +4 -9
  660. package/src/components/layout/ContentToolbar/ColumnsMenu.tsx +3 -2
  661. package/src/components/layout/ContentToolbar/FilterTrigger.tsx +2 -1
  662. package/src/components/layout/ContentToolbar/MultiSelectDropdown.tsx +2 -0
  663. package/src/components/layout/ContentToolbar/MultiSelectTriggers.tsx +7 -5
  664. package/src/components/layout/ContentToolbar/SavedViewsMenu.tsx +3 -1
  665. package/src/components/layout/ContentToolbar/SortByDropdown.tsx +2 -1
  666. package/src/components/layout/ContentToolbar/ViewSelector.tsx +2 -1
  667. package/src/components/layout/TableFilter/TableFilter.tsx +3 -2
  668. package/src/components/navigation/Pagination/PaginationParts.tsx +2 -2
  669. package/src/provider/mui-bridge.ts +6 -2
  670. package/src/tokens/field-height.core.ts +70 -0
  671. package/src/tokens/field-height.ts +152 -0
  672. package/src/tokens/index.native.ts +7 -0
  673. package/src/tokens/relative.ts +107 -0
  674. package/src/tokens/scales.ts +16 -0
  675. package/src/tokens/theme.ts +10 -0
  676. package/dist/chunk-272OV2KZ.js.map +0 -1
  677. package/dist/chunk-4EL5ZSZ3.js.map +0 -1
  678. package/dist/chunk-65IHPI4S.js.map +0 -1
  679. package/dist/chunk-6SXZ7CF2.js.map +0 -1
  680. package/dist/chunk-BB2IVF76.js.map +0 -1
  681. package/dist/chunk-BDVJ65GR.js.map +0 -1
  682. package/dist/chunk-BHXFPZAA.js.map +0 -1
  683. package/dist/chunk-BRAF4MFO.js.map +0 -1
  684. package/dist/chunk-D7Q42CRZ.js.map +0 -1
  685. package/dist/chunk-DV42HAVP.js.map +0 -1
  686. package/dist/chunk-EFEZWG4C.js.map +0 -1
  687. package/dist/chunk-EN5Q5RPQ.js.map +0 -1
  688. package/dist/chunk-ETSKBOXN.js.map +0 -1
  689. package/dist/chunk-F73D4EMA.js.map +0 -1
  690. package/dist/chunk-G5G4Q7G6.js.map +0 -1
  691. package/dist/chunk-GEZYZ446.js.map +0 -1
  692. package/dist/chunk-HEWJJ4VE.js.map +0 -1
  693. package/dist/chunk-HZAPN7XD.js.map +0 -1
  694. package/dist/chunk-IRSI3BFF.js.map +0 -1
  695. package/dist/chunk-JHOBW7OD.js.map +0 -1
  696. package/dist/chunk-JUHPNTDA.js.map +0 -1
  697. package/dist/chunk-JVMNE5G4.js.map +0 -1
  698. package/dist/chunk-L6UTYFAB.js.map +0 -1
  699. package/dist/chunk-MSKEFXXV.js.map +0 -1
  700. package/dist/chunk-O7SE4PYT.js.map +0 -1
  701. package/dist/chunk-PS3EJLOC.js.map +0 -1
  702. package/dist/chunk-Q544QEIN.js.map +0 -1
  703. package/dist/chunk-R4SOPN6K.js.map +0 -1
  704. package/dist/chunk-RDFPH47Y.js.map +0 -1
  705. package/dist/chunk-RRDL7AGQ.js.map +0 -1
  706. package/dist/chunk-USPQZQBF.js.map +0 -1
  707. package/dist/chunk-VYMULXCJ.js.map +0 -1
  708. package/dist/chunk-WHLVMQNF.js.map +0 -1
  709. package/dist/chunk-WONCE5GB.js.map +0 -1
  710. package/dist/chunk-XMDH3MRV.js.map +0 -1
  711. package/dist/chunk-XVM4ZIRE.js.map +0 -1
  712. package/dist/native/chunks/chunk-T3TYQMAH.js.map +0 -1
  713. package/dist/native/chunks/chunk-UKROAIPA.js.map +0 -1
  714. package/dist/native/chunks/chunk-V72V2Q45.js.map +0 -1
  715. /package/dist/{chunk-P7FQUGED.js.map → chunk-23FCBIUN.js.map} +0 -0
  716. /package/dist/{chunk-GOKMLXZH.js.map → chunk-2SKNSQCP.js.map} +0 -0
  717. /package/dist/{chunk-BKP7YW3Y.js.map → chunk-3IYB3XY2.js.map} +0 -0
  718. /package/dist/{chunk-URK67BAE.js.map → chunk-3SJZP7KH.js.map} +0 -0
  719. /package/dist/{chunk-4ETQRBZC.js.map → chunk-46UPILLK.js.map} +0 -0
  720. /package/dist/{chunk-SSJHEV5Z.js.map → chunk-4BEQADWC.js.map} +0 -0
  721. /package/dist/{chunk-OP6F3NXX.js.map → chunk-4IVOHL32.js.map} +0 -0
  722. /package/dist/{chunk-NFJUBPIN.js.map → chunk-4LMY5I5E.js.map} +0 -0
  723. /package/dist/{chunk-ZOUWHGV3.js.map → chunk-4MGFUPQT.js.map} +0 -0
  724. /package/dist/{chunk-32MTYYGC.js.map → chunk-4PIKOJZ4.js.map} +0 -0
  725. /package/dist/{chunk-RMB4RTTM.js.map → chunk-4V7FNB7R.js.map} +0 -0
  726. /package/dist/{chunk-OFMDFN3U.js.map → chunk-4YMIQ5DM.js.map} +0 -0
  727. /package/dist/{chunk-CJMU3G2J.js.map → chunk-56MKBXSH.js.map} +0 -0
  728. /package/dist/{chunk-ATBT4RJZ.js.map → chunk-57C636A6.js.map} +0 -0
  729. /package/dist/{chunk-UHWHTNUS.js.map → chunk-5BW7NCM5.js.map} +0 -0
  730. /package/dist/{chunk-LG6DHNRD.js.map → chunk-5FA5S2YN.js.map} +0 -0
  731. /package/dist/{chunk-IQFUV3BA.js.map → chunk-5RHMLOIA.js.map} +0 -0
  732. /package/dist/{chunk-HFBME3C5.js.map → chunk-5SCZZFZR.js.map} +0 -0
  733. /package/dist/{chunk-QKDFD4VT.js.map → chunk-62NFZR52.js.map} +0 -0
  734. /package/dist/{chunk-3PT3SBJ7.js.map → chunk-65JHGT5F.js.map} +0 -0
  735. /package/dist/{chunk-H7ZN2GW7.js.map → chunk-67N6TH6E.js.map} +0 -0
  736. /package/dist/{chunk-INH2BDHV.js.map → chunk-6ANWFGLL.js.map} +0 -0
  737. /package/dist/{chunk-Q5BSNHN7.js.map → chunk-6M33XQLZ.js.map} +0 -0
  738. /package/dist/{chunk-IPS55KWK.js.map → chunk-6M7CMILP.js.map} +0 -0
  739. /package/dist/{chunk-X2R7QG5I.js.map → chunk-6MDBMCFK.js.map} +0 -0
  740. /package/dist/{chunk-PCONTSJJ.js.map → chunk-6V7D6GRX.js.map} +0 -0
  741. /package/dist/{chunk-DTKMBI7B.js.map → chunk-6YLAVHV4.js.map} +0 -0
  742. /package/dist/{chunk-BWSYSSF3.js.map → chunk-7A3G4W52.js.map} +0 -0
  743. /package/dist/{chunk-RXSGHPCR.js.map → chunk-7FOOLP5H.js.map} +0 -0
  744. /package/dist/{chunk-NJ6D37KV.js.map → chunk-7FWXG2KF.js.map} +0 -0
  745. /package/dist/{chunk-APMEXS3Y.js.map → chunk-7N4V3ARN.js.map} +0 -0
  746. /package/dist/{chunk-OIFBBDYX.js.map → chunk-7TSQNYQO.js.map} +0 -0
  747. /package/dist/{chunk-YD77RANW.js.map → chunk-7VN7LFBA.js.map} +0 -0
  748. /package/dist/{chunk-CKW267ZK.js.map → chunk-AJVYJZHI.js.map} +0 -0
  749. /package/dist/{chunk-EZOVSZ5B.js.map → chunk-ANNDLY3M.js.map} +0 -0
  750. /package/dist/{chunk-J2RRZZXC.js.map → chunk-APT5L7V5.js.map} +0 -0
  751. /package/dist/{chunk-ZVTJGWIV.js.map → chunk-AYRHW4DX.js.map} +0 -0
  752. /package/dist/{chunk-NLUZGT4U.js.map → chunk-AZ4LLAAJ.js.map} +0 -0
  753. /package/dist/{chunk-7DNQHMDO.js.map → chunk-B6IURHSZ.js.map} +0 -0
  754. /package/dist/{chunk-6VZYQC7T.js.map → chunk-BM4CGQED.js.map} +0 -0
  755. /package/dist/{chunk-JOPTI47I.js.map → chunk-BM4ZPBBT.js.map} +0 -0
  756. /package/dist/{chunk-VGSEI7PQ.js.map → chunk-BTIBFR5L.js.map} +0 -0
  757. /package/dist/{chunk-YXQ2NJHF.js.map → chunk-C423YJGN.js.map} +0 -0
  758. /package/dist/{chunk-E6D2Y5EK.js.map → chunk-CMN26J5Y.js.map} +0 -0
  759. /package/dist/{chunk-6SNRPCSK.js.map → chunk-CR4KC2K5.js.map} +0 -0
  760. /package/dist/{chunk-4WT4PV4M.js.map → chunk-CZ5ZL63A.js.map} +0 -0
  761. /package/dist/{chunk-BPYPUEM5.js.map → chunk-CZJLWCEG.js.map} +0 -0
  762. /package/dist/{chunk-XEUSTU7K.js.map → chunk-DIWC6AQL.js.map} +0 -0
  763. /package/dist/{chunk-LWAOL4BG.js.map → chunk-DO3UNZAU.js.map} +0 -0
  764. /package/dist/{chunk-GUROYOKQ.js.map → chunk-EAE5Z5HL.js.map} +0 -0
  765. /package/dist/{chunk-EYRSUVBC.js.map → chunk-ECZXTIDR.js.map} +0 -0
  766. /package/dist/{chunk-55E7GLVT.js.map → chunk-EDJDASXE.js.map} +0 -0
  767. /package/dist/{chunk-26ORCF6J.js.map → chunk-EEAQBPOW.js.map} +0 -0
  768. /package/dist/{chunk-DWZ7FLA7.js.map → chunk-FATRMNVN.js.map} +0 -0
  769. /package/dist/{chunk-C4NRFERD.js.map → chunk-FTCCYWF4.js.map} +0 -0
  770. /package/dist/{chunk-NR2HXHBR.js.map → chunk-G73SDZ3T.js.map} +0 -0
  771. /package/dist/{chunk-F65LT7XV.js.map → chunk-GCWF5AQE.js.map} +0 -0
  772. /package/dist/{chunk-X4GALW6I.js.map → chunk-GJKBWVU2.js.map} +0 -0
  773. /package/dist/{chunk-SHQWIDD5.js.map → chunk-GJQYM3PM.js.map} +0 -0
  774. /package/dist/{chunk-VNEEXUWA.js.map → chunk-GT7C6TSM.js.map} +0 -0
  775. /package/dist/{chunk-OHKEQ7QJ.js.map → chunk-GXEB6MJA.js.map} +0 -0
  776. /package/dist/{chunk-QNUWSXF2.js.map → chunk-H57ZS6W2.js.map} +0 -0
  777. /package/dist/{chunk-IASDP44E.js.map → chunk-HR7YTBR7.js.map} +0 -0
  778. /package/dist/{chunk-SZZLABMO.js.map → chunk-IDO4EV7T.js.map} +0 -0
  779. /package/dist/{chunk-SAIKHWH7.js.map → chunk-IFAEKIT2.js.map} +0 -0
  780. /package/dist/{chunk-QP3KK4KO.js.map → chunk-IGO5DC7D.js.map} +0 -0
  781. /package/dist/{chunk-ORIFMVN4.js.map → chunk-IM76SSXI.js.map} +0 -0
  782. /package/dist/{chunk-EATFKTO3.js.map → chunk-IOEF32HX.js.map} +0 -0
  783. /package/dist/{chunk-G3WUOPWE.js.map → chunk-IZBDSPTW.js.map} +0 -0
  784. /package/dist/{chunk-RRO2EOJB.js.map → chunk-JB67KPGM.js.map} +0 -0
  785. /package/dist/{chunk-RIA34EUT.js.map → chunk-JDY37EML.js.map} +0 -0
  786. /package/dist/{chunk-5ZOJLYD2.js.map → chunk-JE6RZ5L6.js.map} +0 -0
  787. /package/dist/{chunk-SMUZRLFZ.js.map → chunk-JGOXXKPY.js.map} +0 -0
  788. /package/dist/{chunk-7U36V4CU.js.map → chunk-JO5GSRYQ.js.map} +0 -0
  789. /package/dist/{chunk-DHQ6ASUD.js.map → chunk-JPNPXNFH.js.map} +0 -0
  790. /package/dist/{chunk-D5YGDCMP.js.map → chunk-JRHZZTVV.js.map} +0 -0
  791. /package/dist/{chunk-DVEYD27F.js.map → chunk-JXNT5TUP.js.map} +0 -0
  792. /package/dist/{chunk-4DUHJIR2.js.map → chunk-JYETSTOQ.js.map} +0 -0
  793. /package/dist/{chunk-FC74EAW4.js.map → chunk-JZJOAGBG.js.map} +0 -0
  794. /package/dist/{chunk-GLPHRHIT.js.map → chunk-K2XK45HG.js.map} +0 -0
  795. /package/dist/{chunk-SGV7QGYQ.js.map → chunk-KBOTNPYL.js.map} +0 -0
  796. /package/dist/{chunk-7YTLJUBX.js.map → chunk-KJHQYPKT.js.map} +0 -0
  797. /package/dist/{chunk-V3RVRZAU.js.map → chunk-KMUSTQA6.js.map} +0 -0
  798. /package/dist/{chunk-HSVNFMXY.js.map → chunk-LB2G6SD6.js.map} +0 -0
  799. /package/dist/{chunk-6PSAPCTE.js.map → chunk-LE7IHEU4.js.map} +0 -0
  800. /package/dist/{chunk-67L5CMXP.js.map → chunk-LLR42S6B.js.map} +0 -0
  801. /package/dist/{chunk-RWIBPIPD.js.map → chunk-LNOYDMFD.js.map} +0 -0
  802. /package/dist/{chunk-SFAP5EH5.js.map → chunk-LUMF63BM.js.map} +0 -0
  803. /package/dist/{chunk-XPPEUGHG.js.map → chunk-LVRH5CGR.js.map} +0 -0
  804. /package/dist/{chunk-WVJI3Z4P.js.map → chunk-LWLVWM34.js.map} +0 -0
  805. /package/dist/{chunk-RFZU5BTG.js.map → chunk-LYSSO6WC.js.map} +0 -0
  806. /package/dist/{chunk-IAVAZ36T.js.map → chunk-LZHXF66R.js.map} +0 -0
  807. /package/dist/{chunk-CIVLXOLG.js.map → chunk-MDR4WJOV.js.map} +0 -0
  808. /package/dist/{chunk-EJJRJYB5.js.map → chunk-MG73KW54.js.map} +0 -0
  809. /package/dist/{chunk-MYUZPUXQ.js.map → chunk-N74IYYRU.js.map} +0 -0
  810. /package/dist/{chunk-3BAFJMBH.js.map → chunk-NKIAP6ZL.js.map} +0 -0
  811. /package/dist/{chunk-D6P5PSHU.js.map → chunk-NNAACCN2.js.map} +0 -0
  812. /package/dist/{chunk-CATLG2RT.js.map → chunk-NU3EQX2L.js.map} +0 -0
  813. /package/dist/{chunk-H35CQ6DF.js.map → chunk-OFVYNUYV.js.map} +0 -0
  814. /package/dist/{chunk-2YOQLBEX.js.map → chunk-OZZNC4YU.js.map} +0 -0
  815. /package/dist/{chunk-C2ZNAQMO.js.map → chunk-PCRKQ2M7.js.map} +0 -0
  816. /package/dist/{chunk-35GWNOLB.js.map → chunk-PH5XJGKJ.js.map} +0 -0
  817. /package/dist/{chunk-PEMZ2ABQ.js.map → chunk-PI5G6N6Q.js.map} +0 -0
  818. /package/dist/{chunk-ETU4LNU7.js.map → chunk-PLEZDLVU.js.map} +0 -0
  819. /package/dist/{chunk-QPMLACIK.js.map → chunk-PPTF5X7K.js.map} +0 -0
  820. /package/dist/{chunk-AGYGNNOM.js.map → chunk-PQECNGDE.js.map} +0 -0
  821. /package/dist/{chunk-IPE5FFFD.js.map → chunk-PUBPZOQJ.js.map} +0 -0
  822. /package/dist/{chunk-4LDRYLE2.js.map → chunk-QNHNFU7G.js.map} +0 -0
  823. /package/dist/{chunk-2N2KNXTF.js.map → chunk-QWCMLOYC.js.map} +0 -0
  824. /package/dist/{chunk-WBKWIFXA.js.map → chunk-QYNCPS5W.js.map} +0 -0
  825. /package/dist/{chunk-5YOFMMK3.js.map → chunk-R2G4MVPY.js.map} +0 -0
  826. /package/dist/{chunk-MCAXIKQD.js.map → chunk-R5XB2SCN.js.map} +0 -0
  827. /package/dist/{chunk-RCI6KVN6.js.map → chunk-R67J6JKT.js.map} +0 -0
  828. /package/dist/{chunk-GOWBYHYW.js.map → chunk-R6SBP5M5.js.map} +0 -0
  829. /package/dist/{chunk-GKGA2ZCW.js.map → chunk-RAWQMBX6.js.map} +0 -0
  830. /package/dist/{chunk-6BGS5FND.js.map → chunk-RGKGBYT2.js.map} +0 -0
  831. /package/dist/{chunk-A5FIYKAN.js.map → chunk-RGMSTQ2J.js.map} +0 -0
  832. /package/dist/{chunk-R7KR5FYJ.js.map → chunk-RJXRZW66.js.map} +0 -0
  833. /package/dist/{chunk-BRUJC7OG.js.map → chunk-RPMAWM6F.js.map} +0 -0
  834. /package/dist/{chunk-UEJQQVP2.js.map → chunk-RRX6ZTNX.js.map} +0 -0
  835. /package/dist/{chunk-OL7UQMBI.js.map → chunk-RUEKY3VR.js.map} +0 -0
  836. /package/dist/{chunk-TLY2QMU5.js.map → chunk-SVFA75FO.js.map} +0 -0
  837. /package/dist/{chunk-WI6GD4MV.js.map → chunk-TBRAZK3Y.js.map} +0 -0
  838. /package/dist/{chunk-DBXGRZBJ.js.map → chunk-THM3HCMU.js.map} +0 -0
  839. /package/dist/{chunk-5UGXAAZG.js.map → chunk-TJT4NSFN.js.map} +0 -0
  840. /package/dist/{chunk-5EQFAFR3.js.map → chunk-TK36COCP.js.map} +0 -0
  841. /package/dist/{chunk-P4BZ7YE6.js.map → chunk-TTVKL3RD.js.map} +0 -0
  842. /package/dist/{chunk-MRGPVPQC.js.map → chunk-TUYN6XZI.js.map} +0 -0
  843. /package/dist/{chunk-BGYLL467.js.map → chunk-TXHJX2NG.js.map} +0 -0
  844. /package/dist/{chunk-VUFMV5Q5.js.map → chunk-U3PPLAFB.js.map} +0 -0
  845. /package/dist/{chunk-WVQ47UTI.js.map → chunk-UEWIIYGA.js.map} +0 -0
  846. /package/dist/{chunk-SDSAQ5YS.js.map → chunk-UJE7IKQ4.js.map} +0 -0
  847. /package/dist/{chunk-DX36KZUV.js.map → chunk-UMQN3BVV.js.map} +0 -0
  848. /package/dist/{chunk-WCLWFN3F.js.map → chunk-URWNRC2P.js.map} +0 -0
  849. /package/dist/{chunk-Y2CSBXQT.js.map → chunk-VF2XC76U.js.map} +0 -0
  850. /package/dist/{chunk-KJYD5OJ4.js.map → chunk-VLVMJDGD.js.map} +0 -0
  851. /package/dist/{chunk-V6YZ3PL5.js.map → chunk-VQBINZB7.js.map} +0 -0
  852. /package/dist/{chunk-2SWQ6HIK.js.map → chunk-W3FAKT3D.js.map} +0 -0
  853. /package/dist/{chunk-AFZUPCBK.js.map → chunk-W7HSGZGW.js.map} +0 -0
  854. /package/dist/{chunk-DF2FFYZ7.js.map → chunk-WJH743NG.js.map} +0 -0
  855. /package/dist/{chunk-F22WT7UX.js.map → chunk-X2QLWUND.js.map} +0 -0
  856. /package/dist/{chunk-ZCNCQGWK.js.map → chunk-X4XYUNRL.js.map} +0 -0
  857. /package/dist/{chunk-RQFBLYYH.js.map → chunk-XI2BXMBX.js.map} +0 -0
  858. /package/dist/{chunk-UCTJJYVC.js.map → chunk-XPOQZI5X.js.map} +0 -0
  859. /package/dist/{chunk-CPA2YRVZ.js.map → chunk-XYXTEGIM.js.map} +0 -0
  860. /package/dist/{chunk-6SK3MTYJ.js.map → chunk-Y5UCOBQN.js.map} +0 -0
  861. /package/dist/{chunk-3ZGQSWHJ.js.map → chunk-Y6JDIPV7.js.map} +0 -0
  862. /package/dist/{chunk-I2IZ53QS.js.map → chunk-Y7ZS724A.js.map} +0 -0
  863. /package/dist/{chunk-O6DRUOUF.js.map → chunk-YESTO24O.js.map} +0 -0
  864. /package/dist/{chunk-GLWW2XCP.js.map → chunk-YJ4HM25H.js.map} +0 -0
  865. /package/dist/{chunk-DORPR2YP.js.map → chunk-ZA4U5GDU.js.map} +0 -0
  866. /package/dist/{chunk-2DFH74T4.js.map → chunk-ZB6BX4GO.js.map} +0 -0
  867. /package/dist/{chunk-7AR2R7TV.js.map → chunk-ZDWU52DJ.js.map} +0 -0
  868. /package/dist/{chunk-H2RHA73H.js.map → chunk-ZNJ4RLZT.js.map} +0 -0
  869. /package/dist/{chunk-M7E66OSC.js.map → chunk-ZPIMPOHV.js.map} +0 -0
  870. /package/dist/native/chunks/{chunk-LB65S6C7.js.map → chunk-4KWFRDI2.js.map} +0 -0
  871. /package/dist/native/chunks/{chunk-S5SLTMPB.js.map → chunk-5IASLIBI.js.map} +0 -0
  872. /package/dist/native/chunks/{chunk-IVNAQJY6.js.map → chunk-GUBTMR2K.js.map} +0 -0
  873. /package/dist/native/chunks/{chunk-VAD5YVIZ.js.map → chunk-OI57L6WL.js.map} +0 -0
  874. /package/dist/native/chunks/{chunk-7UEJ2FMQ.js.map → chunk-X6RQGKGF.js.map} +0 -0
@@ -1,20 +1,21 @@
1
1
  import {
2
2
  Skeleton
3
- } from "../chunks/chunk-LB65S6C7.js";
3
+ } from "../chunks/chunk-4KWFRDI2.js";
4
4
  import "../chunks/chunk-MLQIOKQZ.js";
5
5
  import {
6
6
  webKeyDown
7
7
  } from "../chunks/chunk-MJVSQXOD.js";
8
8
  import {
9
9
  EmptyState
10
- } from "../chunks/chunk-VAD5YVIZ.js";
11
- import "../chunks/chunk-T3TYQMAH.js";
10
+ } from "../chunks/chunk-OI57L6WL.js";
11
+ import "../chunks/chunk-KIG4KY4W.js";
12
+ import "../chunks/chunk-IMGBBIMT.js";
12
13
  import {
13
14
  webAria,
14
15
  webRole
15
16
  } from "../chunks/chunk-DN73KYIZ.js";
16
17
  import "../chunks/chunk-5GJ5OG5R.js";
17
- import "../chunks/chunk-S5SLTMPB.js";
18
+ import "../chunks/chunk-5IASLIBI.js";
18
19
  import {
19
20
  MUI_FONT_WEIGHT_MEDIUM,
20
21
  muiTypeStyle
@@ -23,8 +24,8 @@ import "../chunks/chunk-5WLOVHKK.js";
23
24
  import "../chunks/chunk-AR5O4BEY.js";
24
25
  import {
25
26
  useUiTheme
26
- } from "../chunks/chunk-7UEJ2FMQ.js";
27
- import "../chunks/chunk-V72V2Q45.js";
27
+ } from "../chunks/chunk-X6RQGKGF.js";
28
+ import "../chunks/chunk-R5XVZRDD.js";
28
29
 
29
30
  // src/components/data-display/FleetMap/FleetMap.native.tsx
30
31
  import * as React3 from "react";
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/data-display/FleetMap/FleetMap.native.tsx","../../../src/components/data-display/FleetMap/FleetMap.hooks.ts","../../../src/components/data-display/FleetMap/FleetMap.helpers.ts","../../../src/components/data-display/FleetMap/FleetMap.metrics.ts","../../../src/components/data-display/FleetMap/FleetRoster.native.tsx"],"sourcesContent":["import * as React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { EmptyState } from '../EmptyState/EmptyState.native';\n\nimport { useFleetMap } from './FleetMap.hooks';\nimport {\n FLEET_DEFAULT_LAGGING_AFTER_SECONDS,\n FLEET_DEFAULT_STALE_AFTER_SECONDS,\n FLEET_PANEL,\n} from './FleetMap.metrics';\nimport type { FleetMapProps } from './FleetMap.types.native';\nimport { FleetRoster } from './FleetRoster.native';\nimport { webAria, webRole } from '../../../platform/aria';\nimport { useUiTheme } from '../../../provider/use-ui-theme.native';\nimport { MUI_FONT_WEIGHT_MEDIUM, muiTypeStyle } from '../../../tokens/mui-type';\n\n/**\n * The reload announcement, and nothing else.\n *\n * A busy region marks itself stale for assistive technology but UTTERS nothing,\n * and the skeletons beside it are hidden from the reader — so a screen-reader\n * user got silence while the roster reloaded. This is the utterance.\n *\n * Optional by design: the sentence is in the reader's language, which only the\n * caller knows, and inventing an English one in a component whose whole premise\n * is that every word arrives through `copy` would be the bug it exists to\n * avoid. No `copy.loading`, no region.\n *\n * ## The node outlives the text, and that is the whole trick\n *\n * A live region has to exist BEFORE its content changes; a reader watches an\n * existing region for mutations rather than announcing one that appears already\n * populated. Mounting region-and-text together in a single commit is the classic\n * silent case — it satisfies a query while announcing nothing. So the region\n * mounts as soon as the caller offers the copy and merely EMPTIES when idle.\n *\n * `role=\"status\"` and `aria-live` reach the DOM through react-native-web; on a\n * device the announcement is made by `AccessibilityInfo` or not at all, which\n * is recorded in `NATIVE-NOTES.md` rather than papered over here.\n */\nfunction FleetStatus({\n announcement,\n loading,\n testId,\n}: {\n announcement: string | undefined;\n loading: boolean;\n testId: string;\n}): React.JSX.Element | null {\n // No copy, no region at all — the caller has not asked for an announcement.\n if (announcement === undefined) return null;\n return (\n <View\n {...webRole('status')}\n aria-live=\"polite\"\n accessibilityLiveRegion=\"polite\"\n testID={`${testId}-status`}\n style={styles.srOnly}\n >\n <Text>{loading ? announcement : ''}</Text>\n </View>\n );\n}\n\n/**\n * FleetMap on React Native — where a set of tracked units is right now.\n *\n * Product-free by construction: it draws a labelled row with a freshness, and\n * every word — the heading, the three freshness states, how a duration and a\n * distance are written — arrives through `copy`. Couriers, service vans and\n * field engineers are all the same list.\n *\n * ## What this renderer does NOT draw, and why\n *\n * There is no map. `MapPreview` — 2,200 lines that project, tile and decorate\n * their own surface — has no React Native build, and porting it is its own\n * change with its own consumers. What that costs is smaller than it sounds,\n * because the web half already calls this list \"the accessible representation,\n * not a sidebar\": every fact a pin carries — who, how recently, how precisely,\n * what they are carrying — is on a row, in an order the map cannot express. So\n * a native board is the half a screen reader was always given, and a device\n * gets the same answers a dispatcher asks for. The gap is stated in\n * `NATIVE-NOTES.md` rather than claimed away, and it is where the map goes when\n * `MapPreview` is ported.\n *\n * The consequence for the API is one line in `FleetMap.types.native.ts`: the\n * native copy interface has no `map` and no `mapLabel`, because a caller should\n * not be asked to name controls nothing renders.\n */\nexport const FleetMap: React.FC<FleetMapProps> = React.memo(\n ({\n units,\n copy,\n // NO default. `undefined` is what tells the hook the caller does not own\n // the selection; defaulting it to `null` made every render look controlled\n // and the uncontrolled path unreachable.\n selectedId,\n onSelect,\n laggingAfterSeconds = FLEET_DEFAULT_LAGGING_AFTER_SECONDS,\n staleAfterSeconds = FLEET_DEFAULT_STALE_AFTER_SECONDS,\n loading = false,\n maxHeight,\n style,\n dataTestId,\n }) => {\n const theme = useUiTheme();\n const testId = dataTestId ?? 'fleet-map';\n const { ordered, active, select, onKeyDown } = useFleetMap(units, selectedId, onSelect);\n\n return (\n <View\n {...webRole('region')}\n accessibilityLabel={copy.title}\n testID={testId}\n style={[styles.panel, { gap: theme.spacing(FLEET_PANEL.gapUnits) }, style]}\n >\n <Text\n {...webRole('heading')}\n {...webAria({ 'aria-level': 2 })}\n testID={`${testId}-title`}\n style={[\n muiTypeStyle(theme, 'body1'),\n { color: theme.palette.text.primary, fontWeight: `${MUI_FONT_WEIGHT_MEDIUM}` },\n ]}\n >\n {copy.title}\n </Text>\n\n <FleetStatus announcement={copy.loading} loading={loading} testId={testId} />\n\n {!loading && ordered.length === 0 ? (\n <EmptyState\n variant=\"minimal\"\n title={copy.emptyTitle}\n description={copy.emptyDescription}\n dataTestId={`${testId}-empty`}\n />\n ) : (\n /* The busy marker belongs on the BODY and never on the panel root —\n the live region announcing the reload is a sibling above, and a\n live region inside a busy subtree is exactly what busy tells\n assistive technology to hold back. Marking the root would silence\n the announcement for the whole of the only window in which it has\n anything to say. The web half splits them the same way, and the\n wrapper is also what the shared loading stories address. */\n <View\n aria-busy={loading || undefined}\n accessibilityState={{ busy: loading }}\n testID={`${testId}-body`}\n style={styles.body}\n >\n <FleetRoster\n units={ordered}\n copy={copy}\n selectedId={active}\n onSelect={select}\n laggingAfterSeconds={laggingAfterSeconds}\n staleAfterSeconds={staleAfterSeconds}\n loading={loading}\n maxHeight={maxHeight}\n testId={testId}\n onKeyDown={onKeyDown}\n />\n </View>\n )}\n </View>\n );\n },\n);\n\nFleetMap.displayName = 'FleetMap';\n\nconst styles = StyleSheet.create({\n body: { flexShrink: 1, minWidth: 0 },\n panel: { flexDirection: 'column', minWidth: 0 },\n /**\n * Off screen but still in the tree, which is what a live region needs. A\n * `display: 'none'` view is not announced, and a zero-size one clips its text\n * on some readers.\n */\n srOnly: { height: 1, opacity: 0, overflow: 'hidden', position: 'absolute', width: 1 },\n});\n\nexport default FleetMap;\n","import React from 'react';\n\nimport { mapCentre, nextSelection, rosterOrder, type LatLng } from './FleetMap.helpers';\nimport type { FleetUnit } from './FleetMap.base';\n\n/**\n * The half of a key event this hook reads, spelled structurally.\n *\n * NOT `React.KeyboardEvent<HTMLDivElement>`: the native type program is checked\n * without the DOM lib (`tsconfig.native.json`), so a DOM type here would put\n * the whole hook out of reach of the React Native renderer that shares it. A\n * DOM event satisfies this shape, and a handler taking the wider type is\n * assignable wherever the narrower one is expected — so the web passes its own\n * `onKeyDown` unchanged.\n */\nexport interface FleetKeyEvent {\n key: string;\n altKey?: boolean;\n ctrlKey?: boolean;\n metaKey?: boolean;\n shiftKey?: boolean;\n preventDefault: () => void;\n}\n\n/**\n * Everything the board derives from its props, in one hook.\n *\n * Split out of the component so the component is layout and nothing else.\n *\n * The memos are honest about what they buy, which is less than it looks. `units`\n * arrives as a fresh array on every poll, so `ordered` and `markers` are\n * recomputed on every poll whatever these do — a new array is a new identity.\n * What they buy is stability across the renders a poll does NOT cause: a parent\n * re-render, a selection change (which re-runs `centre` but not `ordered`), a\n * theme flip. Sorting a fleet is cheap either way; this is tidiness, not a\n * measured win, and it should not be read as one.\n *\n * `centre` is the exception, and there it is load-bearing rather than tidy —\n * see {@link useFleetMap}.\n *\n * ## Selection works with, without, or half-way through a handler\n *\n * `selectedId` and `onSelect` are both optional, so all four combinations\n * arrive. Left purely controlled, the two useful ones broke: with neither prop\n * the roster was a listbox that answered nothing, and arrowing it called\n * `preventDefault` before a no-op `select`, so the keys did not move a\n * selection AND did not scroll the page either.\n *\n * So the hook keeps its own selection and defers to `selectedId` only when the\n * caller passes one — the ordinary controlled/uncontrolled split, the same one\n * an `<input>` makes. `onSelect` still fires either way, so a consumer can\n * observe the selection without owning it.\n */\n\n/** One pin, in the shape `MapPreview` takes. */\nexport interface FleetMarker {\n position: LatLng;\n title: string;\n onClick: () => void;\n}\n\nexport interface FleetMapState {\n /** The units, freshest first — see {@link rosterOrder}. */\n ordered: FleetUnit[];\n /**\n * The selection in force — the caller's when they own it, this hook's when\n * they do not. Everything downstream reads THIS and never the raw prop.\n */\n active: string | null;\n /** Where the map points, or `null` when there is nothing to show. */\n centre: LatLng | null;\n select: (id: string) => void;\n markers: FleetMarker[];\n onKeyDown: (event: FleetKeyEvent) => void;\n}\n\n/** Which way an arrow moves the selection, or `0` when it is not ours. */\nfunction stepFor(event: FleetKeyEvent): 1 | -1 | 0 {\n // A modified arrow is the PAGE's shortcut, not the roster's: Cmd+Down is\n // \"scroll to the end of the document\" on macOS, and Shift+Arrow extends a\n // selection. Capturing them would take a browser gesture away.\n if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return 0;\n if (event.key === 'ArrowDown') return 1;\n if (event.key === 'ArrowUp') return -1;\n return 0;\n}\n\n/**\n * Who owns the selection, decided ONCE on the first render.\n *\n * Exactly as React decides it for an `<input>`, and for the same reason.\n * `selectedId` is typed `string | null | undefined`, so `useState<string>()` —\n * the natural shape for a caller — hands us `undefined` on the first render and\n * again on every reset. Re-deriving the mode from the prop each time would make\n * the component change its own semantics mid-life: it starts uncontrolled,\n * silently becomes controlled the moment the caller's `onSelect` writes a value\n * back, and then silently un-becomes it when they clear — resurrecting whatever\n * was selected before the hand-off.\n *\n * Latched, `undefined` is unambiguous within each mode: to a controlled board it\n * is \"nobody is selected\", so clearing the caller's state clears the roster; to\n * an uncontrolled one it is simply the prop staying absent. A caller who wants\n * control passes `string | null` from the first render.\n */\nfunction useSelection(\n selectedId: string | null | undefined,\n onSelect: ((id: string) => void) | undefined,\n): { active: string | null; select: (id: string) => void; controlled: boolean } {\n const controlledRef = React.useRef(selectedId !== undefined);\n const controlled = controlledRef.current;\n const [own, setOwn] = React.useState<string | null>(null);\n\n const select = React.useCallback(\n (id: string) => {\n if (!controlled) setOwn(id);\n onSelect?.(id);\n },\n [controlled, onSelect],\n );\n\n return { active: controlled ? (selectedId ?? null) : own, select, controlled };\n}\n\nexport function useFleetMap(\n units: readonly FleetUnit[],\n selectedId: string | null | undefined,\n onSelect: ((id: string) => void) | undefined,\n): FleetMapState {\n const ordered = React.useMemo(() => rosterOrder(units), [units]);\n const { active, select, controlled } = useSelection(selectedId, onSelect);\n\n // Memoised on the COORDINATES and not the object, because `mapCentre` builds\n // a fresh literal every call and `MapPreview` re-centres from an effect keyed\n // on `center`'s identity. A poll that changes nothing would otherwise hand it\n // a new object, and the map would jump back to the centroid — throwing away a\n // pan the dispatcher had just made, on a timer, for as long as they watch it.\n //\n // ROUNDED, because keying on the raw numbers was not enough. `mapCentre`\n // sums over `ordered`, and floating-point addition is not associative — so\n // re-sorting the SAME coordinates can change the centroid's last bit.\n // `rosterOrder` sorts on `staleSeconds`, which moves on every poll, so rank\n // swaps are the ordinary case for a fleet that is standing still: measured\n // over 20k random three-rider fleets, a single adjacent swap changed the\n // centroid 17% of the time. Six decimals is ~11cm, far finer than a map\n // centre resolves and far coarser than the noise.\n const raw = mapCentre(ordered, active);\n const lat = raw === null ? null : Math.round(raw.lat * 1e6) / 1e6;\n const lng = raw === null ? null : Math.round(raw.lng * 1e6) / 1e6;\n const centre = React.useMemo(\n () => (lat === null || lng === null ? null : { lat, lng }),\n [lat, lng],\n );\n\n const onKeyDown = React.useCallback(\n (event: FleetKeyEvent) => {\n const step = stepFor(event);\n if (step === 0) return;\n // Nothing can move a CONTROLLED selection without a handler, so the keys\n // belong to the page. Swallowing them there left a keyboard user unable to\n // move the selection and unable to scroll past the roster.\n if (controlled && !onSelect) return;\n const next = nextSelection(ordered, active, step);\n // `preventDefault` only once a move is certain, so the page still scrolls\n // with the arrow keys when the list is empty and there is nothing to move.\n if (next === null) return;\n event.preventDefault();\n select(next);\n },\n [ordered, active, select, controlled, onSelect],\n );\n\n const markers = React.useMemo(\n () =>\n ordered.map((unit) => ({\n position: { lat: unit.latitude, lng: unit.longitude },\n title: unit.label,\n onClick: () => select(unit.id),\n })),\n [ordered, select],\n );\n\n return { ordered, active, centre, select, markers, onKeyDown };\n}\n","import type { FleetFreshness, FleetUnit } from './FleetMap.base';\n\n/**\n * How current a fix is, on the two thresholds the caller supplied.\n *\n * Inclusive at both boundaries in the direction that reads better on a screen:\n * a unit exactly at the lagging threshold is already lagging. A boundary has to\n * fall somewhere, and the conservative side is the one that does not tell a\n * dispatcher somebody is live when they are on the edge of not being.\n */\nexport function freshnessOf(\n staleSeconds: number,\n laggingAfterSeconds: number,\n staleAfterSeconds: number,\n): FleetFreshness {\n if (staleSeconds >= staleAfterSeconds) return 'stale';\n if (staleSeconds >= laggingAfterSeconds) return 'lagging';\n return 'live';\n}\n\n/** A latitude/longitude pair, as the map wants its centre. */\nexport interface LatLng {\n lat: number;\n lng: number;\n}\n\n/**\n * Where the map should point.\n *\n * The selected unit when there is one — a dispatcher who clicked a name is\n * asking to look at them. Otherwise the fleet's own centroid, which keeps\n * everybody in frame without the caller having to compute a bounding box.\n *\n * `null` for an empty fleet rather than a coordinate: (0, 0) is a real place in\n * the Atlantic, and a map that quietly sails there is worse than one that says\n * it has nothing to show.\n */\nexport function mapCentre(\n units: readonly FleetUnit[],\n selectedId?: string | null,\n): LatLng | null {\n if (units.length === 0) return null;\n const selected = selectedId ? units.find((unit) => unit.id === selectedId) : undefined;\n if (selected) return { lat: selected.latitude, lng: selected.longitude };\n const sum = units.reduce(\n (acc, unit) => ({ lat: acc.lat + unit.latitude, lng: acc.lng + unit.longitude }),\n { lat: 0, lng: 0 },\n );\n return { lat: sum.lat / units.length, lng: sum.lng / units.length };\n}\n\n/**\n * The roster's order: freshest first, then alphabetically.\n *\n * Not the caller's order, deliberately. The one question this panel answers is\n * *who is moving right now*, and a list sorted by anything else buries the\n * answer under whoever happens to sort first. Ties break on the label so the\n * list does not reshuffle between polls when two units share a staleness.\n */\nexport function rosterOrder(units: readonly FleetUnit[]): FleetUnit[] {\n return [...units].sort(\n (a, b) => a.staleSeconds - b.staleSeconds || a.label.localeCompare(b.label),\n );\n}\n\n/**\n * Move the selection by one row, wrapping at both ends.\n *\n * Wrapping rather than stopping: this is a short list a dispatcher arrows\n * through repeatedly, and a selection that sticks at the last row makes the\n * keyboard path feel broken next to the mouse one.\n */\nexport function nextSelection(\n units: readonly FleetUnit[],\n currentId: string | null | undefined,\n step: 1 | -1,\n): string | null {\n if (units.length === 0) return null;\n const index = units.findIndex((unit) => unit.id === currentId);\n // Nothing selected: Down opens at the top and Up opens at the bottom, which\n // is what every listbox in the house does.\n if (index === -1) return (step === 1 ? units[0] : units[units.length - 1])?.id ?? null;\n const next = (index + step + units.length) % units.length;\n return units[next]?.id ?? null;\n}\n","/**\n * THE NUMBERS BOTH `FleetMap` RENDERERS DRAW WITH.\n *\n * `FleetRoster.tsx` / `FleetMap.tsx` (web, MUI `sx`) and `FleetRoster.native.tsx`\n * / `FleetMap.native.tsx` (React Native) read this one table. The web hands the\n * spacing UNITS to `theme.spacing()` and the radius MULTIPLES to `sx`; native\n * multiplies the units by the theme's own spacing step and the multiples by\n * `shape.borderRadius`.\n *\n * Nothing here imports a renderer, a theme or a colour: a freshness dot's\n * COLOUR is the theme's (`success.main`, `warning.main`, `text.disabled`), and\n * the two sides reach the same palette through different doors.\n *\n * ## Why the radii are MULTIPLES and never pixels\n *\n * MUI's `sx` reads a bare number for `borderRadius` as a multiple of\n * `theme.shape.borderRadius`, so a value that already had the theme's radius\n * divided out of it is applied twice. Measured: `theme.shape.borderRadius / 4`\n * drew 4px on the default theme — which is why it looked right — and 36px on a\n * host that sets its own radius to 12. In a package whose whole premise is\n * being re-themed, only the multiple is portable, and it is the multiple that\n * both renderers store here.\n */\n\n/** `theme.spacing(n)` for the panel's own stack. */\nexport const FLEET_PANEL = {\n /** Between the heading, the status region and the body. */\n gapUnits: 1.5,\n} as const;\n\n/** The roster list box. */\nexport const FLEET_ROSTER = {\n /** Between rows. */\n gapUnits: 0.5,\n /** `:focus-visible` ring on the web; a device has no focus ring to draw. */\n focusRingWidth: 2,\n focusRingOffset: 2,\n} as const;\n\n/** One roster row. */\nexport const FLEET_ROW = {\n /** Between the dot, the text block and the badge. */\n gapUnits: 1.5,\n /** `theme.spacing(y, x)`. */\n paddingYUnits: 1,\n paddingXUnits: 1.5,\n /** A MULTIPLE of `theme.shape.borderRadius` — see the note above. */\n radiusMultiple: 1,\n} as const;\n\n/**\n * The freshness dot.\n *\n * A perfect circle, so the radius is half the box on both sides rather than\n * the web's `50%`: React Native resolves a percentage radius against the box\n * it is given, and a square box makes the two spellings agree.\n */\nexport const FLEET_DOT = {\n size: 10,\n} as const;\n\n/** What stands in for the roster before any unit has landed. */\nexport const FLEET_SKELETON = {\n /** Three bars, the height of a row with its padding. */\n rows: 3,\n height: 44,\n /** A MULTIPLE, for the same reason the row's is. */\n radiusMultiple: 1,\n gapUnits: 1,\n} as const;\n\n/**\n * How long a fix stays `live`, and then `lagging`, when the caller says nothing.\n *\n * Ninety seconds and five minutes: sized for a phone reporting every twenty\n * seconds, which is the densest cadence a battery tolerates all day. They are\n * DEFAULTS and not a rule — a fleet on five-minute trackers passes its own, and\n * the props exist so it can.\n */\nexport const FLEET_DEFAULT_LAGGING_AFTER_SECONDS = 90;\nexport const FLEET_DEFAULT_STALE_AFTER_SECONDS = 300;\n","import * as React from 'react';\nimport {\n Pressable,\n ScrollView,\n StyleSheet,\n Text,\n View,\n type LayoutChangeEvent,\n type NativeScrollEvent,\n type NativeSyntheticEvent,\n} from 'react-native';\n\nimport { Skeleton } from '../../layout/Skeleton/Skeleton.native';\n\nimport { freshnessOf } from './FleetMap.helpers';\nimport type { FleetKeyEvent } from './FleetMap.hooks';\nimport { FLEET_DOT, FLEET_ROSTER, FLEET_ROW, FLEET_SKELETON } from './FleetMap.metrics';\nimport type { FleetFreshness, FleetMapCopy, FleetUnit } from './FleetMap.types.native';\nimport { webAria, webRole } from '../../../platform/aria';\nimport { webKeyDown } from '../../../platform/web-keys';\nimport { useUiTheme } from '../../../provider/use-ui-theme.native';\nimport { muiTypeStyle } from '../../../tokens/mui-type';\nimport type { UiTheme } from '../../../tokens/theme';\n\n/**\n * The roster — which on React Native is the WHOLE component, not half of it.\n *\n * On the web this list sits beside a map and carries the information a picture\n * cannot give a screen reader. Here there is no map to sit beside: `MapPreview`\n * has no React Native build, so the native `FleetMap` renders this and says so\n * in `NATIVE-NOTES.md`. That is a smaller change than it sounds, because the\n * web half already treats this list as the component's real content — \"the\n * accessible representation, not a sidebar\" — and every fact a pin carries is\n * on a row here.\n */\n\n/**\n * `data-freshness`, as something JSX can spread onto a react-native element.\n *\n * Through `dataSet` and NOT as a bare `data-freshness` prop: react-native-web\n * drops unknown props rather than forwarding them, and special-cases only\n * `data-testid`. Measured — the attribute was simply absent from the row, so\n * the shared freshness stories read `null`. `dataSet` is rn-web's documented\n * channel for custom data attributes and renders `data-freshness`; React Native\n * ignores it on a device, which is the same trade `webRole` and `webAria` make.\n *\n * It is not decoration: the SHARED stories read this attribute to assert which\n * threshold a row landed on, so without it they cannot run here at all.\n */\nfunction webDataFreshness(freshness: FleetFreshness): object {\n return { dataSet: { freshness } };\n}\n\n/** Each freshness draws from the semantic palette, never a hardcoded hex. */\nfunction freshnessColor(freshness: FleetFreshness, theme: UiTheme): string {\n if (freshness === 'live') return theme.palette.success.main;\n if (freshness === 'lagging') return theme.palette.warning.main;\n return theme.palette.text.disabled;\n}\n\n/** Where each row sits inside the scrolling content, and what is on screen. */\ninterface RosterGeometry {\n rows: Map<string, { y: number; height: number }>;\n offset: number;\n viewport: number;\n}\n\n/**\n * Keep the selected row visible INSIDE the roster — the same arithmetic the web\n * does with `scrollTop`, expressed in the only terms React Native has.\n *\n * The web reads `box.offsetTop - list.offsetTop` against `list.scrollTop` and\n * `list.clientHeight`. None of those exist here, so the three numbers are\n * gathered as they arrive: a row's `onLayout` gives its `y` inside the content\n * container (already relative to the list, which is what the web computes by\n * subtraction), the `ScrollView`'s own `onLayout` gives the viewport height,\n * and `onScroll` gives the offset. The comparison below is then line-for-line\n * the web's.\n *\n * `scrollTo` rather than react-native's `scrollToEnd`/`ScrollView.scrollIntoView`\n * for the same reason the web refuses `scrollIntoView({ block: 'nearest' })`:\n * this must move THIS list and nothing else. A native `ScrollView` cannot walk\n * its ancestors, so the hazard is smaller here — but the arithmetic is shared,\n * and two renderers agreeing by construction beats two agreeing by coincidence.\n *\n * Watches `position` as well as the id, because the roster re-sorts on every\n * poll: a rider who stays selected while their staleness moves them down the\n * list would otherwise slide out of view with the effect never re-running.\n */\nfunction useKeptInView(\n scroll: React.RefObject<ScrollView | null>,\n geometry: React.RefObject<RosterGeometry>,\n activeId: string | null,\n position: number,\n): void {\n React.useEffect(() => {\n if (activeId === null) return;\n const { rows, offset, viewport } = geometry.current;\n const row = rows.get(activeId);\n // Nothing has laid out yet on the first commit; the next poll re-runs this.\n if (!row || viewport === 0) return;\n if (row.y < offset) {\n scroll.current?.scrollTo({ y: row.y, animated: false });\n } else if (row.y + row.height > offset + viewport) {\n scroll.current?.scrollTo({ y: row.y + row.height - viewport, animated: false });\n }\n }, [scroll, geometry, activeId, position]);\n}\n\n/**\n * A row's two lines of text — the name, and the one-line summary under it.\n *\n * Split out of {@link FleetRow} to keep that function under the size gate, and\n * the seam is the natural one: everything here is READ, nothing is interactive.\n */\nfunction RowText({\n unit,\n copy,\n freshness,\n testId,\n}: Pick<RowProps, 'unit' | 'copy' | 'freshness' | 'testId'>): React.JSX.Element {\n const theme = useUiTheme();\n\n // Dropped rather than rendered empty: a phone that reports no accuracy radius\n // would otherwise print a trailing separator with nothing after it.\n const meta = [\n copy.freshness[freshness],\n copy.lastSeen(unit.staleSeconds),\n unit.accuracyM == null ? null : copy.accuracy(unit.accuracyM),\n ]\n .filter((part): part is string => Boolean(part))\n .join(' · ');\n\n return (\n <View style={styles.rowText}>\n <Text\n testID={`${testId}-label`}\n style={[muiTypeStyle(theme, 'body2'), styles.label, { color: theme.palette.text.primary }]}\n >\n {unit.label}\n </Text>\n <Text\n testID={`${testId}-meta`}\n style={[muiTypeStyle(theme, 'caption'), { color: theme.palette.text.secondary }]}\n >\n {meta}\n </Text>\n </View>\n );\n}\n\ninterface RowProps {\n unit: FleetUnit;\n copy: FleetMapCopy;\n freshness: FleetFreshness;\n selected: boolean;\n onSelect: (id: string) => void;\n onMeasured: (id: string, y: number, height: number) => void;\n /** The row's own DOM id, which `aria-activedescendant` points at. */\n optionId: string;\n testId: string;\n}\n\n/**\n * One roster row.\n *\n * A `Pressable` rather than a `View` with an `onClick`: a press is the input on\n * a device, and `Pressable` is what gives the row its pressed state and its\n * accessibility role in one element. The PRESSED wash stands in for the web's\n * hover — and, as on the web, it must never weaken the selection, so a selected\n * row keeps `action.selected` whether or not a finger is on it.\n */\nfunction FleetRow({\n unit,\n copy,\n freshness,\n selected,\n onSelect,\n onMeasured,\n optionId,\n testId,\n}: RowProps): React.JSX.Element {\n const theme = useUiTheme();\n\n const measure = React.useCallback(\n (event: LayoutChangeEvent) => {\n const { y, height } = event.nativeEvent.layout;\n onMeasured(unit.id, y, height);\n },\n [onMeasured, unit.id],\n );\n\n return (\n <Pressable\n {...webRole('option')}\n {...webDataFreshness(freshness)}\n // Without this the roster's `aria-activedescendant` names an element that\n // does not exist, which announces nothing and fails an axe audit — worse\n // than omitting the attribute. Measured: the row carried no id at all.\n id={optionId}\n // BOTH, and neither is redundant. `accessibilityState` is what a DEVICE\n // reads; react-native-web does not turn it into `aria-selected`, so\n // without the attribute beside it the web build conveys the selection by\n // background colour alone — which is the one thing this component refuses\n // to do for freshness, and no more acceptable here.\n accessibilityState={{ selected }}\n aria-selected={selected}\n testID={testId}\n onPress={() => onSelect(unit.id)}\n onLayout={measure}\n style={({ pressed }) => [\n styles.row,\n {\n gap: theme.spacing(FLEET_ROW.gapUnits),\n paddingVertical: theme.spacing(FLEET_ROW.paddingYUnits),\n paddingHorizontal: theme.spacing(FLEET_ROW.paddingXUnits),\n borderRadius: FLEET_ROW.radiusMultiple * theme.radius.md,\n backgroundColor: selected\n ? theme.palette.action.selected\n : pressed\n ? theme.palette.action.hover\n : 'transparent',\n },\n ]}\n >\n {/* The dot repeats what the freshness word beside it already says, so it\n is hidden rather than read twice — and colour is never the only\n carrier of the state. */}\n <View\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n testID={`${testId}-dot`}\n style={[styles.dot, { backgroundColor: freshnessColor(freshness, theme) }]}\n />\n <RowText unit={unit} copy={copy} freshness={freshness} testId={testId} />\n {unit.badge !== undefined && unit.badge !== '' && (\n <Text\n testID={`${testId}-badge`}\n style={[\n muiTypeStyle(theme, 'caption'),\n styles.badge,\n { color: theme.palette.text.secondary },\n ]}\n >\n {unit.badge}\n </Text>\n )}\n </Pressable>\n );\n}\n\n/**\n * What stands in for the roster before any unit has landed.\n *\n * Hidden from the reader, because three grey bars are not information — the\n * panel's busy state and its optional announcement carry that. The radius is\n * the same MULTIPLE a real row uses rather than a raw pixel count.\n */\nfunction FirstLoad({ testId }: { testId: string }): React.JSX.Element {\n const theme = useUiTheme();\n return (\n <View\n testID={`${testId}-skeleton`}\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n style={{ gap: theme.spacing(FLEET_SKELETON.gapUnits) }}\n >\n {Array.from({ length: FLEET_SKELETON.rows }, (_, row) => (\n <Skeleton\n key={row}\n variant=\"rectangular\"\n height={FLEET_SKELETON.height}\n borderRadius={FLEET_SKELETON.radiusMultiple}\n />\n ))}\n </View>\n );\n}\n\nexport interface FleetRosterProps {\n units: readonly FleetUnit[];\n copy: FleetMapCopy;\n selectedId: string | null | undefined;\n onSelect: (id: string) => void;\n laggingAfterSeconds: number;\n staleAfterSeconds: number;\n loading: boolean;\n maxHeight: number | undefined;\n testId: string;\n onKeyDown: (event: FleetKeyEvent) => void;\n}\n\nexport function FleetRoster({\n units,\n copy,\n selectedId,\n onSelect,\n laggingAfterSeconds,\n staleAfterSeconds,\n loading,\n maxHeight,\n testId,\n onKeyDown,\n}: FleetRosterProps): React.JSX.Element {\n const theme = useUiTheme();\n const scroll = React.useRef<ScrollView>(null);\n const geometry = React.useRef<RosterGeometry>({ rows: new Map(), offset: 0, viewport: 0 });\n\n // Generated, not derived from `dataTestId`: two boards on one screen filtered\n // from the same fleet would otherwise emit duplicate ids and an ambiguous\n // `aria-activedescendant` under react-native-web.\n const rowIdPrefix = React.useId();\n\n // The selection is CONTROLLED, so it can name a unit that has since dropped\n // out of the freshness window — a courier ending their shift mid-poll. The\n // attribute must then be absent rather than pointing at a row that no longer\n // renders. `mapCentre` and `nextSelection` both handle the same case.\n const active = units.some((unit) => unit.id === selectedId) ? (selectedId ?? null) : null;\n const position = active === null ? -1 : units.findIndex((unit) => unit.id === active);\n\n const onMeasured = React.useCallback((id: string, y: number, height: number) => {\n geometry.current.rows.set(id, { y, height });\n }, []);\n\n useKeptInView(scroll, geometry, active, position);\n\n if (loading && units.length === 0) return <FirstLoad testId={testId} />;\n\n return (\n <ScrollView\n ref={scroll}\n {...webRole('listbox')}\n // A single tab stop with the arrow keys inside it, which is the listbox\n // pattern and what `aria-activedescendant` below is for: a dispatcher\n // tabbing past a fleet of thirty should not press it thirty times. React\n // Native has no tab order, so this reaches the DOM through\n // react-native-web and does nothing on a device — where each row is its\n // own touch target anyway.\n tabIndex={0}\n {...webAria({ 'aria-activedescendant': active ? `${rowIdPrefix}-${active}` : undefined })}\n {...webKeyDown(onKeyDown)}\n accessibilityLabel={copy.rosterLabel}\n testID={`${testId}-roster`}\n style={maxHeight === undefined ? undefined : { maxHeight }}\n contentContainerStyle={{ gap: theme.spacing(FLEET_ROSTER.gapUnits) }}\n onLayout={(event: LayoutChangeEvent) => {\n geometry.current.viewport = event.nativeEvent.layout.height;\n }}\n onScroll={(event: NativeSyntheticEvent<NativeScrollEvent>) => {\n geometry.current.offset = event.nativeEvent.contentOffset.y;\n }}\n scrollEventThrottle={16}\n >\n {units.map((unit) => (\n <FleetRow\n key={unit.id}\n unit={unit}\n copy={copy}\n freshness={freshnessOf(unit.staleSeconds, laggingAfterSeconds, staleAfterSeconds)}\n selected={unit.id === active}\n onSelect={onSelect}\n onMeasured={onMeasured}\n optionId={`${rowIdPrefix}-${unit.id}`}\n testId={`${testId}-${unit.id}`}\n />\n ))}\n </ScrollView>\n );\n}\n\nconst styles = StyleSheet.create({\n badge: { flexShrink: 0 },\n dot: {\n borderRadius: FLEET_DOT.size / 2,\n flexShrink: 0,\n height: FLEET_DOT.size,\n width: FLEET_DOT.size,\n },\n label: { fontWeight: '500' },\n row: { alignItems: 'center', flexDirection: 'row' },\n rowText: { flexGrow: 1, flexShrink: 1, minWidth: 0 },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAYA,YAAW;AACvB,SAAS,cAAAC,aAAY,QAAAC,OAAM,QAAAC,aAAY;;;ACDvC,OAAO,WAAW;;;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AAED,IAAO,0BAAQ;","names":["React","StyleSheet","Text","View","React","jsx","jsxs","View","styles","Text","StyleSheet"]}
1
+ {"version":3,"sources":["../../../src/components/data-display/FleetMap/FleetMap.native.tsx","../../../src/components/data-display/FleetMap/FleetMap.hooks.ts","../../../src/components/data-display/FleetMap/FleetMap.helpers.ts","../../../src/components/data-display/FleetMap/FleetMap.metrics.ts","../../../src/components/data-display/FleetMap/FleetRoster.native.tsx"],"sourcesContent":["import * as React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { EmptyState } from '../EmptyState/EmptyState.native';\n\nimport { useFleetMap } from './FleetMap.hooks';\nimport {\n FLEET_DEFAULT_LAGGING_AFTER_SECONDS,\n FLEET_DEFAULT_STALE_AFTER_SECONDS,\n FLEET_PANEL,\n} from './FleetMap.metrics';\nimport type { FleetMapProps } from './FleetMap.types.native';\nimport { FleetRoster } from './FleetRoster.native';\nimport { webAria, webRole } from '../../../platform/aria';\nimport { useUiTheme } from '../../../provider/use-ui-theme.native';\nimport { MUI_FONT_WEIGHT_MEDIUM, muiTypeStyle } from '../../../tokens/mui-type';\n\n/**\n * The reload announcement, and nothing else.\n *\n * A busy region marks itself stale for assistive technology but UTTERS nothing,\n * and the skeletons beside it are hidden from the reader — so a screen-reader\n * user got silence while the roster reloaded. This is the utterance.\n *\n * Optional by design: the sentence is in the reader's language, which only the\n * caller knows, and inventing an English one in a component whose whole premise\n * is that every word arrives through `copy` would be the bug it exists to\n * avoid. No `copy.loading`, no region.\n *\n * ## The node outlives the text, and that is the whole trick\n *\n * A live region has to exist BEFORE its content changes; a reader watches an\n * existing region for mutations rather than announcing one that appears already\n * populated. Mounting region-and-text together in a single commit is the classic\n * silent case — it satisfies a query while announcing nothing. So the region\n * mounts as soon as the caller offers the copy and merely EMPTIES when idle.\n *\n * `role=\"status\"` and `aria-live` reach the DOM through react-native-web; on a\n * device the announcement is made by `AccessibilityInfo` or not at all, which\n * is recorded in `NATIVE-NOTES.md` rather than papered over here.\n */\nfunction FleetStatus({\n announcement,\n loading,\n testId,\n}: {\n announcement: string | undefined;\n loading: boolean;\n testId: string;\n}): React.JSX.Element | null {\n // No copy, no region at all — the caller has not asked for an announcement.\n if (announcement === undefined) return null;\n return (\n <View\n {...webRole('status')}\n aria-live=\"polite\"\n accessibilityLiveRegion=\"polite\"\n testID={`${testId}-status`}\n style={styles.srOnly}\n >\n <Text>{loading ? announcement : ''}</Text>\n </View>\n );\n}\n\n/**\n * FleetMap on React Native — where a set of tracked units is right now.\n *\n * Product-free by construction: it draws a labelled row with a freshness, and\n * every word — the heading, the three freshness states, how a duration and a\n * distance are written — arrives through `copy`. Couriers, service vans and\n * field engineers are all the same list.\n *\n * ## What this renderer does NOT draw, and why\n *\n * There is no map. `MapPreview` — 2,200 lines that project, tile and decorate\n * their own surface — has no React Native build, and porting it is its own\n * change with its own consumers. What that costs is smaller than it sounds,\n * because the web half already calls this list \"the accessible representation,\n * not a sidebar\": every fact a pin carries — who, how recently, how precisely,\n * what they are carrying — is on a row, in an order the map cannot express. So\n * a native board is the half a screen reader was always given, and a device\n * gets the same answers a dispatcher asks for. The gap is stated in\n * `NATIVE-NOTES.md` rather than claimed away, and it is where the map goes when\n * `MapPreview` is ported.\n *\n * The consequence for the API is one line in `FleetMap.types.native.ts`: the\n * native copy interface has no `map` and no `mapLabel`, because a caller should\n * not be asked to name controls nothing renders.\n */\nexport const FleetMap: React.FC<FleetMapProps> = React.memo(\n ({\n units,\n copy,\n // NO default. `undefined` is what tells the hook the caller does not own\n // the selection; defaulting it to `null` made every render look controlled\n // and the uncontrolled path unreachable.\n selectedId,\n onSelect,\n laggingAfterSeconds = FLEET_DEFAULT_LAGGING_AFTER_SECONDS,\n staleAfterSeconds = FLEET_DEFAULT_STALE_AFTER_SECONDS,\n loading = false,\n maxHeight,\n style,\n dataTestId,\n }) => {\n const theme = useUiTheme();\n const testId = dataTestId ?? 'fleet-map';\n const { ordered, active, select, onKeyDown } = useFleetMap(units, selectedId, onSelect);\n\n return (\n <View\n {...webRole('region')}\n accessibilityLabel={copy.title}\n testID={testId}\n style={[styles.panel, { gap: theme.spacing(FLEET_PANEL.gapUnits) }, style]}\n >\n <Text\n {...webRole('heading')}\n {...webAria({ 'aria-level': 2 })}\n testID={`${testId}-title`}\n style={[\n muiTypeStyle(theme, 'body1'),\n { color: theme.palette.text.primary, fontWeight: `${MUI_FONT_WEIGHT_MEDIUM}` },\n ]}\n >\n {copy.title}\n </Text>\n\n <FleetStatus announcement={copy.loading} loading={loading} testId={testId} />\n\n {!loading && ordered.length === 0 ? (\n <EmptyState\n variant=\"minimal\"\n title={copy.emptyTitle}\n description={copy.emptyDescription}\n dataTestId={`${testId}-empty`}\n />\n ) : (\n /* The busy marker belongs on the BODY and never on the panel root —\n the live region announcing the reload is a sibling above, and a\n live region inside a busy subtree is exactly what busy tells\n assistive technology to hold back. Marking the root would silence\n the announcement for the whole of the only window in which it has\n anything to say. The web half splits them the same way, and the\n wrapper is also what the shared loading stories address. */\n <View\n aria-busy={loading || undefined}\n accessibilityState={{ busy: loading }}\n testID={`${testId}-body`}\n style={styles.body}\n >\n <FleetRoster\n units={ordered}\n copy={copy}\n selectedId={active}\n onSelect={select}\n laggingAfterSeconds={laggingAfterSeconds}\n staleAfterSeconds={staleAfterSeconds}\n loading={loading}\n maxHeight={maxHeight}\n testId={testId}\n onKeyDown={onKeyDown}\n />\n </View>\n )}\n </View>\n );\n },\n);\n\nFleetMap.displayName = 'FleetMap';\n\nconst styles = StyleSheet.create({\n body: { flexShrink: 1, minWidth: 0 },\n panel: { flexDirection: 'column', minWidth: 0 },\n /**\n * Off screen but still in the tree, which is what a live region needs. A\n * `display: 'none'` view is not announced, and a zero-size one clips its text\n * on some readers.\n */\n srOnly: { height: 1, opacity: 0, overflow: 'hidden', position: 'absolute', width: 1 },\n});\n\nexport default FleetMap;\n","import React from 'react';\n\nimport { mapCentre, nextSelection, rosterOrder, type LatLng } from './FleetMap.helpers';\nimport type { FleetUnit } from './FleetMap.base';\n\n/**\n * The half of a key event this hook reads, spelled structurally.\n *\n * NOT `React.KeyboardEvent<HTMLDivElement>`: the native type program is checked\n * without the DOM lib (`tsconfig.native.json`), so a DOM type here would put\n * the whole hook out of reach of the React Native renderer that shares it. A\n * DOM event satisfies this shape, and a handler taking the wider type is\n * assignable wherever the narrower one is expected — so the web passes its own\n * `onKeyDown` unchanged.\n */\nexport interface FleetKeyEvent {\n key: string;\n altKey?: boolean;\n ctrlKey?: boolean;\n metaKey?: boolean;\n shiftKey?: boolean;\n preventDefault: () => void;\n}\n\n/**\n * Everything the board derives from its props, in one hook.\n *\n * Split out of the component so the component is layout and nothing else.\n *\n * The memos are honest about what they buy, which is less than it looks. `units`\n * arrives as a fresh array on every poll, so `ordered` and `markers` are\n * recomputed on every poll whatever these do — a new array is a new identity.\n * What they buy is stability across the renders a poll does NOT cause: a parent\n * re-render, a selection change (which re-runs `centre` but not `ordered`), a\n * theme flip. Sorting a fleet is cheap either way; this is tidiness, not a\n * measured win, and it should not be read as one.\n *\n * `centre` is the exception, and there it is load-bearing rather than tidy —\n * see {@link useFleetMap}.\n *\n * ## Selection works with, without, or half-way through a handler\n *\n * `selectedId` and `onSelect` are both optional, so all four combinations\n * arrive. Left purely controlled, the two useful ones broke: with neither prop\n * the roster was a listbox that answered nothing, and arrowing it called\n * `preventDefault` before a no-op `select`, so the keys did not move a\n * selection AND did not scroll the page either.\n *\n * So the hook keeps its own selection and defers to `selectedId` only when the\n * caller passes one — the ordinary controlled/uncontrolled split, the same one\n * an `<input>` makes. `onSelect` still fires either way, so a consumer can\n * observe the selection without owning it.\n */\n\n/** One pin, in the shape `MapPreview` takes. */\nexport interface FleetMarker {\n position: LatLng;\n title: string;\n onClick: () => void;\n}\n\nexport interface FleetMapState {\n /** The units, freshest first — see {@link rosterOrder}. */\n ordered: FleetUnit[];\n /**\n * The selection in force — the caller's when they own it, this hook's when\n * they do not. Everything downstream reads THIS and never the raw prop.\n */\n active: string | null;\n /** Where the map points, or `null` when there is nothing to show. */\n centre: LatLng | null;\n select: (id: string) => void;\n markers: FleetMarker[];\n onKeyDown: (event: FleetKeyEvent) => void;\n}\n\n/** Which way an arrow moves the selection, or `0` when it is not ours. */\nfunction stepFor(event: FleetKeyEvent): 1 | -1 | 0 {\n // A modified arrow is the PAGE's shortcut, not the roster's: Cmd+Down is\n // \"scroll to the end of the document\" on macOS, and Shift+Arrow extends a\n // selection. Capturing them would take a browser gesture away.\n if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return 0;\n if (event.key === 'ArrowDown') return 1;\n if (event.key === 'ArrowUp') return -1;\n return 0;\n}\n\n/**\n * Who owns the selection, decided ONCE on the first render.\n *\n * Exactly as React decides it for an `<input>`, and for the same reason.\n * `selectedId` is typed `string | null | undefined`, so `useState<string>()` —\n * the natural shape for a caller — hands us `undefined` on the first render and\n * again on every reset. Re-deriving the mode from the prop each time would make\n * the component change its own semantics mid-life: it starts uncontrolled,\n * silently becomes controlled the moment the caller's `onSelect` writes a value\n * back, and then silently un-becomes it when they clear — resurrecting whatever\n * was selected before the hand-off.\n *\n * Latched, `undefined` is unambiguous within each mode: to a controlled board it\n * is \"nobody is selected\", so clearing the caller's state clears the roster; to\n * an uncontrolled one it is simply the prop staying absent. A caller who wants\n * control passes `string | null` from the first render.\n */\nfunction useSelection(\n selectedId: string | null | undefined,\n onSelect: ((id: string) => void) | undefined,\n): { active: string | null; select: (id: string) => void; controlled: boolean } {\n const controlledRef = React.useRef(selectedId !== undefined);\n const controlled = controlledRef.current;\n const [own, setOwn] = React.useState<string | null>(null);\n\n const select = React.useCallback(\n (id: string) => {\n if (!controlled) setOwn(id);\n onSelect?.(id);\n },\n [controlled, onSelect],\n );\n\n return { active: controlled ? (selectedId ?? null) : own, select, controlled };\n}\n\nexport function useFleetMap(\n units: readonly FleetUnit[],\n selectedId: string | null | undefined,\n onSelect: ((id: string) => void) | undefined,\n): FleetMapState {\n const ordered = React.useMemo(() => rosterOrder(units), [units]);\n const { active, select, controlled } = useSelection(selectedId, onSelect);\n\n // Memoised on the COORDINATES and not the object, because `mapCentre` builds\n // a fresh literal every call and `MapPreview` re-centres from an effect keyed\n // on `center`'s identity. A poll that changes nothing would otherwise hand it\n // a new object, and the map would jump back to the centroid — throwing away a\n // pan the dispatcher had just made, on a timer, for as long as they watch it.\n //\n // ROUNDED, because keying on the raw numbers was not enough. `mapCentre`\n // sums over `ordered`, and floating-point addition is not associative — so\n // re-sorting the SAME coordinates can change the centroid's last bit.\n // `rosterOrder` sorts on `staleSeconds`, which moves on every poll, so rank\n // swaps are the ordinary case for a fleet that is standing still: measured\n // over 20k random three-rider fleets, a single adjacent swap changed the\n // centroid 17% of the time. Six decimals is ~11cm, far finer than a map\n // centre resolves and far coarser than the noise.\n const raw = mapCentre(ordered, active);\n const lat = raw === null ? null : Math.round(raw.lat * 1e6) / 1e6;\n const lng = raw === null ? null : Math.round(raw.lng * 1e6) / 1e6;\n const centre = React.useMemo(\n () => (lat === null || lng === null ? null : { lat, lng }),\n [lat, lng],\n );\n\n const onKeyDown = React.useCallback(\n (event: FleetKeyEvent) => {\n const step = stepFor(event);\n if (step === 0) return;\n // Nothing can move a CONTROLLED selection without a handler, so the keys\n // belong to the page. Swallowing them there left a keyboard user unable to\n // move the selection and unable to scroll past the roster.\n if (controlled && !onSelect) return;\n const next = nextSelection(ordered, active, step);\n // `preventDefault` only once a move is certain, so the page still scrolls\n // with the arrow keys when the list is empty and there is nothing to move.\n if (next === null) return;\n event.preventDefault();\n select(next);\n },\n [ordered, active, select, controlled, onSelect],\n );\n\n const markers = React.useMemo(\n () =>\n ordered.map((unit) => ({\n position: { lat: unit.latitude, lng: unit.longitude },\n title: unit.label,\n onClick: () => select(unit.id),\n })),\n [ordered, select],\n );\n\n return { ordered, active, centre, select, markers, onKeyDown };\n}\n","import type { FleetFreshness, FleetUnit } from './FleetMap.base';\n\n/**\n * How current a fix is, on the two thresholds the caller supplied.\n *\n * Inclusive at both boundaries in the direction that reads better on a screen:\n * a unit exactly at the lagging threshold is already lagging. A boundary has to\n * fall somewhere, and the conservative side is the one that does not tell a\n * dispatcher somebody is live when they are on the edge of not being.\n */\nexport function freshnessOf(\n staleSeconds: number,\n laggingAfterSeconds: number,\n staleAfterSeconds: number,\n): FleetFreshness {\n if (staleSeconds >= staleAfterSeconds) return 'stale';\n if (staleSeconds >= laggingAfterSeconds) return 'lagging';\n return 'live';\n}\n\n/** A latitude/longitude pair, as the map wants its centre. */\nexport interface LatLng {\n lat: number;\n lng: number;\n}\n\n/**\n * Where the map should point.\n *\n * The selected unit when there is one — a dispatcher who clicked a name is\n * asking to look at them. Otherwise the fleet's own centroid, which keeps\n * everybody in frame without the caller having to compute a bounding box.\n *\n * `null` for an empty fleet rather than a coordinate: (0, 0) is a real place in\n * the Atlantic, and a map that quietly sails there is worse than one that says\n * it has nothing to show.\n */\nexport function mapCentre(\n units: readonly FleetUnit[],\n selectedId?: string | null,\n): LatLng | null {\n if (units.length === 0) return null;\n const selected = selectedId ? units.find((unit) => unit.id === selectedId) : undefined;\n if (selected) return { lat: selected.latitude, lng: selected.longitude };\n const sum = units.reduce(\n (acc, unit) => ({ lat: acc.lat + unit.latitude, lng: acc.lng + unit.longitude }),\n { lat: 0, lng: 0 },\n );\n return { lat: sum.lat / units.length, lng: sum.lng / units.length };\n}\n\n/**\n * The roster's order: freshest first, then alphabetically.\n *\n * Not the caller's order, deliberately. The one question this panel answers is\n * *who is moving right now*, and a list sorted by anything else buries the\n * answer under whoever happens to sort first. Ties break on the label so the\n * list does not reshuffle between polls when two units share a staleness.\n */\nexport function rosterOrder(units: readonly FleetUnit[]): FleetUnit[] {\n return [...units].sort(\n (a, b) => a.staleSeconds - b.staleSeconds || a.label.localeCompare(b.label),\n );\n}\n\n/**\n * Move the selection by one row, wrapping at both ends.\n *\n * Wrapping rather than stopping: this is a short list a dispatcher arrows\n * through repeatedly, and a selection that sticks at the last row makes the\n * keyboard path feel broken next to the mouse one.\n */\nexport function nextSelection(\n units: readonly FleetUnit[],\n currentId: string | null | undefined,\n step: 1 | -1,\n): string | null {\n if (units.length === 0) return null;\n const index = units.findIndex((unit) => unit.id === currentId);\n // Nothing selected: Down opens at the top and Up opens at the bottom, which\n // is what every listbox in the house does.\n if (index === -1) return (step === 1 ? units[0] : units[units.length - 1])?.id ?? null;\n const next = (index + step + units.length) % units.length;\n return units[next]?.id ?? null;\n}\n","/**\n * THE NUMBERS BOTH `FleetMap` RENDERERS DRAW WITH.\n *\n * `FleetRoster.tsx` / `FleetMap.tsx` (web, MUI `sx`) and `FleetRoster.native.tsx`\n * / `FleetMap.native.tsx` (React Native) read this one table. The web hands the\n * spacing UNITS to `theme.spacing()` and the radius MULTIPLES to `sx`; native\n * multiplies the units by the theme's own spacing step and the multiples by\n * `shape.borderRadius`.\n *\n * Nothing here imports a renderer, a theme or a colour: a freshness dot's\n * COLOUR is the theme's (`success.main`, `warning.main`, `text.disabled`), and\n * the two sides reach the same palette through different doors.\n *\n * ## Why the radii are MULTIPLES and never pixels\n *\n * MUI's `sx` reads a bare number for `borderRadius` as a multiple of\n * `theme.shape.borderRadius`, so a value that already had the theme's radius\n * divided out of it is applied twice. Measured: `theme.shape.borderRadius / 4`\n * drew 4px on the default theme — which is why it looked right — and 36px on a\n * host that sets its own radius to 12. In a package whose whole premise is\n * being re-themed, only the multiple is portable, and it is the multiple that\n * both renderers store here.\n */\n\n/** `theme.spacing(n)` for the panel's own stack. */\nexport const FLEET_PANEL = {\n /** Between the heading, the status region and the body. */\n gapUnits: 1.5,\n} as const;\n\n/** The roster list box. */\nexport const FLEET_ROSTER = {\n /** Between rows. */\n gapUnits: 0.5,\n /** `:focus-visible` ring on the web; a device has no focus ring to draw. */\n focusRingWidth: 2,\n focusRingOffset: 2,\n} as const;\n\n/** One roster row. */\nexport const FLEET_ROW = {\n /** Between the dot, the text block and the badge. */\n gapUnits: 1.5,\n /** `theme.spacing(y, x)`. */\n paddingYUnits: 1,\n paddingXUnits: 1.5,\n /** A MULTIPLE of `theme.shape.borderRadius` — see the note above. */\n radiusMultiple: 1,\n} as const;\n\n/**\n * The freshness dot.\n *\n * A perfect circle, so the radius is half the box on both sides rather than\n * the web's `50%`: React Native resolves a percentage radius against the box\n * it is given, and a square box makes the two spellings agree.\n */\nexport const FLEET_DOT = {\n size: 10,\n} as const;\n\n/** What stands in for the roster before any unit has landed. */\nexport const FLEET_SKELETON = {\n /** Three bars, the height of a row with its padding. */\n rows: 3,\n height: 44,\n /** A MULTIPLE, for the same reason the row's is. */\n radiusMultiple: 1,\n gapUnits: 1,\n} as const;\n\n/**\n * How long a fix stays `live`, and then `lagging`, when the caller says nothing.\n *\n * Ninety seconds and five minutes: sized for a phone reporting every twenty\n * seconds, which is the densest cadence a battery tolerates all day. They are\n * DEFAULTS and not a rule — a fleet on five-minute trackers passes its own, and\n * the props exist so it can.\n */\nexport const FLEET_DEFAULT_LAGGING_AFTER_SECONDS = 90;\nexport const FLEET_DEFAULT_STALE_AFTER_SECONDS = 300;\n","import * as React from 'react';\nimport {\n Pressable,\n ScrollView,\n StyleSheet,\n Text,\n View,\n type LayoutChangeEvent,\n type NativeScrollEvent,\n type NativeSyntheticEvent,\n} from 'react-native';\n\nimport { Skeleton } from '../../layout/Skeleton/Skeleton.native';\n\nimport { freshnessOf } from './FleetMap.helpers';\nimport type { FleetKeyEvent } from './FleetMap.hooks';\nimport { FLEET_DOT, FLEET_ROSTER, FLEET_ROW, FLEET_SKELETON } from './FleetMap.metrics';\nimport type { FleetFreshness, FleetMapCopy, FleetUnit } from './FleetMap.types.native';\nimport { webAria, webRole } from '../../../platform/aria';\nimport { webKeyDown } from '../../../platform/web-keys';\nimport { useUiTheme } from '../../../provider/use-ui-theme.native';\nimport { muiTypeStyle } from '../../../tokens/mui-type';\nimport type { UiTheme } from '../../../tokens/theme';\n\n/**\n * The roster — which on React Native is the WHOLE component, not half of it.\n *\n * On the web this list sits beside a map and carries the information a picture\n * cannot give a screen reader. Here there is no map to sit beside: `MapPreview`\n * has no React Native build, so the native `FleetMap` renders this and says so\n * in `NATIVE-NOTES.md`. That is a smaller change than it sounds, because the\n * web half already treats this list as the component's real content — \"the\n * accessible representation, not a sidebar\" — and every fact a pin carries is\n * on a row here.\n */\n\n/**\n * `data-freshness`, as something JSX can spread onto a react-native element.\n *\n * Through `dataSet` and NOT as a bare `data-freshness` prop: react-native-web\n * drops unknown props rather than forwarding them, and special-cases only\n * `data-testid`. Measured — the attribute was simply absent from the row, so\n * the shared freshness stories read `null`. `dataSet` is rn-web's documented\n * channel for custom data attributes and renders `data-freshness`; React Native\n * ignores it on a device, which is the same trade `webRole` and `webAria` make.\n *\n * It is not decoration: the SHARED stories read this attribute to assert which\n * threshold a row landed on, so without it they cannot run here at all.\n */\nfunction webDataFreshness(freshness: FleetFreshness): object {\n return { dataSet: { freshness } };\n}\n\n/** Each freshness draws from the semantic palette, never a hardcoded hex. */\nfunction freshnessColor(freshness: FleetFreshness, theme: UiTheme): string {\n if (freshness === 'live') return theme.palette.success.main;\n if (freshness === 'lagging') return theme.palette.warning.main;\n return theme.palette.text.disabled;\n}\n\n/** Where each row sits inside the scrolling content, and what is on screen. */\ninterface RosterGeometry {\n rows: Map<string, { y: number; height: number }>;\n offset: number;\n viewport: number;\n}\n\n/**\n * Keep the selected row visible INSIDE the roster — the same arithmetic the web\n * does with `scrollTop`, expressed in the only terms React Native has.\n *\n * The web reads `box.offsetTop - list.offsetTop` against `list.scrollTop` and\n * `list.clientHeight`. None of those exist here, so the three numbers are\n * gathered as they arrive: a row's `onLayout` gives its `y` inside the content\n * container (already relative to the list, which is what the web computes by\n * subtraction), the `ScrollView`'s own `onLayout` gives the viewport height,\n * and `onScroll` gives the offset. The comparison below is then line-for-line\n * the web's.\n *\n * `scrollTo` rather than react-native's `scrollToEnd`/`ScrollView.scrollIntoView`\n * for the same reason the web refuses `scrollIntoView({ block: 'nearest' })`:\n * this must move THIS list and nothing else. A native `ScrollView` cannot walk\n * its ancestors, so the hazard is smaller here — but the arithmetic is shared,\n * and two renderers agreeing by construction beats two agreeing by coincidence.\n *\n * Watches `position` as well as the id, because the roster re-sorts on every\n * poll: a rider who stays selected while their staleness moves them down the\n * list would otherwise slide out of view with the effect never re-running.\n */\nfunction useKeptInView(\n scroll: React.RefObject<ScrollView | null>,\n geometry: React.RefObject<RosterGeometry>,\n activeId: string | null,\n position: number,\n): void {\n React.useEffect(() => {\n if (activeId === null) return;\n const { rows, offset, viewport } = geometry.current;\n const row = rows.get(activeId);\n // Nothing has laid out yet on the first commit; the next poll re-runs this.\n if (!row || viewport === 0) return;\n if (row.y < offset) {\n scroll.current?.scrollTo({ y: row.y, animated: false });\n } else if (row.y + row.height > offset + viewport) {\n scroll.current?.scrollTo({ y: row.y + row.height - viewport, animated: false });\n }\n }, [scroll, geometry, activeId, position]);\n}\n\n/**\n * A row's two lines of text — the name, and the one-line summary under it.\n *\n * Split out of {@link FleetRow} to keep that function under the size gate, and\n * the seam is the natural one: everything here is READ, nothing is interactive.\n */\nfunction RowText({\n unit,\n copy,\n freshness,\n testId,\n}: Pick<RowProps, 'unit' | 'copy' | 'freshness' | 'testId'>): React.JSX.Element {\n const theme = useUiTheme();\n\n // Dropped rather than rendered empty: a phone that reports no accuracy radius\n // would otherwise print a trailing separator with nothing after it.\n const meta = [\n copy.freshness[freshness],\n copy.lastSeen(unit.staleSeconds),\n unit.accuracyM == null ? null : copy.accuracy(unit.accuracyM),\n ]\n .filter((part): part is string => Boolean(part))\n .join(' · ');\n\n return (\n <View style={styles.rowText}>\n <Text\n testID={`${testId}-label`}\n style={[muiTypeStyle(theme, 'body2'), styles.label, { color: theme.palette.text.primary }]}\n >\n {unit.label}\n </Text>\n <Text\n testID={`${testId}-meta`}\n style={[muiTypeStyle(theme, 'caption'), { color: theme.palette.text.secondary }]}\n >\n {meta}\n </Text>\n </View>\n );\n}\n\ninterface RowProps {\n unit: FleetUnit;\n copy: FleetMapCopy;\n freshness: FleetFreshness;\n selected: boolean;\n onSelect: (id: string) => void;\n onMeasured: (id: string, y: number, height: number) => void;\n /** The row's own DOM id, which `aria-activedescendant` points at. */\n optionId: string;\n testId: string;\n}\n\n/**\n * One roster row.\n *\n * A `Pressable` rather than a `View` with an `onClick`: a press is the input on\n * a device, and `Pressable` is what gives the row its pressed state and its\n * accessibility role in one element. The PRESSED wash stands in for the web's\n * hover — and, as on the web, it must never weaken the selection, so a selected\n * row keeps `action.selected` whether or not a finger is on it.\n */\nfunction FleetRow({\n unit,\n copy,\n freshness,\n selected,\n onSelect,\n onMeasured,\n optionId,\n testId,\n}: RowProps): React.JSX.Element {\n const theme = useUiTheme();\n\n const measure = React.useCallback(\n (event: LayoutChangeEvent) => {\n const { y, height } = event.nativeEvent.layout;\n onMeasured(unit.id, y, height);\n },\n [onMeasured, unit.id],\n );\n\n return (\n <Pressable\n {...webRole('option')}\n {...webDataFreshness(freshness)}\n // Without this the roster's `aria-activedescendant` names an element that\n // does not exist, which announces nothing and fails an axe audit — worse\n // than omitting the attribute. Measured: the row carried no id at all.\n id={optionId}\n // BOTH, and neither is redundant. `accessibilityState` is what a DEVICE\n // reads; react-native-web does not turn it into `aria-selected`, so\n // without the attribute beside it the web build conveys the selection by\n // background colour alone — which is the one thing this component refuses\n // to do for freshness, and no more acceptable here.\n accessibilityState={{ selected }}\n aria-selected={selected}\n testID={testId}\n onPress={() => onSelect(unit.id)}\n onLayout={measure}\n style={({ pressed }) => [\n styles.row,\n {\n gap: theme.spacing(FLEET_ROW.gapUnits),\n paddingVertical: theme.spacing(FLEET_ROW.paddingYUnits),\n paddingHorizontal: theme.spacing(FLEET_ROW.paddingXUnits),\n borderRadius: FLEET_ROW.radiusMultiple * theme.radius.md,\n backgroundColor: selected\n ? theme.palette.action.selected\n : pressed\n ? theme.palette.action.hover\n : 'transparent',\n },\n ]}\n >\n {/* The dot repeats what the freshness word beside it already says, so it\n is hidden rather than read twice — and colour is never the only\n carrier of the state. */}\n <View\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n testID={`${testId}-dot`}\n style={[styles.dot, { backgroundColor: freshnessColor(freshness, theme) }]}\n />\n <RowText unit={unit} copy={copy} freshness={freshness} testId={testId} />\n {unit.badge !== undefined && unit.badge !== '' && (\n <Text\n testID={`${testId}-badge`}\n style={[\n muiTypeStyle(theme, 'caption'),\n styles.badge,\n { color: theme.palette.text.secondary },\n ]}\n >\n {unit.badge}\n </Text>\n )}\n </Pressable>\n );\n}\n\n/**\n * What stands in for the roster before any unit has landed.\n *\n * Hidden from the reader, because three grey bars are not information — the\n * panel's busy state and its optional announcement carry that. The radius is\n * the same MULTIPLE a real row uses rather than a raw pixel count.\n */\nfunction FirstLoad({ testId }: { testId: string }): React.JSX.Element {\n const theme = useUiTheme();\n return (\n <View\n testID={`${testId}-skeleton`}\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n style={{ gap: theme.spacing(FLEET_SKELETON.gapUnits) }}\n >\n {Array.from({ length: FLEET_SKELETON.rows }, (_, row) => (\n <Skeleton\n key={row}\n variant=\"rectangular\"\n height={FLEET_SKELETON.height}\n borderRadius={FLEET_SKELETON.radiusMultiple}\n />\n ))}\n </View>\n );\n}\n\nexport interface FleetRosterProps {\n units: readonly FleetUnit[];\n copy: FleetMapCopy;\n selectedId: string | null | undefined;\n onSelect: (id: string) => void;\n laggingAfterSeconds: number;\n staleAfterSeconds: number;\n loading: boolean;\n maxHeight: number | undefined;\n testId: string;\n onKeyDown: (event: FleetKeyEvent) => void;\n}\n\nexport function FleetRoster({\n units,\n copy,\n selectedId,\n onSelect,\n laggingAfterSeconds,\n staleAfterSeconds,\n loading,\n maxHeight,\n testId,\n onKeyDown,\n}: FleetRosterProps): React.JSX.Element {\n const theme = useUiTheme();\n const scroll = React.useRef<ScrollView>(null);\n const geometry = React.useRef<RosterGeometry>({ rows: new Map(), offset: 0, viewport: 0 });\n\n // Generated, not derived from `dataTestId`: two boards on one screen filtered\n // from the same fleet would otherwise emit duplicate ids and an ambiguous\n // `aria-activedescendant` under react-native-web.\n const rowIdPrefix = React.useId();\n\n // The selection is CONTROLLED, so it can name a unit that has since dropped\n // out of the freshness window — a courier ending their shift mid-poll. The\n // attribute must then be absent rather than pointing at a row that no longer\n // renders. `mapCentre` and `nextSelection` both handle the same case.\n const active = units.some((unit) => unit.id === selectedId) ? (selectedId ?? null) : null;\n const position = active === null ? -1 : units.findIndex((unit) => unit.id === active);\n\n const onMeasured = React.useCallback((id: string, y: number, height: number) => {\n geometry.current.rows.set(id, { y, height });\n }, []);\n\n useKeptInView(scroll, geometry, active, position);\n\n if (loading && units.length === 0) return <FirstLoad testId={testId} />;\n\n return (\n <ScrollView\n ref={scroll}\n {...webRole('listbox')}\n // A single tab stop with the arrow keys inside it, which is the listbox\n // pattern and what `aria-activedescendant` below is for: a dispatcher\n // tabbing past a fleet of thirty should not press it thirty times. React\n // Native has no tab order, so this reaches the DOM through\n // react-native-web and does nothing on a device — where each row is its\n // own touch target anyway.\n tabIndex={0}\n {...webAria({ 'aria-activedescendant': active ? `${rowIdPrefix}-${active}` : undefined })}\n {...webKeyDown(onKeyDown)}\n accessibilityLabel={copy.rosterLabel}\n testID={`${testId}-roster`}\n style={maxHeight === undefined ? undefined : { maxHeight }}\n contentContainerStyle={{ gap: theme.spacing(FLEET_ROSTER.gapUnits) }}\n onLayout={(event: LayoutChangeEvent) => {\n geometry.current.viewport = event.nativeEvent.layout.height;\n }}\n onScroll={(event: NativeSyntheticEvent<NativeScrollEvent>) => {\n geometry.current.offset = event.nativeEvent.contentOffset.y;\n }}\n scrollEventThrottle={16}\n >\n {units.map((unit) => (\n <FleetRow\n key={unit.id}\n unit={unit}\n copy={copy}\n freshness={freshnessOf(unit.staleSeconds, laggingAfterSeconds, staleAfterSeconds)}\n selected={unit.id === active}\n onSelect={onSelect}\n onMeasured={onMeasured}\n optionId={`${rowIdPrefix}-${unit.id}`}\n testId={`${testId}-${unit.id}`}\n />\n ))}\n </ScrollView>\n );\n}\n\nconst styles = StyleSheet.create({\n badge: { flexShrink: 0 },\n dot: {\n borderRadius: FLEET_DOT.size / 2,\n flexShrink: 0,\n height: FLEET_DOT.size,\n width: FLEET_DOT.size,\n },\n label: { fontWeight: '500' },\n row: { alignItems: 'center', flexDirection: 'row' },\n rowText: { flexGrow: 1, flexShrink: 1, minWidth: 0 },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAYA,YAAW;AACvB,SAAS,cAAAC,aAAY,QAAAC,OAAM,QAAAC,aAAY;;;ACDvC,OAAO,WAAW;;;ACUX,SAAS,YACd,cACA,qBACA,mBACgB;AAChB,MAAI,gBAAgB,kBAAmB,QAAO;AAC9C,MAAI,gBAAgB,oBAAqB,QAAO;AAChD,SAAO;AACT;AAmBO,SAAS,UACd,OACA,YACe;AACf,MAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,QAAM,WAAW,aAAa,MAAM,KAAK,CAAC,SAAS,KAAK,OAAO,UAAU,IAAI;AAC7E,MAAI,SAAU,QAAO,EAAE,KAAK,SAAS,UAAU,KAAK,SAAS,UAAU;AACvE,QAAM,MAAM,MAAM;AAAA,IAChB,CAAC,KAAK,UAAU,EAAE,KAAK,IAAI,MAAM,KAAK,UAAU,KAAK,IAAI,MAAM,KAAK,UAAU;AAAA,IAC9E,EAAE,KAAK,GAAG,KAAK,EAAE;AAAA,EACnB;AACA,SAAO,EAAE,KAAK,IAAI,MAAM,MAAM,QAAQ,KAAK,IAAI,MAAM,MAAM,OAAO;AACpE;AAUO,SAAS,YAAY,OAA0C;AACpE,SAAO,CAAC,GAAG,KAAK,EAAE;AAAA,IAChB,CAAC,GAAG,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,cAAc,EAAE,KAAK;AAAA,EAC5E;AACF;AASO,SAAS,cACd,OACA,WACA,MACe;AACf,MAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,QAAM,QAAQ,MAAM,UAAU,CAAC,SAAS,KAAK,OAAO,SAAS;AAG7D,MAAI,UAAU,GAAI,SAAQ,SAAS,IAAI,MAAM,CAAC,IAAI,M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EAEJ;AACF;AAEA,SAAS,cAAc;AAEvB,IAAMG,UAASE,YAAW,OAAO;AAAA,EAC/B,MAAM,EAAE,YAAY,GAAG,UAAU,EAAE;AAAA,EACnC,OAAO,EAAE,eAAe,UAAU,UAAU,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM9C,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,UAAU,UAAU,YAAY,OAAO,EAAE;AACtF,CAAC;AAED,IAAO,0BAAQ;","names":["React","StyleSheet","Text","View","React","jsx","jsxs","View","styles","Text","StyleSheet"]}
@@ -10,10 +10,10 @@ import {
10
10
  } from "../chunks/chunk-AR5O4BEY.js";
11
11
  import {
12
12
  useUiTheme
13
- } from "../chunks/chunk-7UEJ2FMQ.js";
13
+ } from "../chunks/chunk-X6RQGKGF.js";
14
14
  import {
15
15
  alpha
16
- } from "../chunks/chunk-V72V2Q45.js";
16
+ } from "../chunks/chunk-R5XVZRDD.js";
17
17
 
18
18
  // src/components/data-display/LoadingState/LoadingState.native.tsx
19
19
  import * as React from "react";
@@ -6,12 +6,12 @@ import {
6
6
  } from "../chunks/chunk-2UFNPDYT.js";
7
7
  import {
8
8
  useUiTheme
9
- } from "../chunks/chunk-7UEJ2FMQ.js";
9
+ } from "../chunks/chunk-X6RQGKGF.js";
10
10
  import {
11
11
  GREY,
12
12
  alpha,
13
13
  contrastText
14
- } from "../chunks/chunk-V72V2Q45.js";
14
+ } from "../chunks/chunk-R5XVZRDD.js";
15
15
 
16
16
  // src/components/data-display/Progress/Progress.native.tsx
17
17
  import * as React from "react";
@@ -8,7 +8,7 @@ import {
8
8
  } from "../chunks/chunk-5GJ5OG5R.js";
9
9
  import {
10
10
  Icon
11
- } from "../chunks/chunk-S5SLTMPB.js";
11
+ } from "../chunks/chunk-5IASLIBI.js";
12
12
  import {
13
13
  muiTypeStyle
14
14
  } from "../chunks/chunk-2UFNPDYT.js";
@@ -21,10 +21,10 @@ import {
21
21
  } from "../chunks/chunk-AR5O4BEY.js";
22
22
  import {
23
23
  useUiTheme
24
- } from "../chunks/chunk-7UEJ2FMQ.js";
24
+ } from "../chunks/chunk-X6RQGKGF.js";
25
25
  import {
26
26
  alpha
27
- } from "../chunks/chunk-V72V2Q45.js";
27
+ } from "../chunks/chunk-R5XVZRDD.js";
28
28
 
29
29
  // src/components/feedback/Dialog/Dialog.native.tsx
30
30
  import * as React3 from "react";
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  Button
3
- } from "../chunks/chunk-T3TYQMAH.js";
3
+ } from "../chunks/chunk-KIG4KY4W.js";
4
+ import "../chunks/chunk-IMGBBIMT.js";
4
5
  import "../chunks/chunk-5GJ5OG5R.js";
5
6
  import "../chunks/chunk-AR5O4BEY.js";
6
- import "../chunks/chunk-7UEJ2FMQ.js";
7
- import "../chunks/chunk-V72V2Q45.js";
7
+ import "../chunks/chunk-X6RQGKGF.js";
8
+ import "../chunks/chunk-R5XVZRDD.js";
8
9
  export {
9
10
  Button
10
11
  };
@@ -6,7 +6,7 @@ import {
6
6
  } from "../chunks/chunk-DN73KYIZ.js";
7
7
  import {
8
8
  Icon
9
- } from "../chunks/chunk-S5SLTMPB.js";
9
+ } from "../chunks/chunk-5IASLIBI.js";
10
10
  import "../chunks/chunk-5WLOVHKK.js";
11
11
  import {
12
12
  resolveTestId,
@@ -14,10 +14,10 @@ import {
14
14
  } from "../chunks/chunk-AR5O4BEY.js";
15
15
  import {
16
16
  useUiTheme
17
- } from "../chunks/chunk-7UEJ2FMQ.js";
17
+ } from "../chunks/chunk-X6RQGKGF.js";
18
18
  import {
19
19
  alpha
20
- } from "../chunks/chunk-V72V2Q45.js";
20
+ } from "../chunks/chunk-R5XVZRDD.js";
21
21
 
22
22
  // src/components/form/Checkbox/Checkbox.native.tsx
23
23
  import * as React from "react";
@@ -6,10 +6,11 @@ import {
6
6
  fieldLook,
7
7
  helperStyle,
8
8
  labelStyle
9
- } from "../chunks/chunk-UKROAIPA.js";
9
+ } from "../chunks/chunk-335WGKE6.js";
10
10
  import {
11
11
  withDefaults
12
12
  } from "../chunks/chunk-OXHZDFJZ.js";
13
+ import "../chunks/chunk-IMGBBIMT.js";
13
14
  import {
14
15
  webAria,
15
16
  webClick,
@@ -23,8 +24,10 @@ import {
23
24
  } from "../chunks/chunk-AR5O4BEY.js";
24
25
  import {
25
26
  useUiTheme
26
- } from "../chunks/chunk-7UEJ2FMQ.js";
27
- import "../chunks/chunk-V72V2Q45.js";
27
+ } from "../chunks/chunk-X6RQGKGF.js";
28
+ import {
29
+ fieldHeightPx
30
+ } from "../chunks/chunk-R5XVZRDD.js";
28
31
 
29
32
  // src/components/form/Input/Input.native.tsx
30
33
  import * as React from "react";
@@ -172,6 +175,7 @@ var Input = React.forwardRef((rawProps, ref) => {
172
175
  {
173
176
  color: theme.palette.primary.main,
174
177
  radius: theme.radius.field,
178
+ height: fieldHeightPx(theme.fieldHeight, size),
175
179
  testID: idFor("pulse")
176
180
  }
177
181
  ) : null,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/form/Input/Input.native.tsx","../../../src/components/form/Input/Input.helpers.ts"],"sourcesContent":["import * as React from 'react';\nimport {\n ActivityIndicator,\n Platform,\n StyleSheet,\n Text as RNText,\n TextInput as RNTextInput,\n View,\n type GestureResponderEvent,\n type InputModeOptions,\n type StyleProp,\n type TextInputProps as RNTextInputProps,\n type TextStyle,\n type ViewStyle,\n} from 'react-native';\n\nimport { resolveInputProps } from './Input.helpers';\nimport { FieldPulse } from '../field-pulse.native';\nimport { fieldLook, helperStyle, labelStyle, type FieldState } from './Input.look.native';\nimport { ADORNMENT_GAP, INPUT_GLOW, INPUT_LOADING } from './Input.metrics';\nimport type { InputProps } from './Input.types.native';\nimport { webAria, webClick, webDisabled } from '../../../platform/aria';\nimport { childTestId, resolveTestId, withoutTestIdProps } from '../../../platform/test-id';\nimport { useUiTheme } from '../../../provider/use-ui-theme.native';\n\n/**\n * The keyboard an HTML input `type` asks for.\n *\n * `password` is the only one that is not a keyboard at all — it is React\n * Native's `secureTextEntry`, which react-native-web turns back into\n * `type=\"password\"`. Everything the map does not name (`date`, `file`, `color`)\n * has no React Native equivalent and falls through to a plain text field.\n */\nconst INPUT_MODE_FOR: Record<string, InputModeOptions> = {\n text: 'text',\n search: 'search',\n email: 'email',\n tel: 'tel',\n url: 'url',\n number: 'numeric',\n};\n\nexport function typeProps(type: string | undefined): {\n inputMode?: InputModeOptions;\n secureTextEntry?: boolean;\n} {\n if (type === 'password') return { secureTextEntry: true };\n const mode = type === undefined ? undefined : INPUT_MODE_FOR[type];\n return mode === undefined ? {} : { inputMode: mode };\n}\n\n/** MUI's `0 0 15px` halo, 20px and stronger once the field is focused. */\nfunction glowStyle(color: string, focused: boolean): ViewStyle {\n const glow = focused ? INPUT_GLOW.focused : INPUT_GLOW.rest;\n return Platform.select<ViewStyle>({\n android: { elevation: glow.blur / 2 },\n default: {\n shadowColor: color,\n shadowOpacity: glow.alpha,\n shadowRadius: glow.blur,\n shadowOffset: { width: 0, height: 0 },\n },\n });\n}\n\n/**\n * An adornment in its own slot, 8px from the value as `InputAdornment` puts it.\n *\n * No `testID`: the web field names ONE element, the `<input>` itself, so the\n * native one names the same element and nothing else. A shared story that\n * counts fields by a test-id prefix (`getAllByTestId(/perf-input-/)`) counts\n * the same number on both renderers only if this holds — the two decorations\n * below keep an id because they exist only while asked for.\n */\nfunction Slot({\n children,\n side,\n}: {\n children: React.ReactNode;\n side: 'start' | 'end';\n}): React.JSX.Element | null {\n if (children == null) return null;\n return (\n <View style={[styles.slot, side === 'start' ? { marginRight: ADORNMENT_GAP } : { marginLeft: ADORNMENT_GAP }]}>\n {children}\n </View>\n );\n}\n\n/** One line of text under or over the field, or nothing at all. */\nfunction Line({\n text,\n style,\n}: {\n text: string | undefined;\n style: StyleProp<TextStyle>;\n}): React.JSX.Element | null {\n if (text === undefined) return null;\n return <RNText style={style}>{text}</RNText>;\n}\n\n/** MUI's 20px `CircularProgress` in the end slot; the platform's own arc on a device. */\nfunction Spinner({ color, testID }: { color: string; testID: string }): React.JSX.Element {\n return (\n <ActivityIndicator\n testID={testID}\n size={Platform.OS === 'ios' ? 'small' : INPUT_LOADING.spinnerSize}\n color={color}\n accessibilityLabel=\"loading\"\n />\n );\n}\n\n/** MUI's `FormLabel` appends an asterisk to a required field's label. */\nfunction labelText(label: string | undefined, required: boolean): string | undefined {\n if (label === undefined) return undefined;\n return required ? `${label} *` : label;\n}\n\n/** The focus flag the border and the label are drawn from, and the handlers that keep it. */\nfunction useFocusState(\n onFocus: RNTextInputProps['onFocus'],\n onBlur: RNTextInputProps['onBlur'],\n): {\n focused: boolean;\n handleFocus: NonNullable<RNTextInputProps['onFocus']>;\n handleBlur: NonNullable<RNTextInputProps['onBlur']>;\n} {\n const [focused, setFocused] = React.useState(false);\n return {\n focused,\n handleFocus: (event) => {\n setFocused(true);\n onFocus?.(event);\n },\n handleBlur: (event) => {\n setFocused(false);\n onBlur?.(event);\n },\n };\n}\n\n/**\n * The native `Input`.\n *\n * The label sits ABOVE the field rather than floating into a notch in its\n * border, because React Native cannot cut a notch in a border — see\n * `NATIVE-NOTES.md`. Everything else is the web field's arithmetic:\n * `Input.look.native.ts` decides the paint, `Input.metrics.ts` holds the\n * numbers, and both renderers read the same table.\n */\nexport const Input = React.forwardRef<RNTextInput, InputProps>((rawProps, ref) => {\n const {\n variant, size, type, label, error, helperText, startAdornment, endAdornment,\n fullWidth, floating: _floating, glow, pulse, loading, disabled, required,\n style, inputStyle, onClick, onPress, onFocus, onBlur, ...others\n } = resolveInputProps(rawProps);\n\n const theme = useUiTheme();\n const { focused, handleFocus, handleBlur } = useFocusState(onFocus, onBlur);\n const inactive = disabled || loading;\n const state: FieldState = { focused: focused && !inactive, error, disabled: inactive };\n const look = fieldLook(theme, variant, size, state);\n\n const idFor = (suffix: string): string => childTestId(others, suffix, 'input');\n const handlePress = (event: GestureResponderEvent): void => {\n onClick?.(event);\n onPress?.(event);\n };\n\n return (\n <View\n style={[\n styles.root,\n fullWidth ? styles.fullWidth : styles.auto,\n loading ? styles.loading : null,\n style,\n ]}\n >\n {pulse ? (\n <FieldPulse\n color={theme.palette.primary.main}\n radius={theme.radius.field}\n testID={idFor('pulse')}\n />\n ) : null}\n <Line text={labelText(label, required)} style={labelStyle(theme, variant, size, state)} />\n <View style={[look.box, glow ? glowStyle(theme.palette.primary.main, state.focused) : null]}>\n <Slot side=\"start\">{startAdornment}</Slot>\n <RNTextInput\n ref={ref}\n testID={resolveTestId(others, 'input')}\n style={[look.value, inputStyle]}\n placeholderTextColor={look.placeholder}\n editable={!inactive}\n // The web input keeps focus on Enter (a form submits, the caret stays);\n // React Native dismisses the keyboard for a single-line field. A\n // caller wanting the platform behaviour passes its own.\n blurOnSubmit={false}\n aria-label={label}\n aria-disabled={inactive}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onPressIn={handlePress}\n {...webClick(handlePress)}\n {...webDisabled(inactive)}\n {...webAria({ 'aria-invalid': error, 'aria-required': required })}\n {...typeProps(type)}\n {...withoutTestIdProps(others)}\n />\n <Slot side=\"end\">\n {loading ? <Spinner color={theme.palette.primary.main} testID={idFor('loading')} /> : endAdornment}\n </Slot>\n </View>\n <Line text={helperText} style={helperStyle(theme, variant, size, state)} />\n </View>\n );\n});\n\nInput.displayName = 'Input';\n\nconst styles = StyleSheet.create({\n root: {\n position: 'relative',\n },\n fullWidth: {\n alignSelf: 'stretch',\n width: '100%',\n },\n auto: {\n alignSelf: 'flex-start',\n },\n loading: {\n opacity: INPUT_LOADING.opacity,\n },\n slot: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n});\n","import type { InputBaseProps } from './Input.base';\nimport { withDefaults } from '../../../utils/withDefaults';\n\ntype InputDefaultedKeys =\n | 'variant'\n | 'size'\n | 'error'\n | 'fullWidth'\n | 'floating'\n | 'glow'\n | 'pulse'\n | 'loading'\n | 'disabled'\n | 'required';\n\n/**\n * Generic over the renderer's own props, as `resolveButtonProps` is: the web\n * and the native `Input` pass different handler and `value` types through, and\n * both come back out untouched.\n */\nexport type ResolvedInputProps<P extends InputBaseProps> = P &\n Required<Pick<InputBaseProps, InputDefaultedKeys>>;\n\n/**\n * The defaults the web `Input` declares in its destructuring. `fullWidth` is\n * true here and false in MUI: a field in this package fills its column unless\n * it is told not to.\n */\nconst INPUT_DEFAULTS: Required<Pick<InputBaseProps, InputDefaultedKeys>> = {\n variant: 'outlined',\n size: 'md',\n error: false,\n fullWidth: true,\n floating: false,\n glow: false,\n pulse: false,\n loading: false,\n disabled: false,\n required: false,\n};\n\nexport const resolveInputProps = <P extends InputBaseProps>(props: P): ResolvedInputProps<P> =>\n withDefaults(props, INPUT_DEFAULTS as Partial<P>) as ResolvedInputProps<P>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAY,WAAW;AACvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,aAAa;AAAA,EACb;AAAA,OAOK;;;ACcP,IAAM,iBAAqE;AAAA,EACzE,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAAU;AACZ;AAEO,IAAM,oBAAoB,CAA2B,UAC1D,aAAa,OAAO,cAA4B;;;ADyC9C,cAwGE,YAxGF;AAlDJ,IAAM,iBAAmD;AAAA,EACvD,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,KAAK;AAAA,EACL,KAAK;AAAA,EACL,QAAQ;AACV;AAEO,SAAS,UAAU,MAGxB;AACA,MAAI,SAAS,WAAY,QAAO,EAAE,iBAAiB,KAAK;AACxD,QAAM,OAAO,SAAS,SAAY,SAAY,eAAe,IAAI;AACjE,SAAO,SAAS,SAAY,CAAC,IAAI,EAAE,WAAW,KAAK;AACrD;AAGA,SAAS,UAAU,OAAe,SAA6B;AAC7D,QAAM,OAAO,U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K,SAAS,0BAAe;AAAA,UACnC;AAAA,YAAC;AAAA;AAAA,cACC;AAAA,cACA,QAAQ,cAAc,QAAQ,OAAO;AAAA,cACrC,OAAO,CAAC,KAAK,OAAO,UAAU;AAAA,cAC9B,sBAAsB,KAAK;AAAA,cAC3B,UAAU,CAAC;AAAA,cAIX,cAAc;AAAA,cACd,cAAY;AAAA,cACZ,iBAAe;AAAA,cACf,SAAS;AAAA,cACT,QAAQ;AAAA,cACR,WAAW;AAAA,cACV,GAAG,SAAS,WAAW;AAAA,cACvB,GAAG,YAAY,QAAQ;AAAA,cACvB,GAAG,QAAQ,EAAE,gBAAgB,OAAO,iBAAiB,SAAS,CAAC;AAAA,cAC/D,GAAG,UAAU,IAAI;AAAA,cACjB,GAAG,mBAAmB,MAAM;AAAA;AAAA,UAC/B;AAAA,UACA,oBAAC,QAAK,MAAK,OACR,oBAAU,oBAAC,WAAQ,OAAO,MAAM,QAAQ,QAAQ,MAAM,QAAQ,MAAM,SAAS,GAAG,IAAK,cACxF;AAAA,WACF;AAAA,QACA,oBAAC,QAAK,MAAM,YAAY,OAAO,YAAY,OAAO,SAAS,MAAM,KAAK,GAAG;AAAA;AAAA;AAAA,EAC3E;AAEJ,CAAC;AAED,MAAM,cAAc;AAEpB,IAAM,SAAS,WAAW,OAAO;AAAA,EAC/B,MAAM;AAAA,IACJ,UAAU;AAAA,EACZ;AAAA,EACA,WAAW;AAAA,IACT,WAAW;AAAA,IACX,OAAO;AAAA,EACT;AAAA,EACA,MAAM;AAAA,IACJ,WAAW;AAAA,EACb;AAAA,EACA,SAAS;AAAA,IACP,SAAS,cAAc;AAAA,EACzB;AAAA,EACA,MAAM;AAAA,IACJ,eAAe;AAAA,IACf,YAAY;AAAA,EACd;AACF,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/form/Input/Input.native.tsx","../../../src/components/form/Input/Input.helpers.ts"],"sourcesContent":["import * as React from 'react';\nimport {\n ActivityIndicator,\n Platform,\n StyleSheet,\n Text as RNText,\n TextInput as RNTextInput,\n View,\n type GestureResponderEvent,\n type InputModeOptions,\n type StyleProp,\n type TextInputProps as RNTextInputProps,\n type TextStyle,\n type ViewStyle,\n} from 'react-native';\n\nimport { resolveInputProps } from './Input.helpers';\nimport { FieldPulse } from '../field-pulse.native';\nimport { fieldLook, helperStyle, labelStyle, type FieldState } from './Input.look.native';\nimport { ADORNMENT_GAP, INPUT_GLOW, INPUT_LOADING } from './Input.metrics';\nimport type { InputProps } from './Input.types.native';\nimport { webAria, webClick, webDisabled } from '../../../platform/aria';\nimport { childTestId, resolveTestId, withoutTestIdProps } from '../../../platform/test-id';\nimport { fieldHeightPx } from '../../../tokens/field-height.core';\nimport { useUiTheme } from '../../../provider/use-ui-theme.native';\n\n/**\n * The keyboard an HTML input `type` asks for.\n *\n * `password` is the only one that is not a keyboard at all — it is React\n * Native's `secureTextEntry`, which react-native-web turns back into\n * `type=\"password\"`. Everything the map does not name (`date`, `file`, `color`)\n * has no React Native equivalent and falls through to a plain text field.\n */\nconst INPUT_MODE_FOR: Record<string, InputModeOptions> = {\n text: 'text',\n search: 'search',\n email: 'email',\n tel: 'tel',\n url: 'url',\n number: 'numeric',\n};\n\nexport function typeProps(type: string | undefined): {\n inputMode?: InputModeOptions;\n secureTextEntry?: boolean;\n} {\n if (type === 'password') return { secureTextEntry: true };\n const mode = type === undefined ? undefined : INPUT_MODE_FOR[type];\n return mode === undefined ? {} : { inputMode: mode };\n}\n\n/** MUI's `0 0 15px` halo, 20px and stronger once the field is focused. */\nfunction glowStyle(color: string, focused: boolean): ViewStyle {\n const glow = focused ? INPUT_GLOW.focused : INPUT_GLOW.rest;\n return Platform.select<ViewStyle>({\n android: { elevation: glow.blur / 2 },\n default: {\n shadowColor: color,\n shadowOpacity: glow.alpha,\n shadowRadius: glow.blur,\n shadowOffset: { width: 0, height: 0 },\n },\n });\n}\n\n/**\n * An adornment in its own slot, 8px from the value as `InputAdornment` puts it.\n *\n * No `testID`: the web field names ONE element, the `<input>` itself, so the\n * native one names the same element and nothing else. A shared story that\n * counts fields by a test-id prefix (`getAllByTestId(/perf-input-/)`) counts\n * the same number on both renderers only if this holds — the two decorations\n * below keep an id because they exist only while asked for.\n */\nfunction Slot({\n children,\n side,\n}: {\n children: React.ReactNode;\n side: 'start' | 'end';\n}): React.JSX.Element | null {\n if (children == null) return null;\n return (\n <View style={[styles.slot, side === 'start' ? { marginRight: ADORNMENT_GAP } : { marginLeft: ADORNMENT_GAP }]}>\n {children}\n </View>\n );\n}\n\n/** One line of text under or over the field, or nothing at all. */\nfunction Line({\n text,\n style,\n}: {\n text: string | undefined;\n style: StyleProp<TextStyle>;\n}): React.JSX.Element | null {\n if (text === undefined) return null;\n return <RNText style={style}>{text}</RNText>;\n}\n\n/** MUI's 20px `CircularProgress` in the end slot; the platform's own arc on a device. */\nfunction Spinner({ color, testID }: { color: string; testID: string }): React.JSX.Element {\n return (\n <ActivityIndicator\n testID={testID}\n size={Platform.OS === 'ios' ? 'small' : INPUT_LOADING.spinnerSize}\n color={color}\n accessibilityLabel=\"loading\"\n />\n );\n}\n\n/** MUI's `FormLabel` appends an asterisk to a required field's label. */\nfunction labelText(label: string | undefined, required: boolean): string | undefined {\n if (label === undefined) return undefined;\n return required ? `${label} *` : label;\n}\n\n/** The focus flag the border and the label are drawn from, and the handlers that keep it. */\nfunction useFocusState(\n onFocus: RNTextInputProps['onFocus'],\n onBlur: RNTextInputProps['onBlur'],\n): {\n focused: boolean;\n handleFocus: NonNullable<RNTextInputProps['onFocus']>;\n handleBlur: NonNullable<RNTextInputProps['onBlur']>;\n} {\n const [focused, setFocused] = React.useState(false);\n return {\n focused,\n handleFocus: (event) => {\n setFocused(true);\n onFocus?.(event);\n },\n handleBlur: (event) => {\n setFocused(false);\n onBlur?.(event);\n },\n };\n}\n\n/**\n * The native `Input`.\n *\n * The label sits ABOVE the field rather than floating into a notch in its\n * border, because React Native cannot cut a notch in a border — see\n * `NATIVE-NOTES.md`. Everything else is the web field's arithmetic:\n * `Input.look.native.ts` decides the paint, `Input.metrics.ts` holds the\n * numbers, and both renderers read the same table.\n */\nexport const Input = React.forwardRef<RNTextInput, InputProps>((rawProps, ref) => {\n const {\n variant, size, type, label, error, helperText, startAdornment, endAdornment,\n fullWidth, floating: _floating, glow, pulse, loading, disabled, required,\n style, inputStyle, onClick, onPress, onFocus, onBlur, ...others\n } = resolveInputProps(rawProps);\n\n const theme = useUiTheme();\n const { focused, handleFocus, handleBlur } = useFocusState(onFocus, onBlur);\n const inactive = disabled || loading;\n const state: FieldState = { focused: focused && !inactive, error, disabled: inactive };\n const look = fieldLook(theme, variant, size, state);\n\n const idFor = (suffix: string): string => childTestId(others, suffix, 'input');\n const handlePress = (event: GestureResponderEvent): void => {\n onClick?.(event);\n onPress?.(event);\n };\n\n return (\n <View\n style={[\n styles.root,\n fullWidth ? styles.fullWidth : styles.auto,\n loading ? styles.loading : null,\n style,\n ]}\n >\n {pulse ? (\n <FieldPulse\n color={theme.palette.primary.main}\n radius={theme.radius.field}\n height={fieldHeightPx(theme.fieldHeight, size)}\n testID={idFor('pulse')}\n />\n ) : null}\n <Line text={labelText(label, required)} style={labelStyle(theme, variant, size, state)} />\n <View style={[look.box, glow ? glowStyle(theme.palette.primary.main, state.focused) : null]}>\n <Slot side=\"start\">{startAdornment}</Slot>\n <RNTextInput\n ref={ref}\n testID={resolveTestId(others, 'input')}\n style={[look.value, inputStyle]}\n placeholderTextColor={look.placeholder}\n editable={!inactive}\n // The web input keeps focus on Enter (a form submits, the caret stays);\n // React Native dismisses the keyboard for a single-line field. A\n // caller wanting the platform behaviour passes its own.\n blurOnSubmit={false}\n aria-label={label}\n aria-disabled={inactive}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onPressIn={handlePress}\n {...webClick(handlePress)}\n {...webDisabled(inactive)}\n {...webAria({ 'aria-invalid': error, 'aria-required': required })}\n {...typeProps(type)}\n {...withoutTestIdProps(others)}\n />\n <Slot side=\"end\">\n {loading ? <Spinner color={theme.palette.primary.main} testID={idFor('loading')} /> : endAdornment}\n </Slot>\n </View>\n <Line text={helperText} style={helperStyle(theme, variant, size, state)} />\n </View>\n );\n});\n\nInput.displayName = 'Input';\n\nconst styles = StyleSheet.create({\n root: {\n position: 'relative',\n },\n fullWidth: {\n alignSelf: 'stretch',\n width: '100%',\n },\n auto: {\n alignSelf: 'flex-start',\n },\n loading: {\n opacity: INPUT_LOADING.opacity,\n },\n slot: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n});\n","import type { InputBaseProps } from './Input.base';\nimport { withDefaults } from '../../../utils/withDefaults';\n\ntype InputDefaultedKeys =\n | 'variant'\n | 'size'\n | 'error'\n | 'fullWidth'\n | 'floating'\n | 'glow'\n | 'pulse'\n | 'loading'\n | 'disabled'\n | 'required';\n\n/**\n * Generic over the renderer's own props, as `resolveButtonProps` is: the web\n * and the native `Input` pass different handler and `value` types through, and\n * both come back out untouched.\n */\nexport type ResolvedInputProps<P extends InputBaseProps> = P &\n Required<Pick<InputBaseProps, InputDefaultedKeys>>;\n\n/**\n * The defaults the web `Input` declares in its destructuring. `fullWidth` is\n * true here and false in MUI: a field in this package fills its column unless\n * it is told not to.\n */\nconst INPUT_DEFAULTS: Required<Pick<InputBaseProps, InputDefaultedKeys>> = {\n variant: 'outlined',\n size: 'md',\n error: false,\n fullWidth: true,\n floating: false,\n glow: false,\n pulse: false,\n loading: false,\n disabled: false,\n required: false,\n};\n\nexport const resolveInputProps = <P extends InputBaseProps>(props: P): ResolvedInputProps<P> =>\n withDefaults(props, INPUT_DEFAULTS as Partial<P>) as ResolvedInputProps<P>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAY,WAAW;AACvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,aAAa;AAAA,EACb;AAAA,OAOK;;;ACcP,IAAM,iBAAqE;AAAA,EACzE,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AAAA,EACP,WAAW;AA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WACF;AAAA,QACA,oBAAC,QAAK,MAAM,YAAY,OAAO,YAAY,OAAO,SAAS,MAAM,KAAK,GAAG;AAAA;AAAA;AAAA,EAC3E;AAEJ,CAAC;AAED,MAAM,cAAc;AAEpB,IAAM,SAAS,WAAW,OAAO;AAAA,EAC/B,MAAM;AAAA,IACJ,UAAU;AAAA,EACZ;AAAA,EACA,WAAW;AAAA,IACT,WAAW;AAAA,IACX,OAAO;AAAA,EACT;AAAA,EACA,MAAM;AAAA,IACJ,WAAW;AAAA,EACb;AAAA,EACA,SAAS;AAAA,IACP,SAAS,cAAc;AAAA,EACzB;AAAA,EACA,MAAM;AAAA,IACJ,eAAe;AAAA,IACf,YAAY;AAAA,EACd;AACF,CAAC;","names":[]}
@@ -7,10 +7,11 @@ import {
7
7
  helperStyle,
8
8
  horizontalBorderInset,
9
9
  labelStyle
10
- } from "../chunks/chunk-UKROAIPA.js";
10
+ } from "../chunks/chunk-335WGKE6.js";
11
11
  import {
12
12
  withDefaults
13
13
  } from "../chunks/chunk-OXHZDFJZ.js";
14
+ import "../chunks/chunk-IMGBBIMT.js";
14
15
  import {
15
16
  webAria,
16
17
  webKeyDown,
@@ -19,7 +20,7 @@ import {
19
20
  import {
20
21
  ICON_SIZES,
21
22
  Icon
22
- } from "../chunks/chunk-S5SLTMPB.js";
23
+ } from "../chunks/chunk-5IASLIBI.js";
23
24
  import "../chunks/chunk-5WLOVHKK.js";
24
25
  import {
25
26
  resolveTestId,
@@ -27,10 +28,11 @@ import {
27
28
  } from "../chunks/chunk-AR5O4BEY.js";
28
29
  import {
29
30
  useUiTheme
30
- } from "../chunks/chunk-7UEJ2FMQ.js";
31
+ } from "../chunks/chunk-X6RQGKGF.js";
31
32
  import {
32
- alpha
33
- } from "../chunks/chunk-V72V2Q45.js";
33
+ alpha,
34
+ fieldHeightPx
35
+ } from "../chunks/chunk-R5XVZRDD.js";
34
36
 
35
37
  // src/components/form/Select/Select.native.tsx
36
38
  import * as React from "react";
@@ -239,6 +241,24 @@ function useSelectValue(value, defaultValue) {
239
241
  const [own, setOwn] = React.useState(defaultValue ?? "");
240
242
  return [value ?? own, setOwn];
241
243
  }
244
+ function SelectPulse({
245
+ theme,
246
+ size,
247
+ testID
248
+ }) {
249
+ return /* @__PURE__ */ jsx(
250
+ FieldPulse,
251
+ {
252
+ color: theme.palette.primary.main,
253
+ radius: theme.radius.field,
254
+ height: fieldHeightPx(theme.fieldHeight, size ?? "md"),
255
+ testID
256
+ }
257
+ );
258
+ }
259
+ function rootStyle(theme, fullWidth, open) {
260
+ return [styles.root, fullWidth ? styles.fullWidth : styles.auto, open ? { zIndex: theme.zIndex.modal } : null];
261
+ }
242
262
  var Select = React.forwardRef((rawProps, ref) => {
243
263
  const {
244
264
  variant,
@@ -289,17 +309,10 @@ var Select = React.forwardRef((rawProps, ref) => {
289
309
  {
290
310
  ref,
291
311
  testID: ids.root,
292
- style: [styles.root, fullWidth ? styles.fullWidth : styles.auto, style],
312
+ style: [rootStyle(theme, fullWidth, open), style],
293
313
  ...withoutTestIdProps(others),
294
314
  children: [
295
- pulse ? /* @__PURE__ */ jsx(
296
- FieldPulse,
297
- {
298
- color: theme.palette.primary.main,
299
- radius: theme.radius.field,
300
- testID: `${ids.trigger}-pulse`
301
- }
302
- ) : null,
315
+ pulse ? /* @__PURE__ */ jsx(SelectPulse, { theme, size, testID: `${ids.trigger}-pulse` }) : null,
303
316
  label === void 0 ? null : /* @__PURE__ */ jsx(RNText, { id: labelId, style: labelStyle(theme, inputVariantFor(variant), size, state), children: label }),
304
317
  /* @__PURE__ */ jsxs(View, { style: [styles.anchor, open ? { zIndex: theme.zIndex.modal } : null], children: [
305
318
  /* @__PURE__ */ jsx(