@12-apps/ui 6.26.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 (486) hide show
  1. package/dist/_internal/components/data-display/Alert/Alert.js +4 -4
  2. package/dist/_internal/components/data-display/Alert/Alert.metrics.js +2 -2
  3. package/dist/_internal/components/data-display/Alert/Alert.styles.js +3 -3
  4. package/dist/_internal/components/data-display/Avatar/Avatar.js +3 -3
  5. package/dist/_internal/components/data-display/Avatar/Avatar.view.js +2 -2
  6. package/dist/_internal/components/data-display/Badge/Badge.animations.js +3 -3
  7. package/dist/_internal/components/data-display/Badge/Badge.js +7 -7
  8. package/dist/_internal/components/data-display/Badge/Badge.metrics.js +2 -2
  9. package/dist/_internal/components/data-display/Badge/Badge.styles.js +5 -5
  10. package/dist/_internal/components/data-display/Badge/Badge.variants.js +3 -3
  11. package/dist/_internal/components/data-display/Badge/BadgeContent.js +6 -6
  12. package/dist/_internal/components/data-display/Banner/Banner.js +4 -4
  13. package/dist/_internal/components/data-display/Banner/Banner.styles.js +3 -3
  14. package/dist/_internal/components/data-display/CardKit/CardKebab.js +4 -4
  15. package/dist/_internal/components/data-display/CardKit/card-actions-context.js +5 -5
  16. package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +9 -9
  17. package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +4 -4
  18. package/dist/_internal/components/data-display/Carousel/Carousel.chrome.js +1 -1
  19. package/dist/_internal/components/data-display/Carousel/Carousel.js +1 -1
  20. package/dist/_internal/components/data-display/Carousel/Carousel.parts.js +1 -1
  21. package/dist/_internal/components/data-display/Carousel/Carousel.styles.js +1 -1
  22. package/dist/_internal/components/data-display/Chart/Chart.js +5 -5
  23. package/dist/_internal/components/data-display/Chart/SpecChart.js +6 -6
  24. package/dist/_internal/components/data-display/Chart/chart-context.js +3 -3
  25. package/dist/_internal/components/data-display/Chart/chart-internals.js +1 -1
  26. package/dist/_internal/components/data-display/Chart/chart-renderers.js +4 -4
  27. package/dist/_internal/components/data-display/DataViews/DataViewsBoard.js +4 -4
  28. package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +37 -37
  29. package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +54 -53
  30. package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +6 -6
  31. package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +7 -7
  32. package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +12 -11
  33. package/dist/_internal/components/data-display/DataViews/base-card.js +9 -9
  34. package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +12 -12
  35. package/dist/_internal/components/data-display/DataViews/base-list-card-gutters.js +3 -3
  36. package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +8 -8
  37. package/dist/_internal/components/data-display/DataViews/base-list-card.js +16 -16
  38. package/dist/_internal/components/data-display/DataViews/card-surface.js +4 -4
  39. package/dist/_internal/components/data-display/DataViews/data-views-category-pill.js +5 -5
  40. package/dist/_internal/components/data-display/DataViews/data-views-columns-tab.js +4 -4
  41. package/dist/_internal/components/data-display/DataViews/data-views-columns.js +5 -5
  42. package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +11 -11
  43. package/dist/_internal/components/data-display/DataViews/data-views-display-tabs.js +6 -6
  44. package/dist/_internal/components/data-display/DataViews/data-views-empty.js +6 -6
  45. package/dist/_internal/components/data-display/DataViews/data-views-export.js +6 -6
  46. package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +6 -6
  47. package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +12 -12
  48. package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +4 -4
  49. package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +34 -34
  50. package/dist/_internal/components/data-display/DataViews/data-views-header-row.js +4 -4
  51. package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +13 -13
  52. package/dist/_internal/components/data-display/DataViews/data-views-layout-context.js +2 -2
  53. package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +4 -4
  54. package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +7 -7
  55. package/dist/_internal/components/data-display/DataViews/data-views-scope-tabs.js +3 -3
  56. package/dist/_internal/components/data-display/DataViews/data-views-select-all-strip.js +6 -6
  57. package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +15 -15
  58. package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +18 -17
  59. package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +14 -14
  60. package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +6 -6
  61. package/dist/_internal/components/data-display/DataViews/list-card-rails.js +3 -3
  62. package/dist/_internal/components/data-display/DataViews/save-view-preview.js +4 -4
  63. package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +7 -7
  64. package/dist/_internal/components/data-display/DataViews/use-saved-views-controller.js +2 -2
  65. package/dist/_internal/components/data-display/DescriptionItem/DescriptionItem.js +4 -4
  66. package/dist/_internal/components/data-display/FleetMap/FleetBody.js +11 -11
  67. package/dist/_internal/components/data-display/FleetMap/FleetCanvas.js +8 -8
  68. package/dist/_internal/components/data-display/FleetMap/FleetMap.js +13 -13
  69. package/dist/_internal/components/data-display/FleetMap/FleetRoster.js +2 -2
  70. package/dist/_internal/components/data-display/Lightbox/Lightbox.js +1 -1
  71. package/dist/_internal/components/data-display/MapPreview/MapDecorations.js +2 -2
  72. package/dist/_internal/components/data-display/MapPreview/MapPreview.hooks.js +2 -2
  73. package/dist/_internal/components/data-display/MapPreview/MapPreview.js +7 -7
  74. package/dist/_internal/components/data-display/MapPreview/MapTiles.js +2 -2
  75. package/dist/_internal/components/data-display/MapPreview/StaticMapView.js +4 -4
  76. package/dist/_internal/components/data-display/MapPreview/useMapPreview.js +3 -3
  77. package/dist/_internal/components/data-display/Progress/Progress.js +4 -4
  78. package/dist/_internal/components/data-display/Progress/Progress.metrics.js +2 -2
  79. package/dist/_internal/components/data-display/Progress/Progress.styles.js +3 -3
  80. package/dist/_internal/components/data-display/Sheet/Sheet.body.js +1 -1
  81. package/dist/_internal/components/data-display/Sheet/Sheet.js +4 -4
  82. package/dist/_internal/components/data-display/Sheet/Sheet.styles.js +1 -1
  83. package/dist/_internal/components/data-display/Table/Table.js +2 -2
  84. package/dist/_internal/components/data-display/index.js +43 -43
  85. package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +4 -4
  86. package/dist/_internal/components/feedback/index.js +4 -4
  87. package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.hooks.js +2 -2
  88. package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.js +5 -5
  89. package/dist/_internal/components/form/Autocomplete/Autocomplete.js +2 -2
  90. package/dist/_internal/components/form/Button/Button.js +3 -3
  91. package/dist/_internal/components/form/Button/Button.styles.js +2 -2
  92. package/dist/_internal/components/form/Calendar/Calendar.hooks.js +2 -2
  93. package/dist/_internal/components/form/Calendar/Calendar.js +3 -3
  94. package/dist/_internal/components/form/CategorySelect/CategoryPanel.js +1 -1
  95. package/dist/_internal/components/form/CategorySelect/CategorySelect.js +4 -4
  96. package/dist/_internal/components/form/Checkbox/Checkbox.js +2 -2
  97. package/dist/_internal/components/form/Command/Command.js +4 -4
  98. package/dist/_internal/components/form/Command/Command.styles.js +1 -1
  99. package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +5 -5
  100. package/dist/_internal/components/form/Label/Label.js +1 -1
  101. package/dist/_internal/components/form/Label/Label.styles.js +1 -1
  102. package/dist/_internal/components/form/Menubar/Menubar.item.js +1 -1
  103. package/dist/_internal/components/form/Menubar/Menubar.js +1 -1
  104. package/dist/_internal/components/form/Menubar/Menubar.styles.js +1 -1
  105. package/dist/_internal/components/form/Menubar/Menubar.toolbar.js +1 -1
  106. package/dist/_internal/components/form/PhoneInput/PhoneInput.hooks.js +2 -2
  107. package/dist/_internal/components/form/PhoneInput/PhoneInput.js +3 -3
  108. package/dist/_internal/components/form/RichTextEditor/RichTextEditor.js +2 -2
  109. package/dist/_internal/components/form/Switch/Switch.ids.js +8 -0
  110. package/dist/_internal/components/form/Switch/Switch.ids.js.map +1 -0
  111. package/dist/_internal/components/form/Switch/Switch.js +6 -5
  112. package/dist/_internal/components/form/Switch/Switch.metrics.js +5 -1
  113. package/dist/_internal/components/form/Switch/Switch.parts.js +6 -8
  114. package/dist/_internal/components/form/Switch/Switch.styles.js +5 -3
  115. package/dist/_internal/components/form/index.js +34 -33
  116. package/dist/_internal/components/form/total-form/Fields/CategoryField.js +5 -5
  117. package/dist/_internal/components/form/total-form/Fields/index.js +6 -6
  118. package/dist/_internal/components/form/total-form/SubmitButton.js +4 -4
  119. package/dist/_internal/components/index.js +82 -81
  120. package/dist/_internal/components/layout/Box/Box.js +4 -4
  121. package/dist/_internal/components/layout/Stack/Stack.js +5 -5
  122. package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +7 -7
  123. package/dist/_internal/components/navigation/AppHeader/AppHeader.identity.js +1 -1
  124. package/dist/_internal/components/navigation/index.js +7 -7
  125. package/dist/_internal/components/typography/Heading/Heading.js +4 -4
  126. package/dist/_internal/components/typography/Heading/Heading.metrics.js +2 -2
  127. package/dist/_internal/components/typography/Heading/Heading.styles.js +3 -3
  128. package/dist/_internal/components/typography/Paragraph/Paragraph.js +2 -2
  129. package/dist/_internal/components/typography/Text/Text.js +3 -3
  130. package/dist/_internal/components/typography/Text/Text.metrics.js +2 -2
  131. package/dist/_internal/components/typography/index.js +7 -7
  132. package/dist/_internal/icons/Icon.js +4 -4
  133. package/dist/_internal/provider/UiProvider.js +3 -3
  134. package/dist/_internal/provider/mui-bridge.js +2 -2
  135. package/dist/_internal/provider/use-ui-theme.js +3 -3
  136. package/dist/_internal/social-login-button/social-login-button.js +9 -9
  137. package/dist/_internal/tokens/theme.js +3 -1
  138. package/dist/_internal/user-avatar/user-avatar.js +8 -8
  139. package/dist/charts.js +6 -6
  140. package/dist/{chunk-2GI7ANEL.js → chunk-22X7TT6Z.js} +4 -4
  141. package/dist/{chunk-WR5JFDQ5.js → chunk-27BL3DNT.js} +8 -8
  142. package/dist/{chunk-E55CJV65.js → chunk-2KVQIGVE.js} +2 -2
  143. package/dist/{chunk-BB2OUERT.js → chunk-2LSCK45B.js} +7 -4
  144. package/dist/chunk-2LSCK45B.js.map +1 -0
  145. package/dist/{chunk-W3FAKT3D.js → chunk-2SWQ6HIK.js} +4 -4
  146. package/dist/{chunk-ISW5K72V.js → chunk-2ZRZTGWP.js} +5 -5
  147. package/dist/{chunk-I5SBTNV2.js → chunk-3GB6KWHH.js} +2 -2
  148. package/dist/{chunk-ZEG2LNBY.js → chunk-3PJLT5FX.js} +2 -2
  149. package/dist/{chunk-CXLAJZSE.js → chunk-3VZT2FAI.js} +3 -3
  150. package/dist/{chunk-MLCFODJO.js → chunk-3W2IS5RH.js} +5 -1
  151. package/dist/{chunk-MLCFODJO.js.map → chunk-3W2IS5RH.js.map} +1 -1
  152. package/dist/{chunk-PFDM2OIP.js → chunk-45OHGD2B.js} +4 -4
  153. package/dist/{chunk-BH5BXLGI.js → chunk-4A2Q22HO.js} +3 -3
  154. package/dist/{chunk-46UPILLK.js → chunk-4ETQRBZC.js} +4 -4
  155. package/dist/{chunk-TWY5FOBY.js → chunk-5QUSX3TC.js} +5 -5
  156. package/dist/{chunk-AVGTTWTE.js → chunk-65DLYC4S.js} +4 -4
  157. package/dist/{chunk-TVPPA4RD.js → chunk-65METCKT.js} +16 -16
  158. package/dist/{chunk-OQFSYMHJ.js → chunk-67ALTEWH.js} +2 -2
  159. package/dist/{chunk-OGGHD64H.js → chunk-6SK3MTYJ.js} +2 -2
  160. package/dist/{chunk-OE2ZVL67.js → chunk-6VHCSPKK.js} +3 -3
  161. package/dist/{chunk-WAPJ2DL3.js → chunk-72T5PAW7.js} +4 -4
  162. package/dist/{chunk-SLVQ33AN.js → chunk-77DF5LKI.js} +2 -2
  163. package/dist/{chunk-7KWBGMQC.js → chunk-77OXG6DH.js} +5 -5
  164. package/dist/{chunk-Y3KRUT7O.js → chunk-7AIHK2XM.js} +2 -2
  165. package/dist/{chunk-MHV5Y5MR.js → chunk-7KEGJH3Q.js} +3 -3
  166. package/dist/{chunk-KMXAPYU2.js → chunk-7NEUPEV5.js} +2 -2
  167. package/dist/{chunk-67L7HMEP.js → chunk-7Z2AQEC5.js} +2 -2
  168. package/dist/{chunk-PQECNGDE.js → chunk-AGYGNNOM.js} +2 -2
  169. package/dist/{chunk-ZTF5C2GA.js → chunk-B5SW7I5W.js} +2 -2
  170. package/dist/{chunk-TXHJX2NG.js → chunk-BGYLL467.js} +4 -4
  171. package/dist/{chunk-R7R3LOKW.js → chunk-CA7TA36R.js} +2 -2
  172. package/dist/{chunk-FPFUXRD2.js → chunk-CKJI7JO5.js} +2 -2
  173. package/dist/{chunk-HMV4QMXS.js → chunk-CMN26J5Y.js} +4 -4
  174. package/dist/{chunk-KVEHH4SA.js → chunk-DB2MAYPK.js} +2 -2
  175. package/dist/{chunk-2ECT4IY2.js → chunk-DIHVWBQV.js} +36 -17
  176. package/dist/chunk-DIHVWBQV.js.map +1 -0
  177. package/dist/{chunk-V4FKHLEB.js → chunk-DTIB5KWP.js} +3 -3
  178. package/dist/{chunk-MESRKY67.js → chunk-DW6GBMLQ.js} +3 -3
  179. package/dist/{chunk-JO6BBSGY.js → chunk-DWJBOR47.js} +3 -3
  180. package/dist/{chunk-YW5T6KZ5.js → chunk-DYESJJ3Q.js} +9 -9
  181. package/dist/{chunk-TZDDL3DR.js → chunk-ECMJ5VPW.js} +2 -2
  182. package/dist/{chunk-OH3YGJT5.js → chunk-EMNGIYH6.js} +5 -5
  183. package/dist/{chunk-CZJLWCEG.js → chunk-EPNCYUQ7.js} +4 -4
  184. package/dist/{chunk-JZXWCEH5.js → chunk-EQA4VQEO.js} +2 -2
  185. package/dist/{chunk-3N6EK6K5.js → chunk-ERX4XIYC.js} +2 -2
  186. package/dist/{chunk-TTLI6PF7.js → chunk-FF3R67WD.js} +5 -5
  187. package/dist/{chunk-4Y6SPFKW.js → chunk-FOF2RAVQ.js} +4 -4
  188. package/dist/{chunk-KLREH4X6.js → chunk-G2JPUHEJ.js} +2 -2
  189. package/dist/{chunk-4J5EN4FQ.js → chunk-GBX5ACPF.js} +5 -5
  190. package/dist/{chunk-ZZMZF7PZ.js → chunk-GQJ4NCZ6.js} +3 -3
  191. package/dist/{chunk-IPVYEPXO.js → chunk-GSTRPZS4.js} +5 -5
  192. package/dist/{chunk-HFXTAEYY.js → chunk-GTLJYAEG.js} +2 -2
  193. package/dist/{chunk-M4LFDGI6.js → chunk-GYQT47YZ.js} +2 -2
  194. package/dist/{chunk-JSH3HFDQ.js → chunk-H3BQFEN5.js} +2 -2
  195. package/dist/{chunk-OV4WREMW.js → chunk-HKB5C2KY.js} +7 -7
  196. package/dist/{chunk-BLBOYCOV.js → chunk-HKV4MQ2W.js} +5 -5
  197. package/dist/{chunk-4MGFUPQT.js → chunk-HOJL2GKW.js} +4 -4
  198. package/dist/{chunk-HR7YTBR7.js → chunk-IASDP44E.js} +4 -4
  199. package/dist/{chunk-YMRI5QKG.js → chunk-IV5QQLCS.js} +2 -2
  200. package/dist/{chunk-JUHUKZGU.js → chunk-JD3D6Y4U.js} +2 -2
  201. package/dist/{chunk-FR67FG2U.js → chunk-JFRKBSWI.js} +35 -25
  202. package/dist/chunk-JFRKBSWI.js.map +1 -0
  203. package/dist/{chunk-AXTLFK4T.js → chunk-KAV63FBG.js} +2 -2
  204. package/dist/{chunk-2PBGVMM2.js → chunk-KOFO6QZY.js} +2 -2
  205. package/dist/{chunk-RP5FK3SO.js → chunk-L7LCSZ3H.js} +3 -3
  206. package/dist/{chunk-MNXVXW4T.js → chunk-L7S6N67X.js} +2 -2
  207. package/dist/{chunk-JXPHU3K5.js → chunk-LGJ2H4AH.js} +5 -5
  208. package/dist/{chunk-W4YWU7LQ.js → chunk-LO2B7FDQ.js} +2 -2
  209. package/dist/{chunk-PWR7K5OP.js → chunk-LV4UTYAD.js} +2 -2
  210. package/dist/{chunk-OG2FP6SE.js → chunk-M4NFXC5R.js} +4 -4
  211. package/dist/{chunk-ZPIMPOHV.js → chunk-M7E66OSC.js} +4 -4
  212. package/dist/{chunk-OGGPQVIG.js → chunk-MDTSMJ7C.js} +3 -3
  213. package/dist/{chunk-YDI6IJ6F.js → chunk-MI2MVH3I.js} +4 -4
  214. package/dist/{chunk-UIZH4DAE.js → chunk-MQPT254A.js} +4 -4
  215. package/dist/{chunk-EWT3WMVY.js → chunk-MYH7VISV.js} +5 -5
  216. package/dist/{chunk-7NSX7A5H.js → chunk-N5PY7IXI.js} +3 -3
  217. package/dist/{chunk-BHIGHSXA.js → chunk-NNXZ5RK5.js} +4 -4
  218. package/dist/{chunk-EQ7PWGBN.js → chunk-O7HLQTB7.js} +3 -3
  219. package/dist/{chunk-DW5FRWRQ.js → chunk-OAWEUKUC.js} +2 -2
  220. package/dist/{chunk-O4VCZTK4.js → chunk-OGHW7RQC.js} +2 -2
  221. package/dist/{chunk-XR6WBW23.js → chunk-OVGASVPW.js} +2 -2
  222. package/dist/{chunk-HEBQS7QP.js → chunk-OXYR2HVK.js} +3 -3
  223. package/dist/{chunk-TNVO2DTB.js → chunk-P7FQUGED.js} +5 -5
  224. package/dist/{chunk-343TTIHD.js → chunk-PENJBKPH.js} +3 -3
  225. package/dist/{chunk-2RQINU5T.js → chunk-PKFFJAQ6.js} +2 -2
  226. package/dist/{chunk-M4LQRQFL.js → chunk-PW2WLDX3.js} +2 -2
  227. package/dist/{chunk-WRDPWEIC.js → chunk-Q3GSDSK2.js} +6 -6
  228. package/dist/{chunk-VNTOBLIB.js → chunk-Q3OFOOO7.js} +2 -2
  229. package/dist/{chunk-GGI7GM5O.js → chunk-QE2C35TO.js} +4 -4
  230. package/dist/{chunk-NQN5Z36J.js → chunk-QLI7ES7Z.js} +10 -1
  231. package/dist/chunk-QLI7ES7Z.js.map +1 -0
  232. package/dist/{chunk-CT5K725B.js → chunk-QQLGSMGE.js} +2 -2
  233. package/dist/{chunk-7MN6I5NK.js → chunk-QXFPTRHB.js} +3 -3
  234. package/dist/{chunk-CZPU5TW3.js → chunk-RFZU5BTG.js} +2 -2
  235. package/dist/{chunk-JB67KPGM.js → chunk-RRO2EOJB.js} +4 -4
  236. package/dist/{chunk-MZQTHSLN.js → chunk-S7HRED4D.js} +2 -2
  237. package/dist/{chunk-NYEA7JAI.js → chunk-SC72DRTX.js} +6 -6
  238. package/dist/{chunk-JWW2Z3RH.js → chunk-SMZBGHR2.js} +7 -7
  239. package/dist/{chunk-EZSEAYYT.js → chunk-SSWZHR46.js} +5 -5
  240. package/dist/{chunk-NA7MIEG6.js → chunk-SZETT7QV.js} +2 -2
  241. package/dist/chunk-SZS7VZJN.js +25 -0
  242. package/dist/chunk-SZS7VZJN.js.map +1 -0
  243. package/dist/{chunk-2HPP6RVC.js → chunk-TQOPF7LD.js} +2 -2
  244. package/dist/{chunk-OLVZ6TOV.js → chunk-TUO47RL2.js} +4 -4
  245. package/dist/{chunk-N5IVVLTH.js → chunk-UG76BO5K.js} +79 -19
  246. package/dist/chunk-UG76BO5K.js.map +1 -0
  247. package/dist/{chunk-4IVDVZZ2.js → chunk-UGL6SJN6.js} +3 -3
  248. package/dist/{chunk-QJRDDVZ2.js → chunk-V5P5Q6HM.js} +3 -3
  249. package/dist/{chunk-73NJCGQG.js → chunk-VIK3HAUQ.js} +2 -2
  250. package/dist/{chunk-7LCXGJN5.js → chunk-VK4ULJFH.js} +2 -2
  251. package/dist/{chunk-QYNCPS5W.js → chunk-WBKWIFXA.js} +6 -6
  252. package/dist/{chunk-X4Z62ZQY.js → chunk-WETAIIKC.js} +2 -2
  253. package/dist/{chunk-GMTM6EN7.js → chunk-WKF54CCK.js} +7 -7
  254. package/dist/{chunk-KT6HWAEN.js → chunk-WZUNBSS7.js} +2 -2
  255. package/dist/{chunk-Y2B3I3IH.js → chunk-X5RDHO6G.js} +2 -2
  256. package/dist/{chunk-TXKZEKJN.js → chunk-XNOSTV5F.js} +2 -2
  257. package/dist/{chunk-7JXLGOM2.js → chunk-Y55ILY2F.js} +3 -3
  258. package/dist/{chunk-HI2OFZSZ.js → chunk-YPILHGEO.js} +2 -2
  259. package/dist/{chunk-V3PLFYKO.js → chunk-ZAJO2B75.js} +2 -2
  260. package/dist/data-display/Alert.js +4 -4
  261. package/dist/data-display/Avatar.js +3 -3
  262. package/dist/data-display/Badge.js +7 -7
  263. package/dist/data-display/Banner.js +4 -4
  264. package/dist/data-display/CardKit.js +13 -13
  265. package/dist/data-display/Carousel.js +1 -1
  266. package/dist/data-display/Chart.js +6 -6
  267. package/dist/data-display/DataViews.js +68 -67
  268. package/dist/data-display/DescriptionItem.js +4 -4
  269. package/dist/data-display/FleetMap.js +13 -13
  270. package/dist/data-display/Lightbox.js +1 -1
  271. package/dist/data-display/MapPreview.js +7 -7
  272. package/dist/data-display/Progress.js +4 -4
  273. package/dist/data-display/Sheet.js +4 -4
  274. package/dist/data-display/Table.js +2 -2
  275. package/dist/feedback/ConfirmAction.js +4 -4
  276. package/dist/form/AddressAutocomplete.js +5 -5
  277. package/dist/form/Autocomplete.js +2 -2
  278. package/dist/form/Button.js +3 -3
  279. package/dist/form/Calendar.js +3 -3
  280. package/dist/form/CategorySelect.js +4 -4
  281. package/dist/form/Checkbox.js +2 -2
  282. package/dist/form/Command.js +4 -4
  283. package/dist/form/DateRangePicker.js +10 -10
  284. package/dist/form/Label.js +1 -1
  285. package/dist/form/Menubar.js +1 -1
  286. package/dist/form/PhoneInput.js +3 -3
  287. package/dist/form/RichTextEditor.js +2 -2
  288. package/dist/form/Switch.js +6 -5
  289. package/dist/form/total-form.js +10 -10
  290. package/dist/icons.js +4 -4
  291. package/dist/layout/Box.js +4 -4
  292. package/dist/layout/Stack.js +5 -5
  293. package/dist/native/chunks/{chunk-2R2R35C5.js → chunk-2SBTJSQE.js} +5 -5
  294. package/dist/native/chunks/{chunk-WL5LXVCK.js → chunk-6L4UZBQP.js} +3 -3
  295. package/dist/native/chunks/{chunk-LEMMXZFN.js → chunk-MP3UDWTT.js} +10 -1
  296. package/dist/native/chunks/{chunk-LEMMXZFN.js.map → chunk-MP3UDWTT.js.map} +1 -1
  297. package/dist/native/chunks/{chunk-GW7TQ7HO.js → chunk-QEQZ5AF6.js} +3 -3
  298. package/dist/native/chunks/{chunk-7LTVGW23.js → chunk-UII3IFLP.js} +2 -2
  299. package/dist/native/chunks/{chunk-75JQYVDZ.js → chunk-UYREIOEM.js} +2 -2
  300. package/dist/native/chunks/{chunk-GWGIWQO7.js → chunk-XI7HTAVN.js} +2 -2
  301. package/dist/native/chunks/{chunk-QYUD3S6F.js → chunk-ZOP7UAZK.js} +2 -2
  302. package/dist/native/data-display/Alert.js +3 -3
  303. package/dist/native/data-display/Avatar.js +3 -3
  304. package/dist/native/data-display/Badge.js +3 -3
  305. package/dist/native/data-display/Chip.js +3 -3
  306. package/dist/native/data-display/EmptyState.js +5 -5
  307. package/dist/native/data-display/ErrorState.js +4 -4
  308. package/dist/native/data-display/FleetMap.js +6 -6
  309. package/dist/native/data-display/LoadingState.js +2 -2
  310. package/dist/native/data-display/Progress.js +2 -2
  311. package/dist/native/feedback/Dialog.js +3 -3
  312. package/dist/native/form/Button.js +3 -3
  313. package/dist/native/form/Checkbox.js +3 -3
  314. package/dist/native/form/Input.js +3 -3
  315. package/dist/native/form/Select.js +4 -4
  316. package/dist/native/form/Switch.js +26 -8
  317. package/dist/native/form/Switch.js.map +1 -1
  318. package/dist/native/icons.js +3 -3
  319. package/dist/native/layout/Box.js +3 -3
  320. package/dist/native/layout/Card.js +2 -2
  321. package/dist/native/layout/Container.js +2 -2
  322. package/dist/native/layout/Skeleton.js +3 -3
  323. package/dist/native/layout/Spacer.js +2 -2
  324. package/dist/native/layout/Stack.js +3 -3
  325. package/dist/native/provider.js +2 -2
  326. package/dist/native/tokens.js +3 -1
  327. package/dist/native/typography/Heading.js +2 -2
  328. package/dist/native/typography/Paragraph.js +2 -2
  329. package/dist/native/typography/Text.js +2 -2
  330. package/dist/navigation/AppHeader.js +7 -7
  331. package/dist/provider.js +4 -4
  332. package/dist/social-login-button.js +9 -9
  333. package/dist/tokens.js +3 -1
  334. package/dist/types/components/form/Button/Button.styles.d.ts.map +1 -1
  335. package/dist/types/components/form/Switch/Switch.d.ts.map +1 -1
  336. package/dist/types/components/form/Switch/Switch.ids.d.ts +42 -0
  337. package/dist/types/components/form/Switch/Switch.ids.d.ts.map +1 -0
  338. package/dist/types/components/form/Switch/Switch.metrics.d.ts +19 -0
  339. package/dist/types/components/form/Switch/Switch.metrics.d.ts.map +1 -1
  340. package/dist/types/components/form/Switch/Switch.parts.d.ts +31 -11
  341. package/dist/types/components/form/Switch/Switch.parts.d.ts.map +1 -1
  342. package/dist/types/components/form/Switch/Switch.styles.d.ts +6 -0
  343. package/dist/types/components/form/Switch/Switch.styles.d.ts.map +1 -1
  344. package/dist/types/tokens/theme.d.ts +38 -0
  345. package/dist/types/tokens/theme.d.ts.map +1 -1
  346. package/dist/types-native/components/form/Switch/Switch.look.native.d.ts +26 -2
  347. package/dist/types-native/components/form/Switch/Switch.look.native.d.ts.map +1 -1
  348. package/dist/types-native/components/form/Switch/Switch.metrics.d.ts +19 -0
  349. package/dist/types-native/components/form/Switch/Switch.metrics.d.ts.map +1 -1
  350. package/dist/types-native/components/form/Switch/Switch.native.d.ts.map +1 -1
  351. package/dist/types-native/tokens/theme.d.ts +38 -0
  352. package/dist/types-native/tokens/theme.d.ts.map +1 -1
  353. package/dist/typography/Heading.js +4 -4
  354. package/dist/typography/Paragraph.js +2 -2
  355. package/dist/typography/Text.js +3 -3
  356. package/dist/user-avatar.js +8 -8
  357. package/package.json +1 -1
  358. package/src/components/form/Button/Button.md +8 -0
  359. package/src/components/form/Button/Button.styles.ts +24 -3
  360. package/src/components/form/Switch/Switch.ids.ts +63 -0
  361. package/src/components/form/Switch/Switch.look.native.ts +45 -2
  362. package/src/components/form/Switch/Switch.md +34 -9
  363. package/src/components/form/Switch/Switch.metrics.ts +21 -0
  364. package/src/components/form/Switch/Switch.native.tsx +19 -6
  365. package/src/components/form/Switch/Switch.parts.tsx +150 -17
  366. package/src/components/form/Switch/Switch.styles.ts +59 -6
  367. package/src/components/form/Switch/Switch.tsx +32 -30
  368. package/src/tokens/theme.ts +50 -0
  369. package/dist/chunk-2ECT4IY2.js.map +0 -1
  370. package/dist/chunk-BB2OUERT.js.map +0 -1
  371. package/dist/chunk-FR67FG2U.js.map +0 -1
  372. package/dist/chunk-N5IVVLTH.js.map +0 -1
  373. package/dist/chunk-NQN5Z36J.js.map +0 -1
  374. /package/dist/{chunk-2GI7ANEL.js.map → chunk-22X7TT6Z.js.map} +0 -0
  375. /package/dist/{chunk-WR5JFDQ5.js.map → chunk-27BL3DNT.js.map} +0 -0
  376. /package/dist/{chunk-E55CJV65.js.map → chunk-2KVQIGVE.js.map} +0 -0
  377. /package/dist/{chunk-W3FAKT3D.js.map → chunk-2SWQ6HIK.js.map} +0 -0
  378. /package/dist/{chunk-ISW5K72V.js.map → chunk-2ZRZTGWP.js.map} +0 -0
  379. /package/dist/{chunk-I5SBTNV2.js.map → chunk-3GB6KWHH.js.map} +0 -0
  380. /package/dist/{chunk-ZEG2LNBY.js.map → chunk-3PJLT5FX.js.map} +0 -0
  381. /package/dist/{chunk-CXLAJZSE.js.map → chunk-3VZT2FAI.js.map} +0 -0
  382. /package/dist/{chunk-PFDM2OIP.js.map → chunk-45OHGD2B.js.map} +0 -0
  383. /package/dist/{chunk-BH5BXLGI.js.map → chunk-4A2Q22HO.js.map} +0 -0
  384. /package/dist/{chunk-46UPILLK.js.map → chunk-4ETQRBZC.js.map} +0 -0
  385. /package/dist/{chunk-TWY5FOBY.js.map → chunk-5QUSX3TC.js.map} +0 -0
  386. /package/dist/{chunk-AVGTTWTE.js.map → chunk-65DLYC4S.js.map} +0 -0
  387. /package/dist/{chunk-TVPPA4RD.js.map → chunk-65METCKT.js.map} +0 -0
  388. /package/dist/{chunk-OQFSYMHJ.js.map → chunk-67ALTEWH.js.map} +0 -0
  389. /package/dist/{chunk-OGGHD64H.js.map → chunk-6SK3MTYJ.js.map} +0 -0
  390. /package/dist/{chunk-OE2ZVL67.js.map → chunk-6VHCSPKK.js.map} +0 -0
  391. /package/dist/{chunk-WAPJ2DL3.js.map → chunk-72T5PAW7.js.map} +0 -0
  392. /package/dist/{chunk-SLVQ33AN.js.map → chunk-77DF5LKI.js.map} +0 -0
  393. /package/dist/{chunk-7KWBGMQC.js.map → chunk-77OXG6DH.js.map} +0 -0
  394. /package/dist/{chunk-Y3KRUT7O.js.map → chunk-7AIHK2XM.js.map} +0 -0
  395. /package/dist/{chunk-MHV5Y5MR.js.map → chunk-7KEGJH3Q.js.map} +0 -0
  396. /package/dist/{chunk-KMXAPYU2.js.map → chunk-7NEUPEV5.js.map} +0 -0
  397. /package/dist/{chunk-67L7HMEP.js.map → chunk-7Z2AQEC5.js.map} +0 -0
  398. /package/dist/{chunk-PQECNGDE.js.map → chunk-AGYGNNOM.js.map} +0 -0
  399. /package/dist/{chunk-ZTF5C2GA.js.map → chunk-B5SW7I5W.js.map} +0 -0
  400. /package/dist/{chunk-TXHJX2NG.js.map → chunk-BGYLL467.js.map} +0 -0
  401. /package/dist/{chunk-R7R3LOKW.js.map → chunk-CA7TA36R.js.map} +0 -0
  402. /package/dist/{chunk-FPFUXRD2.js.map → chunk-CKJI7JO5.js.map} +0 -0
  403. /package/dist/{chunk-HMV4QMXS.js.map → chunk-CMN26J5Y.js.map} +0 -0
  404. /package/dist/{chunk-KVEHH4SA.js.map → chunk-DB2MAYPK.js.map} +0 -0
  405. /package/dist/{chunk-V4FKHLEB.js.map → chunk-DTIB5KWP.js.map} +0 -0
  406. /package/dist/{chunk-MESRKY67.js.map → chunk-DW6GBMLQ.js.map} +0 -0
  407. /package/dist/{chunk-JO6BBSGY.js.map → chunk-DWJBOR47.js.map} +0 -0
  408. /package/dist/{chunk-YW5T6KZ5.js.map → chunk-DYESJJ3Q.js.map} +0 -0
  409. /package/dist/{chunk-TZDDL3DR.js.map → chunk-ECMJ5VPW.js.map} +0 -0
  410. /package/dist/{chunk-OH3YGJT5.js.map → chunk-EMNGIYH6.js.map} +0 -0
  411. /package/dist/{chunk-CZJLWCEG.js.map → chunk-EPNCYUQ7.js.map} +0 -0
  412. /package/dist/{chunk-JZXWCEH5.js.map → chunk-EQA4VQEO.js.map} +0 -0
  413. /package/dist/{chunk-3N6EK6K5.js.map → chunk-ERX4XIYC.js.map} +0 -0
  414. /package/dist/{chunk-TTLI6PF7.js.map → chunk-FF3R67WD.js.map} +0 -0
  415. /package/dist/{chunk-4Y6SPFKW.js.map → chunk-FOF2RAVQ.js.map} +0 -0
  416. /package/dist/{chunk-KLREH4X6.js.map → chunk-G2JPUHEJ.js.map} +0 -0
  417. /package/dist/{chunk-4J5EN4FQ.js.map → chunk-GBX5ACPF.js.map} +0 -0
  418. /package/dist/{chunk-ZZMZF7PZ.js.map → chunk-GQJ4NCZ6.js.map} +0 -0
  419. /package/dist/{chunk-IPVYEPXO.js.map → chunk-GSTRPZS4.js.map} +0 -0
  420. /package/dist/{chunk-HFXTAEYY.js.map → chunk-GTLJYAEG.js.map} +0 -0
  421. /package/dist/{chunk-M4LFDGI6.js.map → chunk-GYQT47YZ.js.map} +0 -0
  422. /package/dist/{chunk-JSH3HFDQ.js.map → chunk-H3BQFEN5.js.map} +0 -0
  423. /package/dist/{chunk-OV4WREMW.js.map → chunk-HKB5C2KY.js.map} +0 -0
  424. /package/dist/{chunk-BLBOYCOV.js.map → chunk-HKV4MQ2W.js.map} +0 -0
  425. /package/dist/{chunk-4MGFUPQT.js.map → chunk-HOJL2GKW.js.map} +0 -0
  426. /package/dist/{chunk-HR7YTBR7.js.map → chunk-IASDP44E.js.map} +0 -0
  427. /package/dist/{chunk-YMRI5QKG.js.map → chunk-IV5QQLCS.js.map} +0 -0
  428. /package/dist/{chunk-JUHUKZGU.js.map → chunk-JD3D6Y4U.js.map} +0 -0
  429. /package/dist/{chunk-AXTLFK4T.js.map → chunk-KAV63FBG.js.map} +0 -0
  430. /package/dist/{chunk-2PBGVMM2.js.map → chunk-KOFO6QZY.js.map} +0 -0
  431. /package/dist/{chunk-RP5FK3SO.js.map → chunk-L7LCSZ3H.js.map} +0 -0
  432. /package/dist/{chunk-MNXVXW4T.js.map → chunk-L7S6N67X.js.map} +0 -0
  433. /package/dist/{chunk-JXPHU3K5.js.map → chunk-LGJ2H4AH.js.map} +0 -0
  434. /package/dist/{chunk-W4YWU7LQ.js.map → chunk-LO2B7FDQ.js.map} +0 -0
  435. /package/dist/{chunk-PWR7K5OP.js.map → chunk-LV4UTYAD.js.map} +0 -0
  436. /package/dist/{chunk-OG2FP6SE.js.map → chunk-M4NFXC5R.js.map} +0 -0
  437. /package/dist/{chunk-ZPIMPOHV.js.map → chunk-M7E66OSC.js.map} +0 -0
  438. /package/dist/{chunk-OGGPQVIG.js.map → chunk-MDTSMJ7C.js.map} +0 -0
  439. /package/dist/{chunk-YDI6IJ6F.js.map → chunk-MI2MVH3I.js.map} +0 -0
  440. /package/dist/{chunk-UIZH4DAE.js.map → chunk-MQPT254A.js.map} +0 -0
  441. /package/dist/{chunk-EWT3WMVY.js.map → chunk-MYH7VISV.js.map} +0 -0
  442. /package/dist/{chunk-7NSX7A5H.js.map → chunk-N5PY7IXI.js.map} +0 -0
  443. /package/dist/{chunk-BHIGHSXA.js.map → chunk-NNXZ5RK5.js.map} +0 -0
  444. /package/dist/{chunk-EQ7PWGBN.js.map → chunk-O7HLQTB7.js.map} +0 -0
  445. /package/dist/{chunk-DW5FRWRQ.js.map → chunk-OAWEUKUC.js.map} +0 -0
  446. /package/dist/{chunk-O4VCZTK4.js.map → chunk-OGHW7RQC.js.map} +0 -0
  447. /package/dist/{chunk-XR6WBW23.js.map → chunk-OVGASVPW.js.map} +0 -0
  448. /package/dist/{chunk-HEBQS7QP.js.map → chunk-OXYR2HVK.js.map} +0 -0
  449. /package/dist/{chunk-TNVO2DTB.js.map → chunk-P7FQUGED.js.map} +0 -0
  450. /package/dist/{chunk-343TTIHD.js.map → chunk-PENJBKPH.js.map} +0 -0
  451. /package/dist/{chunk-2RQINU5T.js.map → chunk-PKFFJAQ6.js.map} +0 -0
  452. /package/dist/{chunk-M4LQRQFL.js.map → chunk-PW2WLDX3.js.map} +0 -0
  453. /package/dist/{chunk-WRDPWEIC.js.map → chunk-Q3GSDSK2.js.map} +0 -0
  454. /package/dist/{chunk-VNTOBLIB.js.map → chunk-Q3OFOOO7.js.map} +0 -0
  455. /package/dist/{chunk-GGI7GM5O.js.map → chunk-QE2C35TO.js.map} +0 -0
  456. /package/dist/{chunk-CT5K725B.js.map → chunk-QQLGSMGE.js.map} +0 -0
  457. /package/dist/{chunk-7MN6I5NK.js.map → chunk-QXFPTRHB.js.map} +0 -0
  458. /package/dist/{chunk-CZPU5TW3.js.map → chunk-RFZU5BTG.js.map} +0 -0
  459. /package/dist/{chunk-JB67KPGM.js.map → chunk-RRO2EOJB.js.map} +0 -0
  460. /package/dist/{chunk-MZQTHSLN.js.map → chunk-S7HRED4D.js.map} +0 -0
  461. /package/dist/{chunk-NYEA7JAI.js.map → chunk-SC72DRTX.js.map} +0 -0
  462. /package/dist/{chunk-JWW2Z3RH.js.map → chunk-SMZBGHR2.js.map} +0 -0
  463. /package/dist/{chunk-EZSEAYYT.js.map → chunk-SSWZHR46.js.map} +0 -0
  464. /package/dist/{chunk-NA7MIEG6.js.map → chunk-SZETT7QV.js.map} +0 -0
  465. /package/dist/{chunk-2HPP6RVC.js.map → chunk-TQOPF7LD.js.map} +0 -0
  466. /package/dist/{chunk-OLVZ6TOV.js.map → chunk-TUO47RL2.js.map} +0 -0
  467. /package/dist/{chunk-4IVDVZZ2.js.map → chunk-UGL6SJN6.js.map} +0 -0
  468. /package/dist/{chunk-QJRDDVZ2.js.map → chunk-V5P5Q6HM.js.map} +0 -0
  469. /package/dist/{chunk-73NJCGQG.js.map → chunk-VIK3HAUQ.js.map} +0 -0
  470. /package/dist/{chunk-7LCXGJN5.js.map → chunk-VK4ULJFH.js.map} +0 -0
  471. /package/dist/{chunk-QYNCPS5W.js.map → chunk-WBKWIFXA.js.map} +0 -0
  472. /package/dist/{chunk-X4Z62ZQY.js.map → chunk-WETAIIKC.js.map} +0 -0
  473. /package/dist/{chunk-GMTM6EN7.js.map → chunk-WKF54CCK.js.map} +0 -0
  474. /package/dist/{chunk-KT6HWAEN.js.map → chunk-WZUNBSS7.js.map} +0 -0
  475. /package/dist/{chunk-Y2B3I3IH.js.map → chunk-X5RDHO6G.js.map} +0 -0
  476. /package/dist/{chunk-TXKZEKJN.js.map → chunk-XNOSTV5F.js.map} +0 -0
  477. /package/dist/{chunk-7JXLGOM2.js.map → chunk-Y55ILY2F.js.map} +0 -0
  478. /package/dist/{chunk-HI2OFZSZ.js.map → chunk-YPILHGEO.js.map} +0 -0
  479. /package/dist/{chunk-V3PLFYKO.js.map → chunk-ZAJO2B75.js.map} +0 -0
  480. /package/dist/native/chunks/{chunk-2R2R35C5.js.map → chunk-2SBTJSQE.js.map} +0 -0
  481. /package/dist/native/chunks/{chunk-WL5LXVCK.js.map → chunk-6L4UZBQP.js.map} +0 -0
  482. /package/dist/native/chunks/{chunk-GW7TQ7HO.js.map → chunk-QEQZ5AF6.js.map} +0 -0
  483. /package/dist/native/chunks/{chunk-7LTVGW23.js.map → chunk-UII3IFLP.js.map} +0 -0
  484. /package/dist/native/chunks/{chunk-75JQYVDZ.js.map → chunk-UYREIOEM.js.map} +0 -0
  485. /package/dist/native/chunks/{chunk-GWGIWQO7.js.map → chunk-XI7HTAVN.js.map} +0 -0
  486. /package/dist/native/chunks/{chunk-QYUD3S6F.js.map → chunk-ZOP7UAZK.js.map} +0 -0
@@ -1,12 +1,12 @@
1
1
  import "../chunk-BA4RHQ3B.js";
2
2
  import {
3
3
  Button
4
- } from "../chunk-SLVQ33AN.js";
5
- import "../chunk-BB2OUERT.js";
4
+ } from "../chunk-77DF5LKI.js";
5
+ import "../chunk-2LSCK45B.js";
6
6
  import "../chunk-5LQ7PKMW.js";
7
7
  import "../chunk-TAMIZE4Q.js";
8
8
  import "../chunk-TYJR4GOF.js";
9
- import "../chunk-NQN5Z36J.js";
9
+ import "../chunk-QLI7ES7Z.js";
10
10
  import "../chunk-AG66JBNH.js";
11
11
  import "../chunk-6JAIFIPW.js";
12
12
  import "../chunk-FZXKH2ZT.js";
@@ -1,14 +1,14 @@
1
1
  import "../chunk-BO6S47KI.js";
2
2
  import {
3
3
  Calendar
4
- } from "../chunk-CZJLWCEG.js";
5
- import "../chunk-ISW5K72V.js";
6
- import "../chunk-FFQ4NOJT.js";
4
+ } from "../chunk-EPNCYUQ7.js";
7
5
  import "../chunk-SUALMVL7.js";
8
6
  import "../chunk-PUBPZOQJ.js";
9
7
  import "../chunk-GJQYM3PM.js";
10
8
  import "../chunk-YU26GBNX.js";
9
+ import "../chunk-2ZRZTGWP.js";
11
10
  import "../chunk-E2Y7G4MP.js";
11
+ import "../chunk-FFQ4NOJT.js";
12
12
  import "../chunk-TERT6TIS.js";
13
13
  import "../chunk-PZ5AY32C.js";
14
14
  export {
@@ -1,21 +1,21 @@
1
1
  import "../chunk-N5ZWC6CB.js";
2
2
  import {
3
3
  CategorySelect
4
- } from "../chunk-WAPJ2DL3.js";
4
+ } from "../chunk-72T5PAW7.js";
5
5
  import "../chunk-LMXWI3DD.js";
6
6
  import "../chunk-ZC7RQDZ5.js";
7
7
  import "../chunk-V6Z4XS3I.js";
8
8
  import "../chunk-P7IVAMAU.js";
9
+ import "../chunk-NPN7JTRM.js";
9
10
  import "../chunk-CJUOBTLL.js";
10
11
  import "../chunk-ZUY65MFH.js";
12
+ import "../chunk-USJPZ5Q7.js";
11
13
  import "../chunk-XHHR6G35.js";
14
+ import "../chunk-R2AZOWEZ.js";
12
15
  import "../chunk-GVDJQMFI.js";
13
- import "../chunk-NPN7JTRM.js";
14
16
  import "../chunk-DMNZD3Q7.js";
15
17
  import "../chunk-ZS44PY7T.js";
16
18
  import "../chunk-RZVUY2MO.js";
17
- import "../chunk-USJPZ5Q7.js";
18
- import "../chunk-R2AZOWEZ.js";
19
19
  import {
20
20
  buildCategoryGroups,
21
21
  categoryCheckState,
@@ -1,12 +1,12 @@
1
1
  import "../chunk-SJRTT3PA.js";
2
2
  import {
3
3
  Checkbox
4
- } from "../chunk-R7R3LOKW.js";
4
+ } from "../chunk-CA7TA36R.js";
5
5
  import "../chunk-5ZNU2U4D.js";
6
6
  import "../chunk-TZ633UZA.js";
7
7
  import "../chunk-TYJR4GOF.js";
8
8
  import "../chunk-HPK33ACY.js";
9
- import "../chunk-NQN5Z36J.js";
9
+ import "../chunk-QLI7ES7Z.js";
10
10
  import "../chunk-AG66JBNH.js";
11
11
  import "../chunk-6JAIFIPW.js";
12
12
  import "../chunk-FZXKH2ZT.js";
@@ -4,18 +4,18 @@ import {
4
4
  CommandGroup,
5
5
  CommandInput,
6
6
  CommandList
7
- } from "../chunk-EWT3WMVY.js";
8
- import "../chunk-6DN4ZULV.js";
9
- import "../chunk-DOMEYGTN.js";
7
+ } from "../chunk-MYH7VISV.js";
10
8
  import {
11
9
  CommandEmpty,
12
10
  CommandLoading,
13
11
  CommandSeparator
14
12
  } from "../chunk-CMK4DJDR.js";
13
+ import "../chunk-6DN4ZULV.js";
14
+ import "../chunk-DOMEYGTN.js";
15
15
  import "../chunk-V5IOLAIS.js";
16
16
  import "../chunk-7ZPUN7TV.js";
17
17
  import "../chunk-PT6TCWIW.js";
18
- import "../chunk-NQN5Z36J.js";
18
+ import "../chunk-QLI7ES7Z.js";
19
19
  import "../chunk-AG66JBNH.js";
20
20
  import "../chunk-6JAIFIPW.js";
21
21
  import "../chunk-FZXKH2ZT.js";
@@ -1,29 +1,29 @@
1
1
  import "../chunk-BN6POCYF.js";
2
2
  import {
3
3
  DateRangePicker
4
- } from "../chunk-IPVYEPXO.js";
5
- import "../chunk-OD4Z5G6G.js";
6
- import "../chunk-ZRHSIFWA.js";
7
- import "../chunk-MEWYA74E.js";
8
- import {
9
- resolveDayRange
10
- } from "../chunk-B7NV6JFG.js";
4
+ } from "../chunk-GSTRPZS4.js";
11
5
  import {
12
6
  DEFAULT_QUICK_RANGES,
13
7
  DEFAULT_QUICK_RANGE_LABELS,
14
8
  QUICK_RANGE_IDS,
15
9
  createQuickRanges
16
10
  } from "../chunk-QKLSHNOH.js";
11
+ import "../chunk-OD4Z5G6G.js";
12
+ import "../chunk-ZRHSIFWA.js";
13
+ import "../chunk-MEWYA74E.js";
14
+ import {
15
+ resolveDayRange
16
+ } from "../chunk-B7NV6JFG.js";
17
17
  import "../chunk-FRAVVI4A.js";
18
18
  import "../chunk-BO6S47KI.js";
19
- import "../chunk-CZJLWCEG.js";
20
- import "../chunk-ISW5K72V.js";
21
- import "../chunk-FFQ4NOJT.js";
19
+ import "../chunk-EPNCYUQ7.js";
22
20
  import "../chunk-SUALMVL7.js";
23
21
  import "../chunk-PUBPZOQJ.js";
24
22
  import "../chunk-GJQYM3PM.js";
25
23
  import "../chunk-YU26GBNX.js";
24
+ import "../chunk-2ZRZTGWP.js";
26
25
  import "../chunk-E2Y7G4MP.js";
26
+ import "../chunk-FFQ4NOJT.js";
27
27
  import "../chunk-TERT6TIS.js";
28
28
  import "../chunk-UCU5FCYE.js";
29
29
  import "../chunk-PZ5AY32C.js";
@@ -8,7 +8,7 @@ import "../chunk-HPK33ACY.js";
8
8
  import "../chunk-V5IOLAIS.js";
9
9
  import "../chunk-7ZPUN7TV.js";
10
10
  import "../chunk-PT6TCWIW.js";
11
- import "../chunk-NQN5Z36J.js";
11
+ import "../chunk-QLI7ES7Z.js";
12
12
  import "../chunk-AG66JBNH.js";
13
13
  import "../chunk-6JAIFIPW.js";
14
14
  import "../chunk-FZXKH2ZT.js";
@@ -14,7 +14,7 @@ import "../chunk-HPK33ACY.js";
14
14
  import "../chunk-V5IOLAIS.js";
15
15
  import "../chunk-7ZPUN7TV.js";
16
16
  import "../chunk-PT6TCWIW.js";
17
- import "../chunk-NQN5Z36J.js";
17
+ import "../chunk-QLI7ES7Z.js";
18
18
  import "../chunk-AG66JBNH.js";
19
19
  import "../chunk-6JAIFIPW.js";
20
20
  import "../chunk-FZXKH2ZT.js";
@@ -1,10 +1,10 @@
1
1
  import "../chunk-GQ6WEQCZ.js";
2
2
  import {
3
3
  PhoneInput
4
- } from "../chunk-73NJCGQG.js";
5
- import "../chunk-TXHJX2NG.js";
6
- import "../chunk-3JDP5OUR.js";
4
+ } from "../chunk-VIK3HAUQ.js";
5
+ import "../chunk-BGYLL467.js";
7
6
  import "../chunk-5P6OV64V.js";
7
+ import "../chunk-3JDP5OUR.js";
8
8
  import "../chunk-7FDU3FIN.js";
9
9
  import "../chunk-EPEJMTCQ.js";
10
10
  import "../chunk-6JAIFIPW.js";
@@ -1,11 +1,11 @@
1
1
  import "../chunk-WMY276HD.js";
2
2
  import {
3
3
  RichTextEditor
4
- } from "../chunk-YDI6IJ6F.js";
5
- import "../chunk-SE6ERQY5.js";
4
+ } from "../chunk-MI2MVH3I.js";
6
5
  import "../chunk-774B27QA.js";
7
6
  import "../chunk-UZOG6HNN.js";
8
7
  import "../chunk-33LAPBYB.js";
8
+ import "../chunk-SE6ERQY5.js";
9
9
  import "../chunk-7FDU3FIN.js";
10
10
  import "../chunk-EPEJMTCQ.js";
11
11
  import "../chunk-6JAIFIPW.js";
@@ -1,14 +1,15 @@
1
1
  import "../chunk-4PJ52YBO.js";
2
2
  import {
3
3
  Switch
4
- } from "../chunk-FR67FG2U.js";
5
- import "../chunk-N5IVVLTH.js";
6
- import "../chunk-2ECT4IY2.js";
7
- import "../chunk-MLCFODJO.js";
4
+ } from "../chunk-JFRKBSWI.js";
5
+ import "../chunk-UG76BO5K.js";
6
+ import "../chunk-DIHVWBQV.js";
8
7
  import "../chunk-35ETD7ML.js";
8
+ import "../chunk-3W2IS5RH.js";
9
+ import "../chunk-SZS7VZJN.js";
9
10
  import "../chunk-TYJR4GOF.js";
10
11
  import "../chunk-HPK33ACY.js";
11
- import "../chunk-NQN5Z36J.js";
12
+ import "../chunk-QLI7ES7Z.js";
12
13
  import "../chunk-AG66JBNH.js";
13
14
  import "../chunk-6JAIFIPW.js";
14
15
  import "../chunk-FZXKH2ZT.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SubmitButton
3
- } from "../chunk-XR6WBW23.js";
3
+ } from "../chunk-OVGASVPW.js";
4
4
  import {
5
5
  FormErrorSnackbar
6
6
  } from "../chunk-XJUEHG72.js";
@@ -9,14 +9,14 @@ import {
9
9
  } from "../chunk-E6OILRUU.js";
10
10
  import {
11
11
  Fields_exports
12
- } from "../chunk-Y3KRUT7O.js";
12
+ } from "../chunk-7AIHK2XM.js";
13
13
  import {
14
14
  SelectField
15
15
  } from "../chunk-W4SDVTZC.js";
16
16
  import "../chunk-EOHKZGOZ.js";
17
17
  import {
18
18
  CategoryField
19
- } from "../chunk-Y2B3I3IH.js";
19
+ } from "../chunk-X5RDHO6G.js";
20
20
  import "../chunk-LYMAMKJT.js";
21
21
  import {
22
22
  TextField
@@ -35,21 +35,21 @@ import "../chunk-FGK2C7JR.js";
35
35
  import "../chunk-JD5BVIM7.js";
36
36
  import "../chunk-JXUWWPZR.js";
37
37
  import "../chunk-N5ZWC6CB.js";
38
- import "../chunk-WAPJ2DL3.js";
38
+ import "../chunk-72T5PAW7.js";
39
39
  import "../chunk-LMXWI3DD.js";
40
40
  import "../chunk-ZC7RQDZ5.js";
41
41
  import "../chunk-V6Z4XS3I.js";
42
42
  import "../chunk-P7IVAMAU.js";
43
+ import "../chunk-NPN7JTRM.js";
43
44
  import "../chunk-CJUOBTLL.js";
44
45
  import "../chunk-ZUY65MFH.js";
46
+ import "../chunk-USJPZ5Q7.js";
45
47
  import "../chunk-XHHR6G35.js";
48
+ import "../chunk-R2AZOWEZ.js";
46
49
  import "../chunk-GVDJQMFI.js";
47
- import "../chunk-NPN7JTRM.js";
48
50
  import "../chunk-DMNZD3Q7.js";
49
51
  import "../chunk-ZS44PY7T.js";
50
52
  import "../chunk-RZVUY2MO.js";
51
- import "../chunk-USJPZ5Q7.js";
52
- import "../chunk-R2AZOWEZ.js";
53
53
  import "../chunk-PN4HVM43.js";
54
54
  import "../chunk-QYKDY4EI.js";
55
55
  import "../chunk-4OHRZW7U.js";
@@ -62,14 +62,14 @@ import "../chunk-7FDU3FIN.js";
62
62
  import "../chunk-EPEJMTCQ.js";
63
63
  import "../chunk-RTSK5OZT.js";
64
64
  import "../chunk-BA4RHQ3B.js";
65
- import "../chunk-SLVQ33AN.js";
66
- import "../chunk-BB2OUERT.js";
65
+ import "../chunk-77DF5LKI.js";
66
+ import "../chunk-2LSCK45B.js";
67
67
  import "../chunk-5LQ7PKMW.js";
68
68
  import "../chunk-TAMIZE4Q.js";
69
69
  import "../chunk-TYJR4GOF.js";
70
70
  import "../chunk-HPK33ACY.js";
71
71
  import "../chunk-7ZPUN7TV.js";
72
- import "../chunk-NQN5Z36J.js";
72
+ import "../chunk-QLI7ES7Z.js";
73
73
  import "../chunk-AG66JBNH.js";
74
74
  import "../chunk-6JAIFIPW.js";
75
75
  import "../chunk-FZXKH2ZT.js";
package/dist/icons.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Icon
3
- } from "./chunk-67L7HMEP.js";
3
+ } from "./chunk-7Z2AQEC5.js";
4
4
  import {
5
5
  ICON_NAMES,
6
6
  ICON_PATHS
@@ -10,13 +10,13 @@ import {
10
10
  ICON_SIZES,
11
11
  iconSize
12
12
  } from "./chunk-RTSK5OZT.js";
13
- import "./chunk-KLREH4X6.js";
14
- import "./chunk-YMRI5QKG.js";
13
+ import "./chunk-G2JPUHEJ.js";
14
+ import "./chunk-IV5QQLCS.js";
15
15
  import "./chunk-TYJR4GOF.js";
16
16
  import "./chunk-V5IOLAIS.js";
17
17
  import "./chunk-7ZPUN7TV.js";
18
18
  import "./chunk-PT6TCWIW.js";
19
- import "./chunk-NQN5Z36J.js";
19
+ import "./chunk-QLI7ES7Z.js";
20
20
  import "./chunk-AG66JBNH.js";
21
21
  import "./chunk-6JAIFIPW.js";
22
22
  import "./chunk-FZXKH2ZT.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  Box
3
- } from "../chunk-W4YWU7LQ.js";
3
+ } from "../chunk-LO2B7FDQ.js";
4
4
  import {
5
5
  resolveBoxLayout
6
6
  } from "../chunk-7V6ZRQYW.js";
7
7
  import "../chunk-OCUVKI63.js";
8
- import "../chunk-KLREH4X6.js";
9
- import "../chunk-YMRI5QKG.js";
8
+ import "../chunk-G2JPUHEJ.js";
9
+ import "../chunk-IV5QQLCS.js";
10
10
  import "../chunk-TYJR4GOF.js";
11
11
  import "../chunk-V5IOLAIS.js";
12
12
  import "../chunk-7ZPUN7TV.js";
13
13
  import "../chunk-PT6TCWIW.js";
14
- import "../chunk-NQN5Z36J.js";
14
+ import "../chunk-QLI7ES7Z.js";
15
15
  import "../chunk-AG66JBNH.js";
16
16
  import "../chunk-6JAIFIPW.js";
17
17
  import "../chunk-FZXKH2ZT.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  Stack
3
- } from "../chunk-TZDDL3DR.js";
3
+ } from "../chunk-ECMJ5VPW.js";
4
4
  import "../chunk-4GGH6ZQ7.js";
5
- import "../chunk-W4YWU7LQ.js";
5
+ import "../chunk-LO2B7FDQ.js";
6
6
  import "../chunk-7V6ZRQYW.js";
7
7
  import "../chunk-OCUVKI63.js";
8
- import "../chunk-KLREH4X6.js";
9
- import "../chunk-YMRI5QKG.js";
8
+ import "../chunk-G2JPUHEJ.js";
9
+ import "../chunk-IV5QQLCS.js";
10
10
  import "../chunk-TYJR4GOF.js";
11
11
  import "../chunk-V5IOLAIS.js";
12
12
  import "../chunk-7ZPUN7TV.js";
13
13
  import "../chunk-PT6TCWIW.js";
14
- import "../chunk-NQN5Z36J.js";
14
+ import "../chunk-QLI7ES7Z.js";
15
15
  import "../chunk-AG66JBNH.js";
16
16
  import "../chunk-6JAIFIPW.js";
17
17
  import "../chunk-FZXKH2ZT.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Button
3
- } from "./chunk-WL5LXVCK.js";
3
+ } from "./chunk-6L4UZBQP.js";
4
4
  import {
5
5
  webAria
6
6
  } from "./chunk-DN73KYIZ.js";
7
7
  import {
8
8
  Icon
9
- } from "./chunk-QYUD3S6F.js";
9
+ } from "./chunk-ZOP7UAZK.js";
10
10
  import {
11
11
  MUI_FONT_WEIGHT_MEDIUM,
12
12
  MUI_TYPE,
@@ -18,10 +18,10 @@ import {
18
18
  } from "./chunk-AR5O4BEY.js";
19
19
  import {
20
20
  useUiTheme
21
- } from "./chunk-GWGIWQO7.js";
21
+ } from "./chunk-XI7HTAVN.js";
22
22
  import {
23
23
  alpha
24
- } from "./chunk-LEMMXZFN.js";
24
+ } from "./chunk-MP3UDWTT.js";
25
25
 
26
26
  // src/components/data-display/EmptyState/EmptyState.native.tsx
27
27
  import * as React from "react";
@@ -289,4 +289,4 @@ var styles = StyleSheet.create({
289
289
  export {
290
290
  EmptyState
291
291
  };
292
- //# sourceMappingURL=chunk-2R2R35C5.js.map
292
+ //# sourceMappingURL=chunk-2SBTJSQE.js.map
@@ -8,12 +8,12 @@ import {
8
8
  } from "./chunk-AR5O4BEY.js";
9
9
  import {
10
10
  useUiTheme
11
- } from "./chunk-GWGIWQO7.js";
11
+ } from "./chunk-XI7HTAVN.js";
12
12
  import {
13
13
  alpha,
14
14
  darken,
15
15
  lighten
16
- } from "./chunk-LEMMXZFN.js";
16
+ } from "./chunk-MP3UDWTT.js";
17
17
 
18
18
  // src/components/form/Button/Button.native.tsx
19
19
  import * as React from "react";
@@ -315,4 +315,4 @@ var styles = StyleSheet.create({
315
315
  export {
316
316
  Button
317
317
  };
318
- //# sourceMappingURL=chunk-WL5LXVCK.js.map
318
+ //# sourceMappingURL=chunk-6L4UZBQP.js.map
@@ -201,6 +201,14 @@ var MODE_DEFAULTS = {
201
201
  function contrastText(background) {
202
202
  return getContrastRatio(background, LIGHT_TEXT_PRIMARY) >= CONTRAST_THRESHOLD ? LIGHT_TEXT_PRIMARY : DARK_TEXT_PRIMARY;
203
203
  }
204
+ function inkOver(fills, fallback) {
205
+ try {
206
+ const worstCase = (ink) => Math.min(...fills.map((fill) => getContrastRatio(ink, fill)));
207
+ return worstCase(LIGHT_TEXT_PRIMARY) >= worstCase(DARK_TEXT_PRIMARY) ? LIGHT_TEXT_PRIMARY : DARK_TEXT_PRIMARY;
208
+ } catch {
209
+ return fallback;
210
+ }
211
+ }
204
212
  function augmentColor(seed) {
205
213
  const partial = typeof seed === "string" ? { main: seed } : seed;
206
214
  const main = partial.main ?? partial.light ?? partial.dark;
@@ -305,6 +313,7 @@ export {
305
313
  GREY,
306
314
  DEFAULT_BRAND,
307
315
  contrastText,
316
+ inkOver,
308
317
  augmentColor,
309
318
  NEUTRAL,
310
319
  TYPE_SIZES,
@@ -314,4 +323,4 @@ export {
314
323
  createUiTheme,
315
324
  DEFAULT_UI_THEME
316
325
  };
317
- //# sourceMappingURL=chunk-LEMMXZFN.js.map
326
+ //# sourceMappingURL=chunk-MP3UDWTT.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/tokens/color.ts","../../../src/tokens/heading-scale.ts","../../../src/tokens/css-units.ts","../../../src/tokens/theme.ts"],"sourcesContent":["/**\n * COLOUR ARITHMETIC WITH NO RENDERER BEHIND IT.\n *\n * Every shade the web components paint comes out of MUI's colour manipulator:\n * `lighten(main, 0.2)` is a palette's `light`, `darken(main, 0.3)` its `dark`,\n * `alpha(main, 0.1)` the hover wash on an outline button. A native component\n * that wants the SAME pixel has to run the SAME arithmetic, and it cannot\n * import it — `@mui/material/styles` drags emotion and the DOM in behind it.\n *\n * So the arithmetic lives here, once, with nothing behind it. It is a faithful\n * port of `@mui/system/colorManipulator` (MIT), down to the truncation:\n * `lighten('#6366F1', 0.2)` is `rgb(130, 132, 243)` on both sides because both\n * TRUNCATE 132.6 rather than round it. A port that rounded would be one pixel\n * of tint away from the web on every button, forever, and nothing would flag it.\n *\n * `color()` space strings are deliberately unsupported: nothing in this package\n * emits one, and a smaller surface is a smaller thing to keep identical.\n */\n\nexport type ColorFormat = 'rgb' | 'rgba' | 'hsl' | 'hsla';\n\nexport interface DecomposedColor {\n type: ColorFormat;\n values: number[];\n}\n\nconst FORMATS: readonly ColorFormat[] = ['rgb', 'rgba', 'hsl', 'hsla'];\n\nconst clamp = (value: number, min = 0, max = 1): number => Math.min(Math.max(min, value), max);\n\n/** `#rgb`, `#rgba`, `#rrggbb` or `#rrggbbaa` to its `rgb()` / `rgba()` string. */\nexport function hexToRgb(color: string): string {\n const hex = color.slice(1);\n const pair = new RegExp(`.{1,${hex.length >= 6 ? 2 : 1}}`, 'g');\n let channels: string[] | null = hex.match(pair);\n if (channels && channels[0]?.length === 1) {\n channels = channels.map((channel) => channel + channel);\n }\n if (!channels) return '';\n\n const parts = channels.map((channel, index) =>\n index < 3 ? parseInt(channel, 16) : Math.round((parseInt(channel, 16) / 255) * 1000) / 1000,\n );\n return `rgb${channels.length === 4 ? 'a' : ''}(${parts.join(', ')})`;\n}\n\n/** Any supported colour string to its type and numeric channels. */\nexport function decomposeColor(color: string): DecomposedColor {\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n\n const marker = color.indexOf('(');\n const type = color.substring(0, marker) as ColorFormat;\n if (!FORMATS.includes(type)) {\n throw new Error(\n `@12-apps/ui: unsupported colour \"${color}\". Use #nnn, #nnnnnn, rgb(), rgba(), hsl() or hsla().`,\n );\n }\n\n const values = color\n .substring(marker + 1, color.length - 1)\n .split(',')\n .map((value) => parseFloat(value));\n\n return { type, values };\n}\n\n/** The inverse of {@link decomposeColor}, with MUI's channel truncation. */\nexport function recomposeColor({ type, values }: DecomposedColor): string {\n const parts: Array<number | string> = type.startsWith('rgb')\n ? values.map((value, index) => (index < 3 ? Math.trunc(value) : value))\n : [values[0] ?? 0, `${values[1] ?? 0}%`, `${values[2] ?? 0}%`, ...values.slice(3)];\n\n return `${type}(${parts.join(', ')})`;\n}\n\n/** An `hsl()` / `hsla()` string to its `rgb()` / `rgba()` equivalent. */\nexport function hslToRgb(color: string): string {\n const { type, values } = decomposeColor(color);\n const h = values[0] ?? 0;\n const s = (values[1] ?? 0) / 100;\n const l = (values[2] ?? 0) / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n: number, k = (n + h / 30) % 12): number =>\n l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (type === 'hsla') {\n return recomposeColor({ type: 'rgba', values: [...rgb, values[3] ?? 1] });\n }\n return recomposeColor({ type: 'rgb', values: rgb });\n}\n\n/** Relative luminance (WCAG 2.0), to three decimals like MUI. */\nexport function getLuminance(color: string): number {\n const decomposed = decomposeColor(color);\n const channels = decomposed.type.startsWith('hsl')\n ? decomposeColor(hslToRgb(color)).values\n : decomposed.values;\n\n const [r, g, b] = channels.slice(0, 3).map((value) => {\n const c = value / 255;\n return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;\n });\n\n return Number((0.2126 * (r ?? 0) + 0.7152 * (g ?? 0) + 0.0722 * (b ?? 0)).toFixed(3));\n}\n\n/** WCAG contrast ratio between two colours, 1 to 21. */\nexport function getContrastRatio(foreground: string, background: string): number {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/** The colour with its alpha channel set to `value` (0 to 1). */\nexport function alpha(color: string, value: number): string {\n const decomposed = decomposeColor(color);\n const type: ColorFormat = decomposed.type.endsWith('a')\n ? decomposed.type\n : (`${decomposed.type}a` as ColorFormat);\n const values = decomposed.values.slice(0, 3);\n values[3] = clamp(value);\n return recomposeColor({ type, values });\n}\n\n/** The colour moved `coefficient` (0 to 1) of the way towards black. */\nexport function darken(color: string, coefficient: number): string {\n const decomposed = decomposeColor(color);\n const amount = clamp(coefficient);\n const values = [...decomposed.values];\n\n if (decomposed.type.startsWith('hsl')) {\n values[2] = (values[2] ?? 0) * (1 - amount);\n } else {\n for (let index = 0; index < 3; index += 1) {\n values[index] = (values[index] ?? 0) * (1 - amount);\n }\n }\n return recomposeColor({ type: decomposed.type, values });\n}\n\n/** The colour moved `coefficient` (0 to 1) of the way towards white. */\nexport function lighten(color: string, coefficient: number): string {\n const decomposed = decomposeColor(color);\n const amount = clamp(coefficient);\n const values = [...decomposed.values];\n\n if (decomposed.type.startsWith('hsl')) {\n values[2] = (values[2] ?? 0) + (100 - (values[2] ?? 0)) * amount;\n } else {\n for (let index = 0; index < 3; index += 1) {\n values[index] = (values[index] ?? 0) + (255 - (values[index] ?? 0)) * amount;\n }\n }\n return recomposeColor({ type: decomposed.type, values });\n}\n\n/** Darken a light colour or lighten a dark one, by `coefficient`. */\nexport function emphasize(color: string, coefficient = 0.15): string {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\n","\n/**\n * THE THIRD VOCABULARY: the type scale.\n *\n * `scales.ts` opens by saying the package had both halves of every argument at\n * once until the size and colour vocabularies were declared in one place and\n * every component derived from them. The type scale was the one that never got\n * that treatment — it lived as a private `LEVELS` table inside\n * `Heading.styles.ts`, which is exactly the shape that file exists to refuse.\n *\n * Two things follow from it being private, and the second is the expensive one.\n *\n * **It could not be re-themed.** `Heading` read `theme.typography.h1.fontFamily`\n * from the theme and then ignored the theme for every other metric, so a host\n * calling `createTheme({ typography: { h1: { fontSize: '2rem' } } })` changed\n * `<Typography variant=\"h1\">` and left `<Heading level=\"h1\">` at 48px. A design\n * system whose type scale cannot be set by the design is not a system.\n *\n * **And the numbers were a landing page's.** `h1` at 3rem and `h2` at 2.5rem are\n * hero metrics. Dropped into an operations console they put a 48px title\n * directly above 14px body copy — a 3.4x jump with nothing in between — so\n * product teams stopped reaching for the component. Measured in one consuming\n * repo: `<Heading>` appeared four times in the entire codebase while raw\n * `fontSize` appeared in dozens of files. The component was not disliked, it was\n * unusable at app scale, and every host paid for that in hand-rolled CSS.\n *\n * So the defaults below are an APP scale, and `display` keeps the hero size for\n * the screens that actually want one. A marketing page asks for `display`; a\n * console asks for `h1` and gets something it can put on a page.\n */\n\n/**\n * A step on the scale.\n *\n * `display` is a SIZE, not a rank — see `Heading`, which renders it as `h1` so\n * the document still gets exactly one level-one heading.\n */\nexport type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'display';\n\n/**\n * The runtime list, declared beside the union for the reason `SIZE_VALUES`\n * gives: a story's `argTypes.options` spelled by hand drifts from the type, and\n * the direction it drifts is \"documents less than the component accepts\".\n */\nexport const HEADING_LEVELS = [\n 'display',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n] as const satisfies readonly HeadingLevel[];\n\n/** Everything one step of the scale decides. */\nexport interface HeadingMetrics {\n fontSize: string;\n lineHeight: number;\n letterSpacing?: string;\n /**\n * The weight this step carries when the caller asks for `normal`. A heading's\n * \"normal\" is not body text's 400 — it is the weight the step is meant to\n * carry, which gets heavier as the step gets larger.\n */\n normalWeight: number;\n}\n\n/**\n * The house default, in CODE rather than in a component.\n *\n * ~1.15x per step from a 1rem `h6`, which keeps six distinguishable ranks inside\n * the range an application actually uses. The old table ran 1.125rem → 4rem and\n * spent its top three steps above anything a product screen wants.\n */\nexport const HEADING_SCALE: Record<HeadingLevel, HeadingMetrics> = {\n // The hero size the old `h1` was really offering, under the name that says so.\n display: { fontSize: '3rem', lineHeight: 1.05, letterSpacing: '-0.03em', normalWeight: 800 },\n h1: { fontSize: '2rem', lineHeight: 1.2, letterSpacing: '-0.02em', normalWeight: 700 },\n h2: { fontSize: '1.75rem', lineHeight: 1.25, letterSpacing: '-0.015em', normalWeight: 700 },\n h3: { fontSize: '1.5rem', lineHeight: 1.3, letterSpacing: '-0.01em', normalWeight: 600 },\n h4: { fontSize: '1.25rem', lineHeight: 1.35, letterSpacing: '-0.005em', normalWeight: 600 },\n h5: { fontSize: '1.125rem', lineHeight: 1.4, normalWeight: 600 },\n h6: { fontSize: '1rem', lineHeight: 1.5, normalWeight: 600 },\n};\n\n/** A host's overrides: any subset of the steps, any subset of each step's metrics. */\nexport type HeadingScaleOverrides = Partial<Record<HeadingLevel, Partial<HeadingMetrics>>>;\n","/**\n * THE ONE READER OF CSS LENGTHS.\n *\n * `HEADING_SCALE` and a host's MUI overrides speak CSS — `'2rem'`, `'-0.02em'`\n * — and both `tokens/theme.ts` and `provider/mui-bridge.ts` need them as\n * numbers. Two private parsers drifted (one multiplied `em` by 16, one did\n * not), so there is one, here, with the rule spelled out: a length becomes px\n * against a 16px root, a tracking value becomes em.\n */\n\nconst ROOT_PX = 16;\n\n/** `'1.5rem'` → 24, `'1.5em'` → 24, `'20px'` → 20, `20` → 20, unparseable → `fallback`. */\nexport function cssLengthToPx(value: string | number | undefined, fallback: number): number {\n if (typeof value === 'number') return value;\n if (value === undefined) return fallback;\n const parsed = Number.parseFloat(value);\n if (Number.isNaN(parsed)) return fallback;\n return value.endsWith('rem') || value.endsWith('em') ? parsed * ROOT_PX : parsed;\n}\n\n/** `'-0.02em'` → -0.02, `'0.5px'` → 0.5 / 16, `undefined` → `undefined` (\"normal\"). */\nexport function cssTrackingToEm(value: string | undefined): number | undefined {\n if (value === undefined) return undefined;\n const parsed = Number.parseFloat(value);\n if (Number.isNaN(parsed)) return undefined;\n return value.endsWith('px') ? parsed / ROOT_PX : parsed;\n}\n","import { darken, getContrastRatio, lighten } from './color';\nimport { cssLengthToPx, cssTrackingToEm } from './css-units';\nimport { HEADING_SCALE, type HeadingLevel } from './heading-scale';\n\nimport type { SizeValue } from './vocabulary';\n\n/**\n * THE THEME BOTH RENDERERS READ.\n *\n * On the web every component styles itself from MUI's `Theme`, which is built\n * by the host (`@12-apps/app-shell`'s `createAppTheme` in the origin apps) and\n * reaches a component through emotion's context. React Native has no emotion,\n * no CSS and no MUI, so a native `Button` needs the same decisions — the\n * palette, the spacing unit, the radius, the type scale — from somewhere that\n * does not import a renderer.\n *\n * This is that somewhere. `UiTheme` is a plain object of numbers and colour\n * strings. `createUiTheme` derives it the way MUI's `createPalette` derives its\n * own: a `light` shade is `lighten(main, 0.2)`, a `dark` shade `darken(main,\n * 0.3)`, `contrastText` flips at a 3:1 ratio against `rgba(0, 0, 0, 0.87)`.\n * Same seeds in, same shades out, on both sides — that is the whole basis for\n * a native button being the web button's colour and not a near miss.\n *\n * Numbers are in px on the web and dp on native; both are the CSS-pixel unit\n * a design is drawn in, so a `fontSize: 16` here IS `1rem` in a web style\n * and `16` in a `StyleSheet`. The web components keep their `rem` strings and\n * derive them from these numbers where the two meet (see `px()` below and the\n * `*.metrics.ts` file beside each ported component).\n *\n * `danger` and `neutral` are this package's names (see `./scales`); `danger`\n * is MUI's `error` and `neutral` is drawn from the grey ramp the way\n * `Button.styles.ts` has always drawn it.\n */\n\nexport type UiThemeMode = 'light' | 'dark';\n\nexport interface UiPaletteColor {\n main: string;\n light: string;\n dark: string;\n contrastText: string;\n}\n\nexport type UiGreyStep = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;\n\nexport interface UiPalette {\n mode: UiThemeMode;\n primary: UiPaletteColor;\n secondary: UiPaletteColor;\n success: UiPaletteColor;\n warning: UiPaletteColor;\n info: UiPaletteColor;\n danger: UiPaletteColor;\n neutral: UiPaletteColor;\n text: { primary: string; secondary: string; disabled: string };\n background: { default: string; paper: string };\n divider: string;\n action: {\n active: string;\n hover: string;\n selected: string;\n disabled: string;\n disabledBackground: string;\n focus: string;\n };\n grey: Record<UiGreyStep, string>;\n}\n\n/** One step of the body scale: `fontSize` in px, `lineHeight` as a ratio. */\nexport interface UiTypeStep {\n fontSize: number;\n lineHeight: number;\n}\n\nexport type UiFontWeight = 'light' | 'normal' | 'medium' | 'semibold' | 'bold';\n\nexport interface UiHeadingStep extends UiTypeStep {\n /** In em, so it scales with the step. `undefined` is \"normal\". */\n letterSpacing?: number;\n normalWeight: number;\n}\n\nexport interface UiTypography {\n /**\n * Native has no fallback stacks: a font is either installed and named, or\n * `undefined` and the platform's own. The web default is MUI's Roboto stack.\n */\n fontFamily: string | undefined;\n monospaceFontFamily: string | undefined;\n sizes: Record<SizeValue, UiTypeStep>;\n weights: Record<UiFontWeight, number>;\n heading: Record<HeadingLevel, UiHeadingStep>;\n}\n\nexport interface UiTheme {\n mode: UiThemeMode;\n palette: UiPalette;\n /** MUI's `theme.spacing(n)`: `n` units of {@link UiTheme.spacingUnit}, in px. */\n spacing: (units: number) => number;\n spacingUnit: number;\n /** `md` is MUI's `shape.borderRadius`; the others are its halves and doubles. */\n radius: { sm: number; md: number; lg: number; xl: number; full: number };\n typography: UiTypography;\n zIndex: { appBar: number; drawer: number; modal: number; snackbar: number; tooltip: number };\n}\n\n/** A seed for one palette slot: a hex `main`, or any subset of the four shades. */\nexport type UiPaletteSeed = string | Partial<UiPaletteColor>;\n\nexport interface UiThemeOptions {\n mode?: UiThemeMode;\n palette?: Partial<{\n primary: UiPaletteSeed;\n secondary: UiPaletteSeed;\n success: UiPaletteSeed;\n warning: UiPaletteSeed;\n info: UiPaletteSeed;\n danger: UiPaletteSeed;\n background: Partial<UiPalette['background']>;\n }>;\n typography?: Partial<Pick<UiTypography, 'fontFamily' | 'monospaceFontFamily'>>;\n spacingUnit?: number;\n}\n\nconst ROOT_FONT_PX = 16;\n\n/** The px value as the rem string the web components write. */\nexport const px = (value: number): string => `${value / ROOT_FONT_PX}rem`;\n\n/** MUI's `createPalette` defaults, exactly. */\nconst TONAL_OFFSET = 0.2;\nconst CONTRAST_THRESHOLD = 3;\nconst DARK_TEXT_PRIMARY = 'rgba(0, 0, 0, 0.87)';\nconst LIGHT_TEXT_PRIMARY = '#fff';\n\nexport const GREY: Record<UiGreyStep, string> = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n};\n\n/**\n * The platform's own seeds. The pair `@12-apps/ui`'s Storybook preview and\n * `@12-apps/app-shell`'s `DEFAULT_THEME_TOKENS` both carry — keep the three in\n * step if the design tokens change.\n */\nexport const DEFAULT_BRAND: Record<UiThemeMode, { primary: string; secondary: string }> = {\n light: { primary: '#6366F1', secondary: '#8B5CF6' },\n dark: { primary: '#818CF8', secondary: '#A78BFA' },\n};\n\n/** MUI's semantic defaults per mode. These are declared shades, not derived. */\nconst SEMANTIC_DEFAULTS: Record<\n UiThemeMode,\n Record<'success' | 'warning' | 'info' | 'danger', UiPaletteColor>\n> = {\n light: {\n success: { main: '#2e7d32', light: '#4caf50', dark: '#1b5e20', contrastText: '#fff' },\n warning: { main: '#ed6c02', light: '#ff9800', dark: '#e65100', contrastText: '#fff' },\n info: { main: '#0288d1', light: '#03a9f4', dark: '#01579b', contrastText: '#fff' },\n danger: { main: '#d32f2f', light: '#ef5350', dark: '#c62828', contrastText: '#fff' },\n },\n dark: {\n success: { main: '#66bb6a', light: '#81c784', dark: '#388e3c', contrastText: DARK_TEXT_PRIMARY },\n warning: { main: '#ffa726', light: '#ffb74d', dark: '#f57c00', contrastText: DARK_TEXT_PRIMARY },\n info: { main: '#29b6f6', light: '#4fc3f7', dark: '#0288d1', contrastText: DARK_TEXT_PRIMARY },\n danger: { main: '#f44336', light: '#e57373', dark: '#d32f2f', contrastText: '#fff' },\n },\n};\n\nconst MODE_DEFAULTS: Record<\n UiThemeMode,\n Pick<UiPalette, 'text' | 'background' | 'divider' | 'action'>\n> = {\n light: {\n text: { primary: DARK_TEXT_PRIMARY, secondary: 'rgba(0, 0, 0, 0.6)', disabled: 'rgba(0, 0, 0, 0.38)' },\n background: { default: '#fff', paper: '#fff' },\n divider: 'rgba(0, 0, 0, 0.12)',\n action: {\n active: 'rgba(0, 0, 0, 0.54)',\n hover: 'rgba(0, 0, 0, 0.04)',\n selected: 'rgba(0, 0, 0, 0.08)',\n disabled: 'rgba(0, 0, 0, 0.26)',\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n focus: 'rgba(0, 0, 0, 0.12)',\n },\n },\n dark: {\n text: { primary: '#fff', secondary: 'rgba(255, 255, 255, 0.7)', disabled: 'rgba(255, 255, 255, 0.5)' },\n background: { default: '#121212', paper: '#121212' },\n divider: 'rgba(255, 255, 255, 0.12)',\n action: {\n active: '#fff',\n hover: 'rgba(255, 255, 255, 0.08)',\n selected: 'rgba(255, 255, 255, 0.16)',\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n focus: 'rgba(255, 255, 255, 0.12)',\n },\n },\n};\n\n/**\n * MUI's `getContrastText`: white where white reads at 3:1 on the colour, the\n * light mode's dark ink otherwise. (MUI's source spells the white as the DARK\n * palette's `text.primary`, which is what made it easy to read backwards.)\n */\nexport function contrastText(background: string): string {\n return getContrastRatio(background, LIGHT_TEXT_PRIMARY) >= CONTRAST_THRESHOLD\n ? LIGHT_TEXT_PRIMARY\n : DARK_TEXT_PRIMARY;\n}\n\n/**\n * MUI's `augmentColor` for a custom colour: derive whatever shade the seed\n * left out. `light` is one tonal offset up, `dark` one and a half down.\n */\nexport function augmentColor(seed: UiPaletteSeed): UiPaletteColor {\n const partial = typeof seed === 'string' ? { main: seed } : seed;\n const main = partial.main ?? partial.light ?? partial.dark;\n if (!main) {\n throw new Error('@12-apps/ui: a palette seed needs at least a `main` colour.');\n }\n return {\n main,\n light: partial.light ?? lighten(main, TONAL_OFFSET),\n dark: partial.dark ?? darken(main, TONAL_OFFSET * 1.5),\n contrastText: partial.contrastText ?? contrastText(main),\n };\n}\n\nconst semantic = (\n mode: UiThemeMode,\n key: 'success' | 'warning' | 'info' | 'danger',\n seed: UiPaletteSeed | undefined,\n): UiPaletteColor => (seed === undefined ? SEMANTIC_DEFAULTS[mode][key] : augmentColor(seed));\n\n/** `neutral` as `accentFor` in `./scales` has always drawn it: three greys and white. */\nexport const NEUTRAL: UiPaletteColor = {\n main: GREY[600],\n light: GREY[400],\n dark: GREY[800],\n contrastText: '#fff',\n};\n\n/** The body scale `Text` renders, in px. `Text.tsx`'s rem map is this, divided by 16. */\nexport const TYPE_SIZES: Record<SizeValue, UiTypeStep> = {\n xs: { fontSize: 12, lineHeight: 1.2 },\n sm: { fontSize: 14, lineHeight: 1.3 },\n md: { fontSize: 16, lineHeight: 1.5 },\n lg: { fontSize: 18, lineHeight: 1.4 },\n xl: { fontSize: 20, lineHeight: 1.3 },\n};\n\nexport const FONT_WEIGHTS: Record<UiFontWeight, number> = {\n light: 300,\n normal: 400,\n medium: 500,\n semibold: 600,\n bold: 700,\n};\n\n// `HEADING_SCALE` speaks CSS, this theme speaks numbers; `./css-units` is the\n// one place that conversion is written.\nconst HEADING_STEPS = Object.fromEntries(\n Object.entries(HEADING_SCALE).map(([level, metrics]) => [\n level,\n {\n fontSize: cssLengthToPx(metrics.fontSize, ROOT_FONT_PX),\n lineHeight: metrics.lineHeight,\n letterSpacing: cssTrackingToEm(metrics.letterSpacing),\n normalWeight: metrics.normalWeight,\n },\n ]),\n) as Record<HeadingLevel, UiHeadingStep>;\n\nexport const WEB_FONT_FAMILY = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\nexport const WEB_MONOSPACE_FONT_FAMILY = 'Monaco, Menlo, \"Ubuntu Mono\", \"Courier New\", monospace';\n\n/**\n * Build the theme. Every field is derived here so a host that changes one\n * seed gets every dependent shade recomputed, on both renderers, identically.\n */\nexport function createUiTheme(options: UiThemeOptions = {}): UiTheme {\n const mode = options.mode ?? 'light';\n const seeds = options.palette ?? {};\n const brand = DEFAULT_BRAND[mode];\n const defaults = MODE_DEFAULTS[mode];\n const spacingUnit = options.spacingUnit ?? 8;\n\n const palette: UiPalette = {\n mode,\n primary: augmentColor(seeds.primary ?? brand.primary),\n secondary: augmentColor(seeds.secondary ?? brand.secondary),\n success: semantic(mode, 'success', seeds.success),\n warning: semantic(mode, 'warning', seeds.warning),\n info: semantic(mode, 'info', seeds.info),\n danger: semantic(mode, 'danger', seeds.danger),\n neutral: NEUTRAL,\n text: defaults.text,\n background: { ...defaults.background, ...seeds.background },\n divider: defaults.divider,\n action: defaults.action,\n grey: GREY,\n };\n\n return {\n mode,\n palette,\n spacing: (units: number) => units * spacingUnit,\n spacingUnit,\n radius: { sm: 2, md: 4, lg: 8, xl: 16, full: 9999 },\n typography: {\n fontFamily: options.typography?.fontFamily,\n monospaceFontFamily: options.typography?.monospaceFontFamily,\n sizes: TYPE_SIZES,\n weights: FONT_WEIGHTS,\n heading: HEADING_STEPS,\n },\n zIndex: { appBar: 1100, drawer: 1200, modal: 1300, snackbar: 1400, tooltip: 1500 },\n };\n}\n\n/** The palette slot a house colour name resolves to. */\nexport type UiPaletteKey = 'primary' | 'secondary' | 'success' | 'warning' | 'info' | 'danger' | 'neutral';\n\nexport const DEFAULT_UI_THEME: UiTheme = createUiTheme();\n"],"mappings":";AA0BA,IAAM,UAAkC,CAAC,OAAO,QAAQ,OAAO,MAAM;AAErE,IAAM,QAAQ,CAAC,OAAe,MAAM,GAAG,MAAM,MAAc,KAAK,IAAI,KAAK,IAAI,KAAK,KAAK,GAAG,GAAG;AAGtF,SAAS,SAAS,OAAuB;AAC9C,QAAM,MAAM,MAAM,MAAM,CAAC;AACzB,QAAM,OAAO,IAAI,OAAO,OAAO,IAAI,UAAU,IAAI,IAAI,CAAC,KAAK,GAAG;AAC9D,MAAI,WAA4B,IAAI,MAAM,IAAI;AAC9C,MAAI,YAAY,SAAS,CAAC,GAAG,WAAW,GAAG;AACzC,eAAW,SAAS,IAAI,CAAC,YAAY,UAAU,OAAO;AAAA,EACxD;AACA,MAAI,CAAC,SAAU,QAAO;AAEtB,QAAM,QAAQ,SAAS;AAAA,IAAI,CAAC,SAAS,UACnC,QAAQ,IAAI,SAAS,SAAS,EAAE,IAAI,KAAK,MAAO,SAAS,SAAS,EAAE,IAAI,MAAO,GAAI,IAAI;AAAA,EACzF;AACA,SAAO,MAAM,SAAS,WAAW,IAAI,MAAM,EAAE,IAAI,MAAM,KAAK,IAAI,CAAC;AACnE;AAGO,SAAS,eAAe,OAAgC;AAC7D,MAAI,MAAM,OAAO,CAAC,MA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V,YAAY,QAAQ,YAAY;AAAA,MAChC,qBAAqB,QAAQ,YAAY;AAAA,MACzC,OAAO;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,QAAQ,EAAE,QAAQ,MAAM,QAAQ,MAAM,OAAO,MAAM,UAAU,MAAM,SAAS,KAAK;AAAA,EACnF;AACF;AAKO,IAAM,mBAA4B,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../../src/tokens/color.ts","../../../src/tokens/heading-scale.ts","../../../src/tokens/css-units.ts","../../../src/tokens/theme.ts"],"sourcesContent":["/**\n * COLOUR ARITHMETIC WITH NO RENDERER BEHIND IT.\n *\n * Every shade the web components paint comes out of MUI's colour manipulator:\n * `lighten(main, 0.2)` is a palette's `light`, `darken(main, 0.3)` its `dark`,\n * `alpha(main, 0.1)` the hover wash on an outline button. A native component\n * that wants the SAME pixel has to run the SAME arithmetic, and it cannot\n * import it — `@mui/material/styles` drags emotion and the DOM in behind it.\n *\n * So the arithmetic lives here, once, with nothing behind it. It is a faithful\n * port of `@mui/system/colorManipulator` (MIT), down to the truncation:\n * `lighten('#6366F1', 0.2)` is `rgb(130, 132, 243)` on both sides because both\n * TRUNCATE 132.6 rather than round it. A port that rounded would be one pixel\n * of tint away from the web on every button, forever, and nothing would flag it.\n *\n * `color()` space strings are deliberately unsupported: nothing in this package\n * emits one, and a smaller surface is a smaller thing to keep identical.\n */\n\nexport type ColorFormat = 'rgb' | 'rgba' | 'hsl' | 'hsla';\n\nexport interface DecomposedColor {\n type: ColorFormat;\n values: number[];\n}\n\nconst FORMATS: readonly ColorFormat[] = ['rgb', 'rgba', 'hsl', 'hsla'];\n\nconst clamp = (value: number, min = 0, max = 1): number => Math.min(Math.max(min, value), max);\n\n/** `#rgb`, `#rgba`, `#rrggbb` or `#rrggbbaa` to its `rgb()` / `rgba()` string. */\nexport function hexToRgb(color: string): string {\n const hex = color.slice(1);\n const pair = new RegExp(`.{1,${hex.length >= 6 ? 2 : 1}}`, 'g');\n let channels: string[] | null = hex.match(pair);\n if (channels && channels[0]?.length === 1) {\n channels = channels.map((channel) => channel + channel);\n }\n if (!channels) return '';\n\n const parts = channels.map((channel, index) =>\n index < 3 ? parseInt(channel, 16) : Math.round((parseInt(channel, 16) / 255) * 1000) / 1000,\n );\n return `rgb${channels.length === 4 ? 'a' : ''}(${parts.join(', ')})`;\n}\n\n/** Any supported colour string to its type and numeric channels. */\nexport function decomposeColor(color: string): DecomposedColor {\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n\n const marker = color.indexOf('(');\n const type = color.substring(0, marker) as ColorFormat;\n if (!FORMATS.includes(type)) {\n throw new Error(\n `@12-apps/ui: unsupported colour \"${color}\". Use #nnn, #nnnnnn, rgb(), rgba(), hsl() or hsla().`,\n );\n }\n\n const values = color\n .substring(marker + 1, color.length - 1)\n .split(',')\n .map((value) => parseFloat(value));\n\n return { type, values };\n}\n\n/** The inverse of {@link decomposeColor}, with MUI's channel truncation. */\nexport function recomposeColor({ type, values }: DecomposedColor): string {\n const parts: Array<number | string> = type.startsWith('rgb')\n ? values.map((value, index) => (index < 3 ? Math.trunc(value) : value))\n : [values[0] ?? 0, `${values[1] ?? 0}%`, `${values[2] ?? 0}%`, ...values.slice(3)];\n\n return `${type}(${parts.join(', ')})`;\n}\n\n/** An `hsl()` / `hsla()` string to its `rgb()` / `rgba()` equivalent. */\nexport function hslToRgb(color: string): string {\n const { type, values } = decomposeColor(color);\n const h = values[0] ?? 0;\n const s = (values[1] ?? 0) / 100;\n const l = (values[2] ?? 0) / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n: number, k = (n + h / 30) % 12): number =>\n l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (type === 'hsla') {\n return recomposeColor({ type: 'rgba', values: [...rgb, values[3] ?? 1] });\n }\n return recomposeColor({ type: 'rgb', values: rgb });\n}\n\n/** Relative luminance (WCAG 2.0), to three decimals like MUI. */\nexport function getLuminance(color: string): number {\n const decomposed = decomposeColor(color);\n const channels = decomposed.type.startsWith('hsl')\n ? decomposeColor(hslToRgb(color)).values\n : decomposed.values;\n\n const [r, g, b] = channels.slice(0, 3).map((value) => {\n const c = value / 255;\n return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;\n });\n\n return Number((0.2126 * (r ?? 0) + 0.7152 * (g ?? 0) + 0.0722 * (b ?? 0)).toFixed(3));\n}\n\n/** WCAG contrast ratio between two colours, 1 to 21. */\nexport function getContrastRatio(foreground: string, background: string): number {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/** The colour with its alpha channel set to `value` (0 to 1). */\nexport function alpha(color: string, value: number): string {\n const decomposed = decomposeColor(color);\n const type: ColorFormat = decomposed.type.endsWith('a')\n ? decomposed.type\n : (`${decomposed.type}a` as ColorFormat);\n const values = decomposed.values.slice(0, 3);\n values[3] = clamp(value);\n return recomposeColor({ type, values });\n}\n\n/** The colour moved `coefficient` (0 to 1) of the way towards black. */\nexport function darken(color: string, coefficient: number): string {\n const decomposed = decomposeColor(color);\n const amount = clamp(coefficient);\n const values = [...decomposed.values];\n\n if (decomposed.type.startsWith('hsl')) {\n values[2] = (values[2] ?? 0) * (1 - amount);\n } else {\n for (let index = 0; index < 3; index += 1) {\n values[index] = (values[index] ?? 0) * (1 - amount);\n }\n }\n return recomposeColor({ type: decomposed.type, values });\n}\n\n/** The colour moved `coefficient` (0 to 1) of the way towards white. */\nexport function lighten(color: string, coefficient: number): string {\n const decomposed = decomposeColor(color);\n const amount = clamp(coefficient);\n const values = [...decomposed.values];\n\n if (decomposed.type.startsWith('hsl')) {\n values[2] = (values[2] ?? 0) + (100 - (values[2] ?? 0)) * amount;\n } else {\n for (let index = 0; index < 3; index += 1) {\n values[index] = (values[index] ?? 0) + (255 - (values[index] ?? 0)) * amount;\n }\n }\n return recomposeColor({ type: decomposed.type, values });\n}\n\n/** Darken a light colour or lighten a dark one, by `coefficient`. */\nexport function emphasize(color: string, coefficient = 0.15): string {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\n","\n/**\n * THE THIRD VOCABULARY: the type scale.\n *\n * `scales.ts` opens by saying the package had both halves of every argument at\n * once until the size and colour vocabularies were declared in one place and\n * every component derived from them. The type scale was the one that never got\n * that treatment — it lived as a private `LEVELS` table inside\n * `Heading.styles.ts`, which is exactly the shape that file exists to refuse.\n *\n * Two things follow from it being private, and the second is the expensive one.\n *\n * **It could not be re-themed.** `Heading` read `theme.typography.h1.fontFamily`\n * from the theme and then ignored the theme for every other metric, so a host\n * calling `createTheme({ typography: { h1: { fontSize: '2rem' } } })` changed\n * `<Typography variant=\"h1\">` and left `<Heading level=\"h1\">` at 48px. A design\n * system whose type scale cannot be set by the design is not a system.\n *\n * **And the numbers were a landing page's.** `h1` at 3rem and `h2` at 2.5rem are\n * hero metrics. Dropped into an operations console they put a 48px title\n * directly above 14px body copy — a 3.4x jump with nothing in between — so\n * product teams stopped reaching for the component. Measured in one consuming\n * repo: `<Heading>` appeared four times in the entire codebase while raw\n * `fontSize` appeared in dozens of files. The component was not disliked, it was\n * unusable at app scale, and every host paid for that in hand-rolled CSS.\n *\n * So the defaults below are an APP scale, and `display` keeps the hero size for\n * the screens that actually want one. A marketing page asks for `display`; a\n * console asks for `h1` and gets something it can put on a page.\n */\n\n/**\n * A step on the scale.\n *\n * `display` is a SIZE, not a rank — see `Heading`, which renders it as `h1` so\n * the document still gets exactly one level-one heading.\n */\nexport type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'display';\n\n/**\n * The runtime list, declared beside the union for the reason `SIZE_VALUES`\n * gives: a story's `argTypes.options` spelled by hand drifts from the type, and\n * the direction it drifts is \"documents less than the component accepts\".\n */\nexport const HEADING_LEVELS = [\n 'display',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n] as const satisfies readonly HeadingLevel[];\n\n/** Everything one step of the scale decides. */\nexport interface HeadingMetrics {\n fontSize: string;\n lineHeight: number;\n letterSpacing?: string;\n /**\n * The weight this step carries when the caller asks for `normal`. A heading's\n * \"normal\" is not body text's 400 — it is the weight the step is meant to\n * carry, which gets heavier as the step gets larger.\n */\n normalWeight: number;\n}\n\n/**\n * The house default, in CODE rather than in a component.\n *\n * ~1.15x per step from a 1rem `h6`, which keeps six distinguishable ranks inside\n * the range an application actually uses. The old table ran 1.125rem → 4rem and\n * spent its top three steps above anything a product screen wants.\n */\nexport const HEADING_SCALE: Record<HeadingLevel, HeadingMetrics> = {\n // The hero size the old `h1` was really offering, under the name that says so.\n display: { fontSize: '3rem', lineHeight: 1.05, letterSpacing: '-0.03em', normalWeight: 800 },\n h1: { fontSize: '2rem', lineHeight: 1.2, letterSpacing: '-0.02em', normalWeight: 700 },\n h2: { fontSize: '1.75rem', lineHeight: 1.25, letterSpacing: '-0.015em', normalWeight: 700 },\n h3: { fontSize: '1.5rem', lineHeight: 1.3, letterSpacing: '-0.01em', normalWeight: 600 },\n h4: { fontSize: '1.25rem', lineHeight: 1.35, letterSpacing: '-0.005em', normalWeight: 600 },\n h5: { fontSize: '1.125rem', lineHeight: 1.4, normalWeight: 600 },\n h6: { fontSize: '1rem', lineHeight: 1.5, normalWeight: 600 },\n};\n\n/** A host's overrides: any subset of the steps, any subset of each step's metrics. */\nexport type HeadingScaleOverrides = Partial<Record<HeadingLevel, Partial<HeadingMetrics>>>;\n","/**\n * THE ONE READER OF CSS LENGTHS.\n *\n * `HEADING_SCALE` and a host's MUI overrides speak CSS — `'2rem'`, `'-0.02em'`\n * — and both `tokens/theme.ts` and `provider/mui-bridge.ts` need them as\n * numbers. Two private parsers drifted (one multiplied `em` by 16, one did\n * not), so there is one, here, with the rule spelled out: a length becomes px\n * against a 16px root, a tracking value becomes em.\n */\n\nconst ROOT_PX = 16;\n\n/** `'1.5rem'` → 24, `'1.5em'` → 24, `'20px'` → 20, `20` → 20, unparseable → `fallback`. */\nexport function cssLengthToPx(value: string | number | undefined, fallback: number): number {\n if (typeof value === 'number') return value;\n if (value === undefined) return fallback;\n const parsed = Number.parseFloat(value);\n if (Number.isNaN(parsed)) return fallback;\n return value.endsWith('rem') || value.endsWith('em') ? parsed * ROOT_PX : parsed;\n}\n\n/** `'-0.02em'` → -0.02, `'0.5px'` → 0.5 / 16, `undefined` → `undefined` (\"normal\"). */\nexport function cssTrackingToEm(value: string | undefined): number | undefined {\n if (value === undefined) return undefined;\n const parsed = Number.parseFloat(value);\n if (Number.isNaN(parsed)) return undefined;\n return value.endsWith('px') ? parsed / ROOT_PX : parsed;\n}\n","import { darken, getContrastRatio, lighten } from './color';\nimport { cssLengthToPx, cssTrackingToEm } from './css-units';\nimport { HEADING_SCALE, type HeadingLevel } from './heading-scale';\n\nimport type { SizeValue } from './vocabulary';\n\n/**\n * THE THEME BOTH RENDERERS READ.\n *\n * On the web every component styles itself from MUI's `Theme`, which is built\n * by the host (`@12-apps/app-shell`'s `createAppTheme` in the origin apps) and\n * reaches a component through emotion's context. React Native has no emotion,\n * no CSS and no MUI, so a native `Button` needs the same decisions — the\n * palette, the spacing unit, the radius, the type scale — from somewhere that\n * does not import a renderer.\n *\n * This is that somewhere. `UiTheme` is a plain object of numbers and colour\n * strings. `createUiTheme` derives it the way MUI's `createPalette` derives its\n * own: a `light` shade is `lighten(main, 0.2)`, a `dark` shade `darken(main,\n * 0.3)`, `contrastText` flips at a 3:1 ratio against `rgba(0, 0, 0, 0.87)`.\n * Same seeds in, same shades out, on both sides — that is the whole basis for\n * a native button being the web button's colour and not a near miss.\n *\n * Numbers are in px on the web and dp on native; both are the CSS-pixel unit\n * a design is drawn in, so a `fontSize: 16` here IS `1rem` in a web style\n * and `16` in a `StyleSheet`. The web components keep their `rem` strings and\n * derive them from these numbers where the two meet (see `px()` below and the\n * `*.metrics.ts` file beside each ported component).\n *\n * `danger` and `neutral` are this package's names (see `./scales`); `danger`\n * is MUI's `error` and `neutral` is drawn from the grey ramp the way\n * `Button.styles.ts` has always drawn it.\n */\n\nexport type UiThemeMode = 'light' | 'dark';\n\nexport interface UiPaletteColor {\n main: string;\n light: string;\n dark: string;\n contrastText: string;\n}\n\nexport type UiGreyStep = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;\n\nexport interface UiPalette {\n mode: UiThemeMode;\n primary: UiPaletteColor;\n secondary: UiPaletteColor;\n success: UiPaletteColor;\n warning: UiPaletteColor;\n info: UiPaletteColor;\n danger: UiPaletteColor;\n neutral: UiPaletteColor;\n text: { primary: string; secondary: string; disabled: string };\n background: { default: string; paper: string };\n divider: string;\n action: {\n active: string;\n hover: string;\n selected: string;\n disabled: string;\n disabledBackground: string;\n focus: string;\n };\n grey: Record<UiGreyStep, string>;\n}\n\n/** One step of the body scale: `fontSize` in px, `lineHeight` as a ratio. */\nexport interface UiTypeStep {\n fontSize: number;\n lineHeight: number;\n}\n\nexport type UiFontWeight = 'light' | 'normal' | 'medium' | 'semibold' | 'bold';\n\nexport interface UiHeadingStep extends UiTypeStep {\n /** In em, so it scales with the step. `undefined` is \"normal\". */\n letterSpacing?: number;\n normalWeight: number;\n}\n\nexport interface UiTypography {\n /**\n * Native has no fallback stacks: a font is either installed and named, or\n * `undefined` and the platform's own. The web default is MUI's Roboto stack.\n */\n fontFamily: string | undefined;\n monospaceFontFamily: string | undefined;\n sizes: Record<SizeValue, UiTypeStep>;\n weights: Record<UiFontWeight, number>;\n heading: Record<HeadingLevel, UiHeadingStep>;\n}\n\nexport interface UiTheme {\n mode: UiThemeMode;\n palette: UiPalette;\n /** MUI's `theme.spacing(n)`: `n` units of {@link UiTheme.spacingUnit}, in px. */\n spacing: (units: number) => number;\n spacingUnit: number;\n /** `md` is MUI's `shape.borderRadius`; the others are its halves and doubles. */\n radius: { sm: number; md: number; lg: number; xl: number; full: number };\n typography: UiTypography;\n zIndex: { appBar: number; drawer: number; modal: number; snackbar: number; tooltip: number };\n}\n\n/** A seed for one palette slot: a hex `main`, or any subset of the four shades. */\nexport type UiPaletteSeed = string | Partial<UiPaletteColor>;\n\nexport interface UiThemeOptions {\n mode?: UiThemeMode;\n palette?: Partial<{\n primary: UiPaletteSeed;\n secondary: UiPaletteSeed;\n success: UiPaletteSeed;\n warning: UiPaletteSeed;\n info: UiPaletteSeed;\n danger: UiPaletteSeed;\n background: Partial<UiPalette['background']>;\n }>;\n typography?: Partial<Pick<UiTypography, 'fontFamily' | 'monospaceFontFamily'>>;\n spacingUnit?: number;\n}\n\nconst ROOT_FONT_PX = 16;\n\n/** The px value as the rem string the web components write. */\nexport const px = (value: number): string => `${value / ROOT_FONT_PX}rem`;\n\n/** MUI's `createPalette` defaults, exactly. */\nconst TONAL_OFFSET = 0.2;\nconst CONTRAST_THRESHOLD = 3;\nconst DARK_TEXT_PRIMARY = 'rgba(0, 0, 0, 0.87)';\nconst LIGHT_TEXT_PRIMARY = '#fff';\n\nexport const GREY: Record<UiGreyStep, string> = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n};\n\n/**\n * The platform's own seeds. The pair `@12-apps/ui`'s Storybook preview and\n * `@12-apps/app-shell`'s `DEFAULT_THEME_TOKENS` both carry — keep the three in\n * step if the design tokens change.\n */\nexport const DEFAULT_BRAND: Record<UiThemeMode, { primary: string; secondary: string }> = {\n light: { primary: '#6366F1', secondary: '#8B5CF6' },\n dark: { primary: '#818CF8', secondary: '#A78BFA' },\n};\n\n/** MUI's semantic defaults per mode. These are declared shades, not derived. */\nconst SEMANTIC_DEFAULTS: Record<\n UiThemeMode,\n Record<'success' | 'warning' | 'info' | 'danger', UiPaletteColor>\n> = {\n light: {\n success: { main: '#2e7d32', light: '#4caf50', dark: '#1b5e20', contrastText: '#fff' },\n warning: { main: '#ed6c02', light: '#ff9800', dark: '#e65100', contrastText: '#fff' },\n info: { main: '#0288d1', light: '#03a9f4', dark: '#01579b', contrastText: '#fff' },\n danger: { main: '#d32f2f', light: '#ef5350', dark: '#c62828', contrastText: '#fff' },\n },\n dark: {\n success: { main: '#66bb6a', light: '#81c784', dark: '#388e3c', contrastText: DARK_TEXT_PRIMARY },\n warning: { main: '#ffa726', light: '#ffb74d', dark: '#f57c00', contrastText: DARK_TEXT_PRIMARY },\n info: { main: '#29b6f6', light: '#4fc3f7', dark: '#0288d1', contrastText: DARK_TEXT_PRIMARY },\n danger: { main: '#f44336', light: '#e57373', dark: '#d32f2f', contrastText: '#fff' },\n },\n};\n\nconst MODE_DEFAULTS: Record<\n UiThemeMode,\n Pick<UiPalette, 'text' | 'background' | 'divider' | 'action'>\n> = {\n light: {\n text: { primary: DARK_TEXT_PRIMARY, secondary: 'rgba(0, 0, 0, 0.6)', disabled: 'rgba(0, 0, 0, 0.38)' },\n background: { default: '#fff', paper: '#fff' },\n divider: 'rgba(0, 0, 0, 0.12)',\n action: {\n active: 'rgba(0, 0, 0, 0.54)',\n hover: 'rgba(0, 0, 0, 0.04)',\n selected: 'rgba(0, 0, 0, 0.08)',\n disabled: 'rgba(0, 0, 0, 0.26)',\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n focus: 'rgba(0, 0, 0, 0.12)',\n },\n },\n dark: {\n text: { primary: '#fff', secondary: 'rgba(255, 255, 255, 0.7)', disabled: 'rgba(255, 255, 255, 0.5)' },\n background: { default: '#121212', paper: '#121212' },\n divider: 'rgba(255, 255, 255, 0.12)',\n action: {\n active: '#fff',\n hover: 'rgba(255, 255, 255, 0.08)',\n selected: 'rgba(255, 255, 255, 0.16)',\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n focus: 'rgba(255, 255, 255, 0.12)',\n },\n },\n};\n\n/**\n * MUI's `getContrastText`: white where white reads at 3:1 on the colour, the\n * light mode's dark ink otherwise. (MUI's source spells the white as the DARK\n * palette's `text.primary`, which is what made it easy to read backwards.)\n */\nexport function contrastText(background: string): string {\n return getContrastRatio(background, LIGHT_TEXT_PRIMARY) >= CONTRAST_THRESHOLD\n ? LIGHT_TEXT_PRIMARY\n : DARK_TEXT_PRIMARY;\n}\n\n/**\n * The ink that reads on EVERY one of these fills (FUT-1924).\n *\n * {@link contrastText} answers for one fill, which is all MUI's `augmentColor`\n * ever needs: a solid button is a single flat colour. Two components paint the\n * label over something that is not one colour — `Button`'s `gradient` variant\n * runs between two stops, and `Switch`'s thumb travels the whole length of a\n * checked track — and both of them stated `#fff` outright instead, which is\n * white-on-pale the moment a white-labelled host hands the library a pale\n * brand. Audited across the library, those two were the only places a hardcoded\n * white sat over a surface the TENANT chooses.\n *\n * **This deliberately does not follow `contrastText`'s rule.** MUI's is a\n * threshold that PREFERS white — white wherever white clears 3:1 — which is a\n * brand-feel decision, and it is kept for every existing caller so nothing\n * already legible moves. Here the fills can disagree: over MUI's own success\n * pair white is 2.78:1 on `#4caf50` and dark ink 2.66:1 on `#1b5e20`, so\n * neither meets any threshold and asking whether one does is the wrong\n * question. The answer is whichever ink has the better WORST case across the\n * fills — which is also not what either fill says on its own, since\n * `contrastText('#4caf50')` is dark ink.\n *\n * A gradient wide enough that neither ink clears 4.5:1 anywhere is a palette\n * problem this cannot fix — it returns the less bad ink and does not pretend\n * otherwise.\n *\n * `Math.min` is the claim, and it is worth knowing that no test can prove it\n * against `Math.max` today: the two candidate inks sit at opposite ends of the\n * luminance range, so ranking them by their best fill and by their worst gives\n * the same winner for every possible pair (checked exhaustively). Worst case is\n * still what this MEANS, and the moment a third ink or one that is not an\n * extreme is offered, the two stop agreeing.\n *\n * `fallback` is returned when a fill cannot be decomposed: {@link getContrastRatio}\n * throws on a format it does not know, and a throw inside an emotion style\n * function takes the render down with it.\n */\nexport function inkOver(fills: readonly string[], fallback: string): string {\n try {\n const worstCase = (ink: string): number =>\n Math.min(...fills.map((fill) => getContrastRatio(ink, fill)));\n\n return worstCase(LIGHT_TEXT_PRIMARY) >= worstCase(DARK_TEXT_PRIMARY)\n ? LIGHT_TEXT_PRIMARY\n : DARK_TEXT_PRIMARY;\n } catch {\n return fallback;\n }\n}\n\n/**\n * MUI's `augmentColor` for a custom colour: derive whatever shade the seed\n * left out. `light` is one tonal offset up, `dark` one and a half down.\n */\nexport function augmentColor(seed: UiPaletteSeed): UiPaletteColor {\n const partial = typeof seed === 'string' ? { main: seed } : seed;\n const main = partial.main ?? partial.light ?? partial.dark;\n if (!main) {\n throw new Error('@12-apps/ui: a palette seed needs at least a `main` colour.');\n }\n return {\n main,\n light: partial.light ?? lighten(main, TONAL_OFFSET),\n dark: partial.dark ?? darken(main, TONAL_OFFSET * 1.5),\n contrastText: partial.contrastText ?? contrastText(main),\n };\n}\n\nconst semantic = (\n mode: UiThemeMode,\n key: 'success' | 'warning' | 'info' | 'danger',\n seed: UiPaletteSeed | undefined,\n): UiPaletteColor => (seed === undefined ? SEMANTIC_DEFAULTS[mode][key] : augmentColor(seed));\n\n/** `neutral` as `accentFor` in `./scales` has always drawn it: three greys and white. */\nexport const NEUTRAL: UiPaletteColor = {\n main: GREY[600],\n light: GREY[400],\n dark: GREY[800],\n contrastText: '#fff',\n};\n\n/** The body scale `Text` renders, in px. `Text.tsx`'s rem map is this, divided by 16. */\nexport const TYPE_SIZES: Record<SizeValue, UiTypeStep> = {\n xs: { fontSize: 12, lineHeight: 1.2 },\n sm: { fontSize: 14, lineHeight: 1.3 },\n md: { fontSize: 16, lineHeight: 1.5 },\n lg: { fontSize: 18, lineHeight: 1.4 },\n xl: { fontSize: 20, lineHeight: 1.3 },\n};\n\nexport const FONT_WEIGHTS: Record<UiFontWeight, number> = {\n light: 300,\n normal: 400,\n medium: 500,\n semibold: 600,\n bold: 700,\n};\n\n// `HEADING_SCALE` speaks CSS, this theme speaks numbers; `./css-units` is the\n// one place that conversion is written.\nconst HEADING_STEPS = Object.fromEntries(\n Object.entries(HEADING_SCALE).map(([level, metrics]) => [\n level,\n {\n fontSize: cssLengthToPx(metrics.fontSize, ROOT_FONT_PX),\n lineHeight: metrics.lineHeight,\n letterSpacing: cssTrackingToEm(metrics.letterSpacing),\n normalWeight: metrics.normalWeight,\n },\n ]),\n) as Record<HeadingLevel, UiHeadingStep>;\n\nexport const WEB_FONT_FAMILY = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\nexport const WEB_MONOSPACE_FONT_FAMILY = 'Monaco, Menlo, \"Ubuntu Mono\", \"Courier New\", monospace';\n\n/**\n * Build the theme. Every field is derived here so a host that changes one\n * seed gets every dependent shade recomputed, on both renderers, identically.\n */\nexport function createUiTheme(options: UiThemeOptions = {}): UiTheme {\n const mode = options.mode ?? 'light';\n const seeds = options.palette ?? {};\n const brand = DEFAULT_BRAND[mode];\n const defaults = MODE_DEFAULTS[mode];\n const spacingUnit = options.spacingUnit ?? 8;\n\n const palette: UiPalette = {\n mode,\n primary: augmentColor(seeds.primary ?? brand.primary),\n secondary: augmentColor(seeds.secondary ?? brand.secondary),\n success: semantic(mode, 'success', seeds.success),\n warning: semantic(mode, 'warning', seeds.warning),\n info: semantic(mode, 'info', seeds.info),\n danger: semantic(mode, 'danger', seeds.danger),\n neutral: NEUTRAL,\n text: defaults.text,\n background: { ...defaults.background, ...seeds.background },\n divider: defaults.divider,\n action: defaults.action,\n grey: GREY,\n };\n\n return {\n mode,\n palette,\n spacing: (units: number) => units * spacingUnit,\n spacingUnit,\n radius: { sm: 2, md: 4, lg: 8, xl: 16, full: 9999 },\n typography: {\n fontFamily: options.typography?.fontFamily,\n monospaceFontFamily: options.typography?.monospaceFontFamily,\n sizes: TYPE_SIZES,\n weights: FONT_WEIGHTS,\n heading: HEADING_STEPS,\n },\n zIndex: { appBar: 1100, drawer: 1200, modal: 1300, snackbar: 1400, tooltip: 1500 },\n };\n}\n\n/** The palette slot a house colour name resolves to. */\nexport type UiPaletteKey = 'primary' | 'secondary' | 'success' | 'war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A,IACA,QAAQ,EAAE,QAAQ,MAAM,QAAQ,MAAM,OAAO,MAAM,UAAU,MAAM,SAAS,KAAK;AAAA,EACnF;AACF;AAKO,IAAM,mBAA4B,cAAc;","names":[]}
@@ -7,10 +7,10 @@ import {
7
7
  } from "./chunk-AR5O4BEY.js";
8
8
  import {
9
9
  useUiTheme
10
- } from "./chunk-GWGIWQO7.js";
10
+ } from "./chunk-XI7HTAVN.js";
11
11
  import {
12
12
  alpha
13
- } from "./chunk-LEMMXZFN.js";
13
+ } from "./chunk-MP3UDWTT.js";
14
14
 
15
15
  // src/components/layout/Skeleton/Skeleton.native.tsx
16
16
  import * as React from "react";
@@ -212,4 +212,4 @@ Skeleton.displayName = "Skeleton";
212
212
  export {
213
213
  Skeleton
214
214
  };
215
- //# sourceMappingURL=chunk-GW7TQ7HO.js.map
215
+ //# sourceMappingURL=chunk-QEQZ5AF6.js.map