@react-spectrum/utils
Advanced tools
Comparing version 3.0.0-nightly.757 to 3.0.0-nightly.761
@@ -277,8 +277,2 @@ var { | ||
const iconStyleProps = _babelRuntimeHelpersExtends({}, baseStyleProps, { | ||
color: ['color', $fde11e9d9d7d059795140092a2808e57$var$iconColorValue] | ||
}); | ||
exports.iconStyleProps = iconStyleProps; | ||
function $fde11e9d9d7d059795140092a2808e57$var$rtl(ltr, rtl) { | ||
@@ -312,6 +306,2 @@ return direction => direction === 'rtl' ? rtl : ltr; | ||
function $fde11e9d9d7d059795140092a2808e57$var$iconColorValue(value) { | ||
return "var(--spectrum-semantic-" + value + "-color-icon)"; | ||
} | ||
function $fde11e9d9d7d059795140092a2808e57$var$backgroundColorValue(value) { | ||
@@ -318,0 +308,0 @@ return "var(--spectrum-alias-background-color-" + value + ", " + $fde11e9d9d7d059795140092a2808e57$var$colorValue(value, 'background') + ")"; |
@@ -212,5 +212,2 @@ import { mergeProps, useLayoutEffect, useResizeObserver } from "@react-aria/utils"; | ||
}; | ||
export const iconStyleProps = _babelRuntimeHelpersEsmExtends({}, baseStyleProps, { | ||
color: ['color', $e8ff0135e78060c4cd2a3148981a7a3$var$iconColorValue] | ||
}); | ||
@@ -242,6 +239,2 @@ function $e8ff0135e78060c4cd2a3148981a7a3$var$rtl(ltr, rtl) { | ||
function $e8ff0135e78060c4cd2a3148981a7a3$var$iconColorValue(value) { | ||
return "var(--spectrum-semantic-" + value + "-color-icon)"; | ||
} | ||
function $e8ff0135e78060c4cd2a3148981a7a3$var$backgroundColorValue(value) { | ||
@@ -248,0 +241,0 @@ return "var(--spectrum-alias-background-color-" + value + ", " + $e8ff0135e78060c4cd2a3148981a7a3$var$colorValue(value, 'background') + ")"; |
@@ -22,3 +22,2 @@ import { ReactElement, ReactNode, RefObject, CSSProperties, HTMLAttributes } from "react"; | ||
export const viewStyleProps: StyleHandlers; | ||
export const iconStyleProps: StyleHandlers; | ||
export function dimensionValue(value: DimensionValue): string; | ||
@@ -25,0 +24,0 @@ export function convertStyleProps(props: ViewStyleProps, handlers: StyleHandlers, direction: Direction): CSSProperties; |
{ | ||
"name": "@react-spectrum/utils", | ||
"version": "3.0.0-nightly.757+eb8c7524", | ||
"version": "3.0.0-nightly.761+9f738a06", | ||
"description": "Spectrum UI components in React", | ||
@@ -23,6 +23,6 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/i18n": "3.0.0-nightly.757+eb8c7524", | ||
"@react-aria/ssr": "3.0.2-nightly.2435+eb8c7524", | ||
"@react-aria/utils": "3.0.0-nightly.757+eb8c7524", | ||
"@react-types/shared": "3.0.0-nightly.757+eb8c7524", | ||
"@react-aria/i18n": "3.0.0-nightly.761+9f738a06", | ||
"@react-aria/ssr": "3.0.2-nightly.2439+9f738a06", | ||
"@react-aria/utils": "3.0.0-nightly.761+9f738a06", | ||
"@react-types/shared": "3.0.0-nightly.761+9f738a06", | ||
"clsx": "^1.1.1" | ||
@@ -36,3 +36,3 @@ }, | ||
}, | ||
"gitHead": "eb8c7524f8e58112192b1b2ade7dc131aea59906" | ||
"gitHead": "9f738a06ea4e256c8d975f00502b4b0bbabb8f65" | ||
} |
@@ -13,3 +13,3 @@ /* | ||
import {BackgroundColorValue, BorderColorValue, BorderRadiusValue, BorderSizeValue, ColorValue, DimensionValue, Direction, IconColorValue, StyleProps, ViewStyleProps} from '@react-types/shared'; | ||
import {BackgroundColorValue, BorderColorValue, BorderRadiusValue, BorderSizeValue, ColorValue, DimensionValue, Direction, StyleProps, ViewStyleProps} from '@react-types/shared'; | ||
import {CSSProperties, HTMLAttributes} from 'react'; | ||
@@ -114,7 +114,2 @@ import {useLocale} from '@react-aria/i18n'; | ||
export const iconStyleProps: StyleHandlers = { | ||
...baseStyleProps, | ||
color: ['color', iconColorValue] | ||
}; | ||
function rtl(ltr: string, rtl: string) { | ||
@@ -144,6 +139,2 @@ return (direction: Direction) => ( | ||
function iconColorValue(value: IconColorValue) { | ||
return `var(--spectrum-semantic-${value}-color-icon)`; | ||
} | ||
function backgroundColorValue(value: BackgroundColorValue) { | ||
@@ -150,0 +141,0 @@ return `var(--spectrum-alias-background-color-${value}, ${colorValue(value as ColorValue, 'background')})`; |
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
156026
1547