@react-aria/utils
Version:
Spectrum UI components in React
41 lines (40 loc) • 2.17 kB
text/typescript
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
export {useId, mergeIds, useSlotId} from './useId';
export {chain} from './chain';
export {mergeProps} from './mergeProps';
export {mergeRefs} from './mergeRefs';
export {filterDOMProps} from './filterDOMProps';
export {focusWithoutScrolling} from './focusWithoutScrolling';
export {getOffset} from './getOffset';
export {openLink, getSyntheticLinkProps, RouterProvider, shouldClientNavigate, useRouter} from './openLink';
export {runAfterTransition} from './runAfterTransition';
export {useDrag1D} from './useDrag1D';
export {useGlobalListeners} from './useGlobalListeners';
export {useLabels} from './useLabels';
export {useObjectRef} from './useObjectRef';
export {useUpdateEffect} from './useUpdateEffect';
export {useLayoutEffect} from './useLayoutEffect';
export {useResizeObserver} from './useResizeObserver';
export {useSyncRef} from './useSyncRef';
export {getScrollParent, isScrollable} from './getScrollParent';
export {useViewportSize} from './useViewportSize';
export {useDescription} from './useDescription';
export {isMac, isIPhone, isIPad, isIOS, isAppleDevice, isWebKit, isChrome, isAndroid} from './platform';
export {useEvent} from './useEvent';
export {useValueEffect} from './useValueEffect';
export {scrollIntoView, scrollIntoViewport} from './scrollIntoView';
export {clamp, snapValueToStep} from '@react-stately/utils';
export {isVirtualClick, isVirtualPointerEvent} from './isVirtualEvent';
export {useEffectEvent} from './useEffectEvent';
export {useDeepMemo} from './useDeepMemo';
export {useFormReset} from './useFormReset';