@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,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A fixed-width digit mask: `99:99`, `99.99.9999`.
|
|
3
|
+
*
|
|
4
|
+
* Fixed means every character keeps its position. Clearing a digit in the middle leaves a hole
|
|
5
|
+
* rather than pulling the rest left, which is what a date or a time wants: deleting the month
|
|
6
|
+
* out of `11.11.2025` must not turn the year into the month.
|
|
7
|
+
*
|
|
8
|
+
* `9` marks a slot that takes a digit. Every other character is a literal the caret steps over
|
|
9
|
+
* and the user cannot type into.
|
|
10
|
+
*/
|
|
11
|
+
export interface MaskSelection {
|
|
12
|
+
start: number;
|
|
13
|
+
end: number;
|
|
14
|
+
}
|
|
15
|
+
export interface MaskState {
|
|
16
|
+
value: string;
|
|
17
|
+
selection: MaskSelection | null;
|
|
18
|
+
}
|
|
19
|
+
/** The mask indices that take a digit, in order. */
|
|
20
|
+
export declare function slotIndices(mask: string): number[];
|
|
21
|
+
/** The mask with every slot empty: `__.__.____`. */
|
|
22
|
+
export declare function emptyMask(mask: string, placeholder: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* Any string as one character per mask index, so slots can be read and written by position.
|
|
25
|
+
*
|
|
26
|
+
* Every other function here assumes a value exactly as long as the mask, with literals where the
|
|
27
|
+
* mask has them. Putting a value through this is what guarantees that, whether it came from a
|
|
28
|
+
* keystroke, from a consumer's state, or from nothing at all.
|
|
29
|
+
*/
|
|
30
|
+
export declare function toMask(value: string, mask: string, placeholder: string): string;
|
|
31
|
+
/**
|
|
32
|
+
* Where the caret belongs when the field is entered: the first slot with no digit in it.
|
|
33
|
+
*
|
|
34
|
+
* A mask is as wide when empty as when full, so a click lands wherever it likes, and clicking at
|
|
35
|
+
* the end of `__.__.____` would otherwise leave the caret past every slot with nowhere to put the
|
|
36
|
+
* next digit.
|
|
37
|
+
*/
|
|
38
|
+
export declare function firstEmptyCaret(value: string, mask: string, placeholder: string): number;
|
|
39
|
+
/**
|
|
40
|
+
* What the field should show after the browser has changed its raw text, and where the caret
|
|
41
|
+
* belongs.
|
|
42
|
+
*
|
|
43
|
+
* Works from the edit rather than from key events, so a paste, a drag, a replaced selection, an
|
|
44
|
+
* autofill and a keystroke all arrive the same way.
|
|
45
|
+
*/
|
|
46
|
+
export declare function maskChange(previous: string, raw: string, caret: number, mask: string, placeholder: string): MaskState;
|
|
47
|
+
/** Whether a masked value holds no digits at all, so the field reads as empty. */
|
|
48
|
+
export declare function isBlank(value: string, mask: string): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MaskedInputProps } from './maskedInput.types.js';
|
|
3
|
+
/**
|
|
4
|
+
* A text input under a fixed digit mask, used by `DatePicker` and `TimeInput` through `Input`'s
|
|
5
|
+
* `customInput`. Internal: consumers reach it through those two.
|
|
6
|
+
*
|
|
7
|
+
* Controlled, with one exception. An empty field shows nothing until it is focused, and then shows
|
|
8
|
+
* the bare mask, so a form full of `__.__.____` does not greet someone who has typed nothing. That
|
|
9
|
+
* mask is display only and is never reported through `onChange`, or every untouched date field
|
|
10
|
+
* would submit a value made of underscores.
|
|
11
|
+
*/
|
|
12
|
+
declare function MaskedInput(props: MaskedInputProps): React.JSX.Element;
|
|
13
|
+
export default MaskedInput;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DataProps } from '../types/slots.types.js';
|
|
3
|
+
import { MaskSelection, MaskState } from './mask.js';
|
|
4
|
+
export type { MaskSelection, MaskState };
|
|
5
|
+
/**
|
|
6
|
+
* What a correction hook is handed. Both states are the value as the mask shapes it, exactly as
|
|
7
|
+
* long as the mask, with its literals in place.
|
|
8
|
+
*/
|
|
9
|
+
export interface BeforeMaskedStateChangeStates {
|
|
10
|
+
previousState: MaskState;
|
|
11
|
+
nextState: MaskState;
|
|
12
|
+
}
|
|
13
|
+
export interface MaskedInputProps extends DataProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value' | 'defaultValue'> {
|
|
14
|
+
/** The inner `<input>`. `Input` leaves the ref to a `customInput`, so this is the way to it. */
|
|
15
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
16
|
+
/** `9` takes a digit, every other character is a literal: `99:99`, `99.99.9999`. */
|
|
17
|
+
mask: string;
|
|
18
|
+
/** Shown in a slot with no digit in it yet. Default `_`. */
|
|
19
|
+
maskPlaceholder?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The masked value, e.g. `11.11.2025` or `1_.__.____`. Anything else is coerced to the mask,
|
|
22
|
+
* reading each slot positionally, so a value from elsewhere cannot leave the field a shape the
|
|
23
|
+
* next keystroke would be measured against wrongly. `''` means empty, and shows nothing until
|
|
24
|
+
* the field is focused.
|
|
25
|
+
*/
|
|
26
|
+
value?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Called with the new masked value, or `''` once the last digit is gone. A string rather than an
|
|
29
|
+
* event, which is what `Input`'s own handler accepts, so there is no synthetic event to forge.
|
|
30
|
+
*/
|
|
31
|
+
onChange?: (value: string) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Last word on what the field becomes, for corrections that depend on the value as a whole —
|
|
34
|
+
* clamping an hour past 23, padding a day typed as `4` to `04`. Returning `nextState` unchanged
|
|
35
|
+
* accepts the mask's own answer. Called only for a change the user made.
|
|
36
|
+
*/
|
|
37
|
+
beforeMaskedStateChange?: (states: BeforeMaskedStateChangeStates) => MaskState;
|
|
38
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { MenuProps } from './menu.types.js';
|
|
3
|
+
/**
|
|
4
|
+
* A menu of actions on a trigger of your choosing.
|
|
5
|
+
*
|
|
6
|
+
* `Popover` does the anchoring, portalling and outside-click work but takes
|
|
7
|
+
* arbitrary `content`, which leaves every consumer to write their own `ul`/`li`
|
|
8
|
+
* and, in practice, to leave out the roles and the arrow keys. This is that list,
|
|
9
|
+
* done once: `role="menu"`, a roving focus that skips disabled entries, Escape
|
|
10
|
+
* back to the trigger, and separators and headings that stay out of the keyboard
|
|
11
|
+
* order.
|
|
12
|
+
*/
|
|
13
|
+
declare function Menu({ items, children, onAction, isOpen: controlledOpen, onOpenChange, placement, align, presentation, className, style, classNames, styles: slotStyles, ...rest }: MenuProps): ReactElement;
|
|
14
|
+
export default Menu;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types.js';
|
|
3
|
+
import { IconContent } from '../types/icon.types.js';
|
|
4
|
+
import { PopoverAlign, PopoverPlacement } from '../popover/popover.types.js';
|
|
5
|
+
import { Presentation } from '../configProvider/presentation.types.js';
|
|
6
|
+
/** One thing the menu can do. */
|
|
7
|
+
export interface MenuAction {
|
|
8
|
+
/** Stable id, also what `onAction` reports. */
|
|
9
|
+
id: string;
|
|
10
|
+
label: ReactNode;
|
|
11
|
+
icon?: IconContent;
|
|
12
|
+
/**
|
|
13
|
+
* Keyboard hint on the trailing edge, e.g. `⌘K`. Display only: binding the
|
|
14
|
+
* shortcut is yours, since only you know what else is listening.
|
|
15
|
+
*/
|
|
16
|
+
shortcut?: ReactNode;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Renders in the destructive colour. For deleting, discarding, revoking. */
|
|
19
|
+
danger?: boolean;
|
|
20
|
+
onClick?: () => void;
|
|
21
|
+
}
|
|
22
|
+
/** A line between groups of actions. */
|
|
23
|
+
export interface MenuSeparator {
|
|
24
|
+
separator: true;
|
|
25
|
+
}
|
|
26
|
+
/** A label over the actions that follow it. */
|
|
27
|
+
export interface MenuHeading {
|
|
28
|
+
heading: ReactNode;
|
|
29
|
+
}
|
|
30
|
+
export type MenuEntry = MenuAction | MenuSeparator | MenuHeading;
|
|
31
|
+
export declare function isMenuSeparator(entry: MenuEntry): entry is MenuSeparator;
|
|
32
|
+
export declare function isMenuHeading(entry: MenuEntry): entry is MenuHeading;
|
|
33
|
+
export declare function isMenuAction(entry: MenuEntry): entry is MenuAction;
|
|
34
|
+
export type MenuSlots = 'root' | 'trigger' | 'menu' | 'item' | 'itemIcon' | 'itemLabel' | 'itemShortcut' | 'separator' | 'heading';
|
|
35
|
+
export interface MenuProps extends Omit<HtmlProps, 'onSelect'> {
|
|
36
|
+
/** What the menu offers, in the order it is read. */
|
|
37
|
+
items: MenuEntry[];
|
|
38
|
+
/** The element that opens the menu. */
|
|
39
|
+
children?: ReactNode;
|
|
40
|
+
/** Called with the id of the action that was picked, after its own `onClick`. */
|
|
41
|
+
onAction?: (id: string) => void;
|
|
42
|
+
/** Controlled open state. Leave it out to let the menu manage its own. */
|
|
43
|
+
isOpen?: boolean;
|
|
44
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
45
|
+
/** Which side of the trigger the menu opens on (default `Bottom`). */
|
|
46
|
+
placement?: PopoverPlacement;
|
|
47
|
+
/** Which edge it lines up with on the cross axis (default `Start`). */
|
|
48
|
+
align?: PopoverAlign;
|
|
49
|
+
/** Anchored to the trigger, pinned to the bottom of the screen, or the latter only on touch. */
|
|
50
|
+
presentation?: Presentation;
|
|
51
|
+
className?: string;
|
|
52
|
+
style?: CSSProperties;
|
|
53
|
+
classNames?: SlotClassNames<MenuSlots>;
|
|
54
|
+
styles?: SlotStyles<MenuSlots>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types.js';
|
|
3
|
+
import { Presentation } from '../configProvider/presentation.types.js';
|
|
4
|
+
export type ModalSlots = 'container' | 'backdrop' | 'modal' | 'header' | 'title' | 'closeButton' | 'body' | 'footer';
|
|
5
|
+
/** Text Modal renders of its own, for translating it. */
|
|
6
|
+
export interface ModalLabels {
|
|
7
|
+
/** Close button, read out by screen readers. */
|
|
8
|
+
close?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ModalProps extends HtmlProps<HTMLDivElement> {
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
title?: string;
|
|
13
|
+
isOpen?: boolean;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
/** Applied to the modal panel itself */
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: CSSProperties;
|
|
18
|
+
/** Pinned below the scrolling body, so action buttons stay visible however long the content
|
|
19
|
+
* is. Nothing is rendered when omitted. */
|
|
20
|
+
footer?: React.ReactNode;
|
|
21
|
+
hideHeader?: boolean;
|
|
22
|
+
/** Close on Escape while this is the topmost overlay. Default `true`. */
|
|
23
|
+
closeOnEscape?: boolean;
|
|
24
|
+
/** Present as a bottom sheet, always or only on a small touch screen. `Presentation.Default`
|
|
25
|
+
* (or omitting this) is the ordinary centred dialog. */
|
|
26
|
+
presentation?: Presentation;
|
|
27
|
+
classNames?: SlotClassNames<ModalSlots>;
|
|
28
|
+
styles?: SlotStyles<ModalSlots>;
|
|
29
|
+
/** Overrides the text Modal renders of its own. Merged per key. */
|
|
30
|
+
labels?: ModalLabels;
|
|
31
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { FormValidator } from '../../services/formValidation/index.js';
|
|
3
|
+
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types.js';
|
|
4
|
+
import { Presentation } from '../configProvider/presentation.types.js';
|
|
5
|
+
export type MultiSelectValue = string | number;
|
|
6
|
+
export interface MultiSelectItem {
|
|
7
|
+
key: MultiSelectValue;
|
|
8
|
+
/** Visible text. A string, not a `ReactNode`, because it also renders inside a `Chip`. */
|
|
9
|
+
label: string;
|
|
10
|
+
/** Disable just this option. */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type MultiSelectSlots = 'root' | 'label' | 'fieldset' | 'control' | 'values' | 'chip' | 'placeholder' | 'clearButton' | 'icon' | 'panel' | 'search' | 'options' | 'option' | 'optionCheck' | 'optionLabel' | 'empty';
|
|
14
|
+
/** Text MultiSelect renders of its own, for translating it. */
|
|
15
|
+
export interface MultiSelectLabels {
|
|
16
|
+
/** Button that empties the selection, read out by screen readers. */
|
|
17
|
+
clearSelection?: string;
|
|
18
|
+
/** Entry that creates a value from what was typed (default `Add "<value>"`). */
|
|
19
|
+
create?: (value: string) => string;
|
|
20
|
+
/** Placeholder in the search field (default `Search…`). */
|
|
21
|
+
searchPlaceholder?: string;
|
|
22
|
+
/** Shown when nothing matches the search (default `No matches`). */
|
|
23
|
+
empty?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface MultiSelectProps extends Omit<HtmlProps<HTMLDivElement>, 'onChange' | 'value' | 'defaultValue'> {
|
|
26
|
+
/** The selectable options. */
|
|
27
|
+
items: MultiSelectItem[];
|
|
28
|
+
/** Controlled selection. Omit for uncontrolled. */
|
|
29
|
+
value?: MultiSelectValue[];
|
|
30
|
+
/** Initial selection when uncontrolled (default `[]`). */
|
|
31
|
+
defaultValue?: MultiSelectValue[];
|
|
32
|
+
/** Fires with the full new selection, in the order the items were picked. */
|
|
33
|
+
onChange?: (value: MultiSelectValue[]) => void;
|
|
34
|
+
/** Field label. Rests inside the control and floats up into the border notch, like `Input`. */
|
|
35
|
+
label?: string;
|
|
36
|
+
/** Keep the label floating even when the field is empty and unfocused (default `false`). */
|
|
37
|
+
alwaysFloatLabel?: boolean;
|
|
38
|
+
/** Shown while nothing is selected. With a `label`, only once the label has floated clear. */
|
|
39
|
+
placeholder?: string;
|
|
40
|
+
/** Show a search box in the panel that filters the options (default `false`). */
|
|
41
|
+
searchable?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Let the user add a value that isn't in `items` by typing it and picking the "add" row that
|
|
44
|
+
* appears. Implies `searchable`, since the search box is where the value is typed. The new
|
|
45
|
+
* value becomes its own key, so `onChange` reports it as a plain string.
|
|
46
|
+
*/
|
|
47
|
+
allowCustomValues?: boolean;
|
|
48
|
+
/** Cap the number of selections. Unselected options disable once the cap is reached. */
|
|
49
|
+
maxSelected?: number;
|
|
50
|
+
/** Show a button that clears the whole selection (default `true`). */
|
|
51
|
+
clearable?: boolean;
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
/** Show the selection but allow no changes, without the dimming `disabled` applies. */
|
|
54
|
+
readOnly?: boolean;
|
|
55
|
+
/** Where the panel opens: anchored to the control, as a bottom sheet, or a sheet only on a
|
|
56
|
+
* small touch screen. Forwarded to `Popover`. */
|
|
57
|
+
presentation?: Presentation;
|
|
58
|
+
formValidator?: FormValidator | null;
|
|
59
|
+
/** Manual error message shown in a tooltip (used when there's no `formValidator`). */
|
|
60
|
+
errorMessage?: string;
|
|
61
|
+
/** Manual valid state when not using a `formValidator` (default `true`). */
|
|
62
|
+
isValid?: boolean;
|
|
63
|
+
className?: string;
|
|
64
|
+
style?: CSSProperties;
|
|
65
|
+
classNames?: SlotClassNames<MultiSelectSlots>;
|
|
66
|
+
styles?: SlotStyles<MultiSelectSlots>;
|
|
67
|
+
/** Overrides the text MultiSelect renders of its own. Merged per key. */
|
|
68
|
+
labels?: MultiSelectLabels;
|
|
69
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { NumberInputProps } from './numberInput.types.js';
|
|
3
|
+
export type { NumberInputProps, NumberInputArrowsLayout } from './numberInput.types.js';
|
|
4
|
+
declare function NumberInput(props: NumberInputProps): ReactElement;
|
|
5
|
+
export default NumberInput;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NumericFormatProps } from 'react-number-format';
|
|
3
|
+
import { FormValidator } from '../../services/formValidation/index.js';
|
|
4
|
+
import { SlotClassNames, SlotStyles } from '../types/slots.types.js';
|
|
5
|
+
/**
|
|
6
|
+
* How the stepper buttons are laid out.
|
|
7
|
+
*
|
|
8
|
+
* - `stacked` — chevrons stacked inside the field's right edge. Compact; suits a mouse.
|
|
9
|
+
* - `split` — square `−` / `+` buttons flanking the field, each as tall and wide as the field.
|
|
10
|
+
* Far apart with the field between them, so a mis-tap can't step the value the wrong way.
|
|
11
|
+
* - `auto` — `split` on a coarse (touch) pointer, `stacked` otherwise.
|
|
12
|
+
*/
|
|
13
|
+
export type NumberInputArrowsLayout = 'auto' | 'stacked' | 'split';
|
|
14
|
+
/** Text NumberInput renders of its own, for translating it. */
|
|
15
|
+
export interface NumberInputLabels {
|
|
16
|
+
/** The step-up button, read out by screen readers (default `Increase`). */
|
|
17
|
+
increase?: string;
|
|
18
|
+
/** The step-down button, read out by screen readers (default `Decrease`). */
|
|
19
|
+
decrease?: string;
|
|
20
|
+
}
|
|
21
|
+
export type NumberInputSlots = 'root' | 'input' | 'arrows' | 'increaseButton' | 'decreaseButton';
|
|
22
|
+
export interface NumberInputProps extends Omit<NumericFormatProps, 'onValueChange' | 'value' | 'customInput' | 'onChange' | 'step' | 'onKeyDown' | 'min' | 'max'> {
|
|
23
|
+
value?: number | string;
|
|
24
|
+
onChange?: (value: number | undefined) => void;
|
|
25
|
+
formValidator?: FormValidator | null;
|
|
26
|
+
label?: string;
|
|
27
|
+
error?: string;
|
|
28
|
+
className?: string;
|
|
29
|
+
allowNegative?: boolean;
|
|
30
|
+
decimalSeparator?: string;
|
|
31
|
+
thousandSeparator?: string | boolean;
|
|
32
|
+
prefix?: string;
|
|
33
|
+
suffix?: string;
|
|
34
|
+
decimalScale?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to pad the value to exactly `decimalScale` decimals. Default `true`
|
|
37
|
+
* (e.g. with `decimalScale={2}`, `12` displays as `12.00`). Set `false` to make
|
|
38
|
+
* `decimalScale` an upper limit only — the user may type fewer decimals and they
|
|
39
|
+
* are kept as-is (`12` stays `12`, `12.1` stays `12.1`), while anything beyond
|
|
40
|
+
* `decimalScale` is still truncated.
|
|
41
|
+
*/
|
|
42
|
+
fixedDecimalScale?: boolean;
|
|
43
|
+
placeholder?: string;
|
|
44
|
+
sign?: '+' | '-';
|
|
45
|
+
showArrows?: boolean;
|
|
46
|
+
step?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Lower bound. Constrains the steppers and the ArrowDown key, disables the decrease button
|
|
49
|
+
* once reached, and clamps a typed value on blur and on Enter — the two moments it stops
|
|
50
|
+
* being mid-edit. Typing is never blocked; see {@link NumberInputProps.max}.
|
|
51
|
+
*/
|
|
52
|
+
min?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Upper bound. Behaves exactly like {@link NumberInputProps.min} in the other direction.
|
|
55
|
+
*
|
|
56
|
+
* Neither bound rejects a keystroke as it is typed — an edit passes through out-of-range
|
|
57
|
+
* states on its way somewhere valid — and an empty field is never clamped. Use a
|
|
58
|
+
* `formValidator` if out-of-range input must be *rejected* rather than corrected.
|
|
59
|
+
*/
|
|
60
|
+
max?: number;
|
|
61
|
+
/** Stepper layout. Default `'auto'`. */
|
|
62
|
+
arrowsLayout?: NumberInputArrowsLayout;
|
|
63
|
+
/** Accessible name for the increase button. Default `'Increase'`. */
|
|
64
|
+
/** Accessible name for the decrease button. Default `'Decrease'`. */
|
|
65
|
+
readOnly?: boolean;
|
|
66
|
+
isRequired?: boolean;
|
|
67
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
68
|
+
/** Overrides the text NumberInput renders of its own. Merged per key. */
|
|
69
|
+
labels?: NumberInputLabels;
|
|
70
|
+
/** Ref to the inner `<input>`, for focusing the field. */
|
|
71
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
72
|
+
/** Classes for the inner elements. See `NumberInputSlots`. */
|
|
73
|
+
classNames?: SlotClassNames<NumberInputSlots>;
|
|
74
|
+
/** Inline styles for the inner elements. See `NumberInputSlots`. */
|
|
75
|
+
styles?: SlotStyles<NumberInputSlots>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface UseStepRepeatResult {
|
|
2
|
+
/** Fires one step immediately, then starts the hold-to-repeat timer. */
|
|
3
|
+
start: (direction: 1 | -1, multiplier: number) => void;
|
|
4
|
+
/** Cancels a running repeat. Safe to call when nothing is running. */
|
|
5
|
+
stop: () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Hold-to-repeat for the stepper buttons: one step on press, then an accelerating repeat.
|
|
9
|
+
*
|
|
10
|
+
* The release is watched on `window` rather than by capturing the pointer, which would retarget
|
|
11
|
+
* the following click past the node Button's ripple listens on. Capture would have guaranteed a
|
|
12
|
+
* `pointerup`, so the extra listeners cover the ways a press can end without one.
|
|
13
|
+
*
|
|
14
|
+
* `onStep` returns whether anything changed; `false` ends the repeat, so a hold at a bound stops.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useStepRepeat(onStep: (delta: number) => boolean): UseStepRepeatResult;
|
|
17
|
+
export default useStepRepeat;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { HtmlProps, SlotClassNames, SlotStyles } from '../types/slots.types.js';
|
|
3
|
+
export interface Option {
|
|
4
|
+
label: ReactElement | string;
|
|
5
|
+
key: string;
|
|
6
|
+
}
|
|
7
|
+
export type OptionPickerSlots = 'root' | 'chip' | 'option';
|
|
8
|
+
export interface OptionPickerProps extends Omit<HtmlProps, 'onChange'> {
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
classNames?: SlotClassNames<OptionPickerSlots>;
|
|
12
|
+
styles?: SlotStyles<OptionPickerSlots>;
|
|
13
|
+
options: Option[];
|
|
14
|
+
onChange: (key: string, event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
15
|
+
value: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FormValidator } from '../../services/formValidation/index.js';
|
|
3
|
+
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types.js';
|
|
4
|
+
export type OtpInputSlots = 'root' | 'label' | 'inputs' | 'input' | 'separator';
|
|
5
|
+
export declare enum OtpInputCharset {
|
|
6
|
+
/** Digits only (0-9). Shows a numeric mobile keyboard. */
|
|
7
|
+
Numeric = "numeric",
|
|
8
|
+
/** Letters and digits. */
|
|
9
|
+
Alphanumeric = "alphanumeric"
|
|
10
|
+
}
|
|
11
|
+
/** Text OtpInput renders of its own, for translating it. */
|
|
12
|
+
export interface OtpInputLabels {
|
|
13
|
+
/** The group of boxes, used when no `label` is given. */
|
|
14
|
+
field?: string;
|
|
15
|
+
/** One box, given its 1-based position and how many there are. */
|
|
16
|
+
digit?: (position: number, length: number) => string;
|
|
17
|
+
}
|
|
18
|
+
export interface OtpInputProps extends Omit<HtmlProps, 'onChange'> {
|
|
19
|
+
/** Number of character boxes. Default 6. */
|
|
20
|
+
length?: number;
|
|
21
|
+
/** Current code as a plain string, e.g. "123456". */
|
|
22
|
+
value?: string;
|
|
23
|
+
/** Fired on every change with the full current code (may be shorter than `length`). */
|
|
24
|
+
onChange?: ((value: string) => void) | null;
|
|
25
|
+
/** Fired once, when the code reaches `length` characters. */
|
|
26
|
+
onComplete?: ((value: string) => void) | null;
|
|
27
|
+
formValidator?: FormValidator | null;
|
|
28
|
+
/** Restricts which characters can be typed and picks the mobile keyboard. Default `numeric`. */
|
|
29
|
+
charset?: OtpInputCharset;
|
|
30
|
+
/** Render each box's value as a dot, like a password field. */
|
|
31
|
+
masked?: boolean;
|
|
32
|
+
/** Draw a small gap after these 1-based box indices, e.g. `[3]` to split 6 boxes into 3+3. */
|
|
33
|
+
groupAfter?: number[];
|
|
34
|
+
label?: string;
|
|
35
|
+
isValid?: boolean;
|
|
36
|
+
/** Shown in an error Tooltip on focus/hover once `isValid` is `false` (or, with a
|
|
37
|
+
* `formValidator`, once it's touched and has an error). Persists until the value changes
|
|
38
|
+
* `isValid`/`formValidator`'s error state itself — see `clearOnError` to auto-dismiss it. */
|
|
39
|
+
errorMessage?: string;
|
|
40
|
+
isRequired?: boolean;
|
|
41
|
+
/** When an error newly appears (`isValid`/`formValidator` turning invalid), clear every box and
|
|
42
|
+
* refocus the first one after `clearErrorDelay`, so the next attempt starts clean instead of the
|
|
43
|
+
* user editing individual wrong digits (and re-triggering `onComplete` on every keystroke while
|
|
44
|
+
* the code stays at full length). Default `false`. */
|
|
45
|
+
clearOnError?: boolean;
|
|
46
|
+
/** Delay in ms before `clearOnError` clears the boxes, so the wrong code and error message are
|
|
47
|
+
* still visible for a moment first. Default `900`. */
|
|
48
|
+
clearErrorDelay?: number;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
/** Focuses the first empty box (or the first box) on mount. */
|
|
51
|
+
autoFocus?: boolean;
|
|
52
|
+
className?: string;
|
|
53
|
+
style?: React.CSSProperties;
|
|
54
|
+
/** Ref to the root element. */
|
|
55
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
56
|
+
classNames?: SlotClassNames<OtpInputSlots>;
|
|
57
|
+
styles?: SlotStyles<OtpInputSlots>;
|
|
58
|
+
/** Overrides the text OtpInput renders of its own. Merged per key. */
|
|
59
|
+
labels?: OtpInputLabels;
|
|
60
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { OverscrollProps } from './overscroll.types.js';
|
|
2
|
+
export default function Overscroll({ children, overscrollContent, overscrollContentDesktop, centerHeader, min, max, start, unit, mobileOnly, onScrollChange, scrollDisabled, }: OverscrollProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface OverscrollProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
overscrollContent?: ReactNode;
|
|
5
|
+
overscrollContentDesktop?: ReactNode;
|
|
6
|
+
centerHeader?: boolean;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
start?: number;
|
|
10
|
+
unit?: string;
|
|
11
|
+
mobileOnly?: boolean;
|
|
12
|
+
onScrollChange?: (isScrolling: boolean) => void;
|
|
13
|
+
scrollDisabled?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { IconContent } from '../types/icon.types.js';
|
|
3
|
+
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types.js';
|
|
4
|
+
export type PaginationSlots = 'root' | 'item' | 'control' | 'ellipsis';
|
|
5
|
+
/** Text Pagination renders of its own, for translating it. */
|
|
6
|
+
export interface PaginationLabels {
|
|
7
|
+
/** One page button, given its number. */
|
|
8
|
+
goToPage?: (page: number) => string;
|
|
9
|
+
/** Jump to the first page. */
|
|
10
|
+
first?: string;
|
|
11
|
+
/** Step back one page. */
|
|
12
|
+
previous?: string;
|
|
13
|
+
/** Step forward one page. */
|
|
14
|
+
next?: string;
|
|
15
|
+
/** Jump to the last page. */
|
|
16
|
+
last?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface PaginationProps extends Omit<HtmlProps<HTMLElement>, 'onChange'> {
|
|
19
|
+
/** Total number of pages. Nothing renders below `1`. */
|
|
20
|
+
total: number;
|
|
21
|
+
/** Controlled current page, 1-based (omit for uncontrolled). */
|
|
22
|
+
page?: number;
|
|
23
|
+
/** Initial page when uncontrolled (default `1`). */
|
|
24
|
+
defaultPage?: number;
|
|
25
|
+
onChange?: (page: number) => void;
|
|
26
|
+
/** Pages shown either side of the current one (default `1`). */
|
|
27
|
+
siblings?: number;
|
|
28
|
+
/** Pages always shown at the start and end (default `1`). */
|
|
29
|
+
boundaries?: number;
|
|
30
|
+
/** Show the previous/next controls (default `true`). */
|
|
31
|
+
showControls?: boolean;
|
|
32
|
+
/** Show first/last jump controls outside the previous/next ones (default `false`). */
|
|
33
|
+
showEdges?: boolean;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
previousIcon?: IconContent;
|
|
36
|
+
nextIcon?: IconContent;
|
|
37
|
+
firstIcon?: IconContent;
|
|
38
|
+
lastIcon?: IconContent;
|
|
39
|
+
className?: string;
|
|
40
|
+
style?: CSSProperties;
|
|
41
|
+
classNames?: SlotClassNames<PaginationSlots>;
|
|
42
|
+
styles?: SlotStyles<PaginationSlots>;
|
|
43
|
+
/** Overrides the text Pagination renders of its own. Merged per key. */
|
|
44
|
+
labels?: PaginationLabels;
|
|
45
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PlanCanvasProps } from './planCanvas.types.js';
|
|
2
|
+
/**
|
|
3
|
+
* The ref lands on the `<svg>` itself, which is what a consumer wants for measuring or
|
|
4
|
+
* screenshotting. Both the drawer and the viewer expose it as `getSvgElement()`.
|
|
5
|
+
*/
|
|
6
|
+
declare function PlanCanvas(props: PlanCanvasProps): import("react").JSX.Element;
|
|
7
|
+
export default PlanCanvas;
|