@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,7 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type CounterLabelVariant = "primary" | "secondary";
|
|
4
|
+
export type CounterLabelProps<As extends React.ElementType = "span"> = PolymorphicProps<As, "span", {
|
|
5
|
+
variant?: CounterLabelVariant;
|
|
6
|
+
className?: string;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { ResponsiveValue } from "../../hooks/useResponsive";
|
|
3
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
4
|
+
export type UniqueRow = {
|
|
5
|
+
id: string | number;
|
|
6
|
+
};
|
|
7
|
+
type ArrayOfLength<Length extends number, Sized extends unknown[] = []> = Sized["length"] extends Length ? Sized : ArrayOfLength<Length, [...Sized, Sized["length"]]>;
|
|
8
|
+
type MaxLength = ArrayOfLength<10>[number];
|
|
9
|
+
type ArrayIndex<A extends ReadonlyArray<any>, Keys extends number = never> = A extends readonly [] ? Keys : A extends readonly [infer _, ...infer Tail] ? ArrayIndex<Tail, Keys | Tail["length"]> : Keys;
|
|
10
|
+
type ArrayWithinBounds<T> = T extends ReadonlyArray<any> & {
|
|
11
|
+
length: infer Length;
|
|
12
|
+
} ? Length extends MaxLength ? T : never : never;
|
|
13
|
+
export type ObjectPaths<T> = T extends readonly any[] & ArrayWithinBounds<T> ? `${ArrayIndex<T>}` | PrefixPath<T, ArrayIndex<T>> : T extends any[] ? never & "Unable to determine the keys of a boundless array" : T extends Date ? never : T extends object ? Extract<keyof T, string | number> | PrefixPath<T, Extract<keyof T, string | number>> : never;
|
|
14
|
+
type PrefixPath<T, Prefix> = Prefix extends Extract<keyof T, number | string> ? `${Prefix}.${ObjectPaths<T[Prefix]>}` : never;
|
|
15
|
+
export type ObjectPathValue<ObjectType extends object, Path extends string | number> = ObjectType extends Record<string | number, any> ? Path extends `${infer Key}.${infer NestedPath}` ? ObjectPathValue<ObjectType[Key], NestedPath> : ObjectType[Path] : never;
|
|
16
|
+
export type SortDirection = "ASC" | "DESC" | "NONE";
|
|
17
|
+
export type SortStrategyName = "alphanumeric" | "basic" | "datetime";
|
|
18
|
+
export type CustomSortStrategy<Data> = (a: Data, b: Data) => number;
|
|
19
|
+
export type CellAlignment = "start" | "end";
|
|
20
|
+
export type ColumnWidth = "grow" | "growCollapse" | "auto" | React.CSSProperties["width"];
|
|
21
|
+
export type TableCellPadding = "condensed" | "normal" | "spacious";
|
|
22
|
+
export type Column<Data extends UniqueRow> = {
|
|
23
|
+
id?: string;
|
|
24
|
+
header: string | (() => React.ReactNode);
|
|
25
|
+
field?: ObjectPaths<Data>;
|
|
26
|
+
align?: CellAlignment;
|
|
27
|
+
width?: ColumnWidth;
|
|
28
|
+
minWidth?: React.CSSProperties["minWidth"];
|
|
29
|
+
maxWidth?: React.CSSProperties["maxWidth"];
|
|
30
|
+
renderCell?: (data: Data) => React.ReactNode;
|
|
31
|
+
rowHeader?: boolean;
|
|
32
|
+
sortBy?: boolean | SortStrategyName | CustomSortStrategy<Data>;
|
|
33
|
+
};
|
|
34
|
+
export type DataTableProps<Data extends UniqueRow> = {
|
|
35
|
+
data: Data[];
|
|
36
|
+
columns: Column<Data>[];
|
|
37
|
+
cellPadding?: TableCellPadding;
|
|
38
|
+
initialSortColumn?: ObjectPaths<Data> | string | number;
|
|
39
|
+
initialSortDirection?: Exclude<SortDirection, "NONE">;
|
|
40
|
+
externalSorting?: boolean;
|
|
41
|
+
getRowId?: (rowData: Data) => string | number;
|
|
42
|
+
onToggleSort?: (columnId: ObjectPaths<Data> | string | number, direction: Exclude<SortDirection, "NONE">) => void;
|
|
43
|
+
"aria-labelledby"?: string;
|
|
44
|
+
"aria-describedby"?: string;
|
|
45
|
+
};
|
|
46
|
+
export type TableProps = React.ComponentPropsWithoutRef<"table"> & {
|
|
47
|
+
cellPadding?: TableCellPadding;
|
|
48
|
+
gridTemplateColumns?: React.CSSProperties["gridTemplateColumns"];
|
|
49
|
+
"aria-labelledby"?: string;
|
|
50
|
+
"aria-describedby"?: string;
|
|
51
|
+
className?: string;
|
|
52
|
+
};
|
|
53
|
+
export type TableHeadProps = React.ComponentPropsWithoutRef<"thead"> & {
|
|
54
|
+
className?: string;
|
|
55
|
+
};
|
|
56
|
+
export type TableBodyProps = React.ComponentPropsWithoutRef<"tbody"> & {
|
|
57
|
+
className?: string;
|
|
58
|
+
};
|
|
59
|
+
export type TableRowProps = React.ComponentPropsWithoutRef<"tr"> & {
|
|
60
|
+
className?: string;
|
|
61
|
+
};
|
|
62
|
+
export type TableHeaderProps = Omit<React.ComponentPropsWithoutRef<"th">, "align"> & {
|
|
63
|
+
align?: CellAlignment;
|
|
64
|
+
className?: string;
|
|
65
|
+
};
|
|
66
|
+
export type TableSortHeaderProps = TableHeaderProps & {
|
|
67
|
+
direction: SortDirection;
|
|
68
|
+
onToggleSort: () => void;
|
|
69
|
+
};
|
|
70
|
+
export type TableCellProps = Omit<React.ComponentPropsWithoutRef<"td">, "align"> & {
|
|
71
|
+
align?: CellAlignment;
|
|
72
|
+
scope?: "row";
|
|
73
|
+
className?: string;
|
|
74
|
+
};
|
|
75
|
+
export type TableCellPlaceholderProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
76
|
+
className?: string;
|
|
77
|
+
};
|
|
78
|
+
export type TableContainerProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
|
|
79
|
+
className?: string;
|
|
80
|
+
}>;
|
|
81
|
+
export type TableTitleProps<As extends React.ElementType = "h2"> = PolymorphicProps<As, "h2", {
|
|
82
|
+
id: string;
|
|
83
|
+
className?: string;
|
|
84
|
+
}>;
|
|
85
|
+
export type TableSubtitleProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
|
|
86
|
+
id: string;
|
|
87
|
+
className?: string;
|
|
88
|
+
}>;
|
|
89
|
+
export type TableActionsProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
90
|
+
className?: string;
|
|
91
|
+
};
|
|
92
|
+
export type TableDividerProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
93
|
+
className?: string;
|
|
94
|
+
};
|
|
95
|
+
export type TableSkeletonProps<Data extends UniqueRow> = React.ComponentPropsWithoutRef<"table"> & {
|
|
96
|
+
columns: Column<Data>[];
|
|
97
|
+
cellPadding?: TableCellPadding;
|
|
98
|
+
rows?: number;
|
|
99
|
+
className?: string;
|
|
100
|
+
};
|
|
101
|
+
export type TablePaginationState = {
|
|
102
|
+
pageIndex: number;
|
|
103
|
+
};
|
|
104
|
+
export type TablePaginationProps = Omit<React.ComponentPropsWithoutRef<"nav">, "onChange"> & {
|
|
105
|
+
"aria-label": string;
|
|
106
|
+
totalCount: number;
|
|
107
|
+
pageSize?: number;
|
|
108
|
+
defaultPageIndex?: number;
|
|
109
|
+
onChange?: (state: TablePaginationState) => void;
|
|
110
|
+
showPages?: boolean | ResponsiveValue<boolean>;
|
|
111
|
+
className?: string;
|
|
112
|
+
};
|
|
113
|
+
export type TableErrorDialogProps = React.PropsWithChildren<{
|
|
114
|
+
title?: string;
|
|
115
|
+
onRetry?: () => void;
|
|
116
|
+
onDismiss?: () => void;
|
|
117
|
+
}>;
|
|
118
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { TableCellPadding } from "./DataTable.types";
|
|
3
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & {
|
|
4
|
+
cellPadding?: TableCellPadding;
|
|
5
|
+
gridTemplateColumns?: React.CSSProperties["gridTemplateColumns"];
|
|
6
|
+
"aria-labelledby"?: string;
|
|
7
|
+
"aria-describedby"?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref">, "align"> & {
|
|
3
|
+
align?: import("./DataTable.types").CellAlignment;
|
|
4
|
+
scope?: "row";
|
|
5
|
+
className?: string;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -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,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: {
|
|
3
|
+
title?: string;
|
|
4
|
+
onRetry?: () => void;
|
|
5
|
+
onDismiss?: () => void;
|
|
6
|
+
} & {
|
|
7
|
+
children?: React.ReactNode | undefined;
|
|
8
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "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<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref">, "align"> & {
|
|
3
|
+
align?: import("./DataTable.types").CellAlignment;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { TablePaginationState } from "./DataTable.types";
|
|
3
|
+
export declare const DEFAULT_TABLE_PAGE_SIZE = 25;
|
|
4
|
+
export declare const DEFAULT_TABLE_SHOW_PAGES: {
|
|
5
|
+
narrow: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "onChange"> & {
|
|
8
|
+
"aria-label": string;
|
|
9
|
+
totalCount: number;
|
|
10
|
+
pageSize?: number;
|
|
11
|
+
defaultPageIndex?: number;
|
|
12
|
+
onChange?: (state: TablePaginationState) => void;
|
|
13
|
+
showPages?: boolean | import("../../hooks/useResponsive").ResponsiveValue<boolean>;
|
|
14
|
+
className?: string;
|
|
15
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { UniqueRow } from "./DataTable.types";
|
|
3
|
+
export declare const DEFAULT_TABLE_SKELETON_ROWS = 10;
|
|
4
|
+
declare const _default: <Data extends UniqueRow>(props: Omit<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & {
|
|
5
|
+
columns: import("./DataTable.types").Column<Data>[];
|
|
6
|
+
cellPadding?: import("./DataTable.types").TableCellPadding;
|
|
7
|
+
rows?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref">, "align"> & {
|
|
3
|
+
align?: import("./DataTable.types").CellAlignment;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & {
|
|
6
|
+
direction: import("./DataTable.types").SortDirection;
|
|
7
|
+
onToggleSort: () => void;
|
|
8
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
id: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}, "as"> & {
|
|
6
|
+
as?: As | undefined;
|
|
7
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "h2">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "h2" : As> & {
|
|
3
|
+
id: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}, "as"> & {
|
|
6
|
+
as?: As | undefined;
|
|
7
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import TableActions from "./TableActions";
|
|
2
|
+
import TableBody from "./TableBody";
|
|
3
|
+
import TableCell from "./TableCell";
|
|
4
|
+
import TableCellPlaceholder from "./TableCellPlaceholder";
|
|
5
|
+
import TableContainer from "./TableContainer";
|
|
6
|
+
import TableDivider from "./TableDivider";
|
|
7
|
+
import TableErrorDialog from "./TableErrorDialog";
|
|
8
|
+
import TableHead from "./TableHead";
|
|
9
|
+
import TableHeader from "./TableHeader";
|
|
10
|
+
import TablePagination from "./TablePagination";
|
|
11
|
+
import TableRow from "./TableRow";
|
|
12
|
+
import TableSkeleton from "./TableSkeleton";
|
|
13
|
+
import TableSortHeader from "./TableSortHeader";
|
|
14
|
+
import TableSubtitle from "./TableSubtitle";
|
|
15
|
+
import TableTitle from "./TableTitle";
|
|
16
|
+
export declare const Table: ((props: Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & {
|
|
17
|
+
cellPadding?: import("./DataTable.types").TableCellPadding;
|
|
18
|
+
gridTemplateColumns?: React.CSSProperties["gridTemplateColumns"];
|
|
19
|
+
"aria-labelledby"?: string;
|
|
20
|
+
"aria-describedby"?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
23
|
+
Container: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
24
|
+
className?: string;
|
|
25
|
+
}, "as"> & {
|
|
26
|
+
as?: As | undefined;
|
|
27
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
28
|
+
Title: <As extends React.ElementType = "h2">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "h2" : As> & {
|
|
29
|
+
id: string;
|
|
30
|
+
className?: string;
|
|
31
|
+
}, "as"> & {
|
|
32
|
+
as?: As | undefined;
|
|
33
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
34
|
+
Subtitle: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
35
|
+
id: string;
|
|
36
|
+
className?: string;
|
|
37
|
+
}, "as"> & {
|
|
38
|
+
as?: As | undefined;
|
|
39
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
40
|
+
Actions: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
41
|
+
className?: string;
|
|
42
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
43
|
+
Divider: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
44
|
+
className?: string;
|
|
45
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
46
|
+
Skeleton: <Data extends import("./DataTable.types").UniqueRow>(props: Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & {
|
|
47
|
+
columns: import("./DataTable.types").Column<Data>[];
|
|
48
|
+
cellPadding?: import("./DataTable.types").TableCellPadding;
|
|
49
|
+
rows?: number;
|
|
50
|
+
className?: string;
|
|
51
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
52
|
+
Head: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & {
|
|
53
|
+
className?: string;
|
|
54
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
55
|
+
Body: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & {
|
|
56
|
+
className?: string;
|
|
57
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
58
|
+
Header: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref">, "align"> & {
|
|
59
|
+
align?: import("./DataTable.types").CellAlignment;
|
|
60
|
+
className?: string;
|
|
61
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
62
|
+
SortHeader: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref">, "align"> & {
|
|
63
|
+
align?: import("./DataTable.types").CellAlignment;
|
|
64
|
+
className?: string;
|
|
65
|
+
} & {
|
|
66
|
+
direction: import("./DataTable.types").SortDirection;
|
|
67
|
+
onToggleSort: () => void;
|
|
68
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
69
|
+
Row: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & {
|
|
70
|
+
className?: string;
|
|
71
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
72
|
+
Cell: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref">, "align"> & {
|
|
73
|
+
align?: import("./DataTable.types").CellAlignment;
|
|
74
|
+
scope?: "row";
|
|
75
|
+
className?: string;
|
|
76
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
77
|
+
CellPlaceholder: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
78
|
+
className?: string;
|
|
79
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
80
|
+
Pagination: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "onChange"> & {
|
|
81
|
+
"aria-label": string;
|
|
82
|
+
totalCount: number;
|
|
83
|
+
pageSize?: number;
|
|
84
|
+
defaultPageIndex?: number;
|
|
85
|
+
onChange?: (state: import("./DataTable.types").TablePaginationState) => void;
|
|
86
|
+
showPages?: boolean | import("../../hooks/useResponsive").ResponsiveValue<boolean>;
|
|
87
|
+
className?: string;
|
|
88
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
89
|
+
ErrorDialog: (props: {
|
|
90
|
+
title?: string;
|
|
91
|
+
onRetry?: () => void;
|
|
92
|
+
onDismiss?: () => void;
|
|
93
|
+
} & {
|
|
94
|
+
children?: import("react").ReactNode | undefined;
|
|
95
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
96
|
+
};
|
|
97
|
+
export { default as DataTable } from "./DataTable";
|
|
98
|
+
export { TableContainer, TableTitle, TableSubtitle, TableActions, TableDivider, TableSkeleton, TableHead, TableBody, TableHeader, TableSortHeader, TableRow, TableCell, TableCellPlaceholder, TablePagination, TableErrorDialog, };
|
|
99
|
+
export { DEFAULT_TABLE_SKELETON_ROWS } from "./TableSkeleton";
|
|
100
|
+
export { DEFAULT_TABLE_PAGE_SIZE } from "./TablePagination";
|
|
101
|
+
export { createColumnHelper } from "./column";
|
|
102
|
+
export { sortStrategies, transitionSortDirection, DEFAULT_SORT_DIRECTION } from "./sorting";
|
|
103
|
+
export * from "./DataTable.types";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SortDirection } from "./DataTable.types";
|
|
2
|
+
export declare const DEFAULT_SORT_DIRECTION: Exclude<SortDirection, "NONE">;
|
|
3
|
+
export declare const transitionSortDirection: (direction: Exclude<SortDirection, "NONE">) => Exclude<SortDirection, "NONE">;
|
|
4
|
+
export declare const sortStrategies: {
|
|
5
|
+
alphanumeric: (inputA: string, inputB: string) => number;
|
|
6
|
+
basic: <T>(a: T, b: T) => 0 | 1 | -1;
|
|
7
|
+
datetime: (a: Date | number, b: Date | number) => 0 | 1 | -1;
|
|
8
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Column, UniqueRow } from "./DataTable.types";
|
|
2
|
+
export declare const SUBGRID_CLASSES: string;
|
|
3
|
+
export declare const getGridTemplateFromColumns: <Data extends UniqueRow>(columns: Column<Data>[]) => string[];
|
|
4
|
+
export declare const getGridTemplate: <Data extends UniqueRow>(columns: Column<Data>[]) => string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Column, SortDirection, UniqueRow } from "./DataTable.types";
|
|
2
|
+
export type TableHeaderModel<Data extends UniqueRow> = {
|
|
3
|
+
id: string;
|
|
4
|
+
column: Column<Data>;
|
|
5
|
+
isSortable: () => boolean;
|
|
6
|
+
getSortDirection: () => SortDirection;
|
|
7
|
+
};
|
|
8
|
+
export type TableCellModel<Data extends UniqueRow> = {
|
|
9
|
+
id: string;
|
|
10
|
+
column: Column<Data>;
|
|
11
|
+
rowHeader: boolean;
|
|
12
|
+
getValue: () => Data[keyof Data];
|
|
13
|
+
};
|
|
14
|
+
export type TableRowModel<Data extends UniqueRow> = {
|
|
15
|
+
id: string;
|
|
16
|
+
getValue: () => Data;
|
|
17
|
+
getCells: () => TableCellModel<Data>[];
|
|
18
|
+
};
|
|
19
|
+
export type TableModel<Data extends UniqueRow> = {
|
|
20
|
+
headers: TableHeaderModel<Data>[];
|
|
21
|
+
rows: TableRowModel<Data>[];
|
|
22
|
+
actions: {
|
|
23
|
+
sortBy: (header: TableHeaderModel<Data>) => void;
|
|
24
|
+
};
|
|
25
|
+
gridTemplateColumns: string;
|
|
26
|
+
};
|
|
27
|
+
export type UseTableOptions<Data extends UniqueRow> = {
|
|
28
|
+
columns: Column<Data>[];
|
|
29
|
+
data: Data[];
|
|
30
|
+
initialSortColumn?: string | number;
|
|
31
|
+
initialSortDirection?: Exclude<SortDirection, "NONE">;
|
|
32
|
+
externalSorting?: boolean;
|
|
33
|
+
getRowId: (rowData: Data) => string | number;
|
|
34
|
+
};
|
|
35
|
+
export declare const useTable: <Data extends UniqueRow>({ columns, data, initialSortColumn, initialSortDirection, externalSorting, getRowId, }: UseTableOptions<Data>) => TableModel<Data>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { CalendarDateInput, CalendarDateMatcher, CalendarMode, CalendarRange, CalendarRangeInput, CalendarWeekStart } from "../calendar/Calendar.types";
|
|
2
|
+
import type { TextInputProps } from "../text-input";
|
|
3
|
+
export type DatePickerCloseGesture = "date-select" | "button" | "click-outside" | "escape";
|
|
4
|
+
export type DatePickerPropsForOneDay = {
|
|
5
|
+
mode?: "single";
|
|
6
|
+
value?: CalendarDateInput | null;
|
|
7
|
+
defaultValue?: CalendarDateInput | null;
|
|
8
|
+
onChange?: (date: Date | null) => void;
|
|
9
|
+
};
|
|
10
|
+
export type DatePickerPropsForARange = {
|
|
11
|
+
mode: "range";
|
|
12
|
+
value?: CalendarRangeInput | null;
|
|
13
|
+
defaultValue?: CalendarRangeInput | null;
|
|
14
|
+
onChange?: (range: CalendarRange) => void;
|
|
15
|
+
};
|
|
16
|
+
export type DatePickerSelectionConfig = DatePickerPropsForOneDay | DatePickerPropsForARange;
|
|
17
|
+
export type DatePickerBaseProps = Omit<TextInputProps, "type" | "value" | "defaultValue" | "onChange" | "trailingAction" | "characterLimit" | "min" | "max"> & {
|
|
18
|
+
format?: string;
|
|
19
|
+
rangeSeparator?: string;
|
|
20
|
+
open?: boolean;
|
|
21
|
+
defaultOpen?: boolean;
|
|
22
|
+
onOpenChange?: (open: boolean, gesture?: DatePickerCloseGesture) => void;
|
|
23
|
+
min?: CalendarDateInput;
|
|
24
|
+
max?: CalendarDateInput;
|
|
25
|
+
isDateDisabled?: CalendarDateMatcher;
|
|
26
|
+
weekStartsOn?: CalendarWeekStart;
|
|
27
|
+
fixedWeeks?: boolean;
|
|
28
|
+
showWeekNumbers?: boolean;
|
|
29
|
+
monthFormat?: string;
|
|
30
|
+
calendarButtonLabel?: string;
|
|
31
|
+
calendarLabel?: string;
|
|
32
|
+
inputClassName?: string;
|
|
33
|
+
className?: string;
|
|
34
|
+
};
|
|
35
|
+
export type DatePickerProps = DatePickerBaseProps & DatePickerSelectionConfig;
|
|
36
|
+
export type DatePickerElementProps = DatePickerBaseProps & {
|
|
37
|
+
mode?: CalendarMode;
|
|
38
|
+
value?: CalendarDateInput | CalendarRangeInput | null;
|
|
39
|
+
defaultValue?: CalendarDateInput | CalendarRangeInput | null;
|
|
40
|
+
onChange?: ((date: Date | null) => void) | ((range: CalendarRange) => void);
|
|
41
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, "ref"> & {
|
|
3
|
+
defaultOpen?: boolean;
|
|
4
|
+
closeOnOutsideClick?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
}, "onChange"> & {
|
|
7
|
+
onChange?: (open: boolean) => void;
|
|
8
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type DetailsProps = Omit<React.ComponentPropsWithoutRef<"details"> & {
|
|
4
|
+
defaultOpen?: boolean;
|
|
5
|
+
closeOnOutsideClick?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
}, "onChange"> & {
|
|
8
|
+
onChange?: (open: boolean) => void;
|
|
9
|
+
};
|
|
10
|
+
export type DetailsSummaryProps<As extends React.ElementType = "summary"> = PolymorphicProps<As, "summary", {
|
|
11
|
+
className?: string;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "summary">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "summary" : As> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
}, "as"> & {
|
|
5
|
+
as?: As | undefined;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import DetailsSummary from "./DetailsSummary";
|
|
2
|
+
export declare const Details: ((props: Omit<Omit<import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, "ref"> & {
|
|
3
|
+
defaultOpen?: boolean;
|
|
4
|
+
closeOnOutsideClick?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
}, "onChange"> & {
|
|
7
|
+
onChange?: (open: boolean) => void;
|
|
8
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
9
|
+
Summary: <As extends React.ElementType = "summary">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "summary" : As> & {
|
|
10
|
+
className?: string;
|
|
11
|
+
}, "as"> & {
|
|
12
|
+
as?: As | undefined;
|
|
13
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export { DetailsSummary };
|
|
16
|
+
export * from "./Details.types";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { DialogAlign, DialogHeaderRenderProps, DialogHeight, DialogPosition, DialogRenderProps, DialogResponsivePosition, DialogWidth } from "./Dialog.types";
|
|
3
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "title" | "role" | "onClose"> & {
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
subtitle?: React.ReactNode;
|
|
6
|
+
renderHeader?: import("./Dialog.types").DialogRenderer<DialogHeaderRenderProps>;
|
|
7
|
+
renderBody?: import("./Dialog.types").DialogRenderer<DialogRenderProps>;
|
|
8
|
+
renderFooter?: import("./Dialog.types").DialogRenderer<DialogRenderProps>;
|
|
9
|
+
footerButtons?: import("./Dialog.types").DialogButtonProps[];
|
|
10
|
+
onClose: (gesture: import("./Dialog.types").DialogCloseGesture) => void;
|
|
11
|
+
role?: import("./Dialog.types").DialogRole;
|
|
12
|
+
width?: DialogWidth;
|
|
13
|
+
height?: DialogHeight;
|
|
14
|
+
position?: DialogPosition | DialogResponsivePosition;
|
|
15
|
+
align?: DialogAlign;
|
|
16
|
+
returnFocusRef?: React.RefObject<HTMLElement | null>;
|
|
17
|
+
initialFocusRef?: React.RefObject<HTMLElement | null>;
|
|
18
|
+
className?: string;
|
|
19
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
20
|
+
export default _default;
|