@react-aria/tag
Advanced tools
Comparing version 3.0.0-nightly.1659 to 3.0.0-nightly.1662
import { GridCollection } from "@react-types/grid"; | ||
import { GridKeyboardDelegate } from "@react-aria/grid"; | ||
import { Key, ButtonHTMLAttributes, HTMLAttributes, ReactNode } from "react"; | ||
import { Key, ButtonHTMLAttributes, ReactNode } from "react"; | ||
import { DOMAttributes, DOMProps } from "@react-types/shared"; | ||
import { GridState } from "@react-stately/grid"; | ||
import { TagProps } from "@react-types/tag"; | ||
import { DOMProps } from "@react-types/shared"; | ||
export class TagKeyboardDelegate<T> extends GridKeyboardDelegate<T, GridCollection<T>> { | ||
@@ -18,5 +18,5 @@ getFirstKey(): any; | ||
export interface TagAria { | ||
labelProps: HTMLAttributes<HTMLElement>; | ||
tagProps: HTMLAttributes<HTMLElement>; | ||
tagRowProps: HTMLAttributes<HTMLElement>; | ||
labelProps: DOMAttributes; | ||
tagProps: DOMAttributes; | ||
tagRowProps: DOMAttributes; | ||
clearButtonProps: ButtonHTMLAttributes<HTMLButtonElement>; | ||
@@ -33,3 +33,3 @@ } | ||
interface TagGroupAria { | ||
tagGroupProps: HTMLAttributes<HTMLElement>; | ||
tagGroupProps: DOMAttributes; | ||
} | ||
@@ -36,0 +36,0 @@ export function useTagGroup(props: AriaTagGroupProps, listState: any): TagGroupAria; |
{ | ||
"name": "@react-aria/tag", | ||
"version": "3.0.0-nightly.1659+da520fcc1", | ||
"version": "3.0.0-nightly.1662+d667676bd", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,10 +21,10 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/grid": "3.3.2-nightly.3359+da520fcc1", | ||
"@react-aria/i18n": "3.0.0-nightly.1659+da520fcc1", | ||
"@react-aria/interactions": "3.0.0-nightly.1659+da520fcc1", | ||
"@react-aria/utils": "3.0.0-nightly.1659+da520fcc1", | ||
"@react-stately/grid": "3.2.2-nightly.3359+da520fcc1", | ||
"@react-types/grid": "3.1.2-nightly.3359+da520fcc1", | ||
"@react-types/shared": "3.0.0-nightly.1659+da520fcc1", | ||
"@react-types/tag": "3.0.0-nightly.1659+da520fcc1" | ||
"@react-aria/grid": "3.3.2-nightly.3362+d667676bd", | ||
"@react-aria/i18n": "3.0.0-nightly.1662+d667676bd", | ||
"@react-aria/interactions": "3.0.0-nightly.1662+d667676bd", | ||
"@react-aria/utils": "3.0.0-nightly.1662+d667676bd", | ||
"@react-stately/grid": "3.2.2-nightly.3362+d667676bd", | ||
"@react-types/grid": "3.1.2-nightly.3362+d667676bd", | ||
"@react-types/shared": "3.0.0-nightly.1662+d667676bd", | ||
"@react-types/tag": "3.0.0-nightly.1662+d667676bd" | ||
}, | ||
@@ -37,3 +37,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "da520fcc159ddc694fd7bdf19cbc485c2e0c6e4b" | ||
"gitHead": "d667676bd59eeb00eb087597579315841c352077" | ||
} |
@@ -13,3 +13,4 @@ /* | ||
import {ButtonHTMLAttributes, HTMLAttributes, KeyboardEvent} from 'react'; | ||
import {ButtonHTMLAttributes, KeyboardEvent} from 'react'; | ||
import {DOMAttributes} from '@react-types/shared'; | ||
import {filterDOMProps, mergeProps, useId} from '@react-aria/utils'; | ||
@@ -25,5 +26,5 @@ import {GridState} from '@react-stately/grid'; | ||
export interface TagAria { | ||
labelProps: HTMLAttributes<HTMLElement>, | ||
tagProps: HTMLAttributes<HTMLElement>, | ||
tagRowProps: HTMLAttributes<HTMLElement>, | ||
labelProps: DOMAttributes, | ||
tagProps: DOMAttributes, | ||
tagRowProps: DOMAttributes, | ||
clearButtonProps: ButtonHTMLAttributes<HTMLButtonElement> | ||
@@ -60,3 +61,3 @@ } | ||
function onKeyDown(e: KeyboardEvent<HTMLElement>) { | ||
function onKeyDown(e: KeyboardEvent<Element>) { | ||
if (e.key === 'Delete' || e.key === 'Backspace' || e.key === ' ') { | ||
@@ -63,0 +64,0 @@ onRemove(children, e); |
@@ -13,5 +13,5 @@ /* | ||
import {DOMProps} from '@react-types/shared'; | ||
import {DOMAttributes, DOMProps} from '@react-types/shared'; | ||
import {filterDOMProps, mergeProps} from '@react-aria/utils'; | ||
import {HTMLAttributes, Key, ReactNode, useState} from 'react'; | ||
import {Key, ReactNode, useState} from 'react'; | ||
import {useFocusWithin} from '@react-aria/interactions'; | ||
@@ -28,3 +28,3 @@ | ||
interface TagGroupAria { | ||
tagGroupProps: HTMLAttributes<HTMLElement> | ||
tagGroupProps: DOMAttributes | ||
} | ||
@@ -50,4 +50,4 @@ | ||
...focusWithinProps | ||
} as HTMLAttributes<HTMLElement>) | ||
} as DOMAttributes) | ||
}; | ||
} |
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
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
847
95245
1
80