@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,6 +1,12 @@
1
1
  import * as React from "react";
2
2
 
3
- import { type GetProps, styled, type TamaguiElement, withStaticProperties } from "@knitui/core";
3
+ import {
4
+ type GetProps,
5
+ styleable,
6
+ styled,
7
+ type TamaguiElement,
8
+ withStaticProperties,
9
+ } from "@knitui/core";
4
10
  import { useId, useKeyboardActions, useUncontrolled } from "@knitui/hooks";
5
11
 
6
12
  import { Box } from "../Box";
@@ -13,10 +19,10 @@ import {
13
19
  } from "../internal/InlineControl";
14
20
  import { useReducedTransition } from "../internal/motion";
15
21
  import {
16
- animateOnlyProps,
17
22
  FOCUS_RING,
18
23
  fontSizeVariant,
19
24
  radiusVariant,
25
+ scopeTransition,
20
26
  type SizeKey,
21
27
  transitionProps,
22
28
  webCursor,
@@ -53,42 +59,44 @@ const SwitchGroupContext = React.createContext<SwitchGroupContextValue | null>(n
53
59
  */
54
60
  /**
55
61
  * Horizontal inset between the track edge and the thumb, in px. Matches the
56
- * `$xxs` token applied as `paddingHorizontal` on the track, and is the numeric
62
+ * `xxs` space token applied as `paddingHorizontal` on the track, and is the numeric
57
63
  * value the thumb's slide distance is computed against (track width − thumb
58
64
  * width − 2× this inset).
59
65
  */
60
66
  const TRACK_PAD = 6;
61
67
 
62
68
  const trackSizeVariant = {
63
- xxs: { minWidth: 36, height: M.xxs.height, paddingHorizontal: "$xxs" },
64
- xs: { minWidth: 42, height: M.xs.height, paddingHorizontal: "$xxs" },
65
- sm: { minWidth: 56, height: M.sm.height, paddingHorizontal: "$xxs" },
66
- md: { minWidth: 70, height: M.md.height, paddingHorizontal: "$xxs" },
67
- lg: { minWidth: 84, height: M.lg.height, paddingHorizontal: "$xxs" },
68
- xl: { minWidth: 98, height: M.xl.height, paddingHorizontal: "$xxs" },
69
- xxl: { minWidth: 112, height: M.xxl.height, paddingHorizontal: "$xxs" },
69
+ xxs: { minWidth: 36, height: M.xxs.height, paddingHorizontal: "xxs" },
70
+ xs: { minWidth: 42, height: M.xs.height, paddingHorizontal: "xxs" },
71
+ sm: { minWidth: 56, height: M.sm.height, paddingHorizontal: "xxs" },
72
+ md: { minWidth: 70, height: M.md.height, paddingHorizontal: "xxs" },
73
+ lg: { minWidth: 84, height: M.lg.height, paddingHorizontal: "xxs" },
74
+ xl: { minWidth: 98, height: M.xl.height, paddingHorizontal: "xxs" },
75
+ xxl: { minWidth: 112, height: M.xxl.height, paddingHorizontal: "xxs" },
70
76
  } as const;
71
77
 
72
- // Thumb = track height − 2× the track's `$xxs` (6px) horizontal inset, so the
73
- // thumb sits flush inside the pill with an even gap on every key.
78
+ // Thumb = track height − 2× the track's `xxs` (6px) horizontal inset, so the
79
+ // thumb sits flush inside the pill with an even gap on every key. `y` centres the
80
+ // absolutely-positioned thumb (`top: 50%`) — static per key, so only the slide
81
+ // (`x`) is set per render.
74
82
  const thumbSizeVariant = {
75
- xxs: { width: 8, height: 8 },
76
- xs: { width: 12, height: 12 },
77
- sm: { width: 20, height: 20 },
78
- md: { width: 28, height: 28 },
79
- lg: { width: 36, height: 36 },
80
- xl: { width: 44, height: 44 },
81
- xxl: { width: 52, height: 52 },
83
+ xxs: { width: 8, height: 8, y: -4 },
84
+ xs: { width: 12, height: 12, y: -6 },
85
+ sm: { width: 20, height: 20, y: -10 },
86
+ md: { width: 28, height: 28, y: -14 },
87
+ lg: { width: 36, height: 36, y: -18 },
88
+ xl: { width: 44, height: 44, y: -22 },
89
+ xxl: { width: 52, height: 52, y: -26 },
82
90
  } as const;
83
91
 
84
92
  const SwitchTrack = styled(Box, {
85
- name: "SwitchTrack",
93
+ displayName: "SwitchTrack",
86
94
  position: "relative",
87
95
  flexDirection: "row",
88
96
  alignItems: "center",
89
97
  justifyContent: "flex-start",
90
98
  borderRadius: 999,
91
- backgroundColor: "$color5",
99
+ backgroundColor: "color5",
92
100
  ...webCursor("pointer"),
93
101
 
94
102
  variants: {
@@ -96,7 +104,7 @@ const SwitchTrack = styled(Box, {
96
104
  // transition (see the `Switch` body), so the track only needs to swap its
97
105
  // fill colour here — no `justifyContent` flip, which CSS can't animate.
98
106
  on: {
99
- true: { backgroundColor: "$color9" },
107
+ true: { backgroundColor: "color9" },
100
108
  false: {},
101
109
  },
102
110
  // The track is a small CONTROL: its `height` derives from the canonical
@@ -115,12 +123,18 @@ const SwitchTrack = styled(Box, {
115
123
  defaultVariants: { size: "sm", on: false },
116
124
  });
117
125
 
126
+ /**
127
+ * The knob floats above the in-flow track label and slides via a `transform`
128
+ * (`x`) transition — CSS can't animate a `justifyContent` flip.
129
+ */
118
130
  const SwitchThumb = styled(Box, {
119
- name: "SwitchThumb",
120
- position: "relative",
131
+ displayName: "SwitchThumb",
132
+ position: "absolute",
133
+ left: TRACK_PAD,
134
+ top: "50%",
121
135
  zIndex: 1,
122
136
  borderRadius: 999,
123
- backgroundColor: "$white",
137
+ backgroundColor: "white",
124
138
  alignItems: "center",
125
139
  justifyContent: "center",
126
140
 
@@ -134,25 +148,20 @@ const SwitchThumb = styled(Box, {
134
148
  /**
135
149
  * Small dot inside the thumb that echoes the track colour.
136
150
  *
137
- * RAMP NOTE: the `$colorN` steps here are MIRRORED (`13 - n`). This renders
138
- * inside `SwitchThumb`, whose name collides with an `inverse`-templated entry in
139
- * Tamagui's (deprecated) `defaultComponentThemes`; until
140
- * `core/config/themes.ts` set `componentThemes: false`, the dot resolved its ramp
141
- * from a `<scheme>_SwitchThumb` theme with `$color1…$color12` fully reversed
142
- * (`$color5` → step 8, `$color9` → step 4). Written pre-mirrored so the dot keeps
143
- * its shipped appearance. (`SwitchThumb` itself is safe: `$white` is a TOKEN, not
144
- * a theme value, so no inversion ever reached it.)
151
+ * RAMP NOTE: the `colorN` steps here are MIRRORED (`13 - n`): v2 resolved the dot
152
+ * inside an inverted `<scheme>_SwitchThumb` component theme (`color5` → step 8,
153
+ * `color9` → step 4). Written pre-mirrored so the dot keeps its shipped look now
154
+ * that component themes are gone.
145
155
  */
146
156
  const ThumbIndicator = styled(Box, {
147
- name: "SwitchThumbIndicator",
157
+ displayName: "SwitchThumbIndicator",
148
158
  width: "40%",
149
159
  height: "40%",
150
160
  borderRadius: 999,
151
- backgroundColor: "$color8",
152
- ...transitionProps("fast"),
153
- ...animateOnlyProps(["backgroundColor"]),
161
+ backgroundColor: "color8",
162
+ ...transitionProps("fast", ["backgroundColor"]),
154
163
  variants: {
155
- on: { true: { backgroundColor: "$color4" } },
164
+ on: { true: { backgroundColor: "color4" } },
156
165
  } as const,
157
166
  });
158
167
 
@@ -162,21 +171,20 @@ const ThumbIndicator = styled(Box, {
162
171
  * has no fixed width — see `SwitchTrack`).
163
172
  */
164
173
  const TrackLabel = styled(Text, {
165
- name: "SwitchTrackLabel",
174
+ displayName: "SwitchTrackLabel",
166
175
  flex: 1,
167
176
  zIndex: 0,
168
177
  textAlign: "center",
169
178
  alignItems: "center",
170
179
  justifyContent: "center",
171
180
  fontWeight: "600",
172
- color: "$color",
181
+ color: "color",
173
182
  userSelect: "none",
174
183
  numberOfLines: 1,
175
- paddingHorizontal: "$xs",
176
- ...transitionProps("fast"),
177
- ...animateOnlyProps(["color"]),
184
+ paddingHorizontal: "xs",
185
+ ...transitionProps("fast", ["color"]),
178
186
  variants: {
179
- on: { true: { color: "$color1" } },
187
+ on: { true: { color: "color1" } },
180
188
  size: {
181
189
  ...fontSizeVariant,
182
190
  },
@@ -218,14 +226,14 @@ type SwitchTrackProps = Omit<
218
226
  * the thumb, and `trackLabel` the on/off text rendered in the track.
219
227
  */
220
228
  export interface SwitchStyles extends InlineControlSlots {
221
- /** Props for the pill `SwitchTrack`. */
222
- track: Partial<GetProps<typeof SwitchTrack>>;
229
+ /** Props for the pill `SwitchTrack` (`size` / `on` stay owned by the Switch). */
230
+ track: Partial<Omit<GetProps<typeof SwitchTrack>, "size" | "on">>;
223
231
  /** Props for the sliding `SwitchThumb`. */
224
- thumb: Partial<GetProps<typeof SwitchThumb>>;
232
+ thumb: Partial<Omit<GetProps<typeof SwitchThumb>, "size">>;
225
233
  /** Props for the dot inside the thumb (`SwitchThumbIndicator`). */
226
- thumbIndicator: Partial<GetProps<typeof ThumbIndicator>>;
234
+ thumbIndicator: Partial<Omit<GetProps<typeof ThumbIndicator>, "on">>;
227
235
  /** Props for the on/off label rendered in the track (`SwitchTrackLabel`). */
228
- trackLabel: Partial<GetProps<typeof TrackLabel>>;
236
+ trackLabel: Partial<Omit<GetProps<typeof TrackLabel>, "size" | "on">>;
229
237
  }
230
238
 
231
239
  const SWITCH_SLOTS = [
@@ -284,7 +292,7 @@ export interface SwitchProps
284
292
  "aria-describedby"?: React.AriaAttributes["aria-describedby"];
285
293
  }
286
294
 
287
- const SwitchComponent = SwitchTrack.styleable<SwitchProps>(function Switch(props, ref) {
295
+ const SwitchComponent = styleable<SwitchProps>(SwitchTrack, function Switch(props, ref) {
288
296
  const {
289
297
  checked,
290
298
  defaultChecked,
@@ -305,7 +313,6 @@ const SwitchComponent = SwitchTrack.styleable<SwitchProps>(function Switch(props
305
313
  value,
306
314
  disabled,
307
315
  rootRef,
308
- role: _role,
309
316
  "aria-label": ariaLabel,
310
317
  "aria-labelledby": ariaLabelledBy,
311
318
  "aria-describedby": ariaDescribedByProp,
@@ -372,6 +379,11 @@ const SwitchComponent = SwitchTrack.styleable<SwitchProps>(function Switch(props
372
379
  // the state with `minWidth` for a correct first paint before `onLayout` fires.
373
380
  const [trackWidth, setTrackWidth] = React.useState<number>(trackSizeVariant[size].minWidth);
374
381
  const slide = Math.max(0, trackWidth - thumb.width - TRACK_PAD * 2);
382
+ const onTrackLayout = React.useCallback(
383
+ (e: { nativeEvent: { layout: { width: number } } }) =>
384
+ setTrackWidth(e.nativeEvent.layout.width),
385
+ [],
386
+ );
375
387
 
376
388
  // The label sits on the side the thumb is NOT on; pad that side by the thumb's
377
389
  // footprint so the text never slides under the thumb.
@@ -379,9 +391,9 @@ const SwitchComponent = SwitchTrack.styleable<SwitchProps>(function Switch(props
379
391
  <TrackLabel
380
392
  on={isOn}
381
393
  size={size}
382
- paddingLeft={isOn ? "$xs" : thumb.width + TRACK_PAD}
383
- paddingRight={isOn ? thumb.width + TRACK_PAD : "$xs"}
384
- {...fade}
394
+ paddingLeft={isOn ? "xs" : thumb.width + TRACK_PAD}
395
+ paddingRight={isOn ? thumb.width + TRACK_PAD : "xs"}
396
+ {...scopeTransition(fade, ["color"])}
385
397
  {...s.get("trackLabel")}
386
398
  >
387
399
  {isOn ? onLabel : offLabel}
@@ -390,18 +402,17 @@ const SwitchComponent = SwitchTrack.styleable<SwitchProps>(function Switch(props
390
402
  const thumbEl = (
391
403
  <SwitchThumb
392
404
  size={size}
393
- position="absolute"
394
- left={TRACK_PAD}
395
- top="50%"
396
- y={-thumb.height / 2}
397
405
  x={isOn ? slide : 0}
398
- {...fade}
399
- {...animateOnlyProps(["transform"])}
406
+ {...scopeTransition(fade, ["transform"])}
400
407
  {...s.get("thumb")}
401
408
  >
402
409
  {thumbIcon ??
403
410
  (withThumbIndicator && !thumbIcon ? (
404
- <ThumbIndicator on={isOn} {...fade} {...s.get("thumbIndicator")} />
411
+ <ThumbIndicator
412
+ on={isOn}
413
+ {...scopeTransition(fade, ["backgroundColor"])}
414
+ {...s.get("thumbIndicator")}
415
+ />
405
416
  ) : null)}
406
417
  </SwitchThumb>
407
418
  );
@@ -414,12 +425,11 @@ const SwitchComponent = SwitchTrack.styleable<SwitchProps>(function Switch(props
414
425
  radius={radius}
415
426
  disabled={resolvedDisabled}
416
427
  onPress={toggle}
417
- onLayout={(e) => setTrackWidth(e.nativeEvent.layout.width)}
418
- {...fade}
419
- {...animateOnlyProps(["backgroundColor"])}
428
+ onLayout={onTrackLayout}
429
+ {...scopeTransition(fade, ["backgroundColor"])}
420
430
  {...ariaProps}
421
431
  {...focusProps}
422
- focusVisibleStyle={FOCUS_RING}
432
+ {...FOCUS_RING}
423
433
  {...s.get("track")}
424
434
  {...rest}
425
435
  >
@@ -454,23 +464,27 @@ const SwitchComponent = SwitchTrack.styleable<SwitchProps>(function Switch(props
454
464
  /* -------------------------------------------------------------------------- */
455
465
 
456
466
  const GroupFrame = styled(Box, {
457
- name: "SwitchGroup",
467
+ displayName: "SwitchGroup",
458
468
  flexDirection: "column",
459
- gap: "$xs",
469
+ gap: "xs",
460
470
  });
461
471
 
462
472
  const GroupItems = styled(Box, {
463
- name: "SwitchGroupItems",
473
+ displayName: "SwitchGroupItems",
464
474
  role: "group",
465
475
  flexDirection: "row",
466
476
  flexWrap: "wrap",
467
- gap: "$md",
477
+ gap: "md",
468
478
  });
469
479
 
470
- const GroupLabel = styled(Text, { name: "SwitchGroupLabel", fontWeight: "600", color: "$color" });
480
+ const GroupLabel = styled(Text, {
481
+ displayName: "SwitchGroupLabel",
482
+ fontWeight: "600",
483
+ color: "color",
484
+ });
471
485
  const GroupDescription = styled(Text, {
472
- name: "SwitchGroupDescription",
473
- color: "$color",
486
+ displayName: "SwitchGroupDescription",
487
+ color: "color",
474
488
  opacity: 0.65,
475
489
  });
476
490
 
@@ -502,7 +516,7 @@ export interface SwitchGroupProps extends Omit<GetProps<typeof GroupFrame>, "onC
502
516
  name?: string;
503
517
  }
504
518
 
505
- const SwitchGroup = GroupFrame.styleable<SwitchGroupProps>(function SwitchGroup(props, ref) {
519
+ const SwitchGroup = styleable<SwitchGroupProps>(GroupFrame, function SwitchGroup(props, ref) {
506
520
  const {
507
521
  children,
508
522
  value,
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
 
3
- import { type GetProps, styled, withStaticProperties } from "@knitui/core";
3
+ import { type GetProps, styleable, styled, withStaticProperties } from "@knitui/core";
4
4
 
5
5
  import { Box, type BoxProps } from "../Box";
6
6
  import { shadowVariant } from "../internal/style-props";
@@ -9,6 +9,7 @@ import { Text } from "../Text";
9
9
 
10
10
  type TableSpacingToken = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
11
11
 
12
+ /** A space token (`"md"`), a raw number (px) or any CSS length string. */
12
13
  export type TableSpacing = TableSpacingToken | (string & {}) | number;
13
14
  type Striped = "odd" | "even";
14
15
 
@@ -19,25 +20,7 @@ export interface TableData {
19
20
  caption?: string;
20
21
  }
21
22
 
22
- /** `7` → `7`; `"md"` → `"$md"`; a `$`-token / CSS value passes through. */
23
- const toSpace = (val: TableSpacing): BoxProps["padding"] => {
24
- if (typeof val === "number") {
25
- return val;
26
- }
27
-
28
- switch (val) {
29
- case "xxs":
30
- case "xs":
31
- case "sm":
32
- case "md":
33
- case "lg":
34
- case "xl":
35
- case "xxl":
36
- return `$${val}` as BoxProps["padding"];
37
- default:
38
- return val as BoxProps["padding"];
39
- }
40
- };
23
+ type Padding = BoxProps["padding"];
41
24
 
42
25
  /* -------------------------------------------------------------------------- */
43
26
  /* Context */
@@ -82,51 +65,86 @@ const TableFirstCellContext = React.createContext(false);
82
65
  /* -------------------------------------------------------------------------- */
83
66
 
84
67
  const TableFrame = styled(Box, {
85
- name: "Table",
68
+ displayName: "Table",
69
+ role: "table",
86
70
  flexDirection: "column",
87
71
  width: "100%",
88
72
 
89
73
  variants: {
90
74
  shadow: shadowVariant,
91
75
  withTableBorder: {
92
- true: { borderWidth: 1, borderColor: "$borderColor", borderRadius: "$xs" },
76
+ true: { borderWidth: 1, borderColor: "borderColor", borderRadius: "xs" },
93
77
  },
94
78
  } as const,
95
79
  });
96
80
 
81
+ /**
82
+ * Pure role + layout frames: `Table.Thead` / `Table.Tfoot` / `Table.Caption`
83
+ * carry no behaviour, so they are plain `styled()` components the compiler can
84
+ * flatten to a host element at the call site.
85
+ */
97
86
  const RowGroup = styled(Box, {
98
- name: "TableRowGroup",
87
+ displayName: "TableRowGroup",
88
+ role: "rowgroup",
99
89
  flexDirection: "column",
100
90
  });
101
91
 
92
+ /**
93
+ * Row striping, hover highlight and row dividers are STATIC variants: the row
94
+ * wrapper only maps table context onto three booleans, so no per-row style
95
+ * object is allocated. `striped` fills the resting slot and `highlightOnHover`
96
+ * the `hover:` slot of the same property; v3 merges them per clause.
97
+ */
102
98
  const RowFrame = styled(Box, {
103
- name: "TableRow",
99
+ displayName: "TableRow",
100
+ role: "row",
104
101
  flexDirection: "row",
105
102
  alignItems: "stretch",
103
+ borderBottomColor: "borderColor",
104
+ borderBottomWidth: 0,
105
+
106
+ variants: {
107
+ striped: {
108
+ true: { backgroundColor: "color2" },
109
+ },
110
+ highlightOnHover: {
111
+ true: { backgroundColor: "hover:color3" },
112
+ },
113
+ withRowBorder: {
114
+ true: { borderBottomWidth: 1 },
115
+ },
116
+ } as const,
106
117
  });
107
118
 
108
119
  const CellFrame = styled(Text, {
109
- name: "TableCell",
120
+ displayName: "TableCell",
121
+ role: "cell",
110
122
  flex: 1,
111
123
  minWidth: 0,
112
- fontSize: "$sm",
113
- color: "$color12",
124
+ fontSize: "sm",
125
+ color: "color12",
114
126
 
115
127
  variants: {
116
128
  header: {
117
- true: { fontWeight: "700", color: "$color11" },
129
+ true: { fontWeight: "700", color: "color11" },
118
130
  },
119
131
  columnBorder: {
120
- true: { borderLeftWidth: 1, borderLeftColor: "$borderColor" },
132
+ true: { borderLeftWidth: 1, borderLeftColor: "borderColor" },
121
133
  },
122
134
  } as const,
123
135
  });
124
136
 
137
+ const HeaderCellFrame = styled(CellFrame, {
138
+ displayName: "TableTh",
139
+ role: "columnheader",
140
+ header: true,
141
+ });
142
+
125
143
  const CaptionFrame = styled(Text, {
126
- name: "TableCaption",
127
- fontSize: "$xs",
128
- color: "$color11",
129
- paddingVertical: "$xs",
144
+ displayName: "TableCaption",
145
+ fontSize: "xs",
146
+ color: "color11",
147
+ paddingVertical: "xs",
130
148
  });
131
149
 
132
150
  /* -------------------------------------------------------------------------- */
@@ -137,37 +155,51 @@ type CellFrameProps = Omit<GetProps<typeof CellFrame>, "columnBorder" | "header"
137
155
 
138
156
  export interface TableCellProps extends CellFrameProps {}
139
157
 
140
- function makeCell(header: boolean, role: NonNullable<BoxProps["role"]>, displayName: string) {
141
- const Cell = CellFrame.styleable<TableCellProps>(function Cell(props, ref) {
142
- const ctx = useTableContext();
143
- const isFirst = React.useContext(TableFirstCellContext);
144
- return (
145
- <CellFrame
146
- ref={ref}
147
- role={role}
148
- header={header}
149
- columnBorder={ctx.withColumnBorders && !isFirst}
150
- paddingHorizontal={toSpace(ctx.horizontalSpacing)}
151
- paddingVertical={toSpace(ctx.verticalSpacing)}
152
- {...props}
153
- />
154
- );
155
- });
156
- Cell.displayName = displayName;
157
- return Cell;
158
- }
159
-
160
158
  export type TableThProps = TableCellProps;
161
159
  export type TableTdProps = TableCellProps;
162
160
 
163
- const TableTh = makeCell(true, "columnheader", "Table.Th");
164
- const TableTd = makeCell(false, "cell", "Table.Td");
161
+ /*
162
+ * Cells stay behaviour wrappers (styleable, class B): their padding comes from
163
+ * the table's `horizontalSpacing` / `verticalSpacing` and the column divider
164
+ * from the row position, both read from context. The wrapper body is
165
+ * allocation-free — it forwards context values straight onto the frame.
166
+ */
167
+ const TableTh = styleable<TableThProps>(HeaderCellFrame, function TableTh(props, ref) {
168
+ const ctx = useTableContext();
169
+ const isFirst = React.useContext(TableFirstCellContext);
170
+ return (
171
+ <HeaderCellFrame
172
+ ref={ref}
173
+ columnBorder={ctx.withColumnBorders && !isFirst}
174
+ paddingHorizontal={ctx.horizontalSpacing as Padding}
175
+ paddingVertical={ctx.verticalSpacing as Padding}
176
+ {...props}
177
+ />
178
+ );
179
+ });
180
+
181
+ const TableTd = styleable<TableTdProps>(CellFrame, function TableTd(props, ref) {
182
+ const ctx = useTableContext();
183
+ const isFirst = React.useContext(TableFirstCellContext);
184
+ return (
185
+ <CellFrame
186
+ ref={ref}
187
+ columnBorder={ctx.withColumnBorders && !isFirst}
188
+ paddingHorizontal={ctx.horizontalSpacing as Padding}
189
+ paddingVertical={ctx.verticalSpacing as Padding}
190
+ {...props}
191
+ />
192
+ );
193
+ });
165
194
 
166
195
  /* -------------------------------------------------------------------------- */
167
196
  /* Row */
168
197
  /* -------------------------------------------------------------------------- */
169
198
 
170
- export type TableTrProps = GetProps<typeof RowFrame>;
199
+ export type TableTrProps = Omit<
200
+ GetProps<typeof RowFrame>,
201
+ "striped" | "highlightOnHover" | "withRowBorder"
202
+ >;
171
203
 
172
204
  /**
173
205
  * Wraps a row's leading cell in `TableFirstCellContext` so column dividers only
@@ -211,7 +243,7 @@ function markFirstCell(node: React.ReactNode): React.ReactNode | null {
211
243
  return node === null || node === undefined || typeof node === "boolean" ? null : node;
212
244
  }
213
245
 
214
- const TableTr = RowFrame.styleable<TableTrProps>(function TableTr(props, ref) {
246
+ const TableTr = styleable<TableTrProps>(RowFrame, function TableTr(props, ref) {
215
247
  const ctx = useTableContext();
216
248
  const rowIndex = React.useContext(TableRowIndexContext);
217
249
  const { children, ...rest } = props;
@@ -228,11 +260,9 @@ const TableTr = RowFrame.styleable<TableTrProps>(function TableTr(props, ref) {
228
260
  return (
229
261
  <RowFrame
230
262
  ref={ref}
231
- role="row"
232
- backgroundColor={isStriped ? "$color2" : undefined}
233
- borderBottomWidth={ctx.withRowBorders ? 1 : 0}
234
- borderBottomColor="$borderColor"
235
- hoverStyle={ctx.highlightOnHover ? { backgroundColor: "$color3" } : undefined}
263
+ striped={isStriped}
264
+ highlightOnHover={ctx.highlightOnHover}
265
+ withRowBorder={ctx.withRowBorders}
236
266
  {...rest}
237
267
  >
238
268
  {cells}
@@ -248,13 +278,8 @@ export type TableTheadProps = GetProps<typeof RowGroup>;
248
278
  export type TableTbodyProps = GetProps<typeof RowGroup>;
249
279
  export type TableTfootProps = GetProps<typeof RowGroup>;
250
280
 
251
- const TableThead = RowGroup.styleable<TableTheadProps>(function TableThead(props, ref) {
252
- return <RowGroup ref={ref} role="rowgroup" {...props} />;
253
- });
254
-
255
- const TableTfoot = RowGroup.styleable<TableTfootProps>(function TableTfoot(props, ref) {
256
- return <RowGroup ref={ref} role="rowgroup" {...props} />;
257
- });
281
+ const TableThead = styled(RowGroup, { displayName: "TableThead" });
282
+ const TableTfoot = styled(RowGroup, { displayName: "TableTfoot" });
258
283
 
259
284
  /** Publishes a 0-based index to each `Table.Tr` child so it can stripe itself. */
260
285
  function withRowIndices(children: React.ReactNode): React.ReactNode {
@@ -269,22 +294,20 @@ function withRowIndices(children: React.ReactNode): React.ReactNode {
269
294
  });
270
295
  }
271
296
 
272
- const TableTbody = RowGroup.styleable<TableTbodyProps>(function TableTbody(props, ref) {
297
+ const TableTbody = styleable<TableTbodyProps>(RowGroup, function TableTbody(props, ref) {
273
298
  const ctx = useTableContext();
274
299
  const { children, ...rest } = props;
275
300
  // Row indices only matter for striping — skip the walk entirely without it.
276
301
  const rows = ctx.striped === undefined ? children : withRowIndices(children);
277
302
  return (
278
- <RowGroup ref={ref} role="rowgroup" {...rest}>
303
+ <RowGroup ref={ref} {...rest}>
279
304
  {rows}
280
305
  </RowGroup>
281
306
  );
282
307
  });
283
308
 
284
309
  export type TableCaptionProps = GetProps<typeof CaptionFrame>;
285
- const TableCaption = CaptionFrame.styleable<TableCaptionProps>(function TableCaption(props, ref) {
286
- return <CaptionFrame ref={ref} {...props} />;
287
- });
310
+ const TableCaption = CaptionFrame;
288
311
 
289
312
  /* -------------------------------------------------------------------------- */
290
313
  /* Style slots */
@@ -293,7 +316,7 @@ const TableCaption = CaptionFrame.styleable<TableCaptionProps>(function TableCap
293
316
  /**
294
317
  * Named style slots (Pillar B / `internal/styles.ts`). One optional key per
295
318
  * exposed `Table.*` part; each maps to that part's props, so
296
- * `styles={{ td: { color: "$red9" } }}` is sugar for `<Table.Td color="$red9" />`.
319
+ * `styles={{ td: { color: "red9" } }}` is sugar for `<Table.Td color="red9" />`.
297
320
  *
298
321
  * In the `data`-driven render path these are distributed onto the generated
299
322
  * parts; `styles` is the LOWEST-precedence sugar, so any prop the data path
@@ -378,7 +401,7 @@ export interface TableProps extends TableFrameProps {
378
401
  styles?: SlotStyles<TableStyles>;
379
402
  }
380
403
 
381
- const TableRoot = TableFrame.styleable<TableProps>(function Table(props, ref) {
404
+ const TableRoot = styleable<TableProps>(TableFrame, function Table(props, ref) {
382
405
  const {
383
406
  data,
384
407
  children,
@@ -443,7 +466,7 @@ const TableRoot = TableFrame.styleable<TableProps>(function Table(props, ref) {
443
466
  {/* Reset row/cell position so a table nested in a cell starts clean. */}
444
467
  <TableRowIndexContext.Provider value={undefined}>
445
468
  <TableFirstCellContext.Provider value={false}>
446
- <TableFrame ref={ref} role="table" {...s.merge("table", rest)}>
469
+ <TableFrame ref={ref} {...s.merge("table", rest)}>
447
470
  {content}
448
471
  </TableFrame>
449
472
  </TableFirstCellContext.Provider>