@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,126 @@
|
|
|
1
|
+
import { ColumnWidthSpec, SortValue, VirtualListColumn, VirtualListSort } from './virtualList.types.js';
|
|
2
|
+
export declare function buildOffsets(keys: (string | number)[], heightsMap: Map<string | number, number>, estimatedRowHeight: number, rowGap?: number): {
|
|
3
|
+
offsets: number[];
|
|
4
|
+
totalHeight: number;
|
|
5
|
+
};
|
|
6
|
+
/** Index of the row that sits at `scrollTop` — i.e. the first row whose bottom edge is below it. */
|
|
7
|
+
export declare function findStartIndex(offsets: number[], scrollTop: number, itemCount: number): number;
|
|
8
|
+
export declare function getVisibleRange(offsets: number[], scrollTop: number, containerHeight: number, overscan: number, itemCount: number): {
|
|
9
|
+
startIndex: number;
|
|
10
|
+
endIndex: number;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Decides where a dragged row should move to, applying midpoint hysteresis: a
|
|
14
|
+
* move only happens once the pointer has crossed the centre of the row it is
|
|
15
|
+
* over (downwards when moving down, upwards when moving up). Returns the target
|
|
16
|
+
* index, or null if no move should occur. Pure for easy unit testing.
|
|
17
|
+
*/
|
|
18
|
+
export declare function resolveReorderTarget(fromIndex: number, overIndex: number, pointerY: number, rowTop: number, rowHeight: number): number | null;
|
|
19
|
+
/**
|
|
20
|
+
* Decides where a tree-reorder drop should land relative to the row under the
|
|
21
|
+
* pointer. Group rows expose three zones (top third → `before`, middle →
|
|
22
|
+
* `inside`, bottom third → `after`); leaf rows split in half (`before`/`after`)
|
|
23
|
+
* since they can't receive children. Pure for easy unit testing.
|
|
24
|
+
*/
|
|
25
|
+
export declare function resolveTreeDropTarget(pointerY: number, rowTop: number, rowHeight: number, isGroup: boolean): 'before' | 'inside' | 'after';
|
|
26
|
+
/**
|
|
27
|
+
* Index of the last descendant of the node at `index` in a depth-tagged flat
|
|
28
|
+
* list (a contiguous run of following rows with a greater depth). Returns
|
|
29
|
+
* `index` itself when the node has no children. A drop is forbidden anywhere in
|
|
30
|
+
* `[index, lastDescendantIndex]` — that's the node and its own subtree.
|
|
31
|
+
*/
|
|
32
|
+
export declare function lastDescendantIndex(index: number, depths: number[]): number;
|
|
33
|
+
export declare function buildColumnTemplate(columns: {
|
|
34
|
+
key: string;
|
|
35
|
+
width: ColumnWidthSpec;
|
|
36
|
+
}[], fitWidths?: Record<string, number>): string;
|
|
37
|
+
/**
|
|
38
|
+
* What counts as a control inside a row, and so what gets held out of the tab
|
|
39
|
+
* order while its row is not the one being used.
|
|
40
|
+
*
|
|
41
|
+
* `[tabindex="-1"]` is deliberately excluded. The row's own select checkbox sits
|
|
42
|
+
* there and is reached with Space, and an element the consumer has already taken
|
|
43
|
+
* out of the tab order stays out.
|
|
44
|
+
*/
|
|
45
|
+
export declare const ROW_FOCUSABLE_SELECTOR = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
46
|
+
/** Marks an element parked at `tabindex="-1"` by the list rather than by the consumer. */
|
|
47
|
+
export declare const ROW_PARKED_ATTRIBUTE = "data-vl-parked";
|
|
48
|
+
/**
|
|
49
|
+
* What `F2` steps into: the controls of a row, including the ones parked out of
|
|
50
|
+
* the tab order. Without the second half it would find nothing at all in a row
|
|
51
|
+
* whose controls are custom elements carrying a `tabindex`, because parking them
|
|
52
|
+
* is exactly what takes them out of the selector above.
|
|
53
|
+
*/
|
|
54
|
+
export declare const ROW_ENTER_SELECTOR = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [data-vl-parked]";
|
|
55
|
+
/**
|
|
56
|
+
* The content width of one cell, in px. `scrollWidth` reports the true content
|
|
57
|
+
* width even when the cell is pinned narrower than its content, which is what
|
|
58
|
+
* lets a column recover from having been measured while it was still empty.
|
|
59
|
+
*
|
|
60
|
+
* Two corrections on top of it, both only resolved when they can apply, so the
|
|
61
|
+
* hot scroll path stays cheap for a plain in-flow cell:
|
|
62
|
+
*
|
|
63
|
+
* - `scrollWidth` includes the left padding but drops the right one once the
|
|
64
|
+
* content overflows, so add it back.
|
|
65
|
+
* - A cell whose only children are FontAwesome icons reports just its padding:
|
|
66
|
+
* their boxes overflow via `overflow: visible`, carry no intrinsic width, and
|
|
67
|
+
* so never count towards `scrollWidth` (right-aligned, they even overflow
|
|
68
|
+
* into negative offsets). Only then walk the descendants for their true span.
|
|
69
|
+
* Once a real width pins, the cell is no longer collapsed and this stops.
|
|
70
|
+
*/
|
|
71
|
+
export declare function measureCellWidth(el: HTMLElement): number;
|
|
72
|
+
/** Attribute selector for one column's cells. Column keys are arbitrary strings. */
|
|
73
|
+
export declare function columnCellSelector(key: string): string;
|
|
74
|
+
/** Floor for a user-resized column, unless the column raises it with `minWidth`. */
|
|
75
|
+
export declare const MIN_COLUMN_WIDTH = 48;
|
|
76
|
+
/**
|
|
77
|
+
* Width given to a column that gains one while the layout is already frozen,
|
|
78
|
+
* i.e. one revealed from the gear menu after the first resize. Every visible
|
|
79
|
+
* column has to be an exact px track for the total width (and so the horizontal
|
|
80
|
+
* scroll range) to be exact, and there is nothing measured to go on yet.
|
|
81
|
+
*/
|
|
82
|
+
export declare const DEFAULT_FROZEN_WIDTH = 160;
|
|
83
|
+
/**
|
|
84
|
+
* Custom property carrying one column's width. Column keys are arbitrary
|
|
85
|
+
* strings, so anything a custom property can't contain is folded to `_`; two
|
|
86
|
+
* keys that differ only in those characters would share a track.
|
|
87
|
+
*/
|
|
88
|
+
export declare function columnWidthVar(key: string): string;
|
|
89
|
+
/** Px width for a column the user hasn't sized, at the moment the layout freezes. */
|
|
90
|
+
export declare function resolveFrozenWidth<T>(col: VirtualListColumn<T>): number;
|
|
91
|
+
/**
|
|
92
|
+
* Grid template for a frozen layout: every column reads its own custom property,
|
|
93
|
+
* so a drag can rewrite one width with a single DOM write and have the header
|
|
94
|
+
* and every row follow in the same layout pass, without React rendering.
|
|
95
|
+
*/
|
|
96
|
+
export declare function buildFrozenTemplate<T>(columns: VirtualListColumn<T>[]): string;
|
|
97
|
+
export declare const COLUMN_STORAGE_PREFIX = "ahroweui:virtuallist:columns:";
|
|
98
|
+
export interface PersistedColumns {
|
|
99
|
+
visible: string[];
|
|
100
|
+
known: string[];
|
|
101
|
+
/** User-resized column widths in px. Absent in entries saved before resizing existed. */
|
|
102
|
+
widths?: Record<string, number>;
|
|
103
|
+
}
|
|
104
|
+
export declare function loadPersistedColumns(persistKey: string | undefined): PersistedColumns | null;
|
|
105
|
+
/** Whether a column should start visible, honouring saved settings then `defaultHidden`. */
|
|
106
|
+
export declare function isColumnInitiallyVisible<T>(col: VirtualListColumn<T>, persisted: PersistedColumns | null): boolean;
|
|
107
|
+
/** Values with no order of their own, parked at the end of the list either way. */
|
|
108
|
+
export declare function isEmptySortValue(value: SortValue): boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Ascending comparison of two non-empty `sortValue` results. Dates and booleans
|
|
111
|
+
* are normalised to numbers; anything with a string on either side goes through
|
|
112
|
+
* the collator, which is also what makes a mixed-type column produce a stable
|
|
113
|
+
* (if arbitrary) order rather than a random one.
|
|
114
|
+
*/
|
|
115
|
+
export declare function compareSortValues(a: SortValue, b: SortValue): number;
|
|
116
|
+
/** Whether a header click on this column should do anything at all. */
|
|
117
|
+
export declare function isColumnSortable<T>(col: VirtualListColumn<T>): boolean;
|
|
118
|
+
/** The asc → desc → unsorted cycle a header click steps through. */
|
|
119
|
+
export declare function nextSort(current: VirtualListSort | null, key: string): VirtualListSort | null;
|
|
120
|
+
/**
|
|
121
|
+
* Returns `items` reordered by `sort`, or the same array reference when nothing
|
|
122
|
+
* applies: no sort, no such column, or a `sortable` column that only reports
|
|
123
|
+
* (its data is sorted by the consumer). Callers rely on that identity to tell
|
|
124
|
+
* "the list sorted this" from "the list left it alone".
|
|
125
|
+
*/
|
|
126
|
+
export declare function sortItems<T>(items: T[], sort: VirtualListSort | null | undefined, columns: VirtualListColumn<T>[] | undefined): T[];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UseColumnsResult } from './useColumns.js';
|
|
3
|
+
import { UseColumnResizeResult } from './useColumnResize.js';
|
|
4
|
+
import { SlotClassNames, SlotStyles } from '../types/slots.types.js';
|
|
5
|
+
import { VirtualListColumn, VirtualListLabels, VirtualListSlots, VirtualListSort } from './virtualList.types.js';
|
|
6
|
+
interface VirtualListHeaderProps<T> {
|
|
7
|
+
headerRef: React.RefObject<HTMLDivElement | null>;
|
|
8
|
+
/** Every column, including hidden ones: the toggle menu lists them all. */
|
|
9
|
+
columns: VirtualListColumn<T>[];
|
|
10
|
+
cols: UseColumnsResult<T>;
|
|
11
|
+
resize: UseColumnResizeResult<T>;
|
|
12
|
+
sort: VirtualListSort | null;
|
|
13
|
+
onSort: (key: string) => void;
|
|
14
|
+
multiSelect: boolean;
|
|
15
|
+
allSelected: boolean;
|
|
16
|
+
someSelected: boolean;
|
|
17
|
+
onSelectAll: () => void;
|
|
18
|
+
labels: Required<VirtualListLabels>;
|
|
19
|
+
classNames?: SlotClassNames<VirtualListSlots>;
|
|
20
|
+
styles?: SlotStyles<VirtualListSlots>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The table-mode header row: one cell per visible column, each optionally a sort
|
|
24
|
+
* button and a resize handle, plus the column-visibility menu pinned to the
|
|
25
|
+
* right. It is a grid with the same template as every row, which is what keeps
|
|
26
|
+
* the columns aligned across the separate grids.
|
|
27
|
+
*
|
|
28
|
+
* The whole header is a single tab stop (see `useHeaderNavigation`). Focus lands
|
|
29
|
+
* on a header cell rather than on the button inside it, so every key a column
|
|
30
|
+
* understands is handled in one place: Enter or Space sorts, Alt plus the arrow
|
|
31
|
+
* keys resizes, Alt+Home and Alt+End take the column to its minimum or to its
|
|
32
|
+
* content width.
|
|
33
|
+
*/
|
|
34
|
+
declare function VirtualListHeader<T>({ headerRef, columns, cols, resize, sort, onSort, multiSelect, allSelected, someSelected, onSelectAll, labels, classNames, styles: slotStyles, }: VirtualListHeaderProps<T>): React.JSX.Element;
|
|
35
|
+
export default VirtualListHeader;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TreeDropPosition } from './virtualList.types.js';
|
|
3
|
+
export interface VirtualRowProps {
|
|
4
|
+
index: number;
|
|
5
|
+
/** Referenced by the list's `aria-activedescendant` while this row is active. */
|
|
6
|
+
id?: string;
|
|
7
|
+
top: number;
|
|
8
|
+
/** Padding applied to the row (already normalised to a CSS string). */
|
|
9
|
+
padding?: string;
|
|
10
|
+
columnTemplate: string | undefined;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
/** The row the arrow keys are on. Distinct from selection. */
|
|
13
|
+
isActive?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Hold this row's own controls out of the tab order unless it is the row being
|
|
16
|
+
* used. Off when the list leaves the keyboard to its rows.
|
|
17
|
+
*/
|
|
18
|
+
manageTabStops?: boolean;
|
|
19
|
+
/** This is the row being used, so its controls are reachable with Tab. */
|
|
20
|
+
isEntered?: boolean;
|
|
21
|
+
activeClassName?: string;
|
|
22
|
+
activeStyle?: React.CSSProperties;
|
|
23
|
+
showDivider: boolean;
|
|
24
|
+
hover: boolean;
|
|
25
|
+
onClick: () => void;
|
|
26
|
+
observer: ResizeObserver | null;
|
|
27
|
+
ariaRowIndex?: number;
|
|
28
|
+
ariaPosInSet?: number;
|
|
29
|
+
ariaSetSize?: number;
|
|
30
|
+
rowRole: string;
|
|
31
|
+
reorderable?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Native mouse DnD is active for the list. Distinct from `draggable`, which in
|
|
34
|
+
* `dragHandle` mode is only set on the row the pointer has armed.
|
|
35
|
+
*/
|
|
36
|
+
mouseDragEnabled?: boolean;
|
|
37
|
+
draggable?: boolean;
|
|
38
|
+
isDragging?: boolean;
|
|
39
|
+
reserveToggleGutter?: boolean;
|
|
40
|
+
onMouseDown?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
41
|
+
onMouseOver?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
42
|
+
onMouseLeave?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
43
|
+
onDragStart?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
44
|
+
onDragOver?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
45
|
+
onDragEnd?: () => void;
|
|
46
|
+
onDrop?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
47
|
+
onTouchStart?: (e: React.TouchEvent<HTMLDivElement>) => void;
|
|
48
|
+
dropPosition?: TreeDropPosition;
|
|
49
|
+
dropIndentPx?: number;
|
|
50
|
+
dropIndicatorClassName?: string;
|
|
51
|
+
dropIndicatorStyle?: React.CSSProperties;
|
|
52
|
+
rowClassName?: string;
|
|
53
|
+
rowStyle?: React.CSSProperties;
|
|
54
|
+
children: React.ReactNode;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A single virtualized row: absolutely positioned at its `top`, optionally a
|
|
58
|
+
* grid (table mode), registering itself with the shared ResizeObserver and
|
|
59
|
+
* carrying all the drag / drop-indicator wiring the parent assigns it.
|
|
60
|
+
*/
|
|
61
|
+
declare function VirtualRow({ index, id, top, padding, columnTemplate, isSelected, isActive, manageTabStops, isEntered, activeClassName, activeStyle, showDivider, hover, onClick, observer, ariaRowIndex, ariaPosInSet, ariaSetSize, rowRole, reorderable, mouseDragEnabled, draggable, isDragging, reserveToggleGutter, onMouseDown, onMouseOver, onMouseLeave, onDragStart, onDragOver, onDragEnd, onDrop, onTouchStart, dropPosition, dropIndentPx, dropIndicatorClassName, dropIndicatorStyle, rowClassName, rowStyle, children, }: VirtualRowProps): React.JSX.Element;
|
|
62
|
+
export default VirtualRow;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './wizard.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types.js';
|
|
3
|
+
export type WizardSlots = 'root' | 'container' | 'step' | 'stepContent';
|
|
4
|
+
export interface WizardProps extends HtmlProps {
|
|
5
|
+
currentStep?: number;
|
|
6
|
+
stepCount?: number;
|
|
7
|
+
renderStep?: (index: number) => React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
classNames?: SlotClassNames<WizardSlots>;
|
|
11
|
+
styles?: SlotStyles<WizardSlots>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
export { default as Accordion } from './common/accordion/index.js';
|
|
2
|
+
export * from './common/accordion/index.js';
|
|
3
|
+
export * from './common/actionButtons/index.js';
|
|
4
|
+
export { default as ActionIcon } from './common/actionIcon/index.js';
|
|
5
|
+
export * from './common/actionIcon/index.js';
|
|
6
|
+
export { default as Alert } from './common/alert/index.js';
|
|
7
|
+
export * from './common/alert/index.js';
|
|
8
|
+
export { default as AnimatedLogo } from './common/animatedLogo/index.js';
|
|
9
|
+
export * from './common/animatedLogo/index.js';
|
|
10
|
+
export { default as AnimatedText } from './common/animatedText/index.js';
|
|
11
|
+
export * from './common/animatedText/index.js';
|
|
12
|
+
export { default as Avatar } from './common/avatar/index.js';
|
|
13
|
+
export * from './common/avatar/index.js';
|
|
14
|
+
export { default as Badge } from './common/badge/index.js';
|
|
15
|
+
export * from './common/badge/index.js';
|
|
16
|
+
export { default as BodyEnd } from './common/bodyEnd/index.js';
|
|
17
|
+
export * from './common/bodyEnd/index.js';
|
|
18
|
+
export { default as Breadcrumb } from './common/breadcrumb/index.js';
|
|
19
|
+
export * from './common/breadcrumb/index.js';
|
|
20
|
+
export { default as Button } from './common/button/index.js';
|
|
21
|
+
export * from './common/button/index.js';
|
|
22
|
+
export { default as ButtonGroup } from './common/buttonGroup/index.js';
|
|
23
|
+
export * from './common/buttonGroup/index.js';
|
|
24
|
+
export { default as Card } from './common/card/index.js';
|
|
25
|
+
export * from './common/card/index.js';
|
|
26
|
+
export { default as Carousel } from './common/carousel/index.js';
|
|
27
|
+
export * from './common/carousel/index.js';
|
|
28
|
+
export { default as Checkbox } from './common/checkbox/index.js';
|
|
29
|
+
export * from './common/checkbox/index.js';
|
|
30
|
+
export { default as Chip } from './common/chip/index.js';
|
|
31
|
+
export * from './common/chip/index.js';
|
|
32
|
+
export { default as ColorPicker } from './common/colorPicker/index.js';
|
|
33
|
+
export * from './common/colorPicker/index.js';
|
|
34
|
+
export { default as ConfigProvider } from './common/configProvider/index.js';
|
|
35
|
+
export * from './common/configProvider/index.js';
|
|
36
|
+
export { default as ConfirmModal } from './common/confirmModal/index.js';
|
|
37
|
+
export * from './common/confirmModal/index.js';
|
|
38
|
+
export { default as DatePicker } from './common/datePicker/index.js';
|
|
39
|
+
export * from './common/datePicker/index.js';
|
|
40
|
+
export { default as Divider } from './common/divider/index.js';
|
|
41
|
+
export * from './common/divider/index.js';
|
|
42
|
+
export { default as Drawer } from './common/drawer/index.js';
|
|
43
|
+
export * from './common/drawer/index.js';
|
|
44
|
+
export { default as DropZone } from './common/dropZone/index.js';
|
|
45
|
+
export * from './common/dropZone/index.js';
|
|
46
|
+
export { default as Dropdown } from './common/dropdown/index.js';
|
|
47
|
+
export * from './common/dropdown/index.js';
|
|
48
|
+
export { default as EmptyState } from './common/emptyState/index.js';
|
|
49
|
+
export * from './common/emptyState/index.js';
|
|
50
|
+
export { default as ErrorBoundary } from './common/errorBoundary/index.js';
|
|
51
|
+
export * from './common/errorBoundary/index.js';
|
|
52
|
+
export { default as Fab } from './common/fab/index.js';
|
|
53
|
+
export * from './common/fab/index.js';
|
|
54
|
+
export { default as Flip } from './common/flip/index.js';
|
|
55
|
+
export * from './common/flip/index.js';
|
|
56
|
+
export * from './common/floorPlan/index.js';
|
|
57
|
+
export { default as IconPicker } from './common/iconPicker/index.js';
|
|
58
|
+
export * from './common/iconPicker/index.js';
|
|
59
|
+
export { default as IdleManager } from './common/idleManager/index.js';
|
|
60
|
+
export * from './common/idleManager/index.js';
|
|
61
|
+
export { default as Input } from './common/input/index.js';
|
|
62
|
+
export * from './common/input/index.js';
|
|
63
|
+
export { default as InputDropdown } from './common/inputDropdown/index.js';
|
|
64
|
+
export * from './common/inputDropdown/index.js';
|
|
65
|
+
export { default as InteractableDiv } from './common/interactableDiv/index.js';
|
|
66
|
+
export * from './common/interactableDiv/index.js';
|
|
67
|
+
export { default as KanbanBoard } from './common/kanbanBoard/index.js';
|
|
68
|
+
export * from './common/kanbanBoard/index.js';
|
|
69
|
+
export { default as KlipyPicker } from './common/klipyPicker/index.js';
|
|
70
|
+
export * from './common/klipyPicker/index.js';
|
|
71
|
+
export * from './common/loading/index.js';
|
|
72
|
+
export { default as Menu } from './common/menu/index.js';
|
|
73
|
+
export * from './common/menu/index.js';
|
|
74
|
+
export { default as Modal } from './common/modal/index.js';
|
|
75
|
+
export * from './common/modal/index.js';
|
|
76
|
+
export { default as MultiSelect } from './common/multiSelect/index.js';
|
|
77
|
+
export * from './common/multiSelect/index.js';
|
|
78
|
+
export { default as NumberInput } from './common/numberInput/index.js';
|
|
79
|
+
export * from './common/numberInput/index.js';
|
|
80
|
+
export { default as OptionPicker } from './common/optionPicker/index.js';
|
|
81
|
+
export * from './common/optionPicker/index.js';
|
|
82
|
+
export { default as OtpInput } from './common/otpInput/index.js';
|
|
83
|
+
export * from './common/otpInput/index.js';
|
|
84
|
+
export { default as Overscroll } from './common/overscroll/index.js';
|
|
85
|
+
export * from './common/overscroll/index.js';
|
|
86
|
+
export { default as Pagination } from './common/pagination/index.js';
|
|
87
|
+
export * from './common/pagination/index.js';
|
|
88
|
+
export { default as Popover } from './common/popover/index.js';
|
|
89
|
+
export * from './common/popover/index.js';
|
|
90
|
+
export { default as ProgressBar } from './common/progressBar/index.js';
|
|
91
|
+
export * from './common/progressBar/index.js';
|
|
92
|
+
export { default as RadioGroup } from './common/radioGroup/index.js';
|
|
93
|
+
export * from './common/radioGroup/index.js';
|
|
94
|
+
export { default as Rating } from './common/rating/index.js';
|
|
95
|
+
export * from './common/rating/index.js';
|
|
96
|
+
export { default as RevealLens } from './common/revealLens/index.js';
|
|
97
|
+
export * from './common/revealLens/index.js';
|
|
98
|
+
export { default as Ripple } from './common/ripple/index.js';
|
|
99
|
+
export * from './common/ripple/index.js';
|
|
100
|
+
export { default as RoomDrawer } from './common/roomDrawer/index.js';
|
|
101
|
+
export * from './common/roomDrawer/index.js';
|
|
102
|
+
export { default as RoomViewer } from './common/roomViewer/index.js';
|
|
103
|
+
export * from './common/roomViewer/index.js';
|
|
104
|
+
export { default as ScrollFade } from './common/scrollFade/index.js';
|
|
105
|
+
export * from './common/scrollFade/index.js';
|
|
106
|
+
export { default as ScrollbarProvider } from './common/scrollbarProvider/index.js';
|
|
107
|
+
export * from './common/scrollbarProvider/index.js';
|
|
108
|
+
export { default as SearchInput } from './common/searchInput/index.js';
|
|
109
|
+
export * from './common/searchInput/index.js';
|
|
110
|
+
export { default as SectionHeader } from './common/sectionHeader/index.js';
|
|
111
|
+
export * from './common/sectionHeader/index.js';
|
|
112
|
+
export { default as Skeleton } from './common/skeleton/index.js';
|
|
113
|
+
export * from './common/skeleton/index.js';
|
|
114
|
+
export { default as Slider } from './common/slider/index.js';
|
|
115
|
+
export * from './common/slider/index.js';
|
|
116
|
+
export { default as SplitButton } from './common/splitButton/index.js';
|
|
117
|
+
export * from './common/splitButton/index.js';
|
|
118
|
+
export { default as Stepper } from './common/stepper/index.js';
|
|
119
|
+
export * from './common/stepper/index.js';
|
|
120
|
+
export { default as Sticky } from './common/sticky/index.js';
|
|
121
|
+
export * from './common/sticky/index.js';
|
|
122
|
+
export { default as Switch } from './common/switch/index.js';
|
|
123
|
+
export * from './common/switch/index.js';
|
|
124
|
+
export { default as TabHeader } from './common/tabHeader/index.js';
|
|
125
|
+
export * from './common/tabHeader/index.js';
|
|
126
|
+
export { default as Textarea } from './common/textarea/index.js';
|
|
127
|
+
export * from './common/textarea/index.js';
|
|
128
|
+
export { default as ThemeProvider } from './common/themeProvider/index.js';
|
|
129
|
+
export * from './common/themeProvider/index.js';
|
|
130
|
+
export { useTheme } from './common/themeProvider/useTheme.js';
|
|
131
|
+
export { default as Tilt } from './common/tilt/index.js';
|
|
132
|
+
export * from './common/tilt/index.js';
|
|
133
|
+
export { default as TiltGroup } from './common/tiltGroup/index.js';
|
|
134
|
+
export * from './common/tiltGroup/index.js';
|
|
135
|
+
export { default as TimeInput } from './common/timeInput/index.js';
|
|
136
|
+
export * from './common/timeInput/index.js';
|
|
137
|
+
export { default as Timeline } from './common/timeline/index.js';
|
|
138
|
+
export * from './common/timeline/index.js';
|
|
139
|
+
export { default as Timer } from './common/timer/index.js';
|
|
140
|
+
export * from './common/timer/index.js';
|
|
141
|
+
export { default as ToastProvider } from './common/toast/index.js';
|
|
142
|
+
export * from './common/toast/index.js';
|
|
143
|
+
export { default as Tooltip } from './common/tooltip/index.js';
|
|
144
|
+
export * from './common/tooltip/index.js';
|
|
145
|
+
export { default as Tree } from './common/tree/index.js';
|
|
146
|
+
export * from './common/tree/index.js';
|
|
147
|
+
export { default as VirtualList } from './common/virtualList/index.js';
|
|
148
|
+
export * from './common/virtualList/index.js';
|
|
149
|
+
export { default as Wizard } from './common/wizard/index.js';
|
|
150
|
+
export * from './common/wizard/index.js';
|
|
151
|
+
export { FormValidator, FormValidatorGroup, Validators, ValidatableComponent, useFormValidator, useFormValidatorGroup, } from './services/formValidation/index.js';
|
|
152
|
+
export type { ValidationError, ValidatorFunction, ErrorParser, FormValidatorGroupOptions, InferGroupValues, MergedValues, } from './services/formValidation/index.js';
|
|
153
|
+
export { mapLocale, setLocale, getLocale } from './services/localization.js';
|
|
154
|
+
export { isNumber, isDate, isISODate, isEmail, isBic, isURL, hasEightPasswordChars, hasOnePasswordLetter, hasOnePasswordDigit, isPassword, } from '@ahrowe/form-validation';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FormValidatorGroup, FormGroup, FormValidatorGroupOptions, InferGroupValues } from '@ahrowe/form-validation';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* FormValidatorGroup with `this.Form` automatically attached.
|
|
5
|
+
* Kept in a .tsx file so formValidatorGroup.ts stays framework-agnostic.
|
|
6
|
+
*
|
|
7
|
+
* This is the class you should use everywhere — it is a drop-in replacement
|
|
8
|
+
* for FormValidatorGroup with one extra property: `this.Form`.
|
|
9
|
+
*
|
|
10
|
+
* Also injects the default toast-based onSubmitError so both hook and class-component
|
|
11
|
+
* consumers surface errors out of the box; pass options.onSubmitError to override.
|
|
12
|
+
*/
|
|
13
|
+
export default class FormValidatorGroupWithForm<TGroup extends FormGroup = FormGroup, TInitial = InferGroupValues<TGroup>> extends FormValidatorGroup<TGroup, TInitial> {
|
|
14
|
+
Form: React.FC<React.FormHTMLAttributes<HTMLFormElement>>;
|
|
15
|
+
constructor(groupDef: TGroup, component?: {
|
|
16
|
+
forceUpdate: () => void;
|
|
17
|
+
} | null, options?: FormValidatorGroupOptions<TGroup, TInitial>);
|
|
18
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as FormValidatorGroup } from './FormValidatorGroupWithForm.js';
|
|
2
|
+
export { default as ValidatableComponent } from './validatableComponent.js';
|
|
3
|
+
export { useFormValidatorGroup } from './useFormValidatorGroup.js';
|
|
4
|
+
export { FormValidator, Validators, useFormValidator } from '@ahrowe/form-validation';
|
|
5
|
+
export type { ValidationError, ValidatorFunction, ErrorParser, FormValidatorGroupOptions, InferGroupValues, MergedValues, } from '@ahrowe/form-validation';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormGroup, FormValidatorGroupOptions, InferGroupValues } from '@ahrowe/form-validation';
|
|
2
|
+
import { default as FormValidatorGroupWithForm } from './FormValidatorGroupWithForm.js';
|
|
3
|
+
/**
|
|
4
|
+
* @ahrowe/ui's flavour of useFormValidatorGroup: the group it creates has
|
|
5
|
+
* `.Form` attached and defaults `onSubmitError` to an error toast (see
|
|
6
|
+
* FormValidatorGroupWithForm). Reuses the core package's reactive wiring
|
|
7
|
+
* (useFormValidatorGroupInstance) so this and the pure hook share one
|
|
8
|
+
* implementation of "subscribe a function component to a group".
|
|
9
|
+
*/
|
|
10
|
+
export declare function useFormValidatorGroup<TGroup extends FormGroup = FormGroup, TInitial = InferGroupValues<TGroup>>(groupDef: TGroup, { initialValues, onSubmit, onValidate, errorParser, onSubmitError }?: FormValidatorGroupOptions<TGroup, TInitial>): FormValidatorGroupWithForm<TGroup, TInitial>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React, PureComponent } from 'react';
|
|
2
|
+
import { FormValidator } from '@ahrowe/form-validation';
|
|
3
|
+
export interface ValidatableComponentProps {
|
|
4
|
+
formValidator?: FormValidator | null;
|
|
5
|
+
onMouseEnter?: ((event: React.MouseEvent) => void) | null;
|
|
6
|
+
onMouseLeave?: ((event: React.MouseEvent) => void) | null;
|
|
7
|
+
onFocus?: ((event: React.FocusEvent) => void) | null;
|
|
8
|
+
onBlur?: ((event: React.FocusEvent) => void) | null;
|
|
9
|
+
onChange?: ((value: unknown) => void) | null;
|
|
10
|
+
errorMessage?: string;
|
|
11
|
+
isValid?: boolean;
|
|
12
|
+
isRequired?: boolean;
|
|
13
|
+
label?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ValidatableComponentState {
|
|
16
|
+
isFocused: boolean;
|
|
17
|
+
isHovered: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Base class that extends PureComponent with FormValidator integration.
|
|
21
|
+
* Manages hover/focus state and renders error tooltips.
|
|
22
|
+
*/
|
|
23
|
+
export default class ValidatableComponent<P extends ValidatableComponentProps = ValidatableComponentProps, S extends ValidatableComponentState = ValidatableComponentState> extends PureComponent<P, S> {
|
|
24
|
+
static defaultProps: Partial<ValidatableComponentProps>;
|
|
25
|
+
constructor(props: P);
|
|
26
|
+
componentDidMount(): void;
|
|
27
|
+
componentDidUpdate(prevProps: P): void;
|
|
28
|
+
onMouseEnter(event: React.MouseEvent): void;
|
|
29
|
+
onMouseLeave(event: React.MouseEvent): void;
|
|
30
|
+
onFocus(event: React.FocusEvent): void;
|
|
31
|
+
onBlur(event: React.FocusEvent): void;
|
|
32
|
+
hasError(): boolean;
|
|
33
|
+
isRequired(): boolean;
|
|
34
|
+
renderTooltip(): React.ReactNode;
|
|
35
|
+
onChange(newVal: unknown): void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface KlipyMediaFormat {
|
|
2
|
+
url: string;
|
|
3
|
+
dims: [number, number];
|
|
4
|
+
size: number;
|
|
5
|
+
}
|
|
6
|
+
export interface KlipyResult {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
media_formats: {
|
|
10
|
+
gif: KlipyMediaFormat;
|
|
11
|
+
tinygif: KlipyMediaFormat;
|
|
12
|
+
mediumgif: KlipyMediaFormat;
|
|
13
|
+
mp4: KlipyMediaFormat;
|
|
14
|
+
tinymp4: KlipyMediaFormat;
|
|
15
|
+
};
|
|
16
|
+
tags: string[];
|
|
17
|
+
url: string;
|
|
18
|
+
}
|
|
19
|
+
interface SearchOptions {
|
|
20
|
+
limit?: number;
|
|
21
|
+
contentfilter?: 'off' | 'low' | 'medium' | 'high';
|
|
22
|
+
pos?: string;
|
|
23
|
+
}
|
|
24
|
+
export default class KlipyService {
|
|
25
|
+
private key;
|
|
26
|
+
constructor(key: string);
|
|
27
|
+
search(query: string, options?: SearchOptions): Promise<{
|
|
28
|
+
results: KlipyResult[];
|
|
29
|
+
next: string;
|
|
30
|
+
}>;
|
|
31
|
+
searchSuggestions(query: string): Promise<{
|
|
32
|
+
results: string[];
|
|
33
|
+
}>;
|
|
34
|
+
registerShare(query: string, id: string): void;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{useComponentDefaults as e}from"../configProvider/useComponentDefaults.mjs";import{useLabels as t}from"../configProvider/useLabels.mjs";import n from"../interactableDiv/index.mjs";import r from"../actionIcon/actionIcon.mjs";import i from"./carousel.module.mjs";import a,{useEffect as
|
|
1
|
+
"use client";import{useComponentDefaults as e}from"../configProvider/useComponentDefaults.mjs";import{useLabels as t}from"../configProvider/useLabels.mjs";import n from"../interactableDiv/index.mjs";import r from"../actionIcon/actionIcon.mjs";import i from"./carousel.module.mjs";import a from"../styles/scrollFade.module.mjs";import o,{useEffect as ee,useLayoutEffect as s,useRef as c,useState as l}from"react";import u from"classnames";import{faChevronLeft as te,faChevronRight as ne}from"@fortawesome/free-solid-svg-icons";import{Fragment as re,jsx as d,jsxs as f}from"react/jsx-runtime";var p=10,ie=.2,ae={previous:`Previous slide`,next:`Next slide`,slides:`Slides`,goToSlide:e=>`Go to slide ${e}`};function m(m){let{children:oe,currentIndex:_,defaultIndex:se=0,onChange:ce=()=>{},loop:le=!0,autoPlay:v=!1,autoPlayInterval:y=4e3,pauseOnHover:ue=!0,showArrows:de=!0,showDots:fe=!0,swipeable:pe=!0,lazyRender:me=!1,adaptiveHeight:b=!1,className:he,style:ge,classNames:x,styles:S,labels:_e,...C}=e(`Carousel`,m),w=t(`Carousel`,_e,ae),T=o.useId(),E=o.Children.toArray(oe),D=E.length,O=le&&D>1,k=+!!O,A=O?[E[D-1],...E,E[0]]:E,j=_!==void 0,[ve,ye]=l(()=>g(se,D,O)),M=g(j?_:ve,D,O),[N,P]=l(M+k),[be,F]=l(!0),I=c(M),[xe,L]=l(!1),[Se,R]=l(!1),[Ce,z]=l(!1),B=c(null),V=c(null),H=c(null),U=A.length>0?100/A.length:100;s(()=>{let e=I.current;if(I.current=M,e===M)return;let t=A.length-1,n=N;O&&N===0?n=D:O&&N===t&&(n=1);let r=O&&e===D-1&&M===0,i=O&&e===0&&M===D-1,a;a=r?n+1:i?n-1:M+k;let o=V.current;n!==N&&o&&(o.style.transition=`none`,o.style.transform=h(n,0,U),o.offsetWidth,o.style.transition=``),F(!0),P(a)},[M]);let[W,we]=l(()=>({min:M+k-1,max:M+k+1})),Te=Math.min(W.min,N-1),Ee=Math.max(W.max,N+1),[De,Oe]=l(void 0);s(()=>{if(!b)return;let e=V.current?.children[N];if(!e)return;let t=()=>Oe(e.offsetHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[b,N,D]),s(()=>{let e=H.current,t=e?.children[M];e&&t&&(e.scrollLeft=t.offsetLeft-(e.clientWidth-t.offsetWidth)/2)},[M,D]);function G(e){let t=g(e,D,O);j||ye(t),ce(t)}function K(){!O&&M>=D-1||G(M+1)}function q(){!O&&M<=0||G(M-1)}function ke(e){e.target===e.currentTarget&&(we({min:N-1,max:N+1}),O&&(N===0?(F(!1),P(D)):N===A.length-1&&(F(!1),P(1))))}let J=v&&ue,Y=xe||Se||Ce;ee(()=>{if(!v||D<=1||Y)return;let e=setInterval(K,y);return()=>clearInterval(e)},[v,y,Y,M,D]);let X=c(null);function Ae(e){!pe||D<=1||(X.current={startX:e.clientX,startY:e.clientY,width:B.current?.getBoundingClientRect().width||1,axisLocked:!1,active:!0,offsetPercent:0})}function je(e){let t=X.current;if(!t||!t.active)return;let n=e.clientX-t.startX,r=e.clientY-t.startY;if(!t.axisLocked){if(Math.abs(n)<p&&Math.abs(r)<p)return;if(Math.abs(r)>Math.abs(n)){t.active=!1;return}t.axisLocked=!0,e.currentTarget.setPointerCapture?.(e.pointerId),z(!0),F(!1)}t.offsetPercent=n/t.width*100,V.current&&(V.current.style.transform=h(N,t.offsetPercent,U))}function Me(){let e=X.current;if(X.current=null,!e||!e.axisLocked){z(!1);return}F(!0),z(!1),V.current&&(V.current.style.transition=``,V.current.style.transform=h(N,0,U)),Math.abs(e.offsetPercent)>=ie*100&&(e.offsetPercent<0?K():q())}function Ne(e){e.defaultPrevented||V.current?.contains(e.target)||(e.key===`ArrowLeft`?(e.preventDefault(),q()):e.key===`ArrowRight`&&(e.preventDefault(),K()))}function Pe(e){let t=null;if(e.key===`ArrowLeft`?t=M-1:e.key===`ArrowRight`?t=M+1:e.key===`Home`?t=0:e.key===`End`&&(t=D-1),t===null)return;e.preventDefault();let n=g(t,D,O);G(n),(H.current?.children[n])?.focus()}let Fe=fe&&D>1,Ie=e=>`${T}-dot-${e}`,Z=e=>`${T}-slide-${e}`,Le=C[`aria-label`]!==void 0||C[`aria-labelledby`]!==void 0;function Re(e){return Fe?{id:Z(e),role:`tabpanel`,"aria-labelledby":Ie(e)}:{id:Z(e),role:`group`,"aria-roledescription":`slide`,"aria-label":`${e+1} of ${D}`}}let Q=!O&&M<=0,$=!O&&M>=D-1,ze=h(N,0,U);return f(`div`,{...C,ref:B,role:Le?`region`:`group`,"aria-roledescription":`carousel`,className:u(i.carousel,b&&i.carouselAdaptive,x?.root,he),style:{height:b?De:void 0,...ge,...S?.root},onMouseEnter:J?()=>L(!0):void 0,onMouseLeave:J?()=>L(!1):void 0,onFocus:J?()=>R(!0):void 0,onBlur:J?()=>R(!1):void 0,onKeyDown:Ne,children:[d(`div`,{ref:V,className:u(i.carouselTrack,b&&i.carouselTrackAdaptive,x?.track),style:{width:`${A.length*100}%`,transform:ze,transition:be?void 0:`none`,...S?.track},"aria-live":v?`off`:`polite`,onTransitionEnd:ke,onPointerDown:Ae,onPointerMove:je,onPointerUp:Me,onPointerCancel:Me,children:A.map((e,t)=>{let n=O&&(t===0||t===A.length-1),r=t-k,a=!n&&r===M,o=!me||t>=Te&&t<=Ee;return d(`div`,{...n?{}:Re(r),className:u(i.carouselSlide,x?.slide),style:{width:`${100/A.length}%`,...S?.slide},inert:!a||void 0,children:o?e:null},`carousel-slide-${t}`)})}),de&&D>1&&f(re,{children:[d(r,{icon:te,title:w.previous,"aria-label":w.previous,"aria-disabled":Q||void 0,onClick:()=>!Q&&q(),className:u(i.carouselPrevButton,Q&&i.carouselButtonDisabled,x?.prevButton),style:S?.prevButton}),d(r,{icon:ne,title:w.next,"aria-label":w.next,"aria-disabled":$||void 0,onClick:()=>!$&&K(),className:u(i.carouselNextButton,$&&i.carouselButtonDisabled,x?.nextButton),style:S?.nextButton})]}),Fe&&d(`div`,{ref:H,role:`tablist`,"aria-label":w.slides,className:u(i.carouselDots,a.scrollFade,a.scrollFadeX,a.scrollFadeFadedStart,a.scrollFadeFadedEnd,x?.dots),style:S?.dots,onKeyDown:Pe,children:E.map((e,t)=>d(n,{id:Ie(t),role:`tab`,"aria-label":w.goToSlide(t+1),"aria-selected":t===M,"aria-controls":Z(t),tabIndex:t===M?0:-1,onClick:()=>G(t),className:u(i.carouselDot,t===M&&i.carouselDotActive,x?.dot),style:S?.dot},`carousel-dot-${t}`))})]})}function h(e,t,n){return`translateX(calc(${-e*n}% + ${n/100*t}%))`}function g(e,t,n){return t===0?0:n?(e%t+t)%t:Math.max(0,Math.min(t-1,e))}export{m as default};
|
|
2
2
|
//# sourceMappingURL=carousel.mjs.map
|