@react-aria/utils
Advanced tools
Comparing version 3.0.0-nightly.738 to 3.0.0-nightly.741
@@ -87,3 +87,3 @@ import React, { HTMLAttributes, MutableRefObject, EffectCallback, RefObject } from "react"; | ||
*/ | ||
export function useLabels(props: DOMProps & AriaLabelingProps, defaultLabel?: string): HTMLAttributes<HTMLElement>; | ||
export function useLabels(props: DOMProps & AriaLabelingProps, defaultLabel?: string): DOMProps & AriaLabelingProps; | ||
export function useUpdateEffect(effect: EffectCallback, dependencies: any[]): void; | ||
@@ -90,0 +90,0 @@ type useResizeObserverOptionsType<T> = { |
{ | ||
"name": "@react-aria/utils", | ||
"version": "3.0.0-nightly.738+dc6d7873", | ||
"version": "3.0.0-nightly.741+975957a3", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,4 +21,4 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/ssr": "3.0.2-nightly.2416+dc6d7873", | ||
"@react-types/shared": "3.0.0-nightly.738+dc6d7873", | ||
"@react-aria/ssr": "3.0.2-nightly.2419+975957a3", | ||
"@react-types/shared": "3.0.0-nightly.741+975957a3", | ||
"clsx": "^1.1.1" | ||
@@ -32,3 +32,3 @@ }, | ||
}, | ||
"gitHead": "dc6d78733fb26fa02afeb1a36e11de7d71c84467" | ||
"gitHead": "975957a3c3fb4a9f3be358428e0980a4d4e51c1a" | ||
} |
@@ -23,2 +23,3 @@ /* | ||
type TupleTypes<T> = { [P in keyof T]: T[P] } extends { [key: number]: infer V } ? V : never; | ||
// eslint-disable-next-line no-undef, @typescript-eslint/no-unused-vars | ||
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never; | ||
@@ -25,0 +26,0 @@ |
@@ -14,4 +14,4 @@ /* | ||
import {getOffset} from './getOffset'; | ||
import {HTMLAttributes, MutableRefObject, useRef} from 'react'; | ||
import {Orientation} from '@react-types/shared'; | ||
import React, {HTMLAttributes, MutableRefObject, useRef} from 'react'; | ||
@@ -18,0 +18,0 @@ interface UseDrag1DProps { |
@@ -14,3 +14,2 @@ /* | ||
import {AriaLabelingProps, DOMProps} from '@react-types/shared'; | ||
import {HTMLAttributes} from 'react'; | ||
import {useId} from './useId'; | ||
@@ -23,3 +22,3 @@ | ||
*/ | ||
export function useLabels(props: DOMProps & AriaLabelingProps, defaultLabel?: string): HTMLAttributes<HTMLElement> { | ||
export function useLabels(props: DOMProps & AriaLabelingProps, defaultLabel?: string): DOMProps & AriaLabelingProps { | ||
let { | ||
@@ -26,0 +25,0 @@ id, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
197512