@12-apps/ui 6.25.0 → 6.27.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 (506) hide show
  1. package/dist/_internal/components/data-display/Alert/Alert.helpers.js +5 -1
  2. package/dist/_internal/components/data-display/Alert/Alert.js +5 -5
  3. package/dist/_internal/components/data-display/Alert/Alert.metrics.js +2 -2
  4. package/dist/_internal/components/data-display/Alert/Alert.styles.js +4 -4
  5. package/dist/_internal/components/data-display/Avatar/Avatar.js +3 -3
  6. package/dist/_internal/components/data-display/Avatar/Avatar.view.js +2 -2
  7. package/dist/_internal/components/data-display/Badge/Badge.animations.js +3 -3
  8. package/dist/_internal/components/data-display/Badge/Badge.js +7 -7
  9. package/dist/_internal/components/data-display/Badge/Badge.metrics.js +2 -2
  10. package/dist/_internal/components/data-display/Badge/Badge.styles.js +5 -5
  11. package/dist/_internal/components/data-display/Badge/Badge.variants.js +3 -3
  12. package/dist/_internal/components/data-display/Badge/BadgeContent.js +6 -6
  13. package/dist/_internal/components/data-display/Banner/Banner.js +4 -4
  14. package/dist/_internal/components/data-display/Banner/Banner.styles.js +3 -3
  15. package/dist/_internal/components/data-display/CardKit/CardKebab.js +4 -4
  16. package/dist/_internal/components/data-display/CardKit/card-actions-context.js +6 -6
  17. package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +10 -10
  18. package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +4 -4
  19. package/dist/_internal/components/data-display/Carousel/Carousel.chrome.js +1 -1
  20. package/dist/_internal/components/data-display/Carousel/Carousel.js +1 -1
  21. package/dist/_internal/components/data-display/Carousel/Carousel.parts.js +1 -1
  22. package/dist/_internal/components/data-display/Carousel/Carousel.styles.js +1 -1
  23. package/dist/_internal/components/data-display/Chart/Chart.js +5 -5
  24. package/dist/_internal/components/data-display/Chart/SpecChart.js +6 -6
  25. package/dist/_internal/components/data-display/Chart/chart-context.js +3 -3
  26. package/dist/_internal/components/data-display/Chart/chart-internals.js +1 -1
  27. package/dist/_internal/components/data-display/Chart/chart-renderers.js +4 -4
  28. package/dist/_internal/components/data-display/DataViews/DataViewsBoard.js +4 -4
  29. package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +37 -37
  30. package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +55 -54
  31. package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +6 -6
  32. package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +7 -7
  33. package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +12 -11
  34. package/dist/_internal/components/data-display/DataViews/base-card.js +9 -9
  35. package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +12 -12
  36. package/dist/_internal/components/data-display/DataViews/base-list-card-gutters.js +3 -3
  37. package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +8 -8
  38. package/dist/_internal/components/data-display/DataViews/base-list-card.js +16 -16
  39. package/dist/_internal/components/data-display/DataViews/card-surface.js +4 -4
  40. package/dist/_internal/components/data-display/DataViews/data-views-category-pill.js +5 -5
  41. package/dist/_internal/components/data-display/DataViews/data-views-columns-tab.js +4 -4
  42. package/dist/_internal/components/data-display/DataViews/data-views-columns.js +5 -5
  43. package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +11 -11
  44. package/dist/_internal/components/data-display/DataViews/data-views-display-tabs.js +6 -6
  45. package/dist/_internal/components/data-display/DataViews/data-views-empty.js +6 -6
  46. package/dist/_internal/components/data-display/DataViews/data-views-export.js +6 -6
  47. package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +6 -6
  48. package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +12 -12
  49. package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +4 -4
  50. package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +34 -34
  51. package/dist/_internal/components/data-display/DataViews/data-views-header-row.js +4 -4
  52. package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +13 -13
  53. package/dist/_internal/components/data-display/DataViews/data-views-layout-context.js +2 -2
  54. package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +4 -4
  55. package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +7 -7
  56. package/dist/_internal/components/data-display/DataViews/data-views-scope-tabs.js +3 -3
  57. package/dist/_internal/components/data-display/DataViews/data-views-select-all-strip.js +6 -6
  58. package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +15 -15
  59. package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +19 -18
  60. package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +14 -14
  61. package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +6 -6
  62. package/dist/_internal/components/data-display/DataViews/list-card-rails.js +3 -3
  63. package/dist/_internal/components/data-display/DataViews/save-view-preview.js +4 -4
  64. package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +7 -7
  65. package/dist/_internal/components/data-display/DataViews/use-saved-views-controller.js +2 -2
  66. package/dist/_internal/components/data-display/DescriptionItem/DescriptionItem.js +4 -4
  67. package/dist/_internal/components/data-display/FleetMap/FleetBody.js +11 -11
  68. package/dist/_internal/components/data-display/FleetMap/FleetCanvas.js +8 -8
  69. package/dist/_internal/components/data-display/FleetMap/FleetMap.js +13 -13
  70. package/dist/_internal/components/data-display/FleetMap/FleetRoster.js +2 -2
  71. package/dist/_internal/components/data-display/Lightbox/Lightbox.js +1 -1
  72. package/dist/_internal/components/data-display/MapPreview/MapDecorations.js +2 -2
  73. package/dist/_internal/components/data-display/MapPreview/MapPreview.hooks.js +2 -2
  74. package/dist/_internal/components/data-display/MapPreview/MapPreview.js +7 -7
  75. package/dist/_internal/components/data-display/MapPreview/MapTiles.js +2 -2
  76. package/dist/_internal/components/data-display/MapPreview/StaticMapView.js +4 -4
  77. package/dist/_internal/components/data-display/MapPreview/useMapPreview.js +3 -3
  78. package/dist/_internal/components/data-display/Progress/Progress.js +4 -4
  79. package/dist/_internal/components/data-display/Progress/Progress.metrics.js +2 -2
  80. package/dist/_internal/components/data-display/Progress/Progress.styles.js +3 -3
  81. package/dist/_internal/components/data-display/Sheet/Sheet.body.js +1 -1
  82. package/dist/_internal/components/data-display/Sheet/Sheet.js +4 -4
  83. package/dist/_internal/components/data-display/Sheet/Sheet.styles.js +1 -1
  84. package/dist/_internal/components/data-display/Table/Table.js +2 -2
  85. package/dist/_internal/components/data-display/index.js +44 -44
  86. package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +4 -4
  87. package/dist/_internal/components/feedback/index.js +4 -4
  88. package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.hooks.js +2 -2
  89. package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.js +5 -5
  90. package/dist/_internal/components/form/Autocomplete/Autocomplete.js +2 -2
  91. package/dist/_internal/components/form/Button/Button.js +3 -3
  92. package/dist/_internal/components/form/Button/Button.styles.js +2 -2
  93. package/dist/_internal/components/form/Calendar/Calendar.hooks.js +2 -2
  94. package/dist/_internal/components/form/Calendar/Calendar.js +3 -3
  95. package/dist/_internal/components/form/CategorySelect/CategoryPanel.js +1 -1
  96. package/dist/_internal/components/form/CategorySelect/CategorySelect.js +4 -4
  97. package/dist/_internal/components/form/Checkbox/Checkbox.js +2 -2
  98. package/dist/_internal/components/form/Command/Command.js +4 -4
  99. package/dist/_internal/components/form/Command/Command.styles.js +1 -1
  100. package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +5 -5
  101. package/dist/_internal/components/form/Label/Label.js +1 -1
  102. package/dist/_internal/components/form/Label/Label.styles.js +1 -1
  103. package/dist/_internal/components/form/Menubar/Menubar.item.js +1 -1
  104. package/dist/_internal/components/form/Menubar/Menubar.js +1 -1
  105. package/dist/_internal/components/form/Menubar/Menubar.styles.js +1 -1
  106. package/dist/_internal/components/form/Menubar/Menubar.toolbar.js +1 -1
  107. package/dist/_internal/components/form/PhoneInput/PhoneInput.hooks.js +2 -2
  108. package/dist/_internal/components/form/PhoneInput/PhoneInput.js +3 -3
  109. package/dist/_internal/components/form/RichTextEditor/RichTextEditor.js +2 -2
  110. package/dist/_internal/components/form/Switch/Switch.ids.js +8 -0
  111. package/dist/_internal/components/form/Switch/Switch.ids.js.map +1 -0
  112. package/dist/_internal/components/form/Switch/Switch.js +6 -5
  113. package/dist/_internal/components/form/Switch/Switch.metrics.js +5 -1
  114. package/dist/_internal/components/form/Switch/Switch.parts.js +6 -8
  115. package/dist/_internal/components/form/Switch/Switch.styles.js +5 -3
  116. package/dist/_internal/components/form/index.js +34 -33
  117. package/dist/_internal/components/form/total-form/Fields/CategoryField.js +5 -5
  118. package/dist/_internal/components/form/total-form/Fields/index.js +6 -6
  119. package/dist/_internal/components/form/total-form/SubmitButton.js +4 -4
  120. package/dist/_internal/components/index.js +83 -82
  121. package/dist/_internal/components/layout/Box/Box.js +4 -4
  122. package/dist/_internal/components/layout/Stack/Stack.js +5 -5
  123. package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +7 -7
  124. package/dist/_internal/components/navigation/AppHeader/AppHeader.identity.js +1 -1
  125. package/dist/_internal/components/navigation/index.js +7 -7
  126. package/dist/_internal/components/typography/Heading/Heading.js +4 -4
  127. package/dist/_internal/components/typography/Heading/Heading.metrics.js +2 -2
  128. package/dist/_internal/components/typography/Heading/Heading.styles.js +3 -3
  129. package/dist/_internal/components/typography/Paragraph/Paragraph.js +2 -2
  130. package/dist/_internal/components/typography/Text/Text.js +3 -3
  131. package/dist/_internal/components/typography/Text/Text.metrics.js +2 -2
  132. package/dist/_internal/components/typography/index.js +7 -7
  133. package/dist/_internal/icons/Icon.js +4 -4
  134. package/dist/_internal/provider/UiProvider.js +3 -3
  135. package/dist/_internal/provider/mui-bridge.js +2 -2
  136. package/dist/_internal/provider/use-ui-theme.js +3 -3
  137. package/dist/_internal/social-login-button/social-login-button.js +9 -9
  138. package/dist/_internal/tokens/theme.js +3 -1
  139. package/dist/_internal/user-avatar/user-avatar.js +8 -8
  140. package/dist/charts.js +6 -6
  141. package/dist/{chunk-2GI7ANEL.js → chunk-22X7TT6Z.js} +4 -4
  142. package/dist/{chunk-WR5JFDQ5.js → chunk-27BL3DNT.js} +8 -8
  143. package/dist/{chunk-E55CJV65.js → chunk-2KVQIGVE.js} +2 -2
  144. package/dist/{chunk-BB2OUERT.js → chunk-2LSCK45B.js} +7 -4
  145. package/dist/chunk-2LSCK45B.js.map +1 -0
  146. package/dist/{chunk-W3FAKT3D.js → chunk-2SWQ6HIK.js} +4 -4
  147. package/dist/{chunk-ISW5K72V.js → chunk-2ZRZTGWP.js} +5 -5
  148. package/dist/{chunk-I5SBTNV2.js → chunk-3GB6KWHH.js} +2 -2
  149. package/dist/{chunk-ZEG2LNBY.js → chunk-3PJLT5FX.js} +2 -2
  150. package/dist/{chunk-57Z2ND3N.js → chunk-3VZT2FAI.js} +4 -4
  151. package/dist/{chunk-MLCFODJO.js → chunk-3W2IS5RH.js} +5 -1
  152. package/dist/{chunk-MLCFODJO.js.map → chunk-3W2IS5RH.js.map} +1 -1
  153. package/dist/{chunk-PFDM2OIP.js → chunk-45OHGD2B.js} +4 -4
  154. package/dist/{chunk-BH5BXLGI.js → chunk-4A2Q22HO.js} +3 -3
  155. package/dist/{chunk-46UPILLK.js → chunk-4ETQRBZC.js} +4 -4
  156. package/dist/{chunk-WM6Y2S6W.js → chunk-5QUSX3TC.js} +5 -5
  157. package/dist/{chunk-AVGTTWTE.js → chunk-65DLYC4S.js} +4 -4
  158. package/dist/{chunk-TVPPA4RD.js → chunk-65METCKT.js} +16 -16
  159. package/dist/{chunk-OQFSYMHJ.js → chunk-67ALTEWH.js} +2 -2
  160. package/dist/{chunk-OGGHD64H.js → chunk-6SK3MTYJ.js} +2 -2
  161. package/dist/{chunk-OE2ZVL67.js → chunk-6VHCSPKK.js} +3 -3
  162. package/dist/{chunk-WAPJ2DL3.js → chunk-72T5PAW7.js} +4 -4
  163. package/dist/{chunk-SLVQ33AN.js → chunk-77DF5LKI.js} +2 -2
  164. package/dist/{chunk-7KWBGMQC.js → chunk-77OXG6DH.js} +5 -5
  165. package/dist/{chunk-Y3KRUT7O.js → chunk-7AIHK2XM.js} +2 -2
  166. package/dist/{chunk-MHV5Y5MR.js → chunk-7KEGJH3Q.js} +3 -3
  167. package/dist/{chunk-KMXAPYU2.js → chunk-7NEUPEV5.js} +2 -2
  168. package/dist/{chunk-67L7HMEP.js → chunk-7Z2AQEC5.js} +2 -2
  169. package/dist/{chunk-PQECNGDE.js → chunk-AGYGNNOM.js} +2 -2
  170. package/dist/{chunk-ZTF5C2GA.js → chunk-B5SW7I5W.js} +2 -2
  171. package/dist/{chunk-TXHJX2NG.js → chunk-BGYLL467.js} +4 -4
  172. package/dist/{chunk-R7R3LOKW.js → chunk-CA7TA36R.js} +2 -2
  173. package/dist/{chunk-FPFUXRD2.js → chunk-CKJI7JO5.js} +2 -2
  174. package/dist/{chunk-HMV4QMXS.js → chunk-CMN26J5Y.js} +4 -4
  175. package/dist/{chunk-KVEHH4SA.js → chunk-DB2MAYPK.js} +2 -2
  176. package/dist/{chunk-2ECT4IY2.js → chunk-DIHVWBQV.js} +36 -17
  177. package/dist/chunk-DIHVWBQV.js.map +1 -0
  178. package/dist/{chunk-V4FKHLEB.js → chunk-DTIB5KWP.js} +3 -3
  179. package/dist/{chunk-MESRKY67.js → chunk-DW6GBMLQ.js} +3 -3
  180. package/dist/{chunk-JO6BBSGY.js → chunk-DWJBOR47.js} +3 -3
  181. package/dist/{chunk-YW5T6KZ5.js → chunk-DYESJJ3Q.js} +9 -9
  182. package/dist/{chunk-TZDDL3DR.js → chunk-ECMJ5VPW.js} +2 -2
  183. package/dist/{chunk-OH3YGJT5.js → chunk-EMNGIYH6.js} +5 -5
  184. package/dist/{chunk-CZJLWCEG.js → chunk-EPNCYUQ7.js} +4 -4
  185. package/dist/{chunk-JZXWCEH5.js → chunk-EQA4VQEO.js} +2 -2
  186. package/dist/{chunk-3N6EK6K5.js → chunk-ERX4XIYC.js} +2 -2
  187. package/dist/{chunk-TTLI6PF7.js → chunk-FF3R67WD.js} +5 -5
  188. package/dist/{chunk-WNMYWQ7D.js → chunk-FOF2RAVQ.js} +12 -10
  189. package/dist/chunk-FOF2RAVQ.js.map +1 -0
  190. package/dist/{chunk-KLREH4X6.js → chunk-G2JPUHEJ.js} +2 -2
  191. package/dist/{chunk-4J5EN4FQ.js → chunk-GBX5ACPF.js} +5 -5
  192. package/dist/{chunk-ZZMZF7PZ.js → chunk-GQJ4NCZ6.js} +3 -3
  193. package/dist/{chunk-IPVYEPXO.js → chunk-GSTRPZS4.js} +5 -5
  194. package/dist/{chunk-HFXTAEYY.js → chunk-GTLJYAEG.js} +2 -2
  195. package/dist/{chunk-M4LFDGI6.js → chunk-GYQT47YZ.js} +2 -2
  196. package/dist/{chunk-JSH3HFDQ.js → chunk-H3BQFEN5.js} +2 -2
  197. package/dist/{chunk-OV4WREMW.js → chunk-HKB5C2KY.js} +7 -7
  198. package/dist/{chunk-BLBOYCOV.js → chunk-HKV4MQ2W.js} +5 -5
  199. package/dist/{chunk-4MGFUPQT.js → chunk-HOJL2GKW.js} +4 -4
  200. package/dist/{chunk-HR7YTBR7.js → chunk-IASDP44E.js} +4 -4
  201. package/dist/{chunk-YMRI5QKG.js → chunk-IV5QQLCS.js} +2 -2
  202. package/dist/{chunk-JUHUKZGU.js → chunk-JD3D6Y4U.js} +2 -2
  203. package/dist/{chunk-FR67FG2U.js → chunk-JFRKBSWI.js} +35 -25
  204. package/dist/chunk-JFRKBSWI.js.map +1 -0
  205. package/dist/{chunk-AXTLFK4T.js → chunk-KAV63FBG.js} +2 -2
  206. package/dist/{chunk-2PBGVMM2.js → chunk-KOFO6QZY.js} +2 -2
  207. package/dist/{chunk-RP5FK3SO.js → chunk-L7LCSZ3H.js} +3 -3
  208. package/dist/{chunk-MNXVXW4T.js → chunk-L7S6N67X.js} +2 -2
  209. package/dist/{chunk-N3QUEBNS.js → chunk-L7VH6IMR.js} +14 -1
  210. package/dist/chunk-L7VH6IMR.js.map +1 -0
  211. package/dist/{chunk-JXPHU3K5.js → chunk-LGJ2H4AH.js} +5 -5
  212. package/dist/{chunk-W4YWU7LQ.js → chunk-LO2B7FDQ.js} +2 -2
  213. package/dist/{chunk-PWR7K5OP.js → chunk-LV4UTYAD.js} +2 -2
  214. package/dist/{chunk-OG2FP6SE.js → chunk-M4NFXC5R.js} +4 -4
  215. package/dist/{chunk-ZPIMPOHV.js → chunk-M7E66OSC.js} +4 -4
  216. package/dist/{chunk-OGGPQVIG.js → chunk-MDTSMJ7C.js} +3 -3
  217. package/dist/{chunk-YDI6IJ6F.js → chunk-MI2MVH3I.js} +4 -4
  218. package/dist/{chunk-6ZY5XU4J.js → chunk-MQPT254A.js} +4 -4
  219. package/dist/{chunk-EWT3WMVY.js → chunk-MYH7VISV.js} +5 -5
  220. package/dist/{chunk-7NSX7A5H.js → chunk-N5PY7IXI.js} +3 -3
  221. package/dist/{chunk-BHIGHSXA.js → chunk-NNXZ5RK5.js} +4 -4
  222. package/dist/{chunk-EQ7PWGBN.js → chunk-O7HLQTB7.js} +3 -3
  223. package/dist/{chunk-DW5FRWRQ.js → chunk-OAWEUKUC.js} +2 -2
  224. package/dist/{chunk-O4VCZTK4.js → chunk-OGHW7RQC.js} +2 -2
  225. package/dist/{chunk-XR6WBW23.js → chunk-OVGASVPW.js} +2 -2
  226. package/dist/{chunk-HEBQS7QP.js → chunk-OXYR2HVK.js} +3 -3
  227. package/dist/{chunk-TNVO2DTB.js → chunk-P7FQUGED.js} +5 -5
  228. package/dist/{chunk-343TTIHD.js → chunk-PENJBKPH.js} +3 -3
  229. package/dist/{chunk-2RQINU5T.js → chunk-PKFFJAQ6.js} +2 -2
  230. package/dist/{chunk-M4LQRQFL.js → chunk-PW2WLDX3.js} +2 -2
  231. package/dist/{chunk-WRDPWEIC.js → chunk-Q3GSDSK2.js} +6 -6
  232. package/dist/{chunk-SYJMI2NP.js → chunk-Q3OFOOO7.js} +2 -2
  233. package/dist/{chunk-GGI7GM5O.js → chunk-QE2C35TO.js} +4 -4
  234. package/dist/{chunk-NQN5Z36J.js → chunk-QLI7ES7Z.js} +10 -1
  235. package/dist/chunk-QLI7ES7Z.js.map +1 -0
  236. package/dist/{chunk-CT5K725B.js → chunk-QQLGSMGE.js} +2 -2
  237. package/dist/{chunk-7MN6I5NK.js → chunk-QXFPTRHB.js} +3 -3
  238. package/dist/{chunk-CZPU5TW3.js → chunk-RFZU5BTG.js} +2 -2
  239. package/dist/{chunk-JB67KPGM.js → chunk-RRO2EOJB.js} +4 -4
  240. package/dist/{chunk-MZQTHSLN.js → chunk-S7HRED4D.js} +2 -2
  241. package/dist/{chunk-NYEA7JAI.js → chunk-SC72DRTX.js} +6 -6
  242. package/dist/{chunk-JWW2Z3RH.js → chunk-SMZBGHR2.js} +7 -7
  243. package/dist/{chunk-EZSEAYYT.js → chunk-SSWZHR46.js} +5 -5
  244. package/dist/{chunk-NA7MIEG6.js → chunk-SZETT7QV.js} +2 -2
  245. package/dist/chunk-SZS7VZJN.js +25 -0
  246. package/dist/chunk-SZS7VZJN.js.map +1 -0
  247. package/dist/{chunk-2HPP6RVC.js → chunk-TQOPF7LD.js} +2 -2
  248. package/dist/{chunk-OLVZ6TOV.js → chunk-TUO47RL2.js} +4 -4
  249. package/dist/{chunk-N5IVVLTH.js → chunk-UG76BO5K.js} +79 -19
  250. package/dist/chunk-UG76BO5K.js.map +1 -0
  251. package/dist/{chunk-4IVDVZZ2.js → chunk-UGL6SJN6.js} +3 -3
  252. package/dist/{chunk-QJRDDVZ2.js → chunk-V5P5Q6HM.js} +3 -3
  253. package/dist/{chunk-73NJCGQG.js → chunk-VIK3HAUQ.js} +2 -2
  254. package/dist/{chunk-KM5O4ICK.js → chunk-VK4ULJFH.js} +2 -2
  255. package/dist/{chunk-QYNCPS5W.js → chunk-WBKWIFXA.js} +6 -6
  256. package/dist/{chunk-X4Z62ZQY.js → chunk-WETAIIKC.js} +2 -2
  257. package/dist/{chunk-GMTM6EN7.js → chunk-WKF54CCK.js} +7 -7
  258. package/dist/{chunk-KT6HWAEN.js → chunk-WZUNBSS7.js} +2 -2
  259. package/dist/{chunk-Y2B3I3IH.js → chunk-X5RDHO6G.js} +2 -2
  260. package/dist/{chunk-TXKZEKJN.js → chunk-XNOSTV5F.js} +2 -2
  261. package/dist/{chunk-7JXLGOM2.js → chunk-Y55ILY2F.js} +3 -3
  262. package/dist/{chunk-HI2OFZSZ.js → chunk-YPILHGEO.js} +2 -2
  263. package/dist/{chunk-V3PLFYKO.js → chunk-ZAJO2B75.js} +2 -2
  264. package/dist/data-display/Alert.js +5 -5
  265. package/dist/data-display/Avatar.js +3 -3
  266. package/dist/data-display/Badge.js +7 -7
  267. package/dist/data-display/Banner.js +4 -4
  268. package/dist/data-display/CardKit.js +14 -14
  269. package/dist/data-display/Carousel.js +1 -1
  270. package/dist/data-display/Chart.js +6 -6
  271. package/dist/data-display/DataViews.js +69 -68
  272. package/dist/data-display/DescriptionItem.js +4 -4
  273. package/dist/data-display/FleetMap.js +13 -13
  274. package/dist/data-display/Lightbox.js +1 -1
  275. package/dist/data-display/MapPreview.js +7 -7
  276. package/dist/data-display/Progress.js +4 -4
  277. package/dist/data-display/Sheet.js +4 -4
  278. package/dist/data-display/Table.js +2 -2
  279. package/dist/feedback/ConfirmAction.js +4 -4
  280. package/dist/form/AddressAutocomplete.js +5 -5
  281. package/dist/form/Autocomplete.js +2 -2
  282. package/dist/form/Button.js +3 -3
  283. package/dist/form/Calendar.js +3 -3
  284. package/dist/form/CategorySelect.js +4 -4
  285. package/dist/form/Checkbox.js +2 -2
  286. package/dist/form/Command.js +4 -4
  287. package/dist/form/DateRangePicker.js +10 -10
  288. package/dist/form/Label.js +1 -1
  289. package/dist/form/Menubar.js +1 -1
  290. package/dist/form/PhoneInput.js +3 -3
  291. package/dist/form/RichTextEditor.js +2 -2
  292. package/dist/form/Switch.js +6 -5
  293. package/dist/form/total-form.js +10 -10
  294. package/dist/icons.js +4 -4
  295. package/dist/layout/Box.js +4 -4
  296. package/dist/layout/Stack.js +5 -5
  297. package/dist/native/chunks/{chunk-2R2R35C5.js → chunk-2SBTJSQE.js} +5 -5
  298. package/dist/native/chunks/{chunk-WL5LXVCK.js → chunk-6L4UZBQP.js} +3 -3
  299. package/dist/native/chunks/{chunk-LEMMXZFN.js → chunk-MP3UDWTT.js} +10 -1
  300. package/dist/native/chunks/{chunk-LEMMXZFN.js.map → chunk-MP3UDWTT.js.map} +1 -1
  301. package/dist/native/chunks/{chunk-GW7TQ7HO.js → chunk-QEQZ5AF6.js} +3 -3
  302. package/dist/native/chunks/{chunk-7LTVGW23.js → chunk-UII3IFLP.js} +2 -2
  303. package/dist/native/chunks/{chunk-75JQYVDZ.js → chunk-UYREIOEM.js} +2 -2
  304. package/dist/native/chunks/{chunk-GWGIWQO7.js → chunk-XI7HTAVN.js} +2 -2
  305. package/dist/native/chunks/{chunk-QYUD3S6F.js → chunk-ZOP7UAZK.js} +2 -2
  306. package/dist/native/data-display/Alert.js +21 -6
  307. package/dist/native/data-display/Alert.js.map +1 -1
  308. package/dist/native/data-display/Avatar.js +3 -3
  309. package/dist/native/data-display/Badge.js +3 -3
  310. package/dist/native/data-display/Chip.js +3 -3
  311. package/dist/native/data-display/EmptyState.js +5 -5
  312. package/dist/native/data-display/ErrorState.js +4 -4
  313. package/dist/native/data-display/FleetMap.js +6 -6
  314. package/dist/native/data-display/LoadingState.js +2 -2
  315. package/dist/native/data-display/Progress.js +2 -2
  316. package/dist/native/feedback/Dialog.js +3 -3
  317. package/dist/native/form/Button.js +3 -3
  318. package/dist/native/form/Checkbox.js +3 -3
  319. package/dist/native/form/Input.js +3 -3
  320. package/dist/native/form/Select.js +4 -4
  321. package/dist/native/form/Switch.js +26 -8
  322. package/dist/native/form/Switch.js.map +1 -1
  323. package/dist/native/icons.js +3 -3
  324. package/dist/native/layout/Box.js +3 -3
  325. package/dist/native/layout/Card.js +2 -2
  326. package/dist/native/layout/Container.js +2 -2
  327. package/dist/native/layout/Skeleton.js +3 -3
  328. package/dist/native/layout/Spacer.js +2 -2
  329. package/dist/native/layout/Stack.js +3 -3
  330. package/dist/native/provider.js +2 -2
  331. package/dist/native/tokens.js +3 -1
  332. package/dist/native/typography/Heading.js +2 -2
  333. package/dist/native/typography/Paragraph.js +2 -2
  334. package/dist/native/typography/Text.js +2 -2
  335. package/dist/navigation/AppHeader.js +7 -7
  336. package/dist/provider.js +4 -4
  337. package/dist/social-login-button.js +9 -9
  338. package/dist/tokens.js +3 -1
  339. package/dist/types/components/data-display/Alert/Alert.base.d.ts +28 -2
  340. package/dist/types/components/data-display/Alert/Alert.base.d.ts.map +1 -1
  341. package/dist/types/components/data-display/Alert/Alert.helpers.d.ts +39 -0
  342. package/dist/types/components/data-display/Alert/Alert.helpers.d.ts.map +1 -1
  343. package/dist/types/components/form/Button/Button.styles.d.ts.map +1 -1
  344. package/dist/types/components/form/Switch/Switch.d.ts.map +1 -1
  345. package/dist/types/components/form/Switch/Switch.ids.d.ts +42 -0
  346. package/dist/types/components/form/Switch/Switch.ids.d.ts.map +1 -0
  347. package/dist/types/components/form/Switch/Switch.metrics.d.ts +19 -0
  348. package/dist/types/components/form/Switch/Switch.metrics.d.ts.map +1 -1
  349. package/dist/types/components/form/Switch/Switch.parts.d.ts +31 -11
  350. package/dist/types/components/form/Switch/Switch.parts.d.ts.map +1 -1
  351. package/dist/types/components/form/Switch/Switch.styles.d.ts +6 -0
  352. package/dist/types/components/form/Switch/Switch.styles.d.ts.map +1 -1
  353. package/dist/types/tokens/theme.d.ts +38 -0
  354. package/dist/types/tokens/theme.d.ts.map +1 -1
  355. package/dist/types-native/components/data-display/Alert/Alert.base.d.ts +28 -2
  356. package/dist/types-native/components/data-display/Alert/Alert.base.d.ts.map +1 -1
  357. package/dist/types-native/components/data-display/Alert/Alert.helpers.d.ts +39 -0
  358. package/dist/types-native/components/data-display/Alert/Alert.helpers.d.ts.map +1 -1
  359. package/dist/types-native/components/data-display/Alert/Alert.native.d.ts.map +1 -1
  360. package/dist/types-native/components/form/Switch/Switch.look.native.d.ts +26 -2
  361. package/dist/types-native/components/form/Switch/Switch.look.native.d.ts.map +1 -1
  362. package/dist/types-native/components/form/Switch/Switch.metrics.d.ts +19 -0
  363. package/dist/types-native/components/form/Switch/Switch.metrics.d.ts.map +1 -1
  364. package/dist/types-native/components/form/Switch/Switch.native.d.ts.map +1 -1
  365. package/dist/types-native/tokens/theme.d.ts +38 -0
  366. package/dist/types-native/tokens/theme.d.ts.map +1 -1
  367. package/dist/typography/Heading.js +4 -4
  368. package/dist/typography/Paragraph.js +2 -2
  369. package/dist/typography/Text.js +3 -3
  370. package/dist/user-avatar.js +8 -8
  371. package/package.json +1 -1
  372. package/src/components/data-display/Alert/Alert.base.ts +29 -2
  373. package/src/components/data-display/Alert/Alert.helpers.ts +50 -0
  374. package/src/components/data-display/Alert/Alert.md +29 -1
  375. package/src/components/data-display/Alert/Alert.native.tsx +8 -4
  376. package/src/components/data-display/Alert/Alert.tsx +5 -5
  377. package/src/components/form/Button/Button.md +8 -0
  378. package/src/components/form/Button/Button.styles.ts +24 -3
  379. package/src/components/form/Switch/Switch.ids.ts +63 -0
  380. package/src/components/form/Switch/Switch.look.native.ts +45 -2
  381. package/src/components/form/Switch/Switch.md +34 -9
  382. package/src/components/form/Switch/Switch.metrics.ts +21 -0
  383. package/src/components/form/Switch/Switch.native.tsx +19 -6
  384. package/src/components/form/Switch/Switch.parts.tsx +150 -17
  385. package/src/components/form/Switch/Switch.styles.ts +59 -6
  386. package/src/components/form/Switch/Switch.tsx +32 -30
  387. package/src/tokens/theme.ts +50 -0
  388. package/dist/chunk-2ECT4IY2.js.map +0 -1
  389. package/dist/chunk-BB2OUERT.js.map +0 -1
  390. package/dist/chunk-FR67FG2U.js.map +0 -1
  391. package/dist/chunk-N3QUEBNS.js.map +0 -1
  392. package/dist/chunk-N5IVVLTH.js.map +0 -1
  393. package/dist/chunk-NQN5Z36J.js.map +0 -1
  394. package/dist/chunk-WNMYWQ7D.js.map +0 -1
  395. /package/dist/{chunk-2GI7ANEL.js.map → chunk-22X7TT6Z.js.map} +0 -0
  396. /package/dist/{chunk-WR5JFDQ5.js.map → chunk-27BL3DNT.js.map} +0 -0
  397. /package/dist/{chunk-E55CJV65.js.map → chunk-2KVQIGVE.js.map} +0 -0
  398. /package/dist/{chunk-W3FAKT3D.js.map → chunk-2SWQ6HIK.js.map} +0 -0
  399. /package/dist/{chunk-ISW5K72V.js.map → chunk-2ZRZTGWP.js.map} +0 -0
  400. /package/dist/{chunk-I5SBTNV2.js.map → chunk-3GB6KWHH.js.map} +0 -0
  401. /package/dist/{chunk-ZEG2LNBY.js.map → chunk-3PJLT5FX.js.map} +0 -0
  402. /package/dist/{chunk-57Z2ND3N.js.map → chunk-3VZT2FAI.js.map} +0 -0
  403. /package/dist/{chunk-PFDM2OIP.js.map → chunk-45OHGD2B.js.map} +0 -0
  404. /package/dist/{chunk-BH5BXLGI.js.map → chunk-4A2Q22HO.js.map} +0 -0
  405. /package/dist/{chunk-46UPILLK.js.map → chunk-4ETQRBZC.js.map} +0 -0
  406. /package/dist/{chunk-WM6Y2S6W.js.map → chunk-5QUSX3TC.js.map} +0 -0
  407. /package/dist/{chunk-AVGTTWTE.js.map → chunk-65DLYC4S.js.map} +0 -0
  408. /package/dist/{chunk-TVPPA4RD.js.map → chunk-65METCKT.js.map} +0 -0
  409. /package/dist/{chunk-OQFSYMHJ.js.map → chunk-67ALTEWH.js.map} +0 -0
  410. /package/dist/{chunk-OGGHD64H.js.map → chunk-6SK3MTYJ.js.map} +0 -0
  411. /package/dist/{chunk-OE2ZVL67.js.map → chunk-6VHCSPKK.js.map} +0 -0
  412. /package/dist/{chunk-WAPJ2DL3.js.map → chunk-72T5PAW7.js.map} +0 -0
  413. /package/dist/{chunk-SLVQ33AN.js.map → chunk-77DF5LKI.js.map} +0 -0
  414. /package/dist/{chunk-7KWBGMQC.js.map → chunk-77OXG6DH.js.map} +0 -0
  415. /package/dist/{chunk-Y3KRUT7O.js.map → chunk-7AIHK2XM.js.map} +0 -0
  416. /package/dist/{chunk-MHV5Y5MR.js.map → chunk-7KEGJH3Q.js.map} +0 -0
  417. /package/dist/{chunk-KMXAPYU2.js.map → chunk-7NEUPEV5.js.map} +0 -0
  418. /package/dist/{chunk-67L7HMEP.js.map → chunk-7Z2AQEC5.js.map} +0 -0
  419. /package/dist/{chunk-PQECNGDE.js.map → chunk-AGYGNNOM.js.map} +0 -0
  420. /package/dist/{chunk-ZTF5C2GA.js.map → chunk-B5SW7I5W.js.map} +0 -0
  421. /package/dist/{chunk-TXHJX2NG.js.map → chunk-BGYLL467.js.map} +0 -0
  422. /package/dist/{chunk-R7R3LOKW.js.map → chunk-CA7TA36R.js.map} +0 -0
  423. /package/dist/{chunk-FPFUXRD2.js.map → chunk-CKJI7JO5.js.map} +0 -0
  424. /package/dist/{chunk-HMV4QMXS.js.map → chunk-CMN26J5Y.js.map} +0 -0
  425. /package/dist/{chunk-KVEHH4SA.js.map → chunk-DB2MAYPK.js.map} +0 -0
  426. /package/dist/{chunk-V4FKHLEB.js.map → chunk-DTIB5KWP.js.map} +0 -0
  427. /package/dist/{chunk-MESRKY67.js.map → chunk-DW6GBMLQ.js.map} +0 -0
  428. /package/dist/{chunk-JO6BBSGY.js.map → chunk-DWJBOR47.js.map} +0 -0
  429. /package/dist/{chunk-YW5T6KZ5.js.map → chunk-DYESJJ3Q.js.map} +0 -0
  430. /package/dist/{chunk-TZDDL3DR.js.map → chunk-ECMJ5VPW.js.map} +0 -0
  431. /package/dist/{chunk-OH3YGJT5.js.map → chunk-EMNGIYH6.js.map} +0 -0
  432. /package/dist/{chunk-CZJLWCEG.js.map → chunk-EPNCYUQ7.js.map} +0 -0
  433. /package/dist/{chunk-JZXWCEH5.js.map → chunk-EQA4VQEO.js.map} +0 -0
  434. /package/dist/{chunk-3N6EK6K5.js.map → chunk-ERX4XIYC.js.map} +0 -0
  435. /package/dist/{chunk-TTLI6PF7.js.map → chunk-FF3R67WD.js.map} +0 -0
  436. /package/dist/{chunk-KLREH4X6.js.map → chunk-G2JPUHEJ.js.map} +0 -0
  437. /package/dist/{chunk-4J5EN4FQ.js.map → chunk-GBX5ACPF.js.map} +0 -0
  438. /package/dist/{chunk-ZZMZF7PZ.js.map → chunk-GQJ4NCZ6.js.map} +0 -0
  439. /package/dist/{chunk-IPVYEPXO.js.map → chunk-GSTRPZS4.js.map} +0 -0
  440. /package/dist/{chunk-HFXTAEYY.js.map → chunk-GTLJYAEG.js.map} +0 -0
  441. /package/dist/{chunk-M4LFDGI6.js.map → chunk-GYQT47YZ.js.map} +0 -0
  442. /package/dist/{chunk-JSH3HFDQ.js.map → chunk-H3BQFEN5.js.map} +0 -0
  443. /package/dist/{chunk-OV4WREMW.js.map → chunk-HKB5C2KY.js.map} +0 -0
  444. /package/dist/{chunk-BLBOYCOV.js.map → chunk-HKV4MQ2W.js.map} +0 -0
  445. /package/dist/{chunk-4MGFUPQT.js.map → chunk-HOJL2GKW.js.map} +0 -0
  446. /package/dist/{chunk-HR7YTBR7.js.map → chunk-IASDP44E.js.map} +0 -0
  447. /package/dist/{chunk-YMRI5QKG.js.map → chunk-IV5QQLCS.js.map} +0 -0
  448. /package/dist/{chunk-JUHUKZGU.js.map → chunk-JD3D6Y4U.js.map} +0 -0
  449. /package/dist/{chunk-AXTLFK4T.js.map → chunk-KAV63FBG.js.map} +0 -0
  450. /package/dist/{chunk-2PBGVMM2.js.map → chunk-KOFO6QZY.js.map} +0 -0
  451. /package/dist/{chunk-RP5FK3SO.js.map → chunk-L7LCSZ3H.js.map} +0 -0
  452. /package/dist/{chunk-MNXVXW4T.js.map → chunk-L7S6N67X.js.map} +0 -0
  453. /package/dist/{chunk-JXPHU3K5.js.map → chunk-LGJ2H4AH.js.map} +0 -0
  454. /package/dist/{chunk-W4YWU7LQ.js.map → chunk-LO2B7FDQ.js.map} +0 -0
  455. /package/dist/{chunk-PWR7K5OP.js.map → chunk-LV4UTYAD.js.map} +0 -0
  456. /package/dist/{chunk-OG2FP6SE.js.map → chunk-M4NFXC5R.js.map} +0 -0
  457. /package/dist/{chunk-ZPIMPOHV.js.map → chunk-M7E66OSC.js.map} +0 -0
  458. /package/dist/{chunk-OGGPQVIG.js.map → chunk-MDTSMJ7C.js.map} +0 -0
  459. /package/dist/{chunk-YDI6IJ6F.js.map → chunk-MI2MVH3I.js.map} +0 -0
  460. /package/dist/{chunk-6ZY5XU4J.js.map → chunk-MQPT254A.js.map} +0 -0
  461. /package/dist/{chunk-EWT3WMVY.js.map → chunk-MYH7VISV.js.map} +0 -0
  462. /package/dist/{chunk-7NSX7A5H.js.map → chunk-N5PY7IXI.js.map} +0 -0
  463. /package/dist/{chunk-BHIGHSXA.js.map → chunk-NNXZ5RK5.js.map} +0 -0
  464. /package/dist/{chunk-EQ7PWGBN.js.map → chunk-O7HLQTB7.js.map} +0 -0
  465. /package/dist/{chunk-DW5FRWRQ.js.map → chunk-OAWEUKUC.js.map} +0 -0
  466. /package/dist/{chunk-O4VCZTK4.js.map → chunk-OGHW7RQC.js.map} +0 -0
  467. /package/dist/{chunk-XR6WBW23.js.map → chunk-OVGASVPW.js.map} +0 -0
  468. /package/dist/{chunk-HEBQS7QP.js.map → chunk-OXYR2HVK.js.map} +0 -0
  469. /package/dist/{chunk-TNVO2DTB.js.map → chunk-P7FQUGED.js.map} +0 -0
  470. /package/dist/{chunk-343TTIHD.js.map → chunk-PENJBKPH.js.map} +0 -0
  471. /package/dist/{chunk-2RQINU5T.js.map → chunk-PKFFJAQ6.js.map} +0 -0
  472. /package/dist/{chunk-M4LQRQFL.js.map → chunk-PW2WLDX3.js.map} +0 -0
  473. /package/dist/{chunk-WRDPWEIC.js.map → chunk-Q3GSDSK2.js.map} +0 -0
  474. /package/dist/{chunk-SYJMI2NP.js.map → chunk-Q3OFOOO7.js.map} +0 -0
  475. /package/dist/{chunk-GGI7GM5O.js.map → chunk-QE2C35TO.js.map} +0 -0
  476. /package/dist/{chunk-CT5K725B.js.map → chunk-QQLGSMGE.js.map} +0 -0
  477. /package/dist/{chunk-7MN6I5NK.js.map → chunk-QXFPTRHB.js.map} +0 -0
  478. /package/dist/{chunk-CZPU5TW3.js.map → chunk-RFZU5BTG.js.map} +0 -0
  479. /package/dist/{chunk-JB67KPGM.js.map → chunk-RRO2EOJB.js.map} +0 -0
  480. /package/dist/{chunk-MZQTHSLN.js.map → chunk-S7HRED4D.js.map} +0 -0
  481. /package/dist/{chunk-NYEA7JAI.js.map → chunk-SC72DRTX.js.map} +0 -0
  482. /package/dist/{chunk-JWW2Z3RH.js.map → chunk-SMZBGHR2.js.map} +0 -0
  483. /package/dist/{chunk-EZSEAYYT.js.map → chunk-SSWZHR46.js.map} +0 -0
  484. /package/dist/{chunk-NA7MIEG6.js.map → chunk-SZETT7QV.js.map} +0 -0
  485. /package/dist/{chunk-2HPP6RVC.js.map → chunk-TQOPF7LD.js.map} +0 -0
  486. /package/dist/{chunk-OLVZ6TOV.js.map → chunk-TUO47RL2.js.map} +0 -0
  487. /package/dist/{chunk-4IVDVZZ2.js.map → chunk-UGL6SJN6.js.map} +0 -0
  488. /package/dist/{chunk-QJRDDVZ2.js.map → chunk-V5P5Q6HM.js.map} +0 -0
  489. /package/dist/{chunk-73NJCGQG.js.map → chunk-VIK3HAUQ.js.map} +0 -0
  490. /package/dist/{chunk-KM5O4ICK.js.map → chunk-VK4ULJFH.js.map} +0 -0
  491. /package/dist/{chunk-QYNCPS5W.js.map → chunk-WBKWIFXA.js.map} +0 -0
  492. /package/dist/{chunk-X4Z62ZQY.js.map → chunk-WETAIIKC.js.map} +0 -0
  493. /package/dist/{chunk-GMTM6EN7.js.map → chunk-WKF54CCK.js.map} +0 -0
  494. /package/dist/{chunk-KT6HWAEN.js.map → chunk-WZUNBSS7.js.map} +0 -0
  495. /package/dist/{chunk-Y2B3I3IH.js.map → chunk-X5RDHO6G.js.map} +0 -0
  496. /package/dist/{chunk-TXKZEKJN.js.map → chunk-XNOSTV5F.js.map} +0 -0
  497. /package/dist/{chunk-7JXLGOM2.js.map → chunk-Y55ILY2F.js.map} +0 -0
  498. /package/dist/{chunk-HI2OFZSZ.js.map → chunk-YPILHGEO.js.map} +0 -0
  499. /package/dist/{chunk-V3PLFYKO.js.map → chunk-ZAJO2B75.js.map} +0 -0
  500. /package/dist/native/chunks/{chunk-2R2R35C5.js.map → chunk-2SBTJSQE.js.map} +0 -0
  501. /package/dist/native/chunks/{chunk-WL5LXVCK.js.map → chunk-6L4UZBQP.js.map} +0 -0
  502. /package/dist/native/chunks/{chunk-GW7TQ7HO.js.map → chunk-QEQZ5AF6.js.map} +0 -0
  503. /package/dist/native/chunks/{chunk-7LTVGW23.js.map → chunk-UII3IFLP.js.map} +0 -0
  504. /package/dist/native/chunks/{chunk-75JQYVDZ.js.map → chunk-UYREIOEM.js.map} +0 -0
  505. /package/dist/native/chunks/{chunk-GWGIWQO7.js.map → chunk-XI7HTAVN.js.map} +0 -0
  506. /package/dist/native/chunks/{chunk-QYUD3S6F.js.map → chunk-ZOP7UAZK.js.map} +0 -0
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  UiThemeContext,
3
3
  useUiTheme
4
- } from "./chunks/chunk-GWGIWQO7.js";
4
+ } from "./chunks/chunk-XI7HTAVN.js";
5
5
  import {
6
6
  createUiTheme
7
- } from "./chunks/chunk-LEMMXZFN.js";
7
+ } from "./chunks/chunk-MP3UDWTT.js";
8
8
 
9
9
  // src/provider/UiProvider.native.tsx
10
10
  import * as React from "react";
@@ -27,10 +27,11 @@ import {
27
27
  getLuminance,
28
28
  hexToRgb,
29
29
  hslToRgb,
30
+ inkOver,
30
31
  lighten,
31
32
  px,
32
33
  recomposeColor
33
- } from "./chunks/chunk-LEMMXZFN.js";
34
+ } from "./chunks/chunk-MP3UDWTT.js";
34
35
  export {
35
36
  COLOR_VALUES,
36
37
  DEFAULT_BRAND,
@@ -55,6 +56,7 @@ export {
55
56
  getLuminance,
56
57
  hexToRgb,
57
58
  hslToRgb,
59
+ inkOver,
58
60
  lighten,
59
61
  muiColor,
60
62
  muiSize,
@@ -4,11 +4,11 @@ import {
4
4
  } from "../chunks/chunk-AR5O4BEY.js";
5
5
  import {
6
6
  useUiTheme
7
- } from "../chunks/chunk-GWGIWQO7.js";
7
+ } from "../chunks/chunk-XI7HTAVN.js";
8
8
  import {
9
9
  FONT_WEIGHTS,
10
10
  HEADING_SCALE
11
- } from "../chunks/chunk-LEMMXZFN.js";
11
+ } from "../chunks/chunk-MP3UDWTT.js";
12
12
 
13
13
  // src/components/typography/Heading/Heading.native.tsx
14
14
  import * as React from "react";
@@ -4,8 +4,8 @@ import {
4
4
  } from "../chunks/chunk-AR5O4BEY.js";
5
5
  import {
6
6
  useUiTheme
7
- } from "../chunks/chunk-GWGIWQO7.js";
8
- import "../chunks/chunk-LEMMXZFN.js";
7
+ } from "../chunks/chunk-XI7HTAVN.js";
8
+ import "../chunks/chunk-MP3UDWTT.js";
9
9
 
10
10
  // src/components/typography/Paragraph/Paragraph.native.tsx
11
11
  import * as React from "react";
@@ -4,12 +4,12 @@ import {
4
4
  } from "../chunks/chunk-AR5O4BEY.js";
5
5
  import {
6
6
  useUiTheme
7
- } from "../chunks/chunk-GWGIWQO7.js";
7
+ } from "../chunks/chunk-XI7HTAVN.js";
8
8
  import {
9
9
  FONT_WEIGHTS,
10
10
  TYPE_SIZES,
11
11
  alpha
12
- } from "../chunks/chunk-LEMMXZFN.js";
12
+ } from "../chunks/chunk-MP3UDWTT.js";
13
13
 
14
14
  // src/components/typography/Text/Text.native.tsx
15
15
  import * as React from "react";
@@ -12,25 +12,25 @@ import {
12
12
  } from "../chunk-H37GIAAM.js";
13
13
  import {
14
14
  AppHeaderDetails
15
- } from "../chunk-JO6BBSGY.js";
15
+ } from "../chunk-DWJBOR47.js";
16
16
  import {
17
17
  brandGradient,
18
18
  highlightOf,
19
19
  initialsOf
20
20
  } from "../chunk-IQU4HKND.js";
21
- import "../chunk-4J5EN4FQ.js";
21
+ import "../chunk-GBX5ACPF.js";
22
+ import "../chunk-OLZTGVBT.js";
23
+ import "../chunk-CRN4KKNI.js";
22
24
  import "../chunk-JBMBFYFA.js";
23
25
  import "../chunk-7MR2JCJW.js";
24
26
  import "../chunk-U437KFDI.js";
25
- import "../chunk-OLZTGVBT.js";
26
- import "../chunk-CRN4KKNI.js";
27
27
  import "../chunk-F52N6ACD.js";
28
28
  import "../chunk-YANLN6HP.js";
29
29
  import "../chunk-5KEMPCW4.js";
30
30
  import "../chunk-VM3HRSAU.js";
31
31
  import "../chunk-GYXUCS37.js";
32
- import "../chunk-SLVQ33AN.js";
33
- import "../chunk-BB2OUERT.js";
32
+ import "../chunk-77DF5LKI.js";
33
+ import "../chunk-2LSCK45B.js";
34
34
  import "../chunk-5LQ7PKMW.js";
35
35
  import "../chunk-TAMIZE4Q.js";
36
36
  import "../chunk-73BEVJCS.js";
@@ -40,7 +40,7 @@ import "../chunk-HPK33ACY.js";
40
40
  import "../chunk-V5IOLAIS.js";
41
41
  import "../chunk-7ZPUN7TV.js";
42
42
  import "../chunk-PT6TCWIW.js";
43
- import "../chunk-NQN5Z36J.js";
43
+ import "../chunk-QLI7ES7Z.js";
44
44
  import "../chunk-AG66JBNH.js";
45
45
  import "../chunk-6JAIFIPW.js";
46
46
  import "../chunk-FZXKH2ZT.js";
package/dist/provider.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  UiProvider
3
- } from "./chunk-7JXLGOM2.js";
3
+ } from "./chunk-Y55ILY2F.js";
4
4
  import "./chunk-XZTRZ3HO.js";
5
5
  import {
6
6
  useUiTheme
7
- } from "./chunk-KLREH4X6.js";
7
+ } from "./chunk-G2JPUHEJ.js";
8
8
  import {
9
9
  muiThemeOptionsFrom,
10
10
  uiThemeFromMui
11
- } from "./chunk-YMRI5QKG.js";
11
+ } from "./chunk-IV5QQLCS.js";
12
12
  import "./chunk-V5IOLAIS.js";
13
13
  import "./chunk-7ZPUN7TV.js";
14
14
  import "./chunk-PT6TCWIW.js";
15
- import "./chunk-NQN5Z36J.js";
15
+ import "./chunk-QLI7ES7Z.js";
16
16
  import "./chunk-AG66JBNH.js";
17
17
  import "./chunk-6JAIFIPW.js";
18
18
  import "./chunk-FZXKH2ZT.js";
@@ -4,12 +4,12 @@ import {
4
4
  GoogleIcon,
5
5
  SocialLoginButton,
6
6
  SocialLoginContainer
7
- } from "./chunk-OG2FP6SE.js";
7
+ } from "./chunk-M4NFXC5R.js";
8
8
  import "./chunk-INGPH3YQ.js";
9
9
  import "./chunk-6GP2DOOO.js";
10
- import "./chunk-MESRKY67.js";
11
- import "./chunk-PWR7K5OP.js";
12
- import "./chunk-3N6EK6K5.js";
10
+ import "./chunk-DW6GBMLQ.js";
11
+ import "./chunk-LV4UTYAD.js";
12
+ import "./chunk-ERX4XIYC.js";
13
13
  import "./chunk-CMMPGAMJ.js";
14
14
  import "./chunk-MCZ7536N.js";
15
15
  import "./chunk-IFPTVHYR.js";
@@ -20,16 +20,16 @@ import "./chunk-BEBLRL5D.js";
20
20
  import "./chunk-6Q6T3FW5.js";
21
21
  import "./chunk-FKUYRQSP.js";
22
22
  import "./chunk-BA4RHQ3B.js";
23
- import "./chunk-SLVQ33AN.js";
24
- import "./chunk-BB2OUERT.js";
23
+ import "./chunk-77DF5LKI.js";
24
+ import "./chunk-2LSCK45B.js";
25
25
  import "./chunk-5LQ7PKMW.js";
26
26
  import "./chunk-TAMIZE4Q.js";
27
27
  import "./chunk-73BEVJCS.js";
28
- import "./chunk-343TTIHD.js";
29
- import "./chunk-V3PLFYKO.js";
28
+ import "./chunk-PENJBKPH.js";
29
+ import "./chunk-ZAJO2B75.js";
30
30
  import "./chunk-TYJR4GOF.js";
31
31
  import "./chunk-PT6TCWIW.js";
32
- import "./chunk-NQN5Z36J.js";
32
+ import "./chunk-QLI7ES7Z.js";
33
33
  import "./chunk-AG66JBNH.js";
34
34
  import "./chunk-6JAIFIPW.js";
35
35
  import "./chunk-FZXKH2ZT.js";
package/dist/tokens.js CHANGED
@@ -23,8 +23,9 @@ import {
23
23
  augmentColor,
24
24
  contrastText,
25
25
  createUiTheme,
26
+ inkOver,
26
27
  px
27
- } from "./chunk-NQN5Z36J.js";
28
+ } from "./chunk-QLI7ES7Z.js";
28
29
  import "./chunk-AG66JBNH.js";
29
30
  import {
30
31
  alpha,
@@ -69,6 +70,7 @@ export {
69
70
  headingMetrics,
70
71
  hexToRgb,
71
72
  hslToRgb,
73
+ inkOver,
72
74
  lighten,
73
75
  muiColor,
74
76
  muiSize,
@@ -69,11 +69,37 @@ export interface AlertBaseFields {
69
69
  */
70
70
  animate?: boolean;
71
71
  /**
72
- * ARIA role for the alert
72
+ * Whether this alert INTERRUPTS a screen reader, or waits its turn.
73
+ *
74
+ * Sets `role` and `aria-live` together, which is the whole point of it:
75
+ * those two disagree by default and the disagreement is invisible. An alert
76
+ * gets `role="alert"` from {@link ALERT_DEFAULTS} whatever its variant, and
77
+ * `role="alert"` is IMPLICITLY an assertive live region — so a `polite`
78
+ * `aria-live` beside it is contradicted rather than honoured, and several
79
+ * screen readers interrupt anyway. A caller who wants a quiet announcement
80
+ * has to know that the trick is `role="status"`, which is implicitly polite.
81
+ *
82
+ * `announce` is that knowledge, spelled once:
83
+ *
84
+ * | value | `role` | `aria-live` |
85
+ * |---|---|---|
86
+ * | `'assertive'` | `alert` | `assertive` |
87
+ * | `'polite'` | `status` | `polite` |
88
+ *
89
+ * Unset, nothing changes: the role stays `alert` and the live setting is
90
+ * still derived from the variant ({@link defaultAriaLive}). An explicit
91
+ * `role` or `aria-live` still wins over both, so an existing call site that
92
+ * spells either by hand keeps exactly what it spelled.
93
+ */
94
+ announce?: 'polite' | 'assertive';
95
+ /**
96
+ * ARIA role for the alert. Prefer {@link AlertBaseFields.announce}, which
97
+ * keeps this and `aria-live` consistent; this overrides it.
73
98
  */
74
99
  role?: string;
75
100
  /**
76
- * ARIA live region setting
101
+ * ARIA live region setting. Prefer {@link AlertBaseFields.announce}, which
102
+ * keeps this and `role` consistent; this overrides it.
77
103
  */
78
104
  'aria-live'?: 'polite' | 'assertive' | 'off';
79
105
  /**
@@ -1 +1 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O,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IAElC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAC;IAE7C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAEjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,YAAY,CAAC"}
@@ -12,6 +12,45 @@ export type ResolvedAlertProps<P extends AlertBaseFields> = P & Required<Pick<Al
12
12
  export declare const resolveAlertProps: <P extends AlertBaseFields>(props: P) => ResolvedAlertProps<P>;
13
13
  /** `danger` announces itself; everything else waits its turn. */
14
14
  export declare const defaultAriaLive: (variant: AlertVariant) => "polite" | "assertive";
15
+ /**
16
+ * The ARIA role each `announce` level is spelled with.
17
+ *
18
+ * Both roles carry an IMPLICIT live setting, and that implicit one is what
19
+ * assistive tech acts on — `alert` is assertive, `status` is polite. Pairing
20
+ * them here is what stops `role` and `aria-live` from contradicting each
21
+ * other, which they do by default: every alert is `role="alert"` regardless of
22
+ * variant, so an `info` alert asks to be polite in one attribute and to
23
+ * interrupt in the other.
24
+ */
25
+ export declare const ANNOUNCE_ROLE: Record<NonNullable<AlertBaseFields['announce']>, string>;
26
+ /**
27
+ * The two attributes that decide whether an alert interrupts, resolved TOGETHER.
28
+ *
29
+ * Both renderers therefore let `role` and `announce` leave their destructure
30
+ * unused (`_role`, `_announce`) and call this instead — the first because the
31
+ * defaults have already answered it, the second because it must never reach
32
+ * the DOM.
33
+ *
34
+ * Reads the caller's own props rather than the defaulted ones, because the
35
+ * whole question is which of them the caller actually spelled:
36
+ * {@link ALERT_DEFAULTS} supplies `role: 'alert'` for everything, so after the
37
+ * merge there is no longer any difference between an alert that asked to
38
+ * interrupt and one that never mentioned it.
39
+ *
40
+ * Precedence, most specific first — an explicit `role` or `aria-live` beats
41
+ * `announce`, so a call site that already spells either by hand is untouched:
42
+ *
43
+ * 1. `role` / `aria-live` as given;
44
+ * 2. {@link AlertBaseFields.announce}, which supplies both;
45
+ * 3. today's behaviour — `ALERT_DEFAULTS.role` and {@link defaultAriaLive}.
46
+ *
47
+ * With none of the three named, the result is byte-for-byte what it was before
48
+ * `announce` existed.
49
+ */
50
+ export declare const resolveAnnouncement: (props: Pick<AlertBaseFields, "announce" | "role" | "aria-live">, variant: AlertVariant) => {
51
+ role: string;
52
+ "aria-live": "polite" | "assertive" | "off";
53
+ };
15
54
  export declare const testIdFor: (base: string | undefined, suffix: string) => string;
16
55
  /**
17
56
  * The glyph each semantic variant carries, by the shared icon set's name.
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.helpers.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/Alert/Alert.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,KAAK,kBAAkB,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,aAAa,CAAC;AAEzG,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAC,GAAG;IAAE,QAAQ,EAAE,KAA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AEnE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,KAAK,KAAG,SAoBjD,CAAC;AAkGH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,KAAK,EACZ,SAAS,MAAM,GAAG,SAAS,EAC3B,SAAS,YAAY,EACrB,OAAO,MAAM,KACZ,SAAyE,CAAC;AAkC7E;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,YAAY,EACrB,OAAO,OAAO,EACd,QAAQ,OAAO,KACd,SAGD,CAAC"}
1
+ {"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Button/Button.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAqBtE,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB;AAgBD,eAAO,MAAM,iBAAiB,GAAI,OAAO,KAAK,EAAE,OAAO,MAAM,KAAG,YAsB/D,CAAC;AAsCF,gFAAgF;AAChF,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,EAAE,UAAU,OAAO,KAAG,SACK,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,KAAK,KAAG,SAoBjD,CAAC;AAuHH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,KAAK,EACZ,SAAS,MAAM,GAAG,SAAS,EAC3B,SAAS,YAAY,EACrB,OAAO,MAAM,KACZ,SAAyE,CAAC;AAkC7E;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,YAAY,EACrB,OAAO,OAAO,EACd,QAAQ,OAAO,KACd,SAGD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAW1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAmBlD,eAAO,MAAM,MAAM,oGAmEjB,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAOjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAmBlD,eAAO,MAAM,MAAM,oGAyEjB,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { InputHTMLAttributes, ReactNode } from 'react';
2
+ /** The ids the DOM `Switch` wires its label and its two descriptions with. */
3
+ export interface SwitchIds {
4
+ /** The input's id. Always set — the label has to have something to point at. */
5
+ inputId: string;
6
+ descriptionId?: string;
7
+ helperId?: string;
8
+ /** Everything that DESCRIBES the control, the caller's own included. */
9
+ describedBy?: string;
10
+ }
11
+ export interface SwitchIdSource {
12
+ /** `useId()`'s value, passed in so this stays a pure function. */
13
+ generated: string;
14
+ id?: string;
15
+ inputProps?: InputHTMLAttributes<HTMLInputElement>;
16
+ description?: ReactNode;
17
+ helperText?: ReactNode;
18
+ callerDescribedBy?: unknown;
19
+ }
20
+ /**
21
+ * Derive every id one `Switch` needs, in one place (FUT-1905).
22
+ *
23
+ * The precedence is the point: an id the caller spelled — as `inputProps.id` or
24
+ * as `id` — wins, because a consumer that chose one is usually pointing its own
25
+ * `<label>` or a test at it. Only when there is none does the generated one
26
+ * apply, and it comes from `useId` rather than from the test id: two call sites
27
+ * sharing a `dataTestId` would otherwise share a `for`, and the second label
28
+ * would toggle the first control.
29
+ *
30
+ * `describedBy` APPENDS rather than replaces. The description and the helper
31
+ * line are the component's own, but a consumer that passed `aria-describedby`
32
+ * meant it, and dropping it to make room would trade one silent omission for
33
+ * another.
34
+ *
35
+ * It has TWO spellings and both count — top-level and inside `inputProps` —
36
+ * because that is a consumer's choice of spelling, not a choice of meaning.
37
+ * Reading only the first is how this shipped for one round: a caller writing
38
+ * `inputProps={{ 'aria-describedby': … }}` had it silently dropped, which is the
39
+ * omission the paragraph above says it must not trade for.
40
+ */
41
+ export declare function switchIds({ generated, id, inputProps, description, helperText, callerDescribedBy, }: SwitchIdSource): SwitchIds;
42
+ //# sourceMappingURL=Switch.ids.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.ids.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Switch/Switch.ids.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,8EAA8E;AAC9E,MAAM,WAAW,SAAS;IACxB,gFAAgF;IAChF,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACnD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,EAAE,EACF,UAAU,EACV,WAAW,EACX,UAAU,EACV,iBAAiB,GAClB,EAAE,cAAc,GAAG,SAAS,CAY5B"}
@@ -159,6 +159,14 @@ export declare const LABEL_GAP_UNITS: {
159
159
  readonly beside: 2;
160
160
  readonly stacked: 1;
161
161
  };
162
+ /**
163
+ * The minimum height of a touch target, in px (FUT-1905).
164
+ *
165
+ * No entry in {@link SWITCH_SIZES} reaches it — `xl`, the largest, is 34px tall
166
+ * and `md` is 26 — so a consumer cannot buy a legal target by passing a bigger
167
+ * `size`. The label is what clears it: see `SwitchLabel` in `Switch.parts.tsx`.
168
+ */
169
+ export declare const TAP_TARGET_MIN = 40;
162
170
  /**
163
171
  * `neutral`'s three greys, and the literals the web falls back to for a theme
164
172
  * whose grey ramp omits a step. Same three steps `Button` draws its neutral
@@ -175,6 +183,17 @@ export declare const NEUTRAL_FALLBACK: {
175
183
  readonly light: "#9e9e9e";
176
184
  };
177
185
  export declare const NEUTRAL_CONTRAST = "#fff";
186
+ /**
187
+ * The RESTING thumb — the knob while the switch is off (FUT-1924).
188
+ *
189
+ * It stays white, and the reason is worth stating because the checked thumb no
190
+ * longer is: the resting track is `theme.palette.action.disabled` washed over
191
+ * the page, which no tenant picks, and a white knob on it is the conventional
192
+ * look in both modes. The CHECKED track is `palette.main`, a colour the tenant
193
+ * does pick, and that is where a stated white was a defect. See `checkedInk`
194
+ * in `Switch.styles.ts` and its native twin.
195
+ */
196
+ export declare const RESTING_THUMB = "#fff";
178
197
  /** Hover: the thumb lifts a shade and takes a halo of the hue. */
179
198
  export declare const SWITCH_HOVER: {
180
199
  readonly thumbScale: 1.05;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.metrics.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Switch/Switch.metrics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D;;;;;;;;;;;GAWG;AAEH,oEAAoE;AACpE,eAAO,MAAM,YAAY,SAAS,CAAC;AAEnC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,YAAY,E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rE,eAAO,MAAM,cAAc;;;;CAAwD,CAAC;AAEpF,oFAAoF;AACpF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAA8C,CAAC;AACvG,oEAAoE;AACpE,eAAO,MAAM,WAAW;;;CAA0C,CAAC;AAEnE,uFAAuF;AACvF,eAAO,MAAM,WAAW;;;;CAA4D,CAAC;AAErF,sFAAsF;AACtF,eAAO,MAAM,YAAY;;;;CAA+D,CAAC;AACzF,eAAO,MAAM,kBAAkB;;;;CAAmE,CAAC;AACnG,eAAO,MAAM,aAAa;;;;CAAiE,CAAC;AAE5F,6EAA6E;AAC7E,eAAO,MAAM,eAAe;;;CAAqC,CAAC;AAElE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;CAAgD,CAAC;AAC1E,eAAO,MAAM,gBAAgB;;;;CAAkE,CAAC;AAChG,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAEvC;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,SAAS,CAAC;AAEpC,kEAAkE;AAClE,eAAO,MAAM,YAAY;;;;;CAAoE,CAAC;AAE9F,wDAAwD;AACxD,eAAO,MAAM,iBAAiB;;;CAAoC,CAAC;AAEnE,uEAAuE;AACvE,eAAO,MAAM,OAAO,GAAI,IAAI,MAAM,KAAG,MAAyB,CAAC;AAE/D,gEAAgE;AAChE,eAAO,MAAM,gBAAgB,GAAI,SAAS,aAAa,GAAG,SAAS,EAAE,SAAS,MAAM,EAAE,UAAU,MAAM,KAAG,OACtD,CAAC"}
@@ -1,15 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { SwitchFlags } from './Switch.styles';
3
3
  import type { SwitchProps } from './Switch.types';
4
- /**
5
- * A plain wrapper over the styled row. Exporting the styled component itself
6
- * needs a @mui/system reference tsc calls unportable (TS2742).
7
- */
8
- export declare const LabelContainer: React.FC<{
9
- labelPosition?: string;
10
- error?: boolean;
11
- children: React.ReactNode;
12
- }>;
13
4
  export interface SwitchIconProps {
14
5
  icon: React.ReactNode;
15
6
  /** True when this icon is the one the current state should show. */
@@ -17,6 +8,8 @@ export interface SwitchIconProps {
17
8
  animated: boolean;
18
9
  size: string;
19
10
  side: 'on' | 'off';
11
+ /** The ink for the ON icon, which sits on the brand-filled track (FUT-1924). */
12
+ onInk: string;
20
13
  }
21
14
  /**
22
15
  * One of the two icons overlaid on the track. The on icon slides to the left
@@ -33,19 +26,46 @@ export interface SwitchControlProps extends SwitchFlags {
33
26
  size: string;
34
27
  dataTestId?: string;
35
28
  switchRef?: React.Ref<HTMLButtonElement>;
29
+ /** The id the label points at — always set, so the input always has one. */
30
+ inputId: string;
31
+ /** The caller's own `inputProps`, merged rather than spread over (FUT-1905). */
32
+ inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
33
+ /** The description's id, appended to whatever the caller described it by. */
34
+ describedBy?: string;
36
35
  rest: Record<string, unknown>;
37
36
  }
38
37
  /** The control itself: the track, and the two icons that may sit over it. */
39
38
  export declare const SwitchControl: React.FC<SwitchControlProps>;
39
+ /**
40
+ * The helper line, which is where a validation message lands — so it is
41
+ * `aria-describedby`'d like the description (FUT-1905).
42
+ *
43
+ * It carried no `id` and nothing pointed at it, which means an `error` state
44
+ * announced as "checkbox, checked" and nothing else: the one sentence saying
45
+ * WHY was on screen and outside the accessibility tree.
46
+ */
40
47
  export declare const SwitchHelper: React.FC<{
41
48
  helperText?: React.ReactNode;
42
49
  error?: boolean;
43
50
  dataTestId?: string;
51
+ id?: string;
44
52
  }>;
45
- export declare const SwitchLabel: React.FC<{
46
- label: React.ReactNode;
53
+ /**
54
+ * The control and its label in one row, or the control alone.
55
+ *
56
+ * Lives here rather than inline in `Switch.tsx` because the two branches only
57
+ * differ in what surrounds the control — and the component that assembles them
58
+ * was long enough that the wiring got hard to see between them.
59
+ */
60
+ export declare const SwitchRow: React.FC<{
61
+ label?: React.ReactNode;
47
62
  description?: React.ReactNode;
63
+ labelPosition?: string;
48
64
  error?: boolean;
49
65
  dataTestId?: string;
66
+ htmlFor: string;
67
+ descriptionId?: string;
68
+ disabled?: boolean;
69
+ control: React.ReactNode;
50
70
  }>;
51
71
  //# sourceMappingURL=Switch.parts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.parts.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Switch/Switch.parts.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AA0ClD;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAIA,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,oEAAoE;IACpE,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,GAAG,KAAK,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsBhD,CAAC;AAEF,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IACnC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAA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CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CA8BA,CAAC"}
@@ -16,5 +16,11 @@ export interface SwitchFlags {
16
16
  ripple?: boolean;
17
17
  pulse?: boolean;
18
18
  }
19
+ /**
20
+ * The same checked-track ink, for the two ICONS the control overlays on the
21
+ * track — which are drawn as components rather than styles, so they cannot
22
+ * reach {@link checkedInk} directly.
23
+ */
24
+ export declare const onTrackInk: (theme: Theme, flags: SwitchFlags) => string;
19
25
  export declare const switchSx: (theme: Theme, flags: SwitchFlags) => CSSObject;
20
26
  //# sourceMappingURL=Switch.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Switch/Switch.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAwCtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAiDxE,MAAM,WAAW,WAAW;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAoMD,eAAO,MAAM,QAAQ,GAAI,OAAO,KAAK,EAAE,OAAO,WAAW,KAAG,SAc3D,CAAC"}
1
+ {"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Switch/Switch.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAyCtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAiDxE,MAAM,WAAW,WAAW;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAgPD;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,KAAK,EAAE,OAAO,WAAW,KAAG,MACe,CAAC;AAE9E,eAAO,MAAM,QAAQ,GAAI,OAAO,KAAK,EAAE,OAAO,WAAW,KAAG,SAc3D,CAAC"}
@@ -143,6 +143,44 @@ export declare const DEFAULT_BRAND: Record<UiThemeMode, {
143
143
  * palette's `text.primary`, which is what made it easy to read backwards.)
144
144
  */
145
145
  export declare function contrastText(background: string): string;
146
+ /**
147
+ * The ink that reads on EVERY one of these fills (FUT-1924).
148
+ *
149
+ * {@link contrastText} answers for one fill, which is all MUI's `augmentColor`
150
+ * ever needs: a solid button is a single flat colour. Two components paint the
151
+ * label over something that is not one colour — `Button`'s `gradient` variant
152
+ * runs between two stops, and `Switch`'s thumb travels the whole length of a
153
+ * checked track — and both of them stated `#fff` outright instead, which is
154
+ * white-on-pale the moment a white-labelled host hands the library a pale
155
+ * brand. Audited across the library, those two were the only places a hardcoded
156
+ * white sat over a surface the TENANT chooses.
157
+ *
158
+ * **This deliberately does not follow `contrastText`'s rule.** MUI's is a
159
+ * threshold that PREFERS white — white wherever white clears 3:1 — which is a
160
+ * brand-feel decision, and it is kept for every existing caller so nothing
161
+ * already legible moves. Here the fills can disagree: over MUI's own success
162
+ * pair white is 2.78:1 on `#4caf50` and dark ink 2.66:1 on `#1b5e20`, so
163
+ * neither meets any threshold and asking whether one does is the wrong
164
+ * question. The answer is whichever ink has the better WORST case across the
165
+ * fills — which is also not what either fill says on its own, since
166
+ * `contrastText('#4caf50')` is dark ink.
167
+ *
168
+ * A gradient wide enough that neither ink clears 4.5:1 anywhere is a palette
169
+ * problem this cannot fix — it returns the less bad ink and does not pretend
170
+ * otherwise.
171
+ *
172
+ * `Math.min` is the claim, and it is worth knowing that no test can prove it
173
+ * against `Math.max` today: the two candidate inks sit at opposite ends of the
174
+ * luminance range, so ranking them by their best fill and by their worst gives
175
+ * the same winner for every possible pair (checked exhaustively). Worst case is
176
+ * still what this MEANS, and the moment a third ink or one that is not an
177
+ * extreme is offered, the two stop agreeing.
178
+ *
179
+ * `fallback` is returned when a fill cannot be decomposed: {@link getContrastRatio}
180
+ * throws on a format it does not know, and a throw inside an emotion style
181
+ * function takes the render down with it.
182
+ */
183
+ export declare function inkOver(fills: readonly string[], fallback: string): string;
146
184
  /**
147
185
  * MUI's `augmentColor` for a custom colour: derive whatever shade the seed
148
186
  * left out. `light` is one tonal offset up, `dark` one and a half down.
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/tokens/theme.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,UAAU,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAElF,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,cAAc,CAAC;IACxB,SAAS,EAAE,cAAc,CAAC;IAC1B,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/D,UAAU,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAA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M,gBAAgB,EAAE,OAAyB,CAAC"}
@@ -69,11 +69,37 @@ export interface AlertBaseFields {
69
69
  */
70
70
  animate?: boolean;
71
71
  /**
72
- * ARIA role for the alert
72
+ * Whether this alert INTERRUPTS a screen reader, or waits its turn.
73
+ *
74
+ * Sets `role` and `aria-live` together, which is the whole point of it:
75
+ * those two disagree by default and the disagreement is invisible. An alert
76
+ * gets `role="alert"` from {@link ALERT_DEFAULTS} whatever its variant, and
77
+ * `role="alert"` is IMPLICITLY an assertive live region — so a `polite`
78
+ * `aria-live` beside it is contradicted rather than honoured, and several
79
+ * screen readers interrupt anyway. A caller who wants a quiet announcement
80
+ * has to know that the trick is `role="status"`, which is implicitly polite.
81
+ *
82
+ * `announce` is that knowledge, spelled once:
83
+ *
84
+ * | value | `role` | `aria-live` |
85
+ * |---|---|---|
86
+ * | `'assertive'` | `alert` | `assertive` |
87
+ * | `'polite'` | `status` | `polite` |
88
+ *
89
+ * Unset, nothing changes: the role stays `alert` and the live setting is
90
+ * still derived from the variant ({@link defaultAriaLive}). An explicit
91
+ * `role` or `aria-live` still wins over both, so an existing call site that
92
+ * spells either by hand keeps exactly what it spelled.
93
+ */
94
+ announce?: 'polite' | 'assertive';
95
+ /**
96
+ * ARIA role for the alert. Prefer {@link AlertBaseFields.announce}, which
97
+ * keeps this and `aria-live` consistent; this overrides it.
73
98
  */
74
99
  role?: string;
75
100
  /**
76
- * ARIA live region setting
101
+ * ARIA live region setting. Prefer {@link AlertBaseFields.announce}, which
102
+ * keeps this and `role` consistent; this overrides it.
77
103
  */
78
104
  'aria-live'?: 'polite' | 'assertive' | 'off';
79
105
  /**