@ahrowe/ui 0.35.0 → 0.37.0
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/README.md +102 -72
- package/dist/cjs-types/common/accordion/accordion.d.ts +4 -0
- package/dist/cjs-types/common/accordion/accordion.types.d.ts +21 -0
- package/dist/cjs-types/common/accordion/index.d.ts +2 -0
- package/dist/cjs-types/common/actionButtons/actionButtons.d.ts +2 -0
- package/dist/cjs-types/common/actionButtons/actionButtons.types.d.ts +34 -0
- package/dist/cjs-types/common/actionButtons/index.d.ts +2 -0
- package/dist/cjs-types/common/actionIcon/actionIcon.d.ts +4 -0
- package/dist/cjs-types/common/actionIcon/actionIcon.types.d.ts +15 -0
- package/dist/cjs-types/common/actionIcon/index.d.ts +2 -0
- package/dist/cjs-types/common/alert/alert.d.ts +4 -0
- package/dist/cjs-types/common/alert/alert.types.d.ts +30 -0
- package/dist/cjs-types/common/alert/index.d.ts +2 -0
- package/dist/cjs-types/common/animatedIcon/animatedIcon.d.ts +3 -0
- package/dist/cjs-types/common/animatedIcon/animatedIcon.types.d.ts +25 -0
- package/dist/cjs-types/common/animatedIcon/index.d.ts +2 -0
- package/dist/cjs-types/common/animatedLogo/animatedLogo.d.ts +4 -0
- package/dist/cjs-types/common/animatedLogo/animatedLogo.types.d.ts +35 -0
- package/dist/cjs-types/common/animatedLogo/index.d.ts +2 -0
- package/dist/cjs-types/common/animatedText/animatedText.d.ts +4 -0
- package/dist/cjs-types/common/animatedText/animatedText.types.d.ts +65 -0
- package/dist/cjs-types/common/animatedText/index.d.ts +2 -0
- package/dist/cjs-types/common/avatar/avatar.d.ts +4 -0
- package/dist/cjs-types/common/avatar/avatar.types.d.ts +26 -0
- package/dist/cjs-types/common/avatar/avatarGroup.d.ts +4 -0
- package/dist/cjs-types/common/avatar/index.d.ts +3 -0
- package/dist/cjs-types/common/badge/badge.d.ts +4 -0
- package/dist/cjs-types/common/badge/badge.types.d.ts +31 -0
- package/dist/cjs-types/common/badge/index.d.ts +2 -0
- package/dist/cjs-types/common/bodyEnd/bodyEnd.d.ts +4 -0
- package/dist/cjs-types/common/bodyEnd/bodyEnd.types.d.ts +4 -0
- package/dist/cjs-types/common/bodyEnd/index.d.ts +2 -0
- package/dist/cjs-types/common/breadcrumb/breadcrumb.d.ts +4 -0
- package/dist/cjs-types/common/breadcrumb/breadcrumb.types.d.ts +33 -0
- package/dist/cjs-types/common/breadcrumb/index.d.ts +2 -0
- package/dist/cjs-types/common/button/button.d.ts +9 -0
- package/dist/cjs-types/common/button/button.types.d.ts +42 -0
- package/dist/cjs-types/common/button/index.d.ts +2 -0
- package/dist/cjs-types/common/buttonGroup/buttonGroup.d.ts +4 -0
- package/dist/cjs-types/common/buttonGroup/buttonGroup.types.d.ts +12 -0
- package/dist/cjs-types/common/buttonGroup/index.d.ts +2 -0
- package/dist/cjs-types/common/card/Card.d.ts +4 -0
- package/dist/cjs-types/common/card/CardActions.d.ts +4 -0
- package/dist/cjs-types/common/card/CardContent.d.ts +4 -0
- package/dist/cjs-types/common/card/CardHeader.d.ts +4 -0
- package/dist/cjs-types/common/card/CardMedia.d.ts +4 -0
- package/dist/cjs-types/common/card/card.types.d.ts +55 -0
- package/dist/cjs-types/common/card/index.d.ts +6 -0
- package/dist/cjs-types/common/carousel/carousel.d.ts +4 -0
- package/dist/cjs-types/common/carousel/carousel.types.d.ts +35 -0
- package/dist/cjs-types/common/carousel/index.d.ts +2 -0
- package/dist/cjs-types/common/checkbox/checkbox.d.ts +4 -0
- package/dist/cjs-types/common/checkbox/checkbox.types.d.ts +27 -0
- package/dist/cjs-types/common/checkbox/index.d.ts +2 -0
- package/dist/cjs-types/common/chip/chip.d.ts +4 -0
- package/dist/cjs-types/common/chip/chip.types.d.ts +35 -0
- package/dist/cjs-types/common/chip/chipContainer.d.ts +4 -0
- package/dist/cjs-types/common/chip/index.d.ts +3 -0
- package/dist/cjs-types/common/colorPicker/colorPicker.d.ts +4 -0
- package/dist/cjs-types/common/colorPicker/colorPicker.types.d.ts +25 -0
- package/dist/cjs-types/common/colorPicker/index.d.ts +2 -0
- package/dist/cjs-types/common/colorPicker/toHex.d.ts +11 -0
- package/dist/cjs-types/common/configProvider/configProvider.d.ts +13 -0
- package/dist/cjs-types/common/configProvider/configProvider.types.d.ts +133 -0
- package/dist/cjs-types/common/configProvider/index.d.ts +6 -0
- package/dist/cjs-types/common/configProvider/presentation.types.d.ts +14 -0
- package/dist/cjs-types/common/configProvider/useComponentDefaults.d.ts +17 -0
- package/dist/cjs-types/common/configProvider/useLabels.d.ts +22 -0
- package/dist/cjs-types/common/configProvider/usePresentationDefault.d.ts +8 -0
- package/dist/cjs-types/common/confirmModal/confirmModal.d.ts +4 -0
- package/dist/cjs-types/common/confirmModal/confirmModal.types.d.ts +24 -0
- package/dist/cjs-types/common/confirmModal/index.d.ts +2 -0
- package/dist/cjs-types/common/datePicker/components/datePickerMonth/datePickerMonth.d.ts +2 -0
- package/dist/cjs-types/common/datePicker/components/datePickerMonth/datePickerMonth.types.d.ts +23 -0
- package/dist/cjs-types/common/datePicker/components/datePickerMonth/index.d.ts +1 -0
- package/dist/cjs-types/common/datePicker/dateFunctions.d.ts +44 -0
- package/dist/cjs-types/common/datePicker/datePicker.d.ts +3 -0
- package/dist/cjs-types/common/datePicker/datePicker.types.d.ts +60 -0
- package/dist/cjs-types/common/datePicker/index.d.ts +2 -0
- package/dist/cjs-types/common/divider/divider.d.ts +4 -0
- package/dist/cjs-types/common/divider/divider.types.d.ts +21 -0
- package/dist/cjs-types/common/divider/index.d.ts +2 -0
- package/dist/cjs-types/common/drawer/drawer.d.ts +4 -0
- package/dist/cjs-types/common/drawer/drawer.types.d.ts +15 -0
- package/dist/cjs-types/common/drawer/index.d.ts +2 -0
- package/dist/cjs-types/common/dropZone/dropZone.d.ts +4 -0
- package/dist/cjs-types/common/dropZone/dropZone.types.d.ts +90 -0
- package/dist/cjs-types/common/dropZone/index.d.ts +2 -0
- package/dist/cjs-types/common/dropdown/dropdown.d.ts +4 -0
- package/dist/cjs-types/common/dropdown/dropdown.types.d.ts +47 -0
- package/dist/cjs-types/common/dropdown/index.d.ts +2 -0
- package/dist/cjs-types/common/emptyState/emptyState.d.ts +3 -0
- package/dist/cjs-types/common/emptyState/emptyState.types.d.ts +20 -0
- package/dist/cjs-types/common/emptyState/index.d.ts +2 -0
- package/dist/cjs-types/common/errorBoundary/errorBoundary.d.ts +14 -0
- package/dist/cjs-types/common/errorBoundary/errorBoundary.types.d.ts +57 -0
- package/dist/cjs-types/common/errorBoundary/index.d.ts +2 -0
- package/dist/cjs-types/common/fab/components/fabBase/fabBase.d.ts +3 -0
- package/dist/cjs-types/common/fab/components/fabBase/fabBase.types.d.ts +12 -0
- package/dist/cjs-types/common/fab/components/fabBase/index.d.ts +1 -0
- package/dist/cjs-types/common/fab/fab.d.ts +3 -0
- package/dist/cjs-types/common/fab/fab.types.d.ts +22 -0
- package/dist/cjs-types/common/fab/index.d.ts +2 -0
- package/dist/cjs-types/common/flip/flip.d.ts +3 -0
- package/dist/cjs-types/common/flip/flip.types.d.ts +44 -0
- package/dist/cjs-types/common/flip/index.d.ts +2 -0
- package/dist/cjs-types/common/floorPlan/floorPlan.faces.d.ts +33 -0
- package/dist/cjs-types/common/floorPlan/floorPlan.fixtures.d.ts +35 -0
- package/dist/cjs-types/common/floorPlan/floorPlan.geometry.d.ts +111 -0
- package/dist/cjs-types/common/floorPlan/floorPlan.graph.d.ts +184 -0
- package/dist/cjs-types/common/floorPlan/floorPlan.hit.d.ts +26 -0
- package/dist/cjs-types/common/floorPlan/floorPlan.json.d.ts +23 -0
- package/dist/cjs-types/common/floorPlan/floorPlan.mesh.d.ts +36 -0
- package/dist/cjs-types/common/floorPlan/floorPlan.path.d.ts +59 -0
- package/dist/cjs-types/common/floorPlan/floorPlan.plan.d.ts +98 -0
- package/dist/cjs-types/common/floorPlan/floorPlan.rooms.d.ts +47 -0
- package/dist/cjs-types/common/floorPlan/floorPlan.snap.d.ts +101 -0
- package/dist/cjs-types/common/floorPlan/floorPlan.triangulate.d.ts +11 -0
- package/dist/cjs-types/common/floorPlan/floorPlan.types.d.ts +276 -0
- package/dist/cjs-types/common/floorPlan/index.d.ts +30 -0
- package/dist/cjs-types/common/floorPlan/legacySvg.d.ts +27 -0
- package/dist/cjs-types/common/hooks/index.d.ts +13 -0
- package/dist/cjs-types/common/hooks/useAnchorTracking.d.ts +40 -0
- package/dist/cjs-types/common/hooks/useCoarsePointer.d.ts +3 -0
- package/dist/cjs-types/common/hooks/useFocusBoundary.d.ts +20 -0
- package/dist/cjs-types/common/hooks/useHotkeys.d.ts +45 -0
- package/dist/cjs-types/common/hooks/useMediaQuery.d.ts +9 -0
- package/dist/cjs-types/common/hooks/useOverlay.d.ts +26 -0
- package/dist/cjs-types/common/hooks/useScrollEdges.d.ts +18 -0
- package/dist/cjs-types/common/hooks/useSheet.d.ts +19 -0
- package/dist/cjs-types/common/hooks/useSwipeDismiss.d.ts +37 -0
- package/dist/cjs-types/common/hooks/useVisualViewportSize.d.ts +13 -0
- package/dist/cjs-types/common/iconPicker/iconPicker.d.ts +3 -0
- package/dist/cjs-types/common/iconPicker/iconPicker.types.d.ts +23 -0
- package/dist/cjs-types/common/iconPicker/index.d.ts +2 -0
- package/dist/cjs-types/common/idleManager/idleManager.d.ts +3 -0
- package/dist/cjs-types/common/idleManager/idleManager.types.d.ts +8 -0
- package/dist/cjs-types/common/idleManager/index.d.ts +2 -0
- package/dist/cjs-types/common/infiniteBlock/useInfiniteScroll.d.ts +5 -0
- package/dist/cjs-types/common/input/index.d.ts +2 -0
- package/dist/cjs-types/common/input/input.d.ts +4 -0
- package/dist/cjs-types/common/input/input.types.d.ts +84 -0
- package/dist/cjs-types/common/inputDropdown/index.d.ts +2 -0
- package/dist/cjs-types/common/inputDropdown/inputDropdown.d.ts +3 -0
- package/dist/cjs-types/common/inputDropdown/inputDropdown.types.d.ts +36 -0
- package/dist/cjs-types/common/interactableDiv/index.d.ts +2 -0
- package/dist/cjs-types/common/interactableDiv/interactableDiv.d.ts +8 -0
- package/dist/cjs-types/common/kanbanBoard/KanbanBoard.d.ts +3 -0
- package/dist/cjs-types/common/kanbanBoard/KanbanColumn.d.ts +45 -0
- package/dist/cjs-types/common/kanbanBoard/KanbanItem.d.ts +3 -0
- package/dist/cjs-types/common/kanbanBoard/index.d.ts +3 -0
- package/dist/cjs-types/common/kanbanBoard/kanbanBoard.types.d.ts +129 -0
- package/dist/cjs-types/common/kanbanBoard/kanbanBoard.utils.d.ts +60 -0
- package/dist/cjs-types/common/klipyPicker/components/gifPreview/gifPreview.d.ts +3 -0
- package/dist/cjs-types/common/klipyPicker/components/gifPreview/gifPreview.types.d.ts +7 -0
- package/dist/cjs-types/common/klipyPicker/components/gifPreview/index.d.ts +1 -0
- package/dist/cjs-types/common/klipyPicker/components/gifView/gifView.d.ts +3 -0
- package/dist/cjs-types/common/klipyPicker/components/gifView/gifView.types.d.ts +4 -0
- package/dist/cjs-types/common/klipyPicker/components/gifView/index.d.ts +1 -0
- package/dist/cjs-types/common/klipyPicker/index.d.ts +2 -0
- package/dist/cjs-types/common/klipyPicker/klipyPicker.d.ts +3 -0
- package/dist/cjs-types/common/klipyPicker/klipyPicker.types.d.ts +15 -0
- package/dist/cjs-types/common/loading/index.d.ts +1 -0
- package/dist/cjs-types/common/loading/spinnerLoading/index.d.ts +2 -0
- package/dist/cjs-types/common/loading/spinnerLoading/spinnerLoading.d.ts +6 -0
- package/dist/cjs-types/common/maskedInput/index.d.ts +2 -0
- package/dist/cjs-types/common/maskedInput/mask.d.ts +48 -0
- package/dist/cjs-types/common/maskedInput/maskedInput.d.ts +13 -0
- package/dist/cjs-types/common/maskedInput/maskedInput.types.d.ts +38 -0
- package/dist/cjs-types/common/menu/index.d.ts +3 -0
- package/dist/cjs-types/common/menu/menu.d.ts +14 -0
- package/dist/cjs-types/common/menu/menu.types.d.ts +61 -0
- package/dist/cjs-types/common/menu/menuHotkeys.d.ts +20 -0
- package/dist/cjs-types/common/modal/index.d.ts +2 -0
- package/dist/cjs-types/common/modal/modal.d.ts +3 -0
- package/dist/cjs-types/common/modal/modal.types.d.ts +31 -0
- package/dist/cjs-types/common/multiSelect/index.d.ts +2 -0
- package/dist/cjs-types/common/multiSelect/multiSelect.d.ts +4 -0
- package/dist/cjs-types/common/multiSelect/multiSelect.types.d.ts +69 -0
- package/dist/cjs-types/common/numberInput/index.d.ts +3 -0
- package/dist/cjs-types/common/numberInput/numberInput.d.ts +5 -0
- package/dist/cjs-types/common/numberInput/numberInput.types.d.ts +76 -0
- package/dist/cjs-types/common/numberInput/useStepRepeat.d.ts +17 -0
- package/dist/cjs-types/common/optionPicker/index.d.ts +2 -0
- package/dist/cjs-types/common/optionPicker/optionPicker.d.ts +4 -0
- package/dist/cjs-types/common/optionPicker/optionPicker.types.d.ts +16 -0
- package/dist/cjs-types/common/otpInput/index.d.ts +2 -0
- package/dist/cjs-types/common/otpInput/otpInput.d.ts +4 -0
- package/dist/cjs-types/common/otpInput/otpInput.types.d.ts +60 -0
- package/dist/cjs-types/common/overscroll/index.d.ts +2 -0
- package/dist/cjs-types/common/overscroll/overscroll.d.ts +2 -0
- package/dist/cjs-types/common/overscroll/overscroll.types.d.ts +14 -0
- package/dist/cjs-types/common/pagination/index.d.ts +2 -0
- package/dist/cjs-types/common/pagination/pagination.d.ts +4 -0
- package/dist/cjs-types/common/pagination/pagination.types.d.ts +45 -0
- package/dist/cjs-types/common/planCanvas/index.d.ts +2 -0
- package/dist/cjs-types/common/planCanvas/planCanvas.d.ts +7 -0
- package/dist/cjs-types/common/planCanvas/planCanvas.types.d.ts +64 -0
- package/dist/cjs-types/common/popover/index.d.ts +2 -0
- package/dist/cjs-types/common/popover/popover.d.ts +3 -0
- package/dist/cjs-types/common/popover/popover.types.d.ts +94 -0
- package/dist/cjs-types/common/popover/usePopoverPosition.d.ts +45 -0
- package/dist/cjs-types/common/progressBar/index.d.ts +2 -0
- package/dist/cjs-types/common/progressBar/progressBar.d.ts +5 -0
- package/dist/cjs-types/common/progressBar/progressBar.types.d.ts +18 -0
- package/dist/cjs-types/common/radioGroup/index.d.ts +2 -0
- package/dist/cjs-types/common/radioGroup/radioGroup.d.ts +4 -0
- package/dist/cjs-types/common/radioGroup/radioGroup.types.d.ts +45 -0
- package/dist/cjs-types/common/rating/index.d.ts +2 -0
- package/dist/cjs-types/common/rating/rating.d.ts +4 -0
- package/dist/cjs-types/common/rating/rating.types.d.ts +19 -0
- package/dist/cjs-types/common/revealLens/index.d.ts +2 -0
- package/dist/cjs-types/common/revealLens/revealLens.d.ts +4 -0
- package/dist/cjs-types/common/revealLens/revealLens.types.d.ts +24 -0
- package/dist/cjs-types/common/ripple/index.d.ts +2 -0
- package/dist/cjs-types/common/ripple/ripple.d.ts +5 -0
- package/dist/cjs-types/common/ripple/ripple.types.d.ts +16 -0
- package/dist/cjs-types/common/roomDrawer/index.d.ts +2 -0
- package/dist/cjs-types/common/roomDrawer/roomDrawer.d.ts +3 -0
- package/dist/cjs-types/common/roomDrawer/roomDrawer.types.d.ts +308 -0
- package/dist/cjs-types/common/roomDrawer/usePlanHistory.d.ts +24 -0
- package/dist/cjs-types/common/roomViewer/index.d.ts +2 -0
- package/dist/cjs-types/common/roomViewer/roomViewer.d.ts +10 -0
- package/dist/cjs-types/common/roomViewer/roomViewer.types.d.ts +91 -0
- package/dist/cjs-types/common/scrollFade/index.d.ts +2 -0
- package/dist/cjs-types/common/scrollFade/scrollFade.d.ts +4 -0
- package/dist/cjs-types/common/scrollFade/scrollFade.types.d.ts +20 -0
- package/dist/cjs-types/common/scrollbarProvider/index.d.ts +2 -0
- package/dist/cjs-types/common/scrollbarProvider/scrollbarProvider.d.ts +7 -0
- package/dist/cjs-types/common/searchInput/index.d.ts +2 -0
- package/dist/cjs-types/common/searchInput/searchInput.d.ts +3 -0
- package/dist/cjs-types/common/searchInput/searchInput.types.d.ts +28 -0
- package/dist/cjs-types/common/sectionHeader/index.d.ts +2 -0
- package/dist/cjs-types/common/sectionHeader/sectionHeader.d.ts +4 -0
- package/dist/cjs-types/common/sectionHeader/sectionHeader.types.d.ts +27 -0
- package/dist/cjs-types/common/sheetBackdrop/index.d.ts +2 -0
- package/dist/cjs-types/common/sheetBackdrop/sheetBackdrop.d.ts +16 -0
- package/dist/cjs-types/common/sheetBackdrop/sheetBackdrop.types.d.ts +7 -0
- package/dist/cjs-types/common/skeleton/index.d.ts +2 -0
- package/dist/cjs-types/common/skeleton/skeleton.d.ts +4 -0
- package/dist/cjs-types/common/skeleton/skeleton.types.d.ts +22 -0
- package/dist/cjs-types/common/slider/index.d.ts +2 -0
- package/dist/cjs-types/common/slider/slider.d.ts +3 -0
- package/dist/cjs-types/common/slider/slider.types.d.ts +68 -0
- package/dist/cjs-types/common/splitButton/index.d.ts +2 -0
- package/dist/cjs-types/common/splitButton/splitButton.d.ts +3 -0
- package/dist/cjs-types/common/splitButton/splitButton.types.d.ts +35 -0
- package/dist/cjs-types/common/stepper/index.d.ts +2 -0
- package/dist/cjs-types/common/stepper/stepper.d.ts +3 -0
- package/dist/cjs-types/common/stepper/stepper.types.d.ts +77 -0
- package/dist/cjs-types/common/sticky/index.d.ts +1 -0
- package/dist/cjs-types/common/sticky/sticky.d.ts +3 -0
- package/dist/cjs-types/common/sticky/sticky.types.d.ts +37 -0
- package/dist/cjs-types/common/sticky/stickyStack.d.ts +51 -0
- package/dist/cjs-types/common/switch/index.d.ts +2 -0
- package/dist/cjs-types/common/switch/switch.d.ts +4 -0
- package/dist/cjs-types/common/switch/switch.types.d.ts +21 -0
- package/dist/cjs-types/common/tabHeader/index.d.ts +2 -0
- package/dist/cjs-types/common/tabHeader/tabHeader.d.ts +4 -0
- package/dist/cjs-types/common/tabHeader/tabHeader.types.d.ts +20 -0
- package/dist/cjs-types/common/textarea/index.d.ts +2 -0
- package/dist/cjs-types/common/textarea/textarea.d.ts +3 -0
- package/dist/cjs-types/common/textarea/textarea.types.d.ts +2 -0
- package/dist/cjs-types/common/themeProvider/defaultTheme.d.ts +7 -0
- package/dist/cjs-types/common/themeProvider/index.d.ts +4 -0
- package/dist/cjs-types/common/themeProvider/lightTheme.d.ts +13 -0
- package/dist/cjs-types/common/themeProvider/theme.types.d.ts +272 -0
- package/dist/cjs-types/common/themeProvider/themeProvider.d.ts +38 -0
- package/dist/cjs-types/common/themeProvider/themeVariablesContext.d.ts +11 -0
- package/dist/cjs-types/common/themeProvider/useTheme.d.ts +4 -0
- package/dist/cjs-types/common/tilt/index.d.ts +4 -0
- package/dist/cjs-types/common/tilt/tilt.d.ts +3 -0
- package/dist/cjs-types/common/tilt/tilt.types.d.ts +40 -0
- package/dist/cjs-types/common/tilt/tiltMath.d.ts +24 -0
- package/dist/cjs-types/common/tiltGroup/index.d.ts +3 -0
- package/dist/cjs-types/common/tiltGroup/tiltGroup.d.ts +6 -0
- package/dist/cjs-types/common/tiltGroup/tiltGroup.types.d.ts +16 -0
- package/dist/cjs-types/common/timeInput/components/clockDial/clockDial.d.ts +3 -0
- package/dist/cjs-types/common/timeInput/components/clockDial/clockDial.types.d.ts +24 -0
- package/dist/cjs-types/common/timeInput/components/clockDial/index.d.ts +1 -0
- package/dist/cjs-types/common/timeInput/index.d.ts +1 -0
- package/dist/cjs-types/common/timeInput/timeFunctions.d.ts +36 -0
- package/dist/cjs-types/common/timeInput/timeInput.d.ts +3 -0
- package/dist/cjs-types/common/timeInput/timeInput.types.d.ts +44 -0
- package/dist/cjs-types/common/timeline/index.d.ts +2 -0
- package/dist/cjs-types/common/timeline/timeline.d.ts +3 -0
- package/dist/cjs-types/common/timeline/timeline.types.d.ts +51 -0
- package/dist/cjs-types/common/timer/index.d.ts +2 -0
- package/dist/cjs-types/common/timer/timer.chime.d.ts +1 -0
- package/dist/cjs-types/common/timer/timer.d.ts +3 -0
- package/dist/cjs-types/common/timer/timer.types.d.ts +110 -0
- package/dist/cjs-types/common/toast/index.d.ts +3 -0
- package/dist/cjs-types/common/toast/toast.d.ts +11 -0
- package/dist/cjs-types/common/toast/toast.types.d.ts +50 -0
- package/dist/cjs-types/common/toast/toastProvider.d.ts +8 -0
- package/dist/cjs-types/common/toast/toastService.d.ts +7 -0
- package/dist/cjs-types/common/tooltip/index.d.ts +2 -0
- package/dist/cjs-types/common/tooltip/tooltip.d.ts +3 -0
- package/dist/cjs-types/common/tooltip/tooltip.types.d.ts +17 -0
- package/dist/cjs-types/common/tree/flattenTree.d.ts +3 -0
- package/dist/cjs-types/common/tree/index.d.ts +3 -0
- package/dist/cjs-types/common/tree/tree.d.ts +4 -0
- package/dist/cjs-types/common/tree/tree.types.d.ts +67 -0
- package/dist/cjs-types/common/types/actions.types.d.ts +7 -0
- package/dist/cjs-types/common/types/baseProps.types.d.ts +29 -0
- package/dist/cjs-types/common/types/icon.types.d.ts +17 -0
- package/dist/cjs-types/common/types/slots.types.d.ts +4 -0
- package/dist/cjs-types/common/utils/activationKey.d.ts +9 -0
- package/dist/cjs-types/common/utils/interactiveTarget.d.ts +7 -0
- package/dist/cjs-types/common/utils/listNavigation.d.ts +49 -0
- package/dist/cjs-types/common/utils/mergeRefs.d.ts +12 -0
- package/dist/cjs-types/common/utils/renderIcon.d.ts +29 -0
- package/dist/cjs-types/common/utils/scrollAncestors.d.ts +12 -0
- package/dist/cjs-types/common/utils/visualViewport.d.ts +7 -0
- package/dist/cjs-types/common/virtualList/index.d.ts +2 -0
- package/dist/cjs-types/common/virtualList/scroller.d.ts +33 -0
- package/dist/cjs-types/common/virtualList/useColumnResize.d.ts +59 -0
- package/dist/cjs-types/common/virtualList/useColumns.d.ts +52 -0
- package/dist/cjs-types/common/virtualList/useHeaderNavigation.d.ts +22 -0
- package/dist/cjs-types/common/virtualList/useRowDrag.d.ts +63 -0
- package/dist/cjs-types/common/virtualList/useRowNavigation.d.ts +60 -0
- package/dist/cjs-types/common/virtualList/useSelection.d.ts +24 -0
- package/dist/cjs-types/common/virtualList/useSorting.d.ts +26 -0
- package/dist/cjs-types/common/virtualList/useVirtualWindow.d.ts +55 -0
- package/dist/cjs-types/common/virtualList/virtualList.d.ts +5 -0
- package/dist/cjs-types/common/virtualList/virtualList.types.d.ts +357 -0
- package/dist/cjs-types/common/virtualList/virtualList.utils.d.ts +126 -0
- package/dist/cjs-types/common/virtualList/virtualListHeader.d.ts +35 -0
- package/dist/cjs-types/common/virtualList/virtualRow.d.ts +62 -0
- package/dist/cjs-types/common/wizard/index.d.ts +1 -0
- package/dist/cjs-types/common/wizard/wizard.d.ts +3 -0
- package/dist/cjs-types/common/wizard/wizard.types.d.ts +12 -0
- package/dist/cjs-types/hooks/useWindowSize.d.ts +6 -0
- package/dist/cjs-types/index.d.ts +155 -0
- package/dist/cjs-types/package.json +3 -0
- package/dist/cjs-types/services/formValidation/FormValidatorGroupWithForm.d.ts +18 -0
- package/dist/cjs-types/services/formValidation/index.d.ts +5 -0
- package/dist/cjs-types/services/formValidation/useFormValidatorGroup.d.ts +10 -0
- package/dist/cjs-types/services/formValidation/validatableComponent.d.ts +36 -0
- package/dist/cjs-types/services/klipy.d.ts +36 -0
- package/dist/cjs-types/services/localization.d.ts +3 -0
- package/dist/esm/common/carousel/carousel.mjs +1 -1
- package/dist/esm/common/carousel/carousel.mjs.map +1 -1
- package/dist/esm/common/carousel/carousel.module.mjs.map +1 -1
- package/dist/esm/common/confirmModal/confirmModal.mjs +1 -1
- package/dist/esm/common/confirmModal/confirmModal.mjs.map +1 -1
- package/dist/esm/common/datePicker/datePicker.mjs +1 -1
- package/dist/esm/common/datePicker/datePicker.mjs.map +1 -1
- package/dist/esm/common/drawer/drawer.module.mjs.map +1 -1
- package/dist/esm/common/dropdown/dropdown.mjs +1 -1
- package/dist/esm/common/dropdown/dropdown.mjs.map +1 -1
- package/dist/esm/common/dropdown/dropdown.module.mjs +1 -1
- package/dist/esm/common/dropdown/dropdown.module.mjs.map +1 -1
- package/dist/esm/common/hooks/useHotkeys.mjs +2 -0
- package/dist/esm/common/hooks/useHotkeys.mjs.map +1 -0
- package/dist/esm/common/hooks/useScrollEdges.mjs +2 -0
- package/dist/esm/common/hooks/useScrollEdges.mjs.map +1 -0
- package/dist/esm/common/hooks/useSwipeDismiss.mjs +1 -1
- package/dist/esm/common/hooks/useSwipeDismiss.mjs.map +1 -1
- package/dist/esm/common/infiniteBlock/useInfiniteScroll.mjs +2 -0
- package/dist/esm/common/infiniteBlock/useInfiniteScroll.mjs.map +1 -0
- package/dist/esm/common/input/input.mjs +1 -1
- package/dist/esm/common/input/input.mjs.map +1 -1
- package/dist/esm/common/input/input.module.mjs +1 -1
- package/dist/esm/common/input/input.module.mjs.map +1 -1
- package/dist/esm/common/inputDropdown/inputDropdown.mjs +1 -1
- package/dist/esm/common/inputDropdown/inputDropdown.mjs.map +1 -1
- package/dist/esm/common/interactableDiv/interactableDiv.mjs +1 -1
- package/dist/esm/common/interactableDiv/interactableDiv.mjs.map +1 -1
- package/dist/esm/common/klipyPicker/components/gifPreview/gifPreview.module.mjs.map +1 -1
- package/dist/esm/common/klipyPicker/components/gifView/gifView.module.mjs.map +1 -1
- package/dist/esm/common/maskedInput/mask.mjs +2 -0
- package/dist/esm/common/maskedInput/mask.mjs.map +1 -0
- package/dist/esm/common/maskedInput/maskedInput.mjs +2 -0
- package/dist/esm/common/maskedInput/maskedInput.mjs.map +1 -0
- package/dist/esm/common/menu/menu.mjs +1 -1
- package/dist/esm/common/menu/menu.mjs.map +1 -1
- package/dist/esm/common/menu/menu.types.mjs.map +1 -1
- package/dist/esm/common/menu/menuHotkeys.mjs +2 -0
- package/dist/esm/common/menu/menuHotkeys.mjs.map +1 -0
- package/dist/esm/common/modal/modal.mjs +1 -1
- package/dist/esm/common/modal/modal.mjs.map +1 -1
- package/dist/esm/common/modal/modal.module.mjs +1 -1
- package/dist/esm/common/modal/modal.module.mjs.map +1 -1
- package/dist/esm/common/multiSelect/multiSelect.mjs +1 -1
- package/dist/esm/common/multiSelect/multiSelect.mjs.map +1 -1
- package/dist/esm/common/multiSelect/multiSelect.module.mjs +1 -1
- package/dist/esm/common/multiSelect/multiSelect.module.mjs.map +1 -1
- package/dist/esm/common/otpInput/otpInput.module.mjs.map +1 -1
- package/dist/esm/common/popover/usePopoverPosition.mjs +1 -1
- package/dist/esm/common/popover/usePopoverPosition.mjs.map +1 -1
- package/dist/esm/common/radioGroup/radioGroup.types.mjs.map +1 -1
- package/dist/esm/common/rating/rating.module.mjs.map +1 -1
- package/dist/esm/common/ripple/ripple.mjs +1 -1
- package/dist/esm/common/ripple/ripple.mjs.map +1 -1
- package/dist/esm/common/scrollFade/scrollFade.mjs +2 -0
- package/dist/esm/common/scrollFade/scrollFade.mjs.map +1 -0
- package/dist/esm/common/scrollFade/scrollFade.module.mjs +2 -0
- package/dist/esm/common/scrollFade/scrollFade.module.mjs.map +1 -0
- package/dist/esm/common/scrollFade/scrollFade.types.mjs +2 -0
- package/dist/esm/common/scrollFade/scrollFade.types.mjs.map +1 -0
- package/dist/esm/common/sticky/sticky.mjs +1 -1
- package/dist/esm/common/sticky/sticky.mjs.map +1 -1
- package/dist/esm/common/sticky/stickyStack.mjs +1 -1
- package/dist/esm/common/sticky/stickyStack.mjs.map +1 -1
- package/dist/esm/common/styles/scrollFade.module.mjs +2 -0
- package/dist/esm/common/styles/scrollFade.module.mjs.map +1 -0
- package/dist/esm/common/styles/sheet.module.mjs.map +1 -1
- package/dist/esm/common/timeInput/timeInput.mjs +1 -1
- package/dist/esm/common/timeInput/timeInput.mjs.map +1 -1
- package/dist/esm/common/utils/interactiveTarget.mjs +2 -0
- package/dist/esm/common/utils/interactiveTarget.mjs.map +1 -0
- package/dist/esm/common/utils/listNavigation.mjs +2 -0
- package/dist/esm/common/utils/listNavigation.mjs.map +1 -0
- package/dist/esm/common/utils/scrollAncestors.mjs +1 -1
- package/dist/esm/common/utils/scrollAncestors.mjs.map +1 -1
- package/dist/esm/common/virtualList/scroller.mjs +2 -0
- package/dist/esm/common/virtualList/scroller.mjs.map +1 -0
- package/dist/esm/common/virtualList/useRowDrag.mjs +1 -1
- package/dist/esm/common/virtualList/useRowDrag.mjs.map +1 -1
- package/dist/esm/common/virtualList/useRowNavigation.mjs +1 -1
- package/dist/esm/common/virtualList/useRowNavigation.mjs.map +1 -1
- package/dist/esm/common/virtualList/useVirtualWindow.mjs +1 -1
- package/dist/esm/common/virtualList/useVirtualWindow.mjs.map +1 -1
- package/dist/esm/common/virtualList/virtualList.mjs +1 -1
- package/dist/esm/common/virtualList/virtualList.mjs.map +1 -1
- package/dist/esm/common/virtualList/virtualList.module.mjs +1 -1
- package/dist/esm/common/virtualList/virtualList.module.mjs.map +1 -1
- package/dist/esm/common/wizard/wizard.module.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/og.png +0 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/mcp.js +341 -56
- package/dist/og.png +0 -0
- package/dist/style.css +1 -1
- package/dist/types/common/accordion/accordion.d.ts +1 -1
- package/dist/types/common/accordion/accordion.types.d.ts +1 -1
- package/dist/types/common/accordion/index.d.ts +2 -2
- package/dist/types/common/actionButtons/actionButtons.d.ts +1 -1
- package/dist/types/common/actionButtons/actionButtons.types.d.ts +3 -3
- package/dist/types/common/actionButtons/index.d.ts +2 -2
- package/dist/types/common/actionIcon/actionIcon.d.ts +1 -1
- package/dist/types/common/actionIcon/actionIcon.types.d.ts +2 -2
- package/dist/types/common/actionIcon/index.d.ts +2 -2
- package/dist/types/common/alert/alert.d.ts +1 -1
- package/dist/types/common/alert/alert.types.d.ts +2 -2
- package/dist/types/common/alert/index.d.ts +2 -2
- package/dist/types/common/animatedIcon/animatedIcon.d.ts +1 -1
- package/dist/types/common/animatedIcon/animatedIcon.types.d.ts +1 -1
- package/dist/types/common/animatedIcon/index.d.ts +2 -2
- package/dist/types/common/animatedLogo/animatedLogo.d.ts +1 -1
- package/dist/types/common/animatedLogo/animatedLogo.types.d.ts +1 -1
- package/dist/types/common/animatedLogo/index.d.ts +2 -2
- package/dist/types/common/animatedText/animatedText.d.ts +1 -1
- package/dist/types/common/animatedText/animatedText.types.d.ts +1 -1
- package/dist/types/common/animatedText/index.d.ts +2 -2
- package/dist/types/common/avatar/avatar.d.ts +1 -1
- package/dist/types/common/avatar/avatar.types.d.ts +2 -2
- package/dist/types/common/avatar/avatarGroup.d.ts +1 -1
- package/dist/types/common/avatar/index.d.ts +3 -3
- package/dist/types/common/badge/badge.d.ts +1 -1
- package/dist/types/common/badge/badge.types.d.ts +1 -1
- package/dist/types/common/badge/index.d.ts +2 -2
- package/dist/types/common/bodyEnd/bodyEnd.d.ts +1 -1
- package/dist/types/common/bodyEnd/index.d.ts +2 -2
- package/dist/types/common/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/types/common/breadcrumb/breadcrumb.types.d.ts +2 -2
- package/dist/types/common/breadcrumb/index.d.ts +2 -2
- package/dist/types/common/button/button.d.ts +1 -1
- package/dist/types/common/button/button.types.d.ts +2 -2
- package/dist/types/common/button/index.d.ts +2 -2
- package/dist/types/common/buttonGroup/buttonGroup.d.ts +1 -1
- package/dist/types/common/buttonGroup/buttonGroup.types.d.ts +1 -1
- package/dist/types/common/buttonGroup/index.d.ts +2 -2
- package/dist/types/common/card/Card.d.ts +1 -1
- package/dist/types/common/card/CardActions.d.ts +1 -1
- package/dist/types/common/card/CardContent.d.ts +1 -1
- package/dist/types/common/card/CardHeader.d.ts +1 -1
- package/dist/types/common/card/CardMedia.d.ts +1 -1
- package/dist/types/common/card/card.types.d.ts +3 -3
- package/dist/types/common/card/index.d.ts +6 -6
- package/dist/types/common/carousel/carousel.d.ts +1 -1
- package/dist/types/common/carousel/carousel.types.d.ts +1 -1
- package/dist/types/common/carousel/index.d.ts +2 -2
- package/dist/types/common/checkbox/checkbox.d.ts +1 -1
- package/dist/types/common/checkbox/checkbox.types.d.ts +2 -2
- package/dist/types/common/checkbox/index.d.ts +2 -2
- package/dist/types/common/chip/chip.d.ts +1 -1
- package/dist/types/common/chip/chip.types.d.ts +1 -1
- package/dist/types/common/chip/chipContainer.d.ts +1 -1
- package/dist/types/common/chip/index.d.ts +3 -3
- package/dist/types/common/colorPicker/colorPicker.d.ts +1 -1
- package/dist/types/common/colorPicker/colorPicker.types.d.ts +1 -1
- package/dist/types/common/colorPicker/index.d.ts +2 -2
- package/dist/types/common/configProvider/configProvider.d.ts +2 -2
- package/dist/types/common/configProvider/configProvider.types.d.ts +44 -44
- package/dist/types/common/configProvider/index.d.ts +6 -6
- package/dist/types/common/configProvider/useComponentDefaults.d.ts +1 -1
- package/dist/types/common/configProvider/useLabels.d.ts +1 -1
- package/dist/types/common/configProvider/usePresentationDefault.d.ts +1 -1
- package/dist/types/common/confirmModal/confirmModal.d.ts +1 -1
- package/dist/types/common/confirmModal/confirmModal.types.d.ts +2 -2
- package/dist/types/common/confirmModal/index.d.ts +2 -2
- package/dist/types/common/datePicker/components/datePickerMonth/datePickerMonth.d.ts +1 -1
- package/dist/types/common/datePicker/components/datePickerMonth/index.d.ts +1 -1
- package/dist/types/common/datePicker/datePicker.d.ts +1 -1
- package/dist/types/common/datePicker/datePicker.types.d.ts +2 -2
- package/dist/types/common/datePicker/index.d.ts +2 -2
- package/dist/types/common/divider/divider.d.ts +1 -1
- package/dist/types/common/divider/divider.types.d.ts +1 -1
- package/dist/types/common/divider/index.d.ts +2 -2
- package/dist/types/common/drawer/drawer.d.ts +1 -1
- package/dist/types/common/drawer/drawer.types.d.ts +1 -1
- package/dist/types/common/drawer/index.d.ts +2 -2
- package/dist/types/common/dropZone/dropZone.d.ts +1 -1
- package/dist/types/common/dropZone/dropZone.types.d.ts +1 -1
- package/dist/types/common/dropZone/index.d.ts +2 -2
- package/dist/types/common/dropdown/dropdown.d.ts +1 -1
- package/dist/types/common/dropdown/dropdown.types.d.ts +3 -3
- package/dist/types/common/dropdown/index.d.ts +2 -2
- package/dist/types/common/emptyState/emptyState.d.ts +1 -1
- package/dist/types/common/emptyState/emptyState.types.d.ts +2 -2
- package/dist/types/common/emptyState/index.d.ts +2 -2
- package/dist/types/common/errorBoundary/errorBoundary.d.ts +1 -1
- package/dist/types/common/errorBoundary/errorBoundary.types.d.ts +1 -1
- package/dist/types/common/errorBoundary/index.d.ts +2 -2
- package/dist/types/common/fab/components/fabBase/fabBase.d.ts +1 -1
- package/dist/types/common/fab/components/fabBase/fabBase.types.d.ts +1 -1
- package/dist/types/common/fab/components/fabBase/index.d.ts +1 -1
- package/dist/types/common/fab/fab.d.ts +1 -1
- package/dist/types/common/fab/fab.types.d.ts +2 -2
- package/dist/types/common/fab/index.d.ts +2 -2
- package/dist/types/common/flip/flip.d.ts +1 -1
- package/dist/types/common/flip/flip.types.d.ts +1 -1
- package/dist/types/common/flip/index.d.ts +2 -2
- package/dist/types/common/floorPlan/floorPlan.faces.d.ts +2 -2
- package/dist/types/common/floorPlan/floorPlan.fixtures.d.ts +1 -1
- package/dist/types/common/floorPlan/floorPlan.geometry.d.ts +1 -1
- package/dist/types/common/floorPlan/floorPlan.graph.d.ts +1 -1
- package/dist/types/common/floorPlan/floorPlan.hit.d.ts +1 -1
- package/dist/types/common/floorPlan/floorPlan.json.d.ts +1 -1
- package/dist/types/common/floorPlan/floorPlan.mesh.d.ts +1 -1
- package/dist/types/common/floorPlan/floorPlan.path.d.ts +1 -1
- package/dist/types/common/floorPlan/floorPlan.plan.d.ts +1 -1
- package/dist/types/common/floorPlan/floorPlan.rooms.d.ts +1 -1
- package/dist/types/common/floorPlan/floorPlan.snap.d.ts +1 -1
- package/dist/types/common/floorPlan/floorPlan.triangulate.d.ts +1 -1
- package/dist/types/common/floorPlan/index.d.ts +22 -22
- package/dist/types/common/floorPlan/legacySvg.d.ts +2 -2
- package/dist/types/common/hooks/index.d.ts +13 -0
- package/dist/types/common/hooks/useHotkeys.d.ts +45 -0
- package/dist/types/common/hooks/useScrollEdges.d.ts +18 -0
- package/dist/types/common/hooks/useSheet.d.ts +1 -1
- package/dist/types/common/hooks/useSwipeDismiss.d.ts +6 -2
- package/dist/types/common/iconPicker/iconPicker.d.ts +1 -1
- package/dist/types/common/iconPicker/iconPicker.types.d.ts +2 -2
- package/dist/types/common/iconPicker/index.d.ts +2 -1
- package/dist/types/common/idleManager/idleManager.d.ts +1 -1
- package/dist/types/common/idleManager/index.d.ts +2 -1
- package/dist/types/common/infiniteBlock/useInfiniteScroll.d.ts +5 -0
- package/dist/types/common/input/index.d.ts +2 -2
- package/dist/types/common/input/input.d.ts +1 -1
- package/dist/types/common/input/input.types.d.ts +2 -2
- package/dist/types/common/inputDropdown/index.d.ts +2 -1
- package/dist/types/common/inputDropdown/inputDropdown.d.ts +1 -1
- package/dist/types/common/inputDropdown/inputDropdown.types.d.ts +2 -2
- package/dist/types/common/interactableDiv/index.d.ts +1 -1
- package/dist/types/common/interactableDiv/interactableDiv.d.ts +1 -1
- package/dist/types/common/kanbanBoard/KanbanBoard.d.ts +1 -1
- package/dist/types/common/kanbanBoard/KanbanColumn.d.ts +1 -1
- package/dist/types/common/kanbanBoard/KanbanItem.d.ts +1 -1
- package/dist/types/common/kanbanBoard/index.d.ts +3 -3
- package/dist/types/common/kanbanBoard/kanbanBoard.types.d.ts +1 -1
- package/dist/types/common/kanbanBoard/kanbanBoard.utils.d.ts +1 -1
- package/dist/types/common/klipyPicker/components/gifPreview/gifPreview.d.ts +1 -1
- package/dist/types/common/klipyPicker/components/gifPreview/gifPreview.types.d.ts +1 -1
- package/dist/types/common/klipyPicker/components/gifPreview/index.d.ts +1 -1
- package/dist/types/common/klipyPicker/components/gifView/gifView.d.ts +1 -1
- package/dist/types/common/klipyPicker/components/gifView/index.d.ts +1 -1
- package/dist/types/common/klipyPicker/index.d.ts +2 -2
- package/dist/types/common/klipyPicker/klipyPicker.d.ts +1 -1
- package/dist/types/common/klipyPicker/klipyPicker.types.d.ts +1 -1
- package/dist/types/common/loading/index.d.ts +1 -2
- package/dist/types/common/loading/spinnerLoading/index.d.ts +1 -1
- package/dist/types/common/maskedInput/index.d.ts +2 -0
- package/dist/types/common/maskedInput/mask.d.ts +48 -0
- package/dist/types/common/maskedInput/maskedInput.d.ts +13 -0
- package/dist/types/common/maskedInput/maskedInput.types.d.ts +38 -0
- package/dist/types/common/menu/index.d.ts +3 -2
- package/dist/types/common/menu/menu.d.ts +1 -1
- package/dist/types/common/menu/menu.types.d.ts +13 -7
- package/dist/types/common/menu/menuHotkeys.d.ts +20 -0
- package/dist/types/common/modal/index.d.ts +2 -2
- package/dist/types/common/modal/modal.d.ts +1 -1
- package/dist/types/common/modal/modal.types.d.ts +6 -3
- package/dist/types/common/multiSelect/index.d.ts +2 -2
- package/dist/types/common/multiSelect/multiSelect.d.ts +1 -1
- package/dist/types/common/multiSelect/multiSelect.types.d.ts +3 -3
- package/dist/types/common/numberInput/index.d.ts +2 -2
- package/dist/types/common/numberInput/numberInput.d.ts +2 -2
- package/dist/types/common/numberInput/numberInput.types.d.ts +2 -2
- package/dist/types/common/optionPicker/index.d.ts +2 -2
- package/dist/types/common/optionPicker/optionPicker.d.ts +1 -1
- package/dist/types/common/optionPicker/optionPicker.types.d.ts +1 -1
- package/dist/types/common/otpInput/index.d.ts +2 -2
- package/dist/types/common/otpInput/otpInput.d.ts +1 -1
- package/dist/types/common/otpInput/otpInput.types.d.ts +2 -2
- package/dist/types/common/overscroll/index.d.ts +2 -2
- package/dist/types/common/overscroll/overscroll.d.ts +1 -1
- package/dist/types/common/pagination/index.d.ts +2 -2
- package/dist/types/common/pagination/pagination.d.ts +1 -1
- package/dist/types/common/pagination/pagination.types.d.ts +2 -2
- package/dist/types/common/planCanvas/index.d.ts +2 -2
- package/dist/types/common/planCanvas/planCanvas.d.ts +1 -1
- package/dist/types/common/planCanvas/planCanvas.types.d.ts +2 -2
- package/dist/types/common/popover/index.d.ts +2 -2
- package/dist/types/common/popover/popover.d.ts +1 -1
- package/dist/types/common/popover/popover.types.d.ts +2 -2
- package/dist/types/common/popover/usePopoverPosition.d.ts +2 -1
- package/dist/types/common/progressBar/index.d.ts +2 -2
- package/dist/types/common/progressBar/progressBar.d.ts +1 -1
- package/dist/types/common/progressBar/progressBar.types.d.ts +1 -1
- package/dist/types/common/radioGroup/index.d.ts +2 -2
- package/dist/types/common/radioGroup/radioGroup.d.ts +1 -1
- package/dist/types/common/radioGroup/radioGroup.types.d.ts +3 -3
- package/dist/types/common/rating/index.d.ts +2 -2
- package/dist/types/common/rating/rating.d.ts +1 -1
- package/dist/types/common/rating/rating.types.d.ts +2 -2
- package/dist/types/common/revealLens/index.d.ts +2 -2
- package/dist/types/common/revealLens/revealLens.d.ts +1 -1
- package/dist/types/common/revealLens/revealLens.types.d.ts +1 -1
- package/dist/types/common/ripple/index.d.ts +2 -2
- package/dist/types/common/ripple/ripple.d.ts +1 -1
- package/dist/types/common/ripple/ripple.types.d.ts +1 -1
- package/dist/types/common/roomDrawer/index.d.ts +2 -2
- package/dist/types/common/roomDrawer/roomDrawer.d.ts +1 -1
- package/dist/types/common/roomDrawer/roomDrawer.types.d.ts +3 -3
- package/dist/types/common/roomDrawer/usePlanHistory.d.ts +2 -2
- package/dist/types/common/roomViewer/index.d.ts +2 -2
- package/dist/types/common/roomViewer/roomViewer.d.ts +1 -1
- package/dist/types/common/roomViewer/roomViewer.types.d.ts +3 -3
- package/dist/types/common/scrollFade/index.d.ts +2 -0
- package/dist/types/common/scrollFade/scrollFade.d.ts +4 -0
- package/dist/types/common/scrollFade/scrollFade.types.d.ts +20 -0
- package/dist/types/common/scrollbarProvider/index.d.ts +1 -1
- package/dist/types/common/searchInput/index.d.ts +2 -2
- package/dist/types/common/searchInput/searchInput.d.ts +1 -1
- package/dist/types/common/searchInput/searchInput.types.d.ts +1 -1
- package/dist/types/common/sectionHeader/index.d.ts +2 -2
- package/dist/types/common/sectionHeader/sectionHeader.d.ts +1 -1
- package/dist/types/common/sectionHeader/sectionHeader.types.d.ts +3 -3
- package/dist/types/common/sheetBackdrop/index.d.ts +2 -2
- package/dist/types/common/sheetBackdrop/sheetBackdrop.d.ts +1 -1
- package/dist/types/common/skeleton/index.d.ts +2 -2
- package/dist/types/common/skeleton/skeleton.d.ts +1 -1
- package/dist/types/common/skeleton/skeleton.types.d.ts +1 -1
- package/dist/types/common/slider/index.d.ts +2 -2
- package/dist/types/common/slider/slider.d.ts +1 -1
- package/dist/types/common/slider/slider.types.d.ts +2 -2
- package/dist/types/common/splitButton/index.d.ts +2 -2
- package/dist/types/common/splitButton/splitButton.d.ts +1 -1
- package/dist/types/common/splitButton/splitButton.types.d.ts +4 -4
- package/dist/types/common/stepper/index.d.ts +2 -2
- package/dist/types/common/stepper/stepper.d.ts +1 -1
- package/dist/types/common/stepper/stepper.types.d.ts +2 -2
- package/dist/types/common/sticky/index.d.ts +1 -1
- package/dist/types/common/sticky/sticky.d.ts +2 -2
- package/dist/types/common/sticky/sticky.types.d.ts +16 -1
- package/dist/types/common/sticky/stickyStack.d.ts +5 -0
- package/dist/types/common/switch/index.d.ts +2 -2
- package/dist/types/common/switch/switch.d.ts +1 -1
- package/dist/types/common/switch/switch.types.d.ts +2 -2
- package/dist/types/common/tabHeader/index.d.ts +2 -2
- package/dist/types/common/tabHeader/tabHeader.d.ts +1 -1
- package/dist/types/common/tabHeader/tabHeader.types.d.ts +2 -2
- package/dist/types/common/textarea/index.d.ts +2 -2
- package/dist/types/common/textarea/textarea.d.ts +1 -1
- package/dist/types/common/textarea/textarea.types.d.ts +1 -1
- package/dist/types/common/themeProvider/defaultTheme.d.ts +1 -1
- package/dist/types/common/themeProvider/index.d.ts +4 -4
- package/dist/types/common/themeProvider/lightTheme.d.ts +1 -1
- package/dist/types/common/themeProvider/theme.types.d.ts +28 -0
- package/dist/types/common/themeProvider/themeProvider.d.ts +1 -1
- package/dist/types/common/tilt/index.d.ts +4 -4
- package/dist/types/common/tilt/tilt.d.ts +1 -1
- package/dist/types/common/tilt/tilt.types.d.ts +2 -2
- package/dist/types/common/tiltGroup/index.d.ts +3 -3
- package/dist/types/common/tiltGroup/tiltGroup.d.ts +1 -1
- package/dist/types/common/tiltGroup/tiltGroup.types.d.ts +1 -1
- package/dist/types/common/timeInput/components/clockDial/clockDial.d.ts +1 -1
- package/dist/types/common/timeInput/components/clockDial/clockDial.types.d.ts +3 -3
- package/dist/types/common/timeInput/components/clockDial/index.d.ts +1 -1
- package/dist/types/common/timeInput/index.d.ts +1 -1
- package/dist/types/common/timeInput/timeInput.d.ts +1 -1
- package/dist/types/common/timeInput/timeInput.types.d.ts +2 -2
- package/dist/types/common/timeline/index.d.ts +2 -2
- package/dist/types/common/timeline/timeline.d.ts +1 -1
- package/dist/types/common/timeline/timeline.types.d.ts +2 -2
- package/dist/types/common/timer/index.d.ts +2 -2
- package/dist/types/common/timer/timer.d.ts +1 -1
- package/dist/types/common/timer/timer.types.d.ts +2 -2
- package/dist/types/common/toast/index.d.ts +3 -3
- package/dist/types/common/toast/toast.d.ts +1 -1
- package/dist/types/common/toast/toast.types.d.ts +1 -1
- package/dist/types/common/toast/toastProvider.d.ts +1 -1
- package/dist/types/common/toast/toastService.d.ts +1 -1
- package/dist/types/common/tooltip/index.d.ts +2 -2
- package/dist/types/common/tooltip/tooltip.d.ts +1 -1
- package/dist/types/common/tree/flattenTree.d.ts +1 -1
- package/dist/types/common/tree/index.d.ts +3 -3
- package/dist/types/common/tree/tree.d.ts +1 -1
- package/dist/types/common/tree/tree.types.d.ts +2 -2
- package/dist/types/common/types/actions.types.d.ts +1 -1
- package/dist/types/common/types/slots.types.d.ts +1 -1
- package/dist/types/common/utils/interactiveTarget.d.ts +7 -0
- package/dist/types/common/utils/listNavigation.d.ts +49 -0
- package/dist/types/common/utils/renderIcon.d.ts +1 -1
- package/dist/types/common/utils/scrollAncestors.d.ts +10 -0
- package/dist/types/common/virtualList/index.d.ts +2 -2
- package/dist/types/common/virtualList/scroller.d.ts +33 -0
- package/dist/types/common/virtualList/useColumnResize.d.ts +1 -1
- package/dist/types/common/virtualList/useColumns.d.ts +1 -1
- package/dist/types/common/virtualList/useRowDrag.d.ts +7 -2
- package/dist/types/common/virtualList/useRowNavigation.d.ts +12 -2
- package/dist/types/common/virtualList/useSorting.d.ts +1 -1
- package/dist/types/common/virtualList/useVirtualWindow.d.ts +22 -3
- package/dist/types/common/virtualList/virtualList.d.ts +3 -3
- package/dist/types/common/virtualList/virtualList.types.d.ts +44 -4
- package/dist/types/common/virtualList/virtualList.utils.d.ts +1 -1
- package/dist/types/common/virtualList/virtualListHeader.d.ts +4 -4
- package/dist/types/common/virtualList/virtualRow.d.ts +1 -1
- package/dist/types/common/wizard/index.d.ts +1 -1
- package/dist/types/common/wizard/wizard.d.ts +1 -1
- package/dist/types/common/wizard/wizard.types.d.ts +1 -1
- package/dist/types/index.d.ts +154 -153
- package/dist/types/services/formValidation/index.d.ts +3 -3
- package/dist/types/services/formValidation/useFormValidatorGroup.d.ts +1 -1
- package/docs/ActionIcon.md +2 -0
- package/docs/CLAUDE.md +124 -230
- package/docs/Card.md +1 -1
- package/docs/Divider.md +2 -0
- package/docs/Dropdown.md +20 -0
- package/docs/Hooks.md +232 -0
- package/docs/IdleManager.md +38 -8
- package/docs/InputDropdown.md +11 -0
- package/docs/InteractableDiv.md +7 -1
- package/docs/KlipyPicker.md +1 -1
- package/docs/Loading.md +57 -14
- package/docs/Menu.md +27 -3
- package/docs/Modal.md +34 -10
- package/docs/MultiSelect.md +2 -2
- package/docs/Pagination.md +1 -1
- package/docs/Popover.md +4 -0
- package/docs/RadioGroup.md +1 -1
- package/docs/Rating.md +2 -0
- package/docs/Ripple.md +3 -0
- package/docs/RoomViewer.md +3 -5
- package/docs/ScrollFade.md +77 -0
- package/docs/ScrollbarProvider.md +2 -0
- package/docs/Slider.md +1 -1
- package/docs/Sticky.md +22 -1
- package/docs/Timer.md +1 -1
- package/docs/VirtualList.md +44 -4
- package/docs/Wizard.md +1 -1
- package/package.json +33 -11
- package/dist/esm/common/infiniteBlock/infiniteBlock.mjs +0 -2
- package/dist/esm/common/infiniteBlock/infiniteBlock.mjs.map +0 -1
- package/dist/esm/common/infiniteBlock/infiniteBlock.module.mjs +0 -2
- package/dist/esm/common/infiniteBlock/infiniteBlock.module.mjs.map +0 -1
- package/dist/esm/common/loading/iconLoading/iconLoading.mjs +0 -2
- package/dist/esm/common/loading/iconLoading/iconLoading.mjs.map +0 -1
- package/dist/esm/common/loading/iconLoading/iconLoading.module.mjs +0 -2
- package/dist/esm/common/loading/iconLoading/iconLoading.module.mjs.map +0 -1
- package/dist/esm/common/loading/iconLoading/index.mjs +0 -2
- package/dist/esm/common/loading/iconLoading/index.mjs.map +0 -1
- package/dist/types/common/infiniteBlock/index.d.ts +0 -1
- package/dist/types/common/infiniteBlock/infiniteBlock.d.ts +0 -4
- package/dist/types/common/infiniteBlock/infiniteBlock.types.d.ts +0 -13
- package/dist/types/common/loading/iconLoading/iconLoading.d.ts +0 -5
- package/dist/types/common/loading/iconLoading/index.d.ts +0 -2
- package/docs/Icon.md +0 -27
- package/docs/InfiniteBlock.md +0 -23
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode, Ref } from 'react';
|
|
2
|
+
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types.js';
|
|
3
|
+
export type ColumnWidthFixed = {
|
|
4
|
+
type: 'fixed';
|
|
5
|
+
px: number;
|
|
6
|
+
};
|
|
7
|
+
export type ColumnWidthFlex = {
|
|
8
|
+
type: 'flex';
|
|
9
|
+
weight?: number;
|
|
10
|
+
};
|
|
11
|
+
export type ColumnWidthFit = {
|
|
12
|
+
type: 'fit';
|
|
13
|
+
};
|
|
14
|
+
export type ColumnWidthSpec = ColumnWidthFixed | ColumnWidthFlex | ColumnWidthFit;
|
|
15
|
+
/** A value the built-in comparator can order. */
|
|
16
|
+
export type SortValue = string | number | boolean | Date | null | undefined;
|
|
17
|
+
export type SortDirection = 'asc' | 'desc';
|
|
18
|
+
/** The column being sorted and the direction. `null` anywhere this appears means unsorted. */
|
|
19
|
+
export interface VirtualListSort {
|
|
20
|
+
/** `key` of the sorted column. */
|
|
21
|
+
key: string;
|
|
22
|
+
direction: SortDirection;
|
|
23
|
+
}
|
|
24
|
+
export interface VirtualListColumn<T> {
|
|
25
|
+
key: string;
|
|
26
|
+
label: ReactNode;
|
|
27
|
+
width: ColumnWidthSpec;
|
|
28
|
+
renderCell: (item: T, rowIndex: number) => ReactNode;
|
|
29
|
+
defaultHidden?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Text shown for this column in the gear toggle menu. Falls back to `label`.
|
|
32
|
+
* Useful for columns with an empty header (e.g. an actions column) so their
|
|
33
|
+
* menu entry reads as something meaningful instead of being blank.
|
|
34
|
+
*/
|
|
35
|
+
toggleLabel?: ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Prevent this column from being hidden via the toggle menu. It always stays
|
|
38
|
+
* visible (overriding `defaultHidden` and any controlled/persisted state), and
|
|
39
|
+
* its menu entry is rendered checked and disabled. Overrides `defaultHidden`.
|
|
40
|
+
*/
|
|
41
|
+
lockVisible?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Omit this column from the gear toggle menu entirely — no entry is shown for
|
|
44
|
+
* it. Unlike `lockVisible` (which shows a checked, disabled entry), the column
|
|
45
|
+
* simply isn't listed. Its visibility then follows `defaultHidden` /
|
|
46
|
+
* controlled / persisted state as usual; combine with `lockVisible` to keep it
|
|
47
|
+
* always visible and out of the menu. The gear button hides automatically if
|
|
48
|
+
* no column remains toggleable.
|
|
49
|
+
*/
|
|
50
|
+
hideFromToggle?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Value this column is ordered by. Its presence makes the column sortable and
|
|
53
|
+
* lets the list sort `items` itself. `null`/`undefined`/`NaN` sort last, in
|
|
54
|
+
* both directions.
|
|
55
|
+
*/
|
|
56
|
+
sortValue?: (item: T) => SortValue;
|
|
57
|
+
/**
|
|
58
|
+
* Ascending comparator, for an order `sortValue` can't express. Wins over
|
|
59
|
+
* `sortValue`, and also makes the column sortable. Descending negates its
|
|
60
|
+
* result, so it has no equivalent of the empty-values-last rule.
|
|
61
|
+
*/
|
|
62
|
+
compare?: (a: T, b: T) => number;
|
|
63
|
+
/**
|
|
64
|
+
* Floor this column can be dragged to, in px. Default 48.
|
|
65
|
+
*/
|
|
66
|
+
minWidth?: number;
|
|
67
|
+
/** Opt this column out of resizing while the list has `resizableColumns`. */
|
|
68
|
+
resizable?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Makes the header clickable without the list reordering anything: the sort is
|
|
71
|
+
* only reported through `onSortChange`. For server-side or paginated sorting,
|
|
72
|
+
* where sorting the loaded rows would silently sort part of the data. Ignored
|
|
73
|
+
* when `sortValue` or `compare` is given.
|
|
74
|
+
*/
|
|
75
|
+
sortable?: boolean;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* What scrolls, when the list is not to scroll itself. `'nearest'` is the first
|
|
79
|
+
* ancestor set to scroll, the same one `Sticky` pins to; `'window'` is the page;
|
|
80
|
+
* an element (or a getter for one, for a ref that fills after the first render)
|
|
81
|
+
* names it outright.
|
|
82
|
+
*/
|
|
83
|
+
export type VirtualListScrollParent = 'nearest' | 'window' | HTMLElement | (() => HTMLElement | null);
|
|
84
|
+
export interface VirtualListScrollOptions {
|
|
85
|
+
/** Where the target row lands in the viewport. Default: 'start'. */
|
|
86
|
+
align?: 'start' | 'center' | 'end';
|
|
87
|
+
/** Native scroll behaviour. Default: 'auto'. */
|
|
88
|
+
behavior?: ScrollBehavior;
|
|
89
|
+
}
|
|
90
|
+
/** Imperative handle exposed via `ref`. */
|
|
91
|
+
export interface VirtualListHandle {
|
|
92
|
+
/** Scroll so the row at `index` is visible. */
|
|
93
|
+
scrollToIndex: (index: number, options?: VirtualListScrollOptions) => void;
|
|
94
|
+
/** Scroll to the row whose `getItemKey` matches `key` (no-op if not found). */
|
|
95
|
+
scrollToKey: (key: string | number, options?: VirtualListScrollOptions) => void;
|
|
96
|
+
/** Scroll back to the top. */
|
|
97
|
+
scrollToTop: (options?: Pick<VirtualListScrollOptions, 'behavior'>) => void;
|
|
98
|
+
/**
|
|
99
|
+
* The element that scrolls: the list itself, or the `scrollParent` it was
|
|
100
|
+
* given. `null` for `scrollParent='window'`, where the page scrolls.
|
|
101
|
+
*/
|
|
102
|
+
getScrollElement: () => HTMLElement | null;
|
|
103
|
+
/**
|
|
104
|
+
* Re-read where the list sits in its `scrollParent`. Only needed in that mode,
|
|
105
|
+
* and only when something *above* the list changed height without the list
|
|
106
|
+
* re-rendering: an element moving fires no event of its own, and the list
|
|
107
|
+
* would keep rendering the window it had before.
|
|
108
|
+
*/
|
|
109
|
+
remeasure: () => void;
|
|
110
|
+
/**
|
|
111
|
+
* Re-measure `fit` columns on the next layout. Call this after an out-of-band
|
|
112
|
+
* content change that doesn't flow through a new `items` array or `columns`
|
|
113
|
+
* set (those reset automatically) — e.g. a cell's content grew in place.
|
|
114
|
+
*/
|
|
115
|
+
recalculateColumns: () => void;
|
|
116
|
+
/**
|
|
117
|
+
* Drops every user-set column width and returns the table to the widths its
|
|
118
|
+
* columns declare. Also clears them from `persistColumnsKey` storage.
|
|
119
|
+
*/
|
|
120
|
+
resetColumnWidths: () => void;
|
|
121
|
+
}
|
|
122
|
+
export type VirtualListSlots = 'root' | 'header' | 'headerCell' | 'headerToggle' | 'headerSort' | 'sortIcon' | 'resizeHandle' | 'activeRow' | 'togglePopover' | 'toggleItem' | 'toggleReset' | 'body' | 'row' | 'cell' | 'selectCell' | 'loadingIndicator' | 'dropIndicator' | 'columnChip';
|
|
123
|
+
/** Where a tree-reorder drop lands relative to the row it is over. */
|
|
124
|
+
export type TreeDropPosition = 'before' | 'inside' | 'after';
|
|
125
|
+
/** The resolved drop target reported to `onTreeDrop`. */
|
|
126
|
+
export interface TreeDropTarget {
|
|
127
|
+
/** `getItemKey` of the row the drop lands on. */
|
|
128
|
+
key: string | number;
|
|
129
|
+
/**
|
|
130
|
+
* `before`/`after` place the dragged node as a sibling of the target (at the
|
|
131
|
+
* target's depth); `inside` makes it a child of the target (only offered when
|
|
132
|
+
* `isGroup` returns true for that row).
|
|
133
|
+
*/
|
|
134
|
+
position: TreeDropPosition;
|
|
135
|
+
}
|
|
136
|
+
/** Text VirtualList renders of its own, for translating it. */
|
|
137
|
+
export interface VirtualListLabels {
|
|
138
|
+
/** A row's select checkbox, read out by screen readers. */
|
|
139
|
+
selectRow?: string;
|
|
140
|
+
/** The header's select-all checkbox, read out by screen readers. */
|
|
141
|
+
selectAllRows?: string;
|
|
142
|
+
/** The gear that opens the column menu, read out by screen readers. */
|
|
143
|
+
toggleColumns?: string;
|
|
144
|
+
/** The badge on the gear, given how many columns the user has hidden. */
|
|
145
|
+
columnsHidden?: (count: number) => string;
|
|
146
|
+
/** The entry in the column menu that undoes the user's column widths. */
|
|
147
|
+
resetColumnWidths?: ReactNode;
|
|
148
|
+
}
|
|
149
|
+
export interface VirtualListProps<T> extends HtmlProps {
|
|
150
|
+
items: T[];
|
|
151
|
+
/** Render function for list mode (no columns). Ignored when `columns` is provided. */
|
|
152
|
+
renderRow?: (item: T, index: number) => ReactNode;
|
|
153
|
+
/** Column definitions — presence enables table/header mode. */
|
|
154
|
+
columns?: VirtualListColumn<T>[];
|
|
155
|
+
/**
|
|
156
|
+
* Replaces the roles put on the container and rows (default `list`/`listitem`, or `grid`/`row`
|
|
157
|
+
* with columns). Pass `'none'` for both when the rows carry their own semantics, as `Tree` does.
|
|
158
|
+
*/
|
|
159
|
+
ariaRoles?: {
|
|
160
|
+
container: string;
|
|
161
|
+
row: string;
|
|
162
|
+
};
|
|
163
|
+
/** Height of the scroll viewport. Defaults to '100%' to fill the parent container. Ignored with `scrollParent`. */
|
|
164
|
+
height?: number | string;
|
|
165
|
+
/**
|
|
166
|
+
* Drops the list's own scrollbar: it renders at its full height in the page
|
|
167
|
+
* flow and virtualizes against whatever is given here, so a long list at the
|
|
168
|
+
* end of a scrolling page doesn't put a second scrollbar inside the first.
|
|
169
|
+
* `height` no longer applies. `'nearest'` covers most cases: it walks up to
|
|
170
|
+
* the first ancestor whose `overflow-y` is set to scroll, whether or not it
|
|
171
|
+
* currently does, and falls back to the page.
|
|
172
|
+
*
|
|
173
|
+
* The header still sticks, now to the top of that scrollport; give the list
|
|
174
|
+
* `--vl-header-top` to clear a fixed app bar. Rows of uneven height move the
|
|
175
|
+
* page's own scrollbar as they are measured, so set `estimatedRowHeight` to
|
|
176
|
+
* the real height where the rows have one.
|
|
177
|
+
*/
|
|
178
|
+
scrollParent?: VirtualListScrollParent;
|
|
179
|
+
/** Estimated row height before measurement. Default: 40. */
|
|
180
|
+
estimatedRowHeight?: number;
|
|
181
|
+
/** Extra rows to render above/below the visible window. Default: 3. */
|
|
182
|
+
overscan?: number;
|
|
183
|
+
/**
|
|
184
|
+
* Gap between rows. A number is treated as px; a string may be any CSS length
|
|
185
|
+
* (`'1em'`, `'0.5rem'`, `'1px'`, or a custom property like `'var(--spacing-s)'`).
|
|
186
|
+
* Non-px units / custom properties are resolved against the list element.
|
|
187
|
+
* Default: 0.
|
|
188
|
+
*/
|
|
189
|
+
rowGap?: number | string;
|
|
190
|
+
/**
|
|
191
|
+
* Padding applied to every row. A number is treated as px; a string may be any
|
|
192
|
+
* CSS padding value (`'8px 12px'`, `'1em'`, `'var(--spacing-s)'`). Because each
|
|
193
|
+
* row's height is measured after layout, the padding is reflected in the
|
|
194
|
+
* virtualization automatically — no layout math is affected.
|
|
195
|
+
*/
|
|
196
|
+
rowPadding?: number | string;
|
|
197
|
+
/** Show a divider line between rows. Default: true. */
|
|
198
|
+
showDivider?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Highlight rows on hover. Default: true. Set false when the row content
|
|
201
|
+
* handles its own hover affordance (e.g. a Card per row), so the list's
|
|
202
|
+
* background doesn't fight it.
|
|
203
|
+
*/
|
|
204
|
+
rowHover?: boolean;
|
|
205
|
+
/** Controlled selected row key. Matched against `getItemKey`. */
|
|
206
|
+
selectedKey?: string | number | null;
|
|
207
|
+
/** Returns a stable key per item. Defaults to row index. */
|
|
208
|
+
getItemKey?: (item: T, index: number) => string | number;
|
|
209
|
+
/** Called when a row is clicked. */
|
|
210
|
+
onRowClick?: (item: T, index: number) => void;
|
|
211
|
+
/**
|
|
212
|
+
* Arrow-key navigation over the rows, on by default. The list takes one tab
|
|
213
|
+
* stop, the arrows move an active row, Enter fires `onRowClick` and Space
|
|
214
|
+
* toggles the selection in `multiSelect`. Keys are ignored while the focus is
|
|
215
|
+
* inside a cell, so a control in a row keeps its own.
|
|
216
|
+
*
|
|
217
|
+
* Turn it off for a list whose rows already handle their own keys, the way
|
|
218
|
+
* `Tree` does.
|
|
219
|
+
*/
|
|
220
|
+
keyboardNavigation?: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* Lets Tab carry on into the next row instead of leaving the list at the end
|
|
223
|
+
* of the current one, for a grid of inputs a user fills in field by field.
|
|
224
|
+
* Shift+Tab walks back the same way, and Tab out of the last row (or back out
|
|
225
|
+
* of the first) leaves the list as it always did. Default: false, because for
|
|
226
|
+
* a list that is read rather than filled in, one tab stop and the arrow keys
|
|
227
|
+
* are the expected behaviour, and 5000 rows of tab stops are a trap.
|
|
228
|
+
*/
|
|
229
|
+
tabAcrossRows?: boolean;
|
|
230
|
+
/** Controlled visible column keys. When provided, internal state is ignored. */
|
|
231
|
+
visibleColumnKeys?: string[];
|
|
232
|
+
/** Called when the user toggles a column in the popover. */
|
|
233
|
+
onVisibleColumnsChange?: (keys: string[]) => void;
|
|
234
|
+
/**
|
|
235
|
+
* When set, column visibility is saved to `localStorage` under this key and
|
|
236
|
+
* restored on the next mount of a list with the same key. Only applies in
|
|
237
|
+
* uncontrolled mode (ignored when `visibleColumnKeys` is provided). Newly
|
|
238
|
+
* added columns that weren't present when the settings were saved fall back
|
|
239
|
+
* to their `defaultHidden` value rather than the saved set.
|
|
240
|
+
*/
|
|
241
|
+
persistColumnsKey?: string;
|
|
242
|
+
/**
|
|
243
|
+
* Controlled sort state. `null` is unsorted (source order). When provided,
|
|
244
|
+
* internal state is ignored.
|
|
245
|
+
*/
|
|
246
|
+
sort?: VirtualListSort | null;
|
|
247
|
+
/** Initial sort in uncontrolled mode. Default: `null`. */
|
|
248
|
+
defaultSort?: VirtualListSort | null;
|
|
249
|
+
/**
|
|
250
|
+
* Called on each header click with the next step of the asc → desc → unsorted
|
|
251
|
+
* cycle. The list reorders `items` itself for columns that define `sortValue`
|
|
252
|
+
* or `compare`; for a `sortable` column it only reports, and sorting the data
|
|
253
|
+
* is yours to do.
|
|
254
|
+
*/
|
|
255
|
+
onSortChange?: (sort: VirtualListSort | null) => void;
|
|
256
|
+
/**
|
|
257
|
+
* Lets the user drag a column's right edge to resize it, double-click it to fit
|
|
258
|
+
* the column to its content, or resize it from the keyboard once the handle has
|
|
259
|
+
* focus. The first resize pins every visible column to its current pixel width
|
|
260
|
+
* (nothing moves at that moment), after which the table is an exact pixel
|
|
261
|
+
* layout that scrolls horizontally rather than redistributing space.
|
|
262
|
+
*/
|
|
263
|
+
resizableColumns?: boolean;
|
|
264
|
+
/** Controlled column widths in px, keyed by column key. */
|
|
265
|
+
columnWidths?: Record<string, number>;
|
|
266
|
+
/** Overrides the text VirtualList renders of its own. Merged per key. */
|
|
267
|
+
labels?: VirtualListLabels;
|
|
268
|
+
/** Called with the full width map whenever the user resizes or auto-fits a column. */
|
|
269
|
+
onColumnWidthsChange?: (widths: Record<string, number>) => void;
|
|
270
|
+
/** Show the gear column-toggle button in the header. Default: true when columns present. */
|
|
271
|
+
showColumnToggle?: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* Called when the user scrolls within `loadMoreThreshold` px of the bottom, and
|
|
274
|
+
* repeatedly while the rows don't fill the viewport — a list too short to scroll
|
|
275
|
+
* would otherwise never ask for a second batch. Each row count is asked at most
|
|
276
|
+
* once, so the loop ends as soon as a call appends nothing; pass `undefined`
|
|
277
|
+
* once the source is exhausted to skip even that final probe.
|
|
278
|
+
* Must return a Promise that resolves once new items have been appended to `items`.
|
|
279
|
+
* A spinner is shown at the bottom while the Promise is pending.
|
|
280
|
+
*/
|
|
281
|
+
onLoadMore?: () => Promise<void>;
|
|
282
|
+
/** Distance in px from the bottom that triggers `onLoadMore`. Default: 100. */
|
|
283
|
+
loadMoreThreshold?: number;
|
|
284
|
+
/** Replaces the list body with a full-height spinner (for initial/filter loads). */
|
|
285
|
+
isLoading?: boolean;
|
|
286
|
+
/** Enables multi-row selection with a checkbox column on the far left. */
|
|
287
|
+
multiSelect?: boolean;
|
|
288
|
+
/** Controlled set of selected item keys. When provided, internal state is ignored. */
|
|
289
|
+
selectedKeys?: Set<string | number>;
|
|
290
|
+
/** Called when the selection changes. */
|
|
291
|
+
onSelectionChange?: (keys: Set<string | number>) => void;
|
|
292
|
+
/**
|
|
293
|
+
* Enables drag-and-drop row reordering (native HTML5 drag — desktop/mouse).
|
|
294
|
+
* The whole row becomes draggable; pair with `onReorder` to apply the move.
|
|
295
|
+
* Provide `getItemKey` so reordered rows keep their measured heights.
|
|
296
|
+
*/
|
|
297
|
+
reorderable?: boolean;
|
|
298
|
+
/**
|
|
299
|
+
* Called while the user drags a row over a new position. Fires live (on each
|
|
300
|
+
* change), so apply it immediately — e.g. `setItems(prev => move(prev, from, to))`.
|
|
301
|
+
*/
|
|
302
|
+
onReorder?: (fromIndex: number, toIndex: number) => void;
|
|
303
|
+
/**
|
|
304
|
+
* Touch only: how long (ms) the user must press-and-hold a row before drag
|
|
305
|
+
* mode activates, so a normal swipe still scrolls the list. Default: 400.
|
|
306
|
+
*/
|
|
307
|
+
longPressDelay?: number;
|
|
308
|
+
/**
|
|
309
|
+
* Enables tree drag-and-drop: instead of a flat reorder, a dragged row can be
|
|
310
|
+
* dropped `before`, `after`, or `inside` another row. Mutually exclusive with
|
|
311
|
+
* `reorderable` (if both are set, `treeReorder` wins). Unlike `reorderable`,
|
|
312
|
+
* rows are NOT moved live — a drop indicator is shown during the drag and
|
|
313
|
+
* `onTreeDrop` fires once on release. The list is still a flat array: hold the
|
|
314
|
+
* real tree in your own state, flatten the expanded nodes into `items` (each
|
|
315
|
+
* tagged with its depth), and re-flatten after applying the drop.
|
|
316
|
+
* Provide `getItemKey` so rows keep their measured heights across re-flattens.
|
|
317
|
+
*/
|
|
318
|
+
treeReorder?: boolean;
|
|
319
|
+
/**
|
|
320
|
+
* Depth of each row in the tree (0 = root). Used to align the drop indicator
|
|
321
|
+
* and to forbid dropping a node onto itself or its own descendants. Defaults
|
|
322
|
+
* to 0 for every row.
|
|
323
|
+
*/
|
|
324
|
+
getItemDepth?: (item: T, index: number) => number;
|
|
325
|
+
/**
|
|
326
|
+
* Whether a row can receive children — i.e. whether an `inside` drop is
|
|
327
|
+
* offered when hovering its middle third. Defaults to false (leaf) for every
|
|
328
|
+
* row, so only `before`/`after` are offered.
|
|
329
|
+
*/
|
|
330
|
+
isGroup?: (item: T, index: number) => boolean;
|
|
331
|
+
/**
|
|
332
|
+
* Called once when a tree-reorder drag is released on a valid target. Apply
|
|
333
|
+
* the move to your tree state and re-flatten. Not called when the drop target
|
|
334
|
+
* is the dragged node itself or one of its descendants.
|
|
335
|
+
*/
|
|
336
|
+
onTreeDrop?: (dragKey: string | number, target: TreeDropTarget) => void;
|
|
337
|
+
/**
|
|
338
|
+
* Indent (px per depth level) used to position the `before`/`after` drop
|
|
339
|
+
* indicator line so it aligns with where the dropped content will start.
|
|
340
|
+
* Match this to the per-level padding you apply to row content. Default: 24.
|
|
341
|
+
*/
|
|
342
|
+
treeIndentPx?: number;
|
|
343
|
+
/**
|
|
344
|
+
* Restrict drag initiation to elements marked `data-drag-handle` within a row
|
|
345
|
+
* (rather than the whole row). Essential for rows containing editable inputs
|
|
346
|
+
* or other interactive controls, so clicking/typing/selecting text in them
|
|
347
|
+
* doesn't start a drag. Applies to both `reorderable` and `treeReorder`, mouse
|
|
348
|
+
* and touch. Render a handle in your row, e.g. `<span data-drag-handle>⠿</span>`.
|
|
349
|
+
*/
|
|
350
|
+
dragHandle?: boolean;
|
|
351
|
+
/** Imperative handle for scrolling and for recalculating column layout. */
|
|
352
|
+
ref?: Ref<VirtualListHandle>;
|
|
353
|
+
className?: string;
|
|
354
|
+
style?: CSSProperties;
|
|
355
|
+
classNames?: SlotClassNames<VirtualListSlots>;
|
|
356
|
+
styles?: SlotStyles<VirtualListSlots>;
|
|
357
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { ColumnWidthSpec, SortValue, VirtualListColumn, VirtualListSort } from './virtualList.types.js';
|
|
2
|
+
export declare function buildOffsets(keys: (string | number)[], heightsMap: Map<string | number, number>, estimatedRowHeight: number, rowGap?: number): {
|
|
3
|
+
offsets: number[];
|
|
4
|
+
totalHeight: number;
|
|
5
|
+
};
|
|
6
|
+
/** Index of the row that sits at `scrollTop` — i.e. the first row whose bottom edge is below it. */
|
|
7
|
+
export declare function findStartIndex(offsets: number[], scrollTop: number, itemCount: number): number;
|
|
8
|
+
export declare function getVisibleRange(offsets: number[], scrollTop: number, containerHeight: number, overscan: number, itemCount: number): {
|
|
9
|
+
startIndex: number;
|
|
10
|
+
endIndex: number;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Decides where a dragged row should move to, applying midpoint hysteresis: a
|
|
14
|
+
* move only happens once the pointer has crossed the centre of the row it is
|
|
15
|
+
* over (downwards when moving down, upwards when moving up). Returns the target
|
|
16
|
+
* index, or null if no move should occur. Pure for easy unit testing.
|
|
17
|
+
*/
|
|
18
|
+
export declare function resolveReorderTarget(fromIndex: number, overIndex: number, pointerY: number, rowTop: number, rowHeight: number): number | null;
|
|
19
|
+
/**
|
|
20
|
+
* Decides where a tree-reorder drop should land relative to the row under the
|
|
21
|
+
* pointer. Group rows expose three zones (top third → `before`, middle →
|
|
22
|
+
* `inside`, bottom third → `after`); leaf rows split in half (`before`/`after`)
|
|
23
|
+
* since they can't receive children. Pure for easy unit testing.
|
|
24
|
+
*/
|
|
25
|
+
export declare function resolveTreeDropTarget(pointerY: number, rowTop: number, rowHeight: number, isGroup: boolean): 'before' | 'inside' | 'after';
|
|
26
|
+
/**
|
|
27
|
+
* Index of the last descendant of the node at `index` in a depth-tagged flat
|
|
28
|
+
* list (a contiguous run of following rows with a greater depth). Returns
|
|
29
|
+
* `index` itself when the node has no children. A drop is forbidden anywhere in
|
|
30
|
+
* `[index, lastDescendantIndex]` — that's the node and its own subtree.
|
|
31
|
+
*/
|
|
32
|
+
export declare function lastDescendantIndex(index: number, depths: number[]): number;
|
|
33
|
+
export declare function buildColumnTemplate(columns: {
|
|
34
|
+
key: string;
|
|
35
|
+
width: ColumnWidthSpec;
|
|
36
|
+
}[], fitWidths?: Record<string, number>): string;
|
|
37
|
+
/**
|
|
38
|
+
* What counts as a control inside a row, and so what gets held out of the tab
|
|
39
|
+
* order while its row is not the one being used.
|
|
40
|
+
*
|
|
41
|
+
* `[tabindex="-1"]` is deliberately excluded. The row's own select checkbox sits
|
|
42
|
+
* there and is reached with Space, and an element the consumer has already taken
|
|
43
|
+
* out of the tab order stays out.
|
|
44
|
+
*/
|
|
45
|
+
export declare const ROW_FOCUSABLE_SELECTOR = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
46
|
+
/** Marks an element parked at `tabindex="-1"` by the list rather than by the consumer. */
|
|
47
|
+
export declare const ROW_PARKED_ATTRIBUTE = "data-vl-parked";
|
|
48
|
+
/**
|
|
49
|
+
* What `F2` steps into: the controls of a row, including the ones parked out of
|
|
50
|
+
* the tab order. Without the second half it would find nothing at all in a row
|
|
51
|
+
* whose controls are custom elements carrying a `tabindex`, because parking them
|
|
52
|
+
* is exactly what takes them out of the selector above.
|
|
53
|
+
*/
|
|
54
|
+
export declare const ROW_ENTER_SELECTOR = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [data-vl-parked]";
|
|
55
|
+
/**
|
|
56
|
+
* The content width of one cell, in px. `scrollWidth` reports the true content
|
|
57
|
+
* width even when the cell is pinned narrower than its content, which is what
|
|
58
|
+
* lets a column recover from having been measured while it was still empty.
|
|
59
|
+
*
|
|
60
|
+
* Two corrections on top of it, both only resolved when they can apply, so the
|
|
61
|
+
* hot scroll path stays cheap for a plain in-flow cell:
|
|
62
|
+
*
|
|
63
|
+
* - `scrollWidth` includes the left padding but drops the right one once the
|
|
64
|
+
* content overflows, so add it back.
|
|
65
|
+
* - A cell whose only children are FontAwesome icons reports just its padding:
|
|
66
|
+
* their boxes overflow via `overflow: visible`, carry no intrinsic width, and
|
|
67
|
+
* so never count towards `scrollWidth` (right-aligned, they even overflow
|
|
68
|
+
* into negative offsets). Only then walk the descendants for their true span.
|
|
69
|
+
* Once a real width pins, the cell is no longer collapsed and this stops.
|
|
70
|
+
*/
|
|
71
|
+
export declare function measureCellWidth(el: HTMLElement): number;
|
|
72
|
+
/** Attribute selector for one column's cells. Column keys are arbitrary strings. */
|
|
73
|
+
export declare function columnCellSelector(key: string): string;
|
|
74
|
+
/** Floor for a user-resized column, unless the column raises it with `minWidth`. */
|
|
75
|
+
export declare const MIN_COLUMN_WIDTH = 48;
|
|
76
|
+
/**
|
|
77
|
+
* Width given to a column that gains one while the layout is already frozen,
|
|
78
|
+
* i.e. one revealed from the gear menu after the first resize. Every visible
|
|
79
|
+
* column has to be an exact px track for the total width (and so the horizontal
|
|
80
|
+
* scroll range) to be exact, and there is nothing measured to go on yet.
|
|
81
|
+
*/
|
|
82
|
+
export declare const DEFAULT_FROZEN_WIDTH = 160;
|
|
83
|
+
/**
|
|
84
|
+
* Custom property carrying one column's width. Column keys are arbitrary
|
|
85
|
+
* strings, so anything a custom property can't contain is folded to `_`; two
|
|
86
|
+
* keys that differ only in those characters would share a track.
|
|
87
|
+
*/
|
|
88
|
+
export declare function columnWidthVar(key: string): string;
|
|
89
|
+
/** Px width for a column the user hasn't sized, at the moment the layout freezes. */
|
|
90
|
+
export declare function resolveFrozenWidth<T>(col: VirtualListColumn<T>): number;
|
|
91
|
+
/**
|
|
92
|
+
* Grid template for a frozen layout: every column reads its own custom property,
|
|
93
|
+
* so a drag can rewrite one width with a single DOM write and have the header
|
|
94
|
+
* and every row follow in the same layout pass, without React rendering.
|
|
95
|
+
*/
|
|
96
|
+
export declare function buildFrozenTemplate<T>(columns: VirtualListColumn<T>[]): string;
|
|
97
|
+
export declare const COLUMN_STORAGE_PREFIX = "ahroweui:virtuallist:columns:";
|
|
98
|
+
export interface PersistedColumns {
|
|
99
|
+
visible: string[];
|
|
100
|
+
known: string[];
|
|
101
|
+
/** User-resized column widths in px. Absent in entries saved before resizing existed. */
|
|
102
|
+
widths?: Record<string, number>;
|
|
103
|
+
}
|
|
104
|
+
export declare function loadPersistedColumns(persistKey: string | undefined): PersistedColumns | null;
|
|
105
|
+
/** Whether a column should start visible, honouring saved settings then `defaultHidden`. */
|
|
106
|
+
export declare function isColumnInitiallyVisible<T>(col: VirtualListColumn<T>, persisted: PersistedColumns | null): boolean;
|
|
107
|
+
/** Values with no order of their own, parked at the end of the list either way. */
|
|
108
|
+
export declare function isEmptySortValue(value: SortValue): boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Ascending comparison of two non-empty `sortValue` results. Dates and booleans
|
|
111
|
+
* are normalised to numbers; anything with a string on either side goes through
|
|
112
|
+
* the collator, which is also what makes a mixed-type column produce a stable
|
|
113
|
+
* (if arbitrary) order rather than a random one.
|
|
114
|
+
*/
|
|
115
|
+
export declare function compareSortValues(a: SortValue, b: SortValue): number;
|
|
116
|
+
/** Whether a header click on this column should do anything at all. */
|
|
117
|
+
export declare function isColumnSortable<T>(col: VirtualListColumn<T>): boolean;
|
|
118
|
+
/** The asc → desc → unsorted cycle a header click steps through. */
|
|
119
|
+
export declare function nextSort(current: VirtualListSort | null, key: string): VirtualListSort | null;
|
|
120
|
+
/**
|
|
121
|
+
* Returns `items` reordered by `sort`, or the same array reference when nothing
|
|
122
|
+
* applies: no sort, no such column, or a `sortable` column that only reports
|
|
123
|
+
* (its data is sorted by the consumer). Callers rely on that identity to tell
|
|
124
|
+
* "the list sorted this" from "the list left it alone".
|
|
125
|
+
*/
|
|
126
|
+
export declare function sortItems<T>(items: T[], sort: VirtualListSort | null | undefined, columns: VirtualListColumn<T>[] | undefined): T[];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UseColumnsResult } from './useColumns.js';
|
|
3
|
+
import { UseColumnResizeResult } from './useColumnResize.js';
|
|
4
|
+
import { SlotClassNames, SlotStyles } from '../types/slots.types.js';
|
|
5
|
+
import { VirtualListColumn, VirtualListLabels, VirtualListSlots, VirtualListSort } from './virtualList.types.js';
|
|
6
|
+
interface VirtualListHeaderProps<T> {
|
|
7
|
+
headerRef: React.RefObject<HTMLDivElement | null>;
|
|
8
|
+
/** Every column, including hidden ones: the toggle menu lists them all. */
|
|
9
|
+
columns: VirtualListColumn<T>[];
|
|
10
|
+
cols: UseColumnsResult<T>;
|
|
11
|
+
resize: UseColumnResizeResult<T>;
|
|
12
|
+
sort: VirtualListSort | null;
|
|
13
|
+
onSort: (key: string) => void;
|
|
14
|
+
multiSelect: boolean;
|
|
15
|
+
allSelected: boolean;
|
|
16
|
+
someSelected: boolean;
|
|
17
|
+
onSelectAll: () => void;
|
|
18
|
+
labels: Required<VirtualListLabels>;
|
|
19
|
+
classNames?: SlotClassNames<VirtualListSlots>;
|
|
20
|
+
styles?: SlotStyles<VirtualListSlots>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The table-mode header row: one cell per visible column, each optionally a sort
|
|
24
|
+
* button and a resize handle, plus the column-visibility menu pinned to the
|
|
25
|
+
* right. It is a grid with the same template as every row, which is what keeps
|
|
26
|
+
* the columns aligned across the separate grids.
|
|
27
|
+
*
|
|
28
|
+
* The whole header is a single tab stop (see `useHeaderNavigation`). Focus lands
|
|
29
|
+
* on a header cell rather than on the button inside it, so every key a column
|
|
30
|
+
* understands is handled in one place: Enter or Space sorts, Alt plus the arrow
|
|
31
|
+
* keys resizes, Alt+Home and Alt+End take the column to its minimum or to its
|
|
32
|
+
* content width.
|
|
33
|
+
*/
|
|
34
|
+
declare function VirtualListHeader<T>({ headerRef, columns, cols, resize, sort, onSort, multiSelect, allSelected, someSelected, onSelectAll, labels, classNames, styles: slotStyles, }: VirtualListHeaderProps<T>): React.JSX.Element;
|
|
35
|
+
export default VirtualListHeader;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TreeDropPosition } from './virtualList.types.js';
|
|
3
|
+
export interface VirtualRowProps {
|
|
4
|
+
index: number;
|
|
5
|
+
/** Referenced by the list's `aria-activedescendant` while this row is active. */
|
|
6
|
+
id?: string;
|
|
7
|
+
top: number;
|
|
8
|
+
/** Padding applied to the row (already normalised to a CSS string). */
|
|
9
|
+
padding?: string;
|
|
10
|
+
columnTemplate: string | undefined;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
/** The row the arrow keys are on. Distinct from selection. */
|
|
13
|
+
isActive?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Hold this row's own controls out of the tab order unless it is the row being
|
|
16
|
+
* used. Off when the list leaves the keyboard to its rows.
|
|
17
|
+
*/
|
|
18
|
+
manageTabStops?: boolean;
|
|
19
|
+
/** This is the row being used, so its controls are reachable with Tab. */
|
|
20
|
+
isEntered?: boolean;
|
|
21
|
+
activeClassName?: string;
|
|
22
|
+
activeStyle?: React.CSSProperties;
|
|
23
|
+
showDivider: boolean;
|
|
24
|
+
hover: boolean;
|
|
25
|
+
onClick: () => void;
|
|
26
|
+
observer: ResizeObserver | null;
|
|
27
|
+
ariaRowIndex?: number;
|
|
28
|
+
ariaPosInSet?: number;
|
|
29
|
+
ariaSetSize?: number;
|
|
30
|
+
rowRole: string;
|
|
31
|
+
reorderable?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Native mouse DnD is active for the list. Distinct from `draggable`, which in
|
|
34
|
+
* `dragHandle` mode is only set on the row the pointer has armed.
|
|
35
|
+
*/
|
|
36
|
+
mouseDragEnabled?: boolean;
|
|
37
|
+
draggable?: boolean;
|
|
38
|
+
isDragging?: boolean;
|
|
39
|
+
reserveToggleGutter?: boolean;
|
|
40
|
+
onMouseDown?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
41
|
+
onMouseOver?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
42
|
+
onMouseLeave?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
43
|
+
onDragStart?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
44
|
+
onDragOver?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
45
|
+
onDragEnd?: () => void;
|
|
46
|
+
onDrop?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
47
|
+
onTouchStart?: (e: React.TouchEvent<HTMLDivElement>) => void;
|
|
48
|
+
dropPosition?: TreeDropPosition;
|
|
49
|
+
dropIndentPx?: number;
|
|
50
|
+
dropIndicatorClassName?: string;
|
|
51
|
+
dropIndicatorStyle?: React.CSSProperties;
|
|
52
|
+
rowClassName?: string;
|
|
53
|
+
rowStyle?: React.CSSProperties;
|
|
54
|
+
children: React.ReactNode;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A single virtualized row: absolutely positioned at its `top`, optionally a
|
|
58
|
+
* grid (table mode), registering itself with the shared ResizeObserver and
|
|
59
|
+
* carrying all the drag / drop-indicator wiring the parent assigns it.
|
|
60
|
+
*/
|
|
61
|
+
declare function VirtualRow({ index, id, top, padding, columnTemplate, isSelected, isActive, manageTabStops, isEntered, activeClassName, activeStyle, showDivider, hover, onClick, observer, ariaRowIndex, ariaPosInSet, ariaSetSize, rowRole, reorderable, mouseDragEnabled, draggable, isDragging, reserveToggleGutter, onMouseDown, onMouseOver, onMouseLeave, onDragStart, onDragOver, onDragEnd, onDrop, onTouchStart, dropPosition, dropIndentPx, dropIndicatorClassName, dropIndicatorStyle, rowClassName, rowStyle, children, }: VirtualRowProps): React.JSX.Element;
|
|
62
|
+
export default VirtualRow;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './wizard.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types.js';
|
|
3
|
+
export type WizardSlots = 'root' | 'container' | 'step' | 'stepContent';
|
|
4
|
+
export interface WizardProps extends HtmlProps {
|
|
5
|
+
currentStep?: number;
|
|
6
|
+
stepCount?: number;
|
|
7
|
+
renderStep?: (index: number) => React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
classNames?: SlotClassNames<WizardSlots>;
|
|
11
|
+
styles?: SlotStyles<WizardSlots>;
|
|
12
|
+
}
|