@12-apps/ui 6.20.0 → 6.22.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 (885) hide show
  1. package/NATIVE.md +10 -4
  2. package/dist/_internal/components/data-display/Alert/Alert.js +2 -2
  3. package/dist/_internal/components/data-display/AsyncStateContainer/AsyncStateContainer.js +8 -8
  4. package/dist/_internal/components/data-display/Badge/Badge.js +2 -2
  5. package/dist/_internal/components/data-display/CardKit/CardKebab.js +3 -3
  6. package/dist/_internal/components/data-display/CardKit/card-actions-context.js +3 -3
  7. package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +6 -6
  8. package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +3 -3
  9. package/dist/_internal/components/data-display/Carousel/Carousel.js +3 -3
  10. package/dist/_internal/components/data-display/Chart/SpecChart.js +3 -3
  11. package/dist/_internal/components/data-display/DataGrid/DataGrid.js +3 -3
  12. package/dist/_internal/components/data-display/DataViews/DataViewsBoard.js +3 -3
  13. package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +49 -48
  14. package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +72 -65
  15. package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +9 -6
  16. package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +10 -7
  17. package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +20 -13
  18. package/dist/_internal/components/data-display/DataViews/base-card.js +12 -8
  19. package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +6 -6
  20. package/dist/_internal/components/data-display/DataViews/base-list-card-gutters.js +10 -3
  21. package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +5 -5
  22. package/dist/_internal/components/data-display/DataViews/base-list-card.js +18 -15
  23. package/dist/_internal/components/data-display/DataViews/data-views-category-pill.js +17 -15
  24. package/dist/_internal/components/data-display/DataViews/data-views-columns-tab.js +3 -3
  25. package/dist/_internal/components/data-display/DataViews/data-views-columns.js +4 -4
  26. package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +7 -7
  27. package/dist/_internal/components/data-display/DataViews/data-views-display-tabs.js +3 -3
  28. package/dist/_internal/components/data-display/DataViews/data-views-empty.js +4 -4
  29. package/dist/_internal/components/data-display/DataViews/data-views-export.js +4 -4
  30. package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +20 -18
  31. package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +11 -11
  32. package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +3 -3
  33. package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +46 -45
  34. package/dist/_internal/components/data-display/DataViews/data-views-header-row.js +3 -3
  35. package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +23 -22
  36. package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +6 -6
  37. package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +8 -8
  38. package/dist/_internal/components/data-display/DataViews/data-views-select-all-strip.js +4 -4
  39. package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +14 -14
  40. package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +27 -20
  41. package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +13 -13
  42. package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +4 -4
  43. package/dist/_internal/components/data-display/DataViews/list-card-rails.js +1 -1
  44. package/dist/_internal/components/data-display/DataViews/save-view-preview.js +3 -3
  45. package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +6 -6
  46. package/dist/_internal/components/data-display/DataViews/use-saved-views-controller.js +2 -2
  47. package/dist/_internal/components/data-display/DescriptionItem/DescriptionItem.js +3 -3
  48. package/dist/_internal/components/data-display/EmptyState/EmptyState.js +3 -3
  49. package/dist/_internal/components/data-display/ErrorState/ErrorState.js +2 -2
  50. package/dist/_internal/components/data-display/HoverCard/HoverCard.js +3 -3
  51. package/dist/_internal/components/data-display/LazyImage/LazyImage.js +4 -4
  52. package/dist/_internal/components/data-display/Lightbox/Lightbox.js +5 -5
  53. package/dist/_internal/components/data-display/LoadingState/LoadingState.js +4 -4
  54. package/dist/_internal/components/data-display/MapPreview/MapLayers.js +2 -2
  55. package/dist/_internal/components/data-display/MapPreview/MapPreview.js +4 -4
  56. package/dist/_internal/components/data-display/Progress/Progress.js +2 -2
  57. package/dist/_internal/components/data-display/SectionOnboarding/SectionOnboarding.js +4 -4
  58. package/dist/_internal/components/data-display/Sheet/Sheet.hooks.js +2 -2
  59. package/dist/_internal/components/data-display/Sheet/Sheet.js +4 -4
  60. package/dist/_internal/components/data-display/StatCard/StatCard.js +4 -4
  61. package/dist/_internal/components/data-display/index.js +50 -50
  62. package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +3 -3
  63. package/dist/_internal/components/feedback/Dialog/Dialog.base.js +1 -0
  64. package/dist/_internal/components/feedback/Dialog/Dialog.base.js.map +1 -0
  65. package/dist/_internal/components/feedback/Dialog/Dialog.helpers.js +12 -0
  66. package/dist/_internal/components/feedback/Dialog/Dialog.helpers.js.map +1 -0
  67. package/dist/_internal/components/feedback/Dialog/Dialog.js +6 -2
  68. package/dist/_internal/components/feedback/Dialog/Dialog.metrics.js +42 -0
  69. package/dist/_internal/components/feedback/Dialog/Dialog.metrics.js.map +1 -0
  70. package/dist/_internal/components/feedback/Dialog/Dialog.styles.js +3 -1
  71. package/dist/_internal/components/feedback/Modal/Modal.js +2 -2
  72. package/dist/_internal/components/feedback/StackedModal/StackedModal.js +2 -2
  73. package/dist/_internal/components/feedback/index.js +14 -11
  74. package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.hooks.js +3 -3
  75. package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.js +11 -9
  76. package/dist/_internal/components/form/AddressAutocomplete/AddressAutocompleteField.js +7 -5
  77. package/dist/_internal/components/form/AddressAutocomplete/AddressFallbackField.js +5 -3
  78. package/dist/_internal/components/form/AddressAutocomplete/AddressInputField.js +5 -3
  79. package/dist/_internal/components/form/AddressAutocomplete/AddressTextField.js +4 -2
  80. package/dist/_internal/components/form/Button/Button.js +2 -2
  81. package/dist/_internal/components/form/CategorySelect/CategoryPanel.js +10 -8
  82. package/dist/_internal/components/form/CategorySelect/CategoryPanelFoot.js +5 -3
  83. package/dist/_internal/components/form/CategorySelect/CategoryPanelHead.js +5 -3
  84. package/dist/_internal/components/form/CategorySelect/CategoryPanelList.js +6 -4
  85. package/dist/_internal/components/form/CategorySelect/CategoryRows.js +5 -3
  86. package/dist/_internal/components/form/CategorySelect/CategorySelect.js +13 -11
  87. package/dist/_internal/components/form/CategorySelect/CategorySelect.styles.js +4 -2
  88. package/dist/_internal/components/form/CategorySelect/CategoryTrigger.js +5 -3
  89. package/dist/_internal/components/form/CepField/CepField.js +10 -4
  90. package/dist/_internal/components/form/Checkbox/Checkbox.base.js +1 -0
  91. package/dist/_internal/components/form/Checkbox/Checkbox.base.js.map +1 -0
  92. package/dist/_internal/components/form/Checkbox/Checkbox.helpers.js +2 -1
  93. package/dist/_internal/components/form/Checkbox/Checkbox.js +9 -2
  94. package/dist/_internal/components/form/Checkbox/Checkbox.metrics.js +34 -0
  95. package/dist/_internal/components/form/Checkbox/Checkbox.metrics.js.map +1 -0
  96. package/dist/_internal/components/form/CodeEditor/CodeEditor.js +5 -3
  97. package/dist/_internal/components/form/CreatableSelect/CreatableSelect.js +4 -2
  98. package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +3 -3
  99. package/dist/_internal/components/form/Input/Input.base.js +1 -0
  100. package/dist/_internal/components/form/Input/Input.base.js.map +1 -0
  101. package/dist/_internal/components/form/Input/Input.helpers.js +23 -0
  102. package/dist/_internal/components/form/Input/Input.helpers.js.map +1 -0
  103. package/dist/_internal/components/form/Input/Input.js +9 -3
  104. package/dist/_internal/components/form/Input/Input.metrics.js +53 -0
  105. package/dist/_internal/components/form/Input/Input.metrics.js.map +1 -0
  106. package/dist/_internal/components/form/Input/Input.styles.js +10 -4
  107. package/dist/_internal/components/form/InputOTP/InputOTP.js +5 -3
  108. package/dist/_internal/components/form/InputOTP/InputOTP.styles.js +4 -2
  109. package/dist/_internal/components/form/Label/Label.js +2 -2
  110. package/dist/_internal/components/form/Menubar/Menubar.js +2 -2
  111. package/dist/_internal/components/form/PhoneInput/PhoneInput.js +4 -2
  112. package/dist/_internal/components/form/RadioGroup/RadioGroup.js +6 -4
  113. package/dist/_internal/components/form/RadioGroup/RadioGroup.styles.js +4 -2
  114. package/dist/_internal/components/form/RadioGroup/RadioGroup.variants.js +5 -3
  115. package/dist/_internal/components/form/RichTextEditor/RichTextEditor.js +4 -2
  116. package/dist/_internal/components/form/Select/Select.base.js +1 -0
  117. package/dist/_internal/components/form/Select/Select.base.js.map +1 -0
  118. package/dist/_internal/components/form/Select/Select.helpers.js +48 -0
  119. package/dist/_internal/components/form/Select/Select.helpers.js.map +1 -0
  120. package/dist/_internal/components/form/Select/Select.js +10 -2
  121. package/dist/_internal/components/form/Select/Select.metrics.js +38 -0
  122. package/dist/_internal/components/form/Select/Select.metrics.js.map +1 -0
  123. package/dist/_internal/components/form/Switch/Switch.base.js +1 -0
  124. package/dist/_internal/components/form/Switch/Switch.base.js.map +1 -0
  125. package/dist/_internal/components/form/Switch/Switch.helpers.js +59 -0
  126. package/dist/_internal/components/form/Switch/Switch.helpers.js.map +1 -0
  127. package/dist/_internal/components/form/Switch/Switch.js +9 -3
  128. package/dist/_internal/components/form/Switch/Switch.metrics.js +83 -0
  129. package/dist/_internal/components/form/Switch/Switch.metrics.js.map +1 -0
  130. package/dist/_internal/components/form/Switch/Switch.parts.js +7 -2
  131. package/dist/_internal/components/form/Switch/Switch.styles.js +6 -1
  132. package/dist/_internal/components/form/Textarea/Textarea.js +5 -3
  133. package/dist/_internal/components/form/Textarea/Textarea.styles.js +4 -2
  134. package/dist/_internal/components/form/Textarea/TextareaRichEditor.js +4 -2
  135. package/dist/_internal/components/form/Textarea/TextareaRichEditor.js.map +1 -1
  136. package/dist/_internal/components/form/Toggle/Toggle.js +5 -3
  137. package/dist/_internal/components/form/Toggle/Toggle.styles.js +4 -2
  138. package/dist/_internal/components/form/index.js +46 -40
  139. package/dist/_internal/components/form/total-form/Fields/CategoryField.js +14 -12
  140. package/dist/_internal/components/form/total-form/Fields/CepField.js +11 -5
  141. package/dist/_internal/components/form/total-form/Fields/SelectField.js +11 -3
  142. package/dist/_internal/components/form/total-form/Fields/TextField.js +10 -4
  143. package/dist/_internal/components/form/total-form/Fields/index.js +32 -24
  144. package/dist/_internal/components/form/total-form/SubmitButton.js +3 -3
  145. package/dist/_internal/components/index.js +138 -128
  146. package/dist/_internal/components/layout/Box/Box.js +2 -2
  147. package/dist/_internal/components/layout/Card/Card.base.js +1 -0
  148. package/dist/_internal/components/layout/Card/Card.base.js.map +1 -0
  149. package/dist/_internal/components/layout/Card/Card.helpers.js +1 -1
  150. package/dist/_internal/components/layout/Card/Card.js +6 -3
  151. package/dist/_internal/components/layout/Card/Card.metrics.js +44 -0
  152. package/dist/_internal/components/layout/Card/Card.metrics.js.map +1 -0
  153. package/dist/_internal/components/layout/Card/Card.styles.js +3 -1
  154. package/dist/_internal/components/layout/Container/Container.js +2 -2
  155. package/dist/_internal/components/layout/ScrollArea/ScrollArea.js +3 -3
  156. package/dist/_internal/components/layout/Skeleton/Skeleton.js +3 -3
  157. package/dist/_internal/components/layout/Spacer/Spacer.js +2 -2
  158. package/dist/_internal/components/layout/Stack/Stack.js +3 -3
  159. package/dist/_internal/components/layout/index.js +22 -20
  160. package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +12 -9
  161. package/dist/_internal/components/navigation/CommandPalette/CommandPalette.js +3 -3
  162. package/dist/_internal/components/navigation/NavigationMenu/NavigationMegaSection.js +3 -3
  163. package/dist/_internal/components/navigation/NavigationMenu/NavigationMenu.js +5 -5
  164. package/dist/_internal/components/navigation/NavigationMenu/NavigationMenuItem.js +2 -2
  165. package/dist/_internal/components/navigation/NavigationMenu/NavigationStandardBody.js +3 -3
  166. package/dist/_internal/components/navigation/index.js +20 -17
  167. package/dist/_internal/components/typography/Heading/Heading.js +2 -2
  168. package/dist/_internal/components/typography/Paragraph/Paragraph.js +2 -2
  169. package/dist/_internal/components/typography/Text/Text.js +2 -2
  170. package/dist/_internal/components/typography/index.js +4 -4
  171. package/dist/_internal/components/utility/InstallPrompt/InstallPrompt.js +2 -2
  172. package/dist/_internal/components/utility/index.js +2 -2
  173. package/dist/_internal/icons/Icon.js +3 -3
  174. package/dist/_internal/icons/paths.generated.js +1 -1
  175. package/dist/_internal/platform/aria.js +17 -1
  176. package/dist/_internal/platform/aria.js.map +1 -1
  177. package/dist/_internal/platform/test-id.js +5 -1
  178. package/dist/_internal/social-login-button/social-login-button.js +10 -8
  179. package/dist/_internal/tokens/field-edge.core.js +11 -0
  180. package/dist/_internal/tokens/field-edge.core.js.map +1 -0
  181. package/dist/_internal/tokens/field-edge.js +5 -2
  182. package/dist/_internal/tokens/mui-type.js +1 -0
  183. package/dist/_internal/tokens/mui-type.js.map +1 -1
  184. package/dist/_internal/tokens/shadow.js +18 -0
  185. package/dist/_internal/tokens/shadow.js.map +1 -0
  186. package/dist/_internal/user-avatar/user-avatar.js +9 -7
  187. package/dist/charts.js +11 -11
  188. package/dist/{chunk-MBYO2F4Y.js → chunk-25R3ITGZ.js} +6 -6
  189. package/dist/chunk-2ECT4IY2.js +250 -0
  190. package/dist/chunk-2ECT4IY2.js.map +1 -0
  191. package/dist/{chunk-KQ74QU55.js → chunk-2FDBR77W.js} +3 -3
  192. package/dist/{chunk-D7FJ2GAD.js → chunk-2HPP6RVC.js} +2 -2
  193. package/dist/{chunk-B2A4DG77.js → chunk-2MMEIN4T.js} +6 -6
  194. package/dist/{chunk-YRUCIKPO.js → chunk-2UYR2OOE.js} +4 -4
  195. package/dist/{chunk-2PCOC3PT.js → chunk-343TTIHD.js} +2 -2
  196. package/dist/{chunk-DQHC5P64.js → chunk-3FLVIVOK.js} +3 -3
  197. package/dist/{chunk-URWGRPL7.js → chunk-3W7IEWEL.js} +2 -2
  198. package/dist/{chunk-47UD6DZ4.js → chunk-4523RYE7.js} +5 -5
  199. package/dist/{chunk-AEGX66N7.js → chunk-4IVOHL32.js} +2 -2
  200. package/dist/{chunk-OQXOYHIV.js → chunk-4OHRZW7U.js} +48 -40
  201. package/dist/chunk-4OHRZW7U.js.map +1 -0
  202. package/dist/{chunk-GGE7Y53F.js → chunk-4TXIZ5WI.js} +2 -2
  203. package/dist/{chunk-IJIT5HQP.js → chunk-4X4KM4ZB.js} +4 -4
  204. package/dist/{chunk-6PRA45LC.js → chunk-5KEMPCW4.js} +54 -45
  205. package/dist/chunk-5KEMPCW4.js.map +1 -0
  206. package/dist/{chunk-M7OHXNLF.js → chunk-5NKUYCZD.js} +3 -3
  207. package/dist/{chunk-C52BELLW.js → chunk-5OIH36KX.js} +3 -3
  208. package/dist/chunk-5ZNU2U4D.js +41 -0
  209. package/dist/chunk-5ZNU2U4D.js.map +1 -0
  210. package/dist/{chunk-LMJBINWN.js → chunk-5ZTUP65G.js} +7 -7
  211. package/dist/{chunk-EX3PSZLV.js → chunk-67L7HMEP.js} +3 -3
  212. package/dist/{chunk-2EKALM6P.js → chunk-6JGPPTLX.js} +5 -5
  213. package/dist/{chunk-LZRURORY.js → chunk-6NZTYZP5.js} +4 -4
  214. package/dist/chunk-6Q6T3FW5.js +92 -0
  215. package/dist/chunk-6Q6T3FW5.js.map +1 -0
  216. package/dist/{chunk-DCEMUZJQ.js → chunk-6WIDZGXE.js} +2 -2
  217. package/dist/{chunk-R7MX5KPJ.js → chunk-6YLAVHV4.js} +4 -4
  218. package/dist/chunk-73BEVJCS.js +28 -0
  219. package/dist/chunk-73BEVJCS.js.map +1 -0
  220. package/dist/chunk-7FDU3FIN.js +13 -0
  221. package/dist/chunk-7FDU3FIN.js.map +1 -0
  222. package/dist/{chunk-RXSGHPCR.js → chunk-7FOOLP5H.js} +4 -4
  223. package/dist/{chunk-DOADQW7I.js → chunk-7NSX7A5H.js} +2 -2
  224. package/dist/{chunk-QZWKC3AP.js → chunk-7VN7LFBA.js} +6 -6
  225. package/dist/{chunk-E4FGKZID.js → chunk-AEGXHZQT.js} +2 -2
  226. package/dist/{chunk-WO52KYSU.js → chunk-AGSBIUPV.js} +8 -8
  227. package/dist/{chunk-D2IASECY.js → chunk-AIRWM7KK.js} +39 -28
  228. package/dist/chunk-AIRWM7KK.js.map +1 -0
  229. package/dist/{chunk-PU3AAKRR.js → chunk-AJ6XEO4E.js} +2 -2
  230. package/dist/{chunk-7DNQHMDO.js → chunk-B6IURHSZ.js} +4 -4
  231. package/dist/chunk-BEBLRL5D.js +177 -0
  232. package/dist/chunk-BEBLRL5D.js.map +1 -0
  233. package/dist/{chunk-WX7VWW3W.js → chunk-C3CMEDSO.js} +2 -2
  234. package/dist/{chunk-HSAH5QUQ.js → chunk-CHPZTF34.js} +7 -7
  235. package/dist/{chunk-7EESF76V.js → chunk-CJBBGMIA.js} +2 -2
  236. package/dist/{chunk-2W4CIWTW.js → chunk-DBYFC6CF.js} +3 -3
  237. package/dist/chunk-DFK6QCXX.js +150 -0
  238. package/dist/chunk-DFK6QCXX.js.map +1 -0
  239. package/dist/{chunk-FGLV6BXQ.js → chunk-DTC224UJ.js} +6 -6
  240. package/dist/{chunk-HEK4LQT6.js → chunk-DVFIE54C.js} +2 -2
  241. package/dist/{chunk-4N4ENTF7.js → chunk-DW5FRWRQ.js} +2 -2
  242. package/dist/{chunk-THBT56JE.js → chunk-E55CJV65.js} +2 -2
  243. package/dist/{chunk-B7BZAIHL.js → chunk-EOHKZGOZ.js} +2 -2
  244. package/dist/{chunk-MLOWPVVW.js → chunk-EPEJMTCQ.js} +16 -13
  245. package/dist/chunk-EPEJMTCQ.js.map +1 -0
  246. package/dist/{chunk-EGRFMPGD.js → chunk-EXJBPKGW.js} +4 -4
  247. package/dist/{chunk-BILE3A7F.js → chunk-FGK2C7JR.js} +2 -2
  248. package/dist/{chunk-OI3HOI74.js → chunk-FGUESLDX.js} +2 -2
  249. package/dist/{chunk-RI5JZLZL.js → chunk-FKUYRQSP.js} +1 -1
  250. package/dist/chunk-FKUYRQSP.js.map +1 -0
  251. package/dist/{chunk-VCTKJHXD.js → chunk-FL54G7PV.js} +2 -2
  252. package/dist/{chunk-FX5DY6VR.js → chunk-FR67FG2U.js} +7 -4
  253. package/dist/chunk-FR67FG2U.js.map +1 -0
  254. package/dist/{chunk-HDNK7BAX.js → chunk-GT7C6TSM.js} +3 -3
  255. package/dist/chunk-GY6KNVMI.js +39 -0
  256. package/dist/chunk-GY6KNVMI.js.map +1 -0
  257. package/dist/chunk-GYXUCS37.js +36 -0
  258. package/dist/chunk-GYXUCS37.js.map +1 -0
  259. package/dist/{chunk-V3SBJ3PB.js → chunk-HFXTAEYY.js} +2 -2
  260. package/dist/{chunk-HBAPVB7T.js → chunk-HKKSZ7HG.js} +2 -2
  261. package/dist/{chunk-FOMK3WPG.js → chunk-HLYPI5CO.js} +4 -4
  262. package/dist/{chunk-3AOOI2NR.js → chunk-HR7YTBR7.js} +4 -4
  263. package/dist/{chunk-UNF65XZW.js → chunk-I5SBTNV2.js} +2 -2
  264. package/dist/{chunk-X24P3ZYW.js → chunk-J4W4TQPC.js} +6 -6
  265. package/dist/{chunk-5ZOJLYD2.js → chunk-JE6RZ5L6.js} +4 -4
  266. package/dist/{chunk-NQC6H7GY.js → chunk-JIKWZDNK.js} +2 -2
  267. package/dist/{chunk-ENNW5SKT.js → chunk-JSH3HFDQ.js} +2 -2
  268. package/dist/{chunk-JB7JE4QZ.js → chunk-JWW2Z3RH.js} +4 -4
  269. package/dist/{chunk-LAHDFBDE.js → chunk-JXNT5TUP.js} +3 -3
  270. package/dist/{chunk-VMNSGE2G.js → chunk-KEVPUBOE.js} +5 -1
  271. package/dist/chunk-KEVPUBOE.js.map +1 -0
  272. package/dist/{chunk-ZBNTFWTG.js → chunk-KIHQE5YA.js} +2 -2
  273. package/dist/{chunk-ZEBJT5JZ.js → chunk-KTK4A3IF.js} +3 -3
  274. package/dist/{chunk-4WK2RTVY.js → chunk-LS4FMSHY.js} +5 -5
  275. package/dist/{chunk-PNYXXLPU.js → chunk-M4LQRQFL.js} +2 -2
  276. package/dist/{chunk-Z7JNCB5Q.js → chunk-MESRKY67.js} +2 -2
  277. package/dist/chunk-MLCFODJO.js +135 -0
  278. package/dist/chunk-MLCFODJO.js.map +1 -0
  279. package/dist/{chunk-VJK5FBNK.js → chunk-MP4VSWHK.js} +2 -2
  280. package/dist/{chunk-Q5EQC7NL.js → chunk-N5IVVLTH.js} +8 -5
  281. package/dist/chunk-N5IVVLTH.js.map +1 -0
  282. package/dist/{chunk-6XPNJLXE.js → chunk-NARIG5FL.js} +2 -2
  283. package/dist/{chunk-VEFDL77X.js → chunk-NWNSUHEB.js} +2 -2
  284. package/dist/{chunk-43NEBUV3.js → chunk-O3336DJ6.js} +2 -2
  285. package/dist/{chunk-WBVHRLIS.js → chunk-OFOYMZRY.js} +2 -2
  286. package/dist/{chunk-SM3NRN7L.js → chunk-ON2CMKTI.js} +2 -2
  287. package/dist/{chunk-IH4CX43Q.js → chunk-OP65D4UR.js} +2 -2
  288. package/dist/{chunk-NHSMLVNC.js → chunk-OVLNF4AZ.js} +3 -3
  289. package/dist/{chunk-ZTZ6S5Q6.js → chunk-OXQP3N6X.js} +4 -4
  290. package/dist/{chunk-YVW7VPK4.js → chunk-PFLKPNBU.js} +2 -2
  291. package/dist/{chunk-7P2HZLEG.js → chunk-PFV6RL4Q.js} +3 -3
  292. package/dist/{chunk-76GZ55IC.js → chunk-PMS3H3OO.js} +7 -7
  293. package/dist/{chunk-UF27D35R.js → chunk-PRUSQQDT.js} +2 -2
  294. package/dist/{chunk-HBZIN6IQ.js → chunk-PZEC5CQA.js} +2 -2
  295. package/dist/{chunk-74OZ5KVR.js → chunk-Q75SJ35X.js} +4 -4
  296. package/dist/{chunk-PC5FFEIY.js → chunk-QFJRB27Q.js} +4 -4
  297. package/dist/{chunk-6D5WEZ2L.js → chunk-QFVFHIHE.js} +2 -2
  298. package/dist/{chunk-GBB6XQ56.js → chunk-QGBMCB76.js} +2 -2
  299. package/dist/{chunk-PODGTNXS.js → chunk-QKIJ6YXZ.js} +4 -4
  300. package/dist/{chunk-DX527XPL.js → chunk-QWDEOITU.js} +2 -2
  301. package/dist/{chunk-BJ3J6FTN.js → chunk-R7R3LOKW.js} +40 -23
  302. package/dist/chunk-R7R3LOKW.js.map +1 -0
  303. package/dist/{chunk-OLZTGVBT.js → chunk-REMK55JI.js} +4 -4
  304. package/dist/{chunk-BLT5ZBVL.js → chunk-RRX6ZTNX.js} +2 -2
  305. package/dist/{chunk-RMSH2I3O.js → chunk-S6YY2WWK.js} +40 -50
  306. package/dist/chunk-S6YY2WWK.js.map +1 -0
  307. package/dist/{chunk-FCOEJCUP.js → chunk-TFO6GBW7.js} +2 -2
  308. package/dist/{chunk-2ZDTGI5V.js → chunk-TLMLEC4F.js} +7 -7
  309. package/dist/{chunk-VSLUFBMT.js → chunk-TOYEP23N.js} +41 -27
  310. package/dist/chunk-TOYEP23N.js.map +1 -0
  311. package/dist/{chunk-FP4R47TM.js → chunk-TW3BXVEU.js} +2 -2
  312. package/dist/{chunk-QLWBQQW7.js → chunk-TYJR4GOF.js} +10 -2
  313. package/dist/chunk-TYJR4GOF.js.map +1 -0
  314. package/dist/{chunk-JD364H3Y.js → chunk-TZ633UZA.js} +6 -5
  315. package/dist/chunk-TZ633UZA.js.map +1 -0
  316. package/dist/{chunk-J6UFAMIC.js → chunk-TZDDL3DR.js} +2 -2
  317. package/dist/{chunk-6IUTT6BK.js → chunk-U2YJCNRU.js} +4 -4
  318. package/dist/{chunk-KZSKI2R3.js → chunk-U2ZDN2AL.js} +2 -2
  319. package/dist/{chunk-YFHIESMD.js → chunk-U7Q2Y6WG.js} +2 -2
  320. package/dist/{chunk-RQDN4BN5.js → chunk-UU3QAKG6.js} +14 -14
  321. package/dist/{chunk-VJFH2AXT.js → chunk-UVGRRI7N.js} +7 -7
  322. package/dist/{chunk-7DBFEZRC.js → chunk-VIK3HAUQ.js} +2 -2
  323. package/dist/chunk-VM3HRSAU.js +79 -0
  324. package/dist/chunk-VM3HRSAU.js.map +1 -0
  325. package/dist/{chunk-SOCKK67R.js → chunk-VNDOQEJ7.js} +4 -4
  326. package/dist/{chunk-J54WH74M.js → chunk-VNNG46TS.js} +5 -5
  327. package/dist/{chunk-5ZF3VASA.js → chunk-VQAM2XZV.js} +7 -7
  328. package/dist/{chunk-SEH7KOVG.js → chunk-VXTYVJDK.js} +2 -2
  329. package/dist/{chunk-37YPZHAG.js → chunk-W4SDVTZC.js} +2 -2
  330. package/dist/{chunk-X5D3PTWI.js → chunk-W4YWU7LQ.js} +2 -2
  331. package/dist/{chunk-LKVIZNUM.js → chunk-W7Y6RA6W.js} +8 -8
  332. package/dist/{chunk-Z4GWXTZV.js → chunk-WGRS4PGY.js} +8 -8
  333. package/dist/{chunk-NRUYYGDZ.js → chunk-WLQTHPMX.js} +2 -2
  334. package/dist/{chunk-J2KSG754.js → chunk-WRDPWEIC.js} +5 -5
  335. package/dist/{chunk-HEG7JIBM.js → chunk-X5MPHXG5.js} +4 -4
  336. package/dist/{chunk-NFAKRI4S.js → chunk-XELVDPKL.js} +4 -4
  337. package/dist/{chunk-EPNUVSNK.js → chunk-XFUNJYFT.js} +7 -7
  338. package/dist/{chunk-7RZ4WOQW.js → chunk-XKV5ZIBG.js} +3 -3
  339. package/dist/{chunk-F2DOTCF3.js → chunk-XSF6AXEU.js} +2 -2
  340. package/dist/{chunk-74EZ565M.js → chunk-XT7HMNBW.js} +9 -9
  341. package/dist/{chunk-PHCSPHDH.js → chunk-XUJG2HFW.js} +3 -3
  342. package/dist/{chunk-ACDYA5WC.js → chunk-XZTOIEKI.js} +2 -2
  343. package/dist/{chunk-S5LE2ARG.js → chunk-YANLN6HP.js} +66 -56
  344. package/dist/chunk-YANLN6HP.js.map +1 -0
  345. package/dist/{chunk-SKZHOWTS.js → chunk-YDI6IJ6F.js} +2 -2
  346. package/dist/{chunk-YK2PETUP.js → chunk-YJ4HM25H.js} +2 -2
  347. package/dist/{chunk-Q4NOI2CR.js → chunk-YQ6TNHAC.js} +4 -4
  348. package/dist/{chunk-24BUCMQA.js → chunk-YTOYMJPM.js} +2 -2
  349. package/dist/{chunk-G5ZVD5IJ.js → chunk-ZDWU52DJ.js} +2 -2
  350. package/dist/{chunk-MY5VNNSP.js → chunk-ZIYMBR7K.js} +8 -8
  351. package/dist/{chunk-7JWXLDRH.js → chunk-ZKR5B6YJ.js} +4 -4
  352. package/dist/{chunk-4MGFUPQT.js → chunk-ZOUWHGV3.js} +4 -4
  353. package/dist/{chunk-UMDXGIRZ.js → chunk-ZZOOSKSV.js} +2 -2
  354. package/dist/data-display/Alert.js +2 -2
  355. package/dist/data-display/AsyncStateContainer.js +8 -8
  356. package/dist/data-display/Badge.js +2 -2
  357. package/dist/data-display/CardKit.js +10 -10
  358. package/dist/data-display/Carousel.js +3 -3
  359. package/dist/data-display/Chart.js +11 -11
  360. package/dist/data-display/DataGrid.js +3 -3
  361. package/dist/data-display/DataViews.js +90 -81
  362. package/dist/data-display/DescriptionItem.js +3 -3
  363. package/dist/data-display/EmptyState.js +3 -3
  364. package/dist/data-display/ErrorState.js +2 -2
  365. package/dist/data-display/HoverCard.js +3 -3
  366. package/dist/data-display/LazyImage.js +4 -4
  367. package/dist/data-display/Lightbox.js +5 -5
  368. package/dist/data-display/LoadingState.js +4 -4
  369. package/dist/data-display/MapPreview.js +4 -4
  370. package/dist/data-display/Progress.js +2 -2
  371. package/dist/data-display/SectionOnboarding.js +4 -4
  372. package/dist/data-display/Sheet.js +4 -4
  373. package/dist/data-display/StatCard.js +4 -4
  374. package/dist/feedback/ConfirmAction.js +5 -5
  375. package/dist/feedback/Dialog.js +6 -2
  376. package/dist/feedback/Modal.js +2 -2
  377. package/dist/feedback/StackedModal.js +2 -2
  378. package/dist/form/AddressAutocomplete.js +11 -9
  379. package/dist/form/Button.js +2 -2
  380. package/dist/form/CategorySelect.js +13 -11
  381. package/dist/form/CepField.js +10 -4
  382. package/dist/form/Checkbox.js +9 -2
  383. package/dist/form/CodeEditor.js +5 -3
  384. package/dist/form/CreatableSelect.js +4 -2
  385. package/dist/form/DateRangePicker.js +3 -3
  386. package/dist/form/Input.js +9 -3
  387. package/dist/form/InputOTP.js +5 -3
  388. package/dist/form/Label.js +2 -2
  389. package/dist/form/Menubar.js +2 -2
  390. package/dist/form/PhoneInput.js +4 -2
  391. package/dist/form/RadioGroup.js +6 -4
  392. package/dist/form/RichTextEditor.js +4 -2
  393. package/dist/form/Select.js +10 -2
  394. package/dist/form/Switch.js +9 -3
  395. package/dist/form/Textarea.js +5 -3
  396. package/dist/form/Toggle.js +5 -3
  397. package/dist/form/total-form.js +37 -32
  398. package/dist/icons.js +3 -3
  399. package/dist/layout/Box.js +2 -2
  400. package/dist/layout/Card.js +6 -3
  401. package/dist/layout/Container.js +2 -2
  402. package/dist/layout/ContentToolbar.js +9 -9
  403. package/dist/layout/ScrollArea.js +3 -3
  404. package/dist/layout/Skeleton.js +3 -3
  405. package/dist/layout/Spacer.js +2 -2
  406. package/dist/layout/Stack.js +3 -3
  407. package/dist/native/chunks/{chunk-HSIND52T.js → chunk-2UFNPDYT.js} +2 -1
  408. package/dist/native/chunks/chunk-2UFNPDYT.js.map +1 -0
  409. package/dist/native/chunks/{chunk-EKKNUEA6.js → chunk-75JQYVDZ.js} +3 -3
  410. package/dist/native/chunks/chunk-7LTVGW23.js +351 -0
  411. package/dist/native/chunks/chunk-7LTVGW23.js.map +1 -0
  412. package/dist/native/chunks/{chunk-M4DTJDWU.js → chunk-AR5O4BEY.js} +6 -2
  413. package/dist/native/chunks/chunk-AR5O4BEY.js.map +1 -0
  414. package/dist/native/chunks/{chunk-UKCCYP52.js → chunk-ATS7STZJ.js} +4 -4
  415. package/dist/native/chunks/{chunk-YTHR4Y5P.js → chunk-GWGIWQO7.js} +2 -2
  416. package/dist/native/chunks/{chunk-P3PL4WBO.js → chunk-LEMMXZFN.js} +24 -24
  417. package/dist/native/chunks/{chunk-P3PL4WBO.js.map → chunk-LEMMXZFN.js.map} +1 -1
  418. package/dist/native/chunks/chunk-NRN37A5K.js +67 -0
  419. package/dist/native/chunks/chunk-NRN37A5K.js.map +1 -0
  420. package/dist/native/chunks/chunk-OXHZDFJZ.js +15 -0
  421. package/dist/native/chunks/chunk-OXHZDFJZ.js.map +1 -0
  422. package/dist/native/chunks/{chunk-Q52IDAF2.js → chunk-QYUD3S6F.js} +9 -5
  423. package/dist/native/chunks/chunk-QYUD3S6F.js.map +1 -0
  424. package/dist/native/chunks/chunk-T6BJPP3E.js +26 -0
  425. package/dist/native/chunks/chunk-T6BJPP3E.js.map +1 -0
  426. package/dist/native/data-display/Alert.js +9 -9
  427. package/dist/native/data-display/Avatar.js +7 -7
  428. package/dist/native/data-display/Badge.js +9 -9
  429. package/dist/native/data-display/Chip.js +4 -4
  430. package/dist/native/data-display/EmptyState.js +12 -12
  431. package/dist/native/data-display/ErrorState.js +12 -12
  432. package/dist/native/data-display/LoadingState.js +7 -7
  433. package/dist/native/data-display/Progress.js +3 -3
  434. package/dist/native/feedback/Dialog.js +496 -0
  435. package/dist/native/feedback/Dialog.js.map +1 -0
  436. package/dist/native/form/Button.js +4 -4
  437. package/dist/native/form/Checkbox.js +233 -0
  438. package/dist/native/form/Checkbox.js.map +1 -0
  439. package/dist/native/form/Input.js +233 -0
  440. package/dist/native/form/Input.js.map +1 -0
  441. package/dist/native/form/Select.js +348 -0
  442. package/dist/native/form/Select.js.map +1 -0
  443. package/dist/native/form/Switch.js +511 -0
  444. package/dist/native/form/Switch.js.map +1 -0
  445. package/dist/native/icons.js +4 -4
  446. package/dist/native/layout/Box.js +4 -4
  447. package/dist/native/layout/Card.js +494 -0
  448. package/dist/native/layout/Card.js.map +1 -0
  449. package/dist/native/layout/Container.js +3 -3
  450. package/dist/native/layout/Skeleton.js +6 -6
  451. package/dist/native/layout/Spacer.js +3 -3
  452. package/dist/native/layout/Stack.js +4 -4
  453. package/dist/native/provider.js +2 -2
  454. package/dist/native/tokens.js +1 -1
  455. package/dist/native/typography/Heading.js +3 -3
  456. package/dist/native/typography/Paragraph.js +3 -3
  457. package/dist/native/typography/Text.js +3 -3
  458. package/dist/navigation/AppHeader.js +12 -9
  459. package/dist/navigation/CommandPalette.js +3 -3
  460. package/dist/navigation/NavigationMenu.js +5 -5
  461. package/dist/social-login-button.js +10 -8
  462. package/dist/types/components/feedback/Dialog/Dialog.base.d.ts +64 -0
  463. package/dist/types/components/feedback/Dialog/Dialog.base.d.ts.map +1 -0
  464. package/dist/types/components/feedback/Dialog/Dialog.d.ts.map +1 -1
  465. package/dist/types/components/feedback/Dialog/Dialog.helpers.d.ts +35 -0
  466. package/dist/types/components/feedback/Dialog/Dialog.helpers.d.ts.map +1 -0
  467. package/dist/types/components/feedback/Dialog/Dialog.metrics.d.ts +133 -0
  468. package/dist/types/components/feedback/Dialog/Dialog.metrics.d.ts.map +1 -0
  469. package/dist/types/components/feedback/Dialog/Dialog.styles.d.ts +4 -4
  470. package/dist/types/components/feedback/Dialog/Dialog.styles.d.ts.map +1 -1
  471. package/dist/types/components/feedback/Dialog/Dialog.types.d.ts +8 -41
  472. package/dist/types/components/feedback/Dialog/Dialog.types.d.ts.map +1 -1
  473. package/dist/types/components/feedback/Dialog/index.d.ts +1 -1
  474. package/dist/types/components/feedback/Dialog/index.d.ts.map +1 -1
  475. package/dist/types/components/form/Checkbox/Checkbox.base.d.ts +36 -0
  476. package/dist/types/components/form/Checkbox/Checkbox.base.d.ts.map +1 -0
  477. package/dist/types/components/form/Checkbox/Checkbox.d.ts.map +1 -1
  478. package/dist/types/components/form/Checkbox/Checkbox.helpers.d.ts +9 -3
  479. package/dist/types/components/form/Checkbox/Checkbox.helpers.d.ts.map +1 -1
  480. package/dist/types/components/form/Checkbox/Checkbox.metrics.d.ts +92 -0
  481. package/dist/types/components/form/Checkbox/Checkbox.metrics.d.ts.map +1 -0
  482. package/dist/types/components/form/Checkbox/Checkbox.types.d.ts +8 -10
  483. package/dist/types/components/form/Checkbox/Checkbox.types.d.ts.map +1 -1
  484. package/dist/types/components/form/Checkbox/index.d.ts +1 -1
  485. package/dist/types/components/form/Checkbox/index.d.ts.map +1 -1
  486. package/dist/types/components/form/Input/Input.base.d.ts +62 -0
  487. package/dist/types/components/form/Input/Input.base.d.ts.map +1 -0
  488. package/dist/types/components/form/Input/Input.d.ts.map +1 -1
  489. package/dist/types/components/form/Input/Input.helpers.d.ts +11 -0
  490. package/dist/types/components/form/Input/Input.helpers.d.ts.map +1 -0
  491. package/dist/types/components/form/Input/Input.metrics.d.ts +186 -0
  492. package/dist/types/components/form/Input/Input.metrics.d.ts.map +1 -0
  493. package/dist/types/components/form/Input/Input.styles.d.ts +1 -35
  494. package/dist/types/components/form/Input/Input.styles.d.ts.map +1 -1
  495. package/dist/types/components/form/Input/Input.types.d.ts +12 -17
  496. package/dist/types/components/form/Input/Input.types.d.ts.map +1 -1
  497. package/dist/types/components/form/Input/index.d.ts +1 -1
  498. package/dist/types/components/form/Input/index.d.ts.map +1 -1
  499. package/dist/types/components/form/Select/Select.base.d.ts +75 -0
  500. package/dist/types/components/form/Select/Select.base.d.ts.map +1 -0
  501. package/dist/types/components/form/Select/Select.d.ts.map +1 -1
  502. package/dist/types/components/form/Select/Select.helpers.d.ts +36 -0
  503. package/dist/types/components/form/Select/Select.helpers.d.ts.map +1 -0
  504. package/dist/types/components/form/Select/Select.metrics.d.ts +72 -0
  505. package/dist/types/components/form/Select/Select.metrics.d.ts.map +1 -0
  506. package/dist/types/components/form/Select/Select.types.d.ts +12 -49
  507. package/dist/types/components/form/Select/Select.types.d.ts.map +1 -1
  508. package/dist/types/components/form/Select/index.d.ts +1 -1
  509. package/dist/types/components/form/Select/index.d.ts.map +1 -1
  510. package/dist/types/components/form/Switch/Switch.base.d.ts +111 -0
  511. package/dist/types/components/form/Switch/Switch.base.d.ts.map +1 -0
  512. package/dist/types/components/form/Switch/Switch.d.ts.map +1 -1
  513. package/dist/types/components/form/Switch/Switch.helpers.d.ts +17 -0
  514. package/dist/types/components/form/Switch/Switch.helpers.d.ts.map +1 -0
  515. package/dist/types/components/form/Switch/Switch.metrics.d.ts +194 -0
  516. package/dist/types/components/form/Switch/Switch.metrics.d.ts.map +1 -0
  517. package/dist/types/components/form/Switch/Switch.parts.d.ts.map +1 -1
  518. package/dist/types/components/form/Switch/Switch.styles.d.ts +5 -3
  519. package/dist/types/components/form/Switch/Switch.styles.d.ts.map +1 -1
  520. package/dist/types/components/form/Switch/Switch.types.d.ts +9 -91
  521. package/dist/types/components/form/Switch/Switch.types.d.ts.map +1 -1
  522. package/dist/types/components/form/Switch/index.d.ts +1 -1
  523. package/dist/types/components/form/Switch/index.d.ts.map +1 -1
  524. package/dist/types/components/layout/Card/Card.base.d.ts +77 -0
  525. package/dist/types/components/layout/Card/Card.base.d.ts.map +1 -0
  526. package/dist/types/components/layout/Card/Card.d.ts.map +1 -1
  527. package/dist/types/components/layout/Card/Card.helpers.d.ts +8 -3
  528. package/dist/types/components/layout/Card/Card.helpers.d.ts.map +1 -1
  529. package/dist/types/components/layout/Card/Card.metrics.d.ts +182 -0
  530. package/dist/types/components/layout/Card/Card.metrics.d.ts.map +1 -0
  531. package/dist/types/components/layout/Card/Card.styles.d.ts +2 -2
  532. package/dist/types/components/layout/Card/Card.styles.d.ts.map +1 -1
  533. package/dist/types/components/layout/Card/Card.types.d.ts +10 -44
  534. package/dist/types/components/layout/Card/Card.types.d.ts.map +1 -1
  535. package/dist/types/components/layout/Card/index.d.ts +1 -1
  536. package/dist/types/components/layout/Card/index.d.ts.map +1 -1
  537. package/dist/types/icons/paths.generated.d.ts +4 -0
  538. package/dist/types/icons/paths.generated.d.ts.map +1 -1
  539. package/dist/types/platform/aria.d.ts +59 -1
  540. package/dist/types/platform/aria.d.ts.map +1 -1
  541. package/dist/types/platform/test-id.d.ts +24 -0
  542. package/dist/types/platform/test-id.d.ts.map +1 -1
  543. package/dist/types/tokens/field-edge.core.d.ts +27 -0
  544. package/dist/types/tokens/field-edge.core.d.ts.map +1 -0
  545. package/dist/types/tokens/field-edge.d.ts +8 -9
  546. package/dist/types/tokens/field-edge.d.ts.map +1 -1
  547. package/dist/types/tokens/mui-type.d.ts +1 -1
  548. package/dist/types/tokens/mui-type.d.ts.map +1 -1
  549. package/dist/types/tokens/shadow.d.ts +40 -0
  550. package/dist/types/tokens/shadow.d.ts.map +1 -0
  551. package/dist/types-native/components/feedback/Dialog/Dialog.base.d.ts +64 -0
  552. package/dist/types-native/components/feedback/Dialog/Dialog.base.d.ts.map +1 -0
  553. package/dist/types-native/components/feedback/Dialog/Dialog.helpers.d.ts +35 -0
  554. package/dist/types-native/components/feedback/Dialog/Dialog.helpers.d.ts.map +1 -0
  555. package/dist/types-native/components/feedback/Dialog/Dialog.look.native.d.ts +44 -0
  556. package/dist/types-native/components/feedback/Dialog/Dialog.look.native.d.ts.map +1 -0
  557. package/dist/types-native/components/feedback/Dialog/Dialog.metrics.d.ts +133 -0
  558. package/dist/types-native/components/feedback/Dialog/Dialog.metrics.d.ts.map +1 -0
  559. package/dist/types-native/components/feedback/Dialog/Dialog.native.d.ts +8 -0
  560. package/dist/types-native/components/feedback/Dialog/Dialog.native.d.ts.map +1 -0
  561. package/dist/types-native/components/feedback/Dialog/Dialog.types.native.d.ts +25 -0
  562. package/dist/types-native/components/feedback/Dialog/Dialog.types.native.d.ts.map +1 -0
  563. package/dist/types-native/components/feedback/Dialog/DialogParts.native.d.ts +39 -0
  564. package/dist/types-native/components/feedback/Dialog/DialogParts.native.d.ts.map +1 -0
  565. package/dist/types-native/components/feedback/Dialog/index.native.d.ts +4 -0
  566. package/dist/types-native/components/feedback/Dialog/index.native.d.ts.map +1 -0
  567. package/dist/types-native/components/form/Checkbox/Checkbox.base.d.ts +36 -0
  568. package/dist/types-native/components/form/Checkbox/Checkbox.base.d.ts.map +1 -0
  569. package/dist/types-native/components/form/Checkbox/Checkbox.helpers.d.ts +13 -0
  570. package/dist/types-native/components/form/Checkbox/Checkbox.helpers.d.ts.map +1 -0
  571. package/dist/types-native/components/form/Checkbox/Checkbox.metrics.d.ts +92 -0
  572. package/dist/types-native/components/form/Checkbox/Checkbox.metrics.d.ts.map +1 -0
  573. package/dist/types-native/components/form/Checkbox/Checkbox.native.d.ts +21 -0
  574. package/dist/types-native/components/form/Checkbox/Checkbox.native.d.ts.map +1 -0
  575. package/dist/types-native/components/form/Checkbox/Checkbox.types.native.d.ts +27 -0
  576. package/dist/types-native/components/form/Checkbox/Checkbox.types.native.d.ts.map +1 -0
  577. package/dist/types-native/components/form/Checkbox/index.native.d.ts +3 -0
  578. package/dist/types-native/components/form/Checkbox/index.native.d.ts.map +1 -0
  579. package/dist/types-native/components/form/Input/Input.base.d.ts +62 -0
  580. package/dist/types-native/components/form/Input/Input.base.d.ts.map +1 -0
  581. package/dist/types-native/components/form/Input/Input.helpers.d.ts +11 -0
  582. package/dist/types-native/components/form/Input/Input.helpers.d.ts.map +1 -0
  583. package/dist/types-native/components/form/Input/Input.look.native.d.ts +61 -0
  584. package/dist/types-native/components/form/Input/Input.look.native.d.ts.map +1 -0
  585. package/dist/types-native/components/form/Input/Input.metrics.d.ts +186 -0
  586. package/dist/types-native/components/form/Input/Input.metrics.d.ts.map +1 -0
  587. package/dist/types-native/components/form/Input/Input.native.d.ts +22 -0
  588. package/dist/types-native/components/form/Input/Input.native.d.ts.map +1 -0
  589. package/dist/types-native/components/form/Input/Input.types.native.d.ts +20 -0
  590. package/dist/types-native/components/form/Input/Input.types.native.d.ts.map +1 -0
  591. package/dist/types-native/components/form/Input/index.native.d.ts +3 -0
  592. package/dist/types-native/components/form/Input/index.native.d.ts.map +1 -0
  593. package/dist/types-native/components/form/Select/Select.base.d.ts +75 -0
  594. package/dist/types-native/components/form/Select/Select.base.d.ts.map +1 -0
  595. package/dist/types-native/components/form/Select/Select.helpers.d.ts +36 -0
  596. package/dist/types-native/components/form/Select/Select.helpers.d.ts.map +1 -0
  597. package/dist/types-native/components/form/Select/Select.look.native.d.ts +26 -0
  598. package/dist/types-native/components/form/Select/Select.look.native.d.ts.map +1 -0
  599. package/dist/types-native/components/form/Select/Select.metrics.d.ts +72 -0
  600. package/dist/types-native/components/form/Select/Select.metrics.d.ts.map +1 -0
  601. package/dist/types-native/components/form/Select/Select.native.d.ts +21 -0
  602. package/dist/types-native/components/form/Select/Select.native.d.ts.map +1 -0
  603. package/dist/types-native/components/form/Select/Select.types.native.d.ts +29 -0
  604. package/dist/types-native/components/form/Select/Select.types.native.d.ts.map +1 -0
  605. package/dist/types-native/components/form/Select/index.native.d.ts +3 -0
  606. package/dist/types-native/components/form/Select/index.native.d.ts.map +1 -0
  607. package/dist/types-native/components/form/Switch/Switch.base.d.ts +111 -0
  608. package/dist/types-native/components/form/Switch/Switch.base.d.ts.map +1 -0
  609. package/dist/types-native/components/form/Switch/Switch.helpers.d.ts +17 -0
  610. package/dist/types-native/components/form/Switch/Switch.helpers.d.ts.map +1 -0
  611. package/dist/types-native/components/form/Switch/Switch.look.native.d.ts +43 -0
  612. package/dist/types-native/components/form/Switch/Switch.look.native.d.ts.map +1 -0
  613. package/dist/types-native/components/form/Switch/Switch.metrics.d.ts +194 -0
  614. package/dist/types-native/components/form/Switch/Switch.metrics.d.ts.map +1 -0
  615. package/dist/types-native/components/form/Switch/Switch.native.d.ts +20 -0
  616. package/dist/types-native/components/form/Switch/Switch.native.d.ts.map +1 -0
  617. package/dist/types-native/components/form/Switch/Switch.types.native.d.ts +27 -0
  618. package/dist/types-native/components/form/Switch/Switch.types.native.d.ts.map +1 -0
  619. package/dist/types-native/components/form/Switch/index.native.d.ts +3 -0
  620. package/dist/types-native/components/form/Switch/index.native.d.ts.map +1 -0
  621. package/dist/types-native/components/form/field-pulse.native.d.ts +18 -0
  622. package/dist/types-native/components/form/field-pulse.native.d.ts.map +1 -0
  623. package/dist/types-native/components/layout/Card/Card.base.d.ts +77 -0
  624. package/dist/types-native/components/layout/Card/Card.base.d.ts.map +1 -0
  625. package/dist/types-native/components/layout/Card/Card.helpers.d.ts +11 -0
  626. package/dist/types-native/components/layout/Card/Card.helpers.d.ts.map +1 -0
  627. package/dist/types-native/components/layout/Card/Card.look.native.d.ts +57 -0
  628. package/dist/types-native/components/layout/Card/Card.look.native.d.ts.map +1 -0
  629. package/dist/types-native/components/layout/Card/Card.metrics.d.ts +182 -0
  630. package/dist/types-native/components/layout/Card/Card.metrics.d.ts.map +1 -0
  631. package/dist/types-native/components/layout/Card/Card.native.d.ts +11 -0
  632. package/dist/types-native/components/layout/Card/Card.native.d.ts.map +1 -0
  633. package/dist/types-native/components/layout/Card/Card.types.native.d.ts +28 -0
  634. package/dist/types-native/components/layout/Card/Card.types.native.d.ts.map +1 -0
  635. package/dist/types-native/components/layout/Card/CardParts.native.d.ts +55 -0
  636. package/dist/types-native/components/layout/Card/CardParts.native.d.ts.map +1 -0
  637. package/dist/types-native/components/layout/Card/index.native.d.ts +4 -0
  638. package/dist/types-native/components/layout/Card/index.native.d.ts.map +1 -0
  639. package/dist/types-native/icons/paths.generated.d.ts +4 -0
  640. package/dist/types-native/icons/paths.generated.d.ts.map +1 -1
  641. package/dist/types-native/platform/aria.d.ts +59 -1
  642. package/dist/types-native/platform/aria.d.ts.map +1 -1
  643. package/dist/types-native/platform/pulse-ring.native.d.ts +35 -0
  644. package/dist/types-native/platform/pulse-ring.native.d.ts.map +1 -0
  645. package/dist/types-native/platform/test-id.d.ts +24 -0
  646. package/dist/types-native/platform/test-id.d.ts.map +1 -1
  647. package/dist/types-native/tokens/field-edge.core.d.ts +27 -0
  648. package/dist/types-native/tokens/field-edge.core.d.ts.map +1 -0
  649. package/dist/types-native/tokens/mui-type.d.ts +1 -1
  650. package/dist/types-native/tokens/mui-type.d.ts.map +1 -1
  651. package/dist/types-native/tokens/shadow.d.ts +40 -0
  652. package/dist/types-native/tokens/shadow.d.ts.map +1 -0
  653. package/dist/types-native/utils/withDefaults.d.ts +13 -0
  654. package/dist/types-native/utils/withDefaults.d.ts.map +1 -0
  655. package/dist/typography/Heading.js +2 -2
  656. package/dist/typography/Paragraph.js +2 -2
  657. package/dist/typography/Text.js +2 -2
  658. package/dist/user-avatar.js +9 -7
  659. package/dist/utility/InstallPrompt.js +2 -2
  660. package/package.json +25 -1
  661. package/src/components/data-display/CardKit/NATIVE-NOTES.md +48 -0
  662. package/src/components/feedback/Dialog/Dialog.base.ts +69 -0
  663. package/src/components/feedback/Dialog/Dialog.helpers.ts +75 -0
  664. package/src/components/feedback/Dialog/Dialog.look.native.ts +159 -0
  665. package/src/components/feedback/Dialog/Dialog.metrics.ts +140 -0
  666. package/src/components/feedback/Dialog/Dialog.native.tsx +149 -0
  667. package/src/components/feedback/Dialog/Dialog.styles.ts +63 -41
  668. package/src/components/feedback/Dialog/Dialog.tsx +58 -74
  669. package/src/components/feedback/Dialog/Dialog.types.native.ts +46 -0
  670. package/src/components/feedback/Dialog/Dialog.types.ts +24 -41
  671. package/src/components/feedback/Dialog/DialogParts.native.tsx +257 -0
  672. package/src/components/feedback/Dialog/NATIVE-NOTES.md +16 -0
  673. package/src/components/feedback/Dialog/index.native.ts +16 -0
  674. package/src/components/feedback/Dialog/index.ts +8 -2
  675. package/src/components/form/Checkbox/Checkbox.base.ts +36 -0
  676. package/src/components/form/Checkbox/Checkbox.helpers.ts +13 -13
  677. package/src/components/form/Checkbox/Checkbox.metrics.ts +73 -0
  678. package/src/components/form/Checkbox/Checkbox.native.tsx +246 -0
  679. package/src/components/form/Checkbox/Checkbox.tsx +34 -21
  680. package/src/components/form/Checkbox/Checkbox.types.native.ts +29 -0
  681. package/src/components/form/Checkbox/Checkbox.types.ts +12 -11
  682. package/src/components/form/Checkbox/NATIVE-NOTES.md +11 -0
  683. package/src/components/form/Checkbox/index.native.ts +8 -0
  684. package/src/components/form/Checkbox/index.ts +1 -1
  685. package/src/components/form/Input/Input.base.ts +84 -0
  686. package/src/components/form/Input/Input.helpers.ts +43 -0
  687. package/src/components/form/Input/Input.look.native.ts +246 -0
  688. package/src/components/form/Input/Input.metrics.ts +229 -0
  689. package/src/components/form/Input/Input.native.tsx +240 -0
  690. package/src/components/form/Input/Input.styles.ts +45 -51
  691. package/src/components/form/Input/Input.tsx +46 -42
  692. package/src/components/form/Input/Input.types.native.ts +29 -0
  693. package/src/components/form/Input/Input.types.ts +15 -17
  694. package/src/components/form/Input/NATIVE-NOTES.md +14 -0
  695. package/src/components/form/Input/index.native.ts +2 -0
  696. package/src/components/form/Input/index.ts +1 -1
  697. package/src/components/form/Select/NATIVE-NOTES.md +12 -0
  698. package/src/components/form/Select/Select.base.ts +78 -0
  699. package/src/components/form/Select/Select.helpers.ts +82 -0
  700. package/src/components/form/Select/Select.look.native.ts +99 -0
  701. package/src/components/form/Select/Select.metrics.ts +90 -0
  702. package/src/components/form/Select/Select.native.tsx +264 -0
  703. package/src/components/form/Select/Select.tsx +37 -25
  704. package/src/components/form/Select/Select.types.native.ts +30 -0
  705. package/src/components/form/Select/Select.types.ts +14 -51
  706. package/src/components/form/Select/index.native.ts +9 -0
  707. package/src/components/form/Select/index.ts +7 -1
  708. package/src/components/form/Switch/NATIVE-NOTES.md +12 -0
  709. package/src/components/form/Switch/Switch.base.ts +136 -0
  710. package/src/components/form/Switch/Switch.helpers.ts +61 -0
  711. package/src/components/form/Switch/Switch.look.native.ts +187 -0
  712. package/src/components/form/Switch/Switch.metrics.ts +191 -0
  713. package/src/components/form/Switch/Switch.native.tsx +360 -0
  714. package/src/components/form/Switch/Switch.parts.tsx +4 -4
  715. package/src/components/form/Switch/Switch.styles.ts +109 -147
  716. package/src/components/form/Switch/Switch.tsx +4 -2
  717. package/src/components/form/Switch/Switch.types.native.ts +34 -0
  718. package/src/components/form/Switch/Switch.types.ts +16 -117
  719. package/src/components/form/Switch/index.native.ts +8 -0
  720. package/src/components/form/Switch/index.ts +6 -1
  721. package/src/components/form/field-pulse.native.tsx +78 -0
  722. package/src/components/layout/Card/Card.base.ts +92 -0
  723. package/src/components/layout/Card/Card.helpers.ts +13 -7
  724. package/src/components/layout/Card/Card.look.native.ts +204 -0
  725. package/src/components/layout/Card/Card.metrics.ts +171 -0
  726. package/src/components/layout/Card/Card.native.tsx +130 -0
  727. package/src/components/layout/Card/Card.styles.ts +88 -48
  728. package/src/components/layout/Card/Card.tsx +41 -25
  729. package/src/components/layout/Card/Card.types.native.ts +59 -0
  730. package/src/components/layout/Card/Card.types.ts +30 -45
  731. package/src/components/layout/Card/CardParts.native.tsx +262 -0
  732. package/src/components/layout/Card/NATIVE-NOTES.md +15 -0
  733. package/src/components/layout/Card/index.native.ts +18 -0
  734. package/src/components/layout/Card/index.ts +9 -0
  735. package/src/icons/glyphs.json +4 -0
  736. package/src/icons/paths.generated.ts +4 -0
  737. package/src/platform/aria.ts +72 -1
  738. package/src/platform/pulse-ring.native.tsx +82 -0
  739. package/src/platform/test-id.ts +30 -0
  740. package/src/tokens/field-edge.core.ts +87 -0
  741. package/src/tokens/field-edge.ts +10 -66
  742. package/src/tokens/mui-type.ts +2 -1
  743. package/src/tokens/shadow.ts +59 -0
  744. package/dist/chunk-6PRA45LC.js.map +0 -1
  745. package/dist/chunk-BJ3J6FTN.js.map +0 -1
  746. package/dist/chunk-D2IASECY.js.map +0 -1
  747. package/dist/chunk-FX5DY6VR.js.map +0 -1
  748. package/dist/chunk-JD364H3Y.js.map +0 -1
  749. package/dist/chunk-MLOWPVVW.js.map +0 -1
  750. package/dist/chunk-OQXOYHIV.js.map +0 -1
  751. package/dist/chunk-Q5EQC7NL.js.map +0 -1
  752. package/dist/chunk-QLWBQQW7.js.map +0 -1
  753. package/dist/chunk-RI5JZLZL.js.map +0 -1
  754. package/dist/chunk-RMSH2I3O.js.map +0 -1
  755. package/dist/chunk-S5LE2ARG.js.map +0 -1
  756. package/dist/chunk-TBWEIQUR.js +0 -263
  757. package/dist/chunk-TBWEIQUR.js.map +0 -1
  758. package/dist/chunk-VMF3UXM4.js +0 -137
  759. package/dist/chunk-VMF3UXM4.js.map +0 -1
  760. package/dist/chunk-VMNSGE2G.js.map +0 -1
  761. package/dist/chunk-VSLUFBMT.js.map +0 -1
  762. package/dist/native/chunks/chunk-4NK5ZQZ3.js +0 -10
  763. package/dist/native/chunks/chunk-4NK5ZQZ3.js.map +0 -1
  764. package/dist/native/chunks/chunk-HSIND52T.js.map +0 -1
  765. package/dist/native/chunks/chunk-M4DTJDWU.js.map +0 -1
  766. package/dist/native/chunks/chunk-Q52IDAF2.js.map +0 -1
  767. /package/dist/{chunk-MBYO2F4Y.js.map → chunk-25R3ITGZ.js.map} +0 -0
  768. /package/dist/{chunk-KQ74QU55.js.map → chunk-2FDBR77W.js.map} +0 -0
  769. /package/dist/{chunk-D7FJ2GAD.js.map → chunk-2HPP6RVC.js.map} +0 -0
  770. /package/dist/{chunk-B2A4DG77.js.map → chunk-2MMEIN4T.js.map} +0 -0
  771. /package/dist/{chunk-YRUCIKPO.js.map → chunk-2UYR2OOE.js.map} +0 -0
  772. /package/dist/{chunk-2PCOC3PT.js.map → chunk-343TTIHD.js.map} +0 -0
  773. /package/dist/{chunk-DQHC5P64.js.map → chunk-3FLVIVOK.js.map} +0 -0
  774. /package/dist/{chunk-URWGRPL7.js.map → chunk-3W7IEWEL.js.map} +0 -0
  775. /package/dist/{chunk-47UD6DZ4.js.map → chunk-4523RYE7.js.map} +0 -0
  776. /package/dist/{chunk-AEGX66N7.js.map → chunk-4IVOHL32.js.map} +0 -0
  777. /package/dist/{chunk-GGE7Y53F.js.map → chunk-4TXIZ5WI.js.map} +0 -0
  778. /package/dist/{chunk-IJIT5HQP.js.map → chunk-4X4KM4ZB.js.map} +0 -0
  779. /package/dist/{chunk-M7OHXNLF.js.map → chunk-5NKUYCZD.js.map} +0 -0
  780. /package/dist/{chunk-C52BELLW.js.map → chunk-5OIH36KX.js.map} +0 -0
  781. /package/dist/{chunk-LMJBINWN.js.map → chunk-5ZTUP65G.js.map} +0 -0
  782. /package/dist/{chunk-EX3PSZLV.js.map → chunk-67L7HMEP.js.map} +0 -0
  783. /package/dist/{chunk-2EKALM6P.js.map → chunk-6JGPPTLX.js.map} +0 -0
  784. /package/dist/{chunk-LZRURORY.js.map → chunk-6NZTYZP5.js.map} +0 -0
  785. /package/dist/{chunk-DCEMUZJQ.js.map → chunk-6WIDZGXE.js.map} +0 -0
  786. /package/dist/{chunk-R7MX5KPJ.js.map → chunk-6YLAVHV4.js.map} +0 -0
  787. /package/dist/{chunk-RXSGHPCR.js.map → chunk-7FOOLP5H.js.map} +0 -0
  788. /package/dist/{chunk-DOADQW7I.js.map → chunk-7NSX7A5H.js.map} +0 -0
  789. /package/dist/{chunk-QZWKC3AP.js.map → chunk-7VN7LFBA.js.map} +0 -0
  790. /package/dist/{chunk-E4FGKZID.js.map → chunk-AEGXHZQT.js.map} +0 -0
  791. /package/dist/{chunk-WO52KYSU.js.map → chunk-AGSBIUPV.js.map} +0 -0
  792. /package/dist/{chunk-PU3AAKRR.js.map → chunk-AJ6XEO4E.js.map} +0 -0
  793. /package/dist/{chunk-7DNQHMDO.js.map → chunk-B6IURHSZ.js.map} +0 -0
  794. /package/dist/{chunk-WX7VWW3W.js.map → chunk-C3CMEDSO.js.map} +0 -0
  795. /package/dist/{chunk-HSAH5QUQ.js.map → chunk-CHPZTF34.js.map} +0 -0
  796. /package/dist/{chunk-7EESF76V.js.map → chunk-CJBBGMIA.js.map} +0 -0
  797. /package/dist/{chunk-2W4CIWTW.js.map → chunk-DBYFC6CF.js.map} +0 -0
  798. /package/dist/{chunk-FGLV6BXQ.js.map → chunk-DTC224UJ.js.map} +0 -0
  799. /package/dist/{chunk-HEK4LQT6.js.map → chunk-DVFIE54C.js.map} +0 -0
  800. /package/dist/{chunk-4N4ENTF7.js.map → chunk-DW5FRWRQ.js.map} +0 -0
  801. /package/dist/{chunk-THBT56JE.js.map → chunk-E55CJV65.js.map} +0 -0
  802. /package/dist/{chunk-B7BZAIHL.js.map → chunk-EOHKZGOZ.js.map} +0 -0
  803. /package/dist/{chunk-EGRFMPGD.js.map → chunk-EXJBPKGW.js.map} +0 -0
  804. /package/dist/{chunk-BILE3A7F.js.map → chunk-FGK2C7JR.js.map} +0 -0
  805. /package/dist/{chunk-OI3HOI74.js.map → chunk-FGUESLDX.js.map} +0 -0
  806. /package/dist/{chunk-VCTKJHXD.js.map → chunk-FL54G7PV.js.map} +0 -0
  807. /package/dist/{chunk-HDNK7BAX.js.map → chunk-GT7C6TSM.js.map} +0 -0
  808. /package/dist/{chunk-V3SBJ3PB.js.map → chunk-HFXTAEYY.js.map} +0 -0
  809. /package/dist/{chunk-HBAPVB7T.js.map → chunk-HKKSZ7HG.js.map} +0 -0
  810. /package/dist/{chunk-FOMK3WPG.js.map → chunk-HLYPI5CO.js.map} +0 -0
  811. /package/dist/{chunk-3AOOI2NR.js.map → chunk-HR7YTBR7.js.map} +0 -0
  812. /package/dist/{chunk-UNF65XZW.js.map → chunk-I5SBTNV2.js.map} +0 -0
  813. /package/dist/{chunk-X24P3ZYW.js.map → chunk-J4W4TQPC.js.map} +0 -0
  814. /package/dist/{chunk-5ZOJLYD2.js.map → chunk-JE6RZ5L6.js.map} +0 -0
  815. /package/dist/{chunk-NQC6H7GY.js.map → chunk-JIKWZDNK.js.map} +0 -0
  816. /package/dist/{chunk-ENNW5SKT.js.map → chunk-JSH3HFDQ.js.map} +0 -0
  817. /package/dist/{chunk-JB7JE4QZ.js.map → chunk-JWW2Z3RH.js.map} +0 -0
  818. /package/dist/{chunk-LAHDFBDE.js.map → chunk-JXNT5TUP.js.map} +0 -0
  819. /package/dist/{chunk-ZBNTFWTG.js.map → chunk-KIHQE5YA.js.map} +0 -0
  820. /package/dist/{chunk-ZEBJT5JZ.js.map → chunk-KTK4A3IF.js.map} +0 -0
  821. /package/dist/{chunk-4WK2RTVY.js.map → chunk-LS4FMSHY.js.map} +0 -0
  822. /package/dist/{chunk-PNYXXLPU.js.map → chunk-M4LQRQFL.js.map} +0 -0
  823. /package/dist/{chunk-Z7JNCB5Q.js.map → chunk-MESRKY67.js.map} +0 -0
  824. /package/dist/{chunk-VJK5FBNK.js.map → chunk-MP4VSWHK.js.map} +0 -0
  825. /package/dist/{chunk-6XPNJLXE.js.map → chunk-NARIG5FL.js.map} +0 -0
  826. /package/dist/{chunk-VEFDL77X.js.map → chunk-NWNSUHEB.js.map} +0 -0
  827. /package/dist/{chunk-43NEBUV3.js.map → chunk-O3336DJ6.js.map} +0 -0
  828. /package/dist/{chunk-WBVHRLIS.js.map → chunk-OFOYMZRY.js.map} +0 -0
  829. /package/dist/{chunk-SM3NRN7L.js.map → chunk-ON2CMKTI.js.map} +0 -0
  830. /package/dist/{chunk-IH4CX43Q.js.map → chunk-OP65D4UR.js.map} +0 -0
  831. /package/dist/{chunk-NHSMLVNC.js.map → chunk-OVLNF4AZ.js.map} +0 -0
  832. /package/dist/{chunk-ZTZ6S5Q6.js.map → chunk-OXQP3N6X.js.map} +0 -0
  833. /package/dist/{chunk-YVW7VPK4.js.map → chunk-PFLKPNBU.js.map} +0 -0
  834. /package/dist/{chunk-7P2HZLEG.js.map → chunk-PFV6RL4Q.js.map} +0 -0
  835. /package/dist/{chunk-76GZ55IC.js.map → chunk-PMS3H3OO.js.map} +0 -0
  836. /package/dist/{chunk-UF27D35R.js.map → chunk-PRUSQQDT.js.map} +0 -0
  837. /package/dist/{chunk-HBZIN6IQ.js.map → chunk-PZEC5CQA.js.map} +0 -0
  838. /package/dist/{chunk-74OZ5KVR.js.map → chunk-Q75SJ35X.js.map} +0 -0
  839. /package/dist/{chunk-PC5FFEIY.js.map → chunk-QFJRB27Q.js.map} +0 -0
  840. /package/dist/{chunk-6D5WEZ2L.js.map → chunk-QFVFHIHE.js.map} +0 -0
  841. /package/dist/{chunk-GBB6XQ56.js.map → chunk-QGBMCB76.js.map} +0 -0
  842. /package/dist/{chunk-PODGTNXS.js.map → chunk-QKIJ6YXZ.js.map} +0 -0
  843. /package/dist/{chunk-DX527XPL.js.map → chunk-QWDEOITU.js.map} +0 -0
  844. /package/dist/{chunk-OLZTGVBT.js.map → chunk-REMK55JI.js.map} +0 -0
  845. /package/dist/{chunk-BLT5ZBVL.js.map → chunk-RRX6ZTNX.js.map} +0 -0
  846. /package/dist/{chunk-FCOEJCUP.js.map → chunk-TFO6GBW7.js.map} +0 -0
  847. /package/dist/{chunk-2ZDTGI5V.js.map → chunk-TLMLEC4F.js.map} +0 -0
  848. /package/dist/{chunk-FP4R47TM.js.map → chunk-TW3BXVEU.js.map} +0 -0
  849. /package/dist/{chunk-J6UFAMIC.js.map → chunk-TZDDL3DR.js.map} +0 -0
  850. /package/dist/{chunk-6IUTT6BK.js.map → chunk-U2YJCNRU.js.map} +0 -0
  851. /package/dist/{chunk-KZSKI2R3.js.map → chunk-U2ZDN2AL.js.map} +0 -0
  852. /package/dist/{chunk-YFHIESMD.js.map → chunk-U7Q2Y6WG.js.map} +0 -0
  853. /package/dist/{chunk-RQDN4BN5.js.map → chunk-UU3QAKG6.js.map} +0 -0
  854. /package/dist/{chunk-VJFH2AXT.js.map → chunk-UVGRRI7N.js.map} +0 -0
  855. /package/dist/{chunk-7DBFEZRC.js.map → chunk-VIK3HAUQ.js.map} +0 -0
  856. /package/dist/{chunk-SOCKK67R.js.map → chunk-VNDOQEJ7.js.map} +0 -0
  857. /package/dist/{chunk-J54WH74M.js.map → chunk-VNNG46TS.js.map} +0 -0
  858. /package/dist/{chunk-5ZF3VASA.js.map → chunk-VQAM2XZV.js.map} +0 -0
  859. /package/dist/{chunk-SEH7KOVG.js.map → chunk-VXTYVJDK.js.map} +0 -0
  860. /package/dist/{chunk-37YPZHAG.js.map → chunk-W4SDVTZC.js.map} +0 -0
  861. /package/dist/{chunk-X5D3PTWI.js.map → chunk-W4YWU7LQ.js.map} +0 -0
  862. /package/dist/{chunk-LKVIZNUM.js.map → chunk-W7Y6RA6W.js.map} +0 -0
  863. /package/dist/{chunk-Z4GWXTZV.js.map → chunk-WGRS4PGY.js.map} +0 -0
  864. /package/dist/{chunk-NRUYYGDZ.js.map → chunk-WLQTHPMX.js.map} +0 -0
  865. /package/dist/{chunk-J2KSG754.js.map → chunk-WRDPWEIC.js.map} +0 -0
  866. /package/dist/{chunk-HEG7JIBM.js.map → chunk-X5MPHXG5.js.map} +0 -0
  867. /package/dist/{chunk-NFAKRI4S.js.map → chunk-XELVDPKL.js.map} +0 -0
  868. /package/dist/{chunk-EPNUVSNK.js.map → chunk-XFUNJYFT.js.map} +0 -0
  869. /package/dist/{chunk-7RZ4WOQW.js.map → chunk-XKV5ZIBG.js.map} +0 -0
  870. /package/dist/{chunk-F2DOTCF3.js.map → chunk-XSF6AXEU.js.map} +0 -0
  871. /package/dist/{chunk-74EZ565M.js.map → chunk-XT7HMNBW.js.map} +0 -0
  872. /package/dist/{chunk-PHCSPHDH.js.map → chunk-XUJG2HFW.js.map} +0 -0
  873. /package/dist/{chunk-ACDYA5WC.js.map → chunk-XZTOIEKI.js.map} +0 -0
  874. /package/dist/{chunk-SKZHOWTS.js.map → chunk-YDI6IJ6F.js.map} +0 -0
  875. /package/dist/{chunk-YK2PETUP.js.map → chunk-YJ4HM25H.js.map} +0 -0
  876. /package/dist/{chunk-Q4NOI2CR.js.map → chunk-YQ6TNHAC.js.map} +0 -0
  877. /package/dist/{chunk-24BUCMQA.js.map → chunk-YTOYMJPM.js.map} +0 -0
  878. /package/dist/{chunk-G5ZVD5IJ.js.map → chunk-ZDWU52DJ.js.map} +0 -0
  879. /package/dist/{chunk-MY5VNNSP.js.map → chunk-ZIYMBR7K.js.map} +0 -0
  880. /package/dist/{chunk-7JWXLDRH.js.map → chunk-ZKR5B6YJ.js.map} +0 -0
  881. /package/dist/{chunk-4MGFUPQT.js.map → chunk-ZOUWHGV3.js.map} +0 -0
  882. /package/dist/{chunk-UMDXGIRZ.js.map → chunk-ZZOOSKSV.js.map} +0 -0
  883. /package/dist/native/chunks/{chunk-EKKNUEA6.js.map → chunk-75JQYVDZ.js.map} +0 -0
  884. /package/dist/native/chunks/{chunk-UKCCYP52.js.map → chunk-ATS7STZJ.js.map} +0 -0
  885. /package/dist/native/chunks/{chunk-YTHR4Y5P.js.map → chunk-GWGIWQO7.js.map} +0 -0
@@ -1,11 +1,11 @@
1
1
  import "../chunk-KAK5SAEA.js";
2
2
  import {
3
3
  ScrollArea
4
- } from "../chunk-R7MX5KPJ.js";
5
- import "../chunk-4OEKIFBC.js";
6
- import "../chunk-RHIDWUK7.js";
4
+ } from "../chunk-6YLAVHV4.js";
7
5
  import "../chunk-C53C7C2X.js";
6
+ import "../chunk-4OEKIFBC.js";
8
7
  import "../chunk-ZADOIITM.js";
8
+ import "../chunk-RHIDWUK7.js";
9
9
  import "../chunk-PZ5AY32C.js";
10
10
  export {
11
11
  ScrollArea
@@ -1,11 +1,11 @@
1
1
  import "../chunk-724ZONOL.js";
2
2
  import {
3
3
  Skeleton
4
- } from "../chunk-QZWKC3AP.js";
4
+ } from "../chunk-7VN7LFBA.js";
5
+ import "../chunk-7WDPC46N.js";
5
6
  import "../chunk-ZOW2CCMO.js";
6
7
  import "../chunk-BRMGHMYB.js";
7
- import "../chunk-7WDPC46N.js";
8
- import "../chunk-QLWBQQW7.js";
8
+ import "../chunk-TYJR4GOF.js";
9
9
  import "../chunk-PZ5AY32C.js";
10
10
  export {
11
11
  Skeleton
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Spacer
3
- } from "../chunk-VJK5FBNK.js";
3
+ } from "../chunk-MP4VSWHK.js";
4
4
  import "../chunk-N7MJ6CNC.js";
5
- import "../chunk-QLWBQQW7.js";
5
+ import "../chunk-TYJR4GOF.js";
6
6
  import "../chunk-PZ5AY32C.js";
7
7
  export {
8
8
  Spacer
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Stack
3
- } from "../chunk-J6UFAMIC.js";
3
+ } from "../chunk-TZDDL3DR.js";
4
4
  import "../chunk-4GGH6ZQ7.js";
5
- import "../chunk-X5D3PTWI.js";
5
+ import "../chunk-W4YWU7LQ.js";
6
6
  import "../chunk-7V6ZRQYW.js";
7
7
  import "../chunk-OCUVKI63.js";
8
8
  import "../chunk-KLREH4X6.js";
9
9
  import "../chunk-YMRI5QKG.js";
10
- import "../chunk-QLWBQQW7.js";
10
+ import "../chunk-TYJR4GOF.js";
11
11
  import "../chunk-V5IOLAIS.js";
12
12
  import "../chunk-7ZPUN7TV.js";
13
13
  import "../chunk-PT6TCWIW.js";
@@ -1,5 +1,6 @@
1
1
  // src/tokens/mui-type.ts
2
2
  var MUI_TYPE = {
3
+ h5: { fontSize: 24, lineHeight: 1.334, fontWeight: 400, letterSpacingEm: 0 },
3
4
  h6: { fontSize: 20, lineHeight: 1.6, fontWeight: 500, letterSpacingEm: 75e-4 },
4
5
  body1: { fontSize: 16, lineHeight: 1.5, fontWeight: 400, letterSpacingEm: 938e-5 },
5
6
  body2: { fontSize: 14, lineHeight: 1.43, fontWeight: 400, letterSpacingEm: 0.01071 },
@@ -22,4 +23,4 @@ export {
22
23
  MUI_FONT_WEIGHT_MEDIUM,
23
24
  muiTypeStyle
24
25
  };
25
- //# sourceMappingURL=chunk-HSIND52T.js.map
26
+ //# sourceMappingURL=chunk-2UFNPDYT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/tokens/mui-type.ts"],"sourcesContent":["import type { UiTheme } from './theme';\n\n/**\n * MUI'S DEFAULT `Typography` VARIANTS, AS NUMBERS.\n *\n * Several web components render a title or a message BY NAME —\n * `<Typography variant=\"h6\">` — and let MUI's theme turn the name into a\n * size. The native halves have no MUI theme, so they need the numbers MUI's\n * `createTypography` produces for those names. These are those numbers, for\n * the variants the ported components use: `fontSize` in px, `lineHeight` as\n * a ratio, `letterSpacing` in em exactly as MUI rounds it\n * (`round(letterSpacing / size)`, five decimals).\n *\n * Only the DEFAULTS. A host that re-themes `typography.h6` moves the web\n * halves and not these; each component that reads this records that as a\n * known gap in its `NATIVE-NOTES.md`.\n */\nexport type MuiTypeVariantName = 'h5' | 'h6' | 'body1' | 'body2' | 'caption';\n\nexport interface MuiTypeVariant {\n fontSize: number;\n lineHeight: number;\n fontWeight: 400 | 500;\n letterSpacingEm: number;\n}\n\nexport const MUI_TYPE: Record<MuiTypeVariantName, MuiTypeVariant> = {\n h5: { fontSize: 24, lineHeight: 1.334, fontWeight: 400, letterSpacingEm: 0 },\n h6: { fontSize: 20, lineHeight: 1.6, fontWeight: 500, letterSpacingEm: 0.0075 },\n body1: { fontSize: 16, lineHeight: 1.5, fontWeight: 400, letterSpacingEm: 0.00938 },\n body2: { fontSize: 14, lineHeight: 1.43, fontWeight: 400, letterSpacingEm: 0.01071 },\n caption: { fontSize: 12, lineHeight: 1.66, fontWeight: 400, letterSpacingEm: 0.03333 },\n};\n\n/** MUI's `theme.typography.fontWeightMedium`, which several web styles name outright. */\nexport const MUI_FONT_WEIGHT_MEDIUM = 500;\n\n/** A variant multiplied out for a renderer whose `lineHeight` and `letterSpacing` are absolute. */\nexport interface MuiTypeStyle {\n fontFamily: string | undefined;\n fontSize: number;\n lineHeight: number;\n fontWeight: `${MuiTypeVariant['fontWeight']}`;\n letterSpacing: number;\n}\n\n/**\n * The variant as absolute numbers, in the theme's font. `fontSize` may be\n * overridden — the Alert's title is `body1` at 1.05rem — and the ratios\n * follow it, which is what the browser does with `em` and a unitless\n * line-height.\n */\nexport function muiTypeStyle(\n theme: Pick<UiTheme, 'typography'>,\n variant: MuiTypeVariantName,\n fontSize: number = MUI_TYPE[variant].fontSize,\n): MuiTypeStyle {\n const step = MUI_TYPE[variant];\n return {\n fontFamily: theme.typography.fontFamily,\n fontSize,\n lineHeight: fontSize * step.lineHeight,\n fontWeight: `${step.fontWeight}`,\n letterSpacing: fontSize * step.letterSpacingEm,\n };\n}\n"],"mappings":";AA0BO,IAAM,WAAuD;AAAA,EAClE,IAAI,EAAE,UAAU,IAAI,YAAY,OAAO,YAAY,KAAK,iBAAiB,EAAE;AAAA,EAC3E,IAAI,EAAE,UAAU,IAAI,YAAY,KAAK,YAAY,KAAK,iBAAiB,MAAO;AAAA,EAC9E,OAAO,EAAE,UAAU,IAAI,YAAY,KAAK,YAAY,KAAK,iBAAiB,OAAQ;AAAA,EAClF,OAAO,EAAE,UAAU,IAAI,YAAY,MAAM,YAAY,KAAK,iBAAiB,QAAQ;AAAA,EACnF,SAAS,EAAE,UAAU,IAAI,YAAY,MAAM,YAAY,KAAK,iBAAiB,QAAQ;AACvF;AAGO,IAAM,yBAAyB;AAiB/B,SAAS,aACd,OACA,SACA,WAAmB,SAAS,OAAO,EAAE,UACvB;AACd,QAAM,OAAO,SAAS,OAAO;AAC7B,SAAO;AAAA,IACL,YAAY,MAAM,WAAW;AAAA,IAC7B;AAAA,IACA,YAAY,WAAW,KAAK;AAAA,IAC5B,YAAY,GAAG,KAAK,UAAU;AAAA,IAC9B,eAAe,WAAW,KAAK;AAAA,EACjC;AACF;","names":[]}
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveTestId
3
- } from "./chunk-M4DTJDWU.js";
3
+ } from "./chunk-AR5O4BEY.js";
4
4
  import {
5
5
  useUiTheme
6
- } from "./chunk-YTHR4Y5P.js";
6
+ } from "./chunk-GWGIWQO7.js";
7
7
 
8
8
  // src/components/layout/Box/Box.base.ts
9
9
  var BOX_BASE_KEYS = [
@@ -133,4 +133,4 @@ export {
133
133
  resolveBoxLayout,
134
134
  Box
135
135
  };
136
- //# sourceMappingURL=chunk-EKKNUEA6.js.map
136
+ //# sourceMappingURL=chunk-75JQYVDZ.js.map
@@ -0,0 +1,351 @@
1
+ import {
2
+ SIZE_VALUES
3
+ } from "./chunk-5WLOVHKK.js";
4
+ import {
5
+ alpha,
6
+ darken,
7
+ decomposeColor,
8
+ getContrastRatio,
9
+ getLuminance,
10
+ hslToRgb,
11
+ lighten,
12
+ recomposeColor
13
+ } from "./chunk-LEMMXZFN.js";
14
+
15
+ // src/components/form/Input/Input.metrics.ts
16
+ var muiVariantFor = (variant) => {
17
+ switch (variant) {
18
+ case "underline":
19
+ return "standard";
20
+ case "glass":
21
+ case "gradient":
22
+ return "outlined";
23
+ default:
24
+ return variant;
25
+ }
26
+ };
27
+ var INPUT_MUI_SIZE = {
28
+ xs: "small",
29
+ sm: "small",
30
+ md: "medium",
31
+ lg: "medium",
32
+ xl: "medium"
33
+ };
34
+ var INPUT_SIZE_OVERRIDES = {
35
+ xs: { vertical: 6, horizontal: 10 },
36
+ lg: { vertical: 16, horizontal: 14 },
37
+ xl: { vertical: 20, horizontal: 16 }
38
+ };
39
+ var MUI_INPUT_PADDING = {
40
+ outlined: {
41
+ small: { top: 8.5, right: 14, bottom: 8.5, left: 14 },
42
+ medium: { top: 16.5, right: 14, bottom: 16.5, left: 14 }
43
+ },
44
+ filled: {
45
+ small: { top: 21, right: 12, bottom: 4, left: 12 },
46
+ medium: { top: 25, right: 12, bottom: 8, left: 12 }
47
+ },
48
+ standard: {
49
+ small: { top: 1, right: 0, bottom: 5, left: 0 },
50
+ medium: { top: 4, right: 0, bottom: 5, left: 0 }
51
+ }
52
+ };
53
+ function inputPadding(variant, size) {
54
+ const override = INPUT_SIZE_OVERRIDES[size];
55
+ if (override) {
56
+ return {
57
+ top: override.vertical,
58
+ right: override.horizontal,
59
+ bottom: override.vertical,
60
+ left: override.horizontal
61
+ };
62
+ }
63
+ return MUI_INPUT_PADDING[muiVariantFor(variant)][INPUT_MUI_SIZE[size]];
64
+ }
65
+ var INPUT_FONT_SIZE = 16;
66
+ var INPUT_LINE_HEIGHT = 23;
67
+ var PLACEHOLDER_OPACITY = { light: 0.42, dark: 0.5 };
68
+ function placeholderInk(theme) {
69
+ const opacity = theme.mode === "dark" ? PLACEHOLDER_OPACITY.dark : PLACEHOLDER_OPACITY.light;
70
+ const { type, values } = decomposeColor(theme.palette.text.primary);
71
+ const [first = 0, second = 0, third = 0, own = 1] = values;
72
+ return recomposeColor({
73
+ type: type.startsWith("hsl") ? "hsla" : "rgba",
74
+ values: [first, second, third, own * opacity]
75
+ });
76
+ }
77
+ var INPUT_BORDER = { rest: 1, focused: 2 };
78
+ var UNDERLINE_COLOR = {
79
+ light: "rgba(0, 0, 0, 0.42)",
80
+ dark: "rgba(255, 255, 255, 0.7)"
81
+ };
82
+ var INPUT_LABEL = { scale: 0.75, gap: 4 };
83
+ var HELPER_TEXT = {
84
+ fontSize: 12,
85
+ lineHeight: 1.66,
86
+ marginTop: 3,
87
+ marginTopSmall: 4,
88
+ marginHorizontal: 14
89
+ };
90
+ var ADORNMENT_GAP = 8;
91
+ var INPUT_LOADING = { opacity: 0.7, spinnerSize: 20 };
92
+ var INPUT_GLOW = {
93
+ rest: { blur: 15, alpha: 0.3 },
94
+ focused: { blur: 20, alpha: 0.5 }
95
+ };
96
+ var INPUT_PULSE = {
97
+ height: 56,
98
+ radiusUnits: 0.5,
99
+ opacity: 0.3,
100
+ ms: 2e3,
101
+ spread: 10
102
+ };
103
+ var INPUT_GLASS = {
104
+ background: { rest: 0.1, hover: 0.15, focused: 0.2 },
105
+ blur: 20,
106
+ hoverBorderAlpha: 0.3,
107
+ focusRing: { width: 2, alpha: 0.1 }
108
+ };
109
+ var INPUT_GRADIENT = {
110
+ angleDeg: 135,
111
+ fill: { rest: 0.1, hover: 0.15, focused: 0.2 },
112
+ borderWidth: 2
113
+ };
114
+ var FILLED_WASH = { rest: 0.04, hover: 0.08, focused: 0.12 };
115
+ var sizeProps = (size) => {
116
+ const override = INPUT_SIZE_OVERRIDES[size];
117
+ return {
118
+ size: INPUT_MUI_SIZE[size],
119
+ ...override ? { sx: { "& .MuiInputBase-input": { padding: `${override.vertical}px ${override.horizontal}px` } } } : {}
120
+ };
121
+ };
122
+ var SIZE_MAP = Object.fromEntries(
123
+ SIZE_VALUES.map((size) => [size, sizeProps(size)])
124
+ );
125
+
126
+ // src/components/form/field-pulse.native.tsx
127
+ import * as React from "react";
128
+ import { Animated, Easing, Platform, StyleSheet } from "react-native";
129
+ import { jsx } from "react/jsx-runtime";
130
+ function FieldPulse({
131
+ color,
132
+ radius,
133
+ testID
134
+ }) {
135
+ const progress = React.useRef(new Animated.Value(0)).current;
136
+ React.useEffect(() => {
137
+ const loop = Animated.loop(
138
+ Animated.timing(progress, {
139
+ toValue: 1,
140
+ duration: INPUT_PULSE.ms,
141
+ easing: Easing.out(Easing.ease),
142
+ useNativeDriver: Platform.OS !== "web"
143
+ })
144
+ );
145
+ loop.start();
146
+ return () => loop.stop();
147
+ }, [progress]);
148
+ return /* @__PURE__ */ jsx(
149
+ Animated.View,
150
+ {
151
+ testID,
152
+ "aria-hidden": true,
153
+ style: [
154
+ styles.pulse,
155
+ {
156
+ borderRadius: radius,
157
+ backgroundColor: color,
158
+ opacity: progress.interpolate({
159
+ inputRange: [0, 0.7, 1],
160
+ outputRange: [INPUT_PULSE.opacity, 0, 0]
161
+ }),
162
+ transform: [
163
+ { translateY: -INPUT_PULSE.height / 2 },
164
+ {
165
+ scale: progress.interpolate({
166
+ inputRange: [0, 0.7, 1],
167
+ outputRange: [1, 1 + INPUT_PULSE.spread / INPUT_PULSE.height, 1]
168
+ })
169
+ }
170
+ ]
171
+ }
172
+ ]
173
+ }
174
+ );
175
+ }
176
+ var styles = StyleSheet.create({
177
+ pulse: {
178
+ position: "absolute",
179
+ top: "50%",
180
+ left: 0,
181
+ right: 0,
182
+ height: INPUT_PULSE.height,
183
+ pointerEvents: "none"
184
+ }
185
+ });
186
+
187
+ // src/tokens/field-edge.core.ts
188
+ var MIN_UI_CONTRAST = 3;
189
+ var STEP = 0.05;
190
+ var MAX_STEPS = 20;
191
+ function channels(colour) {
192
+ const decomposed = decomposeColor(colour);
193
+ const rgb = decomposed.type.startsWith("hsl") ? decomposeColor(hslToRgb(colour)) : decomposed;
194
+ const [r, g, b, a] = rgb.values;
195
+ return [r ?? 0, g ?? 0, b ?? 0, a ?? 1];
196
+ }
197
+ function flatten(colour, surface) {
198
+ const [r, g, b, alpha2] = channels(colour);
199
+ if (alpha2 >= 1) return recomposeColor({ type: "rgb", values: [r, g, b] });
200
+ const [baseR, baseG, baseB] = channels(surface);
201
+ const blend = (fg, bg) => Math.round(alpha2 * fg + (1 - alpha2) * bg);
202
+ return recomposeColor({
203
+ type: "rgb",
204
+ values: [blend(r, baseR), blend(g, baseG), blend(b, baseB)]
205
+ });
206
+ }
207
+ function resolveFieldEdge(divider, surface) {
208
+ const ground = flatten(surface, "#FFFFFF");
209
+ const seed = flatten(divider, ground);
210
+ if (getContrastRatio(seed, ground) >= MIN_UI_CONTRAST) return seed;
211
+ const away = getLuminance(ground) > 0.5 ? darken : lighten;
212
+ for (let step = 1; step <= MAX_STEPS; step += 1) {
213
+ const candidate = away(seed, step * STEP);
214
+ if (getContrastRatio(candidate, ground) >= MIN_UI_CONTRAST) return candidate;
215
+ }
216
+ return getLuminance(ground) > 0.5 ? "#000000" : "#FFFFFF";
217
+ }
218
+
219
+ // src/components/form/Input/Input.look.native.ts
220
+ var BORDER_SIDES = {
221
+ outlined: "all",
222
+ glass: "all",
223
+ gradient: "all",
224
+ filled: "bottom",
225
+ underline: "bottom"
226
+ };
227
+ var BORDER_IS_FREE = {
228
+ outlined: true,
229
+ filled: true,
230
+ underline: true,
231
+ glass: false,
232
+ gradient: false
233
+ };
234
+ function borderWidthFor(variant, focused) {
235
+ if (variant === "gradient") return INPUT_GRADIENT.borderWidth;
236
+ if (variant === "glass") return INPUT_BORDER.rest;
237
+ return focused ? INPUT_BORDER.focused : INPUT_BORDER.rest;
238
+ }
239
+ function horizontalBorderInset(variant, focused) {
240
+ if (BORDER_SIDES[variant] !== "all" || !BORDER_IS_FREE[variant]) return 0;
241
+ return borderWidthFor(variant, focused);
242
+ }
243
+ function borderColorFor(theme, variant, state) {
244
+ if (state.disabled) return theme.palette.action.disabled;
245
+ if (state.error) return theme.palette.danger.main;
246
+ if (variant === "gradient") {
247
+ return state.focused ? theme.palette.primary.dark : theme.palette.primary.main;
248
+ }
249
+ if (state.focused) return theme.palette.primary.main;
250
+ if (variant === "filled") {
251
+ return theme.mode === "dark" ? UNDERLINE_COLOR.dark : UNDERLINE_COLOR.light;
252
+ }
253
+ return resolveFieldEdge(theme.palette.divider, theme.palette.background.paper);
254
+ }
255
+ function backgroundFor(theme, variant, state) {
256
+ switch (variant) {
257
+ case "filled":
258
+ return alpha(theme.palette.action.hover, state.focused ? FILLED_WASH.focused : FILLED_WASH.rest);
259
+ case "glass":
260
+ return alpha(
261
+ theme.palette.background.paper,
262
+ state.focused ? INPUT_GLASS.background.focused : INPUT_GLASS.background.rest
263
+ );
264
+ case "gradient":
265
+ return alpha(
266
+ theme.palette.primary.main,
267
+ state.focused ? INPUT_GRADIENT.fill.focused : INPUT_GRADIENT.fill.rest
268
+ );
269
+ default:
270
+ return void 0;
271
+ }
272
+ }
273
+ function radiusFor(theme, variant) {
274
+ if (variant === "underline") return {};
275
+ if (variant === "filled") {
276
+ return { borderTopLeftRadius: theme.radius.md, borderTopRightRadius: theme.radius.md };
277
+ }
278
+ return { borderRadius: theme.radius.md };
279
+ }
280
+ function borderStyle(variant, width, color, state) {
281
+ const style = state.disabled && BORDER_SIDES[variant] === "bottom" ? "dotted" : "solid";
282
+ const sides = BORDER_SIDES[variant] === "bottom" ? { borderBottomWidth: width } : { borderWidth: width };
283
+ return { ...sides, borderColor: color, borderStyle: style };
284
+ }
285
+ function fieldLook(theme, variant, size, state) {
286
+ const padding = inputPadding(variant, size);
287
+ const width = borderWidthFor(variant, state.focused);
288
+ const inset = BORDER_IS_FREE[variant] ? width : 0;
289
+ const sides = BORDER_SIDES[variant];
290
+ const horizontal = sides === "all" ? inset : 0;
291
+ return {
292
+ box: {
293
+ flexDirection: "row",
294
+ alignItems: "center",
295
+ paddingLeft: padding.left - horizontal,
296
+ paddingRight: padding.right - horizontal,
297
+ backgroundColor: backgroundFor(theme, variant, state),
298
+ ...radiusFor(theme, variant),
299
+ ...borderStyle(variant, width, borderColorFor(theme, variant, state), state)
300
+ },
301
+ value: {
302
+ flex: 1,
303
+ minWidth: 0,
304
+ fontFamily: theme.typography.fontFamily,
305
+ fontSize: INPUT_FONT_SIZE,
306
+ lineHeight: INPUT_LINE_HEIGHT,
307
+ color: state.disabled ? theme.palette.text.disabled : theme.palette.text.primary,
308
+ paddingTop: padding.top - (sides === "all" ? inset : 0),
309
+ paddingBottom: padding.bottom - inset,
310
+ paddingHorizontal: 0
311
+ },
312
+ placeholder: placeholderInk(theme)
313
+ };
314
+ }
315
+ function labelStyle(theme, variant, size, state) {
316
+ const ink = state.disabled ? theme.palette.text.disabled : state.error ? theme.palette.danger.main : state.focused ? theme.palette.primary.main : theme.palette.text.secondary;
317
+ return {
318
+ color: ink,
319
+ fontFamily: theme.typography.fontFamily,
320
+ fontSize: INPUT_FONT_SIZE * INPUT_LABEL.scale,
321
+ marginBottom: INPUT_LABEL.gap,
322
+ // Aligned with the value it names: the web's floating label and the input
323
+ // share one left inset (14px outlined, 12px filled, 0 standard).
324
+ marginLeft: inputPadding(variant, size).left
325
+ };
326
+ }
327
+ function helperStyle(theme, variant, size, state) {
328
+ return {
329
+ color: state.disabled ? theme.palette.text.disabled : state.error ? theme.palette.danger.main : theme.palette.text.secondary,
330
+ fontFamily: theme.typography.fontFamily,
331
+ fontSize: HELPER_TEXT.fontSize,
332
+ lineHeight: HELPER_TEXT.fontSize * HELPER_TEXT.lineHeight,
333
+ marginTop: INPUT_MUI_SIZE[size] === "small" ? HELPER_TEXT.marginTopSmall : HELPER_TEXT.marginTop,
334
+ marginHorizontal: variant === "underline" ? 0 : HELPER_TEXT.marginHorizontal
335
+ };
336
+ }
337
+
338
+ export {
339
+ INPUT_FONT_SIZE,
340
+ INPUT_LINE_HEIGHT,
341
+ ADORNMENT_GAP,
342
+ INPUT_LOADING,
343
+ INPUT_GLOW,
344
+ INPUT_PULSE,
345
+ FieldPulse,
346
+ horizontalBorderInset,
347
+ fieldLook,
348
+ labelStyle,
349
+ helperStyle
350
+ };
351
+ //# sourceMappingURL=chunk-7LTVGW23.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/form/Input/Input.metrics.ts","../../../src/components/form/field-pulse.native.tsx","../../../src/tokens/field-edge.core.ts","../../../src/components/form/Input/Input.look.native.ts"],"sourcesContent":["import type { InputVariant } from './Input.base';\nimport { decomposeColor, recomposeColor } from '../../../tokens/color';\nimport type { UiTheme } from '../../../tokens/theme';\nimport { SIZE_VALUES, type SizeValue } from '../../../tokens/vocabulary';\n\n/**\n * THE NUMBERS BOTH `Input` RENDERERS DRAW WITH.\n *\n * `Input.styles.ts` (web, emotion over MUI's `TextField`) and\n * `Input.native.tsx` (React Native) read this one table. The web turns the px\n * into the padding shorthands and rem it has always emitted; native uses the\n * numbers as they are.\n *\n * Two kinds of number live here, and the difference matters:\n *\n * - the ones `Input.styles.ts` writes itself — the size overrides, the glow,\n * the pulse, the glass and gradient alphas, the filled wash;\n * - the ones MUI supplies UNDER those overrides — `OutlinedInput`'s\n * `16.5px 14px`, `InputBase`'s 23px line box, `FormHelperText`'s 3px lift.\n * The web never writes them, but it draws them, so a native field that\n * wants the same box has to know them. They are MUI 6.5's own values,\n * copied with their source named; a host that re-themes MUI's components\n * moves the web only, which the parity ledger records.\n */\n\nexport interface InputInset {\n top: number;\n right: number;\n bottom: number;\n left: number;\n}\n\n/** MUI gives a text field two heights; the house scale has five. */\nexport type MuiInputSize = 'small' | 'medium';\nexport type MuiInputVariant = 'outlined' | 'filled' | 'standard';\n\n/** Our five variants map onto MUI's three; `glass` and `gradient` restyle an outline. */\nexport const muiVariantFor = (variant: InputVariant): MuiInputVariant => {\n switch (variant) {\n case 'underline':\n return 'standard';\n case 'glass':\n case 'gradient':\n return 'outlined';\n default:\n return variant;\n }\n};\n\n/** Which of MUI's two heights each step of the house scale asks for. */\nexport const INPUT_MUI_SIZE: Record<SizeValue, MuiInputSize> = {\n xs: 'small',\n sm: 'small',\n md: 'medium',\n lg: 'medium',\n xl: 'medium',\n};\n\n/**\n * The three steps MUI has no height for, as `padding` on the input itself.\n *\n * `sm` and `md` are absent on purpose — they ARE MUI's two heights, so they\n * fall through to {@link MUI_INPUT_PADDING} below rather than restating it.\n * (`lg`'s 16px is a hair under `md`'s 16.5px: the override is a round number\n * where MUI's is derived from a 56px box. Kept as written — this table is what\n * the web draws, not what it ought to draw.)\n */\nexport const INPUT_SIZE_OVERRIDES: Partial<Record<SizeValue, { vertical: number; horizontal: number }>> = {\n xs: { vertical: 6, horizontal: 10 },\n lg: { vertical: 16, horizontal: 14 },\n xl: { vertical: 20, horizontal: 16 },\n};\n\n/**\n * MUI's own input padding per variant and height (`OutlinedInput`,\n * `FilledInput`, `InputBase`). The filled insets are lopsided because the\n * floating label sits inside the box on the web.\n */\nexport const MUI_INPUT_PADDING: Record<MuiInputVariant, Record<MuiInputSize, InputInset>> = {\n outlined: {\n small: { top: 8.5, right: 14, bottom: 8.5, left: 14 },\n medium: { top: 16.5, right: 14, bottom: 16.5, left: 14 },\n },\n filled: {\n small: { top: 21, right: 12, bottom: 4, left: 12 },\n medium: { top: 25, right: 12, bottom: 8, left: 12 },\n },\n standard: {\n small: { top: 1, right: 0, bottom: 5, left: 0 },\n medium: { top: 4, right: 0, bottom: 5, left: 0 },\n },\n};\n\n/** The inset the value is drawn at: the size override where there is one, MUI's otherwise. */\nexport function inputPadding(variant: InputVariant, size: SizeValue): InputInset {\n const override = INPUT_SIZE_OVERRIDES[size];\n if (override) {\n return {\n top: override.vertical,\n right: override.horizontal,\n bottom: override.vertical,\n left: override.horizontal,\n };\n }\n return MUI_INPUT_PADDING[muiVariantFor(variant)][INPUT_MUI_SIZE[size]];\n}\n\n/** `theme.typography.body1` and `InputBase`'s `lineHeight: '1.4375em'`, in px. */\nexport const INPUT_FONT_SIZE = 16;\nexport const INPUT_LINE_HEIGHT = 23;\n\n/** MUI's `::placeholder` opacity, which multiplies the ink's own alpha. */\nexport const PLACEHOLDER_OPACITY = { light: 0.42, dark: 0.5 } as const;\n\n/**\n * The placeholder's colour: the field's ink faded by MUI's opacity.\n *\n * `alpha()` REPLACES an alpha channel, and `text.primary` already carries one\n * (`rgba(0, 0, 0, 0.87)`), so `alpha(ink, 0.42)` would be a different grey from\n * the one the browser composites. React Native has no per-placeholder opacity —\n * only `placeholderTextColor` — so the multiplication happens here.\n */\nexport function placeholderInk(theme: UiTheme): string {\n const opacity = theme.mode === 'dark' ? PLACEHOLDER_OPACITY.dark : PLACEHOLDER_OPACITY.light;\n const { type, values } = decomposeColor(theme.palette.text.primary);\n const [first = 0, second = 0, third = 0, own = 1] = values;\n return recomposeColor({\n type: type.startsWith('hsl') ? 'hsla' : 'rgba',\n values: [first, second, third, own * opacity],\n });\n}\n\n/** The outline: 1px at rest, 2px focused, as MUI's `notchedOutline` draws it. */\nexport const INPUT_BORDER = { rest: 1, focused: 2 } as const;\n\n/** `FilledInput`'s and `Input`'s resting underline, MUI's own two greys. */\nexport const UNDERLINE_COLOR = {\n light: 'rgba(0, 0, 0, 0.42)',\n dark: 'rgba(255, 255, 255, 0.7)',\n} as const;\n\n/**\n * The label. It floats into the border on the web and sits above the field on\n * native, but it is the SAME label: 16px body type at MUI's shrunk scale, and\n * left-aligned with the value it names ({@link inputPadding}'s `left`).\n *\n * The 4px gap is MUI's own: a standard field puts 16px between the control's\n * top and the input, and the shrunk label's 12px line box takes the first 12.\n */\nexport const INPUT_LABEL = { scale: 0.75, gap: 4 } as const;\n\n/** `FormHelperText`: `theme.typography.caption` lifted 3px, inset 14px when contained. */\nexport const HELPER_TEXT = {\n fontSize: 12,\n lineHeight: 1.66,\n marginTop: 3,\n marginTopSmall: 4,\n marginHorizontal: 14,\n} as const;\n\n/** `InputAdornment`: 8px between the glyph and the value, on whichever side it is. */\nexport const ADORNMENT_GAP = 8;\n\n/** `loading`: the field fades and MUI's 20px `CircularProgress` takes the end slot. */\nexport const INPUT_LOADING = { opacity: 0.7, spinnerSize: 20 } as const;\n\n/** `glow`: a halo of the primary hue, wider and stronger while focused. */\nexport const INPUT_GLOW = {\n rest: { blur: 15, alpha: 0.3 },\n focused: { blur: 20, alpha: 0.5 },\n} as const;\n\n/** `pulse`: a 56px bar behind the field, fading outward every two seconds. */\nexport const INPUT_PULSE = {\n height: 56,\n radiusUnits: 0.5,\n opacity: 0.3,\n ms: 2000,\n spread: 10,\n} as const;\n\n/** `floating`: where the label rests and where it shrinks to, on the web. */\nexport const FLOATING_LABEL = {\n rest: { x: 14, y: 16 },\n shrink: { x: 14, y: -9 },\n scale: 0.75,\n paddingX: 4,\n} as const;\n\n/** `glass`: a wash of paper under a blur, brighter as the field is engaged. */\nexport const INPUT_GLASS = {\n background: { rest: 0.1, hover: 0.15, focused: 0.2 },\n blur: 20,\n hoverBorderAlpha: 0.3,\n focusRing: { width: 2, alpha: 0.1 },\n} as const;\n\n/** `gradient`: a 135° fill between the two brand hues, inside a 2px masked ring. */\nexport const INPUT_GRADIENT = {\n angleDeg: 135,\n fill: { rest: 0.1, hover: 0.15, focused: 0.2 },\n borderWidth: 2,\n} as const;\n\n/** `filled`: MUI's own grey replaced by a wash of `action.hover`. */\nexport const FILLED_WASH = { rest: 0.04, hover: 0.08, focused: 0.12 } as const;\n\n/**\n * The `sx` the web spreads onto the `TextField` for a size: MUI's height, plus\n * the input padding for the three steps MUI has no height for.\n */\nexport interface InputSizeProps {\n size: MuiInputSize;\n sx?: { '& .MuiInputBase-input': { padding: string } };\n}\n\nconst sizeProps = (size: SizeValue): InputSizeProps => {\n const override = INPUT_SIZE_OVERRIDES[size];\n return {\n size: INPUT_MUI_SIZE[size],\n ...(override\n ? { sx: { '& .MuiInputBase-input': { padding: `${override.vertical}px ${override.horizontal}px` } } }\n : {}),\n };\n};\n\nexport const SIZE_MAP: Record<SizeValue, InputSizeProps> = Object.fromEntries(\n SIZE_VALUES.map((size) => [size, sizeProps(size)]),\n) as Record<SizeValue, InputSizeProps>;\n","import * as React from 'react';\nimport { Animated, Easing, Platform, StyleSheet } from 'react-native';\n\nimport { INPUT_PULSE } from './Input/Input.metrics';\n\n/**\n * THE BAR THAT PULSES BEHIND A FIELD.\n *\n * `Input.styles.ts` and `Select.tsx` declare the same `::after` — a 56px wash\n * of the primary hue at 0.3, growing a 10px box-shadow ring and fading out\n * every two seconds — so the native halves draw it from one component rather\n * than one each. The numbers stay in `Input.metrics.ts`, which `Select.metrics`\n * re-exports under its own name.\n *\n * React Native has no box-shadow spread, so the ring is a scale on the bar.\n */\nexport function FieldPulse({\n color,\n radius,\n testID,\n}: {\n color: string;\n radius: number;\n testID: string;\n}): React.JSX.Element {\n const progress = React.useRef(new Animated.Value(0)).current;\n\n React.useEffect(() => {\n const loop = Animated.loop(\n Animated.timing(progress, {\n toValue: 1,\n duration: INPUT_PULSE.ms,\n easing: Easing.out(Easing.ease),\n useNativeDriver: Platform.OS !== 'web',\n }),\n );\n loop.start();\n return () => loop.stop();\n }, [progress]);\n\n return (\n <Animated.View\n testID={testID}\n aria-hidden\n style={[\n styles.pulse,\n {\n borderRadius: radius,\n backgroundColor: color,\n opacity: progress.interpolate({\n inputRange: [0, 0.7, 1],\n outputRange: [INPUT_PULSE.opacity, 0, 0],\n }),\n transform: [\n { translateY: -INPUT_PULSE.height / 2 },\n {\n scale: progress.interpolate({\n inputRange: [0, 0.7, 1],\n outputRange: [1, 1 + INPUT_PULSE.spread / INPUT_PULSE.height, 1],\n }),\n },\n ],\n },\n ]}\n />\n );\n}\n\nconst styles = StyleSheet.create({\n pulse: {\n position: 'absolute',\n top: '50%',\n left: 0,\n right: 0,\n height: INPUT_PULSE.height,\n pointerEvents: 'none',\n },\n});\n","import {\n darken,\n decomposeColor,\n getContrastRatio,\n getLuminance,\n hslToRgb,\n lighten,\n recomposeColor,\n} from './color';\n\n/**\n * THE FIELD EDGE, WITH NO RENDERER BEHIND IT.\n *\n * The argument for why an outlined control cannot draw its resting boundary\n * from `alpha(theme.palette.divider, 0.23)` is in `./field-edge.ts`, next to\n * the MUI-typed `fieldEdge` the web components call. This file is the WALK\n * itself, over two colour strings, so the native renderer can run it too:\n * `Input.native.tsx` and `Select.native.tsx` have no MUI `Theme` to pass and no\n * `@mui/material/styles` to import, and a second copy of the walk beside them\n * is a second answer to \"where is this field's border\" waiting to drift.\n *\n * `./color` is a faithful port of MUI's colour manipulator (asserted equal to\n * it in `./__tests__/color.test.ts`), so the string this returns is the string\n * the web has always emitted.\n */\n\n/**\n * WCAG 2.1 SC 1.4.11 — the contrast a control's own boundary owes the surface\n * behind it. See `./field-edge.ts` for why 3:1 and why it is a floor.\n */\nexport const MIN_UI_CONTRAST = 3;\n\n/** How far one step of the walk moves, and how many steps before it gives up. */\nconst STEP = 0.05;\nconst MAX_STEPS = 20;\n\n/** A colour's red, green, blue and alpha, with `hsl()` converted on the way. */\nfunction channels(colour: string): [number, number, number, number] {\n const decomposed = decomposeColor(colour);\n const rgb = decomposed.type.startsWith('hsl') ? decomposeColor(hslToRgb(colour)) : decomposed;\n const [r, g, b, a] = rgb.values;\n return [r ?? 0, g ?? 0, b ?? 0, a ?? 1];\n}\n\n/**\n * A colour as an opaque `rgb()`, with any translucency resolved against\n * `surface`.\n *\n * Needed because `getContrastRatio` reads the channels it is given and ignores\n * the alpha, so handing it an `rgba()` measures a colour nobody sees.\n */\nfunction flatten(colour: string, surface: string): string {\n const [r, g, b, alpha] = channels(colour);\n if (alpha >= 1) return recomposeColor({ type: 'rgb', values: [r, g, b] });\n\n const [baseR, baseG, baseB] = channels(surface);\n const blend = (fg: number, bg: number): number => Math.round(alpha * fg + (1 - alpha) * bg);\n return recomposeColor({\n type: 'rgb',\n values: [blend(r, baseR), blend(g, baseG), blend(b, baseB)],\n });\n}\n\n/**\n * The resting boundary a control draws on `surface`, from the theme's own\n * `divider` as the seed: the seed itself when it already clears\n * {@link MIN_UI_CONTRAST}, otherwise the nearest tone of it that does.\n */\nexport function resolveFieldEdge(divider: string, surface: string): string {\n const ground = flatten(surface, '#FFFFFF');\n const seed = flatten(divider, ground);\n if (getContrastRatio(seed, ground) >= MIN_UI_CONTRAST) return seed;\n\n // Away from the surface, whichever way that is — so one rule serves both\n // modes, and a dark card in a light theme is still handled by the pair rather\n // than by `palette.mode`.\n const away = getLuminance(ground) > 0.5 ? darken : lighten;\n for (let step = 1; step <= MAX_STEPS; step += 1) {\n // From the SEED each time rather than compounding the previous result, so\n // the walk lands on the nearest passing tone instead of overshooting past it.\n const candidate = away(seed, step * STEP);\n if (getContrastRatio(candidate, ground) >= MIN_UI_CONTRAST) return candidate;\n }\n // Unreachable for any real surface — black clears 21:1 on white and white\n // clears it on black — but a caller must never be handed `undefined`.\n return getLuminance(ground) > 0.5 ? '#000000' : '#FFFFFF';\n}\n","import type { TextStyle, ViewStyle } from 'react-native';\n\nimport type { InputVariant } from './Input.base';\nimport {\n FILLED_WASH,\n HELPER_TEXT,\n INPUT_MUI_SIZE,\n INPUT_BORDER,\n INPUT_FONT_SIZE,\n INPUT_GLASS,\n INPUT_GRADIENT,\n INPUT_LABEL,\n INPUT_LINE_HEIGHT,\n UNDERLINE_COLOR,\n inputPadding,\n placeholderInk,\n} from './Input.metrics';\nimport { alpha } from '../../../tokens/color';\nimport { resolveFieldEdge } from '../../../tokens/field-edge.core';\nimport type { UiTheme } from '../../../tokens/theme';\nimport type { SizeValue } from '../../../tokens/vocabulary';\n\n/**\n * WHAT A NATIVE `Input` PAINTS, AS ARITHMETIC.\n *\n * Kept out of `Input.native.tsx` so that file reads as structure — label, box,\n * value, helper — and this one reads as the decisions: which border, how thick,\n * what colour, and where the value sits inside it.\n */\nexport interface FieldState {\n focused: boolean;\n error: boolean;\n disabled: boolean;\n}\n\n/** Which edges a variant draws. `filled` and `underline` rule only the bottom. */\nconst BORDER_SIDES: Record<InputVariant, 'all' | 'bottom'> = {\n outlined: 'all',\n glass: 'all',\n gradient: 'all',\n filled: 'bottom',\n underline: 'bottom',\n};\n\n/**\n * Whether the web draws this border on an absolutely positioned element.\n *\n * MUI's `notchedOutline` fieldset and the `::before` / `::after` underlines\n * cost no height — the field is 56px tall WITH its border. `glass` and\n * `gradient` instead put a real `border` on the input root, which does add to\n * the box, so the web field is 2px and 4px taller respectively. React Native\n * has only the second kind, so the first three compensate below.\n */\nconst BORDER_IS_FREE: Record<InputVariant, boolean> = {\n outlined: true,\n filled: true,\n underline: true,\n glass: false,\n gradient: false,\n};\n\n/**\n * How thick. Only the outline family thickens on focus (MUI's `borderWidth: 2`\n * on `.Mui-focused .notchedOutline`); `glass` and `gradient` declare their own\n * constant border and change only its colour.\n */\nexport function borderWidthFor(variant: InputVariant, focused: boolean): number {\n if (variant === 'gradient') return INPUT_GRADIENT.borderWidth;\n if (variant === 'glass') return INPUT_BORDER.rest;\n return focused ? INPUT_BORDER.focused : INPUT_BORDER.rest;\n}\n\n/**\n * The width the border takes out of the horizontal inset — 0 where the web's\n * border adds to the box rather than floating over it. Exported because the\n * `Select` draws the same box and has to place its arrow inside the same edge.\n */\nexport function horizontalBorderInset(variant: InputVariant, focused: boolean): number {\n if (BORDER_SIDES[variant] !== 'all' || !BORDER_IS_FREE[variant]) return 0;\n return borderWidthFor(variant, focused);\n}\n\n/**\n * What colour. Error and disabled outrank focus, as they do in MUI's source\n * order; a resting `filled` keeps MUI's own underline grey because the web\n * override only replaces its background.\n */\nfunction borderColorFor(theme: UiTheme, variant: InputVariant, state: FieldState): string {\n if (state.disabled) return theme.palette.action.disabled;\n if (state.error) return theme.palette.danger.main;\n if (variant === 'gradient') {\n return state.focused ? theme.palette.primary.dark : theme.palette.primary.main;\n }\n if (state.focused) return theme.palette.primary.main;\n if (variant === 'filled') {\n return theme.mode === 'dark' ? UNDERLINE_COLOR.dark : UNDERLINE_COLOR.light;\n }\n return resolveFieldEdge(theme.palette.divider, theme.palette.background.paper);\n}\n\n/** The fill behind the value. `outlined` and `underline` have none. */\nfunction backgroundFor(theme: UiTheme, variant: InputVariant, state: FieldState): string | undefined {\n switch (variant) {\n case 'filled':\n return alpha(theme.palette.action.hover, state.focused ? FILLED_WASH.focused : FILLED_WASH.rest);\n case 'glass':\n return alpha(\n theme.palette.background.paper,\n state.focused ? INPUT_GLASS.background.focused : INPUT_GLASS.background.rest,\n );\n case 'gradient':\n // The first stop of the web's 135° fill; React Native core has no gradient.\n return alpha(\n theme.palette.primary.main,\n state.focused ? INPUT_GRADIENT.fill.focused : INPUT_GRADIENT.fill.rest,\n );\n default:\n return undefined;\n }\n}\n\n/** `filled` rounds its top two corners, `underline` none, the rest all four. */\nfunction radiusFor(theme: UiTheme, variant: InputVariant): ViewStyle {\n if (variant === 'underline') return {};\n if (variant === 'filled') {\n return { borderTopLeftRadius: theme.radius.md, borderTopRightRadius: theme.radius.md };\n }\n return { borderRadius: theme.radius.md };\n}\n\n/** The border as React Native writes it: a width per side, one colour, one style. */\nfunction borderStyle(variant: InputVariant, width: number, color: string, state: FieldState): ViewStyle {\n // MUI draws a disabled `filled` or `standard` underline dotted.\n const style: ViewStyle['borderStyle'] =\n state.disabled && BORDER_SIDES[variant] === 'bottom' ? 'dotted' : 'solid';\n const sides: ViewStyle =\n BORDER_SIDES[variant] === 'bottom' ? { borderBottomWidth: width } : { borderWidth: width };\n return { ...sides, borderColor: color, borderStyle: style };\n}\n\nexport interface FieldLook {\n /** The row the border is drawn on: fill, edges, corners and horizontal inset. */\n box: ViewStyle;\n /** The `TextInput` itself: type, ink and the vertical inset. */\n value: TextStyle;\n placeholder: string;\n}\n\n/**\n * The field, in absolute numbers.\n *\n * The horizontal inset sits on the ROW rather than on the `TextInput`, which is\n * what MUI does the moment an adornment appears (`paddingLeft: 14` moves to the\n * input root and the input's own goes to 0) — so one rule serves a field with\n * adornments and one without.\n *\n * Where the web's border costs no height, the inset gives the border back its\n * width, so the box is the height MUI draws (56px medium, 40px small) and the\n * value does not shift by a pixel when the focused border thickens.\n */\nexport function fieldLook(\n theme: UiTheme,\n variant: InputVariant,\n size: SizeValue,\n state: FieldState,\n): FieldLook {\n const padding = inputPadding(variant, size);\n const width = borderWidthFor(variant, state.focused);\n const inset = BORDER_IS_FREE[variant] ? width : 0;\n const sides = BORDER_SIDES[variant];\n const horizontal = sides === 'all' ? inset : 0;\n\n return {\n box: {\n flexDirection: 'row',\n alignItems: 'center',\n paddingLeft: padding.left - horizontal,\n paddingRight: padding.right - horizontal,\n backgroundColor: backgroundFor(theme, variant, state),\n ...radiusFor(theme, variant),\n ...borderStyle(variant, width, borderColorFor(theme, variant, state), state),\n },\n value: {\n flex: 1,\n minWidth: 0,\n fontFamily: theme.typography.fontFamily,\n fontSize: INPUT_FONT_SIZE,\n lineHeight: INPUT_LINE_HEIGHT,\n color: state.disabled ? theme.palette.text.disabled : theme.palette.text.primary,\n paddingTop: padding.top - (sides === 'all' ? inset : 0),\n paddingBottom: padding.bottom - inset,\n paddingHorizontal: 0,\n },\n placeholder: placeholderInk(theme),\n };\n}\n\n/**\n * The label's ink. MUI's `FormLabel` is `text.secondary`, the focus colour is\n * the palette's `main`, and error and disabled are declared after it and win.\n */\nexport function labelStyle(theme: UiTheme, variant: InputVariant, size: SizeValue, state: FieldState): TextStyle {\n const ink = state.disabled\n ? theme.palette.text.disabled\n : state.error\n ? theme.palette.danger.main\n : state.focused\n ? theme.palette.primary.main\n : theme.palette.text.secondary;\n\n return {\n color: ink,\n fontFamily: theme.typography.fontFamily,\n fontSize: INPUT_FONT_SIZE * INPUT_LABEL.scale,\n marginBottom: INPUT_LABEL.gap,\n // Aligned with the value it names: the web's floating label and the input\n // share one left inset (14px outlined, 12px filled, 0 standard).\n marginLeft: inputPadding(variant, size).left,\n };\n}\n\n/**\n * `FormHelperText`: caption type, 3px below the field, inset 14px when\n * contained — and 4px below at MUI's `small` density, which `INPUT_MUI_SIZE`\n * selects for `xs` and `sm` (`FormHelperText.js`: `marginTop: 3`, then a\n * `size: 'small'` variant raising it to 4).\n */\nexport function helperStyle(\n theme: UiTheme,\n variant: InputVariant,\n size: SizeValue,\n state: FieldState,\n): TextStyle {\n return {\n color: state.disabled\n ? theme.palette.text.disabled\n : state.error\n ? theme.palette.danger.main\n : theme.palette.text.secondary,\n fontFamily: theme.typography.fontFamily,\n fontSize: HELPER_TEXT.fontSize,\n lineHeight: HELPER_TEXT.fontSize * HELPER_TEXT.lineHeight,\n marginTop: INPUT_MUI_SIZE[size] === 'small' ? HELPER_TEXT.marginTopSmall : HELPER_TEXT.marginTop,\n marginHorizontal: variant === 'underline' ? 0 : HELPER_TEXT.marginHorizontal,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;AAqCO,IAAM,gBAAgB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AAAA;AAAA;AAAA,IAG1B,YAAY,aAAa,SAAS,IAAI,EAAE;AAAA,EAC1C;AACF;AAQO,SAAS,YACd,OACA,SACA,MACA,OACW;AACX,SAAO;AAAA,IACL,OAAO,MAAM,WACT,MAAM,QAAQ,KAAK,WACnB,MAAM,QACJ,MAAM,QAAQ,OAAO,OACrB,MAAM,QAAQ,KAAK;AAAA,IACzB,YAAY,MAAM,WAAW;AAAA,IAC7B,UAAU,YAAY;AAAA,IACtB,YAAY,YAAY,WAAW,YAAY;AAAA,IAC/C,WAAW,eAAe,IAAI,MAAM,UAAU,YAAY,iBAAiB,YAAY;AAAA,IACvF,kBAAkB,YAAY,cAAc,IAAI,YAAY;AAAA,EAC9D;AACF;","names":["alpha"]}
@@ -9,10 +9,14 @@ function withoutTestIdProps(props) {
9
9
  const { testID: _testID, dataTestId: _dataTestId, "data-testid": _dataTestid, ...rest } = props;
10
10
  return rest;
11
11
  }
12
+ function slotTestId(props, suffix, fallback) {
13
+ return props.testID ?? props["data-testid"] ?? childTestId(props, suffix, fallback);
14
+ }
12
15
 
13
16
  export {
14
17
  resolveTestId,
15
18
  childTestId,
16
- withoutTestIdProps
19
+ withoutTestIdProps,
20
+ slotTestId
17
21
  };
18
- //# sourceMappingURL=chunk-M4DTJDWU.js.map
22
+ //# sourceMappingURL=chunk-AR5O4BEY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/platform/test-id.ts"],"sourcesContent":["/**\n * One test id, three spellings.\n *\n * The web components take `dataTestId` and forward it as `data-testid`; the\n * existing test stories pass `'data-testid'` straight through as an unknown\n * prop; React Native calls the same thing `testID`, and react-native-web turns\n * THAT back into `data-testid`. A native component that honoured only one of\n * the three would pass its own unit tests and fail the shared stories.\n */\nexport interface TestIdProps {\n testID?: string;\n dataTestId?: string;\n 'data-testid'?: string;\n}\n\n/** The id the caller asked for under any of the three names, else `fallback`. */\nexport function resolveTestId(props: TestIdProps, fallback?: string): string | undefined {\n return props.testID ?? props.dataTestId ?? props['data-testid'] ?? fallback;\n}\n\n/**\n * The id under whichever of the three spellings the caller used, together with\n * the props stripped of all three — so a web component can put `data-testid`\n * where the DOM wants it without React seeing `testID` or `dataTestId` and\n * warning that it does not recognise them.\n */\nexport function splitTestId<T extends TestIdProps>(\n props: T,\n fallback?: string,\n): { testId: string | undefined; rest: Omit<T, keyof TestIdProps> } {\n return { testId: resolveTestId(props, fallback), rest: withoutTestIdProps(props) };\n}\n\n/** `${id}-${suffix}` for a sub-element, or `${fallback}-${suffix}` when unnamed. */\nexport function childTestId(\n props: TestIdProps,\n suffix: string,\n fallback: string,\n): string {\n return `${resolveTestId(props, fallback) ?? fallback}-${suffix}`;\n}\n\n/** `props` without any of the three spellings, for spreading onto a native element. */\nexport function withoutTestIdProps<P extends TestIdProps>(props: P): Omit<P, keyof TestIdProps> {\n const { testID: _testID, dataTestId: _dataTestId, 'data-testid': _dataTestid, ...rest } = props;\n return rest;\n}\n\n/**\n * A SLOT's own test id, where a raw id means \"this element\" and `dataTestId`\n * means \"the surface I belong to\".\n *\n * `Dialog` names its parts by derivation — `d` gives `d-title`, `d-content`,\n * `d-actions` — and a slot receives the DIALOG's id in `dataTestId` to derive\n * from. A raw `data-testid` (or React Native's `testID`) is something else: it\n * is the id the caller wants ON THIS ELEMENT, which is how the shared stories\n * address a `DialogContent`, so it is taken verbatim and no suffix is added.\n *\n * Both renderers read this one function, which is the only way the web and the\n * native slot can agree about what `<DialogContent data-testid=\"x\">` is called.\n */\nexport function slotTestId(props: TestIdProps, suffix: string, fallback: string): string {\n return props.testID ?? props['data-testid'] ?? childTestId(props, suffix, fallback);\n}\n"],"mappings":";AAgBO,SAAS,cAAc,OAAoB,UAAuC;AACvF,SAAO,MAAM,UAAU,MAAM,cAAc,MAAM,aAAa,KAAK;AACrE;AAgBO,SAAS,YACd,OACA,QACA,UACQ;AACR,SAAO,GAAG,cAAc,OAAO,QAAQ,KAAK,QAAQ,IAAI,MAAM;AAChE;AAGO,SAAS,mBAA0C,OAAsC;AAC9F,QAAM,EAAE,QAAQ,SAAS,YAAY,aAAa,eAAe,aAAa,GAAG,KAAK,IAAI;AAC1F,SAAO;AACT;AAeO,SAAS,WAAW,OAAoB,QAAgB,UAA0B;AACvF,SAAO,MAAM,UAAU,MAAM,aAAa,KAAK,YAAY,OAAO,QAAQ,QAAQ;AACpF;","names":[]}
@@ -5,15 +5,15 @@ import {
5
5
  childTestId,
6
6
  resolveTestId,
7
7
  withoutTestIdProps
8
- } from "./chunk-M4DTJDWU.js";
8
+ } from "./chunk-AR5O4BEY.js";
9
9
  import {
10
10
  useUiTheme
11
- } from "./chunk-YTHR4Y5P.js";
11
+ } from "./chunk-GWGIWQO7.js";
12
12
  import {
13
13
  alpha,
14
14
  darken,
15
15
  lighten
16
- } from "./chunk-P3PL4WBO.js";
16
+ } from "./chunk-LEMMXZFN.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-UKCCYP52.js.map
318
+ //# sourceMappingURL=chunk-ATS7STZJ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_UI_THEME
3
- } from "./chunk-P3PL4WBO.js";
3
+ } from "./chunk-LEMMXZFN.js";
4
4
 
5
5
  // src/provider/use-ui-theme.native.ts
6
6
  import * as React2 from "react";
@@ -18,4 +18,4 @@ export {
18
18
  UiThemeContext,
19
19
  useUiTheme
20
20
  };
21
- //# sourceMappingURL=chunk-YTHR4Y5P.js.map
21
+ //# sourceMappingURL=chunk-GWGIWQO7.js.map