@helpwave/hightide 0.12.2 → 0.12.3

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.mts CHANGED
@@ -911,14 +911,14 @@ interface AppPageNavigationItem {
911
911
  items?: AppPageNavigationItem[];
912
912
  }
913
913
  interface AppPageSidebarProps {
914
- header?: ReactNode;
915
- items?: AppPageNavigationItem[];
916
- contentOverwrite?: ReactNode;
917
- footer?: ReactNode;
914
+ header: ReactNode;
915
+ items: AppPageNavigationItem[];
916
+ content: ReactNode;
917
+ footer: ReactNode;
918
918
  }
919
919
  interface AppPageProps extends HTMLAttributes<HTMLDivElement> {
920
920
  headerActions?: ReactNode[];
921
- sidebarProps: AppPageSidebarProps;
921
+ sidebarProps: AppPageSidebarWithNavigationProps;
922
922
  }
923
923
  declare const AppPage: ({ children, headerActions, sidebarProps, ...props }: AppPageProps) => react_jsx_runtime.JSX.Element;
924
924
 
@@ -3449,6 +3449,28 @@ interface UseStorageResult<T> {
3449
3449
  }
3450
3450
  declare const useStorage: <T>({ key, defaultValue, storageType, serialize, deserialize, listen }: UseStorageProps<T>) => UseStorageResult<T>;
3451
3451
 
3452
+ type SwipeInputMode = 'touch' | 'mouse' | 'both';
3453
+ type SwipeDirection = 'leftToRight' | 'rightToLeft' | 'topToBottom' | 'bottomToTop';
3454
+ interface SwipeEventData {
3455
+ direction: SwipeDirection;
3456
+ }
3457
+ interface SwipeStartRegion {
3458
+ minX?: number;
3459
+ maxX?: number;
3460
+ minY?: number;
3461
+ maxY?: number;
3462
+ }
3463
+ interface UseSwipeGestureOptions {
3464
+ elementRef?: RefObject<HTMLElement | null>;
3465
+ inputMode?: SwipeInputMode;
3466
+ onSwipe?: (data: SwipeEventData) => void;
3467
+ startRegion?: SwipeStartRegion;
3468
+ threshold?: number;
3469
+ crossAxisThreshold?: number;
3470
+ maxSwipeTime?: number;
3471
+ }
3472
+ declare const useSwipeGesture: ({ elementRef, inputMode, onSwipe, startRegion, threshold, crossAxisThreshold, maxSwipeTime, }: UseSwipeGestureOptions) => RefObject<HTMLElement>;
3473
+
3452
3474
  type TransitionState = 'opened' | 'closed' | 'opening' | 'closing';
3453
3475
  type UseTransitionStateResult = {
3454
3476
  transitionState: TransitionState;
@@ -3745,4 +3767,4 @@ declare const SimpleSearch: (search: string, objects: string[]) => string[];
3745
3767
 
3746
3768
  declare const writeToClipboard: (text: string) => Promise<void>;
3747
3769
 
3748
- export { ASTNodeInterpreter, type ASTNodeInterpreterProps, ActionCard, type ActionCardProps, AnchoredFloatingContainer, type AnchoredFloatingContainerProps, AppPage, type AppPageNavigationItem, type AppPageProps, type AppPageSidebarProps, AppPageSidebarWithNavigation, type AppPageSidebarWithNavigationProps, AppSidebar, type AppSidebarProps, ArrayUtil, AutoColumnOrderFeature, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, AvatarWithStatus, type AvatarWithStatusProps, type BackgroundOverlayProps, type BagFunction, type BagFunctionOrNode, type BagFunctionOrValue, BagFunctionUtil, BooleanFilterPopUp, BreadCrumbGroup, BreadCrumbLink, type BreadCrumbLinkProps, type BreadCrumbProps, BreadCrumbs, Button, type ButtonColor, type ButtonProps, ButtonUtil, Card, type CardProps, type CardSize, Carousel, type CarouselProps, CarouselSlide, type CarouselSlideProps, Checkbox, CheckboxProperty, type CheckboxPropertyProps, type CheckboxProps, Chip, type ChipColor, ChipList, type ChipListProps, type ChipProps, ChipUtil, type ColumnSizeCalculatoProps, ColumnSizeUtil, ColumnSizingWithTargetFeature, Combobox, ComboboxContext, type ComboboxContextActions, type ComboboxContextComputedState, type ComboboxContextConfig, type ComboboxContextIds, type ComboboxContextInternalState, type ComboboxContextLayout, type ComboboxContextSearch, type ComboboxContextType, ComboboxInput, type ComboboxInputProps, ComboboxList, type ComboboxListProps, ComboboxOption, type ComboboxOptionProps, type ComboboxOptionType, type ComboboxProps, ComboboxRoot, type ComboboxRootProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogType, type ControlledStateProps, CopyToClipboardWrapper, type CopyToClipboardWrapperProps, type Crumb, DOMUtils, type DataType, type DataTypeFilterPopUpProps, DataTypeUtils, type DataValue, DateFilterPopUp, DatePicker, type DatePickerProps, DateProperty, type DatePropertyProps, DateTimeField, type DateTimeFieldProps, DateTimeFormat, DateTimeInput, type DateTimeInputProps, DateTimePicker, DateTimePickerDialog, type DateTimePickerDialogProps, type DateTimePickerProps, type DateTimePrecision, type DateTimeSegment, DateUtils, DatetimeFilterPopUp, DayPicker, type DayPickerProps, type DeepPartial, Dialog, DialogContext, type DialogContextType, type DialogOpenerPassingProps, DialogOpenerWrapper, type DialogOpenerWrapperBag, type DialogOpenerWrapperProps, type DialogPosition, type DialogProps, DialogRoot, type DialogRootProps, type Direction, DiscardChangesDialog, DividerInserter, type DividerInserterProps, Drawer, type DrawerAligment, DrawerCloseButton, type DrawerCloseButtonProps, DrawerContent, type DrawerContentProps, DrawerContext, type DrawerContextType, type DrawerProps, DrawerRoot, type DrawerRootProps, Duration, type DurationJSON, type EaseFunction, EaseFunctions, type EditCompleteOptions, type EditCompleteOptionsResolved, type EditableSegmentType, type ElementHandle, ErrorComponent, type ErrorComponentProps, type Exact, Expandable, ExpandableContent, type ExpandableContentProps, ExpandableHeader, type ExpandableHeaderProps, type ExpandableProps, ExpandableRoot, type ExpandableRootProps, ExpansionIcon, type ExpansionIconProps, type FAQItem, FAQSection, type FAQSectionProps, FillerCell, type FillerCellProps, FilterBasePopUp, FilterFunctions, FilterList, type FilterListItem, type FilterListPopUpBuilderProps, type FilterListProps, type FilterOperator, type FilterOperatorBoolean, type FilterOperatorDate, type FilterOperatorDatetime, FilterOperatorLabel, type FilterOperatorLabelProps, type FilterOperatorNumber, type FilterOperatorTags, type FilterOperatorTagsSingle, type FilterOperatorText, type FilterOperatorUnknownType, FilterOperatorUtils, type FilterParameter, FilterPopUp, type FilterPopUpBaseProps, type FilterPopUpProps, type FilterValue, type FilterValueTranslationOptions, FilterValueUtils, FlexibleDateTimeInput, type FlexibleDateTimeInputProps, type FloatingElementAlignment, FocusTrap, type FocusTrapProps, FocusTrapWrapper, type FocusTrapWrapperProps, FormContext, type FormContextType, type FormEvent, type FormEventListener, FormField, type FormFieldAriaAttributes, type FormFieldBag, type FormFieldDataHandling, type FormFieldFocusableElementProps, type FormFieldInteractionStates, FormFieldLayout, type FormFieldLayoutBag, type FormFieldLayoutIds, type FormFieldLayoutProps, type FormFieldProps, type FormFieldResult, FormObserver, FormObserverKey, type FormObserverKeyProps, type FormObserverKeyResult, type FormObserverProps, type FormObserverResult, FormProvider, type FormProviderProps, FormStore, type FormStoreProps, type FormValidationBehaviour, type FormValidator, type FormValue, GenericFilterPopUp, HelpwaveBadge, type HelpwaveBadgeProps, HelpwaveLogo, type HelpwaveProps, type HightideConfig, HightideConfigContext, HightideConfigProvider, type HightideConfigProviderProps, HightideProvider, type HightideTranslationEntries, type HightideTranslationLocales, IconButton, IconButtonBase, type IconButtonBaseProps, type IconButtonProps, type IdentifierFilterValue, InfiniteScroll, type InfiniteScrollProps, Input, InputDialog, type InputModalProps, type InputProps, InsideLabelInput, LanguageDialog, LanguageSelect, type ListNavigationOptions, type ListNavigationReturn, LoadingAndErrorComponent, type LoadingAndErrorComponentProps, LoadingAnimation, type LoadingAnimationProps, type LoadingComponentProps, LoadingContainer, LocaleContext, type LocaleContextValue, LocaleProvider, type LocaleProviderProps, type LocalizationConfig, LocalizationUtil, LoopingArrayCalculator, MarkdownInterpreter, type MarkdownInterpreterProps, MathUtil, Menu, type MenuBag, MenuItem, type MenuItemProps, type MenuProps, type Month, MultiSearchWithMapping, MultiSelect, MultiSelectButton, type MultiSelectButtonProps, MultiSelectChipDisplay, MultiSelectChipDisplayButton, type MultiSelectChipDisplayButtonProps, type MultiSelectChipDisplayProps, MultiSelectContent, type MultiSelectContentProps, MultiSelectContext, type MultiSelectContextActions, type MultiSelectContextComputedState, type MultiSelectContextConfig, type MultiSelectContextIds, type MultiSelectContextLayout, type MultiSelectContextSearch, type MultiSelectContextState, type MultiSelectContextType, type MultiSelectIconAppearance, type MultiSelectIds, MultiSelectOption, MultiSelectOptionDisplayContext, type MultiSelectOptionDisplayLocation, type MultiSelectOptionProps, type MultiSelectOptionType, MultiSelectProperty, type MultiSelectPropertyProps, type MultiSelectProps, MultiSelectRoot, type MultiSelectRootProps, MultiSubjectSearchWithMapping, Navigation, NavigationCard, type NavigationCardProps, type NavigationContextActions, type NavigationContextType, type NavigationItemData, NavigationItemList, type NavigationItemListProps, type NavigationItemState, type NavigationItemType, type NavigationProps, NavigationProvider, type NavigationProviderProps, NumberFilterPopUp, NumberProperty, type NumberPropertyProps, type OverlayItem, OverlayRegistry, Pagination, type PaginationProps, PolymorphicSlot, type PolymorphicSlotProps, PopUp, PopUpContext, type PopUpContextType, PopUpOpener, type PopUpOpenerBag, type PopUpOpenerProps, type PopUpProps, PopUpRoot, type PopUpRootProps, Portal, type PortalProps, type ProcessModelActivityIconKind, ProcessModelActivityNode, type ProcessModelActivityNodeKind, type ProcessModelActivityNodeProps, ProcessModelCanvas, type ProcessModelCanvasProps, type ProcessModelEdge, type ProcessModelEdgePointResult, type ProcessModelEdgeStrokeStyle, type ProcessModelGraph, type ProcessModelGraphActivityNode, type ProcessModelGraphNode, type ProcessModelGraphTerminalNode, type ProcessModelGraphWithTraces, type ProcessModelLayoutResult, ProcessModelLayoutUtilities, type ProcessModelLibraryEntry, type ProcessModelNodeBase, type ProcessModelNodePosition, type ProcessModelTerminalKind, ProcessModelTerminalNode, type ProcessModelTerminalNodeProps, type ProcessModelTrace, ProcessModelTraceReplay, type ProcessModelTraceReplayProps, ProgressIndicator, type ProgressIndicatorProps, PromiseUtils, PropertyBase, type PropertyBaseProps, type PropertyField, PropsUtil, type PropsWithBagFunction, type PropsWithBagFunctionOrChildren, type Range, type RangeOptions, type ResolvedTheme, ScrollPicker, type ScrollPickerProps, SearchBar, type SearchBarProps, type SegmentBounds, type SegmentBuffer, type SegmentEditState, type SegmentLayoutOptions, type SegmentValues, Select, SelectButton, type SelectButtonProps, SelectContent, type SelectContentProps, SelectContext, type SelectContextActions, type SelectContextComputedState, type SelectContextConfig, type SelectContextIds, type SelectContextLayout, type SelectContextSearch, type SelectContextState, type SelectContextType, type SelectIconAppearance, type SelectIds, SelectOption, SelectOptionDisplayContext, type SelectOptionDisplayLocation, type SelectOptionProps, type SelectOptionType, type SelectProps, SelectRoot, type SelectRootProps, type SelectionOption, SimpleSearch, SimpleSearchWithMapping, type SingleOrArray, SingleSelectProperty, type SingleSelectPropertyProps, type SingleSelectionReturn, SortingList, type SortingListItem, type SortingListProps, StepperBar, type StepperBarProps, type StepperState, StorageListener, type StorageSubscriber, type SuperSet, Switch, type SwitchProps, type TabContextType, type TabInfo, TabList, TabPanel, TabSwitcher, type TabSwitcherProps, TabView, Table, TableBody, TableCell, type TableCellProps, TableColumn, TableColumnDefinitionContext, type TableColumnDefinitionContextType, type TableColumnProps, TableColumnSwitcher, TableColumnSwitcherPopUp, type TableColumnSwitcherPopUpProps, type TableColumnSwitcherProps, TableContainerContext, type TableContainerContextType, TableDisplay, type TableDisplayProps, TableFilter, TableFilterButton, type TableFilterButtonProps, TableHeader, type TableHeaderProps, TablePageSizeSelect, type TablePageSizeSelectProps, TablePagination, TablePaginationMenu, type TablePaginationMenuProps, type TablePaginationProps, type TableProps, TableProvider, type TableProviderProps, TableSortButton, type TableSortButtonProps, TableStateContext, type TableStateContextType, TableStateWithoutSizingContext, type TableStateWithoutSizingContextType, type TableVirtualizationOptions, TableWithSelection, type TableWithSelectionProps, TableWithSelectionProvider, type TableWithSelectionProviderProps, TagIcon, type TagProps, TagsFilterPopUp, type TagsFilterPopUpProps, TagsSingleFilterPopUp, type TagsSingleFilterPopUpProps, TextFilterPopUp, TextImage, type TextImageProps, TextProperty, type TextPropertyProps, Textarea, type TextareaProps, TextareaWithHeadline, type TextareaWithHeadlineProps, type ThemeConfig, ThemeContext, ThemeDialog, type ThemeDialogProps, ThemeIcon, type ThemeIconProps, ThemeProvider, type ThemeProviderProps, ThemeSelect, type ThemeSelectProps, type ThemeType, ThemeUtil, TimeDisplay, TimePicker, type TimePickerMillisecondIncrement, type TimePickerMinuteIncrement, type TimePickerProps, type TimePickerSecondIncrement, ToggleableInput, Tooltip, type TooltipConfig, TooltipContext, type TooltipContextType, TooltipDisplay, type TooltipDisplayProps, type TooltipProps, TooltipRoot, type TooltipRootProps, TooltipTrigger, type TooltipTriggerBag, type TooltipTriggerContextValue, type TooltipTriggerProps, Transition, type TransitionState, type TransitionWrapperProps, type TreeItem, type TreeNavigationActionOptions, type TreeNavigationOptions, type TreeNavigationReturn, type TreeNode, type UnBoundedRange, type UseAnchoredPositionOptions, type UseAnchoredPostitionProps, type UseComboboxActions, type UseComboboxComputedState, type UseComboboxOption, type UseComboboxOptions, type UseComboboxReturn, type UseComboboxState, type UseCreateFormProps, type UseCreateFormResult, type UseDelayOptions, type UseDelayOptionsResolved, type UseFocusTrapProps, type UseFormFieldOptions, type UseFormFieldParameter, type UseFormObserverKeyProps, type UseFormObserverProps, type UseMultiSelectActions, type UseMultiSelectComputedState, type UseMultiSelectFirstHighlightBehavior, type UseMultiSelectOption, type UseMultiSelectOptions, type UseMultiSelectReturn, type UseMultiSelectState, type UseMultiSelectionOption, type UseMultiSelectionOptions, type UseMultiSelectionReturn, type UseOutsideClickHandlers, type UseOutsideClickOptions, type UseOutsideClickProps, type UseOverlayRegistryProps, type UseOverlayRegistryResult, type UsePresenceRefProps, type UseResizeObserverProps, type UseSearchOptions, type UseSearchReturn, type UseSelectActions, type UseSelectComputedState, type UseSelectFirstHighlightBehavior, type UseSelectOption, type UseSelectOptions, type UseSelectReturn, type UseSelectState, type UseSingleSelectionOptions, type UseTypeAheadSearchOptions, type UseTypeAheadSearchReturn, type UseUpdatingDateStringProps, UseValidators, type UserFormFieldProps, type ValidatorError, type ValidatorResult, VerticalDivider, type VerticalDividerProps, VerticalNavigationItem, type VerticalNavigationItemProps, NavigationProvider as VerticalNavigationProvider, VerticalNavigationTree, type VerticalNavigationTreeProps, VirtualizedTableBody, type VirtualizedTableBodyProps, Visibility, type VisibilityProps, type WeekDay, YearMonthPicker, type YearMonthPickerProps, buildSegmentLayout, builder, clearSegment, closestMatch, composeDate, createLoopingList, createLoopingListWithIndex, decomposeDate, editableSegmentTypes, editableTypesOf, equalSizeGroups, formatSegment, getNeighbours, getProcessModelLibraryEntry, hightideTranslation, hightideTranslationLocales, isComplete, isEmpty, match, mergeProps, noop, processModelLibrary, range, resolveSetState, segmentBounds, segmentPlaceholder, setDayPeriod, stepSegment, timeUnitTranslationKey, toSizeVars, toTreeNodes, typeDigit, useAnchoredPosition, useCombobox, useComboboxContext, useControlledState, useCreateForm, useDateTimeFormat, useDelay, useDialogContext, useDrawerContext, useEventCallbackStabilizer, useFilterValueTranslation, useFocusGuards, useFocusManagement, useFocusOnceVisible, useFocusTrap, useForm, useFormField, useFormObserver, useFormObserverKey, useHandleRefs, useHightideConfig, useHightideTranslation, useICUTranslation, useIsMounted, useLanguage, useListNavigation, useLocale, useLogOnce, useLogUnstableDependencies, useMultiSelect, useMultiSelectContext, useMultiSelectOptionDisplayLocation, useMultiSelection, useNavigationContext, useNavigationItem, useOutsideClick, useOverlayRegistry, useOverwritableState, usePopUpContext, usePresenceRef, useRerender, useResizeObserver, useScrollObserver, useSearch, useSelect, useSelectContext, useSelectOptionDisplayLocation, useSingleSelection, useStorage, useTabContext, useTableColumnDefinitionContext, useTableContainerContext, useTableStateContext, useTableStateWithoutSizingContext, useTheme, useTimeZone, useTooltip, useTransitionState, useTranslatedValidators, useTreeNavigation, useTypeAheadSearch, useUpdatingDateString, useNavigationContext as useVerticalNavigationContext, useNavigationItem as useVerticalNavigationItem, useWindowResizeObserver, validateEmail, writeToClipboard };
3770
+ export { ASTNodeInterpreter, type ASTNodeInterpreterProps, ActionCard, type ActionCardProps, AnchoredFloatingContainer, type AnchoredFloatingContainerProps, AppPage, type AppPageNavigationItem, type AppPageProps, type AppPageSidebarProps, AppPageSidebarWithNavigation, type AppPageSidebarWithNavigationProps, AppSidebar, type AppSidebarProps, ArrayUtil, AutoColumnOrderFeature, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, AvatarWithStatus, type AvatarWithStatusProps, type BackgroundOverlayProps, type BagFunction, type BagFunctionOrNode, type BagFunctionOrValue, BagFunctionUtil, BooleanFilterPopUp, BreadCrumbGroup, BreadCrumbLink, type BreadCrumbLinkProps, type BreadCrumbProps, BreadCrumbs, Button, type ButtonColor, type ButtonProps, ButtonUtil, Card, type CardProps, type CardSize, Carousel, type CarouselProps, CarouselSlide, type CarouselSlideProps, Checkbox, CheckboxProperty, type CheckboxPropertyProps, type CheckboxProps, Chip, type ChipColor, ChipList, type ChipListProps, type ChipProps, ChipUtil, type ColumnSizeCalculatoProps, ColumnSizeUtil, ColumnSizingWithTargetFeature, Combobox, ComboboxContext, type ComboboxContextActions, type ComboboxContextComputedState, type ComboboxContextConfig, type ComboboxContextIds, type ComboboxContextInternalState, type ComboboxContextLayout, type ComboboxContextSearch, type ComboboxContextType, ComboboxInput, type ComboboxInputProps, ComboboxList, type ComboboxListProps, ComboboxOption, type ComboboxOptionProps, type ComboboxOptionType, type ComboboxProps, ComboboxRoot, type ComboboxRootProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogType, type ControlledStateProps, CopyToClipboardWrapper, type CopyToClipboardWrapperProps, type Crumb, DOMUtils, type DataType, type DataTypeFilterPopUpProps, DataTypeUtils, type DataValue, DateFilterPopUp, DatePicker, type DatePickerProps, DateProperty, type DatePropertyProps, DateTimeField, type DateTimeFieldProps, DateTimeFormat, DateTimeInput, type DateTimeInputProps, DateTimePicker, DateTimePickerDialog, type DateTimePickerDialogProps, type DateTimePickerProps, type DateTimePrecision, type DateTimeSegment, DateUtils, DatetimeFilterPopUp, DayPicker, type DayPickerProps, type DeepPartial, Dialog, DialogContext, type DialogContextType, type DialogOpenerPassingProps, DialogOpenerWrapper, type DialogOpenerWrapperBag, type DialogOpenerWrapperProps, type DialogPosition, type DialogProps, DialogRoot, type DialogRootProps, type Direction, DiscardChangesDialog, DividerInserter, type DividerInserterProps, Drawer, type DrawerAligment, DrawerCloseButton, type DrawerCloseButtonProps, DrawerContent, type DrawerContentProps, DrawerContext, type DrawerContextType, type DrawerProps, DrawerRoot, type DrawerRootProps, Duration, type DurationJSON, type EaseFunction, EaseFunctions, type EditCompleteOptions, type EditCompleteOptionsResolved, type EditableSegmentType, type ElementHandle, ErrorComponent, type ErrorComponentProps, type Exact, Expandable, ExpandableContent, type ExpandableContentProps, ExpandableHeader, type ExpandableHeaderProps, type ExpandableProps, ExpandableRoot, type ExpandableRootProps, ExpansionIcon, type ExpansionIconProps, type FAQItem, FAQSection, type FAQSectionProps, FillerCell, type FillerCellProps, FilterBasePopUp, FilterFunctions, FilterList, type FilterListItem, type FilterListPopUpBuilderProps, type FilterListProps, type FilterOperator, type FilterOperatorBoolean, type FilterOperatorDate, type FilterOperatorDatetime, FilterOperatorLabel, type FilterOperatorLabelProps, type FilterOperatorNumber, type FilterOperatorTags, type FilterOperatorTagsSingle, type FilterOperatorText, type FilterOperatorUnknownType, FilterOperatorUtils, type FilterParameter, FilterPopUp, type FilterPopUpBaseProps, type FilterPopUpProps, type FilterValue, type FilterValueTranslationOptions, FilterValueUtils, FlexibleDateTimeInput, type FlexibleDateTimeInputProps, type FloatingElementAlignment, FocusTrap, type FocusTrapProps, FocusTrapWrapper, type FocusTrapWrapperProps, FormContext, type FormContextType, type FormEvent, type FormEventListener, FormField, type FormFieldAriaAttributes, type FormFieldBag, type FormFieldDataHandling, type FormFieldFocusableElementProps, type FormFieldInteractionStates, FormFieldLayout, type FormFieldLayoutBag, type FormFieldLayoutIds, type FormFieldLayoutProps, type FormFieldProps, type FormFieldResult, FormObserver, FormObserverKey, type FormObserverKeyProps, type FormObserverKeyResult, type FormObserverProps, type FormObserverResult, FormProvider, type FormProviderProps, FormStore, type FormStoreProps, type FormValidationBehaviour, type FormValidator, type FormValue, GenericFilterPopUp, HelpwaveBadge, type HelpwaveBadgeProps, HelpwaveLogo, type HelpwaveProps, type HightideConfig, HightideConfigContext, HightideConfigProvider, type HightideConfigProviderProps, HightideProvider, type HightideTranslationEntries, type HightideTranslationLocales, IconButton, IconButtonBase, type IconButtonBaseProps, type IconButtonProps, type IdentifierFilterValue, InfiniteScroll, type InfiniteScrollProps, Input, InputDialog, type InputModalProps, type InputProps, InsideLabelInput, LanguageDialog, LanguageSelect, type ListNavigationOptions, type ListNavigationReturn, LoadingAndErrorComponent, type LoadingAndErrorComponentProps, LoadingAnimation, type LoadingAnimationProps, type LoadingComponentProps, LoadingContainer, LocaleContext, type LocaleContextValue, LocaleProvider, type LocaleProviderProps, type LocalizationConfig, LocalizationUtil, LoopingArrayCalculator, MarkdownInterpreter, type MarkdownInterpreterProps, MathUtil, Menu, type MenuBag, MenuItem, type MenuItemProps, type MenuProps, type Month, MultiSearchWithMapping, MultiSelect, MultiSelectButton, type MultiSelectButtonProps, MultiSelectChipDisplay, MultiSelectChipDisplayButton, type MultiSelectChipDisplayButtonProps, type MultiSelectChipDisplayProps, MultiSelectContent, type MultiSelectContentProps, MultiSelectContext, type MultiSelectContextActions, type MultiSelectContextComputedState, type MultiSelectContextConfig, type MultiSelectContextIds, type MultiSelectContextLayout, type MultiSelectContextSearch, type MultiSelectContextState, type MultiSelectContextType, type MultiSelectIconAppearance, type MultiSelectIds, MultiSelectOption, MultiSelectOptionDisplayContext, type MultiSelectOptionDisplayLocation, type MultiSelectOptionProps, type MultiSelectOptionType, MultiSelectProperty, type MultiSelectPropertyProps, type MultiSelectProps, MultiSelectRoot, type MultiSelectRootProps, MultiSubjectSearchWithMapping, Navigation, NavigationCard, type NavigationCardProps, type NavigationContextActions, type NavigationContextType, type NavigationItemData, NavigationItemList, type NavigationItemListProps, type NavigationItemState, type NavigationItemType, type NavigationProps, NavigationProvider, type NavigationProviderProps, NumberFilterPopUp, NumberProperty, type NumberPropertyProps, type OverlayItem, OverlayRegistry, Pagination, type PaginationProps, PolymorphicSlot, type PolymorphicSlotProps, PopUp, PopUpContext, type PopUpContextType, PopUpOpener, type PopUpOpenerBag, type PopUpOpenerProps, type PopUpProps, PopUpRoot, type PopUpRootProps, Portal, type PortalProps, type ProcessModelActivityIconKind, ProcessModelActivityNode, type ProcessModelActivityNodeKind, type ProcessModelActivityNodeProps, ProcessModelCanvas, type ProcessModelCanvasProps, type ProcessModelEdge, type ProcessModelEdgePointResult, type ProcessModelEdgeStrokeStyle, type ProcessModelGraph, type ProcessModelGraphActivityNode, type ProcessModelGraphNode, type ProcessModelGraphTerminalNode, type ProcessModelGraphWithTraces, type ProcessModelLayoutResult, ProcessModelLayoutUtilities, type ProcessModelLibraryEntry, type ProcessModelNodeBase, type ProcessModelNodePosition, type ProcessModelTerminalKind, ProcessModelTerminalNode, type ProcessModelTerminalNodeProps, type ProcessModelTrace, ProcessModelTraceReplay, type ProcessModelTraceReplayProps, ProgressIndicator, type ProgressIndicatorProps, PromiseUtils, PropertyBase, type PropertyBaseProps, type PropertyField, PropsUtil, type PropsWithBagFunction, type PropsWithBagFunctionOrChildren, type Range, type RangeOptions, type ResolvedTheme, ScrollPicker, type ScrollPickerProps, SearchBar, type SearchBarProps, type SegmentBounds, type SegmentBuffer, type SegmentEditState, type SegmentLayoutOptions, type SegmentValues, Select, SelectButton, type SelectButtonProps, SelectContent, type SelectContentProps, SelectContext, type SelectContextActions, type SelectContextComputedState, type SelectContextConfig, type SelectContextIds, type SelectContextLayout, type SelectContextSearch, type SelectContextState, type SelectContextType, type SelectIconAppearance, type SelectIds, SelectOption, SelectOptionDisplayContext, type SelectOptionDisplayLocation, type SelectOptionProps, type SelectOptionType, type SelectProps, SelectRoot, type SelectRootProps, type SelectionOption, SimpleSearch, SimpleSearchWithMapping, type SingleOrArray, SingleSelectProperty, type SingleSelectPropertyProps, type SingleSelectionReturn, SortingList, type SortingListItem, type SortingListProps, StepperBar, type StepperBarProps, type StepperState, StorageListener, type StorageSubscriber, type SuperSet, type SwipeDirection, type SwipeEventData, type SwipeInputMode, type SwipeStartRegion, Switch, type SwitchProps, type TabContextType, type TabInfo, TabList, TabPanel, TabSwitcher, type TabSwitcherProps, TabView, Table, TableBody, TableCell, type TableCellProps, TableColumn, TableColumnDefinitionContext, type TableColumnDefinitionContextType, type TableColumnProps, TableColumnSwitcher, TableColumnSwitcherPopUp, type TableColumnSwitcherPopUpProps, type TableColumnSwitcherProps, TableContainerContext, type TableContainerContextType, TableDisplay, type TableDisplayProps, TableFilter, TableFilterButton, type TableFilterButtonProps, TableHeader, type TableHeaderProps, TablePageSizeSelect, type TablePageSizeSelectProps, TablePagination, TablePaginationMenu, type TablePaginationMenuProps, type TablePaginationProps, type TableProps, TableProvider, type TableProviderProps, TableSortButton, type TableSortButtonProps, TableStateContext, type TableStateContextType, TableStateWithoutSizingContext, type TableStateWithoutSizingContextType, type TableVirtualizationOptions, TableWithSelection, type TableWithSelectionProps, TableWithSelectionProvider, type TableWithSelectionProviderProps, TagIcon, type TagProps, TagsFilterPopUp, type TagsFilterPopUpProps, TagsSingleFilterPopUp, type TagsSingleFilterPopUpProps, TextFilterPopUp, TextImage, type TextImageProps, TextProperty, type TextPropertyProps, Textarea, type TextareaProps, TextareaWithHeadline, type TextareaWithHeadlineProps, type ThemeConfig, ThemeContext, ThemeDialog, type ThemeDialogProps, ThemeIcon, type ThemeIconProps, ThemeProvider, type ThemeProviderProps, ThemeSelect, type ThemeSelectProps, type ThemeType, ThemeUtil, TimeDisplay, TimePicker, type TimePickerMillisecondIncrement, type TimePickerMinuteIncrement, type TimePickerProps, type TimePickerSecondIncrement, ToggleableInput, Tooltip, type TooltipConfig, TooltipContext, type TooltipContextType, TooltipDisplay, type TooltipDisplayProps, type TooltipProps, TooltipRoot, type TooltipRootProps, TooltipTrigger, type TooltipTriggerBag, type TooltipTriggerContextValue, type TooltipTriggerProps, Transition, type TransitionState, type TransitionWrapperProps, type TreeItem, type TreeNavigationActionOptions, type TreeNavigationOptions, type TreeNavigationReturn, type TreeNode, type UnBoundedRange, type UseAnchoredPositionOptions, type UseAnchoredPostitionProps, type UseComboboxActions, type UseComboboxComputedState, type UseComboboxOption, type UseComboboxOptions, type UseComboboxReturn, type UseComboboxState, type UseCreateFormProps, type UseCreateFormResult, type UseDelayOptions, type UseDelayOptionsResolved, type UseFocusTrapProps, type UseFormFieldOptions, type UseFormFieldParameter, type UseFormObserverKeyProps, type UseFormObserverProps, type UseMultiSelectActions, type UseMultiSelectComputedState, type UseMultiSelectFirstHighlightBehavior, type UseMultiSelectOption, type UseMultiSelectOptions, type UseMultiSelectReturn, type UseMultiSelectState, type UseMultiSelectionOption, type UseMultiSelectionOptions, type UseMultiSelectionReturn, type UseOutsideClickHandlers, type UseOutsideClickOptions, type UseOutsideClickProps, type UseOverlayRegistryProps, type UseOverlayRegistryResult, type UsePresenceRefProps, type UseResizeObserverProps, type UseSearchOptions, type UseSearchReturn, type UseSelectActions, type UseSelectComputedState, type UseSelectFirstHighlightBehavior, type UseSelectOption, type UseSelectOptions, type UseSelectReturn, type UseSelectState, type UseSingleSelectionOptions, type UseTypeAheadSearchOptions, type UseTypeAheadSearchReturn, type UseUpdatingDateStringProps, UseValidators, type UserFormFieldProps, type ValidatorError, type ValidatorResult, VerticalDivider, type VerticalDividerProps, VerticalNavigationItem, type VerticalNavigationItemProps, NavigationProvider as VerticalNavigationProvider, VerticalNavigationTree, type VerticalNavigationTreeProps, VirtualizedTableBody, type VirtualizedTableBodyProps, Visibility, type VisibilityProps, type WeekDay, YearMonthPicker, type YearMonthPickerProps, buildSegmentLayout, builder, clearSegment, closestMatch, composeDate, createLoopingList, createLoopingListWithIndex, decomposeDate, editableSegmentTypes, editableTypesOf, equalSizeGroups, formatSegment, getNeighbours, getProcessModelLibraryEntry, hightideTranslation, hightideTranslationLocales, isComplete, isEmpty, match, mergeProps, noop, processModelLibrary, range, resolveSetState, segmentBounds, segmentPlaceholder, setDayPeriod, stepSegment, timeUnitTranslationKey, toSizeVars, toTreeNodes, typeDigit, useAnchoredPosition, useCombobox, useComboboxContext, useControlledState, useCreateForm, useDateTimeFormat, useDelay, useDialogContext, useDrawerContext, useEventCallbackStabilizer, useFilterValueTranslation, useFocusGuards, useFocusManagement, useFocusOnceVisible, useFocusTrap, useForm, useFormField, useFormObserver, useFormObserverKey, useHandleRefs, useHightideConfig, useHightideTranslation, useICUTranslation, useIsMounted, useLanguage, useListNavigation, useLocale, useLogOnce, useLogUnstableDependencies, useMultiSelect, useMultiSelectContext, useMultiSelectOptionDisplayLocation, useMultiSelection, useNavigationContext, useNavigationItem, useOutsideClick, useOverlayRegistry, useOverwritableState, usePopUpContext, usePresenceRef, useRerender, useResizeObserver, useScrollObserver, useSearch, useSelect, useSelectContext, useSelectOptionDisplayLocation, useSingleSelection, useStorage, useSwipeGesture, useTabContext, useTableColumnDefinitionContext, useTableContainerContext, useTableStateContext, useTableStateWithoutSizingContext, useTheme, useTimeZone, useTooltip, useTransitionState, useTranslatedValidators, useTreeNavigation, useTypeAheadSearch, useUpdatingDateString, useNavigationContext as useVerticalNavigationContext, useNavigationItem as useVerticalNavigationItem, useWindowResizeObserver, validateEmail, writeToClipboard };
package/dist/index.d.ts CHANGED
@@ -911,14 +911,14 @@ interface AppPageNavigationItem {
911
911
  items?: AppPageNavigationItem[];
912
912
  }
913
913
  interface AppPageSidebarProps {
914
- header?: ReactNode;
915
- items?: AppPageNavigationItem[];
916
- contentOverwrite?: ReactNode;
917
- footer?: ReactNode;
914
+ header: ReactNode;
915
+ items: AppPageNavigationItem[];
916
+ content: ReactNode;
917
+ footer: ReactNode;
918
918
  }
919
919
  interface AppPageProps extends HTMLAttributes<HTMLDivElement> {
920
920
  headerActions?: ReactNode[];
921
- sidebarProps: AppPageSidebarProps;
921
+ sidebarProps: AppPageSidebarWithNavigationProps;
922
922
  }
923
923
  declare const AppPage: ({ children, headerActions, sidebarProps, ...props }: AppPageProps) => react_jsx_runtime.JSX.Element;
924
924
 
@@ -3449,6 +3449,28 @@ interface UseStorageResult<T> {
3449
3449
  }
3450
3450
  declare const useStorage: <T>({ key, defaultValue, storageType, serialize, deserialize, listen }: UseStorageProps<T>) => UseStorageResult<T>;
3451
3451
 
3452
+ type SwipeInputMode = 'touch' | 'mouse' | 'both';
3453
+ type SwipeDirection = 'leftToRight' | 'rightToLeft' | 'topToBottom' | 'bottomToTop';
3454
+ interface SwipeEventData {
3455
+ direction: SwipeDirection;
3456
+ }
3457
+ interface SwipeStartRegion {
3458
+ minX?: number;
3459
+ maxX?: number;
3460
+ minY?: number;
3461
+ maxY?: number;
3462
+ }
3463
+ interface UseSwipeGestureOptions {
3464
+ elementRef?: RefObject<HTMLElement | null>;
3465
+ inputMode?: SwipeInputMode;
3466
+ onSwipe?: (data: SwipeEventData) => void;
3467
+ startRegion?: SwipeStartRegion;
3468
+ threshold?: number;
3469
+ crossAxisThreshold?: number;
3470
+ maxSwipeTime?: number;
3471
+ }
3472
+ declare const useSwipeGesture: ({ elementRef, inputMode, onSwipe, startRegion, threshold, crossAxisThreshold, maxSwipeTime, }: UseSwipeGestureOptions) => RefObject<HTMLElement>;
3473
+
3452
3474
  type TransitionState = 'opened' | 'closed' | 'opening' | 'closing';
3453
3475
  type UseTransitionStateResult = {
3454
3476
  transitionState: TransitionState;
@@ -3745,4 +3767,4 @@ declare const SimpleSearch: (search: string, objects: string[]) => string[];
3745
3767
 
3746
3768
  declare const writeToClipboard: (text: string) => Promise<void>;
3747
3769
 
3748
- export { ASTNodeInterpreter, type ASTNodeInterpreterProps, ActionCard, type ActionCardProps, AnchoredFloatingContainer, type AnchoredFloatingContainerProps, AppPage, type AppPageNavigationItem, type AppPageProps, type AppPageSidebarProps, AppPageSidebarWithNavigation, type AppPageSidebarWithNavigationProps, AppSidebar, type AppSidebarProps, ArrayUtil, AutoColumnOrderFeature, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, AvatarWithStatus, type AvatarWithStatusProps, type BackgroundOverlayProps, type BagFunction, type BagFunctionOrNode, type BagFunctionOrValue, BagFunctionUtil, BooleanFilterPopUp, BreadCrumbGroup, BreadCrumbLink, type BreadCrumbLinkProps, type BreadCrumbProps, BreadCrumbs, Button, type ButtonColor, type ButtonProps, ButtonUtil, Card, type CardProps, type CardSize, Carousel, type CarouselProps, CarouselSlide, type CarouselSlideProps, Checkbox, CheckboxProperty, type CheckboxPropertyProps, type CheckboxProps, Chip, type ChipColor, ChipList, type ChipListProps, type ChipProps, ChipUtil, type ColumnSizeCalculatoProps, ColumnSizeUtil, ColumnSizingWithTargetFeature, Combobox, ComboboxContext, type ComboboxContextActions, type ComboboxContextComputedState, type ComboboxContextConfig, type ComboboxContextIds, type ComboboxContextInternalState, type ComboboxContextLayout, type ComboboxContextSearch, type ComboboxContextType, ComboboxInput, type ComboboxInputProps, ComboboxList, type ComboboxListProps, ComboboxOption, type ComboboxOptionProps, type ComboboxOptionType, type ComboboxProps, ComboboxRoot, type ComboboxRootProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogType, type ControlledStateProps, CopyToClipboardWrapper, type CopyToClipboardWrapperProps, type Crumb, DOMUtils, type DataType, type DataTypeFilterPopUpProps, DataTypeUtils, type DataValue, DateFilterPopUp, DatePicker, type DatePickerProps, DateProperty, type DatePropertyProps, DateTimeField, type DateTimeFieldProps, DateTimeFormat, DateTimeInput, type DateTimeInputProps, DateTimePicker, DateTimePickerDialog, type DateTimePickerDialogProps, type DateTimePickerProps, type DateTimePrecision, type DateTimeSegment, DateUtils, DatetimeFilterPopUp, DayPicker, type DayPickerProps, type DeepPartial, Dialog, DialogContext, type DialogContextType, type DialogOpenerPassingProps, DialogOpenerWrapper, type DialogOpenerWrapperBag, type DialogOpenerWrapperProps, type DialogPosition, type DialogProps, DialogRoot, type DialogRootProps, type Direction, DiscardChangesDialog, DividerInserter, type DividerInserterProps, Drawer, type DrawerAligment, DrawerCloseButton, type DrawerCloseButtonProps, DrawerContent, type DrawerContentProps, DrawerContext, type DrawerContextType, type DrawerProps, DrawerRoot, type DrawerRootProps, Duration, type DurationJSON, type EaseFunction, EaseFunctions, type EditCompleteOptions, type EditCompleteOptionsResolved, type EditableSegmentType, type ElementHandle, ErrorComponent, type ErrorComponentProps, type Exact, Expandable, ExpandableContent, type ExpandableContentProps, ExpandableHeader, type ExpandableHeaderProps, type ExpandableProps, ExpandableRoot, type ExpandableRootProps, ExpansionIcon, type ExpansionIconProps, type FAQItem, FAQSection, type FAQSectionProps, FillerCell, type FillerCellProps, FilterBasePopUp, FilterFunctions, FilterList, type FilterListItem, type FilterListPopUpBuilderProps, type FilterListProps, type FilterOperator, type FilterOperatorBoolean, type FilterOperatorDate, type FilterOperatorDatetime, FilterOperatorLabel, type FilterOperatorLabelProps, type FilterOperatorNumber, type FilterOperatorTags, type FilterOperatorTagsSingle, type FilterOperatorText, type FilterOperatorUnknownType, FilterOperatorUtils, type FilterParameter, FilterPopUp, type FilterPopUpBaseProps, type FilterPopUpProps, type FilterValue, type FilterValueTranslationOptions, FilterValueUtils, FlexibleDateTimeInput, type FlexibleDateTimeInputProps, type FloatingElementAlignment, FocusTrap, type FocusTrapProps, FocusTrapWrapper, type FocusTrapWrapperProps, FormContext, type FormContextType, type FormEvent, type FormEventListener, FormField, type FormFieldAriaAttributes, type FormFieldBag, type FormFieldDataHandling, type FormFieldFocusableElementProps, type FormFieldInteractionStates, FormFieldLayout, type FormFieldLayoutBag, type FormFieldLayoutIds, type FormFieldLayoutProps, type FormFieldProps, type FormFieldResult, FormObserver, FormObserverKey, type FormObserverKeyProps, type FormObserverKeyResult, type FormObserverProps, type FormObserverResult, FormProvider, type FormProviderProps, FormStore, type FormStoreProps, type FormValidationBehaviour, type FormValidator, type FormValue, GenericFilterPopUp, HelpwaveBadge, type HelpwaveBadgeProps, HelpwaveLogo, type HelpwaveProps, type HightideConfig, HightideConfigContext, HightideConfigProvider, type HightideConfigProviderProps, HightideProvider, type HightideTranslationEntries, type HightideTranslationLocales, IconButton, IconButtonBase, type IconButtonBaseProps, type IconButtonProps, type IdentifierFilterValue, InfiniteScroll, type InfiniteScrollProps, Input, InputDialog, type InputModalProps, type InputProps, InsideLabelInput, LanguageDialog, LanguageSelect, type ListNavigationOptions, type ListNavigationReturn, LoadingAndErrorComponent, type LoadingAndErrorComponentProps, LoadingAnimation, type LoadingAnimationProps, type LoadingComponentProps, LoadingContainer, LocaleContext, type LocaleContextValue, LocaleProvider, type LocaleProviderProps, type LocalizationConfig, LocalizationUtil, LoopingArrayCalculator, MarkdownInterpreter, type MarkdownInterpreterProps, MathUtil, Menu, type MenuBag, MenuItem, type MenuItemProps, type MenuProps, type Month, MultiSearchWithMapping, MultiSelect, MultiSelectButton, type MultiSelectButtonProps, MultiSelectChipDisplay, MultiSelectChipDisplayButton, type MultiSelectChipDisplayButtonProps, type MultiSelectChipDisplayProps, MultiSelectContent, type MultiSelectContentProps, MultiSelectContext, type MultiSelectContextActions, type MultiSelectContextComputedState, type MultiSelectContextConfig, type MultiSelectContextIds, type MultiSelectContextLayout, type MultiSelectContextSearch, type MultiSelectContextState, type MultiSelectContextType, type MultiSelectIconAppearance, type MultiSelectIds, MultiSelectOption, MultiSelectOptionDisplayContext, type MultiSelectOptionDisplayLocation, type MultiSelectOptionProps, type MultiSelectOptionType, MultiSelectProperty, type MultiSelectPropertyProps, type MultiSelectProps, MultiSelectRoot, type MultiSelectRootProps, MultiSubjectSearchWithMapping, Navigation, NavigationCard, type NavigationCardProps, type NavigationContextActions, type NavigationContextType, type NavigationItemData, NavigationItemList, type NavigationItemListProps, type NavigationItemState, type NavigationItemType, type NavigationProps, NavigationProvider, type NavigationProviderProps, NumberFilterPopUp, NumberProperty, type NumberPropertyProps, type OverlayItem, OverlayRegistry, Pagination, type PaginationProps, PolymorphicSlot, type PolymorphicSlotProps, PopUp, PopUpContext, type PopUpContextType, PopUpOpener, type PopUpOpenerBag, type PopUpOpenerProps, type PopUpProps, PopUpRoot, type PopUpRootProps, Portal, type PortalProps, type ProcessModelActivityIconKind, ProcessModelActivityNode, type ProcessModelActivityNodeKind, type ProcessModelActivityNodeProps, ProcessModelCanvas, type ProcessModelCanvasProps, type ProcessModelEdge, type ProcessModelEdgePointResult, type ProcessModelEdgeStrokeStyle, type ProcessModelGraph, type ProcessModelGraphActivityNode, type ProcessModelGraphNode, type ProcessModelGraphTerminalNode, type ProcessModelGraphWithTraces, type ProcessModelLayoutResult, ProcessModelLayoutUtilities, type ProcessModelLibraryEntry, type ProcessModelNodeBase, type ProcessModelNodePosition, type ProcessModelTerminalKind, ProcessModelTerminalNode, type ProcessModelTerminalNodeProps, type ProcessModelTrace, ProcessModelTraceReplay, type ProcessModelTraceReplayProps, ProgressIndicator, type ProgressIndicatorProps, PromiseUtils, PropertyBase, type PropertyBaseProps, type PropertyField, PropsUtil, type PropsWithBagFunction, type PropsWithBagFunctionOrChildren, type Range, type RangeOptions, type ResolvedTheme, ScrollPicker, type ScrollPickerProps, SearchBar, type SearchBarProps, type SegmentBounds, type SegmentBuffer, type SegmentEditState, type SegmentLayoutOptions, type SegmentValues, Select, SelectButton, type SelectButtonProps, SelectContent, type SelectContentProps, SelectContext, type SelectContextActions, type SelectContextComputedState, type SelectContextConfig, type SelectContextIds, type SelectContextLayout, type SelectContextSearch, type SelectContextState, type SelectContextType, type SelectIconAppearance, type SelectIds, SelectOption, SelectOptionDisplayContext, type SelectOptionDisplayLocation, type SelectOptionProps, type SelectOptionType, type SelectProps, SelectRoot, type SelectRootProps, type SelectionOption, SimpleSearch, SimpleSearchWithMapping, type SingleOrArray, SingleSelectProperty, type SingleSelectPropertyProps, type SingleSelectionReturn, SortingList, type SortingListItem, type SortingListProps, StepperBar, type StepperBarProps, type StepperState, StorageListener, type StorageSubscriber, type SuperSet, Switch, type SwitchProps, type TabContextType, type TabInfo, TabList, TabPanel, TabSwitcher, type TabSwitcherProps, TabView, Table, TableBody, TableCell, type TableCellProps, TableColumn, TableColumnDefinitionContext, type TableColumnDefinitionContextType, type TableColumnProps, TableColumnSwitcher, TableColumnSwitcherPopUp, type TableColumnSwitcherPopUpProps, type TableColumnSwitcherProps, TableContainerContext, type TableContainerContextType, TableDisplay, type TableDisplayProps, TableFilter, TableFilterButton, type TableFilterButtonProps, TableHeader, type TableHeaderProps, TablePageSizeSelect, type TablePageSizeSelectProps, TablePagination, TablePaginationMenu, type TablePaginationMenuProps, type TablePaginationProps, type TableProps, TableProvider, type TableProviderProps, TableSortButton, type TableSortButtonProps, TableStateContext, type TableStateContextType, TableStateWithoutSizingContext, type TableStateWithoutSizingContextType, type TableVirtualizationOptions, TableWithSelection, type TableWithSelectionProps, TableWithSelectionProvider, type TableWithSelectionProviderProps, TagIcon, type TagProps, TagsFilterPopUp, type TagsFilterPopUpProps, TagsSingleFilterPopUp, type TagsSingleFilterPopUpProps, TextFilterPopUp, TextImage, type TextImageProps, TextProperty, type TextPropertyProps, Textarea, type TextareaProps, TextareaWithHeadline, type TextareaWithHeadlineProps, type ThemeConfig, ThemeContext, ThemeDialog, type ThemeDialogProps, ThemeIcon, type ThemeIconProps, ThemeProvider, type ThemeProviderProps, ThemeSelect, type ThemeSelectProps, type ThemeType, ThemeUtil, TimeDisplay, TimePicker, type TimePickerMillisecondIncrement, type TimePickerMinuteIncrement, type TimePickerProps, type TimePickerSecondIncrement, ToggleableInput, Tooltip, type TooltipConfig, TooltipContext, type TooltipContextType, TooltipDisplay, type TooltipDisplayProps, type TooltipProps, TooltipRoot, type TooltipRootProps, TooltipTrigger, type TooltipTriggerBag, type TooltipTriggerContextValue, type TooltipTriggerProps, Transition, type TransitionState, type TransitionWrapperProps, type TreeItem, type TreeNavigationActionOptions, type TreeNavigationOptions, type TreeNavigationReturn, type TreeNode, type UnBoundedRange, type UseAnchoredPositionOptions, type UseAnchoredPostitionProps, type UseComboboxActions, type UseComboboxComputedState, type UseComboboxOption, type UseComboboxOptions, type UseComboboxReturn, type UseComboboxState, type UseCreateFormProps, type UseCreateFormResult, type UseDelayOptions, type UseDelayOptionsResolved, type UseFocusTrapProps, type UseFormFieldOptions, type UseFormFieldParameter, type UseFormObserverKeyProps, type UseFormObserverProps, type UseMultiSelectActions, type UseMultiSelectComputedState, type UseMultiSelectFirstHighlightBehavior, type UseMultiSelectOption, type UseMultiSelectOptions, type UseMultiSelectReturn, type UseMultiSelectState, type UseMultiSelectionOption, type UseMultiSelectionOptions, type UseMultiSelectionReturn, type UseOutsideClickHandlers, type UseOutsideClickOptions, type UseOutsideClickProps, type UseOverlayRegistryProps, type UseOverlayRegistryResult, type UsePresenceRefProps, type UseResizeObserverProps, type UseSearchOptions, type UseSearchReturn, type UseSelectActions, type UseSelectComputedState, type UseSelectFirstHighlightBehavior, type UseSelectOption, type UseSelectOptions, type UseSelectReturn, type UseSelectState, type UseSingleSelectionOptions, type UseTypeAheadSearchOptions, type UseTypeAheadSearchReturn, type UseUpdatingDateStringProps, UseValidators, type UserFormFieldProps, type ValidatorError, type ValidatorResult, VerticalDivider, type VerticalDividerProps, VerticalNavigationItem, type VerticalNavigationItemProps, NavigationProvider as VerticalNavigationProvider, VerticalNavigationTree, type VerticalNavigationTreeProps, VirtualizedTableBody, type VirtualizedTableBodyProps, Visibility, type VisibilityProps, type WeekDay, YearMonthPicker, type YearMonthPickerProps, buildSegmentLayout, builder, clearSegment, closestMatch, composeDate, createLoopingList, createLoopingListWithIndex, decomposeDate, editableSegmentTypes, editableTypesOf, equalSizeGroups, formatSegment, getNeighbours, getProcessModelLibraryEntry, hightideTranslation, hightideTranslationLocales, isComplete, isEmpty, match, mergeProps, noop, processModelLibrary, range, resolveSetState, segmentBounds, segmentPlaceholder, setDayPeriod, stepSegment, timeUnitTranslationKey, toSizeVars, toTreeNodes, typeDigit, useAnchoredPosition, useCombobox, useComboboxContext, useControlledState, useCreateForm, useDateTimeFormat, useDelay, useDialogContext, useDrawerContext, useEventCallbackStabilizer, useFilterValueTranslation, useFocusGuards, useFocusManagement, useFocusOnceVisible, useFocusTrap, useForm, useFormField, useFormObserver, useFormObserverKey, useHandleRefs, useHightideConfig, useHightideTranslation, useICUTranslation, useIsMounted, useLanguage, useListNavigation, useLocale, useLogOnce, useLogUnstableDependencies, useMultiSelect, useMultiSelectContext, useMultiSelectOptionDisplayLocation, useMultiSelection, useNavigationContext, useNavigationItem, useOutsideClick, useOverlayRegistry, useOverwritableState, usePopUpContext, usePresenceRef, useRerender, useResizeObserver, useScrollObserver, useSearch, useSelect, useSelectContext, useSelectOptionDisplayLocation, useSingleSelection, useStorage, useTabContext, useTableColumnDefinitionContext, useTableContainerContext, useTableStateContext, useTableStateWithoutSizingContext, useTheme, useTimeZone, useTooltip, useTransitionState, useTranslatedValidators, useTreeNavigation, useTypeAheadSearch, useUpdatingDateString, useNavigationContext as useVerticalNavigationContext, useNavigationItem as useVerticalNavigationItem, useWindowResizeObserver, validateEmail, writeToClipboard };
3770
+ export { ASTNodeInterpreter, type ASTNodeInterpreterProps, ActionCard, type ActionCardProps, AnchoredFloatingContainer, type AnchoredFloatingContainerProps, AppPage, type AppPageNavigationItem, type AppPageProps, type AppPageSidebarProps, AppPageSidebarWithNavigation, type AppPageSidebarWithNavigationProps, AppSidebar, type AppSidebarProps, ArrayUtil, AutoColumnOrderFeature, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, AvatarWithStatus, type AvatarWithStatusProps, type BackgroundOverlayProps, type BagFunction, type BagFunctionOrNode, type BagFunctionOrValue, BagFunctionUtil, BooleanFilterPopUp, BreadCrumbGroup, BreadCrumbLink, type BreadCrumbLinkProps, type BreadCrumbProps, BreadCrumbs, Button, type ButtonColor, type ButtonProps, ButtonUtil, Card, type CardProps, type CardSize, Carousel, type CarouselProps, CarouselSlide, type CarouselSlideProps, Checkbox, CheckboxProperty, type CheckboxPropertyProps, type CheckboxProps, Chip, type ChipColor, ChipList, type ChipListProps, type ChipProps, ChipUtil, type ColumnSizeCalculatoProps, ColumnSizeUtil, ColumnSizingWithTargetFeature, Combobox, ComboboxContext, type ComboboxContextActions, type ComboboxContextComputedState, type ComboboxContextConfig, type ComboboxContextIds, type ComboboxContextInternalState, type ComboboxContextLayout, type ComboboxContextSearch, type ComboboxContextType, ComboboxInput, type ComboboxInputProps, ComboboxList, type ComboboxListProps, ComboboxOption, type ComboboxOptionProps, type ComboboxOptionType, type ComboboxProps, ComboboxRoot, type ComboboxRootProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogType, type ControlledStateProps, CopyToClipboardWrapper, type CopyToClipboardWrapperProps, type Crumb, DOMUtils, type DataType, type DataTypeFilterPopUpProps, DataTypeUtils, type DataValue, DateFilterPopUp, DatePicker, type DatePickerProps, DateProperty, type DatePropertyProps, DateTimeField, type DateTimeFieldProps, DateTimeFormat, DateTimeInput, type DateTimeInputProps, DateTimePicker, DateTimePickerDialog, type DateTimePickerDialogProps, type DateTimePickerProps, type DateTimePrecision, type DateTimeSegment, DateUtils, DatetimeFilterPopUp, DayPicker, type DayPickerProps, type DeepPartial, Dialog, DialogContext, type DialogContextType, type DialogOpenerPassingProps, DialogOpenerWrapper, type DialogOpenerWrapperBag, type DialogOpenerWrapperProps, type DialogPosition, type DialogProps, DialogRoot, type DialogRootProps, type Direction, DiscardChangesDialog, DividerInserter, type DividerInserterProps, Drawer, type DrawerAligment, DrawerCloseButton, type DrawerCloseButtonProps, DrawerContent, type DrawerContentProps, DrawerContext, type DrawerContextType, type DrawerProps, DrawerRoot, type DrawerRootProps, Duration, type DurationJSON, type EaseFunction, EaseFunctions, type EditCompleteOptions, type EditCompleteOptionsResolved, type EditableSegmentType, type ElementHandle, ErrorComponent, type ErrorComponentProps, type Exact, Expandable, ExpandableContent, type ExpandableContentProps, ExpandableHeader, type ExpandableHeaderProps, type ExpandableProps, ExpandableRoot, type ExpandableRootProps, ExpansionIcon, type ExpansionIconProps, type FAQItem, FAQSection, type FAQSectionProps, FillerCell, type FillerCellProps, FilterBasePopUp, FilterFunctions, FilterList, type FilterListItem, type FilterListPopUpBuilderProps, type FilterListProps, type FilterOperator, type FilterOperatorBoolean, type FilterOperatorDate, type FilterOperatorDatetime, FilterOperatorLabel, type FilterOperatorLabelProps, type FilterOperatorNumber, type FilterOperatorTags, type FilterOperatorTagsSingle, type FilterOperatorText, type FilterOperatorUnknownType, FilterOperatorUtils, type FilterParameter, FilterPopUp, type FilterPopUpBaseProps, type FilterPopUpProps, type FilterValue, type FilterValueTranslationOptions, FilterValueUtils, FlexibleDateTimeInput, type FlexibleDateTimeInputProps, type FloatingElementAlignment, FocusTrap, type FocusTrapProps, FocusTrapWrapper, type FocusTrapWrapperProps, FormContext, type FormContextType, type FormEvent, type FormEventListener, FormField, type FormFieldAriaAttributes, type FormFieldBag, type FormFieldDataHandling, type FormFieldFocusableElementProps, type FormFieldInteractionStates, FormFieldLayout, type FormFieldLayoutBag, type FormFieldLayoutIds, type FormFieldLayoutProps, type FormFieldProps, type FormFieldResult, FormObserver, FormObserverKey, type FormObserverKeyProps, type FormObserverKeyResult, type FormObserverProps, type FormObserverResult, FormProvider, type FormProviderProps, FormStore, type FormStoreProps, type FormValidationBehaviour, type FormValidator, type FormValue, GenericFilterPopUp, HelpwaveBadge, type HelpwaveBadgeProps, HelpwaveLogo, type HelpwaveProps, type HightideConfig, HightideConfigContext, HightideConfigProvider, type HightideConfigProviderProps, HightideProvider, type HightideTranslationEntries, type HightideTranslationLocales, IconButton, IconButtonBase, type IconButtonBaseProps, type IconButtonProps, type IdentifierFilterValue, InfiniteScroll, type InfiniteScrollProps, Input, InputDialog, type InputModalProps, type InputProps, InsideLabelInput, LanguageDialog, LanguageSelect, type ListNavigationOptions, type ListNavigationReturn, LoadingAndErrorComponent, type LoadingAndErrorComponentProps, LoadingAnimation, type LoadingAnimationProps, type LoadingComponentProps, LoadingContainer, LocaleContext, type LocaleContextValue, LocaleProvider, type LocaleProviderProps, type LocalizationConfig, LocalizationUtil, LoopingArrayCalculator, MarkdownInterpreter, type MarkdownInterpreterProps, MathUtil, Menu, type MenuBag, MenuItem, type MenuItemProps, type MenuProps, type Month, MultiSearchWithMapping, MultiSelect, MultiSelectButton, type MultiSelectButtonProps, MultiSelectChipDisplay, MultiSelectChipDisplayButton, type MultiSelectChipDisplayButtonProps, type MultiSelectChipDisplayProps, MultiSelectContent, type MultiSelectContentProps, MultiSelectContext, type MultiSelectContextActions, type MultiSelectContextComputedState, type MultiSelectContextConfig, type MultiSelectContextIds, type MultiSelectContextLayout, type MultiSelectContextSearch, type MultiSelectContextState, type MultiSelectContextType, type MultiSelectIconAppearance, type MultiSelectIds, MultiSelectOption, MultiSelectOptionDisplayContext, type MultiSelectOptionDisplayLocation, type MultiSelectOptionProps, type MultiSelectOptionType, MultiSelectProperty, type MultiSelectPropertyProps, type MultiSelectProps, MultiSelectRoot, type MultiSelectRootProps, MultiSubjectSearchWithMapping, Navigation, NavigationCard, type NavigationCardProps, type NavigationContextActions, type NavigationContextType, type NavigationItemData, NavigationItemList, type NavigationItemListProps, type NavigationItemState, type NavigationItemType, type NavigationProps, NavigationProvider, type NavigationProviderProps, NumberFilterPopUp, NumberProperty, type NumberPropertyProps, type OverlayItem, OverlayRegistry, Pagination, type PaginationProps, PolymorphicSlot, type PolymorphicSlotProps, PopUp, PopUpContext, type PopUpContextType, PopUpOpener, type PopUpOpenerBag, type PopUpOpenerProps, type PopUpProps, PopUpRoot, type PopUpRootProps, Portal, type PortalProps, type ProcessModelActivityIconKind, ProcessModelActivityNode, type ProcessModelActivityNodeKind, type ProcessModelActivityNodeProps, ProcessModelCanvas, type ProcessModelCanvasProps, type ProcessModelEdge, type ProcessModelEdgePointResult, type ProcessModelEdgeStrokeStyle, type ProcessModelGraph, type ProcessModelGraphActivityNode, type ProcessModelGraphNode, type ProcessModelGraphTerminalNode, type ProcessModelGraphWithTraces, type ProcessModelLayoutResult, ProcessModelLayoutUtilities, type ProcessModelLibraryEntry, type ProcessModelNodeBase, type ProcessModelNodePosition, type ProcessModelTerminalKind, ProcessModelTerminalNode, type ProcessModelTerminalNodeProps, type ProcessModelTrace, ProcessModelTraceReplay, type ProcessModelTraceReplayProps, ProgressIndicator, type ProgressIndicatorProps, PromiseUtils, PropertyBase, type PropertyBaseProps, type PropertyField, PropsUtil, type PropsWithBagFunction, type PropsWithBagFunctionOrChildren, type Range, type RangeOptions, type ResolvedTheme, ScrollPicker, type ScrollPickerProps, SearchBar, type SearchBarProps, type SegmentBounds, type SegmentBuffer, type SegmentEditState, type SegmentLayoutOptions, type SegmentValues, Select, SelectButton, type SelectButtonProps, SelectContent, type SelectContentProps, SelectContext, type SelectContextActions, type SelectContextComputedState, type SelectContextConfig, type SelectContextIds, type SelectContextLayout, type SelectContextSearch, type SelectContextState, type SelectContextType, type SelectIconAppearance, type SelectIds, SelectOption, SelectOptionDisplayContext, type SelectOptionDisplayLocation, type SelectOptionProps, type SelectOptionType, type SelectProps, SelectRoot, type SelectRootProps, type SelectionOption, SimpleSearch, SimpleSearchWithMapping, type SingleOrArray, SingleSelectProperty, type SingleSelectPropertyProps, type SingleSelectionReturn, SortingList, type SortingListItem, type SortingListProps, StepperBar, type StepperBarProps, type StepperState, StorageListener, type StorageSubscriber, type SuperSet, type SwipeDirection, type SwipeEventData, type SwipeInputMode, type SwipeStartRegion, Switch, type SwitchProps, type TabContextType, type TabInfo, TabList, TabPanel, TabSwitcher, type TabSwitcherProps, TabView, Table, TableBody, TableCell, type TableCellProps, TableColumn, TableColumnDefinitionContext, type TableColumnDefinitionContextType, type TableColumnProps, TableColumnSwitcher, TableColumnSwitcherPopUp, type TableColumnSwitcherPopUpProps, type TableColumnSwitcherProps, TableContainerContext, type TableContainerContextType, TableDisplay, type TableDisplayProps, TableFilter, TableFilterButton, type TableFilterButtonProps, TableHeader, type TableHeaderProps, TablePageSizeSelect, type TablePageSizeSelectProps, TablePagination, TablePaginationMenu, type TablePaginationMenuProps, type TablePaginationProps, type TableProps, TableProvider, type TableProviderProps, TableSortButton, type TableSortButtonProps, TableStateContext, type TableStateContextType, TableStateWithoutSizingContext, type TableStateWithoutSizingContextType, type TableVirtualizationOptions, TableWithSelection, type TableWithSelectionProps, TableWithSelectionProvider, type TableWithSelectionProviderProps, TagIcon, type TagProps, TagsFilterPopUp, type TagsFilterPopUpProps, TagsSingleFilterPopUp, type TagsSingleFilterPopUpProps, TextFilterPopUp, TextImage, type TextImageProps, TextProperty, type TextPropertyProps, Textarea, type TextareaProps, TextareaWithHeadline, type TextareaWithHeadlineProps, type ThemeConfig, ThemeContext, ThemeDialog, type ThemeDialogProps, ThemeIcon, type ThemeIconProps, ThemeProvider, type ThemeProviderProps, ThemeSelect, type ThemeSelectProps, type ThemeType, ThemeUtil, TimeDisplay, TimePicker, type TimePickerMillisecondIncrement, type TimePickerMinuteIncrement, type TimePickerProps, type TimePickerSecondIncrement, ToggleableInput, Tooltip, type TooltipConfig, TooltipContext, type TooltipContextType, TooltipDisplay, type TooltipDisplayProps, type TooltipProps, TooltipRoot, type TooltipRootProps, TooltipTrigger, type TooltipTriggerBag, type TooltipTriggerContextValue, type TooltipTriggerProps, Transition, type TransitionState, type TransitionWrapperProps, type TreeItem, type TreeNavigationActionOptions, type TreeNavigationOptions, type TreeNavigationReturn, type TreeNode, type UnBoundedRange, type UseAnchoredPositionOptions, type UseAnchoredPostitionProps, type UseComboboxActions, type UseComboboxComputedState, type UseComboboxOption, type UseComboboxOptions, type UseComboboxReturn, type UseComboboxState, type UseCreateFormProps, type UseCreateFormResult, type UseDelayOptions, type UseDelayOptionsResolved, type UseFocusTrapProps, type UseFormFieldOptions, type UseFormFieldParameter, type UseFormObserverKeyProps, type UseFormObserverProps, type UseMultiSelectActions, type UseMultiSelectComputedState, type UseMultiSelectFirstHighlightBehavior, type UseMultiSelectOption, type UseMultiSelectOptions, type UseMultiSelectReturn, type UseMultiSelectState, type UseMultiSelectionOption, type UseMultiSelectionOptions, type UseMultiSelectionReturn, type UseOutsideClickHandlers, type UseOutsideClickOptions, type UseOutsideClickProps, type UseOverlayRegistryProps, type UseOverlayRegistryResult, type UsePresenceRefProps, type UseResizeObserverProps, type UseSearchOptions, type UseSearchReturn, type UseSelectActions, type UseSelectComputedState, type UseSelectFirstHighlightBehavior, type UseSelectOption, type UseSelectOptions, type UseSelectReturn, type UseSelectState, type UseSingleSelectionOptions, type UseTypeAheadSearchOptions, type UseTypeAheadSearchReturn, type UseUpdatingDateStringProps, UseValidators, type UserFormFieldProps, type ValidatorError, type ValidatorResult, VerticalDivider, type VerticalDividerProps, VerticalNavigationItem, type VerticalNavigationItemProps, NavigationProvider as VerticalNavigationProvider, VerticalNavigationTree, type VerticalNavigationTreeProps, VirtualizedTableBody, type VirtualizedTableBodyProps, Visibility, type VisibilityProps, type WeekDay, YearMonthPicker, type YearMonthPickerProps, buildSegmentLayout, builder, clearSegment, closestMatch, composeDate, createLoopingList, createLoopingListWithIndex, decomposeDate, editableSegmentTypes, editableTypesOf, equalSizeGroups, formatSegment, getNeighbours, getProcessModelLibraryEntry, hightideTranslation, hightideTranslationLocales, isComplete, isEmpty, match, mergeProps, noop, processModelLibrary, range, resolveSetState, segmentBounds, segmentPlaceholder, setDayPeriod, stepSegment, timeUnitTranslationKey, toSizeVars, toTreeNodes, typeDigit, useAnchoredPosition, useCombobox, useComboboxContext, useControlledState, useCreateForm, useDateTimeFormat, useDelay, useDialogContext, useDrawerContext, useEventCallbackStabilizer, useFilterValueTranslation, useFocusGuards, useFocusManagement, useFocusOnceVisible, useFocusTrap, useForm, useFormField, useFormObserver, useFormObserverKey, useHandleRefs, useHightideConfig, useHightideTranslation, useICUTranslation, useIsMounted, useLanguage, useListNavigation, useLocale, useLogOnce, useLogUnstableDependencies, useMultiSelect, useMultiSelectContext, useMultiSelectOptionDisplayLocation, useMultiSelection, useNavigationContext, useNavigationItem, useOutsideClick, useOverlayRegistry, useOverwritableState, usePopUpContext, usePresenceRef, useRerender, useResizeObserver, useScrollObserver, useSearch, useSelect, useSelectContext, useSelectOptionDisplayLocation, useSingleSelection, useStorage, useSwipeGesture, useTabContext, useTableColumnDefinitionContext, useTableContainerContext, useTableStateContext, useTableStateWithoutSizingContext, useTheme, useTimeZone, useTooltip, useTransitionState, useTranslatedValidators, useTreeNavigation, useTypeAheadSearch, useUpdatingDateString, useNavigationContext as useVerticalNavigationContext, useNavigationItem as useVerticalNavigationItem, useWindowResizeObserver, validateEmail, writeToClipboard };
package/dist/index.js CHANGED
@@ -7186,6 +7186,7 @@ __export(index_exports, {
7186
7186
  useSelectOptionDisplayLocation: () => useSelectOptionDisplayLocation,
7187
7187
  useSingleSelection: () => useSingleSelection,
7188
7188
  useStorage: () => useStorage,
7189
+ useSwipeGesture: () => useSwipeGesture,
7189
7190
  useTabContext: () => useTabContext,
7190
7191
  useTableColumnDefinitionContext: () => useTableColumnDefinitionContext,
7191
7192
  useTableContainerContext: () => useTableContainerContext,
@@ -15004,7 +15005,7 @@ var AppPage = ({ children, headerActions, sidebarProps, ...props }) => {
15004
15005
  const toNavigationItems = (0, import_react61.useCallback)((items) => {
15005
15006
  return items?.map((item) => ({
15006
15007
  id: item.id,
15007
- label: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("span", { className: (0, import_clsx15.default)("flex-row-2 items-center", { "text-primary": item.isActive }), children: [
15008
+ label: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("span", { className: "app-page-navigation-item-label", "data-acitve": item.isActive ? "" : void 0, children: [
15008
15009
  item.icon && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "size-5", children: item.icon }),
15009
15010
  item.label
15010
15011
  ] }),
@@ -15014,8 +15015,8 @@ var AppPage = ({ children, headerActions, sidebarProps, ...props }) => {
15014
15015
  })) ?? void 0;
15015
15016
  }, []);
15016
15017
  const navigationItems = (0, import_react61.useMemo)(() => toNavigationItems(
15017
- sidebarProps.items
15018
- ), [sidebarProps.items, toNavigationItems]);
15018
+ sidebarProps.navigationItems
15019
+ ), [sidebarProps.navigationItems, toNavigationItems]);
15019
15020
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
15020
15021
  "div",
15021
15022
  {
@@ -23720,26 +23721,221 @@ var useRerender = () => {
23720
23721
  return (0, import_react129.useReducer)(() => ({}), {})[1];
23721
23722
  };
23722
23723
 
23723
- // src/hooks/useUpdatingDateString.ts
23724
+ // src/hooks/useSwipeGesture.ts
23724
23725
  var import_react130 = require("react");
23726
+ var useSwipeGesture = ({
23727
+ elementRef,
23728
+ inputMode = "touch",
23729
+ onSwipe,
23730
+ startRegion,
23731
+ threshold = 50,
23732
+ crossAxisThreshold = 100,
23733
+ maxSwipeTime = 100
23734
+ }) => {
23735
+ const onSwipeRef = (0, import_react130.useRef)(onSwipe);
23736
+ const startRegionRef = (0, import_react130.useRef)(startRegion);
23737
+ const thresholdRef = (0, import_react130.useRef)(threshold);
23738
+ const crossAxisThresholdRef = (0, import_react130.useRef)(crossAxisThreshold);
23739
+ const maxSwipeTimeRef = (0, import_react130.useRef)(maxSwipeTime);
23740
+ const gestureStartRef = (0, import_react130.useRef)(null);
23741
+ const gestureEndRef = (0, import_react130.useRef)(null);
23742
+ const isScrollingRef = (0, import_react130.useRef)(false);
23743
+ const isMouseDownRef = (0, import_react130.useRef)(false);
23744
+ (0, import_react130.useEffect)(() => {
23745
+ onSwipeRef.current = onSwipe;
23746
+ startRegionRef.current = startRegion;
23747
+ thresholdRef.current = threshold;
23748
+ crossAxisThresholdRef.current = crossAxisThreshold;
23749
+ maxSwipeTimeRef.current = maxSwipeTime;
23750
+ }, [onSwipe, startRegion, threshold, crossAxisThreshold, maxSwipeTime]);
23751
+ const isWithinStartRegion = (x, y) => {
23752
+ const region = startRegionRef.current;
23753
+ if (!region) return true;
23754
+ if (region.minX !== void 0 && x < region.minX) return false;
23755
+ if (region.maxX !== void 0 && x > region.maxX) return false;
23756
+ if (region.minY !== void 0 && y < region.minY) return false;
23757
+ if (region.maxY !== void 0 && y > region.maxY) return false;
23758
+ return true;
23759
+ };
23760
+ const findScrollableParent = (element) => {
23761
+ if (!element) return null;
23762
+ const table = element.closest("table") || element.closest('[role="table"]');
23763
+ if (table) {
23764
+ let parent = table.parentElement;
23765
+ while (parent) {
23766
+ const style = window.getComputedStyle(parent);
23767
+ if (style.overflow === "auto" || style.overflow === "scroll" || style.overflowY === "auto" || style.overflowY === "scroll" || style.overflowX === "auto" || style.overflowX === "scroll") {
23768
+ return parent;
23769
+ }
23770
+ parent = parent.parentElement;
23771
+ }
23772
+ return table;
23773
+ }
23774
+ let current = element;
23775
+ while (current) {
23776
+ const style = window.getComputedStyle(current);
23777
+ if (style.overflow === "auto" || style.overflow === "scroll" || style.overflowY === "auto" || style.overflowY === "scroll" || style.overflowX === "auto" || style.overflowX === "scroll") {
23778
+ return current;
23779
+ }
23780
+ current = current.parentElement;
23781
+ }
23782
+ return null;
23783
+ };
23784
+ (0, import_react130.useEffect)(() => {
23785
+ const element = elementRef?.current ?? null;
23786
+ const target = element ?? window;
23787
+ const listenTouch = inputMode === "touch" || inputMode === "both";
23788
+ const listenMouse = inputMode === "mouse" || inputMode === "both";
23789
+ const onGestureStart = (x, y, eventTarget) => {
23790
+ console.log("onGestureStart", x, y);
23791
+ if (!isWithinStartRegion(x, y)) return;
23792
+ const scrollableParent = findScrollableParent(eventTarget);
23793
+ gestureEndRef.current = null;
23794
+ gestureStartRef.current = {
23795
+ x,
23796
+ y,
23797
+ scrollY: scrollableParent?.scrollTop ?? window.scrollY,
23798
+ time: performance.now()
23799
+ };
23800
+ isScrollingRef.current = !!scrollableParent;
23801
+ };
23802
+ const onGestureMove = (x, y, eventTarget) => {
23803
+ console.log("onGestureMove", x, y);
23804
+ const scrollableParent = findScrollableParent(eventTarget);
23805
+ const currentScrollY = scrollableParent?.scrollTop ?? window.scrollY;
23806
+ gestureEndRef.current = {
23807
+ x,
23808
+ y,
23809
+ scrollY: currentScrollY,
23810
+ time: performance.now()
23811
+ };
23812
+ if (gestureStartRef.current && Math.abs(currentScrollY - gestureStartRef.current.scrollY) > 5) {
23813
+ isScrollingRef.current = true;
23814
+ }
23815
+ };
23816
+ const resolveSwipeDirection = (start, end) => {
23817
+ const deltaX = end.x - start.x;
23818
+ const deltaY = end.y - start.y;
23819
+ const absX = Math.abs(deltaX);
23820
+ const absY = Math.abs(deltaY);
23821
+ const minDistance = thresholdRef.current;
23822
+ const maxCrossAxis = crossAxisThresholdRef.current;
23823
+ if (absX < minDistance && absY < minDistance) {
23824
+ return null;
23825
+ }
23826
+ if (absX >= absY && absX >= minDistance && absY <= maxCrossAxis) {
23827
+ return deltaX > 0 ? "leftToRight" : "rightToLeft";
23828
+ }
23829
+ if (absY > absX && absY >= minDistance && absX <= maxCrossAxis) {
23830
+ return deltaY > 0 ? "topToBottom" : "bottomToTop";
23831
+ }
23832
+ return null;
23833
+ };
23834
+ const onGestureEnd = () => {
23835
+ const start = gestureStartRef.current;
23836
+ const end = gestureEndRef.current;
23837
+ if (!start || !end) {
23838
+ gestureStartRef.current = null;
23839
+ gestureEndRef.current = null;
23840
+ isScrollingRef.current = false;
23841
+ return;
23842
+ }
23843
+ if (isScrollingRef.current || Math.abs(start.scrollY - end.scrollY) > 5) {
23844
+ gestureStartRef.current = null;
23845
+ gestureEndRef.current = null;
23846
+ isScrollingRef.current = false;
23847
+ return;
23848
+ }
23849
+ const maxSwipeTime2 = maxSwipeTimeRef.current;
23850
+ if (maxSwipeTime2 !== void 0 && end.time - start.time > maxSwipeTime2) {
23851
+ gestureStartRef.current = null;
23852
+ gestureEndRef.current = null;
23853
+ isScrollingRef.current = false;
23854
+ return;
23855
+ }
23856
+ const direction = resolveSwipeDirection(start, end);
23857
+ if (direction && onSwipeRef.current) {
23858
+ onSwipeRef.current({ direction });
23859
+ }
23860
+ gestureStartRef.current = null;
23861
+ gestureEndRef.current = null;
23862
+ isScrollingRef.current = false;
23863
+ };
23864
+ const onTouchStart = (e) => {
23865
+ if (!e.touches[0]) return;
23866
+ onGestureStart(e.touches[0].clientX, e.touches[0].clientY, e.target);
23867
+ };
23868
+ const onTouchMove = (e) => {
23869
+ if (!e.touches[0]) return;
23870
+ onGestureMove(e.touches[0].clientX, e.touches[0].clientY, e.target);
23871
+ };
23872
+ const onTouchEnd = () => {
23873
+ onGestureEnd();
23874
+ };
23875
+ const onMouseMove = (e) => {
23876
+ if (!isMouseDownRef.current) return;
23877
+ onGestureMove(e.clientX, e.clientY, e.target);
23878
+ };
23879
+ const onMouseUp = () => {
23880
+ if (!isMouseDownRef.current) return;
23881
+ isMouseDownRef.current = false;
23882
+ window.removeEventListener("mousemove", onMouseMove);
23883
+ window.removeEventListener("mouseup", onMouseUp);
23884
+ onGestureEnd();
23885
+ };
23886
+ const onMouseDown = (e) => {
23887
+ if (e.button !== 0) return;
23888
+ if (!isWithinStartRegion(e.clientX, e.clientY)) return;
23889
+ isMouseDownRef.current = true;
23890
+ onGestureStart(e.clientX, e.clientY, e.target);
23891
+ window.addEventListener("mousemove", onMouseMove);
23892
+ window.addEventListener("mouseup", onMouseUp);
23893
+ };
23894
+ const passiveOptions = { passive: true };
23895
+ if (listenTouch) {
23896
+ target.addEventListener("touchstart", onTouchStart, passiveOptions);
23897
+ target.addEventListener("touchmove", onTouchMove, passiveOptions);
23898
+ target.addEventListener("touchend", onTouchEnd, passiveOptions);
23899
+ }
23900
+ if (listenMouse) {
23901
+ target.addEventListener("mousedown", onMouseDown);
23902
+ }
23903
+ return () => {
23904
+ if (listenTouch) {
23905
+ target.removeEventListener("touchstart", onTouchStart);
23906
+ target.removeEventListener("touchmove", onTouchMove);
23907
+ target.removeEventListener("touchend", onTouchEnd);
23908
+ }
23909
+ if (listenMouse) {
23910
+ target.removeEventListener("mousedown", onMouseDown);
23911
+ window.removeEventListener("mousemove", onMouseMove);
23912
+ window.removeEventListener("mouseup", onMouseUp);
23913
+ }
23914
+ };
23915
+ }, [elementRef, inputMode]);
23916
+ return elementRef;
23917
+ };
23918
+
23919
+ // src/hooks/useUpdatingDateString.ts
23920
+ var import_react131 = require("react");
23725
23921
  var useUpdatingDateString = ({ absoluteFormat = "dateTime", localeOverride, is24HourFormat: is24HourFormatOverride, timeZone: timeZoneOverride, date }) => {
23726
23922
  const { locale: contextLocale, is24HourFormat: contextIs24HourFormat, timeZone: contextTimeZone } = useLocale();
23727
23923
  const locale = localeOverride ?? contextLocale;
23728
23924
  const is24HourFormat = is24HourFormatOverride ?? contextIs24HourFormat ?? true;
23729
23925
  const timeZone = timeZoneOverride ?? contextTimeZone;
23730
- const [dateAndTimeStrings, setDateAndTimeStrings] = (0, import_react130.useState)({
23926
+ const [dateAndTimeStrings, setDateAndTimeStrings] = (0, import_react131.useState)({
23731
23927
  compareDate: date,
23732
23928
  absolute: DateUtils.formatAbsolute(date, locale, absoluteFormat, { is24HourFormat, timeZone }),
23733
23929
  relative: DateUtils.formatRelative(date, locale)
23734
23930
  });
23735
- (0, import_react130.useEffect)(() => {
23931
+ (0, import_react131.useEffect)(() => {
23736
23932
  setDateAndTimeStrings({
23737
23933
  compareDate: date,
23738
23934
  absolute: DateUtils.formatAbsolute(date, locale, absoluteFormat, { is24HourFormat, timeZone }),
23739
23935
  relative: DateUtils.formatRelative(date, locale)
23740
23936
  });
23741
23937
  }, [date, absoluteFormat, locale, is24HourFormat, timeZone]);
23742
- (0, import_react130.useEffect)(() => {
23938
+ (0, import_react131.useEffect)(() => {
23743
23939
  let timeoutId;
23744
23940
  const startTimer = () => {
23745
23941
  const now = /* @__PURE__ */ new Date();
@@ -23775,7 +23971,7 @@ var validateEmail = (email) => {
23775
23971
  };
23776
23972
 
23777
23973
  // src/hooks/useValidators.ts
23778
- var import_react131 = require("react");
23974
+ var import_react132 = require("react");
23779
23975
  var notEmpty = (value) => {
23780
23976
  if (!value) {
23781
23977
  return "notEmpty";
@@ -23825,7 +24021,7 @@ var UseValidators = {
23825
24021
  };
23826
24022
  var useTranslatedValidators = () => {
23827
24023
  const translation = useHightideTranslation();
23828
- return (0, import_react131.useMemo)(() => ({
24024
+ return (0, import_react132.useMemo)(() => ({
23829
24025
  notEmpty: (value) => {
23830
24026
  const result = notEmpty(value);
23831
24027
  if (result) {
@@ -24382,6 +24578,7 @@ var PromiseUtils = {
24382
24578
  useSelectOptionDisplayLocation,
24383
24579
  useSingleSelection,
24384
24580
  useStorage,
24581
+ useSwipeGesture,
24385
24582
  useTabContext,
24386
24583
  useTableColumnDefinitionContext,
24387
24584
  useTableContainerContext,