@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 { withStaticProperties } from "@knitui/core";
4
- import { useCallbackRef, useUncontrolled } from "@knitui/hooks";
4
+ import { useCallbackRef, useId, useUncontrolled } from "@knitui/hooks";
5
5
 
6
6
  import {
7
7
  Combobox,
@@ -20,6 +20,7 @@ import {
20
20
  composeTriggerRightSection,
21
21
  defaultOptionsFilter,
22
22
  flattenComboboxOptions,
23
+ getComboboxOptionId,
23
24
  getParsedComboboxData,
24
25
  isComboboxGroup,
25
26
  type OptionsDropdownProps,
@@ -47,7 +48,7 @@ type TagsInputFieldProps = Omit<
47
48
  /**
48
49
  * Named style slots (Pillar B / `internal/styles.ts`), keyed 1:1 with the
49
50
  * TagsInput part surface. Each key maps to the props of the part it targets, so
50
- * `styles={{ pill: { bg: "$color3" } }}` is sugar for `<TagsInput.Pill bg="$color3" />`.
51
+ * `styles={{ pill: { bg: "color3" } }}` is sugar for `<TagsInput.Pill bg="color3" />`.
51
52
  */
52
53
  export interface TagsInputStyles {
53
54
  /** Props for the state-machine root (`TagsInput.Root` → `<Combobox>`). */
@@ -121,6 +122,13 @@ function splitTags(value: string, splitChars: string[]): string[] {
121
122
  interface TagsInputContextValue {
122
123
  /** The shared combobox store (open state + keyboard target). */
123
124
  combobox: ReturnType<typeof useCombobox>;
125
+ /** id wiring `aria-controls` (field) ↔ the suggestion dropdown. */
126
+ dropdownId: string;
127
+ /**
128
+ * Whether there is suggestion data at all. Only then is the field an ARIA
129
+ * `combobox` (a free-text tag field with no suggestions stays a plain textbox).
130
+ */
131
+ hasSuggestions: boolean;
124
132
  size: ComboboxSize;
125
133
  /** Step-down pill size derived from the field size. */
126
134
  pillSize: PillProps["size"];
@@ -435,6 +443,8 @@ function TagsInputRoot(props: TagsInputRootProps) {
435
443
  });
436
444
 
437
445
  const [activeValue, setActiveValue] = React.useState<string | null>(null);
446
+ // SSR-safe id linking the field's `aria-controls` to the suggestion dropdown.
447
+ const dropdownId = useId(__triggerProps?.id ? `${__triggerProps.id}-dropdown` : undefined);
438
448
  // Set on a user-typed search change so the next `flatOptions` recompute highlights
439
449
  // the first match (Mantine's `selectFirstOptionOnChange`); a ref avoids racing the
440
450
  // filter memo and scopes the behaviour to actual input changes.
@@ -633,6 +643,8 @@ function TagsInputRoot(props: TagsInputRootProps) {
633
643
  const ctx = React.useMemo<TagsInputContextValue>(
634
644
  () => ({
635
645
  combobox,
646
+ dropdownId,
647
+ hasSuggestions: parsed.length > 0,
636
648
  size,
637
649
  pillSize,
638
650
  disabled,
@@ -664,6 +676,8 @@ function TagsInputRoot(props: TagsInputRootProps) {
664
676
  // context (it is rebuilt every render and only the Trigger reads it).
665
677
  [
666
678
  combobox,
679
+ dropdownId,
680
+ parsed.length,
667
681
  size,
668
682
  pillSize,
669
683
  disabled,
@@ -847,6 +861,22 @@ const TagsInputTrigger = React.forwardRef<TagsInputRef, TagsInputTriggerProps>(
847
861
  <TagsInputPills>
848
862
  {pills}
849
863
  <PillsInput.Field
864
+ {...(ctx.hasSuggestions
865
+ ? {
866
+ role: "combobox" as const,
867
+ "aria-autocomplete": "list" as const,
868
+ "aria-controls": ctx.dropdownId,
869
+ "aria-expanded": ctx.combobox.opened,
870
+ ...(ctx.combobox.opened && ctx.activeValue != null
871
+ ? {
872
+ "aria-activedescendant": getComboboxOptionId(
873
+ ctx.dropdownId,
874
+ ctx.activeValue,
875
+ ),
876
+ }
877
+ : null),
878
+ }
879
+ : null)}
850
880
  placeholder={placeholder}
851
881
  value={ctx.search}
852
882
  disabled={ctx.disabled}
@@ -877,9 +907,9 @@ const TagsInputDropdown = React.forwardRef<
877
907
  >(function TagsInputDropdown(props, ref) {
878
908
  const ctx = useTagsInputContext();
879
909
  const s = slotStyles<TagsInputStyles>(ctx.styles, TAGS_INPUT_SLOT_KEYS, "TagsInput");
880
- const { children, ...rest } = props;
910
+ const { id = ctx.dropdownId, children, ...rest } = props;
881
911
  return (
882
- <Combobox.Dropdown ref={ref} {...s.get("dropdown")} {...rest}>
912
+ <Combobox.Dropdown ref={ref} id={id} {...s.get("dropdown")} {...rest}>
883
913
  {children ?? <TagsInputOptions />}
884
914
  </Combobox.Dropdown>
885
915
  );
@@ -919,6 +949,7 @@ function TagsInputOptions(props: TagsInputOptionsProps) {
919
949
  withScrollArea={ctx.withScrollArea}
920
950
  maxDropdownHeight={ctx.maxDropdownHeight}
921
951
  renderOption={ctx.renderOption}
952
+ optionIdPrefix={ctx.dropdownId}
922
953
  // The `option`/`group`/`empty` slots reach each rendered row through OptionsDropdown.
923
954
  optionProps={s.get("option")}
924
955
  groupProps={s.get("group")}
package/src/Text/Text.tsx CHANGED
@@ -20,15 +20,26 @@ type TextStyleProps = GetProps<typeof TamaguiText>;
20
20
  * deliberate divergence — use the `c` style prop / `theme`, not a `color` prop.
21
21
  */
22
22
  export const Text = styled(TamaguiText, {
23
- name: "Text",
24
- fontFamily: "$body",
25
- color: "$color",
26
- fontSize: "$md",
23
+ displayName: "Text",
24
+ fontFamily: "body",
25
+ color: "color",
26
+ fontSize: "md",
27
+ // v2 parity: Tamagui v2's shared `font_*` rule gave every font-classed text the
28
+ // font's `$true` line height (the `md` step) whatever its `fontSize`. v3's rule
29
+ // only sets `font-family` (and fonts have no `true` key), so without this every
30
+ // Text fell back to `line-height: normal` and text rows shrank (26px → 15–33px).
31
+ // Components that pair line height with size set it explicitly and win. Web
32
+ // only (a static spread, not a `web:` clause, so a later bare value still
33
+ // replaces it): v2 never applied a default line height on native.
34
+ ...(isWeb ? { lineHeight: "md" as const } : null),
27
35
  variants: {
28
36
  size: fontSizeVariant,
29
- lineClamp: {
30
- ":number": (val: number) => ({ numberOfLines: val }),
31
- },
37
+ /**
38
+ * Multi-line clamp. Maps onto the host `numberOfLines`, which v3's own Text
39
+ * turns into `-webkit-line-clamp` on web (a variant of the base Text there)
40
+ * and passes to the native `<Text>` on iOS/Android.
41
+ */
42
+ lineClamp: styled.dynamic<number>((lines) => ({ numberOfLines: lines })),
32
43
  truncate: {
33
44
  true: { ellipsis: true },
34
45
  end: { ellipsis: true },
@@ -61,9 +72,13 @@ export const Text = styled(TamaguiText, {
61
72
  fontFamily: "inherit" as TextStyleProps["fontFamily"],
62
73
  },
63
74
  },
64
- span: {
65
- true: { render: "span" },
66
- },
75
+ /**
76
+ * Mantine parity: render an inline element. The kit's `Text` already renders
77
+ * a `<span>` on web (and an inline RN `<Text>` on native), so this is a
78
+ * declared, consumed prop with no style of its own — a variant body cannot
79
+ * carry `render` in v3. Use `render="p"` / `Paragraph` for a block.
80
+ */
81
+ span: styled.dynamic<boolean>(),
67
82
  } as const,
68
83
  });
69
84
 
@@ -1,5 +1,7 @@
1
1
  import * as React from "react";
2
2
 
3
+ import { styleable } from "@knitui/core";
4
+
3
5
  import { InputBase, type InputBaseProps } from "../InputBase";
4
6
 
5
7
  /**
@@ -19,6 +21,6 @@ export type TextInputRef = React.ComponentRef<typeof InputBase>;
19
21
  * React Native `TextInput` on native. Accent/theme comes from the Tamagui `theme`
20
22
  * prop + palette ramp — never a Mantine `color` prop.
21
23
  */
22
- export const TextInput = InputBase.styleable<TextInputProps>(function TextInput(props, ref) {
24
+ export const TextInput = styleable<TextInputProps>(InputBase, function TextInput(props, ref) {
23
25
  return <InputBase ref={ref} {...props} />;
24
26
  });
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
 
3
- import { isWeb } from "@knitui/core";
3
+ import { isWeb, styleable } from "@knitui/core";
4
4
  import { useMergedRef } from "@knitui/hooks";
5
5
 
6
6
  import { InputBase, type InputBaseProps } from "../InputBase";
@@ -56,7 +56,7 @@ const asTextarea = (node: TextareaRef | null): HTMLTextAreaElement | null =>
56
56
  * `autosize` grows the field from `minRows` up to `maxRows` on both platforms; the
57
57
  * CSS `resize` handle is web-only (a no-op on native).
58
58
  */
59
- export const Textarea = InputBase.styleable<TextareaProps>(function Textarea(props, ref) {
59
+ export const Textarea = styleable<TextareaProps>(InputBase, function Textarea(props, ref) {
60
60
  const {
61
61
  autosize = false,
62
62
  // A Textarea always opens at two text lines unless the consumer narrows it.
@@ -1,6 +1,12 @@
1
1
  import * as React from "react";
2
2
 
3
- import { createStyledContext, type GetProps, styled, withStaticProperties } from "@knitui/core";
3
+ import {
4
+ createStyledContext,
5
+ type GetProps,
6
+ styleable,
7
+ styled,
8
+ withStaticProperties,
9
+ } from "@knitui/core";
4
10
 
5
11
  import { Box } from "../Box";
6
12
  import { ControlIconProvider } from "../internal/ControlIconProvider";
@@ -36,7 +42,7 @@ const ThemeIconContext = createStyledContext<{
36
42
  * never a `color` prop.
37
43
  */
38
44
  const ThemeIconFrame = styled(Box, {
39
- name: "ThemeIcon",
45
+ displayName: "ThemeIcon",
40
46
  context: ThemeIconContext,
41
47
  flexDirection: "row",
42
48
  alignItems: "center",
@@ -59,9 +65,7 @@ const ThemeIconFrame = styled(Box, {
59
65
  "gradient",
60
66
  ]),
61
67
  },
62
- size: {
63
- ...squareSizeRoundedVariant,
64
- },
68
+ size: squareSizeRoundedVariant,
65
69
  radius: radiusVariant,
66
70
  shadow: shadowVariant,
67
71
  } as const,
@@ -69,34 +73,45 @@ const ThemeIconFrame = styled(Box, {
69
73
  defaultVariants: { variant: "filled", size: "md" },
70
74
  });
71
75
 
72
- export interface ThemeIconProps extends GetProps<typeof ThemeIconFrame> {
76
+ /**
77
+ * `size` / `variant` are narrowed to single values (no v3 clause programs): the
78
+ * render reads them as DATA (`ControlIconProvider`).
79
+ */
80
+ export interface ThemeIconProps extends Omit<GetProps<typeof ThemeIconFrame>, "size" | "variant"> {
81
+ /** Size key, or a raw square edge (px number / CSS length). @default "md" */
82
+ size?: ThemeIconSize | number | (string & {});
83
+ /** @default "filled" */
84
+ variant?: ThemeIconVariant;
73
85
  /** The icon to render. A bare `@knitui/icons` icon auto-sizes/colors to the chip. */
74
86
  children?: React.ReactNode;
75
87
  /**
76
88
  * Gradient fill for `variant="gradient"` (ignored otherwise). Two-color
77
89
  * shorthand `{ from, to, deg }` or multi-step `{ stops, deg }`; colors accept
78
- * `$colorN` ramp tokens or any CSS color. Defaults to the active theme ramp.
90
+ * `colorN` ramp names or any CSS color. Defaults to the active theme ramp.
79
91
  */
80
92
  gradient?: GradientValue;
81
93
  }
82
94
 
83
- const ThemeIconComponent = ThemeIconFrame.styleable<ThemeIconProps>(function ThemeIcon(props, ref) {
84
- const { children, variant = "filled", size = "md", gradient, ...rest } = props;
95
+ const ThemeIconComponent = styleable<ThemeIconProps>(
96
+ ThemeIconFrame,
97
+ function ThemeIcon(props, ref) {
98
+ const { children, variant = "filled", size = "md", gradient, ...rest } = props;
85
99
 
86
- // Gradient fill (only when `variant="gradient"`): web paints a CSS
87
- // `backgroundImage`; native renders the `layer` (an SVG fill) behind the icon.
88
- const grad = useGradient(variant === "gradient" ? gradient : undefined);
100
+ // Gradient fill (only when `variant="gradient"`): web paints a CSS
101
+ // `backgroundImage`; native renders the `layer` (an SVG fill) behind the icon.
102
+ const grad = useGradient(variant === "gradient" ? gradient : undefined);
89
103
 
90
- return (
91
- <ThemeIconFrame ref={ref} variant={variant} size={size} {...grad.frameProps} {...rest}>
92
- {grad.layer}
93
- {/* Publish icon context so a bare `@knitui/icons` icon auto-matches the chip. */}
94
- <ControlIconProvider size={size} variant={variant}>
95
- {children}
96
- </ControlIconProvider>
97
- </ThemeIconFrame>
98
- );
99
- });
104
+ return (
105
+ <ThemeIconFrame ref={ref} variant={variant} size={size} {...grad.frameProps} {...rest}>
106
+ {grad.layer}
107
+ {/* Publish icon context so a bare `@knitui/icons` icon auto-matches the chip. */}
108
+ <ControlIconProvider size={size} variant={variant}>
109
+ {children}
110
+ </ControlIconProvider>
111
+ </ThemeIconFrame>
112
+ );
113
+ },
114
+ );
100
115
 
101
116
  export const ThemeIcon = withStaticProperties(ThemeIconComponent, {
102
117
  Frame: ThemeIconFrame,
@@ -1,12 +1,31 @@
1
- import { type GetProps, styled } from "@knitui/core";
1
+ import { type GetProps, styleable, styled } from "@knitui/core";
2
2
 
3
- import { fontSizePassthroughVariant, textWrapVariant } from "../internal/style-props";
3
+ import {
4
+ fontSizeOf,
5
+ fontSizeVariant,
6
+ tableVariant,
7
+ textWrapVariant,
8
+ } from "../internal/style-props";
4
9
  import { Text } from "../Text";
5
10
 
6
11
  export type TitleOrder = 1 | 2 | 3 | 4 | 5 | 6;
7
12
  export type TitleSize =
8
13
  "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
9
14
 
15
+ /** `h1`–`h6` + the seven-step font scale, with a raw / CSS `fontSize` fallthrough. */
16
+ const titleSizeVariant = tableVariant(
17
+ {
18
+ h1: { fontSize: "xxl" },
19
+ h2: { fontSize: "xl" },
20
+ h3: { fontSize: "lg" },
21
+ h4: { fontSize: "md" },
22
+ h5: { fontSize: "sm" },
23
+ h6: { fontSize: "xs" },
24
+ ...fontSizeVariant,
25
+ },
26
+ fontSizeOf,
27
+ );
28
+
10
29
  /**
11
30
  * Heading — mirrors Mantine's `Title`. `order` (1–6) drives the semantic heading
12
31
  * element (`h1`–`h6`) and its default size; `size` overrides that size (accepts
@@ -14,37 +33,43 @@ export type TitleSize =
14
33
  * `lineClamp`, `truncate`, and `inline` are inherited from `Text`.
15
34
  */
16
35
  const TitleFrame = styled(Text, {
17
- name: "Title",
18
- fontFamily: "$heading",
36
+ displayName: "Title",
37
+ fontFamily: "heading",
19
38
  fontWeight: "700",
20
39
  variants: {
21
40
  order: {
22
- 1: { fontSize: "$xxl" },
23
- 2: { fontSize: "$xl" },
24
- 3: { fontSize: "$lg" },
25
- 4: { fontSize: "$md" },
26
- 5: { fontSize: "$sm" },
27
- 6: { fontSize: "$xs" },
41
+ 1: { fontSize: "xxl" },
42
+ 2: { fontSize: "xl" },
43
+ 3: { fontSize: "lg" },
44
+ 4: { fontSize: "md" },
45
+ 5: { fontSize: "sm" },
46
+ 6: { fontSize: "xs" },
28
47
  },
29
48
  /** Override the order-driven size. `h1`–`h6` map to the heading scale;
30
49
  * seven-step font-size tokens and arbitrary CSS values pass through to `fontSize`. */
31
- size: {
32
- h1: { fontSize: "$xxl" },
33
- h2: { fontSize: "$xl" },
34
- h3: { fontSize: "$lg" },
35
- h4: { fontSize: "$md" },
36
- h5: { fontSize: "$sm" },
37
- h6: { fontSize: "$xs" },
38
- ...fontSizePassthroughVariant,
39
- },
50
+ size: titleSizeVariant,
40
51
  textWrap: textWrapVariant,
41
52
  } as const,
42
53
  defaultVariants: { order: 1 },
43
54
  });
44
55
 
45
- export interface TitleProps extends GetProps<typeof TitleFrame> {}
56
+ export interface TitleProps extends Omit<GetProps<typeof TitleFrame>, "order"> {
57
+ /**
58
+ * Heading level 1–6: picks the semantic `<h1>`–`<h6>` host and the default
59
+ * size. A single value (not a clause program), because the host element cannot
60
+ * change per breakpoint; use `size` for responsive sizing. @default 1
61
+ */
62
+ order?: TitleOrder;
63
+ }
64
+
65
+ const HEADING_HOSTS = { 1: "h1", 2: "h2", 3: "h3", 4: "h4", 5: "h5", 6: "h6" } as const;
46
66
 
47
- export const Title = TitleFrame.styleable<TitleProps>(function Title(props, ref) {
48
- const order = props.order ?? 1;
49
- return <TitleFrame ref={ref} {...props} render={`h${order}`} />;
67
+ /**
68
+ * Behaviour wrapper (stays `styleable`): the host element is DERIVED from
69
+ * `order`, and v3 variant bodies cannot carry `render`. Everything else is the
70
+ * flattenable `TitleFrame`.
71
+ */
72
+ export const Title = styleable<TitleProps>(TitleFrame, function Title(props, ref) {
73
+ const host = HEADING_HOSTS[props.order ?? 1] ?? "h1";
74
+ return <TitleFrame ref={ref} {...props} render={host} />;
50
75
  });
@@ -3,6 +3,8 @@ import * as React from "react";
3
3
  import {
4
4
  type GetProps,
5
5
  isWeb,
6
+ type LayoutChangeEvent,
7
+ styleable,
6
8
  styled,
7
9
  type TamaguiElement,
8
10
  Theme,
@@ -31,7 +33,7 @@ import {
31
33
  import { type FloatingOffset } from "../internal/floating-offset";
32
34
  import { type MotionPresetName } from "../internal/motion";
33
35
  import { useOverlayChrome } from "../internal/overlay-chrome";
34
- import { radiusVariant, shadowVariant } from "../internal/style-props";
36
+ import { type RadiusValue, radiusVariant, shadowVariant } from "../internal/style-props";
35
37
  import { type SlotStyles } from "../internal/styles";
36
38
  import { Portal, useOverlayHost } from "../Portal";
37
39
  import { Text } from "../Text";
@@ -69,29 +71,29 @@ export interface TooltipEvents {
69
71
  /* -------------------------------------------------------------------------- */
70
72
 
71
73
  /*
72
- * RAMP NOTE (`$colorN` steps below are MIRRORED, i.e. `13 - n`)
74
+ * RAMP NOTE (`colorN` steps below are MIRRORED, i.e. `13 - n`)
73
75
  * ------------------------------------------------------------
74
- * `name: "Tooltip"` collides with an `inverse`-templated entry in Tamagui's
76
+ * The v2 `name: "Tooltip"` collided with an `inverse`-templated entry in Tamagui's
75
77
  * (deprecated) `defaultComponentThemes`. Until `core/config/themes.ts` set
76
78
  * `componentThemes: false`, this frame — and `TooltipText` inside it — resolved
77
- * against a `<scheme>_Tooltip` theme whose whole `$color1…$color12` ramp was
78
- * reversed, so the authored `$color9` fill actually painted step 4 and the
79
- * authored `$color1` label actually painted step 12. The steps are written
79
+ * against a `<scheme>_Tooltip` theme whose whole `color1…color12` ramp was
80
+ * reversed, so the authored `color9` fill actually painted step 4 and the
81
+ * authored `color1` label actually painted step 12. The steps are written
80
82
  * pre-mirrored here so the tooltip keeps its shipped light-chip appearance now
81
83
  * that nothing flips the ramp under it. Restoring the canonical filled pairing
82
- * (`$color9` fill + `$color1` label) is a deliberate design change — see the
84
+ * (`color9` fill + `color1` label) is a deliberate design change — see the
83
85
  * changeset.
84
86
  */
85
87
  const TooltipLabelFrame = styled(Box, {
86
- name: "Tooltip",
88
+ displayName: "Tooltip",
87
89
  // `fixed` is web-only viewport positioning; React Native supports only
88
90
  // `absolute`/`relative`/`static`. Pick the platform-correct value (mirrors
89
91
  // Popover.Dropdown) so the label isn't laid out in normal flow on native.
90
92
  position: isWeb ? ("fixed" as const) : ("absolute" as const),
91
- backgroundColor: "$color4",
92
- paddingVertical: "$xxs",
93
- paddingHorizontal: "$xs",
94
- borderRadius: "$sm",
93
+ backgroundColor: "color4",
94
+ paddingVertical: "xxs",
95
+ paddingHorizontal: "xs",
96
+ borderRadius: "sm",
95
97
  role: "tooltip",
96
98
 
97
99
  variants: {
@@ -107,10 +109,10 @@ const TooltipLabelFrame = styled(Box, {
107
109
  });
108
110
 
109
111
  const TooltipText = styled(Text, {
110
- name: "TooltipText",
112
+ displayName: "TooltipText",
111
113
  // MIRRORED step — renders inside `TooltipLabelFrame`. See the RAMP NOTE above.
112
- color: "$color12",
113
- fontSize: "$sm",
114
+ color: "color12",
115
+ fontSize: "sm",
114
116
  });
115
117
 
116
118
  /* -------------------------------------------------------------------------- */
@@ -118,8 +120,14 @@ const TooltipText = styled(Text, {
118
120
  /* -------------------------------------------------------------------------- */
119
121
 
120
122
  // `position` is the Tooltip's floating Placement, which collides with Box's CSS
121
- // `position` style keyword — drop the inherited one (same fix as Indicator/Dialog).
122
- type LabelFrameProps = Omit<GetProps<typeof TooltipLabelFrame>, "children" | "position">;
123
+ // `position` style keyword, and `offset` is the floating gutter, which collides
124
+ // with v3's `offset` style prop — drop both inherited ones (same fix as
125
+ // Indicator/Dialog). `radius` is re-declared as a plain value (not the variant's
126
+ // flat clause program) because it also feeds the arrow middleware's px corner.
127
+ type LabelFrameProps = Omit<
128
+ GetProps<typeof TooltipLabelFrame>,
129
+ "children" | "position" | "offset" | "radius"
130
+ >;
123
131
 
124
132
  /** Props the `label`/`text` slots may carry (the inner `Tooltip.Text` element). */
125
133
  export type TooltipTextStyle = GetProps<typeof TooltipText>;
@@ -189,6 +197,8 @@ export interface TooltipProps extends LabelFrameProps {
189
197
  inline?: boolean;
190
198
  /** Allow the label to wrap onto multiple lines. @default false */
191
199
  multiline?: boolean;
200
+ /** Label corner radius — a radius/size key, px number or CSS length. @default 'sm' */
201
+ radius?: RadiusValue;
192
202
  /**
193
203
  * Elevation — drop shadow for the label, from the shared `shadowVariant`
194
204
  * ladder (`xxs`→`xxl`). Opt-in; no shadow by default.
@@ -357,7 +367,8 @@ function TooltipTarget({ children, refProp: refPropOverride }: TooltipTargetProp
357
367
  const refProp = refPropOverride ?? ctx.refProp;
358
368
 
359
369
  // Merge the floating reference setter with any ref the child already declares.
360
- const childRef = (children as { ref?: React.Ref<TamaguiElement> }).ref;
370
+ // React 19 carries `ref` as a regular prop; the removed `element.ref` getter warns.
371
+ const childRef = (children.props as { ref?: React.Ref<TamaguiElement> }).ref;
361
372
  const mergedRef = useMergedRef<TamaguiElement>(ctx.setReferenceRef, childRef);
362
373
 
363
374
  const child = children as React.ReactElement<InteractionProps>;
@@ -380,7 +391,7 @@ function TooltipTarget({ children, refProp: refPropOverride }: TooltipTargetProp
380
391
  );
381
392
  }
382
393
 
383
- const TooltipBase = TooltipLabelFrame.styleable<TooltipProps>(function Tooltip(props, ref) {
394
+ const TooltipBase = styleable<TooltipProps>(TooltipLabelFrame, function Tooltip(props, ref) {
384
395
  const {
385
396
  label,
386
397
  children,
@@ -452,7 +463,7 @@ const TooltipBase = TooltipLabelFrame.styleable<TooltipProps>(function Tooltip(p
452
463
  position: arrowPosition,
453
464
  offset: arrowOffset,
454
465
  padding: arrowOffset,
455
- // The label frame's default radius is `$sm` (see TooltipFrame).
466
+ // The label frame's default radius is `sm` (see TooltipLabelFrame).
456
467
  cornerRadius: resolveRadiusPx(radius),
457
468
  }),
458
469
  ]
@@ -498,6 +509,11 @@ const TooltipBase = TooltipLabelFrame.styleable<TooltipProps>(function Tooltip(p
498
509
  }
499
510
  }, [placement, onPositionChange]);
500
511
 
512
+ const onNativeLayout = React.useCallback(
513
+ (e: LayoutChangeEvent) => update(e.nativeEvent.layout),
514
+ [update],
515
+ );
516
+
501
517
  // Native re-measure: `autoUpdate` is a no-op on native (see `Floating.native`),
502
518
  // so coords are only computed on demand. Recompute when the tooltip opens, once
503
519
  // the target + label Views have laid out (mirrors Popover.Dropdown).
@@ -581,14 +597,14 @@ const TooltipBase = TooltipLabelFrame.styleable<TooltipProps>(function Tooltip(p
581
597
  <TooltipLabelFrame
582
598
  ref={floatingRef}
583
599
  id={tooltipId}
584
- top={y}
585
- left={x}
586
600
  radius={radius}
587
601
  shadow={shadow}
588
602
  multiline={multiline}
589
- // `display:none` only once fully exited while kept mounted.
590
- display={t.hidden ? ("none" as const) : undefined}
591
- onLayout={isWeb ? undefined : (e) => update(e.nativeEvent.layout)}
603
+ // `display:none` only once fully exited while kept mounted. A
604
+ // conditional spread, never `display={undefined}` (v3 clears on it).
605
+ {...(t.hidden ? { display: "none" as const } : null)}
606
+ // Native re-measure on layout; web positions through `autoUpdate`.
607
+ {...(isWeb ? null : { onLayout: onNativeLayout })}
592
608
  zIndex={zIndex}
593
609
  pointerEvents="none"
594
610
  {...t.animation}
@@ -596,7 +612,9 @@ const TooltipBase = TooltipLabelFrame.styleable<TooltipProps>(function Tooltip(p
596
612
  {...labelRest}
597
613
  // Engine style wins last (opacity/transform); slot/consumer styles merge
598
614
  // underneath (slot < consumer < transition).
599
- style={[dropdownSlot?.style, labelRest.style, transitionStyle]}
615
+ // `top`/`left` track the floating engine continuously: inline style (a
616
+ // style prop injects one CSS rule per value on v3 web).
617
+ style={[dropdownSlot?.style, labelRest.style, { top: y, left: x }, transitionStyle]}
600
618
  >
601
619
  {/* `label` is the conventional text slot; `text` is the specific
602
620
  alias and layers OVER it ("explicit beats sugar"). */}
@@ -604,8 +622,11 @@ const TooltipBase = TooltipLabelFrame.styleable<TooltipProps>(function Tooltip(p
604
622
  {label}
605
623
  </TooltipText>
606
624
  {withArrow ? (
607
- // Shared cross-platform arrow; `background="$color9"` matches the label
608
- // fill and `borderWidth={0}` keeps it solid/borderless. `size` keeps the
625
+ // Shared cross-platform arrow; `background="color4"` matches the label
626
+ // fill (the frame's MIRRORED `color4`, see the RAMP NOTE — it used to
627
+ // read `color9`, a leftover from the flipped component theme, which
628
+ // painted a darker arrow than the chip) and `borderWidth={0}` keeps it
629
+ // solid/borderless. `size` keeps the
609
630
  // historical doubled convention so a default centered arrow is unchanged;
610
631
  // FloatingArrow rounds only the OUTWARD corner (closer to Mantine than the
611
632
  // old all-corners radius).
@@ -615,7 +636,7 @@ const TooltipBase = TooltipLabelFrame.styleable<TooltipProps>(function Tooltip(p
615
636
  offset={arrowOffset}
616
637
  position={arrowPosition}
617
638
  radius={arrowRadius}
618
- background="$color9"
639
+ background="color4"
619
640
  borderWidth={0}
620
641
  arrowX={middlewareData.arrow?.x}
621
642
  arrowY={middlewareData.arrow?.y}
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
 
3
- import { resolveTransition } from "../internal/style-props";
3
+ import { timedTransition, type TransitionValue } from "../internal/style-props";
4
4
  import {
5
5
  getTransitionStyles,
6
6
  type MantineTransition,
@@ -42,7 +42,9 @@ export interface TransitionProps {
42
42
  const ALL_ANIMATED_KEYS = ["transform", "opacity"];
43
43
 
44
44
  /**
45
- * Hand `child` the Tamagui `transition` prop (and what it animates).
45
+ * Hand `child` the Tamagui `transition` prop — a v3 `{ duration, easing,
46
+ * properties }` object scoped to what the styles animate (v2's separate
47
+ * `animateOnly` prop is gone; the scope rides inside the transition).
46
48
  *
47
49
  * EVERY element this component returns goes through here, the hidden
48
50
  * `keepMounted` frame and the reduced-motion frames included, with `null` when
@@ -51,22 +53,14 @@ const ALL_ANIMATED_KEYS = ["transform", "opacity"];
51
53
  * driver's) for an animated one. A child that mounted without the key and got it
52
54
  * a render later — `keepMounted` with `mounted={false}`, then `mounted` — changed
53
55
  * its hook order: React threw "Rendered more hooks than during the previous
54
- * render" on native. With the key always there the hooks never change.
56
+ * render" on native. With the key always there the hooks never change. A
57
+ * `transition` the child set itself wins.
55
58
  */
56
- const withTransition = (
57
- child: React.ReactElement,
58
- value: unknown,
59
- keys: string[] = ALL_ANIMATED_KEYS,
60
- ): React.ReactElement => {
59
+ const withTransition = (child: React.ReactElement, value: TransitionValue): React.ReactElement => {
61
60
  if (!React.isValidElement(child) || child.type === React.Fragment) return child;
62
- const childProps = child.props as {
63
- transition?: unknown;
64
- animateOnly?: string[];
65
- };
66
- return React.cloneElement(child, {
67
- transition: "transition" in childProps ? childProps.transition : value,
68
- animateOnly: childProps.animateOnly ?? keys,
69
- } as Partial<typeof childProps>);
61
+ const childProps = child.props as { transition?: unknown };
62
+ if ("transition" in childProps) return child;
63
+ return React.cloneElement(child, { transition: value } as Partial<typeof childProps>);
70
64
  };
71
65
 
72
66
  /**
@@ -107,11 +101,14 @@ export function Transition({
107
101
  return keepMounted ? withTransition(children({ display: "none" }), null) : null;
108
102
  }
109
103
 
110
- const timed = [resolveTransition(transitionTimingFunction), { duration: transitionDuration }];
104
+ const timed = (keys: string[]) =>
105
+ timedTransition(transitionDuration, transitionTimingFunction, keys);
111
106
  const isExited = transitionStatus === "exited";
112
107
 
113
108
  if (isExited && !mounted) {
114
- return keepMounted ? withTransition(children({ display: "none" }), timed) : null;
109
+ return keepMounted
110
+ ? withTransition(children({ display: "none" }), timed(ALL_ANIMATED_KEYS))
111
+ : null;
115
112
  }
116
113
 
117
114
  const styles = getTransitionStyles({
@@ -122,5 +119,5 @@ export function Transition({
122
119
  });
123
120
  const keys = animatedKeys(styles);
124
121
 
125
- return withTransition(children(styles), timed, keys.length > 0 ? keys : ALL_ANIMATED_KEYS);
122
+ return withTransition(children(styles), timed(keys.length > 0 ? keys : ALL_ANIMATED_KEYS));
126
123
  }