Socket
Socket
Sign inDemoInstall

@react-spectrum/utils

Package Overview
Dependencies
Maintainers
1
Versions
754
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-spectrum/utils - npm Package Compare versions

Comparing version 3.0.0-nightly.757 to 3.0.0-nightly.761

10

dist/main.js

@@ -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') + ")";

1

dist/types.d.ts

@@ -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;

12

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc