@react-types/provider
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "@react-types/provider", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Spectrum UI components in React", | ||
@@ -9,6 +9,6 @@ "license": "Apache-2.0", | ||
"type": "git", | ||
"url": "https://github.com/adobe-private/react-spectrum-v3" | ||
"url": "https://github.com/adobe/react-spectrum" | ||
}, | ||
"dependencies": { | ||
"@react-types/shared": "^3.0.0" | ||
"@react-types/shared": "^3.0.1" | ||
}, | ||
@@ -21,3 +21,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "a32224fdf009d69cf594f32ad18ac86d7ebb8a52" | ||
"gitHead": "ac0b7a7ba0edccd1c9ab4f849022ad6d2ccd19ed" | ||
} |
# @react-types/provider | ||
This package is part of [react-spectrum](https://github.com/adobe-private/react-spectrum-v3). See the repo for more details. | ||
This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. |
@@ -41,13 +41,13 @@ /* | ||
interface ContextProps { | ||
/** Whether children components should be displayed with the quiet style. */ | ||
/** Whether descendants should be displayed with the quiet style. */ | ||
isQuiet?: boolean, | ||
/** Whether children components should be displayed with the emphasized style. */ | ||
/** Whether descendants should be displayed with the emphasized style. */ | ||
isEmphasized?: boolean, | ||
/** Whether children components should be disabled. */ | ||
/** Whether descendants should be disabled. */ | ||
isDisabled?: boolean, | ||
/** Whether children components should be displayed with the required style. */ | ||
/** Whether descendants should be displayed with the required style. */ | ||
isRequired?: boolean, | ||
/** Whether children components should be read only. */ | ||
/** Whether descendants should be read only. */ | ||
isReadOnly?: boolean, | ||
/** Whether children components should be displayed with the validation state style. */ | ||
/** Whether descendants should be displayed with the validation state style. */ | ||
validationState?: ValidationState | ||
@@ -57,16 +57,15 @@ } | ||
export interface ProviderProps extends ContextProps, DOMProps, StyleProps { | ||
/** The children components to receive Provider props and context. */ | ||
/** The content of the Provider */ | ||
children: ReactNode, | ||
/** | ||
* Theme scoped to this provider and its children components. | ||
* Sets the CSS variables for scale and color scheme values. | ||
* The theme for your application. | ||
*/ | ||
theme?: Theme, | ||
/** | ||
* Color scheme scoped to this provider and its children components. | ||
* Defaults to the color scheme set by the OS. | ||
* The color scheme for your application. | ||
* Defaults to operating system preferences. | ||
*/ | ||
colorScheme?: ColorScheme, | ||
/** | ||
* If there is not an OS/browser color scheme this is the default. | ||
* The default color scheme if no operating system setting is available. | ||
* @default 'light' | ||
@@ -76,10 +75,8 @@ */ | ||
/** | ||
* Spectrum scale scoped to this provider and its children components. | ||
* By default this is selected based on touch or mouse pointer type of the OS. | ||
* Sets the scale for your applications. Defaults based on device pointer type. | ||
*/ | ||
scale?: Scale, | ||
/** | ||
* Locale (language specific format) of this provider and its children. | ||
* Using the format primary-region, ex. en-US, fr-CA, ar-AE. | ||
* @default 'en-US' | ||
* The locale for your application as a [BCP 47](https://www.ietf.org/rfc/bcp/bcp47.txt) language code. | ||
* Defaults to the browser/OS language setting. | ||
*/ | ||
@@ -86,0 +83,0 @@ locale?: string |
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
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
15070
80
Updated@react-types/shared@^3.0.1