@react-spectrum/icon
Advanced tools
Comparing version 3.0.0-nightly-12920fc91-241104 to 3.0.0-nightly-19bc0b845-241211
@@ -5,4 +5,4 @@ require("./vars.b0351abd.css"); | ||
var $hx3aW$reactariautils = require("@react-aria/utils"); | ||
var $hx3aW$reactspectrumprovider = require("@react-spectrum/provider"); | ||
var $hx3aW$react = require("react"); | ||
var $hx3aW$reactspectrumprovider = require("@react-spectrum/provider"); | ||
@@ -48,5 +48,11 @@ | ||
let { styleProps: styleProps } = (0, $hx3aW$reactspectrumutils.useStyleProps)(otherProps, $2f297c87d3047269$var$iconStyleProps); | ||
let provider = (0, $hx3aW$reactspectrumprovider.useProvider)(); | ||
let provider; | ||
try { | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
provider = (0, $hx3aW$reactspectrumprovider.useProvider)(); | ||
} catch { | ||
// ignore | ||
} | ||
let scale = 'M'; | ||
if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M'; | ||
if (provider != null) scale = provider.scale === 'large' ? 'L' : 'M'; | ||
if (!ariaHidden) ariaHidden = undefined; | ||
@@ -53,0 +59,0 @@ // Use user specified size, falling back to provider scale if size is undef |
@@ -5,4 +5,4 @@ import "./vars.b0351abd.css"; | ||
import {filterDOMProps as $hJE0A$filterDOMProps} from "@react-aria/utils"; | ||
import {useProvider as $hJE0A$useProvider} from "@react-spectrum/provider"; | ||
import $hJE0A$react from "react"; | ||
import {useProvider as $hJE0A$useProvider} from "@react-spectrum/provider"; | ||
@@ -42,5 +42,11 @@ | ||
let { styleProps: styleProps } = (0, $hJE0A$useStyleProps)(otherProps, $6bfb67578ee6effd$var$iconStyleProps); | ||
let provider = (0, $hJE0A$useProvider)(); | ||
let provider; | ||
try { | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
provider = (0, $hJE0A$useProvider)(); | ||
} catch { | ||
// ignore | ||
} | ||
let scale = 'M'; | ||
if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M'; | ||
if (provider != null) scale = provider.scale === 'large' ? 'L' : 'M'; | ||
if (!ariaHidden) ariaHidden = undefined; | ||
@@ -47,0 +53,0 @@ // Use user specified size, falling back to provider scale if size is undef |
@@ -5,4 +5,4 @@ require("./vars.b0351abd.css"); | ||
var $anCtz$reactariautils = require("@react-aria/utils"); | ||
var $anCtz$reactspectrumprovider = require("@react-spectrum/provider"); | ||
var $anCtz$react = require("react"); | ||
var $anCtz$reactspectrumprovider = require("@react-spectrum/provider"); | ||
@@ -38,5 +38,11 @@ | ||
let { styleProps: styleProps } = (0, $anCtz$reactspectrumutils.useStyleProps)(otherProps); | ||
let provider = (0, $anCtz$reactspectrumprovider.useProvider)(); | ||
let provider; | ||
try { | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
provider = (0, $anCtz$reactspectrumprovider.useProvider)(); | ||
} catch { | ||
// ignore | ||
} | ||
let scale = 'M'; | ||
if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M'; | ||
if (provider != null) scale = provider.scale === 'large' ? 'L' : 'M'; | ||
if (!ariaHidden) ariaHidden = undefined; | ||
@@ -43,0 +49,0 @@ return /*#__PURE__*/ (0, ($parcel$interopDefault($anCtz$react))).cloneElement(children, { |
@@ -5,4 +5,4 @@ import "./vars.b0351abd.css"; | ||
import {filterDOMProps as $g4kmm$filterDOMProps} from "@react-aria/utils"; | ||
import {useProvider as $g4kmm$useProvider} from "@react-spectrum/provider"; | ||
import $g4kmm$react from "react"; | ||
import {useProvider as $g4kmm$useProvider} from "@react-spectrum/provider"; | ||
@@ -32,5 +32,11 @@ | ||
let { styleProps: styleProps } = (0, $g4kmm$useStyleProps)(otherProps); | ||
let provider = (0, $g4kmm$useProvider)(); | ||
let provider; | ||
try { | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
provider = (0, $g4kmm$useProvider)(); | ||
} catch { | ||
// ignore | ||
} | ||
let scale = 'M'; | ||
if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M'; | ||
if (provider != null) scale = provider.scale === 'large' ? 'L' : 'M'; | ||
if (!ariaHidden) ariaHidden = undefined; | ||
@@ -37,0 +43,0 @@ return /*#__PURE__*/ (0, $g4kmm$react).cloneElement(children, { |
{ | ||
"name": "@react-spectrum/icon", | ||
"version": "3.0.0-nightly-12920fc91-241104", | ||
"version": "3.0.0-nightly-19bc0b845-241211", | ||
"description": "Spectrum UI components in React", | ||
@@ -39,5 +39,5 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/utils": "^3.0.0-nightly-12920fc91-241104", | ||
"@react-spectrum/utils": "^3.0.0-nightly-12920fc91-241104", | ||
"@react-types/shared": "^3.0.0-nightly-12920fc91-241104", | ||
"@react-aria/utils": "^3.0.0-nightly-19bc0b845-241211", | ||
"@react-spectrum/utils": "^3.0.0-nightly-19bc0b845-241211", | ||
"@react-types/shared": "^3.0.0-nightly-19bc0b845-241211", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -49,4 +49,4 @@ }, | ||
"peerDependencies": { | ||
"@react-spectrum/provider": "^3.0.0-nightly-12920fc91-241104", | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
"@react-spectrum/provider": "^3.0.0-nightly-19bc0b845-241211", | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
}, | ||
@@ -56,3 +56,3 @@ "publishConfig": { | ||
}, | ||
"stableVersion": "3.7.16" | ||
"stableVersion": "3.8.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
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
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
128337
1451