@react-spectrum/button
Advanced tools
Comparing version 3.0.0-nightly.786 to 3.0.0-nightly.790
@@ -371,2 +371,3 @@ var { | ||
["spectrum-ClearButton--" + variant]: variant, | ||
'is-disabled': isDisabled, | ||
'is-active': isPressed, | ||
@@ -373,0 +374,0 @@ 'is-hovered': isHovered |
@@ -330,2 +330,3 @@ import { useToggleState } from "@react-stately/toggle"; | ||
["spectrum-ClearButton--" + variant]: variant, | ||
'is-disabled': isDisabled, | ||
'is-active': isPressed, | ||
@@ -332,0 +333,0 @@ 'is-hovered': isHovered |
@@ -1,3 +0,3 @@ | ||
import React, { JSXElementConstructor } from "react"; | ||
import { SpectrumButtonProps, SpectrumActionButtonProps, ButtonProps, SpectrumLogicButtonProps, SpectrumToggleButtonProps } from "@react-types/button"; | ||
import React, { ElementType } from "react"; | ||
import { SpectrumButtonProps, SpectrumActionButtonProps, ButtonProps, SpectrumLogicButtonProps, AriaButtonElementTypeProps, SpectrumToggleButtonProps } from "@react-types/button"; | ||
import { DOMProps, StyleProps } from "@react-types/shared"; | ||
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export let Button: React.ForwardRefExoticComponent<SpectrumButtonProps & React.RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLElement, HTMLElement>>>; | ||
export let Button: React.ForwardRefExoticComponent<SpectrumButtonProps & React.RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>; | ||
/** | ||
@@ -27,4 +27,3 @@ * ActionButtons allow users to perform an action. | ||
export let LogicButton: React.ForwardRefExoticComponent<SpectrumLogicButtonProps & React.RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>; | ||
interface ClearButtonProps extends ButtonProps, DOMProps, StyleProps { | ||
elementType?: string | JSXElementConstructor<any>; | ||
interface ClearButtonProps<T extends ElementType = 'button'> extends ButtonProps, AriaButtonElementTypeProps<T>, DOMProps, StyleProps { | ||
focusClassName?: string; | ||
@@ -35,3 +34,3 @@ variant?: 'overBackground'; | ||
} | ||
export let ClearButton: React.ForwardRefExoticComponent<ClearButtonProps & React.RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>; | ||
export let ClearButton: React.ForwardRefExoticComponent<ClearButtonProps<"button"> & React.RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>; | ||
/** | ||
@@ -38,0 +37,0 @@ * ToggleButtons allow users to toggle a selection on or off, for example |
{ | ||
"name": "@react-spectrum/button", | ||
"version": "3.0.0-nightly.786+d80334eb", | ||
"version": "3.0.0-nightly.790+b44f2f11", | ||
"description": "Spectrum UI components in React", | ||
@@ -35,17 +35,17 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/button": "3.0.0-nightly.786+d80334eb", | ||
"@react-aria/focus": "3.0.0-nightly.786+d80334eb", | ||
"@react-aria/interactions": "3.0.0-nightly.786+d80334eb", | ||
"@react-aria/utils": "3.0.0-nightly.786+d80334eb", | ||
"@react-spectrum/text": "3.1.2-nightly.2464+d80334eb", | ||
"@react-spectrum/utils": "3.0.0-nightly.786+d80334eb", | ||
"@react-stately/toggle": "3.0.0-nightly.786+d80334eb", | ||
"@react-types/button": "3.2.2-nightly.2464+d80334eb", | ||
"@react-types/provider": "3.2.1-nightly.2464+d80334eb", | ||
"@react-types/shared": "3.0.0-nightly.786+d80334eb", | ||
"@spectrum-icons/ui": "3.0.0-nightly.786+d80334eb" | ||
"@react-aria/button": "3.0.0-nightly.790+b44f2f11", | ||
"@react-aria/focus": "3.0.0-nightly.790+b44f2f11", | ||
"@react-aria/interactions": "3.0.0-nightly.790+b44f2f11", | ||
"@react-aria/utils": "3.0.0-nightly.790+b44f2f11", | ||
"@react-spectrum/text": "3.1.2-nightly.2468+b44f2f11", | ||
"@react-spectrum/utils": "3.0.0-nightly.790+b44f2f11", | ||
"@react-stately/toggle": "3.0.0-nightly.790+b44f2f11", | ||
"@react-types/button": "3.2.2-nightly.2468+b44f2f11", | ||
"@react-types/provider": "3.2.1-nightly.2468+b44f2f11", | ||
"@react-types/shared": "3.0.0-nightly.790+b44f2f11", | ||
"@spectrum-icons/ui": "3.0.0-nightly.790+b44f2f11" | ||
}, | ||
"devDependencies": { | ||
"@adobe/spectrum-css-temp": "3.0.0-nightly.786+d80334eb", | ||
"@react-spectrum/test-utils": "3.0.0-nightly.786+d80334eb" | ||
"@adobe/spectrum-css-temp": "3.0.0-nightly.790+b44f2f11", | ||
"@react-spectrum/test-utils": "3.0.0-nightly.790+b44f2f11" | ||
}, | ||
@@ -59,3 +59,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "d80334eba4d7a44d282ccbd3736a80708112d0a2" | ||
"gitHead": "b44f2f11b8e091afa2f0166bb75cedc0e5f56e1e" | ||
} |
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
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
222888
1464