@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,13 +1,28 @@
1
1
  /**
2
- * Shared functional-variant helpers that map Mantine's NAMED props onto Tamagui
3
- * style props. Tamagui's `':string'`/`':number'` catch-all variants let a
4
- * component accept an open-ended value (`<Group justify="space-between" />`)
5
- * while still resolving tokens. The open-ended `string` is narrowed locally to
6
- * the exact style-prop type each value targets (never `any`).
2
+ * Shared variant helpers that map Mantine's NAMED props onto Tamagui style props
3
+ * — the kit's v3 variant vocabulary (docs/v3/conventions.md §5, "Internal helpers").
4
+ *
5
+ * Two shapes, picked by what the prop accepts:
6
+ *
7
+ * - **Static exact-key maps** (`controlVariant`, `controlFontVariant`,
8
+ * `squareSizeVariant`, `fontSizeVariant`, `shadowVariant`, the colour ladders):
9
+ * plain literal objects generated from `controlMetrics` / `variant-colors`.
10
+ * Compiler-extractable, and they still work per clause (`size="sm md:lg"`).
11
+ * Spread them at MODULE scope only (`{ ...controlVariant.md, gap: "xs" }`).
12
+ * - **`styled.dynamic` variants** for an OPEN domain — a size key OR a raw
13
+ * number / CSS value (`radiusVariant`, `squareSizeVariantFallthrough`,
14
+ * `fontSizePassthroughVariant`, …). v3 runs a dynamic once per clause payload,
15
+ * so `radius="sm md:lg"` works. Use them AS the variant (`radius: radiusVariant`),
16
+ * NEVER spread them: spreading a dynamic copies only its brand symbol and turns
17
+ * the variant into a style-less "bare" dynamic. To extend a table with extra
18
+ * keys, build a new one with {@link tableVariant}.
19
+ *
20
+ * v2's `":string"` / `":number"` / `"...size"` catch-all keys are gone (v3 treats
21
+ * them as literal keys that never match), and so are the `$`-sigil helpers
22
+ * (`toRadius` & co.): a string is a token lookup, a number a raw value.
7
23
  */
8
- import { type FontSizeTokens, type RadiusTokens } from "@knitui/core";
9
- import type { BoxProps } from "../Box";
10
- import type { TextProps } from "../Text";
24
+ import { type MotionPresetName as DriverPresetName, type FontSizeTokens, type RadiusTokens, styled } from "@knitui/core";
25
+ import { type SizeKey } from "./control-metrics";
11
26
  import { type VariantKey } from "./variant-colors";
12
27
  /**
13
28
  * Re-export the canonical size scale so the 70+ components that already import
@@ -16,89 +31,90 @@ import { type VariantKey } from "./variant-colors";
16
31
  * `DEFAULT_SIZE` live in `control-metrics.ts` next to the table they describe.
17
32
  */
18
33
  export { DEFAULT_SIZE, type SizeKey } from "./control-metrics";
19
- export { FOCUS_RING, focusRingStyle, VARIANT_FILL, VARIANT_FOREGROUND_EMPHASIS, VARIANT_FOREGROUND_MUTED, VARIANT_INTERACTION, VARIANT_KEYS, type VariantKey, } from "./variant-colors";
20
- /**
21
- * Mantine-style `radius` prop. Accepts a size key (`"md"`), a `$`-token
22
- * (`"$md"`), an arbitrary CSS value (`"10px"`), or a number.
34
+ export { FOCUS_RING, FOCUS_WITHIN_RING, focusRingResetStyle, focusRingStyle } from "./focus-ring";
35
+ export { VARIANT_COLOR_LADDER, VARIANT_CONTROL, VARIANT_FILL, VARIANT_FOREGROUND_EMPHASIS, VARIANT_FOREGROUND_MUTED, VARIANT_INTERACTION, VARIANT_KEYS, type VariantKey, } from "./variant-colors";
36
+ /** A style fragment a variant emits (style props, token names, clause strings). */
37
+ export type StyleFragment = Record<string, unknown>;
38
+ /** An open-ended CSS string (`"10px"`, `"50%"`) that keeps literal autocomplete. */
39
+ export type CssString = string & {};
40
+ /**
41
+ * A v3 `styled.dynamic` variant accepting `V` — the type every open-domain helper
42
+ * below returns. `GetProps` of the frame widens it to `FlatStyleValue<V>`, so the
43
+ * prop also takes clause programs (`"sm md:lg"`).
44
+ *
45
+ * The brand intersection is load-bearing for the lib build: v3 does not export its
46
+ * `StyledDynamicFn` interface, so a bare `ReturnType<…>` resolves to a type the
47
+ * declaration emitter cannot name (TS2883). An intersection keeps THIS alias as the
48
+ * printed name, so every exported variant emits as `DynamicVariant<…>`.
23
49
  */
24
- export declare const radiusVariant: {
25
- readonly ":string": (val: string) => {
26
- borderRadius: RadiusTokens;
27
- };
28
- readonly ":number": (val: number) => {
29
- borderRadius: number;
30
- };
50
+ export type DynamicVariant<V> = ReturnType<typeof styled.dynamic<V>> & {
51
+ readonly __knituiDynamic?: true;
31
52
  };
53
+ /**
54
+ * A `styled.dynamic` variant that maps one value straight onto one or more style
55
+ * props (`passthroughVariant<RadiusValue>("borderRadius")` →
56
+ * `radius="md"` ⇒ `{ borderRadius: "md" }`, `radius={6}` ⇒ `{ borderRadius: 6 }`).
57
+ * Token names resolve per property at the style layer; numbers are px.
58
+ */
59
+ export declare function passthroughVariant<V>(...props: readonly [string, ...string[]]): DynamicVariant<V>;
60
+ /**
61
+ * Build a `styled.dynamic` variant from a STATIC key table plus an optional
62
+ * fallthrough for any other value — the v3 replacement for v2's
63
+ * `{ xs: {...}, md: {...}, ":number": fn, ":string": fn }` maps. A table hit
64
+ * returns the table's own (static, shared) fragment; anything else goes to
65
+ * `fallback` (memoised per value). Runs per clause, so `size="sm md:lg"` works.
66
+ *
67
+ * ```ts
68
+ * size: tableVariant(
69
+ * { ...fontSizeVariant, h1: { fontSize: "xxl" } },
70
+ * (value: number | CssString) => ({ fontSize: value }),
71
+ * )
72
+ * ```
73
+ */
74
+ export declare function tableVariant<const Table extends Record<string, StyleFragment>>(table: Table): DynamicVariant<Extract<keyof Table, string>>;
75
+ export declare function tableVariant<const Table extends Record<string, StyleFragment>, Extra>(table: Table, fallback: (value: Extra) => StyleFragment | undefined): DynamicVariant<Extract<keyof Table, string> | Extra>;
76
+ /** What a `radius` prop accepts: a radius token, a number (px), or a CSS length. */
77
+ export type RadiusValue = SizeKey | RadiusTokens | number | CssString;
78
+ /**
79
+ * Mantine-style `radius` prop. Accepts a size key (`"md"`, a radius token), a
80
+ * number (px), or an arbitrary CSS value (`"10px"`). Use as the variant
81
+ * (`radius: radiusVariant`), never spread it.
82
+ */
83
+ export declare const radiusVariant: DynamicVariant<RadiusValue>;
32
84
  /**
33
85
  * Like `radiusVariant`, but rounds only the two INLINE-END corners (top-right +
34
86
  * bottom-right). Used where one edge carries a solid border that should stay
35
87
  * square — e.g. `Blockquote`'s start border.
36
88
  */
37
- export declare const endRadiusVariant: {
38
- readonly ":string": (val: string) => {
39
- borderTopRightRadius: RadiusTokens;
40
- borderBottomRightRadius: RadiusTokens;
41
- };
42
- readonly ":number": (val: number) => {
43
- borderTopRightRadius: number;
44
- borderBottomRightRadius: number;
45
- };
46
- };
89
+ export declare const endRadiusVariant: DynamicVariant<RadiusValue>;
90
+ /** Flexbox cross-axis alignment values. */
91
+ export type AlignValue = "flex-start" | "flex-end" | "center" | "stretch" | "baseline" | "start" | "end" | CssString;
92
+ /** Flexbox main-axis distribution values. */
93
+ export type JustifyValue = "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | "start" | "end" | CssString;
47
94
  /** Map a flexbox alignment prop name onto its Tamagui style prop. */
48
- export declare const alignVariant: {
49
- readonly ":string": (val: string) => {
50
- alignItems: BoxProps["alignItems"];
51
- };
52
- };
53
- export declare const justifyVariant: {
54
- readonly ":string": (val: string) => {
55
- justifyContent: BoxProps["justifyContent"];
56
- };
57
- };
58
- export declare const wrapVariant: {
59
- readonly ":string": (val: string) => {
60
- flexWrap: BoxProps["flexWrap"];
61
- };
62
- };
95
+ export declare const alignVariant: DynamicVariant<AlignValue>;
96
+ export declare const justifyVariant: DynamicVariant<JustifyValue>;
97
+ export declare const wrapVariant: DynamicVariant<"wrap" | "nowrap" | "wrap-reverse">;
63
98
  /**
64
- * Mantine-style `spacing`/`gap` prop. A space token (`"$sm"`), arbitrary CSS
65
- * value, or number maps onto `gap`. Used by `List`'s `spacing`.
99
+ * Mantine-style `spacing`/`gap` prop. A space token (`"sm"`), arbitrary CSS
100
+ * value, or number maps onto `gap`. Used by `List`'s `spacing`, `PinInput`'s `gap`.
66
101
  */
67
- export declare const gapVariant: {
68
- readonly ":number": (val: number) => {
69
- gap: number;
70
- };
71
- readonly ":string": (val: string) => {
72
- gap: BoxProps["gap"];
73
- };
74
- };
102
+ export declare const gapVariant: DynamicVariant<number | CssString | import("@tamagui/web").Space>;
75
103
  /** Open-ended `overflow` prop (`"hidden"`, `"scroll"`, …). Used by `Grid`. */
76
- export declare const overflowVariant: {
77
- readonly ":string": (val: string) => {
78
- overflow: BoxProps["overflow"];
79
- };
80
- };
104
+ export declare const overflowVariant: DynamicVariant<CssString | "visible" | "hidden" | "scroll">;
81
105
  /**
82
- * Mantine-style `maxWidth`/`size` cap. A number is a raw pixel width; a string
83
- * is a `$`-token or arbitrary CSS value. Used by `Container`'s `size`.
106
+ * Mantine-style `maxWidth` cap. A number is a raw pixel width; a string is a
107
+ * token or arbitrary CSS value.
84
108
  */
85
- export declare const maxWidthVariant: {
86
- readonly ":number": (val: number) => {
87
- maxWidth: number;
88
- };
89
- readonly ":string": (val: string) => {
90
- maxWidth: BoxProps["maxWidth"];
91
- };
92
- };
109
+ export declare const maxWidthVariant: DynamicVariant<number | CssString | import("@tamagui/web").Size>;
110
+ /** A raw width / height escape hatch: px number or CSS length. */
111
+ type Length = number | CssString;
93
112
  /**
94
- * Named content-width scale for overlay panels (`Modal`, etc.). Each key maps to
95
- * a sensible `maxWidth` (px) for a centred dialog card; a raw `:number`/`:string`
96
- * passes an arbitrary width through. UNLIKE `maxWidthVariant` (number/string
97
- * only, so named keys silently fall through to an invalid `maxWidth: "md"`) and
98
- * UNLIKE `Container`'s viewport-`breakpoints` caps, these are dialog-scale widths
99
- * tuned after Mantine's modal sizes (xs 320 → xl 780).
113
+ * Named content-width scale for overlay panels (`Modal`, etc.): dialog-scale
114
+ * `maxWidth`s tuned after Mantine's modal sizes (xs 320 → xl 780). Any other
115
+ * number / CSS value passes through as the `maxWidth`.
100
116
  */
101
- export declare const modalSizeVariant: {
117
+ export declare const MODAL_SIZES: {
102
118
  readonly xxs: {
103
119
  readonly maxWidth: 240;
104
120
  };
@@ -120,23 +136,14 @@ export declare const modalSizeVariant: {
120
136
  readonly xxl: {
121
137
  readonly maxWidth: 1040;
122
138
  };
123
- readonly ":number": (val: number) => {
124
- maxWidth: number;
125
- };
126
- readonly ":string": (val: string) => {
127
- maxWidth: BoxProps["maxWidth"];
128
- };
129
139
  };
140
+ export declare const modalSizeVariant: DynamicVariant<"xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | Length>;
130
141
  /**
131
- * Named content-width scale for `Container`. Each key maps to a sensible
132
- * `maxWidth` (px) for a centred page-content column; a raw `:number`/`:string`
133
- * passes an arbitrary width through. UNLIKE `maxWidthVariant` (number/string
134
- * only — named keys would silently fall through to an invalid `maxWidth: "md"`),
135
- * and UNLIKE `modalSizeVariant` (dialog-card scale), these are page-column
136
- * widths tuned after Mantine's container sizes (xs 540 → xl 1320), extended to
137
- * the kit's full seven-step scale.
142
+ * Named content-width scale for `Container`: page-column `maxWidth`s tuned after
143
+ * Mantine's container sizes (xs 540 → xl 1320), on the kit's seven-step scale.
144
+ * Any other number / CSS value passes through as the `maxWidth`.
138
145
  */
139
- export declare const containerSizeVariant: {
146
+ export declare const CONTAINER_SIZES: {
140
147
  readonly xxs: {
141
148
  readonly maxWidth: 420;
142
149
  };
@@ -158,396 +165,310 @@ export declare const containerSizeVariant: {
158
165
  readonly xxl: {
159
166
  readonly maxWidth: 1608;
160
167
  };
161
- readonly ":number": (val: number) => {
162
- maxWidth: number;
163
- };
164
- readonly ":string": (val: string) => {
165
- maxWidth: BoxProps["maxWidth"];
166
- };
167
168
  };
169
+ export declare const containerSizeVariant: DynamicVariant<"xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | Length>;
168
170
  /**
169
- * Square `size` prop — maps a single value onto BOTH `width` and `height`. A
170
- * number is raw pixels; a string is a `$`-token or arbitrary CSS value. Pair it
171
- * with named `$size`-token keys for the standard scale and spread this for the
172
- * arbitrary escape hatch:
173
- *
174
- * ```ts
175
- * size: { xs: { width: "$xs", height: "$xs" }, …, ...squareSizeVariant }
176
- * ```
177
- *
178
- * Used by `ActionIcon`, `AngleSlider`, `Avatar`, and `ColorSwatch`.
171
+ * Square `size` ladder — maps a size key onto BOTH `width` and `height` (+
172
+ * `minWidth`) from the canonical control heights. A static exact-key map; use
173
+ * {@link squareSizeVariantFallthrough} when the prop also takes a number / CSS
174
+ * value. Used by `Radio`, `Stepper` (spread into their own size map) and read as
175
+ * data by `PinInput` / `ColorPicker`.
179
176
  */
180
177
  export declare const squareSizeVariant: {
181
178
  readonly xxs: {
182
- readonly minWidth: "$xxs";
183
- readonly width: "$xxs";
184
- readonly height: "$xxs";
185
- };
186
- readonly xs: {
187
- readonly minWidth: "$xs";
188
- readonly width: "$xs";
189
- readonly height: "$xs";
190
- };
191
- readonly sm: {
192
- readonly minWidth: "$sm";
193
- readonly width: "$sm";
194
- readonly height: "$sm";
195
- };
196
- readonly md: {
197
- readonly minWidth: "$md";
198
- readonly width: "$md";
199
- readonly height: "$md";
200
- };
201
- readonly lg: {
202
- readonly minWidth: "$lg";
203
- readonly width: "$lg";
204
- readonly height: "$lg";
205
- };
206
- readonly xl: {
207
- readonly minWidth: "$xl";
208
- readonly width: "$xl";
209
- readonly height: "$xl";
210
- };
211
- readonly xxl: {
212
- readonly minWidth: "$xxl";
213
- readonly width: "$xxl";
214
- readonly height: "$xxl";
215
- };
216
- };
217
- export declare const squareSizeRoundedVariant: {
218
- readonly xxs: {
219
- readonly minWidth: "$xxs";
220
- readonly width: "$xxs";
221
- readonly height: "$xxs";
222
- readonly borderRadius: "$xs";
179
+ readonly minWidth: "xxs";
180
+ readonly width: "xxs";
181
+ readonly height: "xxs";
223
182
  };
224
183
  readonly xs: {
225
- readonly minWidth: "$xs";
226
- readonly width: "$xs";
227
- readonly height: "$xs";
228
- readonly borderRadius: "$xs";
184
+ readonly minWidth: "xs";
185
+ readonly width: "xs";
186
+ readonly height: "xs";
229
187
  };
230
188
  readonly sm: {
231
- readonly minWidth: "$sm";
232
- readonly width: "$sm";
233
- readonly height: "$sm";
234
- readonly borderRadius: "$md";
189
+ readonly minWidth: "sm";
190
+ readonly width: "sm";
191
+ readonly height: "sm";
235
192
  };
236
193
  readonly md: {
237
- readonly minWidth: "$md";
238
- readonly width: "$md";
239
- readonly height: "$md";
240
- readonly borderRadius: "$md";
194
+ readonly minWidth: "md";
195
+ readonly width: "md";
196
+ readonly height: "md";
241
197
  };
242
198
  readonly lg: {
243
- readonly minWidth: "$lg";
244
- readonly width: "$lg";
245
- readonly height: "$lg";
246
- readonly borderRadius: "$md";
199
+ readonly minWidth: "lg";
200
+ readonly width: "lg";
201
+ readonly height: "lg";
247
202
  };
248
203
  readonly xl: {
249
- readonly minWidth: "$xl";
250
- readonly width: "$xl";
251
- readonly height: "$xl";
252
- readonly borderRadius: "$md";
204
+ readonly minWidth: "xl";
205
+ readonly width: "xl";
206
+ readonly height: "xl";
253
207
  };
254
208
  readonly xxl: {
255
- readonly minWidth: "$xxl";
256
- readonly width: "$xxl";
257
- readonly height: "$xxl";
258
- readonly borderRadius: "$lg";
259
- };
260
- readonly ":string": (val: string) => {
261
- borderRadius: RadiusTokens;
262
- };
263
- readonly ":number": (val: number) => {
264
- borderRadius: number;
209
+ readonly minWidth: "xxl";
210
+ readonly width: "xxl";
211
+ readonly height: "xxl";
265
212
  };
266
213
  };
267
- export declare const squareSizeVariantFallthrough: {
268
- readonly ":string": (val: string) => {
269
- minWidth: string;
270
- width: string;
271
- height: string;
272
- };
273
- readonly ":number": (val: number) => {
274
- minWidth: number;
275
- width: number;
276
- height: number;
277
- };
214
+ /**
215
+ * The square fallthrough body — a raw px / CSS size onto `minWidth` + `width` +
216
+ * `height`. Exported for frames that build their own {@link tableVariant} on top
217
+ * of it (Pagination).
218
+ */
219
+ export declare const squareSizeOf: (value: Length) => StyleFragment;
220
+ /**
221
+ * {@link squareSizeVariant} plus the raw escape hatch: `size={44}` / `size="3rem"`
222
+ * size the square directly. Used by `ActionIcon`-likes, `Avatar`, `ColorSwatch`,
223
+ * `Loader`, `Burger`, `Rating`, `AngleSlider`, `Indicator`.
224
+ */
225
+ export declare const squareSizeVariantFallthrough: DynamicVariant<"xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | Length>;
226
+ /** Square control sizes WITH the matching corner, per size key. */
227
+ export declare const SQUARE_ROUNDED_SIZES: {
278
228
  readonly xxs: {
279
- readonly minWidth: "$xxs";
280
- readonly width: "$xxs";
281
- readonly height: "$xxs";
229
+ readonly borderRadius: "xs";
230
+ readonly minWidth: "xxs";
231
+ readonly width: "xxs";
232
+ readonly height: "xxs";
282
233
  };
283
234
  readonly xs: {
284
- readonly minWidth: "$xs";
285
- readonly width: "$xs";
286
- readonly height: "$xs";
235
+ readonly borderRadius: "xs";
236
+ readonly minWidth: "xs";
237
+ readonly width: "xs";
238
+ readonly height: "xs";
287
239
  };
288
240
  readonly sm: {
289
- readonly minWidth: "$sm";
290
- readonly width: "$sm";
291
- readonly height: "$sm";
241
+ readonly borderRadius: "md";
242
+ readonly minWidth: "sm";
243
+ readonly width: "sm";
244
+ readonly height: "sm";
292
245
  };
293
246
  readonly md: {
294
- readonly minWidth: "$md";
295
- readonly width: "$md";
296
- readonly height: "$md";
247
+ readonly borderRadius: "md";
248
+ readonly minWidth: "md";
249
+ readonly width: "md";
250
+ readonly height: "md";
297
251
  };
298
252
  readonly lg: {
299
- readonly minWidth: "$lg";
300
- readonly width: "$lg";
301
- readonly height: "$lg";
253
+ readonly borderRadius: "md";
254
+ readonly minWidth: "lg";
255
+ readonly width: "lg";
256
+ readonly height: "lg";
302
257
  };
303
258
  readonly xl: {
304
- readonly minWidth: "$xl";
305
- readonly width: "$xl";
306
- readonly height: "$xl";
259
+ readonly borderRadius: "md";
260
+ readonly minWidth: "xl";
261
+ readonly width: "xl";
262
+ readonly height: "xl";
307
263
  };
308
264
  readonly xxl: {
309
- readonly minWidth: "$xxl";
310
- readonly width: "$xxl";
311
- readonly height: "$xxl";
265
+ readonly borderRadius: "lg";
266
+ readonly minWidth: "xxl";
267
+ readonly width: "xxl";
268
+ readonly height: "xxl";
312
269
  };
313
270
  };
271
+ /**
272
+ * Square control `size` (ActionIcon, ThemeIcon): a size key sizes the square AND
273
+ * picks its corner; a raw number / CSS value sizes the square only (the corner
274
+ * comes from the frame's `radius`).
275
+ */
276
+ export declare const squareSizeRoundedVariant: DynamicVariant<"xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | Length>;
314
277
  /**
315
278
  * Mantine-style `size` prop for a text-bearing control (Button, etc.): each key
316
- * maps to a `height` (from the `size` token scale), `paddingHorizontal` (from
317
- * the `space` scale), and `borderRadius` (from the `radius` scale). This is the
318
- * single source of truth for control metrics — spread it instead of re-declaring
319
- * the ladder inline. Token groups resolve by property: `$md` is size.md on
320
- * `height`, space.md on `paddingHorizontal`, radius.md on `borderRadius`.
279
+ * maps to a `height` (from the `size` token scale) and `paddingHorizontal` (from
280
+ * the `space` scale). Token names resolve by property: `md` is size.md on
281
+ * `height`, space.md on `paddingHorizontal`. Static exact-key map.
321
282
  *
322
283
  * Used by `Button`, `Button.GroupSection`, `SegmentedControl.Control`.
323
284
  */
324
285
  export declare const controlVariant: {
325
286
  readonly xxs: {
326
- readonly height: "$xxs";
327
- readonly paddingHorizontal: "$xxs";
287
+ readonly height: "xxs";
288
+ readonly paddingHorizontal: "xxs";
328
289
  };
329
290
  readonly xs: {
330
- readonly height: "$xs";
331
- readonly paddingHorizontal: "$xs";
291
+ readonly height: "xs";
292
+ readonly paddingHorizontal: "xs";
332
293
  };
333
294
  readonly sm: {
334
- readonly height: "$sm";
335
- readonly paddingHorizontal: "$sm";
295
+ readonly height: "sm";
296
+ readonly paddingHorizontal: "sm";
336
297
  };
337
298
  readonly md: {
338
- readonly height: "$md";
339
- readonly paddingHorizontal: "$md";
299
+ readonly height: "md";
300
+ readonly paddingHorizontal: "md";
340
301
  };
341
302
  readonly lg: {
342
- readonly height: "$lg";
343
- readonly paddingHorizontal: "$lg";
303
+ readonly height: "lg";
304
+ readonly paddingHorizontal: "lg";
344
305
  };
345
306
  readonly xl: {
346
- readonly height: "$xl";
347
- readonly paddingHorizontal: "$xl";
307
+ readonly height: "xl";
308
+ readonly paddingHorizontal: "xl";
348
309
  };
349
310
  readonly xxl: {
350
- readonly height: "$xxl";
351
- readonly paddingHorizontal: "$xxl";
311
+ readonly height: "xxl";
312
+ readonly paddingHorizontal: "xxl";
352
313
  };
353
314
  };
354
315
  /**
355
316
  * Balanced control-text font ladder — the `fontSize` column of `controlMetrics`.
356
317
  * UNLIKE `fontSizeVariant` (which maps each key to its same-key font token), this
357
- * CLAMPS the two smallest steps (xxs/xs → `$xxs`) so a tiny control isn't
358
- * dominated by its label. Text-BEARING controls (Button, SegmentedControl, Tabs,
359
- * input hosts) should size their label/value text with this so control text stays
360
- * proportional to control height; standalone typography keeps `fontSizeVariant`.
318
+ * CLAMPS the two smallest steps (xxs/xs → `xxs`) so a tiny control isn't
319
+ * dominated by its label. Static exact-key map.
361
320
  */
362
321
  export declare const controlFontVariant: {
363
322
  readonly xxs: {
364
- readonly fontSize: "$xxs";
323
+ readonly fontSize: "xxs";
365
324
  };
366
325
  readonly xs: {
367
- readonly fontSize: "$xxs";
326
+ readonly fontSize: "xxs";
368
327
  };
369
328
  readonly sm: {
370
- readonly fontSize: "$xs";
329
+ readonly fontSize: "xs";
371
330
  };
372
331
  readonly md: {
373
- readonly fontSize: "$sm";
332
+ readonly fontSize: "sm";
374
333
  };
375
334
  readonly lg: {
376
- readonly fontSize: "$lg";
335
+ readonly fontSize: "lg";
377
336
  };
378
337
  readonly xl: {
379
- readonly fontSize: "$xl";
338
+ readonly fontSize: "xl";
380
339
  };
381
340
  readonly xxl: {
382
- readonly fontSize: "$xxl";
341
+ readonly fontSize: "xxl";
383
342
  };
384
343
  };
385
- /**
386
- * Like `controlVariant`, but for a pill-shaped control that pins its own
387
- * `borderRadius` (e.g. `borderRadius: 9999`) and lays out inline children with a
388
- * `gap`: each key maps `height` + `paddingHorizontal` (identical to
389
- * `controlVariant`) + `gap` (from the `space` scale), with NO `borderRadius`. A
390
- * `:number` passes a raw pixel size through to a proportional height/padding/gap.
391
- *
392
- * Used by `Badge`, `Chip`, `Pill` so the three stay in lockstep.
393
- */
394
- export declare const controlGapVariant: {
344
+ /** Pill-control sizes: height + pill padding + gap, NO borderRadius. */
345
+ export declare const CONTROL_GAP_SIZES: {
395
346
  readonly xxs: {
396
- readonly height: "$xxs";
397
- readonly paddingHorizontal: "$xs";
398
- readonly gap: "$xxs";
347
+ readonly height: "xxs";
348
+ readonly paddingHorizontal: "xs";
349
+ readonly gap: "xxs";
399
350
  };
400
351
  readonly xs: {
401
- readonly height: "$xs";
402
- readonly paddingHorizontal: "$sm";
403
- readonly gap: "$xxs";
352
+ readonly height: "xs";
353
+ readonly paddingHorizontal: "sm";
354
+ readonly gap: "xxs";
404
355
  };
405
356
  readonly sm: {
406
- readonly height: "$sm";
407
- readonly paddingHorizontal: "$md";
408
- readonly gap: "$xs";
357
+ readonly height: "sm";
358
+ readonly paddingHorizontal: "md";
359
+ readonly gap: "xs";
409
360
  };
410
361
  readonly md: {
411
- readonly height: "$md";
412
- readonly paddingHorizontal: "$lg";
413
- readonly gap: "$xs";
362
+ readonly height: "md";
363
+ readonly paddingHorizontal: "lg";
364
+ readonly gap: "xs";
414
365
  };
415
366
  readonly lg: {
416
- readonly height: "$lg";
417
- readonly paddingHorizontal: "$xl";
418
- readonly gap: "$sm";
367
+ readonly height: "lg";
368
+ readonly paddingHorizontal: "xl";
369
+ readonly gap: "sm";
419
370
  };
420
371
  readonly xl: {
421
- readonly height: "$xl";
422
- readonly paddingHorizontal: "$xl";
423
- readonly gap: "$sm";
372
+ readonly height: "xl";
373
+ readonly paddingHorizontal: "xl";
374
+ readonly gap: "sm";
424
375
  };
425
376
  readonly xxl: {
426
- readonly height: "$xxl";
427
- readonly paddingHorizontal: "$xxl";
428
- readonly gap: "$md";
429
- };
430
- readonly ":number": (val: number) => {
431
- height: number;
432
- paddingHorizontal: number;
433
- gap: number;
377
+ readonly height: "xxl";
378
+ readonly paddingHorizontal: "xxl";
379
+ readonly gap: "md";
434
380
  };
435
381
  };
436
382
  /**
437
- * Keep only `keys` from a variant-color map — lets a component expose a SUBSET
438
- * of the canonical vocabulary (e.g. Badge wants `dot` but not `subtle`) while
439
- * still sourcing every value from the shared ladder. Unknown keys are ignored.
383
+ * Like `controlVariant`, but for a pill-shaped control that pins its own
384
+ * `borderRadius` and lays out inline children with a `gap`. A number passes a raw
385
+ * pixel height through to a proportional height/padding/gap.
386
+ *
387
+ * Used by `Badge`, `Chip`, `Pill` so the three stay in lockstep.
388
+ */
389
+ export declare const controlGapVariant: DynamicVariant<number | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl">;
390
+ /**
391
+ * Keep only `keys` from a variant map — lets a component expose a SUBSET of the
392
+ * canonical vocabulary (e.g. Badge wants `dot` but not `subtle`) while still
393
+ * sourcing every value from the shared ladder. Module-scope use only (it
394
+ * allocates). Unknown keys are ignored.
440
395
  */
441
396
  export declare const pickVariants: <T extends Record<string, unknown>, K extends keyof T>(map: T, keys: readonly K[]) => Pick<T, K>;
442
397
  /**
443
- * INTERACTIVE control fill — background + border + hover/press/focus per variant.
444
- * The frame ladder for `Button` and `ActionIcon`. Spread into `variants.variant`.
398
+ * INTERACTIVE control fill — background (+ border) with hover/press clauses per
399
+ * variant (`filled → { backgroundColor: "color9 hover:color10 press:color8" }`).
400
+ * The frame ladder for `Button` and `ActionIcon`. Use as (or spread into, at
401
+ * module scope) `variants.variant`. `gradient` has no hover/press colour: its
402
+ * runtime gradient would hide it; the press-dip still gives tactile feedback.
445
403
  */
446
404
  export declare const controlColorVariant: {
405
+ readonly default: {
406
+ backgroundColor: "color3 hover:color4 press:color5";
407
+ } & {
408
+ borderColor: "borderColor";
409
+ };
410
+ readonly white: {
411
+ backgroundColor: "white hover:color2 press:color3";
412
+ };
447
413
  readonly filled: {
448
- readonly hoverStyle: {
449
- readonly backgroundColor: "$color10";
450
- };
451
- readonly pressStyle: {
452
- readonly backgroundColor: "$color8";
453
- };
454
- readonly backgroundColor: "$color9";
414
+ backgroundColor: "color9 hover:color10 press:color8";
455
415
  };
456
416
  readonly light: {
457
- readonly hoverStyle: {
458
- readonly backgroundColor: "$color5";
459
- };
460
- readonly pressStyle: {
461
- readonly backgroundColor: "$color6";
462
- };
463
- readonly backgroundColor: "$color4";
417
+ backgroundColor: "color4 hover:color5 press:color6";
464
418
  };
465
419
  readonly outline: {
466
- readonly hoverStyle: {
467
- readonly backgroundColor: "$color3";
468
- };
469
- readonly pressStyle: {
470
- readonly backgroundColor: "$color4";
471
- };
472
- readonly backgroundColor: "transparent";
473
- readonly borderColor: "$color7";
420
+ backgroundColor: "transparent hover:color3 press:color4";
421
+ } & {
422
+ borderColor: "color7";
474
423
  };
475
424
  readonly subtle: {
476
- readonly hoverStyle: {
477
- readonly backgroundColor: "$color4";
478
- };
479
- readonly pressStyle: {
480
- readonly backgroundColor: "$color5";
481
- };
482
- readonly backgroundColor: "transparent";
483
- };
484
- readonly default: {
485
- readonly hoverStyle: {
486
- readonly backgroundColor: "$color4";
487
- };
488
- readonly pressStyle: {
489
- readonly backgroundColor: "$color5";
490
- };
491
- readonly backgroundColor: "$color3";
492
- readonly borderColor: "$borderColor";
493
- };
494
- readonly white: {
495
- readonly hoverStyle: {
496
- readonly backgroundColor: "$color2";
497
- };
498
- readonly pressStyle: {
499
- readonly backgroundColor: "$color3";
500
- };
501
- readonly backgroundColor: "$white";
425
+ backgroundColor: "transparent hover:color4 press:color5";
502
426
  };
503
427
  readonly transparent: {
504
- readonly hoverStyle: {
505
- readonly backgroundColor: "$color3";
506
- };
507
- readonly pressStyle: {
508
- readonly backgroundColor: "$color4";
509
- };
510
- readonly backgroundColor: "transparent";
428
+ backgroundColor: "transparent hover:color3 press:color4";
511
429
  };
512
430
  readonly gradient: {
513
- readonly backgroundColor: "transparent";
431
+ backgroundColor: "transparent";
514
432
  };
515
433
  };
516
434
  /**
517
- * STATIC surface fill — background + border only, no pseudo states. The frame
518
- * ladder for non-interactive surfaces (`Badge`, `Alert`). Includes the pill-only
519
- * `dot` variant; `pickVariants` to expose just the subset a component supports.
435
+ * STATIC surface fill — background + border only, no interaction clauses. The
436
+ * frame ladder for non-interactive surfaces (`Badge`, `Alert`). Includes the
437
+ * pill-only `dot`; `pickVariants` to expose just the subset a component supports.
520
438
  */
521
439
  export declare const surfaceColorVariant: {
440
+ readonly default: {
441
+ backgroundColor: "color3";
442
+ } & {
443
+ borderColor: "borderColor";
444
+ };
445
+ readonly white: {
446
+ backgroundColor: "white";
447
+ };
522
448
  readonly filled: {
523
- readonly backgroundColor: "$color9";
449
+ backgroundColor: "color9";
524
450
  };
525
451
  readonly light: {
526
- readonly backgroundColor: "$color4";
452
+ backgroundColor: "color4";
527
453
  };
528
454
  readonly outline: {
529
- readonly backgroundColor: "transparent";
530
- readonly borderColor: "$color7";
455
+ backgroundColor: "transparent";
456
+ } & {
457
+ borderColor: "color7";
531
458
  };
532
459
  readonly subtle: {
533
- readonly backgroundColor: "transparent";
534
- };
535
- readonly default: {
536
- readonly backgroundColor: "$color3";
537
- readonly borderColor: "$borderColor";
538
- };
539
- readonly white: {
540
- readonly backgroundColor: "$white";
460
+ backgroundColor: "transparent";
541
461
  };
542
462
  readonly transparent: {
543
- readonly backgroundColor: "transparent";
463
+ backgroundColor: "transparent";
544
464
  };
545
465
  readonly dot: {
546
- readonly backgroundColor: "transparent";
547
- readonly borderColor: "$borderColor";
466
+ backgroundColor: "transparent";
467
+ } & {
468
+ borderColor: "borderColor";
548
469
  };
549
470
  readonly gradient: {
550
- readonly backgroundColor: "transparent";
471
+ backgroundColor: "transparent";
551
472
  };
552
473
  };
553
474
  /**
@@ -555,147 +476,87 @@ export declare const surfaceColorVariant: {
555
476
  * The text ladder for `Button`/`ActionIcon` labels, `Badge` text, `Alert.Title`.
556
477
  */
557
478
  export declare const controlTextColorVariant: {
479
+ readonly default: {
480
+ color: "color12";
481
+ };
482
+ readonly white: {
483
+ color: "color9";
484
+ };
558
485
  readonly filled: {
559
- readonly color: "$color1";
486
+ color: "color1";
560
487
  };
561
488
  readonly light: {
562
- readonly color: "$color11";
489
+ color: "color11";
563
490
  };
564
491
  readonly outline: {
565
- readonly color: "$color11";
492
+ color: "color11";
566
493
  };
567
494
  readonly subtle: {
568
- readonly color: "$color11";
569
- };
570
- readonly default: {
571
- readonly color: "$color12";
572
- };
573
- readonly white: {
574
- readonly color: "$color9";
495
+ color: "color11";
575
496
  };
576
497
  readonly transparent: {
577
- readonly color: "$color11";
498
+ color: "color11";
578
499
  };
579
500
  readonly dot: {
580
- readonly color: "$color12";
501
+ color: "color12";
581
502
  };
582
503
  readonly gradient: {
583
- readonly color: "$white";
504
+ color: "white";
584
505
  };
585
506
  };
586
507
  /**
587
508
  * MUTED text color per variant — softer body copy (e.g. `Alert.Message`). Only
588
- * `filled` inverts to sit on the strong fill; the rest resolve to `$color12`.
509
+ * `filled` inverts to sit on the strong fill; the rest resolve to `color12`.
589
510
  */
590
511
  export declare const mutedTextColorVariant: {
512
+ readonly default: {
513
+ color: "color12";
514
+ };
515
+ readonly white: {
516
+ color: "color12";
517
+ };
591
518
  readonly filled: {
592
- readonly color: "$color1";
519
+ color: "color1";
593
520
  };
594
521
  readonly light: {
595
- readonly color: "$color12";
522
+ color: "color12";
596
523
  };
597
524
  readonly outline: {
598
- readonly color: "$color12";
525
+ color: "color12";
599
526
  };
600
527
  readonly subtle: {
601
- readonly color: "$color12";
602
- };
603
- readonly default: {
604
- readonly color: "$color12";
605
- };
606
- readonly white: {
607
- readonly color: "$color12";
528
+ color: "color12";
608
529
  };
609
530
  readonly transparent: {
610
- readonly color: "$color12";
531
+ color: "color12";
611
532
  };
612
533
  readonly dot: {
613
- readonly color: "$color12";
534
+ color: "color12";
614
535
  };
615
536
  readonly gradient: {
616
- readonly color: "$white";
537
+ color: "white";
617
538
  };
618
539
  };
619
540
  /** True when `value` is one of the canonical variant keys. */
620
541
  export declare const isVariantKey: (value: string) => value is VariantKey;
621
542
  /**
622
- * Thickness/height-only `size` prop — maps a size key onto `height` (from the
623
- * `size` scale), or a number straight through. The single source of truth for
624
- * tracks/boxes whose only size dimension is height.
625
- *
626
- * Used by `Loader` (frame) and `Progress` (track).
543
+ * Thickness/height-only `size` prop — a size key onto `height` (from the `size`
544
+ * scale), or a number straight through. Used by `Loader` (frame).
627
545
  */
628
- export declare const heightVariant: {
629
- readonly xxs: {
630
- readonly height: "$xxs";
631
- };
632
- readonly xs: {
633
- readonly height: "$xs";
634
- };
635
- readonly sm: {
636
- readonly height: "$sm";
637
- };
638
- readonly md: {
639
- readonly height: "$md";
640
- };
641
- readonly lg: {
642
- readonly height: "$lg";
643
- };
644
- readonly xl: {
645
- readonly height: "$xl";
646
- };
647
- readonly xxl: {
648
- readonly height: "$xxl";
649
- };
650
- readonly ":number": (val: number) => {
651
- height: number;
652
- };
653
- };
546
+ export declare const heightVariant: DynamicVariant<number | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl">;
654
547
  /**
655
548
  * The input root frame's per-size HEIGHT (a `md` field is 40px, matching a `md`
656
- * Button), with `:string`/`:number` catch-alls for a custom height. Like
657
- * `heightVariant` but with the extra `:string` pass-through. It lives HERE — not in
549
+ * Button), with a number / CSS value escape hatch. It lives HERE — not in
658
550
  * `Input/shared.tsx` — so the styled input frame's `size` variant doesn't create a
659
- * circular TYPE reference back through its own props (frame → variant →
660
- * frame-props → frame). Derived from the canonical control heights.
551
+ * circular TYPE reference back through its own props.
661
552
  */
662
- export declare const fieldHeightVariant: {
663
- readonly xxs: {
664
- readonly height: "$xxs";
665
- };
666
- readonly xs: {
667
- readonly height: "$xs";
668
- };
669
- readonly sm: {
670
- readonly height: "$sm";
671
- };
672
- readonly md: {
673
- readonly height: "$md";
674
- };
675
- readonly lg: {
676
- readonly height: "$lg";
677
- };
678
- readonly xl: {
679
- readonly height: "$xl";
680
- };
681
- readonly xxl: {
682
- readonly height: "$xxl";
683
- };
684
- readonly ":string": (val: string) => {
685
- height: BoxProps["height"];
686
- };
687
- readonly ":number": (val: number) => {
688
- height: number;
689
- };
690
- };
553
+ export declare const fieldHeightVariant: DynamicVariant<"xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | Length>;
691
554
  /**
692
- * Track-thickness `size` ladder for thin horizontal bars (Progress). A bar track
693
- * is far thinner than a control height, so it keeps its own small px ladder rather
694
- * than reading `controlMetrics.height` — but it lives here as a NAMED shared
695
- * variant (reviewed as a set, `:number` escape hatch preserved) instead of an
696
- * inline magic-number map. Used by `Progress`.
555
+ * Track-thickness ladder for thin horizontal bars (Progress) — far thinner than a
556
+ * control height, so its own small px ladder. Read as data by `Progress` for the
557
+ * vertical orientation.
697
558
  */
698
- export declare const progressThicknessVariant: {
559
+ export declare const PROGRESS_THICKNESS: {
699
560
  readonly xxs: {
700
561
  readonly height: 2;
701
562
  };
@@ -717,15 +578,10 @@ export declare const progressThicknessVariant: {
717
578
  readonly xxl: {
718
579
  readonly height: 20;
719
580
  };
720
- readonly ":number": (val: number) => {
721
- height: number;
722
- };
723
581
  };
724
- /**
725
- * Slider track-thickness ladder — like `progressThicknessVariant` but tuned for a
726
- * draggable track. Maps a size key onto the track `height`. Used by `Slider`.
727
- */
728
- export declare const sliderTrackVariant: {
582
+ export declare const progressThicknessVariant: DynamicVariant<number | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl">;
583
+ /** Slider track-thickness ladder — tuned for a draggable track. Used by `Slider`. */
584
+ export declare const SLIDER_TRACK_SIZES: {
729
585
  readonly xxs: {
730
586
  readonly height: 3;
731
587
  };
@@ -747,15 +603,10 @@ export declare const sliderTrackVariant: {
747
603
  readonly xxl: {
748
604
  readonly height: 12;
749
605
  };
750
- readonly ":number": (val: number) => {
751
- height: number;
752
- };
753
606
  };
754
- /**
755
- * Slider thumb ladder — square width+height for the draggable handle. Tuned to sit
756
- * proportionally above the track of the same key. Used by `Slider`.
757
- */
758
- export declare const sliderThumbVariant: {
607
+ export declare const sliderTrackVariant: DynamicVariant<number | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl">;
608
+ /** Slider thumb ladder — square handle tuned above the same-key track. Used by `Slider`. */
609
+ export declare const SLIDER_THUMB_SIZES: {
759
610
  readonly xxs: {
760
611
  readonly width: 12;
761
612
  readonly height: 12;
@@ -784,18 +635,13 @@ export declare const sliderThumbVariant: {
784
635
  readonly width: 32;
785
636
  readonly height: 32;
786
637
  };
787
- readonly ":number": (val: number) => {
788
- width: number;
789
- height: number;
790
- };
791
638
  };
639
+ export declare const sliderThumbVariant: DynamicVariant<number | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl">;
792
640
  /**
793
- * Fixed content-WIDTH ladder for panels (Dialog, Drawer width axis). A single
794
- * shared width scale so a `md` of any panel is the same width; a `:number`/`:string`
795
- * passes an arbitrary px/CSS width through. Distinct from `maxWidthVariant`, which
796
- * sets a max-width cap rather than a fixed width.
641
+ * Fixed content-WIDTH ladder for panels (Dialog, Drawer width axis), so a `md` of
642
+ * any panel is the same width. Read as data by `Drawer`.
797
643
  */
798
- export declare const panelWidthVariant: {
644
+ export declare const PANEL_WIDTH: {
799
645
  readonly xxs: {
800
646
  readonly width: 160;
801
647
  };
@@ -817,13 +663,9 @@ export declare const panelWidthVariant: {
817
663
  readonly xxl: {
818
664
  readonly width: 560;
819
665
  };
820
- readonly ":number": (val: number) => {
821
- width: number;
822
- };
823
- readonly ":string": (val: string) => {
824
- width: BoxProps["width"];
825
- };
826
666
  };
667
+ /** {@link PANEL_WIDTH} as a variant; a number / CSS value passes through as `width`. */
668
+ export declare const panelWidthVariant: DynamicVariant<"xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | Length>;
827
669
  /**
828
670
  * Cursor is a web affordance in this kit. Passing it as a Tamagui style prop on
829
671
  * native can leak to React Native's host node as a top-level prop and trigger
@@ -910,164 +752,197 @@ export declare const webButtonTextReset: () => {
910
752
  */
911
753
  export type FlexDirection = "row" | "column" | "row-reverse" | "column-reverse";
912
754
  /**
913
- * Transition keys registered in `@knitui/core`'s `createAnimations` config
914
- * (`config/animations.ts` + `.native.ts`). Kept in sync with those maps.
915
- *
916
- * Split into duration presets + named effects (the first eight) and the CSS
917
- * easing-curve keys (the last five). The curve keys are what `resolveTransition`
918
- * maps a `transitionTimingFunction` onto so the easing is exact.
755
+ * The named presets registered in `@knitui/core`'s animation drivers — the keys
756
+ * of the one `MOTION_PRESETS` table both drivers are built from (`fast`,
757
+ * `medium`, `slow`, `bouncy`, `pulse`, `spin`, `stripe`, and the easing-curve
758
+ * keys `linear` / `ease` / `ease-in` / `ease-out` / `ease-in-out`). v2's
759
+ * `"100ms"` key is gone: a duration is plain CSS in v3.
919
760
  */
920
- export type TransitionName = "100ms" | "fast" | "medium" | "slow" | "bouncy" | "pulse" | "spin" | "stripe" | "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out";
921
- export type TransitionValue = TransitionName | [TransitionName, {
922
- duration?: number;
923
- }] | null;
761
+ export type TransitionName = DriverPresetName;
924
762
  /**
925
- * Map a CSS `transition-timing-function` onto the registered easing curve that
926
- * reproduces it. The matching `ease`/`ease-in`/`ease-out`/`ease-in-out`/`linear`
927
- * keys carry the curve; the exact duration is applied separately via a
928
- * `{ duration }` override (see {@link timedTransition}), so this resolver only
929
- * picks the *shape*. An arbitrary `cubic-bezier(...)` can't be a static config
930
- * key, so it approximates to `bouncy` (its overshoot curve) — the one lossy case
931
- * on web; `CollapseBox.native` parses the bezier exactly off the shared
932
- * `CSS_EASING_BEZIER` table (`@knitui/core`).
933
- * Unknown values fall back to `ease`, the library-wide default.
934
- *
935
- * This is the single source of truth — `CollapseBox` (web), `RollingNumber`, and
936
- * the native `Transition` all import it instead of re-deriving the mapping.
763
+ * The object form of a v3 transition — the subset of Tamagui's `TransitionConfig`
764
+ * the kit authors. `properties` scopes the transition (v2's `animateOnly`, as a
765
+ * CSS `transition-property` list: `"transform, opacity"`).
766
+ */
767
+ export type TransitionSpec = {
768
+ preset?: TransitionName;
769
+ /** ms. Overrides the preset's duration (a spring preset re-solves). */
770
+ duration?: number;
771
+ /** Any CSS timing function (`"ease-out"`, `"cubic-bezier(…)"`) — exact on web AND native. */
772
+ easing?: string;
773
+ /** ms. */
774
+ delay?: number;
775
+ /** Comma-separated style properties this transition applies to. */
776
+ properties?: string;
777
+ /** The transition while mounting, if it differs. */
778
+ enter?: TransitionName | TransitionSpec;
779
+ /** The transition while unmounting, if it differs. */
780
+ exit?: TransitionName | TransitionSpec;
781
+ };
782
+ /**
783
+ * A kit transition value: a preset name, an object, or `null` (keep the
784
+ * `transition` key present but animate nothing — Tamagui's rule for animated
785
+ * views, so hook order never changes).
786
+ */
787
+ export type TransitionValue = TransitionName | TransitionSpec | null;
788
+ /** `["transform", "opacity"]` / `"transform, opacity"` → `"transform, opacity"`. */
789
+ export declare const toTransitionProperties: (properties: readonly string[] | string) => string;
790
+ /**
791
+ * Scope a transition to `properties` (the v3 home of v2's `animateOnly`): a preset
792
+ * name becomes `{ preset, properties }`, an object gains `properties`, `null` stays
793
+ * `null`. Without it a plain `transition="fast"` animates EVERY changing property,
794
+ * which slides floating elements across the screen on each re-measure.
795
+ */
796
+ export declare const withTransitionProperties: (value: TransitionValue, properties: readonly string[] | string | undefined) => TransitionValue;
797
+ /**
798
+ * Map a CSS `transition-timing-function` onto the registered easing preset that
799
+ * reproduces it (`"ease-out"` → `"ease-out"`; unknown → `"ease"`; a
800
+ * `cubic-bezier(…)` → `"ease"`). v3 accepts any CSS easing in the object form,
801
+ * so prefer {@link timedTransition}, which keeps the curve EXACT; this stays for
802
+ * callers that need a preset NAME.
937
803
  */
938
804
  export declare const resolveTransition: (timingFunction?: string) => TransitionName;
939
805
  /**
940
- * Build the `[curve, { duration }]` transition value for a timed (non-spring)
941
- * animation: pick the easing curve for `timingFunction`, then pin the exact
942
- * `duration` via the driver's duration override. Pass the result to
943
- * {@link transitionProps}. Centralises the `[resolveTransition(fn), { duration }]`
944
- * idiom the size/height-clip components all repeat.
806
+ * A timed (non-spring) transition: exact `duration` (ms) and exact CSS easing
807
+ * curve, as the v3 object form `{ duration, easing }` — both drivers take any CSS
808
+ * timing function (`cubic-bezier(…)` included), so nothing approximates any more.
809
+ * Pass `properties` to scope it.
945
810
  */
946
- export declare const timedTransition: (duration: number, timingFunction?: string) => TransitionValue;
811
+ export declare const timedTransition: (duration: number, timingFunction?: string, properties?: readonly string[] | string) => TransitionSpec;
947
812
  /**
948
813
  * Build a precisely-typed `{ transition }` object to spread onto a styled
949
- * component. Keeping this prop present and passing `null` when disabled follows
950
- * Tamagui's animation-driver rules and preserves hook order for animated views.
814
+ * component (or a `styled()` base), optionally scoped to `properties`. Keep the
815
+ * prop present and pass `null` when disabled (Tamagui's animated-view rule).
816
+ *
817
+ * ```ts
818
+ * styled(Box, { ...transitionProps("fast", ["backgroundColor"]) })
819
+ * ```
951
820
  */
952
- export declare const transitionProps: (transition: TransitionValue) => {
821
+ export declare const transitionProps: (transition: TransitionValue, properties?: readonly string[] | string) => {
953
822
  transition: TransitionValue;
954
823
  };
824
+ /**
825
+ * Scope an existing `{ transition }` result (e.g. from `useReducedTransition`) to
826
+ * `properties` — the v3 replacement for the v2 pair
827
+ * `{...fade} {...animateOnlyProps(["opacity"])}` → `{...scopeTransition(fade, ["opacity"])}`.
828
+ * Cached per (result object, property list), so a memoised `fade` yields the same
829
+ * object every render.
830
+ */
831
+ export declare const scopeTransition: (result: {
832
+ transition: TransitionValue;
833
+ }, properties: readonly string[] | string) => {
834
+ transition: TransitionValue;
835
+ };
836
+ /** The base duration (ms) of a timed preset, or `undefined` for a spring. */
837
+ export declare const presetDurationMs: (name: TransitionName) => number | undefined;
955
838
  /**
956
839
  * Fraction an interactive control scales DOWN to while pressed — the tactile
957
840
  * "dip" shared by `Button`, `ActionIcon`, `Chip`, … `0.97` is a 3% shrink: clearly
958
- * felt without looking broken on the smallest controls. Tune the press feel here
959
- * once for the whole kit.
841
+ * felt without looking broken on the smallest controls.
960
842
  */
961
843
  export declare const PRESS_SCALE = 0.97;
962
844
  /**
963
- * Tactile "shrink on press" feedback. Spread onto a pressable frame's BASE style
964
- * (`...pressScaleStyle`): Tamagui MERGES this base `pressStyle` with the
965
- * per-variant `pressStyle` color, so on press the control both darkens (variant)
966
- * and dips (this). Pair the frame with `transitionProps("fast")` (or any
967
- * `transition`) so the dip EASES instead of snapping — the `scale` rides
968
- * Tamagui's `transform` transition on web and the Reanimated `scale` driver on
969
- * native, using the kit's own animation/press internals end to end.
845
+ * Tactile "shrink on press" feedback as a v3 flat clause. Spread onto a pressable
846
+ * frame's BASE style (`...pressScaleStyle`). v3 merges clause slots per (property,
847
+ * condition) across tiers, so this base `scale: "press:0.97"` composes with a
848
+ * variant's `bg: "… press:color8"` (different properties) — on press the control
849
+ * both darkens (variant) and dips (this). Pair the frame with `usePressScale()` at
850
+ * render so the dip EASES (and collapses under reduced motion).
970
851
  */
971
852
  export declare const pressScaleStyle: {
972
- readonly pressStyle: {
973
- readonly scale: 0.97;
974
- };
975
- };
976
- /**
977
- * Build a precisely-typed `{ animateOnly }` object to spread onto a styled
978
- * component. `animateOnly` scopes the CSS animation driver's `transition` to ONLY
979
- * the listed properties (see `@tamagui/animations-css`); without it a plain
980
- * `transition="fast"` expands to `transition: all …`, which animates `top`/`left`
981
- * too. Floating elements (Tooltip/Popover) position via `top`/`left` from
982
- * floating-ui and must NOT transition those — otherwise the element visibly slides
983
- * across the screen on every re-measure. Restricting to `["transform", "opacity"]`
984
- * keeps the enter/exit fade + scale/slide while positioning stays instant. Like
985
- * `transitionProps`, this dodges the excess-property check WITHOUT widening to `any`.
986
- */
987
- export declare const animateOnlyProps: (properties: string[]) => {
988
- animateOnly: string[];
989
- };
990
- /**
991
- * Build a precisely-typed `{ onHoverIn?, onHoverOut? }` object to spread onto a
992
- * styled component. Tamagui resolves these web hover events at runtime (they are
993
- * no-ops on native), but the generated style-prop types don't surface them, so a
994
- * direct attribute fails to typecheck. Spreading a precise object dodges the
995
- * excess-property check WITHOUT widening to `any` — the same technique as
996
- * `transitionProps`. Used by `Rating` for its hover preview.
997
- */
998
- export declare const hoverProps: (handlers: {
999
- onHoverIn?: () => void;
1000
- onHoverOut?: () => void;
1001
- }) => {
1002
- onHoverIn?: () => void;
1003
- onHoverOut?: () => void;
1004
- };
853
+ readonly scale: "press:0.97";
854
+ };
855
+ /** Hover handlers as spread by {@link hoverProps}: web keys OR native keys. */
856
+ export interface HoverHandlerProps<E = unknown> {
857
+ onMouseEnter?: (event: E) => void;
858
+ onMouseLeave?: (event: E) => void;
859
+ onHoverIn?: (event: E) => void;
860
+ onHoverOut?: (event: E) => void;
861
+ }
862
+ /**
863
+ * Pointer-hover handlers for a Tamagui frame, per platform. Spread the result:
864
+ * `<Frame {...hoverProps({ onHoverIn, onHoverOut })} />`. The platform event is
865
+ * forwarded to the handler (typed `unknown` unless `E` is given).
866
+ *
867
+ * v3 (3.0.18) only attaches its web mouse listeners when the element has
868
+ * `onMouseEnter`/`onMouseLeave` (or a `hover:` style): `onHoverIn`/`onHoverOut`
869
+ * ALONE are never wired on web (`createComponent` → `attachHover`), so a frame that
870
+ * only declared them silently ignored the pointer. Web therefore gets the mouse
871
+ * handlers; native keeps Tamagui's `onHoverIn`/`onHoverOut` (pointer devices on
872
+ * iPad / Android). Absent handlers stay absent (no `undefined` keys).
873
+ */
874
+ export declare function hoverProps<E = unknown>(handlers: {
875
+ onHoverIn?: (event: E) => void;
876
+ onHoverOut?: (event: E) => void;
877
+ }): HoverHandlerProps<E>;
1005
878
  /**
1006
879
  * Mantine-style `shadow` scale (xxs→xxl). Elevation rises with the key; colour
1007
- * comes from the `$dropShadowColor` semantic token so it adapts to light/dark.
880
+ * comes from the `dropShadowColor` theme key so it adapts to light/dark.
1008
881
  *
1009
882
  * Expressed as the cross-platform `boxShadow` style prop (`"{x}px {y}px {blur}px
1010
- * {spread}px {color}"`) rather than legacy RN `shadow*` props: `shadow*` only
1011
- * renders on iOS (Android needs `elevation`), whereas `boxShadow` works on web +
1012
- * iOS + Android 9+ (RN 0.76 New Arch, enabled here). Tamagui resolves the
1013
- * embedded `$dropShadowColor` token theme-aware on every platform
1014
- * (`resolveCompoundTokens`/`parseBoxShadow`), so iOS and Android stay aligned
1015
- * with no runtime polyfill.
883
+ * {spread}px {color}"`) rather than legacy RN `shadow*` props: `boxShadow` works
884
+ * on web + iOS + Android 9+ (RN New Arch). v3 resolves the bare theme name
885
+ * embedded in the shadow recipe on every platform (`getSplitStyles`
886
+ * `configuredValue` → `grammar.embeddedTokens`, where a recipe word that is not a
887
+ * token is resolved as a COLOR against the active theme): web emits
888
+ * `var(--dropShadowColor)`, native the theme's raw rgba. So these stay static
889
+ * strings — no runtime theme read. Verified by `shadow.test.tsx`.
1016
890
  *
1017
- * The token is deliberately NOT named `$shadowColor`: that key collides with
1018
- * React Native's reserved legacy `shadowColor` style prop, which makes Tamagui's
1019
- * native pipeline drop the token's alpha on iOS (shadows render washed-out).
891
+ * The key is deliberately NOT named `shadowColor`: that collides with React
892
+ * Native's reserved legacy `shadowColor` style prop, which makes the native
893
+ * pipeline drop the token's alpha on iOS (shadows render washed-out).
1020
894
  */
1021
895
  export declare const shadowVariant: {
1022
896
  readonly xxs: {
1023
- readonly boxShadow: "0px 1px 1px 0px $dropShadowColor";
897
+ readonly boxShadow: "0px 1px 1px 0px dropShadowColor";
1024
898
  };
1025
899
  readonly xs: {
1026
- readonly boxShadow: "0px 1px 3px 0px $dropShadowColor";
900
+ readonly boxShadow: "0px 1px 3px 0px dropShadowColor";
1027
901
  };
1028
902
  readonly sm: {
1029
- readonly boxShadow: "0px 3px 6px 0px $dropShadowColor";
903
+ readonly boxShadow: "0px 3px 6px 0px dropShadowColor";
1030
904
  };
1031
905
  readonly md: {
1032
- readonly boxShadow: "0px 5px 12px 0px $dropShadowColor";
906
+ readonly boxShadow: "0px 5px 12px 0px dropShadowColor";
1033
907
  };
1034
908
  readonly lg: {
1035
- readonly boxShadow: "0px 8px 20px 0px $dropShadowColor";
909
+ readonly boxShadow: "0px 8px 20px 0px dropShadowColor";
1036
910
  };
1037
911
  readonly xl: {
1038
- readonly boxShadow: "0px 12px 28px 0px $dropShadowColor";
912
+ readonly boxShadow: "0px 12px 28px 0px dropShadowColor";
1039
913
  };
1040
914
  readonly xxl: {
1041
- readonly boxShadow: "0px 16px 40px 0px $dropShadowColor";
915
+ readonly boxShadow: "0px 16px 40px 0px dropShadowColor";
1042
916
  };
1043
917
  };
918
+ /** The shadow scale's keys (`shadow` prop values). */
919
+ export type ShadowKey = keyof typeof shadowVariant;
1044
920
  /**
1045
921
  * Mantine-style `size` prop for text: a size key (`"md"`) maps to the matching
1046
- * font-size token; a `$`-token / CSS value / number passes through to
1047
- * `fontSize`. Line height is intentionally left unset so it derives from the
1048
- * font config's per-fontSize line-height mapping.
922
+ * font-size token. Line height is intentionally left unset so it derives from
923
+ * the font config's per-fontSize line-height mapping. Static exact-key map.
1049
924
  */
1050
925
  export declare const fontSizeVariant: {
1051
926
  readonly xxs: {
1052
- readonly fontSize: "$xxs";
927
+ readonly fontSize: "xxs";
1053
928
  };
1054
929
  readonly xs: {
1055
- readonly fontSize: "$xs";
930
+ readonly fontSize: "xs";
1056
931
  };
1057
932
  readonly sm: {
1058
- readonly fontSize: "$sm";
933
+ readonly fontSize: "sm";
1059
934
  };
1060
935
  readonly md: {
1061
- readonly fontSize: "$md";
936
+ readonly fontSize: "md";
1062
937
  };
1063
938
  readonly lg: {
1064
- readonly fontSize: "$lg";
939
+ readonly fontSize: "lg";
1065
940
  };
1066
941
  readonly xl: {
1067
- readonly fontSize: "$xl";
942
+ readonly fontSize: "xl";
1068
943
  };
1069
944
  readonly xxl: {
1070
- readonly fontSize: "$xxl";
945
+ readonly fontSize: "xxl";
1071
946
  };
1072
947
  };
1073
948
  /**
@@ -1081,116 +956,67 @@ export declare const fontSizeVariant: {
1081
956
  */
1082
957
  export declare const kbdSizeVariant: {
1083
958
  readonly xxs: {
1084
- readonly fontSize: "$xxs";
1085
- readonly paddingHorizontal: "$xxs";
959
+ readonly fontSize: "xxs";
960
+ readonly paddingHorizontal: "xxs";
1086
961
  readonly paddingVertical: 2;
1087
- readonly borderRadius: "$xs";
962
+ readonly borderRadius: "xs";
1088
963
  };
1089
964
  readonly xs: {
1090
- readonly fontSize: "$xxs";
1091
- readonly paddingHorizontal: "$xs";
965
+ readonly fontSize: "xxs";
966
+ readonly paddingHorizontal: "xs";
1092
967
  readonly paddingVertical: 2;
1093
- readonly borderRadius: "$xs";
968
+ readonly borderRadius: "xs";
1094
969
  };
1095
970
  readonly sm: {
1096
- readonly fontSize: "$xs";
1097
- readonly paddingHorizontal: "$sm";
971
+ readonly fontSize: "xs";
972
+ readonly paddingHorizontal: "sm";
1098
973
  readonly paddingVertical: 4;
1099
- readonly borderRadius: "$sm";
974
+ readonly borderRadius: "sm";
1100
975
  };
1101
976
  readonly md: {
1102
- readonly fontSize: "$sm";
1103
- readonly paddingHorizontal: "$md";
977
+ readonly fontSize: "sm";
978
+ readonly paddingHorizontal: "md";
1104
979
  readonly paddingVertical: 6;
1105
- readonly borderRadius: "$sm";
980
+ readonly borderRadius: "sm";
1106
981
  };
1107
982
  readonly lg: {
1108
- readonly fontSize: "$lg";
1109
- readonly paddingHorizontal: "$lg";
983
+ readonly fontSize: "lg";
984
+ readonly paddingHorizontal: "lg";
1110
985
  readonly paddingVertical: 8;
1111
- readonly borderRadius: "$md";
986
+ readonly borderRadius: "md";
1112
987
  };
1113
988
  readonly xl: {
1114
- readonly fontSize: "$xl";
1115
- readonly paddingHorizontal: "$xl";
989
+ readonly fontSize: "xl";
990
+ readonly paddingHorizontal: "xl";
1116
991
  readonly paddingVertical: 10;
1117
- readonly borderRadius: "$md";
992
+ readonly borderRadius: "md";
1118
993
  };
1119
994
  readonly xxl: {
1120
- readonly fontSize: "$xxl";
1121
- readonly paddingHorizontal: "$xxl";
995
+ readonly fontSize: "xxl";
996
+ readonly paddingHorizontal: "xxl";
1122
997
  readonly paddingVertical: 12;
1123
- readonly borderRadius: "$lg";
998
+ readonly borderRadius: "lg";
1124
999
  };
1125
1000
  };
1001
+ /** The plain `fontSize` fallthrough body: a raw px / font token / CSS value. */
1002
+ export declare const fontSizeOf: (value: number | FontSizeTokens | CssString) => StyleFragment;
1126
1003
  /**
1127
- * Plain `fontSize` pass-through — UNLIKE `fontSizeVariant` it does NOT map a
1128
- * bare size key to a `$`-token; every value (key, `$`-token, CSS value) flows
1129
- * straight to `fontSize`. Use it as the catch-all alongside explicit token keys:
1130
- *
1131
- * ```ts
1132
- * size: { xs: { fontSize: "$xs" }, …, ...fontSizePassthroughVariant }
1133
- * ```
1004
+ * {@link fontSizeVariant} plus the escape hatch: a number / font token / CSS value
1005
+ * flows straight to `fontSize`. To add keys (Title's `h1`…), build a new one:
1006
+ * `tableVariant({ ...fontSizeVariant, h1: { fontSize: "xxl" } }, fontSizeOf)`.
1134
1007
  */
1135
- export declare const fontSizePassthroughVariant: {
1136
- readonly ":string": (val: string) => {
1137
- fontSize: FontSizeTokens;
1138
- };
1139
- readonly ":number": (val: number) => {
1140
- fontSize: number;
1141
- };
1142
- readonly xxs: {
1143
- readonly fontSize: "$xxs";
1144
- };
1145
- readonly xs: {
1146
- readonly fontSize: "$xs";
1147
- };
1148
- readonly sm: {
1149
- readonly fontSize: "$sm";
1150
- };
1151
- readonly md: {
1152
- readonly fontSize: "$md";
1153
- };
1154
- readonly lg: {
1155
- readonly fontSize: "$lg";
1156
- };
1157
- readonly xl: {
1158
- readonly fontSize: "$xl";
1159
- };
1160
- readonly xxl: {
1161
- readonly fontSize: "$xxl";
1162
- };
1163
- };
1008
+ export declare const fontSizePassthroughVariant: DynamicVariant<CssString | import("@tamagui/web").FontSize>;
1164
1009
  /** Open-ended `fontWeight` prop (`"700"`, `600`, `"bold"`, …). */
1165
- export declare const fontWeightVariant: {
1166
- readonly ":string": (val: string) => {
1167
- fontWeight: TextProps["fontWeight"];
1168
- };
1169
- readonly ":number": (val: number) => {
1170
- fontWeight: TextProps["fontWeight"];
1171
- };
1172
- };
1010
+ export declare const fontWeightVariant: DynamicVariant<number | CssString>;
1173
1011
  /** Open-ended `textAlign` prop (`"left"`, `"center"`, `"justify"`, …). */
1174
- export declare const textAlignVariant: {
1175
- readonly ":string": (val: string) => {
1176
- textAlign: TextProps["textAlign"];
1177
- };
1178
- };
1012
+ export declare const textAlignVariant: DynamicVariant<CssString | "center" | "auto" | "left" | "right" | "justify">;
1179
1013
  /** Open-ended `textTransform` prop (`"uppercase"`, `"capitalize"`, …). */
1180
- export declare const textTransformVariant: {
1181
- readonly ":string": (val: string) => {
1182
- textTransform: TextProps["textTransform"];
1183
- };
1184
- };
1014
+ export declare const textTransformVariant: DynamicVariant<CssString | "none" | "uppercase" | "lowercase" | "capitalize">;
1185
1015
  /**
1186
1016
  * CSS `text-wrap` values (`"balance"`, `"pretty"`, …) — web-only and not modeled
1187
- * by Tamagui's style props, so the variant narrows the open-ended string locally.
1017
+ * by Tamagui's style props.
1188
1018
  */
1189
1019
  export type TextWrap = "wrap" | "nowrap" | "balance" | "pretty" | "stable";
1190
1020
  /** Mantine-style `textWrap` prop. Web-only; a no-op on native. Used by `Title`. */
1191
- export declare const textWrapVariant: {
1192
- readonly ":string": (val: string) => {
1193
- textWrap: TextWrap;
1194
- };
1195
- };
1021
+ export declare const textWrapVariant: DynamicVariant<TextWrap>;
1196
1022
  //# sourceMappingURL=style-props.d.ts.map