@react-aria/tag
Advanced tools
Comparing version 3.0.0-nightly.1673 to 3.0.0-nightly.1675
@@ -1,14 +0,7 @@ | ||
import { ButtonHTMLAttributes, Key, ReactNode } from "react"; | ||
import { GridCollection } from "@react-types/grid"; | ||
import { GridKeyboardDelegate } from "@react-aria/grid"; | ||
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 { GridCollection } from "@react-types/grid"; | ||
import { GridKeyboardDelegate } from "@react-aria/grid"; | ||
export interface TagAria { | ||
labelProps: DOMAttributes; | ||
tagProps: DOMAttributes; | ||
tagRowProps: DOMAttributes; | ||
clearButtonProps: ButtonHTMLAttributes<HTMLButtonElement>; | ||
} | ||
export function useTag(props: TagProps<any>, state: GridState<any, any>): TagAria; | ||
export class TagKeyboardDelegate<T> extends GridKeyboardDelegate<T, GridCollection<T>> { | ||
@@ -24,3 +17,10 @@ getFirstKey(): any; | ||
} | ||
interface AriaTagGroupProps extends DOMProps { | ||
export interface TagAria { | ||
labelProps: DOMAttributes; | ||
tagProps: DOMAttributes; | ||
tagRowProps: DOMAttributes; | ||
clearButtonProps: ButtonHTMLAttributes<HTMLButtonElement>; | ||
} | ||
export function useTag(props: TagProps<any>, state: GridState<any, any>): TagAria; | ||
export interface AriaTagGroupProps extends DOMProps { | ||
children: ReactNode; | ||
@@ -32,7 +32,8 @@ disabledKeys?: Iterable<Key>; | ||
} | ||
interface TagGroupAria { | ||
export interface TagGroupAria { | ||
tagGroupProps: DOMAttributes; | ||
} | ||
export function useTagGroup(props: AriaTagGroupProps, listState: any): TagGroupAria; | ||
export type { TagProps } from '@react-types/tag'; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@react-aria/tag", | ||
"version": "3.0.0-nightly.1673+8defd74c9", | ||
"version": "3.0.0-nightly.1675+7cebb4eea", | ||
"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.3373+8defd74c9", | ||
"@react-aria/i18n": "3.0.0-nightly.1673+8defd74c9", | ||
"@react-aria/interactions": "3.0.0-nightly.1673+8defd74c9", | ||
"@react-aria/utils": "3.0.0-nightly.1673+8defd74c9", | ||
"@react-stately/grid": "3.2.2-nightly.3373+8defd74c9", | ||
"@react-types/grid": "3.1.2-nightly.3373+8defd74c9", | ||
"@react-types/shared": "3.0.0-nightly.1673+8defd74c9", | ||
"@react-types/tag": "3.0.0-nightly.1673+8defd74c9" | ||
"@react-aria/grid": "3.3.2-nightly.3375+7cebb4eea", | ||
"@react-aria/i18n": "3.0.0-nightly.1675+7cebb4eea", | ||
"@react-aria/interactions": "3.0.0-nightly.1675+7cebb4eea", | ||
"@react-aria/utils": "3.0.0-nightly.1675+7cebb4eea", | ||
"@react-stately/grid": "3.2.2-nightly.3375+7cebb4eea", | ||
"@react-types/grid": "3.1.2-nightly.3375+7cebb4eea", | ||
"@react-types/shared": "3.0.0-nightly.1675+7cebb4eea", | ||
"@react-types/tag": "3.0.0-nightly.1675+7cebb4eea" | ||
}, | ||
@@ -37,3 +37,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "8defd74c9698b4dda32fd20bcfc579b123cd98e7" | ||
"gitHead": "7cebb4eea31f383f1eec06cc53a7909f8736f66a" | ||
} |
@@ -13,5 +13,8 @@ /* | ||
export type {TagAria} from './useTag'; | ||
export {TagKeyboardDelegate} from './TagKeyboardDelegate'; | ||
export {useTag} from './useTag'; | ||
export {useTagGroup} from './useTagGroup'; | ||
export type {TagProps} from '@react-types/tag'; | ||
export type {AriaTagGroupProps, TagGroupAria} from './useTagGroup'; | ||
export type {TagAria} from './useTag'; |
@@ -18,3 +18,3 @@ /* | ||
interface AriaTagGroupProps extends DOMProps { | ||
export interface AriaTagGroupProps extends DOMProps { | ||
children: ReactNode, | ||
@@ -27,3 +27,3 @@ disabledKeys?: Iterable<Key>, | ||
interface TagGroupAria { | ||
export interface TagGroupAria { | ||
tagGroupProps: DOMAttributes | ||
@@ -30,0 +30,0 @@ } |
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
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
94917
0
100
958