@knitui/components 0.13.0 → 1.0.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 (963) 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 +127 -61
  5. package/lib/commonjs/ActionIcon/ActionIcon.js.map +1 -1
  6. package/lib/commonjs/Affix/Affix.js +16 -20
  7. package/lib/commonjs/Affix/Affix.js.map +1 -1
  8. package/lib/commonjs/Alert/Alert.js +53 -53
  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 +27 -24
  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 +59 -48
  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 +104 -62
  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 +11 -4
  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.js +197 -22
  85. package/lib/commonjs/Image/Image.js.map +1 -1
  86. package/lib/commonjs/Image/Image.native.js +41 -0
  87. package/lib/commonjs/Image/Image.native.js.map +1 -0
  88. package/lib/commonjs/Image/createImage.js +92 -59
  89. package/lib/commonjs/Image/createImage.js.map +1 -1
  90. package/lib/commonjs/Indicator/Indicator.js +36 -29
  91. package/lib/commonjs/Indicator/Indicator.js.map +1 -1
  92. package/lib/commonjs/Input/Input.js +87 -119
  93. package/lib/commonjs/Input/Input.js.map +1 -1
  94. package/lib/commonjs/Input/Input.native.js +40 -30
  95. package/lib/commonjs/Input/Input.native.js.map +1 -1
  96. package/lib/commonjs/Input/shared.js +148 -225
  97. package/lib/commonjs/Input/shared.js.map +1 -1
  98. package/lib/commonjs/InputBase/InputBase.js +2 -1
  99. package/lib/commonjs/InputBase/InputBase.js.map +1 -1
  100. package/lib/commonjs/Kbd/Kbd.js +12 -18
  101. package/lib/commonjs/Kbd/Kbd.js.map +1 -1
  102. package/lib/commonjs/KeyboardAvoidingView/KeyboardAvoidingView.native.js +2 -2
  103. package/lib/commonjs/KeyboardAvoidingView/KeyboardAvoidingView.native.js.map +1 -1
  104. package/lib/commonjs/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js +1 -1
  105. package/lib/commonjs/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js.map +1 -1
  106. package/lib/commonjs/List/List.js +10 -10
  107. package/lib/commonjs/List/List.js.map +1 -1
  108. package/lib/commonjs/Loader/Loader.js +31 -37
  109. package/lib/commonjs/Loader/Loader.js.map +1 -1
  110. package/lib/commonjs/LoadingOverlay/LoadingOverlay.js +2 -1
  111. package/lib/commonjs/LoadingOverlay/LoadingOverlay.js.map +1 -1
  112. package/lib/commonjs/Mark/Mark.js +12 -15
  113. package/lib/commonjs/Mark/Mark.js.map +1 -1
  114. package/lib/commonjs/Marquee/Marquee.js +66 -48
  115. package/lib/commonjs/Marquee/Marquee.js.map +1 -1
  116. package/lib/commonjs/MaskInput/MaskInput.js +2 -1
  117. package/lib/commonjs/MaskInput/MaskInput.js.map +1 -1
  118. package/lib/commonjs/Menu/Menu.js +84 -48
  119. package/lib/commonjs/Menu/Menu.js.map +1 -1
  120. package/lib/commonjs/Modal/Modal.js +34 -30
  121. package/lib/commonjs/Modal/Modal.js.map +1 -1
  122. package/lib/commonjs/Modal/drag/DragDismissHost.web.js +10 -6
  123. package/lib/commonjs/Modal/drag/DragDismissHost.web.js.map +1 -1
  124. package/lib/commonjs/Modal/drag/DragDismissOverlay.web.js +6 -8
  125. package/lib/commonjs/Modal/drag/DragDismissOverlay.web.js.map +1 -1
  126. package/lib/commonjs/Modal/drag/index.js.map +1 -1
  127. package/lib/commonjs/Modal/modal-base-inner.js +1 -1
  128. package/lib/commonjs/Modal/modal-base-inner.js.map +1 -1
  129. package/lib/commonjs/Modal/modal-base-inner.native.js +3 -2
  130. package/lib/commonjs/Modal/modal-base-inner.native.js.map +1 -1
  131. package/lib/commonjs/Modal/modal-base.js +22 -9
  132. package/lib/commonjs/Modal/modal-base.js.map +1 -1
  133. package/lib/commonjs/MultiSelect/MultiSelect.js +6 -2
  134. package/lib/commonjs/MultiSelect/MultiSelect.js.map +1 -1
  135. package/lib/commonjs/NativeSelect/NativeSelect.js +25 -30
  136. package/lib/commonjs/NativeSelect/NativeSelect.js.map +1 -1
  137. package/lib/commonjs/NavLink/NavLink.js +63 -58
  138. package/lib/commonjs/NavLink/NavLink.js.map +1 -1
  139. package/lib/commonjs/Notification/Notification.js +28 -28
  140. package/lib/commonjs/Notification/Notification.js.map +1 -1
  141. package/lib/commonjs/NumberFormatter/NumberFormatter.js +2 -2
  142. package/lib/commonjs/NumberFormatter/NumberFormatter.js.map +1 -1
  143. package/lib/commonjs/NumberInput/NumberInput.js +46 -43
  144. package/lib/commonjs/NumberInput/NumberInput.js.map +1 -1
  145. package/lib/commonjs/Overlay/Overlay.js +18 -11
  146. package/lib/commonjs/Overlay/Overlay.js.map +1 -1
  147. package/lib/commonjs/Pagination/Pagination.js +125 -120
  148. package/lib/commonjs/Pagination/Pagination.js.map +1 -1
  149. package/lib/commonjs/Paper/Paper.js +7 -8
  150. package/lib/commonjs/Paper/Paper.js.map +1 -1
  151. package/lib/commonjs/Paragraph/Paragraph.js +7 -10
  152. package/lib/commonjs/Paragraph/Paragraph.js.map +1 -1
  153. package/lib/commonjs/PasswordInput/PasswordInput.js +3 -3
  154. package/lib/commonjs/PasswordInput/PasswordInput.js.map +1 -1
  155. package/lib/commonjs/Pill/Pill.js +39 -33
  156. package/lib/commonjs/Pill/Pill.js.map +1 -1
  157. package/lib/commonjs/PillsInput/PillsInput.js +58 -31
  158. package/lib/commonjs/PillsInput/PillsInput.js.map +1 -1
  159. package/lib/commonjs/PinInput/PinInput.js +26 -20
  160. package/lib/commonjs/PinInput/PinInput.js.map +1 -1
  161. package/lib/commonjs/Popover/Popover.native.js +6 -2
  162. package/lib/commonjs/Popover/Popover.native.js.map +1 -1
  163. package/lib/commonjs/Popover/Popover.shared.js +33 -22
  164. package/lib/commonjs/Popover/Popover.shared.js.map +1 -1
  165. package/lib/commonjs/Progress/Progress.js +37 -26
  166. package/lib/commonjs/Progress/Progress.js.map +1 -1
  167. package/lib/commonjs/Radio/Radio.js +81 -93
  168. package/lib/commonjs/Radio/Radio.js.map +1 -1
  169. package/lib/commonjs/Radio/RadioIcon.js +4 -6
  170. package/lib/commonjs/Radio/RadioIcon.js.map +1 -1
  171. package/lib/commonjs/Rating/Rating.js +48 -38
  172. package/lib/commonjs/Rating/Rating.js.map +1 -1
  173. package/lib/commonjs/RollingNumber/RollingNumber.js +48 -24
  174. package/lib/commonjs/RollingNumber/RollingNumber.js.map +1 -1
  175. package/lib/commonjs/ScrollArea/ScrollArea.js +40 -37
  176. package/lib/commonjs/ScrollArea/ScrollArea.js.map +1 -1
  177. package/lib/commonjs/ScrollArea/ScrollArea.native.js +21 -26
  178. package/lib/commonjs/ScrollArea/ScrollArea.native.js.map +1 -1
  179. package/lib/commonjs/SegmentedControl/SegmentedControl.js +106 -55
  180. package/lib/commonjs/SegmentedControl/SegmentedControl.js.map +1 -1
  181. package/lib/commonjs/Select/Select.js +7 -3
  182. package/lib/commonjs/Select/Select.js.map +1 -1
  183. package/lib/commonjs/Separator/Separator.js +47 -39
  184. package/lib/commonjs/Separator/Separator.js.map +1 -1
  185. package/lib/commonjs/SimpleGrid/SimpleGrid.js +12 -14
  186. package/lib/commonjs/SimpleGrid/SimpleGrid.js.map +1 -1
  187. package/lib/commonjs/Skeleton/Skeleton.js +39 -24
  188. package/lib/commonjs/Skeleton/Skeleton.js.map +1 -1
  189. package/lib/commonjs/Slider/Slider.js +308 -257
  190. package/lib/commonjs/Slider/Slider.js.map +1 -1
  191. package/lib/commonjs/Spacer/Spacer.js +15 -29
  192. package/lib/commonjs/Spacer/Spacer.js.map +1 -1
  193. package/lib/commonjs/Spoiler/Spoiler.js +16 -16
  194. package/lib/commonjs/Spoiler/Spoiler.js.map +1 -1
  195. package/lib/commonjs/Stack/Stack.js +3 -3
  196. package/lib/commonjs/Stack/Stack.js.map +1 -1
  197. package/lib/commonjs/Stepper/Stepper.js +96 -71
  198. package/lib/commonjs/Stepper/Stepper.js.map +1 -1
  199. package/lib/commonjs/Switch/Switch.js +71 -67
  200. package/lib/commonjs/Switch/Switch.js.map +1 -1
  201. package/lib/commonjs/Table/Table.js +96 -82
  202. package/lib/commonjs/Table/Table.js.map +1 -1
  203. package/lib/commonjs/TableOfContents/TableOfContents.js +94 -95
  204. package/lib/commonjs/TableOfContents/TableOfContents.js.map +1 -1
  205. package/lib/commonjs/Tabs/Tabs.js +71 -73
  206. package/lib/commonjs/Tabs/Tabs.js.map +1 -1
  207. package/lib/commonjs/TagsInput/TagsInput.js +19 -3
  208. package/lib/commonjs/TagsInput/TagsInput.js.map +1 -1
  209. package/lib/commonjs/Text/Text.js +29 -14
  210. package/lib/commonjs/Text/Text.js.map +1 -1
  211. package/lib/commonjs/TextInput/TextInput.js +2 -1
  212. package/lib/commonjs/TextInput/TextInput.js.map +1 -1
  213. package/lib/commonjs/Textarea/Textarea.js +1 -1
  214. package/lib/commonjs/Textarea/Textarea.js.map +1 -1
  215. package/lib/commonjs/ThemeIcon/ThemeIcon.js +9 -5
  216. package/lib/commonjs/ThemeIcon/ThemeIcon.js.map +1 -1
  217. package/lib/commonjs/Title/Title.js +49 -32
  218. package/lib/commonjs/Title/Title.js.map +1 -1
  219. package/lib/commonjs/Tooltip/Tooltip.js +43 -27
  220. package/lib/commonjs/Tooltip/Tooltip.js.map +1 -1
  221. package/lib/commonjs/Transition/Transition.native.js +11 -10
  222. package/lib/commonjs/Transition/Transition.native.js.map +1 -1
  223. package/lib/commonjs/Transition/use-overlay-transition.native.js +2 -5
  224. package/lib/commonjs/Transition/use-overlay-transition.native.js.map +1 -1
  225. package/lib/commonjs/Tree/Tree.js +30 -34
  226. package/lib/commonjs/Tree/Tree.js.map +1 -1
  227. package/lib/commonjs/TreeSelect/TreeSelect.js +50 -26
  228. package/lib/commonjs/TreeSelect/TreeSelect.js.map +1 -1
  229. package/lib/commonjs/Typography/Typography.js +5 -7
  230. package/lib/commonjs/Typography/Typography.js.map +1 -1
  231. package/lib/commonjs/UnstyledButton/UnstyledButton.js +4 -4
  232. package/lib/commonjs/UnstyledButton/UnstyledButton.js.map +1 -1
  233. package/lib/commonjs/VirtualList/VirtualList.js +23 -7
  234. package/lib/commonjs/VirtualList/VirtualList.js.map +1 -1
  235. package/lib/commonjs/VisuallyHidden/VisuallyHidden.js +7 -10
  236. package/lib/commonjs/VisuallyHidden/VisuallyHidden.js.map +1 -1
  237. package/lib/commonjs/control-system.js +7 -0
  238. package/lib/commonjs/control-system.js.map +1 -1
  239. package/lib/commonjs/index.js +6 -0
  240. package/lib/commonjs/index.js.map +1 -1
  241. package/lib/commonjs/internal/ControlIconProvider.js +1 -1
  242. package/lib/commonjs/internal/ControlIconProvider.js.map +1 -1
  243. package/lib/commonjs/internal/InlineControl.js +24 -29
  244. package/lib/commonjs/internal/InlineControl.js.map +1 -1
  245. package/lib/commonjs/internal/collapse-box.js +12 -10
  246. package/lib/commonjs/internal/collapse-box.js.map +1 -1
  247. package/lib/commonjs/internal/control-icon-size.js +5 -8
  248. package/lib/commonjs/internal/control-icon-size.js.map +1 -1
  249. package/lib/commonjs/internal/control-metrics.js +51 -51
  250. package/lib/commonjs/internal/control-metrics.js.map +1 -1
  251. package/lib/commonjs/internal/floating-arrow.js +43 -29
  252. package/lib/commonjs/internal/floating-arrow.js.map +1 -1
  253. package/lib/commonjs/internal/focus-ring.js +99 -0
  254. package/lib/commonjs/internal/focus-ring.js.map +1 -0
  255. package/lib/commonjs/internal/gradient-shared.js +7 -7
  256. package/lib/commonjs/internal/gradient-shared.js.map +1 -1
  257. package/lib/commonjs/internal/gradient.native.js +1 -1
  258. package/lib/commonjs/internal/motion.js +247 -359
  259. package/lib/commonjs/internal/motion.js.map +1 -1
  260. package/lib/commonjs/internal/resolve-theme-color.js +10 -10
  261. package/lib/commonjs/internal/resolve-theme-color.js.map +1 -1
  262. package/lib/commonjs/internal/style-props.js +510 -464
  263. package/lib/commonjs/internal/style-props.js.map +1 -1
  264. package/lib/commonjs/internal/theme-color-web.js +44 -26
  265. package/lib/commonjs/internal/theme-color-web.js.map +1 -1
  266. package/lib/commonjs/internal/use-icon-color.js +1 -1
  267. package/lib/commonjs/internal/use-icon-color.native.js +1 -1
  268. package/lib/commonjs/internal/use-slot-text-wrapper.js +1 -1
  269. package/lib/commonjs/internal/variant-colors.js +163 -229
  270. package/lib/commonjs/internal/variant-colors.js.map +1 -1
  271. package/lib/module/Accordion/Accordion.js +80 -98
  272. package/lib/module/Accordion/Accordion.js.map +1 -1
  273. package/lib/module/ActionIcon/ActionIcon.js +128 -62
  274. package/lib/module/ActionIcon/ActionIcon.js.map +1 -1
  275. package/lib/module/Affix/Affix.js +17 -21
  276. package/lib/module/Affix/Affix.js.map +1 -1
  277. package/lib/module/Alert/Alert.js +54 -54
  278. package/lib/module/Alert/Alert.js.map +1 -1
  279. package/lib/module/Anchor/Anchor.js +13 -16
  280. package/lib/module/Anchor/Anchor.js.map +1 -1
  281. package/lib/module/AngleSlider/AngleSlider.js +66 -38
  282. package/lib/module/AngleSlider/AngleSlider.js.map +1 -1
  283. package/lib/module/AspectRatio/AspectRatio.js +10 -14
  284. package/lib/module/AspectRatio/AspectRatio.js.map +1 -1
  285. package/lib/module/Autocomplete/Autocomplete.js +8 -4
  286. package/lib/module/Autocomplete/Autocomplete.js.map +1 -1
  287. package/lib/module/Avatar/Avatar.js +29 -26
  288. package/lib/module/Avatar/Avatar.js.map +1 -1
  289. package/lib/module/BackgroundImage/BackgroundImage.js +16 -7
  290. package/lib/module/BackgroundImage/BackgroundImage.js.map +1 -1
  291. package/lib/module/Badge/Badge.js +61 -50
  292. package/lib/module/Badge/Badge.js.map +1 -1
  293. package/lib/module/Blockquote/Blockquote.js +82 -81
  294. package/lib/module/Blockquote/Blockquote.js.map +1 -1
  295. package/lib/module/Box/Box.js +2 -2
  296. package/lib/module/Box/Box.js.map +1 -1
  297. package/lib/module/Breadcrumbs/Breadcrumbs.js +10 -10
  298. package/lib/module/Breadcrumbs/Breadcrumbs.js.map +1 -1
  299. package/lib/module/Burger/Burger.js +32 -21
  300. package/lib/module/Burger/Burger.js.map +1 -1
  301. package/lib/module/Button/Button.js +105 -63
  302. package/lib/module/Button/Button.js.map +1 -1
  303. package/lib/module/Card/Card.js +51 -39
  304. package/lib/module/Card/Card.js.map +1 -1
  305. package/lib/module/Center/Center.js +3 -3
  306. package/lib/module/Center/Center.js.map +1 -1
  307. package/lib/module/Checkbox/CheckIcon.js +5 -4
  308. package/lib/module/Checkbox/CheckIcon.js.map +1 -1
  309. package/lib/module/Checkbox/Checkbox.js +100 -70
  310. package/lib/module/Checkbox/Checkbox.js.map +1 -1
  311. package/lib/module/Chip/Chip.js +35 -68
  312. package/lib/module/Chip/Chip.js.map +1 -1
  313. package/lib/module/CloseButton/CloseButton.js +12 -5
  314. package/lib/module/CloseButton/CloseButton.js.map +1 -1
  315. package/lib/module/Code/Code.js +15 -11
  316. package/lib/module/Code/Code.js.map +1 -1
  317. package/lib/module/Collapse/Collapse.js +11 -5
  318. package/lib/module/Collapse/Collapse.js.map +1 -1
  319. package/lib/module/ColorInput/ColorInput.js +26 -21
  320. package/lib/module/ColorInput/ColorInput.js.map +1 -1
  321. package/lib/module/ColorPicker/ColorPicker.js +96 -84
  322. package/lib/module/ColorPicker/ColorPicker.js.map +1 -1
  323. package/lib/module/ColorSwatch/ColorSwatch.js +13 -15
  324. package/lib/module/ColorSwatch/ColorSwatch.js.map +1 -1
  325. package/lib/module/Combobox/Combobox.js +194 -188
  326. package/lib/module/Combobox/Combobox.js.map +1 -1
  327. package/lib/module/Combobox/OptionsDropdown.js +13 -7
  328. package/lib/module/Combobox/OptionsDropdown.js.map +1 -1
  329. package/lib/module/Combobox/index.js +1 -1
  330. package/lib/module/Combobox/index.js.map +1 -1
  331. package/lib/module/Container/Container.js +12 -19
  332. package/lib/module/Container/Container.js.map +1 -1
  333. package/lib/module/Dialog/Dialog.js +16 -15
  334. package/lib/module/Dialog/Dialog.js.map +1 -1
  335. package/lib/module/Drawer/Drawer.js +53 -34
  336. package/lib/module/Drawer/Drawer.js.map +1 -1
  337. package/lib/module/Fieldset/Fieldset.js +27 -19
  338. package/lib/module/Fieldset/Fieldset.js.map +1 -1
  339. package/lib/module/FileButton/FileButton.js +5 -3
  340. package/lib/module/FileButton/FileButton.js.map +1 -1
  341. package/lib/module/Flex/Flex.js +24 -28
  342. package/lib/module/Flex/Flex.js.map +1 -1
  343. package/lib/module/FocusTrap/FocusTrap.js +4 -3
  344. package/lib/module/FocusTrap/FocusTrap.js.map +1 -1
  345. package/lib/module/Grid/Grid.js +22 -19
  346. package/lib/module/Grid/Grid.js.map +1 -1
  347. package/lib/module/Group/Group.js +4 -4
  348. package/lib/module/Group/Group.js.map +1 -1
  349. package/lib/module/Highlight/Highlight.js +2 -1
  350. package/lib/module/Highlight/Highlight.js.map +1 -1
  351. package/lib/module/HoverCard/HoverCard.js +8 -25
  352. package/lib/module/HoverCard/HoverCard.js.map +1 -1
  353. package/lib/module/Image/Image.js +195 -23
  354. package/lib/module/Image/Image.js.map +1 -1
  355. package/lib/module/Image/Image.native.js +38 -0
  356. package/lib/module/Image/Image.native.js.map +1 -0
  357. package/lib/module/Image/createImage.js +92 -59
  358. package/lib/module/Image/createImage.js.map +1 -1
  359. package/lib/module/Indicator/Indicator.js +37 -30
  360. package/lib/module/Indicator/Indicator.js.map +1 -1
  361. package/lib/module/Input/Input.js +89 -121
  362. package/lib/module/Input/Input.js.map +1 -1
  363. package/lib/module/Input/Input.native.js +42 -32
  364. package/lib/module/Input/Input.native.js.map +1 -1
  365. package/lib/module/Input/shared.js +148 -225
  366. package/lib/module/Input/shared.js.map +1 -1
  367. package/lib/module/InputBase/InputBase.js +2 -1
  368. package/lib/module/InputBase/InputBase.js.map +1 -1
  369. package/lib/module/Kbd/Kbd.js +12 -18
  370. package/lib/module/Kbd/Kbd.js.map +1 -1
  371. package/lib/module/KeyboardAvoidingView/KeyboardAvoidingView.native.js +2 -2
  372. package/lib/module/KeyboardAvoidingView/KeyboardAvoidingView.native.js.map +1 -1
  373. package/lib/module/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js +1 -1
  374. package/lib/module/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js.map +1 -1
  375. package/lib/module/List/List.js +11 -11
  376. package/lib/module/List/List.js.map +1 -1
  377. package/lib/module/Loader/Loader.js +33 -39
  378. package/lib/module/Loader/Loader.js.map +1 -1
  379. package/lib/module/LoadingOverlay/LoadingOverlay.js +2 -1
  380. package/lib/module/LoadingOverlay/LoadingOverlay.js.map +1 -1
  381. package/lib/module/Mark/Mark.js +11 -15
  382. package/lib/module/Mark/Mark.js.map +1 -1
  383. package/lib/module/Marquee/Marquee.js +66 -48
  384. package/lib/module/Marquee/Marquee.js.map +1 -1
  385. package/lib/module/MaskInput/MaskInput.js +2 -1
  386. package/lib/module/MaskInput/MaskInput.js.map +1 -1
  387. package/lib/module/Menu/Menu.js +86 -50
  388. package/lib/module/Menu/Menu.js.map +1 -1
  389. package/lib/module/Modal/Modal.js +35 -31
  390. package/lib/module/Modal/Modal.js.map +1 -1
  391. package/lib/module/Modal/drag/DragDismissHost.web.js +10 -6
  392. package/lib/module/Modal/drag/DragDismissHost.web.js.map +1 -1
  393. package/lib/module/Modal/drag/DragDismissOverlay.web.js +6 -8
  394. package/lib/module/Modal/drag/DragDismissOverlay.web.js.map +1 -1
  395. package/lib/module/Modal/drag/index.js +1 -1
  396. package/lib/module/Modal/drag/index.js.map +1 -1
  397. package/lib/module/Modal/modal-base-inner.js +1 -1
  398. package/lib/module/Modal/modal-base-inner.js.map +1 -1
  399. package/lib/module/Modal/modal-base-inner.native.js +3 -2
  400. package/lib/module/Modal/modal-base-inner.native.js.map +1 -1
  401. package/lib/module/Modal/modal-base.js +22 -9
  402. package/lib/module/Modal/modal-base.js.map +1 -1
  403. package/lib/module/MultiSelect/MultiSelect.js +7 -3
  404. package/lib/module/MultiSelect/MultiSelect.js.map +1 -1
  405. package/lib/module/NativeSelect/NativeSelect.js +26 -31
  406. package/lib/module/NativeSelect/NativeSelect.js.map +1 -1
  407. package/lib/module/NavLink/NavLink.js +64 -59
  408. package/lib/module/NavLink/NavLink.js.map +1 -1
  409. package/lib/module/Notification/Notification.js +29 -29
  410. package/lib/module/Notification/Notification.js.map +1 -1
  411. package/lib/module/NumberFormatter/NumberFormatter.js +3 -3
  412. package/lib/module/NumberFormatter/NumberFormatter.js.map +1 -1
  413. package/lib/module/NumberInput/NumberInput.js +49 -46
  414. package/lib/module/NumberInput/NumberInput.js.map +1 -1
  415. package/lib/module/Overlay/Overlay.js +19 -12
  416. package/lib/module/Overlay/Overlay.js.map +1 -1
  417. package/lib/module/Pagination/Pagination.js +127 -122
  418. package/lib/module/Pagination/Pagination.js.map +1 -1
  419. package/lib/module/Paper/Paper.js +8 -9
  420. package/lib/module/Paper/Paper.js.map +1 -1
  421. package/lib/module/Paragraph/Paragraph.js +6 -10
  422. package/lib/module/Paragraph/Paragraph.js.map +1 -1
  423. package/lib/module/PasswordInput/PasswordInput.js +4 -4
  424. package/lib/module/PasswordInput/PasswordInput.js.map +1 -1
  425. package/lib/module/Pill/Pill.js +40 -34
  426. package/lib/module/Pill/Pill.js.map +1 -1
  427. package/lib/module/PillsInput/PillsInput.js +59 -32
  428. package/lib/module/PillsInput/PillsInput.js.map +1 -1
  429. package/lib/module/PinInput/PinInput.js +27 -21
  430. package/lib/module/PinInput/PinInput.js.map +1 -1
  431. package/lib/module/Popover/Popover.native.js +6 -2
  432. package/lib/module/Popover/Popover.native.js.map +1 -1
  433. package/lib/module/Popover/Popover.shared.js +34 -23
  434. package/lib/module/Popover/Popover.shared.js.map +1 -1
  435. package/lib/module/Progress/Progress.js +39 -28
  436. package/lib/module/Progress/Progress.js.map +1 -1
  437. package/lib/module/Radio/Radio.js +83 -95
  438. package/lib/module/Radio/Radio.js.map +1 -1
  439. package/lib/module/Radio/RadioIcon.js +4 -6
  440. package/lib/module/Radio/RadioIcon.js.map +1 -1
  441. package/lib/module/Rating/Rating.js +50 -40
  442. package/lib/module/Rating/Rating.js.map +1 -1
  443. package/lib/module/RollingNumber/RollingNumber.js +49 -25
  444. package/lib/module/RollingNumber/RollingNumber.js.map +1 -1
  445. package/lib/module/ScrollArea/ScrollArea.js +41 -38
  446. package/lib/module/ScrollArea/ScrollArea.js.map +1 -1
  447. package/lib/module/ScrollArea/ScrollArea.native.js +22 -27
  448. package/lib/module/ScrollArea/ScrollArea.native.js.map +1 -1
  449. package/lib/module/SegmentedControl/SegmentedControl.js +108 -57
  450. package/lib/module/SegmentedControl/SegmentedControl.js.map +1 -1
  451. package/lib/module/Select/Select.js +8 -4
  452. package/lib/module/Select/Select.js.map +1 -1
  453. package/lib/module/Separator/Separator.js +49 -41
  454. package/lib/module/Separator/Separator.js.map +1 -1
  455. package/lib/module/SimpleGrid/SimpleGrid.js +14 -16
  456. package/lib/module/SimpleGrid/SimpleGrid.js.map +1 -1
  457. package/lib/module/Skeleton/Skeleton.js +40 -25
  458. package/lib/module/Skeleton/Skeleton.js.map +1 -1
  459. package/lib/module/Slider/Slider.js +309 -258
  460. package/lib/module/Slider/Slider.js.map +1 -1
  461. package/lib/module/Spacer/Spacer.js +16 -29
  462. package/lib/module/Spacer/Spacer.js.map +1 -1
  463. package/lib/module/Spoiler/Spoiler.js +17 -17
  464. package/lib/module/Spoiler/Spoiler.js.map +1 -1
  465. package/lib/module/Stack/Stack.js +3 -3
  466. package/lib/module/Stack/Stack.js.map +1 -1
  467. package/lib/module/Stepper/Stepper.js +97 -72
  468. package/lib/module/Stepper/Stepper.js.map +1 -1
  469. package/lib/module/Switch/Switch.js +73 -69
  470. package/lib/module/Switch/Switch.js.map +1 -1
  471. package/lib/module/Table/Table.js +99 -85
  472. package/lib/module/Table/Table.js.map +1 -1
  473. package/lib/module/TableOfContents/TableOfContents.js +96 -97
  474. package/lib/module/TableOfContents/TableOfContents.js.map +1 -1
  475. package/lib/module/Tabs/Tabs.js +72 -74
  476. package/lib/module/Tabs/Tabs.js.map +1 -1
  477. package/lib/module/TagsInput/TagsInput.js +21 -5
  478. package/lib/module/TagsInput/TagsInput.js.map +1 -1
  479. package/lib/module/Text/Text.js +29 -14
  480. package/lib/module/Text/Text.js.map +1 -1
  481. package/lib/module/TextInput/TextInput.js +2 -1
  482. package/lib/module/TextInput/TextInput.js.map +1 -1
  483. package/lib/module/Textarea/Textarea.js +2 -2
  484. package/lib/module/Textarea/Textarea.js.map +1 -1
  485. package/lib/module/ThemeIcon/ThemeIcon.js +10 -6
  486. package/lib/module/ThemeIcon/ThemeIcon.js.map +1 -1
  487. package/lib/module/Title/Title.js +51 -34
  488. package/lib/module/Title/Title.js.map +1 -1
  489. package/lib/module/Tooltip/Tooltip.js +44 -28
  490. package/lib/module/Tooltip/Tooltip.js.map +1 -1
  491. package/lib/module/Transition/Transition.native.js +12 -11
  492. package/lib/module/Transition/Transition.native.js.map +1 -1
  493. package/lib/module/Transition/use-overlay-transition.native.js +3 -6
  494. package/lib/module/Transition/use-overlay-transition.native.js.map +1 -1
  495. package/lib/module/Tree/Tree.js +31 -35
  496. package/lib/module/Tree/Tree.js.map +1 -1
  497. package/lib/module/TreeSelect/TreeSelect.js +52 -28
  498. package/lib/module/TreeSelect/TreeSelect.js.map +1 -1
  499. package/lib/module/Typography/Typography.js +5 -7
  500. package/lib/module/Typography/Typography.js.map +1 -1
  501. package/lib/module/UnstyledButton/UnstyledButton.js +5 -5
  502. package/lib/module/UnstyledButton/UnstyledButton.js.map +1 -1
  503. package/lib/module/VirtualList/VirtualList.js +23 -7
  504. package/lib/module/VirtualList/VirtualList.js.map +1 -1
  505. package/lib/module/VisuallyHidden/VisuallyHidden.js +6 -10
  506. package/lib/module/VisuallyHidden/VisuallyHidden.js.map +1 -1
  507. package/lib/module/control-system.js +5 -0
  508. package/lib/module/control-system.js.map +1 -1
  509. package/lib/module/index.js +8 -4
  510. package/lib/module/index.js.map +1 -1
  511. package/lib/module/internal/ControlIconProvider.js +1 -1
  512. package/lib/module/internal/ControlIconProvider.js.map +1 -1
  513. package/lib/module/internal/InlineControl.js +25 -30
  514. package/lib/module/internal/InlineControl.js.map +1 -1
  515. package/lib/module/internal/collapse-box.js +13 -11
  516. package/lib/module/internal/collapse-box.js.map +1 -1
  517. package/lib/module/internal/control-icon-size.js +5 -8
  518. package/lib/module/internal/control-icon-size.js.map +1 -1
  519. package/lib/module/internal/control-metrics.js +52 -52
  520. package/lib/module/internal/control-metrics.js.map +1 -1
  521. package/lib/module/internal/floating-arrow.js +44 -30
  522. package/lib/module/internal/floating-arrow.js.map +1 -1
  523. package/lib/module/internal/focus-ring.js +95 -0
  524. package/lib/module/internal/focus-ring.js.map +1 -0
  525. package/lib/module/internal/gradient-shared.js +7 -7
  526. package/lib/module/internal/gradient-shared.js.map +1 -1
  527. package/lib/module/internal/gradient.native.js +1 -1
  528. package/lib/module/internal/motion.js +245 -359
  529. package/lib/module/internal/motion.js.map +1 -1
  530. package/lib/module/internal/resolve-theme-color.js +10 -10
  531. package/lib/module/internal/resolve-theme-color.js.map +1 -1
  532. package/lib/module/internal/style-props.js +471 -459
  533. package/lib/module/internal/style-props.js.map +1 -1
  534. package/lib/module/internal/theme-color-web.js +45 -27
  535. package/lib/module/internal/theme-color-web.js.map +1 -1
  536. package/lib/module/internal/use-icon-color.js +1 -1
  537. package/lib/module/internal/use-icon-color.native.js +1 -1
  538. package/lib/module/internal/use-slot-text-wrapper.js +1 -1
  539. package/lib/module/internal/variant-colors.js +150 -228
  540. package/lib/module/internal/variant-colors.js.map +1 -1
  541. package/lib/typescript/Accordion/Accordion.d.ts +120 -74
  542. package/lib/typescript/Accordion/Accordion.d.ts.map +1 -1
  543. package/lib/typescript/ActionIcon/ActionIcon.d.ts +236 -94
  544. package/lib/typescript/ActionIcon/ActionIcon.d.ts.map +1 -1
  545. package/lib/typescript/Affix/Affix.d.ts +12 -7
  546. package/lib/typescript/Affix/Affix.d.ts.map +1 -1
  547. package/lib/typescript/Alert/Alert.d.ts +228 -68
  548. package/lib/typescript/Alert/Alert.d.ts.map +1 -1
  549. package/lib/typescript/Anchor/Anchor.d.ts +33 -24
  550. package/lib/typescript/Anchor/Anchor.d.ts.map +1 -1
  551. package/lib/typescript/AngleSlider/AngleSlider.d.ts +224 -66
  552. package/lib/typescript/AngleSlider/AngleSlider.d.ts.map +1 -1
  553. package/lib/typescript/AspectRatio/AspectRatio.d.ts +34 -14
  554. package/lib/typescript/AspectRatio/AspectRatio.d.ts.map +1 -1
  555. package/lib/typescript/Autocomplete/Autocomplete.d.ts +30 -42
  556. package/lib/typescript/Autocomplete/Autocomplete.d.ts.map +1 -1
  557. package/lib/typescript/Avatar/Avatar.d.ts +167 -191
  558. package/lib/typescript/Avatar/Avatar.d.ts.map +1 -1
  559. package/lib/typescript/BackgroundImage/BackgroundImage.d.ts +15 -10
  560. package/lib/typescript/BackgroundImage/BackgroundImage.d.ts.map +1 -1
  561. package/lib/typescript/Badge/Badge.d.ts +138 -62
  562. package/lib/typescript/Badge/Badge.d.ts.map +1 -1
  563. package/lib/typescript/Blockquote/Blockquote.d.ts +148 -50
  564. package/lib/typescript/Blockquote/Blockquote.d.ts.map +1 -1
  565. package/lib/typescript/Box/Box.d.ts +11 -3
  566. package/lib/typescript/Box/Box.d.ts.map +1 -1
  567. package/lib/typescript/Breadcrumbs/Breadcrumbs.d.ts +115 -35
  568. package/lib/typescript/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  569. package/lib/typescript/Burger/Burger.d.ts +124 -41
  570. package/lib/typescript/Burger/Burger.d.ts.map +1 -1
  571. package/lib/typescript/Button/Button.d.ts +236 -107
  572. package/lib/typescript/Button/Button.d.ts.map +1 -1
  573. package/lib/typescript/Card/Card.d.ts +79 -47
  574. package/lib/typescript/Card/Card.d.ts.map +1 -1
  575. package/lib/typescript/Center/Center.d.ts +13 -9
  576. package/lib/typescript/Center/Center.d.ts.map +1 -1
  577. package/lib/typescript/Checkbox/CheckIcon.d.ts +7 -3
  578. package/lib/typescript/Checkbox/CheckIcon.d.ts.map +1 -1
  579. package/lib/typescript/Checkbox/Checkbox.d.ts +79 -60
  580. package/lib/typescript/Checkbox/Checkbox.d.ts.map +1 -1
  581. package/lib/typescript/Chip/Chip.d.ts +140 -57
  582. package/lib/typescript/Chip/Chip.d.ts.map +1 -1
  583. package/lib/typescript/CloseButton/CloseButton.d.ts +85 -50
  584. package/lib/typescript/CloseButton/CloseButton.d.ts.map +1 -1
  585. package/lib/typescript/Code/Code.d.ts +31 -23
  586. package/lib/typescript/Code/Code.d.ts.map +1 -1
  587. package/lib/typescript/Collapse/Collapse.d.ts +44 -20
  588. package/lib/typescript/Collapse/Collapse.d.ts.map +1 -1
  589. package/lib/typescript/ColorInput/ColorInput.d.ts +15 -5
  590. package/lib/typescript/ColorInput/ColorInput.d.ts.map +1 -1
  591. package/lib/typescript/ColorPicker/ColorPicker.d.ts +72 -16
  592. package/lib/typescript/ColorPicker/ColorPicker.d.ts.map +1 -1
  593. package/lib/typescript/ColorSwatch/ColorSwatch.d.ts +59 -38
  594. package/lib/typescript/ColorSwatch/ColorSwatch.d.ts.map +1 -1
  595. package/lib/typescript/Combobox/Combobox.d.ts +183 -100
  596. package/lib/typescript/Combobox/Combobox.d.ts.map +1 -1
  597. package/lib/typescript/Combobox/OptionsDropdown.d.ts +6 -0
  598. package/lib/typescript/Combobox/OptionsDropdown.d.ts.map +1 -1
  599. package/lib/typescript/Combobox/index.d.ts +66 -86
  600. package/lib/typescript/Combobox/index.d.ts.map +1 -1
  601. package/lib/typescript/Container/Container.d.ts +3 -41
  602. package/lib/typescript/Container/Container.d.ts.map +1 -1
  603. package/lib/typescript/Dialog/Dialog.d.ts +79 -76
  604. package/lib/typescript/Dialog/Dialog.d.ts.map +1 -1
  605. package/lib/typescript/Drawer/Drawer.d.ts +115 -40
  606. package/lib/typescript/Drawer/Drawer.d.ts.map +1 -1
  607. package/lib/typescript/Fieldset/Fieldset.d.ts +91 -46
  608. package/lib/typescript/Fieldset/Fieldset.d.ts.map +1 -1
  609. package/lib/typescript/FileButton/FileButton.d.ts.map +1 -1
  610. package/lib/typescript/FileInput/FileInput.d.ts +1 -1
  611. package/lib/typescript/FileInput/FileInput.d.ts.map +1 -1
  612. package/lib/typescript/Flex/Flex.d.ts +28 -26
  613. package/lib/typescript/Flex/Flex.d.ts.map +1 -1
  614. package/lib/typescript/FocusTrap/FocusTrap.d.ts.map +1 -1
  615. package/lib/typescript/Grid/Grid.d.ts +56 -48
  616. package/lib/typescript/Grid/Grid.d.ts.map +1 -1
  617. package/lib/typescript/Group/Group.d.ts +21 -16
  618. package/lib/typescript/Group/Group.d.ts.map +1 -1
  619. package/lib/typescript/Highlight/Highlight.d.ts +1 -15
  620. package/lib/typescript/Highlight/Highlight.d.ts.map +1 -1
  621. package/lib/typescript/HoverCard/HoverCard.d.ts +9 -9
  622. package/lib/typescript/HoverCard/HoverCard.d.ts.map +1 -1
  623. package/lib/typescript/Image/Image.d.ts +76 -158
  624. package/lib/typescript/Image/Image.d.ts.map +1 -1
  625. package/lib/typescript/Image/Image.native.d.ts +327 -0
  626. package/lib/typescript/Image/Image.native.d.ts.map +1 -0
  627. package/lib/typescript/Image/createImage.d.ts +49 -357
  628. package/lib/typescript/Image/createImage.d.ts.map +1 -1
  629. package/lib/typescript/Image/types.d.ts +4 -1
  630. package/lib/typescript/Image/types.d.ts.map +1 -1
  631. package/lib/typescript/Indicator/Indicator.d.ts +122 -43
  632. package/lib/typescript/Indicator/Indicator.d.ts.map +1 -1
  633. package/lib/typescript/Input/Input.d.ts +131 -328
  634. package/lib/typescript/Input/Input.d.ts.map +1 -1
  635. package/lib/typescript/Input/Input.native.d.ts +150 -472
  636. package/lib/typescript/Input/Input.native.d.ts.map +1 -1
  637. package/lib/typescript/Input/shared.d.ts +290 -490
  638. package/lib/typescript/Input/shared.d.ts.map +1 -1
  639. package/lib/typescript/Input/types.d.ts +14 -1
  640. package/lib/typescript/Input/types.d.ts.map +1 -1
  641. package/lib/typescript/InputBase/InputBase.d.ts +1 -52
  642. package/lib/typescript/InputBase/InputBase.d.ts.map +1 -1
  643. package/lib/typescript/Kbd/Kbd.d.ts +21 -65
  644. package/lib/typescript/Kbd/Kbd.d.ts.map +1 -1
  645. package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.d.ts +2 -6
  646. package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.d.ts.map +1 -1
  647. package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.native.d.ts +7 -3
  648. package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.native.d.ts.map +1 -1
  649. package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +2 -6
  650. package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts.map +1 -1
  651. package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.native.d.ts +6 -2
  652. package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.native.d.ts.map +1 -1
  653. package/lib/typescript/List/List.d.ts +165 -63
  654. package/lib/typescript/List/List.d.ts.map +1 -1
  655. package/lib/typescript/Loader/Loader.d.ts +58 -28
  656. package/lib/typescript/Loader/Loader.d.ts.map +1 -1
  657. package/lib/typescript/LoadingOverlay/LoadingOverlay.d.ts +1 -9
  658. package/lib/typescript/LoadingOverlay/LoadingOverlay.d.ts.map +1 -1
  659. package/lib/typescript/Mark/Mark.d.ts +21 -65
  660. package/lib/typescript/Mark/Mark.d.ts.map +1 -1
  661. package/lib/typescript/Marquee/Marquee.d.ts +127 -44
  662. package/lib/typescript/Marquee/Marquee.d.ts.map +1 -1
  663. package/lib/typescript/MaskInput/MaskInput.d.ts +1 -51
  664. package/lib/typescript/MaskInput/MaskInput.d.ts.map +1 -1
  665. package/lib/typescript/Menu/Menu.d.ts +93 -105
  666. package/lib/typescript/Menu/Menu.d.ts.map +1 -1
  667. package/lib/typescript/Modal/Modal.d.ts +166 -91
  668. package/lib/typescript/Modal/Modal.d.ts.map +1 -1
  669. package/lib/typescript/Modal/drag/DragDismissHost.web.d.ts.map +1 -1
  670. package/lib/typescript/Modal/drag/DragDismissOverlay.web.d.ts.map +1 -1
  671. package/lib/typescript/Modal/drag/index.d.ts +2 -2
  672. package/lib/typescript/Modal/drag/index.d.ts.map +1 -1
  673. package/lib/typescript/Modal/drag/types.d.ts +14 -2
  674. package/lib/typescript/Modal/drag/types.d.ts.map +1 -1
  675. package/lib/typescript/Modal/modal-base-inner.d.ts +6 -2
  676. package/lib/typescript/Modal/modal-base-inner.d.ts.map +1 -1
  677. package/lib/typescript/Modal/modal-base-inner.native.d.ts +7 -3
  678. package/lib/typescript/Modal/modal-base-inner.native.d.ts.map +1 -1
  679. package/lib/typescript/Modal/modal-base.d.ts +2 -2
  680. package/lib/typescript/Modal/modal-base.d.ts.map +1 -1
  681. package/lib/typescript/MultiSelect/MultiSelect.d.ts +30 -50
  682. package/lib/typescript/MultiSelect/MultiSelect.d.ts.map +1 -1
  683. package/lib/typescript/NativeSelect/NativeSelect.d.ts.map +1 -1
  684. package/lib/typescript/NativeSelect/NativeSelect.native.d.ts +1 -1
  685. package/lib/typescript/NativeSelect/NativeSelect.native.d.ts.map +1 -1
  686. package/lib/typescript/NavLink/NavLink.d.ts +245 -72
  687. package/lib/typescript/NavLink/NavLink.d.ts.map +1 -1
  688. package/lib/typescript/Notification/Notification.d.ts +230 -69
  689. package/lib/typescript/Notification/Notification.d.ts.map +1 -1
  690. package/lib/typescript/NumberFormatter/NumberFormatter.d.ts +24 -19
  691. package/lib/typescript/NumberFormatter/NumberFormatter.d.ts.map +1 -1
  692. package/lib/typescript/NumberInput/NumberInput.d.ts +91 -150
  693. package/lib/typescript/NumberInput/NumberInput.d.ts.map +1 -1
  694. package/lib/typescript/Overlay/Overlay.d.ts +17 -12
  695. package/lib/typescript/Overlay/Overlay.d.ts.map +1 -1
  696. package/lib/typescript/Pagination/Pagination.d.ts +43 -65
  697. package/lib/typescript/Pagination/Pagination.d.ts.map +1 -1
  698. package/lib/typescript/Paper/Paper.d.ts +19 -7
  699. package/lib/typescript/Paper/Paper.d.ts.map +1 -1
  700. package/lib/typescript/Paragraph/Paragraph.d.ts +23 -19
  701. package/lib/typescript/Paragraph/Paragraph.d.ts.map +1 -1
  702. package/lib/typescript/PasswordInput/PasswordInput.d.ts +110 -207
  703. package/lib/typescript/PasswordInput/PasswordInput.d.ts.map +1 -1
  704. package/lib/typescript/Pill/Pill.d.ts +133 -95
  705. package/lib/typescript/Pill/Pill.d.ts.map +1 -1
  706. package/lib/typescript/PillsInput/PillsInput.d.ts +2 -2
  707. package/lib/typescript/PillsInput/PillsInput.d.ts.map +1 -1
  708. package/lib/typescript/PinInput/PinInput.d.ts +148 -297
  709. package/lib/typescript/PinInput/PinInput.d.ts.map +1 -1
  710. package/lib/typescript/Popover/Popover.native.d.ts.map +1 -1
  711. package/lib/typescript/Popover/Popover.shared.d.ts +15 -11
  712. package/lib/typescript/Popover/Popover.shared.d.ts.map +1 -1
  713. package/lib/typescript/Progress/Progress.d.ts +114 -65
  714. package/lib/typescript/Progress/Progress.d.ts.map +1 -1
  715. package/lib/typescript/Radio/Radio.d.ts +69 -80
  716. package/lib/typescript/Radio/Radio.d.ts.map +1 -1
  717. package/lib/typescript/Radio/RadioIcon.d.ts +5 -0
  718. package/lib/typescript/Radio/RadioIcon.d.ts.map +1 -1
  719. package/lib/typescript/Rating/Rating.d.ts +94 -44
  720. package/lib/typescript/Rating/Rating.d.ts.map +1 -1
  721. package/lib/typescript/RollingNumber/RollingNumber.d.ts +112 -32
  722. package/lib/typescript/RollingNumber/RollingNumber.d.ts.map +1 -1
  723. package/lib/typescript/ScrollArea/ScrollArea.d.ts +50 -10
  724. package/lib/typescript/ScrollArea/ScrollArea.d.ts.map +1 -1
  725. package/lib/typescript/ScrollArea/ScrollArea.native.d.ts +40 -8
  726. package/lib/typescript/ScrollArea/ScrollArea.native.d.ts.map +1 -1
  727. package/lib/typescript/ScrollArea/ScrollArea.shared.d.ts +2 -2
  728. package/lib/typescript/SegmentedControl/SegmentedControl.d.ts +148 -56
  729. package/lib/typescript/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  730. package/lib/typescript/Select/Select.d.ts +31 -51
  731. package/lib/typescript/Select/Select.d.ts.map +1 -1
  732. package/lib/typescript/Separator/Separator.d.ts +124 -61
  733. package/lib/typescript/Separator/Separator.d.ts.map +1 -1
  734. package/lib/typescript/SimpleGrid/SimpleGrid.d.ts +15 -13
  735. package/lib/typescript/SimpleGrid/SimpleGrid.d.ts.map +1 -1
  736. package/lib/typescript/Skeleton/Skeleton.d.ts +18 -14
  737. package/lib/typescript/Skeleton/Skeleton.d.ts.map +1 -1
  738. package/lib/typescript/Slider/Slider.d.ts +425 -129
  739. package/lib/typescript/Slider/Slider.d.ts.map +1 -1
  740. package/lib/typescript/Spacer/Spacer.d.ts +10 -17
  741. package/lib/typescript/Spacer/Spacer.d.ts.map +1 -1
  742. package/lib/typescript/Spoiler/Spoiler.d.ts +88 -28
  743. package/lib/typescript/Spoiler/Spoiler.d.ts.map +1 -1
  744. package/lib/typescript/Stack/Stack.d.ts +17 -5
  745. package/lib/typescript/Stack/Stack.d.ts.map +1 -1
  746. package/lib/typescript/Stepper/Stepper.d.ts +433 -101
  747. package/lib/typescript/Stepper/Stepper.d.ts.map +1 -1
  748. package/lib/typescript/Switch/Switch.d.ts +157 -69
  749. package/lib/typescript/Switch/Switch.d.ts.map +1 -1
  750. package/lib/typescript/Table/Table.d.ts +151 -201
  751. package/lib/typescript/Table/Table.d.ts.map +1 -1
  752. package/lib/typescript/TableOfContents/TableOfContents.d.ts +116 -46
  753. package/lib/typescript/TableOfContents/TableOfContents.d.ts.map +1 -1
  754. package/lib/typescript/Tabs/Tabs.d.ts +138 -88
  755. package/lib/typescript/Tabs/Tabs.d.ts.map +1 -1
  756. package/lib/typescript/TagsInput/TagsInput.d.ts +30 -42
  757. package/lib/typescript/TagsInput/TagsInput.d.ts.map +1 -1
  758. package/lib/typescript/Text/Text.d.ts +22 -4
  759. package/lib/typescript/Text/Text.d.ts.map +1 -1
  760. package/lib/typescript/TextInput/TextInput.d.ts +1 -51
  761. package/lib/typescript/TextInput/TextInput.d.ts.map +1 -1
  762. package/lib/typescript/Textarea/Textarea.d.ts +1 -51
  763. package/lib/typescript/Textarea/Textarea.d.ts.map +1 -1
  764. package/lib/typescript/ThemeIcon/ThemeIcon.d.ts +52 -39
  765. package/lib/typescript/ThemeIcon/ThemeIcon.d.ts.map +1 -1
  766. package/lib/typescript/Title/Title.d.ts +40 -25
  767. package/lib/typescript/Title/Title.d.ts.map +1 -1
  768. package/lib/typescript/Tooltip/Tooltip.d.ts +97 -41
  769. package/lib/typescript/Tooltip/Tooltip.d.ts.map +1 -1
  770. package/lib/typescript/Transition/Transition.native.d.ts.map +1 -1
  771. package/lib/typescript/Transition/use-overlay-transition.d.ts +1 -2
  772. package/lib/typescript/Transition/use-overlay-transition.d.ts.map +1 -1
  773. package/lib/typescript/Transition/use-overlay-transition.native.d.ts +3 -4
  774. package/lib/typescript/Transition/use-overlay-transition.native.d.ts.map +1 -1
  775. package/lib/typescript/Tree/Tree.d.ts +180 -50
  776. package/lib/typescript/Tree/Tree.d.ts.map +1 -1
  777. package/lib/typescript/TreeSelect/TreeSelect.d.ts +141 -182
  778. package/lib/typescript/TreeSelect/TreeSelect.d.ts.map +1 -1
  779. package/lib/typescript/Typography/Typography.d.ts +13 -7
  780. package/lib/typescript/Typography/Typography.d.ts.map +1 -1
  781. package/lib/typescript/UnstyledButton/UnstyledButton.d.ts +27 -20
  782. package/lib/typescript/UnstyledButton/UnstyledButton.d.ts.map +1 -1
  783. package/lib/typescript/VirtualList/VirtualList.d.ts.map +1 -1
  784. package/lib/typescript/VirtualList/VirtualList.shared.d.ts +1 -1
  785. package/lib/typescript/VirtualList/VirtualList.shared.d.ts.map +1 -1
  786. package/lib/typescript/VisuallyHidden/VisuallyHidden.d.ts +23 -19
  787. package/lib/typescript/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
  788. package/lib/typescript/control-system.d.ts +3 -0
  789. package/lib/typescript/control-system.d.ts.map +1 -1
  790. package/lib/typescript/index.d.ts +2 -1
  791. package/lib/typescript/index.d.ts.map +1 -1
  792. package/lib/typescript/internal/InlineControl.d.ts +80 -22
  793. package/lib/typescript/internal/InlineControl.d.ts.map +1 -1
  794. package/lib/typescript/internal/collapse-box.d.ts +3 -3
  795. package/lib/typescript/internal/collapse-box.d.ts.map +1 -1
  796. package/lib/typescript/internal/collapse-box.shared.d.ts +1 -1
  797. package/lib/typescript/internal/control-icon-size.d.ts +4 -3
  798. package/lib/typescript/internal/control-icon-size.d.ts.map +1 -1
  799. package/lib/typescript/internal/control-metrics.d.ts +50 -50
  800. package/lib/typescript/internal/floating-arrow.d.ts +6 -7
  801. package/lib/typescript/internal/floating-arrow.d.ts.map +1 -1
  802. package/lib/typescript/internal/focus-ring.d.ts +94 -0
  803. package/lib/typescript/internal/focus-ring.d.ts.map +1 -0
  804. package/lib/typescript/internal/gradient-shared.d.ts +8 -8
  805. package/lib/typescript/internal/gradient-shared.d.ts.map +1 -1
  806. package/lib/typescript/internal/motion.d.ts +77 -67
  807. package/lib/typescript/internal/motion.d.ts.map +1 -1
  808. package/lib/typescript/internal/resolve-theme-color.d.ts +9 -8
  809. package/lib/typescript/internal/resolve-theme-color.d.ts.map +1 -1
  810. package/lib/typescript/internal/style-props.d.ts +490 -664
  811. package/lib/typescript/internal/style-props.d.ts.map +1 -1
  812. package/lib/typescript/internal/theme-color-web.d.ts.map +1 -1
  813. package/lib/typescript/internal/use-icon-color.d.ts +1 -1
  814. package/lib/typescript/internal/use-icon-color.native.d.ts +1 -1
  815. package/lib/typescript/internal/use-looping-animation.d.ts +10 -2
  816. package/lib/typescript/internal/use-looping-animation.d.ts.map +1 -1
  817. package/lib/typescript/internal/variant-colors.d.ts +191 -199
  818. package/lib/typescript/internal/variant-colors.d.ts.map +1 -1
  819. package/package.json +7 -6
  820. package/src/Accordion/Accordion.tsx +55 -47
  821. package/src/ActionIcon/ActionIcon.tsx +114 -57
  822. package/src/Affix/Affix.tsx +14 -25
  823. package/src/Alert/Alert.tsx +55 -42
  824. package/src/Anchor/Anchor.tsx +13 -12
  825. package/src/AngleSlider/AngleSlider.tsx +87 -63
  826. package/src/AspectRatio/AspectRatio.tsx +9 -12
  827. package/src/Autocomplete/Autocomplete.tsx +7 -2
  828. package/src/Avatar/Avatar.tsx +42 -34
  829. package/src/BackgroundImage/BackgroundImage.tsx +9 -6
  830. package/src/Badge/Badge.tsx +53 -28
  831. package/src/Blockquote/Blockquote.tsx +55 -45
  832. package/src/Box/Box.tsx +2 -2
  833. package/src/Breadcrumbs/Breadcrumbs.tsx +13 -11
  834. package/src/Burger/Burger.tsx +33 -24
  835. package/src/Button/Button.tsx +104 -78
  836. package/src/Card/Card.tsx +52 -44
  837. package/src/Center/Center.tsx +3 -3
  838. package/src/Checkbox/CheckIcon.tsx +8 -5
  839. package/src/Checkbox/Checkbox.tsx +97 -62
  840. package/src/Chip/Chip.tsx +50 -45
  841. package/src/CloseButton/CloseButton.tsx +30 -11
  842. package/src/Code/Code.tsx +15 -11
  843. package/src/Collapse/Collapse.tsx +11 -6
  844. package/src/ColorInput/ColorInput.tsx +30 -24
  845. package/src/ColorPicker/ColorPicker.tsx +78 -79
  846. package/src/ColorSwatch/ColorSwatch.tsx +11 -14
  847. package/src/Combobox/Combobox.tsx +174 -153
  848. package/src/Combobox/OptionsDropdown.tsx +15 -2
  849. package/src/Combobox/index.ts +1 -0
  850. package/src/Container/Container.tsx +11 -15
  851. package/src/Dialog/Dialog.tsx +26 -16
  852. package/src/Drawer/Drawer.tsx +51 -33
  853. package/src/Fieldset/Fieldset.tsx +25 -17
  854. package/src/FileButton/FileButton.tsx +4 -1
  855. package/src/Flex/Flex.tsx +24 -21
  856. package/src/FocusTrap/FocusTrap.tsx +4 -3
  857. package/src/Grid/Grid.tsx +24 -27
  858. package/src/Group/Group.tsx +4 -4
  859. package/src/Highlight/Highlight.tsx +2 -2
  860. package/src/HoverCard/HoverCard.tsx +17 -32
  861. package/src/Image/Image.native.tsx +36 -0
  862. package/src/Image/Image.tsx +240 -23
  863. package/src/Image/createImage.tsx +103 -67
  864. package/src/Image/types.ts +5 -1
  865. package/src/Indicator/Indicator.tsx +41 -32
  866. package/src/Input/Input.native.tsx +521 -501
  867. package/src/Input/Input.tsx +110 -156
  868. package/src/Input/shared.tsx +198 -291
  869. package/src/Input/types.ts +15 -0
  870. package/src/InputBase/InputBase.tsx +3 -1
  871. package/src/Kbd/Kbd.tsx +13 -15
  872. package/src/KeyboardAvoidingView/KeyboardAvoidingView.native.tsx +2 -2
  873. package/src/KeyboardAwareScrollView/KeyboardAwareScrollView.native.tsx +1 -1
  874. package/src/List/List.tsx +17 -11
  875. package/src/Loader/Loader.tsx +33 -37
  876. package/src/LoadingOverlay/LoadingOverlay.tsx +3 -2
  877. package/src/Mark/Mark.tsx +12 -12
  878. package/src/Marquee/Marquee.tsx +58 -46
  879. package/src/MaskInput/MaskInput.tsx +2 -1
  880. package/src/Menu/Menu.tsx +110 -45
  881. package/src/Modal/Modal.tsx +38 -31
  882. package/src/Modal/drag/DragDismissHost.web.tsx +2 -1
  883. package/src/Modal/drag/DragDismissOverlay.web.tsx +6 -1
  884. package/src/Modal/drag/index.ts +7 -2
  885. package/src/Modal/drag/types.ts +15 -3
  886. package/src/Modal/modal-base-inner.native.tsx +3 -2
  887. package/src/Modal/modal-base-inner.tsx +1 -1
  888. package/src/Modal/modal-base.tsx +10 -8
  889. package/src/MultiSelect/MultiSelect.tsx +6 -1
  890. package/src/NativeSelect/NativeSelect.tsx +21 -32
  891. package/src/NavLink/NavLink.tsx +54 -47
  892. package/src/Notification/Notification.tsx +31 -30
  893. package/src/NumberFormatter/NumberFormatter.tsx +4 -3
  894. package/src/NumberInput/NumberInput.tsx +52 -42
  895. package/src/Overlay/Overlay.tsx +18 -14
  896. package/src/Pagination/Pagination.tsx +142 -123
  897. package/src/Paper/Paper.tsx +8 -9
  898. package/src/Paragraph/Paragraph.tsx +7 -7
  899. package/src/PasswordInput/PasswordInput.tsx +67 -67
  900. package/src/Pill/Pill.tsx +42 -30
  901. package/src/PillsInput/PillsInput.tsx +60 -31
  902. package/src/PinInput/PinInput.tsx +31 -23
  903. package/src/Popover/Popover.native.tsx +3 -4
  904. package/src/Popover/Popover.shared.tsx +29 -24
  905. package/src/Progress/Progress.tsx +77 -64
  906. package/src/Radio/Radio.tsx +128 -122
  907. package/src/Radio/RadioIcon.tsx +4 -10
  908. package/src/Rating/Rating.tsx +63 -42
  909. package/src/RollingNumber/RollingNumber.tsx +60 -28
  910. package/src/ScrollArea/ScrollArea.native.tsx +28 -27
  911. package/src/ScrollArea/ScrollArea.shared.ts +2 -2
  912. package/src/ScrollArea/ScrollArea.tsx +35 -33
  913. package/src/SegmentedControl/SegmentedControl.tsx +98 -53
  914. package/src/Select/Select.tsx +7 -2
  915. package/src/Separator/Separator.tsx +43 -36
  916. package/src/SimpleGrid/SimpleGrid.tsx +23 -24
  917. package/src/Skeleton/Skeleton.tsx +35 -16
  918. package/src/Slider/Slider.tsx +303 -227
  919. package/src/Spacer/Spacer.tsx +17 -41
  920. package/src/Spoiler/Spoiler.tsx +19 -13
  921. package/src/Stack/Stack.tsx +3 -3
  922. package/src/Stepper/Stepper.tsx +89 -73
  923. package/src/Switch/Switch.tsx +87 -73
  924. package/src/Table/Table.tsx +100 -77
  925. package/src/TableOfContents/TableOfContents.tsx +80 -74
  926. package/src/Tabs/Tabs.tsx +78 -66
  927. package/src/TagsInput/TagsInput.tsx +35 -4
  928. package/src/Text/Text.tsx +25 -10
  929. package/src/TextInput/TextInput.tsx +3 -1
  930. package/src/Textarea/Textarea.tsx +2 -2
  931. package/src/ThemeIcon/ThemeIcon.tsx +37 -22
  932. package/src/Title/Title.tsx +48 -23
  933. package/src/Tooltip/Tooltip.tsx +50 -29
  934. package/src/Transition/Transition.native.tsx +16 -19
  935. package/src/Transition/use-overlay-transition.native.ts +6 -12
  936. package/src/Transition/use-overlay-transition.ts +2 -2
  937. package/src/Tree/Tree.tsx +39 -44
  938. package/src/TreeSelect/TreeSelect.tsx +49 -24
  939. package/src/Typography/Typography.tsx +5 -7
  940. package/src/UnstyledButton/UnstyledButton.tsx +6 -5
  941. package/src/VirtualList/VirtualList.shared.ts +1 -1
  942. package/src/VirtualList/VirtualList.tsx +18 -6
  943. package/src/VisuallyHidden/VisuallyHidden.tsx +7 -9
  944. package/src/control-system.ts +5 -0
  945. package/src/index.ts +30 -12
  946. package/src/internal/ControlIconProvider.tsx +1 -1
  947. package/src/internal/InlineControl.tsx +23 -27
  948. package/src/internal/collapse-box.shared.ts +1 -1
  949. package/src/internal/collapse-box.tsx +15 -11
  950. package/src/internal/control-icon-size.ts +5 -8
  951. package/src/internal/control-metrics.ts +52 -52
  952. package/src/internal/floating-arrow.tsx +48 -40
  953. package/src/internal/focus-ring.ts +92 -0
  954. package/src/internal/gradient-shared.ts +10 -10
  955. package/src/internal/gradient.native.tsx +1 -1
  956. package/src/internal/motion.ts +204 -244
  957. package/src/internal/resolve-theme-color.ts +10 -10
  958. package/src/internal/style-props.ts +545 -390
  959. package/src/internal/theme-color-web.ts +47 -27
  960. package/src/internal/use-icon-color.native.ts +1 -1
  961. package/src/internal/use-icon-color.ts +1 -1
  962. package/src/internal/use-slot-text-wrapper.tsx +1 -1
  963. package/src/internal/variant-colors.ts +187 -151
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
 
3
3
  import type { GetProps, TamaguiElement } from "@knitui/core";
4
- import { getTokenValue, styled, Theme } from "@knitui/core";
4
+ import { resolveToken, styleable, styled, Theme } from "@knitui/core";
5
5
  import { useCallbackRef, useId } from "@knitui/hooks";
6
6
 
7
7
  import { Box } from "../Box";
@@ -11,53 +11,23 @@ import { controlMetrics as M } from "../internal/control-metrics";
11
11
  import { ControlIconProvider } from "../internal/ControlIconProvider";
12
12
  import {
13
13
  fieldHeightVariant,
14
+ fontSizeOf,
14
15
  fontSizePassthroughVariant,
15
16
  radiusVariant,
16
17
  type SizeKey,
18
+ tableVariant,
17
19
  webCursor,
18
20
  } from "../internal/style-props";
19
21
  import { slotStyles, type SlotStyles } from "../internal/styles";
20
22
  import { Loader } from "../Loader";
21
23
  import { Text } from "../Text";
22
24
 
23
- export const defaultStyles = {
24
- size: "$true",
25
- fontFamily: "$body",
26
- borderWidth: 1,
27
- outlineWidth: 0,
28
- color: "$color",
29
-
30
- tabIndex: 0 as const,
31
-
32
- borderColor: "$borderColor",
33
- backgroundColor: "$background",
34
-
35
- // this fixes a flex bug where it overflows container
36
- minWidth: 0,
37
-
38
- hoverStyle: {
39
- borderColor: "$borderColorHover",
40
- },
41
-
42
- focusStyle: {
43
- borderColor: "$borderColorFocus",
44
- },
45
-
46
- focusVisibleStyle: {
47
- outlineColor: "$outlineColor",
48
- outlineWidth: 2,
49
- outlineStyle: "solid",
50
- },
51
- } as const;
52
-
53
25
  export const INPUT_NAME = "Input";
54
- export const DEFAULT_PLACEHOLDER_COLOR = "$color8";
55
- // Tamagui emits `.is_Input::selection { background-color: var(--t_selectionColor) }`
56
- // with no fallback. If we never set the var, the value is invalid at
57
- // computed-value time and `background-color` resolves to its initial value
58
- // (`transparent`) — making the selection highlight invisible on web. So we
59
- // always provide a visible default, the same way we do for the placeholder.
60
- export const DEFAULT_SELECTION_COLOR = "$blue5";
26
+ export const DEFAULT_PLACEHOLDER_COLOR = "color8";
27
+ // The host's default selection highlight. v3 resolves `selectionColor` like any
28
+ // colour style prop (web: a `::selection` rule on the host's atomic class; native:
29
+ // the resolved value handed to `TextInput`), so a theme name tracks the theme.
30
+ export const DEFAULT_SELECTION_COLOR = "blue5";
61
31
 
62
32
  type InputTokenSize = SizeKey;
63
33
  type InputLegacyHostSize = "xs" | "sm" | "md" | "lg" | "xl";
@@ -128,7 +98,7 @@ export const toInputSizeKey = (size: InputSize | undefined): InputLegacyHostSize
128
98
  * (change it here to retune all inputs at once); the per-instance `radius` prop
129
99
  * overrides it. Replaces the old per-size radius that lived in the size variant.
130
100
  */
131
- export const INPUT_DEFAULT_RADIUS = "$sm" as const;
101
+ export const INPUT_DEFAULT_RADIUS = "sm" as const;
132
102
 
133
103
  // Horizontal text inset per size (space scale) — the gap between the typed text /
134
104
  // placeholder and the field border (and any adornment section). Without it the
@@ -138,17 +108,18 @@ export const INPUT_DEFAULT_RADIUS = "$sm" as const;
138
108
  // an input's text size and edge gap match a Button of the same key. The
139
109
  // `:string`/`:number` catch-alls size font only (height is set separately from the
140
110
  // token map above).
141
- export const inputHostSizeVariant = {
142
- xxs: { fontSize: M.xxs.fontSize, paddingHorizontal: M.xxs.paddingHorizontal },
143
- xs: { fontSize: M.xs.fontSize, paddingHorizontal: M.xs.paddingHorizontal },
144
- sm: { fontSize: M.sm.fontSize, paddingHorizontal: M.sm.paddingHorizontal },
145
- md: { fontSize: M.md.fontSize, paddingHorizontal: M.md.paddingHorizontal },
146
- lg: { fontSize: M.lg.fontSize, paddingHorizontal: M.lg.paddingHorizontal },
147
- xl: { fontSize: M.xl.fontSize, paddingHorizontal: M.xl.paddingHorizontal },
148
- xxl: { fontSize: M.xxl.fontSize, paddingHorizontal: M.xxl.paddingHorizontal },
149
- ":string": fontSizePassthroughVariant[":string"],
150
- ":number": fontSizePassthroughVariant[":number"],
151
- } as const;
111
+ export const inputHostSizeVariant = tableVariant(
112
+ {
113
+ xxs: { fontSize: M.xxs.fontSize, paddingHorizontal: M.xxs.paddingHorizontal },
114
+ xs: { fontSize: M.xs.fontSize, paddingHorizontal: M.xs.paddingHorizontal },
115
+ sm: { fontSize: M.sm.fontSize, paddingHorizontal: M.sm.paddingHorizontal },
116
+ md: { fontSize: M.md.fontSize, paddingHorizontal: M.md.paddingHorizontal },
117
+ lg: { fontSize: M.lg.fontSize, paddingHorizontal: M.lg.paddingHorizontal },
118
+ xl: { fontSize: M.xl.fontSize, paddingHorizontal: M.xl.paddingHorizontal },
119
+ xxl: { fontSize: M.xxl.fontSize, paddingHorizontal: M.xxl.paddingHorizontal },
120
+ },
121
+ fontSizeOf,
122
+ );
152
123
 
153
124
  // A textarea shares the single-line host's HORIZONTAL padding, font and height
154
125
  // tokens (so the family scales as one unit), but its VERTICAL inset is its own
@@ -161,18 +132,18 @@ export const inputHostSizeVariant = {
161
132
  // NUMBER at render via the token system and folds it into the row-height math so N
162
133
  // rows renders as N full lines PLUS this inset on both platforms (see `Input.native.tsx`).
163
134
  const TEXTAREA_INSET_TOKEN = {
164
- xxs: "$xs",
165
- xs: "$xs",
166
- sm: "$sm",
167
- md: "$sm",
168
- lg: "$sm",
169
- xl: "$md",
170
- xxl: "$md",
171
- } as const satisfies Record<InputTokenSize, `$${string}`>;
135
+ xxs: "xs",
136
+ xs: "xs",
137
+ sm: "sm",
138
+ md: "sm",
139
+ lg: "sm",
140
+ xl: "md",
141
+ xxl: "md",
142
+ } as const satisfies Record<InputTokenSize, `${string}`>;
172
143
 
173
144
  export const getTextareaPaddingVertical = (size: InputSize | undefined): number => {
174
145
  const token = TEXTAREA_INSET_TOKEN[toInputTokenSizeKey(size)];
175
- const resolved = getTokenValue(token as Parameters<typeof getTokenValue>[0], "space");
146
+ const resolved = resolveToken(token, "space");
176
147
  return typeof resolved === "number" ? resolved : 0;
177
148
  };
178
149
 
@@ -190,52 +161,53 @@ export const getTextareaPaddingVertical = (size: InputSize | undefined): number
190
161
  // matches the native host's `getNativeLineHeight` and a textarea row is the same
191
162
  // height on web, iOS and Android — and, being a token, it is `rem` on the web, so
192
163
  // browser text zoom grows the line box together with the text.
193
- const textareaHostSizeVariant = {
194
- xxs: {
195
- fontSize: M.xxs.fontSize,
196
- lineHeight: M.xxs.fontSize,
197
- paddingHorizontal: M.xxs.paddingHorizontal,
198
- paddingVertical: TEXTAREA_INSET_TOKEN.xxs,
199
- },
200
- xs: {
201
- fontSize: M.xs.fontSize,
202
- lineHeight: M.xs.fontSize,
203
- paddingHorizontal: M.xs.paddingHorizontal,
204
- paddingVertical: TEXTAREA_INSET_TOKEN.xs,
205
- },
206
- sm: {
207
- fontSize: M.sm.fontSize,
208
- lineHeight: M.sm.fontSize,
209
- paddingHorizontal: M.sm.paddingHorizontal,
210
- paddingVertical: TEXTAREA_INSET_TOKEN.sm,
211
- },
212
- md: {
213
- fontSize: M.md.fontSize,
214
- lineHeight: M.md.fontSize,
215
- paddingHorizontal: M.md.paddingHorizontal,
216
- paddingVertical: TEXTAREA_INSET_TOKEN.md,
217
- },
218
- lg: {
219
- fontSize: M.lg.fontSize,
220
- lineHeight: M.lg.fontSize,
221
- paddingHorizontal: M.lg.paddingHorizontal,
222
- paddingVertical: TEXTAREA_INSET_TOKEN.lg,
223
- },
224
- xl: {
225
- fontSize: M.xl.fontSize,
226
- lineHeight: M.xl.fontSize,
227
- paddingHorizontal: M.xl.paddingHorizontal,
228
- paddingVertical: TEXTAREA_INSET_TOKEN.xl,
229
- },
230
- xxl: {
231
- fontSize: M.xxl.fontSize,
232
- lineHeight: M.xxl.fontSize,
233
- paddingHorizontal: M.xxl.paddingHorizontal,
234
- paddingVertical: TEXTAREA_INSET_TOKEN.xxl,
164
+ const textareaHostSizeVariant = tableVariant(
165
+ {
166
+ xxs: {
167
+ fontSize: M.xxs.fontSize,
168
+ lineHeight: M.xxs.fontSize,
169
+ paddingHorizontal: M.xxs.paddingHorizontal,
170
+ paddingVertical: TEXTAREA_INSET_TOKEN.xxs,
171
+ },
172
+ xs: {
173
+ fontSize: M.xs.fontSize,
174
+ lineHeight: M.xs.fontSize,
175
+ paddingHorizontal: M.xs.paddingHorizontal,
176
+ paddingVertical: TEXTAREA_INSET_TOKEN.xs,
177
+ },
178
+ sm: {
179
+ fontSize: M.sm.fontSize,
180
+ lineHeight: M.sm.fontSize,
181
+ paddingHorizontal: M.sm.paddingHorizontal,
182
+ paddingVertical: TEXTAREA_INSET_TOKEN.sm,
183
+ },
184
+ md: {
185
+ fontSize: M.md.fontSize,
186
+ lineHeight: M.md.fontSize,
187
+ paddingHorizontal: M.md.paddingHorizontal,
188
+ paddingVertical: TEXTAREA_INSET_TOKEN.md,
189
+ },
190
+ lg: {
191
+ fontSize: M.lg.fontSize,
192
+ lineHeight: M.lg.fontSize,
193
+ paddingHorizontal: M.lg.paddingHorizontal,
194
+ paddingVertical: TEXTAREA_INSET_TOKEN.lg,
195
+ },
196
+ xl: {
197
+ fontSize: M.xl.fontSize,
198
+ lineHeight: M.xl.fontSize,
199
+ paddingHorizontal: M.xl.paddingHorizontal,
200
+ paddingVertical: TEXTAREA_INSET_TOKEN.xl,
201
+ },
202
+ xxl: {
203
+ fontSize: M.xxl.fontSize,
204
+ lineHeight: M.xxl.fontSize,
205
+ paddingHorizontal: M.xxl.paddingHorizontal,
206
+ paddingVertical: TEXTAREA_INSET_TOKEN.xxl,
207
+ },
235
208
  },
236
- ":string": fontSizePassthroughVariant[":string"],
237
- ":number": fontSizePassthroughVariant[":number"],
238
- } as const;
209
+ fontSizeOf,
210
+ );
239
211
 
240
212
  // The loading `Loader` stands in for a section icon, so it takes the SAME
241
213
  // canonical in-control icon px (`controlIconSize`) rather than the full input
@@ -244,13 +216,13 @@ const toInputLoaderSize = (size: InputSize | undefined) =>
244
216
  controlIconSize(toInputTokenSizeKey(size));
245
217
 
246
218
  export const InputRootFrame = styled(Box, {
247
- name: "InputRoot",
219
+ displayName: "InputRoot",
248
220
  flexDirection: "row",
249
221
  alignItems: "center",
250
222
  minWidth: 0,
251
223
  borderWidth: 1,
252
- borderColor: "$borderColor",
253
- backgroundColor: "$background",
224
+ borderColor: "borderColor",
225
+ backgroundColor: "background",
254
226
  borderRadius: INPUT_DEFAULT_RADIUS,
255
227
  ...webCursor("text"),
256
228
  overflow: "hidden",
@@ -261,7 +233,7 @@ export const InputRootFrame = styled(Box, {
261
233
  variant: {
262
234
  default: {},
263
235
  filled: {
264
- backgroundColor: "$color2",
236
+ backgroundColor: "color2",
265
237
  },
266
238
  unstyled: {
267
239
  borderWidth: 0,
@@ -270,16 +242,18 @@ export const InputRootFrame = styled(Box, {
270
242
  },
271
243
  focused: {
272
244
  true: {
273
- borderColor: "$borderColorFocus",
245
+ // The accent-aware focus key (each theme's color8). The generated
246
+ // `borderColorFocus` equals `borderColor`, so it showed no change.
247
+ borderColor: "focusRingColor",
274
248
  },
275
249
  },
276
- // Error border stays red under every accent theme. `$red9` is a raw palette
250
+ // Error border stays red under every accent theme. `red9` is a raw palette
277
251
  // token exposed on every theme via the base theme's `extra` (see
278
252
  // core/config/themes.ts), so it reads red without a hardcoded hex and
279
253
  // without theming the frame (which would tint the background and children).
280
254
  error: {
281
255
  true: {
282
- borderColor: "$red9",
256
+ borderColor: "red9",
283
257
  },
284
258
  },
285
259
  disabled: {
@@ -308,7 +282,7 @@ export const InputRootFrame = styled(Box, {
308
282
  });
309
283
 
310
284
  export const InputSectionFrame = styled(Box, {
311
- name: "InputSection",
285
+ displayName: "InputSection",
312
286
  alignItems: "center",
313
287
  justifyContent: "center",
314
288
  flexShrink: 0,
@@ -478,12 +452,19 @@ export const getInputSectionInsets = (
478
452
  defaultSection: options.__defaultRightSection,
479
453
  });
480
454
 
481
- return {
482
- ...(left ? { paddingLeft: 0 as const } : null),
483
- ...(right ? { paddingRight: 0 as const } : null),
484
- };
455
+ // Shared constant objects: the result is spread onto the host on every
456
+ // keystroke-driven render, so it must not allocate.
457
+ return left ? (right ? INSET_BOTH : INSET_LEFT) : right ? INSET_RIGHT : INSET_NONE;
485
458
  };
486
459
 
460
+ const INSET_NONE: { paddingLeft?: 0; paddingRight?: 0 } = Object.freeze({});
461
+ const INSET_LEFT: { paddingLeft: 0 } = Object.freeze({ paddingLeft: 0 as const });
462
+ const INSET_RIGHT: { paddingRight: 0 } = Object.freeze({ paddingRight: 0 as const });
463
+ const INSET_BOTH: { paddingLeft: 0; paddingRight: 0 } = Object.freeze({
464
+ paddingLeft: 0 as const,
465
+ paddingRight: 0 as const,
466
+ });
467
+
487
468
  const getSectionPointerEvents = (
488
469
  value: InputSectionPointerEvents,
489
470
  ): InputSectionFrameProps["sectionPointerEvents"] => (value === "all" ? "all" : "none");
@@ -574,11 +555,14 @@ export function InputChrome(props: InputChromeProps) {
574
555
  size={size}
575
556
  radius={radius as InputRootFrameProps["radius"]}
576
557
  variant={variant}
577
- error={!!error}
578
- disabled={disabled}
579
558
  pointer={pointer}
580
- focused={focused}
581
559
  multiline={multiline}
560
+ // v3 resolves overlapping variants in CALL-SITE prop order (last wins), so
561
+ // the state flags go weakest → strongest: a focused field in error keeps
562
+ // its red border, and disabled caps everything.
563
+ focused={focused}
564
+ error={!!error}
565
+ disabled={disabled}
582
566
  onPress={disabled ? undefined : handleRootPress}
583
567
  >
584
568
  {leftContent ? (
@@ -587,7 +571,7 @@ export function InputChrome(props: InputChromeProps) {
587
571
  sectionPointerEvents={getSectionPointerEvents(leftSectionPointerEvents)}
588
572
  {...mergedLeftSectionProps}
589
573
  >
590
- <ControlIconProvider size={sectionIconSize} color="$color">
574
+ <ControlIconProvider size={sectionIconSize} color="color">
591
575
  {leftContent}
592
576
  </ControlIconProvider>
593
577
  </InputSectionFrame>
@@ -601,7 +585,7 @@ export function InputChrome(props: InputChromeProps) {
601
585
  sectionPointerEvents={getSectionPointerEvents(effectiveRightSectionPointerEvents)}
602
586
  {...mergedRightSectionProps}
603
587
  >
604
- <ControlIconProvider size={sectionIconSize} color="$color">
588
+ <ControlIconProvider size={sectionIconSize} color="color">
605
589
  {rightContent}
606
590
  </ControlIconProvider>
607
591
  </InputSectionFrame>
@@ -611,15 +595,15 @@ export function InputChrome(props: InputChromeProps) {
611
595
  }
612
596
 
613
597
  export const InputWrapperFrame = styled(Box, {
614
- name: "InputWrapper",
598
+ displayName: "InputWrapper",
615
599
  flexDirection: "column",
616
600
  minWidth: 0,
617
601
  gap: 4,
618
602
  });
619
603
 
620
604
  export const InputLabelFrame = styled(Text, {
621
- name: "InputLabel",
622
- color: "$color",
605
+ displayName: "InputLabel",
606
+ color: "color",
623
607
  fontWeight: "500",
624
608
  userSelect: "none",
625
609
 
@@ -633,7 +617,7 @@ export const InputLabelFrame = styled(Text, {
633
617
  });
634
618
 
635
619
  const InputMetaText = styled(Text, {
636
- color: "$color",
620
+ color: "color",
637
621
  opacity: 0.65,
638
622
 
639
623
  variants: {
@@ -645,20 +629,34 @@ const InputMetaText = styled(Text, {
645
629
  },
646
630
  });
647
631
 
632
+ // The three meta parts only map props to styles, so they are plain `styled()`
633
+ // frames (flatten-first): the host tag rides `render` in the base, the error
634
+ // colour is the theme-independent `red9` (exposed on every theme, see
635
+ // core/config/themes.source.ts `extra`), and the placeholder's error tint is a
636
+ // static variant.
648
637
  export const InputDescriptionFrame = styled(InputMetaText, {
649
- name: "InputDescription",
638
+ displayName: "InputDescription",
639
+ render: "p",
650
640
  });
651
641
 
652
642
  export const InputErrorFrame = styled(InputMetaText, {
653
- name: "InputError",
643
+ displayName: "InputError",
644
+ render: "p",
654
645
  opacity: 1,
655
- color: "$color9",
646
+ color: "red9",
656
647
  });
657
648
 
658
649
  export const InputPlaceholderFrame = styled(Text, {
659
- name: "InputPlaceholder",
660
- color: "$color",
650
+ displayName: "InputPlaceholder",
651
+ render: "span",
652
+ color: "color",
661
653
  opacity: 0.55,
654
+
655
+ variants: {
656
+ error: {
657
+ true: { color: "color10" },
658
+ },
659
+ } as const,
662
660
  });
663
661
 
664
662
  export type InputWrapperOrderItem = "label" | "description" | "input" | "error";
@@ -684,7 +682,8 @@ type InputLabelMouseDownEvent = Parameters<
684
682
  NonNullable<GetProps<typeof InputLabelFrame>["onMouseDown"]>
685
683
  >[0];
686
684
 
687
- export const InputLabel = InputLabelFrame.styleable<InputLabelProps>(
685
+ export const InputLabel = styleable<InputLabelProps>(
686
+ InputLabelFrame,
688
687
  function InputLabel(props, ref) {
689
688
  const {
690
689
  children,
@@ -712,7 +711,7 @@ export const InputLabel = InputLabelFrame.styleable<InputLabelProps>(
712
711
  {children}
713
712
  {required ? (
714
713
  <Theme name="red">
715
- <Text aria-hidden color="$color" {...requiredProps}>
714
+ <Text aria-hidden color="color" {...requiredProps}>
716
715
  {" *"}
717
716
  </Text>
718
717
  </Theme>
@@ -723,38 +722,13 @@ export const InputLabel = InputLabelFrame.styleable<InputLabelProps>(
723
722
  );
724
723
 
725
724
  export type InputDescriptionProps = GetProps<typeof InputDescriptionFrame>;
726
-
727
- export const InputDescription = InputDescriptionFrame.styleable<InputDescriptionProps>(
728
- function InputDescription(props, ref) {
729
- return <InputDescriptionFrame ref={ref} render="p" {...props} />;
730
- },
731
- );
725
+ export const InputDescription = InputDescriptionFrame;
732
726
 
733
727
  export type InputErrorProps = GetProps<typeof InputErrorFrame>;
728
+ export const InputError = InputErrorFrame;
734
729
 
735
- export const InputError = InputErrorFrame.styleable<InputErrorProps>(
736
- function InputError(props, ref) {
737
- return <InputErrorFrame ref={ref} render="p" {...props} theme={"red"} />;
738
- },
739
- );
740
-
741
- export interface InputPlaceholderProps extends GetProps<typeof InputPlaceholderFrame> {
742
- error?: React.ReactNode;
743
- }
744
-
745
- export const InputPlaceholder = InputPlaceholderFrame.styleable<InputPlaceholderProps>(
746
- function InputPlaceholder(props, ref) {
747
- const { error, ...rest } = props;
748
- return (
749
- <InputPlaceholderFrame
750
- ref={ref}
751
- color={error ? "$color10" : undefined}
752
- render="span"
753
- {...rest}
754
- />
755
- );
756
- },
757
- );
730
+ export type InputPlaceholderProps = GetProps<typeof InputPlaceholderFrame>;
731
+ export const InputPlaceholder = InputPlaceholderFrame;
758
732
 
759
733
  export type InputClearButtonProps = CloseButtonProps;
760
734
  export const InputClearButton = CloseButton;
@@ -830,7 +804,8 @@ export interface InputWrapperProps extends GetProps<typeof InputWrapperFrame> {
830
804
 
831
805
  export type InputRootRef = TamaguiElement;
832
806
 
833
- export const InputWrapper = InputWrapperFrame.styleable<InputWrapperProps>(
807
+ export const InputWrapper = styleable<InputWrapperProps>(
808
+ InputWrapperFrame,
834
809
  function InputWrapper(props, ref) {
835
810
  const {
836
811
  label,
@@ -934,136 +909,68 @@ export const InputWrapper = InputWrapperFrame.styleable<InputWrapperProps>(
934
909
  },
935
910
  );
936
911
 
937
- export const styledTextareaBody = [
938
- {
939
- name: INPUT_NAME,
940
- render: "textarea",
941
- // Anchor the font family on the host itself (not only in `defaultStyles`).
942
- // The host is always rendered `unstyled`, so the `unstyled: { false: … }`
943
- // branch never runs — without a family here, a `fontSize` TOKEN (`"$md"`)
944
- // has no font scale to resolve against and the per-size font size is lost.
945
- // (The `button` host sets the same family inline for the same reason.)
946
- fontFamily: "$body",
947
- // Same reason: `defaultStyles.color` only applies in the never-run
948
- // `unstyled: { false: … }` branch, and a bare `<textarea>` doesn't inherit
949
- // `color` from ancestors — so the typed text would fall back to the browser
950
- // default and ignore the theme. A consumer-passed `color` prop still wins.
951
- color: "$color",
952
- variants: {
953
- unstyled: {
954
- true: {
955
- outlineWidth: 0,
956
- outlineStyle: "none" as const,
957
- outlineColor: "transparent",
958
- borderWidth: 0,
959
- borderColor: "transparent",
960
- backgroundColor: "transparent",
961
- boxShadow: "none",
962
- focusStyle: {
963
- outlineWidth: 0,
964
- outlineStyle: "none" as const,
965
- borderWidth: 0,
966
- borderColor: "transparent",
967
- boxShadow: "none",
968
- },
969
- focusVisibleStyle: {
970
- outlineWidth: 0,
971
- outlineStyle: "none" as const,
972
- borderWidth: 0,
973
- borderColor: "transparent",
974
- boxShadow: "none",
975
- },
976
- },
977
- false: defaultStyles,
978
- },
979
- size: textareaHostSizeVariant,
980
- disabled: {
981
- true: {},
982
- },
983
- } as const,
984
- defaultVariants: {
985
- unstyled: process.env.TAMAGUI_HEADLESS === "1",
986
- },
987
- },
988
- {
989
- isInput: true,
990
- accept: {
991
- placeholderTextColor: "color",
992
- selectionColor: "color",
993
- cursorColor: "color",
994
- selectionHandleColor: "color",
995
- underlineColorAndroid: "color",
996
- } as const,
997
- validStyles: Text.staticConfig.validStyles,
998
- },
999
- ] as const;
1000
-
1001
- export const styledBody = [
1002
- {
1003
- name: INPUT_NAME,
1004
- render: "input",
1005
- // Anchor the font family on the host itself (not only in `defaultStyles`).
1006
- // The host is always rendered `unstyled`, so the `unstyled: { false: … }`
1007
- // branch never runs — without a family here, a `fontSize` TOKEN (`"$md"`)
1008
- // has no font scale to resolve against and the per-size font size is lost.
1009
- // (The `button` host sets the same family inline for the same reason.)
1010
- fontFamily: "$body",
1011
- // Same reason: `defaultStyles.color` only applies in the never-run
1012
- // `unstyled: { false: … }` branch, and a bare `<input>` doesn't inherit
1013
- // `color` from ancestors — so the typed text would fall back to the browser
1014
- // default and ignore the theme. A consumer-passed `color` prop still wins.
1015
- color: "$color",
1016
- variants: {
1017
- unstyled: {
1018
- true: {
1019
- // The wrapper owns all input chrome; the host control should stay visually bare.
1020
- outlineWidth: 0,
1021
- outlineStyle: "none",
1022
- outlineColor: "transparent",
1023
- borderWidth: 0,
1024
- borderColor: "transparent",
1025
- backgroundColor: "transparent",
1026
- boxShadow: "none",
1027
- focusStyle: {
1028
- outlineWidth: 0,
1029
- outlineStyle: "none",
1030
- borderWidth: 0,
1031
- borderColor: "transparent",
1032
- boxShadow: "none",
1033
- },
1034
- focusVisibleStyle: {
1035
- outlineWidth: 0,
1036
- outlineStyle: "none",
1037
- borderWidth: 0,
1038
- borderColor: "transparent",
1039
- boxShadow: "none",
1040
- },
1041
- },
1042
- false: defaultStyles,
1043
- },
1044
-
1045
- size: inputHostSizeVariant,
1046
-
1047
- disabled: {
1048
- true: {},
1049
- },
1050
- } as const,
912
+ /**
913
+ * The bare text-host skin shared by the single-line and multiline hosts (web
914
+ * `<input>`/`<textarea>`, native `TextInput`). The wrapper (`InputChrome`) owns all
915
+ * field chrome — border, background, focus border, sections — so the host itself
916
+ * only resets the platform chrome and carries the text styles:
917
+ *
918
+ * - `fontFamily` / `color` sit on the host itself: a bare `<input>` doesn't inherit
919
+ * `color`, and a `fontSize` token needs a font family to resolve against.
920
+ * - `placeholderTextColor` / `selectionColor` are v3 INPUT colour style props
921
+ * (`isInput: true` below opts the frame into them): on web they compile to
922
+ * `::placeholder` / `::selection` rules on the host's atomic classes, on native
923
+ * they resolve against the theme and reach `TextInput` as props. A call-site
924
+ * `placeholderTextColor="red9"` simply overrides the base value — no CSS custom
925
+ * property bridge, no `useTheme()`, nothing allocated per render.
926
+ */
927
+ const INPUT_HOST_SKIN = {
928
+ fontFamily: "body",
929
+ color: "color",
930
+ outlineWidth: 0,
931
+ outlineStyle: "none",
932
+ outlineColor: "transparent",
933
+ borderWidth: 0,
934
+ borderColor: "transparent",
935
+ backgroundColor: "transparent",
936
+ boxShadow: "none",
937
+ placeholderTextColor: DEFAULT_PLACEHOLDER_COLOR,
938
+ selectionColor: DEFAULT_SELECTION_COLOR,
939
+ } as const;
1051
940
 
1052
- defaultVariants: {
1053
- unstyled: process.env.TAMAGUI_HEADLESS === "1",
1054
- },
941
+ /**
942
+ * `styled()` config of the single-line text host:
943
+ * `styled(Box, { ...INPUT_HOST_CONFIG, render: "input" }, INPUT_HOST_STATIC)` on web,
944
+ * `styled(TextInput, INPUT_HOST_CONFIG, INPUT_HOST_STATIC)` on native (no `render`:
945
+ * the host IS the RN `TextInput`).
946
+ */
947
+ export const INPUT_HOST_CONFIG = {
948
+ displayName: INPUT_NAME,
949
+ ...INPUT_HOST_SKIN,
950
+ variants: {
951
+ size: inputHostSizeVariant,
952
+ } as const,
953
+ defaultVariants: {
954
+ size: "md",
1055
955
  },
956
+ } as const;
1056
957
 
1057
- {
1058
- isInput: true,
1059
- accept: {
1060
- placeholderTextColor: "color",
1061
- selectionColor: "color",
1062
- cursorColor: "color",
1063
- selectionHandleColor: "color",
1064
- underlineColorAndroid: "color",
1065
- } as const,
1066
-
1067
- validStyles: Text.staticConfig.validStyles,
958
+ /** `styled()` config of the web multiline host (`<textarea>`). */
959
+ export const TEXTAREA_HOST_CONFIG = {
960
+ displayName: "InputTextarea",
961
+ render: "textarea",
962
+ ...INPUT_HOST_SKIN,
963
+ variants: {
964
+ size: textareaHostSizeVariant,
965
+ } as const,
966
+ defaultVariants: {
967
+ size: "md",
1068
968
  },
1069
- ] as const;
969
+ } as const;
970
+
971
+ /**
972
+ * Static config of both text hosts: `isInput` gives the frame v3's input style
973
+ * surface (text styles + the input colour props) and forwards `disabled` to the
974
+ * real element.
975
+ */
976
+ export const INPUT_HOST_STATIC = { isInput: true } as const;