@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
@@ -3,15 +3,18 @@ import type { ComponentProps, ComponentType } from "react";
3
3
 
4
4
  import {
5
5
  type GetProps,
6
- getTokenValue,
7
6
  isWeb,
7
+ resolveToken,
8
+ styleable,
8
9
  styled,
9
10
  View,
10
11
  withStaticProperties,
11
12
  } from "@knitui/core";
12
13
  import { useCallbackRef, useMergedRef } from "@knitui/hooks";
13
14
 
15
+ import { shadowVariant } from "../internal/style-props";
14
16
  import { slotStyles, type SlotStyles } from "../internal/styles";
17
+ import { themeColorToCssVar } from "../internal/theme-color-web";
15
18
  import {
16
19
  attachImageStatics,
17
20
  normalizeContentPosition,
@@ -42,19 +45,14 @@ type ImageLoadLikeEvent = {
42
45
  };
43
46
  };
44
47
  type ComponentWithImageStatics = Partial<ImageType>;
45
- type TokenValueInput = Parameters<typeof getTokenValue>[0];
46
48
  type ImageLoadEvent = Parameters<NonNullable<ImageProps["onLoad"]>>[0];
47
49
  type ImageErrorEvent = Parameters<NonNullable<ImageProps["onError"]>>[0];
48
50
 
49
- // Radius/size token keys, matching the canonical set in internal/style-props.
50
- // Missing keys silently drop to no-radius, so this must stay in sync.
51
- const SIZE_KEYS = new Set(["xxs", "xs", "sm", "md", "lg", "xl", "xxl"]);
52
-
53
51
  /**
54
52
  * Internal alias the unified `transition` prop is forwarded under. expo-image's
55
- * `transition` (a numeric fade duration / config) collides with Tamagui v2's
53
+ * `transition` (a numeric fade duration / config) collides with Tamagui's
56
54
  * reserved `transition` animation prop: Tamagui treats ANY component where
57
- * `"transition" in props` as animated (see @tamagui/web useComponentState) and
55
+ * `"transition" in props` as animated (v3 still does) and
58
56
  * engages its animation driver. On web that driver calls `getComputedStyle(host)`,
59
57
  * but the backing expo-image host ref is not a DOM `Element`, so it throws
60
58
  * ("parameter 1 is not of type 'Element'") and blanks the tree. We therefore
@@ -171,10 +169,6 @@ export const resolveRadiusValue = (
171
169
  ): unknown => {
172
170
  if (typeof value === "number" || value == null) return value;
173
171
 
174
- if (typeof value === "object" && "isVar" in value && "val" in value) {
175
- return resolveRadiusValue(value.val, dimensions);
176
- }
177
-
178
172
  if (typeof value !== "string") return value;
179
173
 
180
174
  // Percentages (e.g. "50%" for circular avatars). expo-image's web build
@@ -195,26 +189,59 @@ export const resolveRadiusValue = (
195
189
  return basis !== undefined ? basis * fraction : 9999;
196
190
  }
197
191
 
198
- const token = value[0] === "$" ? value : SIZE_KEYS.has(value) ? `$${value}` : undefined;
199
- if (token) return getTokenValue(token as TokenValueInput, "radius");
192
+ // A radius token (`"md"`, `"radius.md"`) resolves through the active config.
193
+ const token = resolveToken(value, "radius");
194
+ if (token !== undefined) return token;
200
195
 
201
196
  const numericValue = Number.parseFloat(value);
202
197
  return Number.isFinite(numericValue) ? numericValue : undefined;
203
198
  };
204
199
 
200
+ /**
201
+ * Colour style props (longhand or the kit's shorthand) that v3 drops when it
202
+ * styles a NON-Tamagui host such as the image backend: theme names
203
+ * (`bg="color3"`) never reach the DOM. On web they are lifted into the inline
204
+ * style as the theme's CSS variable (theme-free, follows theme changes).
205
+ */
206
+ const COLOR_STYLE_KEYS: Readonly<Record<string, string>> = {
207
+ bg: "backgroundColor",
208
+ backgroundColor: "backgroundColor",
209
+ borderColor: "borderColor",
210
+ borderTopColor: "borderTopColor",
211
+ borderRightColor: "borderRightColor",
212
+ borderBottomColor: "borderBottomColor",
213
+ borderLeftColor: "borderLeftColor",
214
+ };
215
+
216
+ /** Web: pull theme-name colour props out of `rest` into an inline style block. */
217
+ function liftWebColors(rest: Record<string, unknown>): Record<string, string> | undefined {
218
+ if (!isWeb) return undefined;
219
+ let lifted: Record<string, string> | undefined;
220
+ for (const key in COLOR_STYLE_KEYS) {
221
+ const value = rest[key];
222
+ if (typeof value !== "string") continue;
223
+ (lifted ??= {})[COLOR_STYLE_KEYS[key]!] = themeColorToCssVar(value);
224
+ delete rest[key];
225
+ }
226
+ return lifted;
227
+ }
228
+
205
229
  /** Frames `useWebCachedImageLoad` waits for the backend to put its `<img>` in the DOM. */
206
230
  const CACHED_LOAD_MAX_FRAMES = 10;
207
231
 
208
232
  /**
209
233
  * Find the rendered `<img>` behind a backend instance on web: the instance itself
210
- * (a plain `<img>` backend), or expo-image's container `<div>` (the LAST `<img>`
211
- * in it is the current source; a placeholder node, when any, comes first).
234
+ * (a plain `<img>` backend), or the backend's container element — the kit's web
235
+ * `Image` wrapper, or expo-image's `containerViewRef` — whose LAST `<img>` is the
236
+ * current source (a placeholder node, when any, comes first).
212
237
  */
213
238
  const findWebImg = (instance: unknown): HTMLImageElement | null => {
214
239
  if (typeof HTMLElement === "undefined" || instance == null) return null;
215
240
  if (instance instanceof HTMLImageElement) return instance;
216
- const container = (instance as { containerViewRef?: { current?: unknown } }).containerViewRef
217
- ?.current;
241
+ const container =
242
+ instance instanceof HTMLElement
243
+ ? instance
244
+ : (instance as { containerViewRef?: { current?: unknown } }).containerViewRef?.current;
218
245
  if (container instanceof HTMLElement) {
219
246
  const imgs = container.querySelectorAll("img");
220
247
  return imgs.length ? imgs[imgs.length - 1]! : null;
@@ -279,10 +306,14 @@ function useWebCachedImageLoad(
279
306
  return { ref, onLoad: isWeb && onLoad ? handleLoad : onLoad };
280
307
  }
281
308
 
282
- /** Resolve a `$size`-token dimension to its numeric value, passing others through. */
309
+ /**
310
+ * Resolve a size-token dimension (`"md"`) to its raw value, passing numbers and
311
+ * CSS lengths (`"100%"`, `"auto"`) through. The raw value both sizes the frame
312
+ * and, when numeric, becomes the backend source's intrinsic width/height.
313
+ */
283
314
  const resolveDimension = (value: ImageDimension): ImageDimension =>
284
- typeof value === "string" && value[0] === "$"
285
- ? (getTokenValue(value as TokenValueInput, "size") as ImageDimension)
315
+ typeof value === "string"
316
+ ? ((resolveToken(value, "size") as ImageDimension | undefined) ?? value)
286
317
  : value;
287
318
 
288
319
  /**
@@ -346,7 +377,7 @@ type ImageContextValue = {
346
377
  *
347
378
  * You then get every expo-image prop (transition, placeholder, cachePolicy, …)
348
379
  * plus the unified API (`src`, `fit`/`objectFit`, `objectPosition`, `radius`,
349
- * `fallbackSrc`) and Tamagui styling (`w`, `h`, `bg`, `$token`s).
380
+ * `fallbackSrc`) and Tamagui styling (`w`, `h`, `bg`, token names like `"md"`).
350
381
  * <Image src="https://example.com/photo.jpg" fit="cover" transition={300} radius="md" />
351
382
  *
352
383
  * @example
@@ -399,7 +430,11 @@ export function createImage<C extends ComponentType<Record<string, unknown>>>(
399
430
  const StyledImage = styled(
400
431
  BaseComponent,
401
432
  {
402
- name: "Image",
433
+ displayName: "Image",
434
+ variants: {
435
+ // The shared elevation ladder (`shadow="md"`), as on `Box`.
436
+ shadow: shadowVariant,
437
+ } as const,
403
438
  },
404
439
  {
405
440
  inlineProps: inlinePropsSet,
@@ -414,14 +449,40 @@ export function createImage<C extends ComponentType<Record<string, unknown>>>(
414
449
  const ImageContext = React.createContext<ImageContextValue | undefined>(undefined);
415
450
 
416
451
  /**
417
- * The backing image — the engine. Resolves the unified API (`src`/`fit`/
418
- * `radius`/`fallbackSrc`/`objectPosition`) and the cross-platform load/error
419
- * events, then renders through the Tamagui-styled wrapper. When rendered under
420
- * an `Image.Root` it reads/updates the shared fallback state via context;
421
- * standalone it owns its own state via `useImageFallback`.
452
+ * The unified-API props: the engine's own surface plus an optional per-slot
453
+ * `styles` map and the legacy `fallbackProps` (both target the backing image).
454
+ */
455
+ type SugarProps = CombinedProps & {
456
+ /** Per-slot style sugar — props spread onto the matching part. */
457
+ styles?: SlotStyles<ImageStyles>;
458
+ /** Props spread onto the backing image (alias for `styles.image`). */
459
+ fallbackProps?: Partial<ImageProps>;
460
+ };
461
+
462
+ /**
463
+ * The backing image — the engine, and also the public `Image` itself (the
464
+ * sugar used to be a separate wrapper; folding it in saves one component
465
+ * layer per image, which adds up in long lists). Resolves the unified API
466
+ * (`src`/`fit`/`radius`/`fallbackSrc`/`objectPosition`) and the
467
+ * cross-platform load/error events, then renders through the Tamagui-styled
468
+ * wrapper. When rendered under an `Image.Root` it reads/updates the shared
469
+ * fallback state via context; standalone it owns its own state via
470
+ * `useImageFallback`.
422
471
  */
423
- const ImagePart = StyledImage.styleable<CombinedProps>((incomingProps, ref) => {
424
- const props = incomingProps as CombinedProps;
472
+ const ImagePart = styleable<SugarProps>(StyledImage, function Image(incomingProps, ref) {
473
+ const { styles, fallbackProps, ...direct } = incomingProps as SugarProps;
474
+ // Engine props win over the per-slot sugar (explicit beats sugar); the image
475
+ // slot and the legacy `fallbackProps` are the same target. Only allocate a
476
+ // merged object when either sugar is present.
477
+ const props = (
478
+ styles || fallbackProps
479
+ ? {
480
+ ...slotStyles<ImageStyles>(styles, IMAGE_SLOT_KEYS, "Image").get("image"),
481
+ ...fallbackProps,
482
+ ...direct,
483
+ }
484
+ : direct
485
+ ) as CombinedProps;
425
486
  const {
426
487
  src,
427
488
  source,
@@ -469,6 +530,8 @@ export function createImage<C extends ComponentType<Record<string, unknown>>>(
469
530
  const incomingStyle = Array.isArray(rest.style)
470
531
  ? Object.assign({}, ...rest.style.flat())
471
532
  : rest.style;
533
+ // `rest` is this render's own object (a destructuring rest), safe to edit.
534
+ const liftedColors = liftWebColors(rest as Record<string, unknown>);
472
535
 
473
536
  const resolvedBorderRadius = resolveRadiusValue(radius ?? borderRadius, {
474
537
  width: resolvedWidth,
@@ -503,6 +566,7 @@ export function createImage<C extends ComponentType<Record<string, unknown>>>(
503
566
  ...rest,
504
567
  source: finalSource,
505
568
  style: {
569
+ ...liftedColors,
506
570
  ...incomingStyle,
507
571
  ...(resolvedBorderRadius !== undefined && { borderRadius: resolvedBorderRadius }),
508
572
  ...(resolvedWidth !== undefined && { width: resolvedWidth }),
@@ -584,11 +648,11 @@ export function createImage<C extends ComponentType<Record<string, unknown>>>(
584
648
  };
585
649
 
586
650
  const RootFrame = styled(View, {
587
- name: "ImageRoot",
651
+ displayName: "ImageRoot",
588
652
  position: "relative",
589
653
  });
590
654
 
591
- const Root = RootFrame.styleable<RootProps>((props, ref) => {
655
+ const Root = styleable<RootProps>(RootFrame, (props, ref) => {
592
656
  // Split children out at runtime without forming `CombinedProps & {children}`
593
657
  // — that intersection overflows the checker (TS2590). The remaining props are
594
658
  // the unified image API, re-typed for the `.src`/`.source` reads below.
@@ -632,7 +696,7 @@ export function createImage<C extends ComponentType<Record<string, unknown>>>(
632
696
  * (and no usable `fallbackSrc` rendered). Layers absolutely over the image.
633
697
  */
634
698
  const FallbackFrame = styled(View, {
635
- name: "ImageFallback",
699
+ displayName: "ImageFallback",
636
700
  position: "absolute",
637
701
  top: 0,
638
702
  left: 0,
@@ -642,7 +706,7 @@ export function createImage<C extends ComponentType<Record<string, unknown>>>(
642
706
  justifyContent: "center",
643
707
  });
644
708
 
645
- const Fallback = FallbackFrame.styleable<GetProps<typeof FallbackFrame>>((props, ref) => {
709
+ const Fallback = styleable<GetProps<typeof FallbackFrame>>(FallbackFrame, (props, ref) => {
646
710
  const ctx = React.useContext(ImageContext);
647
711
  if (ctx && !ctx.errored) return null;
648
712
  return <FallbackFrame ref={ref} {...props} />;
@@ -653,7 +717,7 @@ export function createImage<C extends ComponentType<Record<string, unknown>>>(
653
717
  * displayed and has not errored. Layers absolutely over the image.
654
718
  */
655
719
  const PlaceholderFrame = styled(View, {
656
- name: "ImagePlaceholder",
720
+ displayName: "ImagePlaceholder",
657
721
  position: "absolute",
658
722
  top: 0,
659
723
  left: 0,
@@ -663,7 +727,8 @@ export function createImage<C extends ComponentType<Record<string, unknown>>>(
663
727
  justifyContent: "center",
664
728
  });
665
729
 
666
- const Placeholder = PlaceholderFrame.styleable<GetProps<typeof PlaceholderFrame>>(
730
+ const Placeholder = styleable<GetProps<typeof PlaceholderFrame>>(
731
+ PlaceholderFrame,
667
732
  (props, ref) => {
668
733
  const ctx = React.useContext(ImageContext);
669
734
  if (ctx && (ctx.loaded || ctx.errored)) return null;
@@ -676,7 +741,7 @@ export function createImage<C extends ComponentType<Record<string, unknown>>>(
676
741
  * captions). Unlike `Fallback`/`Placeholder` it does not depend on load state.
677
742
  */
678
743
  const Overlay = styled(View, {
679
- name: "ImageOverlay",
744
+ displayName: "ImageOverlay",
680
745
  position: "absolute",
681
746
  top: 0,
682
747
  left: 0,
@@ -684,36 +749,7 @@ export function createImage<C extends ComponentType<Record<string, unknown>>>(
684
749
  bottom: 0,
685
750
  });
686
751
 
687
- /**
688
- * The unified-API sugar. Thin wrapper over the engine: it accepts the classic
689
- * `<Image src=… fallbackSrc=… />` surface (rendering the backing image
690
- * directly so the host `<img>` stays the queryable/ref'd element), plus an
691
- * optional per-slot `styles` map and `fallbackProps`. For multi-layer
692
- * composition use the `Image.Root` + parts form.
693
- */
694
- type SugarProps = CombinedProps & {
695
- /** Per-slot style sugar — props spread onto the matching part. */
696
- styles?: SlotStyles<ImageStyles>;
697
- /** Props spread onto the backing image (alias for `styles.image`). */
698
- fallbackProps?: Partial<ImageProps>;
699
- };
700
-
701
- const ImageComponent = StyledImage.styleable<SugarProps>((incomingProps, ref) => {
702
- const { styles, fallbackProps, ...rest } = incomingProps as SugarProps;
703
- const s = slotStyles<ImageStyles>(styles, IMAGE_SLOT_KEYS, "Image");
704
- // Engine props win over the per-slot sugar (explicit beats sugar); the
705
- // image slot and the legacy `fallbackProps` are the same target.
706
- return (
707
- <ImagePartLoose
708
- ref={ref}
709
- {...s.get("image")}
710
- {...fallbackProps}
711
- {...(rest as CombinedProps)}
712
- />
713
- );
714
- });
715
-
716
- const ImageWithParts = withStaticProperties(ImageComponent, {
752
+ const ImageWithParts = withStaticProperties(ImagePart, {
717
753
  Root,
718
754
  Image: ImagePart,
719
755
  Fallback,
@@ -8,6 +8,8 @@ import type {
8
8
 
9
9
  import type { TamaguiElement, ViewProps } from "@knitui/core";
10
10
 
11
+ import type { ShadowKey } from "../internal/style-props";
12
+
11
13
  /** CSS `object-fit` values — identical to expo-image's `contentFit` enum. */
12
14
  export type ImageObjectFit = "contain" | "cover" | "fill" | "none" | "scale-down";
13
15
  /** CSS `object-position` value — accepts expo-image's richer `ImageContentPosition`. */
@@ -78,7 +80,7 @@ type ForwardedExpoProps = Pick<
78
80
 
79
81
  /**
80
82
  * Props for the cross-platform `Image`. Combines:
81
- * - Tamagui `ViewProps` for styling (width, height, bg, margins, `$token`s…),
83
+ * - Tamagui `ViewProps` for styling (width, height, bg, margins, token names…),
82
84
  * - the forwarded expo-image surface (`ForwardedExpoProps`),
83
85
  * - Mantine-compatible aliases (`fit`, `radius`, `fallbackSrc`, `src`),
84
86
  * - cross-platform-normalised `onLoad`/`onError` handlers.
@@ -90,6 +92,8 @@ export type ImageProps = Omit<ViewProps, "transition"> &
90
92
  * Mirrors Mantine's `radius` prop.
91
93
  */
92
94
  radius?: string | number;
95
+ /** Elevation from the shared shadow ladder (`"xs"`…`"xxl"`), as on `Box`. */
96
+ shadow?: ShadowKey;
93
97
  /**
94
98
  * How the image should be resized to fit its container. Mantine-compatible
95
99
  * alias for `contentFit`/`objectFit`.
@@ -3,7 +3,8 @@ import * as React from "react";
3
3
  import {
4
4
  DURATIONS,
5
5
  type GetProps,
6
- getTokenValue,
6
+ resolveToken,
7
+ styleable,
7
8
  styled,
8
9
  withStaticProperties,
9
10
  } from "@knitui/core";
@@ -17,9 +18,8 @@ import { Text } from "../Text";
17
18
 
18
19
  export type IndicatorSize = SizeKey;
19
20
  type IndicatorOffsetToken = "0" | IndicatorSize;
20
- type IndicatorOffset = number | IndicatorOffsetToken | `$${IndicatorOffsetToken}`;
21
+ type IndicatorOffset = number | IndicatorOffsetToken | `${IndicatorOffsetToken}`;
21
22
  type IndicatorOffsetObject = { x: IndicatorOffset; y: IndicatorOffset };
22
- type TokenValueInput = Parameters<typeof getTokenValue>[0];
23
23
 
24
24
  const DEFAULT_SIZE: IndicatorSize = "xxs";
25
25
  const SIZE_KEYS = new Set<IndicatorSize>(["xxs", "xs", "sm", "md", "lg", "xl", "xxl"]);
@@ -46,7 +46,7 @@ export type IndicatorPosition =
46
46
  /**
47
47
  * Overlays a small dot or label badge on a corner/edge of its children —
48
48
  * mirrors Mantine's `Indicator`. Accent comes from the `theme` prop + palette
49
- * ramp (`$color9` fill, `$color1` contrast text), never a Mantine `color` prop.
49
+ * ramp (`color9` fill, `color1` contrast text), never a Mantine `color` prop.
50
50
  * `position`/`offset`/`size`/`radius`/`withBorder`/`disabled`/`inline`/`label`/
51
51
  * `processing` mirror Mantine's surface. On anchored edges the dot sits at the
52
52
  * corner where it's defined and pokes out a few pixels past it (not centered on
@@ -54,7 +54,7 @@ export type IndicatorPosition =
54
54
  * works on web AND native (no web-only `%` transforms).
55
55
  */
56
56
  const IndicatorContainer = styled(Box, {
57
- name: "Indicator",
57
+ displayName: "Indicator",
58
58
  position: "relative",
59
59
  // Hug the wrapped content so the dot anchors to the child's box, not the row.
60
60
  alignSelf: "flex-start",
@@ -71,20 +71,20 @@ const IndicatorContainer = styled(Box, {
71
71
  });
72
72
 
73
73
  const IndicatorDot = styled(Box, {
74
- name: "IndicatorDot",
74
+ displayName: "IndicatorDot",
75
75
  position: "absolute",
76
76
  zIndex: 1,
77
77
  alignItems: "center",
78
78
  justifyContent: "center",
79
- backgroundColor: "$color9",
79
+ backgroundColor: "color9",
80
80
  borderRadius: 999,
81
81
  borderWidth: 0,
82
- borderColor: "$background",
82
+ borderColor: "background",
83
83
  variants: {
84
84
  radius: radiusVariant,
85
85
  /** Pad into a pill once there's a label to show. */
86
86
  withLabel: {
87
- true: { width: "auto", paddingHorizontal: "$xxs" },
87
+ true: { width: "auto", paddingHorizontal: "xxs" },
88
88
  },
89
89
  /** Ring in the page background so the dot reads against the target. */
90
90
  withBorder: {
@@ -94,9 +94,7 @@ const IndicatorDot = styled(Box, {
94
94
  disabled: {
95
95
  true: { display: "none" },
96
96
  },
97
- size: {
98
- ...squareSizeVariantFallthrough,
99
- },
97
+ size: squareSizeVariantFallthrough,
100
98
  } as const,
101
99
 
102
100
  defaultVariants: { size: DEFAULT_SIZE },
@@ -109,16 +107,16 @@ const IndicatorDot = styled(Box, {
109
107
  * on a single node clashes (`Invalid value passed to shareableViewDescriptors`).
110
108
  * `asLoopHost` makes this a reanimated host on native (identity on web); the opacity
111
109
  * composes down onto the dot, so the whole badge throbs. It stays a Tamagui `Box`
112
- * (not the raw `LoopView`) so the `$token` inset/offset values still resolve.
110
+ * (not the raw `LoopView`) so the token inset/offset values (`top="sm"`) still resolve.
113
111
  */
114
112
  const IndicatorAnchor = asLoopHost(Box);
115
113
 
116
114
  const IndicatorLabel = styled(Text, {
117
- name: "IndicatorLabel",
118
- color: "$color1",
119
- fontSize: "$xxs",
115
+ displayName: "IndicatorLabel",
116
+ color: "color1",
117
+ fontSize: "xxs",
120
118
  fontWeight: "700",
121
- lineHeight: "$xxs",
119
+ lineHeight: "xxs",
122
120
  numberOfLines: 1,
123
121
  userSelect: "none",
124
122
  });
@@ -176,16 +174,21 @@ function resolveInset(
176
174
  function resolveNumericSize(size: IndicatorSize | number | (string & {})): number | null {
177
175
  if (typeof size === "number") return size;
178
176
  if (!SIZE_KEYS.has(size as IndicatorSize)) return null;
179
- const value = getTokenValue(`$${size}` as TokenValueInput, "size");
177
+ const value = resolveToken(size, "size");
180
178
  return typeof value === "number" ? value : null;
181
179
  }
182
180
 
181
+ /**
182
+ * An offset is a px number or a bare space-token name (`"sm"`), which the inset
183
+ * style prop resolves itself. `"0"` is the zero inset, not a token.
184
+ */
183
185
  function resolveOffset(offset: IndicatorOffset): BoxProps["top"] {
184
- if (typeof offset === "number") return offset;
185
- if (offset.startsWith("$")) return offset as BoxProps["top"];
186
- return `$${offset}` as BoxProps["top"];
186
+ if (typeof offset === "number" || offset === "0") return Number(offset);
187
+ return offset;
187
188
  }
188
189
 
190
+ const LABEL_WIDTH = { width: "auto" } as const;
191
+
189
192
  function isOffsetObject(offset: IndicatorProps["offset"]): offset is IndicatorOffsetObject {
190
193
  return typeof offset === "object" && offset != null;
191
194
  }
@@ -194,8 +197,8 @@ function isOffsetObject(offset: IndicatorProps["offset"]): offset is IndicatorOf
194
197
  * Named slots for {@link IndicatorStyles} (Pillar B / `internal/styles.ts`).
195
198
  * Gives prop-API callers (who pass `label`/`size`/… rather than composing the
196
199
  * parts) a handle on the dot and label. Each key maps to the props of the styled
197
- * part it targets — `styles={{ dot: { backgroundColor: "$red9" } }}` is sugar for
198
- * `<Indicator.Dot backgroundColor="$red9" />`.
200
+ * part it targets — `styles={{ dot: { backgroundColor: "red9" } }}` is sugar for
201
+ * `<Indicator.Dot backgroundColor="red9" />`.
199
202
  */
200
203
  export interface IndicatorStyles {
201
204
  /** Props spread onto the container that wraps the children (`.Frame`). */
@@ -231,7 +234,7 @@ export interface IndicatorProps extends Omit<
231
234
  radius?: number | string;
232
235
  /** Content inside the indicator (turns the dot into a pill badge). */
233
236
  label?: React.ReactNode;
234
- /** Adds a `$background` ring so the dot separates from the target. */
237
+ /** Adds a `background` ring so the dot separates from the target. */
235
238
  withBorder?: boolean;
236
239
  /** Hide the indicator while still rendering children. */
237
240
  disabled?: boolean;
@@ -245,12 +248,12 @@ export interface IndicatorProps extends Omit<
245
248
  zIndex?: number;
246
249
  /**
247
250
  * Accepted for Mantine parity. Text already contrasts the accent fill via the
248
- * ramp (`$color1` on `$color9`), so this is effectively always on.
251
+ * ramp (`color1` on `color9`), so this is effectively always on.
249
252
  */
250
253
  autoContrast?: boolean;
251
254
  }
252
255
 
253
- const IndicatorBase = IndicatorContainer.styleable<IndicatorProps>(function Indicator(props, ref) {
256
+ const IndicatorBase = styleable<IndicatorProps>(IndicatorContainer, function Indicator(props, ref) {
254
257
  const {
255
258
  children,
256
259
  position = "top-end",
@@ -268,7 +271,7 @@ const IndicatorBase = IndicatorContainer.styleable<IndicatorProps>(function Indi
268
271
  styles,
269
272
  ...rest
270
273
  } = props;
271
- void autoContrast; // contrast comes from the ramp ($color1 on $color9).
274
+ void autoContrast; // contrast comes from the ramp (color1 on color9).
272
275
 
273
276
  // Per-slot style sugar, distributed onto the parts below.
274
277
  const s = slotStyles<IndicatorStyles>(styles, INDICATOR_SLOT_KEYS, "Indicator");
@@ -294,7 +297,12 @@ const IndicatorBase = IndicatorContainer.styleable<IndicatorProps>(function Indi
294
297
 
295
298
  const offsetX = isOffsetObject(offset) ? offset.x : offset;
296
299
  const offsetY = isOffsetObject(offset) ? offset.y : offset;
297
- const inset = resolveInset(position, size, offsetX, offsetY);
300
+ // Memoised: the inset object is handed to the anchor's style props, so a fresh
301
+ // object per render would defeat Tamagui's style caches.
302
+ const inset = React.useMemo(
303
+ () => resolveInset(position, size, offsetX, offsetY),
304
+ [position, size, offsetX, offsetY],
305
+ );
298
306
 
299
307
  const hasLabel = label != null && label !== "";
300
308
  const hideZero = !showZero && (label === 0 || label === "0");
@@ -325,7 +333,7 @@ const IndicatorBase = IndicatorContainer.styleable<IndicatorProps>(function Indi
325
333
  disabled={disabled}
326
334
  withBorder={withBorder}
327
335
  withLabel={hasLabel}
328
- radius={radius}
336
+ {...(radius !== undefined ? { radius } : null)}
329
337
  size={size}
330
338
  // Sit in the anchor's flow — the anchor owns the absolute corner
331
339
  // placement, so the dot drops its styled `position: absolute`.
@@ -333,9 +341,10 @@ const IndicatorBase = IndicatorContainer.styleable<IndicatorProps>(function Indi
333
341
  // `size` and `withLabel` both set `width`; `size` (the fixed square)
334
342
  // would otherwise win and clip a multi-character label. Force `auto`
335
343
  // when labelled so the pill grows to its text — `minWidth`/`height`
336
- // from `size` still keep a bare dot circular.
337
- width={hasLabel ? "auto" : undefined}
338
- // The one-shot scale-in entrance is a Tamagui `enterStyle` transition,
344
+ // from `size` still keep a bare dot circular. Conditional spread: an
345
+ // explicit `width={undefined}` would CLEAR the size variant's width.
346
+ {...(hasLabel ? LABEL_WIDTH : null)}
347
+ // The one-shot scale-in entrance is a v3 `enter:` clause transition,
339
348
  // safe on this node now that the reanimated loop lives on the anchor.
340
349
  {...entrance}
341
350
  >