@react-spectrum/utils
Advanced tools
Comparing version
@@ -29,3 +29,3 @@ var $9bLOP$clsx = require("clsx"); | ||
$e720495fead531ee$export$46d604dce8bf8724 = true; | ||
console.warn("Legacy spectrum-prefixed class names enabled for backward compatibility. We recommend replacing instances of CSS overrides targeting spectrum selectors in your app with custom class names of your own, and disabling this flag."); | ||
if (process.env.NODE_ENV !== 'production') console.warn("Legacy spectrum-prefixed class names enabled for backward compatibility. We recommend replacing instances of CSS overrides targeting spectrum selectors in your app with custom class names of your own, and disabling this flag."); | ||
} | ||
@@ -32,0 +32,0 @@ function $e720495fead531ee$export$ce4ab0c55987d1ff(cssModule, ...values) { |
@@ -17,3 +17,3 @@ import $jPV9R$clsx from "clsx"; | ||
$fd933927dbac1f15$export$46d604dce8bf8724 = true; | ||
console.warn("Legacy spectrum-prefixed class names enabled for backward compatibility. We recommend replacing instances of CSS overrides targeting spectrum selectors in your app with custom class names of your own, and disabling this flag."); | ||
if (process.env.NODE_ENV !== 'production') console.warn("Legacy spectrum-prefixed class names enabled for backward compatibility. We recommend replacing instances of CSS overrides targeting spectrum selectors in your app with custom class names of your own, and disabling this flag."); | ||
} | ||
@@ -20,0 +20,0 @@ function $fd933927dbac1f15$export$ce4ab0c55987d1ff(cssModule, ...values) { |
@@ -441,5 +441,5 @@ var $893a66ba513f4a66$exports = require("./BreakpointProvider.main.js"); | ||
// @ts-ignore | ||
if (otherProps.className) console.warn("The className prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_className if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."); | ||
if (otherProps.className && process.env.NODE_ENV !== 'production') console.warn("The className prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_className if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."); | ||
// @ts-ignore | ||
if (otherProps.style) console.warn("The style prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_style if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."); | ||
if (otherProps.style && process.env.NODE_ENV !== 'production') console.warn("The style prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_style if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."); | ||
let styleProps = { | ||
@@ -446,0 +446,0 @@ style: style, |
@@ -428,5 +428,5 @@ import {useBreakpoint as $1051245f87c5981d$export$199d6754bdf4e1e3} from "./BreakpointProvider.module.js"; | ||
// @ts-ignore | ||
if (otherProps.className) console.warn("The className prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_className if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."); | ||
if (otherProps.className && process.env.NODE_ENV !== 'production') console.warn("The className prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_className if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."); | ||
// @ts-ignore | ||
if (otherProps.style) console.warn("The style prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_style if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."); | ||
if (otherProps.style && process.env.NODE_ENV !== 'production') console.warn("The style prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_style if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."); | ||
let styleProps = { | ||
@@ -433,0 +433,0 @@ style: style, |
{ | ||
"name": "@react-spectrum/utils", | ||
"version": "3.0.0-nightly-74cac946a-250317", | ||
"version": "3.0.0-nightly-77b3442e4-250520", | ||
"description": "Spectrum UI components in React", | ||
@@ -27,6 +27,6 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/i18n": "3.0.0-nightly-74cac946a-250317", | ||
"@react-aria/ssr": "3.0.0-nightly-74cac946a-250317", | ||
"@react-aria/utils": "3.0.0-nightly-74cac946a-250317", | ||
"@react-types/shared": "3.0.0-nightly-74cac946a-250317", | ||
"@react-aria/i18n": "3.0.0-nightly-77b3442e4-250520", | ||
"@react-aria/ssr": "3.0.0-nightly-77b3442e4-250520", | ||
"@react-aria/utils": "3.0.0-nightly-77b3442e4-250520", | ||
"@react-types/shared": "3.0.0-nightly-77b3442e4-250520", | ||
"@swc/helpers": "^0.5.0", | ||
@@ -33,0 +33,0 @@ "clsx": "^2.0.0" |
@@ -19,7 +19,9 @@ /* | ||
shouldKeepSpectrumClassNames = true; | ||
console.warn( | ||
'Legacy spectrum-prefixed class names enabled for backward compatibility. ' + | ||
'We recommend replacing instances of CSS overrides targeting spectrum selectors ' + | ||
'in your app with custom class names of your own, and disabling this flag.' | ||
); | ||
if (process.env.NODE_ENV !== 'production') { | ||
console.warn( | ||
'Legacy spectrum-prefixed class names enabled for backward compatibility. ' + | ||
'We recommend replacing instances of CSS overrides targeting spectrum selectors ' + | ||
'in your app with custom class names of your own, and disabling this flag.' | ||
); | ||
} | ||
} | ||
@@ -26,0 +28,0 @@ |
@@ -269,3 +269,3 @@ /* | ||
// @ts-ignore | ||
if (otherProps.className) { | ||
if (otherProps.className && process.env.NODE_ENV !== 'production') { | ||
console.warn( | ||
@@ -279,3 +279,3 @@ 'The className prop is unsafe and is unsupported in React Spectrum v3. ' + | ||
// @ts-ignore | ||
if (otherProps.style) { | ||
if (otherProps.style && process.env.NODE_ENV !== 'production') { | ||
console.warn( | ||
@@ -282,0 +282,0 @@ 'The style prop is unsafe and is unsupported in React Spectrum v3. ' + |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
229685
0.44%3187
0.25%9
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed