@react-aria/i18n
Advanced tools
Comparing version 3.0.0-nightly.2911 to 3.0.0-nightly.2912
@@ -33,6 +33,12 @@ var $4d65847630a056a8$exports = require("./utils.main.js"); | ||
let defaultLocale = (0, $2919bdec75484e64$exports.useDefaultLocale)(); | ||
let value = locale ? { | ||
locale: locale, | ||
direction: (0, $4d65847630a056a8$exports.isRTL)(locale) ? "rtl" : "ltr" | ||
} : defaultLocale; | ||
let value = (0, ($parcel$interopDefault($e7RNT$react))).useMemo(()=>{ | ||
if (!locale) return defaultLocale; | ||
return { | ||
locale: locale, | ||
direction: (0, $4d65847630a056a8$exports.isRTL)(locale) ? "rtl" : "ltr" | ||
}; | ||
}, [ | ||
defaultLocale, | ||
locale | ||
]); | ||
return /*#__PURE__*/ (0, ($parcel$interopDefault($e7RNT$react))).createElement($47fa5ec5ff482271$var$I18nContext.Provider, { | ||
@@ -39,0 +45,0 @@ value: value |
@@ -22,6 +22,12 @@ import {isRTL as $148a7a147e38ea7f$export$702d680b21cbd764} from "./utils.module.js"; | ||
let defaultLocale = (0, $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a)(); | ||
let value = locale ? { | ||
locale: locale, | ||
direction: (0, $148a7a147e38ea7f$export$702d680b21cbd764)(locale) ? "rtl" : "ltr" | ||
} : defaultLocale; | ||
let value = (0, $h9FiU$react).useMemo(()=>{ | ||
if (!locale) return defaultLocale; | ||
return { | ||
locale: locale, | ||
direction: (0, $148a7a147e38ea7f$export$702d680b21cbd764)(locale) ? "rtl" : "ltr" | ||
}; | ||
}, [ | ||
defaultLocale, | ||
locale | ||
]); | ||
return /*#__PURE__*/ (0, $h9FiU$react).createElement($18f2051aff69b9bf$var$I18nContext.Provider, { | ||
@@ -28,0 +34,0 @@ value: value |
{ | ||
"name": "@react-aria/i18n", | ||
"version": "3.0.0-nightly.2911+b294de874", | ||
"version": "3.0.0-nightly.2912+d80999e89", | ||
"description": "Spectrum UI components in React", | ||
@@ -50,9 +50,9 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@internationalized/date": "3.5.4-nightly.4623+b294de874", | ||
"@internationalized/message": "3.1.4-nightly.4623+b294de874", | ||
"@internationalized/number": "3.5.3-nightly.4623+b294de874", | ||
"@internationalized/string": "3.2.3-nightly.4623+b294de874", | ||
"@react-aria/ssr": "3.9.4-nightly.4623+b294de874", | ||
"@react-aria/utils": "3.0.0-nightly.2911+b294de874", | ||
"@react-types/shared": "3.0.0-nightly.2911+b294de874", | ||
"@internationalized/date": "3.5.4-nightly.4624+d80999e89", | ||
"@internationalized/message": "3.1.4-nightly.4624+d80999e89", | ||
"@internationalized/number": "3.5.3-nightly.4624+d80999e89", | ||
"@internationalized/string": "3.2.3-nightly.4624+d80999e89", | ||
"@react-aria/ssr": "3.9.4-nightly.4624+d80999e89", | ||
"@react-aria/utils": "3.0.0-nightly.2912+d80999e89", | ||
"@react-types/shared": "3.0.0-nightly.2912+d80999e89", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -66,3 +66,3 @@ }, | ||
}, | ||
"gitHead": "b294de874c16fad64bc4b930ccee1c9ffeb1c20f" | ||
"gitHead": "d80999e897b4d4db9fcfb4e9b8fcdc9fdd700882" | ||
} |
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
187005
2100