@adgytec/adgytec-web-ui-components 2.3.0 → 2.3.1

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 (448) hide show
  1. package/dist/App.d.ts +2 -2
  2. package/dist/assets/CalendarCell.css +1 -1
  3. package/dist/assets/CalendarMenuItem.css +1 -1
  4. package/dist/assets/ListTrailingText.css +1 -0
  5. package/dist/assets/SideSheet.css +1 -1
  6. package/dist/assets/core7.css +1 -1
  7. package/dist/chunks/ActionDialog.map +1 -1
  8. package/dist/chunks/AppBar +42 -42
  9. package/dist/chunks/AppBar.map +1 -1
  10. package/dist/chunks/AppBarAction.map +1 -1
  11. package/dist/chunks/AppBarAvatar.map +1 -1
  12. package/dist/chunks/AppBarHeadline.map +1 -1
  13. package/dist/chunks/BaseCalendar +69 -63
  14. package/dist/chunks/BaseCalendar.map +1 -1
  15. package/dist/chunks/BottomSheet.map +1 -1
  16. package/dist/chunks/BottomSheetModal.map +1 -1
  17. package/dist/chunks/ButtonGroup.map +1 -1
  18. package/dist/chunks/CalendarCell +25 -39
  19. package/dist/chunks/CalendarCell.map +1 -1
  20. package/dist/chunks/CalendarGrid.map +1 -1
  21. package/dist/chunks/CalendarMenuItem +1 -1
  22. package/dist/chunks/CalendarMenuItem.map +1 -1
  23. package/dist/chunks/Card.map +1 -1
  24. package/dist/chunks/CardIcon.map +1 -1
  25. package/dist/chunks/CenteredSlider.map +1 -1
  26. package/dist/chunks/ComboBox.map +1 -1
  27. package/dist/chunks/ComboBoxPopover.map +1 -1
  28. package/dist/chunks/ComboBoxTrigger +592 -62
  29. package/dist/chunks/ComboBoxTrigger.map +1 -1
  30. package/dist/chunks/ConnectedButtonGroup +13 -10
  31. package/dist/chunks/ConnectedButtonGroup.map +1 -1
  32. package/dist/chunks/Dialog.map +1 -1
  33. package/dist/chunks/Disclosure.map +1 -1
  34. package/dist/chunks/DisclosureGroup.map +1 -1
  35. package/dist/chunks/DisclosureHeader.map +1 -1
  36. package/dist/chunks/DisclosurePanel.map +1 -1
  37. package/dist/chunks/Divider.map +1 -1
  38. package/dist/chunks/FieldError.map +1 -1
  39. package/dist/chunks/GridBackgroundDecorator.map +1 -1
  40. package/dist/chunks/Icon.map +1 -1
  41. package/dist/chunks/Input.map +1 -1
  42. package/dist/chunks/Input2 +2 -1
  43. package/dist/chunks/Input2.map +1 -1
  44. package/dist/chunks/ListAction +13 -0
  45. package/dist/chunks/ListAction.map +1 -0
  46. package/dist/chunks/ListAvatar.map +1 -1
  47. package/dist/chunks/ListBox.map +1 -1
  48. package/dist/chunks/ListIcon.map +1 -1
  49. package/dist/chunks/ListItem.map +1 -1
  50. package/dist/chunks/ListLabelText.map +1 -1
  51. package/dist/chunks/ListMedia.map +1 -1
  52. package/dist/chunks/ListOverlineText.map +1 -1
  53. package/dist/chunks/ListSupportingText.map +1 -1
  54. package/dist/chunks/ListTrailingText +21 -0
  55. package/dist/chunks/ListTrailingText.map +1 -0
  56. package/dist/chunks/Loader.map +1 -1
  57. package/dist/chunks/MenuPopover.map +1 -1
  58. package/dist/chunks/Modal.map +1 -1
  59. package/dist/chunks/ModalOverlay.map +1 -1
  60. package/dist/chunks/Navigation.map +1 -1
  61. package/dist/chunks/NavigationScrollContainer +5 -2
  62. package/dist/chunks/NavigationScrollContainer.map +1 -1
  63. package/dist/chunks/NavigationSection.map +1 -1
  64. package/dist/chunks/NavigationSectionLabel.map +1 -1
  65. package/dist/chunks/Popover.map +1 -1
  66. package/dist/chunks/RadialGlowDecorator.map +1 -1
  67. package/dist/chunks/Radio.map +1 -1
  68. package/dist/chunks/RichTooltip.map +1 -1
  69. package/dist/chunks/RichTooltipActions.map +1 -1
  70. package/dist/chunks/RichTooltipInfo.map +1 -1
  71. package/dist/chunks/SearchField.map +1 -1
  72. package/dist/chunks/SelectPopover.map +1 -1
  73. package/dist/chunks/SelectTrigger.map +1 -1
  74. package/dist/chunks/SideSheet +7 -7
  75. package/dist/chunks/SideSheet.map +1 -1
  76. package/dist/chunks/SideSheetModal.map +1 -1
  77. package/dist/chunks/Slider.map +1 -1
  78. package/dist/chunks/SliderOutput.map +1 -1
  79. package/dist/chunks/SliderStops +3 -3
  80. package/dist/chunks/SliderStops.map +1 -1
  81. package/dist/chunks/SliderThumb.map +1 -1
  82. package/dist/chunks/Snackbar.map +1 -1
  83. package/dist/chunks/SplitButton +13 -10
  84. package/dist/chunks/SplitButton.map +1 -1
  85. package/dist/chunks/SplitButtonTrigger +8 -7
  86. package/dist/chunks/SplitButtonTrigger.map +1 -1
  87. package/dist/chunks/SubmenuPopover.map +1 -1
  88. package/dist/chunks/Switch.map +1 -1
  89. package/dist/chunks/Tab.map +1 -1
  90. package/dist/chunks/TabList.map +1 -1
  91. package/dist/chunks/TabPanel.map +1 -1
  92. package/dist/chunks/TabPanels.map +1 -1
  93. package/dist/chunks/Tabs.map +1 -1
  94. package/dist/chunks/Tag.map +1 -1
  95. package/dist/chunks/ThemeSelector +75 -71
  96. package/dist/chunks/ThemeSelector.map +1 -1
  97. package/dist/chunks/Toolbar.map +1 -1
  98. package/dist/chunks/Tooltip.map +1 -1
  99. package/dist/chunks/base.map +1 -1
  100. package/dist/chunks/compiler-runtime +2 -2
  101. package/dist/chunks/compiler-runtime.map +1 -1
  102. package/dist/chunks/context.map +1 -1
  103. package/dist/chunks/core +27 -25
  104. package/dist/chunks/core.map +1 -1
  105. package/dist/chunks/core2.map +1 -1
  106. package/dist/chunks/core3.map +1 -1
  107. package/dist/chunks/core4.map +1 -1
  108. package/dist/chunks/core5.map +1 -1
  109. package/dist/chunks/core6 +11 -11
  110. package/dist/chunks/core6.map +1 -1
  111. package/dist/chunks/core7.map +1 -1
  112. package/dist/chunks/core8.map +1 -1
  113. package/dist/chunks/core9.map +1 -1
  114. package/dist/chunks/navContext.map +1 -1
  115. package/dist/chunks/tapTarget.map +1 -1
  116. package/dist/chunks/types.map +1 -1
  117. package/dist/chunks/useHover +460 -153
  118. package/dist/chunks/useHover.map +1 -1
  119. package/dist/chunks/useSplash +17 -19
  120. package/dist/chunks/useSplash.map +1 -1
  121. package/dist/components/AppBar/AppBar/AppBar.d.ts +29 -0
  122. package/dist/components/AppBar/AppBar/types.d.ts +29 -4
  123. package/dist/components/AppBar/AppBarAction/AppBarAction.d.ts +19 -1
  124. package/dist/components/AppBar/AppBarAvatar/AppBarAvatar.d.ts +20 -1
  125. package/dist/components/AppBar/AppBarHeadline/AppBarHeadline.d.ts +19 -1
  126. package/dist/components/AppBar/AppBarState/AppBarState.d.ts +28 -2
  127. package/dist/components/AppBar/AppBarState/context.d.ts +37 -0
  128. package/dist/components/AppBar/AppBarState/index.js +16 -10
  129. package/dist/components/AppBar/AppBarState/index.js.map +1 -1
  130. package/dist/components/AppBar/core/alignment.d.ts +6 -0
  131. package/dist/components/AppBar/core/context.d.ts +16 -0
  132. package/dist/components/AppBar/core/index.js.map +1 -1
  133. package/dist/components/AppBar/core/size.d.ts +13 -0
  134. package/dist/components/AppBar/index.js +7 -7
  135. package/dist/components/Button/Button/Button.d.ts +17 -0
  136. package/dist/components/Button/Button/index.js.map +1 -1
  137. package/dist/components/Button/Button/types.d.ts +4 -0
  138. package/dist/components/Button/ButtonGroups/ButtonGroup/ButtonGroup.d.ts +17 -0
  139. package/dist/components/Button/ButtonGroups/ButtonGroup/types.d.ts +24 -0
  140. package/dist/components/Button/ButtonGroups/ButtonGroupContext/context.d.ts +22 -0
  141. package/dist/components/Button/ButtonGroups/ButtonGroupContext/index.js.map +1 -1
  142. package/dist/components/Button/ButtonGroups/ButtonGroupContext/useButtonGroupContext.d.ts +5 -0
  143. package/dist/components/Button/ButtonGroups/ButtonGroupContext/useConnectedButtonGroupContext.d.ts +5 -0
  144. package/dist/components/Button/ButtonGroups/ConnectedButton/ConnectedButton.d.ts +13 -0
  145. package/dist/components/Button/ButtonGroups/ConnectedButton/types.d.ts +19 -1
  146. package/dist/components/Button/ButtonGroups/ConnectedButtonGroup/ConnectedButtonGroup.d.ts +18 -0
  147. package/dist/components/Button/ButtonGroups/ConnectedButtonGroup/types.d.ts +24 -0
  148. package/dist/components/Button/IconButton/IconButton.d.ts +21 -0
  149. package/dist/components/Button/IconButton/index.js.map +1 -1
  150. package/dist/components/Button/IconButton/types.d.ts +4 -0
  151. package/dist/components/Button/LinkButton/LinkButton.d.ts +15 -0
  152. package/dist/components/Button/LinkButton/index.js.map +1 -1
  153. package/dist/components/Button/LinkButton/types.d.ts +4 -0
  154. package/dist/components/Button/LinkIconButton/LinkIconButton.d.ts +19 -0
  155. package/dist/components/Button/LinkIconButton/index.js.map +1 -1
  156. package/dist/components/Button/LinkIconButton/types.d.ts +4 -0
  157. package/dist/components/Button/SplitButton/SplitButton/SplitButton.d.ts +24 -0
  158. package/dist/components/Button/SplitButton/SplitButton/types.d.ts +23 -0
  159. package/dist/components/Button/SplitButton/SplitButtonContext/context.d.ts +11 -0
  160. package/dist/components/Button/SplitButton/SplitButtonContext/index.js.map +1 -1
  161. package/dist/components/Button/SplitButton/SplitButtonContext/useSplitButtonContext.d.ts +5 -0
  162. package/dist/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.d.ts +15 -0
  163. package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js +2 -2
  164. package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js.map +1 -1
  165. package/dist/components/Button/SplitButton/SplitButtonPrimary/types.d.ts +11 -0
  166. package/dist/components/Button/SplitButton/SplitButtonTrigger/SplitButtonTrigger.d.ts +19 -0
  167. package/dist/components/Button/SplitButton/SplitButtonTrigger/types.d.ts +5 -0
  168. package/dist/components/Button/SplitButton/core/size.d.ts +13 -0
  169. package/dist/components/Button/ToggleButton/ToggleButton.d.ts +21 -0
  170. package/dist/components/Button/ToggleButton/index.js.map +1 -1
  171. package/dist/components/Button/ToggleButton/types.d.ts +14 -0
  172. package/dist/components/Button/ToggleIconButton/ToggleIconButton.d.ts +21 -0
  173. package/dist/components/Button/ToggleIconButton/index.js.map +1 -1
  174. package/dist/components/Button/ToggleIconButton/types.d.ts +9 -0
  175. package/dist/components/Button/core/button.d.ts +33 -0
  176. package/dist/components/Button/core/color.d.ts +38 -0
  177. package/dist/components/Button/core/shape.d.ts +6 -0
  178. package/dist/components/Button/core/sizes.d.ts +26 -0
  179. package/dist/components/Button/core/useButtonConfig.d.ts +25 -0
  180. package/dist/components/Button/core/variant.d.ts +6 -0
  181. package/dist/components/Button/core/width.d.ts +7 -0
  182. package/dist/components/Button/core/withTooltip.d.ts +9 -2
  183. package/dist/components/Calendar/BaseCalendar/BaseCalendar.d.ts +23 -2
  184. package/dist/components/Calendar/Calendar/Calendar.d.ts +39 -2
  185. package/dist/components/Calendar/Calendar/index.js +18 -12
  186. package/dist/components/Calendar/Calendar/index.js.map +1 -1
  187. package/dist/components/Calendar/CalendarCell/CalendarCell.d.ts +14 -2
  188. package/dist/components/Calendar/CalendarGrid/CalendarGrid.d.ts +12 -2
  189. package/dist/components/Calendar/CalendarMenuItem/CalendarMenuItem.d.ts +12 -1
  190. package/dist/components/Calendar/CalendarMonthMenu/CalendarMonthMenu.d.ts +14 -2
  191. package/dist/components/Calendar/CalendarMonthMenu/index.js +2 -2
  192. package/dist/components/Calendar/CalendarMonthMenu/index.js.map +1 -1
  193. package/dist/components/Calendar/CalendarYearMenu/CalendarYearMenu.d.ts +14 -2
  194. package/dist/components/Calendar/CalendarYearMenu/index.js.map +1 -1
  195. package/dist/components/Calendar/RangeCalendar/RangeCalendar.d.ts +40 -2
  196. package/dist/components/Calendar/RangeCalendar/index.js +19 -15
  197. package/dist/components/Calendar/RangeCalendar/index.js.map +1 -1
  198. package/dist/components/Calendar/core/calendar.d.ts +26 -0
  199. package/dist/components/Calendar/core/useCalendarState.d.ts +15 -0
  200. package/dist/components/Calendar/index.d.ts +1 -0
  201. package/dist/components/Calendar/index.js +4 -3
  202. package/dist/components/Card/Card/Card.d.ts +20 -0
  203. package/dist/components/Card/Card/types.d.ts +23 -0
  204. package/dist/components/Card/CardIcon/CardIcon.d.ts +25 -1
  205. package/dist/components/Decorators/GridBackgroundDecorator/GridBackgroundDecorator.d.ts +46 -7
  206. package/dist/components/Decorators/RadialGlowDecorator/RadialGlowDecorator.d.ts +53 -6
  207. package/dist/components/Dialog/ActionDialog/ActionDialog.d.ts +33 -0
  208. package/dist/components/Dialog/ActionDialog/types.d.ts +28 -2
  209. package/dist/components/Dialog/Dialog/Dialog.d.ts +32 -1
  210. package/dist/components/Dialog/Modal/Modal.d.ts +24 -1
  211. package/dist/components/Dialog/ModalOverlay/ModalOverlay.d.ts +25 -1
  212. package/dist/components/Dialog/core/context.d.ts +8 -0
  213. package/dist/components/Dialog/core/index.js.map +1 -1
  214. package/dist/components/Dialog/core/typography.d.ts +9 -0
  215. package/dist/components/Disclosure/Disclosure/Disclosure.d.ts +25 -1
  216. package/dist/components/Disclosure/DisclosureGroup/DisclosureGroup.d.ts +50 -2
  217. package/dist/components/Disclosure/DisclosureHeader/DisclosureHeader.d.ts +31 -2
  218. package/dist/components/Disclosure/DisclosurePanel/DisclosurePanel.d.ts +31 -2
  219. package/dist/components/Disclosure/context/context.d.ts +11 -2
  220. package/dist/components/Disclosure/context/index.js.map +1 -1
  221. package/dist/components/Disclosure/context/useDisclosureTypographyContext.d.ts +18 -2
  222. package/dist/components/Divider/Divider.d.ts +30 -1
  223. package/dist/components/Icon/Icon.d.ts +29 -0
  224. package/dist/components/Icon/types.d.ts +28 -0
  225. package/dist/components/Input/CharacterCount/CharacterCount.d.ts +11 -2
  226. package/dist/components/Input/CharacterCount/index.js.map +1 -1
  227. package/dist/components/Input/Checkbox/Checkbox.d.ts +15 -0
  228. package/dist/components/Input/Checkbox/CheckboxGroup.d.ts +17 -0
  229. package/dist/components/Input/Checkbox/context.d.ts +10 -2
  230. package/dist/components/Input/Checkbox/types.d.ts +42 -0
  231. package/dist/components/Input/DateField/DateField.d.ts +17 -1
  232. package/dist/components/Input/DateField/index.js.map +1 -1
  233. package/dist/components/Input/DateField/types.d.ts +4 -0
  234. package/dist/components/Input/DatePicker/DatePicker/DatePicker.d.ts +17 -1
  235. package/dist/components/Input/DatePicker/DatePicker/index.js.map +1 -1
  236. package/dist/components/Input/DatePicker/DatePicker/types.d.ts +10 -0
  237. package/dist/components/Input/DatePicker/DateRangePicker/DateRangePicker.d.ts +17 -1
  238. package/dist/components/Input/DatePicker/DateRangePicker/index.js.map +1 -1
  239. package/dist/components/Input/DatePicker/DateRangePicker/types.d.ts +10 -0
  240. package/dist/components/Input/DatePicker/core/datePicker.d.ts +3 -0
  241. package/dist/components/Input/Description/Description.d.ts +12 -1
  242. package/dist/components/Input/Description/index.js.map +1 -1
  243. package/dist/components/Input/FieldError/FieldError.d.ts +12 -1
  244. package/dist/components/Input/Input/Input.d.ts +27 -0
  245. package/dist/components/Input/Input/InputButton.d.ts +10 -1
  246. package/dist/components/Input/Input/handleInputButton.d.ts +6 -0
  247. package/dist/components/Input/Input/types.d.ts +20 -0
  248. package/dist/components/Input/Label/Label.d.ts +12 -1
  249. package/dist/components/Input/Label/index.js.map +1 -1
  250. package/dist/components/Input/Radio/Radio.d.ts +16 -0
  251. package/dist/components/Input/Radio/RadioGroup.d.ts +17 -0
  252. package/dist/components/Input/Radio/context.d.ts +10 -2
  253. package/dist/components/Input/Radio/types.d.ts +40 -0
  254. package/dist/components/Input/SearchField/SearchField.d.ts +16 -0
  255. package/dist/components/Input/SearchField/types.d.ts +9 -0
  256. package/dist/components/Input/Select/ComboBox/ComboBox.d.ts +29 -1
  257. package/dist/components/Input/Select/ComboBox/context.d.ts +3 -0
  258. package/dist/components/Input/Select/ComboBox/types.d.ts +9 -0
  259. package/dist/components/Input/Select/ComboBoxPopover/ComboBoxPopover.d.ts +10 -1
  260. package/dist/components/Input/Select/ComboBoxTrigger/ComboBoxTrigger.d.ts +10 -2
  261. package/dist/components/Input/Select/Select/Select.d.ts +29 -1
  262. package/dist/components/Input/Select/Select/index.js.map +1 -1
  263. package/dist/components/Input/Select/Select/types.d.ts +4 -0
  264. package/dist/components/Input/Select/SelectItem/SelectItem.d.ts +19 -0
  265. package/dist/components/Input/Select/SelectItem/index.js.map +1 -1
  266. package/dist/components/Input/Select/SelectItem/types.d.ts +9 -0
  267. package/dist/components/Input/Select/SelectList/SelectList.d.ts +14 -2
  268. package/dist/components/Input/Select/SelectList/index.js.map +1 -1
  269. package/dist/components/Input/Select/SelectListSection/SelectListSection.d.ts +4 -1
  270. package/dist/components/Input/Select/SelectListSection/index.js.map +1 -1
  271. package/dist/components/Input/Select/SelectListSectionHeader/SelectListSectionHeader.d.ts +3 -0
  272. package/dist/components/Input/Select/SelectListSectionHeader/index.js.map +1 -1
  273. package/dist/components/Input/Select/SelectPopover/SelectPopover.d.ts +10 -1
  274. package/dist/components/Input/Select/SelectTrigger/SelectTrigger.d.ts +10 -1
  275. package/dist/components/Input/Slider/CenteredSlider/CenteredSlider.d.ts +23 -1
  276. package/dist/components/Input/Slider/CenteredSlider/types.d.ts +6 -0
  277. package/dist/components/Input/Slider/RangeSlider/RangeSlider.d.ts +24 -1
  278. package/dist/components/Input/Slider/RangeSlider/index.js.map +1 -1
  279. package/dist/components/Input/Slider/RangeSlider/types.d.ts +9 -0
  280. package/dist/components/Input/Slider/Slider/Slider.d.ts +24 -1
  281. package/dist/components/Input/Slider/Slider/types.d.ts +13 -0
  282. package/dist/components/Input/Slider/SliderOutput/SliderOutput.d.ts +19 -1
  283. package/dist/components/Input/Slider/SliderStops/SliderStops.d.ts +18 -0
  284. package/dist/components/Input/Slider/SliderStops/core.d.ts +54 -10
  285. package/dist/components/Input/Slider/SliderStops/types.d.ts +38 -0
  286. package/dist/components/Input/Slider/SliderThumb/SliderThumb.d.ts +32 -2
  287. package/dist/components/Input/Slider/SliderThumb/context.d.ts +20 -0
  288. package/dist/components/Input/Slider/core/color.d.ts +1 -0
  289. package/dist/components/Input/Slider/core/size.d.ts +12 -0
  290. package/dist/components/Input/Slider/core/slider.d.ts +44 -0
  291. package/dist/components/Input/Slider/core/variant.d.ts +10 -0
  292. package/dist/components/Input/Switch/Switch.d.ts +15 -0
  293. package/dist/components/Input/Switch/types.d.ts +33 -0
  294. package/dist/components/Input/TextArea/TextArea.d.ts +19 -0
  295. package/dist/components/Input/TextArea/index.js.map +1 -1
  296. package/dist/components/Input/TextArea/types.d.ts +11 -0
  297. package/dist/components/Input/TimeField/TimeField.d.ts +17 -1
  298. package/dist/components/Input/TimeField/index.js.map +1 -1
  299. package/dist/components/Input/TimeField/types.d.ts +4 -0
  300. package/dist/components/Input/core/input.d.ts +15 -0
  301. package/dist/components/Input/core/textField.d.ts +13 -0
  302. package/dist/components/Input/hooks/index.js.map +1 -1
  303. package/dist/components/Input/hooks/useControllableState.d.ts +17 -2
  304. package/dist/components/List/ListAction/ListAction.d.ts +23 -1
  305. package/dist/components/List/ListAction/index.d.ts +1 -1
  306. package/dist/components/List/ListAction/index.js +2 -0
  307. package/dist/components/List/ListAvatar/ListAvatar.d.ts +23 -1
  308. package/dist/components/List/ListBox/ListBox.d.ts +28 -1
  309. package/dist/components/List/ListBox/types.d.ts +15 -0
  310. package/dist/components/List/ListIcon/ListIcon.d.ts +19 -1
  311. package/dist/components/List/ListItem/ListItem.d.ts +34 -0
  312. package/dist/components/List/ListItem/types.d.ts +21 -0
  313. package/dist/components/List/ListLabelText/ListLabelText.d.ts +16 -1
  314. package/dist/components/List/ListMedia/ListMedia.d.ts +20 -0
  315. package/dist/components/List/ListMedia/types.d.ts +32 -0
  316. package/dist/components/List/ListOverlineText/ListOverlineText.d.ts +16 -1
  317. package/dist/components/List/ListSupportingText/ListSupportingText.d.ts +16 -1
  318. package/dist/components/List/ListTrailingText/ListTrailingText.d.ts +16 -1
  319. package/dist/components/List/ListTrailingText/index.d.ts +1 -1
  320. package/dist/components/List/ListTrailingText/index.js +2 -0
  321. package/dist/components/List/index.js +11 -9
  322. package/dist/components/Loader/Loader.d.ts +26 -1
  323. package/dist/components/Menu/Menu/Menu.d.ts +31 -1
  324. package/dist/components/Menu/Menu/index.js.map +1 -1
  325. package/dist/components/Menu/Menu/types.d.ts +18 -0
  326. package/dist/components/Menu/MenuItem/MenuItem.d.ts +22 -0
  327. package/dist/components/Menu/MenuItem/index.js.map +1 -1
  328. package/dist/components/Menu/MenuItem/types.d.ts +24 -0
  329. package/dist/components/Menu/MenuPopover/MenuPopover.d.ts +21 -1
  330. package/dist/components/Menu/MenuSection/MenuSection.d.ts +23 -1
  331. package/dist/components/Menu/MenuSection/index.js.map +1 -1
  332. package/dist/components/Menu/MenuSectionHeader/MenuSectionHeader.d.ts +16 -1
  333. package/dist/components/Menu/MenuSectionHeader/index.js.map +1 -1
  334. package/dist/components/Menu/MenuShortcut/MenuShortcut.d.ts +16 -1
  335. package/dist/components/Menu/MenuShortcut/index.js.map +1 -1
  336. package/dist/components/Menu/MenuTrailingText/MenuTrailingText.d.ts +16 -1
  337. package/dist/components/Menu/MenuTrailingText/index.js.map +1 -1
  338. package/dist/components/Menu/MenuTrigger/MenuTrigger.d.ts +43 -2
  339. package/dist/components/Menu/MenuTrigger/index.js.map +1 -1
  340. package/dist/components/Menu/SubmenuPopover/SubmenuPopover.d.ts +22 -1
  341. package/dist/components/Menu/context/context.d.ts +13 -0
  342. package/dist/components/Menu/context/index.js.map +1 -1
  343. package/dist/components/Menu/context/useMenuConfigContext.d.ts +6 -0
  344. package/dist/components/Menu/core/color.d.ts +20 -0
  345. package/dist/components/Menu/core/layout.d.ts +17 -0
  346. package/dist/components/Menu/core/menu.d.ts +18 -0
  347. package/dist/components/Navigation/Navigation/Navigation.d.ts +28 -0
  348. package/dist/components/Navigation/Navigation/navContext.d.ts +19 -0
  349. package/dist/components/Navigation/Navigation/navRenderingContext.d.ts +16 -0
  350. package/dist/components/Navigation/Navigation/types.d.ts +28 -0
  351. package/dist/components/Navigation/NavigationItem/NavigationButton/NavigationButton.d.ts +15 -0
  352. package/dist/components/Navigation/NavigationItem/NavigationButton/index.js.map +1 -1
  353. package/dist/components/Navigation/NavigationItem/NavigationButton/types.d.ts +9 -0
  354. package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.d.ts +21 -2
  355. package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.js.map +1 -1
  356. package/dist/components/Navigation/NavigationItem/NavigationLink/NavigationLink.d.ts +15 -0
  357. package/dist/components/Navigation/NavigationItem/NavigationLink/index.js.map +1 -1
  358. package/dist/components/Navigation/NavigationItem/NavigationLink/types.d.ts +5 -0
  359. package/dist/components/Navigation/NavigationItem/core/navigationItem.d.ts +22 -0
  360. package/dist/components/Navigation/NavigationScrollContainer/NavigationScrollContainer.d.ts +22 -1
  361. package/dist/components/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts +24 -1
  362. package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/NavigationSectionLabel.d.ts +16 -1
  363. package/dist/components/Navigation/NavigationState/NavigationState.d.ts +27 -2
  364. package/dist/components/Navigation/NavigationState/context.d.ts +31 -0
  365. package/dist/components/Navigation/NavigationState/index.d.ts +1 -0
  366. package/dist/components/Navigation/NavigationState/index.js.map +1 -1
  367. package/dist/components/Navigation/NavigationState/types.d.ts +12 -0
  368. package/dist/components/Navigation/SubNavigation/SubNavigation/SubNavigation.d.ts +35 -2
  369. package/dist/components/Navigation/SubNavigation/SubNavigation/index.js.map +1 -1
  370. package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.d.ts +40 -2
  371. package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js.map +1 -1
  372. package/dist/components/Navigation/core/navLabelContext.d.ts +6 -0
  373. package/dist/components/Navigation/core/navigation.d.ts +9 -0
  374. package/dist/components/Navigation/core/navigationInfo.d.ts +19 -0
  375. package/dist/components/Popover/Popover.d.ts +34 -1
  376. package/dist/components/Sheets/BottomSheet/BottomSheet.d.ts +40 -2
  377. package/dist/components/Sheets/BottomSheet/index.d.ts +1 -0
  378. package/dist/components/Sheets/BottomSheet/types.d.ts +37 -0
  379. package/dist/components/Sheets/BottomSheetModal/BottomSheetModal.d.ts +34 -0
  380. package/dist/components/Sheets/BottomSheetModal/context.d.ts +10 -0
  381. package/dist/components/Sheets/BottomSheetModal/types.d.ts +38 -0
  382. package/dist/components/Sheets/SideSheet/SideSheet.d.ts +46 -0
  383. package/dist/components/Sheets/SideSheet/SideSheetDialog.d.ts +43 -0
  384. package/dist/components/Sheets/SideSheet/types.d.ts +96 -2
  385. package/dist/components/Sheets/SideSheetModal/SideSheetModal.d.ts +34 -0
  386. package/dist/components/Sheets/SideSheetModal/context.d.ts +13 -0
  387. package/dist/components/Sheets/SideSheetModal/types.d.ts +49 -0
  388. package/dist/components/Sheets/core/layout.d.ts +11 -0
  389. package/dist/components/Snackbar/SnackbarRegion.d.ts +50 -0
  390. package/dist/components/Snackbar/context.d.ts +38 -0
  391. package/dist/components/Snackbar/types.d.ts +69 -0
  392. package/dist/components/Splash/Splash.d.ts +6 -0
  393. package/dist/components/Splash/types.d.ts +10 -0
  394. package/dist/components/Splash/useSplash.d.ts +21 -0
  395. package/dist/components/Tabs/Tab/Tab.d.ts +33 -2
  396. package/dist/components/Tabs/TabList/TabList.d.ts +42 -1
  397. package/dist/components/Tabs/TabPanel/TabPanel.d.ts +28 -1
  398. package/dist/components/Tabs/TabPanels/TabPanels.d.ts +28 -1
  399. package/dist/components/Tabs/Tabs/Tabs.d.ts +43 -1
  400. package/dist/components/Tag/Tag.d.ts +37 -0
  401. package/dist/components/Tag/core.d.ts +6 -0
  402. package/dist/components/Tag/types.d.ts +48 -2
  403. package/dist/components/ThemeSelector/ThemeItem.d.ts +46 -2
  404. package/dist/components/ThemeSelector/ThemeProvider.d.ts +29 -2
  405. package/dist/components/ThemeSelector/ThemeSelector.d.ts +24 -0
  406. package/dist/components/ThemeSelector/core.d.ts +58 -0
  407. package/dist/components/ThemeSelector/index.d.ts +2 -0
  408. package/dist/components/ThemeSelector/index.js +2 -2
  409. package/dist/components/ThemeSelector/types.d.ts +69 -2
  410. package/dist/components/Toolbar/Toolbar.d.ts +47 -0
  411. package/dist/components/Toolbar/ToolbarToggleButtonGroup.d.ts +35 -1
  412. package/dist/components/Toolbar/types.d.ts +60 -0
  413. package/dist/components/Tooltip/RichTooltip/RichTooltip/RichTooltip.d.ts +56 -1
  414. package/dist/components/Tooltip/RichTooltip/RichTooltipActions/RichTooltipActions.d.ts +27 -1
  415. package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/RichTooltipInfo.d.ts +31 -1
  416. package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/RichTooltipSubhead.d.ts +22 -1
  417. package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.js.map +1 -1
  418. package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/RichTooltipText.d.ts +26 -1
  419. package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.js.map +1 -1
  420. package/dist/components/Tooltip/Tooltip/Tooltip.d.ts +35 -1
  421. package/dist/components/Tooltip/TooltipTrigger/TooltipTrigger.d.ts +29 -1
  422. package/dist/components/Tooltip/TooltipTrigger/index.js.map +1 -1
  423. package/dist/index.d.ts +0 -1
  424. package/dist/index.js +129 -137
  425. package/dist/index.js.map +1 -1
  426. package/dist/utils/gradients/gradients.d.ts +97 -0
  427. package/dist/utils/index.d.ts +0 -1
  428. package/dist/utils/ref/ref.d.ts +35 -2
  429. package/dist/utils/scroll/scroll.d.ts +67 -4
  430. package/dist/utils/tapTarget/tapTarget.d.ts +57 -0
  431. package/dist/utils/theme/build.d.ts +24 -0
  432. package/dist/utils/theme/types.d.ts +70 -0
  433. package/dist/utils/theme/useTheme.d.ts +40 -0
  434. package/dist/utils/typography/base.d.ts +68 -0
  435. package/dist/utils/typography/core.d.ts +16 -0
  436. package/dist/utils/typography/fluid.d.ts +36 -0
  437. package/package.json +23 -25
  438. package/dist/chunks/useGlobalListeners +0 -294
  439. package/dist/chunks/useGlobalListeners.map +0 -1
  440. package/dist/chunks/usePress +0 -535
  441. package/dist/chunks/usePress.map +0 -1
  442. package/dist/components/Image/Image.d.ts +0 -2
  443. package/dist/components/Image/index.d.ts +0 -2
  444. package/dist/components/Image/index.js +0 -29
  445. package/dist/components/Image/index.js.map +0 -1
  446. package/dist/components/Image/types.d.ts +0 -9
  447. package/dist/utils/form/form.d.ts +0 -13
  448. package/dist/utils/form/index.d.ts +0 -1
@@ -1,5 +1,31 @@
1
1
  import { ReactNode } from 'react';
2
- export declare const AppBarState: React.FC<{
2
+ /**
3
+ * Props for the {@link AppBarState} provider component.
4
+ */
5
+ export interface AppBarStateProps {
6
+ /** The child components within the state context. */
3
7
  children?: ReactNode;
8
+ /** Initial scrolling state. Defaults to `false`. */
4
9
  initialScrolling?: boolean;
5
- }>;
10
+ }
11
+ /**
12
+ * Context provider that manages and shares the scrolling state of the {@link AppBar}.
13
+ *
14
+ * When `isScrolling` is true, the `AppBar` container adopts its elevated / scrolled visual style
15
+ * (using `--md-app-bar-on-scroll-background`).
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * import { AppBarState, AppBar, AppBarHeadline } from '@adgytec/web-ui-components';
20
+ *
21
+ * function App() {
22
+ * return (
23
+ * <AppBarState>
24
+ * <AppBar headline={<AppBarHeadline>Title</AppBarHeadline>} />
25
+ * <main>...</main>
26
+ * </AppBarState>
27
+ * );
28
+ * }
29
+ * ```
30
+ */
31
+ export declare const AppBarState: React.FC<AppBarStateProps>;
@@ -1,5 +1,42 @@
1
+ /**
2
+ * Context value representing the scrolling state of the application for the {@link AppBar}.
3
+ */
1
4
  export type AppBarStateContextType = {
5
+ /** Whether the page or container is currently scrolled down. */
2
6
  isScrolling: boolean;
7
+ /** Callback to update the scrolling status. */
3
8
  updateScrolling: (isScrolling: boolean) => void;
4
9
  };
10
+ /**
11
+ * React context for sharing scroll status with the {@link AppBar} to trigger scrolled styling.
12
+ */
5
13
  export declare const AppBarStateContext: import('react').Context<AppBarStateContextType | null>;
14
+ /**
15
+ * Hook to access the current scrolling state and updater function for the {@link AppBar}.
16
+ *
17
+ * Can be used within scroll containers or event listeners to update the scrolling status
18
+ * of the enclosing `<AppBar>` (toggling elevated/scrolled styling).
19
+ *
20
+ * @returns The active {@link AppBarStateContextType}, or `null` if called outside an `<AppBarState>` provider.
21
+ *
22
+ * @example
23
+ * ```tsx
24
+ * import { useAppBarState } from '@adgytec/web-ui-components';
25
+ * import { useEffect } from 'react';
26
+ *
27
+ * function ScrollListener() {
28
+ * const appBarState = useAppBarState();
29
+ *
30
+ * useEffect(() => {
31
+ * const handleScroll = () => {
32
+ * appBarState?.updateScrolling(window.scrollY > 0);
33
+ * };
34
+ * window.addEventListener('scroll', handleScroll, { passive: true });
35
+ * return () => window.removeEventListener('scroll', handleScroll);
36
+ * }, [appBarState]);
37
+ *
38
+ * return null;
39
+ * }
40
+ * ```
41
+ */
42
+ export declare function useAppBarState(): AppBarStateContextType | null;
@@ -1,17 +1,23 @@
1
- import { createContext as e, useMemo as t, useState as n } from "react";
2
- import { jsx as r } from "react/jsx-runtime";
1
+ import { createContext as e, useContext as t, useMemo as n, useState as r } from "react";
2
+ import { jsx as i } from "react/jsx-runtime";
3
3
  //#region src/components/AppBar/AppBarState/context.ts
4
- var i = e(null), a = ({ children: e, initialScrolling: a = !1 }) => {
5
- let [o, s] = n(a);
6
- return /* @__PURE__ */ r(i, {
7
- value: t(() => ({
8
- isScrolling: o,
9
- updateScrolling: s
10
- }), [o]),
4
+ var a = e(null);
5
+ function o() {
6
+ return t(a);
7
+ }
8
+ //#endregion
9
+ //#region src/components/AppBar/AppBarState/AppBarState.tsx
10
+ var s = ({ children: e, initialScrolling: t = !1 }) => {
11
+ let [o, s] = r(t), c = n(() => ({
12
+ isScrolling: o,
13
+ updateScrolling: s
14
+ }), [o]);
15
+ return /* @__PURE__ */ i(a, {
16
+ value: c,
11
17
  children: e
12
18
  });
13
19
  };
14
20
  //#endregion
15
- export { a as AppBarState, i as AppBarStateContext };
21
+ export { s as AppBarState, a as AppBarStateContext, o as useAppBarState };
16
22
 
17
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/AppBar/AppBarState/context.ts","../../../../src/components/AppBar/AppBarState/AppBarState.tsx"],"sourcesContent":["import { createContext } from \"react\";\n\nexport type AppBarStateContextType = {\n isScrolling: boolean;\n updateScrolling: (isScrolling: boolean) => void;\n};\n\nexport const AppBarStateContext = createContext<AppBarStateContextType | null>(\n null\n);\n","import { type ReactNode, useMemo, useState } from \"react\";\nimport { AppBarStateContext } from \"./context\";\n\nexport const AppBarState: React.FC<{\n children?: ReactNode;\n initialScrolling?: boolean;\n}> = ({ children, initialScrolling = false }) => {\n const [scrolling, setScrolling] = useState(initialScrolling);\n const contextValue = useMemo(\n () => ({\n isScrolling: scrolling,\n updateScrolling: setScrolling,\n }),\n [scrolling]\n );\n\n return (\n <AppBarStateContext value={contextValue}>{children}</AppBarStateContext>\n );\n};\n"],"mappings":";;;AAOA,IAAa,IAAqB,EAC9B,IACJ,GCNa,KAGP,EAAE,aAAU,sBAAmB,SAAY;CAC7C,IAAM,CAAC,GAAW,KAAgB,EAAS,CAAgB;CAS3D,OACI,kBAAC,GAAD;EAAoB,OATH,SACV;GACH,aAAa;GACb,iBAAiB;EACrB,IACA,CAAC,CAAS,CAIiB;EAAe;CAA6B,CAAA;AAE/E"}
1
+ {"version":3,"file":"index.js","names":["AppBarStateContext","createContext","useAppBarState","useContext","AppBarState","scrolling","setScrolling","useState","initialScrolling","contextValue","useMemo"],"sources":["../../../../src/components/AppBar/AppBarState/context.ts","../../../../src/components/AppBar/AppBarState/AppBarState.tsx"],"sourcesContent":["import { createContext, useContext } from \"react\";\n\n/**\n * Context value representing the scrolling state of the application for the {@link AppBar}.\n */\nexport type AppBarStateContextType = {\n /** Whether the page or container is currently scrolled down. */\n isScrolling: boolean;\n /** Callback to update the scrolling status. */\n updateScrolling: (isScrolling: boolean) => void;\n};\n\n/**\n * React context for sharing scroll status with the {@link AppBar} to trigger scrolled styling.\n */\nexport const AppBarStateContext = createContext<AppBarStateContextType | null>(\n null\n);\n\n/**\n * Hook to access the current scrolling state and updater function for the {@link AppBar}.\n *\n * Can be used within scroll containers or event listeners to update the scrolling status\n * of the enclosing `<AppBar>` (toggling elevated/scrolled styling).\n *\n * @returns The active {@link AppBarStateContextType}, or `null` if called outside an `<AppBarState>` provider.\n *\n * @example\n * ```tsx\n * import { useAppBarState } from '@adgytec/web-ui-components';\n * import { useEffect } from 'react';\n *\n * function ScrollListener() {\n * const appBarState = useAppBarState();\n *\n * useEffect(() => {\n * const handleScroll = () => {\n * appBarState?.updateScrolling(window.scrollY > 0);\n * };\n * window.addEventListener('scroll', handleScroll, { passive: true });\n * return () => window.removeEventListener('scroll', handleScroll);\n * }, [appBarState]);\n *\n * return null;\n * }\n * ```\n */\nexport function useAppBarState() {\n return useContext(AppBarStateContext);\n}\n","import { type ReactNode, useMemo, useState } from \"react\";\nimport { AppBarStateContext } from \"./context\";\n\n/**\n * Props for the {@link AppBarState} provider component.\n */\nexport interface AppBarStateProps {\n /** The child components within the state context. */\n children?: ReactNode;\n /** Initial scrolling state. Defaults to `false`. */\n initialScrolling?: boolean;\n}\n\n/**\n * Context provider that manages and shares the scrolling state of the {@link AppBar}.\n *\n * When `isScrolling` is true, the `AppBar` container adopts its elevated / scrolled visual style\n * (using `--md-app-bar-on-scroll-background`).\n *\n * @example\n * ```tsx\n * import { AppBarState, AppBar, AppBarHeadline } from '@adgytec/web-ui-components';\n *\n * function App() {\n * return (\n * <AppBarState>\n * <AppBar headline={<AppBarHeadline>Title</AppBarHeadline>} />\n * <main>...</main>\n * </AppBarState>\n * );\n * }\n * ```\n */\nexport const AppBarState: React.FC<AppBarStateProps> = ({\n children,\n initialScrolling = false,\n}) => {\n const [scrolling, setScrolling] = useState(initialScrolling);\n const contextValue = useMemo(\n () => ({\n isScrolling: scrolling,\n updateScrolling: setScrolling,\n }),\n [scrolling]\n );\n\n return (\n <AppBarStateContext value={contextValue}>{children}</AppBarStateContext>\n );\n};\n"],"mappings":";;;AAeA,IAAaA,IAAqBC,EAC9B,IACJ;AA8BA,SAAOC,IAAA;CAAA,OACIC,EAAWH,CAAkB;AAAC;;;ACfzC,IAAaI,KAA2C,EACpD,aACA,sBAAmB,SACjB;CACF,IAAM,CAACC,GAAWC,KAAgBC,EAASC,CAAgB,GACrDC,IAAeC,SACV;EACH,aAAaL;EACb,iBAAiBC;CACrB,IACA,CAACD,CAAS,CACd;CAEA,OACI,kBAACL,GAAD;EAAoB,OAAOS;EAAe;CAA6B,CAAA;AAE/E"}
@@ -1 +1,7 @@
1
+ /**
2
+ * Text and content alignment variant for the {@link AppBarHeadline} inside an {@link AppBar}.
3
+ *
4
+ * - `"default"`: Leading-aligned title following the leading navigation action.
5
+ * - `"centered"`: Horizontally centered title.
6
+ */
1
7
  export type AppBarAlignment = "default" | "centered";
@@ -1,10 +1,26 @@
1
1
  import { AppBarAlignment } from './alignment';
2
2
  import { AppBarSize } from './size';
3
+ /**
4
+ * Context value provided by the {@link AppBar} container to descendant components (such as {@link AppBarHeadline}).
5
+ */
3
6
  export type AppBarContextType = {
7
+ /** The active layout size variant of the AppBar. */
4
8
  size: AppBarSize;
9
+ /** The active headline alignment mode. */
5
10
  alignment: AppBarAlignment;
11
+ /** The headline container height in pixels. */
6
12
  headlineBlockSize: number;
13
+ /** The active typography CSS class name for the headline. */
7
14
  headlineTypography: string;
8
15
  };
16
+ /**
17
+ * React context for sharing configuration between {@link AppBar} and its descendants.
18
+ */
9
19
  export declare const AppBarContext: import('react').Context<AppBarContextType | null>;
20
+ /**
21
+ * Custom hook to access the active {@link AppBarContext}.
22
+ *
23
+ * @throws {Error} If called outside of an `<AppBar>` provider tree.
24
+ * @returns The active {@link AppBarContextType} values.
25
+ */
10
26
  export declare function useAppBarContext(): AppBarContextType;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/AppBar/core/context.ts","../../../../src/components/AppBar/core/size.ts"],"sourcesContent":["import { createContext, useContext } from \"react\";\nimport type { AppBarAlignment } from \"./alignment\";\nimport type { AppBarSize } from \"./size\";\n\nexport type AppBarContextType = {\n size: AppBarSize;\n alignment: AppBarAlignment;\n headlineBlockSize: number;\n headlineTypography: string;\n};\n\nexport const AppBarContext = createContext<AppBarContextType | null>(null);\n\nexport function useAppBarContext() {\n const context = useContext(AppBarContext);\n\n if (!context) {\n throw new Error(\n \"useAppBarContext must be used within AppBar component\"\n );\n }\n\n return context;\n}\n","import { typography } from \"@/utils\";\n\nexport type AppBarSize = \"small\" | \"medium\" | \"large\";\n\nexport const AppBarHeadlineTypography: Record<AppBarSize, string> = {\n small: typography.titleLarge,\n medium: typography.headlineMedium,\n large: typography.displaySmall,\n} as const;\n\nexport const AppBarHeadlineBlockSize: Record<AppBarSize, number> = {\n small: 28,\n medium: 36,\n large: 44,\n} as const;\n"],"mappings":";;;AAWA,IAAa,IAAgB,EAAwC,IAAI;AAEzE,SAAO,IAAA;CACH,IAAA,IAAgB,EAAW,CAAa;CAExC,IAAI,CAAC,GACD,MAAU,MACN,uDACJ;CACH,OAEM;AAAO;;;AClBlB,IAAa,IAAuD;CAChE,OAAO,EAAW;CAClB,QAAQ,EAAW;CACnB,OAAO,EAAW;AACtB,GAEa,IAAsD;CAC/D,OAAO;CACP,QAAQ;CACR,OAAO;AACX"}
1
+ {"version":3,"file":"index.js","names":["typography","AppBarContext","createContext","useAppBarContext","context","useContext","AppBarHeadlineTypography","AppBarHeadlineBlockSize"],"sources":["../../../../src/components/AppBar/core/context.ts","../../../../src/components/AppBar/core/size.ts"],"sourcesContent":["import { createContext, useContext } from \"react\";\nimport type { AppBarAlignment } from \"./alignment\";\nimport type { AppBarSize } from \"./size\";\n\n/**\n * Context value provided by the {@link AppBar} container to descendant components (such as {@link AppBarHeadline}).\n */\nexport type AppBarContextType = {\n /** The active layout size variant of the AppBar. */\n size: AppBarSize;\n /** The active headline alignment mode. */\n alignment: AppBarAlignment;\n /** The headline container height in pixels. */\n headlineBlockSize: number;\n /** The active typography CSS class name for the headline. */\n headlineTypography: string;\n};\n\n/**\n * React context for sharing configuration between {@link AppBar} and its descendants.\n */\nexport const AppBarContext = createContext<AppBarContextType | null>(null);\n\n/**\n * Custom hook to access the active {@link AppBarContext}.\n *\n * @throws {Error} If called outside of an `<AppBar>` provider tree.\n * @returns The active {@link AppBarContextType} values.\n */\nexport function useAppBarContext() {\n const context = useContext(AppBarContext);\n\n if (!context) {\n throw new Error(\n \"useAppBarContext must be used within AppBar component\"\n );\n }\n\n return context;\n}\n","import { typography } from \"@/utils\";\n\n/**\n * Height and typography scale variant for the {@link AppBar}.\n *\n * - `\"small\"`: Standard 64px single-row header with inline headline and actions.\n * - `\"medium\"`: Two-row header with prominent 36px title in the bottom row.\n * - `\"large\"`: Expressive two-row header with prominent 44px display title in the bottom row.\n */\nexport type AppBarSize = \"small\" | \"medium\" | \"large\";\n\n/**\n * Mapping of each {@link AppBarSize} variant to its corresponding typography class name.\n */\nexport const AppBarHeadlineTypography: Record<AppBarSize, string> = {\n small: typography.titleLarge,\n medium: typography.headlineMedium,\n large: typography.displaySmall,\n} as const;\n\n/**\n * Mapping of each {@link AppBarSize} variant to its headline container height (block-size in pixels).\n */\nexport const AppBarHeadlineBlockSize: Record<AppBarSize, number> = {\n small: 28,\n medium: 36,\n large: 44,\n} as const;\n"],"mappings":";;;AAqBA,IAAaC,IAAgBC,EAAwC,IAAI;AAQzE,SAAOC,IAAA;CACH,IAAAC,IAAgBC,EAAWJ,CAAa;CAExC,IAAI,CAACG,GACD,MAAU,MACN,uDACJ;CACH,OAEMA;AAAO;;;ACxBlB,IAAaE,IAAuD;CAChE,OAAON,EAAW;CAClB,QAAQA,EAAW;CACnB,OAAOA,EAAW;AACtB,GAKaO,IAAsD;CAC/D,OAAO;CACP,QAAQ;CACR,OAAO;AACX"}
@@ -1,3 +1,16 @@
1
+ /**
2
+ * Height and typography scale variant for the {@link AppBar}.
3
+ *
4
+ * - `"small"`: Standard 64px single-row header with inline headline and actions.
5
+ * - `"medium"`: Two-row header with prominent 36px title in the bottom row.
6
+ * - `"large"`: Expressive two-row header with prominent 44px display title in the bottom row.
7
+ */
1
8
  export type AppBarSize = "small" | "medium" | "large";
9
+ /**
10
+ * Mapping of each {@link AppBarSize} variant to its corresponding typography class name.
11
+ */
2
12
  export declare const AppBarHeadlineTypography: Record<AppBarSize, string>;
13
+ /**
14
+ * Mapping of each {@link AppBarSize} variant to its headline container height (block-size in pixels).
15
+ */
3
16
  export declare const AppBarHeadlineBlockSize: Record<AppBarSize, number>;
@@ -1,7 +1,7 @@
1
- import { AppBarState as e, AppBarStateContext as t } from "./AppBarState/index.js";
2
- import { AppBarContext as n, AppBarHeadlineBlockSize as r, AppBarHeadlineTypography as i, useAppBarContext as a } from "./core/index.js";
3
- import { t as o } from "../../chunks/AppBar";
4
- import { t as s } from "../../chunks/AppBarAction";
5
- import { t as c } from "../../chunks/AppBarAvatar";
6
- import { t as l } from "../../chunks/AppBarHeadline";
7
- export { o as AppBar, s as AppBarAction, c as AppBarAvatar, n as AppBarContext, l as AppBarHeadline, r as AppBarHeadlineBlockSize, i as AppBarHeadlineTypography, e as AppBarState, t as AppBarStateContext, a as useAppBarContext };
1
+ import { AppBarState as e, AppBarStateContext as t, useAppBarState as n } from "./AppBarState/index.js";
2
+ import { AppBarContext as r, AppBarHeadlineBlockSize as i, AppBarHeadlineTypography as a, useAppBarContext as o } from "./core/index.js";
3
+ import { t as s } from "../../chunks/AppBar";
4
+ import { t as c } from "../../chunks/AppBarAction";
5
+ import { t as l } from "../../chunks/AppBarAvatar";
6
+ import { t as u } from "../../chunks/AppBarHeadline";
7
+ export { s as AppBar, c as AppBarAction, l as AppBarAvatar, r as AppBarContext, u as AppBarHeadline, i as AppBarHeadlineBlockSize, a as AppBarHeadlineTypography, e as AppBarState, t as AppBarStateContext, o as useAppBarContext, n as useAppBarState };
@@ -1,2 +1,19 @@
1
1
  import { ButtonProps } from './types';
2
+ /**
3
+ * A standard action button component implementing Material Design 3 guidelines.
4
+ *
5
+ * Supports filled, tonal, outlined, elevated, and text visual color schemes,
6
+ * flexible sizing presets from extra-small to extra-large, leading or trailing icons,
7
+ * loading spinner substitution when pending, ripple splash effects, and integrated tooltips.
8
+ *
9
+ * Built on top of React Aria's `Button` for accessible keyboard, screen reader,
10
+ * and touch interaction.
11
+ *
12
+ * @example
13
+ * ```tsx
14
+ * <Button color="tonal" icon={Save} onPress={() => handleSave()}>
15
+ * Save
16
+ * </Button>
17
+ * ```
18
+ */
2
19
  export declare const Button: React.FC<ButtonProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["renderProps","iconSize","icon","handlePress"],"sources":["../../../../src/components/Button/Button/Button.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { ButtonProps } from \"./types\";\n\nexport const Button: React.FC<ButtonProps> = ({\n size,\n shape,\n color,\n tooltip,\n icon,\n children,\n onPress,\n iconPlacement,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize, buttonIconPlacement } =\n useButtonConfig({\n size,\n shape,\n color,\n iconPlacement,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...baseButtonDataAttrs}\n data-button\n >\n {(renderProps) => {\n const {\n isPending,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n ...baseButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[buttonSize];\n const iconComp = isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n );\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase,\n ButtonLabelTextMapping[buttonSize]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {buttonIconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {buttonIconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":"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"}
1
+ {"version":3,"file":"index.js","names":["renderProps","iconSize","icon","handlePress","_c","AriaButton","require_compiler_runtime","Icon","Loader","Splash","useSplash","ButtonLabelTextMapping","buttonSizeConfig","ButtonCore","ButtonReset","ButtonIconSizeMapping","buttonColorBase","useButtonConfig","ButtonSizeBase","newButtonBaseDataAttrs","withTooltip","buttonColorConfig","Button$1","import_compiler_runtime","Button","$","children","className","color","icon","iconPlacement","onPress","props","shape","size","tooltip","t0","t1","isChildFunc","t2","buttonColor","buttonShape","buttonSize","baseButtonDataAttrs","t3","clsx","TapTarget","renderProps","t4","buttonIconPlacement","splashInfo","renderProps_0","dataAttrs","isHovered","isDisabled","isFocused","isFocusVisible","isPressed","iconSize","iconComp","isPending","t5","handlePress","t6"],"sources":["../../../../src/components/Button/Button/Button.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { ButtonProps } from \"./types\";\n\n/**\n * A standard action button component implementing Material Design 3 guidelines.\n *\n * Supports filled, tonal, outlined, elevated, and text visual color schemes,\n * flexible sizing presets from extra-small to extra-large, leading or trailing icons,\n * loading spinner substitution when pending, ripple splash effects, and integrated tooltips.\n *\n * Built on top of React Aria's `Button` for accessible keyboard, screen reader,\n * and touch interaction.\n *\n * @example\n * ```tsx\n * <Button color=\"tonal\" icon={Save} onPress={() => handleSave()}>\n * Save\n * </Button>\n * ```\n */\nexport const Button: React.FC<ButtonProps> = ({\n size,\n shape,\n color,\n tooltip,\n icon,\n children,\n onPress,\n iconPlacement,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize, buttonIconPlacement } =\n useButtonConfig({\n size,\n shape,\n color,\n iconPlacement,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...baseButtonDataAttrs}\n data-button\n >\n {(renderProps) => {\n const {\n isPending,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n ...baseButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[buttonSize];\n const iconComp = isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n );\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase,\n ButtonLabelTextMapping[buttonSize]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {buttonIconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {buttonIconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":"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"}
@@ -1,4 +1,8 @@
1
1
  import { Button } from 'react-aria-components';
2
2
  import { ButtonBaseProps } from '../core';
3
+ /**
4
+ * Props for the {@link Button} component.
5
+ * Combines React Aria's {@link Button} props with shared {@link ButtonBaseProps}.
6
+ */
3
7
  export interface ButtonProps extends React.ComponentPropsWithRef<typeof Button>, ButtonBaseProps {
4
8
  }
@@ -1,2 +1,19 @@
1
1
  import { ButtonGroupProps } from './types';
2
+ /**
3
+ * A group container for related toggle buttons implementing Material Design 3 Button Groups.
4
+ *
5
+ * Displays buttons with consistent spacing and dynamic morphing padding animations when pressed.
6
+ * Provides size, shape, color, and icon placement down to child buttons via context.
7
+ *
8
+ * Built on top of React Aria's `ToggleButtonGroup` supporting single or multiple selection modes.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <ButtonGroup selectionMode="single" color="tonal">
13
+ * <ToggleButton id="left" icon={AlignLeft} aria-label="Align Left" />
14
+ * <ToggleButton id="center" icon={AlignCenter} aria-label="Align Center" />
15
+ * <ToggleButton id="right" icon={AlignRight} aria-label="Align Right" />
16
+ * </ButtonGroup>
17
+ * ```
18
+ */
2
19
  export declare const ButtonGroup: React.FC<ButtonGroupProps>;
@@ -1,8 +1,32 @@
1
1
  import { ToggleButtonGroup } from 'react-aria-components';
2
2
  import { ButtonIconPlacement, ButtonShape, ButtonSize, CoreButtonColor } from '../../core';
3
+ /**
4
+ * Props for the {@link ButtonGroup} component.
5
+ * Extends React Aria's {@link ToggleButtonGroup} (excluding orientation) with button styling presets.
6
+ */
3
7
  export interface ButtonGroupProps extends Omit<React.ComponentPropsWithRef<typeof ToggleButtonGroup>, "orientation"> {
8
+ /**
9
+ * Size preset inherited by buttons within the group.
10
+ *
11
+ * @default "small"
12
+ */
4
13
  size?: ButtonSize;
14
+ /**
15
+ * Corner rounding shape inherited by buttons within the group.
16
+ *
17
+ * @default "round"
18
+ */
5
19
  shape?: ButtonShape;
20
+ /**
21
+ * Visual color style variant inherited by buttons within the group.
22
+ *
23
+ * @default "filled"
24
+ */
6
25
  color?: CoreButtonColor;
26
+ /**
27
+ * Default icon placement relative to label for buttons within the group.
28
+ *
29
+ * @default "start"
30
+ */
7
31
  iconPlacement?: ButtonIconPlacement;
8
32
  }
@@ -1,15 +1,37 @@
1
1
  import { ButtonIconPlacement, ButtonShape, ButtonSize, ConnectedButtonGroupColor, CoreButtonColor } from '../../core';
2
+ /**
3
+ * Configuration options provided by a standard {@link ButtonGroup} to its descendant buttons.
4
+ */
2
5
  export type ButtonGroupContextValue = {
6
+ /** Preset size inherited by child buttons. */
3
7
  size?: ButtonSize;
8
+ /** Corner rounding shape inherited by child buttons. */
4
9
  shape?: ButtonShape;
10
+ /** Visual color style variant inherited by child buttons. */
5
11
  color?: CoreButtonColor;
12
+ /** Icon placement relative to label inherited by child buttons. */
6
13
  iconPlacement?: ButtonIconPlacement;
7
14
  };
15
+ /**
16
+ * React Context providing styling and layout configuration from an ancestor `ButtonGroup`
17
+ * to child buttons.
18
+ */
8
19
  export declare const ButtonGroupContext: import('react').Context<ButtonGroupContextValue>;
20
+ /**
21
+ * Configuration options provided by a {@link ConnectedButtonGroup} to nested {@link ConnectedButton}s.
22
+ */
9
23
  export type ConnectedButtonGroupContextValue = {
24
+ /** Uniform size preset for connected buttons. */
10
25
  size: ButtonSize;
26
+ /** Uniform corner shape preset for the connected group boundary. */
11
27
  shape: ButtonShape;
28
+ /** Visual color style variant applied across connected buttons. */
12
29
  color: ConnectedButtonGroupColor;
30
+ /** Default icon placement relative to label for connected buttons. */
13
31
  iconPlacement?: ButtonIconPlacement;
14
32
  };
33
+ /**
34
+ * React Context providing required size, shape, and color styling from an ancestor
35
+ * `ConnectedButtonGroup` to its child `ConnectedButton` elements.
36
+ */
15
37
  export declare const ConnectedButtonGroupContext: import('react').Context<ConnectedButtonGroupContextValue>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Button/ButtonGroups/ButtonGroupContext/context.ts","../../../../../src/components/Button/ButtonGroups/ButtonGroupContext/useButtonGroupContext.ts","../../../../../src/components/Button/ButtonGroups/ButtonGroupContext/useConnectedButtonGroupContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type {\n ButtonIconPlacement,\n ButtonShape,\n ButtonSize,\n ConnectedButtonGroupColor,\n CoreButtonColor,\n} from \"../../core\";\n\nexport type ButtonGroupContextValue = {\n size?: ButtonSize;\n shape?: ButtonShape;\n color?: CoreButtonColor;\n iconPlacement?: ButtonIconPlacement;\n};\n\nexport const ButtonGroupContext = createContext<ButtonGroupContextValue>({});\n\nexport type ConnectedButtonGroupContextValue = {\n size: ButtonSize;\n shape: ButtonShape;\n color: ConnectedButtonGroupColor;\n iconPlacement?: ButtonIconPlacement;\n};\n\nexport const ConnectedButtonGroupContext =\n createContext<ConnectedButtonGroupContextValue>({\n size: \"small\",\n shape: \"round\",\n color: \"filled\",\n });\n","import { useContext } from \"react\";\nimport { ButtonGroupContext } from \"./context\";\n\nexport function useButtonGroupContext() {\n return useContext(ButtonGroupContext);\n}\n","import { useContext } from \"react\";\nimport { ConnectedButtonGroupContext } from \"./context\";\n\nexport function useConnectedButtonGroupContext() {\n return useContext(ConnectedButtonGroupContext);\n}\n"],"mappings":";;AAgBA,IAAa,IAAqB,EAAuC,CAAC,CAAC,GAS9D,IACT,EAAgD;CAC5C,MAAM;CACN,OAAO;CACP,OAAO;AACX,CAAC;;;AC3BL,SAAO,IAAA;CAAA,OACI,EAAW,CAAkB;AAAC;;;ACDzC,SAAO,IAAA;CAAA,OACI,EAAW,CAA2B;AAAC"}
1
+ {"version":3,"file":"index.js","names":["ButtonGroupContext","createContext","ConnectedButtonGroupContext","useButtonGroupContext","useContext","useConnectedButtonGroupContext"],"sources":["../../../../../src/components/Button/ButtonGroups/ButtonGroupContext/context.ts","../../../../../src/components/Button/ButtonGroups/ButtonGroupContext/useButtonGroupContext.ts","../../../../../src/components/Button/ButtonGroups/ButtonGroupContext/useConnectedButtonGroupContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type {\n ButtonIconPlacement,\n ButtonShape,\n ButtonSize,\n ConnectedButtonGroupColor,\n CoreButtonColor,\n} from \"../../core\";\n\n/**\n * Configuration options provided by a standard {@link ButtonGroup} to its descendant buttons.\n */\nexport type ButtonGroupContextValue = {\n /** Preset size inherited by child buttons. */\n size?: ButtonSize;\n /** Corner rounding shape inherited by child buttons. */\n shape?: ButtonShape;\n /** Visual color style variant inherited by child buttons. */\n color?: CoreButtonColor;\n /** Icon placement relative to label inherited by child buttons. */\n iconPlacement?: ButtonIconPlacement;\n};\n\n/**\n * React Context providing styling and layout configuration from an ancestor `ButtonGroup`\n * to child buttons.\n */\nexport const ButtonGroupContext = createContext<ButtonGroupContextValue>({});\n\n/**\n * Configuration options provided by a {@link ConnectedButtonGroup} to nested {@link ConnectedButton}s.\n */\nexport type ConnectedButtonGroupContextValue = {\n /** Uniform size preset for connected buttons. */\n size: ButtonSize;\n /** Uniform corner shape preset for the connected group boundary. */\n shape: ButtonShape;\n /** Visual color style variant applied across connected buttons. */\n color: ConnectedButtonGroupColor;\n /** Default icon placement relative to label for connected buttons. */\n iconPlacement?: ButtonIconPlacement;\n};\n\n/**\n * React Context providing required size, shape, and color styling from an ancestor\n * `ConnectedButtonGroup` to its child `ConnectedButton` elements.\n */\nexport const ConnectedButtonGroupContext =\n createContext<ConnectedButtonGroupContextValue>({\n size: \"small\",\n shape: \"round\",\n color: \"filled\",\n });\n","import { useContext } from \"react\";\nimport { ButtonGroupContext } from \"./context\";\n\n/**\n * Accesses the enclosing {@link ButtonGroupContext} values.\n *\n * @returns The inherited configuration from the nearest ancestor `ButtonGroup`, or an empty object if unnested.\n */\nexport function useButtonGroupContext() {\n return useContext(ButtonGroupContext);\n}\n","import { useContext } from \"react\";\nimport { ConnectedButtonGroupContext } from \"./context\";\n\n/**\n * Accesses the enclosing {@link ConnectedButtonGroupContext} values.\n *\n * @returns The configuration provided by the enclosing `ConnectedButtonGroup`. Defaults to small/round/filled if unnested.\n */\nexport function useConnectedButtonGroupContext() {\n return useContext(ConnectedButtonGroupContext);\n}\n"],"mappings":";;AA2BA,IAAaA,IAAqBC,EAAuC,CAAC,CAAC,GAoB9DC,IACTD,EAAgD;CAC5C,MAAM;CACN,OAAO;CACP,OAAO;AACX,CAAC;;;AC5CL,SAAOE,IAAA;CAAA,OACIC,EAAWJ,CAAkB;AAAC;;;ACDzC,SAAOK,IAAA;CAAA,OACID,EAAWF,CAA2B;AAAC"}
@@ -1 +1,6 @@
1
+ /**
2
+ * Accesses the enclosing {@link ButtonGroupContext} values.
3
+ *
4
+ * @returns The inherited configuration from the nearest ancestor `ButtonGroup`, or an empty object if unnested.
5
+ */
1
6
  export declare function useButtonGroupContext(): import('./context').ButtonGroupContextValue;
@@ -1 +1,6 @@
1
+ /**
2
+ * Accesses the enclosing {@link ConnectedButtonGroupContext} values.
3
+ *
4
+ * @returns The configuration provided by the enclosing `ConnectedButtonGroup`. Defaults to small/round/filled if unnested.
5
+ */
1
6
  export declare function useConnectedButtonGroupContext(): import('./context').ConnectedButtonGroupContextValue;
@@ -1,2 +1,15 @@
1
1
  import { ConnectedButtonProps } from './types';
2
+ /**
3
+ * An individual toggle button designed for use inside a {@link ConnectedButtonGroup}.
4
+ *
5
+ * Inherits size, shape, and color styling from the parent `ConnectedButtonGroupContext`,
6
+ * rendering border lines and corner radii coordinated with its neighboring buttons in the segment.
7
+ *
8
+ * Built on top of React Aria's `ToggleButton`.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <ConnectedButton id="bold" icon={Bold} aria-label="Bold text" />
13
+ * ```
14
+ */
2
15
  export declare const ConnectedButton: React.FC<ConnectedButtonProps>;
@@ -1,8 +1,26 @@
1
1
  import { LucideIcon } from 'lucide-react';
2
2
  import { ToggleButton } from 'react-aria-components';
3
3
  import { ButtonIconPlacement } from '../../core';
4
- export interface ConnectedButtonProps extends Omit<React.ComponentPropsWithRef<typeof ToggleButton>, "className"> {
4
+ /**
5
+ * Props for the {@link ConnectedButton} component.
6
+ * Extends React Aria's {@link ToggleButton} props with toggle icon, placement, and tooltip support.
7
+ */
8
+ export interface ConnectedButtonProps extends React.ComponentPropsWithRef<typeof ToggleButton> {
9
+ /**
10
+ * An optional icon to display within the button.
11
+ */
5
12
  icon?: LucideIcon;
13
+ /**
14
+ * An optional icon to display when the button is in the selected (`isSelected = true`) state.
15
+ * If omitted, {@link icon} is used for both states.
16
+ */
6
17
  selectedIcon?: LucideIcon;
18
+ /**
19
+ * Overrides the group's default icon placement relative to label.
20
+ */
7
21
  iconPlacement?: ButtonIconPlacement;
22
+ /**
23
+ * Optional tooltip text displayed on hover/focus.
24
+ */
25
+ tooltip?: string;
8
26
  }
@@ -1,2 +1,20 @@
1
1
  import { ConnectedButtonGroupProps } from './types';
2
+ /**
3
+ * A container that visually connects toggle buttons into a single segmented control.
4
+ *
5
+ * Implements connected Material Design 3 Button Groups, merging borders between adjacent buttons
6
+ * and shaping the outer corners to form a unified segmented unit.
7
+ *
8
+ * Built on top of React Aria's `ToggleButtonGroup` supporting single or multiple selection modes.
9
+ * Must be used in conjunction with {@link ConnectedButton}.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * <ConnectedButtonGroup selectionMode="multiple" color="outlined">
14
+ * <ConnectedButton id="bold" icon={Bold} aria-label="Bold" />
15
+ * <ConnectedButton id="italic" icon={Italic} aria-label="Italic" />
16
+ * <ConnectedButton id="underline" icon={Underline} aria-label="Underline" />
17
+ * </ConnectedButtonGroup>
18
+ * ```
19
+ */
2
20
  export declare const ConnectedButtonGroup: React.FC<ConnectedButtonGroupProps>;
@@ -1,8 +1,32 @@
1
1
  import { ToggleButtonGroup } from 'react-aria-components';
2
2
  import { ButtonIconPlacement, ButtonShape, ButtonSize, ConnectedButtonGroupColor } from '../../core';
3
+ /**
4
+ * Props for the {@link ConnectedButtonGroup} component.
5
+ * Extends React Aria's {@link ToggleButtonGroup} (excluding orientation) with connected button styling presets.
6
+ */
3
7
  export interface ConnectedButtonGroupProps extends Omit<React.ComponentPropsWithRef<typeof ToggleButtonGroup>, "orientation"> {
8
+ /**
9
+ * Size preset applied across all connected buttons in the group.
10
+ *
11
+ * @default "small"
12
+ */
4
13
  size?: ButtonSize;
14
+ /**
15
+ * Corner rounding shape for the outer boundaries of the connected group.
16
+ *
17
+ * @default "round"
18
+ */
5
19
  shape?: ButtonShape;
20
+ /**
21
+ * Visual color style variant applied to buttons in the connected group.
22
+ *
23
+ * @default "filled"
24
+ */
6
25
  color?: ConnectedButtonGroupColor;
26
+ /**
27
+ * Default icon placement relative to label for connected buttons.
28
+ *
29
+ * @default "start"
30
+ */
7
31
  iconPlacement?: ButtonIconPlacement;
8
32
  }
@@ -1,2 +1,23 @@
1
1
  import { IconButtonProps } from './types';
2
+ /**
3
+ * A compact, icon-only button implementing Material Design 3 Icon Buttons.
4
+ *
5
+ * Designed for space-constrained UI elements, actions, toolbars, and controls that can
6
+ * be clearly represented by an icon alone. Automatically swaps the icon with a `Loader`
7
+ * spinner when `isPending` is active.
8
+ *
9
+ * Extends React Aria's `Button`. Always provide an accessible `aria-label` or `aria-labelledby`
10
+ * attribute for screen reader accessibility.
11
+ *
12
+ * @example
13
+ * ```tsx
14
+ * <IconButton
15
+ * icon={Settings}
16
+ * color="tonal"
17
+ * tooltip="Settings"
18
+ * aria-label="Settings"
19
+ * onPress={() => openSettings()}
20
+ * />
21
+ * ```
22
+ */
2
23
  export declare const IconButton: React.FC<IconButtonProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/IconButton/IconButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n IconButtonIconSizeMapping,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { IconButtonProps } from \"./types\";\n\nexport const IconButton: React.FC<IconButtonProps> = ({\n size,\n shape,\n color,\n width = \"default\",\n tooltip,\n icon,\n onPress,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize } = useButtonConfig({\n size,\n shape,\n color,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const iconButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-width\": width,\n \"data-icon-button\": true,\n };\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...iconButtonDataAttrs}\n data-button\n >\n {({\n isPending,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n }) => {\n const dataAttrs = {\n ...iconButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = IconButtonIconSizeMapping[buttonSize];\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n {isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n )}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;AAqBA,IAAa,KAAyC,EAClD,SACA,UACA,UACA,WAAQ,WACR,YACA,SACA,YACA,cACA,GAAG,QACD;CACF,IAAM,EAAE,gBAAa,gBAAa,kBAAe,EAAgB;EAC7D;EACA;EACA;CACJ,CAAC,GAEK,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAQ/C,IAAsB;EACxB,GAPwB,EAAuB;GAC/C,OAAO;GACP,MAAM;GACN,OAAO;EACX,CAGO;EACH,cAAc;EACd,oBAAoB;CACxB;CAEA,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YAAY,MACR,EACI,GACA,GACA,EAAiB,CAAU,GAC3B,EAAkB,CAAW,GAC7B,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,GAAI;EACJ,GAAI;EACJ,eAAA;aAEE,EACE,cACA,eACA,mBACA,cACA,cACA,mBACE;GACF,IAAM,IAAY;IACd,GAAG;IACH,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEM,IAAW,EAA0B;GAC3C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,CACJ;IACA,GAAI;cANR,CAQK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAW,CAAA,GACrC,IACG,kBAAC,GAAD,EAAQ,MAAM,EAAS,CAAA,IAEvB,KAAQ,kBAAC,GAAD;KAAY;KAAM,MAAM;IAAS,CAAA,CAE3C;;EAEd;CACQ,CAAA,GACZ,CACJ;AACJ"}
1
+ {"version":3,"file":"index.js","names":["AriaButton","TapTarget","Loader","Splash","useSplash","buttonSizeConfig","ButtonCore","ButtonReset","buttonColorBase","useButtonConfig","ButtonSizeBase","newButtonBaseDataAttrs","IconButtonIconSizeMapping","withTooltip","buttonColorConfig","IconButton","props","onPress","iconButtonDataAttrs","buttonShape","buttonSize","buttonColor","width","Button","handlePress","clsx","className","renderProps","dataAttrs","isHovered","isDisabled","isFocused","isFocusVisible","isPressed","iconSize","splashInfo","isPending","icon","Icon","tooltip"],"sources":["../../../../src/components/Button/IconButton/IconButton.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n ButtonSizeBase,\n buttonColorBase,\n buttonColorConfig,\n buttonSizeConfig,\n IconButtonIconSizeMapping,\n newButtonBaseDataAttrs,\n useButtonConfig,\n withTooltip,\n} from \"../core\";\nimport type { IconButtonProps } from \"./types\";\n\n/**\n * A compact, icon-only button implementing Material Design 3 Icon Buttons.\n *\n * Designed for space-constrained UI elements, actions, toolbars, and controls that can\n * be clearly represented by an icon alone. Automatically swaps the icon with a `Loader`\n * spinner when `isPending` is active.\n *\n * Extends React Aria's `Button`. Always provide an accessible `aria-label` or `aria-labelledby`\n * attribute for screen reader accessibility.\n *\n * @example\n * ```tsx\n * <IconButton\n * icon={Settings}\n * color=\"tonal\"\n * tooltip=\"Settings\"\n * aria-label=\"Settings\"\n * onPress={() => openSettings()}\n * />\n * ```\n */\nexport const IconButton: React.FC<IconButtonProps> = ({\n size,\n shape,\n color,\n width = \"default\",\n tooltip,\n icon,\n onPress,\n className,\n ...props\n}) => {\n const { buttonColor, buttonShape, buttonSize } = useButtonConfig({\n size,\n shape,\n color,\n });\n\n const { splashInfo, handlePress } = useSplash(onPress);\n\n const baseButtonDataAttrs = newButtonBaseDataAttrs({\n shape: buttonShape,\n size: buttonSize,\n color: buttonColor,\n });\n\n const iconButtonDataAttrs = {\n ...baseButtonDataAttrs,\n \"data-width\": width,\n \"data-icon-button\": true,\n };\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n buttonSizeConfig(buttonSize),\n buttonColorConfig(buttonColor),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n {...iconButtonDataAttrs}\n data-button\n >\n {({\n isPending,\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n }) => {\n const dataAttrs = {\n ...iconButtonDataAttrs,\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = IconButtonIconSizeMapping[buttonSize];\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonSizeBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n {isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n )}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;AA0CA,IAAae,KAAyC,EAClD,SACA,UACA,UACA,WAAQ,WACR,YACA,SACA,YACA,cACA,GAAGC,QACD;CACF,IAAM,EAAE,gBAAa,gBAAa,kBAAeP,EAAgB;EAC7D;EACA;EACA;CACJ,CAAC,GAEK,EAAE,eAAY,mBAAgBL,EAAUa,CAAO,GAQ/CC,IAAsB;EACxB,GAPwBP,EAAuB;GAC/C,OAAOQ;GACP,MAAMC;GACN,OAAOC;EACX,CAGO;EACH,cAAcC;EACd,oBAAoB;CACxB;CAEA,OAAOT,EACH,kBAACb,GAAD;EACI,SAASwB;EACT,YAAY,MACRC,EACIlB,GACAN,GACAI,EAAiBe,CAAU,GAC3BN,EAAkBO,CAAW,GAC7B,OAAOK,KAAc,aACfA,EAAUC,CAAW,IACrBD,CACV;EAEJ,GAAIV;EACJ,GAAIE;EACJ,eAAA;EAEE,WAAA,EACE,cACA,eACA,mBACA,cACA,cACA,mBACE;GACF,IAAMU,IAAY;IACd,GAAGV;IACH,gBAAgBW,KAAa,KAAA;IAC7B,iBAAiBC,KAAc,KAAA;IAC/B,gBAAgBC,KAAa,KAAA;IAC7B,sBAAsBC,KAAkB,KAAA;IACxC,gBAAgBC,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEMC,IAAWtB,EAA0BQ;GAC3C,OACI,kBAAC,QAAD;IACI,WAAWK,EACPnB,GACAE,GACAE,CACJ;IACA,GAAIkB;IANR,UAAA,CAQKO,KAAc,kBAAChC,GAAD,EAAQ,GAAIgC,EAAW,CAAA,GACrCC,IACG,kBAAClC,GAAD,EAAQ,MAAMgC,EAAS,CAAA,IAEvBG,KAAQ,kBAACC,GAAD;KAAY;KAAM,MAAMJ;IAAS,CAAA,CAE3C;;EAEd;CACQ,CAAA,GACZK,CACJ;AACJ"}
@@ -1,4 +1,8 @@
1
1
  import { Button } from 'react-aria-components';
2
2
  import { IconButtonBaseProps } from '../core';
3
+ /**
4
+ * Props for the {@link IconButton} component.
5
+ * Combines React Aria's {@link Button} props (omitting `children`) with {@link IconButtonBaseProps}.
6
+ */
3
7
  export interface IconButtonProps extends Omit<React.ComponentPropsWithRef<typeof Button>, "children">, IconButtonBaseProps {
4
8
  }
@@ -1,2 +1,17 @@
1
1
  import { LinkButtonProps } from './types';
2
+ /**
3
+ * A link component styled to look and behave like a Material Design 3 button.
4
+ *
5
+ * Used for navigation actions that should visually appear as standard buttons.
6
+ * Renders an accessible anchor element underneath via React Aria's `Link`,
7
+ * supporting native link behaviors (`href`, `target`, `rel`), keyboard activation,
8
+ * ripple splash animations, icons, and tooltips.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <LinkButton href="https://example.com" target="_blank" icon={ExternalLink} iconPlacement="end">
13
+ * Visit Website
14
+ * </LinkButton>
15
+ * ```
16
+ */
2
17
  export declare const LinkButton: React.FC<LinkButtonProps>;