@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 { ResponsiveValue } from "../../hooks/useResponsive";
|
|
3
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
4
|
+
export type PageContentViewport = "narrow" | "regular" | "wide";
|
|
5
|
+
export type PageContentHidden = boolean | ResponsiveValue<boolean>;
|
|
6
|
+
export type PageContentWidth = "full" | "medium" | "large" | "xlarge";
|
|
7
|
+
export type PageContentSpacing = "none" | "condensed" | "normal" | "spacious";
|
|
8
|
+
export type PageContentProps<As extends React.ElementType = "main"> = PolymorphicProps<As, "main", {
|
|
9
|
+
width?: PageContentWidth;
|
|
10
|
+
padding?: PageContentSpacing;
|
|
11
|
+
gap?: PageContentSpacing;
|
|
12
|
+
className?: string;
|
|
13
|
+
}>;
|
|
14
|
+
export type PageContentSectionProps<As extends React.ElementType = "section"> = Omit<PolymorphicProps<As, "section">, "hidden"> & {
|
|
15
|
+
hidden?: PageContentHidden;
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "section">(props: Omit<import("../../utilities/polymorphic").PolymorphicProps<As, "section">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageContent.types").PageContentHidden;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import PageContentSection from "./PageContentSection";
|
|
2
|
+
export declare const PageContent: (<As extends React.ElementType = "main">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "main" : As> & {
|
|
3
|
+
width?: import("./PageContent.types").PageContentWidth;
|
|
4
|
+
padding?: import("./PageContent.types").PageContentSpacing;
|
|
5
|
+
gap?: import("./PageContent.types").PageContentSpacing;
|
|
6
|
+
className?: string;
|
|
7
|
+
}, "as"> & {
|
|
8
|
+
as?: As | undefined;
|
|
9
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
10
|
+
Section: <As extends React.ElementType = "section">(props: Omit<import("../../utilities/polymorphic").PolymorphicProps<As, "section">, "hidden"> & {
|
|
11
|
+
hidden?: import("./PageContent.types").PageContentHidden;
|
|
12
|
+
className?: string;
|
|
13
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export { PageContentSection };
|
|
16
|
+
export * from "./PageContent.types";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PageContentHidden, PageContentViewport } from "./PageContent.types";
|
|
2
|
+
export declare const viewports: PageContentViewport[];
|
|
3
|
+
export declare const getHiddenViewports: (hidden?: PageContentHidden) => PageContentViewport[];
|
|
4
|
+
export declare const getViewportClassName: (matched: PageContentViewport[], all: string, when: Record<PageContentViewport, string>) => string | string[];
|
|
5
|
+
export declare const getHiddenClassName: (hiddenViewports: PageContentViewport[]) => string | string[];
|
|
6
|
+
export declare const getHiddenAttribute: (hiddenViewports: PageContentViewport[]) => string | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { PageFooterVariant } from "./PageFooter.types";
|
|
3
|
+
declare const _default: <As extends React.ElementType = "footer">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "footer" : As> & {
|
|
4
|
+
variant?: PageFooterVariant | import("../../hooks/useResponsive").ResponsiveValue<PageFooterVariant>;
|
|
5
|
+
hasBorder?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
}, "as"> & {
|
|
8
|
+
as?: As | undefined;
|
|
9
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { ResponsiveValue } from "../../hooks/useResponsive";
|
|
3
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
4
|
+
export type PageFooterViewport = "narrow" | "regular" | "wide";
|
|
5
|
+
export type PageFooterHidden = boolean | ResponsiveValue<boolean>;
|
|
6
|
+
export type PageFooterVariant = "normal" | "condensed";
|
|
7
|
+
export type PageFooterChildProps<As extends React.ElementType = "div"> = Omit<PolymorphicProps<As, "div">, "hidden"> & {
|
|
8
|
+
hidden?: PageFooterHidden;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export type PageFooterProps<As extends React.ElementType = "footer"> = PolymorphicProps<As, "footer", {
|
|
12
|
+
variant?: PageFooterVariant | ResponsiveValue<PageFooterVariant>;
|
|
13
|
+
hasBorder?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
}>;
|
|
16
|
+
export type PageFooterNavigationProps = Omit<React.ComponentPropsWithoutRef<"div">, "hidden"> & {
|
|
17
|
+
as?: "div" | "nav";
|
|
18
|
+
hidden?: PageFooterHidden;
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageFooter.types").PageFooterHidden;
|
|
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<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageFooter.types").PageFooterHidden;
|
|
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<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageFooter.types").PageFooterHidden;
|
|
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<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageFooter.types").PageFooterHidden;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "hidden"> & {
|
|
3
|
+
as?: "div" | "nav";
|
|
4
|
+
hidden?: import("./PageFooter.types").PageFooterHidden;
|
|
5
|
+
className?: string;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "div">(props: Omit<import("../../utilities/polymorphic").PolymorphicProps<As, "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageFooter.types").PageFooterHidden;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import PageFooterActions from "./PageFooterActions";
|
|
2
|
+
import PageFooterCopyright from "./PageFooterCopyright";
|
|
3
|
+
import PageFooterDescription from "./PageFooterDescription";
|
|
4
|
+
import PageFooterLeadingVisual from "./PageFooterLeadingVisual";
|
|
5
|
+
import PageFooterNavigation from "./PageFooterNavigation";
|
|
6
|
+
export declare const PageFooter: (<As extends React.ElementType = "footer">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "footer" : As> & {
|
|
7
|
+
variant?: import("./PageFooter.types").PageFooterVariant | import("../../hooks/useResponsive").ResponsiveValue<import("./PageFooter.types").PageFooterVariant>;
|
|
8
|
+
hasBorder?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
}, "as"> & {
|
|
11
|
+
as?: As | undefined;
|
|
12
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
13
|
+
Navigation: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "hidden"> & {
|
|
14
|
+
as?: "div" | "nav";
|
|
15
|
+
hidden?: import("./PageFooter.types").PageFooterHidden;
|
|
16
|
+
className?: string;
|
|
17
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
18
|
+
LeadingVisual: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
19
|
+
hidden?: import("./PageFooter.types").PageFooterHidden;
|
|
20
|
+
className?: string;
|
|
21
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
22
|
+
Copyright: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
23
|
+
hidden?: import("./PageFooter.types").PageFooterHidden;
|
|
24
|
+
className?: string;
|
|
25
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
26
|
+
Actions: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
27
|
+
hidden?: import("./PageFooter.types").PageFooterHidden;
|
|
28
|
+
className?: string;
|
|
29
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
30
|
+
Description: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
31
|
+
hidden?: import("./PageFooter.types").PageFooterHidden;
|
|
32
|
+
className?: string;
|
|
33
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
34
|
+
};
|
|
35
|
+
export { PageFooterNavigation, PageFooterLeadingVisual, PageFooterCopyright, PageFooterActions, PageFooterDescription, };
|
|
36
|
+
export * from "./PageFooter.types";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PageFooterHidden, PageFooterViewport } from "./PageFooter.types";
|
|
2
|
+
export declare const viewports: PageFooterViewport[];
|
|
3
|
+
export declare const getHiddenViewports: (hidden?: PageFooterHidden) => PageFooterViewport[];
|
|
4
|
+
export declare const getViewportClassName: (matched: PageFooterViewport[], all: string, when: Record<PageFooterViewport, string>) => string | string[];
|
|
5
|
+
export declare const getHiddenClassName: (hiddenViewports: PageFooterViewport[]) => string | string[];
|
|
6
|
+
export declare const getHiddenAttribute: (hiddenViewports: PageFooterViewport[]) => string | undefined;
|
|
@@ -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
|
+
hasBorder?: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
}, "as"> & {
|
|
6
|
+
as?: As | undefined;
|
|
7
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { ResponsiveValue } from "../../hooks/useResponsive";
|
|
3
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
4
|
+
export type PageHeaderViewport = "narrow" | "regular" | "wide";
|
|
5
|
+
export type PageHeaderHidden = boolean | ResponsiveValue<boolean>;
|
|
6
|
+
export type PageHeaderTitleVariant = "subtitle" | "medium" | "large";
|
|
7
|
+
export type PageHeaderTitleElement = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
8
|
+
export type PageHeaderChildProps<As extends React.ElementType = "div"> = Omit<PolymorphicProps<As, "div">, "hidden"> & {
|
|
9
|
+
hidden?: PageHeaderHidden;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export type PageHeaderProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
|
|
13
|
+
hasBorder?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
}>;
|
|
16
|
+
export type PageHeaderTitleAreaProps = PageHeaderChildProps & {
|
|
17
|
+
variant?: PageHeaderTitleVariant | ResponsiveValue<PageHeaderTitleVariant>;
|
|
18
|
+
};
|
|
19
|
+
export type PageHeaderTitleProps = Omit<React.ComponentPropsWithoutRef<"h2">, "hidden"> & {
|
|
20
|
+
as?: PageHeaderTitleElement;
|
|
21
|
+
hidden?: PageHeaderHidden;
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
export type PageHeaderParentLinkProps<As extends React.ElementType = "a"> = Omit<PolymorphicProps<As, "a">, "hidden"> & {
|
|
25
|
+
hidden?: PageHeaderHidden;
|
|
26
|
+
className?: string;
|
|
27
|
+
};
|
|
28
|
+
export type PageHeaderNavigationProps = Omit<React.ComponentPropsWithoutRef<"div">, "hidden"> & {
|
|
29
|
+
as?: "div" | "nav";
|
|
30
|
+
hidden?: PageHeaderHidden;
|
|
31
|
+
className?: string;
|
|
32
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
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<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
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<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
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<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
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<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
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<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
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<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
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<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "hidden"> & {
|
|
3
|
+
as?: "div" | "nav";
|
|
4
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
5
|
+
className?: string;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "a">(props: Omit<import("../../utilities/polymorphic").PolymorphicProps<As, "a">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
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: <As extends React.ElementType = "div">(props: Omit<import("../../utilities/polymorphic").PolymorphicProps<As, "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, "hidden"> & {
|
|
3
|
+
as?: import("./PageHeader.types").PageHeaderTitleElement;
|
|
4
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
5
|
+
className?: string;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & {
|
|
6
|
+
variant?: import("./PageHeader.types").PageHeaderTitleVariant | import("../../hooks/useResponsive").ResponsiveValue<import("./PageHeader.types").PageHeaderTitleVariant>;
|
|
7
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
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<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
3
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import PageHeaderActions from "./PageHeaderActions";
|
|
2
|
+
import PageHeaderBreadcrumbs from "./PageHeaderBreadcrumbs";
|
|
3
|
+
import PageHeaderContextArea from "./PageHeaderContextArea";
|
|
4
|
+
import PageHeaderContextAreaActions from "./PageHeaderContextAreaActions";
|
|
5
|
+
import PageHeaderContextBar from "./PageHeaderContextBar";
|
|
6
|
+
import PageHeaderDescription from "./PageHeaderDescription";
|
|
7
|
+
import PageHeaderLeadingAction from "./PageHeaderLeadingAction";
|
|
8
|
+
import PageHeaderLeadingVisual from "./PageHeaderLeadingVisual";
|
|
9
|
+
import PageHeaderNavigation from "./PageHeaderNavigation";
|
|
10
|
+
import PageHeaderParentLink from "./PageHeaderParentLink";
|
|
11
|
+
import PageHeaderTitle from "./PageHeaderTitle";
|
|
12
|
+
import PageHeaderTitleArea from "./PageHeaderTitleArea";
|
|
13
|
+
import PageHeaderTrailingAction from "./PageHeaderTrailingAction";
|
|
14
|
+
import PageHeaderTrailingVisual from "./PageHeaderTrailingVisual";
|
|
15
|
+
export declare const PageHeader: (<As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
16
|
+
hasBorder?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
}, "as"> & {
|
|
19
|
+
as?: As | undefined;
|
|
20
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
21
|
+
ContextArea: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
22
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
23
|
+
className?: string;
|
|
24
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
25
|
+
ParentLink: <As extends React.ElementType = "a">(props: Omit<import("../../utilities/polymorphic").PolymorphicProps<As, "a">, "hidden"> & {
|
|
26
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
27
|
+
className?: string;
|
|
28
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
29
|
+
ContextBar: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
30
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
31
|
+
className?: string;
|
|
32
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
33
|
+
ContextAreaActions: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
34
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
35
|
+
className?: string;
|
|
36
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
37
|
+
TitleArea: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
38
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
39
|
+
className?: string;
|
|
40
|
+
} & {
|
|
41
|
+
variant?: import("./PageHeader.types").PageHeaderTitleVariant | import("../../hooks/useResponsive").ResponsiveValue<import("./PageHeader.types").PageHeaderTitleVariant>;
|
|
42
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
43
|
+
LeadingAction: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
44
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
45
|
+
className?: string;
|
|
46
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
47
|
+
Breadcrumbs: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
48
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
49
|
+
className?: string;
|
|
50
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
51
|
+
LeadingVisual: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
52
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
53
|
+
className?: string;
|
|
54
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
55
|
+
Title: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, "hidden"> & {
|
|
56
|
+
as?: import("./PageHeader.types").PageHeaderTitleElement;
|
|
57
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
58
|
+
className?: string;
|
|
59
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
60
|
+
TrailingVisual: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
61
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
62
|
+
className?: string;
|
|
63
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
64
|
+
TrailingAction: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
65
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
66
|
+
className?: string;
|
|
67
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
68
|
+
Actions: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
69
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
70
|
+
className?: string;
|
|
71
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
72
|
+
Description: (props: Omit<import("../../utilities/polymorphic").PolymorphicProps<"div", "div">, "hidden"> & {
|
|
73
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
74
|
+
className?: string;
|
|
75
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
76
|
+
Navigation: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "hidden"> & {
|
|
77
|
+
as?: "div" | "nav";
|
|
78
|
+
hidden?: import("./PageHeader.types").PageHeaderHidden;
|
|
79
|
+
className?: string;
|
|
80
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
81
|
+
};
|
|
82
|
+
export { PageHeaderContextArea, PageHeaderParentLink, PageHeaderContextBar, PageHeaderContextAreaActions, PageHeaderTitleArea, PageHeaderLeadingAction, PageHeaderBreadcrumbs, PageHeaderLeadingVisual, PageHeaderTitle, PageHeaderTrailingVisual, PageHeaderTrailingAction, PageHeaderActions, PageHeaderDescription, PageHeaderNavigation, };
|
|
83
|
+
export * from "./PageHeader.types";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PageHeaderHidden, PageHeaderViewport } from "./PageHeader.types";
|
|
2
|
+
export declare const viewports: PageHeaderViewport[];
|
|
3
|
+
export declare const getHiddenViewports: (hidden?: PageHeaderHidden) => PageHeaderViewport[];
|
|
4
|
+
export declare const getViewportClassName: (matched: PageHeaderViewport[], all: string, when: Record<PageHeaderViewport, string>) => string | string[];
|
|
5
|
+
export declare const getHiddenClassName: (hiddenViewports: PageHeaderViewport[]) => string | string[];
|
|
6
|
+
export declare const getHiddenAttribute: (hiddenViewports: PageHeaderViewport[]) => string | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { PageLayoutWidth } from "./PageLayout.types";
|
|
3
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
containerWidth?: PageLayoutWidth;
|
|
5
|
+
padding?: import("./PageLayout.types").PageLayoutSpacing;
|
|
6
|
+
rowGap?: import("./PageLayout.types").PageLayoutSpacing;
|
|
7
|
+
columnGap?: import("./PageLayout.types").PageLayoutSpacing;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { ResponsiveValue } from "../../hooks/useResponsive";
|
|
3
|
+
export type PageLayoutSpacing = "none" | "condensed" | "normal";
|
|
4
|
+
export type PageLayoutWidth = "full" | "medium" | "large" | "xlarge";
|
|
5
|
+
export type PageLayoutPosition = "start" | "end";
|
|
6
|
+
export type PageLayoutDividerVariant = "none" | "line" | "filled";
|
|
7
|
+
export type PageLayoutDivider = "none" | "line" | ResponsiveValue<"none" | "line", PageLayoutDividerVariant>;
|
|
8
|
+
export type PaneWidth = "small" | "medium" | "large";
|
|
9
|
+
type Measurement = `${number}px`;
|
|
10
|
+
export type CustomWidthOptions = {
|
|
11
|
+
min: Measurement;
|
|
12
|
+
default: Measurement;
|
|
13
|
+
max: Measurement;
|
|
14
|
+
};
|
|
15
|
+
export type PaneWidthValue = PaneWidth | CustomWidthOptions;
|
|
16
|
+
export type PageLayoutProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
17
|
+
containerWidth?: PageLayoutWidth;
|
|
18
|
+
padding?: PageLayoutSpacing;
|
|
19
|
+
rowGap?: PageLayoutSpacing;
|
|
20
|
+
columnGap?: PageLayoutSpacing;
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
export type PageLayoutHeaderProps = Omit<React.ComponentPropsWithoutRef<"header">, "hidden"> & {
|
|
24
|
+
padding?: PageLayoutSpacing;
|
|
25
|
+
divider?: PageLayoutDivider;
|
|
26
|
+
hidden?: boolean | ResponsiveValue<boolean>;
|
|
27
|
+
className?: string;
|
|
28
|
+
};
|
|
29
|
+
export type PageLayoutContentProps = Omit<React.ComponentPropsWithoutRef<"main">, "hidden"> & {
|
|
30
|
+
as?: React.ElementType;
|
|
31
|
+
width?: PageLayoutWidth;
|
|
32
|
+
padding?: PageLayoutSpacing;
|
|
33
|
+
hidden?: boolean | ResponsiveValue<boolean>;
|
|
34
|
+
className?: string;
|
|
35
|
+
};
|
|
36
|
+
type ResizableProps = {
|
|
37
|
+
onResizeEnd: (width: number) => void;
|
|
38
|
+
currentWidth: number | undefined;
|
|
39
|
+
} | {
|
|
40
|
+
onResizeEnd?: never;
|
|
41
|
+
currentWidth?: never;
|
|
42
|
+
};
|
|
43
|
+
export type PageLayoutPaneBaseProps = Omit<React.ComponentPropsWithoutRef<"div">, "hidden"> & {
|
|
44
|
+
position?: PageLayoutPosition | ResponsiveValue<PageLayoutPosition>;
|
|
45
|
+
width?: PaneWidthValue;
|
|
46
|
+
minWidth?: number;
|
|
47
|
+
widthStorageKey?: string;
|
|
48
|
+
padding?: PageLayoutSpacing;
|
|
49
|
+
divider?: PageLayoutDivider;
|
|
50
|
+
resizable?: boolean;
|
|
51
|
+
sticky?: boolean;
|
|
52
|
+
offsetHeader?: string | number;
|
|
53
|
+
hidden?: boolean | ResponsiveValue<boolean>;
|
|
54
|
+
className?: string;
|
|
55
|
+
};
|
|
56
|
+
export type PageLayoutPaneProps = PageLayoutPaneBaseProps & ResizableProps;
|
|
57
|
+
export type PageLayoutSidebarBaseProps = Omit<React.ComponentPropsWithoutRef<"div">, "hidden"> & {
|
|
58
|
+
position?: PageLayoutPosition;
|
|
59
|
+
width?: PaneWidthValue;
|
|
60
|
+
minWidth?: number;
|
|
61
|
+
widthStorageKey?: string;
|
|
62
|
+
padding?: PageLayoutSpacing;
|
|
63
|
+
divider?: "none" | "line";
|
|
64
|
+
resizable?: boolean;
|
|
65
|
+
sticky?: boolean;
|
|
66
|
+
responsiveVariant?: "default" | "fullscreen";
|
|
67
|
+
hidden?: boolean | ResponsiveValue<boolean>;
|
|
68
|
+
className?: string;
|
|
69
|
+
};
|
|
70
|
+
export type PageLayoutSidebarProps = PageLayoutSidebarBaseProps & ResizableProps;
|
|
71
|
+
export type PageLayoutFooterProps = Omit<React.ComponentPropsWithoutRef<"footer">, "hidden"> & {
|
|
72
|
+
padding?: PageLayoutSpacing;
|
|
73
|
+
divider?: PageLayoutDivider;
|
|
74
|
+
hidden?: boolean | ResponsiveValue<boolean>;
|
|
75
|
+
className?: string;
|
|
76
|
+
};
|
|
77
|
+
export type PageLayoutDividerProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
78
|
+
variant?: PageLayoutDividerVariant | ResponsiveValue<PageLayoutDividerVariant>;
|
|
79
|
+
position?: PageLayoutPosition | ResponsiveValue<PageLayoutPosition>;
|
|
80
|
+
className?: string;
|
|
81
|
+
};
|
|
82
|
+
export type PageLayoutContextValue = {
|
|
83
|
+
padding: PageLayoutSpacing;
|
|
84
|
+
rowGap: PageLayoutSpacing;
|
|
85
|
+
columnGap: PageLayoutSpacing;
|
|
86
|
+
paneRef: React.RefObject<HTMLDivElement | null>;
|
|
87
|
+
contentWrapperRef: React.RefObject<HTMLDivElement | null>;
|
|
88
|
+
sidebarRef: React.RefObject<HTMLDivElement | null>;
|
|
89
|
+
sidebarContentWrapperRef: React.RefObject<HTMLDivElement | null>;
|
|
90
|
+
};
|
|
91
|
+
export type UsePaneWidthOptions = {
|
|
92
|
+
width: PaneWidthValue;
|
|
93
|
+
minWidth: number;
|
|
94
|
+
resizable: boolean;
|
|
95
|
+
widthStorageKey?: string;
|
|
96
|
+
paneRef: React.RefObject<HTMLDivElement | null>;
|
|
97
|
+
handleRef: React.RefObject<HTMLDivElement | null>;
|
|
98
|
+
contentWrapperRef?: React.RefObject<HTMLDivElement | null>;
|
|
99
|
+
constrainToViewport?: boolean;
|
|
100
|
+
onResizeEnd?: (width: number) => void;
|
|
101
|
+
currentWidth?: number;
|
|
102
|
+
};
|
|
103
|
+
export type UsePaneWidthResult = {
|
|
104
|
+
currentWidth: number;
|
|
105
|
+
currentWidthRef: React.RefObject<number>;
|
|
106
|
+
minPaneWidth: number;
|
|
107
|
+
maxPaneWidth: number;
|
|
108
|
+
getMaxPaneWidth: () => number;
|
|
109
|
+
getDefaultWidth: () => number;
|
|
110
|
+
saveWidth: (value: number) => void;
|
|
111
|
+
};
|
|
112
|
+
export type DragHandleProps = {
|
|
113
|
+
handleRef: React.RefObject<HTMLDivElement | null>;
|
|
114
|
+
onDragStart: (clientX: number) => void;
|
|
115
|
+
onDrag: (value: number, isKeyboard: boolean) => void;
|
|
116
|
+
onDragEnd: () => void;
|
|
117
|
+
onDoubleClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
118
|
+
"aria-label"?: string;
|
|
119
|
+
"aria-labelledby"?: string;
|
|
120
|
+
"aria-valuemin"?: number;
|
|
121
|
+
"aria-valuemax"?: number;
|
|
122
|
+
"aria-valuenow"?: number;
|
|
123
|
+
dragTargetRef?: React.RefObject<HTMLElement | null>;
|
|
124
|
+
contentWrapperRef?: React.RefObject<HTMLElement | null>;
|
|
125
|
+
className?: string;
|
|
126
|
+
};
|
|
127
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { PageLayoutWidth } from "./PageLayout.types";
|
|
3
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "hidden"> & {
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
width?: PageLayoutWidth;
|
|
6
|
+
padding?: import("./PageLayout.types").PageLayoutSpacing;
|
|
7
|
+
hidden?: boolean | import("../../hooks/useResponsive").ResponsiveValue<boolean>;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "hidden"> & {
|
|
3
|
+
padding?: import("./PageLayout.types").PageLayoutSpacing;
|
|
4
|
+
divider?: import("./PageLayout.types").PageLayoutDivider;
|
|
5
|
+
hidden?: boolean | import("../../hooks/useResponsive").ResponsiveValue<boolean>;
|
|
6
|
+
className?: string;
|
|
7
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
8
|
+
export default _default;
|