@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.
- package/LICENSE +21 -0
- package/build/components/accordion/Accordion.d.ts +12 -0
- package/build/components/accordion/Accordion.types.d.ts +38 -0
- package/build/components/accordion/AccordionContext.d.ts +2 -0
- package/build/components/accordion/AccordionHeader.d.ts +6 -0
- package/build/components/accordion/AccordionItem.d.ts +9 -0
- package/build/components/accordion/AccordionItemContext.d.ts +2 -0
- package/build/components/accordion/AccordionPanel.d.ts +7 -0
- package/build/components/accordion/index.d.ts +34 -0
- package/build/components/action-bar/ActionBar.d.ts +7 -0
- package/build/components/action-bar/ActionBar.types.d.ts +57 -0
- package/build/components/action-bar/ActionBarButton.d.ts +5 -0
- package/build/components/action-bar/ActionBarContext.d.ts +2 -0
- package/build/components/action-bar/ActionBarDivider.d.ts +7 -0
- package/build/components/action-bar/ActionBarGroup.d.ts +7 -0
- package/build/components/action-bar/ActionBarIconButton.d.ts +4 -0
- package/build/components/action-bar/ActionBarItemContext.d.ts +2 -0
- package/build/components/action-bar/ActionBarMenu.d.ts +9 -0
- package/build/components/action-bar/ActionBarMenuItems.d.ts +5 -0
- package/build/components/action-bar/index.d.ts +25 -0
- package/build/components/action-bar/useActionBarItem.d.ts +5 -0
- package/build/components/action-list/ActionList.d.ts +12 -0
- package/build/components/action-list/ActionList.types.d.ts +95 -0
- package/build/components/action-list/ActionListContainerContext.d.ts +2 -0
- package/build/components/action-list/ActionListContext.d.ts +2 -0
- package/build/components/action-list/ActionListDescription.d.ts +7 -0
- package/build/components/action-list/ActionListDivider.d.ts +7 -0
- package/build/components/action-list/ActionListGroup.d.ts +7 -0
- package/build/components/action-list/ActionListGroupContext.d.ts +2 -0
- package/build/components/action-list/ActionListGroupHeading.d.ts +5 -0
- package/build/components/action-list/ActionListHeading.d.ts +9 -0
- package/build/components/action-list/ActionListItem.d.ts +15 -0
- package/build/components/action-list/ActionListItemContext.d.ts +2 -0
- package/build/components/action-list/ActionListLeadingVisual.d.ts +7 -0
- package/build/components/action-list/ActionListLinkItem.d.ts +3 -0
- package/build/components/action-list/ActionListSelection.d.ts +7 -0
- package/build/components/action-list/ActionListSubItem.d.ts +6 -0
- package/build/components/action-list/ActionListTrailingAction.d.ts +7 -0
- package/build/components/action-list/ActionListTrailingVisual.d.ts +7 -0
- package/build/components/action-list/ActionListVisual.d.ts +3 -0
- package/build/components/action-list/index.d.ts +59 -0
- package/build/components/action-menu/ActionMenu.d.ts +7 -0
- package/build/components/action-menu/ActionMenu.types.d.ts +29 -0
- package/build/components/action-menu/ActionMenuAnchor.d.ts +7 -0
- package/build/components/action-menu/ActionMenuButton.d.ts +7 -0
- package/build/components/action-menu/ActionMenuContext.d.ts +2 -0
- package/build/components/action-menu/ActionMenuOverlay.d.ts +7 -0
- package/build/components/action-menu/index.d.ts +14 -0
- package/build/components/alert/Alert.d.ts +9 -0
- package/build/components/alert/Alert.types.d.ts +7 -0
- package/build/components/alert/index.d.ts +2 -0
- package/build/components/anchored-overlay/AnchoredOverlay.d.ts +7 -0
- package/build/components/anchored-overlay/AnchoredOverlay.types.d.ts +58 -0
- package/build/components/anchored-overlay/index.d.ts +2 -0
- package/build/components/autocomplete/Autocomplete.d.ts +7 -0
- package/build/components/autocomplete/Autocomplete.types.d.ts +77 -0
- package/build/components/autocomplete/AutocompleteContext.d.ts +4 -0
- package/build/components/autocomplete/AutocompleteInput.d.ts +6 -0
- package/build/components/autocomplete/AutocompleteMenu.d.ts +7 -0
- package/build/components/autocomplete/AutocompleteOverlay.d.ts +7 -0
- package/build/components/autocomplete/index.d.ts +15 -0
- package/build/components/avatar/Avatar.d.ts +11 -0
- package/build/components/avatar/Avatar.types.d.ts +10 -0
- package/build/components/avatar/index.d.ts +2 -0
- package/build/components/avatar-stack/AvatarStack.d.ts +14 -0
- package/build/components/avatar-stack/AvatarStack.types.d.ts +12 -0
- package/build/components/avatar-stack/index.d.ts +2 -0
- package/build/components/banner/Banner.d.ts +17 -0
- package/build/components/banner/Banner.types.d.ts +33 -0
- package/build/components/banner/BannerContext.d.ts +2 -0
- package/build/components/banner/BannerDescription.d.ts +5 -0
- package/build/components/banner/BannerPrimaryAction.d.ts +3 -0
- package/build/components/banner/BannerSecondaryAction.d.ts +3 -0
- package/build/components/banner/BannerTitle.d.ts +6 -0
- package/build/components/banner/index.d.ts +31 -0
- package/build/components/blankslate/Blankslate.d.ts +12 -0
- package/build/components/blankslate/Blankslate.types.d.ts +28 -0
- package/build/components/blankslate/BlankslateAction.d.ts +5 -0
- package/build/components/blankslate/BlankslateDescription.d.ts +5 -0
- package/build/components/blankslate/BlankslateHeading.d.ts +6 -0
- package/build/components/blankslate/BlankslatePrimaryAction.d.ts +5 -0
- package/build/components/blankslate/BlankslateSecondaryAction.d.ts +7 -0
- package/build/components/blankslate/BlankslateVisual.d.ts +5 -0
- package/build/components/blankslate/index.d.ts +35 -0
- package/build/components/breadcrumbs/Breadcrumbs.d.ts +7 -0
- package/build/components/breadcrumbs/Breadcrumbs.types.d.ts +17 -0
- package/build/components/breadcrumbs/BreadcrumbsContext.d.ts +5 -0
- package/build/components/breadcrumbs/BreadcrumbsItem.d.ts +8 -0
- package/build/components/breadcrumbs/BreadcrumbsOverflowMenu.d.ts +7 -0
- package/build/components/breadcrumbs/index.d.ts +13 -0
- package/build/components/button/Button.d.ts +5 -0
- package/build/components/button/Button.types.d.ts +24 -0
- package/build/components/button/ButtonBase.d.ts +25 -0
- package/build/components/button/index.d.ts +2 -0
- package/build/components/button-group/ButtonGroup.d.ts +7 -0
- package/build/components/button-group/ButtonGroup.types.d.ts +5 -0
- package/build/components/button-group/index.d.ts +2 -0
- package/build/components/calendar/Calendar.d.ts +4 -0
- package/build/components/calendar/Calendar.types.d.ts +75 -0
- package/build/components/calendar/CalendarDay.d.ts +14 -0
- package/build/components/calendar/calendarDates.d.ts +21 -0
- package/build/components/calendar/index.d.ts +18 -0
- package/build/components/card/Card.d.ts +11 -0
- package/build/components/card/Card.types.d.ts +37 -0
- package/build/components/card/CardAction.d.ts +5 -0
- package/build/components/card/CardContext.d.ts +2 -0
- package/build/components/card/CardDescription.d.ts +5 -0
- package/build/components/card/CardHeading.d.ts +6 -0
- package/build/components/card/CardIcon.d.ts +6 -0
- package/build/components/card/CardImage.d.ts +5 -0
- package/build/components/card/CardMetadata.d.ts +5 -0
- package/build/components/card/index.d.ts +37 -0
- package/build/components/carousel/Carousel.d.ts +4 -0
- package/build/components/carousel/Carousel.types.d.ts +47 -0
- package/build/components/carousel/CarouselContext.d.ts +3 -0
- package/build/components/carousel/CarouselControls.d.ts +5 -0
- package/build/components/carousel/CarouselIndicators.d.ts +5 -0
- package/build/components/carousel/CarouselNextButton.d.ts +5 -0
- package/build/components/carousel/CarouselPlayButton.d.ts +5 -0
- package/build/components/carousel/CarouselPreviousButton.d.ts +5 -0
- package/build/components/carousel/CarouselSlide.d.ts +5 -0
- package/build/components/carousel/index.d.ts +29 -0
- package/build/components/chart/Chart.d.ts +21 -0
- package/build/components/chart/Chart.types.d.ts +59 -0
- package/build/components/chart/ChartLegend.d.ts +6 -0
- package/build/components/chart/ChartTooltip.d.ts +8 -0
- package/build/components/chart/chartPalette.d.ts +3 -0
- package/build/components/chart/chartScales.d.ts +36 -0
- package/build/components/chart/index.d.ts +36 -0
- package/build/components/chart/useChartWidth.d.ts +2 -0
- package/build/components/checkbox/Checkbox.d.ts +8 -0
- package/build/components/checkbox/Checkbox.types.d.ts +8 -0
- package/build/components/checkbox/index.d.ts +2 -0
- package/build/components/checkbox-group/CheckboxGroup.d.ts +9 -0
- package/build/components/checkbox-group/CheckboxGroup.types.d.ts +28 -0
- package/build/components/checkbox-group/CheckboxGroupCaption.d.ts +5 -0
- package/build/components/checkbox-group/CheckboxGroupContext.d.ts +2 -0
- package/build/components/checkbox-group/CheckboxGroupLabel.d.ts +6 -0
- package/build/components/checkbox-group/CheckboxGroupValidation.d.ts +7 -0
- package/build/components/checkbox-group/index.d.ts +25 -0
- package/build/components/collapsible/Collapsible.d.ts +10 -0
- package/build/components/collapsible/Collapsible.types.d.ts +25 -0
- package/build/components/collapsible/CollapsibleContent.d.ts +7 -0
- package/build/components/collapsible/CollapsibleContext.d.ts +2 -0
- package/build/components/collapsible/CollapsibleTrigger.d.ts +6 -0
- package/build/components/collapsible/index.d.ts +23 -0
- package/build/components/command-palette/CommandPalette.d.ts +16 -0
- package/build/components/command-palette/CommandPalette.types.d.ts +81 -0
- package/build/components/command-palette/CommandPaletteContext.d.ts +3 -0
- package/build/components/command-palette/CommandPaletteDialog.d.ts +21 -0
- package/build/components/command-palette/CommandPaletteEmpty.d.ts +5 -0
- package/build/components/command-palette/CommandPaletteGroup.d.ts +7 -0
- package/build/components/command-palette/CommandPaletteInput.d.ts +5 -0
- package/build/components/command-palette/CommandPaletteItem.d.ts +10 -0
- package/build/components/command-palette/CommandPaletteList.d.ts +6 -0
- package/build/components/command-palette/CommandPaletteLoading.d.ts +6 -0
- package/build/components/command-palette/CommandPaletteSeparator.d.ts +6 -0
- package/build/components/command-palette/commandScore.d.ts +1 -0
- package/build/components/command-palette/index.d.ts +77 -0
- package/build/components/confirmation-dialog/ConfirmationDialog.d.ts +17 -0
- package/build/components/confirmation-dialog/ConfirmationDialog.types.d.ts +21 -0
- package/build/components/confirmation-dialog/index.d.ts +3 -0
- package/build/components/confirmation-dialog/useConfirm.d.ts +2 -0
- package/build/components/counter-label/CounterLabel.d.ts +9 -0
- package/build/components/counter-label/CounterLabel.types.d.ts +7 -0
- package/build/components/counter-label/index.d.ts +2 -0
- package/build/components/data-table/DataTable.d.ts +4 -0
- package/build/components/data-table/DataTable.types.d.ts +118 -0
- package/build/components/data-table/Table.d.ts +10 -0
- package/build/components/data-table/TableActions.d.ts +5 -0
- package/build/components/data-table/TableBody.d.ts +5 -0
- package/build/components/data-table/TableCell.d.ts +7 -0
- package/build/components/data-table/TableCellPlaceholder.d.ts +5 -0
- package/build/components/data-table/TableContainer.d.ts +7 -0
- package/build/components/data-table/TableDivider.d.ts +5 -0
- package/build/components/data-table/TableErrorDialog.d.ts +9 -0
- package/build/components/data-table/TableHead.d.ts +5 -0
- package/build/components/data-table/TableHeader.d.ts +6 -0
- package/build/components/data-table/TablePagination.d.ts +16 -0
- package/build/components/data-table/TableRow.d.ts +5 -0
- package/build/components/data-table/TableSkeleton.d.ts +10 -0
- package/build/components/data-table/TableSortHeader.d.ts +9 -0
- package/build/components/data-table/TableSubtitle.d.ts +8 -0
- package/build/components/data-table/TableTitle.d.ts +8 -0
- package/build/components/data-table/column.d.ts +4 -0
- package/build/components/data-table/index.d.ts +103 -0
- package/build/components/data-table/sorting.d.ts +8 -0
- package/build/components/data-table/tableLayout.d.ts +4 -0
- package/build/components/data-table/useTable.d.ts +35 -0
- package/build/components/date-picker/DatePicker.d.ts +4 -0
- package/build/components/date-picker/DatePicker.types.d.ts +41 -0
- package/build/components/date-picker/index.d.ts +2 -0
- package/build/components/details/Details.d.ts +9 -0
- package/build/components/details/Details.types.d.ts +12 -0
- package/build/components/details/DetailsSummary.d.ts +7 -0
- package/build/components/details/index.d.ts +16 -0
- package/build/components/dialog/Dialog.d.ts +20 -0
- package/build/components/dialog/Dialog.types.d.ts +69 -0
- package/build/components/dialog/DialogBody.d.ts +7 -0
- package/build/components/dialog/DialogButtons.d.ts +7 -0
- package/build/components/dialog/DialogCloseButton.d.ts +6 -0
- package/build/components/dialog/DialogContext.d.ts +2 -0
- package/build/components/dialog/DialogFooter.d.ts +7 -0
- package/build/components/dialog/DialogHeader.d.ts +7 -0
- package/build/components/dialog/DialogSubtitle.d.ts +7 -0
- package/build/components/dialog/DialogTitle.d.ts +7 -0
- package/build/components/dialog/index.d.ts +58 -0
- package/build/components/divider/Divider.d.ts +10 -0
- package/build/components/divider/Divider.types.d.ts +9 -0
- package/build/components/divider/index.d.ts +2 -0
- package/build/components/drawer/Drawer.d.ts +14 -0
- package/build/components/drawer/Drawer.types.d.ts +41 -0
- package/build/components/drawer/DrawerBody.d.ts +7 -0
- package/build/components/drawer/DrawerCloseButton.d.ts +6 -0
- package/build/components/drawer/DrawerContext.d.ts +2 -0
- package/build/components/drawer/DrawerFooter.d.ts +7 -0
- package/build/components/drawer/DrawerHeader.d.ts +7 -0
- package/build/components/drawer/DrawerSubtitle.d.ts +7 -0
- package/build/components/drawer/DrawerTitle.d.ts +7 -0
- package/build/components/drawer/index.d.ts +50 -0
- package/build/components/empty-state/EmptyState.d.ts +11 -0
- package/build/components/empty-state/EmptyState.types.d.ts +12 -0
- package/build/components/empty-state/index.d.ts +2 -0
- package/build/components/filtered-action-list/FilteredActionList.d.ts +7 -0
- package/build/components/filtered-action-list/FilteredActionList.types.d.ts +75 -0
- package/build/components/filtered-action-list/FilteredActionListInput.d.ts +6 -0
- package/build/components/filtered-action-list/FilteredActionListItem.d.ts +6 -0
- package/build/components/filtered-action-list/FilteredActionListLoaders.d.ts +5 -0
- package/build/components/filtered-action-list/index.d.ts +15 -0
- package/build/components/filtered-action-list/useAnnouncements.d.ts +8 -0
- package/build/components/form-control/FormControl.d.ts +9 -0
- package/build/components/form-control/FormControl.types.d.ts +45 -0
- package/build/components/form-control/FormControlCaption.d.ts +5 -0
- package/build/components/form-control/FormControlContext.d.ts +2 -0
- package/build/components/form-control/FormControlLabel.d.ts +11 -0
- package/build/components/form-control/FormControlLeadingVisual.d.ts +5 -0
- package/build/components/form-control/FormControlValidation.d.ts +7 -0
- package/build/components/form-control/index.d.ts +34 -0
- package/build/components/form-control/useFormControlForwardedProps.d.ts +2 -0
- package/build/components/heading/Heading.d.ts +9 -0
- package/build/components/heading/Heading.types.d.ts +7 -0
- package/build/components/heading/index.d.ts +2 -0
- package/build/components/hidden/Hidden.d.ts +9 -0
- package/build/components/hidden/Hidden.types.d.ts +7 -0
- package/build/components/hidden/index.d.ts +2 -0
- package/build/components/icon-button/IconButton.d.ts +4 -0
- package/build/components/icon-button/IconButton.types.d.ts +16 -0
- package/build/components/icon-button/index.d.ts +2 -0
- package/build/components/index.d.ts +78 -0
- package/build/components/inline-message/InlineMessage.d.ts +9 -0
- package/build/components/inline-message/InlineMessage.types.d.ts +10 -0
- package/build/components/inline-message/index.d.ts +2 -0
- package/build/components/keybinding-hint/KeybindingHint.d.ts +9 -0
- package/build/components/keybinding-hint/KeybindingHint.types.d.ts +22 -0
- package/build/components/keybinding-hint/KeybindingHintChord.d.ts +7 -0
- package/build/components/keybinding-hint/KeybindingHintKey.d.ts +6 -0
- package/build/components/keybinding-hint/PlatformContext.d.ts +2 -0
- package/build/components/keybinding-hint/chords.d.ts +6 -0
- package/build/components/keybinding-hint/index.d.ts +5 -0
- package/build/components/keybinding-hint/keyNames.d.ts +4 -0
- package/build/components/keybinding-hint/platform.d.ts +3 -0
- package/build/components/label/Label.d.ts +10 -0
- package/build/components/label/Label.types.d.ts +9 -0
- package/build/components/label/index.d.ts +2 -0
- package/build/components/link/Link.d.ts +9 -0
- package/build/components/link/Link.types.d.ts +7 -0
- package/build/components/link/index.d.ts +2 -0
- package/build/components/link-button/LinkButton.d.ts +5 -0
- package/build/components/link-button/LinkButton.types.d.ts +4 -0
- package/build/components/link-button/index.d.ts +2 -0
- package/build/components/nav-list/NavList.d.ts +6 -0
- package/build/components/nav-list/NavList.types.d.ts +53 -0
- package/build/components/nav-list/NavListContext.d.ts +11 -0
- package/build/components/nav-list/NavListGroup.d.ts +7 -0
- package/build/components/nav-list/NavListGroupExpand.d.ts +10 -0
- package/build/components/nav-list/NavListGroupHeading.d.ts +4 -0
- package/build/components/nav-list/NavListHeading.d.ts +6 -0
- package/build/components/nav-list/NavListItem.d.ts +10 -0
- package/build/components/nav-list/NavListItemWithSubNav.d.ts +15 -0
- package/build/components/nav-list/NavListSubNav.d.ts +6 -0
- package/build/components/nav-list/headingLevel.d.ts +3 -0
- package/build/components/nav-list/index.d.ts +45 -0
- package/build/components/page-content/PageContent.d.ts +11 -0
- package/build/components/page-content/PageContent.types.d.ts +17 -0
- package/build/components/page-content/PageContentSection.d.ts +6 -0
- package/build/components/page-content/index.d.ts +16 -0
- package/build/components/page-content/visibility.d.ts +6 -0
- package/build/components/page-footer/PageFooter.d.ts +10 -0
- package/build/components/page-footer/PageFooter.types.d.ts +20 -0
- package/build/components/page-footer/PageFooterActions.d.ts +6 -0
- package/build/components/page-footer/PageFooterCopyright.d.ts +6 -0
- package/build/components/page-footer/PageFooterDescription.d.ts +6 -0
- package/build/components/page-footer/PageFooterLeadingVisual.d.ts +6 -0
- package/build/components/page-footer/PageFooterNavigation.d.ts +7 -0
- package/build/components/page-footer/PageFooterRegion.d.ts +6 -0
- package/build/components/page-footer/index.d.ts +36 -0
- package/build/components/page-footer/visibility.d.ts +6 -0
- package/build/components/page-header/PageHeader.d.ts +8 -0
- package/build/components/page-header/PageHeader.types.d.ts +32 -0
- package/build/components/page-header/PageHeaderActions.d.ts +6 -0
- package/build/components/page-header/PageHeaderBreadcrumbs.d.ts +6 -0
- package/build/components/page-header/PageHeaderContextArea.d.ts +6 -0
- package/build/components/page-header/PageHeaderContextAreaActions.d.ts +6 -0
- package/build/components/page-header/PageHeaderContextBar.d.ts +6 -0
- package/build/components/page-header/PageHeaderDescription.d.ts +6 -0
- package/build/components/page-header/PageHeaderLeadingAction.d.ts +6 -0
- package/build/components/page-header/PageHeaderLeadingVisual.d.ts +6 -0
- package/build/components/page-header/PageHeaderNavigation.d.ts +7 -0
- package/build/components/page-header/PageHeaderParentLink.d.ts +6 -0
- package/build/components/page-header/PageHeaderRegion.d.ts +6 -0
- package/build/components/page-header/PageHeaderTitle.d.ts +7 -0
- package/build/components/page-header/PageHeaderTitleArea.d.ts +8 -0
- package/build/components/page-header/PageHeaderTrailingAction.d.ts +6 -0
- package/build/components/page-header/PageHeaderTrailingVisual.d.ts +6 -0
- package/build/components/page-header/index.d.ts +83 -0
- package/build/components/page-header/visibility.d.ts +6 -0
- package/build/components/page-layout/DragHandle.d.ts +7 -0
- package/build/components/page-layout/PageLayout.d.ts +10 -0
- package/build/components/page-layout/PageLayout.types.d.ts +127 -0
- package/build/components/page-layout/PageLayoutContent.d.ts +10 -0
- package/build/components/page-layout/PageLayoutContext.d.ts +2 -0
- package/build/components/page-layout/PageLayoutFooter.d.ts +8 -0
- package/build/components/page-layout/PageLayoutHeader.d.ts +8 -0
- package/build/components/page-layout/PageLayoutHorizontalDivider.d.ts +7 -0
- package/build/components/page-layout/PageLayoutPane.d.ts +4 -0
- package/build/components/page-layout/PageLayoutSidebar.d.ts +4 -0
- package/build/components/page-layout/PageLayoutVerticalDivider.d.ts +7 -0
- package/build/components/page-layout/index.d.ts +40 -0
- package/build/components/page-layout/paneUtils.d.ts +30 -0
- package/build/components/page-layout/usePaneWidth.d.ts +2 -0
- package/build/components/page-sidebar/PageSidebar.d.ts +14 -0
- package/build/components/page-sidebar/PageSidebar.types.d.ts +32 -0
- package/build/components/page-sidebar/PageSidebarActions.d.ts +6 -0
- package/build/components/page-sidebar/PageSidebarContent.d.ts +6 -0
- package/build/components/page-sidebar/PageSidebarFooter.d.ts +6 -0
- package/build/components/page-sidebar/PageSidebarHeader.d.ts +6 -0
- package/build/components/page-sidebar/PageSidebarNavigation.d.ts +7 -0
- package/build/components/page-sidebar/PageSidebarRegion.d.ts +6 -0
- package/build/components/page-sidebar/PageSidebarSection.d.ts +6 -0
- package/build/components/page-sidebar/PageSidebarTitle.d.ts +7 -0
- package/build/components/page-sidebar/index.d.ts +51 -0
- package/build/components/page-sidebar/visibility.d.ts +6 -0
- package/build/components/pagination/Pagination.d.ts +16 -0
- package/build/components/pagination/Pagination.types.d.ts +43 -0
- package/build/components/pagination/index.d.ts +3 -0
- package/build/components/pagination/paginationModel.d.ts +3 -0
- package/build/components/placeholder/Placeholder.d.ts +10 -0
- package/build/components/placeholder/Placeholder.types.d.ts +8 -0
- package/build/components/placeholder/index.d.ts +2 -0
- package/build/components/portal/Portal.d.ts +7 -0
- package/build/components/portal/Portal.types.d.ts +9 -0
- package/build/components/portal/PortalContext.d.ts +2 -0
- package/build/components/portal/index.d.ts +4 -0
- package/build/components/portal/portalRoot.d.ts +4 -0
- package/build/components/progress-bar/ProgressBar.d.ts +13 -0
- package/build/components/progress-bar/ProgressBar.types.d.ts +18 -0
- package/build/components/progress-bar/ProgressBarItem.d.ts +11 -0
- package/build/components/progress-bar/index.d.ts +22 -0
- package/build/components/radio/Radio.d.ts +8 -0
- package/build/components/radio/Radio.types.d.ts +8 -0
- package/build/components/radio/index.d.ts +2 -0
- package/build/components/radio-group/RadioGroup.d.ts +10 -0
- package/build/components/radio-group/RadioGroup.types.d.ts +30 -0
- package/build/components/radio-group/RadioGroupCaption.d.ts +5 -0
- package/build/components/radio-group/RadioGroupContext.d.ts +2 -0
- package/build/components/radio-group/RadioGroupLabel.d.ts +6 -0
- package/build/components/radio-group/RadioGroupValidation.d.ts +7 -0
- package/build/components/radio-group/index.d.ts +26 -0
- package/build/components/relative-time/RelativeTime.d.ts +15 -0
- package/build/components/relative-time/RelativeTime.types.d.ts +40 -0
- package/build/components/relative-time/index.d.ts +3 -0
- package/build/components/relative-time/relativeTimeFormat.d.ts +19 -0
- package/build/components/scrollable-region/ScrollableRegion.d.ts +4 -0
- package/build/components/scrollable-region/ScrollableRegion.types.d.ts +13 -0
- package/build/components/scrollable-region/index.d.ts +2 -0
- package/build/components/segmented-control/SegmentedControl.d.ts +7 -0
- package/build/components/segmented-control/SegmentedControl.types.d.ts +46 -0
- package/build/components/segmented-control/SegmentedControlButton.d.ts +6 -0
- package/build/components/segmented-control/SegmentedControlIconButton.d.ts +6 -0
- package/build/components/segmented-control/SegmentedControlSegment.d.ts +9 -0
- package/build/components/segmented-control/index.d.ts +9 -0
- package/build/components/select/Select.d.ts +10 -0
- package/build/components/select/Select.types.d.ts +17 -0
- package/build/components/select/SelectOptGroup.d.ts +5 -0
- package/build/components/select/SelectOption.d.ts +6 -0
- package/build/components/select/index.d.ts +19 -0
- package/build/components/select-panel/SelectPanel.d.ts +21 -0
- package/build/components/select-panel/SelectPanel.types.d.ts +82 -0
- package/build/components/select-panel/SelectPanelButton.d.ts +5 -0
- package/build/components/select-panel/SelectPanelContext.d.ts +2 -0
- package/build/components/select-panel/SelectPanelFooter.d.ts +5 -0
- package/build/components/select-panel/SelectPanelHeader.d.ts +6 -0
- package/build/components/select-panel/SelectPanelLoading.d.ts +5 -0
- package/build/components/select-panel/SelectPanelMessage.d.ts +4 -0
- package/build/components/select-panel/SelectPanelSearchInput.d.ts +6 -0
- package/build/components/select-panel/SelectPanelSecondaryAction.d.ts +7 -0
- package/build/components/select-panel/index.d.ts +48 -0
- package/build/components/skeleton-avatar/SkeletonAvatar.d.ts +7 -0
- package/build/components/skeleton-avatar/SkeletonAvatar.types.d.ts +7 -0
- package/build/components/skeleton-avatar/index.d.ts +2 -0
- package/build/components/skeleton-box/SkeletonBox.d.ts +9 -0
- package/build/components/skeleton-box/SkeletonBox.types.d.ts +7 -0
- package/build/components/skeleton-box/index.d.ts +2 -0
- package/build/components/skeleton-text/SkeletonText.d.ts +6 -0
- package/build/components/skeleton-text/SkeletonText.types.d.ts +8 -0
- package/build/components/skeleton-text/index.d.ts +2 -0
- package/build/components/slider/Slider.d.ts +15 -0
- package/build/components/slider/Slider.types.d.ts +15 -0
- package/build/components/slider/index.d.ts +2 -0
- package/build/components/spinner/Spinner.d.ts +10 -0
- package/build/components/spinner/Spinner.types.d.ts +8 -0
- package/build/components/spinner/index.d.ts +2 -0
- package/build/components/stack/Stack.d.ts +16 -0
- package/build/components/stack/Stack.types.d.ts +24 -0
- package/build/components/stack/StackItem.d.ts +9 -0
- package/build/components/stack/index.d.ts +24 -0
- package/build/components/state-label/StateLabel.d.ts +10 -0
- package/build/components/state-label/StateLabel.types.d.ts +9 -0
- package/build/components/state-label/index.d.ts +2 -0
- package/build/components/tabs/Tab.d.ts +7 -0
- package/build/components/tabs/TabList.d.ts +4 -0
- package/build/components/tabs/TabPanel.d.ts +6 -0
- package/build/components/tabs/Tabs.d.ts +7 -0
- package/build/components/tabs/Tabs.types.d.ts +72 -0
- package/build/components/tabs/TabsContext.d.ts +2 -0
- package/build/components/tabs/composeEventHandlers.d.ts +4 -0
- package/build/components/tabs/index.d.ts +23 -0
- package/build/components/tabs/useTab.d.ts +2 -0
- package/build/components/tabs/useTabList.d.ts +2 -0
- package/build/components/tabs/useTabPanel.d.ts +2 -0
- package/build/components/tabs/useTabs.d.ts +2 -0
- package/build/components/text/Text.d.ts +11 -0
- package/build/components/text/Text.types.d.ts +11 -0
- package/build/components/text/index.d.ts +2 -0
- package/build/components/text-input/TextInput.d.ts +18 -0
- package/build/components/text-input/TextInput.types.d.ts +33 -0
- package/build/components/text-input/TextInputAction.d.ts +4 -0
- package/build/components/text-input/index.d.ts +20 -0
- package/build/components/textarea/Textarea.d.ts +16 -0
- package/build/components/textarea/Textarea.types.d.ts +13 -0
- package/build/components/textarea/characterCount.d.ts +7 -0
- package/build/components/textarea/index.d.ts +3 -0
- package/build/components/timeline/Timeline.d.ts +7 -0
- package/build/components/timeline/Timeline.types.d.ts +27 -0
- package/build/components/timeline/TimelineActions.d.ts +5 -0
- package/build/components/timeline/TimelineAvatar.d.ts +5 -0
- package/build/components/timeline/TimelineBadge.d.ts +7 -0
- package/build/components/timeline/TimelineBody.d.ts +5 -0
- package/build/components/timeline/TimelineBreak.d.ts +5 -0
- package/build/components/timeline/TimelineItem.d.ts +6 -0
- package/build/components/timeline/index.d.ts +33 -0
- package/build/components/toast/Toast.d.ts +7 -0
- package/build/components/toast/Toast.types.d.ts +78 -0
- package/build/components/toast/Toaster.d.ts +21 -0
- package/build/components/toast/index.d.ts +3 -0
- package/build/components/toast/toastStore.d.ts +20 -0
- package/build/components/toggle-switch/ToggleSwitch.d.ts +21 -0
- package/build/components/toggle-switch/ToggleSwitch.types.d.ts +21 -0
- package/build/components/toggle-switch/index.d.ts +2 -0
- package/build/components/token/IssueLabelToken.d.ts +15 -0
- package/build/components/token/Token.d.ts +17 -0
- package/build/components/token/Token.types.d.ts +37 -0
- package/build/components/token/TokenBase.d.ts +16 -0
- package/build/components/token/TokenRemoveButton.d.ts +7 -0
- package/build/components/token/TokenText.d.ts +10 -0
- package/build/components/token/index.d.ts +7 -0
- package/build/components/token/issueLabelColor.d.ts +13 -0
- package/build/components/tooltip/Tooltip.d.ts +12 -0
- package/build/components/tooltip/Tooltip.types.d.ts +14 -0
- package/build/components/tooltip/TooltipContext.d.ts +2 -0
- package/build/components/tooltip/anchoredPosition.d.ts +15 -0
- package/build/components/tooltip/index.d.ts +5 -0
- package/build/components/topic-tag/TopicTag.d.ts +7 -0
- package/build/components/topic-tag/TopicTag.types.d.ts +8 -0
- package/build/components/topic-tag/TopicTagGroup.d.ts +7 -0
- package/build/components/topic-tag/index.d.ts +14 -0
- package/build/components/tree-view/TreeView.d.ts +8 -0
- package/build/components/tree-view/TreeView.types.d.ts +60 -0
- package/build/components/tree-view/TreeViewActionDialog.d.ts +7 -0
- package/build/components/tree-view/TreeViewContext.d.ts +20 -0
- package/build/components/tree-view/TreeViewDirectoryIcon.d.ts +6 -0
- package/build/components/tree-view/TreeViewErrorDialog.d.ts +7 -0
- package/build/components/tree-view/TreeViewItem.d.ts +16 -0
- package/build/components/tree-view/TreeViewLeadingAction.d.ts +6 -0
- package/build/components/tree-view/TreeViewLeadingVisual.d.ts +7 -0
- package/build/components/tree-view/TreeViewSubTree.d.ts +7 -0
- package/build/components/tree-view/TreeViewTrailingAction.d.ts +7 -0
- package/build/components/tree-view/TreeViewTrailingVisual.d.ts +7 -0
- package/build/components/tree-view/TreeViewVisual.d.ts +15 -0
- package/build/components/tree-view/index.d.ts +37 -0
- package/build/components/tree-view/treeNavigation.d.ts +8 -0
- package/build/components/tree-view/useRovingTabIndex.d.ts +5 -0
- package/build/components/tree-view/useTypeahead.d.ts +6 -0
- package/build/components/truncate/Truncate.d.ts +12 -0
- package/build/components/truncate/Truncate.types.d.ts +9 -0
- package/build/components/truncate/index.d.ts +2 -0
- package/build/components/upload/Upload.d.ts +16 -0
- package/build/components/upload/Upload.types.d.ts +51 -0
- package/build/components/upload/UploadContext.d.ts +2 -0
- package/build/components/upload/UploadDescription.d.ts +5 -0
- package/build/components/upload/UploadIcon.d.ts +6 -0
- package/build/components/upload/UploadItem.d.ts +13 -0
- package/build/components/upload/UploadLabel.d.ts +5 -0
- package/build/components/upload/UploadList.d.ts +5 -0
- package/build/components/upload/files.d.ts +13 -0
- package/build/components/upload/index.d.ts +48 -0
- package/build/hooks/useFocusTrap.d.ts +8 -0
- package/build/hooks/useFocusZone.d.ts +10 -0
- package/build/hooks/useId.d.ts +1 -0
- package/build/hooks/useIsClipped.d.ts +7 -0
- package/build/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/build/hooks/useMergedRefs.d.ts +8 -0
- package/build/hooks/useOnEscapePress.d.ts +2 -0
- package/build/hooks/useOverflow.d.ts +2 -0
- package/build/hooks/useResponsive.d.ts +18 -0
- package/build/hooks/useScrollLock.d.ts +1 -0
- package/build/hooks/useSlots.d.ts +14 -0
- package/build/hooks/useSyncedState.d.ts +4 -0
- package/build/main.cjs.js +10 -0
- package/build/main.d.ts +2 -0
- package/build/main.esm.js +10 -0
- package/build/theme/Theme.types.d.ts +22 -0
- package/build/theme/ThemeContext.d.ts +2 -0
- package/build/theme/ThemeProvider.d.ts +8 -0
- package/build/theme/index.d.ts +4 -0
- package/build/theme/useTheme.d.ts +3 -0
- package/build/types/assets.types.d.ts +48 -0
- package/build/utilities/classnames.d.ts +2 -0
- package/build/utilities/environment.d.ts +4 -0
- package/build/utilities/interactive.d.ts +2 -0
- package/build/utilities/polymorphic.d.ts +25 -0
- package/build/utilities/responsive.d.ts +3 -0
- package/build/utilities/slot.d.ts +3 -0
- package/build/utilities/types/slots.d.ts +5 -0
- package/package.json +105 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { AnchoredOverlayAnchorProps, AnchoredOverlayProps } from "../anchored-overlay/AnchoredOverlay.types";
|
|
3
|
+
import type { ButtonProps } from "../button";
|
|
4
|
+
export type ActionMenuCloseGesture = "anchor-click" | "click-outside" | "escape" | "close-button" | "tab" | "item-select" | "arrow-left";
|
|
5
|
+
export type ActionMenuProps = {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
open?: boolean;
|
|
8
|
+
onOpenChange?: (open: boolean) => void;
|
|
9
|
+
anchorRef?: React.RefObject<HTMLElement | null>;
|
|
10
|
+
};
|
|
11
|
+
export type ActionMenuAnchorProps = React.HTMLAttributes<HTMLElement> & {
|
|
12
|
+
children: React.ReactElement;
|
|
13
|
+
id?: string;
|
|
14
|
+
};
|
|
15
|
+
export type ActionMenuButtonProps<As extends React.ElementType = "button"> = ButtonProps<As>;
|
|
16
|
+
export type ActionMenuOverlayProps = Pick<AnchoredOverlayProps, "align" | "side" | "width" | "height" | "variant" | "preventOverflow" | "className"> & {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
"aria-labelledby"?: string;
|
|
19
|
+
returnFocusRef?: React.RefObject<HTMLElement | null>;
|
|
20
|
+
};
|
|
21
|
+
export type ActionMenuContextValue = {
|
|
22
|
+
anchorRef: React.RefObject<HTMLElement | null>;
|
|
23
|
+
renderAnchor: ((props: AnchoredOverlayAnchorProps) => React.ReactElement) | null;
|
|
24
|
+
anchorId?: string;
|
|
25
|
+
open: boolean;
|
|
26
|
+
onOpen?: () => void;
|
|
27
|
+
onClose?: (gesture: ActionMenuCloseGesture) => void;
|
|
28
|
+
isSubmenu?: boolean;
|
|
29
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { ActionMenuAnchorProps } from "./ActionMenu.types";
|
|
3
|
+
declare function ActionMenuAnchor(props: ActionMenuAnchorProps): React.JSX.Element | null;
|
|
4
|
+
declare namespace ActionMenuAnchor {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default ActionMenuAnchor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { ActionMenuButtonProps } from "./ActionMenu.types";
|
|
3
|
+
declare function ActionMenuButton<As extends React.ElementType = "button">(props: ActionMenuButtonProps<As>): React.JSX.Element;
|
|
4
|
+
declare namespace ActionMenuButton {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default ActionMenuButton;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { ActionMenuOverlayProps } from "./ActionMenu.types";
|
|
3
|
+
declare function ActionMenuOverlay(props: ActionMenuOverlayProps): React.JSX.Element | null;
|
|
4
|
+
declare namespace ActionMenuOverlay {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default ActionMenuOverlay;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ActionListDivider } from "../action-list";
|
|
2
|
+
import ActionMenuBase from "./ActionMenu";
|
|
3
|
+
import ActionMenuAnchor from "./ActionMenuAnchor";
|
|
4
|
+
import ActionMenuButton from "./ActionMenuButton";
|
|
5
|
+
import ActionMenuOverlay from "./ActionMenuOverlay";
|
|
6
|
+
export declare const ActionMenu: typeof ActionMenuBase & {
|
|
7
|
+
Anchor: typeof ActionMenuAnchor;
|
|
8
|
+
Button: typeof ActionMenuButton;
|
|
9
|
+
Overlay: typeof ActionMenuOverlay;
|
|
10
|
+
Divider: typeof ActionListDivider;
|
|
11
|
+
};
|
|
12
|
+
export { ActionMenuAnchor, ActionMenuButton, ActionMenuOverlay };
|
|
13
|
+
export { ActionMenuContext } from "./ActionMenuContext";
|
|
14
|
+
export * from "./ActionMenu.types";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { AlertVariant } from "./Alert.types";
|
|
3
|
+
declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
|
|
4
|
+
variant?: AlertVariant;
|
|
5
|
+
className?: string;
|
|
6
|
+
}, "as"> & {
|
|
7
|
+
as?: As | undefined;
|
|
8
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type AlertVariant = "default" | "success" | "warning" | "danger";
|
|
4
|
+
export type AlertProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
|
|
5
|
+
variant?: AlertVariant;
|
|
6
|
+
className?: string;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { AnchoredOverlayProps } from "./AnchoredOverlay.types";
|
|
3
|
+
declare function AnchoredOverlay(props: AnchoredOverlayProps): React.JSX.Element;
|
|
4
|
+
declare namespace AnchoredOverlay {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default AnchoredOverlay;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { FocusTrapOptions } from "../../hooks/useFocusTrap";
|
|
3
|
+
import type { ResponsiveValue } from "../../hooks/useResponsive";
|
|
4
|
+
import type { AnchorAlignment, AnchoredPosition, AnchorSide } from "../tooltip/anchoredPosition";
|
|
5
|
+
export type AnchoredOverlayOpenGesture = "anchor-click" | "anchor-key-press";
|
|
6
|
+
export type AnchoredOverlayCloseGesture = "anchor-click" | "click-outside" | "escape" | "close-button";
|
|
7
|
+
export type AnchoredOverlayWidth = "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto";
|
|
8
|
+
export type AnchoredOverlayHeight = "small" | "medium" | "large" | "xlarge" | "auto";
|
|
9
|
+
export type AnchoredOverlayVariant = ResponsiveValue<"anchored", "anchored" | "fullscreen">;
|
|
10
|
+
export type AnchoredOverlayAnchorProps = {
|
|
11
|
+
ref: React.Ref<any>;
|
|
12
|
+
id: string;
|
|
13
|
+
"aria-haspopup": "true";
|
|
14
|
+
"aria-expanded": boolean;
|
|
15
|
+
tabIndex: number;
|
|
16
|
+
onClick: React.MouseEventHandler<HTMLElement>;
|
|
17
|
+
onKeyDown: React.KeyboardEventHandler<HTMLElement>;
|
|
18
|
+
};
|
|
19
|
+
export type AnchoredOverlayAnchorRenderer = (props: AnchoredOverlayAnchorProps) => React.ReactElement;
|
|
20
|
+
export type AnchoredOverlayOverlayProps = Omit<React.ComponentPropsWithRef<"div">, "children"> & {
|
|
21
|
+
portalContainerName?: string;
|
|
22
|
+
};
|
|
23
|
+
export type AnchoredOverlayFocusTrapSettings = Omit<FocusTrapOptions, "containerRef">;
|
|
24
|
+
export type AnchoredOverlayCloseButtonProps = Omit<React.ComponentPropsWithRef<"button">, "children" | "onClick" | "aria-labelledby">;
|
|
25
|
+
type AnchoredOverlayPropsWithAnchor = {
|
|
26
|
+
renderAnchor: AnchoredOverlayAnchorRenderer;
|
|
27
|
+
anchorRef?: React.RefObject<HTMLElement | null>;
|
|
28
|
+
anchorId?: string;
|
|
29
|
+
};
|
|
30
|
+
type AnchoredOverlayPropsWithoutAnchor = {
|
|
31
|
+
renderAnchor: null;
|
|
32
|
+
anchorRef: React.RefObject<HTMLElement | null>;
|
|
33
|
+
anchorId?: string;
|
|
34
|
+
};
|
|
35
|
+
export type AnchoredOverlayAnchorConfig = AnchoredOverlayPropsWithAnchor | AnchoredOverlayPropsWithoutAnchor;
|
|
36
|
+
export type AnchoredOverlayBaseProps = React.PropsWithChildren<{
|
|
37
|
+
open: boolean;
|
|
38
|
+
onOpen?: (gesture: AnchoredOverlayOpenGesture, event?: React.KeyboardEvent<HTMLElement>) => void;
|
|
39
|
+
onClose?: (gesture: AnchoredOverlayCloseGesture) => void;
|
|
40
|
+
side?: AnchorSide;
|
|
41
|
+
align?: AnchorAlignment;
|
|
42
|
+
anchorOffset?: number;
|
|
43
|
+
alignmentOffset?: number;
|
|
44
|
+
width?: AnchoredOverlayWidth;
|
|
45
|
+
height?: AnchoredOverlayHeight;
|
|
46
|
+
overlayProps?: AnchoredOverlayOverlayProps;
|
|
47
|
+
focusTrapSettings?: AnchoredOverlayFocusTrapSettings;
|
|
48
|
+
preventOverflow?: boolean;
|
|
49
|
+
variant?: AnchoredOverlayVariant;
|
|
50
|
+
displayCloseButton?: boolean;
|
|
51
|
+
closeButtonProps?: AnchoredOverlayCloseButtonProps;
|
|
52
|
+
onPositionChange?: (event: {
|
|
53
|
+
position: AnchoredPosition;
|
|
54
|
+
}) => void;
|
|
55
|
+
className?: string;
|
|
56
|
+
}>;
|
|
57
|
+
export type AnchoredOverlayProps = AnchoredOverlayBaseProps & AnchoredOverlayAnchorConfig;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { AutocompleteProps } from "./Autocomplete.types";
|
|
3
|
+
declare function Autocomplete({ children, id: idProp }: AutocompleteProps): React.JSX.Element;
|
|
4
|
+
declare namespace Autocomplete {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default Autocomplete;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { Merge } from "../../utilities/polymorphic";
|
|
3
|
+
import type { ActionListDescriptionVariant, ActionListItemVariant } from "../action-list";
|
|
4
|
+
import type { TextInputProps } from "../text-input";
|
|
5
|
+
import type { AnchorAlignment, AnchorSide } from "../tooltip/anchoredPosition";
|
|
6
|
+
export type AutocompleteSelectionVariant = "single" | "multiple";
|
|
7
|
+
export type AutocompleteVisual = React.ElementType | React.ReactNode;
|
|
8
|
+
export type AutocompleteOverlayWidth = "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto" | "anchor";
|
|
9
|
+
export type AutocompleteOverlayHeight = "small" | "medium" | "large" | "xlarge" | "auto";
|
|
10
|
+
export type AutocompleteOverlayMaxHeight = "small" | "medium" | "large" | "xlarge";
|
|
11
|
+
export type AutocompleteItem = Merge<Omit<React.ComponentPropsWithoutRef<"li">, "onSelect">, {
|
|
12
|
+
id: string;
|
|
13
|
+
text?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
descriptionVariant?: ActionListDescriptionVariant;
|
|
16
|
+
leadingVisual?: AutocompleteVisual;
|
|
17
|
+
trailingVisual?: AutocompleteVisual;
|
|
18
|
+
variant?: ActionListItemVariant;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
}>;
|
|
23
|
+
export type AutocompleteAddNewItem<T extends AutocompleteItem = AutocompleteItem> = {
|
|
24
|
+
item: T;
|
|
25
|
+
onAdd: (item: T) => void;
|
|
26
|
+
};
|
|
27
|
+
export type AutocompleteProps = React.PropsWithChildren<{
|
|
28
|
+
id?: string;
|
|
29
|
+
}>;
|
|
30
|
+
export type AutocompleteInputProps<As extends React.ElementType = never> = Merge<TextInputProps, {
|
|
31
|
+
as?: As;
|
|
32
|
+
openOnFocus?: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
export type AutocompleteMenuProps<T extends AutocompleteItem = AutocompleteItem> = {
|
|
35
|
+
items: T[];
|
|
36
|
+
selectedItemIds?: string[];
|
|
37
|
+
selectionVariant?: AutocompleteSelectionVariant;
|
|
38
|
+
filter?: (item: T, index: number) => boolean;
|
|
39
|
+
sortOnClose?: (itemIdA: string, itemIdB: string) => number;
|
|
40
|
+
emptyStateText?: React.ReactNode | false;
|
|
41
|
+
addNewItem?: AutocompleteAddNewItem<T>;
|
|
42
|
+
loading?: boolean;
|
|
43
|
+
onOpenChange?: (open: boolean) => void;
|
|
44
|
+
onSelectedChange?: (items: T[]) => void;
|
|
45
|
+
customScrollContainerRef?: React.RefObject<HTMLElement | null>;
|
|
46
|
+
"aria-labelledby": string;
|
|
47
|
+
className?: string;
|
|
48
|
+
};
|
|
49
|
+
export type AutocompleteOverlayProps = Omit<React.ComponentPropsWithoutRef<"div">, "children"> & {
|
|
50
|
+
menuAnchorRef?: React.RefObject<HTMLElement | null>;
|
|
51
|
+
side?: AnchorSide;
|
|
52
|
+
align?: AnchorAlignment;
|
|
53
|
+
width?: AutocompleteOverlayWidth;
|
|
54
|
+
height?: AutocompleteOverlayHeight;
|
|
55
|
+
maxHeight?: AutocompleteOverlayMaxHeight;
|
|
56
|
+
portalContainerName?: string;
|
|
57
|
+
children?: React.ReactNode;
|
|
58
|
+
className?: string;
|
|
59
|
+
};
|
|
60
|
+
export type AutocompleteContextValue = {
|
|
61
|
+
id?: string;
|
|
62
|
+
inputRef?: React.RefObject<HTMLInputElement | null>;
|
|
63
|
+
scrollContainerRef?: React.RefObject<HTMLDivElement | null>;
|
|
64
|
+
activeDescendantId?: string;
|
|
65
|
+
setActiveDescendantId?: (id: string | undefined) => void;
|
|
66
|
+
showMenu?: boolean;
|
|
67
|
+
setShowMenu?: (show: boolean) => void;
|
|
68
|
+
setInputValue?: (value: string) => void;
|
|
69
|
+
setAutocompleteSuggestion?: (suggestion: string) => void;
|
|
70
|
+
};
|
|
71
|
+
export type AutocompleteInputContextValue = {
|
|
72
|
+
inputValue?: string;
|
|
73
|
+
autocompleteSuggestion?: string;
|
|
74
|
+
};
|
|
75
|
+
export type AutocompleteDeferredInputContextValue = {
|
|
76
|
+
deferredInputValue?: string;
|
|
77
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AutocompleteContextValue, AutocompleteDeferredInputContextValue, AutocompleteInputContextValue } from "./Autocomplete.types";
|
|
2
|
+
export declare const AutocompleteContext: import("react").Context<AutocompleteContextValue>;
|
|
3
|
+
export declare const AutocompleteInputContext: import("react").Context<AutocompleteInputContextValue>;
|
|
4
|
+
export declare const AutocompleteDeferredInputContext: import("react").Context<AutocompleteDeferredInputContextValue>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = never>(props: Omit<import("..").TextInputProps, "as" | "openOnFocus"> & {
|
|
3
|
+
as?: As | undefined;
|
|
4
|
+
openOnFocus?: boolean;
|
|
5
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { AutocompleteItem, AutocompleteMenuProps } from "./Autocomplete.types";
|
|
3
|
+
declare function AutocompleteMenu<T extends AutocompleteItem>(props: AutocompleteMenuProps<T>): React.JSX.Element;
|
|
4
|
+
declare namespace AutocompleteMenu {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default AutocompleteMenu;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { AutocompleteOverlayProps } from "./Autocomplete.types";
|
|
3
|
+
declare function AutocompleteOverlay(props: AutocompleteOverlayProps): React.JSX.Element;
|
|
4
|
+
declare namespace AutocompleteOverlay {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default AutocompleteOverlay;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import AutocompleteBase from "./Autocomplete";
|
|
2
|
+
import AutocompleteInput from "./AutocompleteInput";
|
|
3
|
+
import AutocompleteMenu from "./AutocompleteMenu";
|
|
4
|
+
import AutocompleteOverlay from "./AutocompleteOverlay";
|
|
5
|
+
export declare const Autocomplete: typeof AutocompleteBase & {
|
|
6
|
+
Input: <As extends React.ElementType = never>(props: Omit<import("..").TextInputProps, "as" | "openOnFocus"> & {
|
|
7
|
+
as?: As | undefined;
|
|
8
|
+
openOnFocus?: boolean;
|
|
9
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
10
|
+
Menu: typeof AutocompleteMenu;
|
|
11
|
+
Overlay: typeof AutocompleteOverlay;
|
|
12
|
+
};
|
|
13
|
+
export { AutocompleteInput, AutocompleteMenu, AutocompleteOverlay };
|
|
14
|
+
export { AutocompleteContext, AutocompleteInputContext, AutocompleteDeferredInputContext, } from "./AutocompleteContext";
|
|
15
|
+
export * from "./Autocomplete.types";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { AvatarShape } from "./Avatar.types";
|
|
3
|
+
export declare const DEFAULT_AVATAR_SIZE = 20;
|
|
4
|
+
declare const _default: <As extends React.ElementType = "img">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "img" : As> & {
|
|
5
|
+
size?: import("./Avatar.types").AvatarSize;
|
|
6
|
+
shape?: AvatarShape;
|
|
7
|
+
className?: string;
|
|
8
|
+
}, "as"> & {
|
|
9
|
+
as?: As | undefined;
|
|
10
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { ResponsiveValue } from "../../hooks/useResponsive";
|
|
3
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
4
|
+
export type AvatarSize = number | ResponsiveValue<number>;
|
|
5
|
+
export type AvatarShape = "circle" | "square";
|
|
6
|
+
export type AvatarProps<As extends React.ElementType = "img"> = PolymorphicProps<As, "img", {
|
|
7
|
+
size?: AvatarSize;
|
|
8
|
+
shape?: AvatarShape;
|
|
9
|
+
className?: string;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { AvatarShape, AvatarSize } from "../avatar/Avatar.types";
|
|
3
|
+
import type { AvatarStackVariant } from "./AvatarStack.types";
|
|
4
|
+
declare const _default: <As extends React.ElementType = "span">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "span" : As> & {
|
|
5
|
+
variant?: AvatarStackVariant;
|
|
6
|
+
shape?: AvatarShape;
|
|
7
|
+
size?: AvatarSize;
|
|
8
|
+
alignRight?: boolean;
|
|
9
|
+
disableExpand?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
}, "as"> & {
|
|
12
|
+
as?: As | undefined;
|
|
13
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { AvatarShape, AvatarSize } from "../avatar/Avatar.types";
|
|
3
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
4
|
+
export type AvatarStackVariant = "cascade" | "stack";
|
|
5
|
+
export type AvatarStackProps<As extends React.ElementType = "span"> = PolymorphicProps<As, "span", {
|
|
6
|
+
variant?: AvatarStackVariant;
|
|
7
|
+
shape?: AvatarShape;
|
|
8
|
+
size?: AvatarSize;
|
|
9
|
+
alignRight?: boolean;
|
|
10
|
+
disableExpand?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { BannerLayout, BannerVariant } from "./Banner.types";
|
|
3
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
description?: React.ReactNode;
|
|
6
|
+
hideTitle?: boolean;
|
|
7
|
+
leadingVisual?: React.ReactNode;
|
|
8
|
+
variant?: BannerVariant;
|
|
9
|
+
layout?: BannerLayout;
|
|
10
|
+
actionsLayout?: import("./Banner.types").BannerActionsLayout;
|
|
11
|
+
flush?: boolean;
|
|
12
|
+
onDismiss?: () => void;
|
|
13
|
+
primaryAction?: React.ReactNode;
|
|
14
|
+
secondaryAction?: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { ButtonProps } from "../button";
|
|
3
|
+
export type BannerVariant = "critical" | "info" | "success" | "upsell" | "warning";
|
|
4
|
+
export type BannerLayout = "default" | "compact";
|
|
5
|
+
export type BannerActionsLayout = "default" | "inline" | "stacked";
|
|
6
|
+
export type BannerTitleLevel = "h2" | "h3" | "h4" | "h5" | "h6";
|
|
7
|
+
export type BannerProps = React.ComponentPropsWithoutRef<"section"> & {
|
|
8
|
+
title?: React.ReactNode;
|
|
9
|
+
description?: React.ReactNode;
|
|
10
|
+
hideTitle?: boolean;
|
|
11
|
+
leadingVisual?: React.ReactNode;
|
|
12
|
+
variant?: BannerVariant;
|
|
13
|
+
layout?: BannerLayout;
|
|
14
|
+
actionsLayout?: BannerActionsLayout;
|
|
15
|
+
flush?: boolean;
|
|
16
|
+
onDismiss?: () => void;
|
|
17
|
+
primaryAction?: React.ReactNode;
|
|
18
|
+
secondaryAction?: React.ReactNode;
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
export type BannerTitleProps = React.ComponentPropsWithoutRef<"h2"> & {
|
|
22
|
+
as?: BannerTitleLevel;
|
|
23
|
+
className?: string;
|
|
24
|
+
};
|
|
25
|
+
export type BannerDescriptionProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
26
|
+
className?: string;
|
|
27
|
+
};
|
|
28
|
+
export type BannerActionProps = Omit<ButtonProps, "variant">;
|
|
29
|
+
export type BannerPrimaryActionProps = BannerActionProps;
|
|
30
|
+
export type BannerSecondaryActionProps = BannerActionProps;
|
|
31
|
+
export type BannerContextValue = {
|
|
32
|
+
titleId?: string;
|
|
33
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
3
|
+
as?: import("./Banner.types").BannerTitleLevel;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import BannerDescription from "./BannerDescription";
|
|
2
|
+
import BannerPrimaryAction from "./BannerPrimaryAction";
|
|
3
|
+
import BannerSecondaryAction from "./BannerSecondaryAction";
|
|
4
|
+
import BannerTitle from "./BannerTitle";
|
|
5
|
+
export declare const Banner: ((props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
6
|
+
title?: React.ReactNode;
|
|
7
|
+
description?: React.ReactNode;
|
|
8
|
+
hideTitle?: boolean;
|
|
9
|
+
leadingVisual?: React.ReactNode;
|
|
10
|
+
variant?: import("./Banner.types").BannerVariant;
|
|
11
|
+
layout?: import("./Banner.types").BannerLayout;
|
|
12
|
+
actionsLayout?: import("./Banner.types").BannerActionsLayout;
|
|
13
|
+
flush?: boolean;
|
|
14
|
+
onDismiss?: () => void;
|
|
15
|
+
primaryAction?: React.ReactNode;
|
|
16
|
+
secondaryAction?: React.ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
19
|
+
Title: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
20
|
+
as?: import("./Banner.types").BannerTitleLevel;
|
|
21
|
+
className?: string;
|
|
22
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
23
|
+
Description: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
24
|
+
className?: string;
|
|
25
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
26
|
+
PrimaryAction: (props: import("./Banner.types").BannerActionProps & import("react").RefAttributes<any>) => React.ReactNode;
|
|
27
|
+
SecondaryAction: (props: import("./Banner.types").BannerActionProps & import("react").RefAttributes<any>) => React.ReactNode;
|
|
28
|
+
};
|
|
29
|
+
export { BannerTitle, BannerDescription, BannerPrimaryAction, BannerSecondaryAction };
|
|
30
|
+
export { BannerContext } from "./BannerContext";
|
|
31
|
+
export * from "./Banner.types";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { BlankslateSize } from "./Blankslate.types";
|
|
3
|
+
declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
|
|
4
|
+
size?: BlankslateSize;
|
|
5
|
+
border?: boolean;
|
|
6
|
+
narrow?: boolean;
|
|
7
|
+
spacious?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}, "as"> & {
|
|
10
|
+
as?: As | undefined;
|
|
11
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type BlankslateSize = "small" | "medium" | "large";
|
|
4
|
+
export type BlankslateHeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
5
|
+
export type BlankslateProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
|
|
6
|
+
size?: BlankslateSize;
|
|
7
|
+
border?: boolean;
|
|
8
|
+
narrow?: boolean;
|
|
9
|
+
spacious?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type BlankslateVisualProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export type BlankslateHeadingProps = React.ComponentPropsWithoutRef<"h2"> & {
|
|
16
|
+
as?: BlankslateHeadingLevel;
|
|
17
|
+
className?: string;
|
|
18
|
+
};
|
|
19
|
+
export type BlankslateDescriptionProps = React.ComponentPropsWithoutRef<"p"> & {
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
export type BlankslateActionProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
23
|
+
className?: string;
|
|
24
|
+
};
|
|
25
|
+
export type BlankslatePrimaryActionProps = BlankslateActionProps;
|
|
26
|
+
export type BlankslateSecondaryActionProps = BlankslateActionProps & {
|
|
27
|
+
href?: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
3
|
+
as?: import("./Blankslate.types").BlankslateHeadingLevel;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
} & {
|
|
5
|
+
href?: string;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import BlankslateDescription from "./BlankslateDescription";
|
|
2
|
+
import BlankslateHeading from "./BlankslateHeading";
|
|
3
|
+
import BlankslatePrimaryAction from "./BlankslatePrimaryAction";
|
|
4
|
+
import BlankslateSecondaryAction from "./BlankslateSecondaryAction";
|
|
5
|
+
import BlankslateVisual from "./BlankslateVisual";
|
|
6
|
+
export declare const Blankslate: (<As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
7
|
+
size?: import("./Blankslate.types").BlankslateSize;
|
|
8
|
+
border?: boolean;
|
|
9
|
+
narrow?: boolean;
|
|
10
|
+
spacious?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
}, "as"> & {
|
|
13
|
+
as?: As | undefined;
|
|
14
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
15
|
+
Visual: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
16
|
+
className?: string;
|
|
17
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
18
|
+
Heading: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
19
|
+
as?: import("./Blankslate.types").BlankslateHeadingLevel;
|
|
20
|
+
className?: string;
|
|
21
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
22
|
+
Description: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
23
|
+
className?: string;
|
|
24
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
25
|
+
PrimaryAction: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
26
|
+
className?: string;
|
|
27
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
28
|
+
SecondaryAction: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
29
|
+
className?: string;
|
|
30
|
+
} & {
|
|
31
|
+
href?: string;
|
|
32
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
33
|
+
};
|
|
34
|
+
export { BlankslateVisual, BlankslateHeading, BlankslateDescription, BlankslatePrimaryAction, BlankslateSecondaryAction, };
|
|
35
|
+
export * from "./Blankslate.types";
|