burne-ui 1.8.7 → 1.8.8

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 (315) hide show
  1. package/dist/components/composite/Accordion/Accordion.d.ts +1 -1
  2. package/dist/components/composite/Accordion/accordionAnimations.d.ts +4 -4
  3. package/dist/components/composite/Accordion/accordionParts.d.ts +3 -5
  4. package/dist/components/composite/Accordion/accordionStyles.d.ts +4 -1
  5. package/dist/components/composite/Accordion/accordionTypes.d.ts +14 -5
  6. package/dist/components/composite/Accordion/index.d.ts +5 -4
  7. package/dist/components/composite/AlertDialog/AlertDialog.d.ts +1 -1
  8. package/dist/components/composite/AlertDialog/alertDialogContext.d.ts +6 -2
  9. package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +9 -8
  10. package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +33 -7
  11. package/dist/components/composite/AlertDialog/index.d.ts +7 -3
  12. package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +2 -1
  13. package/dist/components/composite/ButtonGroup/buttonGroupContext.d.ts +6 -2
  14. package/dist/components/composite/ButtonGroup/buttonGroupTypes.d.ts +8 -2
  15. package/dist/components/composite/ButtonGroup/index.d.ts +2 -1
  16. package/dist/components/composite/CheckboxGroup/CheckboxGroup.d.ts +5 -4
  17. package/dist/components/composite/CheckboxGroup/checkboxGroupAnimations.d.ts +13 -12
  18. package/dist/components/composite/CheckboxGroup/checkboxGroupContext.d.ts +6 -2
  19. package/dist/components/composite/CheckboxGroup/checkboxGroupParts.d.ts +16 -13
  20. package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +29 -8
  21. package/dist/components/composite/CheckboxGroup/index.d.ts +18 -18
  22. package/dist/components/composite/Form/Form.d.ts +2 -1
  23. package/dist/components/composite/Form/formContext.d.ts +6 -2
  24. package/dist/components/composite/Form/formParts.d.ts +2 -0
  25. package/dist/components/composite/Form/formTypes.d.ts +19 -2
  26. package/dist/components/composite/Form/index.d.ts +4 -1
  27. package/dist/components/composite/RadioGroup/RadioGroup.d.ts +4 -3
  28. package/dist/components/composite/RadioGroup/index.d.ts +19 -17
  29. package/dist/components/composite/RadioGroup/radioGroupAnimations.d.ts +39 -0
  30. package/dist/components/composite/RadioGroup/radioGroupContext.d.ts +11 -0
  31. package/dist/components/composite/RadioGroup/radioGroupParts.d.ts +18 -13
  32. package/dist/components/composite/RadioGroup/radioGroupTypes.d.ts +40 -5
  33. package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -1
  34. package/dist/components/composite/ToggleButtonGroup/index.d.ts +2 -1
  35. package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupContext.d.ts +6 -2
  36. package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupTypes.d.ts +8 -2
  37. package/dist/components/core/Alert/Alert.d.ts +5 -1
  38. package/dist/components/core/Alert/alertContext.d.ts +6 -2
  39. package/dist/components/core/Alert/alertTypes.d.ts +24 -2
  40. package/dist/components/core/Alert/index.d.ts +5 -1
  41. package/dist/components/core/Avatar/Avatar.d.ts +2 -1
  42. package/dist/components/core/Avatar/avatarContext.d.ts +6 -2
  43. package/dist/components/core/Avatar/avatarTypes.d.ts +8 -2
  44. package/dist/components/core/Avatar/index.d.ts +2 -1
  45. package/dist/components/core/Badge/Badge.d.ts +5 -1
  46. package/dist/components/core/Badge/badgeContext.d.ts +6 -2
  47. package/dist/components/core/Badge/badgeParts.d.ts +5 -1
  48. package/dist/components/core/Badge/badgeTypes.d.ts +43 -3
  49. package/dist/components/core/Badge/index.d.ts +10 -2
  50. package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +2 -1
  51. package/dist/components/core/Breadcrumbs/breadcrumbsAnimations.d.ts +19 -1
  52. package/dist/components/core/Breadcrumbs/breadcrumbsContext.d.ts +6 -2
  53. package/dist/components/core/Breadcrumbs/breadcrumbsParts.d.ts +3 -1
  54. package/dist/components/core/Breadcrumbs/breadcrumbsTypes.d.ts +31 -2
  55. package/dist/components/core/Breadcrumbs/index.d.ts +3 -1
  56. package/dist/components/core/Button/Button.d.ts +5 -1
  57. package/dist/components/core/Button/buttonContext.d.ts +6 -2
  58. package/dist/components/core/Button/buttonParts.d.ts +15 -7
  59. package/dist/components/core/Button/buttonTypes.d.ts +46 -7
  60. package/dist/components/core/Button/index.d.ts +17 -5
  61. package/dist/components/core/Calendar/calendarAnimations.d.ts +19 -1
  62. package/dist/components/core/Calendar/calendarContext.d.ts +6 -2
  63. package/dist/components/core/Calendar/calendarParts.d.ts +13 -5
  64. package/dist/components/core/Calendar/calendarStyles.d.ts +1 -0
  65. package/dist/components/core/Calendar/calendarTypes.d.ts +43 -6
  66. package/dist/components/core/Calendar/index.d.ts +12 -4
  67. package/dist/components/core/Card/Card.d.ts +5 -1
  68. package/dist/components/core/Card/cardContext.d.ts +6 -2
  69. package/dist/components/core/Card/cardTypes.d.ts +23 -2
  70. package/dist/components/core/Card/index.d.ts +5 -1
  71. package/dist/components/core/Checkbox/Checkbox.d.ts +2 -1
  72. package/dist/components/core/Checkbox/checkboxAnimations.d.ts +26 -4
  73. package/dist/components/core/Checkbox/checkboxContext.d.ts +12 -2
  74. package/dist/components/core/Checkbox/checkboxParts.d.ts +11 -7
  75. package/dist/components/core/Checkbox/checkboxTypes.d.ts +45 -10
  76. package/dist/components/core/Checkbox/index.d.ts +5 -2
  77. package/dist/components/core/CloseButton/CloseButton.d.ts +2 -1
  78. package/dist/components/core/CloseButton/closeButtonContext.d.ts +6 -2
  79. package/dist/components/core/CloseButton/closeButtonStyles.d.ts +1 -1
  80. package/dist/components/core/CloseButton/closeButtonTypes.d.ts +12 -3
  81. package/dist/components/core/ColorPicker/ColorPicker.d.ts +4 -4
  82. package/dist/components/core/ColorPicker/ColorSlider.d.ts +3 -1
  83. package/dist/components/core/ColorPicker/ColorSwatch.d.ts +2 -1
  84. package/dist/components/core/ColorPicker/colorPickerContext.d.ts +6 -2
  85. package/dist/components/core/ColorPicker/colorPickerParts.d.ts +10 -2
  86. package/dist/components/core/ColorPicker/colorPickerTypes.d.ts +29 -9
  87. package/dist/components/core/ColorPicker/colorSliderContext.d.ts +6 -2
  88. package/dist/components/core/ColorPicker/colorSliderTypes.d.ts +16 -2
  89. package/dist/components/core/ColorPicker/colorSwatchContext.d.ts +6 -2
  90. package/dist/components/core/ColorPicker/colorSwatchTypes.d.ts +11 -2
  91. package/dist/components/core/ColorPicker/index.d.ts +14 -3
  92. package/dist/components/core/ComboBox/ComboBox.d.ts +2 -2
  93. package/dist/components/core/ComboBox/comboBoxAnimations.d.ts +19 -1
  94. package/dist/components/core/ComboBox/comboBoxContext.d.ts +6 -2
  95. package/dist/components/core/ComboBox/comboBoxFieldParts.d.ts +12 -14
  96. package/dist/components/core/ComboBox/comboBoxParts.d.ts +4 -1
  97. package/dist/components/core/ComboBox/comboBoxTypes.d.ts +27 -3
  98. package/dist/components/core/ComboBox/index.d.ts +15 -5
  99. package/dist/components/core/Dialog/Dialog.d.ts +1 -1
  100. package/dist/components/core/Dialog/dialogContext.d.ts +6 -2
  101. package/dist/components/core/Dialog/dialogParts.d.ts +10 -5
  102. package/dist/components/core/Dialog/dialogTypes.d.ts +33 -7
  103. package/dist/components/core/Dialog/index.d.ts +8 -3
  104. package/dist/components/core/Disclosure/Disclosure.d.ts +2 -1
  105. package/dist/components/core/Disclosure/disclosureContext.d.ts +6 -2
  106. package/dist/components/core/Disclosure/disclosureParts.d.ts +1 -1
  107. package/dist/components/core/Disclosure/disclosureTypes.d.ts +25 -7
  108. package/dist/components/core/Disclosure/index.d.ts +2 -1
  109. package/dist/components/core/Drawer/Drawer.d.ts +1 -1
  110. package/dist/components/core/Drawer/drawerContext.d.ts +6 -2
  111. package/dist/components/core/Drawer/drawerParts.d.ts +10 -5
  112. package/dist/components/core/Drawer/drawerTypes.d.ts +33 -7
  113. package/dist/components/core/Drawer/index.d.ts +8 -3
  114. package/dist/components/core/Dropdown/Dropdown.d.ts +1 -1
  115. package/dist/components/core/Dropdown/dropdownAnimations.d.ts +30 -8
  116. package/dist/components/core/Dropdown/dropdownContext.d.ts +6 -2
  117. package/dist/components/core/Dropdown/dropdownItemParts.d.ts +4 -3
  118. package/dist/components/core/Dropdown/dropdownParts.d.ts +8 -4
  119. package/dist/components/core/Dropdown/dropdownSubParts.d.ts +2 -0
  120. package/dist/components/core/Dropdown/dropdownTypes.d.ts +56 -12
  121. package/dist/components/core/Dropdown/index.d.ts +9 -2
  122. package/dist/components/core/Expandable/Expandable.d.ts +2 -1
  123. package/dist/components/core/Expandable/expandableContext.d.ts +6 -2
  124. package/dist/components/core/Expandable/expandableParts.d.ts +3 -3
  125. package/dist/components/core/Expandable/expandableTypes.d.ts +24 -6
  126. package/dist/components/core/Expandable/index.d.ts +2 -1
  127. package/dist/components/core/Field/Field.d.ts +2 -1
  128. package/dist/components/core/Field/fieldAnimations.d.ts +17 -17
  129. package/dist/components/core/Field/fieldContext.d.ts +12 -4
  130. package/dist/components/core/Field/fieldParts.d.ts +8 -9
  131. package/dist/components/core/Field/fieldTypes.d.ts +22 -6
  132. package/dist/components/core/Field/index.d.ts +7 -4
  133. package/dist/components/core/Input/Input.d.ts +2 -2
  134. package/dist/components/core/Input/index.d.ts +15 -5
  135. package/dist/components/core/Input/inputAnimations.d.ts +20 -2
  136. package/dist/components/core/Input/inputContext.d.ts +6 -2
  137. package/dist/components/core/Input/inputControlParts.d.ts +1 -0
  138. package/dist/components/core/Input/inputFieldParts.d.ts +12 -14
  139. package/dist/components/core/Input/inputTypes.d.ts +28 -3
  140. package/dist/components/core/Kbd/Kbd.d.ts +2 -1
  141. package/dist/components/core/Kbd/index.d.ts +10 -3
  142. package/dist/components/core/Kbd/kbdAnimations.d.ts +19 -3
  143. package/dist/components/core/Kbd/kbdContext.d.ts +6 -2
  144. package/dist/components/core/Kbd/kbdParts.d.ts +8 -5
  145. package/dist/components/core/Kbd/kbdTypes.d.ts +21 -3
  146. package/dist/components/core/Label/Label.d.ts +12 -2
  147. package/dist/components/core/Label/index.d.ts +1 -2
  148. package/dist/components/core/Label/labelContext.d.ts +6 -2
  149. package/dist/components/core/Label/labelTypes.d.ts +8 -2
  150. package/dist/components/core/Link/Link.d.ts +1 -1
  151. package/dist/components/core/Link/linkContext.d.ts +6 -2
  152. package/dist/components/core/Link/linkTypes.d.ts +26 -3
  153. package/dist/components/core/ListBox/ListBox.d.ts +1 -1
  154. package/dist/components/core/ListBox/index.d.ts +1 -0
  155. package/dist/components/core/ListBox/listBoxAnimations.d.ts +20 -2
  156. package/dist/components/core/ListBox/listBoxContext.d.ts +6 -2
  157. package/dist/components/core/ListBox/listBoxParts.d.ts +8 -7
  158. package/dist/components/core/ListBox/listBoxTypes.d.ts +38 -6
  159. package/dist/components/core/Loading/Loading.d.ts +2 -1
  160. package/dist/components/core/Loading/loadingContext.d.ts +6 -2
  161. package/dist/components/core/Loading/loadingTypes.d.ts +8 -2
  162. package/dist/components/core/Meter/Meter.d.ts +2 -2
  163. package/dist/components/core/Meter/index.d.ts +14 -5
  164. package/dist/components/core/Meter/meterAnimations.d.ts +30 -4
  165. package/dist/components/core/Meter/meterContext.d.ts +7 -3
  166. package/dist/components/core/Meter/meterParts.d.ts +13 -14
  167. package/dist/components/core/Meter/meterStyles.d.ts +1 -6
  168. package/dist/components/core/Meter/meterTypes.d.ts +36 -12
  169. package/dist/components/core/Meter/useMeterTrackState.d.ts +0 -2
  170. package/dist/components/core/Pagination/Pagination.d.ts +3 -2
  171. package/dist/components/core/Pagination/index.d.ts +18 -6
  172. package/dist/components/core/Pagination/paginationAnimations.d.ts +29 -2
  173. package/dist/components/core/Pagination/paginationContext.d.ts +6 -2
  174. package/dist/components/core/Pagination/paginationParts.d.ts +17 -6
  175. package/dist/components/core/Pagination/paginationTypes.d.ts +43 -5
  176. package/dist/components/core/Popover/Popover.d.ts +1 -1
  177. package/dist/components/core/Popover/index.d.ts +9 -3
  178. package/dist/components/core/Popover/popoverContext.d.ts +6 -2
  179. package/dist/components/core/Popover/popoverParts.d.ts +9 -4
  180. package/dist/components/core/Popover/popoverTypes.d.ts +41 -9
  181. package/dist/components/core/ProgressBar/ProgressBar.d.ts +2 -2
  182. package/dist/components/core/ProgressBar/index.d.ts +14 -5
  183. package/dist/components/core/ProgressBar/progressBarAnimations.d.ts +32 -4
  184. package/dist/components/core/ProgressBar/progressBarContext.d.ts +7 -3
  185. package/dist/components/core/ProgressBar/progressBarParts.d.ts +13 -14
  186. package/dist/components/core/ProgressBar/progressBarTypes.d.ts +35 -12
  187. package/dist/components/core/Radio/Radio.d.ts +2 -1
  188. package/dist/components/core/Radio/index.d.ts +5 -2
  189. package/dist/components/core/Radio/radioAnimations.d.ts +26 -4
  190. package/dist/components/core/Radio/radioContext.d.ts +12 -2
  191. package/dist/components/core/Radio/radioParts.d.ts +11 -7
  192. package/dist/components/core/Radio/radioTypes.d.ts +45 -10
  193. package/dist/components/core/SearchInput/searchInputContext.d.ts +6 -2
  194. package/dist/components/core/Select/Select.d.ts +2 -2
  195. package/dist/components/core/Select/index.d.ts +15 -5
  196. package/dist/components/core/Select/selectAnimations.d.ts +19 -1
  197. package/dist/components/core/Select/selectContext.d.ts +6 -2
  198. package/dist/components/core/Select/selectFieldParts.d.ts +12 -14
  199. package/dist/components/core/Select/selectParts.d.ts +3 -1
  200. package/dist/components/core/Select/selectTriggerParts.d.ts +1 -0
  201. package/dist/components/core/Select/selectTypes.d.ts +27 -3
  202. package/dist/components/core/SelectionIndicator/SelectionIndicator.d.ts +1 -1
  203. package/dist/components/core/SelectionIndicator/selectionIndicatorContext.d.ts +6 -2
  204. package/dist/components/core/SelectionIndicator/selectionIndicatorTypes.d.ts +12 -2
  205. package/dist/components/core/SelectionThumb/SelectionThumb.d.ts +1 -1
  206. package/dist/components/core/SelectionThumb/selectionThumbContext.d.ts +6 -2
  207. package/dist/components/core/SelectionThumb/selectionThumbTypes.d.ts +9 -2
  208. package/dist/components/core/Separator/Separator.d.ts +2 -1
  209. package/dist/components/core/Separator/separatorContext.d.ts +6 -2
  210. package/dist/components/core/Separator/separatorTypes.d.ts +8 -2
  211. package/dist/components/core/Skeleton/Skeleton.d.ts +2 -1
  212. package/dist/components/core/Skeleton/index.d.ts +10 -5
  213. package/dist/components/core/Skeleton/skeletonContext.d.ts +6 -2
  214. package/dist/components/core/Skeleton/skeletonParts.d.ts +9 -4
  215. package/dist/components/core/Skeleton/skeletonTypes.d.ts +33 -6
  216. package/dist/components/core/Slider/Slider.d.ts +2 -2
  217. package/dist/components/core/Slider/index.d.ts +13 -5
  218. package/dist/components/core/Slider/sliderAnimations.d.ts +20 -1
  219. package/dist/components/core/Slider/sliderContext.d.ts +6 -2
  220. package/dist/components/core/Slider/sliderParts.d.ts +13 -15
  221. package/dist/components/core/Slider/sliderScaleField.d.ts +4 -6
  222. package/dist/components/core/Slider/sliderThumbParts.d.ts +1 -1
  223. package/dist/components/core/Slider/sliderTypes.d.ts +27 -5
  224. package/dist/components/core/Slider/useSliderTrackState.d.ts +28 -28
  225. package/dist/components/core/Surface/Surface.d.ts +2 -1
  226. package/dist/components/core/Surface/surfaceContext.d.ts +6 -2
  227. package/dist/components/core/Surface/surfaceTypes.d.ts +8 -2
  228. package/dist/components/core/Switch/Switch.d.ts +2 -1
  229. package/dist/components/core/Switch/index.d.ts +3 -1
  230. package/dist/components/core/Switch/switchAnimations.d.ts +12 -1
  231. package/dist/components/core/Switch/switchContext.d.ts +6 -2
  232. package/dist/components/core/Switch/switchControlParts.d.ts +1 -0
  233. package/dist/components/core/Switch/switchFieldParts.d.ts +3 -3
  234. package/dist/components/core/Switch/switchTrackParts.d.ts +1 -1
  235. package/dist/components/core/Switch/switchTypes.d.ts +50 -7
  236. package/dist/components/core/Switch/useSwitchRootState.d.ts +17 -17
  237. package/dist/components/core/Table/Table.d.ts +5 -4
  238. package/dist/components/core/Table/index.d.ts +14 -4
  239. package/dist/components/core/Table/tableAPI.d.ts +3 -1
  240. package/dist/components/core/Table/tableAnimations.d.ts +3 -3
  241. package/dist/components/core/Table/tableContext.d.ts +6 -2
  242. package/dist/components/core/Table/tableParts.d.ts +12 -3
  243. package/dist/components/core/Table/tableTypes.d.ts +30 -8
  244. package/dist/components/core/Tabs/Tabs.d.ts +2 -1
  245. package/dist/components/core/Tabs/index.d.ts +4 -1
  246. package/dist/components/core/Tabs/tabsAnimations.d.ts +3 -2
  247. package/dist/components/core/Tabs/tabsContext.d.ts +6 -2
  248. package/dist/components/core/Tabs/tabsPanelPart.d.ts +1 -0
  249. package/dist/components/core/Tabs/tabsTabPart.d.ts +1 -0
  250. package/dist/components/core/Tabs/tabsTypes.d.ts +19 -2
  251. package/dist/components/core/Text/Text.d.ts +2 -1
  252. package/dist/components/core/Text/textContext.d.ts +6 -2
  253. package/dist/components/core/Text/textTypes.d.ts +8 -2
  254. package/dist/components/core/TextArea/TextArea.d.ts +2 -2
  255. package/dist/components/core/TextArea/index.d.ts +15 -5
  256. package/dist/components/core/TextArea/textAreaAnimations.d.ts +19 -1
  257. package/dist/components/core/TextArea/textAreaContext.d.ts +6 -2
  258. package/dist/components/core/TextArea/textAreaParts.d.ts +14 -14
  259. package/dist/components/core/TextArea/textAreaTypes.d.ts +29 -3
  260. package/dist/components/core/TimeField/TimeField.d.ts +2 -2
  261. package/dist/components/core/TimeField/index.d.ts +14 -5
  262. package/dist/components/core/TimeField/timeFieldAnimations.d.ts +20 -2
  263. package/dist/components/core/TimeField/timeFieldContext.d.ts +6 -2
  264. package/dist/components/core/TimeField/timeFieldParts.d.ts +13 -14
  265. package/dist/components/core/TimeField/timeFieldTypes.d.ts +28 -4
  266. package/dist/components/core/Toast/Toast.d.ts +2 -1
  267. package/dist/components/core/Toast/index.d.ts +2 -1
  268. package/dist/components/core/Toast/toastAnimations.d.ts +2 -1
  269. package/dist/components/core/Toast/toastContext.d.ts +6 -2
  270. package/dist/components/core/Toast/toastTypes.d.ts +26 -9
  271. package/dist/components/core/ToggleButton/ToggleButton.d.ts +2 -1
  272. package/dist/components/core/ToggleButton/index.d.ts +2 -1
  273. package/dist/components/core/ToggleButton/toggleButtonContext.d.ts +6 -2
  274. package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +8 -2
  275. package/dist/components/core/Tooltip/Tooltip.d.ts +1 -1
  276. package/dist/components/core/Tooltip/index.d.ts +3 -2
  277. package/dist/components/core/Tooltip/tooltipAnimations.d.ts +1 -0
  278. package/dist/components/core/Tooltip/tooltipContext.d.ts +6 -2
  279. package/dist/components/core/Tooltip/tooltipParts.d.ts +7 -6
  280. package/dist/components/core/Tooltip/tooltipTypes.d.ts +34 -7
  281. package/dist/components/core/Tooltip/useTooltipRootState.d.ts +2 -2
  282. package/dist/components/core/utils/motionConfig.d.ts +4 -4
  283. package/dist/components/core/utils/optionListItemParts.d.ts +4 -2
  284. package/dist/components/core/utils/overlayTriggerSqueeze.d.ts +39 -0
  285. package/dist/components/core/utils/slotMotion/createMotionScope.d.ts +18 -4
  286. package/dist/components/core/utils/slotMotion/enterHidesFirstPaint.d.ts +3 -7
  287. package/dist/components/core/utils/slotMotion/index.d.ts +7 -2
  288. package/dist/components/core/utils/slotMotion/kitMotionRecipeMeta.d.ts +8 -0
  289. package/dist/components/core/utils/slotMotion/motionController.d.ts +20 -0
  290. package/dist/components/core/utils/slotMotion/motionController.test.d.ts +1 -0
  291. package/dist/components/core/utils/slotMotion/motionControllerApi.test.d.ts +1 -0
  292. package/dist/components/core/utils/slotMotion/motionControllerTypes.d.ts +49 -0
  293. package/dist/components/core/utils/slotMotion/motionEvents.d.ts +67 -0
  294. package/dist/components/core/utils/slotMotion/motionEvents.test.d.ts +1 -0
  295. package/dist/components/core/utils/slotMotion/motionRecipeRegistry.d.ts +6 -2
  296. package/dist/components/core/utils/slotMotion/motionTween.d.ts +49 -0
  297. package/dist/components/core/utils/slotMotion/motionTween.test.d.ts +1 -0
  298. package/dist/components/core/utils/slotMotion/playMotionState.d.ts +29 -0
  299. package/dist/components/core/utils/slotMotion/playMotionState.test.d.ts +1 -0
  300. package/dist/components/core/utils/slotMotion/recipes/collapsibleHeight.d.ts +1 -1
  301. package/dist/components/core/utils/slotMotion/recipes/progressFill.d.ts +9 -0
  302. package/dist/components/core/utils/slotMotion/recipes/progressFill.test.d.ts +1 -0
  303. package/dist/components/core/utils/slotMotion/runMotionPhase.d.ts +5 -2
  304. package/dist/components/core/utils/slotMotion/slotMotionTypes.d.ts +115 -9
  305. package/dist/components/core/utils/slotMotion/useBarFillMotion.d.ts +21 -0
  306. package/dist/components/core/utils/slotMotion/useMotionPart.d.ts +5 -5
  307. package/dist/components/core/utils/useCollapsibleHeight.d.ts +9 -1
  308. package/dist/components/core/utils/useContainerPointerHoverHandlers.d.ts +5 -1
  309. package/dist/index.cjs +1 -1
  310. package/dist/index.d.ts +31 -31
  311. package/dist/index.js +20166 -16841
  312. package/dist/internal.js +1 -1
  313. package/dist/{themeRuntimeContext-B1dAP9WW.js → themeRuntimeContext-DCicI7AC.js} +48 -48
  314. package/dist/ui.css +43 -0
  315. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
2
2
  import { Prettify } from '../../../utils/prettify';
3
- import { MotionValue } from '../utils/slotMotion';
3
+ import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
4
4
  export type CalendarLocale = {
5
5
  /** 7 items: Mon → Sun */
6
6
  weekDays: string[];
@@ -65,11 +65,22 @@ export type CalendarPartMotion = {
65
65
  hoverOut?: MotionValue;
66
66
  pressIn?: MotionValue;
67
67
  pressOut?: MotionValue;
68
+ enter?: MotionValue;
69
+ leave?: MotionValue;
68
70
  };
69
71
  export type CalendarMotion = {
70
72
  navPrev?: CalendarPartMotion;
71
73
  navNext?: CalendarPartMotion;
74
+ navPrevIcon?: CalendarPartMotion;
75
+ navNextIcon?: CalendarPartMotion;
76
+ header?: CalendarPartMotion;
77
+ headerTitle?: CalendarPartMotion;
78
+ grid?: CalendarPartMotion;
72
79
  cell?: CalendarPartMotion;
80
+ cellText?: CalendarPartMotion;
81
+ footer?: CalendarPartMotion;
82
+ footerToday?: CalendarPartMotion;
83
+ footerClear?: CalendarPartMotion;
73
84
  };
74
85
  type CalendarCommonProps = HTMLAttributes<HTMLDivElement> & {
75
86
  variant?: CalendarVariant;
@@ -89,7 +100,19 @@ type CalendarCommonProps = HTMLAttributes<HTMLDivElement> & {
89
100
  */
90
101
  renderDay?: CalendarRenderDay;
91
102
  classNames?: Prettify<CalendarClassNames>;
92
- motion?: Prettify<CalendarMotion>;
103
+ /**
104
+ * Per-slot motion (`navPrev`, `header`, `grid`, `footer`, `cell` …).
105
+ * `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
106
+ * There is no `root` slot — `play()` skips; use `playSlot("header")` / `playAll`.
107
+ */
108
+ motion?: Prettify<MotionMapWithEvents<CalendarMotion>>;
109
+ /**
110
+ * Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
111
+ * One handle → this calendar chrome scope (`header` / `navPrev` / `grid` / `footer` …).
112
+ * Nested day/month/year cells are separate scopes — pass a handle on `Calendar.Day`.
113
+ * Not placed on the DOM.
114
+ */
115
+ motionController?: MotionController;
93
116
  };
94
117
  export type CalendarProps = (CalendarCommonProps & {
95
118
  mode?: "single";
@@ -107,11 +130,19 @@ export type CalendarProps = (CalendarCommonProps & {
107
130
  defaultValue?: Date[];
108
131
  onValueChange?: (dates: Date[]) => void;
109
132
  });
110
- export type CalendarHeaderProps = HTMLAttributes<HTMLDivElement>;
111
- export type CalendarGridProps = HTMLAttributes<HTMLDivElement>;
112
- export type CalendarFooterProps = HTMLAttributes<HTMLDivElement>;
133
+ export type CalendarHeaderProps = HTMLAttributes<HTMLDivElement> & {
134
+ motion?: Prettify<CalendarPartMotion>;
135
+ };
136
+ export type CalendarGridProps = HTMLAttributes<HTMLDivElement> & {
137
+ motion?: Prettify<CalendarPartMotion>;
138
+ };
139
+ export type CalendarFooterProps = HTMLAttributes<HTMLDivElement> & {
140
+ motion?: Prettify<CalendarPartMotion>;
141
+ };
113
142
  /** Header month/year drill-up control. `children` replace the default formatted title. */
114
- export type CalendarTitleProps = ButtonHTMLAttributes<HTMLButtonElement>;
143
+ export type CalendarTitleProps = ButtonHTMLAttributes<HTMLButtonElement> & {
144
+ motion?: Prettify<CalendarPartMotion>;
145
+ };
115
146
  export type CalendarContextValue = {
116
147
  mode: CalendarMode;
117
148
  view: CalendarView;
@@ -186,6 +217,12 @@ export type CalendarInteractiveCellProps = {
186
217
  onMouseEnter?: () => void;
187
218
  onMouseLeave?: () => void;
188
219
  children: ReactNode;
220
+ motion?: Prettify<CalendarPartMotion>;
221
+ /**
222
+ * Handle for this cell's nested scope. `play()` looks for `root` (skip) —
223
+ * use `playSlot("cell")`. `cellText` lives here.
224
+ */
225
+ motionController?: MotionController;
189
226
  };
190
227
  /** Public `Calendar.Day` — size defaults from Calendar context. */
191
228
  export type CalendarDayProps = Omit<CalendarInteractiveCellProps, "size"> & {
@@ -1,7 +1,13 @@
1
1
  export declare const Calendar: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarProps & import('react').RefAttributes<HTMLDivElement>> & {
2
- Header: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
3
- Grid: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarGridProps & import('react').RefAttributes<HTMLDivElement>>;
4
- Footer: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarFooterProps & import('react').RefAttributes<HTMLDivElement>>;
2
+ Header: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
3
+ motion?: import('../../..').Prettify<import('./calendarTypes').CalendarPartMotion>;
4
+ } & import('react').RefAttributes<HTMLDivElement>>;
5
+ Grid: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
6
+ motion?: import('../../..').Prettify<import('./calendarTypes').CalendarPartMotion>;
7
+ } & import('react').RefAttributes<HTMLDivElement>>;
8
+ Footer: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
9
+ motion?: import('../../..').Prettify<import('./calendarTypes').CalendarPartMotion>;
10
+ } & import('react').RefAttributes<HTMLDivElement>>;
5
11
  NavPrev: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarNavButtonProps, "size" | "direction" | "onClick"> & {
6
12
  size?: import('./calendarTypes').CalendarSize;
7
13
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
@@ -10,7 +16,9 @@ export declare const Calendar: import('react').ForwardRefExoticComponent<import(
10
16
  size?: import('./calendarTypes').CalendarSize;
11
17
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
12
18
  } & import('react').RefAttributes<HTMLButtonElement>>;
13
- Title: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarTitleProps & import('react').RefAttributes<HTMLButtonElement>>;
19
+ Title: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
20
+ motion?: import('../../..').Prettify<import('./calendarTypes').CalendarPartMotion>;
21
+ } & import('react').RefAttributes<HTMLButtonElement>>;
14
22
  Day: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarInteractiveCellProps, "size"> & {
15
23
  size?: import('./calendarTypes').CalendarSize;
16
24
  } & import('react').RefAttributes<HTMLButtonElement>>;
@@ -11,6 +11,10 @@ export declare const CardRoot: import('react').ForwardRefExoticComponent<Omit<HT
11
11
  onClick?: HTMLAttributes<HTMLElement>["onClick"];
12
12
  onKeyDown?: HTMLAttributes<HTMLElement>["onKeyDown"];
13
13
  classNames?: import('../../..').Prettify<import('./cardTypes').CardClassNames>;
14
- motion?: import('../../..').Prettify<CardMotion>;
14
+ motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<CardMotion>>;
15
+ motionController?: import('../utils/slotMotion').MotionController;
16
+ motionState?: string;
17
+ motionPayload?: unknown;
18
+ playInitialState?: boolean;
15
19
  } & import('react').RefAttributes<HTMLElement>>;
16
20
  export { CardHeader, CardHeadingBlock, CardBody, CardTitle, CardDescription, CardFooter, };
@@ -1,10 +1,14 @@
1
1
  import { CardSize } from './cardStyles';
2
2
  import { CardClassNames, CardProviderProps } from './cardTypes';
3
3
  /** Scope only. Defaults and host play live in `cardAnimations.ts`. */
4
- export declare const CardMotionProvider: ({ motion, defaults, params, children, }: {
5
- motion?: import('../utils/slotMotion').MotionSlotMap;
4
+ export declare const CardMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
5
+ motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
6
6
  defaults?: import('../utils/slotMotion').MotionSlotMap;
7
7
  params?: import('../utils/slotMotion').MotionRecipeParams;
8
+ controller?: import('../utils/slotMotion').MotionController;
9
+ motionState?: string;
10
+ motionPayload?: unknown;
11
+ playInitialState?: boolean;
8
12
  children: import('react').ReactNode;
9
13
  }) => import("react/jsx-runtime").JSX.Element, useCardMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalCardMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
10
14
  export type CardContextValue = {
@@ -1,7 +1,7 @@
1
1
  import { HTMLAttributes, KeyboardEvent, MouseEvent, ReactNode } from 'react';
2
2
  import { Prettify } from '../../../utils/prettify';
3
3
  import { ShadowLevel } from '../../../tokens/shadows';
4
- import { MotionValue } from '../utils/slotMotion';
4
+ import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
5
5
  import { CardSize } from './cardStyles';
6
6
  export type { CardSize } from './cardStyles';
7
7
  export type CardVariant = "default" | "outline" | "secondary" | "gloss";
@@ -58,8 +58,29 @@ export type CardProps = Omit<HTMLAttributes<HTMLElement>, "onClick" | "onKeyDown
58
58
  /**
59
59
  * Per-slot motion (`root`, `title`, `description`, `header`, `headingBlock`, `body`, `footer`).
60
60
  * Pressable defaults: second-level hover lift + squeeze (gloss recipes when gloss).
61
+ * `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
62
+ * `states` — app modes for `motionState` (not a DOM slot, not a phase).
61
63
  */
62
- motion?: Prettify<CardMotion>;
64
+ motion?: Prettify<MotionMapWithEvents<CardMotion>>;
65
+ /**
66
+ * Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
67
+ * Forwarded to the motion Provider (`controller`), not onto the DOM.
68
+ */
69
+ motionController?: MotionController;
70
+ /**
71
+ * App mode (`idle` / `paying` / `paid`). Same value again does not replay.
72
+ * Pair with `motion.states`. Not a `MotionPhaseName`. Not on the DOM.
73
+ */
74
+ motionState?: string;
75
+ /**
76
+ * Opaque snapshot for the transition factory (`ctx.payload`).
77
+ * Updating this without changing `motionState` does not replay.
78
+ */
79
+ motionPayload?: unknown;
80
+ /**
81
+ * Play `motion.states[motionState]` on mount. Default skip so first paint stays CSS rest.
82
+ */
83
+ playInitialState?: boolean;
63
84
  };
64
85
  export type CardHeaderProps = HTMLAttributes<HTMLDivElement> & {
65
86
  motion?: Prettify<CardPartMotion>;
@@ -8,7 +8,11 @@ export declare const Card: import('react').ForwardRefExoticComponent<Omit<import
8
8
  onClick?: import('react').HTMLAttributes<HTMLElement>["onClick"];
9
9
  onKeyDown?: import('react').HTMLAttributes<HTMLElement>["onKeyDown"];
10
10
  classNames?: import('../../..').Prettify<import('./cardTypes').CardClassNames>;
11
- motion?: import('../../..').Prettify<import('./cardTypes').CardMotion>;
11
+ motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./cardTypes').CardMotion>>;
12
+ motionController?: import('../utils/slotMotion').MotionController;
13
+ motionState?: string;
14
+ motionPayload?: unknown;
15
+ playInitialState?: boolean;
12
16
  } & import('react').RefAttributes<HTMLElement>> & {
13
17
  Header: typeof CardHeader;
14
18
  HeadingBlock: typeof CardHeadingBlock;
@@ -11,7 +11,8 @@ export declare const CheckboxRoot: import('react').ForwardRefExoticComponent<Omi
11
11
  icon?: import('react').ReactNode;
12
12
  className?: string;
13
13
  classNames?: import('../../..').Prettify<import('./checkboxTypes').CheckboxClassNames>;
14
- motion?: import('../../..').Prettify<import('./checkboxTypes').CheckboxMotion>;
14
+ motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./checkboxTypes').CheckboxMotion>>;
15
+ motionController?: import('../utils/slotMotion').MotionController;
15
16
  onPointerDown?: (e: import('react').PointerEvent<HTMLElement>) => void;
16
17
  } & import('react').RefAttributes<HTMLLabelElement>>;
17
18
  export { CheckboxControl, CheckboxIndicator, CheckboxContent, CheckboxLabel, CheckboxHint, CheckboxError, };
@@ -1,5 +1,6 @@
1
+ import { MotionMapWithEvents } from '../utils/slotMotion';
1
2
  import { SelectionIndicatorMotion } from '../SelectionIndicator';
2
- import { CheckboxMotion, UseCheckboxAnimationsProps } from './checkboxTypes';
3
+ import { CheckboxCheckMotion, CheckboxMotion, UseCheckboxAnimationsProps } from './checkboxTypes';
3
4
  /** Root Checkbox `motion` keys → SelectionIndicator slots. */
4
5
  export declare const CHECKBOX_MOTION_SLOT_MAP: {
5
6
  readonly indicator: "root";
@@ -7,9 +8,9 @@ export declare const CHECKBOX_MOTION_SLOT_MAP: {
7
8
  readonly indicatorMark: "mark";
8
9
  };
9
10
  export declare function resolveCheckboxIndicatorMotion({ rootMotion, indicatorMotion, }: {
10
- rootMotion?: CheckboxMotion;
11
- indicatorMotion?: SelectionIndicatorMotion;
12
- }): SelectionIndicatorMotion | undefined;
11
+ rootMotion?: MotionMapWithEvents<CheckboxMotion>;
12
+ indicatorMotion?: MotionMapWithEvents<SelectionIndicatorMotion>;
13
+ }): MotionMapWithEvents<SelectionIndicatorMotion> | undefined;
13
14
  export declare function useCheckboxControlTrackAnimation(): import('react').RefObject<HTMLSpanElement | null>;
14
15
  export declare function useCheckboxTextMotion({ isDisabled, enableTextMotion, textMotionRef, onPointerDown, onKeyDown, }: UseCheckboxAnimationsProps): {
15
16
  handlePointerEnter: (e: import('react').PointerEvent<HTMLElement>) => void;
@@ -17,3 +18,24 @@ export declare function useCheckboxTextMotion({ isDisabled, enableTextMotion, te
17
18
  handlePointerDown: (e: import('react').PointerEvent<HTMLElement>) => void;
18
19
  handleKeyDown: (e: import('react').KeyboardEvent<HTMLElement>) => void;
19
20
  };
21
+ export type CheckboxChromeSlot = "label" | "hint" | "error";
22
+ export declare function useCheckboxChromeSlot(slot: CheckboxChromeSlot, motion?: CheckboxCheckMotion): {
23
+ setRef: (node: HTMLElement | null) => void;
24
+ targetRef: import('react').RefObject<HTMLElement | null>;
25
+ pointerHandlers: {
26
+ onPointerOver: (e: import('react').PointerEvent<HTMLElement>) => void;
27
+ onPointerOut: (e: import('react').PointerEvent<HTMLElement>) => void;
28
+ onPointerDown: (e: import('react').PointerEvent<HTMLElement>) => void;
29
+ onPointerUp: (e: import('react').PointerEvent<HTMLElement>) => void;
30
+ };
31
+ };
32
+ export declare function useCheckboxLabelSlot(motion?: CheckboxCheckMotion): {
33
+ setRef: (node: HTMLElement | null) => void;
34
+ targetRef: import('react').RefObject<HTMLElement | null>;
35
+ pointerHandlers: {
36
+ onPointerOver: (e: import('react').PointerEvent<HTMLElement>) => void;
37
+ onPointerOut: (e: import('react').PointerEvent<HTMLElement>) => void;
38
+ onPointerDown: (e: import('react').PointerEvent<HTMLElement>) => void;
39
+ onPointerUp: (e: import('react').PointerEvent<HTMLElement>) => void;
40
+ };
41
+ };
@@ -1,4 +1,15 @@
1
- import { CheckboxClassNames, CheckboxClassNamesProviderProps, CheckboxFieldContextValue, CheckboxMotion, CheckboxMotionProviderProps } from './checkboxTypes';
1
+ import { CheckboxClassNames, CheckboxClassNamesProviderProps, CheckboxFieldContextValue, CheckboxMotion } from './checkboxTypes';
2
+ /** Own scope for chrome (`label` / `hint` / `error`). Indicator keys still embed into SelectionIndicator. */
3
+ export declare const CheckboxMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
4
+ motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
5
+ defaults?: import('../utils/slotMotion').MotionSlotMap;
6
+ params?: import('../utils/slotMotion').MotionRecipeParams;
7
+ controller?: import('../utils/slotMotion').MotionController;
8
+ motionState?: string;
9
+ motionPayload?: unknown;
10
+ playInitialState?: boolean;
11
+ children: import('react').ReactNode;
12
+ }) => import("react/jsx-runtime").JSX.Element, useCheckboxMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalCheckboxMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
2
13
  export declare function CheckboxFieldProvider({ value, children, }: {
3
14
  value: CheckboxFieldContextValue;
4
15
  children: React.ReactNode;
@@ -6,5 +17,4 @@ export declare function CheckboxFieldProvider({ value, children, }: {
6
17
  export declare function CheckboxClassNamesProvider({ classNames, children, }: CheckboxClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
7
18
  export declare function useCheckboxFieldContext(): CheckboxFieldContextValue;
8
19
  export declare function useCheckboxClassNames(): CheckboxClassNames;
9
- export declare function CheckboxMotionProvider({ motion, children, }: CheckboxMotionProviderProps): import("react/jsx-runtime").JSX.Element;
10
20
  export declare function useCheckboxMotion(): CheckboxMotion | undefined;
@@ -1,25 +1,28 @@
1
- import { CheckboxControlProps, CheckboxErrorProps, CheckboxHintProps, CheckboxIndicatorProps, CheckboxLabelProps, CheckboxSize } from './checkboxTypes';
2
- export declare const CheckboxControl: import('react').ForwardRefExoticComponent<CheckboxControlProps & import('react').RefAttributes<HTMLSpanElement>>;
3
- export declare function CheckboxIndicator({ children, className, classNames: classNamesProp, size: sizeProp, motion: motionProp, ...rest }: CheckboxIndicatorProps): import("react/jsx-runtime").JSX.Element;
1
+ import { CheckboxErrorProps, CheckboxHintProps, CheckboxIndicatorProps, CheckboxLabelProps, CheckboxSize } from './checkboxTypes';
2
+ import { MotionController } from '../utils/slotMotion';
3
+ export declare const CheckboxControl: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
4
+ motionController?: MotionController;
5
+ } & import('react').RefAttributes<HTMLSpanElement>>;
6
+ export declare function CheckboxIndicator({ children, className, classNames: classNamesProp, size: sizeProp, motion: motionProp, motionController, ...rest }: CheckboxIndicatorProps): import("react/jsx-runtime").JSX.Element;
4
7
  export declare namespace CheckboxIndicator {
5
8
  var displayName: string;
6
9
  }
7
10
  export declare const CheckboxContent: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
8
11
  children?: import('react').ReactNode;
9
12
  } & import('react').RefAttributes<HTMLDivElement>>;
10
- export declare function CheckboxLabel({ children, className, required: requiredProp, id: idProp, ...rest }: CheckboxLabelProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function CheckboxLabel({ children, className, required: requiredProp, id: idProp, motion, ...rest }: CheckboxLabelProps): import("react/jsx-runtime").JSX.Element;
11
14
  export declare namespace CheckboxLabel {
12
15
  var displayName: string;
13
16
  }
14
- export declare function CheckboxHint({ children, className, variant, ...rest }: CheckboxHintProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function CheckboxHint({ children, className, variant, motion, ...rest }: CheckboxHintProps): import("react/jsx-runtime").JSX.Element;
15
18
  export declare namespace CheckboxHint {
16
19
  var displayName: string;
17
20
  }
18
- export declare function CheckboxError({ children, className, ...rest }: CheckboxErrorProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function CheckboxError({ children, className, motion, ...rest }: CheckboxErrorProps): import("react/jsx-runtime").JSX.Element;
19
22
  export declare namespace CheckboxError {
20
23
  var displayName: string;
21
24
  }
22
- export declare function CheckboxSimpleBody({ label, hint, error, hasHint, hasError, secondaryLines, textColRef, size, isDisabled, status, hintId, errorId, }: {
25
+ export declare function CheckboxSimpleBody({ label, hint, error, hasHint, hasError, secondaryLines, textColRef, size, isDisabled, status, hintId, errorId, motionController, }: {
23
26
  label: React.ReactNode;
24
27
  hint: React.ReactNode;
25
28
  error: React.ReactNode;
@@ -32,4 +35,5 @@ export declare function CheckboxSimpleBody({ label, hint, error, hasHint, hasErr
32
35
  status: boolean;
33
36
  hintId: string;
34
37
  errorId: string;
38
+ motionController?: MotionController;
35
39
  }): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { ChangeEvent, HTMLAttributes, InputHTMLAttributes, KeyboardEvent, LabelH
2
2
  import { Prettify } from '../../../utils/prettify';
3
3
  import { FieldErrorProps, FieldHintProps } from '../Field';
4
4
  import { LabelProps } from '../Label';
5
- import { MotionValue } from '../utils/slotMotion';
5
+ import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
6
6
  import { SelectionIndicatorClassNames, SelectionIndicatorMotion } from '../SelectionIndicator';
7
7
  import { SemanticStatus } from '../utils/semanticStatusIcons';
8
8
  export type CheckboxVariant = "default" | "secondary" | "outline" | "gloss";
@@ -27,12 +27,17 @@ export type CheckboxClassNames = {
27
27
  export type CheckboxCheckMotion = {
28
28
  check?: MotionValue;
29
29
  uncheck?: MotionValue;
30
+ enter?: MotionValue;
31
+ leave?: MotionValue;
30
32
  };
31
- /** Root map. Keys → SelectionIndicator slots in `checkboxAnimations.ts`. */
33
+ /** Root map. Indicator keys → SelectionIndicator; chrome (`label` / `hint` / `error`) is Checkbox's own scope. */
32
34
  export type CheckboxMotion = {
33
35
  indicator?: CheckboxCheckMotion;
34
36
  indicatorFill?: CheckboxCheckMotion;
35
37
  indicatorMark?: CheckboxCheckMotion;
38
+ label?: CheckboxCheckMotion;
39
+ hint?: CheckboxCheckMotion;
40
+ error?: CheckboxCheckMotion;
36
41
  };
37
42
  export type CheckboxProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "children" | "htmlFor" | "onChange" | "onPointerDown"> & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "children" | "className"> & {
38
43
  children?: ReactNode;
@@ -45,23 +50,52 @@ export type CheckboxProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "childre
45
50
  icon?: ReactNode;
46
51
  className?: string;
47
52
  classNames?: Prettify<CheckboxClassNames>;
48
- motion?: Prettify<CheckboxMotion>;
53
+ /**
54
+ * Per-slot motion. Indicator keys map onto SelectionIndicator; chrome (`label` / `hint` / `error`)
55
+ * is Checkbox's own scope. `events` — namespaced app commands for `MotionController.play`.
56
+ * Simple API: `motionController` is forwarded to the indicator host.
57
+ * Compound: this handle attaches to the Root chrome scope; pass another handle on `Checkbox.Indicator`.
58
+ */
59
+ motion?: Prettify<MotionMapWithEvents<CheckboxMotion>>;
60
+ /**
61
+ * Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
62
+ * Simple API: forwarded to SelectionIndicator. Compound: Root chrome scope.
63
+ * Not placed on the DOM.
64
+ */
65
+ motionController?: MotionController;
49
66
  onPointerDown?: (e: PointerEvent<HTMLElement>) => void;
50
67
  };
51
- export type CheckboxControlProps = HTMLAttributes<HTMLSpanElement>;
68
+ export type CheckboxControlProps = HTMLAttributes<HTMLSpanElement> & {
69
+ /**
70
+ * Forwarded to an auto-created `Checkbox.Indicator` (simple / Control without an Indicator child).
71
+ * Explicit `<Checkbox.Indicator motionController>` wins on that nested host.
72
+ */
73
+ motionController?: MotionController;
74
+ };
52
75
  export type CheckboxIndicatorClassNames = SelectionIndicatorClassNames & Partial<Pick<CheckboxClassNames, "indicator" | "indicatorFill" | "indicatorMark">>;
53
76
  export type CheckboxIndicatorProps = HTMLAttributes<HTMLSpanElement> & {
54
77
  children?: ReactNode;
55
78
  size?: CheckboxSize;
56
79
  classNames?: Prettify<CheckboxIndicatorClassNames>;
57
- motion?: Prettify<SelectionIndicatorMotion>;
80
+ motion?: Prettify<MotionMapWithEvents<SelectionIndicatorMotion>>;
81
+ /**
82
+ * Handle for the SelectionIndicator host (`root` / `fill` / `mark`).
83
+ * Simple API: pass `motionController` on `Checkbox` — it is forwarded here.
84
+ */
85
+ motionController?: MotionController;
58
86
  };
59
87
  export type CheckboxContentProps = HTMLAttributes<HTMLDivElement> & {
60
88
  children?: ReactNode;
61
89
  };
62
- export type CheckboxLabelProps = Omit<LabelProps, "htmlFor">;
63
- export type CheckboxHintProps = Omit<FieldHintProps, "id" | "as">;
64
- export type CheckboxErrorProps = Omit<FieldErrorProps, "id" | "as">;
90
+ export type CheckboxLabelProps = Omit<LabelProps, "htmlFor"> & {
91
+ motion?: Prettify<CheckboxCheckMotion>;
92
+ };
93
+ export type CheckboxHintProps = Omit<FieldHintProps, "id" | "as" | "motion"> & {
94
+ motion?: Prettify<CheckboxCheckMotion>;
95
+ };
96
+ export type CheckboxErrorProps = Omit<FieldErrorProps, "id" | "as" | "motion"> & {
97
+ motion?: Prettify<CheckboxCheckMotion>;
98
+ };
65
99
  export type CheckboxFieldContextValue = {
66
100
  inputId: string;
67
101
  hintId: string;
@@ -104,10 +138,11 @@ export type CheckboxClassNamesProviderProps = {
104
138
  children: ReactNode;
105
139
  };
106
140
  export type CheckboxMotionProviderProps = {
107
- motion?: Prettify<CheckboxMotion>;
141
+ motion?: Prettify<MotionMapWithEvents<CheckboxMotion>>;
142
+ controller?: MotionController;
108
143
  children: ReactNode;
109
144
  };
110
- export type UseCheckboxRootStateProps = Omit<CheckboxProps, "children" | "className" | "classNames">;
145
+ export type UseCheckboxRootStateProps = Omit<CheckboxProps, "children" | "className" | "classNames" | "motion" | "motionController">;
111
146
  export type UseCheckboxAnimationsProps = {
112
147
  isDisabled: boolean;
113
148
  enableTextMotion: boolean;
@@ -10,10 +10,13 @@ export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<im
10
10
  icon?: import('react').ReactNode;
11
11
  className?: string;
12
12
  classNames?: import('../../..').Prettify<import('./checkboxTypes').CheckboxClassNames>;
13
- motion?: import('../../..').Prettify<import('./checkboxTypes').CheckboxMotion>;
13
+ motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./checkboxTypes').CheckboxMotion>>;
14
+ motionController?: import('../utils/slotMotion').MotionController;
14
15
  onPointerDown?: (e: import('react').PointerEvent<HTMLElement>) => void;
15
16
  } & import('react').RefAttributes<HTMLLabelElement>> & {
16
- Control: import('react').ForwardRefExoticComponent<import('./checkboxTypes').CheckboxControlProps & import('react').RefAttributes<HTMLSpanElement>>;
17
+ Control: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
18
+ motionController?: import('../utils/slotMotion').MotionController;
19
+ } & import('react').RefAttributes<HTMLSpanElement>>;
17
20
  Indicator: typeof CheckboxIndicator & {
18
21
  Fill: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
19
22
  motion?: import('../../..').Prettify<import('../SelectionIndicator').SelectionIndicatorCheckMotion>;
@@ -4,5 +4,6 @@ export declare const CloseButton: import('react').ForwardRefExoticComponent<Omit
4
4
  size?: import('./closeButtonTypes').CloseButtonSize;
5
5
  ripple?: boolean;
6
6
  classNames?: import('../../..').Prettify<import('./closeButtonTypes').CloseButtonClassNames>;
7
- motion?: import('../../..').Prettify<import('./closeButtonTypes').CloseButtonMotion>;
7
+ motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./closeButtonTypes').CloseButtonMotion>>;
8
+ motionController?: import('../utils/slotMotion').MotionController;
8
9
  } & import('react').RefAttributes<HTMLButtonElement>>;
@@ -2,9 +2,13 @@ import { CloseButtonClassNames, CloseButtonClassNamesProviderProps } from './clo
2
2
  export declare function CloseButtonClassNamesProvider({ classNames, children, }: CloseButtonClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
3
3
  export declare function useCloseButtonClassNames(): CloseButtonClassNames;
4
4
  /** Scope only. Defaults and host play live in `closeButtonAnimations.ts`. */
5
- export declare const CloseButtonMotionProvider: ({ motion, defaults, params, children, }: {
6
- motion?: import('../utils/slotMotion').MotionSlotMap;
5
+ export declare const CloseButtonMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
6
+ motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
7
7
  defaults?: import('../utils/slotMotion').MotionSlotMap;
8
8
  params?: import('../utils/slotMotion').MotionRecipeParams;
9
+ controller?: import('../utils/slotMotion').MotionController;
10
+ motionState?: string;
11
+ motionPayload?: unknown;
12
+ playInitialState?: boolean;
9
13
  children: import('react').ReactNode;
10
14
  }) => import("react/jsx-runtime").JSX.Element, useCloseButtonMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalCloseButtonMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
@@ -3,7 +3,7 @@ type VariantVisual = {
3
3
  convergeBg: string;
4
4
  };
5
5
  export declare const CLOSE_BUTTON_HAS_HOVER_SHADOW: Set<CloseButtonVariant>;
6
- export declare const CLOSE_BUTTON_ROOT_BASE_CLASS = "relative z-0 flex shrink-0 cursor-pointer items-center justify-center rounded-full outline-none focus-ring overflow-hidden";
6
+ export declare const CLOSE_BUTTON_ROOT_BASE_CLASS = "relative z-0 flex aspect-square shrink-0 cursor-pointer items-center justify-center rounded-full outline-none focus-ring overflow-hidden";
7
7
  export declare const CLOSE_BUTTON_DISABLED_CLASS = "cursor-not-allowed opacity-50";
8
8
  export declare const CLOSE_BUTTON_ICON_BASE_CLASS = "relative z-[1] shrink-0 text-current";
9
9
  export declare const CLOSE_BUTTON_RIPPLE_CLIP_CLASS = "rounded-full";
@@ -1,7 +1,7 @@
1
1
  import { ButtonHTMLAttributes, KeyboardEvent, MutableRefObject, PointerEvent } from 'react';
2
2
  import { Prettify } from '../../../utils/prettify';
3
3
  import { ComponentSize } from '../utils/sizeLayout';
4
- import { MotionValue } from '../utils/slotMotion';
4
+ import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
5
5
  export type CloseButtonVariant = "default" | "primary" | "outline" | "secondary" | "ghost" | "gloss";
6
6
  export type CloseButtonSize = ComponentSize;
7
7
  export type CloseButtonClassNames = {
@@ -24,13 +24,22 @@ export type CloseButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "ch
24
24
  size?: CloseButtonSize;
25
25
  ripple?: boolean;
26
26
  classNames?: Prettify<CloseButtonClassNames>;
27
- motion?: Prettify<CloseButtonMotion>;
27
+ /**
28
+ * Per-slot motion (`root`, `icon`). Ripple is kit-internal.
29
+ * `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
30
+ */
31
+ motion?: Prettify<MotionMapWithEvents<CloseButtonMotion>>;
32
+ /**
33
+ * Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
34
+ * Forwarded to the motion Provider (`controller`), not onto the DOM.
35
+ */
36
+ motionController?: MotionController;
28
37
  };
29
38
  export type CloseButtonClassNamesProviderProps = {
30
39
  classNames?: Prettify<CloseButtonClassNames>;
31
40
  children: React.ReactNode;
32
41
  };
33
- export type UseCloseButtonRootStateProps = Omit<CloseButtonProps, "onPointerDown" | "onPointerUp" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOut" | "onKeyDown" | "motion">;
42
+ export type UseCloseButtonRootStateProps = Omit<CloseButtonProps, "onPointerDown" | "onPointerUp" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOut" | "onKeyDown" | "motion" | "motionController">;
34
43
  export type UseCloseButtonAnimationsProps = {
35
44
  variant: CloseButtonVariant;
36
45
  disabled: boolean;
@@ -1,9 +1,9 @@
1
- import { ColorPickerAlphaInput, ColorPickerArea, ColorPickerContent, ColorPickerHexInput, ColorPickerPresets, ColorPickerTrigger } from './colorPickerParts';
1
+ import { ColorPickerAlphaInput, ColorPickerArea, ColorPickerContent, ColorPickerHexInput, ColorPickerPresets, ColorPickerPreview, ColorPickerTrigger } from './colorPickerParts';
2
2
  import { ColorPickerProps } from './colorPickerTypes';
3
- export type { ColorPickerProps, ColorPickerTriggerProps, ColorPickerContentProps, ColorPickerAreaProps, ColorPickerHexInputProps, ColorPickerAlphaInputProps, ColorPickerPresetsProps, ColorPickerSize, ColorPickerVariant, ColorPickerClassNames, ColorPickerMotion, ColorPickerPartMotion, } from './colorPickerTypes';
3
+ export type { ColorPickerProps, ColorPickerTriggerProps, ColorPickerContentProps, ColorPickerAreaProps, ColorPickerHexInputProps, ColorPickerAlphaInputProps, ColorPickerPresetsProps, ColorPickerPreviewProps, ColorPickerSize, ColorPickerVariant, ColorPickerClassNames, ColorPickerMotion, ColorPickerPartMotion, } from './colorPickerTypes';
4
4
  export { useColorPicker } from './colorPickerContext';
5
- export declare function ColorPickerRoot({ children, value, defaultValue, onValueChange, open: openProp, defaultOpen, onOpenChange, size, variant, side, disabled, classNames, motion, }: ColorPickerProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function ColorPickerRoot({ children, value, defaultValue, onValueChange, open: openProp, defaultOpen, onOpenChange, size, variant, side, disabled, classNames, motion, motionController, }: ColorPickerProps): import("react/jsx-runtime").JSX.Element;
6
6
  export declare namespace ColorPickerRoot {
7
7
  var displayName: string;
8
8
  }
9
- export { ColorPickerTrigger, ColorPickerContent, ColorPickerArea, ColorPickerHexInput, ColorPickerAlphaInput, ColorPickerPresets, };
9
+ export { ColorPickerTrigger, ColorPickerContent, ColorPickerArea, ColorPickerHexInput, ColorPickerAlphaInput, ColorPickerPresets, ColorPickerPreview, };
@@ -10,6 +10,7 @@ export declare const ColorSliderTrack: import('react').ForwardRefExoticComponent
10
10
  orientation?: import('./colorSliderTypes').ColorSliderOrientation;
11
11
  disabled?: boolean;
12
12
  motion?: import('../../..').Prettify<import('./colorSliderTypes').ColorSliderPartMotion>;
13
+ motionController?: import('../utils/slotMotion').MotionController;
13
14
  } & import('react').RefAttributes<HTMLDivElement>>;
14
15
  export declare const ColorSliderRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "color"> & {
15
16
  channel: ColorChannel;
@@ -21,5 +22,6 @@ export declare const ColorSliderRoot: import('react').ForwardRefExoticComponent<
21
22
  size?: import('./colorSliderTypes').ColorSliderSize;
22
23
  orientation?: import('./colorSliderTypes').ColorSliderOrientation;
23
24
  disabled?: boolean;
24
- motion?: import('../../..').Prettify<import('./colorSliderTypes').ColorSliderMotion>;
25
+ motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./colorSliderTypes').ColorSliderMotion>>;
26
+ motionController?: import('../utils/slotMotion').MotionController;
25
27
  } & import('react').RefAttributes<HTMLDivElement>>;
@@ -6,5 +6,6 @@ export declare const ColorSwatch: import('react').ForwardRefExoticComponent<Omit
6
6
  size?: ColorSwatchSize;
7
7
  shape?: ColorSwatchShape;
8
8
  selected?: boolean;
9
- motion?: import('../../..').Prettify<import('./colorSwatchTypes').ColorSwatchMotion>;
9
+ motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./colorSwatchTypes').ColorSwatchMotion>>;
10
+ motionController?: import('../utils/slotMotion').MotionController;
10
11
  } & import('react').RefAttributes<HTMLButtonElement>>;
@@ -7,9 +7,13 @@ export declare function ColorPickerClassNamesProvider({ classNames, children, }:
7
7
  export declare function useColorPicker(): ColorPickerContextValue;
8
8
  export declare function useColorPickerClassNames(): ColorPickerClassNames;
9
9
  /** Scope only. Defaults and host play live in `colorPickerAnimations.ts`. */
10
- export declare const ColorPickerMotionProvider: ({ motion, defaults, params, children, }: {
11
- motion?: import('../utils/slotMotion').MotionSlotMap;
10
+ export declare const ColorPickerMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
11
+ motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
12
12
  defaults?: import('../utils/slotMotion').MotionSlotMap;
13
13
  params?: import('../utils/slotMotion').MotionRecipeParams;
14
+ controller?: import('../utils/slotMotion').MotionController;
15
+ motionState?: string;
16
+ motionPayload?: unknown;
17
+ playInitialState?: boolean;
14
18
  children: import('react').ReactNode;
15
19
  }) => import("react/jsx-runtime").JSX.Element, useColorPickerMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalColorPickerMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
@@ -1,19 +1,27 @@
1
- import { ColorPickerAlphaInputProps } from './colorPickerTypes';
2
1
  export declare const ColorPickerArea: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
3
2
  motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
4
3
  } & import('react').RefAttributes<HTMLDivElement>>;
5
4
  export declare const ColorPickerHexInput: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
6
5
  motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
7
6
  } & import('react').RefAttributes<HTMLDivElement>>;
8
- export declare const ColorPickerAlphaInput: import('react').ForwardRefExoticComponent<ColorPickerAlphaInputProps & import('react').RefAttributes<HTMLDivElement>>;
7
+ export declare const ColorPickerAlphaInput: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
8
+ motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
9
+ } & import('react').RefAttributes<HTMLDivElement>>;
9
10
  export declare const ColorPickerPresets: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
10
11
  presets: string[];
11
12
  motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
12
13
  } & import('react').RefAttributes<HTMLDivElement>>;
14
+ export declare const ColorPickerPreview: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLSpanElement>, "color"> & {
15
+ color?: string;
16
+ size?: import('./colorSwatchTypes').ColorSwatchSize;
17
+ shape?: import('./colorSwatchTypes').ColorSwatchShape;
18
+ motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
19
+ } & import('react').RefAttributes<HTMLSpanElement>>;
13
20
  export declare const ColorPickerTrigger: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
14
21
  swatchSize?: import('./colorSwatchTypes').ColorSwatchSize;
15
22
  asChild?: boolean;
16
23
  children?: import('react').ReactNode;
24
+ motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
17
25
  } & import('react').RefAttributes<HTMLButtonElement>>;
18
26
  export declare const ColorPickerContent: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "color"> & {
19
27
  showAlpha?: boolean;