@ahrowe/ui 0.33.0 → 0.35.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 +101 -40
- package/dist/esm/common/accordion/accordion.mjs +1 -1
- package/dist/esm/common/accordion/accordion.mjs.map +1 -1
- package/dist/esm/common/accordion/accordion.module.mjs +1 -1
- package/dist/esm/common/accordion/accordion.module.mjs.map +1 -1
- package/dist/esm/common/accordion/accordion.plain.module.mjs +1 -1
- package/dist/esm/common/accordion/accordion.plain.module.mjs.map +1 -1
- package/dist/esm/common/accordion/accordion.primary.module.mjs +1 -1
- package/dist/esm/common/accordion/accordion.primary.module.mjs.map +1 -1
- package/dist/esm/common/accordion/accordion.types.mjs +1 -1
- package/dist/esm/common/accordion/accordion.types.mjs.map +1 -1
- package/dist/esm/common/actionButtons/actionButtons.mjs +1 -1
- package/dist/esm/common/actionButtons/actionButtons.mjs.map +1 -1
- package/dist/esm/common/actionButtons/actionButtons.module.mjs +1 -1
- package/dist/esm/common/actionIcon/actionIcon.mjs +1 -1
- package/dist/esm/common/actionIcon/actionIcon.mjs.map +1 -1
- package/dist/esm/common/actionIcon/actionIcon.module.mjs +1 -1
- package/dist/esm/common/actionIcon/actionIcon.module.mjs.map +1 -1
- package/dist/esm/common/alert/alert.mjs +1 -1
- package/dist/esm/common/alert/alert.mjs.map +1 -1
- package/dist/esm/common/alert/alert.module.mjs +1 -1
- package/dist/esm/common/alert/alert.types.mjs +1 -1
- package/dist/esm/common/alert/alert.types.mjs.map +1 -1
- package/dist/esm/common/animatedIcon/animatedIcon.mjs +1 -1
- package/dist/esm/common/animatedIcon/animatedIcon.mjs.map +1 -1
- package/dist/esm/common/animatedIcon/animatedIcon.module.mjs +1 -1
- package/dist/esm/common/animatedLogo/animatedLogo.mjs +1 -1
- package/dist/esm/common/animatedLogo/animatedLogo.mjs.map +1 -1
- package/dist/esm/common/animatedLogo/animatedLogo.module.mjs +1 -1
- package/dist/esm/common/animatedText/animatedText.mjs +1 -1
- package/dist/esm/common/animatedText/animatedText.mjs.map +1 -1
- package/dist/esm/common/animatedText/animatedText.module.mjs +1 -1
- package/dist/esm/common/animatedText/animatedText.types.mjs +1 -1
- package/dist/esm/common/animatedText/animatedText.types.mjs.map +1 -1
- package/dist/esm/common/avatar/avatar.mjs +1 -1
- package/dist/esm/common/avatar/avatar.mjs.map +1 -1
- package/dist/esm/common/avatar/avatar.module.mjs +1 -1
- package/dist/esm/common/avatar/avatarGroup.mjs +1 -1
- package/dist/esm/common/avatar/avatarGroup.mjs.map +1 -1
- package/dist/esm/common/badge/badge.mjs +1 -1
- package/dist/esm/common/badge/badge.mjs.map +1 -1
- package/dist/esm/common/badge/badge.module.mjs +1 -1
- package/dist/esm/common/badge/badge.types.mjs +1 -1
- package/dist/esm/common/badge/badge.types.mjs.map +1 -1
- package/dist/esm/common/bodyEnd/bodyEnd.mjs +1 -1
- package/dist/esm/common/bodyEnd/bodyEnd.mjs.map +1 -1
- package/dist/esm/common/breadcrumb/breadcrumb.mjs +1 -1
- package/dist/esm/common/breadcrumb/breadcrumb.mjs.map +1 -1
- package/dist/esm/common/breadcrumb/breadcrumb.module.mjs +1 -1
- package/dist/esm/common/breadcrumb/breadcrumb.module.mjs.map +1 -1
- package/dist/esm/common/button/button.mjs +1 -1
- package/dist/esm/common/button/button.mjs.map +1 -1
- package/dist/esm/common/button/button.module.mjs +1 -1
- package/dist/esm/common/button/button.types.mjs +1 -1
- package/dist/esm/common/button/button.types.mjs.map +1 -1
- package/dist/esm/common/buttonGroup/buttonGroup.mjs +1 -1
- package/dist/esm/common/buttonGroup/buttonGroup.mjs.map +1 -1
- package/dist/esm/common/buttonGroup/buttonGroup.module.mjs +1 -1
- package/dist/esm/common/buttonGroup/buttonGroup.types.mjs +1 -1
- package/dist/esm/common/buttonGroup/buttonGroup.types.mjs.map +1 -1
- package/dist/esm/common/card/Card.mjs +1 -1
- package/dist/esm/common/card/Card.mjs.map +1 -1
- package/dist/esm/common/card/CardActions.mjs +1 -1
- package/dist/esm/common/card/CardActions.mjs.map +1 -1
- package/dist/esm/common/card/CardContent.mjs +1 -1
- package/dist/esm/common/card/CardContent.mjs.map +1 -1
- package/dist/esm/common/card/CardHeader.mjs +1 -1
- package/dist/esm/common/card/CardHeader.mjs.map +1 -1
- package/dist/esm/common/card/CardMedia.mjs +1 -1
- package/dist/esm/common/card/CardMedia.mjs.map +1 -1
- package/dist/esm/common/card/card.module.mjs +1 -1
- package/dist/esm/common/card/card.module.mjs.map +1 -1
- package/dist/esm/common/card/card.types.mjs +1 -1
- package/dist/esm/common/card/card.types.mjs.map +1 -1
- 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 +1 -1
- package/dist/esm/common/checkbox/checkbox.mjs +1 -1
- package/dist/esm/common/checkbox/checkbox.mjs.map +1 -1
- package/dist/esm/common/checkbox/checkbox.module.mjs +1 -1
- package/dist/esm/common/checkbox/checkbox.module.mjs.map +1 -1
- package/dist/esm/common/chip/chip.mjs +1 -1
- package/dist/esm/common/chip/chip.mjs.map +1 -1
- package/dist/esm/common/chip/chip.module.mjs +1 -1
- package/dist/esm/common/chip/chip.types.mjs +1 -1
- package/dist/esm/common/chip/chip.types.mjs.map +1 -1
- package/dist/esm/common/chip/chipContainer.mjs +1 -1
- package/dist/esm/common/chip/chipContainer.mjs.map +1 -1
- package/dist/esm/common/colorPicker/colorPicker.mjs +1 -1
- package/dist/esm/common/colorPicker/colorPicker.mjs.map +1 -1
- package/dist/esm/common/colorPicker/colorPicker.module.mjs +1 -1
- package/dist/esm/common/colorPicker/colorPicker.module.mjs.map +1 -1
- package/dist/esm/common/colorPicker/toHex.mjs +1 -1
- package/dist/esm/common/colorPicker/toHex.mjs.map +1 -1
- package/dist/esm/common/configProvider/configProvider.mjs +1 -1
- package/dist/esm/common/configProvider/configProvider.mjs.map +1 -1
- package/dist/esm/common/configProvider/presentation.types.mjs +2 -0
- package/dist/esm/common/configProvider/presentation.types.mjs.map +1 -0
- package/dist/esm/common/configProvider/useComponentDefaults.mjs +1 -1
- package/dist/esm/common/configProvider/useComponentDefaults.mjs.map +1 -1
- package/dist/esm/common/configProvider/useLabels.mjs +1 -1
- package/dist/esm/common/configProvider/useLabels.mjs.map +1 -1
- package/dist/esm/common/configProvider/usePresentationDefault.mjs +1 -1
- package/dist/esm/common/configProvider/usePresentationDefault.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/components/datePickerMonth/datePickerMonth.mjs +1 -1
- package/dist/esm/common/datePicker/components/datePickerMonth/datePickerMonth.mjs.map +1 -1
- package/dist/esm/common/datePicker/components/datePickerMonth/datePickerMonth.module.mjs +1 -1
- package/dist/esm/common/datePicker/components/datePickerMonth/datePickerMonth.module.mjs.map +1 -1
- package/dist/esm/common/datePicker/dateFunctions.mjs +1 -1
- package/dist/esm/common/datePicker/dateFunctions.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/datePicker/datePicker.module.mjs +1 -1
- package/dist/esm/common/divider/divider.mjs +1 -1
- package/dist/esm/common/divider/divider.mjs.map +1 -1
- package/dist/esm/common/divider/divider.module.mjs +1 -1
- package/dist/esm/common/divider/divider.types.mjs +1 -1
- package/dist/esm/common/divider/divider.types.mjs.map +1 -1
- package/dist/esm/common/drawer/drawer.mjs +1 -1
- package/dist/esm/common/drawer/drawer.mjs.map +1 -1
- package/dist/esm/common/drawer/drawer.module.mjs +1 -1
- package/dist/esm/common/dropZone/dropZone.mjs +1 -1
- package/dist/esm/common/dropZone/dropZone.mjs.map +1 -1
- package/dist/esm/common/dropZone/dropZone.module.mjs +1 -1
- package/dist/esm/common/dropZone/dropZone.types.mjs +1 -1
- package/dist/esm/common/dropZone/dropZone.types.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/emptyState/emptyState.mjs +1 -1
- package/dist/esm/common/emptyState/emptyState.mjs.map +1 -1
- package/dist/esm/common/emptyState/emptyState.module.mjs +1 -1
- package/dist/esm/common/errorBoundary/errorBoundary.mjs +1 -1
- package/dist/esm/common/errorBoundary/errorBoundary.mjs.map +1 -1
- package/dist/esm/common/errorBoundary/errorBoundary.module.mjs +1 -1
- package/dist/esm/common/fab/components/fabBase/fabBase.mjs +1 -1
- package/dist/esm/common/fab/components/fabBase/fabBase.mjs.map +1 -1
- package/dist/esm/common/fab/components/fabBase/fabBase.module.mjs +1 -1
- package/dist/esm/common/fab/fab.mjs +1 -1
- package/dist/esm/common/fab/fab.mjs.map +1 -1
- package/dist/esm/common/fab/fab.module.mjs +1 -1
- package/dist/esm/common/fab/fab.module.mjs.map +1 -1
- package/dist/esm/common/flip/flip.mjs +1 -1
- package/dist/esm/common/flip/flip.mjs.map +1 -1
- package/dist/esm/common/flip/flip.module.mjs +1 -1
- package/dist/esm/common/floorPlan/floorPlan.faces.mjs +1 -1
- package/dist/esm/common/floorPlan/floorPlan.faces.mjs.map +1 -1
- package/dist/esm/common/floorPlan/floorPlan.geometry.mjs +1 -1
- package/dist/esm/common/floorPlan/floorPlan.geometry.mjs.map +1 -1
- package/dist/esm/common/floorPlan/floorPlan.graph.mjs +1 -1
- package/dist/esm/common/floorPlan/floorPlan.graph.mjs.map +1 -1
- package/dist/esm/common/floorPlan/floorPlan.hit.mjs +1 -1
- package/dist/esm/common/floorPlan/floorPlan.hit.mjs.map +1 -1
- package/dist/esm/common/floorPlan/floorPlan.json.mjs +1 -1
- package/dist/esm/common/floorPlan/floorPlan.json.mjs.map +1 -1
- package/dist/esm/common/floorPlan/floorPlan.mesh.mjs +1 -1
- package/dist/esm/common/floorPlan/floorPlan.mesh.mjs.map +1 -1
- package/dist/esm/common/floorPlan/floorPlan.path.mjs +1 -1
- package/dist/esm/common/floorPlan/floorPlan.path.mjs.map +1 -1
- package/dist/esm/common/floorPlan/floorPlan.plan.mjs +1 -1
- package/dist/esm/common/floorPlan/floorPlan.plan.mjs.map +1 -1
- package/dist/esm/common/floorPlan/floorPlan.rooms.mjs +1 -1
- package/dist/esm/common/floorPlan/floorPlan.rooms.mjs.map +1 -1
- package/dist/esm/common/floorPlan/floorPlan.snap.mjs +1 -1
- package/dist/esm/common/floorPlan/floorPlan.snap.mjs.map +1 -1
- package/dist/esm/common/floorPlan/floorPlan.triangulate.mjs +1 -1
- package/dist/esm/common/floorPlan/floorPlan.triangulate.mjs.map +1 -1
- package/dist/esm/common/floorPlan/floorPlan.types.mjs +1 -1
- package/dist/esm/common/floorPlan/floorPlan.types.mjs.map +1 -1
- package/dist/esm/common/floorPlan/legacySvg.mjs +1 -1
- package/dist/esm/common/floorPlan/legacySvg.mjs.map +1 -1
- package/dist/esm/common/hooks/useAnchorTracking.mjs +1 -1
- package/dist/esm/common/hooks/useAnchorTracking.mjs.map +1 -1
- package/dist/esm/common/hooks/useCoarsePointer.mjs +1 -1
- package/dist/esm/common/hooks/useCoarsePointer.mjs.map +1 -1
- package/dist/esm/common/hooks/useFocusBoundary.mjs +1 -1
- package/dist/esm/common/hooks/useFocusBoundary.mjs.map +1 -1
- package/dist/esm/common/hooks/useMediaQuery.mjs +1 -1
- package/dist/esm/common/hooks/useMediaQuery.mjs.map +1 -1
- package/dist/esm/common/hooks/useOverlay.mjs +1 -1
- package/dist/esm/common/hooks/useOverlay.mjs.map +1 -1
- package/dist/esm/common/hooks/useSheet.mjs +1 -1
- package/dist/esm/common/hooks/useSheet.mjs.map +1 -1
- package/dist/esm/common/hooks/useSwipeDismiss.mjs +1 -1
- package/dist/esm/common/hooks/useSwipeDismiss.mjs.map +1 -1
- package/dist/esm/common/hooks/useVisualViewportSize.mjs +1 -1
- package/dist/esm/common/hooks/useVisualViewportSize.mjs.map +1 -1
- package/dist/esm/common/iconPicker/iconPicker.mjs +1 -1
- package/dist/esm/common/iconPicker/iconPicker.mjs.map +1 -1
- package/dist/esm/common/iconPicker/iconPicker.module.mjs +1 -1
- package/dist/esm/common/idleManager/idleManager.mjs +1 -1
- package/dist/esm/common/idleManager/idleManager.mjs.map +1 -1
- package/dist/esm/common/infiniteBlock/infiniteBlock.mjs +1 -1
- package/dist/esm/common/infiniteBlock/infiniteBlock.mjs.map +1 -1
- package/dist/esm/common/infiniteBlock/infiniteBlock.module.mjs +1 -1
- package/dist/esm/common/input/input.mjs +1 -1
- package/dist/esm/common/input/input.mjs.map +1 -1
- package/dist/esm/common/input/input.module.mjs +1 -1
- package/dist/esm/common/input/input.module.mjs.map +1 -1
- package/dist/esm/common/input/input.types.mjs +1 -1
- package/dist/esm/common/input/input.types.mjs.map +1 -1
- package/dist/esm/common/inputDropdown/inputDropdown.mjs +1 -1
- package/dist/esm/common/inputDropdown/inputDropdown.mjs.map +1 -1
- package/dist/esm/common/inputDropdown/inputDropdown.module.mjs +1 -1
- package/dist/esm/common/inputDropdown/inputDropdown.module.mjs.map +1 -1
- package/dist/esm/common/interactableDiv/index.mjs +1 -1
- package/dist/esm/common/interactableDiv/index.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/interactableDiv/interactableDiv.module.mjs +1 -1
- package/dist/esm/common/kanbanBoard/KanbanBoard.mjs +1 -1
- package/dist/esm/common/kanbanBoard/KanbanBoard.mjs.map +1 -1
- package/dist/esm/common/kanbanBoard/KanbanColumn.mjs +1 -1
- package/dist/esm/common/kanbanBoard/KanbanColumn.mjs.map +1 -1
- package/dist/esm/common/kanbanBoard/KanbanItem.mjs +1 -1
- package/dist/esm/common/kanbanBoard/KanbanItem.mjs.map +1 -1
- package/dist/esm/common/kanbanBoard/kanbanBoard.module.mjs +1 -1
- package/dist/esm/common/kanbanBoard/kanbanBoard.utils.mjs +1 -1
- package/dist/esm/common/kanbanBoard/kanbanBoard.utils.mjs.map +1 -1
- package/dist/esm/common/klipyPicker/components/gifPreview/gifPreview.mjs +1 -1
- package/dist/esm/common/klipyPicker/components/gifPreview/gifPreview.mjs.map +1 -1
- package/dist/esm/common/klipyPicker/components/gifPreview/gifPreview.module.mjs +1 -1
- package/dist/esm/common/klipyPicker/components/gifView/gifView.mjs +1 -1
- package/dist/esm/common/klipyPicker/components/gifView/gifView.mjs.map +1 -1
- package/dist/esm/common/klipyPicker/components/gifView/gifView.module.mjs +1 -1
- package/dist/esm/common/klipyPicker/klipyPicker.mjs +1 -1
- package/dist/esm/common/klipyPicker/klipyPicker.mjs.map +1 -1
- package/dist/esm/common/klipyPicker/klipyPicker.module.mjs +1 -1
- package/dist/esm/common/loading/iconLoading/iconLoading.mjs +1 -1
- package/dist/esm/common/loading/iconLoading/iconLoading.mjs.map +1 -1
- package/dist/esm/common/loading/iconLoading/iconLoading.module.mjs +1 -1
- package/dist/esm/common/loading/iconLoading/index.mjs +1 -1
- package/dist/esm/common/loading/iconLoading/index.mjs.map +1 -1
- package/dist/esm/common/loading/spinnerLoading/index.mjs +1 -1
- package/dist/esm/common/loading/spinnerLoading/index.mjs.map +1 -1
- package/dist/esm/common/loading/spinnerLoading/spinnerLoading.mjs +1 -1
- package/dist/esm/common/loading/spinnerLoading/spinnerLoading.mjs.map +1 -1
- package/dist/esm/common/loading/spinnerLoading/spinnerLoading.module.mjs +1 -1
- package/dist/esm/common/menu/menu.mjs +2 -0
- package/dist/esm/common/menu/menu.mjs.map +1 -0
- package/dist/esm/common/menu/menu.module.mjs +2 -0
- package/dist/esm/common/menu/menu.module.mjs.map +1 -0
- package/dist/esm/common/menu/menu.types.mjs +2 -0
- package/dist/esm/common/menu/menu.types.mjs.map +1 -0
- package/dist/esm/common/modal/modal.mjs +1 -1
- package/dist/esm/common/modal/modal.mjs.map +1 -1
- package/dist/esm/common/modal/modal.module.mjs +1 -1
- package/dist/esm/common/modal/modal.module.mjs.map +1 -1
- package/dist/esm/common/multiSelect/multiSelect.mjs +1 -1
- package/dist/esm/common/multiSelect/multiSelect.mjs.map +1 -1
- package/dist/esm/common/multiSelect/multiSelect.module.mjs +1 -1
- package/dist/esm/common/multiSelect/multiSelect.module.mjs.map +1 -1
- package/dist/esm/common/numberInput/index.mjs +1 -1
- package/dist/esm/common/numberInput/index.mjs.map +1 -1
- package/dist/esm/common/numberInput/numberInput.mjs +1 -1
- package/dist/esm/common/numberInput/numberInput.mjs.map +1 -1
- package/dist/esm/common/numberInput/numberInput.module.mjs +1 -1
- package/dist/esm/common/numberInput/useStepRepeat.mjs +1 -1
- package/dist/esm/common/numberInput/useStepRepeat.mjs.map +1 -1
- package/dist/esm/common/optionPicker/optionPicker.mjs +1 -1
- package/dist/esm/common/optionPicker/optionPicker.mjs.map +1 -1
- package/dist/esm/common/optionPicker/optionPicker.module.mjs +1 -1
- package/dist/esm/common/otpInput/otpInput.mjs +1 -1
- package/dist/esm/common/otpInput/otpInput.mjs.map +1 -1
- package/dist/esm/common/otpInput/otpInput.module.mjs +1 -1
- package/dist/esm/common/otpInput/otpInput.types.mjs +1 -1
- package/dist/esm/common/otpInput/otpInput.types.mjs.map +1 -1
- package/dist/esm/common/overscroll/overscroll.mjs +1 -1
- package/dist/esm/common/overscroll/overscroll.mjs.map +1 -1
- package/dist/esm/common/overscroll/overscroll.module.mjs +1 -1
- package/dist/esm/common/pagination/pagination.mjs +1 -1
- package/dist/esm/common/pagination/pagination.mjs.map +1 -1
- package/dist/esm/common/pagination/pagination.module.mjs +1 -1
- package/dist/esm/common/planCanvas/planCanvas.mjs +1 -1
- package/dist/esm/common/planCanvas/planCanvas.mjs.map +1 -1
- package/dist/esm/common/planCanvas/planCanvas.module.mjs +1 -1
- package/dist/esm/common/popover/popover.mjs +1 -1
- package/dist/esm/common/popover/popover.mjs.map +1 -1
- package/dist/esm/common/popover/popover.module.mjs +1 -1
- package/dist/esm/common/popover/popover.module.mjs.map +1 -1
- package/dist/esm/common/popover/popover.types.mjs +1 -1
- package/dist/esm/common/popover/popover.types.mjs.map +1 -1
- package/dist/esm/common/popover/usePopoverPosition.mjs +1 -1
- package/dist/esm/common/popover/usePopoverPosition.mjs.map +1 -1
- package/dist/esm/common/progressBar/progressBar.mjs +1 -1
- package/dist/esm/common/progressBar/progressBar.mjs.map +1 -1
- package/dist/esm/common/progressBar/progressBar.module.mjs +1 -1
- package/dist/esm/common/progressBar/progressBar.module.mjs.map +1 -1
- package/dist/esm/common/radioGroup/radioGroup.mjs +1 -1
- package/dist/esm/common/radioGroup/radioGroup.mjs.map +1 -1
- package/dist/esm/common/radioGroup/radioGroup.module.mjs +1 -1
- package/dist/esm/common/radioGroup/radioGroup.module.mjs.map +1 -1
- package/dist/esm/common/radioGroup/radioGroup.types.mjs +1 -1
- package/dist/esm/common/radioGroup/radioGroup.types.mjs.map +1 -1
- package/dist/esm/common/rating/rating.mjs +1 -1
- package/dist/esm/common/rating/rating.mjs.map +1 -1
- package/dist/esm/common/rating/rating.module.mjs +1 -1
- package/dist/esm/common/revealLens/revealLens.mjs +1 -1
- package/dist/esm/common/revealLens/revealLens.mjs.map +1 -1
- package/dist/esm/common/revealLens/revealLens.module.mjs +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/ripple/ripple.module.mjs +1 -1
- package/dist/esm/common/ripple/ripple.module.mjs.map +1 -1
- package/dist/esm/common/roomDrawer/roomDrawer.mjs +1 -1
- package/dist/esm/common/roomDrawer/roomDrawer.mjs.map +1 -1
- package/dist/esm/common/roomDrawer/roomDrawer.module.mjs +1 -1
- package/dist/esm/common/roomDrawer/usePlanHistory.mjs +1 -1
- package/dist/esm/common/roomDrawer/usePlanHistory.mjs.map +1 -1
- package/dist/esm/common/roomViewer/roomViewer.mjs +1 -1
- package/dist/esm/common/roomViewer/roomViewer.mjs.map +1 -1
- package/dist/esm/common/roomViewer/roomViewer.module.mjs +1 -1
- package/dist/esm/common/scrollbarProvider/index.mjs +1 -1
- package/dist/esm/common/scrollbarProvider/index.mjs.map +1 -1
- package/dist/esm/common/scrollbarProvider/scrollbarProvider.mjs +1 -1
- package/dist/esm/common/scrollbarProvider/scrollbarProvider.mjs.map +1 -1
- package/dist/esm/common/scrollbarProvider/scrollbarProvider.module.mjs +1 -1
- package/dist/esm/common/searchInput/searchInput.mjs +1 -1
- package/dist/esm/common/searchInput/searchInput.mjs.map +1 -1
- package/dist/esm/common/searchInput/searchInput.module.mjs +1 -1
- package/dist/esm/common/sectionHeader/sectionHeader.mjs +1 -1
- package/dist/esm/common/sectionHeader/sectionHeader.mjs.map +1 -1
- package/dist/esm/common/sectionHeader/sectionHeader.module.mjs +1 -1
- package/dist/esm/common/sectionHeader/sectionHeader.types.mjs +1 -1
- package/dist/esm/common/sectionHeader/sectionHeader.types.mjs.map +1 -1
- package/dist/esm/common/sheetBackdrop/sheetBackdrop.mjs +1 -1
- package/dist/esm/common/sheetBackdrop/sheetBackdrop.mjs.map +1 -1
- package/dist/esm/common/skeleton/skeleton.mjs +1 -1
- package/dist/esm/common/skeleton/skeleton.mjs.map +1 -1
- package/dist/esm/common/skeleton/skeleton.module.mjs +1 -1
- package/dist/esm/common/skeleton/skeleton.types.mjs +1 -1
- package/dist/esm/common/skeleton/skeleton.types.mjs.map +1 -1
- package/dist/esm/common/slider/slider.mjs +1 -1
- package/dist/esm/common/slider/slider.mjs.map +1 -1
- package/dist/esm/common/slider/slider.module.mjs +1 -1
- package/dist/esm/common/splitButton/splitButton.mjs +1 -1
- package/dist/esm/common/splitButton/splitButton.mjs.map +1 -1
- package/dist/esm/common/splitButton/splitButton.module.mjs +1 -1
- package/dist/esm/common/splitButton/splitButton.module.mjs.map +1 -1
- package/dist/esm/common/stepper/stepper.mjs +1 -1
- package/dist/esm/common/stepper/stepper.mjs.map +1 -1
- package/dist/esm/common/stepper/stepper.module.mjs +1 -1
- package/dist/esm/common/stepper/stepper.types.mjs +1 -1
- package/dist/esm/common/stepper/stepper.types.mjs.map +1 -1
- package/dist/esm/common/sticky/sticky.mjs +1 -1
- package/dist/esm/common/sticky/sticky.mjs.map +1 -1
- package/dist/esm/common/sticky/sticky.module.mjs +1 -1
- package/dist/esm/common/sticky/stickyStack.mjs +1 -1
- package/dist/esm/common/sticky/stickyStack.mjs.map +1 -1
- package/dist/esm/common/styles/sheet.module.mjs +1 -1
- package/dist/esm/common/styles/sheet.module.mjs.map +1 -1
- package/dist/esm/common/switch/switch.mjs +1 -1
- package/dist/esm/common/switch/switch.mjs.map +1 -1
- package/dist/esm/common/switch/switch.module.mjs +1 -1
- package/dist/esm/common/switch/switch.module.mjs.map +1 -1
- package/dist/esm/common/tabHeader/tabHeader.mjs +1 -1
- package/dist/esm/common/tabHeader/tabHeader.mjs.map +1 -1
- package/dist/esm/common/tabHeader/tabHeader.module.mjs +1 -1
- package/dist/esm/common/textarea/textarea.mjs +1 -1
- package/dist/esm/common/textarea/textarea.mjs.map +1 -1
- package/dist/esm/common/themeProvider/defaultTheme.mjs +1 -1
- package/dist/esm/common/themeProvider/defaultTheme.mjs.map +1 -1
- package/dist/esm/common/themeProvider/lightTheme.mjs +2 -0
- package/dist/esm/common/themeProvider/lightTheme.mjs.map +1 -0
- package/dist/esm/common/themeProvider/theme.module.mjs +1 -1
- package/dist/esm/common/themeProvider/themeProvider.mjs +1 -1
- package/dist/esm/common/themeProvider/themeProvider.mjs.map +1 -1
- package/dist/esm/common/themeProvider/themeVariablesContext.mjs +1 -1
- package/dist/esm/common/themeProvider/themeVariablesContext.mjs.map +1 -1
- package/dist/esm/common/themeProvider/useTheme.mjs +1 -1
- package/dist/esm/common/themeProvider/useTheme.mjs.map +1 -1
- package/dist/esm/common/tilt/tilt.mjs +1 -1
- package/dist/esm/common/tilt/tilt.mjs.map +1 -1
- package/dist/esm/common/tilt/tilt.module.mjs +1 -1
- package/dist/esm/common/tilt/tiltMath.mjs +1 -1
- package/dist/esm/common/tilt/tiltMath.mjs.map +1 -1
- package/dist/esm/common/tiltGroup/tiltGroup.mjs +1 -1
- package/dist/esm/common/tiltGroup/tiltGroup.mjs.map +1 -1
- package/dist/esm/common/timeInput/components/clockDial/clockDial.mjs +1 -1
- package/dist/esm/common/timeInput/components/clockDial/clockDial.mjs.map +1 -1
- package/dist/esm/common/timeInput/components/clockDial/clockDial.module.mjs +1 -1
- package/dist/esm/common/timeInput/timeFunctions.mjs +1 -1
- package/dist/esm/common/timeInput/timeFunctions.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/timeInput/timeInput.module.mjs +1 -1
- package/dist/esm/common/timeline/timeline.mjs +1 -1
- package/dist/esm/common/timeline/timeline.mjs.map +1 -1
- package/dist/esm/common/timeline/timeline.module.mjs +1 -1
- package/dist/esm/common/timeline/timeline.types.mjs +1 -1
- package/dist/esm/common/timeline/timeline.types.mjs.map +1 -1
- package/dist/esm/common/timer/timer.chime.mjs +1 -1
- package/dist/esm/common/timer/timer.chime.mjs.map +1 -1
- package/dist/esm/common/timer/timer.mjs +1 -1
- package/dist/esm/common/timer/timer.mjs.map +1 -1
- package/dist/esm/common/timer/timer.module.mjs +1 -1
- package/dist/esm/common/toast/toast.mjs +1 -1
- package/dist/esm/common/toast/toast.mjs.map +1 -1
- package/dist/esm/common/toast/toast.module.mjs +1 -1
- package/dist/esm/common/toast/toast.module.mjs.map +1 -1
- package/dist/esm/common/toast/toastProvider.mjs +1 -1
- package/dist/esm/common/toast/toastProvider.mjs.map +1 -1
- package/dist/esm/common/toast/toastService.mjs +1 -1
- package/dist/esm/common/toast/toastService.mjs.map +1 -1
- package/dist/esm/common/tooltip/tooltip.mjs +1 -1
- package/dist/esm/common/tooltip/tooltip.mjs.map +1 -1
- package/dist/esm/common/tooltip/tooltip.module.mjs +1 -1
- package/dist/esm/common/tooltip/tooltip.module.mjs.map +1 -1
- package/dist/esm/common/tree/flattenTree.mjs +1 -1
- package/dist/esm/common/tree/flattenTree.mjs.map +1 -1
- package/dist/esm/common/tree/tree.mjs +1 -1
- package/dist/esm/common/tree/tree.mjs.map +1 -1
- package/dist/esm/common/tree/tree.module.mjs +1 -1
- package/dist/esm/common/tree/tree.module.mjs.map +1 -1
- package/dist/esm/common/utils/activationKey.mjs +1 -1
- package/dist/esm/common/utils/activationKey.mjs.map +1 -1
- package/dist/esm/common/utils/mergeRefs.mjs +2 -0
- package/dist/esm/common/utils/mergeRefs.mjs.map +1 -0
- package/dist/esm/common/utils/renderIcon.mjs +1 -1
- package/dist/esm/common/utils/renderIcon.mjs.map +1 -1
- package/dist/esm/common/utils/scrollAncestors.mjs +1 -1
- package/dist/esm/common/utils/scrollAncestors.mjs.map +1 -1
- package/dist/esm/common/utils/visualViewport.mjs +1 -1
- package/dist/esm/common/utils/visualViewport.mjs.map +1 -1
- package/dist/esm/common/virtualList/useColumnResize.mjs +1 -1
- package/dist/esm/common/virtualList/useColumnResize.mjs.map +1 -1
- package/dist/esm/common/virtualList/useColumns.mjs +1 -1
- package/dist/esm/common/virtualList/useColumns.mjs.map +1 -1
- package/dist/esm/common/virtualList/useHeaderNavigation.mjs +1 -1
- package/dist/esm/common/virtualList/useHeaderNavigation.mjs.map +1 -1
- package/dist/esm/common/virtualList/useRowDrag.mjs +1 -1
- package/dist/esm/common/virtualList/useRowDrag.mjs.map +1 -1
- package/dist/esm/common/virtualList/useRowNavigation.mjs +1 -1
- package/dist/esm/common/virtualList/useRowNavigation.mjs.map +1 -1
- package/dist/esm/common/virtualList/useSelection.mjs +1 -1
- package/dist/esm/common/virtualList/useSelection.mjs.map +1 -1
- package/dist/esm/common/virtualList/useSorting.mjs +1 -1
- package/dist/esm/common/virtualList/useSorting.mjs.map +1 -1
- package/dist/esm/common/virtualList/useVirtualWindow.mjs +1 -1
- package/dist/esm/common/virtualList/useVirtualWindow.mjs.map +1 -1
- package/dist/esm/common/virtualList/virtualList.mjs +1 -1
- package/dist/esm/common/virtualList/virtualList.mjs.map +1 -1
- package/dist/esm/common/virtualList/virtualList.module.mjs +1 -1
- package/dist/esm/common/virtualList/virtualList.module.mjs.map +1 -1
- package/dist/esm/common/virtualList/virtualList.utils.mjs +1 -1
- package/dist/esm/common/virtualList/virtualList.utils.mjs.map +1 -1
- package/dist/esm/common/virtualList/virtualListHeader.mjs +1 -1
- package/dist/esm/common/virtualList/virtualListHeader.mjs.map +1 -1
- package/dist/esm/common/virtualList/virtualRow.mjs +1 -1
- package/dist/esm/common/virtualList/virtualRow.mjs.map +1 -1
- package/dist/esm/common/wizard/wizard.mjs +1 -1
- package/dist/esm/common/wizard/wizard.mjs.map +1 -1
- package/dist/esm/common/wizard/wizard.module.mjs +1 -1
- package/dist/esm/hooks/useWindowSize.mjs +1 -1
- package/dist/esm/hooks/useWindowSize.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/services/formValidation/FormValidatorGroupWithForm.mjs +1 -1
- package/dist/esm/services/formValidation/FormValidatorGroupWithForm.mjs.map +1 -1
- package/dist/esm/services/formValidation/index.mjs +1 -1
- package/dist/esm/services/formValidation/useFormValidatorGroup.mjs +1 -1
- package/dist/esm/services/formValidation/useFormValidatorGroup.mjs.map +1 -1
- package/dist/esm/services/formValidation/validatableComponent.mjs +1 -1
- package/dist/esm/services/formValidation/validatableComponent.mjs.map +1 -1
- package/dist/esm/services/klipy.mjs +1 -1
- package/dist/esm/services/klipy.mjs.map +1 -1
- package/dist/esm/services/localization.mjs +1 -1
- package/dist/esm/services/localization.mjs.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/mcp.js +21096 -5
- package/dist/style.css +1 -1
- package/dist/types/common/actionIcon/actionIcon.types.d.ts +3 -1
- package/dist/types/common/card/card.types.d.ts +3 -1
- package/dist/types/common/checkbox/checkbox.types.d.ts +3 -1
- package/dist/types/common/colorPicker/colorPicker.types.d.ts +4 -0
- package/dist/types/common/configProvider/configProvider.d.ts +1 -1
- package/dist/types/common/configProvider/configProvider.types.d.ts +6 -3
- package/dist/types/common/configProvider/index.d.ts +1 -0
- package/dist/types/common/configProvider/presentation.types.d.ts +14 -0
- package/dist/types/common/configProvider/usePresentationDefault.d.ts +1 -1
- package/dist/types/common/dropdown/dropdown.types.d.ts +1 -1
- package/dist/types/common/flip/flip.d.ts +2 -2
- package/dist/types/common/flip/flip.types.d.ts +3 -1
- package/dist/types/common/hooks/useAnchorTracking.d.ts +1 -1
- package/dist/types/common/hooks/useFocusBoundary.d.ts +3 -3
- package/dist/types/common/hooks/useSheet.d.ts +1 -1
- package/dist/types/common/input/input.types.d.ts +5 -0
- package/dist/types/common/interactableDiv/interactableDiv.d.ts +3 -2
- package/dist/types/common/loading/spinnerLoading/spinnerLoading.d.ts +0 -5
- package/dist/types/common/menu/index.d.ts +2 -0
- package/dist/types/common/menu/menu.d.ts +14 -0
- package/dist/types/common/menu/menu.types.d.ts +55 -0
- package/dist/types/common/modal/modal.types.d.ts +1 -1
- package/dist/types/common/multiSelect/multiSelect.types.d.ts +1 -1
- package/dist/types/common/numberInput/numberInput.types.d.ts +2 -0
- package/dist/types/common/otpInput/otpInput.types.d.ts +2 -0
- package/dist/types/common/planCanvas/planCanvas.d.ts +1 -1
- package/dist/types/common/planCanvas/planCanvas.types.d.ts +3 -1
- package/dist/types/common/popover/popover.types.d.ts +34 -3
- package/dist/types/common/popover/usePopoverPosition.d.ts +20 -1
- package/dist/types/common/ripple/ripple.d.ts +1 -1
- package/dist/types/common/ripple/ripple.types.d.ts +1 -0
- package/dist/types/common/roomDrawer/roomDrawer.d.ts +2 -2
- package/dist/types/common/roomDrawer/roomDrawer.types.d.ts +3 -1
- package/dist/types/common/roomViewer/roomViewer.d.ts +2 -2
- package/dist/types/common/roomViewer/roomViewer.types.d.ts +3 -1
- package/dist/types/common/searchInput/searchInput.d.ts +1 -1
- package/dist/types/common/searchInput/searchInput.types.d.ts +3 -0
- package/dist/types/common/splitButton/splitButton.types.d.ts +3 -3
- package/dist/types/common/switch/switch.types.d.ts +3 -1
- package/dist/types/common/themeProvider/index.d.ts +1 -0
- package/dist/types/common/themeProvider/lightTheme.d.ts +13 -0
- package/dist/types/common/tilt/tilt.d.ts +2 -2
- package/dist/types/common/tilt/tilt.types.d.ts +3 -1
- package/dist/types/common/timer/timer.d.ts +2 -2
- package/dist/types/common/timer/timer.types.d.ts +3 -1
- package/dist/types/common/tooltip/tooltip.d.ts +1 -1
- package/dist/types/common/tooltip/tooltip.types.d.ts +7 -0
- package/dist/types/common/types/baseProps.types.d.ts +6 -0
- package/dist/types/common/utils/mergeRefs.d.ts +12 -0
- package/dist/types/common/virtualList/virtualList.d.ts +2 -4
- package/dist/types/common/virtualList/virtualList.types.d.ts +3 -1
- package/dist/types/index.d.ts +2 -2
- package/docs/Accordion.md +9 -0
- package/docs/ActionIcon.md +1 -0
- package/docs/Breadcrumb.md +2 -2
- package/docs/ButtonGroup.md +1 -1
- package/docs/CLAUDE.md +38 -1
- package/docs/Card.md +2 -1
- package/docs/Checkbox.md +1 -0
- package/docs/ColorPicker.md +13 -1
- package/docs/ConfigProvider.md +2 -2
- package/docs/Dropdown.md +1 -1
- package/docs/Input.md +1 -0
- package/docs/InputDropdown.md +1 -1
- package/docs/InteractableDiv.md +2 -0
- package/docs/KlipyPicker.md +1 -1
- package/docs/Menu.md +107 -0
- package/docs/Modal.md +1 -1
- package/docs/NumberInput.md +1 -0
- package/docs/OtpInput.md +1 -0
- package/docs/Popover.md +11 -5
- package/docs/SearchInput.md +1 -0
- package/docs/SplitButton.md +8 -4
- package/docs/Switch.md +1 -0
- package/docs/Textarea.md +1 -0
- package/docs/ThemeProvider.md +31 -2
- package/docs/Tooltip.md +23 -1
- package/docs/VirtualList.md +2 -2
- package/package.json +8 -7
- package/dist/esm/common/floatingMenu/floatingMenu.mjs +0 -2
- package/dist/esm/common/floatingMenu/floatingMenu.mjs.map +0 -1
- package/dist/esm/common/floatingMenu/floatingMenu.module.mjs +0 -2
- package/dist/esm/common/floatingMenu/floatingMenu.module.mjs.map +0 -1
- package/dist/esm/common/floatingMenu/floatingMenu.types.mjs +0 -2
- package/dist/esm/common/floatingMenu/floatingMenu.types.mjs.map +0 -1
- package/dist/esm/common/floatingMenu/useFloatingPosition.mjs +0 -2
- package/dist/esm/common/floatingMenu/useFloatingPosition.mjs.map +0 -1
- package/dist/types/common/floatingMenu/floatingMenu.d.ts +0 -3
- package/dist/types/common/floatingMenu/floatingMenu.types.d.ts +0 -32
- package/dist/types/common/floatingMenu/index.d.ts +0 -2
- package/dist/types/common/floatingMenu/useFloatingPosition.d.ts +0 -27
- package/docs/FloatingMenu.md +0 -90
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
2
|
import { IconContent } from '../types/icon.types';
|
|
3
3
|
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types';
|
|
4
4
|
export type ActionIconSlots = 'root' | 'icon';
|
|
@@ -8,6 +8,8 @@ export interface ActionIconProps extends HtmlProps {
|
|
|
8
8
|
style?: CSSProperties;
|
|
9
9
|
title?: string;
|
|
10
10
|
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
11
|
+
/** Ref to the root element. */
|
|
12
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
11
13
|
classNames?: SlotClassNames<ActionIconSlots>;
|
|
12
14
|
styles?: SlotStyles<ActionIconSlots>;
|
|
13
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { ButtonStyleType } from '../button/button.types';
|
|
3
3
|
import { HtmlProps, SlotClassNames, SlotStyles } from '../types/slots.types';
|
|
4
4
|
import { IconAction } from '../types/actions.types';
|
|
@@ -18,6 +18,8 @@ export interface CardProps extends Omit<HtmlProps, 'tabIndex'> {
|
|
|
18
18
|
style?: React.CSSProperties;
|
|
19
19
|
autoGap?: boolean;
|
|
20
20
|
clip?: boolean;
|
|
21
|
+
/** Ref to the root element. */
|
|
22
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
21
23
|
/** Classes for the inner elements. See `CardSlots`. */
|
|
22
24
|
classNames?: SlotClassNames<CardSlots>;
|
|
23
25
|
/** Inline styles for the inner elements. See `CardSlots`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, ReactNode, Ref } from 'react';
|
|
2
2
|
import { FormValidator } from '../../services/formValidation';
|
|
3
3
|
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types';
|
|
4
4
|
export type CheckboxSlots = 'icon' | 'checkmark' | 'label';
|
|
@@ -20,6 +20,8 @@ export interface CheckboxProps extends Omit<HtmlProps, 'onToggle'> {
|
|
|
20
20
|
children?: ReactNode;
|
|
21
21
|
background?: string | null;
|
|
22
22
|
isLoading?: boolean;
|
|
23
|
+
/** Ref to the root element. */
|
|
24
|
+
ref?: Ref<HTMLDivElement>;
|
|
23
25
|
classNames?: SlotClassNames<CheckboxSlots>;
|
|
24
26
|
styles?: SlotStyles<CheckboxSlots>;
|
|
25
27
|
}
|
|
@@ -4,6 +4,10 @@ export type ColorPickerSlots = 'root' | 'swatch' | 'panel' | 'gradient' | 'hueSl
|
|
|
4
4
|
export interface ColorPickerLabels {
|
|
5
5
|
/** The eyedropper button, read out by screen readers. */
|
|
6
6
|
pickFromScreen?: string;
|
|
7
|
+
/** The saturation and brightness square, read out by screen readers. */
|
|
8
|
+
saturationAndBrightness?: string;
|
|
9
|
+
/** Where the square's cursor currently sits, read out after every move. */
|
|
10
|
+
saturationAndBrightnessValue?: (saturation: number, brightness: number) => string;
|
|
7
11
|
}
|
|
8
12
|
export interface ColorPickerProps extends Omit<HtmlProps, 'onChange'> {
|
|
9
13
|
className?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ComponentDefaults, ConfigProviderProps } from './configProvider.types';
|
|
3
|
-
import { Presentation } from '../
|
|
3
|
+
import { Presentation } from '../configProvider/presentation.types';
|
|
4
4
|
export declare const ConfigContext: React.Context<ComponentDefaults | null>;
|
|
5
5
|
/**
|
|
6
6
|
* One setting for every component that can present as a bottom sheet, kept separate from
|
|
@@ -12,6 +12,7 @@ import { ColorPickerLabels } from '../colorPicker/colorPicker.types';
|
|
|
12
12
|
import { EmptyStateLabels } from '../emptyState/emptyState.types';
|
|
13
13
|
import { KlipyPickerLabels } from '../klipyPicker/klipyPicker.types';
|
|
14
14
|
import { SearchInputLabels } from '../searchInput/searchInput.types';
|
|
15
|
+
import { TooltipLabels } from '../tooltip/tooltip.types';
|
|
15
16
|
import { VirtualListLabels } from '../virtualList/virtualList.types';
|
|
16
17
|
import { ButtonProps } from '../button/button.types';
|
|
17
18
|
import { ActionButtonsProps } from '../actionButtons/actionButtons.types';
|
|
@@ -39,9 +40,9 @@ import { PaginationProps } from '../pagination/pagination.types';
|
|
|
39
40
|
import { TreeProps } from '../tree/tree.types';
|
|
40
41
|
import { RoomDrawerProps } from '../roomDrawer/roomDrawer.types';
|
|
41
42
|
import { RoomViewerProps } from '../roomViewer/roomViewer.types';
|
|
42
|
-
import { FloatingMenuProps, Presentation } from '../floatingMenu/floatingMenu.types';
|
|
43
43
|
import { PopoverProps } from '../popover/popover.types';
|
|
44
44
|
import { ModalProps } from '../modal/modal.types';
|
|
45
|
+
import { Presentation } from '../configProvider/presentation.types';
|
|
45
46
|
/**
|
|
46
47
|
* Global default props keyed by component name.
|
|
47
48
|
*
|
|
@@ -74,6 +75,9 @@ export interface ComponentDefaults {
|
|
|
74
75
|
SearchInput?: {
|
|
75
76
|
labels?: SearchInputLabels;
|
|
76
77
|
};
|
|
78
|
+
Tooltip?: {
|
|
79
|
+
labels?: TooltipLabels;
|
|
80
|
+
};
|
|
77
81
|
VirtualList?: {
|
|
78
82
|
labels?: VirtualListLabels;
|
|
79
83
|
};
|
|
@@ -112,7 +116,6 @@ export interface ComponentDefaults {
|
|
|
112
116
|
Tree?: Partial<TreeProps>;
|
|
113
117
|
RoomDrawer?: Partial<RoomDrawerProps>;
|
|
114
118
|
RoomViewer?: Partial<RoomViewerProps>;
|
|
115
|
-
FloatingMenu?: Partial<FloatingMenuProps>;
|
|
116
119
|
Popover?: Partial<PopoverProps>;
|
|
117
120
|
Modal?: Partial<ModalProps>;
|
|
118
121
|
}
|
|
@@ -122,7 +125,7 @@ export interface ConfigProviderProps {
|
|
|
122
125
|
defaultProps?: ComponentDefaults;
|
|
123
126
|
/**
|
|
124
127
|
* How every sheet-capable component presents by default: anchored to its trigger, always a
|
|
125
|
-
* bottom sheet, or a sheet only on a small touch screen. One switch for `
|
|
128
|
+
* bottom sheet, or a sheet only on a small touch screen. One switch for `Popover`,
|
|
126
129
|
* `Dropdown`, `Popover` and `Modal` at once (and so for everything built on them). A
|
|
127
130
|
* component-keyed entry in `defaultProps` overrides it, and an explicit prop overrides both.
|
|
128
131
|
*/
|
|
@@ -3,3 +3,4 @@ export { useComponentDefaults } from './useComponentDefaults';
|
|
|
3
3
|
export { useLabels } from './useLabels';
|
|
4
4
|
export { usePresentationDefault } from './usePresentationDefault';
|
|
5
5
|
export type { ComponentDefaults, ConfigProviderProps } from './configProvider.types';
|
|
6
|
+
export { Presentation } from './presentation.types';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a surface is presented on screen. Lives here rather than with any one of
|
|
3
|
+
* the components that read it: `Modal`, `Popover`, `Dropdown` and `MultiSelect`
|
|
4
|
+
* all take it, and `ConfigProvider` owns the app-wide switch that sets it for
|
|
5
|
+
* every one of them at once.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum Presentation {
|
|
8
|
+
/** Wherever the component normally puts it: anchored to its trigger, or centred for a Modal. */
|
|
9
|
+
Default = "default",
|
|
10
|
+
/** Pinned to the bottom of the screen, full width up to a maximum. */
|
|
11
|
+
Sheet = "sheet",
|
|
12
|
+
/** A sheet on touch devices with a small screen, anchored everywhere else. */
|
|
13
|
+
Auto = "auto"
|
|
14
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types';
|
|
2
2
|
import { ReactNode, Ref } from 'react';
|
|
3
3
|
import { FormValidator } from '../../services/formValidation';
|
|
4
|
-
import { Presentation } from '../
|
|
4
|
+
import { Presentation } from '../configProvider/presentation.types';
|
|
5
5
|
export interface DropdownItem {
|
|
6
6
|
key: string | number;
|
|
7
7
|
label: ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare
|
|
1
|
+
import { FlipProps } from './flip.types';
|
|
2
|
+
declare function Flip(props: FlipProps): import("react").JSX.Element;
|
|
3
3
|
export default Flip;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, ReactNode, Ref } from 'react';
|
|
2
2
|
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types';
|
|
3
3
|
export type FlipAxis = 'x' | 'y';
|
|
4
4
|
export type FlipSlots = 'root' | 'perspective' | 'surface' | 'front' | 'back';
|
|
@@ -35,6 +35,8 @@ export interface FlipProps extends HtmlProps {
|
|
|
35
35
|
onFlip?: (flipped: boolean) => void;
|
|
36
36
|
/** Fires once the flip transition finishes settling on the new face, for any trigger (click, controlled prop change, or ref call). Fires synchronously under `prefers-reduced-motion: reduce`, since no transition runs to wait for. */
|
|
37
37
|
onFlipEnd?: (flipped: boolean) => void;
|
|
38
|
+
/** Imperative handle for flipping without owning the state. */
|
|
39
|
+
ref?: Ref<FlipHandle>;
|
|
38
40
|
className?: string;
|
|
39
41
|
style?: CSSProperties;
|
|
40
42
|
classNames?: SlotClassNames<FlipSlots>;
|
|
@@ -31,7 +31,7 @@ export interface UseAnchorTrackingArgs {
|
|
|
31
31
|
* positioning on every scroll, viewport resize and tracked size change until it closes.
|
|
32
32
|
*
|
|
33
33
|
* Callers supply only the geometry (`update`) and the inline styles to clear again (`teardown`);
|
|
34
|
-
* `
|
|
34
|
+
* `usePopoverPosition` is built on this.
|
|
35
35
|
*
|
|
36
36
|
* Position is deliberately written straight to the DOM by the caller rather than through React
|
|
37
37
|
* state: going through setState -> re-render -> commit adds a round-trip that lags behind the
|
|
@@ -9,9 +9,9 @@ export interface UseFocusBoundaryArgs {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Focus helpers for content portaled to the end of the DOM (e.g. via BodyEnd), where Tab can't
|
|
12
|
-
* reach it in visual document order on its own.
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* reach it in visual document order on its own. Used by Popover and by Menu, which both need to
|
|
13
|
+
* hand focus back to the trigger on Escape / Shift+Tab out of the top, and continue focus
|
|
14
|
+
* naturally past the trigger when Tab exits the bottom.
|
|
15
15
|
*/
|
|
16
16
|
export declare function useFocusBoundary({ triggerRef, contentRef }: UseFocusBoundaryArgs): {
|
|
17
17
|
firstTriggerFocusable: () => HTMLElement | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { Presentation } from '../
|
|
2
|
+
import { Presentation } from '../configProvider/presentation.types';
|
|
3
3
|
export interface Sheet {
|
|
4
4
|
/** Whether the popup should render as a bottom sheet instead of anchored to its trigger. */
|
|
5
5
|
isSheet: boolean;
|
|
@@ -71,6 +71,11 @@ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
|
|
|
71
71
|
multiline?: boolean;
|
|
72
72
|
rows?: number;
|
|
73
73
|
autoResize?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Ref to the rendered `<input>` (or `<textarea>` when `multiline`). Not forwarded to a
|
|
76
|
+
* `customInput`, which owns its own ref.
|
|
77
|
+
*/
|
|
78
|
+
ref?: React.Ref<HTMLInputElement | HTMLTextAreaElement>;
|
|
74
79
|
classNames?: SlotClassNames<InputSlots>;
|
|
75
80
|
styles?: SlotStyles<InputSlots>;
|
|
76
81
|
/** Overrides the text Input renders of its own. Merged per key. */
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, ReactElement } from 'react';
|
|
2
2
|
import { DataProps } from '../types/baseProps.types';
|
|
3
3
|
interface Properties extends DataProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'tabIndex'> {
|
|
4
4
|
tabIndex?: number | null;
|
|
5
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
5
6
|
}
|
|
6
|
-
declare
|
|
7
|
+
declare function InteractableDiv({ className, children, onClick, onKeyDown, tabIndex, ref, ...props }: Properties): ReactElement;
|
|
7
8
|
export default InteractableDiv;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { MenuProps } from './menu.types';
|
|
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';
|
|
3
|
+
import { IconContent } from '../types/icon.types';
|
|
4
|
+
import { PopoverAlign, PopoverPlacement } from '../popover/popover.types';
|
|
5
|
+
import { Presentation } from '../configProvider/presentation.types';
|
|
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
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types';
|
|
3
|
-
import { Presentation } from '../
|
|
3
|
+
import { Presentation } from '../configProvider/presentation.types';
|
|
4
4
|
export type ModalSlots = 'container' | 'backdrop' | 'modal' | 'header' | 'title' | 'closeButton' | 'body';
|
|
5
5
|
/** Text Modal renders of its own, for translating it. */
|
|
6
6
|
export interface ModalLabels {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { FormValidator } from '../../services/formValidation';
|
|
3
3
|
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types';
|
|
4
|
-
import { Presentation } from '../
|
|
4
|
+
import { Presentation } from '../configProvider/presentation.types';
|
|
5
5
|
export type MultiSelectValue = string | number;
|
|
6
6
|
export interface MultiSelectItem {
|
|
7
7
|
key: MultiSelectValue;
|
|
@@ -67,6 +67,8 @@ export interface NumberInputProps extends Omit<NumericFormatProps, 'onValueChang
|
|
|
67
67
|
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
68
68
|
/** Overrides the text NumberInput renders of its own. Merged per key. */
|
|
69
69
|
labels?: NumberInputLabels;
|
|
70
|
+
/** Ref to the inner `<input>`, for focusing the field. */
|
|
71
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
70
72
|
/** Classes for the inner elements. See `NumberInputSlots`. */
|
|
71
73
|
classNames?: SlotClassNames<NumberInputSlots>;
|
|
72
74
|
/** Inline styles for the inner elements. See `NumberInputSlots`. */
|
|
@@ -51,6 +51,8 @@ export interface OtpInputProps extends Omit<HtmlProps, 'onChange'> {
|
|
|
51
51
|
autoFocus?: boolean;
|
|
52
52
|
className?: string;
|
|
53
53
|
style?: React.CSSProperties;
|
|
54
|
+
/** Ref to the root element. */
|
|
55
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
54
56
|
classNames?: SlotClassNames<OtpInputSlots>;
|
|
55
57
|
styles?: SlotStyles<OtpInputSlots>;
|
|
56
58
|
/** Overrides the text OtpInput renders of its own. Merged per key. */
|
|
@@ -3,5 +3,5 @@ import { PlanCanvasProps } from './planCanvas.types';
|
|
|
3
3
|
* The ref lands on the `<svg>` itself, which is what a consumer wants for measuring or
|
|
4
4
|
* screenshotting. Both the drawer and the viewer expose it as `getSvgElement()`.
|
|
5
5
|
*/
|
|
6
|
-
declare
|
|
6
|
+
declare function PlanCanvas(props: PlanCanvasProps): import("react").JSX.Element;
|
|
7
7
|
export default PlanCanvas;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, ReactNode, Ref } from 'react';
|
|
2
2
|
import { DerivedRoom, PlanFloor, PlanRoom, PlanSelection, PlanView } from '../floorPlan';
|
|
3
3
|
import { SlotClassNames, SlotStyles } from '../types/slots.types';
|
|
4
4
|
export type PlanCanvasSlots = 'canvas' | 'grid' | 'underlay' | 'rooms' | 'roomFill' | 'roomLabel' | 'walls' | 'wallBody' | 'openings' | 'opening' | 'overlay';
|
|
@@ -55,6 +55,8 @@ export interface PlanCanvasProps {
|
|
|
55
55
|
height: number;
|
|
56
56
|
};
|
|
57
57
|
'aria-label'?: string;
|
|
58
|
+
/** Ref to the rendered `<svg>` root. */
|
|
59
|
+
ref?: Ref<SVGSVGElement>;
|
|
58
60
|
className?: string;
|
|
59
61
|
style?: CSSProperties;
|
|
60
62
|
classNames?: SlotClassNames<PlanCanvasSlots>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types';
|
|
3
|
-
import { Presentation } from '../
|
|
3
|
+
import { Presentation } from '../configProvider/presentation.types';
|
|
4
4
|
/** Preferred side of the trigger the panel opens on. Flips to the opposite side when there's no room. */
|
|
5
5
|
export declare enum PopoverPlacement {
|
|
6
6
|
Top = "top",
|
|
@@ -36,8 +36,14 @@ export interface PopoverProps extends Omit<HtmlProps, 'content'> {
|
|
|
36
36
|
isOpen?: boolean;
|
|
37
37
|
/** Initial open state when uncontrolled (default `false`). */
|
|
38
38
|
defaultOpen?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Fires whenever the popover wants to open or close. `fromKeyboard` says
|
|
41
|
+
* whether a key caused it, which is what a menu needs in order to put the
|
|
42
|
+
* focus on an entry only when the pointer was not what opened it.
|
|
43
|
+
*/
|
|
44
|
+
onOpenChange?: (isOpen: boolean, meta: {
|
|
45
|
+
fromKeyboard: boolean;
|
|
46
|
+
}) => void;
|
|
41
47
|
/** Gap in px between trigger and panel (default `10`). */
|
|
42
48
|
offset?: number;
|
|
43
49
|
/** Render the arrow pointing at the trigger (default `true`). */
|
|
@@ -52,6 +58,31 @@ export interface PopoverProps extends Omit<HtmlProps, 'content'> {
|
|
|
52
58
|
closeDelay?: number;
|
|
53
59
|
/** Prevent the popover from opening. */
|
|
54
60
|
disabled?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Move focus into the panel when it opens, and claim `role="dialog"` with it.
|
|
63
|
+
* `'keyboard'` (the default) does it only when the open came from the
|
|
64
|
+
* keyboard: the panel is portaled to the end of the document, so Tab never
|
|
65
|
+
* reaches it on its own, while a click leaves the focus where the pointer
|
|
66
|
+
* already put it. `true` always, `false` never.
|
|
67
|
+
*/
|
|
68
|
+
focusOnOpen?: boolean | 'keyboard';
|
|
69
|
+
/**
|
|
70
|
+
* Whether clicking the trigger while the panel is open closes it (default
|
|
71
|
+
* `true`). A menu button should toggle; a text field that opens a picker
|
|
72
|
+
* should not, or clicking into it to place the caret would close the panel.
|
|
73
|
+
*/
|
|
74
|
+
closeOnTriggerClick?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* `'trigger'` gives the panel at least the trigger's width, for a list that
|
|
77
|
+
* should line up with the field it belongs to. `'auto'` (the default) lets it
|
|
78
|
+
* size to its own content.
|
|
79
|
+
*/
|
|
80
|
+
width?: 'auto' | 'trigger';
|
|
81
|
+
/**
|
|
82
|
+
* Cap the panel at a readable measure (default `true`). Off for a panel with
|
|
83
|
+
* its own width, a calendar or a media grid.
|
|
84
|
+
*/
|
|
85
|
+
constrainWidth?: boolean;
|
|
55
86
|
/** Where the panel opens: anchored to the trigger (`Default`), pinned to the bottom of the
|
|
56
87
|
* screen, or the latter only on a small touch screen. Only a `Click` trigger presents as a
|
|
57
88
|
* sheet. */
|
|
@@ -12,6 +12,25 @@ export interface UsePopoverPositionArgs {
|
|
|
12
12
|
panelRef: RefObject<HTMLElement | null>;
|
|
13
13
|
/** Arrow element; gets `--arrow-x` / `--arrow-y` written to it. Pass a null ref when `withArrow` is false. */
|
|
14
14
|
arrowRef: RefObject<HTMLElement | null>;
|
|
15
|
+
/**
|
|
16
|
+
* Give the panel at least the trigger's width, for a list that lines up with
|
|
17
|
+
* the field it belongs to. A minimum rather than a fixed width: a menu on a
|
|
18
|
+
* narrow icon button still sizes to its own content.
|
|
19
|
+
*/
|
|
20
|
+
matchTriggerWidth?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* When the panel does not fit on the side its alignment puts it, narrow it
|
|
23
|
+
* rather than sliding it away from the trigger. Sliding keeps the panel
|
|
24
|
+
* on-screen but detaches it: an end-aligned bubble stops ending where its
|
|
25
|
+
* trigger ends, and its arrow stops pointing at anything. Off by default, since
|
|
26
|
+
* a panel whose width is its content, a menu or a list, would rather overhang
|
|
27
|
+
* its trigger than wrap.
|
|
28
|
+
*
|
|
29
|
+
* Only down to `MIN_SHRINK_WIDTH`. Past that the panel is narrower than it is
|
|
30
|
+
* readable, and a trigger that close to the screen edge is better served by a
|
|
31
|
+
* panel that overhangs it.
|
|
32
|
+
*/
|
|
33
|
+
shrinkToFit?: boolean;
|
|
15
34
|
}
|
|
16
35
|
/**
|
|
17
36
|
* Positions a portaled, `position: fixed` popover on any of the four sides of its trigger with
|
|
@@ -22,4 +41,4 @@ export interface UsePopoverPositionArgs {
|
|
|
22
41
|
* `useAnchorTracking` supplies the lifecycle around this: mount wait, ancestor resolution, and
|
|
23
42
|
* re-running on scroll, viewport resize and panel size changes.
|
|
24
43
|
*/
|
|
25
|
-
export declare function usePopoverPosition({ isOpen, placement, align, offset, triggerRef, floatingRef, panelRef, arrowRef, }: UsePopoverPositionArgs): void;
|
|
44
|
+
export declare function usePopoverPosition({ isOpen, placement, align, offset, triggerRef, floatingRef, panelRef, arrowRef, matchTriggerWidth, shrinkToFit, }: UsePopoverPositionArgs): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { RippleProps, RippleHandle } from './ripple.types';
|
|
3
3
|
export type { RippleProps, RippleHandle };
|
|
4
|
-
declare
|
|
4
|
+
declare function Ripple({ disabled, children, className, style, overflowHidden, rippleAnimationLength, rippleBackground, manualOnly, ref, ...rest }: RippleProps): React.JSX.Element;
|
|
5
5
|
export default Ripple;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare
|
|
1
|
+
import { RoomDrawerProps } from './roomDrawer.types';
|
|
2
|
+
declare function RoomDrawer(props: RoomDrawerProps): import("react").JSX.Element;
|
|
3
3
|
export default RoomDrawer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, ReactNode, Ref } from 'react';
|
|
2
2
|
import { FloorPlan, OpeningKind, PlanParseResult, PlanPoint, PlanRoom, PlanSelection, PlanView } from '../floorPlan';
|
|
3
3
|
import { IconContent } from '../types/icon.types';
|
|
4
4
|
import { HtmlProps, SlotClassNames, SlotStyles } from '../types/slots.types';
|
|
@@ -299,6 +299,8 @@ export interface RoomDrawerProps extends Omit<HtmlProps<HTMLDivElement>, 'onChan
|
|
|
299
299
|
labels?: RoomDrawerLabels;
|
|
300
300
|
icons?: RoomDrawerIcons;
|
|
301
301
|
'aria-label'?: string;
|
|
302
|
+
/** Imperative handle for driving the editor. */
|
|
303
|
+
ref?: Ref<RoomDrawerHandle>;
|
|
302
304
|
className?: string;
|
|
303
305
|
style?: CSSProperties;
|
|
304
306
|
classNames?: SlotClassNames<RoomDrawerSlots>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RoomViewerProps } from './roomViewer.types';
|
|
2
2
|
/**
|
|
3
3
|
* Read-only view of a floor plan.
|
|
4
4
|
*
|
|
@@ -6,5 +6,5 @@ import { RoomViewerHandle, RoomViewerProps } from './roomViewer.types';
|
|
|
6
6
|
* two cannot drift apart. Selection and hover are React state rather than classes pushed
|
|
7
7
|
* onto DOM nodes, which is what lets them be controlled from outside.
|
|
8
8
|
*/
|
|
9
|
-
declare
|
|
9
|
+
declare function RoomViewer(props: RoomViewerProps): import("react").JSX.Element;
|
|
10
10
|
export default RoomViewer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, ReactNode, Ref } from 'react';
|
|
2
2
|
import { DerivedRoom, FloorPlan, PlanRoom, PlanView } from '../floorPlan';
|
|
3
3
|
import { IconContent } from '../types/icon.types';
|
|
4
4
|
import { HtmlProps, SlotClassNames, SlotStyles } from '../types/slots.types';
|
|
@@ -82,6 +82,8 @@ export interface RoomViewerProps extends Omit<HtmlProps<HTMLDivElement>, 'onSele
|
|
|
82
82
|
emptyState?: ReactNode;
|
|
83
83
|
labels?: RoomViewerLabels;
|
|
84
84
|
icons?: RoomViewerIcons;
|
|
85
|
+
/** Imperative handle for driving the viewport. */
|
|
86
|
+
ref?: Ref<RoomViewerHandle>;
|
|
85
87
|
className?: string;
|
|
86
88
|
style?: CSSProperties;
|
|
87
89
|
classNames?: SlotClassNames<RoomViewerSlots>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { SearchInputProps } from './searchInput.types';
|
|
3
|
-
export default function SearchInput({ value, onChange, onDebounce, placeholder, label, debounceMs, totalAmount, showAmount, className, width, style, classNames, styles: slotStyles, labels, ...rest }: SearchInputProps): ReactElement;
|
|
3
|
+
export default function SearchInput({ value, onChange, onDebounce, placeholder, label, debounceMs, totalAmount, showAmount, className, width, style, classNames, styles: slotStyles, labels, ref, ...rest }: SearchInputProps): ReactElement;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types';
|
|
2
3
|
export type SearchInputSlots = 'root' | 'input' | 'resultCount';
|
|
3
4
|
/** Text SearchInput renders of its own, for translating it. */
|
|
@@ -22,4 +23,6 @@ export interface SearchInputProps extends Omit<HtmlProps, 'onChange'> {
|
|
|
22
23
|
styles?: SlotStyles<SearchInputSlots>;
|
|
23
24
|
/** Overrides the text SearchInput renders of its own. Merged per key. */
|
|
24
25
|
labels?: SearchInputLabels;
|
|
26
|
+
/** Ref to the inner `<input>`, for focusing the field. */
|
|
27
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
25
28
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { PopoverAlign } from '../popover/popover.types';
|
|
1
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
3
|
import { IconContent } from '../types/icon.types';
|
|
3
4
|
import { ButtonStyleType, ButtonSize } from '../button/button.types';
|
|
4
|
-
import { Align } from '../floatingMenu/floatingMenu.types';
|
|
5
5
|
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types';
|
|
6
6
|
export interface SplitButtonAction {
|
|
7
7
|
id: string;
|
|
@@ -24,8 +24,8 @@ export interface SplitButtonProps extends HtmlProps {
|
|
|
24
24
|
size?: ButtonSize;
|
|
25
25
|
disabled?: boolean;
|
|
26
26
|
isLoading?: boolean;
|
|
27
|
-
/** Alignment of the actions menu relative to the trigger button (default `
|
|
28
|
-
align?:
|
|
27
|
+
/** Alignment of the actions menu relative to the trigger button (default `PopoverAlign.End`) */
|
|
28
|
+
align?: PopoverAlign;
|
|
29
29
|
className?: string;
|
|
30
30
|
style?: CSSProperties;
|
|
31
31
|
classNames?: SlotClassNames<SplitButtonSlots>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, ReactNode, Ref } from 'react';
|
|
2
2
|
import { FormValidator } from '../../services/formValidation';
|
|
3
3
|
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types';
|
|
4
4
|
export type SwitchSlots = 'track' | 'thumb' | 'label';
|
|
@@ -14,6 +14,8 @@ export interface SwitchProps extends Omit<HtmlProps, 'onToggle'> {
|
|
|
14
14
|
tabIndex?: number;
|
|
15
15
|
formValidator?: FormValidator | null;
|
|
16
16
|
children?: ReactNode;
|
|
17
|
+
/** Ref to the root element. */
|
|
18
|
+
ref?: Ref<HTMLDivElement>;
|
|
17
19
|
classNames?: SlotClassNames<SwitchSlots>;
|
|
18
20
|
styles?: SlotStyles<SwitchSlots>;
|
|
19
21
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Theme } from './theme.types';
|
|
2
|
+
/**
|
|
3
|
+
* The light sibling of {@link defaultTheme}, which is dark. Same brand, inverted surfaces:
|
|
4
|
+
* it declares only what has to flip, and inherits the rest through `baseThemeId`, so a change
|
|
5
|
+
* to the palette or the type scale reaches both themes at once.
|
|
6
|
+
*
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <ThemeProvider themes={[defaultTheme, lightTheme]} activeThemeId='light'>
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* `--primary-color` is deliberately untouched: it is the brand, and it reads on both.
|
|
12
|
+
*/
|
|
13
|
+
export declare const lightTheme: Theme;
|