@react-spectrum/icon
Advanced tools
Comparing version 3.0.0-nightly-0ddbe6f95-241021 to 3.0.0-nightly-101d0772b-250111
@@ -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-0ddbe6f95-241021", | ||
"version": "3.0.0-nightly-101d0772b-250111", | ||
"description": "Spectrum UI components in React", | ||
@@ -39,5 +39,5 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/utils": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-spectrum/utils": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-types/shared": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-aria/utils": "3.0.0-nightly-101d0772b-250111", | ||
"@react-spectrum/utils": "3.0.0-nightly-101d0772b-250111", | ||
"@react-types/shared": "3.0.0-nightly-101d0772b-250111", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -49,9 +49,8 @@ }, | ||
"peerDependencies": { | ||
"@react-spectrum/provider": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
"@react-spectrum/provider": "3.0.0-nightly-101d0772b-250111", | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"stableVersion": "3.7.16" | ||
} | ||
} |
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
128305
1451
+ Added@internationalized/date@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@internationalized/message@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@internationalized/number@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@internationalized/string@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/focus@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/i18n@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/interactions@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/overlays@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/ssr@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/utils@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/visually-hidden@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-spectrum/provider@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-spectrum/utils@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-stately/overlays@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-stately/utils@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-types/button@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-types/overlays@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-types/provider@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-types/shared@3.0.0-nightly-101d0772b-250111(transitive)
- Removed@internationalized/date@3.7.0(transitive)
- Removed@internationalized/message@3.1.6(transitive)
- Removed@internationalized/number@3.6.0(transitive)
- Removed@internationalized/string@3.2.5(transitive)
- Removed@react-aria/focus@3.19.1(transitive)
- Removed@react-aria/i18n@3.12.5(transitive)
- Removed@react-aria/interactions@3.23.0(transitive)
- Removed@react-aria/overlays@3.25.0(transitive)
- Removed@react-aria/ssr@3.9.7(transitive)
- Removed@react-aria/utils@3.27.0(transitive)
- Removed@react-aria/visually-hidden@3.8.19(transitive)
- Removed@react-spectrum/provider@3.10.1(transitive)
- Removed@react-spectrum/utils@3.12.1(transitive)
- Removed@react-stately/overlays@3.6.13(transitive)
- Removed@react-stately/utils@3.10.5(transitive)
- Removed@react-types/button@3.10.2(transitive)
- Removed@react-types/overlays@3.8.12(transitive)
- Removed@react-types/provider@3.8.6(transitive)
- Removed@react-types/shared@3.27.0(transitive)