@ahrowe/ui 0.35.0 → 0.36.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 +100 -71
- 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/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/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 +33 -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/iconLoading/iconLoading.d.ts +5 -0
- package/dist/cjs-types/common/loading/iconLoading/index.d.ts +2 -0
- package/dist/cjs-types/common/loading/index.d.ts +2 -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 +2 -0
- package/dist/cjs-types/common/menu/menu.d.ts +14 -0
- package/dist/cjs-types/common/menu/menu.types.d.ts +55 -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 +44 -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 +22 -0
- package/dist/cjs-types/common/sticky/stickyStack.d.ts +46 -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 +2 -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/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 +58 -0
- package/dist/cjs-types/common/virtualList/useRowNavigation.d.ts +50 -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 +36 -0
- package/dist/cjs-types/common/virtualList/virtualList.d.ts +5 -0
- package/dist/cjs-types/common/virtualList/virtualList.types.d.ts +317 -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 +154 -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/useScrollEdges.mjs +2 -0
- package/dist/esm/common/hooks/useScrollEdges.mjs.map +1 -0
- package/dist/esm/common/infiniteBlock/useInfiniteScroll.mjs +2 -0
- package/dist/esm/common/infiniteBlock/useInfiniteScroll.mjs.map +1 -0
- 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/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/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/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/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/useScrollEdges.d.ts +18 -0
- package/dist/types/common/hooks/useSheet.d.ts +1 -1
- 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 +2 -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 +2 -2
- package/dist/types/common/menu/menu.d.ts +1 -1
- package/dist/types/common/menu/menu.types.d.ts +4 -4
- 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 +1 -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 +1 -1
- package/dist/types/common/sticky/sticky.types.d.ts +1 -1
- 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/virtualList/index.d.ts +2 -2
- 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 +1 -1
- package/dist/types/common/virtualList/useRowNavigation.d.ts +1 -1
- package/dist/types/common/virtualList/useSorting.d.ts +1 -1
- package/dist/types/common/virtualList/useVirtualWindow.d.ts +1 -1
- package/dist/types/common/virtualList/virtualList.d.ts +2 -2
- package/dist/types/common/virtualList/virtualList.types.d.ts +1 -1
- 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 +153 -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 +123 -230
- package/docs/Card.md +1 -1
- package/docs/Divider.md +2 -0
- package/docs/Dropdown.md +20 -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 +3 -1
- package/docs/Menu.md +2 -0
- package/docs/Modal.md +34 -10
- package/docs/MultiSelect.md +2 -2
- package/docs/Pagination.md +1 -1
- package/docs/Popover.md +2 -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/Timer.md +1 -1
- 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/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/docs/Icon.md +0 -27
- package/docs/InfiniteBlock.md +0 -23
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VirtualListColumn } from './virtualList.types.js';
|
|
3
|
+
interface UseColumnsArgs<T> {
|
|
4
|
+
columns?: VirtualListColumn<T>[];
|
|
5
|
+
items: T[];
|
|
6
|
+
multiSelect: boolean;
|
|
7
|
+
visibleColumnKeys?: string[];
|
|
8
|
+
onVisibleColumnsChange?: (keys: string[]) => void;
|
|
9
|
+
persistColumnsKey?: string;
|
|
10
|
+
showColumnToggle?: boolean;
|
|
11
|
+
/** User-set column widths, from `useColumnResize`. */
|
|
12
|
+
userWidths: Record<string, number>;
|
|
13
|
+
/** Whether those widths have taken over the layout. */
|
|
14
|
+
isFrozen: boolean;
|
|
15
|
+
rootRef: React.RefObject<HTMLDivElement | null>;
|
|
16
|
+
/** Visible-window bounds — re-measure `fit` columns as new cells scroll in. */
|
|
17
|
+
startIndex: number;
|
|
18
|
+
endIndex: number;
|
|
19
|
+
containerHeight: number;
|
|
20
|
+
/** Re-measure `fit` columns when the container width settles (e.g. after a route transition). */
|
|
21
|
+
containerWidth: number;
|
|
22
|
+
}
|
|
23
|
+
export interface UseColumnsResult<T> {
|
|
24
|
+
hasColumns: boolean;
|
|
25
|
+
visibleColumns: VirtualListColumn<T>[];
|
|
26
|
+
columnTemplate: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Custom properties for the list element: the total width of a frozen layout,
|
|
29
|
+
* as a `calc()` over the per-column properties so that rewriting one width
|
|
30
|
+
* during a drag updates the total without any bookkeeping.
|
|
31
|
+
*/
|
|
32
|
+
widthVars: React.CSSProperties;
|
|
33
|
+
shouldShowToggle: boolean;
|
|
34
|
+
effectiveVisible: Set<string>;
|
|
35
|
+
/** How many default-visible columns the user has hidden (excludes defaultHidden). */
|
|
36
|
+
manuallyHiddenCount: number;
|
|
37
|
+
toggleOpen: boolean;
|
|
38
|
+
setToggleOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
39
|
+
handleToggleColumn: (key: string) => void;
|
|
40
|
+
/** Imperative escape hatch: drop fit-column pins so they re-measure on the
|
|
41
|
+
* next layout. For out-of-band content changes that don't flow through a new
|
|
42
|
+
* `items` array or `columns` set (which reset automatically). */
|
|
43
|
+
recalculateColumns: () => void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Table-mode column logic: visibility (controlled or uncontrolled, with
|
|
47
|
+
* localStorage persistence and runtime reconciliation), the toggle popover, and
|
|
48
|
+
* `fit`-column width measurement that pins one shared px track across the header
|
|
49
|
+
* and every row grid so they stay aligned.
|
|
50
|
+
*/
|
|
51
|
+
export declare function useColumns<T>({ columns, items, multiSelect, visibleColumnKeys, onVisibleColumnsChange, persistColumnsKey, showColumnToggle, userWidths, isFrozen, rootRef, startIndex, endIndex, containerHeight, containerWidth, }: UseColumnsArgs<T>): UseColumnsResult<T>;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface StationProps {
|
|
3
|
+
tabIndex: number;
|
|
4
|
+
ref: (el: HTMLElement | null) => void;
|
|
5
|
+
onFocus: () => void;
|
|
6
|
+
}
|
|
7
|
+
interface UseHeaderNavigationResult {
|
|
8
|
+
getStationProps: (index: number) => StationProps;
|
|
9
|
+
/** True when the key moved the focus, so the caller stops handling it. */
|
|
10
|
+
handleNavigationKey: (event: React.KeyboardEvent, index: number) => boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Roving tab stop across the header: the select-all cell, every column header,
|
|
14
|
+
* and the column menu are stations, and arrow keys move between them.
|
|
15
|
+
*
|
|
16
|
+
* Without it each of those is its own tab stop, so a table with eight sortable,
|
|
17
|
+
* resizable columns takes seventeen presses of Tab before the data. The stops
|
|
18
|
+
* also belong together: they all act on the same header, which is exactly the
|
|
19
|
+
* case the roving pattern exists for.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useHeaderNavigation(stationCount: number): UseHeaderNavigationResult;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TreeDropPosition, TreeDropTarget } from './virtualList.types.js';
|
|
3
|
+
interface UseRowDragArgs {
|
|
4
|
+
reorderable: boolean;
|
|
5
|
+
treeReorder: boolean;
|
|
6
|
+
onReorder?: (fromIndex: number, toIndex: number) => void;
|
|
7
|
+
onTreeDrop?: (dragKey: string | number, target: TreeDropTarget) => void;
|
|
8
|
+
longPressDelay: number;
|
|
9
|
+
dragHandle: boolean;
|
|
10
|
+
treeIndentPx: number;
|
|
11
|
+
/** Current flat ordering and depth tags (mouse handlers read these directly). */
|
|
12
|
+
keys: (string | number)[];
|
|
13
|
+
depths: number[];
|
|
14
|
+
isGroupAt: (index: number) => boolean;
|
|
15
|
+
rootRef: React.RefObject<HTMLDivElement | null>;
|
|
16
|
+
/** Latest keys for async (touch / rAF) consumers — owned by useVirtualWindow. */
|
|
17
|
+
keysRef: React.RefObject<(string | number)[]>;
|
|
18
|
+
}
|
|
19
|
+
/** The drag-related props the parent spreads onto a given row. */
|
|
20
|
+
export interface RowDragProps {
|
|
21
|
+
reorderable: boolean;
|
|
22
|
+
/** Native mouse DnD is active for the list (independent of which row is armed). */
|
|
23
|
+
mouseDragEnabled: boolean;
|
|
24
|
+
draggable: boolean | undefined;
|
|
25
|
+
isDragging: boolean;
|
|
26
|
+
onMouseDown: ((e: React.MouseEvent<HTMLDivElement>) => void) | undefined;
|
|
27
|
+
onMouseOver: ((e: React.MouseEvent<HTMLDivElement>) => void) | undefined;
|
|
28
|
+
onMouseLeave: ((e: React.MouseEvent<HTMLDivElement>) => void) | undefined;
|
|
29
|
+
onDragStart: ((e: React.DragEvent<HTMLDivElement>) => void) | undefined;
|
|
30
|
+
onDragOver: ((e: React.DragEvent<HTMLDivElement>) => void) | undefined;
|
|
31
|
+
onDragEnd: (() => void) | undefined;
|
|
32
|
+
onDrop: ((e: React.DragEvent<HTMLDivElement>) => void) | undefined;
|
|
33
|
+
onTouchStart: ((e: React.TouchEvent<HTMLDivElement>) => void) | undefined;
|
|
34
|
+
dropPosition: TreeDropPosition | undefined;
|
|
35
|
+
dropIndentPx: number | undefined;
|
|
36
|
+
}
|
|
37
|
+
interface UseRowDragResult {
|
|
38
|
+
/** True while a row is being dragged (for the root reordering style). */
|
|
39
|
+
draggingKey: string | number | null;
|
|
40
|
+
/** Whether either drag mode is active. */
|
|
41
|
+
dragEnabled: boolean;
|
|
42
|
+
/** Drag props for the row at `index` / `key`. */
|
|
43
|
+
getRowDragProps: (index: number, key: string | number) => RowDragProps;
|
|
44
|
+
/** Returns true (and resets) if the next click should be swallowed (post-drag). */
|
|
45
|
+
consumeSuppressedClick: () => boolean;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Row drag-and-drop for both modes:
|
|
49
|
+
* - `reorderable` (flat): native HTML5 drag on desktop; rows move live via
|
|
50
|
+
* `onReorder` with midpoint hysteresis.
|
|
51
|
+
* - `treeReorder`: a drop indicator (before/after/inside) is shown during the
|
|
52
|
+
* drag and `onTreeDrop` fires once on release; dropping onto the dragged
|
|
53
|
+
* node's own subtree is forbidden.
|
|
54
|
+
* Touch uses a long-press → lifted-clone → pointer-move path with edge
|
|
55
|
+
* auto-scroll. `dragHandle` restricts initiation to `[data-drag-handle]`.
|
|
56
|
+
*/
|
|
57
|
+
export declare function useRowDrag({ reorderable, treeReorder, onReorder, onTreeDrop, longPressDelay, dragHandle, treeIndentPx, keys, depths, isGroupAt, rootRef, keysRef, }: UseRowDragArgs): UseRowDragResult;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VirtualListScrollOptions } from './virtualList.types.js';
|
|
3
|
+
interface UseRowNavigationArgs {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
rowCount: number;
|
|
6
|
+
/** Row tops, from the windowing engine, used for paging and visibility. */
|
|
7
|
+
offsets: number[];
|
|
8
|
+
rootRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
headerRef: React.RefObject<HTMLDivElement | null>;
|
|
10
|
+
scrollToIndex: (index: number, options?: VirtualListScrollOptions) => void;
|
|
11
|
+
/** Row index the active row starts on, normally the selected one. */
|
|
12
|
+
initialIndex: number;
|
|
13
|
+
multiSelect: boolean;
|
|
14
|
+
/** Undefined when the consumer gave the rows no activation of their own. */
|
|
15
|
+
onActivate?: (index: number) => void;
|
|
16
|
+
onToggleSelect: (index: number) => void;
|
|
17
|
+
}
|
|
18
|
+
interface UseRowNavigationResult {
|
|
19
|
+
/** Index of the row the arrow keys are on, or -1 when navigation is off. */
|
|
20
|
+
activeIndex: number;
|
|
21
|
+
/** Keeps the arrow keys where the pointer last was. */
|
|
22
|
+
setActiveIndex: (index: number) => void;
|
|
23
|
+
/**
|
|
24
|
+
* The row currently being used, or -1. Its controls are in the tab order and
|
|
25
|
+
* it stays mounted even when it scrolls out of the window.
|
|
26
|
+
*/
|
|
27
|
+
enteredIndex: number;
|
|
28
|
+
containerProps: {
|
|
29
|
+
tabIndex?: number;
|
|
30
|
+
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
31
|
+
onFocus?: (event: React.FocusEvent) => void;
|
|
32
|
+
onBlur?: (event: React.FocusEvent) => void;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Arrow-key navigation over the rows, with the tab stop on the list itself.
|
|
37
|
+
*
|
|
38
|
+
* The stop cannot sit on the active row, the way a roving tabindex normally
|
|
39
|
+
* would: a virtualized row unmounts when it scrolls out of the window, and the
|
|
40
|
+
* list would be left with no tab stop at all (the same reason `Tree` puts its
|
|
41
|
+
* stop on its container). Instead the list keeps the focus and points at the
|
|
42
|
+
* active row with `aria-activedescendant`.
|
|
43
|
+
*
|
|
44
|
+
* Keys are only handled when the list element itself has the focus. A cell may
|
|
45
|
+
* hold an input, a dropdown or a button, and every one of them wants the arrows,
|
|
46
|
+
* Enter and Space for itself. `F2` steps into such a row and `Escape` steps back
|
|
47
|
+
* out, which is the one pair of keys that does work from inside a cell.
|
|
48
|
+
*/
|
|
49
|
+
export declare function useRowNavigation({ enabled, rowCount, offsets, rootRef, headerRef, scrollToIndex, initialIndex, multiSelect, onActivate, onToggleSelect, }: UseRowNavigationArgs): UseRowNavigationResult;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface UseSelectionArgs<T> {
|
|
2
|
+
items: T[];
|
|
3
|
+
getKey: (item: T, index: number) => string | number;
|
|
4
|
+
multiSelect: boolean;
|
|
5
|
+
/** Controlled selected keys. When provided, internal state is ignored. */
|
|
6
|
+
selectedKeys?: Set<string | number>;
|
|
7
|
+
onSelectionChange?: (keys: Set<string | number>) => void;
|
|
8
|
+
}
|
|
9
|
+
interface UseSelectionResult {
|
|
10
|
+
effectiveSelectedKeys: Set<string | number>;
|
|
11
|
+
/** Toggle one row's membership in the selection. */
|
|
12
|
+
handleRowSelect: (key: string | number) => void;
|
|
13
|
+
/** Select all rows, or clear if all are already selected. */
|
|
14
|
+
handleSelectAll: () => void;
|
|
15
|
+
allSelected: boolean;
|
|
16
|
+
someSelected: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Multi-row selection, controlled or uncontrolled. `allSelected`/`someSelected`
|
|
20
|
+
* (for the header checkbox) are O(n) scans, so they're only computed when
|
|
21
|
+
* `multiSelect` is on.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useSelection<T>({ items, getKey, multiSelect, selectedKeys, onSelectionChange, }: UseSelectionArgs<T>): UseSelectionResult;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { VirtualListColumn, VirtualListSort } from './virtualList.types.js';
|
|
2
|
+
interface UseSortingArgs<T> {
|
|
3
|
+
items: T[];
|
|
4
|
+
columns?: VirtualListColumn<T>[];
|
|
5
|
+
/** Controlled sort. When provided, internal state is ignored. */
|
|
6
|
+
sort?: VirtualListSort | null;
|
|
7
|
+
defaultSort?: VirtualListSort | null;
|
|
8
|
+
onSortChange?: (sort: VirtualListSort | null) => void;
|
|
9
|
+
}
|
|
10
|
+
interface UseSortingResult<T> {
|
|
11
|
+
/** `items`, reordered when the sorted column carries a comparator. */
|
|
12
|
+
rows: T[];
|
|
13
|
+
effectiveSort: VirtualListSort | null;
|
|
14
|
+
/** True only when this hook reordered the rows, not when it merely reported. */
|
|
15
|
+
isSorted: boolean;
|
|
16
|
+
handleHeaderSort: (key: string) => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Header sorting, controlled or uncontrolled. Whether the list reorders the data
|
|
20
|
+
* or only reports the click is the column's decision, not a prop: a column with
|
|
21
|
+
* `sortValue`/`compare` is sorted here, a bare `sortable` one is left alone so a
|
|
22
|
+
* server-side sort can own it. Sorting a paginated list here would silently
|
|
23
|
+
* order only the rows loaded so far.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useSorting<T>({ items, columns, sort, defaultSort, onSortChange, }: UseSortingArgs<T>): UseSortingResult<T>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VirtualListHandle } from './virtualList.types.js';
|
|
3
|
+
interface UseVirtualWindowArgs<T> {
|
|
4
|
+
items: T[];
|
|
5
|
+
/** Stable key per row (already derived by the caller). */
|
|
6
|
+
keys: (string | number)[];
|
|
7
|
+
getItemKey?: (item: T, index: number) => string | number;
|
|
8
|
+
estimatedRowHeight: number;
|
|
9
|
+
rowGap: number | string;
|
|
10
|
+
overscan: number;
|
|
11
|
+
onLoadMore?: () => Promise<void>;
|
|
12
|
+
loadMoreThreshold: number;
|
|
13
|
+
/** Initial/filter load in progress — the body is replaced by a spinner. */
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface UseVirtualWindowResult {
|
|
17
|
+
rootRef: React.RefObject<HTMLDivElement | null>;
|
|
18
|
+
headerRef: React.RefObject<HTMLDivElement | null>;
|
|
19
|
+
/** Shared by every row to measure its height (read back via `data-index`). */
|
|
20
|
+
rowObserver: ResizeObserver | null;
|
|
21
|
+
/** Latest index → key mapping, for async consumers (e.g. the drag hook). */
|
|
22
|
+
keysRef: React.RefObject<(string | number)[]>;
|
|
23
|
+
offsets: number[];
|
|
24
|
+
totalHeight: number;
|
|
25
|
+
containerHeight: number;
|
|
26
|
+
containerWidth: number;
|
|
27
|
+
startIndex: number;
|
|
28
|
+
endIndex: number;
|
|
29
|
+
handleScroll: (e: React.UIEvent<HTMLDivElement>) => void;
|
|
30
|
+
showLoadMoreSpinner: boolean;
|
|
31
|
+
/** The scroll-related imperative methods, for the component to compose into
|
|
32
|
+
* the forwarded handle alongside column controls. */
|
|
33
|
+
scrollApi: Omit<VirtualListHandle, 'recalculateColumns' | 'resetColumnWidths'>;
|
|
34
|
+
}
|
|
35
|
+
export declare function useVirtualWindow<T>({ items, keys, getItemKey, estimatedRowHeight, rowGap, overscan, onLoadMore, loadMoreThreshold, isLoading, }: UseVirtualWindowArgs<T>): UseVirtualWindowResult;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VirtualListProps } from './virtualList.types.js';
|
|
3
|
+
export { buildOffsets, findStartIndex, getVisibleRange, resolveReorderTarget, resolveTreeDropTarget, lastDescendantIndex, buildColumnTemplate, compareSortValues, isColumnSortable, isEmptySortValue, nextSort, sortItems, } from './virtualList.utils.js';
|
|
4
|
+
declare function VirtualList<T>({ ref, items, renderRow, ariaRoles, columns, height, estimatedRowHeight, overscan, rowGap, rowPadding, selectedKey, getItemKey, onRowClick, keyboardNavigation, visibleColumnKeys, onVisibleColumnsChange, persistColumnsKey, resizableColumns, columnWidths, onColumnWidthsChange, labels, sort, defaultSort, onSortChange, showColumnToggle, onLoadMore, loadMoreThreshold, isLoading, multiSelect, selectedKeys, onSelectionChange, reorderable, onReorder, longPressDelay, treeReorder, getItemDepth, isGroup, onTreeDrop, treeIndentPx, dragHandle, showDivider, rowHover, className, style, classNames, styles: slotStyles, ...rest }: VirtualListProps<T>): React.JSX.Element;
|
|
5
|
+
export default VirtualList;
|
|
@@ -0,0 +1,317 @@
|
|
|
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
|
+
export interface VirtualListScrollOptions {
|
|
78
|
+
/** Where the target row lands in the viewport. Default: 'start'. */
|
|
79
|
+
align?: 'start' | 'center' | 'end';
|
|
80
|
+
/** Native scroll behaviour. Default: 'auto'. */
|
|
81
|
+
behavior?: ScrollBehavior;
|
|
82
|
+
}
|
|
83
|
+
/** Imperative handle exposed via `ref`. */
|
|
84
|
+
export interface VirtualListHandle {
|
|
85
|
+
/** Scroll so the row at `index` is visible. */
|
|
86
|
+
scrollToIndex: (index: number, options?: VirtualListScrollOptions) => void;
|
|
87
|
+
/** Scroll to the row whose `getItemKey` matches `key` (no-op if not found). */
|
|
88
|
+
scrollToKey: (key: string | number, options?: VirtualListScrollOptions) => void;
|
|
89
|
+
/** Scroll back to the top. */
|
|
90
|
+
scrollToTop: (options?: Pick<VirtualListScrollOptions, 'behavior'>) => void;
|
|
91
|
+
/** The underlying scroll container element, for advanced use. */
|
|
92
|
+
getScrollElement: () => HTMLDivElement | null;
|
|
93
|
+
/**
|
|
94
|
+
* Re-measure `fit` columns on the next layout. Call this after an out-of-band
|
|
95
|
+
* content change that doesn't flow through a new `items` array or `columns`
|
|
96
|
+
* set (those reset automatically) — e.g. a cell's content grew in place.
|
|
97
|
+
*/
|
|
98
|
+
recalculateColumns: () => void;
|
|
99
|
+
/**
|
|
100
|
+
* Drops every user-set column width and returns the table to the widths its
|
|
101
|
+
* columns declare. Also clears them from `persistColumnsKey` storage.
|
|
102
|
+
*/
|
|
103
|
+
resetColumnWidths: () => void;
|
|
104
|
+
}
|
|
105
|
+
export type VirtualListSlots = 'root' | 'header' | 'headerCell' | 'headerToggle' | 'headerSort' | 'sortIcon' | 'resizeHandle' | 'activeRow' | 'togglePopover' | 'toggleItem' | 'toggleReset' | 'body' | 'row' | 'cell' | 'selectCell' | 'loadingIndicator' | 'dropIndicator' | 'columnChip';
|
|
106
|
+
/** Where a tree-reorder drop lands relative to the row it is over. */
|
|
107
|
+
export type TreeDropPosition = 'before' | 'inside' | 'after';
|
|
108
|
+
/** The resolved drop target reported to `onTreeDrop`. */
|
|
109
|
+
export interface TreeDropTarget {
|
|
110
|
+
/** `getItemKey` of the row the drop lands on. */
|
|
111
|
+
key: string | number;
|
|
112
|
+
/**
|
|
113
|
+
* `before`/`after` place the dragged node as a sibling of the target (at the
|
|
114
|
+
* target's depth); `inside` makes it a child of the target (only offered when
|
|
115
|
+
* `isGroup` returns true for that row).
|
|
116
|
+
*/
|
|
117
|
+
position: TreeDropPosition;
|
|
118
|
+
}
|
|
119
|
+
/** Text VirtualList renders of its own, for translating it. */
|
|
120
|
+
export interface VirtualListLabels {
|
|
121
|
+
/** A row's select checkbox, read out by screen readers. */
|
|
122
|
+
selectRow?: string;
|
|
123
|
+
/** The header's select-all checkbox, read out by screen readers. */
|
|
124
|
+
selectAllRows?: string;
|
|
125
|
+
/** The gear that opens the column menu, read out by screen readers. */
|
|
126
|
+
toggleColumns?: string;
|
|
127
|
+
/** The badge on the gear, given how many columns the user has hidden. */
|
|
128
|
+
columnsHidden?: (count: number) => string;
|
|
129
|
+
/** The entry in the column menu that undoes the user's column widths. */
|
|
130
|
+
resetColumnWidths?: ReactNode;
|
|
131
|
+
}
|
|
132
|
+
export interface VirtualListProps<T> extends HtmlProps {
|
|
133
|
+
items: T[];
|
|
134
|
+
/** Render function for list mode (no columns). Ignored when `columns` is provided. */
|
|
135
|
+
renderRow?: (item: T, index: number) => ReactNode;
|
|
136
|
+
/** Column definitions — presence enables table/header mode. */
|
|
137
|
+
columns?: VirtualListColumn<T>[];
|
|
138
|
+
/**
|
|
139
|
+
* Replaces the roles put on the container and rows (default `list`/`listitem`, or `grid`/`row`
|
|
140
|
+
* with columns). Pass `'none'` for both when the rows carry their own semantics, as `Tree` does.
|
|
141
|
+
*/
|
|
142
|
+
ariaRoles?: {
|
|
143
|
+
container: string;
|
|
144
|
+
row: string;
|
|
145
|
+
};
|
|
146
|
+
/** Height of the scroll viewport. Defaults to '100%' to fill the parent container. */
|
|
147
|
+
height?: number | string;
|
|
148
|
+
/** Estimated row height before measurement. Default: 40. */
|
|
149
|
+
estimatedRowHeight?: number;
|
|
150
|
+
/** Extra rows to render above/below the visible window. Default: 3. */
|
|
151
|
+
overscan?: number;
|
|
152
|
+
/**
|
|
153
|
+
* Gap between rows. A number is treated as px; a string may be any CSS length
|
|
154
|
+
* (`'1em'`, `'0.5rem'`, `'1px'`, or a custom property like `'var(--spacing-s)'`).
|
|
155
|
+
* Non-px units / custom properties are resolved against the list element.
|
|
156
|
+
* Default: 0.
|
|
157
|
+
*/
|
|
158
|
+
rowGap?: number | string;
|
|
159
|
+
/**
|
|
160
|
+
* Padding applied to every row. A number is treated as px; a string may be any
|
|
161
|
+
* CSS padding value (`'8px 12px'`, `'1em'`, `'var(--spacing-s)'`). Because each
|
|
162
|
+
* row's height is measured after layout, the padding is reflected in the
|
|
163
|
+
* virtualization automatically — no layout math is affected.
|
|
164
|
+
*/
|
|
165
|
+
rowPadding?: number | string;
|
|
166
|
+
/** Show a divider line between rows. Default: true. */
|
|
167
|
+
showDivider?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Highlight rows on hover. Default: true. Set false when the row content
|
|
170
|
+
* handles its own hover affordance (e.g. a Card per row), so the list's
|
|
171
|
+
* background doesn't fight it.
|
|
172
|
+
*/
|
|
173
|
+
rowHover?: boolean;
|
|
174
|
+
/** Controlled selected row key. Matched against `getItemKey`. */
|
|
175
|
+
selectedKey?: string | number | null;
|
|
176
|
+
/** Returns a stable key per item. Defaults to row index. */
|
|
177
|
+
getItemKey?: (item: T, index: number) => string | number;
|
|
178
|
+
/** Called when a row is clicked. */
|
|
179
|
+
onRowClick?: (item: T, index: number) => void;
|
|
180
|
+
/**
|
|
181
|
+
* Arrow-key navigation over the rows, on by default. The list takes one tab
|
|
182
|
+
* stop, the arrows move an active row, Enter fires `onRowClick` and Space
|
|
183
|
+
* toggles the selection in `multiSelect`. Keys are ignored while the focus is
|
|
184
|
+
* inside a cell, so a control in a row keeps its own.
|
|
185
|
+
*
|
|
186
|
+
* Turn it off for a list whose rows already handle their own keys, the way
|
|
187
|
+
* `Tree` does.
|
|
188
|
+
*/
|
|
189
|
+
keyboardNavigation?: boolean;
|
|
190
|
+
/** Controlled visible column keys. When provided, internal state is ignored. */
|
|
191
|
+
visibleColumnKeys?: string[];
|
|
192
|
+
/** Called when the user toggles a column in the popover. */
|
|
193
|
+
onVisibleColumnsChange?: (keys: string[]) => void;
|
|
194
|
+
/**
|
|
195
|
+
* When set, column visibility is saved to `localStorage` under this key and
|
|
196
|
+
* restored on the next mount of a list with the same key. Only applies in
|
|
197
|
+
* uncontrolled mode (ignored when `visibleColumnKeys` is provided). Newly
|
|
198
|
+
* added columns that weren't present when the settings were saved fall back
|
|
199
|
+
* to their `defaultHidden` value rather than the saved set.
|
|
200
|
+
*/
|
|
201
|
+
persistColumnsKey?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Controlled sort state. `null` is unsorted (source order). When provided,
|
|
204
|
+
* internal state is ignored.
|
|
205
|
+
*/
|
|
206
|
+
sort?: VirtualListSort | null;
|
|
207
|
+
/** Initial sort in uncontrolled mode. Default: `null`. */
|
|
208
|
+
defaultSort?: VirtualListSort | null;
|
|
209
|
+
/**
|
|
210
|
+
* Called on each header click with the next step of the asc → desc → unsorted
|
|
211
|
+
* cycle. The list reorders `items` itself for columns that define `sortValue`
|
|
212
|
+
* or `compare`; for a `sortable` column it only reports, and sorting the data
|
|
213
|
+
* is yours to do.
|
|
214
|
+
*/
|
|
215
|
+
onSortChange?: (sort: VirtualListSort | null) => void;
|
|
216
|
+
/**
|
|
217
|
+
* Lets the user drag a column's right edge to resize it, double-click it to fit
|
|
218
|
+
* the column to its content, or resize it from the keyboard once the handle has
|
|
219
|
+
* focus. The first resize pins every visible column to its current pixel width
|
|
220
|
+
* (nothing moves at that moment), after which the table is an exact pixel
|
|
221
|
+
* layout that scrolls horizontally rather than redistributing space.
|
|
222
|
+
*/
|
|
223
|
+
resizableColumns?: boolean;
|
|
224
|
+
/** Controlled column widths in px, keyed by column key. */
|
|
225
|
+
columnWidths?: Record<string, number>;
|
|
226
|
+
/** Overrides the text VirtualList renders of its own. Merged per key. */
|
|
227
|
+
labels?: VirtualListLabels;
|
|
228
|
+
/** Called with the full width map whenever the user resizes or auto-fits a column. */
|
|
229
|
+
onColumnWidthsChange?: (widths: Record<string, number>) => void;
|
|
230
|
+
/** Show the gear column-toggle button in the header. Default: true when columns present. */
|
|
231
|
+
showColumnToggle?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Called when the user scrolls within `loadMoreThreshold` px of the bottom, and
|
|
234
|
+
* repeatedly while the rows don't fill the viewport — a list too short to scroll
|
|
235
|
+
* would otherwise never ask for a second batch. Each row count is asked at most
|
|
236
|
+
* once, so the loop ends as soon as a call appends nothing; pass `undefined`
|
|
237
|
+
* once the source is exhausted to skip even that final probe.
|
|
238
|
+
* Must return a Promise that resolves once new items have been appended to `items`.
|
|
239
|
+
* A spinner is shown at the bottom while the Promise is pending.
|
|
240
|
+
*/
|
|
241
|
+
onLoadMore?: () => Promise<void>;
|
|
242
|
+
/** Distance in px from the bottom that triggers `onLoadMore`. Default: 100. */
|
|
243
|
+
loadMoreThreshold?: number;
|
|
244
|
+
/** Replaces the list body with a full-height spinner (for initial/filter loads). */
|
|
245
|
+
isLoading?: boolean;
|
|
246
|
+
/** Enables multi-row selection with a checkbox column on the far left. */
|
|
247
|
+
multiSelect?: boolean;
|
|
248
|
+
/** Controlled set of selected item keys. When provided, internal state is ignored. */
|
|
249
|
+
selectedKeys?: Set<string | number>;
|
|
250
|
+
/** Called when the selection changes. */
|
|
251
|
+
onSelectionChange?: (keys: Set<string | number>) => void;
|
|
252
|
+
/**
|
|
253
|
+
* Enables drag-and-drop row reordering (native HTML5 drag — desktop/mouse).
|
|
254
|
+
* The whole row becomes draggable; pair with `onReorder` to apply the move.
|
|
255
|
+
* Provide `getItemKey` so reordered rows keep their measured heights.
|
|
256
|
+
*/
|
|
257
|
+
reorderable?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Called while the user drags a row over a new position. Fires live (on each
|
|
260
|
+
* change), so apply it immediately — e.g. `setItems(prev => move(prev, from, to))`.
|
|
261
|
+
*/
|
|
262
|
+
onReorder?: (fromIndex: number, toIndex: number) => void;
|
|
263
|
+
/**
|
|
264
|
+
* Touch only: how long (ms) the user must press-and-hold a row before drag
|
|
265
|
+
* mode activates, so a normal swipe still scrolls the list. Default: 400.
|
|
266
|
+
*/
|
|
267
|
+
longPressDelay?: number;
|
|
268
|
+
/**
|
|
269
|
+
* Enables tree drag-and-drop: instead of a flat reorder, a dragged row can be
|
|
270
|
+
* dropped `before`, `after`, or `inside` another row. Mutually exclusive with
|
|
271
|
+
* `reorderable` (if both are set, `treeReorder` wins). Unlike `reorderable`,
|
|
272
|
+
* rows are NOT moved live — a drop indicator is shown during the drag and
|
|
273
|
+
* `onTreeDrop` fires once on release. The list is still a flat array: hold the
|
|
274
|
+
* real tree in your own state, flatten the expanded nodes into `items` (each
|
|
275
|
+
* tagged with its depth), and re-flatten after applying the drop.
|
|
276
|
+
* Provide `getItemKey` so rows keep their measured heights across re-flattens.
|
|
277
|
+
*/
|
|
278
|
+
treeReorder?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* Depth of each row in the tree (0 = root). Used to align the drop indicator
|
|
281
|
+
* and to forbid dropping a node onto itself or its own descendants. Defaults
|
|
282
|
+
* to 0 for every row.
|
|
283
|
+
*/
|
|
284
|
+
getItemDepth?: (item: T, index: number) => number;
|
|
285
|
+
/**
|
|
286
|
+
* Whether a row can receive children — i.e. whether an `inside` drop is
|
|
287
|
+
* offered when hovering its middle third. Defaults to false (leaf) for every
|
|
288
|
+
* row, so only `before`/`after` are offered.
|
|
289
|
+
*/
|
|
290
|
+
isGroup?: (item: T, index: number) => boolean;
|
|
291
|
+
/**
|
|
292
|
+
* Called once when a tree-reorder drag is released on a valid target. Apply
|
|
293
|
+
* the move to your tree state and re-flatten. Not called when the drop target
|
|
294
|
+
* is the dragged node itself or one of its descendants.
|
|
295
|
+
*/
|
|
296
|
+
onTreeDrop?: (dragKey: string | number, target: TreeDropTarget) => void;
|
|
297
|
+
/**
|
|
298
|
+
* Indent (px per depth level) used to position the `before`/`after` drop
|
|
299
|
+
* indicator line so it aligns with where the dropped content will start.
|
|
300
|
+
* Match this to the per-level padding you apply to row content. Default: 24.
|
|
301
|
+
*/
|
|
302
|
+
treeIndentPx?: number;
|
|
303
|
+
/**
|
|
304
|
+
* Restrict drag initiation to elements marked `data-drag-handle` within a row
|
|
305
|
+
* (rather than the whole row). Essential for rows containing editable inputs
|
|
306
|
+
* or other interactive controls, so clicking/typing/selecting text in them
|
|
307
|
+
* doesn't start a drag. Applies to both `reorderable` and `treeReorder`, mouse
|
|
308
|
+
* and touch. Render a handle in your row, e.g. `<span data-drag-handle>⠿</span>`.
|
|
309
|
+
*/
|
|
310
|
+
dragHandle?: boolean;
|
|
311
|
+
/** Imperative handle for scrolling and for recalculating column layout. */
|
|
312
|
+
ref?: Ref<VirtualListHandle>;
|
|
313
|
+
className?: string;
|
|
314
|
+
style?: CSSProperties;
|
|
315
|
+
classNames?: SlotClassNames<VirtualListSlots>;
|
|
316
|
+
styles?: SlotStyles<VirtualListSlots>;
|
|
317
|
+
}
|