@gamecrafters/base-ui 0.0.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 (535) hide show
  1. package/LICENSE +21 -0
  2. package/build/components/accordion/Accordion.d.ts +12 -0
  3. package/build/components/accordion/Accordion.types.d.ts +38 -0
  4. package/build/components/accordion/AccordionContext.d.ts +2 -0
  5. package/build/components/accordion/AccordionHeader.d.ts +6 -0
  6. package/build/components/accordion/AccordionItem.d.ts +9 -0
  7. package/build/components/accordion/AccordionItemContext.d.ts +2 -0
  8. package/build/components/accordion/AccordionPanel.d.ts +7 -0
  9. package/build/components/accordion/index.d.ts +34 -0
  10. package/build/components/action-bar/ActionBar.d.ts +7 -0
  11. package/build/components/action-bar/ActionBar.types.d.ts +57 -0
  12. package/build/components/action-bar/ActionBarButton.d.ts +5 -0
  13. package/build/components/action-bar/ActionBarContext.d.ts +2 -0
  14. package/build/components/action-bar/ActionBarDivider.d.ts +7 -0
  15. package/build/components/action-bar/ActionBarGroup.d.ts +7 -0
  16. package/build/components/action-bar/ActionBarIconButton.d.ts +4 -0
  17. package/build/components/action-bar/ActionBarItemContext.d.ts +2 -0
  18. package/build/components/action-bar/ActionBarMenu.d.ts +9 -0
  19. package/build/components/action-bar/ActionBarMenuItems.d.ts +5 -0
  20. package/build/components/action-bar/index.d.ts +25 -0
  21. package/build/components/action-bar/useActionBarItem.d.ts +5 -0
  22. package/build/components/action-list/ActionList.d.ts +12 -0
  23. package/build/components/action-list/ActionList.types.d.ts +95 -0
  24. package/build/components/action-list/ActionListContainerContext.d.ts +2 -0
  25. package/build/components/action-list/ActionListContext.d.ts +2 -0
  26. package/build/components/action-list/ActionListDescription.d.ts +7 -0
  27. package/build/components/action-list/ActionListDivider.d.ts +7 -0
  28. package/build/components/action-list/ActionListGroup.d.ts +7 -0
  29. package/build/components/action-list/ActionListGroupContext.d.ts +2 -0
  30. package/build/components/action-list/ActionListGroupHeading.d.ts +5 -0
  31. package/build/components/action-list/ActionListHeading.d.ts +9 -0
  32. package/build/components/action-list/ActionListItem.d.ts +15 -0
  33. package/build/components/action-list/ActionListItemContext.d.ts +2 -0
  34. package/build/components/action-list/ActionListLeadingVisual.d.ts +7 -0
  35. package/build/components/action-list/ActionListLinkItem.d.ts +3 -0
  36. package/build/components/action-list/ActionListSelection.d.ts +7 -0
  37. package/build/components/action-list/ActionListSubItem.d.ts +6 -0
  38. package/build/components/action-list/ActionListTrailingAction.d.ts +7 -0
  39. package/build/components/action-list/ActionListTrailingVisual.d.ts +7 -0
  40. package/build/components/action-list/ActionListVisual.d.ts +3 -0
  41. package/build/components/action-list/index.d.ts +59 -0
  42. package/build/components/action-menu/ActionMenu.d.ts +7 -0
  43. package/build/components/action-menu/ActionMenu.types.d.ts +29 -0
  44. package/build/components/action-menu/ActionMenuAnchor.d.ts +7 -0
  45. package/build/components/action-menu/ActionMenuButton.d.ts +7 -0
  46. package/build/components/action-menu/ActionMenuContext.d.ts +2 -0
  47. package/build/components/action-menu/ActionMenuOverlay.d.ts +7 -0
  48. package/build/components/action-menu/index.d.ts +14 -0
  49. package/build/components/alert/Alert.d.ts +9 -0
  50. package/build/components/alert/Alert.types.d.ts +7 -0
  51. package/build/components/alert/index.d.ts +2 -0
  52. package/build/components/anchored-overlay/AnchoredOverlay.d.ts +7 -0
  53. package/build/components/anchored-overlay/AnchoredOverlay.types.d.ts +58 -0
  54. package/build/components/anchored-overlay/index.d.ts +2 -0
  55. package/build/components/autocomplete/Autocomplete.d.ts +7 -0
  56. package/build/components/autocomplete/Autocomplete.types.d.ts +77 -0
  57. package/build/components/autocomplete/AutocompleteContext.d.ts +4 -0
  58. package/build/components/autocomplete/AutocompleteInput.d.ts +6 -0
  59. package/build/components/autocomplete/AutocompleteMenu.d.ts +7 -0
  60. package/build/components/autocomplete/AutocompleteOverlay.d.ts +7 -0
  61. package/build/components/autocomplete/index.d.ts +15 -0
  62. package/build/components/avatar/Avatar.d.ts +11 -0
  63. package/build/components/avatar/Avatar.types.d.ts +10 -0
  64. package/build/components/avatar/index.d.ts +2 -0
  65. package/build/components/avatar-stack/AvatarStack.d.ts +14 -0
  66. package/build/components/avatar-stack/AvatarStack.types.d.ts +12 -0
  67. package/build/components/avatar-stack/index.d.ts +2 -0
  68. package/build/components/banner/Banner.d.ts +17 -0
  69. package/build/components/banner/Banner.types.d.ts +33 -0
  70. package/build/components/banner/BannerContext.d.ts +2 -0
  71. package/build/components/banner/BannerDescription.d.ts +5 -0
  72. package/build/components/banner/BannerPrimaryAction.d.ts +3 -0
  73. package/build/components/banner/BannerSecondaryAction.d.ts +3 -0
  74. package/build/components/banner/BannerTitle.d.ts +6 -0
  75. package/build/components/banner/index.d.ts +31 -0
  76. package/build/components/blankslate/Blankslate.d.ts +12 -0
  77. package/build/components/blankslate/Blankslate.types.d.ts +28 -0
  78. package/build/components/blankslate/BlankslateAction.d.ts +5 -0
  79. package/build/components/blankslate/BlankslateDescription.d.ts +5 -0
  80. package/build/components/blankslate/BlankslateHeading.d.ts +6 -0
  81. package/build/components/blankslate/BlankslatePrimaryAction.d.ts +5 -0
  82. package/build/components/blankslate/BlankslateSecondaryAction.d.ts +7 -0
  83. package/build/components/blankslate/BlankslateVisual.d.ts +5 -0
  84. package/build/components/blankslate/index.d.ts +35 -0
  85. package/build/components/breadcrumbs/Breadcrumbs.d.ts +7 -0
  86. package/build/components/breadcrumbs/Breadcrumbs.types.d.ts +17 -0
  87. package/build/components/breadcrumbs/BreadcrumbsContext.d.ts +5 -0
  88. package/build/components/breadcrumbs/BreadcrumbsItem.d.ts +8 -0
  89. package/build/components/breadcrumbs/BreadcrumbsOverflowMenu.d.ts +7 -0
  90. package/build/components/breadcrumbs/index.d.ts +13 -0
  91. package/build/components/button/Button.d.ts +5 -0
  92. package/build/components/button/Button.types.d.ts +24 -0
  93. package/build/components/button/ButtonBase.d.ts +25 -0
  94. package/build/components/button/index.d.ts +2 -0
  95. package/build/components/button-group/ButtonGroup.d.ts +7 -0
  96. package/build/components/button-group/ButtonGroup.types.d.ts +5 -0
  97. package/build/components/button-group/index.d.ts +2 -0
  98. package/build/components/calendar/Calendar.d.ts +4 -0
  99. package/build/components/calendar/Calendar.types.d.ts +75 -0
  100. package/build/components/calendar/CalendarDay.d.ts +14 -0
  101. package/build/components/calendar/calendarDates.d.ts +21 -0
  102. package/build/components/calendar/index.d.ts +18 -0
  103. package/build/components/card/Card.d.ts +11 -0
  104. package/build/components/card/Card.types.d.ts +37 -0
  105. package/build/components/card/CardAction.d.ts +5 -0
  106. package/build/components/card/CardContext.d.ts +2 -0
  107. package/build/components/card/CardDescription.d.ts +5 -0
  108. package/build/components/card/CardHeading.d.ts +6 -0
  109. package/build/components/card/CardIcon.d.ts +6 -0
  110. package/build/components/card/CardImage.d.ts +5 -0
  111. package/build/components/card/CardMetadata.d.ts +5 -0
  112. package/build/components/card/index.d.ts +37 -0
  113. package/build/components/carousel/Carousel.d.ts +4 -0
  114. package/build/components/carousel/Carousel.types.d.ts +47 -0
  115. package/build/components/carousel/CarouselContext.d.ts +3 -0
  116. package/build/components/carousel/CarouselControls.d.ts +5 -0
  117. package/build/components/carousel/CarouselIndicators.d.ts +5 -0
  118. package/build/components/carousel/CarouselNextButton.d.ts +5 -0
  119. package/build/components/carousel/CarouselPlayButton.d.ts +5 -0
  120. package/build/components/carousel/CarouselPreviousButton.d.ts +5 -0
  121. package/build/components/carousel/CarouselSlide.d.ts +5 -0
  122. package/build/components/carousel/index.d.ts +29 -0
  123. package/build/components/chart/Chart.d.ts +21 -0
  124. package/build/components/chart/Chart.types.d.ts +59 -0
  125. package/build/components/chart/ChartLegend.d.ts +6 -0
  126. package/build/components/chart/ChartTooltip.d.ts +8 -0
  127. package/build/components/chart/chartPalette.d.ts +3 -0
  128. package/build/components/chart/chartScales.d.ts +36 -0
  129. package/build/components/chart/index.d.ts +36 -0
  130. package/build/components/chart/useChartWidth.d.ts +2 -0
  131. package/build/components/checkbox/Checkbox.d.ts +8 -0
  132. package/build/components/checkbox/Checkbox.types.d.ts +8 -0
  133. package/build/components/checkbox/index.d.ts +2 -0
  134. package/build/components/checkbox-group/CheckboxGroup.d.ts +9 -0
  135. package/build/components/checkbox-group/CheckboxGroup.types.d.ts +28 -0
  136. package/build/components/checkbox-group/CheckboxGroupCaption.d.ts +5 -0
  137. package/build/components/checkbox-group/CheckboxGroupContext.d.ts +2 -0
  138. package/build/components/checkbox-group/CheckboxGroupLabel.d.ts +6 -0
  139. package/build/components/checkbox-group/CheckboxGroupValidation.d.ts +7 -0
  140. package/build/components/checkbox-group/index.d.ts +25 -0
  141. package/build/components/collapsible/Collapsible.d.ts +10 -0
  142. package/build/components/collapsible/Collapsible.types.d.ts +25 -0
  143. package/build/components/collapsible/CollapsibleContent.d.ts +7 -0
  144. package/build/components/collapsible/CollapsibleContext.d.ts +2 -0
  145. package/build/components/collapsible/CollapsibleTrigger.d.ts +6 -0
  146. package/build/components/collapsible/index.d.ts +23 -0
  147. package/build/components/command-palette/CommandPalette.d.ts +16 -0
  148. package/build/components/command-palette/CommandPalette.types.d.ts +81 -0
  149. package/build/components/command-palette/CommandPaletteContext.d.ts +3 -0
  150. package/build/components/command-palette/CommandPaletteDialog.d.ts +21 -0
  151. package/build/components/command-palette/CommandPaletteEmpty.d.ts +5 -0
  152. package/build/components/command-palette/CommandPaletteGroup.d.ts +7 -0
  153. package/build/components/command-palette/CommandPaletteInput.d.ts +5 -0
  154. package/build/components/command-palette/CommandPaletteItem.d.ts +10 -0
  155. package/build/components/command-palette/CommandPaletteList.d.ts +6 -0
  156. package/build/components/command-palette/CommandPaletteLoading.d.ts +6 -0
  157. package/build/components/command-palette/CommandPaletteSeparator.d.ts +6 -0
  158. package/build/components/command-palette/commandScore.d.ts +1 -0
  159. package/build/components/command-palette/index.d.ts +77 -0
  160. package/build/components/confirmation-dialog/ConfirmationDialog.d.ts +17 -0
  161. package/build/components/confirmation-dialog/ConfirmationDialog.types.d.ts +21 -0
  162. package/build/components/confirmation-dialog/index.d.ts +3 -0
  163. package/build/components/confirmation-dialog/useConfirm.d.ts +2 -0
  164. package/build/components/counter-label/CounterLabel.d.ts +9 -0
  165. package/build/components/counter-label/CounterLabel.types.d.ts +7 -0
  166. package/build/components/counter-label/index.d.ts +2 -0
  167. package/build/components/data-table/DataTable.d.ts +4 -0
  168. package/build/components/data-table/DataTable.types.d.ts +118 -0
  169. package/build/components/data-table/Table.d.ts +10 -0
  170. package/build/components/data-table/TableActions.d.ts +5 -0
  171. package/build/components/data-table/TableBody.d.ts +5 -0
  172. package/build/components/data-table/TableCell.d.ts +7 -0
  173. package/build/components/data-table/TableCellPlaceholder.d.ts +5 -0
  174. package/build/components/data-table/TableContainer.d.ts +7 -0
  175. package/build/components/data-table/TableDivider.d.ts +5 -0
  176. package/build/components/data-table/TableErrorDialog.d.ts +9 -0
  177. package/build/components/data-table/TableHead.d.ts +5 -0
  178. package/build/components/data-table/TableHeader.d.ts +6 -0
  179. package/build/components/data-table/TablePagination.d.ts +16 -0
  180. package/build/components/data-table/TableRow.d.ts +5 -0
  181. package/build/components/data-table/TableSkeleton.d.ts +10 -0
  182. package/build/components/data-table/TableSortHeader.d.ts +9 -0
  183. package/build/components/data-table/TableSubtitle.d.ts +8 -0
  184. package/build/components/data-table/TableTitle.d.ts +8 -0
  185. package/build/components/data-table/column.d.ts +4 -0
  186. package/build/components/data-table/index.d.ts +103 -0
  187. package/build/components/data-table/sorting.d.ts +8 -0
  188. package/build/components/data-table/tableLayout.d.ts +4 -0
  189. package/build/components/data-table/useTable.d.ts +35 -0
  190. package/build/components/date-picker/DatePicker.d.ts +4 -0
  191. package/build/components/date-picker/DatePicker.types.d.ts +41 -0
  192. package/build/components/date-picker/index.d.ts +2 -0
  193. package/build/components/details/Details.d.ts +9 -0
  194. package/build/components/details/Details.types.d.ts +12 -0
  195. package/build/components/details/DetailsSummary.d.ts +7 -0
  196. package/build/components/details/index.d.ts +16 -0
  197. package/build/components/dialog/Dialog.d.ts +20 -0
  198. package/build/components/dialog/Dialog.types.d.ts +69 -0
  199. package/build/components/dialog/DialogBody.d.ts +7 -0
  200. package/build/components/dialog/DialogButtons.d.ts +7 -0
  201. package/build/components/dialog/DialogCloseButton.d.ts +6 -0
  202. package/build/components/dialog/DialogContext.d.ts +2 -0
  203. package/build/components/dialog/DialogFooter.d.ts +7 -0
  204. package/build/components/dialog/DialogHeader.d.ts +7 -0
  205. package/build/components/dialog/DialogSubtitle.d.ts +7 -0
  206. package/build/components/dialog/DialogTitle.d.ts +7 -0
  207. package/build/components/dialog/index.d.ts +58 -0
  208. package/build/components/divider/Divider.d.ts +10 -0
  209. package/build/components/divider/Divider.types.d.ts +9 -0
  210. package/build/components/divider/index.d.ts +2 -0
  211. package/build/components/drawer/Drawer.d.ts +14 -0
  212. package/build/components/drawer/Drawer.types.d.ts +41 -0
  213. package/build/components/drawer/DrawerBody.d.ts +7 -0
  214. package/build/components/drawer/DrawerCloseButton.d.ts +6 -0
  215. package/build/components/drawer/DrawerContext.d.ts +2 -0
  216. package/build/components/drawer/DrawerFooter.d.ts +7 -0
  217. package/build/components/drawer/DrawerHeader.d.ts +7 -0
  218. package/build/components/drawer/DrawerSubtitle.d.ts +7 -0
  219. package/build/components/drawer/DrawerTitle.d.ts +7 -0
  220. package/build/components/drawer/index.d.ts +50 -0
  221. package/build/components/empty-state/EmptyState.d.ts +11 -0
  222. package/build/components/empty-state/EmptyState.types.d.ts +12 -0
  223. package/build/components/empty-state/index.d.ts +2 -0
  224. package/build/components/filtered-action-list/FilteredActionList.d.ts +7 -0
  225. package/build/components/filtered-action-list/FilteredActionList.types.d.ts +75 -0
  226. package/build/components/filtered-action-list/FilteredActionListInput.d.ts +6 -0
  227. package/build/components/filtered-action-list/FilteredActionListItem.d.ts +6 -0
  228. package/build/components/filtered-action-list/FilteredActionListLoaders.d.ts +5 -0
  229. package/build/components/filtered-action-list/index.d.ts +15 -0
  230. package/build/components/filtered-action-list/useAnnouncements.d.ts +8 -0
  231. package/build/components/form-control/FormControl.d.ts +9 -0
  232. package/build/components/form-control/FormControl.types.d.ts +45 -0
  233. package/build/components/form-control/FormControlCaption.d.ts +5 -0
  234. package/build/components/form-control/FormControlContext.d.ts +2 -0
  235. package/build/components/form-control/FormControlLabel.d.ts +11 -0
  236. package/build/components/form-control/FormControlLeadingVisual.d.ts +5 -0
  237. package/build/components/form-control/FormControlValidation.d.ts +7 -0
  238. package/build/components/form-control/index.d.ts +34 -0
  239. package/build/components/form-control/useFormControlForwardedProps.d.ts +2 -0
  240. package/build/components/heading/Heading.d.ts +9 -0
  241. package/build/components/heading/Heading.types.d.ts +7 -0
  242. package/build/components/heading/index.d.ts +2 -0
  243. package/build/components/hidden/Hidden.d.ts +9 -0
  244. package/build/components/hidden/Hidden.types.d.ts +7 -0
  245. package/build/components/hidden/index.d.ts +2 -0
  246. package/build/components/icon-button/IconButton.d.ts +4 -0
  247. package/build/components/icon-button/IconButton.types.d.ts +16 -0
  248. package/build/components/icon-button/index.d.ts +2 -0
  249. package/build/components/index.d.ts +78 -0
  250. package/build/components/inline-message/InlineMessage.d.ts +9 -0
  251. package/build/components/inline-message/InlineMessage.types.d.ts +10 -0
  252. package/build/components/inline-message/index.d.ts +2 -0
  253. package/build/components/keybinding-hint/KeybindingHint.d.ts +9 -0
  254. package/build/components/keybinding-hint/KeybindingHint.types.d.ts +22 -0
  255. package/build/components/keybinding-hint/KeybindingHintChord.d.ts +7 -0
  256. package/build/components/keybinding-hint/KeybindingHintKey.d.ts +6 -0
  257. package/build/components/keybinding-hint/PlatformContext.d.ts +2 -0
  258. package/build/components/keybinding-hint/chords.d.ts +6 -0
  259. package/build/components/keybinding-hint/index.d.ts +5 -0
  260. package/build/components/keybinding-hint/keyNames.d.ts +4 -0
  261. package/build/components/keybinding-hint/platform.d.ts +3 -0
  262. package/build/components/label/Label.d.ts +10 -0
  263. package/build/components/label/Label.types.d.ts +9 -0
  264. package/build/components/label/index.d.ts +2 -0
  265. package/build/components/link/Link.d.ts +9 -0
  266. package/build/components/link/Link.types.d.ts +7 -0
  267. package/build/components/link/index.d.ts +2 -0
  268. package/build/components/link-button/LinkButton.d.ts +5 -0
  269. package/build/components/link-button/LinkButton.types.d.ts +4 -0
  270. package/build/components/link-button/index.d.ts +2 -0
  271. package/build/components/nav-list/NavList.d.ts +6 -0
  272. package/build/components/nav-list/NavList.types.d.ts +53 -0
  273. package/build/components/nav-list/NavListContext.d.ts +11 -0
  274. package/build/components/nav-list/NavListGroup.d.ts +7 -0
  275. package/build/components/nav-list/NavListGroupExpand.d.ts +10 -0
  276. package/build/components/nav-list/NavListGroupHeading.d.ts +4 -0
  277. package/build/components/nav-list/NavListHeading.d.ts +6 -0
  278. package/build/components/nav-list/NavListItem.d.ts +10 -0
  279. package/build/components/nav-list/NavListItemWithSubNav.d.ts +15 -0
  280. package/build/components/nav-list/NavListSubNav.d.ts +6 -0
  281. package/build/components/nav-list/headingLevel.d.ts +3 -0
  282. package/build/components/nav-list/index.d.ts +45 -0
  283. package/build/components/page-content/PageContent.d.ts +11 -0
  284. package/build/components/page-content/PageContent.types.d.ts +17 -0
  285. package/build/components/page-content/PageContentSection.d.ts +6 -0
  286. package/build/components/page-content/index.d.ts +16 -0
  287. package/build/components/page-content/visibility.d.ts +6 -0
  288. package/build/components/page-footer/PageFooter.d.ts +10 -0
  289. package/build/components/page-footer/PageFooter.types.d.ts +20 -0
  290. package/build/components/page-footer/PageFooterActions.d.ts +6 -0
  291. package/build/components/page-footer/PageFooterCopyright.d.ts +6 -0
  292. package/build/components/page-footer/PageFooterDescription.d.ts +6 -0
  293. package/build/components/page-footer/PageFooterLeadingVisual.d.ts +6 -0
  294. package/build/components/page-footer/PageFooterNavigation.d.ts +7 -0
  295. package/build/components/page-footer/PageFooterRegion.d.ts +6 -0
  296. package/build/components/page-footer/index.d.ts +36 -0
  297. package/build/components/page-footer/visibility.d.ts +6 -0
  298. package/build/components/page-header/PageHeader.d.ts +8 -0
  299. package/build/components/page-header/PageHeader.types.d.ts +32 -0
  300. package/build/components/page-header/PageHeaderActions.d.ts +6 -0
  301. package/build/components/page-header/PageHeaderBreadcrumbs.d.ts +6 -0
  302. package/build/components/page-header/PageHeaderContextArea.d.ts +6 -0
  303. package/build/components/page-header/PageHeaderContextAreaActions.d.ts +6 -0
  304. package/build/components/page-header/PageHeaderContextBar.d.ts +6 -0
  305. package/build/components/page-header/PageHeaderDescription.d.ts +6 -0
  306. package/build/components/page-header/PageHeaderLeadingAction.d.ts +6 -0
  307. package/build/components/page-header/PageHeaderLeadingVisual.d.ts +6 -0
  308. package/build/components/page-header/PageHeaderNavigation.d.ts +7 -0
  309. package/build/components/page-header/PageHeaderParentLink.d.ts +6 -0
  310. package/build/components/page-header/PageHeaderRegion.d.ts +6 -0
  311. package/build/components/page-header/PageHeaderTitle.d.ts +7 -0
  312. package/build/components/page-header/PageHeaderTitleArea.d.ts +8 -0
  313. package/build/components/page-header/PageHeaderTrailingAction.d.ts +6 -0
  314. package/build/components/page-header/PageHeaderTrailingVisual.d.ts +6 -0
  315. package/build/components/page-header/index.d.ts +83 -0
  316. package/build/components/page-header/visibility.d.ts +6 -0
  317. package/build/components/page-layout/DragHandle.d.ts +7 -0
  318. package/build/components/page-layout/PageLayout.d.ts +10 -0
  319. package/build/components/page-layout/PageLayout.types.d.ts +127 -0
  320. package/build/components/page-layout/PageLayoutContent.d.ts +10 -0
  321. package/build/components/page-layout/PageLayoutContext.d.ts +2 -0
  322. package/build/components/page-layout/PageLayoutFooter.d.ts +8 -0
  323. package/build/components/page-layout/PageLayoutHeader.d.ts +8 -0
  324. package/build/components/page-layout/PageLayoutHorizontalDivider.d.ts +7 -0
  325. package/build/components/page-layout/PageLayoutPane.d.ts +4 -0
  326. package/build/components/page-layout/PageLayoutSidebar.d.ts +4 -0
  327. package/build/components/page-layout/PageLayoutVerticalDivider.d.ts +7 -0
  328. package/build/components/page-layout/index.d.ts +40 -0
  329. package/build/components/page-layout/paneUtils.d.ts +30 -0
  330. package/build/components/page-layout/usePaneWidth.d.ts +2 -0
  331. package/build/components/page-sidebar/PageSidebar.d.ts +14 -0
  332. package/build/components/page-sidebar/PageSidebar.types.d.ts +32 -0
  333. package/build/components/page-sidebar/PageSidebarActions.d.ts +6 -0
  334. package/build/components/page-sidebar/PageSidebarContent.d.ts +6 -0
  335. package/build/components/page-sidebar/PageSidebarFooter.d.ts +6 -0
  336. package/build/components/page-sidebar/PageSidebarHeader.d.ts +6 -0
  337. package/build/components/page-sidebar/PageSidebarNavigation.d.ts +7 -0
  338. package/build/components/page-sidebar/PageSidebarRegion.d.ts +6 -0
  339. package/build/components/page-sidebar/PageSidebarSection.d.ts +6 -0
  340. package/build/components/page-sidebar/PageSidebarTitle.d.ts +7 -0
  341. package/build/components/page-sidebar/index.d.ts +51 -0
  342. package/build/components/page-sidebar/visibility.d.ts +6 -0
  343. package/build/components/pagination/Pagination.d.ts +16 -0
  344. package/build/components/pagination/Pagination.types.d.ts +43 -0
  345. package/build/components/pagination/index.d.ts +3 -0
  346. package/build/components/pagination/paginationModel.d.ts +3 -0
  347. package/build/components/placeholder/Placeholder.d.ts +10 -0
  348. package/build/components/placeholder/Placeholder.types.d.ts +8 -0
  349. package/build/components/placeholder/index.d.ts +2 -0
  350. package/build/components/portal/Portal.d.ts +7 -0
  351. package/build/components/portal/Portal.types.d.ts +9 -0
  352. package/build/components/portal/PortalContext.d.ts +2 -0
  353. package/build/components/portal/index.d.ts +4 -0
  354. package/build/components/portal/portalRoot.d.ts +4 -0
  355. package/build/components/progress-bar/ProgressBar.d.ts +13 -0
  356. package/build/components/progress-bar/ProgressBar.types.d.ts +18 -0
  357. package/build/components/progress-bar/ProgressBarItem.d.ts +11 -0
  358. package/build/components/progress-bar/index.d.ts +22 -0
  359. package/build/components/radio/Radio.d.ts +8 -0
  360. package/build/components/radio/Radio.types.d.ts +8 -0
  361. package/build/components/radio/index.d.ts +2 -0
  362. package/build/components/radio-group/RadioGroup.d.ts +10 -0
  363. package/build/components/radio-group/RadioGroup.types.d.ts +30 -0
  364. package/build/components/radio-group/RadioGroupCaption.d.ts +5 -0
  365. package/build/components/radio-group/RadioGroupContext.d.ts +2 -0
  366. package/build/components/radio-group/RadioGroupLabel.d.ts +6 -0
  367. package/build/components/radio-group/RadioGroupValidation.d.ts +7 -0
  368. package/build/components/radio-group/index.d.ts +26 -0
  369. package/build/components/relative-time/RelativeTime.d.ts +15 -0
  370. package/build/components/relative-time/RelativeTime.types.d.ts +40 -0
  371. package/build/components/relative-time/index.d.ts +3 -0
  372. package/build/components/relative-time/relativeTimeFormat.d.ts +19 -0
  373. package/build/components/scrollable-region/ScrollableRegion.d.ts +4 -0
  374. package/build/components/scrollable-region/ScrollableRegion.types.d.ts +13 -0
  375. package/build/components/scrollable-region/index.d.ts +2 -0
  376. package/build/components/segmented-control/SegmentedControl.d.ts +7 -0
  377. package/build/components/segmented-control/SegmentedControl.types.d.ts +46 -0
  378. package/build/components/segmented-control/SegmentedControlButton.d.ts +6 -0
  379. package/build/components/segmented-control/SegmentedControlIconButton.d.ts +6 -0
  380. package/build/components/segmented-control/SegmentedControlSegment.d.ts +9 -0
  381. package/build/components/segmented-control/index.d.ts +9 -0
  382. package/build/components/select/Select.d.ts +10 -0
  383. package/build/components/select/Select.types.d.ts +17 -0
  384. package/build/components/select/SelectOptGroup.d.ts +5 -0
  385. package/build/components/select/SelectOption.d.ts +6 -0
  386. package/build/components/select/index.d.ts +19 -0
  387. package/build/components/select-panel/SelectPanel.d.ts +21 -0
  388. package/build/components/select-panel/SelectPanel.types.d.ts +82 -0
  389. package/build/components/select-panel/SelectPanelButton.d.ts +5 -0
  390. package/build/components/select-panel/SelectPanelContext.d.ts +2 -0
  391. package/build/components/select-panel/SelectPanelFooter.d.ts +5 -0
  392. package/build/components/select-panel/SelectPanelHeader.d.ts +6 -0
  393. package/build/components/select-panel/SelectPanelLoading.d.ts +5 -0
  394. package/build/components/select-panel/SelectPanelMessage.d.ts +4 -0
  395. package/build/components/select-panel/SelectPanelSearchInput.d.ts +6 -0
  396. package/build/components/select-panel/SelectPanelSecondaryAction.d.ts +7 -0
  397. package/build/components/select-panel/index.d.ts +48 -0
  398. package/build/components/skeleton-avatar/SkeletonAvatar.d.ts +7 -0
  399. package/build/components/skeleton-avatar/SkeletonAvatar.types.d.ts +7 -0
  400. package/build/components/skeleton-avatar/index.d.ts +2 -0
  401. package/build/components/skeleton-box/SkeletonBox.d.ts +9 -0
  402. package/build/components/skeleton-box/SkeletonBox.types.d.ts +7 -0
  403. package/build/components/skeleton-box/index.d.ts +2 -0
  404. package/build/components/skeleton-text/SkeletonText.d.ts +6 -0
  405. package/build/components/skeleton-text/SkeletonText.types.d.ts +8 -0
  406. package/build/components/skeleton-text/index.d.ts +2 -0
  407. package/build/components/slider/Slider.d.ts +15 -0
  408. package/build/components/slider/Slider.types.d.ts +15 -0
  409. package/build/components/slider/index.d.ts +2 -0
  410. package/build/components/spinner/Spinner.d.ts +10 -0
  411. package/build/components/spinner/Spinner.types.d.ts +8 -0
  412. package/build/components/spinner/index.d.ts +2 -0
  413. package/build/components/stack/Stack.d.ts +16 -0
  414. package/build/components/stack/Stack.types.d.ts +24 -0
  415. package/build/components/stack/StackItem.d.ts +9 -0
  416. package/build/components/stack/index.d.ts +24 -0
  417. package/build/components/state-label/StateLabel.d.ts +10 -0
  418. package/build/components/state-label/StateLabel.types.d.ts +9 -0
  419. package/build/components/state-label/index.d.ts +2 -0
  420. package/build/components/tabs/Tab.d.ts +7 -0
  421. package/build/components/tabs/TabList.d.ts +4 -0
  422. package/build/components/tabs/TabPanel.d.ts +6 -0
  423. package/build/components/tabs/Tabs.d.ts +7 -0
  424. package/build/components/tabs/Tabs.types.d.ts +72 -0
  425. package/build/components/tabs/TabsContext.d.ts +2 -0
  426. package/build/components/tabs/composeEventHandlers.d.ts +4 -0
  427. package/build/components/tabs/index.d.ts +23 -0
  428. package/build/components/tabs/useTab.d.ts +2 -0
  429. package/build/components/tabs/useTabList.d.ts +2 -0
  430. package/build/components/tabs/useTabPanel.d.ts +2 -0
  431. package/build/components/tabs/useTabs.d.ts +2 -0
  432. package/build/components/text/Text.d.ts +11 -0
  433. package/build/components/text/Text.types.d.ts +11 -0
  434. package/build/components/text/index.d.ts +2 -0
  435. package/build/components/text-input/TextInput.d.ts +18 -0
  436. package/build/components/text-input/TextInput.types.d.ts +33 -0
  437. package/build/components/text-input/TextInputAction.d.ts +4 -0
  438. package/build/components/text-input/index.d.ts +20 -0
  439. package/build/components/textarea/Textarea.d.ts +16 -0
  440. package/build/components/textarea/Textarea.types.d.ts +13 -0
  441. package/build/components/textarea/characterCount.d.ts +7 -0
  442. package/build/components/textarea/index.d.ts +3 -0
  443. package/build/components/timeline/Timeline.d.ts +7 -0
  444. package/build/components/timeline/Timeline.types.d.ts +27 -0
  445. package/build/components/timeline/TimelineActions.d.ts +5 -0
  446. package/build/components/timeline/TimelineAvatar.d.ts +5 -0
  447. package/build/components/timeline/TimelineBadge.d.ts +7 -0
  448. package/build/components/timeline/TimelineBody.d.ts +5 -0
  449. package/build/components/timeline/TimelineBreak.d.ts +5 -0
  450. package/build/components/timeline/TimelineItem.d.ts +6 -0
  451. package/build/components/timeline/index.d.ts +33 -0
  452. package/build/components/toast/Toast.d.ts +7 -0
  453. package/build/components/toast/Toast.types.d.ts +78 -0
  454. package/build/components/toast/Toaster.d.ts +21 -0
  455. package/build/components/toast/index.d.ts +3 -0
  456. package/build/components/toast/toastStore.d.ts +20 -0
  457. package/build/components/toggle-switch/ToggleSwitch.d.ts +21 -0
  458. package/build/components/toggle-switch/ToggleSwitch.types.d.ts +21 -0
  459. package/build/components/toggle-switch/index.d.ts +2 -0
  460. package/build/components/token/IssueLabelToken.d.ts +15 -0
  461. package/build/components/token/Token.d.ts +17 -0
  462. package/build/components/token/Token.types.d.ts +37 -0
  463. package/build/components/token/TokenBase.d.ts +16 -0
  464. package/build/components/token/TokenRemoveButton.d.ts +7 -0
  465. package/build/components/token/TokenText.d.ts +10 -0
  466. package/build/components/token/index.d.ts +7 -0
  467. package/build/components/token/issueLabelColor.d.ts +13 -0
  468. package/build/components/tooltip/Tooltip.d.ts +12 -0
  469. package/build/components/tooltip/Tooltip.types.d.ts +14 -0
  470. package/build/components/tooltip/TooltipContext.d.ts +2 -0
  471. package/build/components/tooltip/anchoredPosition.d.ts +15 -0
  472. package/build/components/tooltip/index.d.ts +5 -0
  473. package/build/components/topic-tag/TopicTag.d.ts +7 -0
  474. package/build/components/topic-tag/TopicTag.types.d.ts +8 -0
  475. package/build/components/topic-tag/TopicTagGroup.d.ts +7 -0
  476. package/build/components/topic-tag/index.d.ts +14 -0
  477. package/build/components/tree-view/TreeView.d.ts +8 -0
  478. package/build/components/tree-view/TreeView.types.d.ts +60 -0
  479. package/build/components/tree-view/TreeViewActionDialog.d.ts +7 -0
  480. package/build/components/tree-view/TreeViewContext.d.ts +20 -0
  481. package/build/components/tree-view/TreeViewDirectoryIcon.d.ts +6 -0
  482. package/build/components/tree-view/TreeViewErrorDialog.d.ts +7 -0
  483. package/build/components/tree-view/TreeViewItem.d.ts +16 -0
  484. package/build/components/tree-view/TreeViewLeadingAction.d.ts +6 -0
  485. package/build/components/tree-view/TreeViewLeadingVisual.d.ts +7 -0
  486. package/build/components/tree-view/TreeViewSubTree.d.ts +7 -0
  487. package/build/components/tree-view/TreeViewTrailingAction.d.ts +7 -0
  488. package/build/components/tree-view/TreeViewTrailingVisual.d.ts +7 -0
  489. package/build/components/tree-view/TreeViewVisual.d.ts +15 -0
  490. package/build/components/tree-view/index.d.ts +37 -0
  491. package/build/components/tree-view/treeNavigation.d.ts +8 -0
  492. package/build/components/tree-view/useRovingTabIndex.d.ts +5 -0
  493. package/build/components/tree-view/useTypeahead.d.ts +6 -0
  494. package/build/components/truncate/Truncate.d.ts +12 -0
  495. package/build/components/truncate/Truncate.types.d.ts +9 -0
  496. package/build/components/truncate/index.d.ts +2 -0
  497. package/build/components/upload/Upload.d.ts +16 -0
  498. package/build/components/upload/Upload.types.d.ts +51 -0
  499. package/build/components/upload/UploadContext.d.ts +2 -0
  500. package/build/components/upload/UploadDescription.d.ts +5 -0
  501. package/build/components/upload/UploadIcon.d.ts +6 -0
  502. package/build/components/upload/UploadItem.d.ts +13 -0
  503. package/build/components/upload/UploadLabel.d.ts +5 -0
  504. package/build/components/upload/UploadList.d.ts +5 -0
  505. package/build/components/upload/files.d.ts +13 -0
  506. package/build/components/upload/index.d.ts +48 -0
  507. package/build/hooks/useFocusTrap.d.ts +8 -0
  508. package/build/hooks/useFocusZone.d.ts +10 -0
  509. package/build/hooks/useId.d.ts +1 -0
  510. package/build/hooks/useIsClipped.d.ts +7 -0
  511. package/build/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
  512. package/build/hooks/useMergedRefs.d.ts +8 -0
  513. package/build/hooks/useOnEscapePress.d.ts +2 -0
  514. package/build/hooks/useOverflow.d.ts +2 -0
  515. package/build/hooks/useResponsive.d.ts +18 -0
  516. package/build/hooks/useScrollLock.d.ts +1 -0
  517. package/build/hooks/useSlots.d.ts +14 -0
  518. package/build/hooks/useSyncedState.d.ts +4 -0
  519. package/build/main.cjs.js +10 -0
  520. package/build/main.d.ts +2 -0
  521. package/build/main.esm.js +10 -0
  522. package/build/theme/Theme.types.d.ts +22 -0
  523. package/build/theme/ThemeContext.d.ts +2 -0
  524. package/build/theme/ThemeProvider.d.ts +8 -0
  525. package/build/theme/index.d.ts +4 -0
  526. package/build/theme/useTheme.d.ts +3 -0
  527. package/build/types/assets.types.d.ts +48 -0
  528. package/build/utilities/classnames.d.ts +2 -0
  529. package/build/utilities/environment.d.ts +4 -0
  530. package/build/utilities/interactive.d.ts +2 -0
  531. package/build/utilities/polymorphic.d.ts +25 -0
  532. package/build/utilities/responsive.d.ts +3 -0
  533. package/build/utilities/slot.d.ts +3 -0
  534. package/build/utilities/types/slots.d.ts +5 -0
  535. package/package.json +105 -0
@@ -0,0 +1,78 @@
1
+ import type * as React from "react";
2
+ export type ToastVariant = "default" | "success" | "error" | "warning" | "info" | "loading";
3
+ export type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
4
+ export type ToastSwipeDirection = "top" | "right" | "bottom" | "left";
5
+ export type ToastCloseReason = "timeout" | "close-button" | "action" | "cancel" | "swipe" | "dismiss";
6
+ export type ToastActionDescriptor = {
7
+ label: React.ReactNode;
8
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
9
+ };
10
+ export type ToastAction = ToastActionDescriptor | React.ReactNode;
11
+ export type ToastOptions = {
12
+ id?: string;
13
+ description?: React.ReactNode;
14
+ duration?: number;
15
+ icon?: React.ReactNode;
16
+ action?: ToastAction;
17
+ cancel?: ToastAction;
18
+ closeButton?: boolean;
19
+ dismissible?: boolean;
20
+ richColors?: boolean;
21
+ important?: boolean;
22
+ onDismiss?: (toast: ToastItem) => void;
23
+ onAutoClose?: (toast: ToastItem) => void;
24
+ className?: string;
25
+ };
26
+ export type ToastItem = ToastOptions & {
27
+ id: string;
28
+ variant: ToastVariant;
29
+ title?: React.ReactNode;
30
+ render?: (toast: ToastItem) => React.ReactNode;
31
+ dismissed?: boolean;
32
+ revision: number;
33
+ };
34
+ export type ToastPromiseMessage<T> = React.ReactNode | ((value: T) => React.ReactNode);
35
+ export type ToastPromiseMessages<T> = {
36
+ loading: React.ReactNode;
37
+ success: ToastPromiseMessage<T>;
38
+ error: ToastPromiseMessage<unknown>;
39
+ };
40
+ export type ToastIcons = Partial<Record<ToastVariant, React.ReactNode>>;
41
+ export type ToasterProps = React.ComponentPropsWithoutRef<"ol"> & {
42
+ position?: ToastPosition;
43
+ expand?: boolean;
44
+ visibleToasts?: number;
45
+ toastOptions?: ToastOptions;
46
+ duration?: number;
47
+ closeButton?: boolean;
48
+ richColors?: boolean;
49
+ gap?: number;
50
+ offset?: number | string;
51
+ mobileOffset?: number | string;
52
+ width?: number | string;
53
+ hotkey?: string[];
54
+ swipeDirections?: ToastSwipeDirection[];
55
+ icons?: ToastIcons;
56
+ containerAriaLabel?: string;
57
+ className?: string;
58
+ };
59
+ export type ToastPlace = {
60
+ index: number;
61
+ offset: number;
62
+ };
63
+ export type ToastDefaults = Required<Pick<ToastOptions, "duration" | "closeButton" | "richColors" | "dismissible">> & Pick<ToastOptions, "important" | "className">;
64
+ export type ToastProps = {
65
+ toast: ToastItem;
66
+ place: ToastPlace;
67
+ position: ToastPosition;
68
+ height: number;
69
+ frontHeight: number;
70
+ stackSize: number;
71
+ expanded: boolean;
72
+ visible: boolean;
73
+ paused: boolean;
74
+ swipeDirections: ToastSwipeDirection[];
75
+ icons?: ToastIcons;
76
+ defaults: ToastDefaults;
77
+ onHeight: (id: string, height: number) => void;
78
+ };
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ import type { ToastPosition, ToastSwipeDirection } from "./Toast.types";
3
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & {
4
+ position?: ToastPosition;
5
+ expand?: boolean;
6
+ visibleToasts?: number;
7
+ toastOptions?: import("./Toast.types").ToastOptions;
8
+ duration?: number;
9
+ closeButton?: boolean;
10
+ richColors?: boolean;
11
+ gap?: number;
12
+ offset?: number | string;
13
+ mobileOffset?: number | string;
14
+ width?: number | string;
15
+ hotkey?: string[];
16
+ swipeDirections?: ToastSwipeDirection[];
17
+ icons?: Partial<Record<import("./Toast.types").ToastVariant, React.ReactNode>>;
18
+ containerAriaLabel?: string;
19
+ className?: string;
20
+ } & React.RefAttributes<any>) => React.ReactNode;
21
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export { default as Toaster } from "./Toaster";
2
+ export { toast } from "./toastStore";
3
+ export * from "./Toast.types";
@@ -0,0 +1,20 @@
1
+ import type * as React from "react";
2
+ import type { ToastItem, ToastOptions, ToastPromiseMessages } from "./Toast.types";
3
+ export declare const subscribeToToasts: (onStoreChange: () => void) => () => void;
4
+ export declare const getToasts: () => ToastItem[];
5
+ export declare const getServerToasts: () => ToastItem[];
6
+ export declare const dismissToast: (id?: string) => string | undefined;
7
+ export declare const removeToast: (id: string) => void;
8
+ export declare const clearToasts: () => void;
9
+ export declare const toast: ((title: React.ReactNode, options?: ToastOptions) => string) & {
10
+ message: (title: React.ReactNode, options?: ToastOptions) => string;
11
+ success: (title: React.ReactNode, options?: ToastOptions) => string;
12
+ error: (title: React.ReactNode, options?: ToastOptions) => string;
13
+ warning: (title: React.ReactNode, options?: ToastOptions) => string;
14
+ info: (title: React.ReactNode, options?: ToastOptions) => string;
15
+ loading: (title: React.ReactNode, options?: ToastOptions) => string;
16
+ custom: (render: (toast: ToastItem) => React.ReactNode, options?: ToastOptions) => string;
17
+ promise: <T>(input: Promise<T> | (() => Promise<T>), messages: ToastPromiseMessages<T>, options?: ToastOptions) => string;
18
+ dismiss: (id?: string) => string | undefined;
19
+ getToasts: () => ToastItem[];
20
+ };
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ import type { ToggleSwitchSize, ToggleSwitchStatusLabelPosition } from "./ToggleSwitch.types";
3
+ export declare const DEFAULT_TOGGLE_SWITCH_LOADING_LABEL_DELAY = 2000;
4
+ declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onChange"> & {
5
+ "aria-labelledby": string;
6
+ checked?: boolean;
7
+ defaultChecked?: boolean;
8
+ disabled?: boolean;
9
+ loading?: boolean;
10
+ onChange?: (checked: boolean) => void;
11
+ onClick?: React.MouseEventHandler;
12
+ size?: ToggleSwitchSize;
13
+ statusLabelPosition?: ToggleSwitchStatusLabelPosition;
14
+ loadingLabelDelay?: number;
15
+ loadingLabel?: string;
16
+ buttonType?: import("./ToggleSwitch.types").ToggleSwitchButtonType;
17
+ buttonLabelOn?: string;
18
+ buttonLabelOff?: string;
19
+ className?: string;
20
+ } & React.RefAttributes<any>) => React.ReactNode;
21
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import type * as React from "react";
2
+ export type ToggleSwitchSize = "small" | "medium";
3
+ export type ToggleSwitchStatusLabelPosition = "start" | "end";
4
+ export type ToggleSwitchButtonType = "button" | "submit" | "reset";
5
+ export type ToggleSwitchProps = Omit<React.ComponentPropsWithoutRef<"div">, "onChange"> & {
6
+ "aria-labelledby": string;
7
+ checked?: boolean;
8
+ defaultChecked?: boolean;
9
+ disabled?: boolean;
10
+ loading?: boolean;
11
+ onChange?: (checked: boolean) => void;
12
+ onClick?: React.MouseEventHandler;
13
+ size?: ToggleSwitchSize;
14
+ statusLabelPosition?: ToggleSwitchStatusLabelPosition;
15
+ loadingLabelDelay?: number;
16
+ loadingLabel?: string;
17
+ buttonType?: ToggleSwitchButtonType;
18
+ buttonLabelOn?: string;
19
+ buttonLabelOff?: string;
20
+ className?: string;
21
+ };
@@ -0,0 +1,2 @@
1
+ export { default as ToggleSwitch, DEFAULT_TOGGLE_SWITCH_LOADING_LABEL_DELAY } from "./ToggleSwitch";
2
+ export * from "./ToggleSwitch.types";
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ declare const _default: <As extends React.ElementType = "span">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "span" : As> & {
3
+ size?: import("./Token.types").TokenSize;
4
+ isSelected?: boolean;
5
+ onRemove?: () => void;
6
+ disabled?: boolean;
7
+ className?: string;
8
+ }, "as"> & {
9
+ as?: As | undefined;
10
+ } & {
11
+ text: React.ReactNode;
12
+ fillColor?: string;
13
+ hideRemoveButton?: boolean;
14
+ } & React.RefAttributes<any>) => React.ReactNode;
15
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ import type { ButtonVisual } from "../button";
3
+ import type { TokenSize } from "./Token.types";
4
+ declare const _default: <As extends React.ElementType = "span">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "span" : As> & {
5
+ size?: TokenSize;
6
+ isSelected?: boolean;
7
+ onRemove?: () => void;
8
+ disabled?: boolean;
9
+ className?: string;
10
+ }, "as"> & {
11
+ as?: As | undefined;
12
+ } & {
13
+ text: React.ReactNode;
14
+ leadingVisual?: ButtonVisual;
15
+ hideRemoveButton?: boolean;
16
+ } & React.RefAttributes<any>) => React.ReactNode;
17
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import type * as React from "react";
2
+ import type { PolymorphicProps } from "../../utilities/polymorphic";
3
+ import type { ButtonVisual } from "../button";
4
+ export type TokenSize = "small" | "medium" | "large" | "xlarge";
5
+ export type TokenBaseProps<As extends React.ElementType = "span"> = PolymorphicProps<As, "span", {
6
+ size?: TokenSize;
7
+ isSelected?: boolean;
8
+ onRemove?: () => void;
9
+ disabled?: boolean;
10
+ className?: string;
11
+ }>;
12
+ export type TokenProps<As extends React.ElementType = "span"> = TokenBaseProps<As> & {
13
+ text: React.ReactNode;
14
+ leadingVisual?: ButtonVisual;
15
+ hideRemoveButton?: boolean;
16
+ };
17
+ export type IssueLabelTokenProps<As extends React.ElementType = "span"> = TokenBaseProps<As> & {
18
+ text: React.ReactNode;
19
+ fillColor?: string;
20
+ hideRemoveButton?: boolean;
21
+ };
22
+ export type TokenTextProps<As extends React.ElementType = "span"> = PolymorphicProps<As, "span", {
23
+ interactive?: boolean;
24
+ className?: string;
25
+ }>;
26
+ export type TokenRemoveButtonProps = Omit<React.ComponentPropsWithoutRef<"button">, "children" | "aria-label" | "aria-labelledby"> & {
27
+ size?: TokenSize;
28
+ isParentInteractive?: boolean;
29
+ className?: string;
30
+ };
31
+ export type TokenInteractiveProps = {
32
+ as?: React.ElementType;
33
+ onClick?: React.MouseEventHandler<HTMLElement>;
34
+ onFocus?: React.FocusEventHandler<HTMLElement>;
35
+ tabIndex?: number;
36
+ disabled?: boolean;
37
+ };
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import type { TokenInteractiveProps, TokenSize } from "./Token.types";
3
+ export declare const DEFAULT_TOKEN_SIZE: TokenSize;
4
+ export declare const isTokenInteractive: ({ as, onClick, onFocus, tabIndex, disabled, }: TokenInteractiveProps) => boolean;
5
+ declare const _default: <As extends React.ElementType = "span">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "span" : As> & {
6
+ size?: TokenSize;
7
+ isSelected?: boolean;
8
+ onRemove?: () => void;
9
+ disabled?: boolean;
10
+ className?: string;
11
+ }, "as"> & {
12
+ as?: As | undefined;
13
+ } & {
14
+ children?: React.ReactNode | undefined;
15
+ } & React.RefAttributes<any>) => React.ReactNode;
16
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { TokenRemoveButtonProps } from "./Token.types";
3
+ declare function TokenRemoveButton(props: TokenRemoveButtonProps): React.JSX.Element;
4
+ declare namespace TokenRemoveButton {
5
+ var displayName: string;
6
+ }
7
+ export default TokenRemoveButton;
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ declare const _default: <As extends React.ElementType = "span">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "span" : As> & {
3
+ interactive?: boolean;
4
+ className?: string;
5
+ }, "as"> & {
6
+ as?: As | undefined;
7
+ } & {
8
+ children?: React.ReactNode | undefined;
9
+ } & React.RefAttributes<any>) => React.ReactNode;
10
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export { default as Token } from "./Token";
2
+ export { default as IssueLabelToken } from "./IssueLabelToken";
3
+ export { default as TokenBase, DEFAULT_TOKEN_SIZE, isTokenInteractive } from "./TokenBase";
4
+ export { default as TokenText } from "./TokenText";
5
+ export { default as TokenRemoveButton } from "./TokenRemoveButton";
6
+ export { getIssueLabelColors, DEFAULT_ISSUE_LABEL_FILL_COLOR, type IssueLabelColors, type IssueLabelPalette, } from "./issueLabelColor";
7
+ export * from "./Token.types";
@@ -0,0 +1,13 @@
1
+ export type IssueLabelPalette = {
2
+ background: string;
3
+ foreground: string;
4
+ border: string;
5
+ ring: string;
6
+ backgroundHover: string;
7
+ };
8
+ export type IssueLabelColors = {
9
+ light: IssueLabelPalette;
10
+ dark: IssueLabelPalette;
11
+ };
12
+ export declare const DEFAULT_ISSUE_LABEL_FILL_COLOR = "#999999";
13
+ export declare const getIssueLabelColors: (fillColor: string) => IssueLabelColors;
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import type { TooltipDelay, TooltipDirection } from "./Tooltip.types";
3
+ declare const _default: (props: Omit<React.HTMLAttributes<HTMLElement>, "children"> & {
4
+ text: string;
5
+ direction?: TooltipDirection;
6
+ type?: import("./Tooltip.types").TooltipType;
7
+ delay?: TooltipDelay;
8
+ className?: string;
9
+ } & {
10
+ children?: React.ReactNode | undefined;
11
+ } & React.RefAttributes<any>) => React.ReactNode;
12
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import type * as React from "react";
2
+ export type TooltipDirection = "nw" | "n" | "ne" | "e" | "se" | "s" | "sw" | "w";
3
+ export type TooltipType = "label" | "description";
4
+ export type TooltipDelay = "short" | "medium" | "long";
5
+ export type TooltipProps = React.PropsWithChildren<Omit<React.HTMLAttributes<HTMLElement>, "children"> & {
6
+ text: string;
7
+ direction?: TooltipDirection;
8
+ type?: TooltipType;
9
+ delay?: TooltipDelay;
10
+ className?: string;
11
+ }>;
12
+ export type TooltipContextValue = {
13
+ tooltipId?: string;
14
+ };
@@ -0,0 +1,2 @@
1
+ import type { TooltipContextValue } from "./Tooltip.types";
2
+ export declare const TooltipContext: import("react").Context<TooltipContextValue>;
@@ -0,0 +1,15 @@
1
+ export type AnchorSide = "outside-top" | "outside-right" | "outside-bottom" | "outside-left";
2
+ export type AnchorAlignment = "start" | "center" | "end";
3
+ export type AnchoredPositionOptions = {
4
+ side: AnchorSide;
5
+ align: AnchorAlignment;
6
+ anchorOffset?: number;
7
+ alignmentOffset?: number;
8
+ };
9
+ export type AnchoredPosition = {
10
+ top: number;
11
+ left: number;
12
+ anchorSide: AnchorSide;
13
+ anchorAlign: AnchorAlignment;
14
+ };
15
+ export declare const getAnchoredPosition: (floating: HTMLElement, anchor: HTMLElement, { side, align, anchorOffset, alignmentOffset, }: AnchoredPositionOptions) => AnchoredPosition;
@@ -0,0 +1,5 @@
1
+ export { default as Tooltip } from "./Tooltip";
2
+ export { TooltipContext } from "./TooltipContext";
3
+ export { getAnchoredPosition } from "./anchoredPosition";
4
+ export type { AnchorSide, AnchorAlignment, AnchoredPosition, AnchoredPositionOptions, } from "./anchoredPosition";
5
+ export * from "./Tooltip.types";
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ declare const _default: <As extends React.ElementType = "a">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & {
3
+ className?: string;
4
+ }, "as"> & {
5
+ as?: As | undefined;
6
+ } & React.RefAttributes<any>) => React.ReactNode;
7
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import type * as React from "react";
2
+ import type { PolymorphicProps } from "../../utilities/polymorphic";
3
+ export type TopicTagProps<As extends React.ElementType = "a"> = PolymorphicProps<As, "a", {
4
+ className?: string;
5
+ }>;
6
+ export type TopicTagGroupProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
7
+ className?: string;
8
+ }>;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
3
+ className?: string;
4
+ }, "as"> & {
5
+ as?: As | undefined;
6
+ } & React.RefAttributes<any>) => React.ReactNode;
7
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import TopicTagGroup from "./TopicTagGroup";
2
+ export declare const TopicTag: (<As extends React.ElementType = "a">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "a" : As> & {
3
+ className?: string;
4
+ }, "as"> & {
5
+ as?: As | undefined;
6
+ } & import("react").RefAttributes<any>) => React.ReactNode) & {
7
+ Group: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
8
+ className?: string;
9
+ }, "as"> & {
10
+ as?: As | undefined;
11
+ } & import("react").RefAttributes<any>) => React.ReactNode;
12
+ };
13
+ export { TopicTagGroup };
14
+ export * from "./TopicTag.types";
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
3
+ children?: React.ReactNode;
4
+ flat?: boolean;
5
+ truncate?: boolean;
6
+ className?: string;
7
+ } & React.RefAttributes<any>>;
8
+ export default _default;
@@ -0,0 +1,60 @@
1
+ import type * as React from "react";
2
+ import type { DistributiveOmit } from "../../utilities/polymorphic";
3
+ import type { ButtonVisual } from "../button";
4
+ export type TreeViewSubTreeState = "initial" | "loading" | "done" | "error";
5
+ export type TreeViewVisualChildren = React.ReactNode | ((props: {
6
+ isExpanded: boolean;
7
+ }) => React.ReactNode);
8
+ export type TreeViewSecondaryAction = {
9
+ label: string;
10
+ onClick: () => void;
11
+ icon: NonNullable<ButtonVisual>;
12
+ count?: number | string;
13
+ className?: string;
14
+ };
15
+ export type TreeViewProps = React.ComponentPropsWithoutRef<"ul"> & {
16
+ children?: React.ReactNode;
17
+ flat?: boolean;
18
+ truncate?: boolean;
19
+ className?: string;
20
+ };
21
+ type TreeViewItemBaseProps = {
22
+ id: string;
23
+ children?: React.ReactNode;
24
+ current?: boolean;
25
+ defaultExpanded?: boolean;
26
+ expanded?: boolean | null;
27
+ onExpandedChange?: (expanded: boolean) => void;
28
+ onSelect?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
29
+ containIntrinsicSize?: string;
30
+ secondaryActions?: TreeViewSecondaryAction[];
31
+ className?: string;
32
+ };
33
+ export type TreeViewItemProps<As extends React.ElementType = "li"> = DistributiveOmit<React.ComponentPropsWithoutRef<React.ElementType extends As ? "li" : As>, "as" | "onSelect"> & TreeViewItemBaseProps & {
34
+ as?: As;
35
+ };
36
+ export type TreeViewSubTreeProps = {
37
+ children?: React.ReactNode;
38
+ state?: TreeViewSubTreeState;
39
+ count?: number;
40
+ "aria-label"?: string;
41
+ };
42
+ export type TreeViewVisualProps = {
43
+ children?: TreeViewVisualChildren;
44
+ label?: string;
45
+ };
46
+ export type TreeViewTrailingActionProps = {
47
+ items: TreeViewSecondaryAction[];
48
+ shortcutText: string;
49
+ };
50
+ export type TreeViewActionDialogProps = {
51
+ items: TreeViewSecondaryAction[];
52
+ onClose?: () => void;
53
+ };
54
+ export type TreeViewErrorDialogProps = {
55
+ children?: React.ReactNode;
56
+ title?: string;
57
+ onRetry?: () => void;
58
+ onDismiss?: () => void;
59
+ };
60
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { TreeViewActionDialogProps } from "./TreeView.types";
3
+ declare function TreeViewActionDialog(props: TreeViewActionDialogProps): React.JSX.Element;
4
+ declare namespace TreeViewActionDialog {
5
+ var displayName: string;
6
+ }
7
+ export default TreeViewActionDialog;
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ export type TreeViewRootContextValue = {
3
+ announceUpdate: (message: string) => void;
4
+ expandedStateCache: React.RefObject<Map<string, boolean> | null>;
5
+ scrollElementIntoView: (element: Element | null | undefined) => void;
6
+ };
7
+ export declare const TreeViewRootContext: React.Context<TreeViewRootContextValue>;
8
+ export type TreeViewItemContextValue = {
9
+ itemId: string;
10
+ level: number;
11
+ isSubTreeEmpty: boolean;
12
+ setIsSubTreeEmpty: React.Dispatch<React.SetStateAction<boolean>>;
13
+ isExpanded: boolean;
14
+ setIsExpanded: (isExpanded: boolean) => void;
15
+ leadingVisualId: string;
16
+ trailingVisualId: string;
17
+ trailingActionId: string;
18
+ };
19
+ export declare const TreeViewItemContext: React.Context<TreeViewItemContextValue>;
20
+ export declare const TreeViewLoadingPlaceholderContext: React.Context<boolean>;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare function TreeViewDirectoryIcon(): React.JSX.Element;
3
+ declare namespace TreeViewDirectoryIcon {
4
+ var displayName: string;
5
+ }
6
+ export default TreeViewDirectoryIcon;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { TreeViewErrorDialogProps } from "./TreeView.types";
3
+ declare function TreeViewErrorDialog(props: TreeViewErrorDialogProps): React.JSX.Element;
4
+ declare namespace TreeViewErrorDialog {
5
+ var displayName: string;
6
+ }
7
+ export default TreeViewErrorDialog;
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ declare const _default: <As extends React.ElementType = "li">(props: import("../../utilities/polymorphic").DistributiveOmit<React.PropsWithoutRef<React.ComponentProps<React.ElementType<any, keyof React.JSX.IntrinsicElements> extends As ? "li" : As>>, "as" | "onSelect"> & {
3
+ id: string;
4
+ children?: React.ReactNode;
5
+ current?: boolean;
6
+ defaultExpanded?: boolean;
7
+ expanded?: boolean | null;
8
+ onExpandedChange?: (expanded: boolean) => void;
9
+ onSelect?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
10
+ containIntrinsicSize?: string;
11
+ secondaryActions?: import("./TreeView.types").TreeViewSecondaryAction[];
12
+ className?: string;
13
+ } & {
14
+ as?: As | undefined;
15
+ } & React.RefAttributes<any>) => React.ReactNode;
16
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { TreeViewVisualProps } from "./TreeView.types";
2
+ declare function TreeViewLeadingAction(props: TreeViewVisualProps): import("react").JSX.Element;
3
+ declare namespace TreeViewLeadingAction {
4
+ var displayName: string;
5
+ }
6
+ export default TreeViewLeadingAction;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { TreeViewVisualProps } from "./TreeView.types";
3
+ declare function TreeViewLeadingVisual(props: TreeViewVisualProps): React.JSX.Element;
4
+ declare namespace TreeViewLeadingVisual {
5
+ var displayName: string;
6
+ }
7
+ export default TreeViewLeadingVisual;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { TreeViewSubTreeProps } from "./TreeView.types";
3
+ declare function TreeViewSubTree(props: TreeViewSubTreeProps): React.JSX.Element | null;
4
+ declare namespace TreeViewSubTree {
5
+ var displayName: string;
6
+ }
7
+ export default TreeViewSubTree;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { TreeViewTrailingActionProps } from "./TreeView.types";
3
+ declare function TreeViewTrailingAction(props: TreeViewTrailingActionProps): React.JSX.Element;
4
+ declare namespace TreeViewTrailingAction {
5
+ var displayName: string;
6
+ }
7
+ export default TreeViewTrailingAction;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { TreeViewVisualProps } from "./TreeView.types";
3
+ declare function TreeViewTrailingVisual(props: TreeViewVisualProps): React.JSX.Element;
4
+ declare namespace TreeViewTrailingVisual {
5
+ var displayName: string;
6
+ }
7
+ export default TreeViewTrailingVisual;
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import type { TreeViewVisualChildren } from "./TreeView.types";
3
+ export declare const classes: {
4
+ visual: string;
5
+ hidden: string;
6
+ };
7
+ export declare const renderVisualChildren: (children: TreeViewVisualChildren, isExpanded: boolean) => React.ReactNode;
8
+ export type TreeViewVisualContainerProps = {
9
+ children?: TreeViewVisualChildren;
10
+ label?: string;
11
+ labelId?: string;
12
+ className: string;
13
+ "data-component": string;
14
+ };
15
+ export declare const TreeViewVisualContainer: (props: TreeViewVisualContainerProps) => React.JSX.Element;