@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,17 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type BreadcrumbsOverflow = "wrap" | "menu" | "menu-with-root";
|
|
4
|
+
export type BreadcrumbsVariant = "normal" | "spacious";
|
|
5
|
+
export type BreadcrumbsProps = React.PropsWithChildren<{
|
|
6
|
+
overflow?: BreadcrumbsOverflow;
|
|
7
|
+
variant?: BreadcrumbsVariant;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
}>;
|
|
11
|
+
export type BreadcrumbsItemProps<As extends React.ElementType = "a"> = PolymorphicProps<As, "a", {
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type BreadcrumbsOverflowMenuProps = {
|
|
16
|
+
items: React.ReactElement<any>[];
|
|
17
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "a">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & {
|
|
3
|
+
selected?: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
}, "as"> & {
|
|
6
|
+
as?: As | undefined;
|
|
7
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { BreadcrumbsOverflowMenuProps } from "./Breadcrumbs.types";
|
|
3
|
+
declare function BreadcrumbsOverflowMenu({ items }: BreadcrumbsOverflowMenuProps): React.JSX.Element;
|
|
4
|
+
declare namespace BreadcrumbsOverflowMenu {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default BreadcrumbsOverflowMenu;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import BreadcrumbsBase from "./Breadcrumbs";
|
|
2
|
+
import BreadcrumbsItem from "./BreadcrumbsItem";
|
|
3
|
+
export declare const Breadcrumbs: typeof BreadcrumbsBase & {
|
|
4
|
+
Item: <As extends React.ElementType = "a">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "a" : As> & {
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
}, "as"> & {
|
|
8
|
+
as?: As | undefined;
|
|
9
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export { BreadcrumbsItem };
|
|
12
|
+
export { BreadcrumbsContext } from "./BreadcrumbsContext";
|
|
13
|
+
export * from "./Breadcrumbs.types";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "button">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "button" : As> & import("./Button.types").ButtonBaseProps & import("./Button.types").ButtonContentProps, "as"> & {
|
|
3
|
+
as?: As | undefined;
|
|
4
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type ButtonVariant = "default" | "primary" | "danger" | "invisible" | "link";
|
|
4
|
+
export type ButtonSize = "small" | "medium" | "large";
|
|
5
|
+
export type ButtonAlignContent = "start" | "center";
|
|
6
|
+
export type ButtonVisual = React.ElementType | React.ReactElement | null;
|
|
7
|
+
export type ButtonBaseProps = {
|
|
8
|
+
variant?: ButtonVariant;
|
|
9
|
+
size?: ButtonSize;
|
|
10
|
+
block?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
loadingAnnouncement?: string;
|
|
13
|
+
inactive?: boolean;
|
|
14
|
+
labelWrap?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export type ButtonContentProps = {
|
|
18
|
+
alignContent?: ButtonAlignContent;
|
|
19
|
+
leadingVisual?: ButtonVisual;
|
|
20
|
+
trailingVisual?: ButtonVisual;
|
|
21
|
+
trailingAction?: ButtonVisual;
|
|
22
|
+
count?: number | string;
|
|
23
|
+
};
|
|
24
|
+
export type ButtonProps<As extends React.ElementType = "button"> = PolymorphicProps<As, "button", ButtonBaseProps & ButtonContentProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { ButtonAlignContent, ButtonBaseProps, ButtonVisual } from "./Button.types";
|
|
3
|
+
export type ButtonBaseRenderProps = Omit<React.ComponentPropsWithoutRef<"button">, "type"> & ButtonBaseProps & {
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
type?: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
alignContent?: ButtonAlignContent;
|
|
8
|
+
icon?: ButtonVisual;
|
|
9
|
+
leadingVisual?: ButtonVisual;
|
|
10
|
+
trailingVisual?: ButtonVisual;
|
|
11
|
+
trailingAction?: ButtonVisual;
|
|
12
|
+
count?: number | string;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "type"> & ButtonBaseProps & {
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
type?: string;
|
|
17
|
+
href?: string;
|
|
18
|
+
alignContent?: ButtonAlignContent;
|
|
19
|
+
icon?: ButtonVisual;
|
|
20
|
+
leadingVisual?: ButtonVisual;
|
|
21
|
+
trailingVisual?: ButtonVisual;
|
|
22
|
+
trailingAction?: ButtonVisual;
|
|
23
|
+
count?: number | string;
|
|
24
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
25
|
+
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,75 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { Dayjs } from "dayjs";
|
|
3
|
+
export type CalendarDateInput = Date | string | number | Dayjs;
|
|
4
|
+
export type CalendarWeekStart = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
|
+
export type CalendarWeekday = {
|
|
6
|
+
day: number;
|
|
7
|
+
narrow: string;
|
|
8
|
+
full: string;
|
|
9
|
+
};
|
|
10
|
+
export type CalendarDateMatcher = (date: Date) => boolean;
|
|
11
|
+
export type CalendarMode = "single" | "range";
|
|
12
|
+
export type CalendarRangeInput = {
|
|
13
|
+
from?: CalendarDateInput | null;
|
|
14
|
+
to?: CalendarDateInput | null;
|
|
15
|
+
};
|
|
16
|
+
export type CalendarRange = {
|
|
17
|
+
from: Date | null;
|
|
18
|
+
to: Date | null;
|
|
19
|
+
};
|
|
20
|
+
export type CalendarSelection = {
|
|
21
|
+
from: Dayjs | null;
|
|
22
|
+
to: Dayjs | null;
|
|
23
|
+
};
|
|
24
|
+
export type CalendarRangePosition = "start" | "middle" | "end";
|
|
25
|
+
export type CalendarPropsForOneDay = {
|
|
26
|
+
mode?: "single";
|
|
27
|
+
value?: CalendarDateInput | null;
|
|
28
|
+
defaultValue?: CalendarDateInput | null;
|
|
29
|
+
onChange?: (date: Date) => void;
|
|
30
|
+
};
|
|
31
|
+
export type CalendarPropsForARange = {
|
|
32
|
+
mode: "range";
|
|
33
|
+
value?: CalendarRangeInput | null;
|
|
34
|
+
defaultValue?: CalendarRangeInput | null;
|
|
35
|
+
onChange?: (range: CalendarRange) => void;
|
|
36
|
+
};
|
|
37
|
+
export type CalendarSelectionConfig = CalendarPropsForOneDay | CalendarPropsForARange;
|
|
38
|
+
export type CalendarBaseProps = Omit<React.ComponentPropsWithoutRef<"div">, "onChange" | "defaultValue"> & {
|
|
39
|
+
month?: CalendarDateInput;
|
|
40
|
+
defaultMonth?: CalendarDateInput;
|
|
41
|
+
onMonthChange?: (month: Date) => void;
|
|
42
|
+
min?: CalendarDateInput;
|
|
43
|
+
max?: CalendarDateInput;
|
|
44
|
+
isDateDisabled?: CalendarDateMatcher;
|
|
45
|
+
weekStartsOn?: CalendarWeekStart;
|
|
46
|
+
fixedWeeks?: boolean;
|
|
47
|
+
showOutsideDays?: boolean;
|
|
48
|
+
showWeekNumbers?: boolean;
|
|
49
|
+
monthFormat?: string;
|
|
50
|
+
dayFormat?: string;
|
|
51
|
+
focusableDayRef?: React.RefObject<HTMLButtonElement | null>;
|
|
52
|
+
previousMonthLabel?: string;
|
|
53
|
+
nextMonthLabel?: string;
|
|
54
|
+
weekNumberLabel?: string;
|
|
55
|
+
className?: string;
|
|
56
|
+
};
|
|
57
|
+
export type CalendarProps = CalendarBaseProps & CalendarSelectionConfig;
|
|
58
|
+
export type CalendarElementProps = CalendarBaseProps & {
|
|
59
|
+
mode?: CalendarMode;
|
|
60
|
+
value?: CalendarDateInput | CalendarRangeInput | null;
|
|
61
|
+
defaultValue?: CalendarDateInput | CalendarRangeInput | null;
|
|
62
|
+
onChange?: ((date: Date) => void) | ((range: CalendarRange) => void);
|
|
63
|
+
};
|
|
64
|
+
export type CalendarDayProps = Omit<React.ComponentPropsWithoutRef<"button">, "children" | "disabled" | "type"> & {
|
|
65
|
+
label: string;
|
|
66
|
+
name: string;
|
|
67
|
+
dayKey: string;
|
|
68
|
+
selected: boolean;
|
|
69
|
+
range?: CalendarRangePosition;
|
|
70
|
+
today: boolean;
|
|
71
|
+
outside: boolean;
|
|
72
|
+
unavailable: boolean;
|
|
73
|
+
tabbable: boolean;
|
|
74
|
+
className?: string;
|
|
75
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "disabled" | "type" | "children"> & {
|
|
3
|
+
label: string;
|
|
4
|
+
name: string;
|
|
5
|
+
dayKey: string;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
range?: import("./Calendar.types").CalendarRangePosition;
|
|
8
|
+
today: boolean;
|
|
9
|
+
outside: boolean;
|
|
10
|
+
unavailable: boolean;
|
|
11
|
+
tabbable: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import type { Dayjs } from "dayjs";
|
|
3
|
+
import type { CalendarDateInput, CalendarDateMatcher, CalendarRangeInput, CalendarRangePosition, CalendarSelection, CalendarWeekday, CalendarWeekStart } from "./Calendar.types";
|
|
4
|
+
export declare const DAYS_IN_WEEK = 7;
|
|
5
|
+
export declare const WEEKS_IN_FIXED_MONTH = 6;
|
|
6
|
+
export declare const DAY_KEY_FORMAT = "YYYY-MM-DD";
|
|
7
|
+
export declare const toDate: (value: CalendarDateInput) => dayjs.Dayjs;
|
|
8
|
+
export declare const toOptionalDate: (value: CalendarDateInput | null | undefined) => dayjs.Dayjs | null;
|
|
9
|
+
export declare const toDayKey: (date: Dayjs) => string;
|
|
10
|
+
export declare const NOTHING_PICKED: CalendarSelection;
|
|
11
|
+
export declare const toSelection: (input: CalendarDateInput | CalendarRangeInput | null | undefined, isRange: boolean) => CalendarSelection;
|
|
12
|
+
export declare const getFirstDayOfWeek: () => CalendarWeekStart;
|
|
13
|
+
export declare const getWeekdays: (weekStartsOn: CalendarWeekStart) => CalendarWeekday[];
|
|
14
|
+
export declare const startOfWeek: (date: Dayjs, weekStartsOn: CalendarWeekStart) => dayjs.Dayjs;
|
|
15
|
+
export declare const getMonthWeeks: (month: Dayjs, weekStartsOn: CalendarWeekStart, fixedWeeks?: boolean) => dayjs.Dayjs[][];
|
|
16
|
+
export declare const isDateSelectable: (date: Dayjs, min: Dayjs | null, max: Dayjs | null, isDateDisabled?: CalendarDateMatcher) => boolean;
|
|
17
|
+
export declare const isDateWithinRange: (date: Dayjs, from: Dayjs | null, to: Dayjs | null) => boolean;
|
|
18
|
+
export declare const getRangePosition: (date: Dayjs, from: Dayjs | null, to: Dayjs | null) => CalendarRangePosition | undefined;
|
|
19
|
+
export declare const extendRange: (from: Dayjs | null, to: Dayjs | null, date: Dayjs) => CalendarSelection;
|
|
20
|
+
export declare const parseDate: (text: string, format: string) => dayjs.Dayjs | null;
|
|
21
|
+
export declare const getToday: () => dayjs.Dayjs;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import CalendarDay from "./CalendarDay";
|
|
2
|
+
export declare const Calendar: ((props: import("./Calendar.types").CalendarProps & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
3
|
+
Day: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "disabled" | "type" | "children"> & {
|
|
4
|
+
label: string;
|
|
5
|
+
name: string;
|
|
6
|
+
dayKey: string;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
range?: import("./Calendar.types").CalendarRangePosition;
|
|
9
|
+
today: boolean;
|
|
10
|
+
outside: boolean;
|
|
11
|
+
unavailable: boolean;
|
|
12
|
+
tabbable: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export { CalendarDay };
|
|
17
|
+
export { DAYS_IN_WEEK, DAY_KEY_FORMAT, extendRange, getFirstDayOfWeek, getMonthWeeks, getRangePosition, getWeekdays, isDateSelectable, isDateWithinRange, parseDate, startOfWeek, toDayKey, } from "./calendarDates";
|
|
18
|
+
export * from "./Calendar.types";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { CardBorderRadius, CardElement, CardLayout, CardPadding } from "./Card.types";
|
|
3
|
+
declare const _default: <As extends CardElement = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
|
|
4
|
+
padding?: CardPadding;
|
|
5
|
+
borderRadius?: CardBorderRadius;
|
|
6
|
+
layout?: CardLayout;
|
|
7
|
+
className?: string;
|
|
8
|
+
}, "as"> & {
|
|
9
|
+
as?: As | undefined;
|
|
10
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type CardElement = "div" | "section";
|
|
4
|
+
export type CardPadding = "none" | "condensed" | "normal";
|
|
5
|
+
export type CardBorderRadius = "medium" | "large";
|
|
6
|
+
export type CardLayout = "default" | "compact";
|
|
7
|
+
export type CardHeadingLevel = "h2" | "h3" | "h4" | "h5" | "h6";
|
|
8
|
+
export type CardProps<As extends CardElement = "div"> = PolymorphicProps<As, "div", {
|
|
9
|
+
padding?: CardPadding;
|
|
10
|
+
borderRadius?: CardBorderRadius;
|
|
11
|
+
layout?: CardLayout;
|
|
12
|
+
className?: string;
|
|
13
|
+
}>;
|
|
14
|
+
export type CardHeadingProps = React.ComponentPropsWithoutRef<"h3"> & {
|
|
15
|
+
as?: CardHeadingLevel;
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
export type CardDescriptionProps = React.ComponentPropsWithoutRef<"p"> & {
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
export type CardIconProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
22
|
+
icon: React.ElementType;
|
|
23
|
+
className?: string;
|
|
24
|
+
};
|
|
25
|
+
export type CardImageProps = React.ComponentPropsWithoutRef<"img"> & {
|
|
26
|
+
className?: string;
|
|
27
|
+
};
|
|
28
|
+
export type CardActionProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
29
|
+
className?: string;
|
|
30
|
+
};
|
|
31
|
+
export type CardMetadataProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
32
|
+
className?: string;
|
|
33
|
+
};
|
|
34
|
+
export type CardContextValue = {
|
|
35
|
+
titleId?: string;
|
|
36
|
+
layout?: CardLayout;
|
|
37
|
+
};
|
|
@@ -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("./Card.types").CardHeadingLevel;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
3
|
+
icon: React.ElementType;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import CardAction from "./CardAction";
|
|
2
|
+
import CardDescription from "./CardDescription";
|
|
3
|
+
import CardHeading from "./CardHeading";
|
|
4
|
+
import CardIcon from "./CardIcon";
|
|
5
|
+
import CardImage from "./CardImage";
|
|
6
|
+
import CardMetadata from "./CardMetadata";
|
|
7
|
+
export declare const Card: (<As extends import("./Card.types").CardElement = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
8
|
+
padding?: import("./Card.types").CardPadding;
|
|
9
|
+
borderRadius?: import("./Card.types").CardBorderRadius;
|
|
10
|
+
layout?: import("./Card.types").CardLayout;
|
|
11
|
+
className?: string;
|
|
12
|
+
}, "as"> & {
|
|
13
|
+
as?: As | undefined;
|
|
14
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
15
|
+
Icon: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
16
|
+
icon: React.ElementType;
|
|
17
|
+
className?: string;
|
|
18
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
19
|
+
Image: (props: Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
|
|
20
|
+
className?: string;
|
|
21
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
22
|
+
Heading: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
23
|
+
as?: import("./Card.types").CardHeadingLevel;
|
|
24
|
+
className?: string;
|
|
25
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
26
|
+
Description: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
27
|
+
className?: string;
|
|
28
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
29
|
+
Metadata: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
30
|
+
className?: string;
|
|
31
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
32
|
+
Action: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
33
|
+
className?: string;
|
|
34
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
35
|
+
};
|
|
36
|
+
export { CardIcon, CardImage, CardHeading, CardDescription, CardMetadata, CardAction };
|
|
37
|
+
export * from "./Card.types";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type CarouselChangeReason = "previous" | "next" | "indicator" | "auto";
|
|
3
|
+
type CarouselLabel = {
|
|
4
|
+
"aria-label": string;
|
|
5
|
+
} | {
|
|
6
|
+
"aria-labelledby": string;
|
|
7
|
+
};
|
|
8
|
+
export type CarouselProps = Omit<React.ComponentPropsWithoutRef<"section">, "onChange"> & CarouselLabel & {
|
|
9
|
+
index?: number;
|
|
10
|
+
defaultIndex?: number;
|
|
11
|
+
onChange?: (index: number, reason: CarouselChangeReason) => void;
|
|
12
|
+
loop?: boolean;
|
|
13
|
+
autoPlay?: boolean;
|
|
14
|
+
interval?: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export type CarouselSlideProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
export type CarouselControlsProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
export type CarouselIndicatorsProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
24
|
+
className?: string;
|
|
25
|
+
};
|
|
26
|
+
type CarouselButtonProps = Omit<React.ComponentPropsWithoutRef<"button">, "children" | "aria-label" | "aria-labelledby"> & {
|
|
27
|
+
className?: string;
|
|
28
|
+
};
|
|
29
|
+
export type CarouselPreviousButtonProps = CarouselButtonProps;
|
|
30
|
+
export type CarouselNextButtonProps = CarouselButtonProps;
|
|
31
|
+
export type CarouselPlayButtonProps = CarouselButtonProps;
|
|
32
|
+
export type CarouselContextValue = {
|
|
33
|
+
index: number;
|
|
34
|
+
count: number;
|
|
35
|
+
loop: boolean;
|
|
36
|
+
autoPlay: boolean;
|
|
37
|
+
isPlaying: boolean;
|
|
38
|
+
goTo: (index: number, reason: CarouselChangeReason) => void;
|
|
39
|
+
previous: () => void;
|
|
40
|
+
next: () => void;
|
|
41
|
+
togglePlaying: () => void;
|
|
42
|
+
slidesId: string;
|
|
43
|
+
};
|
|
44
|
+
export type CarouselSlideContextValue = {
|
|
45
|
+
index: number;
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby" | "children"> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby" | "children"> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby" | "children"> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import CarouselControls from "./CarouselControls";
|
|
2
|
+
import CarouselIndicators from "./CarouselIndicators";
|
|
3
|
+
import CarouselNextButton from "./CarouselNextButton";
|
|
4
|
+
import CarouselPlayButton from "./CarouselPlayButton";
|
|
5
|
+
import CarouselPreviousButton from "./CarouselPreviousButton";
|
|
6
|
+
import CarouselSlide from "./CarouselSlide";
|
|
7
|
+
export declare const Carousel: ((props: import("./Carousel.types").CarouselProps & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
8
|
+
Slide: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
+
className?: string;
|
|
10
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
11
|
+
Controls: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
12
|
+
className?: string;
|
|
13
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
14
|
+
PreviousButton: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby" | "children"> & {
|
|
15
|
+
className?: string;
|
|
16
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
17
|
+
NextButton: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby" | "children"> & {
|
|
18
|
+
className?: string;
|
|
19
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
20
|
+
Indicators: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
|
+
className?: string;
|
|
22
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
23
|
+
PlayButton: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby" | "children"> & {
|
|
24
|
+
className?: string;
|
|
25
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
26
|
+
};
|
|
27
|
+
export { CarouselSlide, CarouselControls, CarouselPreviousButton, CarouselNextButton, CarouselIndicators, CarouselPlayButton, };
|
|
28
|
+
export { CarouselContext, CarouselSlideContext } from "./CarouselContext";
|
|
29
|
+
export * from "./Carousel.types";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "title"> & {
|
|
3
|
+
type?: import("./Chart.types").ChartType;
|
|
4
|
+
data: import("./Chart.types").ChartDatum[];
|
|
5
|
+
xKey: string;
|
|
6
|
+
series: import("./Chart.types").ChartSeries[];
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
stacked?: boolean;
|
|
10
|
+
horizontal?: boolean;
|
|
11
|
+
height?: number;
|
|
12
|
+
valueFormat?: (value: number) => string;
|
|
13
|
+
labelFormat?: (label: string) => string;
|
|
14
|
+
tickCount?: number;
|
|
15
|
+
showGrid?: boolean;
|
|
16
|
+
showLegend?: boolean;
|
|
17
|
+
smooth?: boolean;
|
|
18
|
+
emptyText?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type ChartType = "line" | "area" | "bar";
|
|
3
|
+
export type ChartDatum = Record<string, string | number | null | undefined>;
|
|
4
|
+
export type ChartSeries = {
|
|
5
|
+
key: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
};
|
|
9
|
+
export type ChartResolvedSeries = ChartSeries & {
|
|
10
|
+
name: string;
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
export type ChartReading = {
|
|
14
|
+
index: number;
|
|
15
|
+
label: string;
|
|
16
|
+
values: {
|
|
17
|
+
series: ChartResolvedSeries;
|
|
18
|
+
value: number | null;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
export type ChartLayout = {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
left: number;
|
|
25
|
+
right: number;
|
|
26
|
+
top: number;
|
|
27
|
+
bottom: number;
|
|
28
|
+
innerWidth: number;
|
|
29
|
+
innerHeight: number;
|
|
30
|
+
};
|
|
31
|
+
export type ChartProps = Omit<React.ComponentPropsWithoutRef<"figure">, "title"> & {
|
|
32
|
+
type?: ChartType;
|
|
33
|
+
data: ChartDatum[];
|
|
34
|
+
xKey: string;
|
|
35
|
+
series: ChartSeries[];
|
|
36
|
+
title?: React.ReactNode;
|
|
37
|
+
description?: React.ReactNode;
|
|
38
|
+
stacked?: boolean;
|
|
39
|
+
horizontal?: boolean;
|
|
40
|
+
height?: number;
|
|
41
|
+
valueFormat?: (value: number) => string;
|
|
42
|
+
labelFormat?: (label: string) => string;
|
|
43
|
+
tickCount?: number;
|
|
44
|
+
showGrid?: boolean;
|
|
45
|
+
showLegend?: boolean;
|
|
46
|
+
smooth?: boolean;
|
|
47
|
+
emptyText?: string;
|
|
48
|
+
className?: string;
|
|
49
|
+
};
|
|
50
|
+
export type ChartLegendProps = Omit<React.ComponentPropsWithoutRef<"ul">, "children"> & {
|
|
51
|
+
series: ChartResolvedSeries[];
|
|
52
|
+
className?: string;
|
|
53
|
+
};
|
|
54
|
+
export type ChartTooltipProps = Omit<React.ComponentPropsWithoutRef<"div">, "children"> & {
|
|
55
|
+
reading: ChartReading;
|
|
56
|
+
valueFormat: (value: number) => string;
|
|
57
|
+
labelFormat: (label: string) => string;
|
|
58
|
+
className?: string;
|
|
59
|
+
};
|