@knitui/components 0.14.0 → 1.1.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 (1012) hide show
  1. package/README.md +2 -2
  2. package/lib/commonjs/Accordion/Accordion.js +78 -96
  3. package/lib/commonjs/Accordion/Accordion.js.map +1 -1
  4. package/lib/commonjs/ActionIcon/ActionIcon.js +128 -62
  5. package/lib/commonjs/ActionIcon/ActionIcon.js.map +1 -1
  6. package/lib/commonjs/Affix/Affix.js +17 -21
  7. package/lib/commonjs/Affix/Affix.js.map +1 -1
  8. package/lib/commonjs/Alert/Alert.js +54 -54
  9. package/lib/commonjs/Alert/Alert.js.map +1 -1
  10. package/lib/commonjs/Anchor/Anchor.js +12 -15
  11. package/lib/commonjs/Anchor/Anchor.js.map +1 -1
  12. package/lib/commonjs/AngleSlider/AngleSlider.js +65 -37
  13. package/lib/commonjs/AngleSlider/AngleSlider.js.map +1 -1
  14. package/lib/commonjs/AspectRatio/AspectRatio.js +12 -15
  15. package/lib/commonjs/AspectRatio/AspectRatio.js.map +1 -1
  16. package/lib/commonjs/Autocomplete/Autocomplete.js +7 -3
  17. package/lib/commonjs/Autocomplete/Autocomplete.js.map +1 -1
  18. package/lib/commonjs/Avatar/Avatar.js +28 -25
  19. package/lib/commonjs/Avatar/Avatar.js.map +1 -1
  20. package/lib/commonjs/BackgroundImage/BackgroundImage.js +15 -6
  21. package/lib/commonjs/BackgroundImage/BackgroundImage.js.map +1 -1
  22. package/lib/commonjs/Badge/Badge.js +60 -49
  23. package/lib/commonjs/Badge/Badge.js.map +1 -1
  24. package/lib/commonjs/Blockquote/Blockquote.js +80 -79
  25. package/lib/commonjs/Blockquote/Blockquote.js.map +1 -1
  26. package/lib/commonjs/Box/Box.js +2 -2
  27. package/lib/commonjs/Box/Box.js.map +1 -1
  28. package/lib/commonjs/Breadcrumbs/Breadcrumbs.js +9 -9
  29. package/lib/commonjs/Breadcrumbs/Breadcrumbs.js.map +1 -1
  30. package/lib/commonjs/Burger/Burger.js +31 -20
  31. package/lib/commonjs/Burger/Burger.js.map +1 -1
  32. package/lib/commonjs/Button/Button.js +105 -63
  33. package/lib/commonjs/Button/Button.js.map +1 -1
  34. package/lib/commonjs/Card/Card.js +49 -37
  35. package/lib/commonjs/Card/Card.js.map +1 -1
  36. package/lib/commonjs/Center/Center.js +2 -2
  37. package/lib/commonjs/Center/Center.js.map +1 -1
  38. package/lib/commonjs/Checkbox/CheckIcon.js +5 -4
  39. package/lib/commonjs/Checkbox/CheckIcon.js.map +1 -1
  40. package/lib/commonjs/Checkbox/Checkbox.js +98 -68
  41. package/lib/commonjs/Checkbox/Checkbox.js.map +1 -1
  42. package/lib/commonjs/Chip/Chip.js +34 -67
  43. package/lib/commonjs/Chip/Chip.js.map +1 -1
  44. package/lib/commonjs/CloseButton/CloseButton.js +12 -5
  45. package/lib/commonjs/CloseButton/CloseButton.js.map +1 -1
  46. package/lib/commonjs/Code/Code.js +14 -10
  47. package/lib/commonjs/Code/Code.js.map +1 -1
  48. package/lib/commonjs/Collapse/Collapse.js +10 -4
  49. package/lib/commonjs/Collapse/Collapse.js.map +1 -1
  50. package/lib/commonjs/ColorInput/ColorInput.js +25 -20
  51. package/lib/commonjs/ColorInput/ColorInput.js.map +1 -1
  52. package/lib/commonjs/ColorPicker/ColorPicker.js +95 -83
  53. package/lib/commonjs/ColorPicker/ColorPicker.js.map +1 -1
  54. package/lib/commonjs/ColorSwatch/ColorSwatch.js +12 -14
  55. package/lib/commonjs/ColorSwatch/ColorSwatch.js.map +1 -1
  56. package/lib/commonjs/Combobox/Combobox.js +194 -187
  57. package/lib/commonjs/Combobox/Combobox.js.map +1 -1
  58. package/lib/commonjs/Combobox/OptionsDropdown.js +12 -6
  59. package/lib/commonjs/Combobox/OptionsDropdown.js.map +1 -1
  60. package/lib/commonjs/Combobox/index.js +6 -0
  61. package/lib/commonjs/Combobox/index.js.map +1 -1
  62. package/lib/commonjs/Container/Container.js +12 -19
  63. package/lib/commonjs/Container/Container.js.map +1 -1
  64. package/lib/commonjs/Dialog/Dialog.js +15 -14
  65. package/lib/commonjs/Dialog/Dialog.js.map +1 -1
  66. package/lib/commonjs/Drawer/Drawer.js +51 -32
  67. package/lib/commonjs/Drawer/Drawer.js.map +1 -1
  68. package/lib/commonjs/Fieldset/Fieldset.js +26 -18
  69. package/lib/commonjs/Fieldset/Fieldset.js.map +1 -1
  70. package/lib/commonjs/FileButton/FileButton.js +5 -3
  71. package/lib/commonjs/FileButton/FileButton.js.map +1 -1
  72. package/lib/commonjs/Flex/Flex.js +24 -27
  73. package/lib/commonjs/Flex/Flex.js.map +1 -1
  74. package/lib/commonjs/FocusTrap/FocusTrap.js +4 -3
  75. package/lib/commonjs/FocusTrap/FocusTrap.js.map +1 -1
  76. package/lib/commonjs/Grid/Grid.js +21 -18
  77. package/lib/commonjs/Grid/Grid.js.map +1 -1
  78. package/lib/commonjs/Group/Group.js +3 -3
  79. package/lib/commonjs/Group/Group.js.map +1 -1
  80. package/lib/commonjs/Highlight/Highlight.js +2 -1
  81. package/lib/commonjs/Highlight/Highlight.js.map +1 -1
  82. package/lib/commonjs/HoverCard/HoverCard.js +6 -23
  83. package/lib/commonjs/HoverCard/HoverCard.js.map +1 -1
  84. package/lib/commonjs/Image/Image.native.js +1 -1
  85. package/lib/commonjs/Image/createImage.js +88 -56
  86. package/lib/commonjs/Image/createImage.js.map +1 -1
  87. package/lib/commonjs/Indicator/Indicator.js +36 -29
  88. package/lib/commonjs/Indicator/Indicator.js.map +1 -1
  89. package/lib/commonjs/Input/Input.js +87 -119
  90. package/lib/commonjs/Input/Input.js.map +1 -1
  91. package/lib/commonjs/Input/Input.native.js +54 -35
  92. package/lib/commonjs/Input/Input.native.js.map +1 -1
  93. package/lib/commonjs/Input/shared.js +148 -225
  94. package/lib/commonjs/Input/shared.js.map +1 -1
  95. package/lib/commonjs/InputBase/InputBase.js +2 -1
  96. package/lib/commonjs/InputBase/InputBase.js.map +1 -1
  97. package/lib/commonjs/Kbd/Kbd.js +12 -18
  98. package/lib/commonjs/Kbd/Kbd.js.map +1 -1
  99. package/lib/commonjs/KeyboardAvoidingView/KeyboardAvoidingView.native.js +2 -2
  100. package/lib/commonjs/KeyboardAvoidingView/KeyboardAvoidingView.native.js.map +1 -1
  101. package/lib/commonjs/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js +1 -1
  102. package/lib/commonjs/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js.map +1 -1
  103. package/lib/commonjs/List/List.js +10 -10
  104. package/lib/commonjs/List/List.js.map +1 -1
  105. package/lib/commonjs/Loader/Loader.js +31 -37
  106. package/lib/commonjs/Loader/Loader.js.map +1 -1
  107. package/lib/commonjs/LoadingOverlay/LoadingOverlay.js +2 -1
  108. package/lib/commonjs/LoadingOverlay/LoadingOverlay.js.map +1 -1
  109. package/lib/commonjs/Mark/Mark.js +12 -15
  110. package/lib/commonjs/Mark/Mark.js.map +1 -1
  111. package/lib/commonjs/Marquee/Marquee.js +66 -48
  112. package/lib/commonjs/Marquee/Marquee.js.map +1 -1
  113. package/lib/commonjs/MaskInput/MaskInput.js +2 -1
  114. package/lib/commonjs/MaskInput/MaskInput.js.map +1 -1
  115. package/lib/commonjs/Menu/Menu.js +84 -48
  116. package/lib/commonjs/Menu/Menu.js.map +1 -1
  117. package/lib/commonjs/Modal/Modal.js +34 -30
  118. package/lib/commonjs/Modal/Modal.js.map +1 -1
  119. package/lib/commonjs/Modal/drag/DragDismissHost.js +4 -1
  120. package/lib/commonjs/Modal/drag/DragDismissHost.js.map +1 -1
  121. package/lib/commonjs/Modal/drag/DragDismissHost.web.js +10 -6
  122. package/lib/commonjs/Modal/drag/DragDismissHost.web.js.map +1 -1
  123. package/lib/commonjs/Modal/drag/DragDismissOverlay.js +4 -1
  124. package/lib/commonjs/Modal/drag/DragDismissOverlay.js.map +1 -1
  125. package/lib/commonjs/Modal/drag/DragDismissOverlay.web.js +6 -8
  126. package/lib/commonjs/Modal/drag/DragDismissOverlay.web.js.map +1 -1
  127. package/lib/commonjs/Modal/drag/index.js.map +1 -1
  128. package/lib/commonjs/Modal/drag/useDragDismiss.js +83 -67
  129. package/lib/commonjs/Modal/drag/useDragDismiss.js.map +1 -1
  130. package/lib/commonjs/Modal/modal-base-inner.js +1 -1
  131. package/lib/commonjs/Modal/modal-base-inner.js.map +1 -1
  132. package/lib/commonjs/Modal/modal-base-inner.native.js +3 -2
  133. package/lib/commonjs/Modal/modal-base-inner.native.js.map +1 -1
  134. package/lib/commonjs/Modal/modal-base.js +24 -11
  135. package/lib/commonjs/Modal/modal-base.js.map +1 -1
  136. package/lib/commonjs/MultiSelect/MultiSelect.js +6 -2
  137. package/lib/commonjs/MultiSelect/MultiSelect.js.map +1 -1
  138. package/lib/commonjs/NativeSelect/NativeSelect.js +25 -30
  139. package/lib/commonjs/NativeSelect/NativeSelect.js.map +1 -1
  140. package/lib/commonjs/NavLink/NavLink.js +63 -58
  141. package/lib/commonjs/NavLink/NavLink.js.map +1 -1
  142. package/lib/commonjs/Notification/Notification.js +28 -28
  143. package/lib/commonjs/Notification/Notification.js.map +1 -1
  144. package/lib/commonjs/NumberFormatter/NumberFormatter.js +2 -2
  145. package/lib/commonjs/NumberFormatter/NumberFormatter.js.map +1 -1
  146. package/lib/commonjs/NumberInput/NumberInput.js +46 -43
  147. package/lib/commonjs/NumberInput/NumberInput.js.map +1 -1
  148. package/lib/commonjs/Overlay/Overlay.js +18 -11
  149. package/lib/commonjs/Overlay/Overlay.js.map +1 -1
  150. package/lib/commonjs/Pagination/Pagination.js +125 -120
  151. package/lib/commonjs/Pagination/Pagination.js.map +1 -1
  152. package/lib/commonjs/Paper/Paper.js +7 -8
  153. package/lib/commonjs/Paper/Paper.js.map +1 -1
  154. package/lib/commonjs/Paragraph/Paragraph.js +7 -10
  155. package/lib/commonjs/Paragraph/Paragraph.js.map +1 -1
  156. package/lib/commonjs/PasswordInput/PasswordInput.js +3 -3
  157. package/lib/commonjs/PasswordInput/PasswordInput.js.map +1 -1
  158. package/lib/commonjs/Pill/Pill.js +40 -34
  159. package/lib/commonjs/Pill/Pill.js.map +1 -1
  160. package/lib/commonjs/PillsInput/PillsInput.js +58 -31
  161. package/lib/commonjs/PillsInput/PillsInput.js.map +1 -1
  162. package/lib/commonjs/PinInput/PinInput.js +26 -20
  163. package/lib/commonjs/PinInput/PinInput.js.map +1 -1
  164. package/lib/commonjs/Popover/Popover.native.js +6 -2
  165. package/lib/commonjs/Popover/Popover.native.js.map +1 -1
  166. package/lib/commonjs/Popover/Popover.shared.js +34 -23
  167. package/lib/commonjs/Popover/Popover.shared.js.map +1 -1
  168. package/lib/commonjs/Portal/OverlayHost.js.map +1 -1
  169. package/lib/commonjs/Portal/OverlayPortal.js +33 -0
  170. package/lib/commonjs/Portal/OverlayPortal.js.map +1 -0
  171. package/lib/commonjs/Portal/index.js +7 -0
  172. package/lib/commonjs/Portal/index.js.map +1 -1
  173. package/lib/commonjs/Progress/Progress.js +37 -26
  174. package/lib/commonjs/Progress/Progress.js.map +1 -1
  175. package/lib/commonjs/Radio/Radio.js +81 -93
  176. package/lib/commonjs/Radio/Radio.js.map +1 -1
  177. package/lib/commonjs/Radio/RadioIcon.js +4 -6
  178. package/lib/commonjs/Radio/RadioIcon.js.map +1 -1
  179. package/lib/commonjs/Rating/Rating.js +48 -38
  180. package/lib/commonjs/Rating/Rating.js.map +1 -1
  181. package/lib/commonjs/RollingNumber/RollingNumber.js +48 -24
  182. package/lib/commonjs/RollingNumber/RollingNumber.js.map +1 -1
  183. package/lib/commonjs/ScrollArea/ScrollArea.js +40 -37
  184. package/lib/commonjs/ScrollArea/ScrollArea.js.map +1 -1
  185. package/lib/commonjs/ScrollArea/ScrollArea.native.js +46 -41
  186. package/lib/commonjs/ScrollArea/ScrollArea.native.js.map +1 -1
  187. package/lib/commonjs/SegmentedControl/SegmentedControl.js +106 -55
  188. package/lib/commonjs/SegmentedControl/SegmentedControl.js.map +1 -1
  189. package/lib/commonjs/Select/Select.js +7 -3
  190. package/lib/commonjs/Select/Select.js.map +1 -1
  191. package/lib/commonjs/Separator/Separator.js +47 -39
  192. package/lib/commonjs/Separator/Separator.js.map +1 -1
  193. package/lib/commonjs/SimpleGrid/SimpleGrid.js +12 -14
  194. package/lib/commonjs/SimpleGrid/SimpleGrid.js.map +1 -1
  195. package/lib/commonjs/Skeleton/Skeleton.js +39 -24
  196. package/lib/commonjs/Skeleton/Skeleton.js.map +1 -1
  197. package/lib/commonjs/Slider/Slider.js +308 -257
  198. package/lib/commonjs/Slider/Slider.js.map +1 -1
  199. package/lib/commonjs/Spacer/Spacer.js +15 -29
  200. package/lib/commonjs/Spacer/Spacer.js.map +1 -1
  201. package/lib/commonjs/Spoiler/Spoiler.js +16 -16
  202. package/lib/commonjs/Spoiler/Spoiler.js.map +1 -1
  203. package/lib/commonjs/Stack/Stack.js +3 -3
  204. package/lib/commonjs/Stack/Stack.js.map +1 -1
  205. package/lib/commonjs/Stepper/Stepper.js +96 -71
  206. package/lib/commonjs/Stepper/Stepper.js.map +1 -1
  207. package/lib/commonjs/Switch/Switch.js +71 -67
  208. package/lib/commonjs/Switch/Switch.js.map +1 -1
  209. package/lib/commonjs/Table/Table.js +96 -82
  210. package/lib/commonjs/Table/Table.js.map +1 -1
  211. package/lib/commonjs/TableOfContents/TableOfContents.js +94 -95
  212. package/lib/commonjs/TableOfContents/TableOfContents.js.map +1 -1
  213. package/lib/commonjs/Tabs/Tabs.js +71 -73
  214. package/lib/commonjs/Tabs/Tabs.js.map +1 -1
  215. package/lib/commonjs/TagsInput/TagsInput.js +19 -3
  216. package/lib/commonjs/TagsInput/TagsInput.js.map +1 -1
  217. package/lib/commonjs/Text/Text.js +29 -14
  218. package/lib/commonjs/Text/Text.js.map +1 -1
  219. package/lib/commonjs/TextInput/TextInput.js +2 -1
  220. package/lib/commonjs/TextInput/TextInput.js.map +1 -1
  221. package/lib/commonjs/Textarea/Textarea.js +1 -1
  222. package/lib/commonjs/Textarea/Textarea.js.map +1 -1
  223. package/lib/commonjs/ThemeIcon/ThemeIcon.js +10 -6
  224. package/lib/commonjs/ThemeIcon/ThemeIcon.js.map +1 -1
  225. package/lib/commonjs/Title/Title.js +49 -32
  226. package/lib/commonjs/Title/Title.js.map +1 -1
  227. package/lib/commonjs/Tooltip/Tooltip.js +44 -28
  228. package/lib/commonjs/Tooltip/Tooltip.js.map +1 -1
  229. package/lib/commonjs/Transition/Transition.native.js +11 -10
  230. package/lib/commonjs/Transition/Transition.native.js.map +1 -1
  231. package/lib/commonjs/Transition/use-overlay-transition.native.js +2 -5
  232. package/lib/commonjs/Transition/use-overlay-transition.native.js.map +1 -1
  233. package/lib/commonjs/Tree/Tree.js +30 -34
  234. package/lib/commonjs/Tree/Tree.js.map +1 -1
  235. package/lib/commonjs/TreeSelect/TreeSelect.js +50 -26
  236. package/lib/commonjs/TreeSelect/TreeSelect.js.map +1 -1
  237. package/lib/commonjs/Typography/Typography.js +5 -7
  238. package/lib/commonjs/Typography/Typography.js.map +1 -1
  239. package/lib/commonjs/UnstyledButton/UnstyledButton.js +4 -4
  240. package/lib/commonjs/UnstyledButton/UnstyledButton.js.map +1 -1
  241. package/lib/commonjs/VirtualList/VirtualList.js +23 -7
  242. package/lib/commonjs/VirtualList/VirtualList.js.map +1 -1
  243. package/lib/commonjs/VisuallyHidden/VisuallyHidden.js +7 -10
  244. package/lib/commonjs/VisuallyHidden/VisuallyHidden.js.map +1 -1
  245. package/lib/commonjs/control-system.js +7 -0
  246. package/lib/commonjs/control-system.js.map +1 -1
  247. package/lib/commonjs/index.js +12 -0
  248. package/lib/commonjs/index.js.map +1 -1
  249. package/lib/commonjs/internal/ControlIconProvider.js +1 -1
  250. package/lib/commonjs/internal/ControlIconProvider.js.map +1 -1
  251. package/lib/commonjs/internal/InlineControl.js +24 -29
  252. package/lib/commonjs/internal/InlineControl.js.map +1 -1
  253. package/lib/commonjs/internal/collapse-box.js +12 -10
  254. package/lib/commonjs/internal/collapse-box.js.map +1 -1
  255. package/lib/commonjs/internal/control-icon-size.js +5 -8
  256. package/lib/commonjs/internal/control-icon-size.js.map +1 -1
  257. package/lib/commonjs/internal/control-metrics.js +51 -51
  258. package/lib/commonjs/internal/control-metrics.js.map +1 -1
  259. package/lib/commonjs/internal/floating-arrow.js +43 -29
  260. package/lib/commonjs/internal/floating-arrow.js.map +1 -1
  261. package/lib/commonjs/internal/focus-ring.js +99 -0
  262. package/lib/commonjs/internal/focus-ring.js.map +1 -0
  263. package/lib/commonjs/internal/gradient-shared.js +18 -8
  264. package/lib/commonjs/internal/gradient-shared.js.map +1 -1
  265. package/lib/commonjs/internal/gradient.js +6 -0
  266. package/lib/commonjs/internal/gradient.js.map +1 -1
  267. package/lib/commonjs/internal/gradient.native.js +7 -1
  268. package/lib/commonjs/internal/gradient.native.js.map +1 -1
  269. package/lib/commonjs/internal/motion.js +247 -359
  270. package/lib/commonjs/internal/motion.js.map +1 -1
  271. package/lib/commonjs/internal/resolve-theme-color.js +10 -10
  272. package/lib/commonjs/internal/resolve-theme-color.js.map +1 -1
  273. package/lib/commonjs/internal/style-props.js +510 -464
  274. package/lib/commonjs/internal/style-props.js.map +1 -1
  275. package/lib/commonjs/internal/theme-color-web.js +44 -26
  276. package/lib/commonjs/internal/theme-color-web.js.map +1 -1
  277. package/lib/commonjs/internal/use-icon-color.js +1 -1
  278. package/lib/commonjs/internal/use-icon-color.native.js +1 -1
  279. package/lib/commonjs/internal/use-looping-animation.native.js +1 -1
  280. package/lib/commonjs/internal/use-looping-animation.native.js.map +1 -1
  281. package/lib/commonjs/internal/use-slot-text-wrapper.js +1 -1
  282. package/lib/commonjs/internal/variant-colors.js +163 -229
  283. package/lib/commonjs/internal/variant-colors.js.map +1 -1
  284. package/lib/module/Accordion/Accordion.js +80 -98
  285. package/lib/module/Accordion/Accordion.js.map +1 -1
  286. package/lib/module/ActionIcon/ActionIcon.js +130 -64
  287. package/lib/module/ActionIcon/ActionIcon.js.map +1 -1
  288. package/lib/module/Affix/Affix.js +19 -23
  289. package/lib/module/Affix/Affix.js.map +1 -1
  290. package/lib/module/Alert/Alert.js +56 -56
  291. package/lib/module/Alert/Alert.js.map +1 -1
  292. package/lib/module/Anchor/Anchor.js +13 -16
  293. package/lib/module/Anchor/Anchor.js.map +1 -1
  294. package/lib/module/AngleSlider/AngleSlider.js +66 -38
  295. package/lib/module/AngleSlider/AngleSlider.js.map +1 -1
  296. package/lib/module/AspectRatio/AspectRatio.js +10 -14
  297. package/lib/module/AspectRatio/AspectRatio.js.map +1 -1
  298. package/lib/module/Autocomplete/Autocomplete.js +8 -4
  299. package/lib/module/Autocomplete/Autocomplete.js.map +1 -1
  300. package/lib/module/Avatar/Avatar.js +31 -28
  301. package/lib/module/Avatar/Avatar.js.map +1 -1
  302. package/lib/module/BackgroundImage/BackgroundImage.js +16 -7
  303. package/lib/module/BackgroundImage/BackgroundImage.js.map +1 -1
  304. package/lib/module/Badge/Badge.js +63 -52
  305. package/lib/module/Badge/Badge.js.map +1 -1
  306. package/lib/module/Blockquote/Blockquote.js +82 -81
  307. package/lib/module/Blockquote/Blockquote.js.map +1 -1
  308. package/lib/module/Box/Box.js +2 -2
  309. package/lib/module/Box/Box.js.map +1 -1
  310. package/lib/module/Breadcrumbs/Breadcrumbs.js +10 -10
  311. package/lib/module/Breadcrumbs/Breadcrumbs.js.map +1 -1
  312. package/lib/module/Burger/Burger.js +32 -21
  313. package/lib/module/Burger/Burger.js.map +1 -1
  314. package/lib/module/Button/Button.js +107 -65
  315. package/lib/module/Button/Button.js.map +1 -1
  316. package/lib/module/Card/Card.js +51 -39
  317. package/lib/module/Card/Card.js.map +1 -1
  318. package/lib/module/Center/Center.js +3 -3
  319. package/lib/module/Center/Center.js.map +1 -1
  320. package/lib/module/Checkbox/CheckIcon.js +5 -4
  321. package/lib/module/Checkbox/CheckIcon.js.map +1 -1
  322. package/lib/module/Checkbox/Checkbox.js +100 -70
  323. package/lib/module/Checkbox/Checkbox.js.map +1 -1
  324. package/lib/module/Chip/Chip.js +35 -68
  325. package/lib/module/Chip/Chip.js.map +1 -1
  326. package/lib/module/CloseButton/CloseButton.js +14 -7
  327. package/lib/module/CloseButton/CloseButton.js.map +1 -1
  328. package/lib/module/Code/Code.js +15 -11
  329. package/lib/module/Code/Code.js.map +1 -1
  330. package/lib/module/Collapse/Collapse.js +11 -5
  331. package/lib/module/Collapse/Collapse.js.map +1 -1
  332. package/lib/module/ColorInput/ColorInput.js +26 -21
  333. package/lib/module/ColorInput/ColorInput.js.map +1 -1
  334. package/lib/module/ColorPicker/ColorPicker.js +96 -84
  335. package/lib/module/ColorPicker/ColorPicker.js.map +1 -1
  336. package/lib/module/ColorSwatch/ColorSwatch.js +13 -15
  337. package/lib/module/ColorSwatch/ColorSwatch.js.map +1 -1
  338. package/lib/module/Combobox/Combobox.js +194 -188
  339. package/lib/module/Combobox/Combobox.js.map +1 -1
  340. package/lib/module/Combobox/OptionsDropdown.js +13 -7
  341. package/lib/module/Combobox/OptionsDropdown.js.map +1 -1
  342. package/lib/module/Combobox/index.js +1 -1
  343. package/lib/module/Combobox/index.js.map +1 -1
  344. package/lib/module/Container/Container.js +12 -19
  345. package/lib/module/Container/Container.js.map +1 -1
  346. package/lib/module/Dialog/Dialog.js +16 -15
  347. package/lib/module/Dialog/Dialog.js.map +1 -1
  348. package/lib/module/Drawer/Drawer.js +53 -34
  349. package/lib/module/Drawer/Drawer.js.map +1 -1
  350. package/lib/module/Fieldset/Fieldset.js +27 -19
  351. package/lib/module/Fieldset/Fieldset.js.map +1 -1
  352. package/lib/module/FileButton/FileButton.js +5 -3
  353. package/lib/module/FileButton/FileButton.js.map +1 -1
  354. package/lib/module/Flex/Flex.js +24 -28
  355. package/lib/module/Flex/Flex.js.map +1 -1
  356. package/lib/module/FocusTrap/FocusTrap.js +4 -3
  357. package/lib/module/FocusTrap/FocusTrap.js.map +1 -1
  358. package/lib/module/Grid/Grid.js +22 -19
  359. package/lib/module/Grid/Grid.js.map +1 -1
  360. package/lib/module/Group/Group.js +4 -4
  361. package/lib/module/Group/Group.js.map +1 -1
  362. package/lib/module/Highlight/Highlight.js +2 -1
  363. package/lib/module/Highlight/Highlight.js.map +1 -1
  364. package/lib/module/HoverCard/HoverCard.js +8 -25
  365. package/lib/module/HoverCard/HoverCard.js.map +1 -1
  366. package/lib/module/Image/Image.native.js +1 -1
  367. package/lib/module/Image/createImage.js +88 -56
  368. package/lib/module/Image/createImage.js.map +1 -1
  369. package/lib/module/Indicator/Indicator.js +37 -30
  370. package/lib/module/Indicator/Indicator.js.map +1 -1
  371. package/lib/module/Input/Input.js +89 -121
  372. package/lib/module/Input/Input.js.map +1 -1
  373. package/lib/module/Input/Input.native.js +56 -37
  374. package/lib/module/Input/Input.native.js.map +1 -1
  375. package/lib/module/Input/shared.js +148 -225
  376. package/lib/module/Input/shared.js.map +1 -1
  377. package/lib/module/InputBase/InputBase.js +2 -1
  378. package/lib/module/InputBase/InputBase.js.map +1 -1
  379. package/lib/module/Kbd/Kbd.js +12 -18
  380. package/lib/module/Kbd/Kbd.js.map +1 -1
  381. package/lib/module/KeyboardAvoidingView/KeyboardAvoidingView.native.js +2 -2
  382. package/lib/module/KeyboardAvoidingView/KeyboardAvoidingView.native.js.map +1 -1
  383. package/lib/module/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js +1 -1
  384. package/lib/module/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js.map +1 -1
  385. package/lib/module/List/List.js +11 -11
  386. package/lib/module/List/List.js.map +1 -1
  387. package/lib/module/Loader/Loader.js +33 -39
  388. package/lib/module/Loader/Loader.js.map +1 -1
  389. package/lib/module/LoadingOverlay/LoadingOverlay.js +2 -1
  390. package/lib/module/LoadingOverlay/LoadingOverlay.js.map +1 -1
  391. package/lib/module/Mark/Mark.js +11 -15
  392. package/lib/module/Mark/Mark.js.map +1 -1
  393. package/lib/module/Marquee/Marquee.js +66 -48
  394. package/lib/module/Marquee/Marquee.js.map +1 -1
  395. package/lib/module/MaskInput/MaskInput.js +2 -1
  396. package/lib/module/MaskInput/MaskInput.js.map +1 -1
  397. package/lib/module/Menu/Menu.js +86 -50
  398. package/lib/module/Menu/Menu.js.map +1 -1
  399. package/lib/module/Modal/Modal.js +35 -31
  400. package/lib/module/Modal/Modal.js.map +1 -1
  401. package/lib/module/Modal/drag/DragDismissHost.js +4 -1
  402. package/lib/module/Modal/drag/DragDismissHost.js.map +1 -1
  403. package/lib/module/Modal/drag/DragDismissHost.web.js +10 -6
  404. package/lib/module/Modal/drag/DragDismissHost.web.js.map +1 -1
  405. package/lib/module/Modal/drag/DragDismissOverlay.js +4 -1
  406. package/lib/module/Modal/drag/DragDismissOverlay.js.map +1 -1
  407. package/lib/module/Modal/drag/DragDismissOverlay.web.js +6 -8
  408. package/lib/module/Modal/drag/DragDismissOverlay.web.js.map +1 -1
  409. package/lib/module/Modal/drag/index.js +1 -1
  410. package/lib/module/Modal/drag/index.js.map +1 -1
  411. package/lib/module/Modal/drag/useDragDismiss.js +84 -68
  412. package/lib/module/Modal/drag/useDragDismiss.js.map +1 -1
  413. package/lib/module/Modal/modal-base-inner.js +1 -1
  414. package/lib/module/Modal/modal-base-inner.js.map +1 -1
  415. package/lib/module/Modal/modal-base-inner.native.js +3 -2
  416. package/lib/module/Modal/modal-base-inner.native.js.map +1 -1
  417. package/lib/module/Modal/modal-base.js +25 -12
  418. package/lib/module/Modal/modal-base.js.map +1 -1
  419. package/lib/module/MultiSelect/MultiSelect.js +7 -3
  420. package/lib/module/MultiSelect/MultiSelect.js.map +1 -1
  421. package/lib/module/NativeSelect/NativeSelect.js +26 -31
  422. package/lib/module/NativeSelect/NativeSelect.js.map +1 -1
  423. package/lib/module/NavLink/NavLink.js +64 -59
  424. package/lib/module/NavLink/NavLink.js.map +1 -1
  425. package/lib/module/Notification/Notification.js +29 -29
  426. package/lib/module/Notification/Notification.js.map +1 -1
  427. package/lib/module/NumberFormatter/NumberFormatter.js +3 -3
  428. package/lib/module/NumberFormatter/NumberFormatter.js.map +1 -1
  429. package/lib/module/NumberInput/NumberInput.js +49 -46
  430. package/lib/module/NumberInput/NumberInput.js.map +1 -1
  431. package/lib/module/Overlay/Overlay.js +19 -12
  432. package/lib/module/Overlay/Overlay.js.map +1 -1
  433. package/lib/module/Pagination/Pagination.js +127 -122
  434. package/lib/module/Pagination/Pagination.js.map +1 -1
  435. package/lib/module/Paper/Paper.js +8 -9
  436. package/lib/module/Paper/Paper.js.map +1 -1
  437. package/lib/module/Paragraph/Paragraph.js +6 -10
  438. package/lib/module/Paragraph/Paragraph.js.map +1 -1
  439. package/lib/module/PasswordInput/PasswordInput.js +4 -4
  440. package/lib/module/PasswordInput/PasswordInput.js.map +1 -1
  441. package/lib/module/Pill/Pill.js +42 -36
  442. package/lib/module/Pill/Pill.js.map +1 -1
  443. package/lib/module/PillsInput/PillsInput.js +59 -32
  444. package/lib/module/PillsInput/PillsInput.js.map +1 -1
  445. package/lib/module/PinInput/PinInput.js +27 -21
  446. package/lib/module/PinInput/PinInput.js.map +1 -1
  447. package/lib/module/Popover/Popover.native.js +6 -2
  448. package/lib/module/Popover/Popover.native.js.map +1 -1
  449. package/lib/module/Popover/Popover.shared.js +36 -25
  450. package/lib/module/Popover/Popover.shared.js.map +1 -1
  451. package/lib/module/Portal/OverlayHost.js.map +1 -1
  452. package/lib/module/Portal/OverlayPortal.js +28 -0
  453. package/lib/module/Portal/OverlayPortal.js.map +1 -0
  454. package/lib/module/Portal/index.js +4 -0
  455. package/lib/module/Portal/index.js.map +1 -1
  456. package/lib/module/Progress/Progress.js +39 -28
  457. package/lib/module/Progress/Progress.js.map +1 -1
  458. package/lib/module/Radio/Radio.js +83 -95
  459. package/lib/module/Radio/Radio.js.map +1 -1
  460. package/lib/module/Radio/RadioIcon.js +4 -6
  461. package/lib/module/Radio/RadioIcon.js.map +1 -1
  462. package/lib/module/Rating/Rating.js +50 -40
  463. package/lib/module/Rating/Rating.js.map +1 -1
  464. package/lib/module/RollingNumber/RollingNumber.js +49 -25
  465. package/lib/module/RollingNumber/RollingNumber.js.map +1 -1
  466. package/lib/module/ScrollArea/ScrollArea.js +41 -38
  467. package/lib/module/ScrollArea/ScrollArea.js.map +1 -1
  468. package/lib/module/ScrollArea/ScrollArea.native.js +48 -43
  469. package/lib/module/ScrollArea/ScrollArea.native.js.map +1 -1
  470. package/lib/module/SegmentedControl/SegmentedControl.js +108 -57
  471. package/lib/module/SegmentedControl/SegmentedControl.js.map +1 -1
  472. package/lib/module/Select/Select.js +8 -4
  473. package/lib/module/Select/Select.js.map +1 -1
  474. package/lib/module/Separator/Separator.js +49 -41
  475. package/lib/module/Separator/Separator.js.map +1 -1
  476. package/lib/module/SimpleGrid/SimpleGrid.js +14 -16
  477. package/lib/module/SimpleGrid/SimpleGrid.js.map +1 -1
  478. package/lib/module/Skeleton/Skeleton.js +40 -25
  479. package/lib/module/Skeleton/Skeleton.js.map +1 -1
  480. package/lib/module/Slider/Slider.js +309 -258
  481. package/lib/module/Slider/Slider.js.map +1 -1
  482. package/lib/module/Spacer/Spacer.js +16 -29
  483. package/lib/module/Spacer/Spacer.js.map +1 -1
  484. package/lib/module/Spoiler/Spoiler.js +17 -17
  485. package/lib/module/Spoiler/Spoiler.js.map +1 -1
  486. package/lib/module/Stack/Stack.js +3 -3
  487. package/lib/module/Stack/Stack.js.map +1 -1
  488. package/lib/module/Stepper/Stepper.js +97 -72
  489. package/lib/module/Stepper/Stepper.js.map +1 -1
  490. package/lib/module/Switch/Switch.js +73 -69
  491. package/lib/module/Switch/Switch.js.map +1 -1
  492. package/lib/module/Table/Table.js +99 -85
  493. package/lib/module/Table/Table.js.map +1 -1
  494. package/lib/module/TableOfContents/TableOfContents.js +96 -97
  495. package/lib/module/TableOfContents/TableOfContents.js.map +1 -1
  496. package/lib/module/Tabs/Tabs.js +72 -74
  497. package/lib/module/Tabs/Tabs.js.map +1 -1
  498. package/lib/module/TagsInput/TagsInput.js +21 -5
  499. package/lib/module/TagsInput/TagsInput.js.map +1 -1
  500. package/lib/module/Text/Text.js +29 -14
  501. package/lib/module/Text/Text.js.map +1 -1
  502. package/lib/module/TextInput/TextInput.js +2 -1
  503. package/lib/module/TextInput/TextInput.js.map +1 -1
  504. package/lib/module/Textarea/Textarea.js +2 -2
  505. package/lib/module/Textarea/Textarea.js.map +1 -1
  506. package/lib/module/ThemeIcon/ThemeIcon.js +12 -8
  507. package/lib/module/ThemeIcon/ThemeIcon.js.map +1 -1
  508. package/lib/module/Title/Title.js +51 -34
  509. package/lib/module/Title/Title.js.map +1 -1
  510. package/lib/module/Tooltip/Tooltip.js +46 -30
  511. package/lib/module/Tooltip/Tooltip.js.map +1 -1
  512. package/lib/module/Transition/Transition.native.js +12 -11
  513. package/lib/module/Transition/Transition.native.js.map +1 -1
  514. package/lib/module/Transition/use-overlay-transition.native.js +3 -6
  515. package/lib/module/Transition/use-overlay-transition.native.js.map +1 -1
  516. package/lib/module/Tree/Tree.js +31 -35
  517. package/lib/module/Tree/Tree.js.map +1 -1
  518. package/lib/module/TreeSelect/TreeSelect.js +52 -28
  519. package/lib/module/TreeSelect/TreeSelect.js.map +1 -1
  520. package/lib/module/Typography/Typography.js +5 -7
  521. package/lib/module/Typography/Typography.js.map +1 -1
  522. package/lib/module/UnstyledButton/UnstyledButton.js +5 -5
  523. package/lib/module/UnstyledButton/UnstyledButton.js.map +1 -1
  524. package/lib/module/VirtualList/VirtualList.js +23 -7
  525. package/lib/module/VirtualList/VirtualList.js.map +1 -1
  526. package/lib/module/VisuallyHidden/VisuallyHidden.js +6 -10
  527. package/lib/module/VisuallyHidden/VisuallyHidden.js.map +1 -1
  528. package/lib/module/control-system.js +5 -0
  529. package/lib/module/control-system.js.map +1 -1
  530. package/lib/module/index.js +9 -5
  531. package/lib/module/index.js.map +1 -1
  532. package/lib/module/internal/ControlIconProvider.js +1 -1
  533. package/lib/module/internal/ControlIconProvider.js.map +1 -1
  534. package/lib/module/internal/InlineControl.js +25 -30
  535. package/lib/module/internal/InlineControl.js.map +1 -1
  536. package/lib/module/internal/collapse-box.js +13 -11
  537. package/lib/module/internal/collapse-box.js.map +1 -1
  538. package/lib/module/internal/control-icon-size.js +5 -8
  539. package/lib/module/internal/control-icon-size.js.map +1 -1
  540. package/lib/module/internal/control-metrics.js +52 -52
  541. package/lib/module/internal/control-metrics.js.map +1 -1
  542. package/lib/module/internal/floating-arrow.js +44 -30
  543. package/lib/module/internal/floating-arrow.js.map +1 -1
  544. package/lib/module/internal/focus-ring.js +95 -0
  545. package/lib/module/internal/focus-ring.js.map +1 -0
  546. package/lib/module/internal/gradient-shared.js +16 -7
  547. package/lib/module/internal/gradient-shared.js.map +1 -1
  548. package/lib/module/internal/gradient.js +2 -0
  549. package/lib/module/internal/gradient.js.map +1 -1
  550. package/lib/module/internal/gradient.native.js +3 -1
  551. package/lib/module/internal/gradient.native.js.map +1 -1
  552. package/lib/module/internal/motion.js +245 -359
  553. package/lib/module/internal/motion.js.map +1 -1
  554. package/lib/module/internal/resolve-theme-color.js +10 -10
  555. package/lib/module/internal/resolve-theme-color.js.map +1 -1
  556. package/lib/module/internal/style-props.js +471 -459
  557. package/lib/module/internal/style-props.js.map +1 -1
  558. package/lib/module/internal/theme-color-web.js +45 -27
  559. package/lib/module/internal/theme-color-web.js.map +1 -1
  560. package/lib/module/internal/use-icon-color.js +1 -1
  561. package/lib/module/internal/use-icon-color.native.js +1 -1
  562. package/lib/module/internal/use-looping-animation.native.js +1 -1
  563. package/lib/module/internal/use-looping-animation.native.js.map +1 -1
  564. package/lib/module/internal/use-slot-text-wrapper.js +1 -1
  565. package/lib/module/internal/variant-colors.js +150 -228
  566. package/lib/module/internal/variant-colors.js.map +1 -1
  567. package/lib/typescript/Accordion/Accordion.d.ts +120 -74
  568. package/lib/typescript/Accordion/Accordion.d.ts.map +1 -1
  569. package/lib/typescript/ActionIcon/ActionIcon.d.ts +236 -94
  570. package/lib/typescript/ActionIcon/ActionIcon.d.ts.map +1 -1
  571. package/lib/typescript/Affix/Affix.d.ts +12 -7
  572. package/lib/typescript/Affix/Affix.d.ts.map +1 -1
  573. package/lib/typescript/Alert/Alert.d.ts +228 -68
  574. package/lib/typescript/Alert/Alert.d.ts.map +1 -1
  575. package/lib/typescript/Anchor/Anchor.d.ts +33 -24
  576. package/lib/typescript/Anchor/Anchor.d.ts.map +1 -1
  577. package/lib/typescript/AngleSlider/AngleSlider.d.ts +224 -66
  578. package/lib/typescript/AngleSlider/AngleSlider.d.ts.map +1 -1
  579. package/lib/typescript/AspectRatio/AspectRatio.d.ts +34 -14
  580. package/lib/typescript/AspectRatio/AspectRatio.d.ts.map +1 -1
  581. package/lib/typescript/Autocomplete/Autocomplete.d.ts +30 -42
  582. package/lib/typescript/Autocomplete/Autocomplete.d.ts.map +1 -1
  583. package/lib/typescript/Avatar/Avatar.d.ts +174 -198
  584. package/lib/typescript/Avatar/Avatar.d.ts.map +1 -1
  585. package/lib/typescript/BackgroundImage/BackgroundImage.d.ts +15 -10
  586. package/lib/typescript/BackgroundImage/BackgroundImage.d.ts.map +1 -1
  587. package/lib/typescript/Badge/Badge.d.ts +138 -62
  588. package/lib/typescript/Badge/Badge.d.ts.map +1 -1
  589. package/lib/typescript/Blockquote/Blockquote.d.ts +148 -50
  590. package/lib/typescript/Blockquote/Blockquote.d.ts.map +1 -1
  591. package/lib/typescript/Box/Box.d.ts +11 -3
  592. package/lib/typescript/Box/Box.d.ts.map +1 -1
  593. package/lib/typescript/Breadcrumbs/Breadcrumbs.d.ts +115 -35
  594. package/lib/typescript/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  595. package/lib/typescript/Burger/Burger.d.ts +124 -41
  596. package/lib/typescript/Burger/Burger.d.ts.map +1 -1
  597. package/lib/typescript/Button/Button.d.ts +236 -107
  598. package/lib/typescript/Button/Button.d.ts.map +1 -1
  599. package/lib/typescript/Card/Card.d.ts +79 -47
  600. package/lib/typescript/Card/Card.d.ts.map +1 -1
  601. package/lib/typescript/Center/Center.d.ts +13 -9
  602. package/lib/typescript/Center/Center.d.ts.map +1 -1
  603. package/lib/typescript/Checkbox/CheckIcon.d.ts +7 -3
  604. package/lib/typescript/Checkbox/CheckIcon.d.ts.map +1 -1
  605. package/lib/typescript/Checkbox/Checkbox.d.ts +79 -60
  606. package/lib/typescript/Checkbox/Checkbox.d.ts.map +1 -1
  607. package/lib/typescript/Chip/Chip.d.ts +140 -57
  608. package/lib/typescript/Chip/Chip.d.ts.map +1 -1
  609. package/lib/typescript/CloseButton/CloseButton.d.ts +85 -50
  610. package/lib/typescript/CloseButton/CloseButton.d.ts.map +1 -1
  611. package/lib/typescript/Code/Code.d.ts +31 -23
  612. package/lib/typescript/Code/Code.d.ts.map +1 -1
  613. package/lib/typescript/Collapse/Collapse.d.ts +44 -20
  614. package/lib/typescript/Collapse/Collapse.d.ts.map +1 -1
  615. package/lib/typescript/ColorInput/ColorInput.d.ts +15 -5
  616. package/lib/typescript/ColorInput/ColorInput.d.ts.map +1 -1
  617. package/lib/typescript/ColorPicker/ColorPicker.d.ts +72 -16
  618. package/lib/typescript/ColorPicker/ColorPicker.d.ts.map +1 -1
  619. package/lib/typescript/ColorSwatch/ColorSwatch.d.ts +59 -38
  620. package/lib/typescript/ColorSwatch/ColorSwatch.d.ts.map +1 -1
  621. package/lib/typescript/Combobox/Combobox.d.ts +183 -100
  622. package/lib/typescript/Combobox/Combobox.d.ts.map +1 -1
  623. package/lib/typescript/Combobox/OptionsDropdown.d.ts +6 -0
  624. package/lib/typescript/Combobox/OptionsDropdown.d.ts.map +1 -1
  625. package/lib/typescript/Combobox/index.d.ts +66 -86
  626. package/lib/typescript/Combobox/index.d.ts.map +1 -1
  627. package/lib/typescript/Container/Container.d.ts +3 -41
  628. package/lib/typescript/Container/Container.d.ts.map +1 -1
  629. package/lib/typescript/Dialog/Dialog.d.ts +79 -76
  630. package/lib/typescript/Dialog/Dialog.d.ts.map +1 -1
  631. package/lib/typescript/Drawer/Drawer.d.ts +115 -40
  632. package/lib/typescript/Drawer/Drawer.d.ts.map +1 -1
  633. package/lib/typescript/Fieldset/Fieldset.d.ts +91 -46
  634. package/lib/typescript/Fieldset/Fieldset.d.ts.map +1 -1
  635. package/lib/typescript/FileButton/FileButton.d.ts.map +1 -1
  636. package/lib/typescript/FileInput/FileInput.d.ts +1 -1
  637. package/lib/typescript/FileInput/FileInput.d.ts.map +1 -1
  638. package/lib/typescript/Flex/Flex.d.ts +28 -26
  639. package/lib/typescript/Flex/Flex.d.ts.map +1 -1
  640. package/lib/typescript/FocusTrap/FocusTrap.d.ts.map +1 -1
  641. package/lib/typescript/Grid/Grid.d.ts +56 -48
  642. package/lib/typescript/Grid/Grid.d.ts.map +1 -1
  643. package/lib/typescript/Group/Group.d.ts +21 -16
  644. package/lib/typescript/Group/Group.d.ts.map +1 -1
  645. package/lib/typescript/Highlight/Highlight.d.ts +1 -15
  646. package/lib/typescript/Highlight/Highlight.d.ts.map +1 -1
  647. package/lib/typescript/HoverCard/HoverCard.d.ts +9 -9
  648. package/lib/typescript/HoverCard/HoverCard.d.ts.map +1 -1
  649. package/lib/typescript/Image/Image.d.ts +53 -121
  650. package/lib/typescript/Image/Image.d.ts.map +1 -1
  651. package/lib/typescript/Image/Image.native.d.ts +54 -122
  652. package/lib/typescript/Image/Image.native.d.ts.map +1 -1
  653. package/lib/typescript/Image/createImage.d.ts +56 -364
  654. package/lib/typescript/Image/createImage.d.ts.map +1 -1
  655. package/lib/typescript/Image/types.d.ts +4 -1
  656. package/lib/typescript/Image/types.d.ts.map +1 -1
  657. package/lib/typescript/Indicator/Indicator.d.ts +122 -43
  658. package/lib/typescript/Indicator/Indicator.d.ts.map +1 -1
  659. package/lib/typescript/Input/Input.d.ts +131 -328
  660. package/lib/typescript/Input/Input.d.ts.map +1 -1
  661. package/lib/typescript/Input/Input.native.d.ts +150 -472
  662. package/lib/typescript/Input/Input.native.d.ts.map +1 -1
  663. package/lib/typescript/Input/shared.d.ts +290 -490
  664. package/lib/typescript/Input/shared.d.ts.map +1 -1
  665. package/lib/typescript/Input/types.d.ts +14 -1
  666. package/lib/typescript/Input/types.d.ts.map +1 -1
  667. package/lib/typescript/InputBase/InputBase.d.ts +1 -52
  668. package/lib/typescript/InputBase/InputBase.d.ts.map +1 -1
  669. package/lib/typescript/Kbd/Kbd.d.ts +21 -65
  670. package/lib/typescript/Kbd/Kbd.d.ts.map +1 -1
  671. package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.d.ts +2 -6
  672. package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.d.ts.map +1 -1
  673. package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.native.d.ts +7 -3
  674. package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.native.d.ts.map +1 -1
  675. package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +2 -6
  676. package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts.map +1 -1
  677. package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.native.d.ts +13 -15
  678. package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.native.d.ts.map +1 -1
  679. package/lib/typescript/List/List.d.ts +165 -63
  680. package/lib/typescript/List/List.d.ts.map +1 -1
  681. package/lib/typescript/Loader/Loader.d.ts +58 -28
  682. package/lib/typescript/Loader/Loader.d.ts.map +1 -1
  683. package/lib/typescript/LoadingOverlay/LoadingOverlay.d.ts +1 -9
  684. package/lib/typescript/LoadingOverlay/LoadingOverlay.d.ts.map +1 -1
  685. package/lib/typescript/Mark/Mark.d.ts +21 -65
  686. package/lib/typescript/Mark/Mark.d.ts.map +1 -1
  687. package/lib/typescript/Marquee/Marquee.d.ts +127 -44
  688. package/lib/typescript/Marquee/Marquee.d.ts.map +1 -1
  689. package/lib/typescript/MaskInput/MaskInput.d.ts +1 -51
  690. package/lib/typescript/MaskInput/MaskInput.d.ts.map +1 -1
  691. package/lib/typescript/Menu/Menu.d.ts +93 -105
  692. package/lib/typescript/Menu/Menu.d.ts.map +1 -1
  693. package/lib/typescript/Modal/Modal.d.ts +166 -91
  694. package/lib/typescript/Modal/Modal.d.ts.map +1 -1
  695. package/lib/typescript/Modal/drag/DragDismissHost.d.ts.map +1 -1
  696. package/lib/typescript/Modal/drag/DragDismissHost.web.d.ts.map +1 -1
  697. package/lib/typescript/Modal/drag/DragDismissOverlay.d.ts.map +1 -1
  698. package/lib/typescript/Modal/drag/DragDismissOverlay.web.d.ts.map +1 -1
  699. package/lib/typescript/Modal/drag/index.d.ts +2 -2
  700. package/lib/typescript/Modal/drag/index.d.ts.map +1 -1
  701. package/lib/typescript/Modal/drag/types.d.ts +14 -2
  702. package/lib/typescript/Modal/drag/types.d.ts.map +1 -1
  703. package/lib/typescript/Modal/drag/useDragDismiss.d.ts +2 -2
  704. package/lib/typescript/Modal/drag/useDragDismiss.d.ts.map +1 -1
  705. package/lib/typescript/Modal/modal-base-inner.d.ts +6 -2
  706. package/lib/typescript/Modal/modal-base-inner.d.ts.map +1 -1
  707. package/lib/typescript/Modal/modal-base-inner.native.d.ts +7 -3
  708. package/lib/typescript/Modal/modal-base-inner.native.d.ts.map +1 -1
  709. package/lib/typescript/Modal/modal-base.d.ts +2 -2
  710. package/lib/typescript/Modal/modal-base.d.ts.map +1 -1
  711. package/lib/typescript/MultiSelect/MultiSelect.d.ts +30 -50
  712. package/lib/typescript/MultiSelect/MultiSelect.d.ts.map +1 -1
  713. package/lib/typescript/NativeSelect/NativeSelect.d.ts.map +1 -1
  714. package/lib/typescript/NativeSelect/NativeSelect.native.d.ts +1 -1
  715. package/lib/typescript/NativeSelect/NativeSelect.native.d.ts.map +1 -1
  716. package/lib/typescript/NavLink/NavLink.d.ts +245 -72
  717. package/lib/typescript/NavLink/NavLink.d.ts.map +1 -1
  718. package/lib/typescript/Notification/Notification.d.ts +230 -69
  719. package/lib/typescript/Notification/Notification.d.ts.map +1 -1
  720. package/lib/typescript/NumberFormatter/NumberFormatter.d.ts +24 -19
  721. package/lib/typescript/NumberFormatter/NumberFormatter.d.ts.map +1 -1
  722. package/lib/typescript/NumberInput/NumberInput.d.ts +91 -150
  723. package/lib/typescript/NumberInput/NumberInput.d.ts.map +1 -1
  724. package/lib/typescript/Overlay/Overlay.d.ts +17 -12
  725. package/lib/typescript/Overlay/Overlay.d.ts.map +1 -1
  726. package/lib/typescript/Pagination/Pagination.d.ts +43 -65
  727. package/lib/typescript/Pagination/Pagination.d.ts.map +1 -1
  728. package/lib/typescript/Paper/Paper.d.ts +19 -7
  729. package/lib/typescript/Paper/Paper.d.ts.map +1 -1
  730. package/lib/typescript/Paragraph/Paragraph.d.ts +23 -19
  731. package/lib/typescript/Paragraph/Paragraph.d.ts.map +1 -1
  732. package/lib/typescript/PasswordInput/PasswordInput.d.ts +110 -207
  733. package/lib/typescript/PasswordInput/PasswordInput.d.ts.map +1 -1
  734. package/lib/typescript/Pill/Pill.d.ts +133 -95
  735. package/lib/typescript/Pill/Pill.d.ts.map +1 -1
  736. package/lib/typescript/PillsInput/PillsInput.d.ts +2 -2
  737. package/lib/typescript/PillsInput/PillsInput.d.ts.map +1 -1
  738. package/lib/typescript/PinInput/PinInput.d.ts +148 -297
  739. package/lib/typescript/PinInput/PinInput.d.ts.map +1 -1
  740. package/lib/typescript/Popover/Popover.native.d.ts.map +1 -1
  741. package/lib/typescript/Popover/Popover.shared.d.ts +15 -11
  742. package/lib/typescript/Popover/Popover.shared.d.ts.map +1 -1
  743. package/lib/typescript/Portal/OverlayHost.d.ts +2 -2
  744. package/lib/typescript/Portal/OverlayHost.d.ts.map +1 -1
  745. package/lib/typescript/Portal/OverlayPortal.d.ts +19 -0
  746. package/lib/typescript/Portal/OverlayPortal.d.ts.map +1 -0
  747. package/lib/typescript/Portal/index.d.ts +4 -0
  748. package/lib/typescript/Portal/index.d.ts.map +1 -1
  749. package/lib/typescript/Progress/Progress.d.ts +114 -65
  750. package/lib/typescript/Progress/Progress.d.ts.map +1 -1
  751. package/lib/typescript/Radio/Radio.d.ts +69 -80
  752. package/lib/typescript/Radio/Radio.d.ts.map +1 -1
  753. package/lib/typescript/Radio/RadioIcon.d.ts +5 -0
  754. package/lib/typescript/Radio/RadioIcon.d.ts.map +1 -1
  755. package/lib/typescript/Rating/Rating.d.ts +94 -44
  756. package/lib/typescript/Rating/Rating.d.ts.map +1 -1
  757. package/lib/typescript/RollingNumber/RollingNumber.d.ts +112 -32
  758. package/lib/typescript/RollingNumber/RollingNumber.d.ts.map +1 -1
  759. package/lib/typescript/ScrollArea/ScrollArea.d.ts +50 -10
  760. package/lib/typescript/ScrollArea/ScrollArea.d.ts.map +1 -1
  761. package/lib/typescript/ScrollArea/ScrollArea.native.d.ts +40 -8
  762. package/lib/typescript/ScrollArea/ScrollArea.native.d.ts.map +1 -1
  763. package/lib/typescript/ScrollArea/ScrollArea.shared.d.ts +2 -2
  764. package/lib/typescript/SegmentedControl/SegmentedControl.d.ts +148 -56
  765. package/lib/typescript/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  766. package/lib/typescript/Select/Select.d.ts +31 -51
  767. package/lib/typescript/Select/Select.d.ts.map +1 -1
  768. package/lib/typescript/Separator/Separator.d.ts +124 -61
  769. package/lib/typescript/Separator/Separator.d.ts.map +1 -1
  770. package/lib/typescript/SimpleGrid/SimpleGrid.d.ts +15 -13
  771. package/lib/typescript/SimpleGrid/SimpleGrid.d.ts.map +1 -1
  772. package/lib/typescript/Skeleton/Skeleton.d.ts +18 -14
  773. package/lib/typescript/Skeleton/Skeleton.d.ts.map +1 -1
  774. package/lib/typescript/Slider/Slider.d.ts +425 -129
  775. package/lib/typescript/Slider/Slider.d.ts.map +1 -1
  776. package/lib/typescript/Spacer/Spacer.d.ts +10 -17
  777. package/lib/typescript/Spacer/Spacer.d.ts.map +1 -1
  778. package/lib/typescript/Spoiler/Spoiler.d.ts +88 -28
  779. package/lib/typescript/Spoiler/Spoiler.d.ts.map +1 -1
  780. package/lib/typescript/Stack/Stack.d.ts +17 -5
  781. package/lib/typescript/Stack/Stack.d.ts.map +1 -1
  782. package/lib/typescript/Stepper/Stepper.d.ts +433 -101
  783. package/lib/typescript/Stepper/Stepper.d.ts.map +1 -1
  784. package/lib/typescript/Switch/Switch.d.ts +157 -69
  785. package/lib/typescript/Switch/Switch.d.ts.map +1 -1
  786. package/lib/typescript/Table/Table.d.ts +151 -201
  787. package/lib/typescript/Table/Table.d.ts.map +1 -1
  788. package/lib/typescript/TableOfContents/TableOfContents.d.ts +116 -46
  789. package/lib/typescript/TableOfContents/TableOfContents.d.ts.map +1 -1
  790. package/lib/typescript/Tabs/Tabs.d.ts +138 -88
  791. package/lib/typescript/Tabs/Tabs.d.ts.map +1 -1
  792. package/lib/typescript/TagsInput/TagsInput.d.ts +30 -42
  793. package/lib/typescript/TagsInput/TagsInput.d.ts.map +1 -1
  794. package/lib/typescript/Text/Text.d.ts +22 -4
  795. package/lib/typescript/Text/Text.d.ts.map +1 -1
  796. package/lib/typescript/TextInput/TextInput.d.ts +1 -51
  797. package/lib/typescript/TextInput/TextInput.d.ts.map +1 -1
  798. package/lib/typescript/Textarea/Textarea.d.ts +1 -51
  799. package/lib/typescript/Textarea/Textarea.d.ts.map +1 -1
  800. package/lib/typescript/ThemeIcon/ThemeIcon.d.ts +52 -39
  801. package/lib/typescript/ThemeIcon/ThemeIcon.d.ts.map +1 -1
  802. package/lib/typescript/Title/Title.d.ts +40 -25
  803. package/lib/typescript/Title/Title.d.ts.map +1 -1
  804. package/lib/typescript/Tooltip/Tooltip.d.ts +97 -41
  805. package/lib/typescript/Tooltip/Tooltip.d.ts.map +1 -1
  806. package/lib/typescript/Transition/Transition.native.d.ts.map +1 -1
  807. package/lib/typescript/Transition/use-overlay-transition.d.ts +1 -2
  808. package/lib/typescript/Transition/use-overlay-transition.d.ts.map +1 -1
  809. package/lib/typescript/Transition/use-overlay-transition.native.d.ts +3 -4
  810. package/lib/typescript/Transition/use-overlay-transition.native.d.ts.map +1 -1
  811. package/lib/typescript/Tree/Tree.d.ts +180 -50
  812. package/lib/typescript/Tree/Tree.d.ts.map +1 -1
  813. package/lib/typescript/TreeSelect/TreeSelect.d.ts +141 -182
  814. package/lib/typescript/TreeSelect/TreeSelect.d.ts.map +1 -1
  815. package/lib/typescript/Typography/Typography.d.ts +13 -7
  816. package/lib/typescript/Typography/Typography.d.ts.map +1 -1
  817. package/lib/typescript/UnstyledButton/UnstyledButton.d.ts +27 -20
  818. package/lib/typescript/UnstyledButton/UnstyledButton.d.ts.map +1 -1
  819. package/lib/typescript/VirtualList/VirtualList.d.ts.map +1 -1
  820. package/lib/typescript/VirtualList/VirtualList.shared.d.ts +1 -1
  821. package/lib/typescript/VirtualList/VirtualList.shared.d.ts.map +1 -1
  822. package/lib/typescript/VisuallyHidden/VisuallyHidden.d.ts +23 -19
  823. package/lib/typescript/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
  824. package/lib/typescript/control-system.d.ts +3 -0
  825. package/lib/typescript/control-system.d.ts.map +1 -1
  826. package/lib/typescript/index.d.ts +3 -2
  827. package/lib/typescript/index.d.ts.map +1 -1
  828. package/lib/typescript/internal/InlineControl.d.ts +80 -22
  829. package/lib/typescript/internal/InlineControl.d.ts.map +1 -1
  830. package/lib/typescript/internal/collapse-box.d.ts +3 -3
  831. package/lib/typescript/internal/collapse-box.d.ts.map +1 -1
  832. package/lib/typescript/internal/collapse-box.shared.d.ts +1 -1
  833. package/lib/typescript/internal/control-icon-size.d.ts +4 -3
  834. package/lib/typescript/internal/control-icon-size.d.ts.map +1 -1
  835. package/lib/typescript/internal/control-metrics.d.ts +50 -50
  836. package/lib/typescript/internal/floating-arrow.d.ts +6 -7
  837. package/lib/typescript/internal/floating-arrow.d.ts.map +1 -1
  838. package/lib/typescript/internal/focus-ring.d.ts +94 -0
  839. package/lib/typescript/internal/focus-ring.d.ts.map +1 -0
  840. package/lib/typescript/internal/gradient-shared.d.ts +9 -8
  841. package/lib/typescript/internal/gradient-shared.d.ts.map +1 -1
  842. package/lib/typescript/internal/gradient.d.ts +1 -0
  843. package/lib/typescript/internal/gradient.d.ts.map +1 -1
  844. package/lib/typescript/internal/gradient.native.d.ts +1 -0
  845. package/lib/typescript/internal/gradient.native.d.ts.map +1 -1
  846. package/lib/typescript/internal/motion.d.ts +77 -67
  847. package/lib/typescript/internal/motion.d.ts.map +1 -1
  848. package/lib/typescript/internal/resolve-theme-color.d.ts +9 -8
  849. package/lib/typescript/internal/resolve-theme-color.d.ts.map +1 -1
  850. package/lib/typescript/internal/style-props.d.ts +490 -664
  851. package/lib/typescript/internal/style-props.d.ts.map +1 -1
  852. package/lib/typescript/internal/theme-color-web.d.ts.map +1 -1
  853. package/lib/typescript/internal/use-icon-color.d.ts +1 -1
  854. package/lib/typescript/internal/use-icon-color.native.d.ts +1 -1
  855. package/lib/typescript/internal/use-looping-animation.d.ts +10 -2
  856. package/lib/typescript/internal/use-looping-animation.d.ts.map +1 -1
  857. package/lib/typescript/internal/use-looping-animation.native.d.ts +2 -2
  858. package/lib/typescript/internal/use-looping-animation.native.d.ts.map +1 -1
  859. package/lib/typescript/internal/variant-colors.d.ts +191 -199
  860. package/lib/typescript/internal/variant-colors.d.ts.map +1 -1
  861. package/package.json +14 -13
  862. package/src/Accordion/Accordion.tsx +55 -47
  863. package/src/ActionIcon/ActionIcon.tsx +116 -59
  864. package/src/Affix/Affix.tsx +16 -27
  865. package/src/Alert/Alert.tsx +57 -44
  866. package/src/Anchor/Anchor.tsx +13 -12
  867. package/src/AngleSlider/AngleSlider.tsx +87 -63
  868. package/src/AspectRatio/AspectRatio.tsx +9 -12
  869. package/src/Autocomplete/Autocomplete.tsx +7 -2
  870. package/src/Avatar/Avatar.tsx +44 -36
  871. package/src/BackgroundImage/BackgroundImage.tsx +9 -6
  872. package/src/Badge/Badge.tsx +55 -30
  873. package/src/Blockquote/Blockquote.tsx +55 -45
  874. package/src/Box/Box.tsx +2 -2
  875. package/src/Breadcrumbs/Breadcrumbs.tsx +13 -11
  876. package/src/Burger/Burger.tsx +33 -24
  877. package/src/Button/Button.tsx +106 -80
  878. package/src/Card/Card.tsx +52 -44
  879. package/src/Center/Center.tsx +3 -3
  880. package/src/Checkbox/CheckIcon.tsx +8 -5
  881. package/src/Checkbox/Checkbox.tsx +97 -62
  882. package/src/Chip/Chip.tsx +50 -45
  883. package/src/CloseButton/CloseButton.tsx +32 -13
  884. package/src/Code/Code.tsx +15 -11
  885. package/src/Collapse/Collapse.tsx +11 -6
  886. package/src/ColorInput/ColorInput.tsx +30 -24
  887. package/src/ColorPicker/ColorPicker.tsx +78 -79
  888. package/src/ColorSwatch/ColorSwatch.tsx +11 -14
  889. package/src/Combobox/Combobox.tsx +174 -153
  890. package/src/Combobox/OptionsDropdown.tsx +15 -2
  891. package/src/Combobox/index.ts +1 -0
  892. package/src/Container/Container.tsx +11 -15
  893. package/src/Dialog/Dialog.tsx +26 -16
  894. package/src/Drawer/Drawer.tsx +51 -33
  895. package/src/Fieldset/Fieldset.tsx +25 -17
  896. package/src/FileButton/FileButton.tsx +4 -1
  897. package/src/Flex/Flex.tsx +24 -21
  898. package/src/FocusTrap/FocusTrap.tsx +4 -3
  899. package/src/Grid/Grid.tsx +24 -27
  900. package/src/Group/Group.tsx +4 -4
  901. package/src/Highlight/Highlight.tsx +2 -2
  902. package/src/HoverCard/HoverCard.tsx +17 -32
  903. package/src/Image/Image.native.tsx +1 -1
  904. package/src/Image/createImage.tsx +96 -63
  905. package/src/Image/types.ts +5 -1
  906. package/src/Indicator/Indicator.tsx +41 -32
  907. package/src/Input/Input.native.tsx +536 -501
  908. package/src/Input/Input.tsx +110 -156
  909. package/src/Input/shared.tsx +198 -291
  910. package/src/Input/types.ts +15 -0
  911. package/src/InputBase/InputBase.tsx +3 -1
  912. package/src/Kbd/Kbd.tsx +13 -15
  913. package/src/KeyboardAvoidingView/KeyboardAvoidingView.native.tsx +2 -2
  914. package/src/KeyboardAwareScrollView/KeyboardAwareScrollView.native.tsx +34 -33
  915. package/src/List/List.tsx +17 -11
  916. package/src/Loader/Loader.tsx +33 -37
  917. package/src/LoadingOverlay/LoadingOverlay.tsx +3 -2
  918. package/src/Mark/Mark.tsx +12 -12
  919. package/src/Marquee/Marquee.tsx +58 -46
  920. package/src/MaskInput/MaskInput.tsx +2 -1
  921. package/src/Menu/Menu.tsx +110 -45
  922. package/src/Modal/Modal.tsx +38 -31
  923. package/src/Modal/drag/DragDismissHost.tsx +10 -5
  924. package/src/Modal/drag/DragDismissHost.web.tsx +2 -1
  925. package/src/Modal/drag/DragDismissOverlay.tsx +9 -5
  926. package/src/Modal/drag/DragDismissOverlay.web.tsx +6 -1
  927. package/src/Modal/drag/index.ts +7 -2
  928. package/src/Modal/drag/types.ts +15 -3
  929. package/src/Modal/drag/useDragDismiss.ts +29 -21
  930. package/src/Modal/modal-base-inner.native.tsx +3 -2
  931. package/src/Modal/modal-base-inner.tsx +1 -1
  932. package/src/Modal/modal-base.tsx +14 -12
  933. package/src/MultiSelect/MultiSelect.tsx +6 -1
  934. package/src/NativeSelect/NativeSelect.tsx +21 -32
  935. package/src/NavLink/NavLink.tsx +54 -47
  936. package/src/Notification/Notification.tsx +31 -30
  937. package/src/NumberFormatter/NumberFormatter.tsx +4 -3
  938. package/src/NumberInput/NumberInput.tsx +52 -42
  939. package/src/Overlay/Overlay.tsx +18 -14
  940. package/src/Pagination/Pagination.tsx +142 -123
  941. package/src/Paper/Paper.tsx +8 -9
  942. package/src/Paragraph/Paragraph.tsx +7 -7
  943. package/src/PasswordInput/PasswordInput.tsx +67 -67
  944. package/src/Pill/Pill.tsx +44 -32
  945. package/src/PillsInput/PillsInput.tsx +60 -31
  946. package/src/PinInput/PinInput.tsx +31 -23
  947. package/src/Popover/Popover.native.tsx +3 -4
  948. package/src/Popover/Popover.shared.tsx +32 -27
  949. package/src/Portal/OverlayHost.tsx +4 -4
  950. package/src/Portal/OverlayPortal.tsx +26 -0
  951. package/src/Portal/index.ts +4 -0
  952. package/src/Progress/Progress.tsx +77 -64
  953. package/src/Radio/Radio.tsx +128 -122
  954. package/src/Radio/RadioIcon.tsx +4 -10
  955. package/src/Rating/Rating.tsx +63 -42
  956. package/src/RollingNumber/RollingNumber.tsx +60 -28
  957. package/src/ScrollArea/ScrollArea.native.tsx +66 -59
  958. package/src/ScrollArea/ScrollArea.shared.ts +2 -2
  959. package/src/ScrollArea/ScrollArea.tsx +35 -33
  960. package/src/SegmentedControl/SegmentedControl.tsx +98 -53
  961. package/src/Select/Select.tsx +7 -2
  962. package/src/Separator/Separator.tsx +43 -36
  963. package/src/SimpleGrid/SimpleGrid.tsx +23 -24
  964. package/src/Skeleton/Skeleton.tsx +35 -16
  965. package/src/Slider/Slider.tsx +303 -227
  966. package/src/Spacer/Spacer.tsx +17 -41
  967. package/src/Spoiler/Spoiler.tsx +19 -13
  968. package/src/Stack/Stack.tsx +3 -3
  969. package/src/Stepper/Stepper.tsx +89 -73
  970. package/src/Switch/Switch.tsx +87 -73
  971. package/src/Table/Table.tsx +100 -77
  972. package/src/TableOfContents/TableOfContents.tsx +80 -74
  973. package/src/Tabs/Tabs.tsx +78 -66
  974. package/src/TagsInput/TagsInput.tsx +35 -4
  975. package/src/Text/Text.tsx +25 -10
  976. package/src/TextInput/TextInput.tsx +3 -1
  977. package/src/Textarea/Textarea.tsx +2 -2
  978. package/src/ThemeIcon/ThemeIcon.tsx +38 -23
  979. package/src/Title/Title.tsx +48 -23
  980. package/src/Tooltip/Tooltip.tsx +53 -32
  981. package/src/Transition/Transition.native.tsx +16 -19
  982. package/src/Transition/use-overlay-transition.native.ts +6 -12
  983. package/src/Transition/use-overlay-transition.ts +2 -2
  984. package/src/Tree/Tree.tsx +39 -44
  985. package/src/TreeSelect/TreeSelect.tsx +49 -24
  986. package/src/Typography/Typography.tsx +5 -7
  987. package/src/UnstyledButton/UnstyledButton.tsx +6 -5
  988. package/src/VirtualList/VirtualList.shared.ts +1 -1
  989. package/src/VirtualList/VirtualList.tsx +18 -6
  990. package/src/VisuallyHidden/VisuallyHidden.tsx +7 -9
  991. package/src/control-system.ts +5 -0
  992. package/src/index.ts +32 -12
  993. package/src/internal/ControlIconProvider.tsx +1 -1
  994. package/src/internal/InlineControl.tsx +23 -27
  995. package/src/internal/collapse-box.shared.ts +1 -1
  996. package/src/internal/collapse-box.tsx +15 -11
  997. package/src/internal/control-icon-size.ts +5 -8
  998. package/src/internal/control-metrics.ts +52 -52
  999. package/src/internal/floating-arrow.tsx +48 -40
  1000. package/src/internal/focus-ring.ts +92 -0
  1001. package/src/internal/gradient-shared.ts +23 -10
  1002. package/src/internal/gradient.native.tsx +2 -1
  1003. package/src/internal/gradient.tsx +1 -0
  1004. package/src/internal/motion.ts +204 -244
  1005. package/src/internal/resolve-theme-color.ts +10 -10
  1006. package/src/internal/style-props.ts +545 -390
  1007. package/src/internal/theme-color-web.ts +47 -27
  1008. package/src/internal/use-icon-color.native.ts +1 -1
  1009. package/src/internal/use-icon-color.ts +1 -1
  1010. package/src/internal/use-looping-animation.native.tsx +2 -2
  1011. package/src/internal/use-slot-text-wrapper.tsx +1 -1
  1012. package/src/internal/variant-colors.ts +187 -151
@@ -3,8 +3,11 @@ import { type TextInputProps as RNTextInputProps, TextInput } from "react-native
3
3
 
4
4
  import {
5
5
  getLineHeight,
6
+ type GetProps,
6
7
  registerFocusable,
8
+ styleable,
7
9
  styled,
10
+ type TamaguiElement,
8
11
  useNativeInputRef,
9
12
  withStaticProperties,
10
13
  } from "@knitui/core";
@@ -14,11 +17,11 @@ import { controlMetrics as M } from "../internal/control-metrics";
14
17
  import { pick } from "../internal/styles";
15
18
  import type { InputNativeProps } from "./InputNativeProps";
16
19
  import {
17
- DEFAULT_PLACEHOLDER_COLOR,
18
- DEFAULT_SELECTION_COLOR,
19
20
  getInputSectionInsets,
20
21
  getTextareaPaddingVertical,
21
22
  INPUT_CHROME_SLOTS,
23
+ INPUT_HOST_CONFIG,
24
+ INPUT_HOST_STATIC,
22
25
  InputChrome,
23
26
  InputClearButton,
24
27
  InputDescription,
@@ -28,7 +31,6 @@ import {
28
31
  InputWrapper,
29
32
  InputWrapperContext,
30
33
  registerInputFocusable,
31
- styledBody,
32
34
  } from "./shared";
33
35
  import type {
34
36
  InputKeyDownPayload,
@@ -39,11 +41,27 @@ import type {
39
41
 
40
42
  // The native host is `styled(TextInput, …)` rendered directly — the same
41
43
  // pattern Tamagui's own `Input` uses. The wrapper-owned chrome (border, sections,
42
- // states) lives in `InputChrome`; this host stays visually bare via `unstyled`.
43
- // Styling flows through Tamagui's `styled()` internals (size/unstyled variants,
44
- // tokens, the `accept` color mapping), and the underlying RN TextInput identity
45
- // stays stable across renders, so the controlled input is state-safe.
46
- const InputHostStyle = styled(TextInput, styledBody[0], styledBody[1]);
44
+ // states) lives in `InputChrome`; this host carries only the bare text skin
45
+ // (`INPUT_HOST_CONFIG`). `isInput` makes `placeholderTextColor` / `selectionColor`
46
+ // / `cursorColor` theme-resolved colour props, and the underlying RN TextInput
47
+ // identity stays stable across renders, so the controlled input is state-safe.
48
+ // RN 0.88's TextInput type names a private instance class (`_TextInputInstance`)
49
+ // that declaration emit can't reference, so the host is typed with a portable ref.
50
+ const TextInputHost = TextInput as React.ComponentType<
51
+ RNTextInputProps & React.RefAttributes<TamaguiElement>
52
+ >;
53
+ const InputHostStyle = styled(TextInputHost, INPUT_HOST_CONFIG, INPUT_HOST_STATIC);
54
+
55
+ const FILL_HEIGHT = { height: "100%" } as const;
56
+ const NO_FONT_PADDING = { includeFontPadding: false } as const;
57
+ const NO_POINTER_EVENTS = { pointerEvents: "none" } as const;
58
+ // RN 0.88 dropped the `verticalAlign` TextInput prop; it survives as our alias.
59
+ const VERTICAL_ALIGN_TO_TEXT_ALIGN_VERTICAL = {
60
+ auto: "auto",
61
+ top: "top",
62
+ bottom: "bottom",
63
+ middle: "center",
64
+ } as const;
47
65
 
48
66
  // Native key payloads have no DOM event to defer to; consumers still call
49
67
  // `preventDefault`/`stopPropagation`, so hand them a no-op.
@@ -57,10 +75,22 @@ type NativeFocusEvent = Parameters<NonNullable<RNTextInputProps["onFocus"]>>[0];
57
75
  type NativeBlurEvent = Parameters<NonNullable<RNTextInputProps["onBlur"]>>[0];
58
76
  type NativeChangeKey = NativeKeyPressEvent["nativeEvent"]["key"];
59
77
  type OverlappingNativeProps = "autoCorrect" | "autoCapitalize" | "spellCheck";
60
- type NativeInputProps = InputSharedProps &
78
+ type NativeInputOwnProps = InputSharedProps &
61
79
  Omit<InputNativeProps, OverlappingNativeProps> & {
62
80
  dirname?: string;
81
+ /** `"textarea"` renders the multiline host (web parity with `render`). */
82
+ render?: "input" | "textarea" | "select" | "button";
83
+ /** Host tag override (web); native always renders a `TextInput`. */
84
+ component?: "input" | "textarea" | "select" | "button";
85
+ inputMode?: RNTextInputProps["inputMode"];
86
+ onFocus?: RNTextInputProps["onFocus"];
87
+ onBlur?: RNTextInputProps["onBlur"];
88
+ onPress?: RNTextInputProps["onPress"];
89
+ children?: React.ReactNode;
63
90
  };
91
+ /** The host frame's style props (padding, text styles, input colours) stay public. */
92
+ type NativeInputProps = Omit<GetProps<typeof InputHostStyle>, keyof NativeInputOwnProps> &
93
+ NativeInputOwnProps;
64
94
  // The host is a bare RN TextInput. Keep the prop object constrained to RN's
65
95
  // TextInput surface plus Tamagui v2's normalized ARIA state props.
66
96
  type NativeInputHostProps = RNTextInputProps & {
@@ -88,507 +118,512 @@ const getNativeLineHeight = (size: InputSharedProps["size"]) => {
88
118
  * A cross-platform input component for React Native.
89
119
  * @see — Docs https://tamagui.dev/ui/inputs#input
90
120
  */
91
- const InputComponent = InputHostStyle.styleable<NativeInputProps>((props, forwardedRef) => {
92
- const {
93
- // Cross-platform props we need to convert
94
- type,
95
- disabled,
96
- readOnly,
97
- id,
98
- error,
99
- required,
100
- size = "md",
101
- variant = "default",
102
- radius,
103
- pointer,
104
- withAria: _withAria = true,
105
- wrapperProps,
106
- styles,
107
- rootRef,
108
- leftSection,
109
- leftSectionWidth,
110
- leftSectionProps,
111
- leftSectionPointerEvents = "none",
112
- rightSection,
113
- rightSectionWidth,
114
- rightSectionProps,
115
- rightSectionPointerEvents = "none",
116
- inputSize,
117
- __clearSection,
118
- __clearable,
119
- __clearSectionMode,
120
- __defaultRightSection,
121
- loading = false,
122
- loadingPosition = "right",
123
- rows,
124
- autosize,
125
- minRows,
126
- maxRows,
127
- autoComplete,
128
- autoFocus,
129
- enterKeyHint,
130
- value,
131
- defaultValue,
132
-
133
- // Callbacks
134
- onChange,
135
- onInput,
136
- onKeyDown,
137
- onChangeText,
138
- onSubmitEditing,
139
- onSelectionChange,
140
- onEndEditing,
141
- onContentSizeChange,
142
- onFocus,
143
- onBlur,
144
- onScroll,
145
- onKeyPress: onKeyPressProp,
146
- onPress: onPressProp,
147
- selection,
148
-
149
- // Native-only props (pass through directly)
150
- keyboardAppearance,
151
- returnKeyType: returnKeyTypeProp,
152
- submitBehavior,
153
- blurOnSubmit,
154
- caretHidden,
155
- contextMenuHidden,
156
- selectTextOnFocus,
157
- secureTextEntry: secureTextEntryProp,
158
- maxFontSizeMultiplier,
159
- allowFontScaling,
160
- multiline: multilineProp,
161
- keyboardType: keyboardTypeProp,
162
- inputMode: inputModeProp,
163
- autoCapitalize: autoCapitalizeProp,
164
- autoCorrect: autoCorrectProp,
165
- autoFocusNative,
166
- textContentType,
167
-
168
- // iOS-only props
169
- clearButtonMode,
170
- clearTextOnFocus,
171
- enablesReturnKeyAutomatically,
172
- dataDetectorTypes,
173
- scrollEnabled,
174
- passwordRules,
175
- rejectResponderTermination,
176
- spellCheck,
177
- lineBreakStrategyIOS,
178
- lineBreakModeIOS,
179
- smartInsertDelete,
180
- inputAccessoryViewID,
181
- inputAccessoryViewButtonLabel,
182
- disableKeyboardShortcuts,
183
-
184
- // Android-only props
185
- importantForAutofill,
186
- disableFullscreenUI,
187
- inlineImageLeft,
188
- inlineImagePadding,
189
- returnKeyLabel,
190
- textBreakStrategy,
191
- textAlignVertical,
192
- verticalAlign,
193
- showSoftInputOnFocus,
194
- numberOfLines: numberOfLinesProp,
195
-
196
- // Host props to filter out on native
197
- dirname: _dirname,
198
- min: _min,
199
- max: _max,
200
- minLength: _minLength,
201
- multiple: _multiple,
202
- name: _name,
203
- pattern: _pattern,
204
- step: _step,
205
- render,
206
-
207
- // Removes the host chrome so the input renders bare (composite inputs).
208
- unstyled,
209
-
210
- ...rest
211
- } = props;
212
-
213
- const { ref, composedRef } = useNativeInputRef(forwardedRef);
214
- const [focused, setFocused] = React.useState(false);
215
- const wrapperContext = React.useContext(InputWrapperContext);
216
- const inputId = wrapperContext?.inputId || id;
217
- const inputError = error ?? wrapperContext?.error;
218
- const effectiveSize = size || wrapperContext?.size || "md";
219
-
220
- void inputSize;
221
- void required;
222
- // Destructured purely to keep it out of `rest` (and thus off the host) — it is
223
- // not a valid TextInput prop, so it must never leak onto the native element.
224
- void inputAccessoryViewButtonLabel;
225
-
226
- // Convert string input `type` to native keyboard props, but only when the
227
- // explicit native props weren't set. Memoized so a keystroke-driven re-render
228
- // doesn't rebuild the switch or hand the host a fresh value object.
229
- const { secureTextEntry, keyboardType, inputMode } = React.useMemo(() => {
230
- if (secureTextEntryProp || keyboardTypeProp || inputModeProp) {
231
- return {
232
- secureTextEntry: secureTextEntryProp ?? false,
233
- keyboardType: keyboardTypeProp ?? ("default" as RNTextInputProps["keyboardType"]),
234
- inputMode: inputModeProp,
235
- };
236
- }
237
- switch (type) {
238
- case "password":
239
- return { secureTextEntry: true, keyboardType: "default" as const, inputMode: undefined };
240
- case "email":
121
+ const InputComponent = styleable<NativeInputProps>(
122
+ InputHostStyle,
123
+ function Input(props, forwardedRef) {
124
+ const {
125
+ // Cross-platform props we need to convert
126
+ type,
127
+ disabled,
128
+ readOnly,
129
+ id,
130
+ error,
131
+ required,
132
+ size = "md",
133
+ variant = "default",
134
+ radius,
135
+ pointer,
136
+ withAria: _withAria = true,
137
+ wrapperProps,
138
+ styles,
139
+ rootRef,
140
+ leftSection,
141
+ leftSectionWidth,
142
+ leftSectionProps,
143
+ leftSectionPointerEvents = "none",
144
+ rightSection,
145
+ rightSectionWidth,
146
+ rightSectionProps,
147
+ rightSectionPointerEvents = "none",
148
+ inputSize,
149
+ __clearSection,
150
+ __clearable,
151
+ __clearSectionMode,
152
+ __defaultRightSection,
153
+ loading = false,
154
+ loadingPosition = "right",
155
+ rows,
156
+ autosize,
157
+ minRows,
158
+ maxRows,
159
+ autoComplete,
160
+ autoFocus,
161
+ enterKeyHint,
162
+ value,
163
+ defaultValue,
164
+
165
+ // Callbacks
166
+ onChange,
167
+ onInput,
168
+ onKeyDown,
169
+ onChangeText,
170
+ onSubmitEditing,
171
+ onSelectionChange,
172
+ onEndEditing,
173
+ onContentSizeChange,
174
+ onFocus,
175
+ onBlur,
176
+ onScroll,
177
+ onKeyPress: onKeyPressProp,
178
+ onPress: onPressProp,
179
+ selection,
180
+
181
+ // Native-only props (pass through directly)
182
+ keyboardAppearance,
183
+ returnKeyType: returnKeyTypeProp,
184
+ submitBehavior,
185
+ blurOnSubmit,
186
+ caretHidden,
187
+ contextMenuHidden,
188
+ selectTextOnFocus,
189
+ secureTextEntry: secureTextEntryProp,
190
+ maxFontSizeMultiplier,
191
+ allowFontScaling,
192
+ multiline: multilineProp,
193
+ keyboardType: keyboardTypeProp,
194
+ inputMode: inputModeProp,
195
+ autoCapitalize: autoCapitalizeProp,
196
+ autoCorrect: autoCorrectProp,
197
+ autoFocusNative,
198
+ textContentType,
199
+
200
+ // iOS-only props
201
+ clearButtonMode,
202
+ clearTextOnFocus,
203
+ enablesReturnKeyAutomatically,
204
+ dataDetectorTypes,
205
+ scrollEnabled,
206
+ passwordRules,
207
+ rejectResponderTermination,
208
+ spellCheck,
209
+ lineBreakStrategyIOS,
210
+ lineBreakModeIOS,
211
+ smartInsertDelete,
212
+ inputAccessoryViewID,
213
+ inputAccessoryViewButtonLabel,
214
+ disableKeyboardShortcuts,
215
+
216
+ // Android-only props
217
+ importantForAutofill,
218
+ disableFullscreenUI,
219
+ inlineImageLeft,
220
+ inlineImagePadding,
221
+ returnKeyLabel,
222
+ textBreakStrategy,
223
+ textAlignVertical,
224
+ verticalAlign,
225
+ showSoftInputOnFocus,
226
+ numberOfLines: numberOfLinesProp,
227
+
228
+ // Host props to filter out on native
229
+ dirname: _dirname,
230
+ min: _min,
231
+ max: _max,
232
+ minLength: _minLength,
233
+ multiple: _multiple,
234
+ name: _name,
235
+ pattern: _pattern,
236
+ step: _step,
237
+ render,
238
+ component: _component,
239
+ style,
240
+
241
+ // Removes the host chrome so the input renders bare (composite inputs).
242
+ unstyled,
243
+
244
+ ...rest
245
+ } = props;
246
+
247
+ const { ref, composedRef } = useNativeInputRef(forwardedRef);
248
+ const [focused, setFocused] = React.useState(false);
249
+ const wrapperContext = React.useContext(InputWrapperContext);
250
+ const inputId = wrapperContext?.inputId || id;
251
+ const inputError = error ?? wrapperContext?.error;
252
+ const effectiveSize = size || wrapperContext?.size || "md";
253
+
254
+ void inputSize;
255
+ void required;
256
+ // Destructured purely to keep it out of `rest` (and thus off the host) — it is
257
+ // not a valid TextInput prop, so it must never leak onto the native element.
258
+ void inputAccessoryViewButtonLabel;
259
+
260
+ // Convert string input `type` to native keyboard props, but only when the
261
+ // explicit native props weren't set. Memoized so a keystroke-driven re-render
262
+ // doesn't rebuild the switch or hand the host a fresh value object.
263
+ const { secureTextEntry, keyboardType, inputMode } = React.useMemo(() => {
264
+ if (secureTextEntryProp || keyboardTypeProp || inputModeProp) {
241
265
  return {
242
- secureTextEntry: false,
243
- keyboardType: "email-address" as const,
244
- inputMode: "email" as const,
266
+ secureTextEntry: secureTextEntryProp ?? false,
267
+ keyboardType: keyboardTypeProp ?? ("default" as RNTextInputProps["keyboardType"]),
268
+ inputMode: inputModeProp,
245
269
  };
246
- case "tel":
247
- return {
248
- secureTextEntry: false,
249
- keyboardType: "phone-pad" as const,
250
- inputMode: "tel" as const,
251
- };
252
- case "number":
253
- return {
254
- secureTextEntry: false,
255
- keyboardType: "numeric" as const,
256
- inputMode: "numeric" as const,
257
- };
258
- case "url":
259
- return { secureTextEntry: false, keyboardType: "url" as const, inputMode: "url" as const };
260
- case "search":
261
- return {
262
- secureTextEntry: false,
263
- keyboardType: "default" as const,
264
- inputMode: "search" as const,
265
- };
266
- default:
267
- return { secureTextEntry: false, keyboardType: "default" as const, inputMode: undefined };
268
- }
269
- }, [type, secureTextEntryProp, keyboardTypeProp, inputModeProp]);
270
-
271
- // Use explicit returnKeyType if provided, otherwise convert enterKeyHint.
272
- const returnKeyType = React.useMemo<RNTextInputProps["returnKeyType"]>(() => {
273
- if (returnKeyTypeProp) return returnKeyTypeProp;
274
- switch (enterKeyHint) {
275
- case "done":
276
- return "done";
277
- case "go":
278
- return "go";
279
- case "next":
280
- return "next";
281
- case "search":
282
- return "search";
283
- case "send":
284
- return "send";
285
- default:
286
- return undefined;
287
- }
288
- }, [returnKeyTypeProp, enterKeyHint]);
289
-
290
- const multiline = multilineProp ?? (render === "textarea" || !!(rows && rows > 1));
291
- // Multiline height is controlled entirely via style (minHeight/maxHeight bounds
292
- // below) on BOTH platforms, so DON'T auto-derive `numberOfLines` from
293
- // `rows`/`minRows`: on Android `numberOfLines` calls `EditText.setLines()`, which
294
- // pins the line count and fights the style height (iOS ignores it for multiline)
295
- // — that conflict makes a "fixed N rows" textarea render broken on Android while
296
- // working on iOS. Only forward an explicitly consumer-provided value.
297
- const numberOfLines = numberOfLinesProp;
298
-
299
- // Row counts → pixel bounds via the per-size font line height. The multiline host
300
- // is sized with minHeight/maxHeight ONLY (never an explicit `height`), letting the
301
- // native TextInput size itself to its content between those bounds — the reliable
302
- // cross-platform approach. Driving `height` from `onContentSizeChange` instead
303
- // collapses/oscillates on Android, because the reported contentSize feeds back
304
- // into the height we set (iOS tolerates it, which is why it only broke on Android).
305
- // • autosize → grow from minRows (minHeight) up to maxRows (maxHeight), then scroll
306
- // • fixed rows → pinned to minRows (minHeight === maxHeight); content scrolls
307
- const { multilineMinHeight, multilineMaxHeight } = React.useMemo(() => {
308
- if (!multiline) return { multilineMinHeight: undefined, multilineMaxHeight: undefined };
309
- const lineHeight = getNativeLineHeight(effectiveSize);
310
- // React Native uses the border-box model, so the host's vertical padding is
311
- // SUBTRACTED from minHeight/maxHeight to get the text area. Add it back (top +
312
- // bottom) so `minRows`/`maxRows` count FULL text lines — matching the web
313
- // autosize hook, which likewise adds the padding to its row-count height.
314
- // Without this a 2-row field's padding eats into the rows and shows ~1 line.
315
- const chrome = getTextareaPaddingVertical(effectiveSize) * 2;
316
- const minH = typeof minRows === "number" ? lineHeight * minRows + chrome : undefined;
317
- const maxH = typeof maxRows === "number" ? lineHeight * maxRows + chrome : undefined;
318
- return {
319
- multilineMinHeight: minH,
320
- // Autosize caps at maxRows (unbounded when maxRows is unset). A non-autosize
321
- // field with a row count is FIXED to that height and scrolls its overflow.
322
- multilineMaxHeight: autosize ? maxH : minH,
323
- };
324
- }, [multiline, effectiveSize, minRows, maxRows, autosize]);
325
-
326
- // Normalize the string `autoCorrect`/`autoCapitalize` props to native values.
327
- const autoCorrect =
328
- autoCorrectProp === "on" ? true : autoCorrectProp === "off" ? false : autoCorrectProp;
329
- const autoCapitalize =
330
- autoCapitalizeProp === "on"
331
- ? "sentences"
332
- : autoCapitalizeProp === "off"
333
- ? "none"
334
- : autoCapitalizeProp;
335
-
336
- // Register focusable
337
- React.useEffect(() => {
338
- if (!inputId || disabled) return;
339
- const focusable = {
340
- focusAndSelect: () => ref.current?.focus(),
341
- focus: () => ref.current?.focus(),
342
- };
343
- const unregisterTamaguiFocusable = registerFocusable(inputId, focusable);
344
- const unregisterInputFocusable = registerInputFocusable(inputId, focusable);
270
+ }
271
+ switch (type) {
272
+ case "password":
273
+ return { secureTextEntry: true, keyboardType: "default" as const, inputMode: undefined };
274
+ case "email":
275
+ return {
276
+ secureTextEntry: false,
277
+ keyboardType: "email-address" as const,
278
+ inputMode: "email" as const,
279
+ };
280
+ case "tel":
281
+ return {
282
+ secureTextEntry: false,
283
+ keyboardType: "phone-pad" as const,
284
+ inputMode: "tel" as const,
285
+ };
286
+ case "number":
287
+ return {
288
+ secureTextEntry: false,
289
+ keyboardType: "numeric" as const,
290
+ inputMode: "numeric" as const,
291
+ };
292
+ case "url":
293
+ return {
294
+ secureTextEntry: false,
295
+ keyboardType: "url" as const,
296
+ inputMode: "url" as const,
297
+ };
298
+ case "search":
299
+ return {
300
+ secureTextEntry: false,
301
+ keyboardType: "default" as const,
302
+ inputMode: "search" as const,
303
+ };
304
+ default:
305
+ return { secureTextEntry: false, keyboardType: "default" as const, inputMode: undefined };
306
+ }
307
+ }, [type, secureTextEntryProp, keyboardTypeProp, inputModeProp]);
308
+
309
+ // Use explicit returnKeyType if provided, otherwise convert enterKeyHint.
310
+ const returnKeyType = React.useMemo<RNTextInputProps["returnKeyType"]>(() => {
311
+ if (returnKeyTypeProp) return returnKeyTypeProp;
312
+ switch (enterKeyHint) {
313
+ case "done":
314
+ return "done";
315
+ case "go":
316
+ return "go";
317
+ case "next":
318
+ return "next";
319
+ case "search":
320
+ return "search";
321
+ case "send":
322
+ return "send";
323
+ default:
324
+ return undefined;
325
+ }
326
+ }, [returnKeyTypeProp, enterKeyHint]);
327
+
328
+ const multiline = multilineProp ?? (render === "textarea" || !!(rows && rows > 1));
329
+ // Multiline height is controlled entirely via style (minHeight/maxHeight bounds
330
+ // below) on BOTH platforms, so DON'T auto-derive `numberOfLines` from
331
+ // `rows`/`minRows`: on Android `numberOfLines` calls `EditText.setLines()`, which
332
+ // pins the line count and fights the style height (iOS ignores it for multiline)
333
+ // — that conflict makes a "fixed N rows" textarea render broken on Android while
334
+ // working on iOS. Only forward an explicitly consumer-provided value.
335
+ const numberOfLines = numberOfLinesProp;
336
+
337
+ // Row counts → pixel bounds via the per-size font line height. The multiline host
338
+ // is sized with minHeight/maxHeight ONLY (never an explicit `height`), letting the
339
+ // native TextInput size itself to its content between those bounds — the reliable
340
+ // cross-platform approach. Driving `height` from `onContentSizeChange` instead
341
+ // collapses/oscillates on Android, because the reported contentSize feeds back
342
+ // into the height we set (iOS tolerates it, which is why it only broke on Android).
343
+ // • autosize → grow from minRows (minHeight) up to maxRows (maxHeight), then scroll
344
+ // • fixed rows → pinned to minRows (minHeight === maxHeight); content scrolls
345
+ const { multilineMinHeight, multilineMaxHeight } = React.useMemo(() => {
346
+ if (!multiline) return { multilineMinHeight: undefined, multilineMaxHeight: undefined };
347
+ const lineHeight = getNativeLineHeight(effectiveSize);
348
+ // React Native uses the border-box model, so the host's vertical padding is
349
+ // SUBTRACTED from minHeight/maxHeight to get the text area. Add it back (top +
350
+ // bottom) so `minRows`/`maxRows` count FULL text lines — matching the web
351
+ // autosize hook, which likewise adds the padding to its row-count height.
352
+ // Without this a 2-row field's padding eats into the rows and shows ~1 line.
353
+ const chrome = getTextareaPaddingVertical(effectiveSize) * 2;
354
+ const minH = typeof minRows === "number" ? lineHeight * minRows + chrome : undefined;
355
+ const maxH = typeof maxRows === "number" ? lineHeight * maxRows + chrome : undefined;
356
+ return {
357
+ multilineMinHeight: minH,
358
+ // Autosize caps at maxRows (unbounded when maxRows is unset). A non-autosize
359
+ // field with a row count is FIXED to that height and scrolls its overflow.
360
+ multilineMaxHeight: autosize ? maxH : minH,
361
+ };
362
+ }, [multiline, effectiveSize, minRows, maxRows, autosize]);
363
+
364
+ // Normalize the string `autoCorrect`/`autoCapitalize` props to native values.
365
+ const autoCorrect =
366
+ autoCorrectProp === "on" ? true : autoCorrectProp === "off" ? false : autoCorrectProp;
367
+ const autoCapitalize =
368
+ autoCapitalizeProp === "on"
369
+ ? "sentences"
370
+ : autoCapitalizeProp === "off"
371
+ ? "none"
372
+ : autoCapitalizeProp;
373
+
374
+ // Register focusable
375
+ React.useEffect(() => {
376
+ if (!inputId || disabled) return;
377
+ const focusable = {
378
+ focusAndSelect: () => ref.current?.focus(),
379
+ focus: () => ref.current?.focus(),
380
+ };
381
+ const unregisterTamaguiFocusable = registerFocusable(inputId, focusable);
382
+ const unregisterInputFocusable = registerInputFocusable(inputId, focusable);
345
383
 
346
- return () => {
347
- unregisterTamaguiFocusable?.();
348
- unregisterInputFocusable();
349
- };
350
- }, [inputId, disabled, ref]);
351
-
352
- // Every handler below is wrapped in `useCallbackRef`: a stable identity that
353
- // always invokes the latest closure. The native `TextInput` therefore keeps the
354
- // SAME listener props across every keystroke-driven re-render, so the controlled
355
- // value stays state-safe and PinInput's memoized per-field props never churn.
356
- const focusInput = useCallbackRef(() => {
357
- if (!disabled) {
358
- ref.current?.focus();
359
- }
360
- });
361
-
362
- // Bridge cross-platform onChange/onInput callbacks to native onChangeText.
363
- const handleChangeText = useCallbackRef((text: string) => {
364
- onChangeText?.(text);
365
- onChange?.({
366
- target: { value: text },
367
- currentTarget: { value: text },
368
- type: "change",
369
- } satisfies InputValueChangePayload);
370
- onInput?.({
371
- target: { value: text },
372
- currentTarget: { value: text },
373
- type: "input",
374
- } satisfies InputValueInputPayload);
375
- });
376
-
377
- // Bridge onKeyDown via onKeyPress for Backspace + printable keys. Enter is
378
- // emitted ONLY from onSubmitEditing — emitting it here too would fire onKeyDown
379
- // twice for a single return press (one keypress + one submit).
380
- const handleKeyPress = useCallbackRef((e: NativeKeyPressEvent) => {
381
- onKeyPressProp?.(e);
382
- if (!onKeyDown) return;
383
- const key: NativeChangeKey = e.nativeEvent.key;
384
- // RN reports named keys ("Enter"/"Backspace") and the literal typed character
385
- // (length 1, including " "). Anything else is a non-text key we don't bridge.
386
- if (key === "Backspace" || key.length === 1) {
387
- onKeyDown({
388
- key,
384
+ return () => {
385
+ unregisterTamaguiFocusable?.();
386
+ unregisterInputFocusable();
387
+ };
388
+ }, [inputId, disabled, ref]);
389
+
390
+ // Every handler below is wrapped in `useCallbackRef`: a stable identity that
391
+ // always invokes the latest closure. The native `TextInput` therefore keeps the
392
+ // SAME listener props across every keystroke-driven re-render, so the controlled
393
+ // value stays state-safe and PinInput's memoized per-field props never churn.
394
+ const focusInput = useCallbackRef(() => {
395
+ if (!disabled) {
396
+ ref.current?.focus();
397
+ }
398
+ });
399
+
400
+ // Bridge cross-platform onChange/onInput callbacks to native onChangeText.
401
+ const handleChangeText = useCallbackRef((text: string) => {
402
+ onChangeText?.(text);
403
+ onChange?.({
404
+ target: { value: text },
405
+ currentTarget: { value: text },
406
+ type: "change",
407
+ } satisfies InputValueChangePayload);
408
+ onInput?.({
409
+ target: { value: text },
410
+ currentTarget: { value: text },
411
+ type: "input",
412
+ } satisfies InputValueInputPayload);
413
+ });
414
+
415
+ // Bridge onKeyDown via onKeyPress for Backspace + printable keys. Enter is
416
+ // emitted ONLY from onSubmitEditing — emitting it here too would fire onKeyDown
417
+ // twice for a single return press (one keypress + one submit).
418
+ const handleKeyPress = useCallbackRef((e: NativeKeyPressEvent) => {
419
+ onKeyPressProp?.(e);
420
+ if (!onKeyDown) return;
421
+ const key: NativeChangeKey = e.nativeEvent.key;
422
+ // RN reports named keys ("Enter"/"Backspace") and the literal typed character
423
+ // (length 1, including " "). Anything else is a non-text key we don't bridge.
424
+ if (key === "Backspace" || key.length === 1) {
425
+ onKeyDown({
426
+ key,
427
+ type: "keydown",
428
+ preventDefault: noop,
429
+ stopPropagation: noop,
430
+ } satisfies InputKeyDownPayload);
431
+ }
432
+ });
433
+
434
+ const handleSubmitEditing = useCallbackRef((e: NativeSubmitEvent) => {
435
+ onKeyDown?.({
436
+ key: "Enter",
389
437
  type: "keydown",
390
438
  preventDefault: noop,
391
439
  stopPropagation: noop,
392
440
  } satisfies InputKeyDownPayload);
393
- }
394
- });
395
-
396
- const handleSubmitEditing = useCallbackRef((e: NativeSubmitEvent) => {
397
- onKeyDown?.({
398
- key: "Enter",
399
- type: "keydown",
400
- preventDefault: noop,
401
- stopPropagation: noop,
402
- } satisfies InputKeyDownPayload);
403
- onSubmitEditing?.(e);
404
- });
405
-
406
- const handleSelectionChange = useCallbackRef((e: NativeSelectionEvent) => {
407
- onSelectionChange?.(e);
408
- });
409
-
410
- // Pure passthrough — height is no longer derived from content size (see the
411
- // multilineMinHeight/multilineMaxHeight note above).
412
- const handleContentSizeChange = useCallbackRef((e: NativeContentSizeEvent) => {
413
- onContentSizeChange?.(e);
414
- });
415
-
416
- const handleFocus = useCallbackRef((e: NativeFocusEvent) => {
417
- setFocused(true);
418
- onFocus?.(e);
419
- });
420
-
421
- const handleBlur = useCallbackRef((e: NativeBlurEvent) => {
422
- setFocused(false);
423
- onBlur?.(e);
424
- });
425
-
426
- // Press-trigger mode: a readOnly input used as a press target (the picker
427
- // trigger pattern — `Popover.Target` clones an `onPress` onto the field) can't
428
- // take its press on the TextInput host. Android maps `editable={false}` to
429
- // `setEnabled(false)`, and RN demotes a disabled view's pointer events to
430
- // `box-none` (`TouchTargetHelper`), so the host can never be the touch target
431
- // and the press would silently never fire there. Route the press to the root
432
- // frame instead (a plain View, always pressable) and make the host transparent
433
- // to touches so the whole field is one uniform tap target on both platforms.
434
- const isPressTrigger = !!readOnly && !disabled && typeof onPressProp === "function";
435
-
436
- const handleRootPress = useCallbackRef((event: unknown) => {
437
- focusInput();
438
- if (isPressTrigger) {
439
- (onPressProp as (e: unknown) => void)(event);
440
- }
441
- });
442
-
443
- const nativeInputProps: NativeInputHostProps = {
444
- editable: !disabled && !readOnly,
445
- value: value == null ? undefined : String(value),
446
- defaultValue: defaultValue == null ? undefined : String(defaultValue),
447
- secureTextEntry,
448
- keyboardType,
449
- keyboardAppearance,
450
- inputMode,
451
- returnKeyType,
452
- multiline,
453
- numberOfLines,
454
- selection,
455
- autoComplete: autoComplete as RNTextInputProps["autoComplete"],
456
- autoFocus: autoFocusNative ?? autoFocus,
457
- "aria-disabled": disabled || undefined,
458
- "aria-invalid": _withAria && inputError ? true : undefined,
459
- "aria-describedby": _withAria ? wrapperContext?.describedBy : undefined,
460
-
461
- // callbacks
462
- onChangeText: handleChangeText,
463
- onKeyPress: onKeyPressProp || onKeyDown ? handleKeyPress : undefined,
464
- onSubmitEditing: onKeyDown || onSubmitEditing ? handleSubmitEditing : undefined,
465
- onSelectionChange: onSelectionChange ? handleSelectionChange : undefined,
466
- onFocus: handleFocus,
467
- onBlur: handleBlur,
468
- onEndEditing,
469
- onContentSizeChange: onContentSizeChange ? handleContentSizeChange : undefined,
470
- onScroll,
471
-
472
- // cross-platform native props
473
- submitBehavior,
474
- blurOnSubmit,
475
- caretHidden,
476
- contextMenuHidden,
477
- selectTextOnFocus,
478
- maxFontSizeMultiplier,
479
- allowFontScaling,
480
- autoCapitalize,
481
- autoCorrect,
482
- textContentType,
483
-
484
- // iOS-only props
485
- clearButtonMode,
486
- clearTextOnFocus,
487
- enablesReturnKeyAutomatically,
488
- dataDetectorTypes,
489
- scrollEnabled,
490
- passwordRules,
491
- rejectResponderTermination,
492
- spellCheck,
493
- lineBreakStrategyIOS,
494
- lineBreakModeIOS,
495
- smartInsertDelete,
496
- inputAccessoryViewID,
497
- // inputAccessoryViewButtonLabel is NOT a TextInput prop — never forwarded.
498
- disableKeyboardShortcuts,
499
-
500
- // Android-only props
501
- importantForAutofill,
502
- disableFullscreenUI,
503
- inlineImageLeft,
504
- inlineImagePadding,
505
- returnKeyLabel,
506
- textBreakStrategy,
507
- // Top-align multiline text by default so the explicit vertical padding is
508
- // measured from the top edge consistently (Android otherwise centers it). A
509
- // consumer-passed `textAlignVertical` still wins.
510
- textAlignVertical: textAlignVertical ?? (multiline ? "top" : undefined),
511
- verticalAlign,
512
- showSoftInputOnFocus,
513
- };
441
+ onSubmitEditing?.(e);
442
+ });
443
+
444
+ const handleSelectionChange = useCallbackRef((e: NativeSelectionEvent) => {
445
+ onSelectionChange?.(e);
446
+ });
447
+
448
+ // Pure passthrough — height is no longer derived from content size (see the
449
+ // multilineMinHeight/multilineMaxHeight note above).
450
+ const handleContentSizeChange = useCallbackRef((e: NativeContentSizeEvent) => {
451
+ onContentSizeChange?.(e);
452
+ });
453
+
454
+ const handleFocus = useCallbackRef((e: NativeFocusEvent) => {
455
+ setFocused(true);
456
+ onFocus?.(e);
457
+ });
458
+
459
+ const handleBlur = useCallbackRef((e: NativeBlurEvent) => {
460
+ setFocused(false);
461
+ onBlur?.(e);
462
+ });
463
+
464
+ // Press-trigger mode: a readOnly input used as a press target (the picker
465
+ // trigger pattern — `Popover.Target` clones an `onPress` onto the field) can't
466
+ // take its press on the TextInput host. Android maps `editable={false}` to
467
+ // `setEnabled(false)`, and RN demotes a disabled view's pointer events to
468
+ // `box-none` (`TouchTargetHelper`), so the host can never be the touch target
469
+ // and the press would silently never fire there. Route the press to the root
470
+ // frame instead (a plain View, always pressable) and make the host transparent
471
+ // to touches so the whole field is one uniform tap target on both platforms.
472
+ const isPressTrigger = !!readOnly && !disabled && typeof onPressProp === "function";
473
+
474
+ const handleRootPress = useCallbackRef((event: unknown) => {
475
+ focusInput();
476
+ if (isPressTrigger) {
477
+ (onPressProp as (e: unknown) => void)(event);
478
+ }
479
+ });
480
+
481
+ const nativeInputProps: NativeInputHostProps = {
482
+ editable: !disabled && !readOnly,
483
+ value: value == null ? undefined : String(value),
484
+ defaultValue: defaultValue == null ? undefined : String(defaultValue),
485
+ secureTextEntry,
486
+ keyboardType,
487
+ keyboardAppearance,
488
+ inputMode,
489
+ returnKeyType,
490
+ multiline,
491
+ numberOfLines,
492
+ selection,
493
+ autoComplete: autoComplete as RNTextInputProps["autoComplete"],
494
+ autoFocus: autoFocusNative ?? autoFocus,
495
+ "aria-disabled": disabled || undefined,
496
+ "aria-invalid": _withAria && inputError ? true : undefined,
497
+ "aria-describedby": _withAria ? wrapperContext?.describedBy : undefined,
498
+
499
+ // callbacks
500
+ onChangeText: handleChangeText,
501
+ onKeyPress: onKeyPressProp || onKeyDown ? handleKeyPress : undefined,
502
+ onSubmitEditing: onKeyDown || onSubmitEditing ? handleSubmitEditing : undefined,
503
+ onSelectionChange: onSelectionChange ? handleSelectionChange : undefined,
504
+ onFocus: handleFocus,
505
+ onBlur: handleBlur,
506
+ onEndEditing,
507
+ onContentSizeChange: onContentSizeChange ? handleContentSizeChange : undefined,
508
+ onScroll,
509
+
510
+ // cross-platform native props
511
+ submitBehavior,
512
+ blurOnSubmit,
513
+ caretHidden,
514
+ contextMenuHidden,
515
+ selectTextOnFocus,
516
+ maxFontSizeMultiplier: maxFontSizeMultiplier ?? undefined,
517
+ allowFontScaling,
518
+ autoCapitalize,
519
+ autoCorrect,
520
+ textContentType,
521
+
522
+ // iOS-only props
523
+ clearButtonMode,
524
+ clearTextOnFocus,
525
+ enablesReturnKeyAutomatically,
526
+ dataDetectorTypes,
527
+ scrollEnabled,
528
+ passwordRules: passwordRules ?? undefined,
529
+ rejectResponderTermination: rejectResponderTermination ?? undefined,
530
+ spellCheck,
531
+ lineBreakStrategyIOS,
532
+ lineBreakModeIOS,
533
+ smartInsertDelete,
534
+ inputAccessoryViewID,
535
+ // inputAccessoryViewButtonLabel is NOT a TextInput prop — never forwarded.
536
+ disableKeyboardShortcuts,
537
+
538
+ // Android-only props
539
+ importantForAutofill,
540
+ disableFullscreenUI,
541
+ inlineImageLeft,
542
+ inlineImagePadding,
543
+ returnKeyLabel,
544
+ textBreakStrategy,
545
+ // Top-align multiline text by default so the explicit vertical padding is
546
+ // measured from the top edge consistently (Android otherwise centers it). A
547
+ // consumer-passed `textAlignVertical` still wins.
548
+ textAlignVertical:
549
+ textAlignVertical ??
550
+ (verticalAlign ? VERTICAL_ALIGN_TO_TEXT_ALIGN_VERTICAL[verticalAlign] : undefined) ??
551
+ (multiline ? "top" : undefined),
552
+ showSoftInputOnFocus,
553
+ };
514
554
 
515
- return (
516
- <InputChrome
517
- size={effectiveSize}
518
- variant={unstyled ? "unstyled" : variant}
519
- radius={radius}
520
- error={inputError}
521
- disabled={disabled}
522
- pointer={pointer}
523
- focused={focused}
524
- multiline={multiline}
525
- onRootPress={handleRootPress}
526
- rootRef={rootRef}
527
- wrapperProps={wrapperProps}
528
- styles={pick(styles, INPUT_CHROME_SLOTS)}
529
- leftSection={leftSection}
530
- leftSectionWidth={leftSectionWidth}
531
- leftSectionProps={leftSectionProps}
532
- leftSectionPointerEvents={leftSectionPointerEvents}
533
- rightSection={rightSection}
534
- rightSectionWidth={rightSectionWidth}
535
- rightSectionProps={rightSectionProps}
536
- rightSectionPointerEvents={rightSectionPointerEvents}
537
- loading={loading}
538
- loadingPosition={loadingPosition}
539
- __clearSection={__clearSection}
540
- __clearable={__clearable}
541
- __clearSectionMode={__clearSectionMode}
542
- __defaultRightSection={__defaultRightSection}
543
- >
544
- <InputHostStyle
545
- ref={composedRef}
546
- flex={1}
547
- // Single-line fills the chrome height; multiline sets NO explicit height and
548
- // is bounded by minHeight/maxHeight so the native TextInput sizes itself.
549
- height={multiline ? undefined : "100%"}
550
- minHeight={multilineMinHeight}
551
- maxHeight={multilineMaxHeight}
552
- minWidth={0}
553
- paddingVertical={multiline ? getTextareaPaddingVertical(effectiveSize) : 0}
554
- // Android's TextInput adds asymmetric font padding (extra space above
555
- // ascenders / below descenders) that iOS doesn't, making top/bottom look
556
- // uneven across platforms. Disabling it (no-op on iOS) lets the explicit
557
- // `paddingVertical` above be the single source of vertical inset on both.
558
- includeFontPadding={false}
559
- unstyled
555
+ return (
556
+ <InputChrome
560
557
  size={effectiveSize}
561
- // After `size` so it beats the variant's `paddingHorizontal`; before
562
- // `{...rest}` so a consumer-passed padding still wins.
563
- {...getInputSectionInsets({
564
- leftSection,
565
- rightSection,
566
- loading,
567
- loadingPosition,
568
- __clearSection,
569
- __clearable,
570
- __clearSectionMode,
571
- __defaultRightSection,
572
- })}
573
- // The host always renders `unstyled`, so `defaultStyles.color` (the only
574
- // place the text color is set) never applies. Native `TextInput` doesn't
575
- // inherit color from ancestors the way web does, so without this the typed
576
- // text falls back to the platform default and ignores the theme. Set before
577
- // `{...rest}` so a consumer-passed `color` still wins.
578
- color="$color"
579
- placeholderTextColor={DEFAULT_PLACEHOLDER_COLOR}
580
- selectionColor={DEFAULT_SELECTION_COLOR}
581
- underlineColorAndroid="$transparent"
582
- // Trigger mode: the root frame owns the press (see `handleRootPress`);
583
- // otherwise forward the consumer's press to the host as before.
584
- onPress={isPressTrigger ? undefined : onPressProp}
585
- pointerEvents={isPressTrigger ? "none" : undefined}
586
- {...(rest as object)}
587
- {...(nativeInputProps as object)}
588
- />
589
- </InputChrome>
590
- );
591
- });
558
+ variant={unstyled ? "unstyled" : variant}
559
+ radius={radius}
560
+ error={inputError}
561
+ disabled={disabled}
562
+ pointer={pointer}
563
+ focused={focused}
564
+ multiline={multiline}
565
+ onRootPress={handleRootPress}
566
+ rootRef={rootRef}
567
+ wrapperProps={wrapperProps}
568
+ styles={pick(styles, INPUT_CHROME_SLOTS)}
569
+ leftSection={leftSection}
570
+ leftSectionWidth={leftSectionWidth}
571
+ leftSectionProps={leftSectionProps}
572
+ leftSectionPointerEvents={leftSectionPointerEvents}
573
+ rightSection={rightSection}
574
+ rightSectionWidth={rightSectionWidth}
575
+ rightSectionProps={rightSectionProps}
576
+ rightSectionPointerEvents={rightSectionPointerEvents}
577
+ loading={loading}
578
+ loadingPosition={loadingPosition}
579
+ __clearSection={__clearSection}
580
+ __clearable={__clearable}
581
+ __clearSectionMode={__clearSectionMode}
582
+ __defaultRightSection={__defaultRightSection}
583
+ >
584
+ <InputHostStyle
585
+ ref={composedRef as React.Ref<TamaguiElement>}
586
+ flex={1}
587
+ minWidth={0}
588
+ paddingVertical={multiline ? getTextareaPaddingVertical(effectiveSize) : 0}
589
+ // Single-line fills the chrome height; multiline sets NO explicit height and
590
+ // is bounded by minHeight/maxHeight so the native TextInput sizes itself.
591
+ // Conditional spreads, never `prop={undefined}` (that clears in v3).
592
+ {...(multiline ? null : FILL_HEIGHT)}
593
+ {...(multilineMinHeight !== undefined ? { minHeight: multilineMinHeight } : null)}
594
+ {...(multilineMaxHeight !== undefined ? { maxHeight: multilineMaxHeight } : null)}
595
+ size={effectiveSize}
596
+ // After `size` so it beats the variant's `paddingHorizontal`; before
597
+ // `{...rest}` so a consumer-passed padding still wins.
598
+ {...getInputSectionInsets({
599
+ leftSection,
600
+ rightSection,
601
+ loading,
602
+ loadingPosition,
603
+ __clearSection,
604
+ __clearable,
605
+ __clearSectionMode,
606
+ __defaultRightSection,
607
+ })}
608
+ underlineColorAndroid="transparent"
609
+ // Trigger mode: the root frame owns the press (see `handleRootPress`);
610
+ // otherwise forward the consumer's press to the host as before.
611
+ onPress={isPressTrigger ? undefined : onPressProp}
612
+ {...(isPressTrigger ? NO_POINTER_EVENTS : null)}
613
+ {...(rest as object)}
614
+ {...(nativeInputProps as object)}
615
+ // Android's TextInput adds asymmetric font padding (extra space above
616
+ // ascenders / below descenders) that iOS doesn't, making top/bottom look
617
+ // uneven across platforms. Disabling it (no-op on iOS) lets the explicit
618
+ // `paddingVertical` above be the single source of vertical inset on both.
619
+ // `includeFontPadding` is an RN text STYLE, so it rides `style` (merged
620
+ // under a consumer-passed style).
621
+ style={style ? [NO_FONT_PADDING, style] : NO_FONT_PADDING}
622
+ />
623
+ </InputChrome>
624
+ );
625
+ },
626
+ );
592
627
 
593
628
  export const Input = withStaticProperties(InputComponent, {
594
629
  Wrapper: InputWrapper,