@homebound/beam 4.8.0 → 4.9.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/dist/index.d.cts CHANGED
@@ -9,6 +9,7 @@ import { MenuTriggerState } from 'react-stately';
9
9
  import { VirtuosoHandle, ListRange } from 'react-virtuoso';
10
10
  import { FieldState, ListFieldState, ObjectState } from '@homebound/form-state';
11
11
  import { NumberFieldAria } from 'react-aria';
12
+ import { BlockerFunction } from 'react-router-dom';
12
13
 
13
14
  /** Given a type X, and the user's proposed type T, only allow keys in X and nothing else. */
14
15
  type Only<X, T> = X & Record<Exclude<keyof T, keyof X | "__kind">, never>;
@@ -10639,11 +10640,16 @@ type PageHeaderLayoutProps<V extends string, X> = {
10639
10640
  /** Page header + body shell with auto-hide chrome. Contract: `docs/layouts.md`. */
10640
10641
  declare function PageHeaderLayout<V extends string, X extends Only<TabsContentXss, X>>(props: PageHeaderLayoutProps<V, X>): React$1.JSX.Element;
10641
10642
 
10643
+ /** The pending in-app navigation, as React Router reports it (pathnames are basename-stripped). */
10644
+ type AllowNavigationArgs = Parameters<BlockerFunction>[0];
10645
+
10642
10646
  type FocusedFormLayoutProps = Pick<BaseHeaderProps, "title" | "documentTitleSuffix" | "breadcrumbs"> & Pick<WorkflowActionsProps, "onCancel" | "completeLabel" | "onComplete" | "onSaveAndExit"> & {
10643
10647
  /** Create/Save is disabled. A ReactNode is shown in Beam's tooltip. */
10644
10648
  primaryDisabled?: WorkflowActionsProps["primaryDisabled"];
10645
10649
  /** Read on Cancel / leave — a callback so flipping dirty does not re-render. */
10646
10650
  isDirty?: () => boolean;
10651
+ /** Consulted only while dirty — return true to allow a route change that stays on this form. */
10652
+ allowNavigation?: (args: AllowNavigationArgs) => boolean;
10647
10653
  /** Full-bleed AI wash on the body and the `ai` Create/Save variant. Pair with body `aiMode` (e.g. FormSectionLayout). */
10648
10654
  aiMode?: boolean;
10649
10655
  /** Page body — typically {@link FormSectionLayout} (optionally with `withJumpLinks` / `withRightPane`). */
@@ -10674,6 +10680,8 @@ type StepperLayoutProps = Pick<BaseHeaderProps, "title" | "documentTitleSuffix"
10674
10680
  defaultStep?: string;
10675
10681
  /** Read on Cancel / leave — a callback so flipping dirty does not re-render. */
10676
10682
  isDirty?: () => boolean;
10683
+ /** Consulted only while dirty — return true to allow a route change that stays on this form. */
10684
+ allowNavigation?: (args: AllowNavigationArgs) => boolean;
10677
10685
  /** Full-bleed AI wash on the body. Pair with `aiMode` on a step's `FormSectionLayout`. */
10678
10686
  aiMode?: boolean;
10679
10687
  };
@@ -11059,4 +11067,4 @@ declare const zIndices: {
11059
11067
  };
11060
11068
  type ZIndex = (typeof zIndices)[keyof typeof zIndices];
11061
11069
 
11062
- export { ASC, Accordion, AccordionList, type AccordionProps, type AccordionSize, type ActionButtonProps, AiBanner, type AiBannerProps, AiCard, type AiCardProps, type AiCardSize, AiLinkCardGroup, type AiLinkCardGroupProps, AiLoader, type AiLoaderProps, AiLoadingPanel, type AiLoadingPanelProps, AiPanel, type AiPanelPadding, type AiPanelProps, AiSlimBanner, type AiSlimBannerProps, type AppEnvironment, type AppNavGroup, type AppNavItem, type AppNavLink, type AppNavSection, type AppNavSectionItem, AutoSaveIndicator, AutoSaveStatus, AutoSaveStatusContext, AutoSaveStatusProvider, Autocomplete, type AutocompleteProps, Avatar, AvatarButton, type AvatarButtonProps, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Banner, type BannerProps, type BannerTypes, BaseCard, type BaseCardProps, BaseFilter, type BaseQueryTableProps, type BaseTableProps, type BeamButtonProps, type BeamColor, type BeamFocusableProps, BeamLogo, BeamProvider, type BeamTextFieldProps, BlueprintAiLogo, BoundCheckboxField, type BoundCheckboxFieldProps, BoundCheckboxGroupField, type BoundCheckboxGroupFieldProps, BoundChipSelectField, BoundDateField, type BoundDateFieldProps, BoundDateRangeField, type BoundDateRangeFieldProps, BoundForm, type BoundFormInputConfig, type BoundFormProps, type BoundFormRowInputs, BoundMultiLineSelectField, type BoundMultiLineSelectFieldProps, BoundMultiSelectCardGroupField, type BoundMultiSelectCardGroupFieldProps, BoundMultiSelectField, type BoundMultiSelectFieldProps, BoundNumberField, type BoundNumberFieldProps, BoundRadioGroupField, type BoundRadioGroupFieldProps, BoundRichTextField, type BoundRichTextFieldProps, BoundSelectAndTextField, BoundSelectCardGroupField, type BoundSelectCardGroupFieldProps, BoundSelectField, type BoundSelectFieldProps, BoundSwitchField, type BoundSwitchFieldProps, BoundTextAreaField, type BoundTextAreaFieldProps, BoundTextField, type BoundTextFieldProps, BoundToggleChipGroupField, type BoundToggleChipGroupFieldProps, BoundTreeSelectField, type BoundTreeSelectFieldProps, type Breadcrumb, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, Breakpoints, type BuildtimeStyles, Button, type ButtonColorScheme, ButtonDatePicker, ButtonGroup, type ButtonGroupButton, type ButtonGroupProps, ButtonMenu, type ButtonMenuProps, ButtonModal, type ButtonModalProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBadgeSlot, type CardBadgeTag, CardBody, type CardBodyProps, type CardCarouselFooter, type CardCarouselThumbnail, type CardData, type CardDataBlockSlot, type CardEyebrowSlot, type CardInteractiveFooter, type CardInteractiveFooterSlot, type CardLeftEyebrowSlot, type CardProgressSlot, type CardProps, type CardRightEyebrowSlot, type CardSlot, type CardStatusSlot, type CardTag, type CardTitleSlot, type CardType, Carousel, type CarouselProps, CenteredLayout, type CenteredLayoutProps, type CenteredLayoutSize, type CheckFn, Checkbox, CheckboxGroup, type CheckboxGroupItemOption, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, ChipSelectField, type ChipSelectFieldProps, type ChipType, ChipTypes, type ChipValue, Chips, type ChipsProps, CollapseToggle, CollapsedContext, type ColumnLayoutResult, type CompanionConfig, type CompanionContent, type CompanionPosition, ConfirmCloseModal, ContentHeader, type ContentHeaderLevel, type ContentHeaderProps, type ContentStack, ContrastScope, Copy, CountBadge, type CountBadgeProps, Css, CssReset, type CssSetVarKeys, type CssSetVarScalar, type CssSetVarValue, DESC, DateField, type DateFieldFormat, type DateFieldMode, type DateFieldProps, type DateFilterValue, type DateMatcher, type DateRange, DateRangeField, type DateRangeFieldProps, type DateRangeFilterValue, type DefinedFilterValue, type Direction, type DiscriminateUnion, type DividerMenuItemType, DnDGrid, DnDGridItemHandle, type DnDGridItemHandleProps, type DnDGridItemProps, type DnDGridProps, DocumentScrollOverlayRightPaneLayout, type DocumentScrollOverlayRightPaneLayoutProps, type DocumentTitleConfig, DocumentTitleProvider, type DragData, EXPANDABLE_HEADER, EditColumnsButton, EnvironmentBanner, EnvironmentBannerLayout, type EnvironmentBannerLayoutProps, type EnvironmentBannerProps, type EnvironmentFaviconUrls, ErrorMessage, FieldGroup, type Filter, type FilterDefs, type FilterImpls, FilterModal, _Filters as Filters, type FixedSort, FocusedFormLayout, type FocusedFormLayoutProps, type Font, FormDivider, FormHeading, type FormHeadingProps, FormLines, type FormLinesProps, FormPageLayout, FormRow, FormSection, type FormSectionAction, type FormSectionConfig, FormSectionLayout, type FormSectionLayoutProps, type FormSectionLayoutSection, type FormSectionProps, type FormWidth, FullBleed, type GridCellAlignment, type GridCellContent, type GridColumn, type GridColumnBorder, type GridColumnWithId, type GridDataRow, type GridRowCompanion, type GridRowKind, type GridRowLookup, type GridSortConfig, type GridStyle, GridTable, type GridTableApi, type GridTableCollapseToggleProps, type GridTableDefaults, GridTableEmptyState, type GridTableEmptyStateProps, GridTableLayout, type GridTableLayoutProps, type GridTableProps, type GridTablePropsWithRows, type GridTableScrollOptions, type GridTableXss, type GroupByHook, HB_QUIPS_FLAVOR, HB_QUIPS_MISSION, HEADER, type HasIdAndName, HbLoadingSpinner, HbSpinnerProvider, type HeaderAction, HelperText, HomeboundLogo, Icon, IconButton, type IconButtonProps, type IconButtonVariant, type IconKey, type IconMenuItemType, type IconProps, Icons, type IfAny, type ImageFitType, type ImageMenuItemType, type ImpersonatedUser, type InfiniteScroll, InlineFeedbackBanner, type InlineFeedbackBannerAction, type InlineFeedbackBannerProps, type InlineFeedbackBannerType, type InlineStyle, type InputStylePalette, JumpLink, type JumpLinkProps, KEPT_GROUP, Keyframes, type Kinded, LinkCard, type LinkCardProps, Loader, LoadingSkeleton, type LoadingSkeletonProps, type LogoSizeProps, type Margin, type Marker, MaxLines, type MaxLinesProps, type MaybeFn, type MenuItem, type MenuSection, ModalBanner, ModalBody, ModalFilterItem, ModalFooter, ModalHeader, type ModalProps, type ModalSize, MultiLineSelectField, type MultiLineSelectFieldProps, MultiSelectCardGroup, type MultiSelectCardGroupProps, MultiSelectField, type MultiSelectFieldProps, NavLink, type NavLinkProps, type NavLinkVariant, Navbar, NavbarLayout, type NavbarLayoutProps, type NavbarProps, type NavbarUser, type NestedOption, type NestedOptionsOrLoad, NumberField, type NumberFieldProps, type NumberFieldType, type OffsetAndLimit, type OnRowDragEvent, type OnRowSelect, type Only, type OpenDetailOpts, type OpenInDrawerOpts, OpenModal, type OpenRightPaneOpts, type Optional, type Padding, PageHeaderLayout, type PageHeaderLayoutProps, type PageNumberAndSize, type PageSettings, Pagination, Palette, PinToggle, type Placement, type PlainDate, type PlainFormSectionChild, type PresentationFieldProps, PresentationProvider, PreventBrowserScroll, type Properties, ProposedValue$1 as ProposedValue, type ProposedValueProps, RIGHT_SIDEBAR_MIN_WIDTH, type RadioFieldOption, RadioGroupField, type RadioGroupFieldProps, type RenderAs, type RenderCellFn, type ReorderableFormSectionChild, type ResolvedWithRightPane, ResponsiveGrid, type ResponsiveGridConfig, ResponsiveGridContext, ResponsiveGridItem, type ResponsiveGridItemProps, type ResponsiveGridProps, RichTextField, RichTextFieldImpl, type RichTextFieldProps, RightPaneLayout, type RightPaneOpenActions, type RightPaneOpenState, RightPanePanel, type RightPanePanelProps, RightSidebar, type RightSidebarProps, type RouteTab, type RouteTabWithContent, Row, type RowStyle, type RowStyles, RuntimeCss, type RuntimeStyles, SIDE_NAV_LAYOUT_STATE_STORAGE_KEY, ScrollShadows, ScrollableContent, ScrollableFooter, ScrollableParent, type SelectCardGridGroupItemOption, SelectCardGroup, type SelectCardGroupItemOption, type SelectCardGroupProps, type SelectCardLayout, type SelectCardListGroupItemOption, type SelectCardView, SelectField, type SelectFieldProps, SelectToggle, type SelectedFilterLabelValue, SelectedOptionPill, SelectedOptionPillList, type SelectedOptionPillListProps, type SelectedOptionPillProps, type SelectedState, SideNav, SideNavLayout, type SideNavLayoutContextProps, type SideNavLayoutProps, SideNavLayoutProvider, type SideNavLayoutState, type SideNavProps, type SidePanelProps, type SidebarContentProps, type SimpleHeaderAndData, SortHeader, type SortOn, type SortState, StackBarGraph, type StackBarGraphProps, type StackBarGraphSegment, StaticField, type Step, Stepper, StepperLayout, type StepperLayoutProps, type StepperLayoutStep, type StepperProps, StepperTab, type StepperTabProps, StepperTabs, type StepperTabsProps, type StepperTabsStep, type StyleKind, SubmitButton, type SubmitButtonProps, SuperDrawerContent, SuperDrawerHeader, SuperDrawerWidth, type SupportedDateFormat, Switch, type SwitchProps, TOTALS, type Tab, TabContent, type TabWithContent, TableReviewLayout, type TableReviewLayoutProps, TableState, TableStateContext, TableSummary, type TableSummaryAction, type TableSummaryMetric, type TableSummaryProps, type TableView, Tabs, TabsWithContent, Tag, TagGroup, type TagGroupItem, type TagGroupProps, type TagProps, type TagType, type TagVariant, type TagXss, type TestIds, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldApi, type TextFieldInternalProps, type TextFieldProps, type TextFieldXss, Toast, ToggleButton, type ToggleButtonProps, ToggleChip, ToggleChipGroup, type ToggleChipGroupProps, type ToggleChipProps, ToggleChips, type ToggleChipsProps, Tokens, Tooltip, TreeSelectField, type TreeSelectFieldProps, type TriggerNoticeProps, type Typography, type UseModalHook, type UsePersistedFilterProps$1 as UsePersistedFilterProps, type UseQueryState, type UseRightPaneActionsHook, type UseRightPaneHook, type UseSnackbarHook, type UseSuperDrawerHook, type UseToastProps, type Value, ViewToggleButton, type WithRightPane, type Xss, type ZIndex, actionColumn, applyRowFn, assignDefaultColumnIds, bannerAndNavbarChromeTop, beamEnvironmentBannerLayoutHeightVar, beamFloatingRightOffsetVar, beamLayoutContentPaddingXVar, beamLayoutViewportHeightVar, beamLayoutViewportWidthVar, beamNavbarLayoutHeightVar, beamPageHeaderLayoutHeightVar, beamRightPaneContentMinVar, beamRightPaneWidthVar, beamSideNavLayoutWidthVar, beamTableActionsHeightVar, beamWorkflowLayoutFooterHeightVar, booleanFilter, boundCheckboxField, boundCheckboxGroupField, boundDateField, boundDateRangeField, boundMultiSelectCardGroupField, boundMultiSelectField, boundMultilineSelectField, boundNumberField, boundRadioGroupField, boundRichTextField, boundSelectCardGroupField, boundSelectField, boundSwitchField, boundTextAreaField, boundTextField, boundToggleChipGroupField, boundTreeSelectField, calcColumnLayout, calcColumnSizes, cardBadgeSlot, cardCarouselSlot, cardDataBlockSlot, cardEyebrowSlot, cardInteractiveFooterSlot, cardLeftEyebrowSlot, cardProgressSlot, cardRightEyebrowSlot, cardStatusSlot, cardStyle, cardTitleSlot, centeredShellMaxPx, checkboxFilter, chipBaseStyles, chipDisabledStyles, chipHoverOnlyStyles, chipHoverStyles, collapseColumn, column, condensedStyle, contrastDataTheme, createRowLookup, dateColumn, dateFilter, dateFormats, dateRangeFilter, defaultDocumentScrollRightPaneWidth, defaultPage, defaultRenderFn, defaultStyle, defaultTestId, documentScrollBodyMinHeight, documentScrollChromeLeft, documentScrollChromeWidth, documentScrollContentLeft, documentScrollContentWidth, documentScrollRightPaneContentMinCss, documentScrollRightPaneHeight, documentScrollRightPaneWidthCss, dragHandleColumn, emptyCell, ensureClientSideSortValueIsSortable, environmentBannerSizePx, filterTestIdPrefix, formatDate, formatDateRange, formatPlainDate, formatValue, generateColumnId, getActiveFilterCount, getAlignment, getColumnBorderCss, getDateFormat, getFirstOrLastCellCss, getFloatingBottomOffset, getFloatingRightOffset, getJustification, getNavLinkStyles, getTableRefWidthStyles, getTableStyles, headerContentPaddingX, headerRenderFn, hoverStyles, increment, insertAtIndex, isContentColumn, isCursorBelowMidpoint, isGridCellContent, isGridTableProps, isJSX, isListBoxSection, isPersistentItem, isPersistentKey, isValidDate, joinDocumentTitleSegments, layoutGutterLeftColumnId, layoutGutterRightColumnId, listFieldPrefix, loadArrayOrUndefined, marker, matchesFilter, maybeCssVar, maybeInc, maybeTooltip, minDocumentScrollContentWidthPx, multiFilter, navLink, newMethodMissingProxy, nonKindGridColumnKeys, numberRangeFilter, numericColumn, pageContentGutterPx, pageContentPaddingX, parseDate, parseDateRange, parseWidthToPx, persistentItemPrefix, pinColumn, pressedOverlayCss, px, recursivelyGetContainingRow, reservedRowKinds, resetRightPaneStore, resolveGridTableLayoutStyle, resolveTableContentWidth, resolveTooltip, resolveWithRightPaneOptions, rightPaneContentStore, rightPaneOpenActions, rightPaneOpenStore, rowClickRenderFn, rowLinkRenderFn, selectColumn, setDefaultStyle, setEnvironmentFavicon, setGridTableDefaults, setRunningInJest, shouldShowEnvironmentBanner, shouldSkipScrollTo, simpleDataRows, simpleHeader, singleFilter, sortFn, sortRows, stickyNavAndHeaderOffset, stickyNavAndHeaderOffsetPx, stickyTableHeaderOffset, sumColumnSizesPx, switchFocusStyles, switchHoverStyles, switchSelectedHoverStyles, toContent, toLimitAndOffset, toPageNumberSize, toggleFilter, toggleFocusStyles, toggleHoverStyles, togglePressStyles, treeFilter, updateFilter, useAutoSaveStatus, useBodyBackgroundColor, useBreakpoint, useComputed, useContentOverflow, useContrastScope, useDnDGridItem, type useDnDGridItemProps, useDocumentTitle, useFilter, useGridTableApi, useGridTableLayoutState, useGroupBy, useHasSideNavLayoutProvider, useHover, useModal, usePersistedFilter, useQueryState, useResponsiveGrid, useResponsiveGridItem, type useResponsiveGridProps, useRightPane, useRightPaneActions, useRightPaneContent, useRightPaneOpenActions, useRightPaneOpenState, useRuntimeStyle, useScrollableParent, useSessionStorage, useSetupColumnSizes, useSideNavLayoutContext, useSnackbar, useSuperDrawer, useTestIds, useToast, useTreeSelectFieldProvider, useVirtualizedScrollParent, visit, withColumnGutters, zIndices };
11070
+ export { ASC, Accordion, AccordionList, type AccordionProps, type AccordionSize, type ActionButtonProps, AiBanner, type AiBannerProps, AiCard, type AiCardProps, type AiCardSize, AiLinkCardGroup, type AiLinkCardGroupProps, AiLoader, type AiLoaderProps, AiLoadingPanel, type AiLoadingPanelProps, AiPanel, type AiPanelPadding, type AiPanelProps, AiSlimBanner, type AiSlimBannerProps, type AllowNavigationArgs, type AppEnvironment, type AppNavGroup, type AppNavItem, type AppNavLink, type AppNavSection, type AppNavSectionItem, AutoSaveIndicator, AutoSaveStatus, AutoSaveStatusContext, AutoSaveStatusProvider, Autocomplete, type AutocompleteProps, Avatar, AvatarButton, type AvatarButtonProps, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Banner, type BannerProps, type BannerTypes, BaseCard, type BaseCardProps, BaseFilter, type BaseQueryTableProps, type BaseTableProps, type BeamButtonProps, type BeamColor, type BeamFocusableProps, BeamLogo, BeamProvider, type BeamTextFieldProps, BlueprintAiLogo, BoundCheckboxField, type BoundCheckboxFieldProps, BoundCheckboxGroupField, type BoundCheckboxGroupFieldProps, BoundChipSelectField, BoundDateField, type BoundDateFieldProps, BoundDateRangeField, type BoundDateRangeFieldProps, BoundForm, type BoundFormInputConfig, type BoundFormProps, type BoundFormRowInputs, BoundMultiLineSelectField, type BoundMultiLineSelectFieldProps, BoundMultiSelectCardGroupField, type BoundMultiSelectCardGroupFieldProps, BoundMultiSelectField, type BoundMultiSelectFieldProps, BoundNumberField, type BoundNumberFieldProps, BoundRadioGroupField, type BoundRadioGroupFieldProps, BoundRichTextField, type BoundRichTextFieldProps, BoundSelectAndTextField, BoundSelectCardGroupField, type BoundSelectCardGroupFieldProps, BoundSelectField, type BoundSelectFieldProps, BoundSwitchField, type BoundSwitchFieldProps, BoundTextAreaField, type BoundTextAreaFieldProps, BoundTextField, type BoundTextFieldProps, BoundToggleChipGroupField, type BoundToggleChipGroupFieldProps, BoundTreeSelectField, type BoundTreeSelectFieldProps, type Breadcrumb, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, Breakpoints, type BuildtimeStyles, Button, type ButtonColorScheme, ButtonDatePicker, ButtonGroup, type ButtonGroupButton, type ButtonGroupProps, ButtonMenu, type ButtonMenuProps, ButtonModal, type ButtonModalProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBadgeSlot, type CardBadgeTag, CardBody, type CardBodyProps, type CardCarouselFooter, type CardCarouselThumbnail, type CardData, type CardDataBlockSlot, type CardEyebrowSlot, type CardInteractiveFooter, type CardInteractiveFooterSlot, type CardLeftEyebrowSlot, type CardProgressSlot, type CardProps, type CardRightEyebrowSlot, type CardSlot, type CardStatusSlot, type CardTag, type CardTitleSlot, type CardType, Carousel, type CarouselProps, CenteredLayout, type CenteredLayoutProps, type CenteredLayoutSize, type CheckFn, Checkbox, CheckboxGroup, type CheckboxGroupItemOption, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, ChipSelectField, type ChipSelectFieldProps, type ChipType, ChipTypes, type ChipValue, Chips, type ChipsProps, CollapseToggle, CollapsedContext, type ColumnLayoutResult, type CompanionConfig, type CompanionContent, type CompanionPosition, ConfirmCloseModal, ContentHeader, type ContentHeaderLevel, type ContentHeaderProps, type ContentStack, ContrastScope, Copy, CountBadge, type CountBadgeProps, Css, CssReset, type CssSetVarKeys, type CssSetVarScalar, type CssSetVarValue, DESC, DateField, type DateFieldFormat, type DateFieldMode, type DateFieldProps, type DateFilterValue, type DateMatcher, type DateRange, DateRangeField, type DateRangeFieldProps, type DateRangeFilterValue, type DefinedFilterValue, type Direction, type DiscriminateUnion, type DividerMenuItemType, DnDGrid, DnDGridItemHandle, type DnDGridItemHandleProps, type DnDGridItemProps, type DnDGridProps, DocumentScrollOverlayRightPaneLayout, type DocumentScrollOverlayRightPaneLayoutProps, type DocumentTitleConfig, DocumentTitleProvider, type DragData, EXPANDABLE_HEADER, EditColumnsButton, EnvironmentBanner, EnvironmentBannerLayout, type EnvironmentBannerLayoutProps, type EnvironmentBannerProps, type EnvironmentFaviconUrls, ErrorMessage, FieldGroup, type Filter, type FilterDefs, type FilterImpls, FilterModal, _Filters as Filters, type FixedSort, FocusedFormLayout, type FocusedFormLayoutProps, type Font, FormDivider, FormHeading, type FormHeadingProps, FormLines, type FormLinesProps, FormPageLayout, FormRow, FormSection, type FormSectionAction, type FormSectionConfig, FormSectionLayout, type FormSectionLayoutProps, type FormSectionLayoutSection, type FormSectionProps, type FormWidth, FullBleed, type GridCellAlignment, type GridCellContent, type GridColumn, type GridColumnBorder, type GridColumnWithId, type GridDataRow, type GridRowCompanion, type GridRowKind, type GridRowLookup, type GridSortConfig, type GridStyle, GridTable, type GridTableApi, type GridTableCollapseToggleProps, type GridTableDefaults, GridTableEmptyState, type GridTableEmptyStateProps, GridTableLayout, type GridTableLayoutProps, type GridTableProps, type GridTablePropsWithRows, type GridTableScrollOptions, type GridTableXss, type GroupByHook, HB_QUIPS_FLAVOR, HB_QUIPS_MISSION, HEADER, type HasIdAndName, HbLoadingSpinner, HbSpinnerProvider, type HeaderAction, HelperText, HomeboundLogo, Icon, IconButton, type IconButtonProps, type IconButtonVariant, type IconKey, type IconMenuItemType, type IconProps, Icons, type IfAny, type ImageFitType, type ImageMenuItemType, type ImpersonatedUser, type InfiniteScroll, InlineFeedbackBanner, type InlineFeedbackBannerAction, type InlineFeedbackBannerProps, type InlineFeedbackBannerType, type InlineStyle, type InputStylePalette, JumpLink, type JumpLinkProps, KEPT_GROUP, Keyframes, type Kinded, LinkCard, type LinkCardProps, Loader, LoadingSkeleton, type LoadingSkeletonProps, type LogoSizeProps, type Margin, type Marker, MaxLines, type MaxLinesProps, type MaybeFn, type MenuItem, type MenuSection, ModalBanner, ModalBody, ModalFilterItem, ModalFooter, ModalHeader, type ModalProps, type ModalSize, MultiLineSelectField, type MultiLineSelectFieldProps, MultiSelectCardGroup, type MultiSelectCardGroupProps, MultiSelectField, type MultiSelectFieldProps, NavLink, type NavLinkProps, type NavLinkVariant, Navbar, NavbarLayout, type NavbarLayoutProps, type NavbarProps, type NavbarUser, type NestedOption, type NestedOptionsOrLoad, NumberField, type NumberFieldProps, type NumberFieldType, type OffsetAndLimit, type OnRowDragEvent, type OnRowSelect, type Only, type OpenDetailOpts, type OpenInDrawerOpts, OpenModal, type OpenRightPaneOpts, type Optional, type Padding, PageHeaderLayout, type PageHeaderLayoutProps, type PageNumberAndSize, type PageSettings, Pagination, Palette, PinToggle, type Placement, type PlainDate, type PlainFormSectionChild, type PresentationFieldProps, PresentationProvider, PreventBrowserScroll, type Properties, ProposedValue$1 as ProposedValue, type ProposedValueProps, RIGHT_SIDEBAR_MIN_WIDTH, type RadioFieldOption, RadioGroupField, type RadioGroupFieldProps, type RenderAs, type RenderCellFn, type ReorderableFormSectionChild, type ResolvedWithRightPane, ResponsiveGrid, type ResponsiveGridConfig, ResponsiveGridContext, ResponsiveGridItem, type ResponsiveGridItemProps, type ResponsiveGridProps, RichTextField, RichTextFieldImpl, type RichTextFieldProps, RightPaneLayout, type RightPaneOpenActions, type RightPaneOpenState, RightPanePanel, type RightPanePanelProps, RightSidebar, type RightSidebarProps, type RouteTab, type RouteTabWithContent, Row, type RowStyle, type RowStyles, RuntimeCss, type RuntimeStyles, SIDE_NAV_LAYOUT_STATE_STORAGE_KEY, ScrollShadows, ScrollableContent, ScrollableFooter, ScrollableParent, type SelectCardGridGroupItemOption, SelectCardGroup, type SelectCardGroupItemOption, type SelectCardGroupProps, type SelectCardLayout, type SelectCardListGroupItemOption, type SelectCardView, SelectField, type SelectFieldProps, SelectToggle, type SelectedFilterLabelValue, SelectedOptionPill, SelectedOptionPillList, type SelectedOptionPillListProps, type SelectedOptionPillProps, type SelectedState, SideNav, SideNavLayout, type SideNavLayoutContextProps, type SideNavLayoutProps, SideNavLayoutProvider, type SideNavLayoutState, type SideNavProps, type SidePanelProps, type SidebarContentProps, type SimpleHeaderAndData, SortHeader, type SortOn, type SortState, StackBarGraph, type StackBarGraphProps, type StackBarGraphSegment, StaticField, type Step, Stepper, StepperLayout, type StepperLayoutProps, type StepperLayoutStep, type StepperProps, StepperTab, type StepperTabProps, StepperTabs, type StepperTabsProps, type StepperTabsStep, type StyleKind, SubmitButton, type SubmitButtonProps, SuperDrawerContent, SuperDrawerHeader, SuperDrawerWidth, type SupportedDateFormat, Switch, type SwitchProps, TOTALS, type Tab, TabContent, type TabWithContent, TableReviewLayout, type TableReviewLayoutProps, TableState, TableStateContext, TableSummary, type TableSummaryAction, type TableSummaryMetric, type TableSummaryProps, type TableView, Tabs, TabsWithContent, Tag, TagGroup, type TagGroupItem, type TagGroupProps, type TagProps, type TagType, type TagVariant, type TagXss, type TestIds, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldApi, type TextFieldInternalProps, type TextFieldProps, type TextFieldXss, Toast, ToggleButton, type ToggleButtonProps, ToggleChip, ToggleChipGroup, type ToggleChipGroupProps, type ToggleChipProps, ToggleChips, type ToggleChipsProps, Tokens, Tooltip, TreeSelectField, type TreeSelectFieldProps, type TriggerNoticeProps, type Typography, type UseModalHook, type UsePersistedFilterProps$1 as UsePersistedFilterProps, type UseQueryState, type UseRightPaneActionsHook, type UseRightPaneHook, type UseSnackbarHook, type UseSuperDrawerHook, type UseToastProps, type Value, ViewToggleButton, type WithRightPane, type Xss, type ZIndex, actionColumn, applyRowFn, assignDefaultColumnIds, bannerAndNavbarChromeTop, beamEnvironmentBannerLayoutHeightVar, beamFloatingRightOffsetVar, beamLayoutContentPaddingXVar, beamLayoutViewportHeightVar, beamLayoutViewportWidthVar, beamNavbarLayoutHeightVar, beamPageHeaderLayoutHeightVar, beamRightPaneContentMinVar, beamRightPaneWidthVar, beamSideNavLayoutWidthVar, beamTableActionsHeightVar, beamWorkflowLayoutFooterHeightVar, booleanFilter, boundCheckboxField, boundCheckboxGroupField, boundDateField, boundDateRangeField, boundMultiSelectCardGroupField, boundMultiSelectField, boundMultilineSelectField, boundNumberField, boundRadioGroupField, boundRichTextField, boundSelectCardGroupField, boundSelectField, boundSwitchField, boundTextAreaField, boundTextField, boundToggleChipGroupField, boundTreeSelectField, calcColumnLayout, calcColumnSizes, cardBadgeSlot, cardCarouselSlot, cardDataBlockSlot, cardEyebrowSlot, cardInteractiveFooterSlot, cardLeftEyebrowSlot, cardProgressSlot, cardRightEyebrowSlot, cardStatusSlot, cardStyle, cardTitleSlot, centeredShellMaxPx, checkboxFilter, chipBaseStyles, chipDisabledStyles, chipHoverOnlyStyles, chipHoverStyles, collapseColumn, column, condensedStyle, contrastDataTheme, createRowLookup, dateColumn, dateFilter, dateFormats, dateRangeFilter, defaultDocumentScrollRightPaneWidth, defaultPage, defaultRenderFn, defaultStyle, defaultTestId, documentScrollBodyMinHeight, documentScrollChromeLeft, documentScrollChromeWidth, documentScrollContentLeft, documentScrollContentWidth, documentScrollRightPaneContentMinCss, documentScrollRightPaneHeight, documentScrollRightPaneWidthCss, dragHandleColumn, emptyCell, ensureClientSideSortValueIsSortable, environmentBannerSizePx, filterTestIdPrefix, formatDate, formatDateRange, formatPlainDate, formatValue, generateColumnId, getActiveFilterCount, getAlignment, getColumnBorderCss, getDateFormat, getFirstOrLastCellCss, getFloatingBottomOffset, getFloatingRightOffset, getJustification, getNavLinkStyles, getTableRefWidthStyles, getTableStyles, headerContentPaddingX, headerRenderFn, hoverStyles, increment, insertAtIndex, isContentColumn, isCursorBelowMidpoint, isGridCellContent, isGridTableProps, isJSX, isListBoxSection, isPersistentItem, isPersistentKey, isValidDate, joinDocumentTitleSegments, layoutGutterLeftColumnId, layoutGutterRightColumnId, listFieldPrefix, loadArrayOrUndefined, marker, matchesFilter, maybeCssVar, maybeInc, maybeTooltip, minDocumentScrollContentWidthPx, multiFilter, navLink, newMethodMissingProxy, nonKindGridColumnKeys, numberRangeFilter, numericColumn, pageContentGutterPx, pageContentPaddingX, parseDate, parseDateRange, parseWidthToPx, persistentItemPrefix, pinColumn, pressedOverlayCss, px, recursivelyGetContainingRow, reservedRowKinds, resetRightPaneStore, resolveGridTableLayoutStyle, resolveTableContentWidth, resolveTooltip, resolveWithRightPaneOptions, rightPaneContentStore, rightPaneOpenActions, rightPaneOpenStore, rowClickRenderFn, rowLinkRenderFn, selectColumn, setDefaultStyle, setEnvironmentFavicon, setGridTableDefaults, setRunningInJest, shouldShowEnvironmentBanner, shouldSkipScrollTo, simpleDataRows, simpleHeader, singleFilter, sortFn, sortRows, stickyNavAndHeaderOffset, stickyNavAndHeaderOffsetPx, stickyTableHeaderOffset, sumColumnSizesPx, switchFocusStyles, switchHoverStyles, switchSelectedHoverStyles, toContent, toLimitAndOffset, toPageNumberSize, toggleFilter, toggleFocusStyles, toggleHoverStyles, togglePressStyles, treeFilter, updateFilter, useAutoSaveStatus, useBodyBackgroundColor, useBreakpoint, useComputed, useContentOverflow, useContrastScope, useDnDGridItem, type useDnDGridItemProps, useDocumentTitle, useFilter, useGridTableApi, useGridTableLayoutState, useGroupBy, useHasSideNavLayoutProvider, useHover, useModal, usePersistedFilter, useQueryState, useResponsiveGrid, useResponsiveGridItem, type useResponsiveGridProps, useRightPane, useRightPaneActions, useRightPaneContent, useRightPaneOpenActions, useRightPaneOpenState, useRuntimeStyle, useScrollableParent, useSessionStorage, useSetupColumnSizes, useSideNavLayoutContext, useSnackbar, useSuperDrawer, useTestIds, useToast, useTreeSelectFieldProvider, useVirtualizedScrollParent, visit, withColumnGutters, zIndices };
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ import { MenuTriggerState } from 'react-stately';
9
9
  import { VirtuosoHandle, ListRange } from 'react-virtuoso';
10
10
  import { FieldState, ListFieldState, ObjectState } from '@homebound/form-state';
11
11
  import { NumberFieldAria } from 'react-aria';
12
+ import { BlockerFunction } from 'react-router-dom';
12
13
 
13
14
  /** Given a type X, and the user's proposed type T, only allow keys in X and nothing else. */
14
15
  type Only<X, T> = X & Record<Exclude<keyof T, keyof X | "__kind">, never>;
@@ -10639,11 +10640,16 @@ type PageHeaderLayoutProps<V extends string, X> = {
10639
10640
  /** Page header + body shell with auto-hide chrome. Contract: `docs/layouts.md`. */
10640
10641
  declare function PageHeaderLayout<V extends string, X extends Only<TabsContentXss, X>>(props: PageHeaderLayoutProps<V, X>): React$1.JSX.Element;
10641
10642
 
10643
+ /** The pending in-app navigation, as React Router reports it (pathnames are basename-stripped). */
10644
+ type AllowNavigationArgs = Parameters<BlockerFunction>[0];
10645
+
10642
10646
  type FocusedFormLayoutProps = Pick<BaseHeaderProps, "title" | "documentTitleSuffix" | "breadcrumbs"> & Pick<WorkflowActionsProps, "onCancel" | "completeLabel" | "onComplete" | "onSaveAndExit"> & {
10643
10647
  /** Create/Save is disabled. A ReactNode is shown in Beam's tooltip. */
10644
10648
  primaryDisabled?: WorkflowActionsProps["primaryDisabled"];
10645
10649
  /** Read on Cancel / leave — a callback so flipping dirty does not re-render. */
10646
10650
  isDirty?: () => boolean;
10651
+ /** Consulted only while dirty — return true to allow a route change that stays on this form. */
10652
+ allowNavigation?: (args: AllowNavigationArgs) => boolean;
10647
10653
  /** Full-bleed AI wash on the body and the `ai` Create/Save variant. Pair with body `aiMode` (e.g. FormSectionLayout). */
10648
10654
  aiMode?: boolean;
10649
10655
  /** Page body — typically {@link FormSectionLayout} (optionally with `withJumpLinks` / `withRightPane`). */
@@ -10674,6 +10680,8 @@ type StepperLayoutProps = Pick<BaseHeaderProps, "title" | "documentTitleSuffix"
10674
10680
  defaultStep?: string;
10675
10681
  /** Read on Cancel / leave — a callback so flipping dirty does not re-render. */
10676
10682
  isDirty?: () => boolean;
10683
+ /** Consulted only while dirty — return true to allow a route change that stays on this form. */
10684
+ allowNavigation?: (args: AllowNavigationArgs) => boolean;
10677
10685
  /** Full-bleed AI wash on the body. Pair with `aiMode` on a step's `FormSectionLayout`. */
10678
10686
  aiMode?: boolean;
10679
10687
  };
@@ -11059,4 +11067,4 @@ declare const zIndices: {
11059
11067
  };
11060
11068
  type ZIndex = (typeof zIndices)[keyof typeof zIndices];
11061
11069
 
11062
- export { ASC, Accordion, AccordionList, type AccordionProps, type AccordionSize, type ActionButtonProps, AiBanner, type AiBannerProps, AiCard, type AiCardProps, type AiCardSize, AiLinkCardGroup, type AiLinkCardGroupProps, AiLoader, type AiLoaderProps, AiLoadingPanel, type AiLoadingPanelProps, AiPanel, type AiPanelPadding, type AiPanelProps, AiSlimBanner, type AiSlimBannerProps, type AppEnvironment, type AppNavGroup, type AppNavItem, type AppNavLink, type AppNavSection, type AppNavSectionItem, AutoSaveIndicator, AutoSaveStatus, AutoSaveStatusContext, AutoSaveStatusProvider, Autocomplete, type AutocompleteProps, Avatar, AvatarButton, type AvatarButtonProps, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Banner, type BannerProps, type BannerTypes, BaseCard, type BaseCardProps, BaseFilter, type BaseQueryTableProps, type BaseTableProps, type BeamButtonProps, type BeamColor, type BeamFocusableProps, BeamLogo, BeamProvider, type BeamTextFieldProps, BlueprintAiLogo, BoundCheckboxField, type BoundCheckboxFieldProps, BoundCheckboxGroupField, type BoundCheckboxGroupFieldProps, BoundChipSelectField, BoundDateField, type BoundDateFieldProps, BoundDateRangeField, type BoundDateRangeFieldProps, BoundForm, type BoundFormInputConfig, type BoundFormProps, type BoundFormRowInputs, BoundMultiLineSelectField, type BoundMultiLineSelectFieldProps, BoundMultiSelectCardGroupField, type BoundMultiSelectCardGroupFieldProps, BoundMultiSelectField, type BoundMultiSelectFieldProps, BoundNumberField, type BoundNumberFieldProps, BoundRadioGroupField, type BoundRadioGroupFieldProps, BoundRichTextField, type BoundRichTextFieldProps, BoundSelectAndTextField, BoundSelectCardGroupField, type BoundSelectCardGroupFieldProps, BoundSelectField, type BoundSelectFieldProps, BoundSwitchField, type BoundSwitchFieldProps, BoundTextAreaField, type BoundTextAreaFieldProps, BoundTextField, type BoundTextFieldProps, BoundToggleChipGroupField, type BoundToggleChipGroupFieldProps, BoundTreeSelectField, type BoundTreeSelectFieldProps, type Breadcrumb, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, Breakpoints, type BuildtimeStyles, Button, type ButtonColorScheme, ButtonDatePicker, ButtonGroup, type ButtonGroupButton, type ButtonGroupProps, ButtonMenu, type ButtonMenuProps, ButtonModal, type ButtonModalProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBadgeSlot, type CardBadgeTag, CardBody, type CardBodyProps, type CardCarouselFooter, type CardCarouselThumbnail, type CardData, type CardDataBlockSlot, type CardEyebrowSlot, type CardInteractiveFooter, type CardInteractiveFooterSlot, type CardLeftEyebrowSlot, type CardProgressSlot, type CardProps, type CardRightEyebrowSlot, type CardSlot, type CardStatusSlot, type CardTag, type CardTitleSlot, type CardType, Carousel, type CarouselProps, CenteredLayout, type CenteredLayoutProps, type CenteredLayoutSize, type CheckFn, Checkbox, CheckboxGroup, type CheckboxGroupItemOption, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, ChipSelectField, type ChipSelectFieldProps, type ChipType, ChipTypes, type ChipValue, Chips, type ChipsProps, CollapseToggle, CollapsedContext, type ColumnLayoutResult, type CompanionConfig, type CompanionContent, type CompanionPosition, ConfirmCloseModal, ContentHeader, type ContentHeaderLevel, type ContentHeaderProps, type ContentStack, ContrastScope, Copy, CountBadge, type CountBadgeProps, Css, CssReset, type CssSetVarKeys, type CssSetVarScalar, type CssSetVarValue, DESC, DateField, type DateFieldFormat, type DateFieldMode, type DateFieldProps, type DateFilterValue, type DateMatcher, type DateRange, DateRangeField, type DateRangeFieldProps, type DateRangeFilterValue, type DefinedFilterValue, type Direction, type DiscriminateUnion, type DividerMenuItemType, DnDGrid, DnDGridItemHandle, type DnDGridItemHandleProps, type DnDGridItemProps, type DnDGridProps, DocumentScrollOverlayRightPaneLayout, type DocumentScrollOverlayRightPaneLayoutProps, type DocumentTitleConfig, DocumentTitleProvider, type DragData, EXPANDABLE_HEADER, EditColumnsButton, EnvironmentBanner, EnvironmentBannerLayout, type EnvironmentBannerLayoutProps, type EnvironmentBannerProps, type EnvironmentFaviconUrls, ErrorMessage, FieldGroup, type Filter, type FilterDefs, type FilterImpls, FilterModal, _Filters as Filters, type FixedSort, FocusedFormLayout, type FocusedFormLayoutProps, type Font, FormDivider, FormHeading, type FormHeadingProps, FormLines, type FormLinesProps, FormPageLayout, FormRow, FormSection, type FormSectionAction, type FormSectionConfig, FormSectionLayout, type FormSectionLayoutProps, type FormSectionLayoutSection, type FormSectionProps, type FormWidth, FullBleed, type GridCellAlignment, type GridCellContent, type GridColumn, type GridColumnBorder, type GridColumnWithId, type GridDataRow, type GridRowCompanion, type GridRowKind, type GridRowLookup, type GridSortConfig, type GridStyle, GridTable, type GridTableApi, type GridTableCollapseToggleProps, type GridTableDefaults, GridTableEmptyState, type GridTableEmptyStateProps, GridTableLayout, type GridTableLayoutProps, type GridTableProps, type GridTablePropsWithRows, type GridTableScrollOptions, type GridTableXss, type GroupByHook, HB_QUIPS_FLAVOR, HB_QUIPS_MISSION, HEADER, type HasIdAndName, HbLoadingSpinner, HbSpinnerProvider, type HeaderAction, HelperText, HomeboundLogo, Icon, IconButton, type IconButtonProps, type IconButtonVariant, type IconKey, type IconMenuItemType, type IconProps, Icons, type IfAny, type ImageFitType, type ImageMenuItemType, type ImpersonatedUser, type InfiniteScroll, InlineFeedbackBanner, type InlineFeedbackBannerAction, type InlineFeedbackBannerProps, type InlineFeedbackBannerType, type InlineStyle, type InputStylePalette, JumpLink, type JumpLinkProps, KEPT_GROUP, Keyframes, type Kinded, LinkCard, type LinkCardProps, Loader, LoadingSkeleton, type LoadingSkeletonProps, type LogoSizeProps, type Margin, type Marker, MaxLines, type MaxLinesProps, type MaybeFn, type MenuItem, type MenuSection, ModalBanner, ModalBody, ModalFilterItem, ModalFooter, ModalHeader, type ModalProps, type ModalSize, MultiLineSelectField, type MultiLineSelectFieldProps, MultiSelectCardGroup, type MultiSelectCardGroupProps, MultiSelectField, type MultiSelectFieldProps, NavLink, type NavLinkProps, type NavLinkVariant, Navbar, NavbarLayout, type NavbarLayoutProps, type NavbarProps, type NavbarUser, type NestedOption, type NestedOptionsOrLoad, NumberField, type NumberFieldProps, type NumberFieldType, type OffsetAndLimit, type OnRowDragEvent, type OnRowSelect, type Only, type OpenDetailOpts, type OpenInDrawerOpts, OpenModal, type OpenRightPaneOpts, type Optional, type Padding, PageHeaderLayout, type PageHeaderLayoutProps, type PageNumberAndSize, type PageSettings, Pagination, Palette, PinToggle, type Placement, type PlainDate, type PlainFormSectionChild, type PresentationFieldProps, PresentationProvider, PreventBrowserScroll, type Properties, ProposedValue$1 as ProposedValue, type ProposedValueProps, RIGHT_SIDEBAR_MIN_WIDTH, type RadioFieldOption, RadioGroupField, type RadioGroupFieldProps, type RenderAs, type RenderCellFn, type ReorderableFormSectionChild, type ResolvedWithRightPane, ResponsiveGrid, type ResponsiveGridConfig, ResponsiveGridContext, ResponsiveGridItem, type ResponsiveGridItemProps, type ResponsiveGridProps, RichTextField, RichTextFieldImpl, type RichTextFieldProps, RightPaneLayout, type RightPaneOpenActions, type RightPaneOpenState, RightPanePanel, type RightPanePanelProps, RightSidebar, type RightSidebarProps, type RouteTab, type RouteTabWithContent, Row, type RowStyle, type RowStyles, RuntimeCss, type RuntimeStyles, SIDE_NAV_LAYOUT_STATE_STORAGE_KEY, ScrollShadows, ScrollableContent, ScrollableFooter, ScrollableParent, type SelectCardGridGroupItemOption, SelectCardGroup, type SelectCardGroupItemOption, type SelectCardGroupProps, type SelectCardLayout, type SelectCardListGroupItemOption, type SelectCardView, SelectField, type SelectFieldProps, SelectToggle, type SelectedFilterLabelValue, SelectedOptionPill, SelectedOptionPillList, type SelectedOptionPillListProps, type SelectedOptionPillProps, type SelectedState, SideNav, SideNavLayout, type SideNavLayoutContextProps, type SideNavLayoutProps, SideNavLayoutProvider, type SideNavLayoutState, type SideNavProps, type SidePanelProps, type SidebarContentProps, type SimpleHeaderAndData, SortHeader, type SortOn, type SortState, StackBarGraph, type StackBarGraphProps, type StackBarGraphSegment, StaticField, type Step, Stepper, StepperLayout, type StepperLayoutProps, type StepperLayoutStep, type StepperProps, StepperTab, type StepperTabProps, StepperTabs, type StepperTabsProps, type StepperTabsStep, type StyleKind, SubmitButton, type SubmitButtonProps, SuperDrawerContent, SuperDrawerHeader, SuperDrawerWidth, type SupportedDateFormat, Switch, type SwitchProps, TOTALS, type Tab, TabContent, type TabWithContent, TableReviewLayout, type TableReviewLayoutProps, TableState, TableStateContext, TableSummary, type TableSummaryAction, type TableSummaryMetric, type TableSummaryProps, type TableView, Tabs, TabsWithContent, Tag, TagGroup, type TagGroupItem, type TagGroupProps, type TagProps, type TagType, type TagVariant, type TagXss, type TestIds, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldApi, type TextFieldInternalProps, type TextFieldProps, type TextFieldXss, Toast, ToggleButton, type ToggleButtonProps, ToggleChip, ToggleChipGroup, type ToggleChipGroupProps, type ToggleChipProps, ToggleChips, type ToggleChipsProps, Tokens, Tooltip, TreeSelectField, type TreeSelectFieldProps, type TriggerNoticeProps, type Typography, type UseModalHook, type UsePersistedFilterProps$1 as UsePersistedFilterProps, type UseQueryState, type UseRightPaneActionsHook, type UseRightPaneHook, type UseSnackbarHook, type UseSuperDrawerHook, type UseToastProps, type Value, ViewToggleButton, type WithRightPane, type Xss, type ZIndex, actionColumn, applyRowFn, assignDefaultColumnIds, bannerAndNavbarChromeTop, beamEnvironmentBannerLayoutHeightVar, beamFloatingRightOffsetVar, beamLayoutContentPaddingXVar, beamLayoutViewportHeightVar, beamLayoutViewportWidthVar, beamNavbarLayoutHeightVar, beamPageHeaderLayoutHeightVar, beamRightPaneContentMinVar, beamRightPaneWidthVar, beamSideNavLayoutWidthVar, beamTableActionsHeightVar, beamWorkflowLayoutFooterHeightVar, booleanFilter, boundCheckboxField, boundCheckboxGroupField, boundDateField, boundDateRangeField, boundMultiSelectCardGroupField, boundMultiSelectField, boundMultilineSelectField, boundNumberField, boundRadioGroupField, boundRichTextField, boundSelectCardGroupField, boundSelectField, boundSwitchField, boundTextAreaField, boundTextField, boundToggleChipGroupField, boundTreeSelectField, calcColumnLayout, calcColumnSizes, cardBadgeSlot, cardCarouselSlot, cardDataBlockSlot, cardEyebrowSlot, cardInteractiveFooterSlot, cardLeftEyebrowSlot, cardProgressSlot, cardRightEyebrowSlot, cardStatusSlot, cardStyle, cardTitleSlot, centeredShellMaxPx, checkboxFilter, chipBaseStyles, chipDisabledStyles, chipHoverOnlyStyles, chipHoverStyles, collapseColumn, column, condensedStyle, contrastDataTheme, createRowLookup, dateColumn, dateFilter, dateFormats, dateRangeFilter, defaultDocumentScrollRightPaneWidth, defaultPage, defaultRenderFn, defaultStyle, defaultTestId, documentScrollBodyMinHeight, documentScrollChromeLeft, documentScrollChromeWidth, documentScrollContentLeft, documentScrollContentWidth, documentScrollRightPaneContentMinCss, documentScrollRightPaneHeight, documentScrollRightPaneWidthCss, dragHandleColumn, emptyCell, ensureClientSideSortValueIsSortable, environmentBannerSizePx, filterTestIdPrefix, formatDate, formatDateRange, formatPlainDate, formatValue, generateColumnId, getActiveFilterCount, getAlignment, getColumnBorderCss, getDateFormat, getFirstOrLastCellCss, getFloatingBottomOffset, getFloatingRightOffset, getJustification, getNavLinkStyles, getTableRefWidthStyles, getTableStyles, headerContentPaddingX, headerRenderFn, hoverStyles, increment, insertAtIndex, isContentColumn, isCursorBelowMidpoint, isGridCellContent, isGridTableProps, isJSX, isListBoxSection, isPersistentItem, isPersistentKey, isValidDate, joinDocumentTitleSegments, layoutGutterLeftColumnId, layoutGutterRightColumnId, listFieldPrefix, loadArrayOrUndefined, marker, matchesFilter, maybeCssVar, maybeInc, maybeTooltip, minDocumentScrollContentWidthPx, multiFilter, navLink, newMethodMissingProxy, nonKindGridColumnKeys, numberRangeFilter, numericColumn, pageContentGutterPx, pageContentPaddingX, parseDate, parseDateRange, parseWidthToPx, persistentItemPrefix, pinColumn, pressedOverlayCss, px, recursivelyGetContainingRow, reservedRowKinds, resetRightPaneStore, resolveGridTableLayoutStyle, resolveTableContentWidth, resolveTooltip, resolveWithRightPaneOptions, rightPaneContentStore, rightPaneOpenActions, rightPaneOpenStore, rowClickRenderFn, rowLinkRenderFn, selectColumn, setDefaultStyle, setEnvironmentFavicon, setGridTableDefaults, setRunningInJest, shouldShowEnvironmentBanner, shouldSkipScrollTo, simpleDataRows, simpleHeader, singleFilter, sortFn, sortRows, stickyNavAndHeaderOffset, stickyNavAndHeaderOffsetPx, stickyTableHeaderOffset, sumColumnSizesPx, switchFocusStyles, switchHoverStyles, switchSelectedHoverStyles, toContent, toLimitAndOffset, toPageNumberSize, toggleFilter, toggleFocusStyles, toggleHoverStyles, togglePressStyles, treeFilter, updateFilter, useAutoSaveStatus, useBodyBackgroundColor, useBreakpoint, useComputed, useContentOverflow, useContrastScope, useDnDGridItem, type useDnDGridItemProps, useDocumentTitle, useFilter, useGridTableApi, useGridTableLayoutState, useGroupBy, useHasSideNavLayoutProvider, useHover, useModal, usePersistedFilter, useQueryState, useResponsiveGrid, useResponsiveGridItem, type useResponsiveGridProps, useRightPane, useRightPaneActions, useRightPaneContent, useRightPaneOpenActions, useRightPaneOpenState, useRuntimeStyle, useScrollableParent, useSessionStorage, useSetupColumnSizes, useSideNavLayoutContext, useSnackbar, useSuperDrawer, useTestIds, useToast, useTreeSelectFieldProvider, useVirtualizedScrollParent, visit, withColumnGutters, zIndices };
11070
+ export { ASC, Accordion, AccordionList, type AccordionProps, type AccordionSize, type ActionButtonProps, AiBanner, type AiBannerProps, AiCard, type AiCardProps, type AiCardSize, AiLinkCardGroup, type AiLinkCardGroupProps, AiLoader, type AiLoaderProps, AiLoadingPanel, type AiLoadingPanelProps, AiPanel, type AiPanelPadding, type AiPanelProps, AiSlimBanner, type AiSlimBannerProps, type AllowNavigationArgs, type AppEnvironment, type AppNavGroup, type AppNavItem, type AppNavLink, type AppNavSection, type AppNavSectionItem, AutoSaveIndicator, AutoSaveStatus, AutoSaveStatusContext, AutoSaveStatusProvider, Autocomplete, type AutocompleteProps, Avatar, AvatarButton, type AvatarButtonProps, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Banner, type BannerProps, type BannerTypes, BaseCard, type BaseCardProps, BaseFilter, type BaseQueryTableProps, type BaseTableProps, type BeamButtonProps, type BeamColor, type BeamFocusableProps, BeamLogo, BeamProvider, type BeamTextFieldProps, BlueprintAiLogo, BoundCheckboxField, type BoundCheckboxFieldProps, BoundCheckboxGroupField, type BoundCheckboxGroupFieldProps, BoundChipSelectField, BoundDateField, type BoundDateFieldProps, BoundDateRangeField, type BoundDateRangeFieldProps, BoundForm, type BoundFormInputConfig, type BoundFormProps, type BoundFormRowInputs, BoundMultiLineSelectField, type BoundMultiLineSelectFieldProps, BoundMultiSelectCardGroupField, type BoundMultiSelectCardGroupFieldProps, BoundMultiSelectField, type BoundMultiSelectFieldProps, BoundNumberField, type BoundNumberFieldProps, BoundRadioGroupField, type BoundRadioGroupFieldProps, BoundRichTextField, type BoundRichTextFieldProps, BoundSelectAndTextField, BoundSelectCardGroupField, type BoundSelectCardGroupFieldProps, BoundSelectField, type BoundSelectFieldProps, BoundSwitchField, type BoundSwitchFieldProps, BoundTextAreaField, type BoundTextAreaFieldProps, BoundTextField, type BoundTextFieldProps, BoundToggleChipGroupField, type BoundToggleChipGroupFieldProps, BoundTreeSelectField, type BoundTreeSelectFieldProps, type Breadcrumb, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, Breakpoints, type BuildtimeStyles, Button, type ButtonColorScheme, ButtonDatePicker, ButtonGroup, type ButtonGroupButton, type ButtonGroupProps, ButtonMenu, type ButtonMenuProps, ButtonModal, type ButtonModalProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBadgeSlot, type CardBadgeTag, CardBody, type CardBodyProps, type CardCarouselFooter, type CardCarouselThumbnail, type CardData, type CardDataBlockSlot, type CardEyebrowSlot, type CardInteractiveFooter, type CardInteractiveFooterSlot, type CardLeftEyebrowSlot, type CardProgressSlot, type CardProps, type CardRightEyebrowSlot, type CardSlot, type CardStatusSlot, type CardTag, type CardTitleSlot, type CardType, Carousel, type CarouselProps, CenteredLayout, type CenteredLayoutProps, type CenteredLayoutSize, type CheckFn, Checkbox, CheckboxGroup, type CheckboxGroupItemOption, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, ChipSelectField, type ChipSelectFieldProps, type ChipType, ChipTypes, type ChipValue, Chips, type ChipsProps, CollapseToggle, CollapsedContext, type ColumnLayoutResult, type CompanionConfig, type CompanionContent, type CompanionPosition, ConfirmCloseModal, ContentHeader, type ContentHeaderLevel, type ContentHeaderProps, type ContentStack, ContrastScope, Copy, CountBadge, type CountBadgeProps, Css, CssReset, type CssSetVarKeys, type CssSetVarScalar, type CssSetVarValue, DESC, DateField, type DateFieldFormat, type DateFieldMode, type DateFieldProps, type DateFilterValue, type DateMatcher, type DateRange, DateRangeField, type DateRangeFieldProps, type DateRangeFilterValue, type DefinedFilterValue, type Direction, type DiscriminateUnion, type DividerMenuItemType, DnDGrid, DnDGridItemHandle, type DnDGridItemHandleProps, type DnDGridItemProps, type DnDGridProps, DocumentScrollOverlayRightPaneLayout, type DocumentScrollOverlayRightPaneLayoutProps, type DocumentTitleConfig, DocumentTitleProvider, type DragData, EXPANDABLE_HEADER, EditColumnsButton, EnvironmentBanner, EnvironmentBannerLayout, type EnvironmentBannerLayoutProps, type EnvironmentBannerProps, type EnvironmentFaviconUrls, ErrorMessage, FieldGroup, type Filter, type FilterDefs, type FilterImpls, FilterModal, _Filters as Filters, type FixedSort, FocusedFormLayout, type FocusedFormLayoutProps, type Font, FormDivider, FormHeading, type FormHeadingProps, FormLines, type FormLinesProps, FormPageLayout, FormRow, FormSection, type FormSectionAction, type FormSectionConfig, FormSectionLayout, type FormSectionLayoutProps, type FormSectionLayoutSection, type FormSectionProps, type FormWidth, FullBleed, type GridCellAlignment, type GridCellContent, type GridColumn, type GridColumnBorder, type GridColumnWithId, type GridDataRow, type GridRowCompanion, type GridRowKind, type GridRowLookup, type GridSortConfig, type GridStyle, GridTable, type GridTableApi, type GridTableCollapseToggleProps, type GridTableDefaults, GridTableEmptyState, type GridTableEmptyStateProps, GridTableLayout, type GridTableLayoutProps, type GridTableProps, type GridTablePropsWithRows, type GridTableScrollOptions, type GridTableXss, type GroupByHook, HB_QUIPS_FLAVOR, HB_QUIPS_MISSION, HEADER, type HasIdAndName, HbLoadingSpinner, HbSpinnerProvider, type HeaderAction, HelperText, HomeboundLogo, Icon, IconButton, type IconButtonProps, type IconButtonVariant, type IconKey, type IconMenuItemType, type IconProps, Icons, type IfAny, type ImageFitType, type ImageMenuItemType, type ImpersonatedUser, type InfiniteScroll, InlineFeedbackBanner, type InlineFeedbackBannerAction, type InlineFeedbackBannerProps, type InlineFeedbackBannerType, type InlineStyle, type InputStylePalette, JumpLink, type JumpLinkProps, KEPT_GROUP, Keyframes, type Kinded, LinkCard, type LinkCardProps, Loader, LoadingSkeleton, type LoadingSkeletonProps, type LogoSizeProps, type Margin, type Marker, MaxLines, type MaxLinesProps, type MaybeFn, type MenuItem, type MenuSection, ModalBanner, ModalBody, ModalFilterItem, ModalFooter, ModalHeader, type ModalProps, type ModalSize, MultiLineSelectField, type MultiLineSelectFieldProps, MultiSelectCardGroup, type MultiSelectCardGroupProps, MultiSelectField, type MultiSelectFieldProps, NavLink, type NavLinkProps, type NavLinkVariant, Navbar, NavbarLayout, type NavbarLayoutProps, type NavbarProps, type NavbarUser, type NestedOption, type NestedOptionsOrLoad, NumberField, type NumberFieldProps, type NumberFieldType, type OffsetAndLimit, type OnRowDragEvent, type OnRowSelect, type Only, type OpenDetailOpts, type OpenInDrawerOpts, OpenModal, type OpenRightPaneOpts, type Optional, type Padding, PageHeaderLayout, type PageHeaderLayoutProps, type PageNumberAndSize, type PageSettings, Pagination, Palette, PinToggle, type Placement, type PlainDate, type PlainFormSectionChild, type PresentationFieldProps, PresentationProvider, PreventBrowserScroll, type Properties, ProposedValue$1 as ProposedValue, type ProposedValueProps, RIGHT_SIDEBAR_MIN_WIDTH, type RadioFieldOption, RadioGroupField, type RadioGroupFieldProps, type RenderAs, type RenderCellFn, type ReorderableFormSectionChild, type ResolvedWithRightPane, ResponsiveGrid, type ResponsiveGridConfig, ResponsiveGridContext, ResponsiveGridItem, type ResponsiveGridItemProps, type ResponsiveGridProps, RichTextField, RichTextFieldImpl, type RichTextFieldProps, RightPaneLayout, type RightPaneOpenActions, type RightPaneOpenState, RightPanePanel, type RightPanePanelProps, RightSidebar, type RightSidebarProps, type RouteTab, type RouteTabWithContent, Row, type RowStyle, type RowStyles, RuntimeCss, type RuntimeStyles, SIDE_NAV_LAYOUT_STATE_STORAGE_KEY, ScrollShadows, ScrollableContent, ScrollableFooter, ScrollableParent, type SelectCardGridGroupItemOption, SelectCardGroup, type SelectCardGroupItemOption, type SelectCardGroupProps, type SelectCardLayout, type SelectCardListGroupItemOption, type SelectCardView, SelectField, type SelectFieldProps, SelectToggle, type SelectedFilterLabelValue, SelectedOptionPill, SelectedOptionPillList, type SelectedOptionPillListProps, type SelectedOptionPillProps, type SelectedState, SideNav, SideNavLayout, type SideNavLayoutContextProps, type SideNavLayoutProps, SideNavLayoutProvider, type SideNavLayoutState, type SideNavProps, type SidePanelProps, type SidebarContentProps, type SimpleHeaderAndData, SortHeader, type SortOn, type SortState, StackBarGraph, type StackBarGraphProps, type StackBarGraphSegment, StaticField, type Step, Stepper, StepperLayout, type StepperLayoutProps, type StepperLayoutStep, type StepperProps, StepperTab, type StepperTabProps, StepperTabs, type StepperTabsProps, type StepperTabsStep, type StyleKind, SubmitButton, type SubmitButtonProps, SuperDrawerContent, SuperDrawerHeader, SuperDrawerWidth, type SupportedDateFormat, Switch, type SwitchProps, TOTALS, type Tab, TabContent, type TabWithContent, TableReviewLayout, type TableReviewLayoutProps, TableState, TableStateContext, TableSummary, type TableSummaryAction, type TableSummaryMetric, type TableSummaryProps, type TableView, Tabs, TabsWithContent, Tag, TagGroup, type TagGroupItem, type TagGroupProps, type TagProps, type TagType, type TagVariant, type TagXss, type TestIds, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldApi, type TextFieldInternalProps, type TextFieldProps, type TextFieldXss, Toast, ToggleButton, type ToggleButtonProps, ToggleChip, ToggleChipGroup, type ToggleChipGroupProps, type ToggleChipProps, ToggleChips, type ToggleChipsProps, Tokens, Tooltip, TreeSelectField, type TreeSelectFieldProps, type TriggerNoticeProps, type Typography, type UseModalHook, type UsePersistedFilterProps$1 as UsePersistedFilterProps, type UseQueryState, type UseRightPaneActionsHook, type UseRightPaneHook, type UseSnackbarHook, type UseSuperDrawerHook, type UseToastProps, type Value, ViewToggleButton, type WithRightPane, type Xss, type ZIndex, actionColumn, applyRowFn, assignDefaultColumnIds, bannerAndNavbarChromeTop, beamEnvironmentBannerLayoutHeightVar, beamFloatingRightOffsetVar, beamLayoutContentPaddingXVar, beamLayoutViewportHeightVar, beamLayoutViewportWidthVar, beamNavbarLayoutHeightVar, beamPageHeaderLayoutHeightVar, beamRightPaneContentMinVar, beamRightPaneWidthVar, beamSideNavLayoutWidthVar, beamTableActionsHeightVar, beamWorkflowLayoutFooterHeightVar, booleanFilter, boundCheckboxField, boundCheckboxGroupField, boundDateField, boundDateRangeField, boundMultiSelectCardGroupField, boundMultiSelectField, boundMultilineSelectField, boundNumberField, boundRadioGroupField, boundRichTextField, boundSelectCardGroupField, boundSelectField, boundSwitchField, boundTextAreaField, boundTextField, boundToggleChipGroupField, boundTreeSelectField, calcColumnLayout, calcColumnSizes, cardBadgeSlot, cardCarouselSlot, cardDataBlockSlot, cardEyebrowSlot, cardInteractiveFooterSlot, cardLeftEyebrowSlot, cardProgressSlot, cardRightEyebrowSlot, cardStatusSlot, cardStyle, cardTitleSlot, centeredShellMaxPx, checkboxFilter, chipBaseStyles, chipDisabledStyles, chipHoverOnlyStyles, chipHoverStyles, collapseColumn, column, condensedStyle, contrastDataTheme, createRowLookup, dateColumn, dateFilter, dateFormats, dateRangeFilter, defaultDocumentScrollRightPaneWidth, defaultPage, defaultRenderFn, defaultStyle, defaultTestId, documentScrollBodyMinHeight, documentScrollChromeLeft, documentScrollChromeWidth, documentScrollContentLeft, documentScrollContentWidth, documentScrollRightPaneContentMinCss, documentScrollRightPaneHeight, documentScrollRightPaneWidthCss, dragHandleColumn, emptyCell, ensureClientSideSortValueIsSortable, environmentBannerSizePx, filterTestIdPrefix, formatDate, formatDateRange, formatPlainDate, formatValue, generateColumnId, getActiveFilterCount, getAlignment, getColumnBorderCss, getDateFormat, getFirstOrLastCellCss, getFloatingBottomOffset, getFloatingRightOffset, getJustification, getNavLinkStyles, getTableRefWidthStyles, getTableStyles, headerContentPaddingX, headerRenderFn, hoverStyles, increment, insertAtIndex, isContentColumn, isCursorBelowMidpoint, isGridCellContent, isGridTableProps, isJSX, isListBoxSection, isPersistentItem, isPersistentKey, isValidDate, joinDocumentTitleSegments, layoutGutterLeftColumnId, layoutGutterRightColumnId, listFieldPrefix, loadArrayOrUndefined, marker, matchesFilter, maybeCssVar, maybeInc, maybeTooltip, minDocumentScrollContentWidthPx, multiFilter, navLink, newMethodMissingProxy, nonKindGridColumnKeys, numberRangeFilter, numericColumn, pageContentGutterPx, pageContentPaddingX, parseDate, parseDateRange, parseWidthToPx, persistentItemPrefix, pinColumn, pressedOverlayCss, px, recursivelyGetContainingRow, reservedRowKinds, resetRightPaneStore, resolveGridTableLayoutStyle, resolveTableContentWidth, resolveTooltip, resolveWithRightPaneOptions, rightPaneContentStore, rightPaneOpenActions, rightPaneOpenStore, rowClickRenderFn, rowLinkRenderFn, selectColumn, setDefaultStyle, setEnvironmentFavicon, setGridTableDefaults, setRunningInJest, shouldShowEnvironmentBanner, shouldSkipScrollTo, simpleDataRows, simpleHeader, singleFilter, sortFn, sortRows, stickyNavAndHeaderOffset, stickyNavAndHeaderOffsetPx, stickyTableHeaderOffset, sumColumnSizesPx, switchFocusStyles, switchHoverStyles, switchSelectedHoverStyles, toContent, toLimitAndOffset, toPageNumberSize, toggleFilter, toggleFocusStyles, toggleHoverStyles, togglePressStyles, treeFilter, updateFilter, useAutoSaveStatus, useBodyBackgroundColor, useBreakpoint, useComputed, useContentOverflow, useContrastScope, useDnDGridItem, type useDnDGridItemProps, useDocumentTitle, useFilter, useGridTableApi, useGridTableLayoutState, useGroupBy, useHasSideNavLayoutProvider, useHover, useModal, usePersistedFilter, useQueryState, useResponsiveGrid, useResponsiveGridItem, type useResponsiveGridProps, useRightPane, useRightPaneActions, useRightPaneContent, useRightPaneOpenActions, useRightPaneOpenState, useRuntimeStyle, useScrollableParent, useSessionStorage, useSetupColumnSizes, useSideNavLayoutContext, useSnackbar, useSuperDrawer, useTestIds, useToast, useTreeSelectFieldProvider, useVirtualizedScrollParent, visit, withColumnGutters, zIndices };
package/dist/index.js CHANGED
@@ -6479,7 +6479,6 @@ import { makeAutoObservable as makeAutoObservable3, observableRef as observableR
6479
6479
  // src/components/Table/components/CompanionRow.tsx
6480
6480
  import { observer } from "mobx-react";
6481
6481
  import { isValidElement } from "react";
6482
- import { trussProps as trussProps12, maybeCssVar as maybeCssVar12 } from "@homebound/truss/runtime";
6483
6482
 
6484
6483
  // src/layouts/DocumentScrollLayoutContext.tsx
6485
6484
  import { useResizeObserver } from "@react-aria/utils";
@@ -6665,6 +6664,7 @@ function headerContentPaddingX(compact = false) {
6665
6664
  }
6666
6665
 
6667
6666
  // src/components/Table/components/CompanionRow.tsx
6667
+ import { trussProps as trussProps12, maybeCssVar as maybeCssVar12 } from "@homebound/truss/runtime";
6668
6668
  import { jsx as jsx17 } from "react/jsx-runtime";
6669
6669
  var __maybeInc7 = (inc) => {
6670
6670
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -6680,7 +6680,9 @@ function CompanionRowImpl(props) {
6680
6680
  isLastBodyRow,
6681
6681
  companion,
6682
6682
  position = "trailing",
6683
- levelIndent
6683
+ levelIndent,
6684
+ rowCss,
6685
+ cellCss
6684
6686
  } = props;
6685
6687
  const RowTag = as === "table" ? "tr" : "div";
6686
6688
  const CellTag = as === "table" ? "td" : "div";
@@ -6711,7 +6713,8 @@ function CompanionRowImpl(props) {
6711
6713
  "--marginLeft": `${levelIndent}px`
6712
6714
  }]
6713
6715
  },
6714
- ...isLastBodyRow && style.lastRowCss
6716
+ ...isLastBodyRow && style.lastRowCss,
6717
+ ...rowCss
6715
6718
  }), "data-gridrow": true, ...tid[rowId], children: /* @__PURE__ */ jsx17(CellTag, { ...trussProps12({
6716
6719
  ...style.cellCss,
6717
6720
  ...style.betweenRowsCss,
@@ -6722,6 +6725,7 @@ function CompanionRowImpl(props) {
6722
6725
  ...isLastBodyRow && style.lastRowCellCss,
6723
6726
  ...isLastBodyRow && style.lastRowFirstCellCss,
6724
6727
  ...isLastBodyRow && style.lastRowLastCellCss,
6728
+ ...cellCss,
6725
6729
  // Companion content is arbitrary — allow wrapping and grow with content.
6726
6730
  ...{
6727
6731
  height: "h_auto",
@@ -9256,6 +9260,11 @@ function resolveStyles(style) {
9256
9260
  return style;
9257
9261
  }
9258
9262
 
9263
+ // src/components/Table/utils/maybeApplyFunction.ts
9264
+ function maybeApplyFunction(row, maybeFn) {
9265
+ return typeof maybeFn === "function" ? maybeFn(row) : maybeFn;
9266
+ }
9267
+
9259
9268
  // src/hooks/useRenderCount.ts
9260
9269
  import { useCallback as useCallback7, useRef as useRef10 } from "react";
9261
9270
  function useRenderCount() {
@@ -9642,7 +9651,7 @@ var __typography2 = {
9642
9651
  lineHeight: "lh_32px"
9643
9652
  }
9644
9653
  };
9645
- function maybeApplyFunction(row, maybeFn) {
9654
+ function maybeApplyFunction2(row, maybeFn) {
9646
9655
  return typeof maybeFn === "function" ? maybeFn(row) : maybeFn;
9647
9656
  }
9648
9657
  function RowImpl(props) {
@@ -9698,7 +9707,7 @@ function RowImpl(props) {
9698
9707
  const RowTag = as === "table" ? "tr" : "div";
9699
9708
  const sortOn = tableState.sortConfig?.on;
9700
9709
  const showRowHoverColor = !reservedRowKinds.includes(row.kind) && !omitRowHover && style.rowHoverColor !== "none";
9701
- const rowStyleCellCss = maybeApplyFunction(row, rowStyle?.cellCss);
9710
+ const rowStyleCellCss = maybeApplyFunction2(row, rowStyle?.cellCss);
9702
9711
  const levelStyle = style.levels && (typeof style.levels === "function" ? style.levels(level) : style.levels[level]);
9703
9712
  const levelIndent = levelStyle?.rowIndent;
9704
9713
  const containerCss = {
@@ -9735,7 +9744,7 @@ function RowImpl(props) {
9735
9744
  ...(rowStyle?.rowLink || rowStyle?.onClick) && {
9736
9745
  cursor: "h_cursorPointer"
9737
9746
  },
9738
- ...maybeApplyFunction(row, rowStyle?.rowCss),
9747
+ ...maybeApplyFunction2(row, rowStyle?.rowCss),
9739
9748
  // Row hover paints cells via Row.css.ts (`.beam-row-hover:hover > *`); set the var via Css.style
9740
9749
  // (React CSSProperties rejects custom props without a cast).
9741
9750
  ...showRowHoverColor && {
@@ -13295,7 +13304,8 @@ function GridTable(props) {
13295
13304
  } }, rs.key);
13296
13305
  const makeCompanionRow = (rs, resolved, isFirstBodyRow, isLastBodyRow) => {
13297
13306
  const levelStyle = style.levels && (typeof style.levels === "function" ? style.levels(rs.level) : style.levels[rs.level]);
13298
- return /* @__PURE__ */ jsx51(CompanionRow, { as, style, columnSizes, rowId: rs.row.id, colSpan: columns.length, isFirstBodyRow, isLastBodyRow, position: resolved.position, companion: resolved.content, levelIndent: levelStyle?.rowIndent }, `${rs.key}-companion`);
13307
+ const rowStyle = rowStyles?.[rs.row.kind];
13308
+ return /* @__PURE__ */ jsx51(CompanionRow, { as, style, columnSizes, rowId: rs.row.id, colSpan: columns.length, isFirstBodyRow, isLastBodyRow, position: resolved.position, companion: resolved.content, levelIndent: levelStyle?.rowIndent, rowCss: maybeApplyFunction(rs.row, rowStyle?.rowCss), cellCss: maybeApplyFunction(rs.row, rowStyle?.cellCss) }, `${rs.key}-companion`);
13299
13309
  };
13300
13310
  const makeRowGroup = (rs, isFirstBodyRow, isLastBodyRow, inHead) => {
13301
13311
  const resolved = rs.companion;
@@ -28930,10 +28940,12 @@ import { useEffect as useEffect40, useRef as useRef74 } from "react";
28930
28940
  import { useBlocker } from "react-router-dom";
28931
28941
  import { jsx as jsx237 } from "react/jsx-runtime";
28932
28942
  function useUnsavedChangesGuard(options) {
28933
- const { isDirty, onCancel } = options;
28943
+ const { isDirty, allowNavigation, onCancel } = options;
28934
28944
  const { openModal } = useModal();
28935
28945
  const isDirtyRef = useRef74(isDirty);
28936
28946
  isDirtyRef.current = isDirty;
28947
+ const allowNavigationRef = useRef74(allowNavigation);
28948
+ allowNavigationRef.current = allowNavigation;
28937
28949
  useEffect40(() => {
28938
28950
  const onBeforeUnload = (e) => {
28939
28951
  if (isDirtyRef.current?.()) {
@@ -28943,7 +28955,9 @@ function useUnsavedChangesGuard(options) {
28943
28955
  window.addEventListener("beforeunload", onBeforeUnload);
28944
28956
  return () => window.removeEventListener("beforeunload", onBeforeUnload);
28945
28957
  }, []);
28946
- const blocker = useBlocker(() => !!isDirtyRef.current?.());
28958
+ const blocker = useBlocker((args) => {
28959
+ return !!isDirtyRef.current?.() && !allowNavigationRef.current?.(args);
28960
+ });
28947
28961
  const onCancelClick = (e) => {
28948
28962
  if (!isDirty?.()) {
28949
28963
  onCancel(e);
@@ -29013,6 +29027,7 @@ function WorkflowPageLayout(props) {
29013
29027
  stepperTabs,
29014
29028
  aiMode,
29015
29029
  isDirty,
29030
+ allowNavigation,
29016
29031
  children,
29017
29032
  title,
29018
29033
  documentTitleSuffix,
@@ -29029,6 +29044,7 @@ function WorkflowPageLayout(props) {
29029
29044
  navigationBlocker
29030
29045
  } = useUnsavedChangesGuard({
29031
29046
  isDirty,
29047
+ allowNavigation,
29032
29048
  onCancel
29033
29049
  });
29034
29050
  const actions = /* @__PURE__ */ jsx239(WorkflowActions, { ...actionProps, aiMode, onCancel: onCancelClick });
@@ -29142,6 +29158,7 @@ function FocusedFormLayout(props) {
29142
29158
  onSaveAndExit,
29143
29159
  primaryDisabled,
29144
29160
  isDirty,
29161
+ allowNavigation,
29145
29162
  aiMode,
29146
29163
  children,
29147
29164
  ...headerProps
@@ -29154,6 +29171,7 @@ function FocusedFormLayout(props) {
29154
29171
  ...headerProps,
29155
29172
  aiMode,
29156
29173
  isDirty,
29174
+ allowNavigation,
29157
29175
  onCancel,
29158
29176
  onSaveAndExit,
29159
29177
  completeLabel,
@@ -29168,7 +29186,18 @@ function FocusedFormLayout(props) {
29168
29186
  import { useState as useState64 } from "react";
29169
29187
  import { jsx as jsx241 } from "react/jsx-runtime";
29170
29188
  function StepperLayout(props) {
29171
- const { steps, defaultStep, onCancel, completeLabel, onComplete, onSaveAndExit, isDirty, aiMode, ...headerProps } = props;
29189
+ const {
29190
+ steps,
29191
+ defaultStep,
29192
+ onCancel,
29193
+ completeLabel,
29194
+ onComplete,
29195
+ onSaveAndExit,
29196
+ isDirty,
29197
+ allowNavigation,
29198
+ aiMode,
29199
+ ...headerProps
29200
+ } = props;
29172
29201
  const stepTabs = steps.map((step) => ({ ...step, value: defaultTestId(step.label) }));
29173
29202
  const [currentStep, setCurrentStep] = useState64(() => getInitialStep(stepTabs, defaultStep));
29174
29203
  const tid = useTestIds(props, "stepperLayout");
@@ -29184,6 +29213,7 @@ function StepperLayout(props) {
29184
29213
  aiMode,
29185
29214
  stepperTabs: { steps: stepTabs, currentStep, onChange: setCurrentStep },
29186
29215
  isDirty,
29216
+ allowNavigation,
29187
29217
  isFirstStep,
29188
29218
  isLastStep,
29189
29219
  onBack: () => {